playingpack 0.2.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var Rd=Object.defineProperty;var Nd=(e,t,n)=>t in e?Rd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ft=(e,t,n)=>Nd(e,typeof t!="symbol"?t+"":t,n);(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 s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).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 Ea(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ka={exports:{}},Ai={},Pa={exports:{}},Q={};/**
1
+ var Nd=Object.defineProperty;var jd=(e,t,n)=>t in e?Nd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ht=(e,t,n)=>jd(e,typeof t!="symbol"?t+"":t,n);(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 s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).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 ka(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pa={exports:{}},Ai={},Oa={exports:{}},z={};/**
2
2
  * @license React
3
3
  * react.production.min.js
4
4
  *
@@ -6,7 +6,7 @@ var Rd=Object.defineProperty;var Nd=(e,t,n)=>t in e?Rd(e,t,{enumerable:!0,config
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Er=Symbol.for("react.element"),Td=Symbol.for("react.portal"),Md=Symbol.for("react.fragment"),jd=Symbol.for("react.strict_mode"),_d=Symbol.for("react.profiler"),Dd=Symbol.for("react.provider"),Ld=Symbol.for("react.context"),Id=Symbol.for("react.forward_ref"),Fd=Symbol.for("react.suspense"),Qd=Symbol.for("react.memo"),zd=Symbol.for("react.lazy"),$u=Symbol.iterator;function Ud(e){return e===null||typeof e!="object"?null:(e=$u&&e[$u]||e["@@iterator"],typeof e=="function"?e:null)}var Oa={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ra=Object.assign,Na={};function Mn(e,t,n){this.props=e,this.context=t,this.refs=Na,this.updater=n||Oa}Mn.prototype.isReactComponent={};Mn.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")};Mn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ta(){}Ta.prototype=Mn.prototype;function bs(e,t,n){this.props=e,this.context=t,this.refs=Na,this.updater=n||Oa}var $s=bs.prototype=new Ta;$s.constructor=bs;Ra($s,Mn.prototype);$s.isPureReactComponent=!0;var Hu=Array.isArray,Ma=Object.prototype.hasOwnProperty,Hs={current:null},ja={key:!0,ref:!0,__self:!0,__source:!0};function _a(e,t,n){var r,i={},l=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(l=""+t.key),t)Ma.call(t,r)&&!ja.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1<u){for(var o=Array(u),a=0;a<u;a++)o[a]=arguments[a+2];i.children=o}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)i[r]===void 0&&(i[r]=u[r]);return{$$typeof:Er,type:e,key:l,ref:s,props:i,_owner:Hs.current}}function Ad(e,t){return{$$typeof:Er,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Bs(e){return typeof e=="object"&&e!==null&&e.$$typeof===Er}function qd(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Bu=/\/+/g;function ul(e,t){return typeof e=="object"&&e!==null&&e.key!=null?qd(""+e.key):t.toString(36)}function Yr(e,t,n,r,i){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Er:case Td:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+ul(s,0):r,Hu(i)?(n="",e!=null&&(n=e.replace(Bu,"$&/")+"/"),Yr(i,t,n,"",function(a){return a})):i!=null&&(Bs(i)&&(i=Ad(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Bu,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",Hu(e))for(var u=0;u<e.length;u++){l=e[u];var o=r+ul(l,u);s+=Yr(l,t,n,o,i)}else if(o=Ud(e),typeof o=="function")for(e=o.call(e),u=0;!(l=e.next()).done;)l=l.value,o=r+ul(l,u++),s+=Yr(l,t,n,o,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 s}function jr(e,t,n){if(e==null)return e;var r=[],i=0;return Yr(e,r,"","",function(l){return t.call(n,l,i++)}),r}function bd(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 ye={current:null},Xr={transition:null},$d={ReactCurrentDispatcher:ye,ReactCurrentBatchConfig:Xr,ReactCurrentOwner:Hs};function Da(){throw Error("act(...) is not supported in production builds of React.")}Q.Children={map:jr,forEach:function(e,t,n){jr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return jr(e,function(){t++}),t},toArray:function(e){return jr(e,function(t){return t})||[]},only:function(e){if(!Bs(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Q.Component=Mn;Q.Fragment=Md;Q.Profiler=_d;Q.PureComponent=bs;Q.StrictMode=jd;Q.Suspense=Fd;Q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$d;Q.act=Da;Q.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=Ra({},e.props),i=e.key,l=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,s=Hs.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(o in t)Ma.call(t,o)&&!ja.hasOwnProperty(o)&&(r[o]=t[o]===void 0&&u!==void 0?u[o]:t[o])}var o=arguments.length-2;if(o===1)r.children=n;else if(1<o){u=Array(o);for(var a=0;a<o;a++)u[a]=arguments[a+2];r.children=u}return{$$typeof:Er,type:e.type,key:i,ref:l,props:r,_owner:s}};Q.createContext=function(e){return e={$$typeof:Ld,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Dd,_context:e},e.Consumer=e};Q.createElement=_a;Q.createFactory=function(e){var t=_a.bind(null,e);return t.type=e,t};Q.createRef=function(){return{current:null}};Q.forwardRef=function(e){return{$$typeof:Id,render:e}};Q.isValidElement=Bs;Q.lazy=function(e){return{$$typeof:zd,_payload:{_status:-1,_result:e},_init:bd}};Q.memo=function(e,t){return{$$typeof:Qd,type:e,compare:t===void 0?null:t}};Q.startTransition=function(e){var t=Xr.transition;Xr.transition={};try{e()}finally{Xr.transition=t}};Q.unstable_act=Da;Q.useCallback=function(e,t){return ye.current.useCallback(e,t)};Q.useContext=function(e){return ye.current.useContext(e)};Q.useDebugValue=function(){};Q.useDeferredValue=function(e){return ye.current.useDeferredValue(e)};Q.useEffect=function(e,t){return ye.current.useEffect(e,t)};Q.useId=function(){return ye.current.useId()};Q.useImperativeHandle=function(e,t,n){return ye.current.useImperativeHandle(e,t,n)};Q.useInsertionEffect=function(e,t){return ye.current.useInsertionEffect(e,t)};Q.useLayoutEffect=function(e,t){return ye.current.useLayoutEffect(e,t)};Q.useMemo=function(e,t){return ye.current.useMemo(e,t)};Q.useReducer=function(e,t,n){return ye.current.useReducer(e,t,n)};Q.useRef=function(e){return ye.current.useRef(e)};Q.useState=function(e){return ye.current.useState(e)};Q.useSyncExternalStore=function(e,t,n){return ye.current.useSyncExternalStore(e,t,n)};Q.useTransition=function(){return ye.current.useTransition()};Q.version="18.3.1";Pa.exports=Q;var R=Pa.exports;const Ze=Ea(R);/**
9
+ */var Er=Symbol.for("react.element"),Td=Symbol.for("react.portal"),Md=Symbol.for("react.fragment"),_d=Symbol.for("react.strict_mode"),Id=Symbol.for("react.profiler"),Ld=Symbol.for("react.provider"),Dd=Symbol.for("react.context"),Fd=Symbol.for("react.forward_ref"),zd=Symbol.for("react.suspense"),Qd=Symbol.for("react.memo"),Ud=Symbol.for("react.lazy"),$u=Symbol.iterator;function Ad(e){return e===null||typeof e!="object"?null:(e=$u&&e[$u]||e["@@iterator"],typeof e=="function"?e:null)}var Ra={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Na=Object.assign,ja={};function Tn(e,t,n){this.props=e,this.context=t,this.refs=ja,this.updater=n||Ra}Tn.prototype.isReactComponent={};Tn.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")};Tn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ta(){}Ta.prototype=Tn.prototype;function qs(e,t,n){this.props=e,this.context=t,this.refs=ja,this.updater=n||Ra}var $s=qs.prototype=new Ta;$s.constructor=qs;Na($s,Tn.prototype);$s.isPureReactComponent=!0;var Hu=Array.isArray,Ma=Object.prototype.hasOwnProperty,Hs={current:null},_a={key:!0,ref:!0,__self:!0,__source:!0};function Ia(e,t,n){var r,i={},l=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(l=""+t.key),t)Ma.call(t,r)&&!_a.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1<u){for(var o=Array(u),a=0;a<u;a++)o[a]=arguments[a+2];i.children=o}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)i[r]===void 0&&(i[r]=u[r]);return{$$typeof:Er,type:e,key:l,ref:s,props:i,_owner:Hs.current}}function bd(e,t){return{$$typeof:Er,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Bs(e){return typeof e=="object"&&e!==null&&e.$$typeof===Er}function qd(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Bu=/\/+/g;function ul(e,t){return typeof e=="object"&&e!==null&&e.key!=null?qd(""+e.key):t.toString(36)}function Yr(e,t,n,r,i){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Er:case Td:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+ul(s,0):r,Hu(i)?(n="",e!=null&&(n=e.replace(Bu,"$&/")+"/"),Yr(i,t,n,"",function(a){return a})):i!=null&&(Bs(i)&&(i=bd(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Bu,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",Hu(e))for(var u=0;u<e.length;u++){l=e[u];var o=r+ul(l,u);s+=Yr(l,t,n,o,i)}else if(o=Ad(e),typeof o=="function")for(e=o.call(e),u=0;!(l=e.next()).done;)l=l.value,o=r+ul(l,u++),s+=Yr(l,t,n,o,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 s}function Mr(e,t,n){if(e==null)return e;var r=[],i=0;return Yr(e,r,"","",function(l){return t.call(n,l,i++)}),r}function $d(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 ye={current:null},Xr={transition:null},Hd={ReactCurrentDispatcher:ye,ReactCurrentBatchConfig:Xr,ReactCurrentOwner:Hs};function La(){throw Error("act(...) is not supported in production builds of React.")}z.Children={map:Mr,forEach:function(e,t,n){Mr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Mr(e,function(){t++}),t},toArray:function(e){return Mr(e,function(t){return t})||[]},only:function(e){if(!Bs(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};z.Component=Tn;z.Fragment=Md;z.Profiler=Id;z.PureComponent=qs;z.StrictMode=_d;z.Suspense=zd;z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hd;z.act=La;z.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=Na({},e.props),i=e.key,l=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,s=Hs.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(o in t)Ma.call(t,o)&&!_a.hasOwnProperty(o)&&(r[o]=t[o]===void 0&&u!==void 0?u[o]:t[o])}var o=arguments.length-2;if(o===1)r.children=n;else if(1<o){u=Array(o);for(var a=0;a<o;a++)u[a]=arguments[a+2];r.children=u}return{$$typeof:Er,type:e.type,key:i,ref:l,props:r,_owner:s}};z.createContext=function(e){return e={$$typeof:Dd,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Ld,_context:e},e.Consumer=e};z.createElement=Ia;z.createFactory=function(e){var t=Ia.bind(null,e);return t.type=e,t};z.createRef=function(){return{current:null}};z.forwardRef=function(e){return{$$typeof:Fd,render:e}};z.isValidElement=Bs;z.lazy=function(e){return{$$typeof:Ud,_payload:{_status:-1,_result:e},_init:$d}};z.memo=function(e,t){return{$$typeof:Qd,type:e,compare:t===void 0?null:t}};z.startTransition=function(e){var t=Xr.transition;Xr.transition={};try{e()}finally{Xr.transition=t}};z.unstable_act=La;z.useCallback=function(e,t){return ye.current.useCallback(e,t)};z.useContext=function(e){return ye.current.useContext(e)};z.useDebugValue=function(){};z.useDeferredValue=function(e){return ye.current.useDeferredValue(e)};z.useEffect=function(e,t){return ye.current.useEffect(e,t)};z.useId=function(){return ye.current.useId()};z.useImperativeHandle=function(e,t,n){return ye.current.useImperativeHandle(e,t,n)};z.useInsertionEffect=function(e,t){return ye.current.useInsertionEffect(e,t)};z.useLayoutEffect=function(e,t){return ye.current.useLayoutEffect(e,t)};z.useMemo=function(e,t){return ye.current.useMemo(e,t)};z.useReducer=function(e,t,n){return ye.current.useReducer(e,t,n)};z.useRef=function(e){return ye.current.useRef(e)};z.useState=function(e){return ye.current.useState(e)};z.useSyncExternalStore=function(e,t,n){return ye.current.useSyncExternalStore(e,t,n)};z.useTransition=function(){return ye.current.useTransition()};z.version="18.3.1";Oa.exports=z;var R=Oa.exports;const Ze=ka(R);/**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
12
12
  *
@@ -14,7 +14,7 @@ var Rd=Object.defineProperty;var Nd=(e,t,n)=>t in e?Rd(e,t,{enumerable:!0,config
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Hd=R,Bd=Symbol.for("react.element"),Vd=Symbol.for("react.fragment"),Kd=Object.prototype.hasOwnProperty,Wd=Hd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Gd={key:!0,ref:!0,__self:!0,__source:!0};function La(e,t,n){var r,i={},l=null,s=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Kd.call(t,r)&&!Gd.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:Bd,type:e,key:l,ref:s,props:i,_owner:Wd.current}}Ai.Fragment=Vd;Ai.jsx=La;Ai.jsxs=La;ka.exports=Ai;var P=ka.exports,ql={},Ia={exports:{}},Te={},Fa={exports:{}},Qa={};/**
17
+ */var Bd=R,Vd=Symbol.for("react.element"),Kd=Symbol.for("react.fragment"),Wd=Object.prototype.hasOwnProperty,Gd=Bd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Yd={key:!0,ref:!0,__self:!0,__source:!0};function Da(e,t,n){var r,i={},l=null,s=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Wd.call(t,r)&&!Yd.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:Vd,type:e,key:l,ref:s,props:i,_owner:Gd.current}}Ai.Fragment=Kd;Ai.jsx=Da;Ai.jsxs=Da;Pa.exports=Ai;var k=Pa.exports,bl={},Fa={exports:{}},je={},za={exports:{}},Qa={};/**
18
18
  * @license React
19
19
  * scheduler.production.min.js
20
20
  *
@@ -22,7 +22,7 @@ var Rd=Object.defineProperty;var Nd=(e,t,n)=>t in e?Rd(e,t,{enumerable:!0,config
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */(function(e){function t(T,D){var F=T.length;T.push(D);e:for(;0<F;){var _=F-1>>>1,I=T[_];if(0<i(I,D))T[_]=D,T[F]=I,F=_;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var D=T[0],F=T.pop();if(F!==D){T[0]=F;e:for(var _=0,I=T.length,ne=I>>>1;_<ne;){var Ee=2*(_+1)-1,Ke=T[Ee],Ft=Ee+1,Mr=T[Ft];if(0>i(Ke,F))Ft<I&&0>i(Mr,Ke)?(T[_]=Mr,T[Ft]=F,_=Ft):(T[_]=Ke,T[Ee]=F,_=Ee);else if(Ft<I&&0>i(Mr,F))T[_]=Mr,T[Ft]=F,_=Ft;else break e}}return D}function i(T,D){var F=T.sortIndex-D.sortIndex;return F!==0?F:T.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var o=[],a=[],h=1,m=null,p=3,v=!1,g=!1,y=!1,k=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(T){for(var D=n(a);D!==null;){if(D.callback===null)r(a);else if(D.startTime<=T)r(a),D.sortIndex=D.expirationTime,t(o,D);else break;D=n(a)}}function C(T){if(y=!1,d(T),!g)if(n(o)!==null)g=!0,q(x);else{var D=n(a);D!==null&&je(C,D.startTime-T)}}function x(T,D){g=!1,y&&(y=!1,f(E),E=-1),v=!0;var F=p;try{for(d(D),m=n(o);m!==null&&(!(m.expirationTime>D)||T&&!A());){var _=m.callback;if(typeof _=="function"){m.callback=null,p=m.priorityLevel;var I=_(m.expirationTime<=D);D=e.unstable_now(),typeof I=="function"?m.callback=I:m===n(o)&&r(o),d(D)}else r(o);m=n(o)}if(m!==null)var ne=!0;else{var Ee=n(a);Ee!==null&&je(C,Ee.startTime-D),ne=!1}return ne}finally{m=null,p=F,v=!1}}var S=!1,w=null,E=-1,M=5,N=-1;function A(){return!(e.unstable_now()-N<M)}function ae(){if(w!==null){var T=e.unstable_now();N=T;var D=!0;try{D=w(!0,T)}finally{D?le():(S=!1,w=null)}}else S=!1}var le;if(typeof c=="function")le=function(){c(ae)};else if(typeof MessageChannel<"u"){var Ve=new MessageChannel,L=Ve.port2;Ve.port1.onmessage=ae,le=function(){L.postMessage(null)}}else le=function(){k(ae,0)};function q(T){w=T,S||(S=!0,le())}function je(T,D){E=k(function(){T(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(T){T.callback=null},e.unstable_continueExecution=function(){g||v||(g=!0,q(x))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(o)},e.unstable_next=function(T){switch(p){case 1:case 2:case 3:var D=3;break;default:D=p}var F=p;p=D;try{return T()}finally{p=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,D){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var F=p;p=T;try{return D()}finally{p=F}},e.unstable_scheduleCallback=function(T,D,F){var _=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?_+F:_):F=_,T){case 1:var I=-1;break;case 2:I=250;break;case 5:I=1073741823;break;case 4:I=1e4;break;default:I=5e3}return I=F+I,T={id:h++,callback:D,priorityLevel:T,startTime:F,expirationTime:I,sortIndex:-1},F>_?(T.sortIndex=F,t(a,T),n(o)===null&&T===n(a)&&(y?(f(E),E=-1):y=!0,je(C,F-_))):(T.sortIndex=I,t(o,T),g||v||(g=!0,q(x))),T},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(T){var D=p;return function(){var F=p;p=D;try{return T.apply(this,arguments)}finally{p=F}}}})(Qa);Fa.exports=Qa;var Yd=Fa.exports;/**
25
+ */(function(e){function t(j,I){var F=j.length;j.push(I);e:for(;0<F;){var _=F-1>>>1,D=j[_];if(0<i(D,I))j[_]=I,j[F]=D,F=_;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var I=j[0],F=j.pop();if(F!==I){j[0]=F;e:for(var _=0,D=j.length,ne=D>>>1;_<ne;){var Ee=2*(_+1)-1,Ke=j[Ee],Qt=Ee+1,Tr=j[Qt];if(0>i(Ke,F))Qt<D&&0>i(Tr,Ke)?(j[_]=Tr,j[Qt]=F,_=Qt):(j[_]=Ke,j[Ee]=F,_=Ee);else if(Qt<D&&0>i(Tr,F))j[_]=Tr,j[Qt]=F,_=Qt;else break e}}return I}function i(j,I){var F=j.sortIndex-I.sortIndex;return F!==0?F:j.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var o=[],a=[],h=1,y=null,p=3,v=!1,g=!1,m=!1,P=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(j){for(var I=n(a);I!==null;){if(I.callback===null)r(a);else if(I.startTime<=j)r(a),I.sortIndex=I.expirationTime,t(o,I);else break;I=n(a)}}function C(j){if(m=!1,d(j),!g)if(n(o)!==null)g=!0,b(x);else{var I=n(a);I!==null&&Me(C,I.startTime-j)}}function x(j,I){g=!1,m&&(m=!1,f(E),E=-1),v=!0;var F=p;try{for(d(I),y=n(o);y!==null&&(!(y.expirationTime>I)||j&&!A());){var _=y.callback;if(typeof _=="function"){y.callback=null,p=y.priorityLevel;var D=_(y.expirationTime<=I);I=e.unstable_now(),typeof D=="function"?y.callback=D:y===n(o)&&r(o),d(I)}else r(o);y=n(o)}if(y!==null)var ne=!0;else{var Ee=n(a);Ee!==null&&Me(C,Ee.startTime-I),ne=!1}return ne}finally{y=null,p=F,v=!1}}var S=!1,w=null,E=-1,T=5,N=-1;function A(){return!(e.unstable_now()-N<T)}function ae(){if(w!==null){var j=e.unstable_now();N=j;var I=!0;try{I=w(!0,j)}finally{I?le():(S=!1,w=null)}}else S=!1}var le;if(typeof c=="function")le=function(){c(ae)};else if(typeof MessageChannel<"u"){var Ve=new MessageChannel,L=Ve.port2;Ve.port1.onmessage=ae,le=function(){L.postMessage(null)}}else le=function(){P(ae,0)};function b(j){w=j,S||(S=!0,le())}function Me(j,I){E=P(function(){j(e.unstable_now())},I)}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(j){j.callback=null},e.unstable_continueExecution=function(){g||v||(g=!0,b(x))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(o)},e.unstable_next=function(j){switch(p){case 1:case 2:case 3:var I=3;break;default:I=p}var F=p;p=I;try{return j()}finally{p=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,I){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var F=p;p=j;try{return I()}finally{p=F}},e.unstable_scheduleCallback=function(j,I,F){var _=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?_+F:_):F=_,j){case 1:var D=-1;break;case 2:D=250;break;case 5:D=1073741823;break;case 4:D=1e4;break;default:D=5e3}return D=F+D,j={id:h++,callback:I,priorityLevel:j,startTime:F,expirationTime:D,sortIndex:-1},F>_?(j.sortIndex=F,t(a,j),n(o)===null&&j===n(a)&&(m?(f(E),E=-1):m=!0,Me(C,F-_))):(j.sortIndex=D,t(o,j),g||v||(g=!0,b(x))),j},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(j){var I=p;return function(){var F=p;p=I;try{return j.apply(this,arguments)}finally{p=F}}}})(Qa);za.exports=Qa;var Xd=za.exports;/**
26
26
  * @license React
27
27
  * react-dom.production.min.js
28
28
  *
@@ -30,14 +30,14 @@ var Rd=Object.defineProperty;var Nd=(e,t,n)=>t in e?Rd(e,t,{enumerable:!0,config
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var Xd=R,Ne=Yd;function O(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 za=new Set,ir={};function Gt(e,t){xn(e,t),xn(e+"Capture",t)}function xn(e,t){for(ir[e]=t,e=0;e<t.length;e++)za.add(t[e])}var st=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bl=Object.prototype.hasOwnProperty,Zd=/^[: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]*$/,Vu={},Ku={};function Jd(e){return bl.call(Ku,e)?!0:bl.call(Vu,e)?!1:Zd.test(e)?Ku[e]=!0:(Vu[e]=!0,!1)}function eh(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 th(e,t,n,r){if(t===null||typeof t>"u"||eh(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 ve(e,t,n,r,i,l,s){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=s}var oe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){oe[e]=new ve(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];oe[t]=new ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){oe[e]=new ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){oe[e]=new ve(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){oe[e]=new ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){oe[e]=new ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){oe[e]=new ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){oe[e]=new ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){oe[e]=new ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var Vs=/[\-:]([a-z])/g;function Ks(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(Vs,Ks);oe[t]=new ve(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(Vs,Ks);oe[t]=new ve(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(Vs,Ks);oe[t]=new ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){oe[e]=new ve(e,1,!1,e.toLowerCase(),null,!1,!1)});oe.xlinkHref=new ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){oe[e]=new ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ws(e,t,n,r){var i=oe.hasOwnProperty(t)?oe[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(th(t,n,i,r)&&(n=null),r||i===null?Jd(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 ct=Xd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_r=Symbol.for("react.element"),Jt=Symbol.for("react.portal"),en=Symbol.for("react.fragment"),Gs=Symbol.for("react.strict_mode"),$l=Symbol.for("react.profiler"),Ua=Symbol.for("react.provider"),Aa=Symbol.for("react.context"),Ys=Symbol.for("react.forward_ref"),Hl=Symbol.for("react.suspense"),Bl=Symbol.for("react.suspense_list"),Xs=Symbol.for("react.memo"),pt=Symbol.for("react.lazy"),qa=Symbol.for("react.offscreen"),Wu=Symbol.iterator;function Dn(e){return e===null||typeof e!="object"?null:(e=Wu&&e[Wu]||e["@@iterator"],typeof e=="function"?e:null)}var Y=Object.assign,ol;function qn(e){if(ol===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ol=t&&t[1]||""}return`
33
+ */var Zd=R,Ne=Xd;function O(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 Ua=new Set,ir={};function Xt(e,t){Cn(e,t),Cn(e+"Capture",t)}function Cn(e,t){for(ir[e]=t,e=0;e<t.length;e++)Ua.add(t[e])}var ot=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ql=Object.prototype.hasOwnProperty,Jd=/^[: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]*$/,Vu={},Ku={};function eh(e){return ql.call(Ku,e)?!0:ql.call(Vu,e)?!1:Jd.test(e)?Ku[e]=!0:(Vu[e]=!0,!1)}function th(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 nh(e,t,n,r){if(t===null||typeof t>"u"||th(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 ve(e,t,n,r,i,l,s){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=s}var oe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){oe[e]=new ve(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];oe[t]=new ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){oe[e]=new ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){oe[e]=new ve(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){oe[e]=new ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){oe[e]=new ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){oe[e]=new ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){oe[e]=new ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){oe[e]=new ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var Vs=/[\-:]([a-z])/g;function Ks(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(Vs,Ks);oe[t]=new ve(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(Vs,Ks);oe[t]=new ve(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(Vs,Ks);oe[t]=new ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){oe[e]=new ve(e,1,!1,e.toLowerCase(),null,!1,!1)});oe.xlinkHref=new ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){oe[e]=new ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ws(e,t,n,r){var i=oe.hasOwnProperty(t)?oe[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(nh(t,n,i,r)&&(n=null),r||i===null?eh(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 dt=Zd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_r=Symbol.for("react.element"),tn=Symbol.for("react.portal"),nn=Symbol.for("react.fragment"),Gs=Symbol.for("react.strict_mode"),$l=Symbol.for("react.profiler"),Aa=Symbol.for("react.provider"),ba=Symbol.for("react.context"),Ys=Symbol.for("react.forward_ref"),Hl=Symbol.for("react.suspense"),Bl=Symbol.for("react.suspense_list"),Xs=Symbol.for("react.memo"),yt=Symbol.for("react.lazy"),qa=Symbol.for("react.offscreen"),Wu=Symbol.iterator;function In(e){return e===null||typeof e!="object"?null:(e=Wu&&e[Wu]||e["@@iterator"],typeof e=="function"?e:null)}var Y=Object.assign,ol;function bn(e){if(ol===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ol=t&&t[1]||""}return`
34
34
  `+ol+e}var al=!1;function cl(e,t){if(!e||al)return"";al=!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(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var i=a.stack.split(`
35
35
  `),l=r.stack.split(`
36
36
  `),s=i.length-1,u=l.length-1;1<=s&&0<=u&&i[s]!==l[u];)u--;for(;1<=s&&0<=u;s--,u--)if(i[s]!==l[u]){if(s!==1||u!==1)do if(s--,u--,0>u||i[s]!==l[u]){var o=`
37
- `+i[s].replace(" at new "," at ");return e.displayName&&o.includes("<anonymous>")&&(o=o.replace("<anonymous>",e.displayName)),o}while(1<=s&&0<=u);break}}}finally{al=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qn(e):""}function nh(e){switch(e.tag){case 5:return qn(e.type);case 16:return qn("Lazy");case 13:return qn("Suspense");case 19:return qn("SuspenseList");case 0:case 2:case 15:return e=cl(e.type,!1),e;case 11:return e=cl(e.type.render,!1),e;case 1:return e=cl(e.type,!0),e;default:return""}}function Vl(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 en:return"Fragment";case Jt:return"Portal";case $l:return"Profiler";case Gs:return"StrictMode";case Hl:return"Suspense";case Bl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Aa:return(e.displayName||"Context")+".Consumer";case Ua:return(e._context.displayName||"Context")+".Provider";case Ys:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Xs:return t=e.displayName||null,t!==null?t:Vl(e.type)||"Memo";case pt:t=e._payload,e=e._init;try{return Vl(e(t))}catch{}}return null}function rh(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 Vl(t);case 8:return t===Gs?"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 jt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ba(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ih(e){var t=ba(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(s){r=""+s,l.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Dr(e){e._valueTracker||(e._valueTracker=ih(e))}function $a(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ba(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ai(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 Kl(e,t){var n=t.checked;return Y({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Gu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=jt(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 Ha(e,t){t=t.checked,t!=null&&Ws(e,"checked",t,!1)}function Wl(e,t){Ha(e,t);var n=jt(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")?Gl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Gl(e,t.type,jt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Yu(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 Gl(e,t,n){(t!=="number"||ai(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var bn=Array.isArray;function mn(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=""+jt(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 Yl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return Y({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Xu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(O(92));if(bn(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:jt(n)}}function Ba(e,t){var n=jt(t.value),r=jt(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 Zu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Va(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 Xl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Va(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Lr,Ka=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(Lr=Lr||document.createElement("div"),Lr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Lr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function lr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vn={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},lh=["Webkit","ms","Moz","O"];Object.keys(Vn).forEach(function(e){lh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Vn[t]=Vn[e]})});function Wa(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Vn.hasOwnProperty(e)&&Vn[e]?(""+t).trim():t+"px"}function Ga(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Wa(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var sh=Y({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 Zl(e,t){if(t){if(sh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function Jl(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 es=null;function Zs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ts=null,yn=null,vn=null;function Ju(e){if(e=Or(e)){if(typeof ts!="function")throw Error(O(280));var t=e.stateNode;t&&(t=Bi(t),ts(e.stateNode,e.type,t))}}function Ya(e){yn?vn?vn.push(e):vn=[e]:yn=e}function Xa(){if(yn){var e=yn,t=vn;if(vn=yn=null,Ju(e),t)for(e=0;e<t.length;e++)Ju(t[e])}}function Za(e,t){return e(t)}function Ja(){}var fl=!1;function ec(e,t,n){if(fl)return e(t,n);fl=!0;try{return Za(e,t,n)}finally{fl=!1,(yn!==null||vn!==null)&&(Ja(),Xa())}}function sr(e,t){var n=e.stateNode;if(n===null)return null;var r=Bi(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(O(231,t,typeof n));return n}var ns=!1;if(st)try{var Ln={};Object.defineProperty(Ln,"passive",{get:function(){ns=!0}}),window.addEventListener("test",Ln,Ln),window.removeEventListener("test",Ln,Ln)}catch{ns=!1}function uh(e,t,n,r,i,l,s,u,o){var a=Array.prototype.slice.call(arguments,3);try{t.apply(n,a)}catch(h){this.onError(h)}}var Kn=!1,ci=null,fi=!1,rs=null,oh={onError:function(e){Kn=!0,ci=e}};function ah(e,t,n,r,i,l,s,u,o){Kn=!1,ci=null,uh.apply(oh,arguments)}function ch(e,t,n,r,i,l,s,u,o){if(ah.apply(this,arguments),Kn){if(Kn){var a=ci;Kn=!1,ci=null}else throw Error(O(198));fi||(fi=!0,rs=a)}}function Yt(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 tc(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 eo(e){if(Yt(e)!==e)throw Error(O(188))}function fh(e){var t=e.alternate;if(!t){if(t=Yt(e),t===null)throw Error(O(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 eo(i),e;if(l===r)return eo(i),t;l=l.sibling}throw Error(O(188))}if(n.return!==r.return)n=i,r=l;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=l;break}if(u===r){s=!0,r=i,n=l;break}u=u.sibling}if(!s){for(u=l.child;u;){if(u===n){s=!0,n=l,r=i;break}if(u===r){s=!0,r=l,n=i;break}u=u.sibling}if(!s)throw Error(O(189))}}if(n.alternate!==r)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?e:t}function nc(e){return e=fh(e),e!==null?rc(e):null}function rc(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=rc(e);if(t!==null)return t;e=e.sibling}return null}var ic=Ne.unstable_scheduleCallback,to=Ne.unstable_cancelCallback,dh=Ne.unstable_shouldYield,hh=Ne.unstable_requestPaint,Z=Ne.unstable_now,ph=Ne.unstable_getCurrentPriorityLevel,Js=Ne.unstable_ImmediatePriority,lc=Ne.unstable_UserBlockingPriority,di=Ne.unstable_NormalPriority,mh=Ne.unstable_LowPriority,sc=Ne.unstable_IdlePriority,qi=null,Je=null;function yh(e){if(Je&&typeof Je.onCommitFiberRoot=="function")try{Je.onCommitFiberRoot(qi,e,void 0,(e.current.flags&128)===128)}catch{}}var $e=Math.clz32?Math.clz32:wh,vh=Math.log,gh=Math.LN2;function wh(e){return e>>>=0,e===0?32:31-(vh(e)/gh|0)|0}var Ir=64,Fr=4194304;function $n(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 hi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,s=n&268435455;if(s!==0){var u=s&~i;u!==0?r=$n(u):(l&=s,l!==0&&(r=$n(l)))}else s=n&~i,s!==0?r=$n(s):l!==0&&(r=$n(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-$e(t),i=1<<n,r|=e[n],t&=~i;return r}function Sh(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 xh(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var s=31-$e(l),u=1<<s,o=i[s];o===-1?(!(u&n)||u&r)&&(i[s]=Sh(u,t)):o<=t&&(e.expiredLanes|=u),l&=~u}}function is(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function uc(){var e=Ir;return Ir<<=1,!(Ir&4194240)&&(Ir=64),e}function dl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function kr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$e(t),e[t]=n}function Ch(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-$e(n),l=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~l}}function eu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-$e(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var U=0;function oc(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var ac,tu,cc,fc,dc,ls=!1,Qr=[],Ct=null,Et=null,kt=null,ur=new Map,or=new Map,vt=[],Eh="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 no(e,t){switch(e){case"focusin":case"focusout":Ct=null;break;case"dragenter":case"dragleave":Et=null;break;case"mouseover":case"mouseout":kt=null;break;case"pointerover":case"pointerout":ur.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":or.delete(t.pointerId)}}function In(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=Or(t),t!==null&&tu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function kh(e,t,n,r,i){switch(t){case"focusin":return Ct=In(Ct,e,t,n,r,i),!0;case"dragenter":return Et=In(Et,e,t,n,r,i),!0;case"mouseover":return kt=In(kt,e,t,n,r,i),!0;case"pointerover":var l=i.pointerId;return ur.set(l,In(ur.get(l)||null,e,t,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,or.set(l,In(or.get(l)||null,e,t,n,r,i)),!0}return!1}function hc(e){var t=Ut(e.target);if(t!==null){var n=Yt(t);if(n!==null){if(t=n.tag,t===13){if(t=tc(n),t!==null){e.blockedOn=t,dc(e.priority,function(){cc(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 Zr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ss(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);es=r,n.target.dispatchEvent(r),es=null}else return t=Or(n),t!==null&&tu(t),e.blockedOn=n,!1;t.shift()}return!0}function ro(e,t,n){Zr(e)&&n.delete(t)}function Ph(){ls=!1,Ct!==null&&Zr(Ct)&&(Ct=null),Et!==null&&Zr(Et)&&(Et=null),kt!==null&&Zr(kt)&&(kt=null),ur.forEach(ro),or.forEach(ro)}function Fn(e,t){e.blockedOn===t&&(e.blockedOn=null,ls||(ls=!0,Ne.unstable_scheduleCallback(Ne.unstable_NormalPriority,Ph)))}function ar(e){function t(i){return Fn(i,e)}if(0<Qr.length){Fn(Qr[0],e);for(var n=1;n<Qr.length;n++){var r=Qr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ct!==null&&Fn(Ct,e),Et!==null&&Fn(Et,e),kt!==null&&Fn(kt,e),ur.forEach(t),or.forEach(t),n=0;n<vt.length;n++)r=vt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<vt.length&&(n=vt[0],n.blockedOn===null);)hc(n),n.blockedOn===null&&vt.shift()}var gn=ct.ReactCurrentBatchConfig,pi=!0;function Oh(e,t,n,r){var i=U,l=gn.transition;gn.transition=null;try{U=1,nu(e,t,n,r)}finally{U=i,gn.transition=l}}function Rh(e,t,n,r){var i=U,l=gn.transition;gn.transition=null;try{U=4,nu(e,t,n,r)}finally{U=i,gn.transition=l}}function nu(e,t,n,r){if(pi){var i=ss(e,t,n,r);if(i===null)Cl(e,t,r,mi,n),no(e,r);else if(kh(i,e,t,n,r))r.stopPropagation();else if(no(e,r),t&4&&-1<Eh.indexOf(e)){for(;i!==null;){var l=Or(i);if(l!==null&&ac(l),l=ss(e,t,n,r),l===null&&Cl(e,t,r,mi,n),l===i)break;i=l}i!==null&&r.stopPropagation()}else Cl(e,t,r,null,n)}}var mi=null;function ss(e,t,n,r){if(mi=null,e=Zs(r),e=Ut(e),e!==null)if(t=Yt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=tc(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 mi=e,null}function pc(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(ph()){case Js:return 1;case lc:return 4;case di:case mh:return 16;case sc:return 536870912;default:return 16}default:return 16}}var wt=null,ru=null,Jr=null;function mc(){if(Jr)return Jr;var e,t=ru,n=t.length,r,i="value"in wt?wt.value:wt.textContent,l=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[l-r];r++);return Jr=i.slice(e,1<r?1-r:void 0)}function ei(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 zr(){return!0}function io(){return!1}function Me(e){function t(n,r,i,l,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=l,this.target=s,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(l):l[u]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?zr:io,this.isPropagationStopped=io,this}return Y(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=zr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=zr)},persist:function(){},isPersistent:zr}),t}var jn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},iu=Me(jn),Pr=Y({},jn,{view:0,detail:0}),Nh=Me(Pr),hl,pl,Qn,bi=Y({},Pr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lu,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!==Qn&&(Qn&&e.type==="mousemove"?(hl=e.screenX-Qn.screenX,pl=e.screenY-Qn.screenY):pl=hl=0,Qn=e),hl)},movementY:function(e){return"movementY"in e?e.movementY:pl}}),lo=Me(bi),Th=Y({},bi,{dataTransfer:0}),Mh=Me(Th),jh=Y({},Pr,{relatedTarget:0}),ml=Me(jh),_h=Y({},jn,{animationName:0,elapsedTime:0,pseudoElement:0}),Dh=Me(_h),Lh=Y({},jn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ih=Me(Lh),Fh=Y({},jn,{data:0}),so=Me(Fh),Qh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zh={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"},Uh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ah(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Uh[e])?!!t[e]:!1}function lu(){return Ah}var qh=Y({},Pr,{key:function(e){if(e.key){var t=Qh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ei(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?zh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lu,charCode:function(e){return e.type==="keypress"?ei(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ei(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),bh=Me(qh),$h=Y({},bi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uo=Me($h),Hh=Y({},Pr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lu}),Bh=Me(Hh),Vh=Y({},jn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Kh=Me(Vh),Wh=Y({},bi,{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}),Gh=Me(Wh),Yh=[9,13,27,32],su=st&&"CompositionEvent"in window,Wn=null;st&&"documentMode"in document&&(Wn=document.documentMode);var Xh=st&&"TextEvent"in window&&!Wn,yc=st&&(!su||Wn&&8<Wn&&11>=Wn),oo=" ",ao=!1;function vc(e,t){switch(e){case"keyup":return Yh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tn=!1;function Zh(e,t){switch(e){case"compositionend":return gc(t);case"keypress":return t.which!==32?null:(ao=!0,oo);case"textInput":return e=t.data,e===oo&&ao?null:e;default:return null}}function Jh(e,t){if(tn)return e==="compositionend"||!su&&vc(e,t)?(e=mc(),Jr=ru=wt=null,tn=!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 yc&&t.locale!=="ko"?null:t.data;default:return null}}var ep={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 co(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ep[e.type]:t==="textarea"}function wc(e,t,n,r){Ya(r),t=yi(t,"onChange"),0<t.length&&(n=new iu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,cr=null;function tp(e){Mc(e,0)}function $i(e){var t=ln(e);if($a(t))return e}function np(e,t){if(e==="change")return t}var Sc=!1;if(st){var yl;if(st){var vl="oninput"in document;if(!vl){var fo=document.createElement("div");fo.setAttribute("oninput","return;"),vl=typeof fo.oninput=="function"}yl=vl}else yl=!1;Sc=yl&&(!document.documentMode||9<document.documentMode)}function ho(){Gn&&(Gn.detachEvent("onpropertychange",xc),cr=Gn=null)}function xc(e){if(e.propertyName==="value"&&$i(cr)){var t=[];wc(t,cr,e,Zs(e)),ec(tp,t)}}function rp(e,t,n){e==="focusin"?(ho(),Gn=t,cr=n,Gn.attachEvent("onpropertychange",xc)):e==="focusout"&&ho()}function ip(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $i(cr)}function lp(e,t){if(e==="click")return $i(t)}function sp(e,t){if(e==="input"||e==="change")return $i(t)}function up(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Be=typeof Object.is=="function"?Object.is:up;function fr(e,t){if(Be(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(!bl.call(t,i)||!Be(e[i],t[i]))return!1}return!0}function po(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function mo(e,t){var n=po(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=po(n)}}function Cc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ec(){for(var e=window,t=ai();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ai(e.document)}return t}function uu(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 op(e){var t=Ec(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Cc(n.ownerDocument.documentElement,n)){if(r!==null&&uu(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=mo(n,l);var s=mo(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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 ap=st&&"documentMode"in document&&11>=document.documentMode,nn=null,us=null,Yn=null,os=!1;function yo(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;os||nn==null||nn!==ai(r)||(r=nn,"selectionStart"in r&&uu(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}),Yn&&fr(Yn,r)||(Yn=r,r=yi(us,"onSelect"),0<r.length&&(t=new iu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=nn)))}function Ur(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var rn={animationend:Ur("Animation","AnimationEnd"),animationiteration:Ur("Animation","AnimationIteration"),animationstart:Ur("Animation","AnimationStart"),transitionend:Ur("Transition","TransitionEnd")},gl={},kc={};st&&(kc=document.createElement("div").style,"AnimationEvent"in window||(delete rn.animationend.animation,delete rn.animationiteration.animation,delete rn.animationstart.animation),"TransitionEvent"in window||delete rn.transitionend.transition);function Hi(e){if(gl[e])return gl[e];if(!rn[e])return e;var t=rn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in kc)return gl[e]=t[n];return e}var Pc=Hi("animationend"),Oc=Hi("animationiteration"),Rc=Hi("animationstart"),Nc=Hi("transitionend"),Tc=new Map,vo="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 Dt(e,t){Tc.set(e,t),Gt(t,[e])}for(var wl=0;wl<vo.length;wl++){var Sl=vo[wl],cp=Sl.toLowerCase(),fp=Sl[0].toUpperCase()+Sl.slice(1);Dt(cp,"on"+fp)}Dt(Pc,"onAnimationEnd");Dt(Oc,"onAnimationIteration");Dt(Rc,"onAnimationStart");Dt("dblclick","onDoubleClick");Dt("focusin","onFocus");Dt("focusout","onBlur");Dt(Nc,"onTransitionEnd");xn("onMouseEnter",["mouseout","mouseover"]);xn("onMouseLeave",["mouseout","mouseover"]);xn("onPointerEnter",["pointerout","pointerover"]);xn("onPointerLeave",["pointerout","pointerover"]);Gt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Gt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Gt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Gt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Gt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Gt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hn="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(" "),dp=new Set("cancel close invalid load scroll toggle".split(" ").concat(Hn));function go(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ch(r,t,void 0,e),e.currentTarget=null}function Mc(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 s=r.length-1;0<=s;s--){var u=r[s],o=u.instance,a=u.currentTarget;if(u=u.listener,o!==l&&i.isPropagationStopped())break e;go(i,u,a),l=o}else for(s=0;s<r.length;s++){if(u=r[s],o=u.instance,a=u.currentTarget,u=u.listener,o!==l&&i.isPropagationStopped())break e;go(i,u,a),l=o}}}if(fi)throw e=rs,fi=!1,rs=null,e}function $(e,t){var n=t[hs];n===void 0&&(n=t[hs]=new Set);var r=e+"__bubble";n.has(r)||(jc(t,e,2,!1),n.add(r))}function xl(e,t,n){var r=0;t&&(r|=4),jc(n,e,r,t)}var Ar="_reactListening"+Math.random().toString(36).slice(2);function dr(e){if(!e[Ar]){e[Ar]=!0,za.forEach(function(n){n!=="selectionchange"&&(dp.has(n)||xl(n,!1,e),xl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ar]||(t[Ar]=!0,xl("selectionchange",!1,t))}}function jc(e,t,n,r){switch(pc(t)){case 1:var i=Oh;break;case 4:i=Rh;break;default:i=nu}n=i.bind(null,t,n,e),i=void 0,!ns||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 Cl(e,t,n,r,i){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var u=r.stateNode.containerInfo;if(u===i||u.nodeType===8&&u.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var o=s.tag;if((o===3||o===4)&&(o=s.stateNode.containerInfo,o===i||o.nodeType===8&&o.parentNode===i))return;s=s.return}for(;u!==null;){if(s=Ut(u),s===null)return;if(o=s.tag,o===5||o===6){r=l=s;continue e}u=u.parentNode}}r=r.return}ec(function(){var a=l,h=Zs(n),m=[];e:{var p=Tc.get(e);if(p!==void 0){var v=iu,g=e;switch(e){case"keypress":if(ei(n)===0)break e;case"keydown":case"keyup":v=bh;break;case"focusin":g="focus",v=ml;break;case"focusout":g="blur",v=ml;break;case"beforeblur":case"afterblur":v=ml;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=lo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=Mh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=Bh;break;case Pc:case Oc:case Rc:v=Dh;break;case Nc:v=Kh;break;case"scroll":v=Nh;break;case"wheel":v=Gh;break;case"copy":case"cut":case"paste":v=Ih;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=uo}var y=(t&4)!==0,k=!y&&e==="scroll",f=y?p!==null?p+"Capture":null:p;y=[];for(var c=a,d;c!==null;){d=c;var C=d.stateNode;if(d.tag===5&&C!==null&&(d=C,f!==null&&(C=sr(c,f),C!=null&&y.push(hr(c,C,d)))),k)break;c=c.return}0<y.length&&(p=new v(p,g,null,n,h),m.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",p&&n!==es&&(g=n.relatedTarget||n.fromElement)&&(Ut(g)||g[ut]))break e;if((v||p)&&(p=h.window===h?h:(p=h.ownerDocument)?p.defaultView||p.parentWindow:window,v?(g=n.relatedTarget||n.toElement,v=a,g=g?Ut(g):null,g!==null&&(k=Yt(g),g!==k||g.tag!==5&&g.tag!==6)&&(g=null)):(v=null,g=a),v!==g)){if(y=lo,C="onMouseLeave",f="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(y=uo,C="onPointerLeave",f="onPointerEnter",c="pointer"),k=v==null?p:ln(v),d=g==null?p:ln(g),p=new y(C,c+"leave",v,n,h),p.target=k,p.relatedTarget=d,C=null,Ut(h)===a&&(y=new y(f,c+"enter",g,n,h),y.target=d,y.relatedTarget=k,C=y),k=C,v&&g)t:{for(y=v,f=g,c=0,d=y;d;d=Zt(d))c++;for(d=0,C=f;C;C=Zt(C))d++;for(;0<c-d;)y=Zt(y),c--;for(;0<d-c;)f=Zt(f),d--;for(;c--;){if(y===f||f!==null&&y===f.alternate)break t;y=Zt(y),f=Zt(f)}y=null}else y=null;v!==null&&wo(m,p,v,y,!1),g!==null&&k!==null&&wo(m,k,g,y,!0)}}e:{if(p=a?ln(a):window,v=p.nodeName&&p.nodeName.toLowerCase(),v==="select"||v==="input"&&p.type==="file")var x=np;else if(co(p))if(Sc)x=sp;else{x=ip;var S=rp}else(v=p.nodeName)&&v.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(x=lp);if(x&&(x=x(e,a))){wc(m,x,n,h);break e}S&&S(e,p,a),e==="focusout"&&(S=p._wrapperState)&&S.controlled&&p.type==="number"&&Gl(p,"number",p.value)}switch(S=a?ln(a):window,e){case"focusin":(co(S)||S.contentEditable==="true")&&(nn=S,us=a,Yn=null);break;case"focusout":Yn=us=nn=null;break;case"mousedown":os=!0;break;case"contextmenu":case"mouseup":case"dragend":os=!1,yo(m,n,h);break;case"selectionchange":if(ap)break;case"keydown":case"keyup":yo(m,n,h)}var w;if(su)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else tn?vc(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(yc&&n.locale!=="ko"&&(tn||E!=="onCompositionStart"?E==="onCompositionEnd"&&tn&&(w=mc()):(wt=h,ru="value"in wt?wt.value:wt.textContent,tn=!0)),S=yi(a,E),0<S.length&&(E=new so(E,e,null,n,h),m.push({event:E,listeners:S}),w?E.data=w:(w=gc(n),w!==null&&(E.data=w)))),(w=Xh?Zh(e,n):Jh(e,n))&&(a=yi(a,"onBeforeInput"),0<a.length&&(h=new so("onBeforeInput","beforeinput",null,n,h),m.push({event:h,listeners:a}),h.data=w))}Mc(m,t)})}function hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function yi(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=sr(e,n),l!=null&&r.unshift(hr(e,l,i)),l=sr(e,t),l!=null&&r.push(hr(e,l,i))),e=e.return}return r}function Zt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function wo(e,t,n,r,i){for(var l=t._reactName,s=[];n!==null&&n!==r;){var u=n,o=u.alternate,a=u.stateNode;if(o!==null&&o===r)break;u.tag===5&&a!==null&&(u=a,i?(o=sr(n,l),o!=null&&s.unshift(hr(n,o,u))):i||(o=sr(n,l),o!=null&&s.push(hr(n,o,u)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var hp=/\r\n?/g,pp=/\u0000|\uFFFD/g;function So(e){return(typeof e=="string"?e:""+e).replace(hp,`
38
- `).replace(pp,"")}function qr(e,t,n){if(t=So(t),So(e)!==t&&n)throw Error(O(425))}function vi(){}var as=null,cs=null;function fs(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 ds=typeof setTimeout=="function"?setTimeout:void 0,mp=typeof clearTimeout=="function"?clearTimeout:void 0,xo=typeof Promise=="function"?Promise:void 0,yp=typeof queueMicrotask=="function"?queueMicrotask:typeof xo<"u"?function(e){return xo.resolve(null).then(e).catch(vp)}:ds;function vp(e){setTimeout(function(){throw e})}function El(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),ar(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);ar(t)}function Pt(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 Co(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 _n=Math.random().toString(36).slice(2),Ye="__reactFiber$"+_n,pr="__reactProps$"+_n,ut="__reactContainer$"+_n,hs="__reactEvents$"+_n,gp="__reactListeners$"+_n,wp="__reactHandles$"+_n;function Ut(e){var t=e[Ye];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ut]||n[Ye]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Co(e);e!==null;){if(n=e[Ye])return n;e=Co(e)}return t}e=n,n=e.parentNode}return null}function Or(e){return e=e[Ye]||e[ut],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ln(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function Bi(e){return e[pr]||null}var ps=[],sn=-1;function Lt(e){return{current:e}}function B(e){0>sn||(e.current=ps[sn],ps[sn]=null,sn--)}function b(e,t){sn++,ps[sn]=e.current,e.current=t}var _t={},he=Lt(_t),Se=Lt(!1),Ht=_t;function Cn(e,t){var n=e.type.contextTypes;if(!n)return _t;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 xe(e){return e=e.childContextTypes,e!=null}function gi(){B(Se),B(he)}function Eo(e,t,n){if(he.current!==_t)throw Error(O(168));b(he,t),b(Se,n)}function _c(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(O(108,rh(e)||"Unknown",i));return Y({},n,r)}function wi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_t,Ht=he.current,b(he,e),b(Se,Se.current),!0}function ko(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=_c(e,t,Ht),r.__reactInternalMemoizedMergedChildContext=e,B(Se),B(he),b(he,e)):B(Se),b(Se,n)}var nt=null,Vi=!1,kl=!1;function Dc(e){nt===null?nt=[e]:nt.push(e)}function Sp(e){Vi=!0,Dc(e)}function It(){if(!kl&&nt!==null){kl=!0;var e=0,t=U;try{var n=nt;for(U=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}nt=null,Vi=!1}catch(i){throw nt!==null&&(nt=nt.slice(e+1)),ic(Js,It),i}finally{U=t,kl=!1}}return null}var un=[],on=0,Si=null,xi=0,De=[],Le=0,Bt=null,rt=1,it="";function Qt(e,t){un[on++]=xi,un[on++]=Si,Si=e,xi=t}function Lc(e,t,n){De[Le++]=rt,De[Le++]=it,De[Le++]=Bt,Bt=e;var r=rt;e=it;var i=32-$e(r)-1;r&=~(1<<i),n+=1;var l=32-$e(t)+i;if(30<l){var s=i-i%5;l=(r&(1<<s)-1).toString(32),r>>=s,i-=s,rt=1<<32-$e(t)+i|n<<i|r,it=l+e}else rt=1<<l|n<<i|r,it=e}function ou(e){e.return!==null&&(Qt(e,1),Lc(e,1,0))}function au(e){for(;e===Si;)Si=un[--on],un[on]=null,xi=un[--on],un[on]=null;for(;e===Bt;)Bt=De[--Le],De[Le]=null,it=De[--Le],De[Le]=null,rt=De[--Le],De[Le]=null}var Re=null,Oe=null,V=!1,be=null;function Ic(e,t){var n=Ie(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 Po(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,Re=e,Oe=Pt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Re=e,Oe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Bt!==null?{id:rt,overflow:it}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ie(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Re=e,Oe=null,!0):!1;default:return!1}}function ms(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ys(e){if(V){var t=Oe;if(t){var n=t;if(!Po(e,t)){if(ms(e))throw Error(O(418));t=Pt(n.nextSibling);var r=Re;t&&Po(e,t)?Ic(r,n):(e.flags=e.flags&-4097|2,V=!1,Re=e)}}else{if(ms(e))throw Error(O(418));e.flags=e.flags&-4097|2,V=!1,Re=e}}}function Oo(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Re=e}function br(e){if(e!==Re)return!1;if(!V)return Oo(e),V=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!fs(e.type,e.memoizedProps)),t&&(t=Oe)){if(ms(e))throw Fc(),Error(O(418));for(;t;)Ic(e,t),t=Pt(t.nextSibling)}if(Oo(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Oe=Pt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Oe=null}}else Oe=Re?Pt(e.stateNode.nextSibling):null;return!0}function Fc(){for(var e=Oe;e;)e=Pt(e.nextSibling)}function En(){Oe=Re=null,V=!1}function cu(e){be===null?be=[e]:be.push(e)}var xp=ct.ReactCurrentBatchConfig;function zn(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(O(309));var r=n.stateNode}if(!r)throw Error(O(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(s){var u=i.refs;s===null?delete u[l]:u[l]=s},t._stringRef=l,t)}if(typeof e!="string")throw Error(O(284));if(!n._owner)throw Error(O(290,e))}return e}function $r(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ro(e){var t=e._init;return t(e._payload)}function Qc(e){function t(f,c){if(e){var d=f.deletions;d===null?(f.deletions=[c],f.flags|=16):d.push(c)}}function n(f,c){if(!e)return null;for(;c!==null;)t(f,c),c=c.sibling;return null}function r(f,c){for(f=new Map;c!==null;)c.key!==null?f.set(c.key,c):f.set(c.index,c),c=c.sibling;return f}function i(f,c){return f=Tt(f,c),f.index=0,f.sibling=null,f}function l(f,c,d){return f.index=d,e?(d=f.alternate,d!==null?(d=d.index,d<c?(f.flags|=2,c):d):(f.flags|=2,c)):(f.flags|=1048576,c)}function s(f){return e&&f.alternate===null&&(f.flags|=2),f}function u(f,c,d,C){return c===null||c.tag!==6?(c=jl(d,f.mode,C),c.return=f,c):(c=i(c,d),c.return=f,c)}function o(f,c,d,C){var x=d.type;return x===en?h(f,c,d.props.children,C,d.key):c!==null&&(c.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===pt&&Ro(x)===c.type)?(C=i(c,d.props),C.ref=zn(f,c,d),C.return=f,C):(C=ui(d.type,d.key,d.props,null,f.mode,C),C.ref=zn(f,c,d),C.return=f,C)}function a(f,c,d,C){return c===null||c.tag!==4||c.stateNode.containerInfo!==d.containerInfo||c.stateNode.implementation!==d.implementation?(c=_l(d,f.mode,C),c.return=f,c):(c=i(c,d.children||[]),c.return=f,c)}function h(f,c,d,C,x){return c===null||c.tag!==7?(c=$t(d,f.mode,C,x),c.return=f,c):(c=i(c,d),c.return=f,c)}function m(f,c,d){if(typeof c=="string"&&c!==""||typeof c=="number")return c=jl(""+c,f.mode,d),c.return=f,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case _r:return d=ui(c.type,c.key,c.props,null,f.mode,d),d.ref=zn(f,null,c),d.return=f,d;case Jt:return c=_l(c,f.mode,d),c.return=f,c;case pt:var C=c._init;return m(f,C(c._payload),d)}if(bn(c)||Dn(c))return c=$t(c,f.mode,d,null),c.return=f,c;$r(f,c)}return null}function p(f,c,d,C){var x=c!==null?c.key:null;if(typeof d=="string"&&d!==""||typeof d=="number")return x!==null?null:u(f,c,""+d,C);if(typeof d=="object"&&d!==null){switch(d.$$typeof){case _r:return d.key===x?o(f,c,d,C):null;case Jt:return d.key===x?a(f,c,d,C):null;case pt:return x=d._init,p(f,c,x(d._payload),C)}if(bn(d)||Dn(d))return x!==null?null:h(f,c,d,C,null);$r(f,d)}return null}function v(f,c,d,C,x){if(typeof C=="string"&&C!==""||typeof C=="number")return f=f.get(d)||null,u(c,f,""+C,x);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case _r:return f=f.get(C.key===null?d:C.key)||null,o(c,f,C,x);case Jt:return f=f.get(C.key===null?d:C.key)||null,a(c,f,C,x);case pt:var S=C._init;return v(f,c,d,S(C._payload),x)}if(bn(C)||Dn(C))return f=f.get(d)||null,h(c,f,C,x,null);$r(c,C)}return null}function g(f,c,d,C){for(var x=null,S=null,w=c,E=c=0,M=null;w!==null&&E<d.length;E++){w.index>E?(M=w,w=null):M=w.sibling;var N=p(f,w,d[E],C);if(N===null){w===null&&(w=M);break}e&&w&&N.alternate===null&&t(f,w),c=l(N,c,E),S===null?x=N:S.sibling=N,S=N,w=M}if(E===d.length)return n(f,w),V&&Qt(f,E),x;if(w===null){for(;E<d.length;E++)w=m(f,d[E],C),w!==null&&(c=l(w,c,E),S===null?x=w:S.sibling=w,S=w);return V&&Qt(f,E),x}for(w=r(f,w);E<d.length;E++)M=v(w,f,E,d[E],C),M!==null&&(e&&M.alternate!==null&&w.delete(M.key===null?E:M.key),c=l(M,c,E),S===null?x=M:S.sibling=M,S=M);return e&&w.forEach(function(A){return t(f,A)}),V&&Qt(f,E),x}function y(f,c,d,C){var x=Dn(d);if(typeof x!="function")throw Error(O(150));if(d=x.call(d),d==null)throw Error(O(151));for(var S=x=null,w=c,E=c=0,M=null,N=d.next();w!==null&&!N.done;E++,N=d.next()){w.index>E?(M=w,w=null):M=w.sibling;var A=p(f,w,N.value,C);if(A===null){w===null&&(w=M);break}e&&w&&A.alternate===null&&t(f,w),c=l(A,c,E),S===null?x=A:S.sibling=A,S=A,w=M}if(N.done)return n(f,w),V&&Qt(f,E),x;if(w===null){for(;!N.done;E++,N=d.next())N=m(f,N.value,C),N!==null&&(c=l(N,c,E),S===null?x=N:S.sibling=N,S=N);return V&&Qt(f,E),x}for(w=r(f,w);!N.done;E++,N=d.next())N=v(w,f,E,N.value,C),N!==null&&(e&&N.alternate!==null&&w.delete(N.key===null?E:N.key),c=l(N,c,E),S===null?x=N:S.sibling=N,S=N);return e&&w.forEach(function(ae){return t(f,ae)}),V&&Qt(f,E),x}function k(f,c,d,C){if(typeof d=="object"&&d!==null&&d.type===en&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case _r:e:{for(var x=d.key,S=c;S!==null;){if(S.key===x){if(x=d.type,x===en){if(S.tag===7){n(f,S.sibling),c=i(S,d.props.children),c.return=f,f=c;break e}}else if(S.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===pt&&Ro(x)===S.type){n(f,S.sibling),c=i(S,d.props),c.ref=zn(f,S,d),c.return=f,f=c;break e}n(f,S);break}else t(f,S);S=S.sibling}d.type===en?(c=$t(d.props.children,f.mode,C,d.key),c.return=f,f=c):(C=ui(d.type,d.key,d.props,null,f.mode,C),C.ref=zn(f,c,d),C.return=f,f=C)}return s(f);case Jt:e:{for(S=d.key;c!==null;){if(c.key===S)if(c.tag===4&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){n(f,c.sibling),c=i(c,d.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=_l(d,f.mode,C),c.return=f,f=c}return s(f);case pt:return S=d._init,k(f,c,S(d._payload),C)}if(bn(d))return g(f,c,d,C);if(Dn(d))return y(f,c,d,C);$r(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,c!==null&&c.tag===6?(n(f,c.sibling),c=i(c,d),c.return=f,f=c):(n(f,c),c=jl(d,f.mode,C),c.return=f,f=c),s(f)):n(f,c)}return k}var kn=Qc(!0),zc=Qc(!1),Ci=Lt(null),Ei=null,an=null,fu=null;function du(){fu=an=Ei=null}function hu(e){var t=Ci.current;B(Ci),e._currentValue=t}function vs(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 wn(e,t){Ei=e,fu=an=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(we=!0),e.firstContext=null)}function Qe(e){var t=e._currentValue;if(fu!==e)if(e={context:e,memoizedValue:t,next:null},an===null){if(Ei===null)throw Error(O(308));an=e,Ei.dependencies={lanes:0,firstContext:e}}else an=an.next=e;return t}var At=null;function pu(e){At===null?At=[e]:At.push(e)}function Uc(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,pu(t)):(n.next=i.next,i.next=n),t.interleaved=n,ot(e,r)}function ot(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 mt=!1;function mu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ac(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 lt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ot(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,z&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,ot(e,n)}return i=r.interleaved,i===null?(t.next=t,pu(r)):(t.next=i.next,i.next=t),r.interleaved=t,ot(e,n)}function ti(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,eu(e,n)}}function No(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 s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=s:l=l.next=s,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 ki(e,t,n,r){var i=e.updateQueue;mt=!1;var l=i.firstBaseUpdate,s=i.lastBaseUpdate,u=i.shared.pending;if(u!==null){i.shared.pending=null;var o=u,a=o.next;o.next=null,s===null?l=a:s.next=a,s=o;var h=e.alternate;h!==null&&(h=h.updateQueue,u=h.lastBaseUpdate,u!==s&&(u===null?h.firstBaseUpdate=a:u.next=a,h.lastBaseUpdate=o))}if(l!==null){var m=i.baseState;s=0,h=a=o=null,u=l;do{var p=u.lane,v=u.eventTime;if((r&p)===p){h!==null&&(h=h.next={eventTime:v,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var g=e,y=u;switch(p=t,v=n,y.tag){case 1:if(g=y.payload,typeof g=="function"){m=g.call(v,m,p);break e}m=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,p=typeof g=="function"?g.call(v,m,p):g,p==null)break e;m=Y({},m,p);break e;case 2:mt=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[u]:p.push(u))}else v={eventTime:v,lane:p,tag:u.tag,payload:u.payload,callback:u.callback,next:null},h===null?(a=h=v,o=m):h=h.next=v,s|=p;if(u=u.next,u===null){if(u=i.shared.pending,u===null)break;p=u,u=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(h===null&&(o=m),i.baseState=o,i.firstBaseUpdate=a,i.lastBaseUpdate=h,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);Kt|=s,e.lanes=s,e.memoizedState=m}}function To(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(O(191,i));i.call(r)}}}var Rr={},et=Lt(Rr),mr=Lt(Rr),yr=Lt(Rr);function qt(e){if(e===Rr)throw Error(O(174));return e}function yu(e,t){switch(b(yr,t),b(mr,e),b(et,Rr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Xl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Xl(t,e)}B(et),b(et,t)}function Pn(){B(et),B(mr),B(yr)}function qc(e){qt(yr.current);var t=qt(et.current),n=Xl(t,e.type);t!==n&&(b(mr,e),b(et,n))}function vu(e){mr.current===e&&(B(et),B(mr))}var W=Lt(0);function Pi(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 Pl=[];function gu(){for(var e=0;e<Pl.length;e++)Pl[e]._workInProgressVersionPrimary=null;Pl.length=0}var ni=ct.ReactCurrentDispatcher,Ol=ct.ReactCurrentBatchConfig,Vt=0,G=null,ee=null,re=null,Oi=!1,Xn=!1,vr=0,Cp=0;function ce(){throw Error(O(321))}function wu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Be(e[n],t[n]))return!1;return!0}function Su(e,t,n,r,i,l){if(Vt=l,G=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ni.current=e===null||e.memoizedState===null?Op:Rp,e=n(r,i),Xn){l=0;do{if(Xn=!1,vr=0,25<=l)throw Error(O(301));l+=1,re=ee=null,t.updateQueue=null,ni.current=Np,e=n(r,i)}while(Xn)}if(ni.current=Ri,t=ee!==null&&ee.next!==null,Vt=0,re=ee=G=null,Oi=!1,t)throw Error(O(300));return e}function xu(){var e=vr!==0;return vr=0,e}function Ge(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return re===null?G.memoizedState=re=e:re=re.next=e,re}function ze(){if(ee===null){var e=G.alternate;e=e!==null?e.memoizedState:null}else e=ee.next;var t=re===null?G.memoizedState:re.next;if(t!==null)re=t,ee=e;else{if(e===null)throw Error(O(310));ee=e,e={memoizedState:ee.memoizedState,baseState:ee.baseState,baseQueue:ee.baseQueue,queue:ee.queue,next:null},re===null?G.memoizedState=re=e:re=re.next=e}return re}function gr(e,t){return typeof t=="function"?t(e):t}function Rl(e){var t=ze(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=ee,i=r.baseQueue,l=n.pending;if(l!==null){if(i!==null){var s=i.next;i.next=l.next,l.next=s}r.baseQueue=i=l,n.pending=null}if(i!==null){l=i.next,r=r.baseState;var u=s=null,o=null,a=l;do{var h=a.lane;if((Vt&h)===h)o!==null&&(o=o.next={lane:0,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null}),r=a.hasEagerState?a.eagerState:e(r,a.action);else{var m={lane:h,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null};o===null?(u=o=m,s=r):o=o.next=m,G.lanes|=h,Kt|=h}a=a.next}while(a!==null&&a!==l);o===null?s=r:o.next=u,Be(r,t.memoizedState)||(we=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=o,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do l=i.lane,G.lanes|=l,Kt|=l,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Nl(e){var t=ze(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,l=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do l=e(l,s.action),s=s.next;while(s!==i);Be(l,t.memoizedState)||(we=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function bc(){}function $c(e,t){var n=G,r=ze(),i=t(),l=!Be(r.memoizedState,i);if(l&&(r.memoizedState=i,we=!0),r=r.queue,Cu(Vc.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||re!==null&&re.memoizedState.tag&1){if(n.flags|=2048,wr(9,Bc.bind(null,n,r,i,t),void 0,null),ie===null)throw Error(O(349));Vt&30||Hc(n,t,i)}return i}function Hc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=G.updateQueue,t===null?(t={lastEffect:null,stores:null},G.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Bc(e,t,n,r){t.value=n,t.getSnapshot=r,Kc(t)&&Wc(e)}function Vc(e,t,n){return n(function(){Kc(t)&&Wc(e)})}function Kc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Be(e,n)}catch{return!0}}function Wc(e){var t=ot(e,1);t!==null&&He(t,e,1,-1)}function Mo(e){var t=Ge();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:e},t.queue=e,e=e.dispatch=Pp.bind(null,G,e),[t.memoizedState,e]}function wr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=G.updateQueue,t===null?(t={lastEffect:null,stores:null},G.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 Gc(){return ze().memoizedState}function ri(e,t,n,r){var i=Ge();G.flags|=e,i.memoizedState=wr(1|t,n,void 0,r===void 0?null:r)}function Ki(e,t,n,r){var i=ze();r=r===void 0?null:r;var l=void 0;if(ee!==null){var s=ee.memoizedState;if(l=s.destroy,r!==null&&wu(r,s.deps)){i.memoizedState=wr(t,n,l,r);return}}G.flags|=e,i.memoizedState=wr(1|t,n,l,r)}function jo(e,t){return ri(8390656,8,e,t)}function Cu(e,t){return Ki(2048,8,e,t)}function Yc(e,t){return Ki(4,2,e,t)}function Xc(e,t){return Ki(4,4,e,t)}function Zc(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 Jc(e,t,n){return n=n!=null?n.concat([e]):null,Ki(4,4,Zc.bind(null,t,e),n)}function Eu(){}function ef(e,t){var n=ze();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&wu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function tf(e,t){var n=ze();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&wu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function nf(e,t,n){return Vt&21?(Be(n,t)||(n=uc(),G.lanes|=n,Kt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,we=!0),e.memoizedState=n)}function Ep(e,t){var n=U;U=n!==0&&4>n?n:4,e(!0);var r=Ol.transition;Ol.transition={};try{e(!1),t()}finally{U=n,Ol.transition=r}}function rf(){return ze().memoizedState}function kp(e,t,n){var r=Nt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},lf(e))sf(t,n);else if(n=Uc(e,t,n,r),n!==null){var i=me();He(n,e,r,i),uf(n,t,r)}}function Pp(e,t,n){var r=Nt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(lf(e))sf(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var s=t.lastRenderedState,u=l(s,n);if(i.hasEagerState=!0,i.eagerState=u,Be(u,s)){var o=t.interleaved;o===null?(i.next=i,pu(t)):(i.next=o.next,o.next=i),t.interleaved=i;return}}catch{}finally{}n=Uc(e,t,i,r),n!==null&&(i=me(),He(n,e,r,i),uf(n,t,r))}}function lf(e){var t=e.alternate;return e===G||t!==null&&t===G}function sf(e,t){Xn=Oi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function uf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,eu(e,n)}}var Ri={readContext:Qe,useCallback:ce,useContext:ce,useEffect:ce,useImperativeHandle:ce,useInsertionEffect:ce,useLayoutEffect:ce,useMemo:ce,useReducer:ce,useRef:ce,useState:ce,useDebugValue:ce,useDeferredValue:ce,useTransition:ce,useMutableSource:ce,useSyncExternalStore:ce,useId:ce,unstable_isNewReconciler:!1},Op={readContext:Qe,useCallback:function(e,t){return Ge().memoizedState=[e,t===void 0?null:t],e},useContext:Qe,useEffect:jo,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ri(4194308,4,Zc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ri(4194308,4,e,t)},useInsertionEffect:function(e,t){return ri(4,2,e,t)},useMemo:function(e,t){var n=Ge();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ge();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=kp.bind(null,G,e),[r.memoizedState,e]},useRef:function(e){var t=Ge();return e={current:e},t.memoizedState=e},useState:Mo,useDebugValue:Eu,useDeferredValue:function(e){return Ge().memoizedState=e},useTransition:function(){var e=Mo(!1),t=e[0];return e=Ep.bind(null,e[1]),Ge().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=G,i=Ge();if(V){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),ie===null)throw Error(O(349));Vt&30||Hc(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,jo(Vc.bind(null,r,l,e),[e]),r.flags|=2048,wr(9,Bc.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=Ge(),t=ie.identifierPrefix;if(V){var n=it,r=rt;n=(r&~(1<<32-$e(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=vr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Cp++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Rp={readContext:Qe,useCallback:ef,useContext:Qe,useEffect:Cu,useImperativeHandle:Jc,useInsertionEffect:Yc,useLayoutEffect:Xc,useMemo:tf,useReducer:Rl,useRef:Gc,useState:function(){return Rl(gr)},useDebugValue:Eu,useDeferredValue:function(e){var t=ze();return nf(t,ee.memoizedState,e)},useTransition:function(){var e=Rl(gr)[0],t=ze().memoizedState;return[e,t]},useMutableSource:bc,useSyncExternalStore:$c,useId:rf,unstable_isNewReconciler:!1},Np={readContext:Qe,useCallback:ef,useContext:Qe,useEffect:Cu,useImperativeHandle:Jc,useInsertionEffect:Yc,useLayoutEffect:Xc,useMemo:tf,useReducer:Nl,useRef:Gc,useState:function(){return Nl(gr)},useDebugValue:Eu,useDeferredValue:function(e){var t=ze();return ee===null?t.memoizedState=e:nf(t,ee.memoizedState,e)},useTransition:function(){var e=Nl(gr)[0],t=ze().memoizedState;return[e,t]},useMutableSource:bc,useSyncExternalStore:$c,useId:rf,unstable_isNewReconciler:!1};function Ae(e,t){if(e&&e.defaultProps){t=Y({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function gs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Y({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Wi={isMounted:function(e){return(e=e._reactInternals)?Yt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=me(),i=Nt(e),l=lt(r,i);l.payload=t,n!=null&&(l.callback=n),t=Ot(e,l,i),t!==null&&(He(t,e,i,r),ti(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=me(),i=Nt(e),l=lt(r,i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=Ot(e,l,i),t!==null&&(He(t,e,i,r),ti(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=me(),r=Nt(e),i=lt(n,r);i.tag=2,t!=null&&(i.callback=t),t=Ot(e,i,r),t!==null&&(He(t,e,r,n),ti(t,e,r))}};function _o(e,t,n,r,i,l,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,s):t.prototype&&t.prototype.isPureReactComponent?!fr(n,r)||!fr(i,l):!0}function of(e,t,n){var r=!1,i=_t,l=t.contextType;return typeof l=="object"&&l!==null?l=Qe(l):(i=xe(t)?Ht:he.current,r=t.contextTypes,l=(r=r!=null)?Cn(e,i):_t),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Wi,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),t}function Do(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&&Wi.enqueueReplaceState(t,t.state,null)}function ws(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},mu(e);var l=t.contextType;typeof l=="object"&&l!==null?i.context=Qe(l):(l=xe(t)?Ht:he.current,i.context=Cn(e,l)),i.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(gs(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&&Wi.enqueueReplaceState(i,i.state,null),ki(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function On(e,t){try{var n="",r=t;do n+=nh(r),r=r.return;while(r);var i=n}catch(l){i=`
37
+ `+i[s].replace(" at new "," at ");return e.displayName&&o.includes("<anonymous>")&&(o=o.replace("<anonymous>",e.displayName)),o}while(1<=s&&0<=u);break}}}finally{al=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?bn(e):""}function rh(e){switch(e.tag){case 5:return bn(e.type);case 16:return bn("Lazy");case 13:return bn("Suspense");case 19:return bn("SuspenseList");case 0:case 2:case 15:return e=cl(e.type,!1),e;case 11:return e=cl(e.type.render,!1),e;case 1:return e=cl(e.type,!0),e;default:return""}}function Vl(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 nn:return"Fragment";case tn:return"Portal";case $l:return"Profiler";case Gs:return"StrictMode";case Hl:return"Suspense";case Bl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ba:return(e.displayName||"Context")+".Consumer";case Aa:return(e._context.displayName||"Context")+".Provider";case Ys:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Xs:return t=e.displayName||null,t!==null?t:Vl(e.type)||"Memo";case yt:t=e._payload,e=e._init;try{return Vl(e(t))}catch{}}return null}function ih(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 Vl(t);case 8:return t===Gs?"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 It(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $a(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lh(e){var t=$a(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(s){r=""+s,l.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ir(e){e._valueTracker||(e._valueTracker=lh(e))}function Ha(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$a(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ai(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 Kl(e,t){var n=t.checked;return Y({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Gu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=It(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 Ba(e,t){t=t.checked,t!=null&&Ws(e,"checked",t,!1)}function Wl(e,t){Ba(e,t);var n=It(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")?Gl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Gl(e,t.type,It(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Yu(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 Gl(e,t,n){(t!=="number"||ai(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var qn=Array.isArray;function yn(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=""+It(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 Yl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return Y({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Xu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(O(92));if(qn(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:It(n)}}function Va(e,t){var n=It(t.value),r=It(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 Zu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ka(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 Xl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ka(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Lr,Wa=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(Lr=Lr||document.createElement("div"),Lr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Lr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function lr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vn={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},sh=["Webkit","ms","Moz","O"];Object.keys(Vn).forEach(function(e){sh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Vn[t]=Vn[e]})});function Ga(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Vn.hasOwnProperty(e)&&Vn[e]?(""+t).trim():t+"px"}function Ya(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Ga(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var uh=Y({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 Zl(e,t){if(t){if(uh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function Jl(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 es=null;function Zs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ts=null,vn=null,gn=null;function Ju(e){if(e=Or(e)){if(typeof ts!="function")throw Error(O(280));var t=e.stateNode;t&&(t=Bi(t),ts(e.stateNode,e.type,t))}}function Xa(e){vn?gn?gn.push(e):gn=[e]:vn=e}function Za(){if(vn){var e=vn,t=gn;if(gn=vn=null,Ju(e),t)for(e=0;e<t.length;e++)Ju(t[e])}}function Ja(e,t){return e(t)}function ec(){}var fl=!1;function tc(e,t,n){if(fl)return e(t,n);fl=!0;try{return Ja(e,t,n)}finally{fl=!1,(vn!==null||gn!==null)&&(ec(),Za())}}function sr(e,t){var n=e.stateNode;if(n===null)return null;var r=Bi(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(O(231,t,typeof n));return n}var ns=!1;if(ot)try{var Ln={};Object.defineProperty(Ln,"passive",{get:function(){ns=!0}}),window.addEventListener("test",Ln,Ln),window.removeEventListener("test",Ln,Ln)}catch{ns=!1}function oh(e,t,n,r,i,l,s,u,o){var a=Array.prototype.slice.call(arguments,3);try{t.apply(n,a)}catch(h){this.onError(h)}}var Kn=!1,ci=null,fi=!1,rs=null,ah={onError:function(e){Kn=!0,ci=e}};function ch(e,t,n,r,i,l,s,u,o){Kn=!1,ci=null,oh.apply(ah,arguments)}function fh(e,t,n,r,i,l,s,u,o){if(ch.apply(this,arguments),Kn){if(Kn){var a=ci;Kn=!1,ci=null}else throw Error(O(198));fi||(fi=!0,rs=a)}}function Zt(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 nc(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 eo(e){if(Zt(e)!==e)throw Error(O(188))}function dh(e){var t=e.alternate;if(!t){if(t=Zt(e),t===null)throw Error(O(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 eo(i),e;if(l===r)return eo(i),t;l=l.sibling}throw Error(O(188))}if(n.return!==r.return)n=i,r=l;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=l;break}if(u===r){s=!0,r=i,n=l;break}u=u.sibling}if(!s){for(u=l.child;u;){if(u===n){s=!0,n=l,r=i;break}if(u===r){s=!0,r=l,n=i;break}u=u.sibling}if(!s)throw Error(O(189))}}if(n.alternate!==r)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?e:t}function rc(e){return e=dh(e),e!==null?ic(e):null}function ic(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ic(e);if(t!==null)return t;e=e.sibling}return null}var lc=Ne.unstable_scheduleCallback,to=Ne.unstable_cancelCallback,hh=Ne.unstable_shouldYield,ph=Ne.unstable_requestPaint,Z=Ne.unstable_now,mh=Ne.unstable_getCurrentPriorityLevel,Js=Ne.unstable_ImmediatePriority,sc=Ne.unstable_UserBlockingPriority,di=Ne.unstable_NormalPriority,yh=Ne.unstable_LowPriority,uc=Ne.unstable_IdlePriority,bi=null,Je=null;function vh(e){if(Je&&typeof Je.onCommitFiberRoot=="function")try{Je.onCommitFiberRoot(bi,e,void 0,(e.current.flags&128)===128)}catch{}}var $e=Math.clz32?Math.clz32:Sh,gh=Math.log,wh=Math.LN2;function Sh(e){return e>>>=0,e===0?32:31-(gh(e)/wh|0)|0}var Dr=64,Fr=4194304;function $n(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 hi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,s=n&268435455;if(s!==0){var u=s&~i;u!==0?r=$n(u):(l&=s,l!==0&&(r=$n(l)))}else s=n&~i,s!==0?r=$n(s):l!==0&&(r=$n(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-$e(t),i=1<<n,r|=e[n],t&=~i;return r}function xh(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 Ch(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var s=31-$e(l),u=1<<s,o=i[s];o===-1?(!(u&n)||u&r)&&(i[s]=xh(u,t)):o<=t&&(e.expiredLanes|=u),l&=~u}}function is(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function oc(){var e=Dr;return Dr<<=1,!(Dr&4194240)&&(Dr=64),e}function dl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function kr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$e(t),e[t]=n}function Eh(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-$e(n),l=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~l}}function eu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-$e(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var U=0;function ac(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var cc,tu,fc,dc,hc,ls=!1,zr=[],kt=null,Pt=null,Ot=null,ur=new Map,or=new Map,wt=[],kh="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 no(e,t){switch(e){case"focusin":case"focusout":kt=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":Ot=null;break;case"pointerover":case"pointerout":ur.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":or.delete(t.pointerId)}}function Dn(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=Or(t),t!==null&&tu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ph(e,t,n,r,i){switch(t){case"focusin":return kt=Dn(kt,e,t,n,r,i),!0;case"dragenter":return Pt=Dn(Pt,e,t,n,r,i),!0;case"mouseover":return Ot=Dn(Ot,e,t,n,r,i),!0;case"pointerover":var l=i.pointerId;return ur.set(l,Dn(ur.get(l)||null,e,t,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,or.set(l,Dn(or.get(l)||null,e,t,n,r,i)),!0}return!1}function pc(e){var t=bt(e.target);if(t!==null){var n=Zt(t);if(n!==null){if(t=n.tag,t===13){if(t=nc(n),t!==null){e.blockedOn=t,hc(e.priority,function(){fc(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 Zr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ss(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);es=r,n.target.dispatchEvent(r),es=null}else return t=Or(n),t!==null&&tu(t),e.blockedOn=n,!1;t.shift()}return!0}function ro(e,t,n){Zr(e)&&n.delete(t)}function Oh(){ls=!1,kt!==null&&Zr(kt)&&(kt=null),Pt!==null&&Zr(Pt)&&(Pt=null),Ot!==null&&Zr(Ot)&&(Ot=null),ur.forEach(ro),or.forEach(ro)}function Fn(e,t){e.blockedOn===t&&(e.blockedOn=null,ls||(ls=!0,Ne.unstable_scheduleCallback(Ne.unstable_NormalPriority,Oh)))}function ar(e){function t(i){return Fn(i,e)}if(0<zr.length){Fn(zr[0],e);for(var n=1;n<zr.length;n++){var r=zr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(kt!==null&&Fn(kt,e),Pt!==null&&Fn(Pt,e),Ot!==null&&Fn(Ot,e),ur.forEach(t),or.forEach(t),n=0;n<wt.length;n++)r=wt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<wt.length&&(n=wt[0],n.blockedOn===null);)pc(n),n.blockedOn===null&&wt.shift()}var wn=dt.ReactCurrentBatchConfig,pi=!0;function Rh(e,t,n,r){var i=U,l=wn.transition;wn.transition=null;try{U=1,nu(e,t,n,r)}finally{U=i,wn.transition=l}}function Nh(e,t,n,r){var i=U,l=wn.transition;wn.transition=null;try{U=4,nu(e,t,n,r)}finally{U=i,wn.transition=l}}function nu(e,t,n,r){if(pi){var i=ss(e,t,n,r);if(i===null)Cl(e,t,r,mi,n),no(e,r);else if(Ph(i,e,t,n,r))r.stopPropagation();else if(no(e,r),t&4&&-1<kh.indexOf(e)){for(;i!==null;){var l=Or(i);if(l!==null&&cc(l),l=ss(e,t,n,r),l===null&&Cl(e,t,r,mi,n),l===i)break;i=l}i!==null&&r.stopPropagation()}else Cl(e,t,r,null,n)}}var mi=null;function ss(e,t,n,r){if(mi=null,e=Zs(r),e=bt(e),e!==null)if(t=Zt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=nc(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 mi=e,null}function mc(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(mh()){case Js:return 1;case sc:return 4;case di:case yh:return 16;case uc:return 536870912;default:return 16}default:return 16}}var xt=null,ru=null,Jr=null;function yc(){if(Jr)return Jr;var e,t=ru,n=t.length,r,i="value"in xt?xt.value:xt.textContent,l=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[l-r];r++);return Jr=i.slice(e,1<r?1-r:void 0)}function ei(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 Qr(){return!0}function io(){return!1}function Te(e){function t(n,r,i,l,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=l,this.target=s,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(l):l[u]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Qr:io,this.isPropagationStopped=io,this}return Y(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=Qr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Qr)},persist:function(){},isPersistent:Qr}),t}var Mn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},iu=Te(Mn),Pr=Y({},Mn,{view:0,detail:0}),jh=Te(Pr),hl,pl,zn,qi=Y({},Pr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lu,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!==zn&&(zn&&e.type==="mousemove"?(hl=e.screenX-zn.screenX,pl=e.screenY-zn.screenY):pl=hl=0,zn=e),hl)},movementY:function(e){return"movementY"in e?e.movementY:pl}}),lo=Te(qi),Th=Y({},qi,{dataTransfer:0}),Mh=Te(Th),_h=Y({},Pr,{relatedTarget:0}),ml=Te(_h),Ih=Y({},Mn,{animationName:0,elapsedTime:0,pseudoElement:0}),Lh=Te(Ih),Dh=Y({},Mn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Fh=Te(Dh),zh=Y({},Mn,{data:0}),so=Te(zh),Qh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Uh={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"},Ah={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ah[e])?!!t[e]:!1}function lu(){return bh}var qh=Y({},Pr,{key:function(e){if(e.key){var t=Qh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ei(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Uh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lu,charCode:function(e){return e.type==="keypress"?ei(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ei(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$h=Te(qh),Hh=Y({},qi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uo=Te(Hh),Bh=Y({},Pr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lu}),Vh=Te(Bh),Kh=Y({},Mn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wh=Te(Kh),Gh=Y({},qi,{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}),Yh=Te(Gh),Xh=[9,13,27,32],su=ot&&"CompositionEvent"in window,Wn=null;ot&&"documentMode"in document&&(Wn=document.documentMode);var Zh=ot&&"TextEvent"in window&&!Wn,vc=ot&&(!su||Wn&&8<Wn&&11>=Wn),oo=" ",ao=!1;function gc(e,t){switch(e){case"keyup":return Xh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var rn=!1;function Jh(e,t){switch(e){case"compositionend":return wc(t);case"keypress":return t.which!==32?null:(ao=!0,oo);case"textInput":return e=t.data,e===oo&&ao?null:e;default:return null}}function ep(e,t){if(rn)return e==="compositionend"||!su&&gc(e,t)?(e=yc(),Jr=ru=xt=null,rn=!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 vc&&t.locale!=="ko"?null:t.data;default:return null}}var tp={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 co(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!tp[e.type]:t==="textarea"}function Sc(e,t,n,r){Xa(r),t=yi(t,"onChange"),0<t.length&&(n=new iu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,cr=null;function np(e){Mc(e,0)}function $i(e){var t=un(e);if(Ha(t))return e}function rp(e,t){if(e==="change")return t}var xc=!1;if(ot){var yl;if(ot){var vl="oninput"in document;if(!vl){var fo=document.createElement("div");fo.setAttribute("oninput","return;"),vl=typeof fo.oninput=="function"}yl=vl}else yl=!1;xc=yl&&(!document.documentMode||9<document.documentMode)}function ho(){Gn&&(Gn.detachEvent("onpropertychange",Cc),cr=Gn=null)}function Cc(e){if(e.propertyName==="value"&&$i(cr)){var t=[];Sc(t,cr,e,Zs(e)),tc(np,t)}}function ip(e,t,n){e==="focusin"?(ho(),Gn=t,cr=n,Gn.attachEvent("onpropertychange",Cc)):e==="focusout"&&ho()}function lp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $i(cr)}function sp(e,t){if(e==="click")return $i(t)}function up(e,t){if(e==="input"||e==="change")return $i(t)}function op(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Be=typeof Object.is=="function"?Object.is:op;function fr(e,t){if(Be(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(!ql.call(t,i)||!Be(e[i],t[i]))return!1}return!0}function po(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function mo(e,t){var n=po(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=po(n)}}function Ec(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ec(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function kc(){for(var e=window,t=ai();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ai(e.document)}return t}function uu(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 ap(e){var t=kc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ec(n.ownerDocument.documentElement,n)){if(r!==null&&uu(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=mo(n,l);var s=mo(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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 cp=ot&&"documentMode"in document&&11>=document.documentMode,ln=null,us=null,Yn=null,os=!1;function yo(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;os||ln==null||ln!==ai(r)||(r=ln,"selectionStart"in r&&uu(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}),Yn&&fr(Yn,r)||(Yn=r,r=yi(us,"onSelect"),0<r.length&&(t=new iu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ln)))}function Ur(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var sn={animationend:Ur("Animation","AnimationEnd"),animationiteration:Ur("Animation","AnimationIteration"),animationstart:Ur("Animation","AnimationStart"),transitionend:Ur("Transition","TransitionEnd")},gl={},Pc={};ot&&(Pc=document.createElement("div").style,"AnimationEvent"in window||(delete sn.animationend.animation,delete sn.animationiteration.animation,delete sn.animationstart.animation),"TransitionEvent"in window||delete sn.transitionend.transition);function Hi(e){if(gl[e])return gl[e];if(!sn[e])return e;var t=sn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Pc)return gl[e]=t[n];return e}var Oc=Hi("animationend"),Rc=Hi("animationiteration"),Nc=Hi("animationstart"),jc=Hi("transitionend"),Tc=new Map,vo="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 Dt(e,t){Tc.set(e,t),Xt(t,[e])}for(var wl=0;wl<vo.length;wl++){var Sl=vo[wl],fp=Sl.toLowerCase(),dp=Sl[0].toUpperCase()+Sl.slice(1);Dt(fp,"on"+dp)}Dt(Oc,"onAnimationEnd");Dt(Rc,"onAnimationIteration");Dt(Nc,"onAnimationStart");Dt("dblclick","onDoubleClick");Dt("focusin","onFocus");Dt("focusout","onBlur");Dt(jc,"onTransitionEnd");Cn("onMouseEnter",["mouseout","mouseover"]);Cn("onMouseLeave",["mouseout","mouseover"]);Cn("onPointerEnter",["pointerout","pointerover"]);Cn("onPointerLeave",["pointerout","pointerover"]);Xt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Xt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Xt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Xt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Xt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Xt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hn="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(" "),hp=new Set("cancel close invalid load scroll toggle".split(" ").concat(Hn));function go(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,fh(r,t,void 0,e),e.currentTarget=null}function Mc(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 s=r.length-1;0<=s;s--){var u=r[s],o=u.instance,a=u.currentTarget;if(u=u.listener,o!==l&&i.isPropagationStopped())break e;go(i,u,a),l=o}else for(s=0;s<r.length;s++){if(u=r[s],o=u.instance,a=u.currentTarget,u=u.listener,o!==l&&i.isPropagationStopped())break e;go(i,u,a),l=o}}}if(fi)throw e=rs,fi=!1,rs=null,e}function $(e,t){var n=t[hs];n===void 0&&(n=t[hs]=new Set);var r=e+"__bubble";n.has(r)||(_c(t,e,2,!1),n.add(r))}function xl(e,t,n){var r=0;t&&(r|=4),_c(n,e,r,t)}var Ar="_reactListening"+Math.random().toString(36).slice(2);function dr(e){if(!e[Ar]){e[Ar]=!0,Ua.forEach(function(n){n!=="selectionchange"&&(hp.has(n)||xl(n,!1,e),xl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ar]||(t[Ar]=!0,xl("selectionchange",!1,t))}}function _c(e,t,n,r){switch(mc(t)){case 1:var i=Rh;break;case 4:i=Nh;break;default:i=nu}n=i.bind(null,t,n,e),i=void 0,!ns||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 Cl(e,t,n,r,i){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var u=r.stateNode.containerInfo;if(u===i||u.nodeType===8&&u.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var o=s.tag;if((o===3||o===4)&&(o=s.stateNode.containerInfo,o===i||o.nodeType===8&&o.parentNode===i))return;s=s.return}for(;u!==null;){if(s=bt(u),s===null)return;if(o=s.tag,o===5||o===6){r=l=s;continue e}u=u.parentNode}}r=r.return}tc(function(){var a=l,h=Zs(n),y=[];e:{var p=Tc.get(e);if(p!==void 0){var v=iu,g=e;switch(e){case"keypress":if(ei(n)===0)break e;case"keydown":case"keyup":v=$h;break;case"focusin":g="focus",v=ml;break;case"focusout":g="blur",v=ml;break;case"beforeblur":case"afterblur":v=ml;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=lo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=Mh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=Vh;break;case Oc:case Rc:case Nc:v=Lh;break;case jc:v=Wh;break;case"scroll":v=jh;break;case"wheel":v=Yh;break;case"copy":case"cut":case"paste":v=Fh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=uo}var m=(t&4)!==0,P=!m&&e==="scroll",f=m?p!==null?p+"Capture":null:p;m=[];for(var c=a,d;c!==null;){d=c;var C=d.stateNode;if(d.tag===5&&C!==null&&(d=C,f!==null&&(C=sr(c,f),C!=null&&m.push(hr(c,C,d)))),P)break;c=c.return}0<m.length&&(p=new v(p,g,null,n,h),y.push({event:p,listeners:m}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",p&&n!==es&&(g=n.relatedTarget||n.fromElement)&&(bt(g)||g[at]))break e;if((v||p)&&(p=h.window===h?h:(p=h.ownerDocument)?p.defaultView||p.parentWindow:window,v?(g=n.relatedTarget||n.toElement,v=a,g=g?bt(g):null,g!==null&&(P=Zt(g),g!==P||g.tag!==5&&g.tag!==6)&&(g=null)):(v=null,g=a),v!==g)){if(m=lo,C="onMouseLeave",f="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(m=uo,C="onPointerLeave",f="onPointerEnter",c="pointer"),P=v==null?p:un(v),d=g==null?p:un(g),p=new m(C,c+"leave",v,n,h),p.target=P,p.relatedTarget=d,C=null,bt(h)===a&&(m=new m(f,c+"enter",g,n,h),m.target=d,m.relatedTarget=P,C=m),P=C,v&&g)t:{for(m=v,f=g,c=0,d=m;d;d=en(d))c++;for(d=0,C=f;C;C=en(C))d++;for(;0<c-d;)m=en(m),c--;for(;0<d-c;)f=en(f),d--;for(;c--;){if(m===f||f!==null&&m===f.alternate)break t;m=en(m),f=en(f)}m=null}else m=null;v!==null&&wo(y,p,v,m,!1),g!==null&&P!==null&&wo(y,P,g,m,!0)}}e:{if(p=a?un(a):window,v=p.nodeName&&p.nodeName.toLowerCase(),v==="select"||v==="input"&&p.type==="file")var x=rp;else if(co(p))if(xc)x=up;else{x=lp;var S=ip}else(v=p.nodeName)&&v.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(x=sp);if(x&&(x=x(e,a))){Sc(y,x,n,h);break e}S&&S(e,p,a),e==="focusout"&&(S=p._wrapperState)&&S.controlled&&p.type==="number"&&Gl(p,"number",p.value)}switch(S=a?un(a):window,e){case"focusin":(co(S)||S.contentEditable==="true")&&(ln=S,us=a,Yn=null);break;case"focusout":Yn=us=ln=null;break;case"mousedown":os=!0;break;case"contextmenu":case"mouseup":case"dragend":os=!1,yo(y,n,h);break;case"selectionchange":if(cp)break;case"keydown":case"keyup":yo(y,n,h)}var w;if(su)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else rn?gc(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(vc&&n.locale!=="ko"&&(rn||E!=="onCompositionStart"?E==="onCompositionEnd"&&rn&&(w=yc()):(xt=h,ru="value"in xt?xt.value:xt.textContent,rn=!0)),S=yi(a,E),0<S.length&&(E=new so(E,e,null,n,h),y.push({event:E,listeners:S}),w?E.data=w:(w=wc(n),w!==null&&(E.data=w)))),(w=Zh?Jh(e,n):ep(e,n))&&(a=yi(a,"onBeforeInput"),0<a.length&&(h=new so("onBeforeInput","beforeinput",null,n,h),y.push({event:h,listeners:a}),h.data=w))}Mc(y,t)})}function hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function yi(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=sr(e,n),l!=null&&r.unshift(hr(e,l,i)),l=sr(e,t),l!=null&&r.push(hr(e,l,i))),e=e.return}return r}function en(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function wo(e,t,n,r,i){for(var l=t._reactName,s=[];n!==null&&n!==r;){var u=n,o=u.alternate,a=u.stateNode;if(o!==null&&o===r)break;u.tag===5&&a!==null&&(u=a,i?(o=sr(n,l),o!=null&&s.unshift(hr(n,o,u))):i||(o=sr(n,l),o!=null&&s.push(hr(n,o,u)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var pp=/\r\n?/g,mp=/\u0000|\uFFFD/g;function So(e){return(typeof e=="string"?e:""+e).replace(pp,`
38
+ `).replace(mp,"")}function br(e,t,n){if(t=So(t),So(e)!==t&&n)throw Error(O(425))}function vi(){}var as=null,cs=null;function fs(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 ds=typeof setTimeout=="function"?setTimeout:void 0,yp=typeof clearTimeout=="function"?clearTimeout:void 0,xo=typeof Promise=="function"?Promise:void 0,vp=typeof queueMicrotask=="function"?queueMicrotask:typeof xo<"u"?function(e){return xo.resolve(null).then(e).catch(gp)}:ds;function gp(e){setTimeout(function(){throw e})}function El(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),ar(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);ar(t)}function Rt(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 Co(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 _n=Math.random().toString(36).slice(2),Ye="__reactFiber$"+_n,pr="__reactProps$"+_n,at="__reactContainer$"+_n,hs="__reactEvents$"+_n,wp="__reactListeners$"+_n,Sp="__reactHandles$"+_n;function bt(e){var t=e[Ye];if(t)return t;for(var n=e.parentNode;n;){if(t=n[at]||n[Ye]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Co(e);e!==null;){if(n=e[Ye])return n;e=Co(e)}return t}e=n,n=e.parentNode}return null}function Or(e){return e=e[Ye]||e[at],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function un(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function Bi(e){return e[pr]||null}var ps=[],on=-1;function Ft(e){return{current:e}}function B(e){0>on||(e.current=ps[on],ps[on]=null,on--)}function q(e,t){on++,ps[on]=e.current,e.current=t}var Lt={},he=Ft(Lt),Se=Ft(!1),Vt=Lt;function En(e,t){var n=e.type.contextTypes;if(!n)return Lt;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 xe(e){return e=e.childContextTypes,e!=null}function gi(){B(Se),B(he)}function Eo(e,t,n){if(he.current!==Lt)throw Error(O(168));q(he,t),q(Se,n)}function Ic(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(O(108,ih(e)||"Unknown",i));return Y({},n,r)}function wi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Lt,Vt=he.current,q(he,e),q(Se,Se.current),!0}function ko(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=Ic(e,t,Vt),r.__reactInternalMemoizedMergedChildContext=e,B(Se),B(he),q(he,e)):B(Se),q(Se,n)}var nt=null,Vi=!1,kl=!1;function Lc(e){nt===null?nt=[e]:nt.push(e)}function xp(e){Vi=!0,Lc(e)}function zt(){if(!kl&&nt!==null){kl=!0;var e=0,t=U;try{var n=nt;for(U=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}nt=null,Vi=!1}catch(i){throw nt!==null&&(nt=nt.slice(e+1)),lc(Js,zt),i}finally{U=t,kl=!1}}return null}var an=[],cn=0,Si=null,xi=0,Ie=[],Le=0,Kt=null,lt=1,st="";function Ut(e,t){an[cn++]=xi,an[cn++]=Si,Si=e,xi=t}function Dc(e,t,n){Ie[Le++]=lt,Ie[Le++]=st,Ie[Le++]=Kt,Kt=e;var r=lt;e=st;var i=32-$e(r)-1;r&=~(1<<i),n+=1;var l=32-$e(t)+i;if(30<l){var s=i-i%5;l=(r&(1<<s)-1).toString(32),r>>=s,i-=s,lt=1<<32-$e(t)+i|n<<i|r,st=l+e}else lt=1<<l|n<<i|r,st=e}function ou(e){e.return!==null&&(Ut(e,1),Dc(e,1,0))}function au(e){for(;e===Si;)Si=an[--cn],an[cn]=null,xi=an[--cn],an[cn]=null;for(;e===Kt;)Kt=Ie[--Le],Ie[Le]=null,st=Ie[--Le],Ie[Le]=null,lt=Ie[--Le],Ie[Le]=null}var Re=null,Oe=null,V=!1,qe=null;function Fc(e,t){var n=De(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 Po(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,Re=e,Oe=Rt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Re=e,Oe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Kt!==null?{id:lt,overflow:st}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=De(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Re=e,Oe=null,!0):!1;default:return!1}}function ms(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ys(e){if(V){var t=Oe;if(t){var n=t;if(!Po(e,t)){if(ms(e))throw Error(O(418));t=Rt(n.nextSibling);var r=Re;t&&Po(e,t)?Fc(r,n):(e.flags=e.flags&-4097|2,V=!1,Re=e)}}else{if(ms(e))throw Error(O(418));e.flags=e.flags&-4097|2,V=!1,Re=e}}}function Oo(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Re=e}function qr(e){if(e!==Re)return!1;if(!V)return Oo(e),V=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!fs(e.type,e.memoizedProps)),t&&(t=Oe)){if(ms(e))throw zc(),Error(O(418));for(;t;)Fc(e,t),t=Rt(t.nextSibling)}if(Oo(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Oe=Rt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Oe=null}}else Oe=Re?Rt(e.stateNode.nextSibling):null;return!0}function zc(){for(var e=Oe;e;)e=Rt(e.nextSibling)}function kn(){Oe=Re=null,V=!1}function cu(e){qe===null?qe=[e]:qe.push(e)}var Cp=dt.ReactCurrentBatchConfig;function Qn(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(O(309));var r=n.stateNode}if(!r)throw Error(O(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(s){var u=i.refs;s===null?delete u[l]:u[l]=s},t._stringRef=l,t)}if(typeof e!="string")throw Error(O(284));if(!n._owner)throw Error(O(290,e))}return e}function $r(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ro(e){var t=e._init;return t(e._payload)}function Qc(e){function t(f,c){if(e){var d=f.deletions;d===null?(f.deletions=[c],f.flags|=16):d.push(c)}}function n(f,c){if(!e)return null;for(;c!==null;)t(f,c),c=c.sibling;return null}function r(f,c){for(f=new Map;c!==null;)c.key!==null?f.set(c.key,c):f.set(c.index,c),c=c.sibling;return f}function i(f,c){return f=Mt(f,c),f.index=0,f.sibling=null,f}function l(f,c,d){return f.index=d,e?(d=f.alternate,d!==null?(d=d.index,d<c?(f.flags|=2,c):d):(f.flags|=2,c)):(f.flags|=1048576,c)}function s(f){return e&&f.alternate===null&&(f.flags|=2),f}function u(f,c,d,C){return c===null||c.tag!==6?(c=Ml(d,f.mode,C),c.return=f,c):(c=i(c,d),c.return=f,c)}function o(f,c,d,C){var x=d.type;return x===nn?h(f,c,d.props.children,C,d.key):c!==null&&(c.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===yt&&Ro(x)===c.type)?(C=i(c,d.props),C.ref=Qn(f,c,d),C.return=f,C):(C=ui(d.type,d.key,d.props,null,f.mode,C),C.ref=Qn(f,c,d),C.return=f,C)}function a(f,c,d,C){return c===null||c.tag!==4||c.stateNode.containerInfo!==d.containerInfo||c.stateNode.implementation!==d.implementation?(c=_l(d,f.mode,C),c.return=f,c):(c=i(c,d.children||[]),c.return=f,c)}function h(f,c,d,C,x){return c===null||c.tag!==7?(c=Bt(d,f.mode,C,x),c.return=f,c):(c=i(c,d),c.return=f,c)}function y(f,c,d){if(typeof c=="string"&&c!==""||typeof c=="number")return c=Ml(""+c,f.mode,d),c.return=f,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case _r:return d=ui(c.type,c.key,c.props,null,f.mode,d),d.ref=Qn(f,null,c),d.return=f,d;case tn:return c=_l(c,f.mode,d),c.return=f,c;case yt:var C=c._init;return y(f,C(c._payload),d)}if(qn(c)||In(c))return c=Bt(c,f.mode,d,null),c.return=f,c;$r(f,c)}return null}function p(f,c,d,C){var x=c!==null?c.key:null;if(typeof d=="string"&&d!==""||typeof d=="number")return x!==null?null:u(f,c,""+d,C);if(typeof d=="object"&&d!==null){switch(d.$$typeof){case _r:return d.key===x?o(f,c,d,C):null;case tn:return d.key===x?a(f,c,d,C):null;case yt:return x=d._init,p(f,c,x(d._payload),C)}if(qn(d)||In(d))return x!==null?null:h(f,c,d,C,null);$r(f,d)}return null}function v(f,c,d,C,x){if(typeof C=="string"&&C!==""||typeof C=="number")return f=f.get(d)||null,u(c,f,""+C,x);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case _r:return f=f.get(C.key===null?d:C.key)||null,o(c,f,C,x);case tn:return f=f.get(C.key===null?d:C.key)||null,a(c,f,C,x);case yt:var S=C._init;return v(f,c,d,S(C._payload),x)}if(qn(C)||In(C))return f=f.get(d)||null,h(c,f,C,x,null);$r(c,C)}return null}function g(f,c,d,C){for(var x=null,S=null,w=c,E=c=0,T=null;w!==null&&E<d.length;E++){w.index>E?(T=w,w=null):T=w.sibling;var N=p(f,w,d[E],C);if(N===null){w===null&&(w=T);break}e&&w&&N.alternate===null&&t(f,w),c=l(N,c,E),S===null?x=N:S.sibling=N,S=N,w=T}if(E===d.length)return n(f,w),V&&Ut(f,E),x;if(w===null){for(;E<d.length;E++)w=y(f,d[E],C),w!==null&&(c=l(w,c,E),S===null?x=w:S.sibling=w,S=w);return V&&Ut(f,E),x}for(w=r(f,w);E<d.length;E++)T=v(w,f,E,d[E],C),T!==null&&(e&&T.alternate!==null&&w.delete(T.key===null?E:T.key),c=l(T,c,E),S===null?x=T:S.sibling=T,S=T);return e&&w.forEach(function(A){return t(f,A)}),V&&Ut(f,E),x}function m(f,c,d,C){var x=In(d);if(typeof x!="function")throw Error(O(150));if(d=x.call(d),d==null)throw Error(O(151));for(var S=x=null,w=c,E=c=0,T=null,N=d.next();w!==null&&!N.done;E++,N=d.next()){w.index>E?(T=w,w=null):T=w.sibling;var A=p(f,w,N.value,C);if(A===null){w===null&&(w=T);break}e&&w&&A.alternate===null&&t(f,w),c=l(A,c,E),S===null?x=A:S.sibling=A,S=A,w=T}if(N.done)return n(f,w),V&&Ut(f,E),x;if(w===null){for(;!N.done;E++,N=d.next())N=y(f,N.value,C),N!==null&&(c=l(N,c,E),S===null?x=N:S.sibling=N,S=N);return V&&Ut(f,E),x}for(w=r(f,w);!N.done;E++,N=d.next())N=v(w,f,E,N.value,C),N!==null&&(e&&N.alternate!==null&&w.delete(N.key===null?E:N.key),c=l(N,c,E),S===null?x=N:S.sibling=N,S=N);return e&&w.forEach(function(ae){return t(f,ae)}),V&&Ut(f,E),x}function P(f,c,d,C){if(typeof d=="object"&&d!==null&&d.type===nn&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case _r:e:{for(var x=d.key,S=c;S!==null;){if(S.key===x){if(x=d.type,x===nn){if(S.tag===7){n(f,S.sibling),c=i(S,d.props.children),c.return=f,f=c;break e}}else if(S.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===yt&&Ro(x)===S.type){n(f,S.sibling),c=i(S,d.props),c.ref=Qn(f,S,d),c.return=f,f=c;break e}n(f,S);break}else t(f,S);S=S.sibling}d.type===nn?(c=Bt(d.props.children,f.mode,C,d.key),c.return=f,f=c):(C=ui(d.type,d.key,d.props,null,f.mode,C),C.ref=Qn(f,c,d),C.return=f,f=C)}return s(f);case tn:e:{for(S=d.key;c!==null;){if(c.key===S)if(c.tag===4&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){n(f,c.sibling),c=i(c,d.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=_l(d,f.mode,C),c.return=f,f=c}return s(f);case yt:return S=d._init,P(f,c,S(d._payload),C)}if(qn(d))return g(f,c,d,C);if(In(d))return m(f,c,d,C);$r(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,c!==null&&c.tag===6?(n(f,c.sibling),c=i(c,d),c.return=f,f=c):(n(f,c),c=Ml(d,f.mode,C),c.return=f,f=c),s(f)):n(f,c)}return P}var Pn=Qc(!0),Uc=Qc(!1),Ci=Ft(null),Ei=null,fn=null,fu=null;function du(){fu=fn=Ei=null}function hu(e){var t=Ci.current;B(Ci),e._currentValue=t}function vs(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 Sn(e,t){Ei=e,fu=fn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(we=!0),e.firstContext=null)}function ze(e){var t=e._currentValue;if(fu!==e)if(e={context:e,memoizedValue:t,next:null},fn===null){if(Ei===null)throw Error(O(308));fn=e,Ei.dependencies={lanes:0,firstContext:e}}else fn=fn.next=e;return t}var qt=null;function pu(e){qt===null?qt=[e]:qt.push(e)}function Ac(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,pu(t)):(n.next=i.next,i.next=n),t.interleaved=n,ct(e,r)}function ct(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 vt=!1;function mu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bc(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 ut(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Nt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Q&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,ct(e,n)}return i=r.interleaved,i===null?(t.next=t,pu(r)):(t.next=i.next,i.next=t),r.interleaved=t,ct(e,n)}function ti(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,eu(e,n)}}function No(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 s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=s:l=l.next=s,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 ki(e,t,n,r){var i=e.updateQueue;vt=!1;var l=i.firstBaseUpdate,s=i.lastBaseUpdate,u=i.shared.pending;if(u!==null){i.shared.pending=null;var o=u,a=o.next;o.next=null,s===null?l=a:s.next=a,s=o;var h=e.alternate;h!==null&&(h=h.updateQueue,u=h.lastBaseUpdate,u!==s&&(u===null?h.firstBaseUpdate=a:u.next=a,h.lastBaseUpdate=o))}if(l!==null){var y=i.baseState;s=0,h=a=o=null,u=l;do{var p=u.lane,v=u.eventTime;if((r&p)===p){h!==null&&(h=h.next={eventTime:v,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var g=e,m=u;switch(p=t,v=n,m.tag){case 1:if(g=m.payload,typeof g=="function"){y=g.call(v,y,p);break e}y=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=m.payload,p=typeof g=="function"?g.call(v,y,p):g,p==null)break e;y=Y({},y,p);break e;case 2:vt=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[u]:p.push(u))}else v={eventTime:v,lane:p,tag:u.tag,payload:u.payload,callback:u.callback,next:null},h===null?(a=h=v,o=y):h=h.next=v,s|=p;if(u=u.next,u===null){if(u=i.shared.pending,u===null)break;p=u,u=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(h===null&&(o=y),i.baseState=o,i.firstBaseUpdate=a,i.lastBaseUpdate=h,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);Gt|=s,e.lanes=s,e.memoizedState=y}}function jo(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(O(191,i));i.call(r)}}}var Rr={},et=Ft(Rr),mr=Ft(Rr),yr=Ft(Rr);function $t(e){if(e===Rr)throw Error(O(174));return e}function yu(e,t){switch(q(yr,t),q(mr,e),q(et,Rr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Xl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Xl(t,e)}B(et),q(et,t)}function On(){B(et),B(mr),B(yr)}function qc(e){$t(yr.current);var t=$t(et.current),n=Xl(t,e.type);t!==n&&(q(mr,e),q(et,n))}function vu(e){mr.current===e&&(B(et),B(mr))}var W=Ft(0);function Pi(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 Pl=[];function gu(){for(var e=0;e<Pl.length;e++)Pl[e]._workInProgressVersionPrimary=null;Pl.length=0}var ni=dt.ReactCurrentDispatcher,Ol=dt.ReactCurrentBatchConfig,Wt=0,G=null,ee=null,re=null,Oi=!1,Xn=!1,vr=0,Ep=0;function ce(){throw Error(O(321))}function wu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Be(e[n],t[n]))return!1;return!0}function Su(e,t,n,r,i,l){if(Wt=l,G=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ni.current=e===null||e.memoizedState===null?Rp:Np,e=n(r,i),Xn){l=0;do{if(Xn=!1,vr=0,25<=l)throw Error(O(301));l+=1,re=ee=null,t.updateQueue=null,ni.current=jp,e=n(r,i)}while(Xn)}if(ni.current=Ri,t=ee!==null&&ee.next!==null,Wt=0,re=ee=G=null,Oi=!1,t)throw Error(O(300));return e}function xu(){var e=vr!==0;return vr=0,e}function Ge(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return re===null?G.memoizedState=re=e:re=re.next=e,re}function Qe(){if(ee===null){var e=G.alternate;e=e!==null?e.memoizedState:null}else e=ee.next;var t=re===null?G.memoizedState:re.next;if(t!==null)re=t,ee=e;else{if(e===null)throw Error(O(310));ee=e,e={memoizedState:ee.memoizedState,baseState:ee.baseState,baseQueue:ee.baseQueue,queue:ee.queue,next:null},re===null?G.memoizedState=re=e:re=re.next=e}return re}function gr(e,t){return typeof t=="function"?t(e):t}function Rl(e){var t=Qe(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=ee,i=r.baseQueue,l=n.pending;if(l!==null){if(i!==null){var s=i.next;i.next=l.next,l.next=s}r.baseQueue=i=l,n.pending=null}if(i!==null){l=i.next,r=r.baseState;var u=s=null,o=null,a=l;do{var h=a.lane;if((Wt&h)===h)o!==null&&(o=o.next={lane:0,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null}),r=a.hasEagerState?a.eagerState:e(r,a.action);else{var y={lane:h,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null};o===null?(u=o=y,s=r):o=o.next=y,G.lanes|=h,Gt|=h}a=a.next}while(a!==null&&a!==l);o===null?s=r:o.next=u,Be(r,t.memoizedState)||(we=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=o,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do l=i.lane,G.lanes|=l,Gt|=l,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Nl(e){var t=Qe(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,l=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do l=e(l,s.action),s=s.next;while(s!==i);Be(l,t.memoizedState)||(we=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function $c(){}function Hc(e,t){var n=G,r=Qe(),i=t(),l=!Be(r.memoizedState,i);if(l&&(r.memoizedState=i,we=!0),r=r.queue,Cu(Kc.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||re!==null&&re.memoizedState.tag&1){if(n.flags|=2048,wr(9,Vc.bind(null,n,r,i,t),void 0,null),ie===null)throw Error(O(349));Wt&30||Bc(n,t,i)}return i}function Bc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=G.updateQueue,t===null?(t={lastEffect:null,stores:null},G.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Vc(e,t,n,r){t.value=n,t.getSnapshot=r,Wc(t)&&Gc(e)}function Kc(e,t,n){return n(function(){Wc(t)&&Gc(e)})}function Wc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Be(e,n)}catch{return!0}}function Gc(e){var t=ct(e,1);t!==null&&He(t,e,1,-1)}function To(e){var t=Ge();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:e},t.queue=e,e=e.dispatch=Op.bind(null,G,e),[t.memoizedState,e]}function wr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=G.updateQueue,t===null?(t={lastEffect:null,stores:null},G.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 Yc(){return Qe().memoizedState}function ri(e,t,n,r){var i=Ge();G.flags|=e,i.memoizedState=wr(1|t,n,void 0,r===void 0?null:r)}function Ki(e,t,n,r){var i=Qe();r=r===void 0?null:r;var l=void 0;if(ee!==null){var s=ee.memoizedState;if(l=s.destroy,r!==null&&wu(r,s.deps)){i.memoizedState=wr(t,n,l,r);return}}G.flags|=e,i.memoizedState=wr(1|t,n,l,r)}function Mo(e,t){return ri(8390656,8,e,t)}function Cu(e,t){return Ki(2048,8,e,t)}function Xc(e,t){return Ki(4,2,e,t)}function Zc(e,t){return Ki(4,4,e,t)}function Jc(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 ef(e,t,n){return n=n!=null?n.concat([e]):null,Ki(4,4,Jc.bind(null,t,e),n)}function Eu(){}function tf(e,t){var n=Qe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&wu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function nf(e,t){var n=Qe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&wu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function rf(e,t,n){return Wt&21?(Be(n,t)||(n=oc(),G.lanes|=n,Gt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,we=!0),e.memoizedState=n)}function kp(e,t){var n=U;U=n!==0&&4>n?n:4,e(!0);var r=Ol.transition;Ol.transition={};try{e(!1),t()}finally{U=n,Ol.transition=r}}function lf(){return Qe().memoizedState}function Pp(e,t,n){var r=Tt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},sf(e))uf(t,n);else if(n=Ac(e,t,n,r),n!==null){var i=me();He(n,e,r,i),of(n,t,r)}}function Op(e,t,n){var r=Tt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(sf(e))uf(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var s=t.lastRenderedState,u=l(s,n);if(i.hasEagerState=!0,i.eagerState=u,Be(u,s)){var o=t.interleaved;o===null?(i.next=i,pu(t)):(i.next=o.next,o.next=i),t.interleaved=i;return}}catch{}finally{}n=Ac(e,t,i,r),n!==null&&(i=me(),He(n,e,r,i),of(n,t,r))}}function sf(e){var t=e.alternate;return e===G||t!==null&&t===G}function uf(e,t){Xn=Oi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function of(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,eu(e,n)}}var Ri={readContext:ze,useCallback:ce,useContext:ce,useEffect:ce,useImperativeHandle:ce,useInsertionEffect:ce,useLayoutEffect:ce,useMemo:ce,useReducer:ce,useRef:ce,useState:ce,useDebugValue:ce,useDeferredValue:ce,useTransition:ce,useMutableSource:ce,useSyncExternalStore:ce,useId:ce,unstable_isNewReconciler:!1},Rp={readContext:ze,useCallback:function(e,t){return Ge().memoizedState=[e,t===void 0?null:t],e},useContext:ze,useEffect:Mo,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ri(4194308,4,Jc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ri(4194308,4,e,t)},useInsertionEffect:function(e,t){return ri(4,2,e,t)},useMemo:function(e,t){var n=Ge();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ge();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=Pp.bind(null,G,e),[r.memoizedState,e]},useRef:function(e){var t=Ge();return e={current:e},t.memoizedState=e},useState:To,useDebugValue:Eu,useDeferredValue:function(e){return Ge().memoizedState=e},useTransition:function(){var e=To(!1),t=e[0];return e=kp.bind(null,e[1]),Ge().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=G,i=Ge();if(V){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),ie===null)throw Error(O(349));Wt&30||Bc(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,Mo(Kc.bind(null,r,l,e),[e]),r.flags|=2048,wr(9,Vc.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=Ge(),t=ie.identifierPrefix;if(V){var n=st,r=lt;n=(r&~(1<<32-$e(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=vr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Ep++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Np={readContext:ze,useCallback:tf,useContext:ze,useEffect:Cu,useImperativeHandle:ef,useInsertionEffect:Xc,useLayoutEffect:Zc,useMemo:nf,useReducer:Rl,useRef:Yc,useState:function(){return Rl(gr)},useDebugValue:Eu,useDeferredValue:function(e){var t=Qe();return rf(t,ee.memoizedState,e)},useTransition:function(){var e=Rl(gr)[0],t=Qe().memoizedState;return[e,t]},useMutableSource:$c,useSyncExternalStore:Hc,useId:lf,unstable_isNewReconciler:!1},jp={readContext:ze,useCallback:tf,useContext:ze,useEffect:Cu,useImperativeHandle:ef,useInsertionEffect:Xc,useLayoutEffect:Zc,useMemo:nf,useReducer:Nl,useRef:Yc,useState:function(){return Nl(gr)},useDebugValue:Eu,useDeferredValue:function(e){var t=Qe();return ee===null?t.memoizedState=e:rf(t,ee.memoizedState,e)},useTransition:function(){var e=Nl(gr)[0],t=Qe().memoizedState;return[e,t]},useMutableSource:$c,useSyncExternalStore:Hc,useId:lf,unstable_isNewReconciler:!1};function Ae(e,t){if(e&&e.defaultProps){t=Y({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function gs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Y({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Wi={isMounted:function(e){return(e=e._reactInternals)?Zt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=me(),i=Tt(e),l=ut(r,i);l.payload=t,n!=null&&(l.callback=n),t=Nt(e,l,i),t!==null&&(He(t,e,i,r),ti(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=me(),i=Tt(e),l=ut(r,i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=Nt(e,l,i),t!==null&&(He(t,e,i,r),ti(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=me(),r=Tt(e),i=ut(n,r);i.tag=2,t!=null&&(i.callback=t),t=Nt(e,i,r),t!==null&&(He(t,e,r,n),ti(t,e,r))}};function _o(e,t,n,r,i,l,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,s):t.prototype&&t.prototype.isPureReactComponent?!fr(n,r)||!fr(i,l):!0}function af(e,t,n){var r=!1,i=Lt,l=t.contextType;return typeof l=="object"&&l!==null?l=ze(l):(i=xe(t)?Vt:he.current,r=t.contextTypes,l=(r=r!=null)?En(e,i):Lt),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Wi,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),t}function Io(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&&Wi.enqueueReplaceState(t,t.state,null)}function ws(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},mu(e);var l=t.contextType;typeof l=="object"&&l!==null?i.context=ze(l):(l=xe(t)?Vt:he.current,i.context=En(e,l)),i.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(gs(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&&Wi.enqueueReplaceState(i,i.state,null),ki(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Rn(e,t){try{var n="",r=t;do n+=rh(r),r=r.return;while(r);var i=n}catch(l){i=`
39
39
  Error generating stack: `+l.message+`
40
- `+l.stack}return{value:e,source:t,stack:i,digest:null}}function Tl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ss(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Tp=typeof WeakMap=="function"?WeakMap:Map;function af(e,t,n){n=lt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ti||(Ti=!0,Ms=r),Ss(e,t)},n}function cf(e,t,n){n=lt(-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(){Ss(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){Ss(e,t),typeof r!="function"&&(Rt===null?Rt=new Set([this]):Rt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Lo(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Tp;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=$p.bind(null,e,t,n),t.then(e,e))}function Io(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 Fo(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=lt(-1,1),t.tag=2,Ot(n,t,1))),n.lanes|=1),e)}var Mp=ct.ReactCurrentOwner,we=!1;function pe(e,t,n,r){t.child=e===null?zc(t,null,n,r):kn(t,e.child,n,r)}function Qo(e,t,n,r,i){n=n.render;var l=t.ref;return wn(t,i),r=Su(e,t,n,r,l,i),n=xu(),e!==null&&!we?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,at(e,t,i)):(V&&n&&ou(t),t.flags|=1,pe(e,t,r,i),t.child)}function zo(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!ju(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,ff(e,t,l,r,i)):(e=ui(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 s=l.memoizedProps;if(n=n.compare,n=n!==null?n:fr,n(s,r)&&e.ref===t.ref)return at(e,t,i)}return t.flags|=1,e=Tt(l,r),e.ref=t.ref,e.return=t,t.child=e}function ff(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(fr(l,r)&&e.ref===t.ref)if(we=!1,t.pendingProps=r=l,(e.lanes&i)!==0)e.flags&131072&&(we=!0);else return t.lanes=e.lanes,at(e,t,i)}return xs(e,t,n,r,i)}function df(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(fn,ke),ke|=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(fn,ke),ke|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,b(fn,ke),ke|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,b(fn,ke),ke|=r;return pe(e,t,i,n),t.child}function hf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function xs(e,t,n,r,i){var l=xe(n)?Ht:he.current;return l=Cn(t,l),wn(t,i),n=Su(e,t,n,r,l,i),r=xu(),e!==null&&!we?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,at(e,t,i)):(V&&r&&ou(t),t.flags|=1,pe(e,t,n,i),t.child)}function Uo(e,t,n,r,i){if(xe(n)){var l=!0;wi(t)}else l=!1;if(wn(t,i),t.stateNode===null)ii(e,t),of(t,n,r),ws(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,u=t.memoizedProps;s.props=u;var o=s.context,a=n.contextType;typeof a=="object"&&a!==null?a=Qe(a):(a=xe(n)?Ht:he.current,a=Cn(t,a));var h=n.getDerivedStateFromProps,m=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function";m||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(u!==r||o!==a)&&Do(t,s,r,a),mt=!1;var p=t.memoizedState;s.state=p,ki(t,r,s,i),o=t.memoizedState,u!==r||p!==o||Se.current||mt?(typeof h=="function"&&(gs(t,n,h,r),o=t.memoizedState),(u=mt||_o(t,n,u,r,p,o,a))?(m||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=o),s.props=r,s.state=o,s.context=a,r=u):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Ac(e,t),u=t.memoizedProps,a=t.type===t.elementType?u:Ae(t.type,u),s.props=a,m=t.pendingProps,p=s.context,o=n.contextType,typeof o=="object"&&o!==null?o=Qe(o):(o=xe(n)?Ht:he.current,o=Cn(t,o));var v=n.getDerivedStateFromProps;(h=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(u!==m||p!==o)&&Do(t,s,r,o),mt=!1,p=t.memoizedState,s.state=p,ki(t,r,s,i);var g=t.memoizedState;u!==m||p!==g||Se.current||mt?(typeof v=="function"&&(gs(t,n,v,r),g=t.memoizedState),(a=mt||_o(t,n,a,r,p,g,o)||!1)?(h||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,g,o),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,g,o)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),s.props=r,s.state=g,s.context=o,r=a):(typeof s.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Cs(e,t,n,r,l,i)}function Cs(e,t,n,r,i,l){hf(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&ko(t,n,!1),at(e,t,l);r=t.stateNode,Mp.current=t;var u=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=kn(t,e.child,null,l),t.child=kn(t,null,u,l)):pe(e,t,u,l),t.memoizedState=r.state,i&&ko(t,n,!0),t.child}function pf(e){var t=e.stateNode;t.pendingContext?Eo(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Eo(e,t.context,!1),yu(e,t.containerInfo)}function Ao(e,t,n,r,i){return En(),cu(i),t.flags|=256,pe(e,t,n,r),t.child}var Es={dehydrated:null,treeContext:null,retryLane:0};function ks(e){return{baseLanes:e,cachePool:null,transitions:null}}function mf(e,t,n){var r=t.pendingProps,i=W.current,l=!1,s=(t.flags&128)!==0,u;if((u=s)||(u=e!==null&&e.memoizedState===null?!1:(i&2)!==0),u?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),b(W,i&1),e===null)return ys(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):(s=r.children,e=r.fallback,l?(r=t.mode,l=t.child,s={mode:"hidden",children:s},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=s):l=Xi(s,r,0,null),e=$t(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=ks(n),t.memoizedState=Es,e):ku(t,s));if(i=e.memoizedState,i!==null&&(u=i.dehydrated,u!==null))return jp(e,t,s,r,u,i,n);if(l){l=r.fallback,s=t.mode,i=e.child,u=i.sibling;var o={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=o,t.deletions=null):(r=Tt(i,o),r.subtreeFlags=i.subtreeFlags&14680064),u!==null?l=Tt(u,l):(l=$t(l,s,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,s=e.child.memoizedState,s=s===null?ks(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Es,r}return l=e.child,e=l.sibling,r=Tt(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 ku(e,t){return t=Xi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Hr(e,t,n,r){return r!==null&&cu(r),kn(t,e.child,null,n),e=ku(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function jp(e,t,n,r,i,l,s){if(n)return t.flags&256?(t.flags&=-257,r=Tl(Error(O(422))),Hr(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,i=t.mode,r=Xi({mode:"visible",children:r.children},i,0,null),l=$t(l,i,s,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&kn(t,e.child,null,s),t.child.memoizedState=ks(s),t.memoizedState=Es,l);if(!(t.mode&1))return Hr(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var u=r.dgst;return r=u,l=Error(O(419)),r=Tl(l,r,void 0),Hr(e,t,s,r)}if(u=(s&e.childLanes)!==0,we||u){if(r=ie,r!==null){switch(s&-s){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|s)?0:i,i!==0&&i!==l.retryLane&&(l.retryLane=i,ot(e,i),He(r,e,i,-1))}return Mu(),r=Tl(Error(O(421))),Hr(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Hp.bind(null,e),i._reactRetry=t,null):(e=l.treeContext,Oe=Pt(i.nextSibling),Re=t,V=!0,be=null,e!==null&&(De[Le++]=rt,De[Le++]=it,De[Le++]=Bt,rt=e.id,it=e.overflow,Bt=t),t=ku(t,r.children),t.flags|=4096,t)}function qo(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),vs(e.return,t,n)}function Ml(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 yf(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if(pe(e,t,r.children,n),r=W.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&&qo(e,n,t);else if(e.tag===19)qo(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(W,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&&Pi(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ml(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&&Pi(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ml(t,!0,n,null,l);break;case"together":Ml(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ii(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),Kt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));if(t.child!==null){for(e=t.child,n=Tt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Tt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function _p(e,t,n){switch(t.tag){case 3:pf(t),En();break;case 5:qc(t);break;case 1:xe(t.type)&&wi(t);break;case 4:yu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;b(Ci,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(b(W,W.current&1),t.flags|=128,null):n&t.child.childLanes?mf(e,t,n):(b(W,W.current&1),e=at(e,t,n),e!==null?e.sibling:null);b(W,W.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return yf(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),b(W,W.current),r)break;return null;case 22:case 23:return t.lanes=0,df(e,t,n)}return at(e,t,n)}var vf,Ps,gf,wf;vf=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}};Ps=function(){};gf=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,qt(et.current);var l=null;switch(n){case"input":i=Kl(e,i),r=Kl(e,r),l=[];break;case"select":i=Y({},i,{value:void 0}),r=Y({},r,{value:void 0}),l=[];break;case"textarea":i=Yl(e,i),r=Yl(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=vi)}Zl(n,r);var s;n=null;for(a in i)if(!r.hasOwnProperty(a)&&i.hasOwnProperty(a)&&i[a]!=null)if(a==="style"){var u=i[a];for(s in u)u.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(ir.hasOwnProperty(a)?l||(l=[]):(l=l||[]).push(a,null));for(a in r){var o=r[a];if(u=i!=null?i[a]:void 0,r.hasOwnProperty(a)&&o!==u&&(o!=null||u!=null))if(a==="style")if(u){for(s in u)!u.hasOwnProperty(s)||o&&o.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in o)o.hasOwnProperty(s)&&u[s]!==o[s]&&(n||(n={}),n[s]=o[s])}else n||(l||(l=[]),l.push(a,n)),n=o;else a==="dangerouslySetInnerHTML"?(o=o?o.__html:void 0,u=u?u.__html:void 0,o!=null&&u!==o&&(l=l||[]).push(a,o)):a==="children"?typeof o!="string"&&typeof o!="number"||(l=l||[]).push(a,""+o):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(ir.hasOwnProperty(a)?(o!=null&&a==="onScroll"&&$("scroll",e),l||u===o||(l=[])):(l=l||[]).push(a,o))}n&&(l=l||[]).push("style",n);var a=l;(t.updateQueue=a)&&(t.flags|=4)}};wf=function(e,t,n,r){n!==r&&(t.flags|=4)};function Un(e,t){if(!V)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 fe(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 Dp(e,t,n){var r=t.pendingProps;switch(au(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fe(t),null;case 1:return xe(t.type)&&gi(),fe(t),null;case 3:return r=t.stateNode,Pn(),B(Se),B(he),gu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(br(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,be!==null&&(Ds(be),be=null))),Ps(e,t),fe(t),null;case 5:vu(t);var i=qt(yr.current);if(n=t.type,e!==null&&t.stateNode!=null)gf(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(O(166));return fe(t),null}if(e=qt(et.current),br(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Ye]=t,r[pr]=l,e=(t.mode&1)!==0,n){case"dialog":$("cancel",r),$("close",r);break;case"iframe":case"object":case"embed":$("load",r);break;case"video":case"audio":for(i=0;i<Hn.length;i++)$(Hn[i],r);break;case"source":$("error",r);break;case"img":case"image":case"link":$("error",r),$("load",r);break;case"details":$("toggle",r);break;case"input":Gu(r,l),$("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},$("invalid",r);break;case"textarea":Xu(r,l),$("invalid",r)}Zl(n,l),i=null;for(var s in l)if(l.hasOwnProperty(s)){var u=l[s];s==="children"?typeof u=="string"?r.textContent!==u&&(l.suppressHydrationWarning!==!0&&qr(r.textContent,u,e),i=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(l.suppressHydrationWarning!==!0&&qr(r.textContent,u,e),i=["children",""+u]):ir.hasOwnProperty(s)&&u!=null&&s==="onScroll"&&$("scroll",r)}switch(n){case"input":Dr(r),Yu(r,l,!0);break;case"textarea":Dr(r),Zu(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=vi)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Va(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Ye]=t,e[pr]=r,vf(e,t,!1,!1),t.stateNode=e;e:{switch(s=Jl(n,r),n){case"dialog":$("cancel",e),$("close",e),i=r;break;case"iframe":case"object":case"embed":$("load",e),i=r;break;case"video":case"audio":for(i=0;i<Hn.length;i++)$(Hn[i],e);i=r;break;case"source":$("error",e),i=r;break;case"img":case"image":case"link":$("error",e),$("load",e),i=r;break;case"details":$("toggle",e),i=r;break;case"input":Gu(e,r),i=Kl(e,r),$("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Y({},r,{value:void 0}),$("invalid",e);break;case"textarea":Xu(e,r),i=Yl(e,r),$("invalid",e);break;default:i=r}Zl(n,i),u=i;for(l in u)if(u.hasOwnProperty(l)){var o=u[l];l==="style"?Ga(e,o):l==="dangerouslySetInnerHTML"?(o=o?o.__html:void 0,o!=null&&Ka(e,o)):l==="children"?typeof o=="string"?(n!=="textarea"||o!=="")&&lr(e,o):typeof o=="number"&&lr(e,""+o):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(ir.hasOwnProperty(l)?o!=null&&l==="onScroll"&&$("scroll",e):o!=null&&Ws(e,l,o,s))}switch(n){case"input":Dr(e),Yu(e,r,!1);break;case"textarea":Dr(e),Zu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+jt(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?mn(e,!!r.multiple,l,!1):r.defaultValue!=null&&mn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=vi)}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 fe(t),null;case 6:if(e&&t.stateNode!=null)wf(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=qt(yr.current),qt(et.current),br(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ye]=t,(l=r.nodeValue!==n)&&(e=Re,e!==null))switch(e.tag){case 3:qr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&qr(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ye]=t,t.stateNode=r}return fe(t),null;case 13:if(B(W),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(V&&Oe!==null&&t.mode&1&&!(t.flags&128))Fc(),En(),t.flags|=98560,l=!1;else if(l=br(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(O(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(O(317));l[Ye]=t}else En(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;fe(t),l=!1}else be!==null&&(Ds(be),be=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||W.current&1?te===0&&(te=3):Mu())),t.updateQueue!==null&&(t.flags|=4),fe(t),null);case 4:return Pn(),Ps(e,t),e===null&&dr(t.stateNode.containerInfo),fe(t),null;case 10:return hu(t.type._context),fe(t),null;case 17:return xe(t.type)&&gi(),fe(t),null;case 19:if(B(W),l=t.memoizedState,l===null)return fe(t),null;if(r=(t.flags&128)!==0,s=l.rendering,s===null)if(r)Un(l,!1);else{if(te!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Pi(e),s!==null){for(t.flags|=128,Un(l,!1),r=s.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,s=l.alternate,s===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=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return b(W,W.current&1|2),t.child}e=e.sibling}l.tail!==null&&Z()>Rn&&(t.flags|=128,r=!0,Un(l,!1),t.lanes=4194304)}else{if(!r)if(e=Pi(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Un(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!V)return fe(t),null}else 2*Z()-l.renderingStartTime>Rn&&n!==1073741824&&(t.flags|=128,r=!0,Un(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(n=l.last,n!==null?n.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Z(),t.sibling=null,n=W.current,b(W,r?n&1|2:n&1),t):(fe(t),null);case 22:case 23:return Tu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ke&1073741824&&(fe(t),t.subtreeFlags&6&&(t.flags|=8192)):fe(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function Lp(e,t){switch(au(t),t.tag){case 1:return xe(t.type)&&gi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pn(),B(Se),B(he),gu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vu(t),null;case 13:if(B(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));En()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(W),null;case 4:return Pn(),null;case 10:return hu(t.type._context),null;case 22:case 23:return Tu(),null;case 24:return null;default:return null}}var Br=!1,de=!1,Ip=typeof WeakSet=="function"?WeakSet:Set,j=null;function cn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){X(e,t,r)}else n.current=null}function Os(e,t,n){try{n()}catch(r){X(e,t,r)}}var bo=!1;function Fp(e,t){if(as=pi,e=Ec(),uu(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 s=0,u=-1,o=-1,a=0,h=0,m=e,p=null;t:for(;;){for(var v;m!==n||i!==0&&m.nodeType!==3||(u=s+i),m!==l||r!==0&&m.nodeType!==3||(o=s+r),m.nodeType===3&&(s+=m.nodeValue.length),(v=m.firstChild)!==null;)p=m,m=v;for(;;){if(m===e)break t;if(p===n&&++a===i&&(u=s),p===l&&++h===r&&(o=s),(v=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=v}n=u===-1||o===-1?null:{start:u,end:o}}else n=null}n=n||{start:0,end:0}}else n=null;for(cs={focusedElem:e,selectionRange:n},pi=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,k=g.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ae(t.type,y),k);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var d=t.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(C){X(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return g=bo,bo=!1,g}function Zn(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&&Os(t,n,l)}i=i.next}while(i!==r)}}function Gi(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 Rs(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 Sf(e){var t=e.alternate;t!==null&&(e.alternate=null,Sf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ye],delete t[pr],delete t[hs],delete t[gp],delete t[wp])),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 xf(e){return e.tag===5||e.tag===3||e.tag===4}function $o(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xf(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 Ns(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=vi));else if(r!==4&&(e=e.child,e!==null))for(Ns(e,t,n),e=e.sibling;e!==null;)Ns(e,t,n),e=e.sibling}function Ts(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(Ts(e,t,n),e=e.sibling;e!==null;)Ts(e,t,n),e=e.sibling}var se=null,qe=!1;function dt(e,t,n){for(n=n.child;n!==null;)Cf(e,t,n),n=n.sibling}function Cf(e,t,n){if(Je&&typeof Je.onCommitFiberUnmount=="function")try{Je.onCommitFiberUnmount(qi,n)}catch{}switch(n.tag){case 5:de||cn(n,t);case 6:var r=se,i=qe;se=null,dt(e,t,n),se=r,qe=i,se!==null&&(qe?(e=se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):se.removeChild(n.stateNode));break;case 18:se!==null&&(qe?(e=se,n=n.stateNode,e.nodeType===8?El(e.parentNode,n):e.nodeType===1&&El(e,n),ar(e)):El(se,n.stateNode));break;case 4:r=se,i=qe,se=n.stateNode.containerInfo,qe=!0,dt(e,t,n),se=r,qe=i;break;case 0:case 11:case 14:case 15:if(!de&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,s=l.destroy;l=l.tag,s!==void 0&&(l&2||l&4)&&Os(n,t,s),i=i.next}while(i!==r)}dt(e,t,n);break;case 1:if(!de&&(cn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){X(n,t,u)}dt(e,t,n);break;case 21:dt(e,t,n);break;case 22:n.mode&1?(de=(r=de)||n.memoizedState!==null,dt(e,t,n),de=r):dt(e,t,n);break;default:dt(e,t,n)}}function Ho(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ip),t.forEach(function(r){var i=Bp.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ue(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,s=t,u=s;e:for(;u!==null;){switch(u.tag){case 5:se=u.stateNode,qe=!1;break e;case 3:se=u.stateNode.containerInfo,qe=!0;break e;case 4:se=u.stateNode.containerInfo,qe=!0;break e}u=u.return}if(se===null)throw Error(O(160));Cf(l,s,i),se=null,qe=!1;var o=i.alternate;o!==null&&(o.return=null),i.return=null}catch(a){X(i,t,a)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ef(t,e),t=t.sibling}function Ef(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ue(t,e),We(e),r&4){try{Zn(3,e,e.return),Gi(3,e)}catch(y){X(e,e.return,y)}try{Zn(5,e,e.return)}catch(y){X(e,e.return,y)}}break;case 1:Ue(t,e),We(e),r&512&&n!==null&&cn(n,n.return);break;case 5:if(Ue(t,e),We(e),r&512&&n!==null&&cn(n,n.return),e.flags&32){var i=e.stateNode;try{lr(i,"")}catch(y){X(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var l=e.memoizedProps,s=n!==null?n.memoizedProps:l,u=e.type,o=e.updateQueue;if(e.updateQueue=null,o!==null)try{u==="input"&&l.type==="radio"&&l.name!=null&&Ha(i,l),Jl(u,s);var a=Jl(u,l);for(s=0;s<o.length;s+=2){var h=o[s],m=o[s+1];h==="style"?Ga(i,m):h==="dangerouslySetInnerHTML"?Ka(i,m):h==="children"?lr(i,m):Ws(i,h,m,a)}switch(u){case"input":Wl(i,l);break;case"textarea":Ba(i,l);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!l.multiple;var v=l.value;v!=null?mn(i,!!l.multiple,v,!1):p!==!!l.multiple&&(l.defaultValue!=null?mn(i,!!l.multiple,l.defaultValue,!0):mn(i,!!l.multiple,l.multiple?[]:"",!1))}i[pr]=l}catch(y){X(e,e.return,y)}}break;case 6:if(Ue(t,e),We(e),r&4){if(e.stateNode===null)throw Error(O(162));i=e.stateNode,l=e.memoizedProps;try{i.nodeValue=l}catch(y){X(e,e.return,y)}}break;case 3:if(Ue(t,e),We(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ar(t.containerInfo)}catch(y){X(e,e.return,y)}break;case 4:Ue(t,e),We(e);break;case 13:Ue(t,e),We(e),i=e.child,i.flags&8192&&(l=i.memoizedState!==null,i.stateNode.isHidden=l,!l||i.alternate!==null&&i.alternate.memoizedState!==null||(Ru=Z())),r&4&&Ho(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(de=(a=de)||h,Ue(t,e),de=a):Ue(t,e),We(e),r&8192){if(a=e.memoizedState!==null,(e.stateNode.isHidden=a)&&!h&&e.mode&1)for(j=e,h=e.child;h!==null;){for(m=j=h;j!==null;){switch(p=j,v=p.child,p.tag){case 0:case 11:case 14:case 15:Zn(4,p,p.return);break;case 1:cn(p,p.return);var g=p.stateNode;if(typeof g.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(y){X(r,n,y)}}break;case 5:cn(p,p.return);break;case 22:if(p.memoizedState!==null){Vo(m);continue}}v!==null?(v.return=p,j=v):Vo(m)}h=h.sibling}e:for(h=null,m=e;;){if(m.tag===5){if(h===null){h=m;try{i=m.stateNode,a?(l=i.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(u=m.stateNode,o=m.memoizedProps.style,s=o!=null&&o.hasOwnProperty("display")?o.display:null,u.style.display=Wa("display",s))}catch(y){X(e,e.return,y)}}}else if(m.tag===6){if(h===null)try{m.stateNode.nodeValue=a?"":m.memoizedProps}catch(y){X(e,e.return,y)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;h===m&&(h=null),m=m.return}h===m&&(h=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:Ue(t,e),We(e),r&4&&Ho(e);break;case 21:break;default:Ue(t,e),We(e)}}function We(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(xf(n)){var r=n;break e}n=n.return}throw Error(O(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(lr(i,""),r.flags&=-33);var l=$o(e);Ts(e,l,i);break;case 3:case 4:var s=r.stateNode.containerInfo,u=$o(e);Ns(e,u,s);break;default:throw Error(O(161))}}catch(o){X(e,e.return,o)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Qp(e,t,n){j=e,kf(e)}function kf(e,t,n){for(var r=(e.mode&1)!==0;j!==null;){var i=j,l=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||Br;if(!s){var u=i.alternate,o=u!==null&&u.memoizedState!==null||de;u=Br;var a=de;if(Br=s,(de=o)&&!a)for(j=i;j!==null;)s=j,o=s.child,s.tag===22&&s.memoizedState!==null?Ko(i):o!==null?(o.return=s,j=o):Ko(i);for(;l!==null;)j=l,kf(l),l=l.sibling;j=i,Br=u,de=a}Bo(e)}else i.subtreeFlags&8772&&l!==null?(l.return=i,j=l):Bo(e)}}function Bo(e){for(;j!==null;){var t=j;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:de||Gi(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!de)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ae(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&To(t,l,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}To(t,s,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var o=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":o.autoFocus&&n.focus();break;case"img":o.src&&(n.src=o.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var a=t.alternate;if(a!==null){var h=a.memoizedState;if(h!==null){var m=h.dehydrated;m!==null&&ar(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}de||t.flags&512&&Rs(t)}catch(p){X(t,t.return,p)}}if(t===e){j=null;break}if(n=t.sibling,n!==null){n.return=t.return,j=n;break}j=t.return}}function Vo(e){for(;j!==null;){var t=j;if(t===e){j=null;break}var n=t.sibling;if(n!==null){n.return=t.return,j=n;break}j=t.return}}function Ko(e){for(;j!==null;){var t=j;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Gi(4,t)}catch(o){X(t,n,o)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(o){X(t,i,o)}}var l=t.return;try{Rs(t)}catch(o){X(t,l,o)}break;case 5:var s=t.return;try{Rs(t)}catch(o){X(t,s,o)}}}catch(o){X(t,t.return,o)}if(t===e){j=null;break}var u=t.sibling;if(u!==null){u.return=t.return,j=u;break}j=t.return}}var zp=Math.ceil,Ni=ct.ReactCurrentDispatcher,Pu=ct.ReactCurrentOwner,Fe=ct.ReactCurrentBatchConfig,z=0,ie=null,J=null,ue=0,ke=0,fn=Lt(0),te=0,Sr=null,Kt=0,Yi=0,Ou=0,Jn=null,ge=null,Ru=0,Rn=1/0,tt=null,Ti=!1,Ms=null,Rt=null,Vr=!1,St=null,Mi=0,er=0,js=null,li=-1,si=0;function me(){return z&6?Z():li!==-1?li:li=Z()}function Nt(e){return e.mode&1?z&2&&ue!==0?ue&-ue:xp.transition!==null?(si===0&&(si=uc()),si):(e=U,e!==0||(e=window.event,e=e===void 0?16:pc(e.type)),e):1}function He(e,t,n,r){if(50<er)throw er=0,js=null,Error(O(185));kr(e,n,r),(!(z&2)||e!==ie)&&(e===ie&&(!(z&2)&&(Yi|=n),te===4&&gt(e,ue)),Ce(e,r),n===1&&z===0&&!(t.mode&1)&&(Rn=Z()+500,Vi&&It()))}function Ce(e,t){var n=e.callbackNode;xh(e,t);var r=hi(e,e===ie?ue:0);if(r===0)n!==null&&to(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&to(n),t===1)e.tag===0?Sp(Wo.bind(null,e)):Dc(Wo.bind(null,e)),yp(function(){!(z&6)&&It()}),n=null;else{switch(oc(r)){case 1:n=Js;break;case 4:n=lc;break;case 16:n=di;break;case 536870912:n=sc;break;default:n=di}n=_f(n,Pf.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Pf(e,t){if(li=-1,si=0,z&6)throw Error(O(327));var n=e.callbackNode;if(Sn()&&e.callbackNode!==n)return null;var r=hi(e,e===ie?ue:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ji(e,r);else{t=r;var i=z;z|=2;var l=Rf();(ie!==e||ue!==t)&&(tt=null,Rn=Z()+500,bt(e,t));do try{qp();break}catch(u){Of(e,u)}while(!0);du(),Ni.current=l,z=i,J!==null?t=0:(ie=null,ue=0,t=te)}if(t!==0){if(t===2&&(i=is(e),i!==0&&(r=i,t=_s(e,i))),t===1)throw n=Sr,bt(e,0),gt(e,r),Ce(e,Z()),n;if(t===6)gt(e,r);else{if(i=e.current.alternate,!(r&30)&&!Up(i)&&(t=ji(e,r),t===2&&(l=is(e),l!==0&&(r=l,t=_s(e,l))),t===1))throw n=Sr,bt(e,0),gt(e,r),Ce(e,Z()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:zt(e,ge,tt);break;case 3:if(gt(e,r),(r&130023424)===r&&(t=Ru+500-Z(),10<t)){if(hi(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){me(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ds(zt.bind(null,e,ge,tt),t);break}zt(e,ge,tt);break;case 4:if(gt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-$e(r);l=1<<s,s=t[s],s>i&&(i=s),r&=~l}if(r=i,r=Z()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*zp(r/1960))-r,10<r){e.timeoutHandle=ds(zt.bind(null,e,ge,tt),r);break}zt(e,ge,tt);break;case 5:zt(e,ge,tt);break;default:throw Error(O(329))}}}return Ce(e,Z()),e.callbackNode===n?Pf.bind(null,e):null}function _s(e,t){var n=Jn;return e.current.memoizedState.isDehydrated&&(bt(e,t).flags|=256),e=ji(e,t),e!==2&&(t=ge,ge=n,t!==null&&Ds(t)),e}function Ds(e){ge===null?ge=e:ge.push.apply(ge,e)}function Up(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(!Be(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 gt(e,t){for(t&=~Ou,t&=~Yi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-$e(t),r=1<<n;e[n]=-1,t&=~r}}function Wo(e){if(z&6)throw Error(O(327));Sn();var t=hi(e,0);if(!(t&1))return Ce(e,Z()),null;var n=ji(e,t);if(e.tag!==0&&n===2){var r=is(e);r!==0&&(t=r,n=_s(e,r))}if(n===1)throw n=Sr,bt(e,0),gt(e,t),Ce(e,Z()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,zt(e,ge,tt),Ce(e,Z()),null}function Nu(e,t){var n=z;z|=1;try{return e(t)}finally{z=n,z===0&&(Rn=Z()+500,Vi&&It())}}function Wt(e){St!==null&&St.tag===0&&!(z&6)&&Sn();var t=z;z|=1;var n=Fe.transition,r=U;try{if(Fe.transition=null,U=1,e)return e()}finally{U=r,Fe.transition=n,z=t,!(z&6)&&It()}}function Tu(){ke=fn.current,B(fn)}function bt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,mp(n)),J!==null)for(n=J.return;n!==null;){var r=n;switch(au(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&gi();break;case 3:Pn(),B(Se),B(he),gu();break;case 5:vu(r);break;case 4:Pn();break;case 13:B(W);break;case 19:B(W);break;case 10:hu(r.type._context);break;case 22:case 23:Tu()}n=n.return}if(ie=e,J=e=Tt(e.current,null),ue=ke=t,te=0,Sr=null,Ou=Yi=Kt=0,ge=Jn=null,At!==null){for(t=0;t<At.length;t++)if(n=At[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,l=n.pending;if(l!==null){var s=l.next;l.next=i,r.next=s}n.pending=r}At=null}return e}function Of(e,t){do{var n=J;try{if(du(),ni.current=Ri,Oi){for(var r=G.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Oi=!1}if(Vt=0,re=ee=G=null,Xn=!1,vr=0,Pu.current=null,n===null||n.return===null){te=1,Sr=t,J=null;break}e:{var l=e,s=n.return,u=n,o=t;if(t=ue,u.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){var a=o,h=u,m=h.tag;if(!(h.mode&1)&&(m===0||m===11||m===15)){var p=h.alternate;p?(h.updateQueue=p.updateQueue,h.memoizedState=p.memoizedState,h.lanes=p.lanes):(h.updateQueue=null,h.memoizedState=null)}var v=Io(s);if(v!==null){v.flags&=-257,Fo(v,s,u,l,t),v.mode&1&&Lo(l,a,t),t=v,o=a;var g=t.updateQueue;if(g===null){var y=new Set;y.add(o),t.updateQueue=y}else g.add(o);break e}else{if(!(t&1)){Lo(l,a,t),Mu();break e}o=Error(O(426))}}else if(V&&u.mode&1){var k=Io(s);if(k!==null){!(k.flags&65536)&&(k.flags|=256),Fo(k,s,u,l,t),cu(On(o,u));break e}}l=o=On(o,u),te!==4&&(te=2),Jn===null?Jn=[l]:Jn.push(l),l=s;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var f=af(l,o,t);No(l,f);break e;case 1:u=o;var c=l.type,d=l.stateNode;if(!(l.flags&128)&&(typeof c.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Rt===null||!Rt.has(d)))){l.flags|=65536,t&=-t,l.lanes|=t;var C=cf(l,u,t);No(l,C);break e}}l=l.return}while(l!==null)}Tf(n)}catch(x){t=x,J===n&&n!==null&&(J=n=n.return);continue}break}while(!0)}function Rf(){var e=Ni.current;return Ni.current=Ri,e===null?Ri:e}function Mu(){(te===0||te===3||te===2)&&(te=4),ie===null||!(Kt&268435455)&&!(Yi&268435455)||gt(ie,ue)}function ji(e,t){var n=z;z|=2;var r=Rf();(ie!==e||ue!==t)&&(tt=null,bt(e,t));do try{Ap();break}catch(i){Of(e,i)}while(!0);if(du(),z=n,Ni.current=r,J!==null)throw Error(O(261));return ie=null,ue=0,te}function Ap(){for(;J!==null;)Nf(J)}function qp(){for(;J!==null&&!dh();)Nf(J)}function Nf(e){var t=jf(e.alternate,e,ke);e.memoizedProps=e.pendingProps,t===null?Tf(e):J=t,Pu.current=null}function Tf(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Lp(n,t),n!==null){n.flags&=32767,J=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{te=6,J=null;return}}else if(n=Dp(n,t,ke),n!==null){J=n;return}if(t=t.sibling,t!==null){J=t;return}J=t=e}while(t!==null);te===0&&(te=5)}function zt(e,t,n){var r=U,i=Fe.transition;try{Fe.transition=null,U=1,bp(e,t,n,r)}finally{Fe.transition=i,U=r}return null}function bp(e,t,n,r){do Sn();while(St!==null);if(z&6)throw Error(O(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(O(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(Ch(e,l),e===ie&&(J=ie=null,ue=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Vr||(Vr=!0,_f(di,function(){return Sn(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=Fe.transition,Fe.transition=null;var s=U;U=1;var u=z;z|=4,Pu.current=null,Fp(e,n),Ef(n,e),op(cs),pi=!!as,cs=as=null,e.current=n,Qp(n),hh(),z=u,U=s,Fe.transition=l}else e.current=n;if(Vr&&(Vr=!1,St=e,Mi=i),l=e.pendingLanes,l===0&&(Rt=null),yh(n.stateNode),Ce(e,Z()),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(Ti)throw Ti=!1,e=Ms,Ms=null,e;return Mi&1&&e.tag!==0&&Sn(),l=e.pendingLanes,l&1?e===js?er++:(er=0,js=e):er=0,It(),null}function Sn(){if(St!==null){var e=oc(Mi),t=Fe.transition,n=U;try{if(Fe.transition=null,U=16>e?16:e,St===null)var r=!1;else{if(e=St,St=null,Mi=0,z&6)throw Error(O(331));var i=z;for(z|=4,j=e.current;j!==null;){var l=j,s=l.child;if(j.flags&16){var u=l.deletions;if(u!==null){for(var o=0;o<u.length;o++){var a=u[o];for(j=a;j!==null;){var h=j;switch(h.tag){case 0:case 11:case 15:Zn(8,h,l)}var m=h.child;if(m!==null)m.return=h,j=m;else for(;j!==null;){h=j;var p=h.sibling,v=h.return;if(Sf(h),h===a){j=null;break}if(p!==null){p.return=v,j=p;break}j=v}}}var g=l.alternate;if(g!==null){var y=g.child;if(y!==null){g.child=null;do{var k=y.sibling;y.sibling=null,y=k}while(y!==null)}}j=l}}if(l.subtreeFlags&2064&&s!==null)s.return=l,j=s;else e:for(;j!==null;){if(l=j,l.flags&2048)switch(l.tag){case 0:case 11:case 15:Zn(9,l,l.return)}var f=l.sibling;if(f!==null){f.return=l.return,j=f;break e}j=l.return}}var c=e.current;for(j=c;j!==null;){s=j;var d=s.child;if(s.subtreeFlags&2064&&d!==null)d.return=s,j=d;else e:for(s=c;j!==null;){if(u=j,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:Gi(9,u)}}catch(x){X(u,u.return,x)}if(u===s){j=null;break e}var C=u.sibling;if(C!==null){C.return=u.return,j=C;break e}j=u.return}}if(z=i,It(),Je&&typeof Je.onPostCommitFiberRoot=="function")try{Je.onPostCommitFiberRoot(qi,e)}catch{}r=!0}return r}finally{U=n,Fe.transition=t}}return!1}function Go(e,t,n){t=On(n,t),t=af(e,t,1),e=Ot(e,t,1),t=me(),e!==null&&(kr(e,1,t),Ce(e,t))}function X(e,t,n){if(e.tag===3)Go(e,e,n);else for(;t!==null;){if(t.tag===3){Go(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Rt===null||!Rt.has(r))){e=On(n,e),e=cf(t,e,1),t=Ot(t,e,1),e=me(),t!==null&&(kr(t,1,e),Ce(t,e));break}}t=t.return}}function $p(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=me(),e.pingedLanes|=e.suspendedLanes&n,ie===e&&(ue&n)===n&&(te===4||te===3&&(ue&130023424)===ue&&500>Z()-Ru?bt(e,0):Ou|=n),Ce(e,t)}function Mf(e,t){t===0&&(e.mode&1?(t=Fr,Fr<<=1,!(Fr&130023424)&&(Fr=4194304)):t=1);var n=me();e=ot(e,t),e!==null&&(kr(e,t,n),Ce(e,n))}function Hp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Mf(e,n)}function Bp(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(O(314))}r!==null&&r.delete(t),Mf(e,n)}var jf;jf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Se.current)we=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return we=!1,_p(e,t,n);we=!!(e.flags&131072)}else we=!1,V&&t.flags&1048576&&Lc(t,xi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ii(e,t),e=t.pendingProps;var i=Cn(t,he.current);wn(t,n),i=Su(null,t,r,e,i,n);var l=xu();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,xe(r)?(l=!0,wi(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,mu(t),i.updater=Wi,t.stateNode=i,i._reactInternals=t,ws(t,r,e,n),t=Cs(null,t,r,!0,l,n)):(t.tag=0,V&&l&&ou(t),pe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ii(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Kp(r),e=Ae(r,e),i){case 0:t=xs(null,t,r,e,n);break e;case 1:t=Uo(null,t,r,e,n);break e;case 11:t=Qo(null,t,r,e,n);break e;case 14:t=zo(null,t,r,Ae(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ae(r,i),xs(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ae(r,i),Uo(e,t,r,i,n);case 3:e:{if(pf(t),e===null)throw Error(O(387));r=t.pendingProps,l=t.memoizedState,i=l.element,Ac(e,t),ki(t,r,null,n);var s=t.memoizedState;if(r=s.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=On(Error(O(423)),t),t=Ao(e,t,r,n,i);break e}else if(r!==i){i=On(Error(O(424)),t),t=Ao(e,t,r,n,i);break e}else for(Oe=Pt(t.stateNode.containerInfo.firstChild),Re=t,V=!0,be=null,n=zc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(En(),r===i){t=at(e,t,n);break e}pe(e,t,r,n)}t=t.child}return t;case 5:return qc(t),e===null&&ys(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,s=i.children,fs(r,i)?s=null:l!==null&&fs(r,l)&&(t.flags|=32),hf(e,t),pe(e,t,s,n),t.child;case 6:return e===null&&ys(t),null;case 13:return mf(e,t,n);case 4:return yu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=kn(t,null,r,n):pe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ae(r,i),Qo(e,t,r,i,n);case 7:return pe(e,t,t.pendingProps,n),t.child;case 8:return pe(e,t,t.pendingProps.children,n),t.child;case 12:return pe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,s=i.value,b(Ci,r._currentValue),r._currentValue=s,l!==null)if(Be(l.value,s)){if(l.children===i.children&&!Se.current){t=at(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var u=l.dependencies;if(u!==null){s=l.child;for(var o=u.firstContext;o!==null;){if(o.context===r){if(l.tag===1){o=lt(-1,n&-n),o.tag=2;var a=l.updateQueue;if(a!==null){a=a.shared;var h=a.pending;h===null?o.next=o:(o.next=h.next,h.next=o),a.pending=o}}l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),vs(l.return,n,t),u.lanes|=n;break}o=o.next}}else if(l.tag===10)s=l.type===t.type?null:l.child;else if(l.tag===18){if(s=l.return,s===null)throw Error(O(341));s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),vs(s,n,t),s=l.sibling}else s=l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===t){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}pe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,wn(t,n),i=Qe(i),r=r(i),t.flags|=1,pe(e,t,r,n),t.child;case 14:return r=t.type,i=Ae(r,t.pendingProps),i=Ae(r.type,i),zo(e,t,r,i,n);case 15:return ff(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ae(r,i),ii(e,t),t.tag=1,xe(r)?(e=!0,wi(t)):e=!1,wn(t,n),of(t,r,i),ws(t,r,i,n),Cs(null,t,r,!0,e,n);case 19:return yf(e,t,n);case 22:return df(e,t,n)}throw Error(O(156,t.tag))};function _f(e,t){return ic(e,t)}function Vp(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 Ie(e,t,n,r){return new Vp(e,t,n,r)}function ju(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Kp(e){if(typeof e=="function")return ju(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ys)return 11;if(e===Xs)return 14}return 2}function Tt(e,t){var n=e.alternate;return n===null?(n=Ie(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 ui(e,t,n,r,i,l){var s=2;if(r=e,typeof e=="function")ju(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case en:return $t(n.children,i,l,t);case Gs:s=8,i|=8;break;case $l:return e=Ie(12,n,t,i|2),e.elementType=$l,e.lanes=l,e;case Hl:return e=Ie(13,n,t,i),e.elementType=Hl,e.lanes=l,e;case Bl:return e=Ie(19,n,t,i),e.elementType=Bl,e.lanes=l,e;case qa:return Xi(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ua:s=10;break e;case Aa:s=9;break e;case Ys:s=11;break e;case Xs:s=14;break e;case pt:s=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=Ie(s,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function $t(e,t,n,r){return e=Ie(7,e,r,t),e.lanes=n,e}function Xi(e,t,n,r){return e=Ie(22,e,r,t),e.elementType=qa,e.lanes=n,e.stateNode={isHidden:!1},e}function jl(e,t,n){return e=Ie(6,e,null,t),e.lanes=n,e}function _l(e,t,n){return t=Ie(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wp(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=dl(0),this.expirationTimes=dl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function _u(e,t,n,r,i,l,s,u,o){return e=new Wp(e,t,n,u,o),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Ie(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},mu(l),e}function Gp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Jt,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Df(e){if(!e)return _t;e=e._reactInternals;e:{if(Yt(e)!==e||e.tag!==1)throw Error(O(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(xe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(O(171))}if(e.tag===1){var n=e.type;if(xe(n))return _c(e,n,t)}return t}function Lf(e,t,n,r,i,l,s,u,o){return e=_u(n,r,!0,e,i,l,s,u,o),e.context=Df(null),n=e.current,r=me(),i=Nt(n),l=lt(r,i),l.callback=t??null,Ot(n,l,i),e.current.lanes=i,kr(e,i,r),Ce(e,r),e}function Zi(e,t,n,r){var i=t.current,l=me(),s=Nt(i);return n=Df(n),t.context===null?t.context=n:t.pendingContext=n,t=lt(l,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ot(i,t,s),e!==null&&(He(e,i,s,l),ti(e,i,s)),s}function _i(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 Yo(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Du(e,t){Yo(e,t),(e=e.alternate)&&Yo(e,t)}function Yp(){return null}var If=typeof reportError=="function"?reportError:function(e){console.error(e)};function Lu(e){this._internalRoot=e}Ji.prototype.render=Lu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));Zi(e,t,null,null)};Ji.prototype.unmount=Lu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Wt(function(){Zi(null,e,null,null)}),t[ut]=null}};function Ji(e){this._internalRoot=e}Ji.prototype.unstable_scheduleHydration=function(e){if(e){var t=fc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<vt.length&&t!==0&&t<vt[n].priority;n++);vt.splice(n,0,e),n===0&&hc(e)}};function Iu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function el(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Xo(){}function Xp(e,t,n,r,i){if(i){if(typeof r=="function"){var l=r;r=function(){var a=_i(s);l.call(a)}}var s=Lf(t,r,e,0,null,!1,!1,"",Xo);return e._reactRootContainer=s,e[ut]=s.current,dr(e.nodeType===8?e.parentNode:e),Wt(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var u=r;r=function(){var a=_i(o);u.call(a)}}var o=_u(e,0,!1,null,null,!1,!1,"",Xo);return e._reactRootContainer=o,e[ut]=o.current,dr(e.nodeType===8?e.parentNode:e),Wt(function(){Zi(t,o,n,r)}),o}function tl(e,t,n,r,i){var l=n._reactRootContainer;if(l){var s=l;if(typeof i=="function"){var u=i;i=function(){var o=_i(s);u.call(o)}}Zi(t,s,e,i)}else s=Xp(n,t,e,i,r);return _i(s)}ac=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=$n(t.pendingLanes);n!==0&&(eu(t,n|1),Ce(t,Z()),!(z&6)&&(Rn=Z()+500,It()))}break;case 13:Wt(function(){var r=ot(e,1);if(r!==null){var i=me();He(r,e,1,i)}}),Du(e,1)}};tu=function(e){if(e.tag===13){var t=ot(e,134217728);if(t!==null){var n=me();He(t,e,134217728,n)}Du(e,134217728)}};cc=function(e){if(e.tag===13){var t=Nt(e),n=ot(e,t);if(n!==null){var r=me();He(n,e,t,r)}Du(e,t)}};fc=function(){return U};dc=function(e,t){var n=U;try{return U=e,t()}finally{U=n}};ts=function(e,t,n){switch(t){case"input":if(Wl(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=Bi(r);if(!i)throw Error(O(90));$a(r),Wl(r,i)}}}break;case"textarea":Ba(e,n);break;case"select":t=n.value,t!=null&&mn(e,!!n.multiple,t,!1)}};Za=Nu;Ja=Wt;var Zp={usingClientEntryPoint:!1,Events:[Or,ln,Bi,Ya,Xa,Nu]},An={findFiberByHostInstance:Ut,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Jp={bundleType:An.bundleType,version:An.version,rendererPackageName:An.rendererPackageName,rendererConfig:An.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ct.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=nc(e),e===null?null:e.stateNode},findFiberByHostInstance:An.findFiberByHostInstance||Yp,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 Kr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kr.isDisabled&&Kr.supportsFiber)try{qi=Kr.inject(Jp),Je=Kr}catch{}}Te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zp;Te.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Iu(t))throw Error(O(200));return Gp(e,t,null,n)};Te.createRoot=function(e,t){if(!Iu(e))throw Error(O(299));var n=!1,r="",i=If;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=_u(e,1,!1,null,null,n,!1,r,i),e[ut]=t.current,dr(e.nodeType===8?e.parentNode:e),new Lu(t)};Te.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(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=nc(t),e=e===null?null:e.stateNode,e};Te.flushSync=function(e){return Wt(e)};Te.hydrate=function(e,t,n){if(!el(t))throw Error(O(200));return tl(null,e,t,!0,n)};Te.hydrateRoot=function(e,t,n){if(!Iu(e))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,i=!1,l="",s=If;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Lf(t,null,e,1,n??null,i,!1,l,s),e[ut]=t.current,dr(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 Ji(t)};Te.render=function(e,t,n){if(!el(t))throw Error(O(200));return tl(null,e,t,!1,n)};Te.unmountComponentAtNode=function(e){if(!el(e))throw Error(O(40));return e._reactRootContainer?(Wt(function(){tl(null,null,e,!1,function(){e._reactRootContainer=null,e[ut]=null})}),!0):!1};Te.unstable_batchedUpdates=Nu;Te.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!el(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return tl(e,t,n,!1,r)};Te.version="18.3.1-next-f1338f8080-20240426";function Ff(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ff)}catch(e){console.error(e)}}Ff(),Ia.exports=Te;var em=Ia.exports,Zo=em;ql.createRoot=Zo.createRoot,ql.hydrateRoot=Zo.hydrateRoot;class Xt{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const xr=typeof window>"u"||"Deno"in window;function _e(){}function tm(e,t){return typeof e=="function"?e(t):e}function Ls(e){return typeof e=="number"&&e>=0&&e!==1/0}function Jo(e,t){return e.filter(n=>!t.includes(n))}function nm(e,t,n){const r=e.slice(0);return r[t]=n,r}function Qf(e,t){return Math.max(e+(t||0)-Date.now(),0)}function dn(e,t,n){return Nr(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function rm(e,t,n){return Nr(e)?{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function yt(e,t,n){return Nr(e)?[{...t,queryKey:e},n]:[e||{},t]}function ea(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:l,queryKey:s,stale:u}=e;if(Nr(s)){if(r){if(t.queryHash!==Fu(s,t.options))return!1}else if(!Di(t.queryKey,s))return!1}if(n!=="all"){const o=t.isActive();if(n==="active"&&!o||n==="inactive"&&o)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||typeof i<"u"&&i!==t.state.fetchStatus||l&&!l(t))}function ta(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:l}=e;if(Nr(l)){if(!t.options.mutationKey)return!1;if(n){if(xt(t.options.mutationKey)!==xt(l))return!1}else if(!Di(t.options.mutationKey,l))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function Fu(e,t){return((t==null?void 0:t.queryKeyHashFn)||xt)(e)}function xt(e){return JSON.stringify(e,(t,n)=>Is(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Di(e,t){return zf(e,t)}function zf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!zf(e[n],t[n])):!1}function Uf(e,t){if(e===t)return e;const n=na(e)&&na(t);if(n||Is(e)&&Is(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),l=i.length,s=n?[]:{};let u=0;for(let o=0;o<l;o++){const a=n?o:i[o];s[a]=Uf(e[a],t[a]),s[a]===e[a]&&u++}return r===l&&u===r?e:s}return t}function Li(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function na(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Is(e){if(!ra(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!ra(n)||!n.hasOwnProperty("isPrototypeOf"))}function ra(e){return Object.prototype.toString.call(e)==="[object Object]"}function Nr(e){return Array.isArray(e)}function Af(e){return new Promise(t=>{setTimeout(t,e)})}function ia(e){Af(0).then(e)}function im(){if(typeof AbortController=="function")return new AbortController}function Fs(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Uf(e,t):t}class lm extends Xt{constructor(){super(),this.setup=t=>{if(!xr&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Ii=new lm,la=["online","offline"];class sm extends Xt{constructor(){super(),this.setup=t=>{if(!xr&&window.addEventListener){const n=()=>t();return la.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{la.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Fi=new sm;function um(e){return Math.min(1e3*2**e,3e4)}function nl(e){return(e??"online")==="online"?Fi.isOnline():!0}class qf{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function oi(e){return e instanceof qf}function bf(e){let t=!1,n=0,r=!1,i,l,s;const u=new Promise((k,f)=>{l=k,s=f}),o=k=>{r||(v(new qf(k)),e.abort==null||e.abort())},a=()=>{t=!0},h=()=>{t=!1},m=()=>!Ii.isFocused()||e.networkMode!=="always"&&!Fi.isOnline(),p=k=>{r||(r=!0,e.onSuccess==null||e.onSuccess(k),i==null||i(),l(k))},v=k=>{r||(r=!0,e.onError==null||e.onError(k),i==null||i(),s(k))},g=()=>new Promise(k=>{i=f=>{const c=r||!m();return c&&k(f),c},e.onPause==null||e.onPause()}).then(()=>{i=void 0,r||e.onContinue==null||e.onContinue()}),y=()=>{if(r)return;let k;try{k=e.fn()}catch(f){k=Promise.reject(f)}Promise.resolve(k).then(p).catch(f=>{var c,d;if(r)return;const C=(c=e.retry)!=null?c:3,x=(d=e.retryDelay)!=null?d:um,S=typeof x=="function"?x(n,f):x,w=C===!0||typeof C=="number"&&n<C||typeof C=="function"&&C(n,f);if(t||!w){v(f);return}n++,e.onFail==null||e.onFail(n,f),Af(S).then(()=>{if(m())return g()}).then(()=>{t?v(f):y()})})};return nl(e.networkMode)?y():g().then(y),{promise:u,cancel:o,continue:()=>(i==null?void 0:i())?u:Promise.resolve(),cancelRetry:a,continueRetry:h}}const Qu=console;function om(){let e=[],t=0,n=h=>{h()},r=h=>{h()};const i=h=>{let m;t++;try{m=h()}finally{t--,t||u()}return m},l=h=>{t?e.push(h):ia(()=>{n(h)})},s=h=>(...m)=>{l(()=>{h(...m)})},u=()=>{const h=e;e=[],h.length&&ia(()=>{r(()=>{h.forEach(m=>{n(m)})})})};return{batch:i,batchCalls:s,schedule:l,setNotifyFunction:h=>{n=h},setBatchNotifyFunction:h=>{r=h}}}const H=om();class $f{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ls(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(xr?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class am extends $f{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||Qu,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||cm(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=Fs(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(_e).catch(_e):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Qf(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var l;return(l=this.retryer)==null||l.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const v=this.observers.find(g=>g.options.queryFn);v&&this.setOptions(v.options)}const s=im(),u={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},o=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>{if(s)return this.abortSignalConsumed=!0,s.signal}})};o(u);const a=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(u)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),h={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};if(o(h),(r=this.options.behavior)==null||r.onFetch(h),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=h.fetchOptions)==null?void 0:i.meta)){var m;this.dispatch({type:"fetch",meta:(m=h.fetchOptions)==null?void 0:m.meta})}const p=v=>{if(oi(v)&&v.silent||this.dispatch({type:"error",error:v}),!oi(v)){var g,y,k,f;(g=(y=this.cache.config).onError)==null||g.call(y,v,this),(k=(f=this.cache.config).onSettled)==null||k.call(f,this.state.data,v,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=bf({fn:h.fetchFn,abort:s==null?void 0:s.abort.bind(s),onSuccess:v=>{var g,y,k,f;if(typeof v>"u"){p(new Error(this.queryHash+" data is undefined"));return}this.setData(v),(g=(y=this.cache.config).onSuccess)==null||g.call(y,v,this),(k=(f=this.cache.config).onSettled)==null||k.call(f,v,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:(v,g)=>{this.dispatch({type:"failed",failureCount:v,error:g})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var i,l;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,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=t.meta)!=null?i:null,fetchStatus:nl(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(l=t.dataUpdatedAt)!=null?l:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return oi(s)&&s.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),H.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function cm(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",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":"loading",fetchStatus:"idle"}}class fm extends Xt{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var i;const l=n.queryKey,s=(i=n.queryHash)!=null?i:Fu(l,n);let u=this.get(s);return u||(u=new am({cache:this,logger:t.getLogger(),queryKey:l,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(l)}),this.add(u)),u}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){H.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=yt(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(i=>ea(r,i))}findAll(t,n){const[r]=yt(t,n);return Object.keys(r).length>0?this.queries.filter(i=>ea(r,i)):this.queries}notify(t){H.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){H.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){H.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class dm extends $f{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||Qu,this.observers=[],this.state=t.state||Hf(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var w;return this.retryer=bf({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(E,M)=>{this.dispatch({type:"failed",failureCount:E,error:M})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(w=this.options.retry)!=null?w:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,i,l,s,u,o,a,h;if(!n){var m,p,v,g;this.dispatch({type:"loading",variables:this.options.variables}),await((m=(p=this.mutationCache.config).onMutate)==null?void 0:m.call(p,this.state.variables,this));const E=await((v=(g=this.options).onMutate)==null?void 0:v.call(g,this.state.variables));E!==this.state.context&&this.dispatch({type:"loading",context:E,variables:this.state.variables})}const w=await t();return await((r=(i=this.mutationCache.config).onSuccess)==null?void 0:r.call(i,w,this.state.variables,this.state.context,this)),await((l=(s=this.options).onSuccess)==null?void 0:l.call(s,w,this.state.variables,this.state.context)),await((u=(o=this.mutationCache.config).onSettled)==null?void 0:u.call(o,w,null,this.state.variables,this.state.context,this)),await((a=(h=this.options).onSettled)==null?void 0:a.call(h,w,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:w}),w}catch(w){try{var y,k,f,c,d,C,x,S;throw await((y=(k=this.mutationCache.config).onError)==null?void 0:y.call(k,w,this.state.variables,this.state.context,this)),await((f=(c=this.options).onError)==null?void 0:f.call(c,w,this.state.variables,this.state.context)),await((d=(C=this.mutationCache.config).onSettled)==null?void 0:d.call(C,void 0,w,this.state.variables,this.state.context,this)),await((x=(S=this.options).onSettled)==null?void 0:x.call(S,void 0,w,this.state.variables,this.state.context)),w}finally{this.dispatch({type:"error",error:w})}}}dispatch(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"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!nl(this.options.networkMode),status:"loading",variables:t.variables};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"};case"setState":return{...r,...t.state}}};this.state=n(this.state),H.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function Hf(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class hm extends Xt{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const i=new dm({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(i),i}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){H.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>ta(t,n))}findAll(t){return this.mutations.filter(n=>ta(t,n))}notify(t){H.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return H.batch(()=>n.reduce((r,i)=>r.then(()=>i.continue().catch(_e)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function Qs(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,l,s;const u=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,o=(r=e.fetchOptions)==null||(i=r.meta)==null?void 0:i.fetchMore,a=o==null?void 0:o.pageParam,h=(o==null?void 0:o.direction)==="forward",m=(o==null?void 0:o.direction)==="backward",p=((l=e.state.data)==null?void 0:l.pages)||[],v=((s=e.state.data)==null?void 0:s.pageParams)||[];let g=v,y=!1;const k=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>{var w;if((w=e.signal)!=null&&w.aborted)y=!0;else{var E;(E=e.signal)==null||E.addEventListener("abort",()=>{y=!0})}return e.signal}})},f=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),c=(S,w,E,M)=>(g=M?[w,...g]:[...g,w],M?[E,...S]:[...S,E]),d=(S,w,E,M)=>{if(y)return Promise.reject("Cancelled");if(typeof E>"u"&&!w&&S.length)return Promise.resolve(S);const N={queryKey:e.queryKey,pageParam:E,meta:e.options.meta};k(N);const A=f(N);return Promise.resolve(A).then(le=>c(S,E,le,M))};let C;if(!p.length)C=d([]);else if(h){const S=typeof a<"u",w=S?a:zs(e.options,p);C=d(p,S,w)}else if(m){const S=typeof a<"u",w=S?a:Bf(e.options,p);C=d(p,S,w,!0)}else{g=[];const S=typeof e.options.getNextPageParam>"u";C=(u&&p[0]?u(p[0],0,p):!0)?d([],S,v[0]):Promise.resolve(c([],v[0],p[0]));for(let E=1;E<p.length;E++)C=C.then(M=>{if(u&&p[E]?u(p[E],E,p):!0){const A=S?v[E]:zs(e.options,M);return d(M,S,A)}return Promise.resolve(c(M,v[E],p[E]))})}return C.then(S=>({pages:S,pageParams:g}))}}}}function zs(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function Bf(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function pm(e,t){if(e.getNextPageParam&&Array.isArray(t)){const n=zs(e,t);return typeof n<"u"&&n!==null&&n!==!1}}function mm(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const n=Bf(e,t);return typeof n<"u"&&n!==null&&n!==!1}}class ym{constructor(t={}){this.queryCache=t.queryCache||new fm,this.mutationCache=t.mutationCache||new hm,this.logger=t.logger||Qu,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=Ii.subscribe(()=>{Ii.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Fi.subscribe(()=>{Fi.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=yt(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const i=dn(t,n,r),l=this.getQueryData(i.queryKey);return l?Promise.resolve(l):this.fetchQuery(i)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(t,n,r){const i=this.queryCache.find(t),l=i==null?void 0:i.state.data,s=tm(n,l);if(typeof s>"u")return;const u=dn(t),o=this.defaultQueryOptions(u);return this.queryCache.build(this,o).setData(s,{...r,manual:!0})}setQueriesData(t,n,r){return H.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=yt(t,n),i=this.queryCache;H.batch(()=>{i.findAll(r).forEach(l=>{i.remove(l)})})}resetQueries(t,n,r){const[i,l]=yt(t,n,r),s=this.queryCache,u={type:"active",...i};return H.batch(()=>(s.findAll(i).forEach(o=>{o.reset()}),this.refetchQueries(u,l)))}cancelQueries(t,n,r){const[i,l={}]=yt(t,n,r);typeof l.revert>"u"&&(l.revert=!0);const s=H.batch(()=>this.queryCache.findAll(i).map(u=>u.cancel(l)));return Promise.all(s).then(_e).catch(_e)}invalidateQueries(t,n,r){const[i,l]=yt(t,n,r);return H.batch(()=>{var s,u;if(this.queryCache.findAll(i).forEach(a=>{a.invalidate()}),i.refetchType==="none")return Promise.resolve();const o={...i,type:(s=(u=i.refetchType)!=null?u:i.type)!=null?s:"active"};return this.refetchQueries(o,l)})}refetchQueries(t,n,r){const[i,l]=yt(t,n,r),s=H.batch(()=>this.queryCache.findAll(i).filter(o=>!o.isDisabled()).map(o=>{var a;return o.fetch(void 0,{...l,cancelRefetch:(a=l==null?void 0:l.cancelRefetch)!=null?a:!0,meta:{refetchPage:i.refetchPage}})}));let u=Promise.all(s).then(_e);return l!=null&&l.throwOnError||(u=u.catch(_e)),u}fetchQuery(t,n,r){const i=dn(t,n,r),l=this.defaultQueryOptions(i);typeof l.retry>"u"&&(l.retry=!1);const s=this.queryCache.build(this,l);return s.isStaleByTime(l.staleTime)?s.fetch(l):Promise.resolve(s.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(_e).catch(_e)}fetchInfiniteQuery(t,n,r){const i=dn(t,n,r);return i.behavior=Qs(),this.fetchQuery(i)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(_e).catch(_e)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(i=>xt(t)===xt(i.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>Di(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(i=>xt(t)===xt(i.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>Di(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=Fu(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class zu extends Xt{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),sa(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Us(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Us(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),Li(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const l=this.hasListeners();l&&ua(this.currentQuery,i,this.options,r)&&this.executeFetch(),this.updateResult(n),l&&(this.currentQuery!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const s=this.computeRefetchInterval();l&&(this.currentQuery!==i||this.options.enabled!==r.enabled||s!==this.currentRefetchInterval)&&this.updateRefetchInterval(s)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return gm(this,r,t)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(_e)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),xr||this.currentResult.isStale||!Ls(this.options.staleTime))return;const n=Qf(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(xr||this.options.enabled===!1||!Ls(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Ii.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,i=this.options,l=this.currentResult,s=this.currentResultState,u=this.currentResultOptions,o=t!==r,a=o?t.state:this.currentQueryInitialState,h=o?this.currentResult:this.previousQueryResult,{state:m}=t;let{dataUpdatedAt:p,error:v,errorUpdatedAt:g,fetchStatus:y,status:k}=m,f=!1,c=!1,d;if(n._optimisticResults){const E=this.hasListeners(),M=!E&&sa(t,n),N=E&&ua(t,r,n,i);(M||N)&&(y=nl(t.options.networkMode)?"fetching":"paused",p||(k="loading")),n._optimisticResults==="isRestoring"&&(y="idle")}if(n.keepPreviousData&&!m.dataUpdatedAt&&h!=null&&h.isSuccess&&k!=="error")d=h.data,p=h.dataUpdatedAt,k=h.status,f=!0;else if(n.select&&typeof m.data<"u")if(l&&m.data===(s==null?void 0:s.data)&&n.select===this.selectFn)d=this.selectResult;else try{this.selectFn=n.select,d=n.select(m.data),d=Fs(l==null?void 0:l.data,d,n),this.selectResult=d,this.selectError=null}catch(E){this.selectError=E}else d=m.data;if(typeof n.placeholderData<"u"&&typeof d>"u"&&k==="loading"){let E;if(l!=null&&l.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData))E=l.data;else if(E=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof E<"u")try{E=n.select(E),this.selectError=null}catch(M){this.selectError=M}typeof E<"u"&&(k="success",d=Fs(l==null?void 0:l.data,E,n),c=!0)}this.selectError&&(v=this.selectError,d=this.selectResult,g=Date.now(),k="error");const C=y==="fetching",x=k==="loading",S=k==="error";return{status:k,fetchStatus:y,isLoading:x,isSuccess:k==="success",isError:S,isInitialLoading:x&&C,data:d,dataUpdatedAt:p,error:v,errorUpdatedAt:g,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>a.dataUpdateCount||m.errorUpdateCount>a.errorUpdateCount,isFetching:C,isRefetching:C&&!x,isLoadingError:S&&m.dataUpdatedAt===0,isPaused:y==="paused",isPlaceholderData:c,isPreviousData:f,isRefetchError:S&&m.dataUpdatedAt!==0,isStale:Uu(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Li(r,n))return;this.currentResult=r;const i={cache:!0},l=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,u=typeof s=="function"?s():s;if(u==="all"||!u&&!this.trackedProps.size)return!0;const o=new Set(u??this.trackedProps);return this.options.useErrorBoundary&&o.add("error"),Object.keys(this.currentResult).some(a=>{const h=a;return this.currentResult[h]!==n[h]&&o.has(h)})};(t==null?void 0:t.listeners)!==!1&&l()&&(i.listeners=!0),this.notify({...i,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!oi(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){H.batch(()=>{if(t.onSuccess){var n,r,i,l;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(i=(l=this.options).onSettled)==null||i.call(l,this.currentResult.data,null)}else if(t.onError){var s,u,o,a;(s=(u=this.options).onError)==null||s.call(u,this.currentResult.error),(o=(a=this.options).onSettled)==null||o.call(a,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:h})=>{h(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function vm(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function sa(e,t){return vm(e,t)||e.state.dataUpdatedAt>0&&Us(e,t,t.refetchOnMount)}function Us(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Uu(e,t)}return!1}function ua(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Uu(e,n)}function Uu(e,t){return e.isStaleByTime(t.staleTime)}function gm(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!Li(e.getCurrentResult(),t)}class wm extends Xt{constructor(t,n){super(),this.client=t,this.queries=[],this.result=[],this.observers=[],this.observersMap={},n&&this.setQueries(n)}onSubscribe(){this.listeners.size===1&&this.observers.forEach(t=>{t.subscribe(n=>{this.onUpdate(t,n)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.observers.forEach(t=>{t.destroy()})}setQueries(t,n){this.queries=t,H.batch(()=>{const r=this.observers,i=this.findMatchingObservers(this.queries);i.forEach(a=>a.observer.setOptions(a.defaultedQueryOptions,n));const l=i.map(a=>a.observer),s=Object.fromEntries(l.map(a=>[a.options.queryHash,a])),u=l.map(a=>a.getCurrentResult()),o=l.some((a,h)=>a!==r[h]);r.length===l.length&&!o||(this.observers=l,this.observersMap=s,this.result=u,this.hasListeners()&&(Jo(r,l).forEach(a=>{a.destroy()}),Jo(l,r).forEach(a=>{a.subscribe(h=>{this.onUpdate(a,h)})}),this.notify()))})}getCurrentResult(){return this.result}getQueries(){return this.observers.map(t=>t.getCurrentQuery())}getObservers(){return this.observers}getOptimisticResult(t){return this.findMatchingObservers(t).map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions))}findMatchingObservers(t){const n=this.observers,r=new Map(n.map(v=>[v.options.queryHash,v])),i=t.map(v=>this.client.defaultQueryOptions(v)),l=i.flatMap(v=>{const g=r.get(v.queryHash);return g!=null?[{defaultedQueryOptions:v,observer:g}]:[]}),s=new Set(l.map(v=>v.defaultedQueryOptions.queryHash)),u=i.filter(v=>!s.has(v.queryHash)),o=new Set(l.map(v=>v.observer)),a=n.filter(v=>!o.has(v)),h=v=>{const g=this.client.defaultQueryOptions(v),y=this.observersMap[g.queryHash];return y??new zu(this.client,g)},m=u.map((v,g)=>{if(v.keepPreviousData){const y=a[g];if(y!==void 0)return{defaultedQueryOptions:v,observer:y}}return{defaultedQueryOptions:v,observer:h(v)}}),p=(v,g)=>i.indexOf(v.defaultedQueryOptions)-i.indexOf(g.defaultedQueryOptions);return l.concat(m).sort(p)}onUpdate(t,n){const r=this.observers.indexOf(t);r!==-1&&(this.result=nm(this.result,r,n),this.notify())}notify(){H.batch(()=>{this.listeners.forEach(({listener:t})=>{t(this.result)})})}}class Sm extends zu{constructor(t,n){super(t,n)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,n){super.setOptions({...t,behavior:Qs()},n)}getOptimisticResult(t){return t.behavior=Qs(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,n){var r,i,l,s,u,o;const{state:a}=t,h=super.createResult(t,n),{isFetching:m,isRefetching:p}=h,v=m&&((r=a.fetchMeta)==null||(i=r.fetchMore)==null?void 0:i.direction)==="forward",g=m&&((l=a.fetchMeta)==null||(s=l.fetchMore)==null?void 0:s.direction)==="backward";return{...h,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:pm(n,(u=a.data)==null?void 0:u.pages),hasPreviousPage:mm(n,(o=a.data)==null?void 0:o.pages),isFetchingNextPage:v,isFetchingPreviousPage:g,isRefetching:p&&!v&&!g}}}let xm=class extends Xt{constructor(t,n){super(),this.client=t,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=this.client.defaultMutationOptions(t),Li(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(n=this.currentMutation)==null||n.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const n={listeners:!0};t.type==="success"?n.onSuccess=!0:t.type==="error"&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:Hf(),n=t.status==="loading",r={...t,isLoading:n,isPending:n,isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=r}notify(t){H.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,i,l;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(i=(l=this.mutateOptions).onSettled)==null||i.call(l,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var s,u,o,a;(s=(u=this.mutateOptions).onError)==null||s.call(u,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(o=(a=this.mutateOptions).onSettled)==null||o.call(a,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(({listener:h})=>{h(this.currentResult)})})}};var Vf={exports:{}},Kf={};/**
40
+ `+l.stack}return{value:e,source:t,stack:i,digest:null}}function jl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ss(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Tp=typeof WeakMap=="function"?WeakMap:Map;function cf(e,t,n){n=ut(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ji||(ji=!0,Ts=r),Ss(e,t)},n}function ff(e,t,n){n=ut(-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(){Ss(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){Ss(e,t),typeof r!="function"&&(jt===null?jt=new Set([this]):jt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Lo(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Tp;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=Hp.bind(null,e,t,n),t.then(e,e))}function Do(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 Fo(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=ut(-1,1),t.tag=2,Nt(n,t,1))),n.lanes|=1),e)}var Mp=dt.ReactCurrentOwner,we=!1;function pe(e,t,n,r){t.child=e===null?Uc(t,null,n,r):Pn(t,e.child,n,r)}function zo(e,t,n,r,i){n=n.render;var l=t.ref;return Sn(t,i),r=Su(e,t,n,r,l,i),n=xu(),e!==null&&!we?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ft(e,t,i)):(V&&n&&ou(t),t.flags|=1,pe(e,t,r,i),t.child)}function Qo(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!Mu(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,df(e,t,l,r,i)):(e=ui(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 s=l.memoizedProps;if(n=n.compare,n=n!==null?n:fr,n(s,r)&&e.ref===t.ref)return ft(e,t,i)}return t.flags|=1,e=Mt(l,r),e.ref=t.ref,e.return=t,t.child=e}function df(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(fr(l,r)&&e.ref===t.ref)if(we=!1,t.pendingProps=r=l,(e.lanes&i)!==0)e.flags&131072&&(we=!0);else return t.lanes=e.lanes,ft(e,t,i)}return xs(e,t,n,r,i)}function hf(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},q(hn,ke),ke|=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,q(hn,ke),ke|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,q(hn,ke),ke|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,q(hn,ke),ke|=r;return pe(e,t,i,n),t.child}function pf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function xs(e,t,n,r,i){var l=xe(n)?Vt:he.current;return l=En(t,l),Sn(t,i),n=Su(e,t,n,r,l,i),r=xu(),e!==null&&!we?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ft(e,t,i)):(V&&r&&ou(t),t.flags|=1,pe(e,t,n,i),t.child)}function Uo(e,t,n,r,i){if(xe(n)){var l=!0;wi(t)}else l=!1;if(Sn(t,i),t.stateNode===null)ii(e,t),af(t,n,r),ws(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,u=t.memoizedProps;s.props=u;var o=s.context,a=n.contextType;typeof a=="object"&&a!==null?a=ze(a):(a=xe(n)?Vt:he.current,a=En(t,a));var h=n.getDerivedStateFromProps,y=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function";y||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(u!==r||o!==a)&&Io(t,s,r,a),vt=!1;var p=t.memoizedState;s.state=p,ki(t,r,s,i),o=t.memoizedState,u!==r||p!==o||Se.current||vt?(typeof h=="function"&&(gs(t,n,h,r),o=t.memoizedState),(u=vt||_o(t,n,u,r,p,o,a))?(y||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=o),s.props=r,s.state=o,s.context=a,r=u):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,bc(e,t),u=t.memoizedProps,a=t.type===t.elementType?u:Ae(t.type,u),s.props=a,y=t.pendingProps,p=s.context,o=n.contextType,typeof o=="object"&&o!==null?o=ze(o):(o=xe(n)?Vt:he.current,o=En(t,o));var v=n.getDerivedStateFromProps;(h=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(u!==y||p!==o)&&Io(t,s,r,o),vt=!1,p=t.memoizedState,s.state=p,ki(t,r,s,i);var g=t.memoizedState;u!==y||p!==g||Se.current||vt?(typeof v=="function"&&(gs(t,n,v,r),g=t.memoizedState),(a=vt||_o(t,n,a,r,p,g,o)||!1)?(h||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,g,o),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,g,o)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),s.props=r,s.state=g,s.context=o,r=a):(typeof s.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Cs(e,t,n,r,l,i)}function Cs(e,t,n,r,i,l){pf(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&ko(t,n,!1),ft(e,t,l);r=t.stateNode,Mp.current=t;var u=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Pn(t,e.child,null,l),t.child=Pn(t,null,u,l)):pe(e,t,u,l),t.memoizedState=r.state,i&&ko(t,n,!0),t.child}function mf(e){var t=e.stateNode;t.pendingContext?Eo(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Eo(e,t.context,!1),yu(e,t.containerInfo)}function Ao(e,t,n,r,i){return kn(),cu(i),t.flags|=256,pe(e,t,n,r),t.child}var Es={dehydrated:null,treeContext:null,retryLane:0};function ks(e){return{baseLanes:e,cachePool:null,transitions:null}}function yf(e,t,n){var r=t.pendingProps,i=W.current,l=!1,s=(t.flags&128)!==0,u;if((u=s)||(u=e!==null&&e.memoizedState===null?!1:(i&2)!==0),u?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),q(W,i&1),e===null)return ys(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):(s=r.children,e=r.fallback,l?(r=t.mode,l=t.child,s={mode:"hidden",children:s},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=s):l=Xi(s,r,0,null),e=Bt(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=ks(n),t.memoizedState=Es,e):ku(t,s));if(i=e.memoizedState,i!==null&&(u=i.dehydrated,u!==null))return _p(e,t,s,r,u,i,n);if(l){l=r.fallback,s=t.mode,i=e.child,u=i.sibling;var o={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=o,t.deletions=null):(r=Mt(i,o),r.subtreeFlags=i.subtreeFlags&14680064),u!==null?l=Mt(u,l):(l=Bt(l,s,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,s=e.child.memoizedState,s=s===null?ks(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Es,r}return l=e.child,e=l.sibling,r=Mt(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 ku(e,t){return t=Xi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Hr(e,t,n,r){return r!==null&&cu(r),Pn(t,e.child,null,n),e=ku(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _p(e,t,n,r,i,l,s){if(n)return t.flags&256?(t.flags&=-257,r=jl(Error(O(422))),Hr(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,i=t.mode,r=Xi({mode:"visible",children:r.children},i,0,null),l=Bt(l,i,s,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&Pn(t,e.child,null,s),t.child.memoizedState=ks(s),t.memoizedState=Es,l);if(!(t.mode&1))return Hr(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var u=r.dgst;return r=u,l=Error(O(419)),r=jl(l,r,void 0),Hr(e,t,s,r)}if(u=(s&e.childLanes)!==0,we||u){if(r=ie,r!==null){switch(s&-s){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|s)?0:i,i!==0&&i!==l.retryLane&&(l.retryLane=i,ct(e,i),He(r,e,i,-1))}return Tu(),r=jl(Error(O(421))),Hr(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Bp.bind(null,e),i._reactRetry=t,null):(e=l.treeContext,Oe=Rt(i.nextSibling),Re=t,V=!0,qe=null,e!==null&&(Ie[Le++]=lt,Ie[Le++]=st,Ie[Le++]=Kt,lt=e.id,st=e.overflow,Kt=t),t=ku(t,r.children),t.flags|=4096,t)}function bo(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),vs(e.return,t,n)}function Tl(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 vf(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if(pe(e,t,r.children,n),r=W.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&&bo(e,n,t);else if(e.tag===19)bo(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(q(W,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&&Pi(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Tl(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&&Pi(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Tl(t,!0,n,null,l);break;case"together":Tl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ii(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ft(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Gt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));if(t.child!==null){for(e=t.child,n=Mt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Mt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ip(e,t,n){switch(t.tag){case 3:mf(t),kn();break;case 5:qc(t);break;case 1:xe(t.type)&&wi(t);break;case 4:yu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;q(Ci,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(q(W,W.current&1),t.flags|=128,null):n&t.child.childLanes?yf(e,t,n):(q(W,W.current&1),e=ft(e,t,n),e!==null?e.sibling:null);q(W,W.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return vf(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),q(W,W.current),r)break;return null;case 22:case 23:return t.lanes=0,hf(e,t,n)}return ft(e,t,n)}var gf,Ps,wf,Sf;gf=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}};Ps=function(){};wf=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,$t(et.current);var l=null;switch(n){case"input":i=Kl(e,i),r=Kl(e,r),l=[];break;case"select":i=Y({},i,{value:void 0}),r=Y({},r,{value:void 0}),l=[];break;case"textarea":i=Yl(e,i),r=Yl(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=vi)}Zl(n,r);var s;n=null;for(a in i)if(!r.hasOwnProperty(a)&&i.hasOwnProperty(a)&&i[a]!=null)if(a==="style"){var u=i[a];for(s in u)u.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(ir.hasOwnProperty(a)?l||(l=[]):(l=l||[]).push(a,null));for(a in r){var o=r[a];if(u=i!=null?i[a]:void 0,r.hasOwnProperty(a)&&o!==u&&(o!=null||u!=null))if(a==="style")if(u){for(s in u)!u.hasOwnProperty(s)||o&&o.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in o)o.hasOwnProperty(s)&&u[s]!==o[s]&&(n||(n={}),n[s]=o[s])}else n||(l||(l=[]),l.push(a,n)),n=o;else a==="dangerouslySetInnerHTML"?(o=o?o.__html:void 0,u=u?u.__html:void 0,o!=null&&u!==o&&(l=l||[]).push(a,o)):a==="children"?typeof o!="string"&&typeof o!="number"||(l=l||[]).push(a,""+o):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(ir.hasOwnProperty(a)?(o!=null&&a==="onScroll"&&$("scroll",e),l||u===o||(l=[])):(l=l||[]).push(a,o))}n&&(l=l||[]).push("style",n);var a=l;(t.updateQueue=a)&&(t.flags|=4)}};Sf=function(e,t,n,r){n!==r&&(t.flags|=4)};function Un(e,t){if(!V)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 fe(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 Lp(e,t,n){var r=t.pendingProps;switch(au(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fe(t),null;case 1:return xe(t.type)&&gi(),fe(t),null;case 3:return r=t.stateNode,On(),B(Se),B(he),gu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(qr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,qe!==null&&(Is(qe),qe=null))),Ps(e,t),fe(t),null;case 5:vu(t);var i=$t(yr.current);if(n=t.type,e!==null&&t.stateNode!=null)wf(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(O(166));return fe(t),null}if(e=$t(et.current),qr(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Ye]=t,r[pr]=l,e=(t.mode&1)!==0,n){case"dialog":$("cancel",r),$("close",r);break;case"iframe":case"object":case"embed":$("load",r);break;case"video":case"audio":for(i=0;i<Hn.length;i++)$(Hn[i],r);break;case"source":$("error",r);break;case"img":case"image":case"link":$("error",r),$("load",r);break;case"details":$("toggle",r);break;case"input":Gu(r,l),$("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},$("invalid",r);break;case"textarea":Xu(r,l),$("invalid",r)}Zl(n,l),i=null;for(var s in l)if(l.hasOwnProperty(s)){var u=l[s];s==="children"?typeof u=="string"?r.textContent!==u&&(l.suppressHydrationWarning!==!0&&br(r.textContent,u,e),i=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(l.suppressHydrationWarning!==!0&&br(r.textContent,u,e),i=["children",""+u]):ir.hasOwnProperty(s)&&u!=null&&s==="onScroll"&&$("scroll",r)}switch(n){case"input":Ir(r),Yu(r,l,!0);break;case"textarea":Ir(r),Zu(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=vi)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ka(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Ye]=t,e[pr]=r,gf(e,t,!1,!1),t.stateNode=e;e:{switch(s=Jl(n,r),n){case"dialog":$("cancel",e),$("close",e),i=r;break;case"iframe":case"object":case"embed":$("load",e),i=r;break;case"video":case"audio":for(i=0;i<Hn.length;i++)$(Hn[i],e);i=r;break;case"source":$("error",e),i=r;break;case"img":case"image":case"link":$("error",e),$("load",e),i=r;break;case"details":$("toggle",e),i=r;break;case"input":Gu(e,r),i=Kl(e,r),$("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Y({},r,{value:void 0}),$("invalid",e);break;case"textarea":Xu(e,r),i=Yl(e,r),$("invalid",e);break;default:i=r}Zl(n,i),u=i;for(l in u)if(u.hasOwnProperty(l)){var o=u[l];l==="style"?Ya(e,o):l==="dangerouslySetInnerHTML"?(o=o?o.__html:void 0,o!=null&&Wa(e,o)):l==="children"?typeof o=="string"?(n!=="textarea"||o!=="")&&lr(e,o):typeof o=="number"&&lr(e,""+o):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(ir.hasOwnProperty(l)?o!=null&&l==="onScroll"&&$("scroll",e):o!=null&&Ws(e,l,o,s))}switch(n){case"input":Ir(e),Yu(e,r,!1);break;case"textarea":Ir(e),Zu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+It(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?yn(e,!!r.multiple,l,!1):r.defaultValue!=null&&yn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=vi)}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 fe(t),null;case 6:if(e&&t.stateNode!=null)Sf(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=$t(yr.current),$t(et.current),qr(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ye]=t,(l=r.nodeValue!==n)&&(e=Re,e!==null))switch(e.tag){case 3:br(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&br(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ye]=t,t.stateNode=r}return fe(t),null;case 13:if(B(W),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(V&&Oe!==null&&t.mode&1&&!(t.flags&128))zc(),kn(),t.flags|=98560,l=!1;else if(l=qr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(O(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(O(317));l[Ye]=t}else kn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;fe(t),l=!1}else qe!==null&&(Is(qe),qe=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||W.current&1?te===0&&(te=3):Tu())),t.updateQueue!==null&&(t.flags|=4),fe(t),null);case 4:return On(),Ps(e,t),e===null&&dr(t.stateNode.containerInfo),fe(t),null;case 10:return hu(t.type._context),fe(t),null;case 17:return xe(t.type)&&gi(),fe(t),null;case 19:if(B(W),l=t.memoizedState,l===null)return fe(t),null;if(r=(t.flags&128)!==0,s=l.rendering,s===null)if(r)Un(l,!1);else{if(te!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Pi(e),s!==null){for(t.flags|=128,Un(l,!1),r=s.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,s=l.alternate,s===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=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return q(W,W.current&1|2),t.child}e=e.sibling}l.tail!==null&&Z()>Nn&&(t.flags|=128,r=!0,Un(l,!1),t.lanes=4194304)}else{if(!r)if(e=Pi(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Un(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!V)return fe(t),null}else 2*Z()-l.renderingStartTime>Nn&&n!==1073741824&&(t.flags|=128,r=!0,Un(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(n=l.last,n!==null?n.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Z(),t.sibling=null,n=W.current,q(W,r?n&1|2:n&1),t):(fe(t),null);case 22:case 23:return ju(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ke&1073741824&&(fe(t),t.subtreeFlags&6&&(t.flags|=8192)):fe(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function Dp(e,t){switch(au(t),t.tag){case 1:return xe(t.type)&&gi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return On(),B(Se),B(he),gu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vu(t),null;case 13:if(B(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));kn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(W),null;case 4:return On(),null;case 10:return hu(t.type._context),null;case 22:case 23:return ju(),null;case 24:return null;default:return null}}var Br=!1,de=!1,Fp=typeof WeakSet=="function"?WeakSet:Set,M=null;function dn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){X(e,t,r)}else n.current=null}function Os(e,t,n){try{n()}catch(r){X(e,t,r)}}var qo=!1;function zp(e,t){if(as=pi,e=kc(),uu(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 s=0,u=-1,o=-1,a=0,h=0,y=e,p=null;t:for(;;){for(var v;y!==n||i!==0&&y.nodeType!==3||(u=s+i),y!==l||r!==0&&y.nodeType!==3||(o=s+r),y.nodeType===3&&(s+=y.nodeValue.length),(v=y.firstChild)!==null;)p=y,y=v;for(;;){if(y===e)break t;if(p===n&&++a===i&&(u=s),p===l&&++h===r&&(o=s),(v=y.nextSibling)!==null)break;y=p,p=y.parentNode}y=v}n=u===-1||o===-1?null:{start:u,end:o}}else n=null}n=n||{start:0,end:0}}else n=null;for(cs={focusedElem:e,selectionRange:n},pi=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var m=g.memoizedProps,P=g.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?m:Ae(t.type,m),P);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var d=t.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(C){X(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return g=qo,qo=!1,g}function Zn(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&&Os(t,n,l)}i=i.next}while(i!==r)}}function Gi(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 Rs(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 xf(e){var t=e.alternate;t!==null&&(e.alternate=null,xf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ye],delete t[pr],delete t[hs],delete t[wp],delete t[Sp])),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 Cf(e){return e.tag===5||e.tag===3||e.tag===4}function $o(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cf(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 Ns(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=vi));else if(r!==4&&(e=e.child,e!==null))for(Ns(e,t,n),e=e.sibling;e!==null;)Ns(e,t,n),e=e.sibling}function js(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(js(e,t,n),e=e.sibling;e!==null;)js(e,t,n),e=e.sibling}var se=null,be=!1;function pt(e,t,n){for(n=n.child;n!==null;)Ef(e,t,n),n=n.sibling}function Ef(e,t,n){if(Je&&typeof Je.onCommitFiberUnmount=="function")try{Je.onCommitFiberUnmount(bi,n)}catch{}switch(n.tag){case 5:de||dn(n,t);case 6:var r=se,i=be;se=null,pt(e,t,n),se=r,be=i,se!==null&&(be?(e=se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):se.removeChild(n.stateNode));break;case 18:se!==null&&(be?(e=se,n=n.stateNode,e.nodeType===8?El(e.parentNode,n):e.nodeType===1&&El(e,n),ar(e)):El(se,n.stateNode));break;case 4:r=se,i=be,se=n.stateNode.containerInfo,be=!0,pt(e,t,n),se=r,be=i;break;case 0:case 11:case 14:case 15:if(!de&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,s=l.destroy;l=l.tag,s!==void 0&&(l&2||l&4)&&Os(n,t,s),i=i.next}while(i!==r)}pt(e,t,n);break;case 1:if(!de&&(dn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){X(n,t,u)}pt(e,t,n);break;case 21:pt(e,t,n);break;case 22:n.mode&1?(de=(r=de)||n.memoizedState!==null,pt(e,t,n),de=r):pt(e,t,n);break;default:pt(e,t,n)}}function Ho(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Fp),t.forEach(function(r){var i=Vp.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ue(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,s=t,u=s;e:for(;u!==null;){switch(u.tag){case 5:se=u.stateNode,be=!1;break e;case 3:se=u.stateNode.containerInfo,be=!0;break e;case 4:se=u.stateNode.containerInfo,be=!0;break e}u=u.return}if(se===null)throw Error(O(160));Ef(l,s,i),se=null,be=!1;var o=i.alternate;o!==null&&(o.return=null),i.return=null}catch(a){X(i,t,a)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)kf(t,e),t=t.sibling}function kf(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ue(t,e),We(e),r&4){try{Zn(3,e,e.return),Gi(3,e)}catch(m){X(e,e.return,m)}try{Zn(5,e,e.return)}catch(m){X(e,e.return,m)}}break;case 1:Ue(t,e),We(e),r&512&&n!==null&&dn(n,n.return);break;case 5:if(Ue(t,e),We(e),r&512&&n!==null&&dn(n,n.return),e.flags&32){var i=e.stateNode;try{lr(i,"")}catch(m){X(e,e.return,m)}}if(r&4&&(i=e.stateNode,i!=null)){var l=e.memoizedProps,s=n!==null?n.memoizedProps:l,u=e.type,o=e.updateQueue;if(e.updateQueue=null,o!==null)try{u==="input"&&l.type==="radio"&&l.name!=null&&Ba(i,l),Jl(u,s);var a=Jl(u,l);for(s=0;s<o.length;s+=2){var h=o[s],y=o[s+1];h==="style"?Ya(i,y):h==="dangerouslySetInnerHTML"?Wa(i,y):h==="children"?lr(i,y):Ws(i,h,y,a)}switch(u){case"input":Wl(i,l);break;case"textarea":Va(i,l);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!l.multiple;var v=l.value;v!=null?yn(i,!!l.multiple,v,!1):p!==!!l.multiple&&(l.defaultValue!=null?yn(i,!!l.multiple,l.defaultValue,!0):yn(i,!!l.multiple,l.multiple?[]:"",!1))}i[pr]=l}catch(m){X(e,e.return,m)}}break;case 6:if(Ue(t,e),We(e),r&4){if(e.stateNode===null)throw Error(O(162));i=e.stateNode,l=e.memoizedProps;try{i.nodeValue=l}catch(m){X(e,e.return,m)}}break;case 3:if(Ue(t,e),We(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ar(t.containerInfo)}catch(m){X(e,e.return,m)}break;case 4:Ue(t,e),We(e);break;case 13:Ue(t,e),We(e),i=e.child,i.flags&8192&&(l=i.memoizedState!==null,i.stateNode.isHidden=l,!l||i.alternate!==null&&i.alternate.memoizedState!==null||(Ru=Z())),r&4&&Ho(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(de=(a=de)||h,Ue(t,e),de=a):Ue(t,e),We(e),r&8192){if(a=e.memoizedState!==null,(e.stateNode.isHidden=a)&&!h&&e.mode&1)for(M=e,h=e.child;h!==null;){for(y=M=h;M!==null;){switch(p=M,v=p.child,p.tag){case 0:case 11:case 14:case 15:Zn(4,p,p.return);break;case 1:dn(p,p.return);var g=p.stateNode;if(typeof g.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){X(r,n,m)}}break;case 5:dn(p,p.return);break;case 22:if(p.memoizedState!==null){Vo(y);continue}}v!==null?(v.return=p,M=v):Vo(y)}h=h.sibling}e:for(h=null,y=e;;){if(y.tag===5){if(h===null){h=y;try{i=y.stateNode,a?(l=i.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(u=y.stateNode,o=y.memoizedProps.style,s=o!=null&&o.hasOwnProperty("display")?o.display:null,u.style.display=Ga("display",s))}catch(m){X(e,e.return,m)}}}else if(y.tag===6){if(h===null)try{y.stateNode.nodeValue=a?"":y.memoizedProps}catch(m){X(e,e.return,m)}}else if((y.tag!==22&&y.tag!==23||y.memoizedState===null||y===e)&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===e)break e;for(;y.sibling===null;){if(y.return===null||y.return===e)break e;h===y&&(h=null),y=y.return}h===y&&(h=null),y.sibling.return=y.return,y=y.sibling}}break;case 19:Ue(t,e),We(e),r&4&&Ho(e);break;case 21:break;default:Ue(t,e),We(e)}}function We(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Cf(n)){var r=n;break e}n=n.return}throw Error(O(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(lr(i,""),r.flags&=-33);var l=$o(e);js(e,l,i);break;case 3:case 4:var s=r.stateNode.containerInfo,u=$o(e);Ns(e,u,s);break;default:throw Error(O(161))}}catch(o){X(e,e.return,o)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Qp(e,t,n){M=e,Pf(e)}function Pf(e,t,n){for(var r=(e.mode&1)!==0;M!==null;){var i=M,l=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||Br;if(!s){var u=i.alternate,o=u!==null&&u.memoizedState!==null||de;u=Br;var a=de;if(Br=s,(de=o)&&!a)for(M=i;M!==null;)s=M,o=s.child,s.tag===22&&s.memoizedState!==null?Ko(i):o!==null?(o.return=s,M=o):Ko(i);for(;l!==null;)M=l,Pf(l),l=l.sibling;M=i,Br=u,de=a}Bo(e)}else i.subtreeFlags&8772&&l!==null?(l.return=i,M=l):Bo(e)}}function Bo(e){for(;M!==null;){var t=M;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:de||Gi(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!de)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ae(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&jo(t,l,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}jo(t,s,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var o=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":o.autoFocus&&n.focus();break;case"img":o.src&&(n.src=o.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var a=t.alternate;if(a!==null){var h=a.memoizedState;if(h!==null){var y=h.dehydrated;y!==null&&ar(y)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}de||t.flags&512&&Rs(t)}catch(p){X(t,t.return,p)}}if(t===e){M=null;break}if(n=t.sibling,n!==null){n.return=t.return,M=n;break}M=t.return}}function Vo(e){for(;M!==null;){var t=M;if(t===e){M=null;break}var n=t.sibling;if(n!==null){n.return=t.return,M=n;break}M=t.return}}function Ko(e){for(;M!==null;){var t=M;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Gi(4,t)}catch(o){X(t,n,o)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(o){X(t,i,o)}}var l=t.return;try{Rs(t)}catch(o){X(t,l,o)}break;case 5:var s=t.return;try{Rs(t)}catch(o){X(t,s,o)}}}catch(o){X(t,t.return,o)}if(t===e){M=null;break}var u=t.sibling;if(u!==null){u.return=t.return,M=u;break}M=t.return}}var Up=Math.ceil,Ni=dt.ReactCurrentDispatcher,Pu=dt.ReactCurrentOwner,Fe=dt.ReactCurrentBatchConfig,Q=0,ie=null,J=null,ue=0,ke=0,hn=Ft(0),te=0,Sr=null,Gt=0,Yi=0,Ou=0,Jn=null,ge=null,Ru=0,Nn=1/0,tt=null,ji=!1,Ts=null,jt=null,Vr=!1,Ct=null,Ti=0,er=0,Ms=null,li=-1,si=0;function me(){return Q&6?Z():li!==-1?li:li=Z()}function Tt(e){return e.mode&1?Q&2&&ue!==0?ue&-ue:Cp.transition!==null?(si===0&&(si=oc()),si):(e=U,e!==0||(e=window.event,e=e===void 0?16:mc(e.type)),e):1}function He(e,t,n,r){if(50<er)throw er=0,Ms=null,Error(O(185));kr(e,n,r),(!(Q&2)||e!==ie)&&(e===ie&&(!(Q&2)&&(Yi|=n),te===4&&St(e,ue)),Ce(e,r),n===1&&Q===0&&!(t.mode&1)&&(Nn=Z()+500,Vi&&zt()))}function Ce(e,t){var n=e.callbackNode;Ch(e,t);var r=hi(e,e===ie?ue:0);if(r===0)n!==null&&to(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&to(n),t===1)e.tag===0?xp(Wo.bind(null,e)):Lc(Wo.bind(null,e)),vp(function(){!(Q&6)&&zt()}),n=null;else{switch(ac(r)){case 1:n=Js;break;case 4:n=sc;break;case 16:n=di;break;case 536870912:n=uc;break;default:n=di}n=If(n,Of.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Of(e,t){if(li=-1,si=0,Q&6)throw Error(O(327));var n=e.callbackNode;if(xn()&&e.callbackNode!==n)return null;var r=hi(e,e===ie?ue:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Mi(e,r);else{t=r;var i=Q;Q|=2;var l=Nf();(ie!==e||ue!==t)&&(tt=null,Nn=Z()+500,Ht(e,t));do try{qp();break}catch(u){Rf(e,u)}while(!0);du(),Ni.current=l,Q=i,J!==null?t=0:(ie=null,ue=0,t=te)}if(t!==0){if(t===2&&(i=is(e),i!==0&&(r=i,t=_s(e,i))),t===1)throw n=Sr,Ht(e,0),St(e,r),Ce(e,Z()),n;if(t===6)St(e,r);else{if(i=e.current.alternate,!(r&30)&&!Ap(i)&&(t=Mi(e,r),t===2&&(l=is(e),l!==0&&(r=l,t=_s(e,l))),t===1))throw n=Sr,Ht(e,0),St(e,r),Ce(e,Z()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:At(e,ge,tt);break;case 3:if(St(e,r),(r&130023424)===r&&(t=Ru+500-Z(),10<t)){if(hi(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){me(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ds(At.bind(null,e,ge,tt),t);break}At(e,ge,tt);break;case 4:if(St(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-$e(r);l=1<<s,s=t[s],s>i&&(i=s),r&=~l}if(r=i,r=Z()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Up(r/1960))-r,10<r){e.timeoutHandle=ds(At.bind(null,e,ge,tt),r);break}At(e,ge,tt);break;case 5:At(e,ge,tt);break;default:throw Error(O(329))}}}return Ce(e,Z()),e.callbackNode===n?Of.bind(null,e):null}function _s(e,t){var n=Jn;return e.current.memoizedState.isDehydrated&&(Ht(e,t).flags|=256),e=Mi(e,t),e!==2&&(t=ge,ge=n,t!==null&&Is(t)),e}function Is(e){ge===null?ge=e:ge.push.apply(ge,e)}function Ap(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(!Be(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 St(e,t){for(t&=~Ou,t&=~Yi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-$e(t),r=1<<n;e[n]=-1,t&=~r}}function Wo(e){if(Q&6)throw Error(O(327));xn();var t=hi(e,0);if(!(t&1))return Ce(e,Z()),null;var n=Mi(e,t);if(e.tag!==0&&n===2){var r=is(e);r!==0&&(t=r,n=_s(e,r))}if(n===1)throw n=Sr,Ht(e,0),St(e,t),Ce(e,Z()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,At(e,ge,tt),Ce(e,Z()),null}function Nu(e,t){var n=Q;Q|=1;try{return e(t)}finally{Q=n,Q===0&&(Nn=Z()+500,Vi&&zt())}}function Yt(e){Ct!==null&&Ct.tag===0&&!(Q&6)&&xn();var t=Q;Q|=1;var n=Fe.transition,r=U;try{if(Fe.transition=null,U=1,e)return e()}finally{U=r,Fe.transition=n,Q=t,!(Q&6)&&zt()}}function ju(){ke=hn.current,B(hn)}function Ht(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,yp(n)),J!==null)for(n=J.return;n!==null;){var r=n;switch(au(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&gi();break;case 3:On(),B(Se),B(he),gu();break;case 5:vu(r);break;case 4:On();break;case 13:B(W);break;case 19:B(W);break;case 10:hu(r.type._context);break;case 22:case 23:ju()}n=n.return}if(ie=e,J=e=Mt(e.current,null),ue=ke=t,te=0,Sr=null,Ou=Yi=Gt=0,ge=Jn=null,qt!==null){for(t=0;t<qt.length;t++)if(n=qt[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,l=n.pending;if(l!==null){var s=l.next;l.next=i,r.next=s}n.pending=r}qt=null}return e}function Rf(e,t){do{var n=J;try{if(du(),ni.current=Ri,Oi){for(var r=G.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Oi=!1}if(Wt=0,re=ee=G=null,Xn=!1,vr=0,Pu.current=null,n===null||n.return===null){te=1,Sr=t,J=null;break}e:{var l=e,s=n.return,u=n,o=t;if(t=ue,u.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){var a=o,h=u,y=h.tag;if(!(h.mode&1)&&(y===0||y===11||y===15)){var p=h.alternate;p?(h.updateQueue=p.updateQueue,h.memoizedState=p.memoizedState,h.lanes=p.lanes):(h.updateQueue=null,h.memoizedState=null)}var v=Do(s);if(v!==null){v.flags&=-257,Fo(v,s,u,l,t),v.mode&1&&Lo(l,a,t),t=v,o=a;var g=t.updateQueue;if(g===null){var m=new Set;m.add(o),t.updateQueue=m}else g.add(o);break e}else{if(!(t&1)){Lo(l,a,t),Tu();break e}o=Error(O(426))}}else if(V&&u.mode&1){var P=Do(s);if(P!==null){!(P.flags&65536)&&(P.flags|=256),Fo(P,s,u,l,t),cu(Rn(o,u));break e}}l=o=Rn(o,u),te!==4&&(te=2),Jn===null?Jn=[l]:Jn.push(l),l=s;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var f=cf(l,o,t);No(l,f);break e;case 1:u=o;var c=l.type,d=l.stateNode;if(!(l.flags&128)&&(typeof c.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(jt===null||!jt.has(d)))){l.flags|=65536,t&=-t,l.lanes|=t;var C=ff(l,u,t);No(l,C);break e}}l=l.return}while(l!==null)}Tf(n)}catch(x){t=x,J===n&&n!==null&&(J=n=n.return);continue}break}while(!0)}function Nf(){var e=Ni.current;return Ni.current=Ri,e===null?Ri:e}function Tu(){(te===0||te===3||te===2)&&(te=4),ie===null||!(Gt&268435455)&&!(Yi&268435455)||St(ie,ue)}function Mi(e,t){var n=Q;Q|=2;var r=Nf();(ie!==e||ue!==t)&&(tt=null,Ht(e,t));do try{bp();break}catch(i){Rf(e,i)}while(!0);if(du(),Q=n,Ni.current=r,J!==null)throw Error(O(261));return ie=null,ue=0,te}function bp(){for(;J!==null;)jf(J)}function qp(){for(;J!==null&&!hh();)jf(J)}function jf(e){var t=_f(e.alternate,e,ke);e.memoizedProps=e.pendingProps,t===null?Tf(e):J=t,Pu.current=null}function Tf(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Dp(n,t),n!==null){n.flags&=32767,J=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{te=6,J=null;return}}else if(n=Lp(n,t,ke),n!==null){J=n;return}if(t=t.sibling,t!==null){J=t;return}J=t=e}while(t!==null);te===0&&(te=5)}function At(e,t,n){var r=U,i=Fe.transition;try{Fe.transition=null,U=1,$p(e,t,n,r)}finally{Fe.transition=i,U=r}return null}function $p(e,t,n,r){do xn();while(Ct!==null);if(Q&6)throw Error(O(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(O(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(Eh(e,l),e===ie&&(J=ie=null,ue=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Vr||(Vr=!0,If(di,function(){return xn(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=Fe.transition,Fe.transition=null;var s=U;U=1;var u=Q;Q|=4,Pu.current=null,zp(e,n),kf(n,e),ap(cs),pi=!!as,cs=as=null,e.current=n,Qp(n),ph(),Q=u,U=s,Fe.transition=l}else e.current=n;if(Vr&&(Vr=!1,Ct=e,Ti=i),l=e.pendingLanes,l===0&&(jt=null),vh(n.stateNode),Ce(e,Z()),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(ji)throw ji=!1,e=Ts,Ts=null,e;return Ti&1&&e.tag!==0&&xn(),l=e.pendingLanes,l&1?e===Ms?er++:(er=0,Ms=e):er=0,zt(),null}function xn(){if(Ct!==null){var e=ac(Ti),t=Fe.transition,n=U;try{if(Fe.transition=null,U=16>e?16:e,Ct===null)var r=!1;else{if(e=Ct,Ct=null,Ti=0,Q&6)throw Error(O(331));var i=Q;for(Q|=4,M=e.current;M!==null;){var l=M,s=l.child;if(M.flags&16){var u=l.deletions;if(u!==null){for(var o=0;o<u.length;o++){var a=u[o];for(M=a;M!==null;){var h=M;switch(h.tag){case 0:case 11:case 15:Zn(8,h,l)}var y=h.child;if(y!==null)y.return=h,M=y;else for(;M!==null;){h=M;var p=h.sibling,v=h.return;if(xf(h),h===a){M=null;break}if(p!==null){p.return=v,M=p;break}M=v}}}var g=l.alternate;if(g!==null){var m=g.child;if(m!==null){g.child=null;do{var P=m.sibling;m.sibling=null,m=P}while(m!==null)}}M=l}}if(l.subtreeFlags&2064&&s!==null)s.return=l,M=s;else e:for(;M!==null;){if(l=M,l.flags&2048)switch(l.tag){case 0:case 11:case 15:Zn(9,l,l.return)}var f=l.sibling;if(f!==null){f.return=l.return,M=f;break e}M=l.return}}var c=e.current;for(M=c;M!==null;){s=M;var d=s.child;if(s.subtreeFlags&2064&&d!==null)d.return=s,M=d;else e:for(s=c;M!==null;){if(u=M,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:Gi(9,u)}}catch(x){X(u,u.return,x)}if(u===s){M=null;break e}var C=u.sibling;if(C!==null){C.return=u.return,M=C;break e}M=u.return}}if(Q=i,zt(),Je&&typeof Je.onPostCommitFiberRoot=="function")try{Je.onPostCommitFiberRoot(bi,e)}catch{}r=!0}return r}finally{U=n,Fe.transition=t}}return!1}function Go(e,t,n){t=Rn(n,t),t=cf(e,t,1),e=Nt(e,t,1),t=me(),e!==null&&(kr(e,1,t),Ce(e,t))}function X(e,t,n){if(e.tag===3)Go(e,e,n);else for(;t!==null;){if(t.tag===3){Go(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(jt===null||!jt.has(r))){e=Rn(n,e),e=ff(t,e,1),t=Nt(t,e,1),e=me(),t!==null&&(kr(t,1,e),Ce(t,e));break}}t=t.return}}function Hp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=me(),e.pingedLanes|=e.suspendedLanes&n,ie===e&&(ue&n)===n&&(te===4||te===3&&(ue&130023424)===ue&&500>Z()-Ru?Ht(e,0):Ou|=n),Ce(e,t)}function Mf(e,t){t===0&&(e.mode&1?(t=Fr,Fr<<=1,!(Fr&130023424)&&(Fr=4194304)):t=1);var n=me();e=ct(e,t),e!==null&&(kr(e,t,n),Ce(e,n))}function Bp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Mf(e,n)}function Vp(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(O(314))}r!==null&&r.delete(t),Mf(e,n)}var _f;_f=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Se.current)we=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return we=!1,Ip(e,t,n);we=!!(e.flags&131072)}else we=!1,V&&t.flags&1048576&&Dc(t,xi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ii(e,t),e=t.pendingProps;var i=En(t,he.current);Sn(t,n),i=Su(null,t,r,e,i,n);var l=xu();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,xe(r)?(l=!0,wi(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,mu(t),i.updater=Wi,t.stateNode=i,i._reactInternals=t,ws(t,r,e,n),t=Cs(null,t,r,!0,l,n)):(t.tag=0,V&&l&&ou(t),pe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ii(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Wp(r),e=Ae(r,e),i){case 0:t=xs(null,t,r,e,n);break e;case 1:t=Uo(null,t,r,e,n);break e;case 11:t=zo(null,t,r,e,n);break e;case 14:t=Qo(null,t,r,Ae(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ae(r,i),xs(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ae(r,i),Uo(e,t,r,i,n);case 3:e:{if(mf(t),e===null)throw Error(O(387));r=t.pendingProps,l=t.memoizedState,i=l.element,bc(e,t),ki(t,r,null,n);var s=t.memoizedState;if(r=s.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=Rn(Error(O(423)),t),t=Ao(e,t,r,n,i);break e}else if(r!==i){i=Rn(Error(O(424)),t),t=Ao(e,t,r,n,i);break e}else for(Oe=Rt(t.stateNode.containerInfo.firstChild),Re=t,V=!0,qe=null,n=Uc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(kn(),r===i){t=ft(e,t,n);break e}pe(e,t,r,n)}t=t.child}return t;case 5:return qc(t),e===null&&ys(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,s=i.children,fs(r,i)?s=null:l!==null&&fs(r,l)&&(t.flags|=32),pf(e,t),pe(e,t,s,n),t.child;case 6:return e===null&&ys(t),null;case 13:return yf(e,t,n);case 4:return yu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Pn(t,null,r,n):pe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ae(r,i),zo(e,t,r,i,n);case 7:return pe(e,t,t.pendingProps,n),t.child;case 8:return pe(e,t,t.pendingProps.children,n),t.child;case 12:return pe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,s=i.value,q(Ci,r._currentValue),r._currentValue=s,l!==null)if(Be(l.value,s)){if(l.children===i.children&&!Se.current){t=ft(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var u=l.dependencies;if(u!==null){s=l.child;for(var o=u.firstContext;o!==null;){if(o.context===r){if(l.tag===1){o=ut(-1,n&-n),o.tag=2;var a=l.updateQueue;if(a!==null){a=a.shared;var h=a.pending;h===null?o.next=o:(o.next=h.next,h.next=o),a.pending=o}}l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),vs(l.return,n,t),u.lanes|=n;break}o=o.next}}else if(l.tag===10)s=l.type===t.type?null:l.child;else if(l.tag===18){if(s=l.return,s===null)throw Error(O(341));s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),vs(s,n,t),s=l.sibling}else s=l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===t){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}pe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Sn(t,n),i=ze(i),r=r(i),t.flags|=1,pe(e,t,r,n),t.child;case 14:return r=t.type,i=Ae(r,t.pendingProps),i=Ae(r.type,i),Qo(e,t,r,i,n);case 15:return df(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ae(r,i),ii(e,t),t.tag=1,xe(r)?(e=!0,wi(t)):e=!1,Sn(t,n),af(t,r,i),ws(t,r,i,n),Cs(null,t,r,!0,e,n);case 19:return vf(e,t,n);case 22:return hf(e,t,n)}throw Error(O(156,t.tag))};function If(e,t){return lc(e,t)}function Kp(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 De(e,t,n,r){return new Kp(e,t,n,r)}function Mu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wp(e){if(typeof e=="function")return Mu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ys)return 11;if(e===Xs)return 14}return 2}function Mt(e,t){var n=e.alternate;return n===null?(n=De(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 ui(e,t,n,r,i,l){var s=2;if(r=e,typeof e=="function")Mu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case nn:return Bt(n.children,i,l,t);case Gs:s=8,i|=8;break;case $l:return e=De(12,n,t,i|2),e.elementType=$l,e.lanes=l,e;case Hl:return e=De(13,n,t,i),e.elementType=Hl,e.lanes=l,e;case Bl:return e=De(19,n,t,i),e.elementType=Bl,e.lanes=l,e;case qa:return Xi(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Aa:s=10;break e;case ba:s=9;break e;case Ys:s=11;break e;case Xs:s=14;break e;case yt:s=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=De(s,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function Bt(e,t,n,r){return e=De(7,e,r,t),e.lanes=n,e}function Xi(e,t,n,r){return e=De(22,e,r,t),e.elementType=qa,e.lanes=n,e.stateNode={isHidden:!1},e}function Ml(e,t,n){return e=De(6,e,null,t),e.lanes=n,e}function _l(e,t,n){return t=De(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gp(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=dl(0),this.expirationTimes=dl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function _u(e,t,n,r,i,l,s,u,o){return e=new Gp(e,t,n,u,o),t===1?(t=1,l===!0&&(t|=8)):t=0,l=De(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},mu(l),e}function Yp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:tn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Lf(e){if(!e)return Lt;e=e._reactInternals;e:{if(Zt(e)!==e||e.tag!==1)throw Error(O(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(xe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(O(171))}if(e.tag===1){var n=e.type;if(xe(n))return Ic(e,n,t)}return t}function Df(e,t,n,r,i,l,s,u,o){return e=_u(n,r,!0,e,i,l,s,u,o),e.context=Lf(null),n=e.current,r=me(),i=Tt(n),l=ut(r,i),l.callback=t??null,Nt(n,l,i),e.current.lanes=i,kr(e,i,r),Ce(e,r),e}function Zi(e,t,n,r){var i=t.current,l=me(),s=Tt(i);return n=Lf(n),t.context===null?t.context=n:t.pendingContext=n,t=ut(l,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Nt(i,t,s),e!==null&&(He(e,i,s,l),ti(e,i,s)),s}function _i(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 Yo(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Iu(e,t){Yo(e,t),(e=e.alternate)&&Yo(e,t)}function Xp(){return null}var Ff=typeof reportError=="function"?reportError:function(e){console.error(e)};function Lu(e){this._internalRoot=e}Ji.prototype.render=Lu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));Zi(e,t,null,null)};Ji.prototype.unmount=Lu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Yt(function(){Zi(null,e,null,null)}),t[at]=null}};function Ji(e){this._internalRoot=e}Ji.prototype.unstable_scheduleHydration=function(e){if(e){var t=dc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<wt.length&&t!==0&&t<wt[n].priority;n++);wt.splice(n,0,e),n===0&&pc(e)}};function Du(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function el(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Xo(){}function Zp(e,t,n,r,i){if(i){if(typeof r=="function"){var l=r;r=function(){var a=_i(s);l.call(a)}}var s=Df(t,r,e,0,null,!1,!1,"",Xo);return e._reactRootContainer=s,e[at]=s.current,dr(e.nodeType===8?e.parentNode:e),Yt(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var u=r;r=function(){var a=_i(o);u.call(a)}}var o=_u(e,0,!1,null,null,!1,!1,"",Xo);return e._reactRootContainer=o,e[at]=o.current,dr(e.nodeType===8?e.parentNode:e),Yt(function(){Zi(t,o,n,r)}),o}function tl(e,t,n,r,i){var l=n._reactRootContainer;if(l){var s=l;if(typeof i=="function"){var u=i;i=function(){var o=_i(s);u.call(o)}}Zi(t,s,e,i)}else s=Zp(n,t,e,i,r);return _i(s)}cc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=$n(t.pendingLanes);n!==0&&(eu(t,n|1),Ce(t,Z()),!(Q&6)&&(Nn=Z()+500,zt()))}break;case 13:Yt(function(){var r=ct(e,1);if(r!==null){var i=me();He(r,e,1,i)}}),Iu(e,1)}};tu=function(e){if(e.tag===13){var t=ct(e,134217728);if(t!==null){var n=me();He(t,e,134217728,n)}Iu(e,134217728)}};fc=function(e){if(e.tag===13){var t=Tt(e),n=ct(e,t);if(n!==null){var r=me();He(n,e,t,r)}Iu(e,t)}};dc=function(){return U};hc=function(e,t){var n=U;try{return U=e,t()}finally{U=n}};ts=function(e,t,n){switch(t){case"input":if(Wl(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=Bi(r);if(!i)throw Error(O(90));Ha(r),Wl(r,i)}}}break;case"textarea":Va(e,n);break;case"select":t=n.value,t!=null&&yn(e,!!n.multiple,t,!1)}};Ja=Nu;ec=Yt;var Jp={usingClientEntryPoint:!1,Events:[Or,un,Bi,Xa,Za,Nu]},An={findFiberByHostInstance:bt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},em={bundleType:An.bundleType,version:An.version,rendererPackageName:An.rendererPackageName,rendererConfig:An.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:dt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=rc(e),e===null?null:e.stateNode},findFiberByHostInstance:An.findFiberByHostInstance||Xp,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 Kr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kr.isDisabled&&Kr.supportsFiber)try{bi=Kr.inject(em),Je=Kr}catch{}}je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Jp;je.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Du(t))throw Error(O(200));return Yp(e,t,null,n)};je.createRoot=function(e,t){if(!Du(e))throw Error(O(299));var n=!1,r="",i=Ff;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=_u(e,1,!1,null,null,n,!1,r,i),e[at]=t.current,dr(e.nodeType===8?e.parentNode:e),new Lu(t)};je.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(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=rc(t),e=e===null?null:e.stateNode,e};je.flushSync=function(e){return Yt(e)};je.hydrate=function(e,t,n){if(!el(t))throw Error(O(200));return tl(null,e,t,!0,n)};je.hydrateRoot=function(e,t,n){if(!Du(e))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,i=!1,l="",s=Ff;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Df(t,null,e,1,n??null,i,!1,l,s),e[at]=t.current,dr(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 Ji(t)};je.render=function(e,t,n){if(!el(t))throw Error(O(200));return tl(null,e,t,!1,n)};je.unmountComponentAtNode=function(e){if(!el(e))throw Error(O(40));return e._reactRootContainer?(Yt(function(){tl(null,null,e,!1,function(){e._reactRootContainer=null,e[at]=null})}),!0):!1};je.unstable_batchedUpdates=Nu;je.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!el(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return tl(e,t,n,!1,r)};je.version="18.3.1-next-f1338f8080-20240426";function zf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zf)}catch(e){console.error(e)}}zf(),Fa.exports=je;var tm=Fa.exports,Zo=tm;bl.createRoot=Zo.createRoot,bl.hydrateRoot=Zo.hydrateRoot;class Jt{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const xr=typeof window>"u"||"Deno"in window;function _e(){}function nm(e,t){return typeof e=="function"?e(t):e}function Ls(e){return typeof e=="number"&&e>=0&&e!==1/0}function Jo(e,t){return e.filter(n=>!t.includes(n))}function rm(e,t,n){const r=e.slice(0);return r[t]=n,r}function Qf(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pn(e,t,n){return Nr(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function im(e,t,n){return Nr(e)?{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function gt(e,t,n){return Nr(e)?[{...t,queryKey:e},n]:[e||{},t]}function ea(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:l,queryKey:s,stale:u}=e;if(Nr(s)){if(r){if(t.queryHash!==Fu(s,t.options))return!1}else if(!Ii(t.queryKey,s))return!1}if(n!=="all"){const o=t.isActive();if(n==="active"&&!o||n==="inactive"&&o)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||typeof i<"u"&&i!==t.state.fetchStatus||l&&!l(t))}function ta(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:l}=e;if(Nr(l)){if(!t.options.mutationKey)return!1;if(n){if(Et(t.options.mutationKey)!==Et(l))return!1}else if(!Ii(t.options.mutationKey,l))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function Fu(e,t){return((t==null?void 0:t.queryKeyHashFn)||Et)(e)}function Et(e){return JSON.stringify(e,(t,n)=>Ds(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Ii(e,t){return Uf(e,t)}function Uf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Uf(e[n],t[n])):!1}function Af(e,t){if(e===t)return e;const n=na(e)&&na(t);if(n||Ds(e)&&Ds(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),l=i.length,s=n?[]:{};let u=0;for(let o=0;o<l;o++){const a=n?o:i[o];s[a]=Af(e[a],t[a]),s[a]===e[a]&&u++}return r===l&&u===r?e:s}return t}function Li(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function na(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ds(e){if(!ra(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!ra(n)||!n.hasOwnProperty("isPrototypeOf"))}function ra(e){return Object.prototype.toString.call(e)==="[object Object]"}function Nr(e){return Array.isArray(e)}function bf(e){return new Promise(t=>{setTimeout(t,e)})}function ia(e){bf(0).then(e)}function lm(){if(typeof AbortController=="function")return new AbortController}function Fs(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Af(e,t):t}class sm extends Jt{constructor(){super(),this.setup=t=>{if(!xr&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Di=new sm,la=["online","offline"];class um extends Jt{constructor(){super(),this.setup=t=>{if(!xr&&window.addEventListener){const n=()=>t();return la.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{la.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Fi=new um;function om(e){return Math.min(1e3*2**e,3e4)}function nl(e){return(e??"online")==="online"?Fi.isOnline():!0}class qf{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function oi(e){return e instanceof qf}function $f(e){let t=!1,n=0,r=!1,i,l,s;const u=new Promise((P,f)=>{l=P,s=f}),o=P=>{r||(v(new qf(P)),e.abort==null||e.abort())},a=()=>{t=!0},h=()=>{t=!1},y=()=>!Di.isFocused()||e.networkMode!=="always"&&!Fi.isOnline(),p=P=>{r||(r=!0,e.onSuccess==null||e.onSuccess(P),i==null||i(),l(P))},v=P=>{r||(r=!0,e.onError==null||e.onError(P),i==null||i(),s(P))},g=()=>new Promise(P=>{i=f=>{const c=r||!y();return c&&P(f),c},e.onPause==null||e.onPause()}).then(()=>{i=void 0,r||e.onContinue==null||e.onContinue()}),m=()=>{if(r)return;let P;try{P=e.fn()}catch(f){P=Promise.reject(f)}Promise.resolve(P).then(p).catch(f=>{var c,d;if(r)return;const C=(c=e.retry)!=null?c:3,x=(d=e.retryDelay)!=null?d:om,S=typeof x=="function"?x(n,f):x,w=C===!0||typeof C=="number"&&n<C||typeof C=="function"&&C(n,f);if(t||!w){v(f);return}n++,e.onFail==null||e.onFail(n,f),bf(S).then(()=>{if(y())return g()}).then(()=>{t?v(f):m()})})};return nl(e.networkMode)?m():g().then(m),{promise:u,cancel:o,continue:()=>(i==null?void 0:i())?u:Promise.resolve(),cancelRetry:a,continueRetry:h}}const zu=console;function am(){let e=[],t=0,n=h=>{h()},r=h=>{h()};const i=h=>{let y;t++;try{y=h()}finally{t--,t||u()}return y},l=h=>{t?e.push(h):ia(()=>{n(h)})},s=h=>(...y)=>{l(()=>{h(...y)})},u=()=>{const h=e;e=[],h.length&&ia(()=>{r(()=>{h.forEach(y=>{n(y)})})})};return{batch:i,batchCalls:s,schedule:l,setNotifyFunction:h=>{n=h},setBatchNotifyFunction:h=>{r=h}}}const H=am();class Hf{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ls(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(xr?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class cm extends Hf{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||zu,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||fm(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=Fs(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(_e).catch(_e):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Qf(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var l;return(l=this.retryer)==null||l.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const v=this.observers.find(g=>g.options.queryFn);v&&this.setOptions(v.options)}const s=lm(),u={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},o=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>{if(s)return this.abortSignalConsumed=!0,s.signal}})};o(u);const a=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(u)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),h={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};if(o(h),(r=this.options.behavior)==null||r.onFetch(h),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=h.fetchOptions)==null?void 0:i.meta)){var y;this.dispatch({type:"fetch",meta:(y=h.fetchOptions)==null?void 0:y.meta})}const p=v=>{if(oi(v)&&v.silent||this.dispatch({type:"error",error:v}),!oi(v)){var g,m,P,f;(g=(m=this.cache.config).onError)==null||g.call(m,v,this),(P=(f=this.cache.config).onSettled)==null||P.call(f,this.state.data,v,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=$f({fn:h.fetchFn,abort:s==null?void 0:s.abort.bind(s),onSuccess:v=>{var g,m,P,f;if(typeof v>"u"){p(new Error(this.queryHash+" data is undefined"));return}this.setData(v),(g=(m=this.cache.config).onSuccess)==null||g.call(m,v,this),(P=(f=this.cache.config).onSettled)==null||P.call(f,v,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:(v,g)=>{this.dispatch({type:"failed",failureCount:v,error:g})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var i,l;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,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=t.meta)!=null?i:null,fetchStatus:nl(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(l=t.dataUpdatedAt)!=null?l:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return oi(s)&&s.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),H.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function fm(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",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":"loading",fetchStatus:"idle"}}class dm extends Jt{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var i;const l=n.queryKey,s=(i=n.queryHash)!=null?i:Fu(l,n);let u=this.get(s);return u||(u=new cm({cache:this,logger:t.getLogger(),queryKey:l,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(l)}),this.add(u)),u}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){H.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=gt(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(i=>ea(r,i))}findAll(t,n){const[r]=gt(t,n);return Object.keys(r).length>0?this.queries.filter(i=>ea(r,i)):this.queries}notify(t){H.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){H.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){H.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class hm extends Hf{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||zu,this.observers=[],this.state=t.state||Bf(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var w;return this.retryer=$f({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(E,T)=>{this.dispatch({type:"failed",failureCount:E,error:T})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(w=this.options.retry)!=null?w:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,i,l,s,u,o,a,h;if(!n){var y,p,v,g;this.dispatch({type:"loading",variables:this.options.variables}),await((y=(p=this.mutationCache.config).onMutate)==null?void 0:y.call(p,this.state.variables,this));const E=await((v=(g=this.options).onMutate)==null?void 0:v.call(g,this.state.variables));E!==this.state.context&&this.dispatch({type:"loading",context:E,variables:this.state.variables})}const w=await t();return await((r=(i=this.mutationCache.config).onSuccess)==null?void 0:r.call(i,w,this.state.variables,this.state.context,this)),await((l=(s=this.options).onSuccess)==null?void 0:l.call(s,w,this.state.variables,this.state.context)),await((u=(o=this.mutationCache.config).onSettled)==null?void 0:u.call(o,w,null,this.state.variables,this.state.context,this)),await((a=(h=this.options).onSettled)==null?void 0:a.call(h,w,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:w}),w}catch(w){try{var m,P,f,c,d,C,x,S;throw await((m=(P=this.mutationCache.config).onError)==null?void 0:m.call(P,w,this.state.variables,this.state.context,this)),await((f=(c=this.options).onError)==null?void 0:f.call(c,w,this.state.variables,this.state.context)),await((d=(C=this.mutationCache.config).onSettled)==null?void 0:d.call(C,void 0,w,this.state.variables,this.state.context,this)),await((x=(S=this.options).onSettled)==null?void 0:x.call(S,void 0,w,this.state.variables,this.state.context)),w}finally{this.dispatch({type:"error",error:w})}}}dispatch(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"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!nl(this.options.networkMode),status:"loading",variables:t.variables};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"};case"setState":return{...r,...t.state}}};this.state=n(this.state),H.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function Bf(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class pm extends Jt{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const i=new hm({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(i),i}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){H.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>ta(t,n))}findAll(t){return this.mutations.filter(n=>ta(t,n))}notify(t){H.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return H.batch(()=>n.reduce((r,i)=>r.then(()=>i.continue().catch(_e)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function zs(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,l,s;const u=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,o=(r=e.fetchOptions)==null||(i=r.meta)==null?void 0:i.fetchMore,a=o==null?void 0:o.pageParam,h=(o==null?void 0:o.direction)==="forward",y=(o==null?void 0:o.direction)==="backward",p=((l=e.state.data)==null?void 0:l.pages)||[],v=((s=e.state.data)==null?void 0:s.pageParams)||[];let g=v,m=!1;const P=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>{var w;if((w=e.signal)!=null&&w.aborted)m=!0;else{var E;(E=e.signal)==null||E.addEventListener("abort",()=>{m=!0})}return e.signal}})},f=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),c=(S,w,E,T)=>(g=T?[w,...g]:[...g,w],T?[E,...S]:[...S,E]),d=(S,w,E,T)=>{if(m)return Promise.reject("Cancelled");if(typeof E>"u"&&!w&&S.length)return Promise.resolve(S);const N={queryKey:e.queryKey,pageParam:E,meta:e.options.meta};P(N);const A=f(N);return Promise.resolve(A).then(le=>c(S,E,le,T))};let C;if(!p.length)C=d([]);else if(h){const S=typeof a<"u",w=S?a:Qs(e.options,p);C=d(p,S,w)}else if(y){const S=typeof a<"u",w=S?a:Vf(e.options,p);C=d(p,S,w,!0)}else{g=[];const S=typeof e.options.getNextPageParam>"u";C=(u&&p[0]?u(p[0],0,p):!0)?d([],S,v[0]):Promise.resolve(c([],v[0],p[0]));for(let E=1;E<p.length;E++)C=C.then(T=>{if(u&&p[E]?u(p[E],E,p):!0){const A=S?v[E]:Qs(e.options,T);return d(T,S,A)}return Promise.resolve(c(T,v[E],p[E]))})}return C.then(S=>({pages:S,pageParams:g}))}}}}function Qs(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function Vf(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function mm(e,t){if(e.getNextPageParam&&Array.isArray(t)){const n=Qs(e,t);return typeof n<"u"&&n!==null&&n!==!1}}function ym(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const n=Vf(e,t);return typeof n<"u"&&n!==null&&n!==!1}}class vm{constructor(t={}){this.queryCache=t.queryCache||new dm,this.mutationCache=t.mutationCache||new pm,this.logger=t.logger||zu,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=Di.subscribe(()=>{Di.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Fi.subscribe(()=>{Fi.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=gt(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const i=pn(t,n,r),l=this.getQueryData(i.queryKey);return l?Promise.resolve(l):this.fetchQuery(i)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(t,n,r){const i=this.queryCache.find(t),l=i==null?void 0:i.state.data,s=nm(n,l);if(typeof s>"u")return;const u=pn(t),o=this.defaultQueryOptions(u);return this.queryCache.build(this,o).setData(s,{...r,manual:!0})}setQueriesData(t,n,r){return H.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=gt(t,n),i=this.queryCache;H.batch(()=>{i.findAll(r).forEach(l=>{i.remove(l)})})}resetQueries(t,n,r){const[i,l]=gt(t,n,r),s=this.queryCache,u={type:"active",...i};return H.batch(()=>(s.findAll(i).forEach(o=>{o.reset()}),this.refetchQueries(u,l)))}cancelQueries(t,n,r){const[i,l={}]=gt(t,n,r);typeof l.revert>"u"&&(l.revert=!0);const s=H.batch(()=>this.queryCache.findAll(i).map(u=>u.cancel(l)));return Promise.all(s).then(_e).catch(_e)}invalidateQueries(t,n,r){const[i,l]=gt(t,n,r);return H.batch(()=>{var s,u;if(this.queryCache.findAll(i).forEach(a=>{a.invalidate()}),i.refetchType==="none")return Promise.resolve();const o={...i,type:(s=(u=i.refetchType)!=null?u:i.type)!=null?s:"active"};return this.refetchQueries(o,l)})}refetchQueries(t,n,r){const[i,l]=gt(t,n,r),s=H.batch(()=>this.queryCache.findAll(i).filter(o=>!o.isDisabled()).map(o=>{var a;return o.fetch(void 0,{...l,cancelRefetch:(a=l==null?void 0:l.cancelRefetch)!=null?a:!0,meta:{refetchPage:i.refetchPage}})}));let u=Promise.all(s).then(_e);return l!=null&&l.throwOnError||(u=u.catch(_e)),u}fetchQuery(t,n,r){const i=pn(t,n,r),l=this.defaultQueryOptions(i);typeof l.retry>"u"&&(l.retry=!1);const s=this.queryCache.build(this,l);return s.isStaleByTime(l.staleTime)?s.fetch(l):Promise.resolve(s.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(_e).catch(_e)}fetchInfiniteQuery(t,n,r){const i=pn(t,n,r);return i.behavior=zs(),this.fetchQuery(i)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(_e).catch(_e)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(i=>Et(t)===Et(i.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>Ii(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(i=>Et(t)===Et(i.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>Ii(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=Fu(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class Qu extends Jt{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),sa(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Us(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Us(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),Li(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const l=this.hasListeners();l&&ua(this.currentQuery,i,this.options,r)&&this.executeFetch(),this.updateResult(n),l&&(this.currentQuery!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const s=this.computeRefetchInterval();l&&(this.currentQuery!==i||this.options.enabled!==r.enabled||s!==this.currentRefetchInterval)&&this.updateRefetchInterval(s)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return wm(this,r,t)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(_e)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),xr||this.currentResult.isStale||!Ls(this.options.staleTime))return;const n=Qf(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(xr||this.options.enabled===!1||!Ls(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Di.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,i=this.options,l=this.currentResult,s=this.currentResultState,u=this.currentResultOptions,o=t!==r,a=o?t.state:this.currentQueryInitialState,h=o?this.currentResult:this.previousQueryResult,{state:y}=t;let{dataUpdatedAt:p,error:v,errorUpdatedAt:g,fetchStatus:m,status:P}=y,f=!1,c=!1,d;if(n._optimisticResults){const E=this.hasListeners(),T=!E&&sa(t,n),N=E&&ua(t,r,n,i);(T||N)&&(m=nl(t.options.networkMode)?"fetching":"paused",p||(P="loading")),n._optimisticResults==="isRestoring"&&(m="idle")}if(n.keepPreviousData&&!y.dataUpdatedAt&&h!=null&&h.isSuccess&&P!=="error")d=h.data,p=h.dataUpdatedAt,P=h.status,f=!0;else if(n.select&&typeof y.data<"u")if(l&&y.data===(s==null?void 0:s.data)&&n.select===this.selectFn)d=this.selectResult;else try{this.selectFn=n.select,d=n.select(y.data),d=Fs(l==null?void 0:l.data,d,n),this.selectResult=d,this.selectError=null}catch(E){this.selectError=E}else d=y.data;if(typeof n.placeholderData<"u"&&typeof d>"u"&&P==="loading"){let E;if(l!=null&&l.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData))E=l.data;else if(E=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof E<"u")try{E=n.select(E),this.selectError=null}catch(T){this.selectError=T}typeof E<"u"&&(P="success",d=Fs(l==null?void 0:l.data,E,n),c=!0)}this.selectError&&(v=this.selectError,d=this.selectResult,g=Date.now(),P="error");const C=m==="fetching",x=P==="loading",S=P==="error";return{status:P,fetchStatus:m,isLoading:x,isSuccess:P==="success",isError:S,isInitialLoading:x&&C,data:d,dataUpdatedAt:p,error:v,errorUpdatedAt:g,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>a.dataUpdateCount||y.errorUpdateCount>a.errorUpdateCount,isFetching:C,isRefetching:C&&!x,isLoadingError:S&&y.dataUpdatedAt===0,isPaused:m==="paused",isPlaceholderData:c,isPreviousData:f,isRefetchError:S&&y.dataUpdatedAt!==0,isStale:Uu(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Li(r,n))return;this.currentResult=r;const i={cache:!0},l=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,u=typeof s=="function"?s():s;if(u==="all"||!u&&!this.trackedProps.size)return!0;const o=new Set(u??this.trackedProps);return this.options.useErrorBoundary&&o.add("error"),Object.keys(this.currentResult).some(a=>{const h=a;return this.currentResult[h]!==n[h]&&o.has(h)})};(t==null?void 0:t.listeners)!==!1&&l()&&(i.listeners=!0),this.notify({...i,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!oi(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){H.batch(()=>{if(t.onSuccess){var n,r,i,l;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(i=(l=this.options).onSettled)==null||i.call(l,this.currentResult.data,null)}else if(t.onError){var s,u,o,a;(s=(u=this.options).onError)==null||s.call(u,this.currentResult.error),(o=(a=this.options).onSettled)==null||o.call(a,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:h})=>{h(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function gm(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function sa(e,t){return gm(e,t)||e.state.dataUpdatedAt>0&&Us(e,t,t.refetchOnMount)}function Us(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Uu(e,t)}return!1}function ua(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Uu(e,n)}function Uu(e,t){return e.isStaleByTime(t.staleTime)}function wm(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!Li(e.getCurrentResult(),t)}class Sm extends Jt{constructor(t,n){super(),this.client=t,this.queries=[],this.result=[],this.observers=[],this.observersMap={},n&&this.setQueries(n)}onSubscribe(){this.listeners.size===1&&this.observers.forEach(t=>{t.subscribe(n=>{this.onUpdate(t,n)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.observers.forEach(t=>{t.destroy()})}setQueries(t,n){this.queries=t,H.batch(()=>{const r=this.observers,i=this.findMatchingObservers(this.queries);i.forEach(a=>a.observer.setOptions(a.defaultedQueryOptions,n));const l=i.map(a=>a.observer),s=Object.fromEntries(l.map(a=>[a.options.queryHash,a])),u=l.map(a=>a.getCurrentResult()),o=l.some((a,h)=>a!==r[h]);r.length===l.length&&!o||(this.observers=l,this.observersMap=s,this.result=u,this.hasListeners()&&(Jo(r,l).forEach(a=>{a.destroy()}),Jo(l,r).forEach(a=>{a.subscribe(h=>{this.onUpdate(a,h)})}),this.notify()))})}getCurrentResult(){return this.result}getQueries(){return this.observers.map(t=>t.getCurrentQuery())}getObservers(){return this.observers}getOptimisticResult(t){return this.findMatchingObservers(t).map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions))}findMatchingObservers(t){const n=this.observers,r=new Map(n.map(v=>[v.options.queryHash,v])),i=t.map(v=>this.client.defaultQueryOptions(v)),l=i.flatMap(v=>{const g=r.get(v.queryHash);return g!=null?[{defaultedQueryOptions:v,observer:g}]:[]}),s=new Set(l.map(v=>v.defaultedQueryOptions.queryHash)),u=i.filter(v=>!s.has(v.queryHash)),o=new Set(l.map(v=>v.observer)),a=n.filter(v=>!o.has(v)),h=v=>{const g=this.client.defaultQueryOptions(v),m=this.observersMap[g.queryHash];return m??new Qu(this.client,g)},y=u.map((v,g)=>{if(v.keepPreviousData){const m=a[g];if(m!==void 0)return{defaultedQueryOptions:v,observer:m}}return{defaultedQueryOptions:v,observer:h(v)}}),p=(v,g)=>i.indexOf(v.defaultedQueryOptions)-i.indexOf(g.defaultedQueryOptions);return l.concat(y).sort(p)}onUpdate(t,n){const r=this.observers.indexOf(t);r!==-1&&(this.result=rm(this.result,r,n),this.notify())}notify(){H.batch(()=>{this.listeners.forEach(({listener:t})=>{t(this.result)})})}}class xm extends Qu{constructor(t,n){super(t,n)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,n){super.setOptions({...t,behavior:zs()},n)}getOptimisticResult(t){return t.behavior=zs(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,n){var r,i,l,s,u,o;const{state:a}=t,h=super.createResult(t,n),{isFetching:y,isRefetching:p}=h,v=y&&((r=a.fetchMeta)==null||(i=r.fetchMore)==null?void 0:i.direction)==="forward",g=y&&((l=a.fetchMeta)==null||(s=l.fetchMore)==null?void 0:s.direction)==="backward";return{...h,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:mm(n,(u=a.data)==null?void 0:u.pages),hasPreviousPage:ym(n,(o=a.data)==null?void 0:o.pages),isFetchingNextPage:v,isFetchingPreviousPage:g,isRefetching:p&&!v&&!g}}}let Cm=class extends Jt{constructor(t,n){super(),this.client=t,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=this.client.defaultMutationOptions(t),Li(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(n=this.currentMutation)==null||n.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const n={listeners:!0};t.type==="success"?n.onSuccess=!0:t.type==="error"&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:Bf(),n=t.status==="loading",r={...t,isLoading:n,isPending:n,isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=r}notify(t){H.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,i,l;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(i=(l=this.mutateOptions).onSettled)==null||i.call(l,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var s,u,o,a;(s=(u=this.mutateOptions).onError)==null||s.call(u,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(o=(a=this.mutateOptions).onSettled)==null||o.call(a,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(({listener:h})=>{h(this.currentResult)})})}};var Kf={exports:{}},Wf={};/**
41
41
  * @license React
42
42
  * use-sync-external-store-shim.production.js
43
43
  *
@@ -45,7 +45,7 @@ Error generating stack: `+l.message+`
45
45
  *
46
46
  * This source code is licensed under the MIT license found in the
47
47
  * LICENSE file in the root directory of this source tree.
48
- */var Nn=R;function Cm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Em=typeof Object.is=="function"?Object.is:Cm,km=Nn.useState,Pm=Nn.useEffect,Om=Nn.useLayoutEffect,Rm=Nn.useDebugValue;function Nm(e,t){var n=t(),r=km({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return Om(function(){i.value=n,i.getSnapshot=t,Dl(i)&&l({inst:i})},[e,n,t]),Pm(function(){return Dl(i)&&l({inst:i}),e(function(){Dl(i)&&l({inst:i})})},[e]),Rm(n),n}function Dl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Em(e,n)}catch{return!0}}function Tm(e,t){return t()}var Mm=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Tm:Nm;Kf.useSyncExternalStore=Nn.useSyncExternalStore!==void 0?Nn.useSyncExternalStore:Mm;Vf.exports=Kf;var Wf=Vf.exports;const Au=Wf.useSyncExternalStore,oa=R.createContext(void 0),Gf=R.createContext(!1);function Yf(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=oa),window.ReactQueryClientContext):oa)}const rl=({context:e}={})=>{const t=R.useContext(Yf(e,R.useContext(Gf)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},jm=({client:e,children:t,context:n,contextSharing:r=!1})=>{R.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const i=Yf(n,r);return R.createElement(Gf.Provider,{value:!n&&r},R.createElement(i.Provider,{value:e},t))},Xf=R.createContext(!1),Zf=()=>R.useContext(Xf);Xf.Provider;function _m(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const Dm=R.createContext(_m()),Jf=()=>R.useContext(Dm);function ed(e,t){return typeof e=="function"?e(...t):!!e}const td=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},nd=e=>{R.useEffect(()=>{e.clearReset()},[e])},rd=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&ed(n,[e.error,r]),id=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.cacheTime=="number"&&(e.cacheTime=Math.max(e.cacheTime,1e3)))},ld=(e,t)=>e.isLoading&&e.isFetching&&!t,As=(e,t,n)=>(e==null?void 0:e.suspense)&&ld(t,n),qs=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function Lm({queries:e,context:t}){const n=rl({context:t}),r=Zf(),i=Jf(),l=R.useMemo(()=>e.map(p=>{const v=n.defaultQueryOptions(p);return v._optimisticResults=r?"isRestoring":"optimistic",v}),[e,n,r]);l.forEach(p=>{id(p),td(p,i)}),nd(i);const[s]=R.useState(()=>new wm(n,l)),u=s.getOptimisticResult(l);Au(R.useCallback(p=>r?()=>{}:s.subscribe(H.batchCalls(p)),[s,r]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),R.useEffect(()=>{s.setQueries(l,{listeners:!1})},[l,s]);const a=u.some((p,v)=>As(l[v],p,r))?u.flatMap((p,v)=>{const g=l[v],y=s.getObservers()[v];if(g&&y){if(As(g,p,r))return qs(g,y,i);ld(p,r)&&qs(g,y,i)}return[]}):[];if(a.length>0)throw Promise.all(a);const h=s.getQueries(),m=u.find((p,v)=>{var g,y;return rd({result:p,errorResetBoundary:i,useErrorBoundary:(g=(y=l[v])==null?void 0:y.useErrorBoundary)!=null?g:!1,query:h[v]})});if(m!=null&&m.error)throw m.error;return u}function sd(e,t){const n=rl({context:e.context}),r=Zf(),i=Jf(),l=n.defaultQueryOptions(e);l._optimisticResults=r?"isRestoring":"optimistic",l.onError&&(l.onError=H.batchCalls(l.onError)),l.onSuccess&&(l.onSuccess=H.batchCalls(l.onSuccess)),l.onSettled&&(l.onSettled=H.batchCalls(l.onSettled)),id(l),td(l,i),nd(i);const[s]=R.useState(()=>new t(n,l)),u=s.getOptimisticResult(l);if(Au(R.useCallback(o=>{const a=r?()=>{}:s.subscribe(H.batchCalls(o));return s.updateResult(),a},[s,r]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),R.useEffect(()=>{s.setOptions(l,{listeners:!1})},[l,s]),As(l,u,r))throw qs(l,s,i);if(rd({result:u,errorResetBoundary:i,useErrorBoundary:l.useErrorBoundary,query:s.getCurrentQuery()}))throw u.error;return l.notifyOnChangeProps?u:s.trackResult(u)}function Im(e,t,n){const r=dn(e,t,n);return sd(r,zu)}function Fm(e,t,n){const r=rm(e,t),i=rl({context:r.context}),[l]=R.useState(()=>new xm(i,r));R.useEffect(()=>{l.setOptions(r)},[l,r]);const s=Au(R.useCallback(o=>l.subscribe(H.batchCalls(o)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),u=R.useCallback((o,a)=>{l.mutate(o,a).catch(Qm)},[l]);if(s.error&&ed(l.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:u,mutateAsync:s.mutate}}function Qm(){}function zm(e,t,n){const r=dn(e,t,n);return sd(r,Sm)}function Um(e){return e}function Am(e){return e.length===0?Um:e.length===1?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}function ud(e){const t={subscribe(n){let r=null,i=!1,l=!1,s=!1;function u(){if(r===null){s=!0;return}l||(l=!0,typeof r=="function"?r():r&&r.unsubscribe())}return r=e({next(o){var a;i||(a=n.next)==null||a.call(n,o)},error(o){var a;i||(i=!0,(a=n.error)==null||a.call(n,o),u())},complete(){var o;i||(i=!0,(o=n.complete)==null||o.call(n),u())}}),s&&u(),{unsubscribe:u}},pipe(...n){return Am(n)(t)}};return t}function qm(e){return t=>{let n=0,r=null;const i=[];function l(){r||(r=t.subscribe({next(u){var o;for(const a of i)(o=a.next)==null||o.call(a,u)},error(u){var o;for(const a of i)(o=a.error)==null||o.call(a,u)},complete(){var u;for(const o of i)(u=o.complete)==null||u.call(o)}}))}function s(){if(n===0&&r){const u=r;r=null,u.unsubscribe()}}return{subscribe(u){return n++,i.push(u),l(),{unsubscribe(){n--,s();const o=i.findIndex(a=>a===u);o>-1&&i.splice(o,1)}}}}}}class qu extends Error{constructor(t){super(t),this.name="ObservableAbortError",Object.setPrototypeOf(this,qu.prototype)}}function bm(e){let t;return{promise:new Promise((r,i)=>{let l=!1;function s(){l||(l=!0,i(new qu("This operation was aborted.")),u.unsubscribe())}const u=e.subscribe({next(o){l=!0,r(o),s()},error(o){l=!0,i(o),s()},complete(){l=!0,s()}});t=s}),abort:t}}function $m(e){return ud(t=>{function n(i=0,l=e.op){const s=e.links[i];if(!s)throw new Error("No more links to execute - did you forget to add an ending link?");return s({op:l,next(o){return n(i+1,o)}})}return n().subscribe(t)})}function od(e){const t=Object.create(null);for(const n in e){const r=e[n];t[r]=n}return t}const ad={PARSE_ERROR:-32700,BAD_REQUEST:-32600,INTERNAL_SERVER_ERROR:-32603,NOT_IMPLEMENTED:-32603,UNAUTHORIZED:-32001,FORBIDDEN:-32003,NOT_FOUND:-32004,METHOD_NOT_SUPPORTED:-32005,TIMEOUT:-32008,CONFLICT:-32009,PRECONDITION_FAILED:-32012,PAYLOAD_TOO_LARGE:-32013,UNPROCESSABLE_CONTENT:-32022,TOO_MANY_REQUESTS:-32029,CLIENT_CLOSED_REQUEST:-32099};od(ad);od(ad);const cd=()=>{};function fd(e,t){return new Proxy(cd,{get(r,i){if(!(typeof i!="string"||i==="then"))return fd(e,[...t,i])},apply(r,i,l){const s=t[t.length-1]==="apply";return e({args:s?l.length>=2?l[1]:[]:l,path:s?t.slice(0,-1):t})}})}const il=e=>fd(e,[]),bu=e=>new Proxy(cd,{get(t,n){if(!(typeof n!="string"||n==="then"))return e(n)}});function Hm(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}class Bm extends Error{}function Vm(e){if(e instanceof Error)return e;const t=typeof e;if(!(t==="undefined"||t==="function"||e===null)){if(t!=="object")return new Error(String(e));if(Hm(e)){const n=new Bm;for(const r in e)n[r]=e[r];return n}}}function Qi(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}function Km(e,t){if("error"in e){const r=t.transformer.deserialize(e.error);return{ok:!1,error:{...e,error:r}}}return{ok:!0,result:{...e.result,...(!e.result.type||e.result.type==="data")&&{type:"data",data:t.transformer.deserialize(e.result.data)}}}}class Ll extends Error{constructor(){super("Unable to transform response from server")}}function Wm(e,t){let n;try{n=Km(e,t)}catch{throw new Ll}if(!n.ok&&(!Qi(n.error.error)||typeof n.error.error.code!="number"))throw new Ll;if(n.ok&&!Qi(n.result))throw new Ll;return n}function Gm(e){return e instanceof Xe||e instanceof Error&&e.name==="TRPCClientError"}function Ym(e){return Qi(e)&&Qi(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}class Xe extends Error{static from(t,n={}){const r=t;return Gm(r)?(n.meta&&(r.meta={...r.meta,...n.meta}),r):Ym(r)?new Xe(r.error.message,{...n,result:r}):r instanceof Error?new Xe(r.message,{...n,cause:Vm(r)}):new Xe("Unknown error",{...n,cause:r})}constructor(t,n){var i,l;const r=n==null?void 0:n.cause;super(t,{cause:r}),this.meta=n==null?void 0:n.meta,this.cause=r,this.shape=(i=n==null?void 0:n.result)==null?void 0:i.error,this.data=(l=n==null?void 0:n.result)==null?void 0:l.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Xe.prototype)}}const aa=e=>typeof e=="function";function Xm(e){if(e)return e;if(typeof window<"u"&&aa(window.fetch))return window.fetch;if(typeof globalThis<"u"&&aa(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}function Zm(e){return e||(typeof window<"u"&&window.AbortController?window.AbortController:typeof globalThis<"u"&&globalThis.AbortController?globalThis.AbortController:null)}function Jm(e){return{url:e.url.toString().replace(/\/$/,""),fetch:e.fetch,AbortController:Zm(e.AbortController)}}function ey(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const ty={query:"GET",mutation:"POST"};function dd(e){return"input"in e?e.runtime.transformer.serialize(e.input):ey(e.inputs.map(t=>e.runtime.transformer.serialize(t)))}const hd=e=>{let t=e.url+"/"+e.path;const n=[];if("inputs"in e&&n.push("batch=1"),e.type==="query"){const r=dd(e);r!==void 0&&n.push(`input=${encodeURIComponent(JSON.stringify(r))}`)}return n.length&&(t+="?"+n.join("&")),t},ny=e=>{if(e.type==="query")return;const t=dd(e);return t!==void 0?JSON.stringify(t):void 0},ry=e=>ly({...e,contentTypeHeader:"application/json",getUrl:hd,getBody:ny});async function iy(e,t){const n=e.getUrl(e),r=e.getBody(e),{type:i}=e,l=await e.headers();/* istanbul ignore if -- @preserve */if(i==="subscription")throw new Error("Subscriptions should use wsLink");const s={...e.contentTypeHeader?{"content-type":e.contentTypeHeader}:{},...e.batchModeHeader?{"trpc-batch-mode":e.batchModeHeader}:{},...l};return Xm(e.fetch)(n,{method:ty[i],signal:t==null?void 0:t.signal,body:r,headers:s})}function ly(e){const t=e.AbortController?new e.AbortController:null,n={};let r=!1;return{promise:new Promise((s,u)=>{iy(e,t).then(o=>(n.response=o,r=!0,o.json())).then(o=>{n.responseJSON=o,s({json:o,meta:n})}).catch(o=>{r=!0,u(Xe.from(o,{meta:n}))})}),cancel:()=>{r||t==null||t.abort()}}}const Il=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function Fl(e){let t=null,n=null;const r=()=>{clearTimeout(n),n=null,t=null};function i(u){var h,m;const o=[[]];let a=0;for(;;){const p=u[a];if(!p)break;const v=o[o.length-1];if(p.aborted){(h=p.reject)==null||h.call(p,new Error("Aborted")),a++;continue}if(e.validate(v.concat(p).map(y=>y.key))){v.push(p),a++;continue}if(v.length===0){(m=p.reject)==null||m.call(p,new Error("Input is too big for a single dispatch")),a++;continue}o.push([])}return o}function l(){const u=i(t);r();for(const o of u){if(!o.length)continue;const a={items:o,cancel:Il};for(const v of o)v.batch=a;const h=(v,g)=>{var k;const y=a.items[v];(k=y.resolve)==null||k.call(y,g),y.batch=null,y.reject=null,y.resolve=null},{promise:m,cancel:p}=e.fetch(a.items.map(v=>v.key),h);a.cancel=p,m.then(v=>{var g;for(let y=0;y<v.length;y++){const k=v[y];h(y,k)}for(const y of a.items)(g=y.reject)==null||g.call(y,new Error("Missing result")),y.batch=null}).catch(v=>{var g;for(const y of a.items)(g=y.reject)==null||g.call(y,v),y.batch=null})}}function s(u){const o={aborted:!1,key:u,batch:null,resolve:Il,reject:Il},a=new Promise((m,p)=>{o.reject=p,o.resolve=m,t||(t=[]),t.push(o)});return n||(n=setTimeout(l)),{promise:a,cancel:()=>{var m;o.aborted=!0,(m=o.batch)!=null&&m.items.every(p=>p.aborted)&&(o.batch.cancel(),o.batch=null)}}}return{load:s}}function sy(e){return function(n){const r=Jm(n),i=n.maxURLLength??1/0;return l=>{const s=m=>{const p=g=>{if(i===1/0)return!0;const y=g.map(c=>c.path).join(","),k=g.map(c=>c.input);return hd({...r,runtime:l,type:m,path:y,inputs:k}).length<=i},v=e({...r,runtime:l,type:m,opts:n});return{validate:p,fetch:v}},u=Fl(s("query")),o=Fl(s("mutation")),a=Fl(s("subscription")),h={query:u,subscription:a,mutation:o};return({op:m})=>ud(p=>{const v=h[m.type],{promise:g,cancel:y}=v.load(m);let k;return g.then(f=>{k=f;const c=Wm(f.json,l);if(!c.ok){p.error(Xe.from(c.error,{meta:f.meta}));return}p.next({context:f.meta,result:c.result}),p.complete()}).catch(f=>{p.error(Xe.from(f,{meta:k==null?void 0:k.meta}))}),()=>{y()}})}}}const uy=e=>t=>{const n=t.map(s=>s.path).join(","),r=t.map(s=>s.input),{promise:i,cancel:l}=ry({...e,path:n,inputs:r,headers(){return e.opts.headers?typeof e.opts.headers=="function"?e.opts.headers({opList:t}):e.opts.headers:{}}});return{promise:i.then(s=>(Array.isArray(s.json)?s.json:t.map(()=>s.json)).map(a=>({meta:s.meta,json:a}))),cancel:l}},oy=sy(uy);class ay{$request({type:t,input:n,path:r,context:i={}}){return $m({links:this.links,op:{id:++this.requestId,type:t,path:r,input:n,context:i}}).pipe(qm())}requestAsPromise(t){const n=this.$request(t),{promise:r,abort:i}=bm(n);return new Promise((s,u)=>{var o;(o=t.signal)==null||o.addEventListener("abort",i),r.then(a=>{s(a.result.data)}).catch(a=>{u(Xe.from(a))})})}query(t,n,r){return this.requestAsPromise({type:"query",path:t,input:n,context:r==null?void 0:r.context,signal:r==null?void 0:r.signal})}mutation(t,n,r){return this.requestAsPromise({type:"mutation",path:t,input:n,context:r==null?void 0:r.context,signal:r==null?void 0:r.signal})}subscription(t,n,r){return this.$request({type:"subscription",path:t,input:n,context:r==null?void 0:r.context}).subscribe({next(l){var s,u,o;l.result.type==="started"?(s=r.onStarted)==null||s.call(r):l.result.type==="stopped"?(u=r.onStopped)==null||u.call(r):(o=r.onData)==null||o.call(r,l.result.data)},error(l){var s;(s=r.onError)==null||s.call(r,l)},complete(){var l;(l=r.onComplete)==null||l.call(r)}})}constructor(t){this.requestId=0;const n=(()=>{const r=t.transformer;return r?"input"in r?t.transformer:{input:r,output:r}:{input:{serialize:i=>i,deserialize:i=>i},output:{serialize:i=>i,deserialize:i=>i}}})();this.runtime={transformer:{serialize:r=>n.input.serialize(r),deserialize:r=>n.output.deserialize(r)},combinedTransformer:n},this.links=t.links.map(r=>r(this.runtime))}}function cy(e){return new ay(e)}const fy={query:"query",mutate:"mutation",subscribe:"subscription"},dy=e=>fy[e];function hy(e){return bu(t=>e.hasOwnProperty(t)?e[t]:t==="__untypedClient"?e:il(({path:n,args:r})=>{const i=[t,...n],l=dy(i.pop()),s=i.join(".");return e[l](s,...r)}))}function K(e,t){const n=Array.isArray(e)?e:[e],[r,i]=n,l=typeof r!="string"||r===""?[]:r.split(".");return!i&&(!t||t==="any")?l.length?[l]:[]:[l,{...typeof i<"u"&&{input:i},...t&&t!=="any"&&{type:t}}]}function zi(e,t){return e.length?t===void 0?[e]:[e,t]:[]}function py(e,t){return il(n=>{const r=n.args,i=[e,...n.path],l=i.pop(),s=i.join(".");if(l==="useMutation")return t[l](s,...r);const[u,...o]=r,a=zi(s,u);if(l==="getQueryKey")return K(a,o[0]??"any");if(l==="_def")return{path:i};if(l.startsWith("useSuspense")){const h=o[0]||{},p=t[l==="useSuspenseQuery"?"useQuery":"useInfiniteQuery"](a,{...h,suspense:!0,enabled:!0});return[p.data,p]}return t[l](a,...o)})}const my=["client","ssrContext","ssrState","abortOnUnmount"],yy=R.createContext(null);function vy(e){return bu(t=>{const n=t;return n==="client"?hy(e.client):my.includes(n)?e[n]:il(({path:r,args:i})=>{const l=[t,...r],s=l.pop(),u=l.join("."),o=v=>{if(["setData","setInfiniteData"].includes(v)){const[f,c,...d]=i;return{queryKey:zi(u,f),updater:c,rest:d}}const[g,...y]=i;return{queryKey:zi(u,g),rest:y}},{queryKey:a,rest:h,updater:m}=o(s);return{fetch:()=>e.fetchQuery(a,...h),fetchInfinite:()=>e.fetchInfiniteQuery(a,...h),prefetch:()=>e.prefetchQuery(a,...h),prefetchInfinite:()=>e.prefetchInfiniteQuery(a,...h),ensureData:()=>e.ensureQueryData(a,...h),invalidate:()=>e.invalidateQueries(a,...h),reset:()=>e.resetQueries(a,...h),refetch:()=>e.refetchQueries(a,...h),cancel:()=>e.cancelQuery(a,...h),setData:()=>{e.setQueryData(a,m,...h)},setInfiniteData:()=>{e.setInfiniteQueryData(a,m,...h)},getData:()=>e.getQueryData(a),getInfiniteData:()=>e.getInfiniteQueryData(a)}[s]()})})}function gy(e){return il(t=>{const n=t.path.join("."),[r,i]=t.args;return{queryKey:zi(n,r),queryFn:()=>e.query(n,r,i==null?void 0:i.trpc),...i}})}function ht(e,t){const[n,r]=e;return[n,r,t==null?void 0:t.trpc]}function Ql(e){const{path:t}=e;return R.useMemo(()=>({path:t}),[t])}function wy(e){const t=g=>g.originalFn(),n=yy,r=e==null?void 0:e.reactQueryContext,i=g=>cy(g),l=g=>{const{abortOnUnmount:y=!1,client:k,queryClient:f,ssrContext:c}=g,[d,C]=R.useState(g.ssrState??!1);return R.useEffect(()=>{C(x=>x?"mounted":!1)},[]),Ze.createElement(n.Provider,{value:{abortOnUnmount:y,queryClient:f,client:k,ssrContext:c??null,ssrState:d,fetchQuery:R.useCallback((x,S)=>f.fetchQuery({...S,queryKey:K(x,"query"),queryFn:()=>k.query(...ht(x,S))}),[k,f]),fetchInfiniteQuery:R.useCallback((x,S)=>f.fetchInfiniteQuery({...S,queryKey:K(x,"infinite"),queryFn:({pageParam:w})=>{const[E,M]=x,N={...M,cursor:w};return k.query(...ht([E,N],S))}}),[k,f]),prefetchQuery:R.useCallback((x,S)=>f.prefetchQuery({...S,queryKey:K(x,"query"),queryFn:()=>k.query(...ht(x,S))}),[k,f]),prefetchInfiniteQuery:R.useCallback((x,S)=>f.prefetchInfiniteQuery({...S,queryKey:K(x,"infinite"),queryFn:({pageParam:w})=>{const[E,M]=x,N={...M,cursor:w};return k.query(...ht([E,N],S))}}),[k,f]),ensureQueryData:R.useCallback((x,S)=>f.ensureQueryData({...S,queryKey:K(x,"query"),queryFn:()=>k.query(...ht(x,S))}),[k,f]),invalidateQueries:R.useCallback((x,S,w)=>f.invalidateQueries({...S,queryKey:K(x,"any")},w),[f]),resetQueries:R.useCallback((...x)=>{const[S,w,E]=x;return f.resetQueries({...w,queryKey:K(S,"any")},E)},[f]),refetchQueries:R.useCallback((...x)=>{const[S,w,E]=x;return f.refetchQueries({...w,queryKey:K(S,"any")},E)},[f]),cancelQuery:R.useCallback(x=>f.cancelQueries({queryKey:K(x,"any")}),[f]),setQueryData:R.useCallback((...x)=>{const[S,...w]=x;return f.setQueryData(K(S,"query"),...w)},[f]),getQueryData:R.useCallback((...x)=>{const[S,...w]=x;return f.getQueryData(K(S,"query"),...w)},[f]),setInfiniteQueryData:R.useCallback((...x)=>{const[S,...w]=x;return f.setQueryData(K(S,"infinite"),...w)},[f]),getInfiniteQueryData:R.useCallback((...x)=>{const[S,...w]=x;return f.getQueryData(K(S,"infinite"),...w)},[f])}},g.children)};function s(){return Ze.useContext(n)}function u(g,y,k){var d;const{queryClient:f,ssrState:c}=s();return c&&c!=="mounted"&&((d=f.getQueryCache().find(K(g,y)))==null?void 0:d.state.status)==="error"?{retryOnMount:!1,...k}:k}function o(g,y){var N,A;const k=s();if(!k)throw new Error("Unable to retrieve application context. Did you forget to wrap your App inside `withTRPC` HoC?");const{abortOnUnmount:f,client:c,ssrState:d,queryClient:C,prefetchQuery:x}=k,S=C.getQueryDefaults(K(g,"query"));typeof window>"u"&&d==="prepass"&&((N=y==null?void 0:y.trpc)==null?void 0:N.ssr)!==!1&&((y==null?void 0:y.enabled)??(S==null?void 0:S.enabled))!==!1&&!C.getQueryCache().find(K(g,"query"))&&x(g,y);const w=u(g,"query",{...S,...y}),E=((A=y==null?void 0:y.trpc)==null?void 0:A.abortOnUnmount)??(e==null?void 0:e.abortOnUnmount)??f,M=Im({...w,queryKey:K(g,"query"),queryFn:ae=>{const le={...w,trpc:{...w==null?void 0:w.trpc,...E?{signal:ae.signal}:{}}};return c.query(...ht(g,le))},context:r});return M.trpc=Ql({path:g[0]}),M}function a(g,y){const{client:k}=s(),f=rl({context:r}),c=Array.isArray(g)?g[0]:g,d=f.getMutationDefaults([c.split(".")]),C=Fm({...y,mutationKey:[c.split(".")],mutationFn:x=>k.mutation(...ht([c,x],y)),context:r,onSuccess(...x){return t({originalFn:()=>{var w,E;return((w=y==null?void 0:y.onSuccess)==null?void 0:w.call(y,...x))??((E=d==null?void 0:d.onSuccess)==null?void 0:E.call(d,...x))},queryClient:f,meta:(y==null?void 0:y.meta)??(d==null?void 0:d.meta)??{}})}});return C.trpc=Ql({path:c}),C}/* istanbul ignore next -- @preserve */function h(g,y){const k=(y==null?void 0:y.enabled)??!0,f=xt(g),{client:c}=s(),d=R.useRef(y);d.current=y,R.useEffect(()=>{if(!k)return;const[C,x]=g;let S=!1;const w=c.subscription(C,x??void 0,{onStarted:()=>{var E,M;S||(M=(E=d.current).onStarted)==null||M.call(E)},onData:E=>{S||d.current.onData(E)},onError:E=>{var M,N;S||(N=(M=d.current).onError)==null||N.call(M,E)}});return()=>{S=!0,w.unsubscribe()}},[f,k])}function m(g,y){var A,ae;const[k,f]=g,{client:c,ssrState:d,prefetchInfiniteQuery:C,queryClient:x,abortOnUnmount:S}=s(),w=x.getQueryDefaults(K(g,"infinite"));typeof window>"u"&&d==="prepass"&&((A=y==null?void 0:y.trpc)==null?void 0:A.ssr)!==!1&&((y==null?void 0:y.enabled)??(w==null?void 0:w.enabled))!==!1&&!x.getQueryCache().find(K(g,"infinite"))&&C(g,{...w,...y});const E=u(g,"infinite",{...w,...y}),M=((ae=y==null?void 0:y.trpc)==null?void 0:ae.abortOnUnmount)??S,N=zm({...E,queryKey:K(g,"infinite"),queryFn:le=>{const Ve={...E,trpc:{...E==null?void 0:E.trpc,...M?{signal:le.signal}:{}}},L={...f??{},cursor:le.pageParam??(y==null?void 0:y.initialCursor)};return c.query(...ht([k,L],Ve))},context:r});return N.trpc=Ql({path:k}),N}return{Provider:l,createClient:i,useContext:s,useUtils:s,useQuery:o,useQueries:(g,y)=>{var S;const{ssrState:k,queryClient:f,prefetchQuery:c,client:d}=s(),C=gy(d),x=g(C);if(typeof window>"u"&&k==="prepass")for(const w of x){const E=w;((S=E.trpc)==null?void 0:S.ssr)!==!1&&!f.getQueryCache().find(K(E.queryKey,"query"))&&c(E.queryKey,E)}return Lm({queries:x.map(w=>({...w,queryKey:K(w.queryKey,"query")})),context:y})},useMutation:a,useSubscription:h,useDehydratedState:(g,y)=>R.useMemo(()=>y&&g.runtime.transformer.deserialize(y),[y,g]),useInfiniteQuery:m}}function Sy(e){return wy(e)}function xy(e){return bu(t=>t==="useContext"||t==="useUtils"?()=>{const n=e.useUtils();return R.useMemo(()=>vy(n),[n])}:e.hasOwnProperty(t)?e[t]:py(t,e))}function Cy(e){const t=Sy(e);return xy(t)}const Tn=Cy(),Ey=()=>typeof window<"u"?"":"http://localhost:4747",ky=Tn.createClient({links:[oy({url:`${Ey()}/api/trpc`})]}),Py={},ca=e=>{let t;const n=new Set,r=(h,m)=>{const p=typeof h=="function"?h(t):h;if(!Object.is(p,t)){const v=t;t=m??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(g=>g(t,v))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>a,subscribe:h=>(n.add(h),()=>n.delete(h)),destroy:()=>{(Py?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=t=e(r,i,o);return o},Oy=e=>e?ca(e):ca;var pd={exports:{}},md={};/**
48
+ */var jn=R;function Em(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var km=typeof Object.is=="function"?Object.is:Em,Pm=jn.useState,Om=jn.useEffect,Rm=jn.useLayoutEffect,Nm=jn.useDebugValue;function jm(e,t){var n=t(),r=Pm({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return Rm(function(){i.value=n,i.getSnapshot=t,Il(i)&&l({inst:i})},[e,n,t]),Om(function(){return Il(i)&&l({inst:i}),e(function(){Il(i)&&l({inst:i})})},[e]),Nm(n),n}function Il(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!km(e,n)}catch{return!0}}function Tm(e,t){return t()}var Mm=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Tm:jm;Wf.useSyncExternalStore=jn.useSyncExternalStore!==void 0?jn.useSyncExternalStore:Mm;Kf.exports=Wf;var Gf=Kf.exports;const Au=Gf.useSyncExternalStore,oa=R.createContext(void 0),Yf=R.createContext(!1);function Xf(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=oa),window.ReactQueryClientContext):oa)}const rl=({context:e}={})=>{const t=R.useContext(Xf(e,R.useContext(Yf)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},_m=({client:e,children:t,context:n,contextSharing:r=!1})=>{R.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const i=Xf(n,r);return R.createElement(Yf.Provider,{value:!n&&r},R.createElement(i.Provider,{value:e},t))},Zf=R.createContext(!1),Jf=()=>R.useContext(Zf);Zf.Provider;function Im(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const Lm=R.createContext(Im()),ed=()=>R.useContext(Lm);function td(e,t){return typeof e=="function"?e(...t):!!e}const nd=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},rd=e=>{R.useEffect(()=>{e.clearReset()},[e])},id=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&td(n,[e.error,r]),ld=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.cacheTime=="number"&&(e.cacheTime=Math.max(e.cacheTime,1e3)))},sd=(e,t)=>e.isLoading&&e.isFetching&&!t,As=(e,t,n)=>(e==null?void 0:e.suspense)&&sd(t,n),bs=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function Dm({queries:e,context:t}){const n=rl({context:t}),r=Jf(),i=ed(),l=R.useMemo(()=>e.map(p=>{const v=n.defaultQueryOptions(p);return v._optimisticResults=r?"isRestoring":"optimistic",v}),[e,n,r]);l.forEach(p=>{ld(p),nd(p,i)}),rd(i);const[s]=R.useState(()=>new Sm(n,l)),u=s.getOptimisticResult(l);Au(R.useCallback(p=>r?()=>{}:s.subscribe(H.batchCalls(p)),[s,r]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),R.useEffect(()=>{s.setQueries(l,{listeners:!1})},[l,s]);const a=u.some((p,v)=>As(l[v],p,r))?u.flatMap((p,v)=>{const g=l[v],m=s.getObservers()[v];if(g&&m){if(As(g,p,r))return bs(g,m,i);sd(p,r)&&bs(g,m,i)}return[]}):[];if(a.length>0)throw Promise.all(a);const h=s.getQueries(),y=u.find((p,v)=>{var g,m;return id({result:p,errorResetBoundary:i,useErrorBoundary:(g=(m=l[v])==null?void 0:m.useErrorBoundary)!=null?g:!1,query:h[v]})});if(y!=null&&y.error)throw y.error;return u}function ud(e,t){const n=rl({context:e.context}),r=Jf(),i=ed(),l=n.defaultQueryOptions(e);l._optimisticResults=r?"isRestoring":"optimistic",l.onError&&(l.onError=H.batchCalls(l.onError)),l.onSuccess&&(l.onSuccess=H.batchCalls(l.onSuccess)),l.onSettled&&(l.onSettled=H.batchCalls(l.onSettled)),ld(l),nd(l,i),rd(i);const[s]=R.useState(()=>new t(n,l)),u=s.getOptimisticResult(l);if(Au(R.useCallback(o=>{const a=r?()=>{}:s.subscribe(H.batchCalls(o));return s.updateResult(),a},[s,r]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),R.useEffect(()=>{s.setOptions(l,{listeners:!1})},[l,s]),As(l,u,r))throw bs(l,s,i);if(id({result:u,errorResetBoundary:i,useErrorBoundary:l.useErrorBoundary,query:s.getCurrentQuery()}))throw u.error;return l.notifyOnChangeProps?u:s.trackResult(u)}function Fm(e,t,n){const r=pn(e,t,n);return ud(r,Qu)}function zm(e,t,n){const r=im(e,t),i=rl({context:r.context}),[l]=R.useState(()=>new Cm(i,r));R.useEffect(()=>{l.setOptions(r)},[l,r]);const s=Au(R.useCallback(o=>l.subscribe(H.batchCalls(o)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),u=R.useCallback((o,a)=>{l.mutate(o,a).catch(Qm)},[l]);if(s.error&&td(l.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:u,mutateAsync:s.mutate}}function Qm(){}function Um(e,t,n){const r=pn(e,t,n);return ud(r,xm)}function Am(e){return e}function bm(e){return e.length===0?Am:e.length===1?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}function od(e){const t={subscribe(n){let r=null,i=!1,l=!1,s=!1;function u(){if(r===null){s=!0;return}l||(l=!0,typeof r=="function"?r():r&&r.unsubscribe())}return r=e({next(o){var a;i||(a=n.next)==null||a.call(n,o)},error(o){var a;i||(i=!0,(a=n.error)==null||a.call(n,o),u())},complete(){var o;i||(i=!0,(o=n.complete)==null||o.call(n),u())}}),s&&u(),{unsubscribe:u}},pipe(...n){return bm(n)(t)}};return t}function qm(e){return t=>{let n=0,r=null;const i=[];function l(){r||(r=t.subscribe({next(u){var o;for(const a of i)(o=a.next)==null||o.call(a,u)},error(u){var o;for(const a of i)(o=a.error)==null||o.call(a,u)},complete(){var u;for(const o of i)(u=o.complete)==null||u.call(o)}}))}function s(){if(n===0&&r){const u=r;r=null,u.unsubscribe()}}return{subscribe(u){return n++,i.push(u),l(),{unsubscribe(){n--,s();const o=i.findIndex(a=>a===u);o>-1&&i.splice(o,1)}}}}}}class bu extends Error{constructor(t){super(t),this.name="ObservableAbortError",Object.setPrototypeOf(this,bu.prototype)}}function $m(e){let t;return{promise:new Promise((r,i)=>{let l=!1;function s(){l||(l=!0,i(new bu("This operation was aborted.")),u.unsubscribe())}const u=e.subscribe({next(o){l=!0,r(o),s()},error(o){l=!0,i(o),s()},complete(){l=!0,s()}});t=s}),abort:t}}function Hm(e){return od(t=>{function n(i=0,l=e.op){const s=e.links[i];if(!s)throw new Error("No more links to execute - did you forget to add an ending link?");return s({op:l,next(o){return n(i+1,o)}})}return n().subscribe(t)})}function ad(e){const t=Object.create(null);for(const n in e){const r=e[n];t[r]=n}return t}const cd={PARSE_ERROR:-32700,BAD_REQUEST:-32600,INTERNAL_SERVER_ERROR:-32603,NOT_IMPLEMENTED:-32603,UNAUTHORIZED:-32001,FORBIDDEN:-32003,NOT_FOUND:-32004,METHOD_NOT_SUPPORTED:-32005,TIMEOUT:-32008,CONFLICT:-32009,PRECONDITION_FAILED:-32012,PAYLOAD_TOO_LARGE:-32013,UNPROCESSABLE_CONTENT:-32022,TOO_MANY_REQUESTS:-32029,CLIENT_CLOSED_REQUEST:-32099};ad(cd);ad(cd);const fd=()=>{};function dd(e,t){return new Proxy(fd,{get(r,i){if(!(typeof i!="string"||i==="then"))return dd(e,[...t,i])},apply(r,i,l){const s=t[t.length-1]==="apply";return e({args:s?l.length>=2?l[1]:[]:l,path:s?t.slice(0,-1):t})}})}const il=e=>dd(e,[]),qu=e=>new Proxy(fd,{get(t,n){if(!(typeof n!="string"||n==="then"))return e(n)}});function Bm(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}class Vm extends Error{}function Km(e){if(e instanceof Error)return e;const t=typeof e;if(!(t==="undefined"||t==="function"||e===null)){if(t!=="object")return new Error(String(e));if(Bm(e)){const n=new Vm;for(const r in e)n[r]=e[r];return n}}}function zi(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}function Wm(e,t){if("error"in e){const r=t.transformer.deserialize(e.error);return{ok:!1,error:{...e,error:r}}}return{ok:!0,result:{...e.result,...(!e.result.type||e.result.type==="data")&&{type:"data",data:t.transformer.deserialize(e.result.data)}}}}class Ll extends Error{constructor(){super("Unable to transform response from server")}}function Gm(e,t){let n;try{n=Wm(e,t)}catch{throw new Ll}if(!n.ok&&(!zi(n.error.error)||typeof n.error.error.code!="number"))throw new Ll;if(n.ok&&!zi(n.result))throw new Ll;return n}function Ym(e){return e instanceof Xe||e instanceof Error&&e.name==="TRPCClientError"}function Xm(e){return zi(e)&&zi(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}class Xe extends Error{static from(t,n={}){const r=t;return Ym(r)?(n.meta&&(r.meta={...r.meta,...n.meta}),r):Xm(r)?new Xe(r.error.message,{...n,result:r}):r instanceof Error?new Xe(r.message,{...n,cause:Km(r)}):new Xe("Unknown error",{...n,cause:r})}constructor(t,n){var i,l;const r=n==null?void 0:n.cause;super(t,{cause:r}),this.meta=n==null?void 0:n.meta,this.cause=r,this.shape=(i=n==null?void 0:n.result)==null?void 0:i.error,this.data=(l=n==null?void 0:n.result)==null?void 0:l.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Xe.prototype)}}const aa=e=>typeof e=="function";function Zm(e){if(e)return e;if(typeof window<"u"&&aa(window.fetch))return window.fetch;if(typeof globalThis<"u"&&aa(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}function Jm(e){return e||(typeof window<"u"&&window.AbortController?window.AbortController:typeof globalThis<"u"&&globalThis.AbortController?globalThis.AbortController:null)}function ey(e){return{url:e.url.toString().replace(/\/$/,""),fetch:e.fetch,AbortController:Jm(e.AbortController)}}function ty(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const ny={query:"GET",mutation:"POST"};function hd(e){return"input"in e?e.runtime.transformer.serialize(e.input):ty(e.inputs.map(t=>e.runtime.transformer.serialize(t)))}const pd=e=>{let t=e.url+"/"+e.path;const n=[];if("inputs"in e&&n.push("batch=1"),e.type==="query"){const r=hd(e);r!==void 0&&n.push(`input=${encodeURIComponent(JSON.stringify(r))}`)}return n.length&&(t+="?"+n.join("&")),t},ry=e=>{if(e.type==="query")return;const t=hd(e);return t!==void 0?JSON.stringify(t):void 0},iy=e=>sy({...e,contentTypeHeader:"application/json",getUrl:pd,getBody:ry});async function ly(e,t){const n=e.getUrl(e),r=e.getBody(e),{type:i}=e,l=await e.headers();/* istanbul ignore if -- @preserve */if(i==="subscription")throw new Error("Subscriptions should use wsLink");const s={...e.contentTypeHeader?{"content-type":e.contentTypeHeader}:{},...e.batchModeHeader?{"trpc-batch-mode":e.batchModeHeader}:{},...l};return Zm(e.fetch)(n,{method:ny[i],signal:t==null?void 0:t.signal,body:r,headers:s})}function sy(e){const t=e.AbortController?new e.AbortController:null,n={};let r=!1;return{promise:new Promise((s,u)=>{ly(e,t).then(o=>(n.response=o,r=!0,o.json())).then(o=>{n.responseJSON=o,s({json:o,meta:n})}).catch(o=>{r=!0,u(Xe.from(o,{meta:n}))})}),cancel:()=>{r||t==null||t.abort()}}}const Dl=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function Fl(e){let t=null,n=null;const r=()=>{clearTimeout(n),n=null,t=null};function i(u){var h,y;const o=[[]];let a=0;for(;;){const p=u[a];if(!p)break;const v=o[o.length-1];if(p.aborted){(h=p.reject)==null||h.call(p,new Error("Aborted")),a++;continue}if(e.validate(v.concat(p).map(m=>m.key))){v.push(p),a++;continue}if(v.length===0){(y=p.reject)==null||y.call(p,new Error("Input is too big for a single dispatch")),a++;continue}o.push([])}return o}function l(){const u=i(t);r();for(const o of u){if(!o.length)continue;const a={items:o,cancel:Dl};for(const v of o)v.batch=a;const h=(v,g)=>{var P;const m=a.items[v];(P=m.resolve)==null||P.call(m,g),m.batch=null,m.reject=null,m.resolve=null},{promise:y,cancel:p}=e.fetch(a.items.map(v=>v.key),h);a.cancel=p,y.then(v=>{var g;for(let m=0;m<v.length;m++){const P=v[m];h(m,P)}for(const m of a.items)(g=m.reject)==null||g.call(m,new Error("Missing result")),m.batch=null}).catch(v=>{var g;for(const m of a.items)(g=m.reject)==null||g.call(m,v),m.batch=null})}}function s(u){const o={aborted:!1,key:u,batch:null,resolve:Dl,reject:Dl},a=new Promise((y,p)=>{o.reject=p,o.resolve=y,t||(t=[]),t.push(o)});return n||(n=setTimeout(l)),{promise:a,cancel:()=>{var y;o.aborted=!0,(y=o.batch)!=null&&y.items.every(p=>p.aborted)&&(o.batch.cancel(),o.batch=null)}}}return{load:s}}function uy(e){return function(n){const r=ey(n),i=n.maxURLLength??1/0;return l=>{const s=y=>{const p=g=>{if(i===1/0)return!0;const m=g.map(c=>c.path).join(","),P=g.map(c=>c.input);return pd({...r,runtime:l,type:y,path:m,inputs:P}).length<=i},v=e({...r,runtime:l,type:y,opts:n});return{validate:p,fetch:v}},u=Fl(s("query")),o=Fl(s("mutation")),a=Fl(s("subscription")),h={query:u,subscription:a,mutation:o};return({op:y})=>od(p=>{const v=h[y.type],{promise:g,cancel:m}=v.load(y);let P;return g.then(f=>{P=f;const c=Gm(f.json,l);if(!c.ok){p.error(Xe.from(c.error,{meta:f.meta}));return}p.next({context:f.meta,result:c.result}),p.complete()}).catch(f=>{p.error(Xe.from(f,{meta:P==null?void 0:P.meta}))}),()=>{m()}})}}}const oy=e=>t=>{const n=t.map(s=>s.path).join(","),r=t.map(s=>s.input),{promise:i,cancel:l}=iy({...e,path:n,inputs:r,headers(){return e.opts.headers?typeof e.opts.headers=="function"?e.opts.headers({opList:t}):e.opts.headers:{}}});return{promise:i.then(s=>(Array.isArray(s.json)?s.json:t.map(()=>s.json)).map(a=>({meta:s.meta,json:a}))),cancel:l}},ay=uy(oy);class cy{$request({type:t,input:n,path:r,context:i={}}){return Hm({links:this.links,op:{id:++this.requestId,type:t,path:r,input:n,context:i}}).pipe(qm())}requestAsPromise(t){const n=this.$request(t),{promise:r,abort:i}=$m(n);return new Promise((s,u)=>{var o;(o=t.signal)==null||o.addEventListener("abort",i),r.then(a=>{s(a.result.data)}).catch(a=>{u(Xe.from(a))})})}query(t,n,r){return this.requestAsPromise({type:"query",path:t,input:n,context:r==null?void 0:r.context,signal:r==null?void 0:r.signal})}mutation(t,n,r){return this.requestAsPromise({type:"mutation",path:t,input:n,context:r==null?void 0:r.context,signal:r==null?void 0:r.signal})}subscription(t,n,r){return this.$request({type:"subscription",path:t,input:n,context:r==null?void 0:r.context}).subscribe({next(l){var s,u,o;l.result.type==="started"?(s=r.onStarted)==null||s.call(r):l.result.type==="stopped"?(u=r.onStopped)==null||u.call(r):(o=r.onData)==null||o.call(r,l.result.data)},error(l){var s;(s=r.onError)==null||s.call(r,l)},complete(){var l;(l=r.onComplete)==null||l.call(r)}})}constructor(t){this.requestId=0;const n=(()=>{const r=t.transformer;return r?"input"in r?t.transformer:{input:r,output:r}:{input:{serialize:i=>i,deserialize:i=>i},output:{serialize:i=>i,deserialize:i=>i}}})();this.runtime={transformer:{serialize:r=>n.input.serialize(r),deserialize:r=>n.output.deserialize(r)},combinedTransformer:n},this.links=t.links.map(r=>r(this.runtime))}}function fy(e){return new cy(e)}const dy={query:"query",mutate:"mutation",subscribe:"subscription"},hy=e=>dy[e];function py(e){return qu(t=>e.hasOwnProperty(t)?e[t]:t==="__untypedClient"?e:il(({path:n,args:r})=>{const i=[t,...n],l=hy(i.pop()),s=i.join(".");return e[l](s,...r)}))}function K(e,t){const n=Array.isArray(e)?e:[e],[r,i]=n,l=typeof r!="string"||r===""?[]:r.split(".");return!i&&(!t||t==="any")?l.length?[l]:[]:[l,{...typeof i<"u"&&{input:i},...t&&t!=="any"&&{type:t}}]}function Qi(e,t){return e.length?t===void 0?[e]:[e,t]:[]}function my(e,t){return il(n=>{const r=n.args,i=[e,...n.path],l=i.pop(),s=i.join(".");if(l==="useMutation")return t[l](s,...r);const[u,...o]=r,a=Qi(s,u);if(l==="getQueryKey")return K(a,o[0]??"any");if(l==="_def")return{path:i};if(l.startsWith("useSuspense")){const h=o[0]||{},p=t[l==="useSuspenseQuery"?"useQuery":"useInfiniteQuery"](a,{...h,suspense:!0,enabled:!0});return[p.data,p]}return t[l](a,...o)})}const yy=["client","ssrContext","ssrState","abortOnUnmount"],vy=R.createContext(null);function gy(e){return qu(t=>{const n=t;return n==="client"?py(e.client):yy.includes(n)?e[n]:il(({path:r,args:i})=>{const l=[t,...r],s=l.pop(),u=l.join("."),o=v=>{if(["setData","setInfiniteData"].includes(v)){const[f,c,...d]=i;return{queryKey:Qi(u,f),updater:c,rest:d}}const[g,...m]=i;return{queryKey:Qi(u,g),rest:m}},{queryKey:a,rest:h,updater:y}=o(s);return{fetch:()=>e.fetchQuery(a,...h),fetchInfinite:()=>e.fetchInfiniteQuery(a,...h),prefetch:()=>e.prefetchQuery(a,...h),prefetchInfinite:()=>e.prefetchInfiniteQuery(a,...h),ensureData:()=>e.ensureQueryData(a,...h),invalidate:()=>e.invalidateQueries(a,...h),reset:()=>e.resetQueries(a,...h),refetch:()=>e.refetchQueries(a,...h),cancel:()=>e.cancelQuery(a,...h),setData:()=>{e.setQueryData(a,y,...h)},setInfiniteData:()=>{e.setInfiniteQueryData(a,y,...h)},getData:()=>e.getQueryData(a),getInfiniteData:()=>e.getInfiniteQueryData(a)}[s]()})})}function wy(e){return il(t=>{const n=t.path.join("."),[r,i]=t.args;return{queryKey:Qi(n,r),queryFn:()=>e.query(n,r,i==null?void 0:i.trpc),...i}})}function mt(e,t){const[n,r]=e;return[n,r,t==null?void 0:t.trpc]}function zl(e){const{path:t}=e;return R.useMemo(()=>({path:t}),[t])}function Sy(e){const t=g=>g.originalFn(),n=vy,r=e==null?void 0:e.reactQueryContext,i=g=>fy(g),l=g=>{const{abortOnUnmount:m=!1,client:P,queryClient:f,ssrContext:c}=g,[d,C]=R.useState(g.ssrState??!1);return R.useEffect(()=>{C(x=>x?"mounted":!1)},[]),Ze.createElement(n.Provider,{value:{abortOnUnmount:m,queryClient:f,client:P,ssrContext:c??null,ssrState:d,fetchQuery:R.useCallback((x,S)=>f.fetchQuery({...S,queryKey:K(x,"query"),queryFn:()=>P.query(...mt(x,S))}),[P,f]),fetchInfiniteQuery:R.useCallback((x,S)=>f.fetchInfiniteQuery({...S,queryKey:K(x,"infinite"),queryFn:({pageParam:w})=>{const[E,T]=x,N={...T,cursor:w};return P.query(...mt([E,N],S))}}),[P,f]),prefetchQuery:R.useCallback((x,S)=>f.prefetchQuery({...S,queryKey:K(x,"query"),queryFn:()=>P.query(...mt(x,S))}),[P,f]),prefetchInfiniteQuery:R.useCallback((x,S)=>f.prefetchInfiniteQuery({...S,queryKey:K(x,"infinite"),queryFn:({pageParam:w})=>{const[E,T]=x,N={...T,cursor:w};return P.query(...mt([E,N],S))}}),[P,f]),ensureQueryData:R.useCallback((x,S)=>f.ensureQueryData({...S,queryKey:K(x,"query"),queryFn:()=>P.query(...mt(x,S))}),[P,f]),invalidateQueries:R.useCallback((x,S,w)=>f.invalidateQueries({...S,queryKey:K(x,"any")},w),[f]),resetQueries:R.useCallback((...x)=>{const[S,w,E]=x;return f.resetQueries({...w,queryKey:K(S,"any")},E)},[f]),refetchQueries:R.useCallback((...x)=>{const[S,w,E]=x;return f.refetchQueries({...w,queryKey:K(S,"any")},E)},[f]),cancelQuery:R.useCallback(x=>f.cancelQueries({queryKey:K(x,"any")}),[f]),setQueryData:R.useCallback((...x)=>{const[S,...w]=x;return f.setQueryData(K(S,"query"),...w)},[f]),getQueryData:R.useCallback((...x)=>{const[S,...w]=x;return f.getQueryData(K(S,"query"),...w)},[f]),setInfiniteQueryData:R.useCallback((...x)=>{const[S,...w]=x;return f.setQueryData(K(S,"infinite"),...w)},[f]),getInfiniteQueryData:R.useCallback((...x)=>{const[S,...w]=x;return f.getQueryData(K(S,"infinite"),...w)},[f])}},g.children)};function s(){return Ze.useContext(n)}function u(g,m,P){var d;const{queryClient:f,ssrState:c}=s();return c&&c!=="mounted"&&((d=f.getQueryCache().find(K(g,m)))==null?void 0:d.state.status)==="error"?{retryOnMount:!1,...P}:P}function o(g,m){var N,A;const P=s();if(!P)throw new Error("Unable to retrieve application context. Did you forget to wrap your App inside `withTRPC` HoC?");const{abortOnUnmount:f,client:c,ssrState:d,queryClient:C,prefetchQuery:x}=P,S=C.getQueryDefaults(K(g,"query"));typeof window>"u"&&d==="prepass"&&((N=m==null?void 0:m.trpc)==null?void 0:N.ssr)!==!1&&((m==null?void 0:m.enabled)??(S==null?void 0:S.enabled))!==!1&&!C.getQueryCache().find(K(g,"query"))&&x(g,m);const w=u(g,"query",{...S,...m}),E=((A=m==null?void 0:m.trpc)==null?void 0:A.abortOnUnmount)??(e==null?void 0:e.abortOnUnmount)??f,T=Fm({...w,queryKey:K(g,"query"),queryFn:ae=>{const le={...w,trpc:{...w==null?void 0:w.trpc,...E?{signal:ae.signal}:{}}};return c.query(...mt(g,le))},context:r});return T.trpc=zl({path:g[0]}),T}function a(g,m){const{client:P}=s(),f=rl({context:r}),c=Array.isArray(g)?g[0]:g,d=f.getMutationDefaults([c.split(".")]),C=zm({...m,mutationKey:[c.split(".")],mutationFn:x=>P.mutation(...mt([c,x],m)),context:r,onSuccess(...x){return t({originalFn:()=>{var w,E;return((w=m==null?void 0:m.onSuccess)==null?void 0:w.call(m,...x))??((E=d==null?void 0:d.onSuccess)==null?void 0:E.call(d,...x))},queryClient:f,meta:(m==null?void 0:m.meta)??(d==null?void 0:d.meta)??{}})}});return C.trpc=zl({path:c}),C}/* istanbul ignore next -- @preserve */function h(g,m){const P=(m==null?void 0:m.enabled)??!0,f=Et(g),{client:c}=s(),d=R.useRef(m);d.current=m,R.useEffect(()=>{if(!P)return;const[C,x]=g;let S=!1;const w=c.subscription(C,x??void 0,{onStarted:()=>{var E,T;S||(T=(E=d.current).onStarted)==null||T.call(E)},onData:E=>{S||d.current.onData(E)},onError:E=>{var T,N;S||(N=(T=d.current).onError)==null||N.call(T,E)}});return()=>{S=!0,w.unsubscribe()}},[f,P])}function y(g,m){var A,ae;const[P,f]=g,{client:c,ssrState:d,prefetchInfiniteQuery:C,queryClient:x,abortOnUnmount:S}=s(),w=x.getQueryDefaults(K(g,"infinite"));typeof window>"u"&&d==="prepass"&&((A=m==null?void 0:m.trpc)==null?void 0:A.ssr)!==!1&&((m==null?void 0:m.enabled)??(w==null?void 0:w.enabled))!==!1&&!x.getQueryCache().find(K(g,"infinite"))&&C(g,{...w,...m});const E=u(g,"infinite",{...w,...m}),T=((ae=m==null?void 0:m.trpc)==null?void 0:ae.abortOnUnmount)??S,N=Um({...E,queryKey:K(g,"infinite"),queryFn:le=>{const Ve={...E,trpc:{...E==null?void 0:E.trpc,...T?{signal:le.signal}:{}}},L={...f??{},cursor:le.pageParam??(m==null?void 0:m.initialCursor)};return c.query(...mt([P,L],Ve))},context:r});return N.trpc=zl({path:P}),N}return{Provider:l,createClient:i,useContext:s,useUtils:s,useQuery:o,useQueries:(g,m)=>{var S;const{ssrState:P,queryClient:f,prefetchQuery:c,client:d}=s(),C=wy(d),x=g(C);if(typeof window>"u"&&P==="prepass")for(const w of x){const E=w;((S=E.trpc)==null?void 0:S.ssr)!==!1&&!f.getQueryCache().find(K(E.queryKey,"query"))&&c(E.queryKey,E)}return Dm({queries:x.map(w=>({...w,queryKey:K(w.queryKey,"query")})),context:m})},useMutation:a,useSubscription:h,useDehydratedState:(g,m)=>R.useMemo(()=>m&&g.runtime.transformer.deserialize(m),[m,g]),useInfiniteQuery:y}}function xy(e){return Sy(e)}function Cy(e){return qu(t=>t==="useContext"||t==="useUtils"?()=>{const n=e.useUtils();return R.useMemo(()=>gy(n),[n])}:e.hasOwnProperty(t)?e[t]:my(t,e))}function Ey(e){const t=xy(e);return Cy(t)}const rt=Ey(),ky=()=>typeof window<"u"?"":"http://localhost:4747",Py=rt.createClient({links:[ay({url:`${ky()}/api/trpc`})]}),Oy={},ca=e=>{let t;const n=new Set,r=(h,y)=>{const p=typeof h=="function"?h(t):h;if(!Object.is(p,t)){const v=t;t=y??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(g=>g(t,v))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>a,subscribe:h=>(n.add(h),()=>n.delete(h)),destroy:()=>{(Oy?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=t=e(r,i,o);return o},Ry=e=>e?ca(e):ca;var md={exports:{}},yd={};/**
49
49
  * @license React
50
50
  * use-sync-external-store-shim/with-selector.production.js
51
51
  *
@@ -53,19 +53,19 @@ Error generating stack: `+l.message+`
53
53
  *
54
54
  * This source code is licensed under the MIT license found in the
55
55
  * LICENSE file in the root directory of this source tree.
56
- */var ll=R,Ry=Wf;function Ny(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ty=typeof Object.is=="function"?Object.is:Ny,My=Ry.useSyncExternalStore,jy=ll.useRef,_y=ll.useEffect,Dy=ll.useMemo,Ly=ll.useDebugValue;md.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var l=jy(null);if(l.current===null){var s={hasValue:!1,value:null};l.current=s}else s=l.current;l=Dy(function(){function o(v){if(!a){if(a=!0,h=v,v=r(v),i!==void 0&&s.hasValue){var g=s.value;if(i(g,v))return m=g}return m=v}if(g=m,Ty(h,v))return g;var y=r(v);return i!==void 0&&i(g,y)?(h=v,g):(h=v,m=y)}var a=!1,h,m,p=n===void 0?null:n;return[function(){return o(t())},p===null?void 0:function(){return o(p())}]},[t,n,r,i]);var u=My(e,l[0],l[1]);return _y(function(){s.hasValue=!0,s.value=u},[u]),Ly(u),u};pd.exports=md;var Iy=pd.exports;const Fy=Ea(Iy),yd={},{useDebugValue:Qy}=Ze,{useSyncExternalStoreWithSelector:zy}=Fy;let fa=!1;const Uy=e=>e;function Ay(e,t=Uy,n){(yd?"production":void 0)!=="production"&&n&&!fa&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),fa=!0);const r=zy(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Qy(r),r}const da=e=>{(yd?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?Oy(e):e,n=(r,i)=>Ay(t,r,i);return Object.assign(n,t),n},vd=e=>e?da(e):da,tr=vd((e,t)=>({sessions:new Map,selectedId:null,setSession:n=>{e(r=>{const i=new Map(r.sessions);return i.set(n.id,n),{sessions:i}})},removeSession:n=>{e(r=>{const i=new Map(r.sessions);return i.delete(n),{sessions:i,selectedId:r.selectedId===n?null:r.selectedId}})},clearSessions:()=>{e({sessions:new Map,selectedId:null})},selectSession:n=>{e({selectedId:n})},handleWSEvent:n=>{const{setSession:r}=t();switch(n.type){case"request_update":r(n.session);break;case"intercept":{const i=t().sessions.get(n.requestId);i&&r({...i,state:"INTERCEPT"});break}case"request_complete":{const i=t().sessions.get(n.requestId);i&&r({...i,cached:n.cached});break}}},getSession:n=>t().sessions.get(n),getSortedSessions:()=>Array.from(t().sessions.values()).sort((r,i)=>new Date(i.timestamp).getTime()-new Date(r.timestamp).getTime()),getSelectedSession:()=>{const{selectedId:n,sessions:r}=t();return n?r.get(n):void 0}}));function gd({state:e,statusCode:t,cached:n}){const r=()=>{switch(e){case"LOOKUP":return{label:"LOOKUP",className:"bg-gray-500/10 text-gray-300 border border-gray-500/30"};case"CONNECT":return{label:"CONNECT",className:"bg-blue-500/10 text-blue-400 border border-blue-500/30"};case"STREAMING":return{label:"STREAM",className:"bg-cyan-500/10 text-cyan-400 border border-cyan-500/30"};case"INTERCEPT":return{label:"PAUSED",className:"bg-amber-500/10 text-amber-400 border border-amber-500/30 animate-pulse"};case"FLUSH":return{label:"FLUSH",className:"bg-green-500/10 text-green-400 border border-green-500/30"};case"INJECT":return{label:"MOCK",className:"bg-purple-500/10 text-purple-400 border border-purple-500/30"};case"REPLAY":return{label:"CACHE",className:"bg-teal-500/10 text-teal-400 border border-teal-500/30"};case"COMPLETE":return n?{label:"CACHED",className:"bg-teal-500/10 text-teal-400 border border-teal-500/30"}:t&&t>=400?{label:`${t}`,className:"bg-red-500/10 text-red-400 border border-red-500/30"}:{label:`${t||200}`,className:"bg-green-500/10 text-green-400 border border-green-500/30"};case"ERROR":return{label:"ERROR",className:"bg-red-500/10 text-red-400 border border-red-500/30"};default:return{label:e,className:"bg-gray-500/10 text-gray-300 border border-gray-500/30"}}},{label:i,className:l}=r();return P.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded text-xs font-bold ${l}`,children:i})}function qy({session:e,selected:t,onClick:n}){const r=new Date(e.timestamp).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),i=e.id.slice(0,8),l=()=>e.state==="INTERCEPT"?"border-l-amber-500":t?"border-l-blue-500":"border-l-transparent";return P.jsxs("div",{className:`
56
+ */var ll=R,Ny=Gf;function jy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ty=typeof Object.is=="function"?Object.is:jy,My=Ny.useSyncExternalStore,_y=ll.useRef,Iy=ll.useEffect,Ly=ll.useMemo,Dy=ll.useDebugValue;yd.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var l=_y(null);if(l.current===null){var s={hasValue:!1,value:null};l.current=s}else s=l.current;l=Ly(function(){function o(v){if(!a){if(a=!0,h=v,v=r(v),i!==void 0&&s.hasValue){var g=s.value;if(i(g,v))return y=g}return y=v}if(g=y,Ty(h,v))return g;var m=r(v);return i!==void 0&&i(g,m)?(h=v,g):(h=v,y=m)}var a=!1,h,y,p=n===void 0?null:n;return[function(){return o(t())},p===null?void 0:function(){return o(p())}]},[t,n,r,i]);var u=My(e,l[0],l[1]);return Iy(function(){s.hasValue=!0,s.value=u},[u]),Dy(u),u};md.exports=yd;var Fy=md.exports;const zy=ka(Fy),vd={},{useDebugValue:Qy}=Ze,{useSyncExternalStoreWithSelector:Uy}=zy;let fa=!1;const Ay=e=>e;function by(e,t=Ay,n){(vd?"production":void 0)!=="production"&&n&&!fa&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),fa=!0);const r=Uy(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Qy(r),r}const da=e=>{(vd?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?Ry(e):e,n=(r,i)=>by(t,r,i);return Object.assign(n,t),n},gd=e=>e?da(e):da,tr=gd((e,t)=>({sessions:new Map,selectedId:null,setSession:n=>{e(r=>{const i=new Map(r.sessions);return i.set(n.id,n),{sessions:i}})},removeSession:n=>{e(r=>{const i=new Map(r.sessions);return i.delete(n),{sessions:i,selectedId:r.selectedId===n?null:r.selectedId}})},clearSessions:()=>{e({sessions:new Map,selectedId:null})},selectSession:n=>{e({selectedId:n})},handleWSEvent:n=>{const{setSession:r}=t();switch(n.type){case"request_update":r(n.session);break;case"intercept":{const i=t().sessions.get(n.requestId);i&&r({...i,state:"INTERCEPT"});break}case"pre_intercept":{const i=t().sessions.get(n.requestId);i&&r({...i,state:"PRE_INTERCEPT",preInterceptInfo:{hasCachedResponse:n.hasCachedResponse,model:n.request.model}});break}case"request_complete":{const i=t().sessions.get(n.requestId);i&&r({...i,cached:n.cached});break}}},getSession:n=>t().sessions.get(n),getSortedSessions:()=>Array.from(t().sessions.values()).sort((r,i)=>new Date(i.timestamp).getTime()-new Date(r.timestamp).getTime()),getSelectedSession:()=>{const{selectedId:n,sessions:r}=t();return n?r.get(n):void 0}}));function wd({state:e,statusCode:t,cached:n}){const r=()=>{switch(e){case"LOOKUP":return{label:"LOOKUP",className:"bg-gray-500/10 text-gray-300 border border-gray-500/30"};case"CONNECT":return{label:"CONNECT",className:"bg-blue-500/10 text-blue-400 border border-blue-500/30"};case"STREAMING":return{label:"STREAM",className:"bg-cyan-500/10 text-cyan-400 border border-cyan-500/30"};case"PRE_INTERCEPT":return{label:"PENDING",className:"bg-orange-500/10 text-orange-400 border border-orange-500/30 animate-pulse"};case"INTERCEPT":return{label:"PAUSED",className:"bg-amber-500/10 text-amber-400 border border-amber-500/30 animate-pulse"};case"FLUSH":return{label:"FLUSH",className:"bg-green-500/10 text-green-400 border border-green-500/30"};case"INJECT":return{label:"MOCK",className:"bg-purple-500/10 text-purple-400 border border-purple-500/30"};case"REPLAY":return{label:"CACHE",className:"bg-teal-500/10 text-teal-400 border border-teal-500/30"};case"COMPLETE":return n?{label:"CACHED",className:"bg-teal-500/10 text-teal-400 border border-teal-500/30"}:t&&t>=400?{label:`${t}`,className:"bg-red-500/10 text-red-400 border border-red-500/30"}:{label:`${t||200}`,className:"bg-green-500/10 text-green-400 border border-green-500/30"};case"ERROR":return{label:"ERROR",className:"bg-red-500/10 text-red-400 border border-red-500/30"};default:return{label:e,className:"bg-gray-500/10 text-gray-300 border border-gray-500/30"}}},{label:i,className:l}=r();return k.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded text-xs font-bold ${l}`,children:i})}function qy({session:e,selected:t,onClick:n}){const r=new Date(e.timestamp).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),i=e.id.slice(0,8),l=()=>e.state==="PRE_INTERCEPT"?"border-l-orange-500":e.state==="INTERCEPT"?"border-l-amber-500":t?"border-l-blue-500":"border-l-transparent";return k.jsxs("div",{className:`
57
57
  p-3 border-b border-pp-light cursor-pointer transition-all border-l-2
58
58
  ${l()}
59
59
  ${t?"bg-pp-gray":"hover:bg-pp-gray/50"}
60
- `,onClick:n,children:[P.jsxs("div",{className:"flex items-center justify-between mb-1",children:[P.jsx("span",{className:"text-xs text-gray-500 font-mono",children:i}),P.jsx(gd,{state:e.state,statusCode:e.statusCode,cached:e.cached})]}),P.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[P.jsx("span",{className:"text-xs text-gray-400",children:r}),P.jsx("span",{className:"text-sm text-gray-200 truncate",children:e.model||"unknown"})]}),e.toolCalls.length>0&&P.jsx("div",{className:"flex flex-wrap gap-1 mt-1",children:e.toolCalls.map((s,u)=>P.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-purple-500/10 text-purple-400 rounded border border-purple-500/20",children:s.name},u))}),e.error&&P.jsx("div",{className:"text-xs text-red-400 mt-1 truncate",children:e.error})]})}function by(){const e=tr(r=>r.getSortedSessions()),t=tr(r=>r.selectedId),n=tr(r=>r.selectSession);return e.length===0?P.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-4 text-gray-500",children:[P.jsx("svg",{className:"w-12 h-12 mb-4 opacity-50",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:P.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})}),P.jsx("p",{className:"text-sm",children:"No requests yet"}),P.jsxs("p",{className:"text-xs mt-1",children:["Point your AI agent to"," ",P.jsxs("code",{className:"bg-pp-gray px-1 rounded",children:["localhost:",window.location.port||"4747","/v1"]})]})]}):P.jsx("div",{className:"overflow-y-auto h-full",children:e.map(r=>P.jsx(qy,{session:r,selected:r.id===t,onClick:()=>n(r.id)},r.id))})}const nr=vd(e=>({settings:{pause:"off"},connected:!1,setSettings:t=>{e({settings:t})},updateSettings:t=>{e(n=>({settings:{...n.settings,...t}}))},setConnected:t=>{e({connected:t})},setPauseMode:t=>{e(n=>({settings:{...n.settings,pause:t}}))}})),ha=[{value:"off",label:"Off",description:"No interception"},{value:"tool-calls",label:"Tools",description:"Pause on tool calls"},{value:"all",label:"All",description:"Pause all requests"}];function $y(){var l;const e=nr(s=>s.settings),t=nr(s=>s.setSettings),n=nr(s=>s.connected),r=Tn.updateSettings.useMutation({onSuccess:s=>{t(s.settings)}}),i=s=>{r.mutate({settings:{pause:s}})};return P.jsxs("div",{className:"p-3 border-b border-pp-light",children:[!n&&P.jsxs("div",{className:"flex items-center gap-2 mb-3 px-2 py-1.5 bg-red-500/10 border border-red-500/20 rounded",children:[P.jsx("span",{className:"w-2 h-2 rounded-full bg-red-500"}),P.jsx("span",{className:"text-xs text-red-400",children:"Disconnected"})]}),P.jsxs("div",{className:"mb-2",children:[P.jsx("div",{className:"text-sm font-medium text-gray-200",children:"Pause Mode"}),P.jsx("div",{className:"text-xs text-gray-500",children:(l=ha.find(s=>s.value===e.pause))==null?void 0:l.description})]}),P.jsx("div",{className:"flex rounded-lg bg-pp-gray p-1",children:ha.map(s=>P.jsx("button",{onClick:()=>i(s.value),className:`
60
+ `,onClick:n,children:[k.jsxs("div",{className:"flex items-center justify-between mb-1",children:[k.jsx("span",{className:"text-xs text-gray-500 font-mono",children:i}),k.jsx(wd,{state:e.state,statusCode:e.statusCode,cached:e.cached})]}),k.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[k.jsx("span",{className:"text-xs text-gray-400",children:r}),k.jsx("span",{className:"text-sm text-gray-200 truncate",children:e.model||"unknown"})]}),e.toolCalls.length>0&&k.jsx("div",{className:"flex flex-wrap gap-1 mt-1",children:e.toolCalls.map((s,u)=>k.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-purple-500/10 text-purple-400 rounded border border-purple-500/20",children:s.name},u))}),e.error&&k.jsx("div",{className:"text-xs text-red-400 mt-1 truncate",children:e.error})]})}function $y(){const e=tr(r=>r.getSortedSessions()),t=tr(r=>r.selectedId),n=tr(r=>r.selectSession);return e.length===0?k.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-4 text-gray-500",children:[k.jsx("svg",{className:"w-12 h-12 mb-4 opacity-50",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})}),k.jsx("p",{className:"text-sm",children:"No requests yet"}),k.jsxs("p",{className:"text-xs mt-1",children:["Point your AI agent to"," ",k.jsxs("code",{className:"bg-pp-gray px-1 rounded",children:["localhost:",window.location.port||"4747","/v1"]})]})]}):k.jsx("div",{className:"overflow-y-auto h-full",children:e.map(r=>k.jsx(qy,{session:r,selected:r.id===t,onClick:()=>n(r.id)},r.id))})}const nr=gd(e=>({settings:{pause:"off"},connected:!1,setSettings:t=>{e({settings:t})},updateSettings:t=>{e(n=>({settings:{...n.settings,...t}}))},setConnected:t=>{e({connected:t})},setPauseMode:t=>{e(n=>({settings:{...n.settings,pause:t}}))}})),ha=[{value:"off",label:"Off",description:"No interception"},{value:"tool-calls",label:"Tools",description:"Pause on tool calls"},{value:"all",label:"All",description:"Pause all requests"}];function Hy(){var l;const e=nr(s=>s.settings),t=nr(s=>s.setSettings),n=nr(s=>s.connected),r=rt.updateSettings.useMutation({onSuccess:s=>{t(s.settings)}}),i=s=>{r.mutate({settings:{pause:s}})};return k.jsxs("div",{className:"p-3 border-b border-pp-light",children:[!n&&k.jsxs("div",{className:"flex items-center gap-2 mb-3 px-2 py-1.5 bg-red-500/10 border border-red-500/20 rounded",children:[k.jsx("span",{className:"w-2 h-2 rounded-full bg-red-500"}),k.jsx("span",{className:"text-xs text-red-400",children:"Disconnected"})]}),k.jsxs("div",{className:"mb-2",children:[k.jsx("div",{className:"text-sm font-medium text-gray-200",children:"Pause Mode"}),k.jsx("div",{className:"text-xs text-gray-500",children:(l=ha.find(s=>s.value===e.pause))==null?void 0:l.description})]}),k.jsx("div",{className:"flex rounded-lg bg-pp-gray p-1",children:ha.map(s=>k.jsx("button",{onClick:()=>i(s.value),className:`
61
61
  flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors
62
62
  ${e.pause===s.value?"bg-blue-600 text-white":"text-gray-400 hover:text-gray-200"}
63
- `,children:s.label},s.value))})]})}function Hy({session:e}){const[t,n]=R.useState("request"),r=[{id:"request",label:"Request"},{id:"response",label:"Response"},{id:"tools",label:"Tools",count:e.toolCalls.length}];return P.jsxs("div",{className:"flex flex-col h-full",children:[P.jsxs("div",{className:"p-4 border-b border-pp-light",children:[P.jsxs("div",{className:"flex items-center justify-between mb-2",children:[P.jsxs("div",{className:"flex items-center gap-2",children:[P.jsx("span",{className:"font-mono text-sm text-gray-400",children:e.id.slice(0,8)}),P.jsx(gd,{state:e.state,statusCode:e.statusCode,cached:e.cached})]}),P.jsx("span",{className:"text-xs text-gray-500",children:new Date(e.timestamp).toLocaleString()})]}),P.jsxs("div",{className:"text-sm",children:[P.jsx("span",{className:"text-gray-500",children:e.method}),P.jsx("span",{className:"ml-2 text-gray-300",children:e.path}),e.model&&P.jsx("span",{className:"ml-2 px-2 py-0.5 bg-pp-gray rounded text-xs text-gray-400",children:e.model})]})]}),P.jsx("div",{className:"flex border-b border-pp-light bg-pp-darker",children:r.map(i=>P.jsxs("button",{onClick:()=>n(i.id),className:`
63
+ `,children:s.label},s.value))})]})}function By({session:e}){const[t,n]=R.useState("request"),r=[{id:"request",label:"Request"},{id:"response",label:"Response"},{id:"tools",label:"Tools",count:e.toolCalls.length}];return k.jsxs("div",{className:"flex flex-col h-full",children:[k.jsxs("div",{className:"p-4 border-b border-pp-light",children:[k.jsxs("div",{className:"flex items-center justify-between mb-2",children:[k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx("span",{className:"font-mono text-sm text-gray-400",children:e.id.slice(0,8)}),k.jsx(wd,{state:e.state,statusCode:e.statusCode,cached:e.cached})]}),k.jsx("span",{className:"text-xs text-gray-500",children:new Date(e.timestamp).toLocaleString()})]}),k.jsxs("div",{className:"text-sm",children:[k.jsx("span",{className:"text-gray-500",children:e.method}),k.jsx("span",{className:"ml-2 text-gray-300",children:e.path}),e.model&&k.jsx("span",{className:"ml-2 px-2 py-0.5 bg-pp-gray rounded text-xs text-gray-400",children:e.model})]})]}),k.jsx("div",{className:"flex border-b border-pp-light bg-pp-darker",children:r.map(i=>k.jsxs("button",{onClick:()=>n(i.id),className:`
64
64
  px-4 py-2 text-sm font-medium transition-colors
65
65
  ${t===i.id?"text-blue-400 border-b-2 border-blue-400":"text-gray-500 hover:text-gray-300"}
66
- `,children:[i.label,i.count!==void 0&&i.count>0&&P.jsx("span",{className:"ml-1.5 px-1.5 py-0.5 bg-purple-900/50 text-purple-300 rounded text-xs",children:i.count})]},i.id))}),P.jsxs("div",{className:"flex-1 overflow-auto p-4",children:[t==="request"&&P.jsx(pa,{data:e.body}),t==="response"&&P.jsx("div",{className:"space-y-4",children:e.responseContent?P.jsxs("div",{className:"bg-pp-gray rounded p-4",children:[P.jsx("div",{className:"text-xs text-gray-500 mb-2",children:"Content"}),P.jsx("pre",{className:"text-sm text-gray-200 whitespace-pre-wrap",children:e.responseContent})]}):P.jsx("div",{className:"text-gray-500 text-sm",children:"No response content yet"})}),t==="tools"&&P.jsx("div",{className:"space-y-4",children:e.toolCalls.length===0?P.jsx("div",{className:"text-gray-500 text-sm",children:"No tool calls detected"}):e.toolCalls.map((i,l)=>P.jsxs("div",{className:"bg-pp-gray rounded p-4",children:[P.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[P.jsx("span",{className:"text-purple-400 font-medium",children:i.name}),P.jsxs("span",{className:"text-xs text-gray-500",children:["id: ",i.id]})]}),P.jsx("div",{className:"text-xs text-gray-500 mb-1",children:"Arguments"}),P.jsx(pa,{data:Vy(i.arguments)})]},l))})]})]})}function pa({data:e}){const t=JSON.stringify(e,null,2);return P.jsx("pre",{className:"text-sm font-mono overflow-auto bg-pp-darker rounded p-4",children:P.jsx("code",{children:By(t)})})}function By(e){return e.split(`
67
- `).map((t,n)=>P.jsx("div",{children:t.replace(/"([^"]+)":/g,'<key>"$1"</key>:').replace(/: "([^"]*)"/g,': <string>"$1"</string>').replace(/: (\d+)/g,": <number>$1</number>").replace(/: (true|false)/g,": <boolean>$1</boolean>").replace(/: (null)/g,": <null>$1</null>").split(/(<[^>]+>[^<]*<\/[^>]+>)/).map((r,i)=>r.startsWith("<key>")?P.jsx("span",{className:"json-key",children:r.slice(5,-6)},i):r.startsWith("<string>")?P.jsx("span",{className:"json-string",children:r.slice(8,-9)},i):r.startsWith("<number>")?P.jsx("span",{className:"json-number",children:r.slice(8,-9)},i):r.startsWith("<boolean>")?P.jsx("span",{className:"json-boolean",children:r.slice(9,-10)},i):r.startsWith("<null>")?P.jsx("span",{className:"json-null",children:r.slice(6,-7)},i):r)},n))}function Vy(e){try{return JSON.parse(e)}catch{return e}}function ma(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ky(e){if(Array.isArray(e))return e}function Wy(e,t,n){return(t=tv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gy(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,u=[],o=!0,a=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(o=(r=l.call(n)).done)&&(u.push(r.value),u.length!==t);o=!0);}catch(h){a=!0,i=h}finally{try{if(!o&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(a)throw i}}return u}}function Yy(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
68
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ya(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function va(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ya(Object(n),!0).forEach(function(r){Wy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ya(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xy(e,t){if(e==null)return{};var n,r,i=Zy(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Zy(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Jy(e,t){return Ky(e)||Gy(e,t)||nv(e,t)||Yy()}function ev(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tv(e){var t=ev(e,"string");return typeof t=="symbol"?t:t+""}function nv(e,t){if(e){if(typeof e=="string")return ma(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ma(e,t):void 0}}function rv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ga(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ga(Object(n),!0).forEach(function(r){rv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ga(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return t.reduceRight(function(i,l){return l(i)},r)}}function Bn(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return i.length>=e.length?e.apply(this,i):function(){for(var s=arguments.length,u=new Array(s),o=0;o<s;o++)u[o]=arguments[o];return t.apply(n,[].concat(i,u))}}}function Ui(e){return{}.toString.call(e).includes("Object")}function lv(e){return!Object.keys(e).length}function Cr(e){return typeof e=="function"}function sv(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function uv(e,t){return Ui(t)||Mt("changeType"),Object.keys(t).some(function(n){return!sv(e,n)})&&Mt("changeField"),t}function ov(e){Cr(e)||Mt("selectorType")}function av(e){Cr(e)||Ui(e)||Mt("handlerType"),Ui(e)&&Object.values(e).some(function(t){return!Cr(t)})&&Mt("handlersType")}function cv(e){e||Mt("initialIsRequired"),Ui(e)||Mt("initialType"),lv(e)&&Mt("initialContent")}function fv(e,t){throw new Error(e[t]||e.default)}var dv={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Mt=Bn(fv)(dv),Wr={changes:uv,selector:ov,handler:av,initial:cv};function hv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Wr.initial(e),Wr.handler(t);var n={current:e},r=Bn(yv)(n,t),i=Bn(mv)(n),l=Bn(Wr.changes)(e),s=Bn(pv)(n);function u(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(h){return h};return Wr.selector(a),a(n.current)}function o(a){iv(r,i,l,s)(a)}return[u,o]}function pv(e,t){return Cr(t)?t(e.current):t}function mv(e,t){return e.current=wa(wa({},e.current),t),t}function yv(e,t,n){return Cr(t)?t(e.current):Object.keys(n).forEach(function(r){var i;return(i=t[r])===null||i===void 0?void 0:i.call(t,e.current[r])}),n}var vv={create:hv},gv={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function wv(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return i.length>=e.length?e.apply(this,i):function(){for(var s=arguments.length,u=new Array(s),o=0;o<s;o++)u[o]=arguments[o];return t.apply(n,[].concat(i,u))}}}function Sv(e){return{}.toString.call(e).includes("Object")}function xv(e){return e||Sa("configIsRequired"),Sv(e)||Sa("configType"),e.urls?(Cv(),{paths:{vs:e.urls.monacoBase}}):e}function Cv(){console.warn(wd.deprecation)}function Ev(e,t){throw new Error(e[t]||e.default)}var wd={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
66
+ `,children:[i.label,i.count!==void 0&&i.count>0&&k.jsx("span",{className:"ml-1.5 px-1.5 py-0.5 bg-purple-900/50 text-purple-300 rounded text-xs",children:i.count})]},i.id))}),k.jsxs("div",{className:"flex-1 overflow-auto p-4",children:[t==="request"&&k.jsx(pa,{data:e.body}),t==="response"&&k.jsx("div",{className:"space-y-4",children:e.responseContent?k.jsxs("div",{className:"bg-pp-gray rounded p-4",children:[k.jsx("div",{className:"text-xs text-gray-500 mb-2",children:"Content"}),k.jsx("pre",{className:"text-sm text-gray-200 whitespace-pre-wrap",children:e.responseContent})]}):k.jsx("div",{className:"text-gray-500 text-sm",children:"No response content yet"})}),t==="tools"&&k.jsx("div",{className:"space-y-4",children:e.toolCalls.length===0?k.jsx("div",{className:"text-gray-500 text-sm",children:"No tool calls detected"}):e.toolCalls.map((i,l)=>k.jsxs("div",{className:"bg-pp-gray rounded p-4",children:[k.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[k.jsx("span",{className:"text-purple-400 font-medium",children:i.name}),k.jsxs("span",{className:"text-xs text-gray-500",children:["id: ",i.id]})]}),k.jsx("div",{className:"text-xs text-gray-500 mb-1",children:"Arguments"}),k.jsx(pa,{data:Ky(i.arguments)})]},l))})]})]})}function pa({data:e}){const t=JSON.stringify(e,null,2);return k.jsx("pre",{className:"text-sm font-mono overflow-auto bg-pp-darker rounded p-4",children:k.jsx("code",{children:Vy(t)})})}function Vy(e){return e.split(`
67
+ `).map((t,n)=>k.jsx("div",{children:t.replace(/"([^"]+)":/g,'<key>"$1"</key>:').replace(/: "([^"]*)"/g,': <string>"$1"</string>').replace(/: (\d+)/g,": <number>$1</number>").replace(/: (true|false)/g,": <boolean>$1</boolean>").replace(/: (null)/g,": <null>$1</null>").split(/(<[^>]+>[^<]*<\/[^>]+>)/).map((r,i)=>r.startsWith("<key>")?k.jsx("span",{className:"json-key",children:r.slice(5,-6)},i):r.startsWith("<string>")?k.jsx("span",{className:"json-string",children:r.slice(8,-9)},i):r.startsWith("<number>")?k.jsx("span",{className:"json-number",children:r.slice(8,-9)},i):r.startsWith("<boolean>")?k.jsx("span",{className:"json-boolean",children:r.slice(9,-10)},i):r.startsWith("<null>")?k.jsx("span",{className:"json-null",children:r.slice(6,-7)},i):r)},n))}function Ky(e){try{return JSON.parse(e)}catch{return e}}function ma(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Wy(e){if(Array.isArray(e))return e}function Gy(e,t,n){return(t=nv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yy(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,u=[],o=!0,a=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(o=(r=l.call(n)).done)&&(u.push(r.value),u.length!==t);o=!0);}catch(h){a=!0,i=h}finally{try{if(!o&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(a)throw i}}return u}}function Xy(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
68
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ya(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function va(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ya(Object(n),!0).forEach(function(r){Gy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ya(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zy(e,t){if(e==null)return{};var n,r,i=Jy(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Jy(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ev(e,t){return Wy(e)||Yy(e,t)||rv(e,t)||Xy()}function tv(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nv(e){var t=tv(e,"string");return typeof t=="symbol"?t:t+""}function rv(e,t){if(e){if(typeof e=="string")return ma(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ma(e,t):void 0}}function iv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ga(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ga(Object(n),!0).forEach(function(r){iv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ga(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return t.reduceRight(function(i,l){return l(i)},r)}}function Bn(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return i.length>=e.length?e.apply(this,i):function(){for(var s=arguments.length,u=new Array(s),o=0;o<s;o++)u[o]=arguments[o];return t.apply(n,[].concat(i,u))}}}function Ui(e){return{}.toString.call(e).includes("Object")}function sv(e){return!Object.keys(e).length}function Cr(e){return typeof e=="function"}function uv(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ov(e,t){return Ui(t)||_t("changeType"),Object.keys(t).some(function(n){return!uv(e,n)})&&_t("changeField"),t}function av(e){Cr(e)||_t("selectorType")}function cv(e){Cr(e)||Ui(e)||_t("handlerType"),Ui(e)&&Object.values(e).some(function(t){return!Cr(t)})&&_t("handlersType")}function fv(e){e||_t("initialIsRequired"),Ui(e)||_t("initialType"),sv(e)&&_t("initialContent")}function dv(e,t){throw new Error(e[t]||e.default)}var hv={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},_t=Bn(dv)(hv),Wr={changes:ov,selector:av,handler:cv,initial:fv};function pv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Wr.initial(e),Wr.handler(t);var n={current:e},r=Bn(vv)(n,t),i=Bn(yv)(n),l=Bn(Wr.changes)(e),s=Bn(mv)(n);function u(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(h){return h};return Wr.selector(a),a(n.current)}function o(a){lv(r,i,l,s)(a)}return[u,o]}function mv(e,t){return Cr(t)?t(e.current):t}function yv(e,t){return e.current=wa(wa({},e.current),t),t}function vv(e,t,n){return Cr(t)?t(e.current):Object.keys(n).forEach(function(r){var i;return(i=t[r])===null||i===void 0?void 0:i.call(t,e.current[r])}),n}var gv={create:pv},wv={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function Sv(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return i.length>=e.length?e.apply(this,i):function(){for(var s=arguments.length,u=new Array(s),o=0;o<s;o++)u[o]=arguments[o];return t.apply(n,[].concat(i,u))}}}function xv(e){return{}.toString.call(e).includes("Object")}function Cv(e){return e||Sa("configIsRequired"),xv(e)||Sa("configType"),e.urls?(Ev(),{paths:{vs:e.urls.monacoBase}}):e}function Ev(){console.warn(Sd.deprecation)}function kv(e,t){throw new Error(e[t]||e.default)}var Sd={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
69
69
  You are using deprecated way of configuration.
70
70
 
71
71
  Instead of using
@@ -74,13 +74,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
74
74
  monaco.config({ paths: { vs: '...' } })
75
75
 
76
76
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
77
- `},Sa=wv(Ev)(wd),kv={config:xv},Pv=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(i){return n.reduceRight(function(l,s){return s(l)},i)}};function Sd(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],Sd(e[n],t[n]))}),va(va({},e),t)}var Ov={type:"cancelation",msg:"operation is manually canceled"};function zl(e){var t=!1,n=new Promise(function(r,i){e.then(function(l){return t?i(Ov):r(l)}),e.catch(i)});return n.cancel=function(){return t=!0},n}var Rv=["monaco"],Nv=vv.create({config:gv,isInitialized:!1,resolve:null,reject:null,monaco:null}),xd=Jy(Nv,2),Tr=xd[0],sl=xd[1];function Tv(e){var t=kv.config(e),n=t.monaco,r=Xy(t,Rv);sl(function(i){return{config:Sd(i.config,r),monaco:n}})}function Mv(){var e=Tr(function(t){var n=t.monaco,r=t.isInitialized,i=t.resolve;return{monaco:n,isInitialized:r,resolve:i}});if(!e.isInitialized){if(sl({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),zl(Ul);if(window.monaco&&window.monaco.editor)return Cd(window.monaco),e.resolve(window.monaco),zl(Ul);Pv(jv,Dv)(Lv)}return zl(Ul)}function jv(e){return document.body.appendChild(e)}function _v(e){var t=document.createElement("script");return e&&(t.src=e),t}function Dv(e){var t=Tr(function(r){var i=r.config,l=r.reject;return{config:i,reject:l}}),n=_v("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function Lv(){var e=Tr(function(n){var r=n.config,i=n.resolve,l=n.reject;return{config:r,resolve:i,reject:l}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var r=n.m||n;Cd(r),e.resolve(r)},function(n){e.reject(n)})}function Cd(e){Tr().monaco||sl({monaco:e})}function Iv(){return Tr(function(e){var t=e.monaco;return t})}var Ul=new Promise(function(e,t){return sl({resolve:e,reject:t})}),Ed={config:Tv,init:Mv,__getMonacoInstance:Iv},Fv={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Al=Fv,Qv={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},zv=Qv;function Uv({children:e}){return Ze.createElement("div",{style:zv.container},e)}var Av=Uv,qv=Av;function bv({width:e,height:t,isEditorReady:n,loading:r,_ref:i,className:l,wrapperProps:s}){return Ze.createElement("section",{style:{...Al.wrapper,width:e,height:t},...s},!n&&Ze.createElement(qv,null,r),Ze.createElement("div",{ref:i,style:{...Al.fullWidth,...!n&&Al.hide},className:l}))}var $v=bv,kd=R.memo($v);function Hv(e){R.useEffect(e,[])}var Pd=Hv;function Bv(e,t,n=!0){let r=R.useRef(!0);R.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var Pe=Bv;function rr(){}function hn(e,t,n,r){return Vv(e,r)||Kv(e,t,n,r)}function Vv(e,t){return e.editor.getModel(Od(e,t))}function Kv(e,t,n,r){return e.editor.createModel(t,n,r?Od(e,r):void 0)}function Od(e,t){return e.Uri.parse(t)}function Wv({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:i,originalModelPath:l,modifiedModelPath:s,keepCurrentOriginalModel:u=!1,keepCurrentModifiedModel:o=!1,theme:a="light",loading:h="Loading...",options:m={},height:p="100%",width:v="100%",className:g,wrapperProps:y={},beforeMount:k=rr,onMount:f=rr}){let[c,d]=R.useState(!1),[C,x]=R.useState(!0),S=R.useRef(null),w=R.useRef(null),E=R.useRef(null),M=R.useRef(f),N=R.useRef(k),A=R.useRef(!1);Pd(()=>{let L=Ed.init();return L.then(q=>(w.current=q)&&x(!1)).catch(q=>(q==null?void 0:q.type)!=="cancelation"&&console.error("Monaco initialization: error:",q)),()=>S.current?Ve():L.cancel()}),Pe(()=>{if(S.current&&w.current){let L=S.current.getOriginalEditor(),q=hn(w.current,e||"",r||n||"text",l||"");q!==L.getModel()&&L.setModel(q)}},[l],c),Pe(()=>{if(S.current&&w.current){let L=S.current.getModifiedEditor(),q=hn(w.current,t||"",i||n||"text",s||"");q!==L.getModel()&&L.setModel(q)}},[s],c),Pe(()=>{let L=S.current.getModifiedEditor();L.getOption(w.current.editor.EditorOption.readOnly)?L.setValue(t||""):t!==L.getValue()&&(L.executeEdits("",[{range:L.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),L.pushUndoStop())},[t],c),Pe(()=>{var L,q;(q=(L=S.current)==null?void 0:L.getModel())==null||q.original.setValue(e||"")},[e],c),Pe(()=>{let{original:L,modified:q}=S.current.getModel();w.current.editor.setModelLanguage(L,r||n||"text"),w.current.editor.setModelLanguage(q,i||n||"text")},[n,r,i],c),Pe(()=>{var L;(L=w.current)==null||L.editor.setTheme(a)},[a],c),Pe(()=>{var L;(L=S.current)==null||L.updateOptions(m)},[m],c);let ae=R.useCallback(()=>{var je;if(!w.current)return;N.current(w.current);let L=hn(w.current,e||"",r||n||"text",l||""),q=hn(w.current,t||"",i||n||"text",s||"");(je=S.current)==null||je.setModel({original:L,modified:q})},[n,t,i,e,r,l,s]),le=R.useCallback(()=>{var L;!A.current&&E.current&&(S.current=w.current.editor.createDiffEditor(E.current,{automaticLayout:!0,...m}),ae(),(L=w.current)==null||L.editor.setTheme(a),d(!0),A.current=!0)},[m,a,ae]);R.useEffect(()=>{c&&M.current(S.current,w.current)},[c]),R.useEffect(()=>{!C&&!c&&le()},[C,c,le]);function Ve(){var q,je,T,D;let L=(q=S.current)==null?void 0:q.getModel();u||((je=L==null?void 0:L.original)==null||je.dispose()),o||((T=L==null?void 0:L.modified)==null||T.dispose()),(D=S.current)==null||D.dispose()}return Ze.createElement(kd,{width:v,height:p,isEditorReady:c,loading:h,_ref:E,className:g,wrapperProps:y})}var Gv=Wv;R.memo(Gv);function Yv(e){let t=R.useRef();return R.useEffect(()=>{t.current=e},[e]),t.current}var Xv=Yv,Gr=new Map;function Zv({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:i,path:l,theme:s="light",line:u,loading:o="Loading...",options:a={},overrideServices:h={},saveViewState:m=!0,keepCurrentModel:p=!1,width:v="100%",height:g="100%",className:y,wrapperProps:k={},beforeMount:f=rr,onMount:c=rr,onChange:d,onValidate:C=rr}){let[x,S]=R.useState(!1),[w,E]=R.useState(!0),M=R.useRef(null),N=R.useRef(null),A=R.useRef(null),ae=R.useRef(c),le=R.useRef(f),Ve=R.useRef(),L=R.useRef(r),q=Xv(l),je=R.useRef(!1),T=R.useRef(!1);Pd(()=>{let _=Ed.init();return _.then(I=>(M.current=I)&&E(!1)).catch(I=>(I==null?void 0:I.type)!=="cancelation"&&console.error("Monaco initialization: error:",I)),()=>N.current?F():_.cancel()}),Pe(()=>{var I,ne,Ee,Ke;let _=hn(M.current,e||r||"",t||i||"",l||n||"");_!==((I=N.current)==null?void 0:I.getModel())&&(m&&Gr.set(q,(ne=N.current)==null?void 0:ne.saveViewState()),(Ee=N.current)==null||Ee.setModel(_),m&&((Ke=N.current)==null||Ke.restoreViewState(Gr.get(l))))},[l],x),Pe(()=>{var _;(_=N.current)==null||_.updateOptions(a)},[a],x),Pe(()=>{!N.current||r===void 0||(N.current.getOption(M.current.editor.EditorOption.readOnly)?N.current.setValue(r):r!==N.current.getValue()&&(T.current=!0,N.current.executeEdits("",[{range:N.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),N.current.pushUndoStop(),T.current=!1))},[r],x),Pe(()=>{var I,ne;let _=(I=N.current)==null?void 0:I.getModel();_&&i&&((ne=M.current)==null||ne.editor.setModelLanguage(_,i))},[i],x),Pe(()=>{var _;u!==void 0&&((_=N.current)==null||_.revealLine(u))},[u],x),Pe(()=>{var _;(_=M.current)==null||_.editor.setTheme(s)},[s],x);let D=R.useCallback(()=>{var _;if(!(!A.current||!M.current)&&!je.current){le.current(M.current);let I=l||n,ne=hn(M.current,r||e||"",t||i||"",I||"");N.current=(_=M.current)==null?void 0:_.editor.create(A.current,{model:ne,automaticLayout:!0,...a},h),m&&N.current.restoreViewState(Gr.get(I)),M.current.editor.setTheme(s),u!==void 0&&N.current.revealLine(u),S(!0),je.current=!0}},[e,t,n,r,i,l,a,h,m,s,u]);R.useEffect(()=>{x&&ae.current(N.current,M.current)},[x]),R.useEffect(()=>{!w&&!x&&D()},[w,x,D]),L.current=r,R.useEffect(()=>{var _,I;x&&d&&((_=Ve.current)==null||_.dispose(),Ve.current=(I=N.current)==null?void 0:I.onDidChangeModelContent(ne=>{T.current||d(N.current.getValue(),ne)}))},[x,d]),R.useEffect(()=>{if(x){let _=M.current.editor.onDidChangeMarkers(I=>{var Ee;let ne=(Ee=N.current.getModel())==null?void 0:Ee.uri;if(ne&&I.find(Ke=>Ke.path===ne.path)){let Ke=M.current.editor.getModelMarkers({resource:ne});C==null||C(Ke)}});return()=>{_==null||_.dispose()}}return()=>{}},[x,C]);function F(){var _,I;(_=Ve.current)==null||_.dispose(),p?m&&Gr.set(l,N.current.saveViewState()):(I=N.current.getModel())==null||I.dispose(),N.current.dispose()}return Ze.createElement(kd,{width:v,height:g,isEditorReady:x,loading:o,_ref:A,className:y,wrapperProps:k})}var Jv=Zv,eg=R.memo(Jv),tg=eg;class ng{constructor(){ft(this,"ws",null);ft(this,"url");ft(this,"listeners",new Set);ft(this,"reconnectAttempts",0);ft(this,"maxReconnectAttempts",10);ft(this,"reconnectDelay",1e3);ft(this,"reconnectTimer",null);const t=window.location.protocol==="https:"?"wss:":"ws:";this.url=`${t}//${window.location.host}/ws`}connect(){var t;if(((t=this.ws)==null?void 0:t.readyState)!==WebSocket.OPEN)try{this.ws=new WebSocket(this.url),this.ws.onopen=()=>{console.log("[WS] Connected"),this.reconnectAttempts=0},this.ws.onmessage=n=>{try{const r=JSON.parse(n.data);this.notifyListeners(r)}catch(r){console.error("[WS] Failed to parse message:",r)}},this.ws.onclose=()=>{console.log("[WS] Disconnected"),this.scheduleReconnect()},this.ws.onerror=n=>{console.error("[WS] Error:",n)}}catch(n){console.error("[WS] Failed to connect:",n),this.scheduleReconnect()}}disconnect(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.ws&&(this.ws.close(),this.ws=null)}send(t){var n;((n=this.ws)==null?void 0:n.readyState)===WebSocket.OPEN&&this.ws.send(JSON.stringify(t))}allowRequest(t){this.send({type:"allow",requestId:t})}mockRequest(t,n){this.send({type:"mock",requestId:t,content:n})}subscribe(t){return this.listeners.add(t),()=>this.listeners.delete(t)}isConnected(){var t;return((t=this.ws)==null?void 0:t.readyState)===WebSocket.OPEN}notifyListeners(t){for(const n of this.listeners)try{n(t)}catch(r){console.error("[WS] Listener error:",r)}}scheduleReconnect(){if(this.reconnectAttempts>=this.maxReconnectAttempts){console.log("[WS] Max reconnect attempts reached");return}const t=this.reconnectDelay*Math.pow(2,this.reconnectAttempts);this.reconnectAttempts++,console.log(`[WS] Reconnecting in ${t}ms (attempt ${this.reconnectAttempts})`),this.reconnectTimer=window.setTimeout(()=>{this.connect()},t)}}const pn=new ng,xa={text:"Hello! This is a mocked response from PlayingPack.",error:"ERROR: Service temporarily unavailable",toolCall:`{
77
+ `},Sa=Sv(kv)(Sd),Pv={config:Cv},Ov=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(i){return n.reduceRight(function(l,s){return s(l)},i)}};function xd(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],xd(e[n],t[n]))}),va(va({},e),t)}var Rv={type:"cancelation",msg:"operation is manually canceled"};function Ql(e){var t=!1,n=new Promise(function(r,i){e.then(function(l){return t?i(Rv):r(l)}),e.catch(i)});return n.cancel=function(){return t=!0},n}var Nv=["monaco"],jv=gv.create({config:wv,isInitialized:!1,resolve:null,reject:null,monaco:null}),Cd=ev(jv,2),jr=Cd[0],sl=Cd[1];function Tv(e){var t=Pv.config(e),n=t.monaco,r=Zy(t,Nv);sl(function(i){return{config:xd(i.config,r),monaco:n}})}function Mv(){var e=jr(function(t){var n=t.monaco,r=t.isInitialized,i=t.resolve;return{monaco:n,isInitialized:r,resolve:i}});if(!e.isInitialized){if(sl({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Ql(Ul);if(window.monaco&&window.monaco.editor)return Ed(window.monaco),e.resolve(window.monaco),Ql(Ul);Ov(_v,Lv)(Dv)}return Ql(Ul)}function _v(e){return document.body.appendChild(e)}function Iv(e){var t=document.createElement("script");return e&&(t.src=e),t}function Lv(e){var t=jr(function(r){var i=r.config,l=r.reject;return{config:i,reject:l}}),n=Iv("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function Dv(){var e=jr(function(n){var r=n.config,i=n.resolve,l=n.reject;return{config:r,resolve:i,reject:l}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var r=n.m||n;Ed(r),e.resolve(r)},function(n){e.reject(n)})}function Ed(e){jr().monaco||sl({monaco:e})}function Fv(){return jr(function(e){var t=e.monaco;return t})}var Ul=new Promise(function(e,t){return sl({resolve:e,reject:t})}),kd={config:Tv,init:Mv,__getMonacoInstance:Fv},zv={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Al=zv,Qv={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Uv=Qv;function Av({children:e}){return Ze.createElement("div",{style:Uv.container},e)}var bv=Av,qv=bv;function $v({width:e,height:t,isEditorReady:n,loading:r,_ref:i,className:l,wrapperProps:s}){return Ze.createElement("section",{style:{...Al.wrapper,width:e,height:t},...s},!n&&Ze.createElement(qv,null,r),Ze.createElement("div",{ref:i,style:{...Al.fullWidth,...!n&&Al.hide},className:l}))}var Hv=$v,Pd=R.memo(Hv);function Bv(e){R.useEffect(e,[])}var Od=Bv;function Vv(e,t,n=!0){let r=R.useRef(!0);R.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var Pe=Vv;function rr(){}function mn(e,t,n,r){return Kv(e,r)||Wv(e,t,n,r)}function Kv(e,t){return e.editor.getModel(Rd(e,t))}function Wv(e,t,n,r){return e.editor.createModel(t,n,r?Rd(e,r):void 0)}function Rd(e,t){return e.Uri.parse(t)}function Gv({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:i,originalModelPath:l,modifiedModelPath:s,keepCurrentOriginalModel:u=!1,keepCurrentModifiedModel:o=!1,theme:a="light",loading:h="Loading...",options:y={},height:p="100%",width:v="100%",className:g,wrapperProps:m={},beforeMount:P=rr,onMount:f=rr}){let[c,d]=R.useState(!1),[C,x]=R.useState(!0),S=R.useRef(null),w=R.useRef(null),E=R.useRef(null),T=R.useRef(f),N=R.useRef(P),A=R.useRef(!1);Od(()=>{let L=kd.init();return L.then(b=>(w.current=b)&&x(!1)).catch(b=>(b==null?void 0:b.type)!=="cancelation"&&console.error("Monaco initialization: error:",b)),()=>S.current?Ve():L.cancel()}),Pe(()=>{if(S.current&&w.current){let L=S.current.getOriginalEditor(),b=mn(w.current,e||"",r||n||"text",l||"");b!==L.getModel()&&L.setModel(b)}},[l],c),Pe(()=>{if(S.current&&w.current){let L=S.current.getModifiedEditor(),b=mn(w.current,t||"",i||n||"text",s||"");b!==L.getModel()&&L.setModel(b)}},[s],c),Pe(()=>{let L=S.current.getModifiedEditor();L.getOption(w.current.editor.EditorOption.readOnly)?L.setValue(t||""):t!==L.getValue()&&(L.executeEdits("",[{range:L.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),L.pushUndoStop())},[t],c),Pe(()=>{var L,b;(b=(L=S.current)==null?void 0:L.getModel())==null||b.original.setValue(e||"")},[e],c),Pe(()=>{let{original:L,modified:b}=S.current.getModel();w.current.editor.setModelLanguage(L,r||n||"text"),w.current.editor.setModelLanguage(b,i||n||"text")},[n,r,i],c),Pe(()=>{var L;(L=w.current)==null||L.editor.setTheme(a)},[a],c),Pe(()=>{var L;(L=S.current)==null||L.updateOptions(y)},[y],c);let ae=R.useCallback(()=>{var Me;if(!w.current)return;N.current(w.current);let L=mn(w.current,e||"",r||n||"text",l||""),b=mn(w.current,t||"",i||n||"text",s||"");(Me=S.current)==null||Me.setModel({original:L,modified:b})},[n,t,i,e,r,l,s]),le=R.useCallback(()=>{var L;!A.current&&E.current&&(S.current=w.current.editor.createDiffEditor(E.current,{automaticLayout:!0,...y}),ae(),(L=w.current)==null||L.editor.setTheme(a),d(!0),A.current=!0)},[y,a,ae]);R.useEffect(()=>{c&&T.current(S.current,w.current)},[c]),R.useEffect(()=>{!C&&!c&&le()},[C,c,le]);function Ve(){var b,Me,j,I;let L=(b=S.current)==null?void 0:b.getModel();u||((Me=L==null?void 0:L.original)==null||Me.dispose()),o||((j=L==null?void 0:L.modified)==null||j.dispose()),(I=S.current)==null||I.dispose()}return Ze.createElement(Pd,{width:v,height:p,isEditorReady:c,loading:h,_ref:E,className:g,wrapperProps:m})}var Yv=Gv;R.memo(Yv);function Xv(e){let t=R.useRef();return R.useEffect(()=>{t.current=e},[e]),t.current}var Zv=Xv,Gr=new Map;function Jv({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:i,path:l,theme:s="light",line:u,loading:o="Loading...",options:a={},overrideServices:h={},saveViewState:y=!0,keepCurrentModel:p=!1,width:v="100%",height:g="100%",className:m,wrapperProps:P={},beforeMount:f=rr,onMount:c=rr,onChange:d,onValidate:C=rr}){let[x,S]=R.useState(!1),[w,E]=R.useState(!0),T=R.useRef(null),N=R.useRef(null),A=R.useRef(null),ae=R.useRef(c),le=R.useRef(f),Ve=R.useRef(),L=R.useRef(r),b=Zv(l),Me=R.useRef(!1),j=R.useRef(!1);Od(()=>{let _=kd.init();return _.then(D=>(T.current=D)&&E(!1)).catch(D=>(D==null?void 0:D.type)!=="cancelation"&&console.error("Monaco initialization: error:",D)),()=>N.current?F():_.cancel()}),Pe(()=>{var D,ne,Ee,Ke;let _=mn(T.current,e||r||"",t||i||"",l||n||"");_!==((D=N.current)==null?void 0:D.getModel())&&(y&&Gr.set(b,(ne=N.current)==null?void 0:ne.saveViewState()),(Ee=N.current)==null||Ee.setModel(_),y&&((Ke=N.current)==null||Ke.restoreViewState(Gr.get(l))))},[l],x),Pe(()=>{var _;(_=N.current)==null||_.updateOptions(a)},[a],x),Pe(()=>{!N.current||r===void 0||(N.current.getOption(T.current.editor.EditorOption.readOnly)?N.current.setValue(r):r!==N.current.getValue()&&(j.current=!0,N.current.executeEdits("",[{range:N.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),N.current.pushUndoStop(),j.current=!1))},[r],x),Pe(()=>{var D,ne;let _=(D=N.current)==null?void 0:D.getModel();_&&i&&((ne=T.current)==null||ne.editor.setModelLanguage(_,i))},[i],x),Pe(()=>{var _;u!==void 0&&((_=N.current)==null||_.revealLine(u))},[u],x),Pe(()=>{var _;(_=T.current)==null||_.editor.setTheme(s)},[s],x);let I=R.useCallback(()=>{var _;if(!(!A.current||!T.current)&&!Me.current){le.current(T.current);let D=l||n,ne=mn(T.current,r||e||"",t||i||"",D||"");N.current=(_=T.current)==null?void 0:_.editor.create(A.current,{model:ne,automaticLayout:!0,...a},h),y&&N.current.restoreViewState(Gr.get(D)),T.current.editor.setTheme(s),u!==void 0&&N.current.revealLine(u),S(!0),Me.current=!0}},[e,t,n,r,i,l,a,h,y,s,u]);R.useEffect(()=>{x&&ae.current(N.current,T.current)},[x]),R.useEffect(()=>{!w&&!x&&I()},[w,x,I]),L.current=r,R.useEffect(()=>{var _,D;x&&d&&((_=Ve.current)==null||_.dispose(),Ve.current=(D=N.current)==null?void 0:D.onDidChangeModelContent(ne=>{j.current||d(N.current.getValue(),ne)}))},[x,d]),R.useEffect(()=>{if(x){let _=T.current.editor.onDidChangeMarkers(D=>{var Ee;let ne=(Ee=N.current.getModel())==null?void 0:Ee.uri;if(ne&&D.find(Ke=>Ke.path===ne.path)){let Ke=T.current.editor.getModelMarkers({resource:ne});C==null||C(Ke)}});return()=>{_==null||_.dispose()}}return()=>{}},[x,C]);function F(){var _,D;(_=Ve.current)==null||_.dispose(),p?y&&Gr.set(l,N.current.saveViewState()):(D=N.current.getModel())==null||D.dispose(),N.current.dispose()}return Ze.createElement(Pd,{width:v,height:g,isEditorReady:x,loading:o,_ref:A,className:m,wrapperProps:P})}var eg=Jv,tg=R.memo(eg),xa=tg;class ng{constructor(){ht(this,"ws",null);ht(this,"url");ht(this,"listeners",new Set);ht(this,"reconnectAttempts",0);ht(this,"maxReconnectAttempts",10);ht(this,"reconnectDelay",1e3);ht(this,"reconnectTimer",null);const t=window.location.protocol==="https:"?"wss:":"ws:";this.url=`${t}//${window.location.host}/ws`}connect(){var t;if(((t=this.ws)==null?void 0:t.readyState)!==WebSocket.OPEN)try{this.ws=new WebSocket(this.url),this.ws.onopen=()=>{console.log("[WS] Connected"),this.reconnectAttempts=0},this.ws.onmessage=n=>{try{const r=JSON.parse(n.data);this.notifyListeners(r)}catch(r){console.error("[WS] Failed to parse message:",r)}},this.ws.onclose=()=>{console.log("[WS] Disconnected"),this.scheduleReconnect()},this.ws.onerror=n=>{console.error("[WS] Error:",n)}}catch(n){console.error("[WS] Failed to connect:",n),this.scheduleReconnect()}}disconnect(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.ws&&(this.ws.close(),this.ws=null)}send(t){var n;((n=this.ws)==null?void 0:n.readyState)===WebSocket.OPEN&&this.ws.send(JSON.stringify(t))}allowRequest(t){this.send({type:"allow",requestId:t})}mockRequest(t,n){this.send({type:"mock",requestId:t,content:n})}preInterceptAllow(t){this.send({type:"pre_allow",requestId:t})}preInterceptEdit(t,n){this.send({type:"pre_edit",requestId:t,editedBody:n})}preInterceptUseCache(t){this.send({type:"pre_use_cache",requestId:t})}preInterceptMock(t,n){this.send({type:"pre_mock",requestId:t,mockContent:n})}subscribe(t){return this.listeners.add(t),()=>this.listeners.delete(t)}isConnected(){var t;return((t=this.ws)==null?void 0:t.readyState)===WebSocket.OPEN}notifyListeners(t){for(const n of this.listeners)try{n(t)}catch(r){console.error("[WS] Listener error:",r)}}scheduleReconnect(){if(this.reconnectAttempts>=this.maxReconnectAttempts){console.log("[WS] Max reconnect attempts reached");return}const t=this.reconnectDelay*Math.pow(2,this.reconnectAttempts);this.reconnectAttempts++,console.log(`[WS] Reconnecting in ${t}ms (attempt ${this.reconnectAttempts})`),this.reconnectTimer=window.setTimeout(()=>{this.connect()},t)}}const it=new ng,Ca={text:"Hello! This is a mocked response from PlayingPack.",error:"ERROR: Service temporarily unavailable",toolCall:`{
78
78
  "function": "get_weather",
79
79
  "arguments": {
80
80
  "location": "San Francisco",
81
81
  "unit": "celsius"
82
82
  }
83
- }`};function rg({session:e}){var h;const[t,n]=R.useState(xa.text),[r,i]=R.useState("text"),l=Tn.allowRequest.useMutation(),s=Tn.mockRequest.useMutation(),u=()=>{l.mutate({requestId:e.id}),pn.allowRequest(e.id)},o=()=>{s.mutate({requestId:e.id,type:r==="error"?"error":"text",content:t}),pn.mockRequest(e.id,t)},a=m=>{i(m),n(xa[m])};return e.state!=="INTERCEPT"?null:P.jsxs("div",{className:"border-t border-pp-light bg-pp-darker",children:[P.jsxs("div",{className:"p-4 border-b border-pp-light",children:[P.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[P.jsxs("div",{className:"flex items-center gap-2",children:[P.jsx("span",{className:"w-3 h-3 bg-amber-500 rounded-full animate-pulse"}),P.jsx("span",{className:"text-sm font-medium text-amber-400",children:"Request Paused"})]}),e.toolCalls.length>0&&P.jsxs("div",{className:"text-sm text-gray-400",children:["Tool call: ",P.jsx("span",{className:"text-purple-400",children:(h=e.toolCalls[0])==null?void 0:h.name})]})]}),P.jsxs("div",{className:"flex gap-2 mb-4",children:[P.jsx("button",{onClick:u,className:"px-4 py-2 bg-green-600 hover:bg-green-700 text-white rounded font-medium transition-colors",children:"Allow & Continue"}),P.jsx("button",{onClick:o,className:"px-4 py-2 bg-purple-600 hover:bg-purple-700 text-white rounded font-medium transition-colors",children:"Send Mock Response"})]}),P.jsxs("div",{className:"flex gap-2 mb-3",children:[P.jsx("span",{className:"text-xs text-gray-500",children:"Templates:"}),["text","error","toolCall"].map(m=>P.jsx("button",{onClick:()=>a(m),className:`
84
- px-2 py-1 text-xs rounded transition-colors
85
- ${r===m?"bg-blue-600 text-white":"bg-pp-gray text-gray-400 hover:bg-pp-light"}
86
- `,children:m==="toolCall"?"Tool Call":m.charAt(0).toUpperCase()+m.slice(1)},m))]})]}),P.jsx("div",{className:"h-64",children:P.jsx(tg,{height:"100%",defaultLanguage:r==="toolCall"?"json":"plaintext",value:t,onChange:m=>n(m||""),theme:"vs-dark",options:{minimap:{enabled:!1},fontSize:13,lineNumbers:"off",scrollBeyondLastLine:!1,wordWrap:"on",padding:{top:12,bottom:12},renderLineHighlight:"none",overviewRulerLanes:0,hideCursorInOverviewRuler:!0,overviewRulerBorder:!1,scrollbar:{vertical:"auto",horizontal:"hidden"}}})})]})}function ig(){const e=tr(l=>l.getSelectedSession()),t=tr(l=>l.handleWSEvent),n=nr(l=>l.setConnected),r=nr(l=>l.setSettings),i=Tn.getSettings.useQuery();return R.useEffect(()=>{i.data&&r(i.data.settings)},[i.data,r]),R.useEffect(()=>{pn.connect();const l=pn.subscribe(u=>{t(u)}),s=setInterval(()=>{n(pn.isConnected())},1e3);return()=>{l(),clearInterval(s),pn.disconnect()}},[t,n]),P.jsxs("div",{className:"flex h-screen bg-pp-dark",children:[P.jsxs("div",{className:"w-80 flex-shrink-0 border-r border-pp-light flex flex-col bg-pp-darker",children:[P.jsxs("div",{className:"h-14 border-b border-pp-light flex items-center justify-between px-4",children:[P.jsxs("h1",{className:"text-lg font-bold tracking-tight text-white",children:["Playing",P.jsx("span",{className:"text-pp-accent",children:"Pack"})]}),P.jsxs("div",{className:"flex items-center gap-2",children:[P.jsx("span",{className:"w-2 h-2 rounded-full bg-pp-accent animate-pulse"}),P.jsxs("span",{className:"text-xs font-mono text-gray-500",children:[":",window.location.port||"4747"]})]})]}),P.jsx($y,{}),P.jsx("div",{className:"flex-1 overflow-hidden",children:P.jsx(by,{})})]}),P.jsx("div",{className:"flex-1 flex flex-col overflow-hidden bg-pp-dark",children:e?P.jsxs(P.Fragment,{children:[P.jsx(Hy,{session:e}),P.jsx(rg,{session:e})]}):P.jsx("div",{className:"flex-1 flex items-center justify-center",children:P.jsxs("div",{className:"text-center",children:[P.jsx("svg",{className:"w-16 h-16 mx-auto mb-4 text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:P.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),P.jsx("h2",{className:"text-xl font-medium text-gray-400 mb-2",children:"Select a request"}),P.jsx("p",{className:"text-sm text-gray-600 max-w-md",children:"Click on a request in the sidebar to inspect its details, or wait for new requests to come in."})]})})})]})}function lg(){return P.jsx(ig,{})}const Ca=new ym({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1}}});ql.createRoot(document.getElementById("root")).render(P.jsx(Ze.StrictMode,{children:P.jsx(Tn.Provider,{client:ky,queryClient:Ca,children:P.jsx(jm,{client:Ca,children:P.jsx(lg,{})})})}));
83
+ }`};function rg({session:e}){var P,f;const[t,n]=R.useState(Ca.text),[r,i]=R.useState("text"),l=rt.allowRequest.useMutation(),s=rt.mockRequest.useMutation(),u=rt.preInterceptAllow.useMutation(),o=rt.preInterceptUseCache.useMutation(),a=rt.preInterceptMock.useMutation(),h=()=>{l.mutate({requestId:e.id}),it.allowRequest(e.id)},y=()=>{s.mutate({requestId:e.id,type:r==="error"?"error":"text",content:t}),it.mockRequest(e.id,t)},p=()=>{u.mutate({requestId:e.id}),it.preInterceptAllow(e.id)},v=()=>{o.mutate({requestId:e.id}),it.preInterceptUseCache(e.id)},g=()=>{a.mutate({requestId:e.id,mockContent:t}),it.preInterceptMock(e.id,t)},m=c=>{i(c),n(Ca[c])};if(e.state==="PRE_INTERCEPT"){const c=((P=e.preInterceptInfo)==null?void 0:P.hasCachedResponse)??!1;return k.jsxs("div",{className:"border-t border-pp-light bg-pp-darker",children:[k.jsxs("div",{className:"p-4 border-b border-pp-light",children:[k.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx("span",{className:"w-3 h-3 bg-orange-500 rounded-full animate-pulse"}),k.jsx("span",{className:"text-sm font-medium text-orange-400",children:"Request Pending"})]}),k.jsx("div",{className:"text-sm text-gray-400",children:"Waiting to send to LLM"})]}),k.jsxs("div",{className:"flex gap-2 mb-4",children:[k.jsx("button",{onClick:p,className:"px-4 py-2 bg-green-600 hover:bg-green-700 text-white rounded font-medium transition-colors",children:"Send to LLM"}),k.jsx("button",{onClick:v,disabled:!c,className:`px-4 py-2 rounded font-medium transition-colors ${c?"bg-teal-600 hover:bg-teal-700 text-white":"bg-gray-700 text-gray-500 cursor-not-allowed"}`,title:c?"Use cached response":"No cached response available",children:"Use Cache"}),k.jsx("button",{onClick:g,className:"px-4 py-2 bg-purple-600 hover:bg-purple-700 text-white rounded font-medium transition-colors",children:"Mock Response"})]}),c&&k.jsx("div",{className:"text-xs text-teal-400 mb-3",children:"Cached response available"}),k.jsxs("div",{className:"flex gap-2 mb-3",children:[k.jsx("span",{className:"text-xs text-gray-500",children:"Mock templates:"}),["text","error","toolCall"].map(d=>k.jsx("button",{onClick:()=>m(d),className:`
84
+ px-2 py-1 text-xs rounded transition-colors
85
+ ${r===d?"bg-blue-600 text-white":"bg-pp-gray text-gray-400 hover:bg-pp-light"}
86
+ `,children:d==="toolCall"?"Tool Call":d.charAt(0).toUpperCase()+d.slice(1)},d))]})]}),k.jsx("div",{className:"h-48",children:k.jsx(xa,{height:"100%",defaultLanguage:r==="toolCall"?"json":"plaintext",value:t,onChange:d=>n(d||""),theme:"vs-dark",options:{minimap:{enabled:!1},fontSize:13,lineNumbers:"off",scrollBeyondLastLine:!1,wordWrap:"on",padding:{top:12,bottom:12},renderLineHighlight:"none",overviewRulerLanes:0,hideCursorInOverviewRuler:!0,overviewRulerBorder:!1,scrollbar:{vertical:"auto",horizontal:"hidden"}}})})]})}return e.state==="INTERCEPT"?k.jsxs("div",{className:"border-t border-pp-light bg-pp-darker",children:[k.jsxs("div",{className:"p-4 border-b border-pp-light",children:[k.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx("span",{className:"w-3 h-3 bg-amber-500 rounded-full animate-pulse"}),k.jsx("span",{className:"text-sm font-medium text-amber-400",children:"Response Paused"})]}),e.toolCalls.length>0&&k.jsxs("div",{className:"text-sm text-gray-400",children:["Tool call: ",k.jsx("span",{className:"text-purple-400",children:(f=e.toolCalls[0])==null?void 0:f.name})]})]}),k.jsxs("div",{className:"flex gap-2 mb-4",children:[k.jsx("button",{onClick:h,className:"px-4 py-2 bg-green-600 hover:bg-green-700 text-white rounded font-medium transition-colors",children:"Allow & Continue"}),k.jsx("button",{onClick:y,className:"px-4 py-2 bg-purple-600 hover:bg-purple-700 text-white rounded font-medium transition-colors",children:"Send Mock Response"})]}),k.jsxs("div",{className:"flex gap-2 mb-3",children:[k.jsx("span",{className:"text-xs text-gray-500",children:"Templates:"}),["text","error","toolCall"].map(c=>k.jsx("button",{onClick:()=>m(c),className:`
87
+ px-2 py-1 text-xs rounded transition-colors
88
+ ${r===c?"bg-blue-600 text-white":"bg-pp-gray text-gray-400 hover:bg-pp-light"}
89
+ `,children:c==="toolCall"?"Tool Call":c.charAt(0).toUpperCase()+c.slice(1)},c))]})]}),k.jsx("div",{className:"h-64",children:k.jsx(xa,{height:"100%",defaultLanguage:r==="toolCall"?"json":"plaintext",value:t,onChange:c=>n(c||""),theme:"vs-dark",options:{minimap:{enabled:!1},fontSize:13,lineNumbers:"off",scrollBeyondLastLine:!1,wordWrap:"on",padding:{top:12,bottom:12},renderLineHighlight:"none",overviewRulerLanes:0,hideCursorInOverviewRuler:!0,overviewRulerBorder:!1,scrollbar:{vertical:"auto",horizontal:"hidden"}}})})]}):null}function ig(){const e=tr(l=>l.getSelectedSession()),t=tr(l=>l.handleWSEvent),n=nr(l=>l.setConnected),r=nr(l=>l.setSettings),i=rt.getSettings.useQuery();return R.useEffect(()=>{i.data&&r(i.data.settings)},[i.data,r]),R.useEffect(()=>{it.connect();const l=it.subscribe(u=>{t(u)}),s=setInterval(()=>{n(it.isConnected())},1e3);return()=>{l(),clearInterval(s),it.disconnect()}},[t,n]),k.jsxs("div",{className:"flex h-screen bg-pp-dark",children:[k.jsxs("div",{className:"w-80 flex-shrink-0 border-r border-pp-light flex flex-col bg-pp-darker",children:[k.jsxs("div",{className:"h-14 border-b border-pp-light flex items-center justify-between px-4",children:[k.jsxs("h1",{className:"text-lg font-bold tracking-tight text-white",children:["Playing",k.jsx("span",{className:"text-pp-accent",children:"Pack"})]}),k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx("span",{className:"w-2 h-2 rounded-full bg-pp-accent animate-pulse"}),k.jsxs("span",{className:"text-xs font-mono text-gray-500",children:[":",window.location.port||"4747"]})]})]}),k.jsx(Hy,{}),k.jsx("div",{className:"flex-1 overflow-hidden",children:k.jsx($y,{})})]}),k.jsx("div",{className:"flex-1 flex flex-col overflow-hidden bg-pp-dark",children:e?k.jsxs(k.Fragment,{children:[k.jsx(By,{session:e}),k.jsx(rg,{session:e})]}):k.jsx("div",{className:"flex-1 flex items-center justify-center",children:k.jsxs("div",{className:"text-center",children:[k.jsx("svg",{className:"w-16 h-16 mx-auto mb-4 text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),k.jsx("h2",{className:"text-xl font-medium text-gray-400 mb-2",children:"Select a request"}),k.jsx("p",{className:"text-sm text-gray-600 max-w-md",children:"Click on a request in the sidebar to inspect its details, or wait for new requests to come in."})]})})})]})}function lg(){return k.jsx(ig,{})}const Ea=new vm({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1}}});bl.createRoot(document.getElementById("root")).render(k.jsx(Ze.StrictMode,{children:k.jsx(rt.Provider,{client:Py,queryClient:Ea,children:k.jsx(_m,{client:Ea,children:k.jsx(lg,{})})})}));