@alfatech/livechat 2024.12.3-1.7 → 2025.3.0-5.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.
package/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- var Jf=e=>{throw TypeError(e)};var Vg=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var aa=(e,t,n)=>t.has(e)||Jf("Cannot "+n);var y=(e,t,n)=>(aa(e,t,"read from private field"),n?n.call(e):t.get(e)),L=(e,t,n)=>t.has(e)?Jf("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),P=(e,t,n,r)=>(aa(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),B=(e,t,n)=>(aa(e,t,"access private method"),n);var qs=(e,t,n,r)=>({set _(i){P(e,t,i,n)},get _(){return y(e,t,r)}});var Ib=Vg((et,tt)=>{function Hg(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Ls(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rp={exports:{}},gl={},Pp={exports:{}},H={};/**
1
+ var bd=e=>{throw TypeError(e)};var iv=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Fl=(e,t,n)=>t.has(e)||bd("Cannot "+n);var y=(e,t,n)=>(Fl(e,t,"read from private field"),n?n.call(e):t.get(e)),U=(e,t,n)=>t.has(e)?bd("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),j=(e,t,n,r)=>(Fl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),q=(e,t,n)=>(Fl(e,t,"access private method"),n);var So=(e,t,n,r)=>({set _(i){j(e,t,i,n)},get _(){return y(e,t,r)}});var wO=iv((gt,vt)=>{function sv(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function qi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tm={exports:{}},Va={},nm={exports:{}},Y={};/**
2
2
  * @license React
3
3
  * react.production.min.js
4
4
  *
@@ -6,7 +6,7 @@ var Jf=e=>{throw TypeError(e)};var Vg=(e,t)=>()=>(t||e((t={exports:{}}).exports,
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 Ms=Symbol.for("react.element"),Wg=Symbol.for("react.portal"),Qg=Symbol.for("react.fragment"),qg=Symbol.for("react.strict_mode"),Kg=Symbol.for("react.profiler"),Gg=Symbol.for("react.provider"),Yg=Symbol.for("react.context"),Xg=Symbol.for("react.forward_ref"),Zg=Symbol.for("react.suspense"),Jg=Symbol.for("react.memo"),ev=Symbol.for("react.lazy"),ed=Symbol.iterator;function tv(e){return e===null||typeof e!="object"?null:(e=ed&&e[ed]||e["@@iterator"],typeof e=="function"?e:null)}var Ap={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Np=Object.assign,Fp={};function Ci(e,t,n){this.props=e,this.context=t,this.refs=Fp,this.updater=n||Ap}Ci.prototype.isReactComponent={};Ci.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")};Ci.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function jp(){}jp.prototype=Ci.prototype;function _c(e,t,n){this.props=e,this.context=t,this.refs=Fp,this.updater=n||Ap}var Ec=_c.prototype=new jp;Ec.constructor=_c;Np(Ec,Ci.prototype);Ec.isPureReactComponent=!0;var td=Array.isArray,$p=Object.prototype.hasOwnProperty,kc={current:null},Ip={key:!0,ref:!0,__self:!0,__source:!0};function Lp(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)$p.call(t,r)&&!Ip.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];i.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:Ms,type:e,key:s,ref:o,props:i,_owner:kc.current}}function nv(e,t){return{$$typeof:Ms,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Cc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ms}function rv(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var nd=/\/+/g;function ua(e,t){return typeof e=="object"&&e!==null&&e.key!=null?rv(""+e.key):t.toString(36)}function wo(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Ms:case Wg:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+ua(o,0):r,td(i)?(n="",e!=null&&(n=e.replace(nd,"$&/")+"/"),wo(i,t,n,"",function(u){return u})):i!=null&&(Cc(i)&&(i=nv(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(nd,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",td(e))for(var l=0;l<e.length;l++){s=e[l];var a=r+ua(s,l);o+=wo(s,t,n,a,i)}else if(a=tv(e),typeof a=="function")for(e=a.call(e),l=0;!(s=e.next()).done;)s=s.value,a=r+ua(s,l++),o+=wo(s,t,n,a,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Ks(e,t,n){if(e==null)return e;var r=[],i=0;return wo(e,r,"","",function(s){return t.call(n,s,i++)}),r}function iv(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 Me={current:null},So={transition:null},sv={ReactCurrentDispatcher:Me,ReactCurrentBatchConfig:So,ReactCurrentOwner:kc};function Mp(){throw Error("act(...) is not supported in production builds of React.")}H.Children={map:Ks,forEach:function(e,t,n){Ks(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ks(e,function(){t++}),t},toArray:function(e){return Ks(e,function(t){return t})||[]},only:function(e){if(!Cc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};H.Component=Ci;H.Fragment=Qg;H.Profiler=Kg;H.PureComponent=_c;H.StrictMode=qg;H.Suspense=Zg;H.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sv;H.act=Mp;H.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=Np({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=kc.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)$p.call(t,a)&&!Ip.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Ms,type:e.type,key:i,ref:s,props:r,_owner:o}};H.createContext=function(e){return e={$$typeof:Yg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Gg,_context:e},e.Consumer=e};H.createElement=Lp;H.createFactory=function(e){var t=Lp.bind(null,e);return t.type=e,t};H.createRef=function(){return{current:null}};H.forwardRef=function(e){return{$$typeof:Xg,render:e}};H.isValidElement=Cc;H.lazy=function(e){return{$$typeof:ev,_payload:{_status:-1,_result:e},_init:iv}};H.memo=function(e,t){return{$$typeof:Jg,type:e,compare:t===void 0?null:t}};H.startTransition=function(e){var t=So.transition;So.transition={};try{e()}finally{So.transition=t}};H.unstable_act=Mp;H.useCallback=function(e,t){return Me.current.useCallback(e,t)};H.useContext=function(e){return Me.current.useContext(e)};H.useDebugValue=function(){};H.useDeferredValue=function(e){return Me.current.useDeferredValue(e)};H.useEffect=function(e,t){return Me.current.useEffect(e,t)};H.useId=function(){return Me.current.useId()};H.useImperativeHandle=function(e,t,n){return Me.current.useImperativeHandle(e,t,n)};H.useInsertionEffect=function(e,t){return Me.current.useInsertionEffect(e,t)};H.useLayoutEffect=function(e,t){return Me.current.useLayoutEffect(e,t)};H.useMemo=function(e,t){return Me.current.useMemo(e,t)};H.useReducer=function(e,t,n){return Me.current.useReducer(e,t,n)};H.useRef=function(e){return Me.current.useRef(e)};H.useState=function(e){return Me.current.useState(e)};H.useSyncExternalStore=function(e,t,n){return Me.current.useSyncExternalStore(e,t,n)};H.useTransition=function(){return Me.current.useTransition()};H.version="18.3.1";Pp.exports=H;var S=Pp.exports;const Dp=Ls(S),ov=Hg({__proto__:null,default:Dp},[S]);/**
9
+ */var io=Symbol.for("react.element"),ov=Symbol.for("react.portal"),av=Symbol.for("react.fragment"),lv=Symbol.for("react.strict_mode"),uv=Symbol.for("react.profiler"),cv=Symbol.for("react.provider"),fv=Symbol.for("react.context"),dv=Symbol.for("react.forward_ref"),hv=Symbol.for("react.suspense"),pv=Symbol.for("react.memo"),mv=Symbol.for("react.lazy"),kd=Symbol.iterator;function yv(e){return e===null||typeof e!="object"?null:(e=kd&&e[kd]||e["@@iterator"],typeof e=="function"?e:null)}var rm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},im=Object.assign,sm={};function Ki(e,t,n){this.props=e,this.context=t,this.refs=sm,this.updater=n||rm}Ki.prototype.isReactComponent={};Ki.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")};Ki.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function om(){}om.prototype=Ki.prototype;function Kc(e,t,n){this.props=e,this.context=t,this.refs=sm,this.updater=n||rm}var Yc=Kc.prototype=new om;Yc.constructor=Kc;im(Yc,Ki.prototype);Yc.isPureReactComponent=!0;var Cd=Array.isArray,am=Object.prototype.hasOwnProperty,Gc={current:null},lm={key:!0,ref:!0,__self:!0,__source:!0};function um(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)am.call(t,r)&&!lm.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:io,type:e,key:s,ref:o,props:i,_owner:Gc.current}}function gv(e,t){return{$$typeof:io,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Xc(e){return typeof e=="object"&&e!==null&&e.$$typeof===io}function vv(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Td=/\/+/g;function $l(e,t){return typeof e=="object"&&e!==null&&e.key!=null?vv(""+e.key):t.toString(36)}function Qo(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case io:case ov:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+$l(o,0):r,Cd(i)?(n="",e!=null&&(n=e.replace(Td,"$&/")+"/"),Qo(i,t,n,"",function(c){return c})):i!=null&&(Xc(i)&&(i=gv(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Td,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Cd(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+$l(s,a);o+=Qo(s,t,n,l,i)}else if(l=yv(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+$l(s,a++),o+=Qo(s,t,n,l,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Eo(e,t,n){if(e==null)return e;var r=[],i=0;return Qo(e,r,"","",function(s){return t.call(n,s,i++)}),r}function wv(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 Ge={current:null},qo={transition:null},xv={ReactCurrentDispatcher:Ge,ReactCurrentBatchConfig:qo,ReactCurrentOwner:Gc};function cm(){throw Error("act(...) is not supported in production builds of React.")}Y.Children={map:Eo,forEach:function(e,t,n){Eo(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Eo(e,function(){t++}),t},toArray:function(e){return Eo(e,function(t){return t})||[]},only:function(e){if(!Xc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Y.Component=Ki;Y.Fragment=av;Y.Profiler=uv;Y.PureComponent=Kc;Y.StrictMode=lv;Y.Suspense=hv;Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xv;Y.act=cm;Y.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=im({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=Gc.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)am.call(t,l)&&!lm.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:io,type:e.type,key:i,ref:s,props:r,_owner:o}};Y.createContext=function(e){return e={$$typeof:fv,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:cv,_context:e},e.Consumer=e};Y.createElement=um;Y.createFactory=function(e){var t=um.bind(null,e);return t.type=e,t};Y.createRef=function(){return{current:null}};Y.forwardRef=function(e){return{$$typeof:dv,render:e}};Y.isValidElement=Xc;Y.lazy=function(e){return{$$typeof:mv,_payload:{_status:-1,_result:e},_init:wv}};Y.memo=function(e,t){return{$$typeof:pv,type:e,compare:t===void 0?null:t}};Y.startTransition=function(e){var t=qo.transition;qo.transition={};try{e()}finally{qo.transition=t}};Y.unstable_act=cm;Y.useCallback=function(e,t){return Ge.current.useCallback(e,t)};Y.useContext=function(e){return Ge.current.useContext(e)};Y.useDebugValue=function(){};Y.useDeferredValue=function(e){return Ge.current.useDeferredValue(e)};Y.useEffect=function(e,t){return Ge.current.useEffect(e,t)};Y.useId=function(){return Ge.current.useId()};Y.useImperativeHandle=function(e,t,n){return Ge.current.useImperativeHandle(e,t,n)};Y.useInsertionEffect=function(e,t){return Ge.current.useInsertionEffect(e,t)};Y.useLayoutEffect=function(e,t){return Ge.current.useLayoutEffect(e,t)};Y.useMemo=function(e,t){return Ge.current.useMemo(e,t)};Y.useReducer=function(e,t,n){return Ge.current.useReducer(e,t,n)};Y.useRef=function(e){return Ge.current.useRef(e)};Y.useState=function(e){return Ge.current.useState(e)};Y.useSyncExternalStore=function(e,t,n){return Ge.current.useSyncExternalStore(e,t,n)};Y.useTransition=function(){return Ge.current.useTransition()};Y.version="18.3.1";nm.exports=Y;var S=nm.exports;const P=qi(S),Sv=sv({__proto__:null,default:P},[S]);/**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
12
12
  *
@@ -14,7 +14,7 @@ var Jf=e=>{throw TypeError(e)};var Vg=(e,t)=>()=>(t||e((t={exports:{}}).exports,
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 lv=S,av=Symbol.for("react.element"),uv=Symbol.for("react.fragment"),cv=Object.prototype.hasOwnProperty,fv=lv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,dv={key:!0,ref:!0,__self:!0,__source:!0};function zp(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)cv.call(t,r)&&!dv.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:av,type:e,key:s,ref:o,props:i,_owner:fv.current}}gl.Fragment=uv;gl.jsx=zp;gl.jsxs=zp;Rp.exports=gl;var k=Rp.exports,Up={exports:{}},it={},Bp={exports:{}},Vp={};/**
17
+ */var Ev=S,_v=Symbol.for("react.element"),bv=Symbol.for("react.fragment"),kv=Object.prototype.hasOwnProperty,Cv=Ev.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Tv={key:!0,ref:!0,__self:!0,__source:!0};function fm(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)kv.call(t,r)&&!Tv.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:_v,type:e,key:s,ref:o,props:i,_owner:Cv.current}}Va.Fragment=bv;Va.jsx=fm;Va.jsxs=fm;tm.exports=Va;var b=tm.exports,dm={exports:{}},St={},hm={exports:{}},pm={};/**
18
18
  * @license React
19
19
  * scheduler.production.min.js
20
20
  *
@@ -22,7 +22,7 @@ var Jf=e=>{throw TypeError(e)};var Vg=(e,t)=>()=>(t||e((t={exports:{}}).exports,
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(A,D){var U=A.length;A.push(D);e:for(;0<U;){var Z=U-1>>>1,te=A[Z];if(0<i(te,D))A[Z]=D,A[U]=te,U=Z;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var D=A[0],U=A.pop();if(U!==D){A[0]=U;e:for(var Z=0,te=A.length,Xn=te>>>1;Z<Xn;){var vt=2*(Z+1)-1,At=A[vt],Nt=vt+1,mn=A[Nt];if(0>i(At,U))Nt<te&&0>i(mn,At)?(A[Z]=mn,A[Nt]=U,Z=Nt):(A[Z]=At,A[vt]=U,Z=vt);else if(Nt<te&&0>i(mn,U))A[Z]=mn,A[Nt]=U,Z=Nt;else break e}}return D}function i(A,D){var U=A.sortIndex-D.sortIndex;return U!==0?U:A.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var a=[],u=[],d=1,c=null,f=3,m=!1,v=!1,w=!1,_=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(A){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=A)r(u),D.sortIndex=D.expirationTime,t(a,D);else break;D=n(u)}}function E(A){if(w=!1,g(A),!v)if(n(a)!==null)v=!0,Fi(O);else{var D=n(u);D!==null&&ji(E,D.startTime-A)}}function O(A,D){v=!1,w&&(w=!1,p(R),R=-1),m=!0;var U=f;try{for(g(D),c=n(a);c!==null&&(!(c.expirationTime>D)||A&&!z());){var Z=c.callback;if(typeof Z=="function"){c.callback=null,f=c.priorityLevel;var te=Z(c.expirationTime<=D);D=e.unstable_now(),typeof te=="function"?c.callback=te:c===n(a)&&r(a),g(D)}else r(a);c=n(a)}if(c!==null)var Xn=!0;else{var vt=n(u);vt!==null&&ji(E,vt.startTime-D),Xn=!1}return Xn}finally{c=null,f=U,m=!1}}var T=!1,C=null,R=-1,$=5,M=-1;function z(){return!(e.unstable_now()-M<$)}function he(){if(C!==null){var A=e.unstable_now();M=A;var D=!0;try{D=C(!0,A)}finally{D?pe():(T=!1,C=null)}}else T=!1}var pe;if(typeof h=="function")pe=function(){h(he)};else if(typeof MessageChannel<"u"){var gt=new MessageChannel,Qs=gt.port2;gt.port1.onmessage=he,pe=function(){Qs.postMessage(null)}}else pe=function(){_(he,0)};function Fi(A){C=A,T||(T=!0,pe())}function ji(A,D){R=_(function(){A(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(A){A.callback=null},e.unstable_continueExecution=function(){v||m||(v=!0,Fi(O))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(A){switch(f){case 1:case 2:case 3:var D=3;break;default:D=f}var U=f;f=D;try{return A()}finally{f=U}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,D){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var U=f;f=A;try{return D()}finally{f=U}},e.unstable_scheduleCallback=function(A,D,U){var Z=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?Z+U:Z):U=Z,A){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=U+te,A={id:d++,callback:D,priorityLevel:A,startTime:U,expirationTime:te,sortIndex:-1},U>Z?(A.sortIndex=U,t(u,A),n(a)===null&&A===n(u)&&(w?(p(R),R=-1):w=!0,ji(E,U-Z))):(A.sortIndex=te,t(a,A),v||m||(v=!0,Fi(O))),A},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(A){var D=f;return function(){var U=f;f=D;try{return A.apply(this,arguments)}finally{f=U}}}})(Vp);Bp.exports=Vp;var hv=Bp.exports;/**
25
+ */(function(e){function t(N,L){var H=N.length;N.push(L);e:for(;0<H;){var M=H-1>>>1,V=N[M];if(0<i(V,L))N[M]=L,N[H]=V,H=M;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var L=N[0],H=N.pop();if(H!==L){N[0]=H;e:for(var M=0,V=N.length,ee=V>>>1;M<ee;){var de=2*(M+1)-1,Ce=N[de],Z=de+1,Ze=N[Z];if(0>i(Ce,H))Z<V&&0>i(Ze,Ce)?(N[M]=Ze,N[Z]=H,M=Z):(N[M]=Ce,N[de]=H,M=de);else if(Z<V&&0>i(Ze,H))N[M]=Ze,N[Z]=H,M=Z;else break e}}return L}function i(N,L){var H=N.sortIndex-L.sortIndex;return H!==0?H:N.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],c=[],d=1,u=null,f=3,m=!1,v=!1,w=!1,x=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(N){for(var L=n(c);L!==null;){if(L.callback===null)r(c);else if(L.startTime<=N)r(c),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(c)}}function _(N){if(w=!1,g(N),!v)if(n(l)!==null)v=!0,K(T);else{var L=n(c);L!==null&&We(_,L.startTime-N)}}function T(N,L){v=!1,w&&(w=!1,p(R),R=-1),m=!0;var H=f;try{for(g(L),u=n(l);u!==null&&(!(u.expirationTime>L)||N&&!B());){var M=u.callback;if(typeof M=="function"){u.callback=null,f=u.priorityLevel;var V=M(u.expirationTime<=L);L=e.unstable_now(),typeof V=="function"?u.callback=V:u===n(l)&&r(l),g(L)}else r(l);u=n(l)}if(u!==null)var ee=!0;else{var de=n(c);de!==null&&We(_,de.startTime-L),ee=!1}return ee}finally{u=null,f=H,m=!1}}var C=!1,k=null,R=-1,I=5,D=-1;function B(){return!(e.unstable_now()-D<I)}function se(){if(k!==null){var N=e.unstable_now();D=N;var L=!0;try{L=k(!0,N)}finally{L?oe():(C=!1,k=null)}}else C=!1}var oe;if(typeof h=="function")oe=function(){h(se)};else if(typeof MessageChannel<"u"){var Ve=new MessageChannel,He=Ve.port2;Ve.port1.onmessage=se,oe=function(){He.postMessage(null)}}else oe=function(){x(se,0)};function K(N){k=N,C||(C=!0,oe())}function We(N,L){R=x(function(){N(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_continueExecution=function(){v||m||(v=!0,K(T))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(N){switch(f){case 1:case 2:case 3:var L=3;break;default:L=f}var H=f;f=L;try{return N()}finally{f=H}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,L){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var H=f;f=N;try{return L()}finally{f=H}},e.unstable_scheduleCallback=function(N,L,H){var M=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?M+H:M):H=M,N){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=H+V,N={id:d++,callback:L,priorityLevel:N,startTime:H,expirationTime:V,sortIndex:-1},H>M?(N.sortIndex=H,t(c,N),n(l)===null&&N===n(c)&&(w?(p(R),R=-1):w=!0,We(_,H-M))):(N.sortIndex=V,t(l,N),v||m||(v=!0,K(T))),N},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(N){var L=f;return function(){var H=f;f=L;try{return N.apply(this,arguments)}finally{f=H}}}})(pm);hm.exports=pm;var Ov=hm.exports;/**
26
26
  * @license React
27
27
  * react-dom.production.min.js
28
28
  *
@@ -30,14 +30,14 @@ var Jf=e=>{throw TypeError(e)};var Vg=(e,t)=>()=>(t||e((t={exports:{}}).exports,
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 pv=S,rt=hv;function b(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 Hp=new Set,cs={};function Tr(e,t){yi(e,t),yi(e+"Capture",t)}function yi(e,t){for(cs[e]=t,e=0;e<t.length;e++)Hp.add(t[e])}var un=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ga=Object.prototype.hasOwnProperty,mv=/^[: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]*$/,rd={},id={};function yv(e){return Ga.call(id,e)?!0:Ga.call(rd,e)?!1:mv.test(e)?id[e]=!0:(rd[e]=!0,!1)}function gv(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 vv(e,t,n,r){if(t===null||typeof t>"u"||gv(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 De(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var Oe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Oe[e]=new De(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 De(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Oe[e]=new De(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Oe[e]=new De(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 De(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Oe[e]=new De(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Oe[e]=new De(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Oe[e]=new De(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Oe[e]=new De(e,5,!1,e.toLowerCase(),null,!1,!1)});var Tc=/[\-:]([a-z])/g;function bc(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(Tc,bc);Oe[t]=new De(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(Tc,bc);Oe[t]=new De(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(Tc,bc);Oe[t]=new De(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Oe[e]=new De(e,1,!1,e.toLowerCase(),null,!1,!1)});Oe.xlinkHref=new De("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Oe[e]=new De(e,1,!1,e.toLowerCase(),null,!0,!0)});function Oc(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")&&(vv(t,n,i,r)&&(n=null),r||i===null?yv(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 hn=pv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Gs=Symbol.for("react.element"),Lr=Symbol.for("react.portal"),Mr=Symbol.for("react.fragment"),Rc=Symbol.for("react.strict_mode"),Ya=Symbol.for("react.profiler"),Wp=Symbol.for("react.provider"),Qp=Symbol.for("react.context"),Pc=Symbol.for("react.forward_ref"),Xa=Symbol.for("react.suspense"),Za=Symbol.for("react.suspense_list"),Ac=Symbol.for("react.memo"),vn=Symbol.for("react.lazy"),qp=Symbol.for("react.offscreen"),sd=Symbol.iterator;function $i(e){return e===null||typeof e!="object"?null:(e=sd&&e[sd]||e["@@iterator"],typeof e=="function"?e:null)}var ue=Object.assign,ca;function Wi(e){if(ca===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ca=t&&t[1]||""}return`
34
- `+ca+e}var fa=!1;function da(e,t){if(!e||fa)return"";fa=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
33
+ */var Rv=S,xt=Ov;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 mm=new Set,Ns={};function qr(e,t){Di(e,t),Di(e+"Capture",t)}function Di(e,t){for(Ns[e]=t,e=0;e<t.length;e++)mm.add(t[e])}var Cn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Su=Object.prototype.hasOwnProperty,Pv=/^[: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]*$/,Od={},Rd={};function Nv(e){return Su.call(Rd,e)?!0:Su.call(Od,e)?!1:Pv.test(e)?Rd[e]=!0:(Od[e]=!0,!1)}function Av(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 jv(e,t,n,r){if(t===null||typeof t>"u"||Av(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 Xe(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var Ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ie[e]=new Xe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ie[t]=new Xe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ie[e]=new Xe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ie[e]=new Xe(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){Ie[e]=new Xe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ie[e]=new Xe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ie[e]=new Xe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ie[e]=new Xe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ie[e]=new Xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Zc=/[\-:]([a-z])/g;function Jc(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(Zc,Jc);Ie[t]=new Xe(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(Zc,Jc);Ie[t]=new Xe(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(Zc,Jc);Ie[t]=new Xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ie[e]=new Xe(e,1,!1,e.toLowerCase(),null,!1,!1)});Ie.xlinkHref=new Xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ie[e]=new Xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function ef(e,t,n,r){var i=Ie.hasOwnProperty(t)?Ie[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(jv(t,n,i,r)&&(n=null),r||i===null?Nv(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 Pn=Rv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_o=Symbol.for("react.element"),si=Symbol.for("react.portal"),oi=Symbol.for("react.fragment"),tf=Symbol.for("react.strict_mode"),Eu=Symbol.for("react.profiler"),ym=Symbol.for("react.provider"),gm=Symbol.for("react.context"),nf=Symbol.for("react.forward_ref"),_u=Symbol.for("react.suspense"),bu=Symbol.for("react.suspense_list"),rf=Symbol.for("react.memo"),Dn=Symbol.for("react.lazy"),vm=Symbol.for("react.offscreen"),Pd=Symbol.iterator;function is(e){return e===null||typeof e!="object"?null:(e=Pd&&e[Pd]||e["@@iterator"],typeof e=="function"?e:null)}var ye=Object.assign,Il;function ps(e){if(Il===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Il=t&&t[1]||""}return`
34
+ `+Il+e}var Ll=!1;function Dl(e,t){if(!e||Ll)return"";Ll=!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(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
35
35
  `),s=r.stack.split(`
36
- `),o=i.length-1,l=s.length-1;1<=o&&0<=l&&i[o]!==s[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==s[l]){if(o!==1||l!==1)do if(o--,l--,0>l||i[o]!==s[l]){var a=`
37
- `+i[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=l);break}}}finally{fa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wi(e):""}function wv(e){switch(e.tag){case 5:return Wi(e.type);case 16:return Wi("Lazy");case 13:return Wi("Suspense");case 19:return Wi("SuspenseList");case 0:case 2:case 15:return e=da(e.type,!1),e;case 11:return e=da(e.type.render,!1),e;case 1:return e=da(e.type,!0),e;default:return""}}function Ja(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 Mr:return"Fragment";case Lr:return"Portal";case Ya:return"Profiler";case Rc:return"StrictMode";case Xa:return"Suspense";case Za:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qp:return(e.displayName||"Context")+".Consumer";case Wp:return(e._context.displayName||"Context")+".Provider";case Pc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ac:return t=e.displayName||null,t!==null?t:Ja(e.type)||"Memo";case vn:t=e._payload,e=e._init;try{return Ja(e(t))}catch{}}return null}function Sv(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 Ja(t);case 8:return t===Rc?"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 Hn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Kp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xv(e){var t=Kp(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,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ys(e){e._valueTracker||(e._valueTracker=xv(e))}function Gp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Kp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Mo(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 eu(e,t){var n=t.checked;return ue({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function od(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Hn(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 Yp(e,t){t=t.checked,t!=null&&Oc(e,"checked",t,!1)}function tu(e,t){Yp(e,t);var n=Hn(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")?nu(e,t.type,n):t.hasOwnProperty("defaultValue")&&nu(e,t.type,Hn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ld(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 nu(e,t,n){(t!=="number"||Mo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qi=Array.isArray;function Yr(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=""+Hn(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 ru(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(b(91));return ue({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ad(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(b(92));if(Qi(n)){if(1<n.length)throw Error(b(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Hn(n)}}function Xp(e,t){var n=Hn(t.value),r=Hn(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 ud(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Zp(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 iu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Zp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Xs,Jp=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(Xs=Xs||document.createElement("div"),Xs.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Xs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xi={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},_v=["Webkit","ms","Moz","O"];Object.keys(Xi).forEach(function(e){_v.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xi[t]=Xi[e]})});function em(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Xi.hasOwnProperty(e)&&Xi[e]?(""+t).trim():t+"px"}function tm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=em(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Ev=ue({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 su(e,t){if(t){if(Ev[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(b(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(b(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(b(61))}if(t.style!=null&&typeof t.style!="object")throw Error(b(62))}}function ou(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 lu=null;function Nc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var au=null,Xr=null,Zr=null;function cd(e){if(e=Us(e)){if(typeof au!="function")throw Error(b(280));var t=e.stateNode;t&&(t=_l(t),au(e.stateNode,e.type,t))}}function nm(e){Xr?Zr?Zr.push(e):Zr=[e]:Xr=e}function rm(){if(Xr){var e=Xr,t=Zr;if(Zr=Xr=null,cd(e),t)for(e=0;e<t.length;e++)cd(t[e])}}function im(e,t){return e(t)}function sm(){}var ha=!1;function om(e,t,n){if(ha)return e(t,n);ha=!0;try{return im(e,t,n)}finally{ha=!1,(Xr!==null||Zr!==null)&&(sm(),rm())}}function ds(e,t){var n=e.stateNode;if(n===null)return null;var r=_l(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(b(231,t,typeof n));return n}var uu=!1;if(un)try{var Ii={};Object.defineProperty(Ii,"passive",{get:function(){uu=!0}}),window.addEventListener("test",Ii,Ii),window.removeEventListener("test",Ii,Ii)}catch{uu=!1}function kv(e,t,n,r,i,s,o,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Zi=!1,Do=null,zo=!1,cu=null,Cv={onError:function(e){Zi=!0,Do=e}};function Tv(e,t,n,r,i,s,o,l,a){Zi=!1,Do=null,kv.apply(Cv,arguments)}function bv(e,t,n,r,i,s,o,l,a){if(Tv.apply(this,arguments),Zi){if(Zi){var u=Do;Zi=!1,Do=null}else throw Error(b(198));zo||(zo=!0,cu=u)}}function br(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 lm(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 fd(e){if(br(e)!==e)throw Error(b(188))}function Ov(e){var t=e.alternate;if(!t){if(t=br(e),t===null)throw Error(b(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return fd(i),e;if(s===r)return fd(i),t;s=s.sibling}throw Error(b(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,r=s;break}if(l===r){o=!0,r=i,n=s;break}l=l.sibling}if(!o){for(l=s.child;l;){if(l===n){o=!0,n=s,r=i;break}if(l===r){o=!0,r=s,n=i;break}l=l.sibling}if(!o)throw Error(b(189))}}if(n.alternate!==r)throw Error(b(190))}if(n.tag!==3)throw Error(b(188));return n.stateNode.current===n?e:t}function am(e){return e=Ov(e),e!==null?um(e):null}function um(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=um(e);if(t!==null)return t;e=e.sibling}return null}var cm=rt.unstable_scheduleCallback,dd=rt.unstable_cancelCallback,Rv=rt.unstable_shouldYield,Pv=rt.unstable_requestPaint,de=rt.unstable_now,Av=rt.unstable_getCurrentPriorityLevel,Fc=rt.unstable_ImmediatePriority,fm=rt.unstable_UserBlockingPriority,Uo=rt.unstable_NormalPriority,Nv=rt.unstable_LowPriority,dm=rt.unstable_IdlePriority,vl=null,Ht=null;function Fv(e){if(Ht&&typeof Ht.onCommitFiberRoot=="function")try{Ht.onCommitFiberRoot(vl,e,void 0,(e.current.flags&128)===128)}catch{}}var Ot=Math.clz32?Math.clz32:Iv,jv=Math.log,$v=Math.LN2;function Iv(e){return e>>>=0,e===0?32:31-(jv(e)/$v|0)|0}var Zs=64,Js=4194304;function qi(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 Bo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=qi(l):(s&=o,s!==0&&(r=qi(s)))}else o=n&~i,o!==0?r=qi(o):s!==0&&(r=qi(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&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-Ot(t),i=1<<n,r|=e[n],t&=~i;return r}function Lv(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 Mv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Ot(s),l=1<<o,a=i[o];a===-1?(!(l&n)||l&r)&&(i[o]=Lv(l,t)):a<=t&&(e.expiredLanes|=l),s&=~l}}function fu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function hm(){var e=Zs;return Zs<<=1,!(Zs&4194240)&&(Zs=64),e}function pa(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ds(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ot(t),e[t]=n}function Dv(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-Ot(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function jc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ot(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Y=0;function pm(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var mm,$c,ym,gm,vm,du=!1,eo=[],jn=null,$n=null,In=null,hs=new Map,ps=new Map,Sn=[],zv="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 hd(e,t){switch(e){case"focusin":case"focusout":jn=null;break;case"dragenter":case"dragleave":$n=null;break;case"mouseover":case"mouseout":In=null;break;case"pointerover":case"pointerout":hs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ps.delete(t.pointerId)}}function Li(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=Us(t),t!==null&&$c(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Uv(e,t,n,r,i){switch(t){case"focusin":return jn=Li(jn,e,t,n,r,i),!0;case"dragenter":return $n=Li($n,e,t,n,r,i),!0;case"mouseover":return In=Li(In,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return hs.set(s,Li(hs.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,ps.set(s,Li(ps.get(s)||null,e,t,n,r,i)),!0}return!1}function wm(e){var t=nr(e.target);if(t!==null){var n=br(t);if(n!==null){if(t=n.tag,t===13){if(t=lm(n),t!==null){e.blockedOn=t,vm(e.priority,function(){ym(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 xo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=hu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);lu=r,n.target.dispatchEvent(r),lu=null}else return t=Us(n),t!==null&&$c(t),e.blockedOn=n,!1;t.shift()}return!0}function pd(e,t,n){xo(e)&&n.delete(t)}function Bv(){du=!1,jn!==null&&xo(jn)&&(jn=null),$n!==null&&xo($n)&&($n=null),In!==null&&xo(In)&&(In=null),hs.forEach(pd),ps.forEach(pd)}function Mi(e,t){e.blockedOn===t&&(e.blockedOn=null,du||(du=!0,rt.unstable_scheduleCallback(rt.unstable_NormalPriority,Bv)))}function ms(e){function t(i){return Mi(i,e)}if(0<eo.length){Mi(eo[0],e);for(var n=1;n<eo.length;n++){var r=eo[n];r.blockedOn===e&&(r.blockedOn=null)}}for(jn!==null&&Mi(jn,e),$n!==null&&Mi($n,e),In!==null&&Mi(In,e),hs.forEach(t),ps.forEach(t),n=0;n<Sn.length;n++)r=Sn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Sn.length&&(n=Sn[0],n.blockedOn===null);)wm(n),n.blockedOn===null&&Sn.shift()}var Jr=hn.ReactCurrentBatchConfig,Vo=!0;function Vv(e,t,n,r){var i=Y,s=Jr.transition;Jr.transition=null;try{Y=1,Ic(e,t,n,r)}finally{Y=i,Jr.transition=s}}function Hv(e,t,n,r){var i=Y,s=Jr.transition;Jr.transition=null;try{Y=4,Ic(e,t,n,r)}finally{Y=i,Jr.transition=s}}function Ic(e,t,n,r){if(Vo){var i=hu(e,t,n,r);if(i===null)ka(e,t,r,Ho,n),hd(e,r);else if(Uv(i,e,t,n,r))r.stopPropagation();else if(hd(e,r),t&4&&-1<zv.indexOf(e)){for(;i!==null;){var s=Us(i);if(s!==null&&mm(s),s=hu(e,t,n,r),s===null&&ka(e,t,r,Ho,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else ka(e,t,r,null,n)}}var Ho=null;function hu(e,t,n,r){if(Ho=null,e=Nc(r),e=nr(e),e!==null)if(t=br(e),t===null)e=null;else if(n=t.tag,n===13){if(e=lm(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 Ho=e,null}function Sm(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(Av()){case Fc:return 1;case fm:return 4;case Uo:case Nv:return 16;case dm:return 536870912;default:return 16}default:return 16}}var An=null,Lc=null,_o=null;function xm(){if(_o)return _o;var e,t=Lc,n=t.length,r,i="value"in An?An.value:An.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return _o=i.slice(e,1<r?1-r:void 0)}function Eo(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 to(){return!0}function md(){return!1}function st(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?to:md,this.isPropagationStopped=md,this}return ue(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=to)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=to)},persist:function(){},isPersistent:to}),t}var Ti={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mc=st(Ti),zs=ue({},Ti,{view:0,detail:0}),Wv=st(zs),ma,ya,Di,wl=ue({},zs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dc,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!==Di&&(Di&&e.type==="mousemove"?(ma=e.screenX-Di.screenX,ya=e.screenY-Di.screenY):ya=ma=0,Di=e),ma)},movementY:function(e){return"movementY"in e?e.movementY:ya}}),yd=st(wl),Qv=ue({},wl,{dataTransfer:0}),qv=st(Qv),Kv=ue({},zs,{relatedTarget:0}),ga=st(Kv),Gv=ue({},Ti,{animationName:0,elapsedTime:0,pseudoElement:0}),Yv=st(Gv),Xv=ue({},Ti,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Zv=st(Xv),Jv=ue({},Ti,{data:0}),gd=st(Jv),e1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},t1={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"},n1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function r1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=n1[e])?!!t[e]:!1}function Dc(){return r1}var i1=ue({},zs,{key:function(e){if(e.key){var t=e1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Eo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?t1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dc,charCode:function(e){return e.type==="keypress"?Eo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Eo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),s1=st(i1),o1=ue({},wl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vd=st(o1),l1=ue({},zs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dc}),a1=st(l1),u1=ue({},Ti,{propertyName:0,elapsedTime:0,pseudoElement:0}),c1=st(u1),f1=ue({},wl,{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}),d1=st(f1),h1=[9,13,27,32],zc=un&&"CompositionEvent"in window,Ji=null;un&&"documentMode"in document&&(Ji=document.documentMode);var p1=un&&"TextEvent"in window&&!Ji,_m=un&&(!zc||Ji&&8<Ji&&11>=Ji),wd=" ",Sd=!1;function Em(e,t){switch(e){case"keyup":return h1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function km(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dr=!1;function m1(e,t){switch(e){case"compositionend":return km(t);case"keypress":return t.which!==32?null:(Sd=!0,wd);case"textInput":return e=t.data,e===wd&&Sd?null:e;default:return null}}function y1(e,t){if(Dr)return e==="compositionend"||!zc&&Em(e,t)?(e=xm(),_o=Lc=An=null,Dr=!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 _m&&t.locale!=="ko"?null:t.data;default:return null}}var g1={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 xd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!g1[e.type]:t==="textarea"}function Cm(e,t,n,r){nm(r),t=Wo(t,"onChange"),0<t.length&&(n=new Mc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var es=null,ys=null;function v1(e){Im(e,0)}function Sl(e){var t=Br(e);if(Gp(t))return e}function w1(e,t){if(e==="change")return t}var Tm=!1;if(un){var va;if(un){var wa="oninput"in document;if(!wa){var _d=document.createElement("div");_d.setAttribute("oninput","return;"),wa=typeof _d.oninput=="function"}va=wa}else va=!1;Tm=va&&(!document.documentMode||9<document.documentMode)}function Ed(){es&&(es.detachEvent("onpropertychange",bm),ys=es=null)}function bm(e){if(e.propertyName==="value"&&Sl(ys)){var t=[];Cm(t,ys,e,Nc(e)),om(v1,t)}}function S1(e,t,n){e==="focusin"?(Ed(),es=t,ys=n,es.attachEvent("onpropertychange",bm)):e==="focusout"&&Ed()}function x1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Sl(ys)}function _1(e,t){if(e==="click")return Sl(t)}function E1(e,t){if(e==="input"||e==="change")return Sl(t)}function k1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pt=typeof Object.is=="function"?Object.is:k1;function gs(e,t){if(Pt(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(!Ga.call(t,i)||!Pt(e[i],t[i]))return!1}return!0}function kd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Cd(e,t){var n=kd(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=kd(n)}}function Om(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Om(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rm(){for(var e=window,t=Mo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Mo(e.document)}return t}function Uc(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 C1(e){var t=Rm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Om(n.ownerDocument.documentElement,n)){if(r!==null&&Uc(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,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Cd(n,s);var o=Cd(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var T1=un&&"documentMode"in document&&11>=document.documentMode,zr=null,pu=null,ts=null,mu=!1;function Td(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mu||zr==null||zr!==Mo(r)||(r=zr,"selectionStart"in r&&Uc(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}),ts&&gs(ts,r)||(ts=r,r=Wo(pu,"onSelect"),0<r.length&&(t=new Mc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=zr)))}function no(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ur={animationend:no("Animation","AnimationEnd"),animationiteration:no("Animation","AnimationIteration"),animationstart:no("Animation","AnimationStart"),transitionend:no("Transition","TransitionEnd")},Sa={},Pm={};un&&(Pm=document.createElement("div").style,"AnimationEvent"in window||(delete Ur.animationend.animation,delete Ur.animationiteration.animation,delete Ur.animationstart.animation),"TransitionEvent"in window||delete Ur.transitionend.transition);function xl(e){if(Sa[e])return Sa[e];if(!Ur[e])return e;var t=Ur[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Pm)return Sa[e]=t[n];return e}var Am=xl("animationend"),Nm=xl("animationiteration"),Fm=xl("animationstart"),jm=xl("transitionend"),$m=new Map,bd="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 qn(e,t){$m.set(e,t),Tr(t,[e])}for(var xa=0;xa<bd.length;xa++){var _a=bd[xa],b1=_a.toLowerCase(),O1=_a[0].toUpperCase()+_a.slice(1);qn(b1,"on"+O1)}qn(Am,"onAnimationEnd");qn(Nm,"onAnimationIteration");qn(Fm,"onAnimationStart");qn("dblclick","onDoubleClick");qn("focusin","onFocus");qn("focusout","onBlur");qn(jm,"onTransitionEnd");yi("onMouseEnter",["mouseout","mouseover"]);yi("onMouseLeave",["mouseout","mouseover"]);yi("onPointerEnter",["pointerout","pointerover"]);yi("onPointerLeave",["pointerout","pointerover"]);Tr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Tr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Tr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Tr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Tr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Tr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ki="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(" "),R1=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ki));function Od(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,bv(r,t,void 0,e),e.currentTarget=null}function Im(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 s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==s&&i.isPropagationStopped())break e;Od(i,l,u),s=a}else for(o=0;o<r.length;o++){if(l=r[o],a=l.instance,u=l.currentTarget,l=l.listener,a!==s&&i.isPropagationStopped())break e;Od(i,l,u),s=a}}}if(zo)throw e=cu,zo=!1,cu=null,e}function ne(e,t){var n=t[Su];n===void 0&&(n=t[Su]=new Set);var r=e+"__bubble";n.has(r)||(Lm(t,e,2,!1),n.add(r))}function Ea(e,t,n){var r=0;t&&(r|=4),Lm(n,e,r,t)}var ro="_reactListening"+Math.random().toString(36).slice(2);function vs(e){if(!e[ro]){e[ro]=!0,Hp.forEach(function(n){n!=="selectionchange"&&(R1.has(n)||Ea(n,!1,e),Ea(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ro]||(t[ro]=!0,Ea("selectionchange",!1,t))}}function Lm(e,t,n,r){switch(Sm(t)){case 1:var i=Vv;break;case 4:i=Hv;break;default:i=Ic}n=i.bind(null,t,n,e),i=void 0,!uu||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 ka(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;o=o.return}for(;l!==null;){if(o=nr(l),o===null)return;if(a=o.tag,a===5||a===6){r=s=o;continue e}l=l.parentNode}}r=r.return}om(function(){var u=s,d=Nc(n),c=[];e:{var f=$m.get(e);if(f!==void 0){var m=Mc,v=e;switch(e){case"keypress":if(Eo(n)===0)break e;case"keydown":case"keyup":m=s1;break;case"focusin":v="focus",m=ga;break;case"focusout":v="blur",m=ga;break;case"beforeblur":case"afterblur":m=ga;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":m=yd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=qv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=a1;break;case Am:case Nm:case Fm:m=Yv;break;case jm:m=c1;break;case"scroll":m=Wv;break;case"wheel":m=d1;break;case"copy":case"cut":case"paste":m=Zv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=vd}var w=(t&4)!==0,_=!w&&e==="scroll",p=w?f!==null?f+"Capture":null:f;w=[];for(var h=u,g;h!==null;){g=h;var E=g.stateNode;if(g.tag===5&&E!==null&&(g=E,p!==null&&(E=ds(h,p),E!=null&&w.push(ws(h,E,g)))),_)break;h=h.return}0<w.length&&(f=new m(f,v,null,n,d),c.push({event:f,listeners:w}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",f&&n!==lu&&(v=n.relatedTarget||n.fromElement)&&(nr(v)||v[cn]))break e;if((m||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,m?(v=n.relatedTarget||n.toElement,m=u,v=v?nr(v):null,v!==null&&(_=br(v),v!==_||v.tag!==5&&v.tag!==6)&&(v=null)):(m=null,v=u),m!==v)){if(w=yd,E="onMouseLeave",p="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(w=vd,E="onPointerLeave",p="onPointerEnter",h="pointer"),_=m==null?f:Br(m),g=v==null?f:Br(v),f=new w(E,h+"leave",m,n,d),f.target=_,f.relatedTarget=g,E=null,nr(d)===u&&(w=new w(p,h+"enter",v,n,d),w.target=g,w.relatedTarget=_,E=w),_=E,m&&v)t:{for(w=m,p=v,h=0,g=w;g;g=$r(g))h++;for(g=0,E=p;E;E=$r(E))g++;for(;0<h-g;)w=$r(w),h--;for(;0<g-h;)p=$r(p),g--;for(;h--;){if(w===p||p!==null&&w===p.alternate)break t;w=$r(w),p=$r(p)}w=null}else w=null;m!==null&&Rd(c,f,m,w,!1),v!==null&&_!==null&&Rd(c,_,v,w,!0)}}e:{if(f=u?Br(u):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var O=w1;else if(xd(f))if(Tm)O=E1;else{O=x1;var T=S1}else(m=f.nodeName)&&m.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(O=_1);if(O&&(O=O(e,u))){Cm(c,O,n,d);break e}T&&T(e,f,u),e==="focusout"&&(T=f._wrapperState)&&T.controlled&&f.type==="number"&&nu(f,"number",f.value)}switch(T=u?Br(u):window,e){case"focusin":(xd(T)||T.contentEditable==="true")&&(zr=T,pu=u,ts=null);break;case"focusout":ts=pu=zr=null;break;case"mousedown":mu=!0;break;case"contextmenu":case"mouseup":case"dragend":mu=!1,Td(c,n,d);break;case"selectionchange":if(T1)break;case"keydown":case"keyup":Td(c,n,d)}var C;if(zc)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else Dr?Em(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(_m&&n.locale!=="ko"&&(Dr||R!=="onCompositionStart"?R==="onCompositionEnd"&&Dr&&(C=xm()):(An=d,Lc="value"in An?An.value:An.textContent,Dr=!0)),T=Wo(u,R),0<T.length&&(R=new gd(R,e,null,n,d),c.push({event:R,listeners:T}),C?R.data=C:(C=km(n),C!==null&&(R.data=C)))),(C=p1?m1(e,n):y1(e,n))&&(u=Wo(u,"onBeforeInput"),0<u.length&&(d=new gd("onBeforeInput","beforeinput",null,n,d),c.push({event:d,listeners:u}),d.data=C))}Im(c,t)})}function ws(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wo(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=ds(e,n),s!=null&&r.unshift(ws(e,s,i)),s=ds(e,t),s!=null&&r.push(ws(e,s,i))),e=e.return}return r}function $r(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Rd(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,i?(a=ds(n,s),a!=null&&o.unshift(ws(n,a,l))):i||(a=ds(n,s),a!=null&&o.push(ws(n,a,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var P1=/\r\n?/g,A1=/\u0000|\uFFFD/g;function Pd(e){return(typeof e=="string"?e:""+e).replace(P1,`
38
- `).replace(A1,"")}function io(e,t,n){if(t=Pd(t),Pd(e)!==t&&n)throw Error(b(425))}function Qo(){}var yu=null,gu=null;function vu(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 wu=typeof setTimeout=="function"?setTimeout:void 0,N1=typeof clearTimeout=="function"?clearTimeout:void 0,Ad=typeof Promise=="function"?Promise:void 0,F1=typeof queueMicrotask=="function"?queueMicrotask:typeof Ad<"u"?function(e){return Ad.resolve(null).then(e).catch(j1)}:wu;function j1(e){setTimeout(function(){throw e})}function Ca(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),ms(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);ms(t)}function Ln(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 Nd(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 bi=Math.random().toString(36).slice(2),Ut="__reactFiber$"+bi,Ss="__reactProps$"+bi,cn="__reactContainer$"+bi,Su="__reactEvents$"+bi,$1="__reactListeners$"+bi,I1="__reactHandles$"+bi;function nr(e){var t=e[Ut];if(t)return t;for(var n=e.parentNode;n;){if(t=n[cn]||n[Ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Nd(e);e!==null;){if(n=e[Ut])return n;e=Nd(e)}return t}e=n,n=e.parentNode}return null}function Us(e){return e=e[Ut]||e[cn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Br(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(b(33))}function _l(e){return e[Ss]||null}var xu=[],Vr=-1;function Kn(e){return{current:e}}function se(e){0>Vr||(e.current=xu[Vr],xu[Vr]=null,Vr--)}function ee(e,t){Vr++,xu[Vr]=e.current,e.current=t}var Wn={},Fe=Kn(Wn),Qe=Kn(!1),vr=Wn;function gi(e,t){var n=e.type.contextTypes;if(!n)return Wn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function qe(e){return e=e.childContextTypes,e!=null}function qo(){se(Qe),se(Fe)}function Fd(e,t,n){if(Fe.current!==Wn)throw Error(b(168));ee(Fe,t),ee(Qe,n)}function Mm(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(b(108,Sv(e)||"Unknown",i));return ue({},n,r)}function Ko(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wn,vr=Fe.current,ee(Fe,e),ee(Qe,Qe.current),!0}function jd(e,t,n){var r=e.stateNode;if(!r)throw Error(b(169));n?(e=Mm(e,t,vr),r.__reactInternalMemoizedMergedChildContext=e,se(Qe),se(Fe),ee(Fe,e)):se(Qe),ee(Qe,n)}var tn=null,El=!1,Ta=!1;function Dm(e){tn===null?tn=[e]:tn.push(e)}function L1(e){El=!0,Dm(e)}function Gn(){if(!Ta&&tn!==null){Ta=!0;var e=0,t=Y;try{var n=tn;for(Y=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}tn=null,El=!1}catch(i){throw tn!==null&&(tn=tn.slice(e+1)),cm(Fc,Gn),i}finally{Y=t,Ta=!1}}return null}var Hr=[],Wr=0,Go=null,Yo=0,ct=[],ft=0,wr=null,sn=1,on="";function Jn(e,t){Hr[Wr++]=Yo,Hr[Wr++]=Go,Go=e,Yo=t}function zm(e,t,n){ct[ft++]=sn,ct[ft++]=on,ct[ft++]=wr,wr=e;var r=sn;e=on;var i=32-Ot(r)-1;r&=~(1<<i),n+=1;var s=32-Ot(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,sn=1<<32-Ot(t)+i|n<<i|r,on=s+e}else sn=1<<s|n<<i|r,on=e}function Bc(e){e.return!==null&&(Jn(e,1),zm(e,1,0))}function Vc(e){for(;e===Go;)Go=Hr[--Wr],Hr[Wr]=null,Yo=Hr[--Wr],Hr[Wr]=null;for(;e===wr;)wr=ct[--ft],ct[ft]=null,on=ct[--ft],ct[ft]=null,sn=ct[--ft],ct[ft]=null}var nt=null,Je=null,oe=!1,Ct=null;function Um(e,t){var n=ht(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 $d(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,nt=e,Je=Ln(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,nt=e,Je=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=wr!==null?{id:sn,overflow:on}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ht(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,nt=e,Je=null,!0):!1;default:return!1}}function _u(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Eu(e){if(oe){var t=Je;if(t){var n=t;if(!$d(e,t)){if(_u(e))throw Error(b(418));t=Ln(n.nextSibling);var r=nt;t&&$d(e,t)?Um(r,n):(e.flags=e.flags&-4097|2,oe=!1,nt=e)}}else{if(_u(e))throw Error(b(418));e.flags=e.flags&-4097|2,oe=!1,nt=e}}}function Id(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;nt=e}function so(e){if(e!==nt)return!1;if(!oe)return Id(e),oe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!vu(e.type,e.memoizedProps)),t&&(t=Je)){if(_u(e))throw Bm(),Error(b(418));for(;t;)Um(e,t),t=Ln(t.nextSibling)}if(Id(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(b(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Je=Ln(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Je=null}}else Je=nt?Ln(e.stateNode.nextSibling):null;return!0}function Bm(){for(var e=Je;e;)e=Ln(e.nextSibling)}function vi(){Je=nt=null,oe=!1}function Hc(e){Ct===null?Ct=[e]:Ct.push(e)}var M1=hn.ReactCurrentBatchConfig;function zi(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(b(309));var r=n.stateNode}if(!r)throw Error(b(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var l=i.refs;o===null?delete l[s]:l[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(b(284));if(!n._owner)throw Error(b(290,e))}return e}function oo(e,t){throw e=Object.prototype.toString.call(t),Error(b(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ld(e){var t=e._init;return t(e._payload)}function Vm(e){function t(p,h){if(e){var g=p.deletions;g===null?(p.deletions=[h],p.flags|=16):g.push(h)}}function n(p,h){if(!e)return null;for(;h!==null;)t(p,h),h=h.sibling;return null}function r(p,h){for(p=new Map;h!==null;)h.key!==null?p.set(h.key,h):p.set(h.index,h),h=h.sibling;return p}function i(p,h){return p=Un(p,h),p.index=0,p.sibling=null,p}function s(p,h,g){return p.index=g,e?(g=p.alternate,g!==null?(g=g.index,g<h?(p.flags|=2,h):g):(p.flags|=2,h)):(p.flags|=1048576,h)}function o(p){return e&&p.alternate===null&&(p.flags|=2),p}function l(p,h,g,E){return h===null||h.tag!==6?(h=Fa(g,p.mode,E),h.return=p,h):(h=i(h,g),h.return=p,h)}function a(p,h,g,E){var O=g.type;return O===Mr?d(p,h,g.props.children,E,g.key):h!==null&&(h.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===vn&&Ld(O)===h.type)?(E=i(h,g.props),E.ref=zi(p,h,g),E.return=p,E):(E=Po(g.type,g.key,g.props,null,p.mode,E),E.ref=zi(p,h,g),E.return=p,E)}function u(p,h,g,E){return h===null||h.tag!==4||h.stateNode.containerInfo!==g.containerInfo||h.stateNode.implementation!==g.implementation?(h=ja(g,p.mode,E),h.return=p,h):(h=i(h,g.children||[]),h.return=p,h)}function d(p,h,g,E,O){return h===null||h.tag!==7?(h=pr(g,p.mode,E,O),h.return=p,h):(h=i(h,g),h.return=p,h)}function c(p,h,g){if(typeof h=="string"&&h!==""||typeof h=="number")return h=Fa(""+h,p.mode,g),h.return=p,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Gs:return g=Po(h.type,h.key,h.props,null,p.mode,g),g.ref=zi(p,null,h),g.return=p,g;case Lr:return h=ja(h,p.mode,g),h.return=p,h;case vn:var E=h._init;return c(p,E(h._payload),g)}if(Qi(h)||$i(h))return h=pr(h,p.mode,g,null),h.return=p,h;oo(p,h)}return null}function f(p,h,g,E){var O=h!==null?h.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return O!==null?null:l(p,h,""+g,E);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Gs:return g.key===O?a(p,h,g,E):null;case Lr:return g.key===O?u(p,h,g,E):null;case vn:return O=g._init,f(p,h,O(g._payload),E)}if(Qi(g)||$i(g))return O!==null?null:d(p,h,g,E,null);oo(p,g)}return null}function m(p,h,g,E,O){if(typeof E=="string"&&E!==""||typeof E=="number")return p=p.get(g)||null,l(h,p,""+E,O);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Gs:return p=p.get(E.key===null?g:E.key)||null,a(h,p,E,O);case Lr:return p=p.get(E.key===null?g:E.key)||null,u(h,p,E,O);case vn:var T=E._init;return m(p,h,g,T(E._payload),O)}if(Qi(E)||$i(E))return p=p.get(g)||null,d(h,p,E,O,null);oo(h,E)}return null}function v(p,h,g,E){for(var O=null,T=null,C=h,R=h=0,$=null;C!==null&&R<g.length;R++){C.index>R?($=C,C=null):$=C.sibling;var M=f(p,C,g[R],E);if(M===null){C===null&&(C=$);break}e&&C&&M.alternate===null&&t(p,C),h=s(M,h,R),T===null?O=M:T.sibling=M,T=M,C=$}if(R===g.length)return n(p,C),oe&&Jn(p,R),O;if(C===null){for(;R<g.length;R++)C=c(p,g[R],E),C!==null&&(h=s(C,h,R),T===null?O=C:T.sibling=C,T=C);return oe&&Jn(p,R),O}for(C=r(p,C);R<g.length;R++)$=m(C,p,R,g[R],E),$!==null&&(e&&$.alternate!==null&&C.delete($.key===null?R:$.key),h=s($,h,R),T===null?O=$:T.sibling=$,T=$);return e&&C.forEach(function(z){return t(p,z)}),oe&&Jn(p,R),O}function w(p,h,g,E){var O=$i(g);if(typeof O!="function")throw Error(b(150));if(g=O.call(g),g==null)throw Error(b(151));for(var T=O=null,C=h,R=h=0,$=null,M=g.next();C!==null&&!M.done;R++,M=g.next()){C.index>R?($=C,C=null):$=C.sibling;var z=f(p,C,M.value,E);if(z===null){C===null&&(C=$);break}e&&C&&z.alternate===null&&t(p,C),h=s(z,h,R),T===null?O=z:T.sibling=z,T=z,C=$}if(M.done)return n(p,C),oe&&Jn(p,R),O;if(C===null){for(;!M.done;R++,M=g.next())M=c(p,M.value,E),M!==null&&(h=s(M,h,R),T===null?O=M:T.sibling=M,T=M);return oe&&Jn(p,R),O}for(C=r(p,C);!M.done;R++,M=g.next())M=m(C,p,R,M.value,E),M!==null&&(e&&M.alternate!==null&&C.delete(M.key===null?R:M.key),h=s(M,h,R),T===null?O=M:T.sibling=M,T=M);return e&&C.forEach(function(he){return t(p,he)}),oe&&Jn(p,R),O}function _(p,h,g,E){if(typeof g=="object"&&g!==null&&g.type===Mr&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Gs:e:{for(var O=g.key,T=h;T!==null;){if(T.key===O){if(O=g.type,O===Mr){if(T.tag===7){n(p,T.sibling),h=i(T,g.props.children),h.return=p,p=h;break e}}else if(T.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===vn&&Ld(O)===T.type){n(p,T.sibling),h=i(T,g.props),h.ref=zi(p,T,g),h.return=p,p=h;break e}n(p,T);break}else t(p,T);T=T.sibling}g.type===Mr?(h=pr(g.props.children,p.mode,E,g.key),h.return=p,p=h):(E=Po(g.type,g.key,g.props,null,p.mode,E),E.ref=zi(p,h,g),E.return=p,p=E)}return o(p);case Lr:e:{for(T=g.key;h!==null;){if(h.key===T)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(p,h.sibling),h=i(h,g.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=ja(g,p.mode,E),h.return=p,p=h}return o(p);case vn:return T=g._init,_(p,h,T(g._payload),E)}if(Qi(g))return v(p,h,g,E);if($i(g))return w(p,h,g,E);oo(p,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(n(p,h.sibling),h=i(h,g),h.return=p,p=h):(n(p,h),h=Fa(g,p.mode,E),h.return=p,p=h),o(p)):n(p,h)}return _}var wi=Vm(!0),Hm=Vm(!1),Xo=Kn(null),Zo=null,Qr=null,Wc=null;function Qc(){Wc=Qr=Zo=null}function qc(e){var t=Xo.current;se(Xo),e._currentValue=t}function ku(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 ei(e,t){Zo=e,Wc=Qr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(We=!0),e.firstContext=null)}function mt(e){var t=e._currentValue;if(Wc!==e)if(e={context:e,memoizedValue:t,next:null},Qr===null){if(Zo===null)throw Error(b(308));Qr=e,Zo.dependencies={lanes:0,firstContext:e}}else Qr=Qr.next=e;return t}var rr=null;function Kc(e){rr===null?rr=[e]:rr.push(e)}function Wm(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Kc(t)):(n.next=i.next,i.next=n),t.interleaved=n,fn(e,r)}function fn(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 wn=!1;function Gc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qm(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 ln(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mn(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,fn(e,n)}return i=r.interleaved,i===null?(t.next=t,Kc(r)):(t.next=i.next,i.next=t),r.interleaved=t,fn(e,n)}function ko(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,jc(e,n)}}function Md(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,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 Jo(e,t,n,r){var i=e.updateQueue;wn=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,o===null?s=u:o.next=u,o=a;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==o&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=a))}if(s!==null){var c=i.baseState;o=0,d=u=a=null,l=s;do{var f=l.lane,m=l.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:m,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=e,w=l;switch(f=t,m=n,w.tag){case 1:if(v=w.payload,typeof v=="function"){c=v.call(m,c,f);break e}c=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=w.payload,f=typeof v=="function"?v.call(m,c,f):v,f==null)break e;c=ue({},c,f);break e;case 2:wn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[l]:f.push(l))}else m={eventTime:m,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=m,a=c):d=d.next=m,o|=f;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;f=l,l=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(d===null&&(a=c),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);xr|=o,e.lanes=o,e.memoizedState=c}}function Dd(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(b(191,i));i.call(r)}}}var Bs={},Wt=Kn(Bs),xs=Kn(Bs),_s=Kn(Bs);function ir(e){if(e===Bs)throw Error(b(174));return e}function Yc(e,t){switch(ee(_s,t),ee(xs,e),ee(Wt,Bs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:iu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=iu(t,e)}se(Wt),ee(Wt,t)}function Si(){se(Wt),se(xs),se(_s)}function qm(e){ir(_s.current);var t=ir(Wt.current),n=iu(t,e.type);t!==n&&(ee(xs,e),ee(Wt,n))}function Xc(e){xs.current===e&&(se(Wt),se(xs))}var le=Kn(0);function el(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 ba=[];function Zc(){for(var e=0;e<ba.length;e++)ba[e]._workInProgressVersionPrimary=null;ba.length=0}var Co=hn.ReactCurrentDispatcher,Oa=hn.ReactCurrentBatchConfig,Sr=0,ae=null,ge=null,_e=null,tl=!1,ns=!1,Es=0,D1=0;function Re(){throw Error(b(321))}function Jc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Pt(e[n],t[n]))return!1;return!0}function ef(e,t,n,r,i,s){if(Sr=s,ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Co.current=e===null||e.memoizedState===null?V1:H1,e=n(r,i),ns){s=0;do{if(ns=!1,Es=0,25<=s)throw Error(b(301));s+=1,_e=ge=null,t.updateQueue=null,Co.current=W1,e=n(r,i)}while(ns)}if(Co.current=nl,t=ge!==null&&ge.next!==null,Sr=0,_e=ge=ae=null,tl=!1,t)throw Error(b(300));return e}function tf(){var e=Es!==0;return Es=0,e}function $t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _e===null?ae.memoizedState=_e=e:_e=_e.next=e,_e}function yt(){if(ge===null){var e=ae.alternate;e=e!==null?e.memoizedState:null}else e=ge.next;var t=_e===null?ae.memoizedState:_e.next;if(t!==null)_e=t,ge=e;else{if(e===null)throw Error(b(310));ge=e,e={memoizedState:ge.memoizedState,baseState:ge.baseState,baseQueue:ge.baseQueue,queue:ge.queue,next:null},_e===null?ae.memoizedState=_e=e:_e=_e.next=e}return _e}function ks(e,t){return typeof t=="function"?t(e):t}function Ra(e){var t=yt(),n=t.queue;if(n===null)throw Error(b(311));n.lastRenderedReducer=e;var r=ge,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var l=o=null,a=null,u=s;do{var d=u.lane;if((Sr&d)===d)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var c={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=c,o=r):a=a.next=c,ae.lanes|=d,xr|=d}u=u.next}while(u!==null&&u!==s);a===null?o=r:a.next=l,Pt(r,t.memoizedState)||(We=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,ae.lanes|=s,xr|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Pa(e){var t=yt(),n=t.queue;if(n===null)throw Error(b(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);Pt(s,t.memoizedState)||(We=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Km(){}function Gm(e,t){var n=ae,r=yt(),i=t(),s=!Pt(r.memoizedState,i);if(s&&(r.memoizedState=i,We=!0),r=r.queue,nf(Zm.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||_e!==null&&_e.memoizedState.tag&1){if(n.flags|=2048,Cs(9,Xm.bind(null,n,r,i,t),void 0,null),Ee===null)throw Error(b(349));Sr&30||Ym(n,t,i)}return i}function Ym(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ae.updateQueue,t===null?(t={lastEffect:null,stores:null},ae.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Xm(e,t,n,r){t.value=n,t.getSnapshot=r,Jm(t)&&ey(e)}function Zm(e,t,n){return n(function(){Jm(t)&&ey(e)})}function Jm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Pt(e,n)}catch{return!0}}function ey(e){var t=fn(e,1);t!==null&&Rt(t,e,1,-1)}function zd(e){var t=$t();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ks,lastRenderedState:e},t.queue=e,e=e.dispatch=B1.bind(null,ae,e),[t.memoizedState,e]}function Cs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ae.updateQueue,t===null?(t={lastEffect:null,stores:null},ae.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 ty(){return yt().memoizedState}function To(e,t,n,r){var i=$t();ae.flags|=e,i.memoizedState=Cs(1|t,n,void 0,r===void 0?null:r)}function kl(e,t,n,r){var i=yt();r=r===void 0?null:r;var s=void 0;if(ge!==null){var o=ge.memoizedState;if(s=o.destroy,r!==null&&Jc(r,o.deps)){i.memoizedState=Cs(t,n,s,r);return}}ae.flags|=e,i.memoizedState=Cs(1|t,n,s,r)}function Ud(e,t){return To(8390656,8,e,t)}function nf(e,t){return kl(2048,8,e,t)}function ny(e,t){return kl(4,2,e,t)}function ry(e,t){return kl(4,4,e,t)}function iy(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 sy(e,t,n){return n=n!=null?n.concat([e]):null,kl(4,4,iy.bind(null,t,e),n)}function rf(){}function oy(e,t){var n=yt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Jc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ly(e,t){var n=yt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Jc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ay(e,t,n){return Sr&21?(Pt(n,t)||(n=hm(),ae.lanes|=n,xr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,We=!0),e.memoizedState=n)}function z1(e,t){var n=Y;Y=n!==0&&4>n?n:4,e(!0);var r=Oa.transition;Oa.transition={};try{e(!1),t()}finally{Y=n,Oa.transition=r}}function uy(){return yt().memoizedState}function U1(e,t,n){var r=zn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},cy(e))fy(t,n);else if(n=Wm(e,t,n,r),n!==null){var i=Le();Rt(n,e,r,i),dy(n,t,r)}}function B1(e,t,n){var r=zn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(cy(e))fy(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,l=s(o,n);if(i.hasEagerState=!0,i.eagerState=l,Pt(l,o)){var a=t.interleaved;a===null?(i.next=i,Kc(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Wm(e,t,i,r),n!==null&&(i=Le(),Rt(n,e,r,i),dy(n,t,r))}}function cy(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function fy(e,t){ns=tl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,jc(e,n)}}var nl={readContext:mt,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useInsertionEffect:Re,useLayoutEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useMutableSource:Re,useSyncExternalStore:Re,useId:Re,unstable_isNewReconciler:!1},V1={readContext:mt,useCallback:function(e,t){return $t().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:Ud,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,To(4194308,4,iy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return To(4194308,4,e,t)},useInsertionEffect:function(e,t){return To(4,2,e,t)},useMemo:function(e,t){var n=$t();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$t();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=U1.bind(null,ae,e),[r.memoizedState,e]},useRef:function(e){var t=$t();return e={current:e},t.memoizedState=e},useState:zd,useDebugValue:rf,useDeferredValue:function(e){return $t().memoizedState=e},useTransition:function(){var e=zd(!1),t=e[0];return e=z1.bind(null,e[1]),$t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ae,i=$t();if(oe){if(n===void 0)throw Error(b(407));n=n()}else{if(n=t(),Ee===null)throw Error(b(349));Sr&30||Ym(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Ud(Zm.bind(null,r,s,e),[e]),r.flags|=2048,Cs(9,Xm.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=$t(),t=Ee.identifierPrefix;if(oe){var n=on,r=sn;n=(r&~(1<<32-Ot(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Es++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=D1++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},H1={readContext:mt,useCallback:oy,useContext:mt,useEffect:nf,useImperativeHandle:sy,useInsertionEffect:ny,useLayoutEffect:ry,useMemo:ly,useReducer:Ra,useRef:ty,useState:function(){return Ra(ks)},useDebugValue:rf,useDeferredValue:function(e){var t=yt();return ay(t,ge.memoizedState,e)},useTransition:function(){var e=Ra(ks)[0],t=yt().memoizedState;return[e,t]},useMutableSource:Km,useSyncExternalStore:Gm,useId:uy,unstable_isNewReconciler:!1},W1={readContext:mt,useCallback:oy,useContext:mt,useEffect:nf,useImperativeHandle:sy,useInsertionEffect:ny,useLayoutEffect:ry,useMemo:ly,useReducer:Pa,useRef:ty,useState:function(){return Pa(ks)},useDebugValue:rf,useDeferredValue:function(e){var t=yt();return ge===null?t.memoizedState=e:ay(t,ge.memoizedState,e)},useTransition:function(){var e=Pa(ks)[0],t=yt().memoizedState;return[e,t]},useMutableSource:Km,useSyncExternalStore:Gm,useId:uy,unstable_isNewReconciler:!1};function xt(e,t){if(e&&e.defaultProps){t=ue({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Cu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ue({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Cl={isMounted:function(e){return(e=e._reactInternals)?br(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Le(),i=zn(e),s=ln(r,i);s.payload=t,n!=null&&(s.callback=n),t=Mn(e,s,i),t!==null&&(Rt(t,e,i,r),ko(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Le(),i=zn(e),s=ln(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Mn(e,s,i),t!==null&&(Rt(t,e,i,r),ko(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Le(),r=zn(e),i=ln(n,r);i.tag=2,t!=null&&(i.callback=t),t=Mn(e,i,r),t!==null&&(Rt(t,e,r,n),ko(t,e,r))}};function Bd(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!gs(n,r)||!gs(i,s):!0}function hy(e,t,n){var r=!1,i=Wn,s=t.contextType;return typeof s=="object"&&s!==null?s=mt(s):(i=qe(t)?vr:Fe.current,r=t.contextTypes,s=(r=r!=null)?gi(e,i):Wn),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Cl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function Vd(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&&Cl.enqueueReplaceState(t,t.state,null)}function Tu(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Gc(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=mt(s):(s=qe(t)?vr:Fe.current,i.context=gi(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Cu(e,t,s,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&&Cl.enqueueReplaceState(i,i.state,null),Jo(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function xi(e,t){try{var n="",r=t;do n+=wv(r),r=r.return;while(r);var i=n}catch(s){i=`
36
+ `),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var l=`
37
+ `+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Ll=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ps(e):""}function Fv(e){switch(e.tag){case 5:return ps(e.type);case 16:return ps("Lazy");case 13:return ps("Suspense");case 19:return ps("SuspenseList");case 0:case 2:case 15:return e=Dl(e.type,!1),e;case 11:return e=Dl(e.type.render,!1),e;case 1:return e=Dl(e.type,!0),e;default:return""}}function ku(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 oi:return"Fragment";case si:return"Portal";case Eu:return"Profiler";case tf:return"StrictMode";case _u:return"Suspense";case bu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case gm:return(e.displayName||"Context")+".Consumer";case ym:return(e._context.displayName||"Context")+".Provider";case nf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rf:return t=e.displayName||null,t!==null?t:ku(e.type)||"Memo";case Dn:t=e._payload,e=e._init;try{return ku(e(t))}catch{}}return null}function $v(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 ku(t);case 8:return t===tf?"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 cr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Iv(e){var t=wm(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,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bo(e){e._valueTracker||(e._valueTracker=Iv(e))}function xm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=wm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fa(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 Cu(e,t){var n=t.checked;return ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Nd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=cr(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 Sm(e,t){t=t.checked,t!=null&&ef(e,"checked",t,!1)}function Tu(e,t){Sm(e,t);var n=cr(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")?Ou(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ou(e,t.type,cr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ad(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 Ou(e,t,n){(t!=="number"||fa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ms=Array.isArray;function vi(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=""+cr(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 Ru(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return ye({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function jd(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(ms(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:cr(n)}}function Em(e,t){var n=cr(t.value),r=cr(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 Fd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function _m(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 Pu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?_m(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ko,bm=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(ko=ko||document.createElement("div"),ko.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ko.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function As(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xs={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},Lv=["Webkit","ms","Moz","O"];Object.keys(xs).forEach(function(e){Lv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xs[t]=xs[e]})});function km(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||xs.hasOwnProperty(e)&&xs[e]?(""+t).trim():t+"px"}function Cm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=km(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Dv=ye({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 Nu(e,t){if(t){if(Dv[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 Au(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 ju=null;function sf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fu=null,wi=null,xi=null;function $d(e){if(e=ao(e)){if(typeof Fu!="function")throw Error(O(280));var t=e.stateNode;t&&(t=Ka(t),Fu(e.stateNode,e.type,t))}}function Tm(e){wi?xi?xi.push(e):xi=[e]:wi=e}function Om(){if(wi){var e=wi,t=xi;if(xi=wi=null,$d(e),t)for(e=0;e<t.length;e++)$d(t[e])}}function Rm(e,t){return e(t)}function Pm(){}var Ml=!1;function Nm(e,t,n){if(Ml)return e(t,n);Ml=!0;try{return Rm(e,t,n)}finally{Ml=!1,(wi!==null||xi!==null)&&(Pm(),Om())}}function js(e,t){var n=e.stateNode;if(n===null)return null;var r=Ka(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 $u=!1;if(Cn)try{var ss={};Object.defineProperty(ss,"passive",{get:function(){$u=!0}}),window.addEventListener("test",ss,ss),window.removeEventListener("test",ss,ss)}catch{$u=!1}function Mv(e,t,n,r,i,s,o,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var Ss=!1,da=null,ha=!1,Iu=null,zv={onError:function(e){Ss=!0,da=e}};function Bv(e,t,n,r,i,s,o,a,l){Ss=!1,da=null,Mv.apply(zv,arguments)}function Uv(e,t,n,r,i,s,o,a,l){if(Bv.apply(this,arguments),Ss){if(Ss){var c=da;Ss=!1,da=null}else throw Error(O(198));ha||(ha=!0,Iu=c)}}function Kr(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 Am(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 Id(e){if(Kr(e)!==e)throw Error(O(188))}function Vv(e){var t=e.alternate;if(!t){if(t=Kr(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 s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return Id(i),e;if(s===r)return Id(i),t;s=s.sibling}throw Error(O(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o)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 jm(e){return e=Vv(e),e!==null?Fm(e):null}function Fm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Fm(e);if(t!==null)return t;e=e.sibling}return null}var $m=xt.unstable_scheduleCallback,Ld=xt.unstable_cancelCallback,Hv=xt.unstable_shouldYield,Wv=xt.unstable_requestPaint,xe=xt.unstable_now,Qv=xt.unstable_getCurrentPriorityLevel,of=xt.unstable_ImmediatePriority,Im=xt.unstable_UserBlockingPriority,pa=xt.unstable_NormalPriority,qv=xt.unstable_LowPriority,Lm=xt.unstable_IdlePriority,Ha=null,ln=null;function Kv(e){if(ln&&typeof ln.onCommitFiberRoot=="function")try{ln.onCommitFiberRoot(Ha,e,void 0,(e.current.flags&128)===128)}catch{}}var Kt=Math.clz32?Math.clz32:Xv,Yv=Math.log,Gv=Math.LN2;function Xv(e){return e>>>=0,e===0?32:31-(Yv(e)/Gv|0)|0}var Co=64,To=4194304;function ys(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 ma(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=ys(a):(s&=o,s!==0&&(r=ys(s)))}else o=n&~i,o!==0?r=ys(o):s!==0&&(r=ys(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&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-Kt(t),i=1<<n,r|=e[n],t&=~i;return r}function Zv(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 Jv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Kt(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=Zv(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function Lu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Dm(){var e=Co;return Co<<=1,!(Co&4194240)&&(Co=64),e}function zl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function so(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Kt(t),e[t]=n}function e1(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-Kt(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function af(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Kt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var re=0;function Mm(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var zm,lf,Bm,Um,Vm,Du=!1,Oo=[],er=null,tr=null,nr=null,Fs=new Map,$s=new Map,zn=[],t1="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 Dd(e,t){switch(e){case"focusin":case"focusout":er=null;break;case"dragenter":case"dragleave":tr=null;break;case"mouseover":case"mouseout":nr=null;break;case"pointerover":case"pointerout":Fs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$s.delete(t.pointerId)}}function os(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=ao(t),t!==null&&lf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function n1(e,t,n,r,i){switch(t){case"focusin":return er=os(er,e,t,n,r,i),!0;case"dragenter":return tr=os(tr,e,t,n,r,i),!0;case"mouseover":return nr=os(nr,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return Fs.set(s,os(Fs.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,$s.set(s,os($s.get(s)||null,e,t,n,r,i)),!0}return!1}function Hm(e){var t=_r(e.target);if(t!==null){var n=Kr(t);if(n!==null){if(t=n.tag,t===13){if(t=Am(n),t!==null){e.blockedOn=t,Vm(e.priority,function(){Bm(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 Ko(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Mu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ju=r,n.target.dispatchEvent(r),ju=null}else return t=ao(n),t!==null&&lf(t),e.blockedOn=n,!1;t.shift()}return!0}function Md(e,t,n){Ko(e)&&n.delete(t)}function r1(){Du=!1,er!==null&&Ko(er)&&(er=null),tr!==null&&Ko(tr)&&(tr=null),nr!==null&&Ko(nr)&&(nr=null),Fs.forEach(Md),$s.forEach(Md)}function as(e,t){e.blockedOn===t&&(e.blockedOn=null,Du||(Du=!0,xt.unstable_scheduleCallback(xt.unstable_NormalPriority,r1)))}function Is(e){function t(i){return as(i,e)}if(0<Oo.length){as(Oo[0],e);for(var n=1;n<Oo.length;n++){var r=Oo[n];r.blockedOn===e&&(r.blockedOn=null)}}for(er!==null&&as(er,e),tr!==null&&as(tr,e),nr!==null&&as(nr,e),Fs.forEach(t),$s.forEach(t),n=0;n<zn.length;n++)r=zn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<zn.length&&(n=zn[0],n.blockedOn===null);)Hm(n),n.blockedOn===null&&zn.shift()}var Si=Pn.ReactCurrentBatchConfig,ya=!0;function i1(e,t,n,r){var i=re,s=Si.transition;Si.transition=null;try{re=1,uf(e,t,n,r)}finally{re=i,Si.transition=s}}function s1(e,t,n,r){var i=re,s=Si.transition;Si.transition=null;try{re=4,uf(e,t,n,r)}finally{re=i,Si.transition=s}}function uf(e,t,n,r){if(ya){var i=Mu(e,t,n,r);if(i===null)Gl(e,t,r,ga,n),Dd(e,r);else if(n1(i,e,t,n,r))r.stopPropagation();else if(Dd(e,r),t&4&&-1<t1.indexOf(e)){for(;i!==null;){var s=ao(i);if(s!==null&&zm(s),s=Mu(e,t,n,r),s===null&&Gl(e,t,r,ga,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else Gl(e,t,r,null,n)}}var ga=null;function Mu(e,t,n,r){if(ga=null,e=sf(r),e=_r(e),e!==null)if(t=Kr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Am(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 ga=e,null}function Wm(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(Qv()){case of:return 1;case Im:return 4;case pa:case qv:return 16;case Lm:return 536870912;default:return 16}default:return 16}}var Xn=null,cf=null,Yo=null;function Qm(){if(Yo)return Yo;var e,t=cf,n=t.length,r,i="value"in Xn?Xn.value:Xn.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return Yo=i.slice(e,1<r?1-r:void 0)}function Go(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 Ro(){return!0}function zd(){return!1}function Et(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ro:zd,this.isPropagationStopped=zd,this}return ye(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=Ro)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ro)},persist:function(){},isPersistent:Ro}),t}var Yi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ff=Et(Yi),oo=ye({},Yi,{view:0,detail:0}),o1=Et(oo),Bl,Ul,ls,Wa=ye({},oo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:df,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!==ls&&(ls&&e.type==="mousemove"?(Bl=e.screenX-ls.screenX,Ul=e.screenY-ls.screenY):Ul=Bl=0,ls=e),Bl)},movementY:function(e){return"movementY"in e?e.movementY:Ul}}),Bd=Et(Wa),a1=ye({},Wa,{dataTransfer:0}),l1=Et(a1),u1=ye({},oo,{relatedTarget:0}),Vl=Et(u1),c1=ye({},Yi,{animationName:0,elapsedTime:0,pseudoElement:0}),f1=Et(c1),d1=ye({},Yi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),h1=Et(d1),p1=ye({},Yi,{data:0}),Ud=Et(p1),m1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},y1={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"},g1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function v1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=g1[e])?!!t[e]:!1}function df(){return v1}var w1=ye({},oo,{key:function(e){if(e.key){var t=m1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Go(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?y1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:df,charCode:function(e){return e.type==="keypress"?Go(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Go(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),x1=Et(w1),S1=ye({},Wa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vd=Et(S1),E1=ye({},oo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:df}),_1=Et(E1),b1=ye({},Yi,{propertyName:0,elapsedTime:0,pseudoElement:0}),k1=Et(b1),C1=ye({},Wa,{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}),T1=Et(C1),O1=[9,13,27,32],hf=Cn&&"CompositionEvent"in window,Es=null;Cn&&"documentMode"in document&&(Es=document.documentMode);var R1=Cn&&"TextEvent"in window&&!Es,qm=Cn&&(!hf||Es&&8<Es&&11>=Es),Hd=" ",Wd=!1;function Km(e,t){switch(e){case"keyup":return O1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ym(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ai=!1;function P1(e,t){switch(e){case"compositionend":return Ym(t);case"keypress":return t.which!==32?null:(Wd=!0,Hd);case"textInput":return e=t.data,e===Hd&&Wd?null:e;default:return null}}function N1(e,t){if(ai)return e==="compositionend"||!hf&&Km(e,t)?(e=Qm(),Yo=cf=Xn=null,ai=!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 qm&&t.locale!=="ko"?null:t.data;default:return null}}var A1={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 Qd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!A1[e.type]:t==="textarea"}function Gm(e,t,n,r){Tm(r),t=va(t,"onChange"),0<t.length&&(n=new ff("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var _s=null,Ls=null;function j1(e){a0(e,0)}function Qa(e){var t=ci(e);if(xm(t))return e}function F1(e,t){if(e==="change")return t}var Xm=!1;if(Cn){var Hl;if(Cn){var Wl="oninput"in document;if(!Wl){var qd=document.createElement("div");qd.setAttribute("oninput","return;"),Wl=typeof qd.oninput=="function"}Hl=Wl}else Hl=!1;Xm=Hl&&(!document.documentMode||9<document.documentMode)}function Kd(){_s&&(_s.detachEvent("onpropertychange",Zm),Ls=_s=null)}function Zm(e){if(e.propertyName==="value"&&Qa(Ls)){var t=[];Gm(t,Ls,e,sf(e)),Nm(j1,t)}}function $1(e,t,n){e==="focusin"?(Kd(),_s=t,Ls=n,_s.attachEvent("onpropertychange",Zm)):e==="focusout"&&Kd()}function I1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qa(Ls)}function L1(e,t){if(e==="click")return Qa(t)}function D1(e,t){if(e==="input"||e==="change")return Qa(t)}function M1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gt=typeof Object.is=="function"?Object.is:M1;function Ds(e,t){if(Gt(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(!Su.call(t,i)||!Gt(e[i],t[i]))return!1}return!0}function Yd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gd(e,t){var n=Yd(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=Yd(n)}}function Jm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Jm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function e0(){for(var e=window,t=fa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fa(e.document)}return t}function pf(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 z1(e){var t=e0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Jm(n.ownerDocument.documentElement,n)){if(r!==null&&pf(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,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Gd(n,s);var o=Gd(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var B1=Cn&&"documentMode"in document&&11>=document.documentMode,li=null,zu=null,bs=null,Bu=!1;function Xd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Bu||li==null||li!==fa(r)||(r=li,"selectionStart"in r&&pf(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}),bs&&Ds(bs,r)||(bs=r,r=va(zu,"onSelect"),0<r.length&&(t=new ff("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=li)))}function Po(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ui={animationend:Po("Animation","AnimationEnd"),animationiteration:Po("Animation","AnimationIteration"),animationstart:Po("Animation","AnimationStart"),transitionend:Po("Transition","TransitionEnd")},Ql={},t0={};Cn&&(t0=document.createElement("div").style,"AnimationEvent"in window||(delete ui.animationend.animation,delete ui.animationiteration.animation,delete ui.animationstart.animation),"TransitionEvent"in window||delete ui.transitionend.transition);function qa(e){if(Ql[e])return Ql[e];if(!ui[e])return e;var t=ui[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in t0)return Ql[e]=t[n];return e}var n0=qa("animationend"),r0=qa("animationiteration"),i0=qa("animationstart"),s0=qa("transitionend"),o0=new Map,Zd="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 hr(e,t){o0.set(e,t),qr(t,[e])}for(var ql=0;ql<Zd.length;ql++){var Kl=Zd[ql],U1=Kl.toLowerCase(),V1=Kl[0].toUpperCase()+Kl.slice(1);hr(U1,"on"+V1)}hr(n0,"onAnimationEnd");hr(r0,"onAnimationIteration");hr(i0,"onAnimationStart");hr("dblclick","onDoubleClick");hr("focusin","onFocus");hr("focusout","onBlur");hr(s0,"onTransitionEnd");Di("onMouseEnter",["mouseout","mouseover"]);Di("onMouseLeave",["mouseout","mouseover"]);Di("onPointerEnter",["pointerout","pointerover"]);Di("onPointerLeave",["pointerout","pointerover"]);qr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));qr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));qr("onBeforeInput",["compositionend","keypress","textInput","paste"]);qr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));qr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));qr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gs="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),H1=new Set("cancel close invalid load scroll toggle".split(" ").concat(gs));function Jd(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Uv(r,t,void 0,e),e.currentTarget=null}function a0(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 s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;Jd(i,a,c),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,c=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;Jd(i,a,c),s=l}}}if(ha)throw e=Iu,ha=!1,Iu=null,e}function ue(e,t){var n=t[Qu];n===void 0&&(n=t[Qu]=new Set);var r=e+"__bubble";n.has(r)||(l0(t,e,2,!1),n.add(r))}function Yl(e,t,n){var r=0;t&&(r|=4),l0(n,e,r,t)}var No="_reactListening"+Math.random().toString(36).slice(2);function Ms(e){if(!e[No]){e[No]=!0,mm.forEach(function(n){n!=="selectionchange"&&(H1.has(n)||Yl(n,!1,e),Yl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[No]||(t[No]=!0,Yl("selectionchange",!1,t))}}function l0(e,t,n,r){switch(Wm(t)){case 1:var i=i1;break;case 4:i=s1;break;default:i=uf}n=i.bind(null,t,n,e),i=void 0,!$u||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 Gl(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=_r(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}Nm(function(){var c=s,d=sf(n),u=[];e:{var f=o0.get(e);if(f!==void 0){var m=ff,v=e;switch(e){case"keypress":if(Go(n)===0)break e;case"keydown":case"keyup":m=x1;break;case"focusin":v="focus",m=Vl;break;case"focusout":v="blur",m=Vl;break;case"beforeblur":case"afterblur":m=Vl;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":m=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=l1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=_1;break;case n0:case r0:case i0:m=f1;break;case s0:m=k1;break;case"scroll":m=o1;break;case"wheel":m=T1;break;case"copy":case"cut":case"paste":m=h1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Vd}var w=(t&4)!==0,x=!w&&e==="scroll",p=w?f!==null?f+"Capture":null:f;w=[];for(var h=c,g;h!==null;){g=h;var _=g.stateNode;if(g.tag===5&&_!==null&&(g=_,p!==null&&(_=js(h,p),_!=null&&w.push(zs(h,_,g)))),x)break;h=h.return}0<w.length&&(f=new m(f,v,null,n,d),u.push({event:f,listeners:w}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",f&&n!==ju&&(v=n.relatedTarget||n.fromElement)&&(_r(v)||v[Tn]))break e;if((m||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,m?(v=n.relatedTarget||n.toElement,m=c,v=v?_r(v):null,v!==null&&(x=Kr(v),v!==x||v.tag!==5&&v.tag!==6)&&(v=null)):(m=null,v=c),m!==v)){if(w=Bd,_="onMouseLeave",p="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(w=Vd,_="onPointerLeave",p="onPointerEnter",h="pointer"),x=m==null?f:ci(m),g=v==null?f:ci(v),f=new w(_,h+"leave",m,n,d),f.target=x,f.relatedTarget=g,_=null,_r(d)===c&&(w=new w(p,h+"enter",v,n,d),w.target=g,w.relatedTarget=x,_=w),x=_,m&&v)t:{for(w=m,p=v,h=0,g=w;g;g=ri(g))h++;for(g=0,_=p;_;_=ri(_))g++;for(;0<h-g;)w=ri(w),h--;for(;0<g-h;)p=ri(p),g--;for(;h--;){if(w===p||p!==null&&w===p.alternate)break t;w=ri(w),p=ri(p)}w=null}else w=null;m!==null&&eh(u,f,m,w,!1),v!==null&&x!==null&&eh(u,x,v,w,!0)}}e:{if(f=c?ci(c):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var T=F1;else if(Qd(f))if(Xm)T=D1;else{T=I1;var C=$1}else(m=f.nodeName)&&m.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(T=L1);if(T&&(T=T(e,c))){Gm(u,T,n,d);break e}C&&C(e,f,c),e==="focusout"&&(C=f._wrapperState)&&C.controlled&&f.type==="number"&&Ou(f,"number",f.value)}switch(C=c?ci(c):window,e){case"focusin":(Qd(C)||C.contentEditable==="true")&&(li=C,zu=c,bs=null);break;case"focusout":bs=zu=li=null;break;case"mousedown":Bu=!0;break;case"contextmenu":case"mouseup":case"dragend":Bu=!1,Xd(u,n,d);break;case"selectionchange":if(B1)break;case"keydown":case"keyup":Xd(u,n,d)}var k;if(hf)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else ai?Km(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(qm&&n.locale!=="ko"&&(ai||R!=="onCompositionStart"?R==="onCompositionEnd"&&ai&&(k=Qm()):(Xn=d,cf="value"in Xn?Xn.value:Xn.textContent,ai=!0)),C=va(c,R),0<C.length&&(R=new Ud(R,e,null,n,d),u.push({event:R,listeners:C}),k?R.data=k:(k=Ym(n),k!==null&&(R.data=k)))),(k=R1?P1(e,n):N1(e,n))&&(c=va(c,"onBeforeInput"),0<c.length&&(d=new Ud("onBeforeInput","beforeinput",null,n,d),u.push({event:d,listeners:c}),d.data=k))}a0(u,t)})}function zs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function va(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=js(e,n),s!=null&&r.unshift(zs(e,s,i)),s=js(e,t),s!=null&&r.push(zs(e,s,i))),e=e.return}return r}function ri(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function eh(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,i?(l=js(n,s),l!=null&&o.unshift(zs(n,l,a))):i||(l=js(n,s),l!=null&&o.push(zs(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var W1=/\r\n?/g,Q1=/\u0000|\uFFFD/g;function th(e){return(typeof e=="string"?e:""+e).replace(W1,`
38
+ `).replace(Q1,"")}function Ao(e,t,n){if(t=th(t),th(e)!==t&&n)throw Error(O(425))}function wa(){}var Uu=null,Vu=null;function Hu(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 Wu=typeof setTimeout=="function"?setTimeout:void 0,q1=typeof clearTimeout=="function"?clearTimeout:void 0,nh=typeof Promise=="function"?Promise:void 0,K1=typeof queueMicrotask=="function"?queueMicrotask:typeof nh<"u"?function(e){return nh.resolve(null).then(e).catch(Y1)}:Wu;function Y1(e){setTimeout(function(){throw e})}function Xl(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),Is(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Is(t)}function rr(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 rh(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 Gi=Math.random().toString(36).slice(2),an="__reactFiber$"+Gi,Bs="__reactProps$"+Gi,Tn="__reactContainer$"+Gi,Qu="__reactEvents$"+Gi,G1="__reactListeners$"+Gi,X1="__reactHandles$"+Gi;function _r(e){var t=e[an];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Tn]||n[an]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=rh(e);e!==null;){if(n=e[an])return n;e=rh(e)}return t}e=n,n=e.parentNode}return null}function ao(e){return e=e[an]||e[Tn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ci(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function Ka(e){return e[Bs]||null}var qu=[],fi=-1;function pr(e){return{current:e}}function fe(e){0>fi||(e.current=qu[fi],qu[fi]=null,fi--)}function le(e,t){fi++,qu[fi]=e.current,e.current=t}var fr={},Ue=pr(fr),ot=pr(!1),Mr=fr;function Mi(e,t){var n=e.type.contextTypes;if(!n)return fr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function at(e){return e=e.childContextTypes,e!=null}function xa(){fe(ot),fe(Ue)}function ih(e,t,n){if(Ue.current!==fr)throw Error(O(168));le(Ue,t),le(ot,n)}function u0(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,$v(e)||"Unknown",i));return ye({},n,r)}function Sa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fr,Mr=Ue.current,le(Ue,e),le(ot,ot.current),!0}function sh(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=u0(e,t,Mr),r.__reactInternalMemoizedMergedChildContext=e,fe(ot),fe(Ue),le(Ue,e)):fe(ot),le(ot,n)}var wn=null,Ya=!1,Zl=!1;function c0(e){wn===null?wn=[e]:wn.push(e)}function Z1(e){Ya=!0,c0(e)}function mr(){if(!Zl&&wn!==null){Zl=!0;var e=0,t=re;try{var n=wn;for(re=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}wn=null,Ya=!1}catch(i){throw wn!==null&&(wn=wn.slice(e+1)),$m(of,mr),i}finally{re=t,Zl=!1}}return null}var di=[],hi=0,Ea=null,_a=0,Rt=[],Pt=0,zr=null,En=1,_n="";function xr(e,t){di[hi++]=_a,di[hi++]=Ea,Ea=e,_a=t}function f0(e,t,n){Rt[Pt++]=En,Rt[Pt++]=_n,Rt[Pt++]=zr,zr=e;var r=En;e=_n;var i=32-Kt(r)-1;r&=~(1<<i),n+=1;var s=32-Kt(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,En=1<<32-Kt(t)+i|n<<i|r,_n=s+e}else En=1<<s|n<<i|r,_n=e}function mf(e){e.return!==null&&(xr(e,1),f0(e,1,0))}function yf(e){for(;e===Ea;)Ea=di[--hi],di[hi]=null,_a=di[--hi],di[hi]=null;for(;e===zr;)zr=Rt[--Pt],Rt[Pt]=null,_n=Rt[--Pt],Rt[Pt]=null,En=Rt[--Pt],Rt[Pt]=null}var wt=null,yt=null,he=!1,Ht=null;function d0(e,t){var n=At(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 oh(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,wt=e,yt=rr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,wt=e,yt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=zr!==null?{id:En,overflow:_n}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=At(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,wt=e,yt=null,!0):!1;default:return!1}}function Ku(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Yu(e){if(he){var t=yt;if(t){var n=t;if(!oh(e,t)){if(Ku(e))throw Error(O(418));t=rr(n.nextSibling);var r=wt;t&&oh(e,t)?d0(r,n):(e.flags=e.flags&-4097|2,he=!1,wt=e)}}else{if(Ku(e))throw Error(O(418));e.flags=e.flags&-4097|2,he=!1,wt=e}}}function ah(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;wt=e}function jo(e){if(e!==wt)return!1;if(!he)return ah(e),he=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Hu(e.type,e.memoizedProps)),t&&(t=yt)){if(Ku(e))throw h0(),Error(O(418));for(;t;)d0(e,t),t=rr(t.nextSibling)}if(ah(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){yt=rr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}yt=null}}else yt=wt?rr(e.stateNode.nextSibling):null;return!0}function h0(){for(var e=yt;e;)e=rr(e.nextSibling)}function zi(){yt=wt=null,he=!1}function gf(e){Ht===null?Ht=[e]:Ht.push(e)}var J1=Pn.ReactCurrentBatchConfig;function us(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,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(O(284));if(!n._owner)throw Error(O(290,e))}return e}function Fo(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function lh(e){var t=e._init;return t(e._payload)}function p0(e){function t(p,h){if(e){var g=p.deletions;g===null?(p.deletions=[h],p.flags|=16):g.push(h)}}function n(p,h){if(!e)return null;for(;h!==null;)t(p,h),h=h.sibling;return null}function r(p,h){for(p=new Map;h!==null;)h.key!==null?p.set(h.key,h):p.set(h.index,h),h=h.sibling;return p}function i(p,h){return p=ar(p,h),p.index=0,p.sibling=null,p}function s(p,h,g){return p.index=g,e?(g=p.alternate,g!==null?(g=g.index,g<h?(p.flags|=2,h):g):(p.flags|=2,h)):(p.flags|=1048576,h)}function o(p){return e&&p.alternate===null&&(p.flags|=2),p}function a(p,h,g,_){return h===null||h.tag!==6?(h=su(g,p.mode,_),h.return=p,h):(h=i(h,g),h.return=p,h)}function l(p,h,g,_){var T=g.type;return T===oi?d(p,h,g.props.children,_,g.key):h!==null&&(h.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Dn&&lh(T)===h.type)?(_=i(h,g.props),_.ref=us(p,h,g),_.return=p,_):(_=ra(g.type,g.key,g.props,null,p.mode,_),_.ref=us(p,h,g),_.return=p,_)}function c(p,h,g,_){return h===null||h.tag!==4||h.stateNode.containerInfo!==g.containerInfo||h.stateNode.implementation!==g.implementation?(h=ou(g,p.mode,_),h.return=p,h):(h=i(h,g.children||[]),h.return=p,h)}function d(p,h,g,_,T){return h===null||h.tag!==7?(h=$r(g,p.mode,_,T),h.return=p,h):(h=i(h,g),h.return=p,h)}function u(p,h,g){if(typeof h=="string"&&h!==""||typeof h=="number")return h=su(""+h,p.mode,g),h.return=p,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case _o:return g=ra(h.type,h.key,h.props,null,p.mode,g),g.ref=us(p,null,h),g.return=p,g;case si:return h=ou(h,p.mode,g),h.return=p,h;case Dn:var _=h._init;return u(p,_(h._payload),g)}if(ms(h)||is(h))return h=$r(h,p.mode,g,null),h.return=p,h;Fo(p,h)}return null}function f(p,h,g,_){var T=h!==null?h.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return T!==null?null:a(p,h,""+g,_);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case _o:return g.key===T?l(p,h,g,_):null;case si:return g.key===T?c(p,h,g,_):null;case Dn:return T=g._init,f(p,h,T(g._payload),_)}if(ms(g)||is(g))return T!==null?null:d(p,h,g,_,null);Fo(p,g)}return null}function m(p,h,g,_,T){if(typeof _=="string"&&_!==""||typeof _=="number")return p=p.get(g)||null,a(h,p,""+_,T);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case _o:return p=p.get(_.key===null?g:_.key)||null,l(h,p,_,T);case si:return p=p.get(_.key===null?g:_.key)||null,c(h,p,_,T);case Dn:var C=_._init;return m(p,h,g,C(_._payload),T)}if(ms(_)||is(_))return p=p.get(g)||null,d(h,p,_,T,null);Fo(h,_)}return null}function v(p,h,g,_){for(var T=null,C=null,k=h,R=h=0,I=null;k!==null&&R<g.length;R++){k.index>R?(I=k,k=null):I=k.sibling;var D=f(p,k,g[R],_);if(D===null){k===null&&(k=I);break}e&&k&&D.alternate===null&&t(p,k),h=s(D,h,R),C===null?T=D:C.sibling=D,C=D,k=I}if(R===g.length)return n(p,k),he&&xr(p,R),T;if(k===null){for(;R<g.length;R++)k=u(p,g[R],_),k!==null&&(h=s(k,h,R),C===null?T=k:C.sibling=k,C=k);return he&&xr(p,R),T}for(k=r(p,k);R<g.length;R++)I=m(k,p,R,g[R],_),I!==null&&(e&&I.alternate!==null&&k.delete(I.key===null?R:I.key),h=s(I,h,R),C===null?T=I:C.sibling=I,C=I);return e&&k.forEach(function(B){return t(p,B)}),he&&xr(p,R),T}function w(p,h,g,_){var T=is(g);if(typeof T!="function")throw Error(O(150));if(g=T.call(g),g==null)throw Error(O(151));for(var C=T=null,k=h,R=h=0,I=null,D=g.next();k!==null&&!D.done;R++,D=g.next()){k.index>R?(I=k,k=null):I=k.sibling;var B=f(p,k,D.value,_);if(B===null){k===null&&(k=I);break}e&&k&&B.alternate===null&&t(p,k),h=s(B,h,R),C===null?T=B:C.sibling=B,C=B,k=I}if(D.done)return n(p,k),he&&xr(p,R),T;if(k===null){for(;!D.done;R++,D=g.next())D=u(p,D.value,_),D!==null&&(h=s(D,h,R),C===null?T=D:C.sibling=D,C=D);return he&&xr(p,R),T}for(k=r(p,k);!D.done;R++,D=g.next())D=m(k,p,R,D.value,_),D!==null&&(e&&D.alternate!==null&&k.delete(D.key===null?R:D.key),h=s(D,h,R),C===null?T=D:C.sibling=D,C=D);return e&&k.forEach(function(se){return t(p,se)}),he&&xr(p,R),T}function x(p,h,g,_){if(typeof g=="object"&&g!==null&&g.type===oi&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case _o:e:{for(var T=g.key,C=h;C!==null;){if(C.key===T){if(T=g.type,T===oi){if(C.tag===7){n(p,C.sibling),h=i(C,g.props.children),h.return=p,p=h;break e}}else if(C.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Dn&&lh(T)===C.type){n(p,C.sibling),h=i(C,g.props),h.ref=us(p,C,g),h.return=p,p=h;break e}n(p,C);break}else t(p,C);C=C.sibling}g.type===oi?(h=$r(g.props.children,p.mode,_,g.key),h.return=p,p=h):(_=ra(g.type,g.key,g.props,null,p.mode,_),_.ref=us(p,h,g),_.return=p,p=_)}return o(p);case si:e:{for(C=g.key;h!==null;){if(h.key===C)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(p,h.sibling),h=i(h,g.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=ou(g,p.mode,_),h.return=p,p=h}return o(p);case Dn:return C=g._init,x(p,h,C(g._payload),_)}if(ms(g))return v(p,h,g,_);if(is(g))return w(p,h,g,_);Fo(p,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(n(p,h.sibling),h=i(h,g),h.return=p,p=h):(n(p,h),h=su(g,p.mode,_),h.return=p,p=h),o(p)):n(p,h)}return x}var Bi=p0(!0),m0=p0(!1),ba=pr(null),ka=null,pi=null,vf=null;function wf(){vf=pi=ka=null}function xf(e){var t=ba.current;fe(ba),e._currentValue=t}function Gu(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 Ei(e,t){ka=e,vf=pi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(st=!0),e.firstContext=null)}function Ft(e){var t=e._currentValue;if(vf!==e)if(e={context:e,memoizedValue:t,next:null},pi===null){if(ka===null)throw Error(O(308));pi=e,ka.dependencies={lanes:0,firstContext:e}}else pi=pi.next=e;return t}var br=null;function Sf(e){br===null?br=[e]:br.push(e)}function y0(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Sf(t)):(n.next=i.next,i.next=n),t.interleaved=n,On(e,r)}function On(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 Mn=!1;function Ef(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function g0(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 bn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ir(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,J&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,On(e,n)}return i=r.interleaved,i===null?(t.next=t,Sf(r)):(t.next=i.next,i.next=t),r.interleaved=t,On(e,n)}function Xo(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,af(e,n)}}function uh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,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 Ca(e,t,n,r){var i=e.updateQueue;Mn=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?s=c:o.next=c,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=l))}if(s!==null){var u=i.baseState;o=0,d=c=l=null,a=s;do{var f=a.lane,m=a.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,w=a;switch(f=t,m=n,w.tag){case 1:if(v=w.payload,typeof v=="function"){u=v.call(m,u,f);break e}u=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=w.payload,f=typeof v=="function"?v.call(m,u,f):v,f==null)break e;u=ye({},u,f);break e;case 2:Mn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else m={eventTime:m,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=m,l=u):d=d.next=m,o|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(d===null&&(l=u),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Ur|=o,e.lanes=o,e.memoizedState=u}}function ch(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 lo={},un=pr(lo),Us=pr(lo),Vs=pr(lo);function kr(e){if(e===lo)throw Error(O(174));return e}function _f(e,t){switch(le(Vs,t),le(Us,e),le(un,lo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Pu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Pu(t,e)}fe(un),le(un,t)}function Ui(){fe(un),fe(Us),fe(Vs)}function v0(e){kr(Vs.current);var t=kr(un.current),n=Pu(t,e.type);t!==n&&(le(Us,e),le(un,n))}function bf(e){Us.current===e&&(fe(un),fe(Us))}var pe=pr(0);function Ta(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 Jl=[];function kf(){for(var e=0;e<Jl.length;e++)Jl[e]._workInProgressVersionPrimary=null;Jl.length=0}var Zo=Pn.ReactCurrentDispatcher,eu=Pn.ReactCurrentBatchConfig,Br=0,me=null,_e=null,Re=null,Oa=!1,ks=!1,Hs=0,ew=0;function De(){throw Error(O(321))}function Cf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Gt(e[n],t[n]))return!1;return!0}function Tf(e,t,n,r,i,s){if(Br=s,me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Zo.current=e===null||e.memoizedState===null?iw:sw,e=n(r,i),ks){s=0;do{if(ks=!1,Hs=0,25<=s)throw Error(O(301));s+=1,Re=_e=null,t.updateQueue=null,Zo.current=ow,e=n(r,i)}while(ks)}if(Zo.current=Ra,t=_e!==null&&_e.next!==null,Br=0,Re=_e=me=null,Oa=!1,t)throw Error(O(300));return e}function Of(){var e=Hs!==0;return Hs=0,e}function en(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Re===null?me.memoizedState=Re=e:Re=Re.next=e,Re}function $t(){if(_e===null){var e=me.alternate;e=e!==null?e.memoizedState:null}else e=_e.next;var t=Re===null?me.memoizedState:Re.next;if(t!==null)Re=t,_e=e;else{if(e===null)throw Error(O(310));_e=e,e={memoizedState:_e.memoizedState,baseState:_e.baseState,baseQueue:_e.baseQueue,queue:_e.queue,next:null},Re===null?me.memoizedState=Re=e:Re=Re.next=e}return Re}function Ws(e,t){return typeof t=="function"?t(e):t}function tu(e){var t=$t(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=_e,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,l=null,c=s;do{var d=c.lane;if((Br&d)===d)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var u={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=u,o=r):l=l.next=u,me.lanes|=d,Ur|=d}c=c.next}while(c!==null&&c!==s);l===null?o=r:l.next=a,Gt(r,t.memoizedState)||(st=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,me.lanes|=s,Ur|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function nu(e){var t=$t(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);Gt(s,t.memoizedState)||(st=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function w0(){}function x0(e,t){var n=me,r=$t(),i=t(),s=!Gt(r.memoizedState,i);if(s&&(r.memoizedState=i,st=!0),r=r.queue,Rf(_0.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Re!==null&&Re.memoizedState.tag&1){if(n.flags|=2048,Qs(9,E0.bind(null,n,r,i,t),void 0,null),Pe===null)throw Error(O(349));Br&30||S0(n,t,i)}return i}function S0(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=me.updateQueue,t===null?(t={lastEffect:null,stores:null},me.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function E0(e,t,n,r){t.value=n,t.getSnapshot=r,b0(t)&&k0(e)}function _0(e,t,n){return n(function(){b0(t)&&k0(e)})}function b0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gt(e,n)}catch{return!0}}function k0(e){var t=On(e,1);t!==null&&Yt(t,e,1,-1)}function fh(e){var t=en();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ws,lastRenderedState:e},t.queue=e,e=e.dispatch=rw.bind(null,me,e),[t.memoizedState,e]}function Qs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=me.updateQueue,t===null?(t={lastEffect:null,stores:null},me.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 C0(){return $t().memoizedState}function Jo(e,t,n,r){var i=en();me.flags|=e,i.memoizedState=Qs(1|t,n,void 0,r===void 0?null:r)}function Ga(e,t,n,r){var i=$t();r=r===void 0?null:r;var s=void 0;if(_e!==null){var o=_e.memoizedState;if(s=o.destroy,r!==null&&Cf(r,o.deps)){i.memoizedState=Qs(t,n,s,r);return}}me.flags|=e,i.memoizedState=Qs(1|t,n,s,r)}function dh(e,t){return Jo(8390656,8,e,t)}function Rf(e,t){return Ga(2048,8,e,t)}function T0(e,t){return Ga(4,2,e,t)}function O0(e,t){return Ga(4,4,e,t)}function R0(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 P0(e,t,n){return n=n!=null?n.concat([e]):null,Ga(4,4,R0.bind(null,t,e),n)}function Pf(){}function N0(e,t){var n=$t();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Cf(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function A0(e,t){var n=$t();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Cf(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function j0(e,t,n){return Br&21?(Gt(n,t)||(n=Dm(),me.lanes|=n,Ur|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,st=!0),e.memoizedState=n)}function tw(e,t){var n=re;re=n!==0&&4>n?n:4,e(!0);var r=eu.transition;eu.transition={};try{e(!1),t()}finally{re=n,eu.transition=r}}function F0(){return $t().memoizedState}function nw(e,t,n){var r=or(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},$0(e))I0(t,n);else if(n=y0(e,t,n,r),n!==null){var i=Ye();Yt(n,e,r,i),L0(n,t,r)}}function rw(e,t,n){var r=or(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if($0(e))I0(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,Gt(a,o)){var l=t.interleaved;l===null?(i.next=i,Sf(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=y0(e,t,i,r),n!==null&&(i=Ye(),Yt(n,e,r,i),L0(n,t,r))}}function $0(e){var t=e.alternate;return e===me||t!==null&&t===me}function I0(e,t){ks=Oa=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function L0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,af(e,n)}}var Ra={readContext:Ft,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useInsertionEffect:De,useLayoutEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useMutableSource:De,useSyncExternalStore:De,useId:De,unstable_isNewReconciler:!1},iw={readContext:Ft,useCallback:function(e,t){return en().memoizedState=[e,t===void 0?null:t],e},useContext:Ft,useEffect:dh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Jo(4194308,4,R0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Jo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Jo(4,2,e,t)},useMemo:function(e,t){var n=en();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=en();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=nw.bind(null,me,e),[r.memoizedState,e]},useRef:function(e){var t=en();return e={current:e},t.memoizedState=e},useState:fh,useDebugValue:Pf,useDeferredValue:function(e){return en().memoizedState=e},useTransition:function(){var e=fh(!1),t=e[0];return e=tw.bind(null,e[1]),en().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=me,i=en();if(he){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),Pe===null)throw Error(O(349));Br&30||S0(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,dh(_0.bind(null,r,s,e),[e]),r.flags|=2048,Qs(9,E0.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=en(),t=Pe.identifierPrefix;if(he){var n=_n,r=En;n=(r&~(1<<32-Kt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Hs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ew++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sw={readContext:Ft,useCallback:N0,useContext:Ft,useEffect:Rf,useImperativeHandle:P0,useInsertionEffect:T0,useLayoutEffect:O0,useMemo:A0,useReducer:tu,useRef:C0,useState:function(){return tu(Ws)},useDebugValue:Pf,useDeferredValue:function(e){var t=$t();return j0(t,_e.memoizedState,e)},useTransition:function(){var e=tu(Ws)[0],t=$t().memoizedState;return[e,t]},useMutableSource:w0,useSyncExternalStore:x0,useId:F0,unstable_isNewReconciler:!1},ow={readContext:Ft,useCallback:N0,useContext:Ft,useEffect:Rf,useImperativeHandle:P0,useInsertionEffect:T0,useLayoutEffect:O0,useMemo:A0,useReducer:nu,useRef:C0,useState:function(){return nu(Ws)},useDebugValue:Pf,useDeferredValue:function(e){var t=$t();return _e===null?t.memoizedState=e:j0(t,_e.memoizedState,e)},useTransition:function(){var e=nu(Ws)[0],t=$t().memoizedState;return[e,t]},useMutableSource:w0,useSyncExternalStore:x0,useId:F0,unstable_isNewReconciler:!1};function zt(e,t){if(e&&e.defaultProps){t=ye({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Xu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ye({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Xa={isMounted:function(e){return(e=e._reactInternals)?Kr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ye(),i=or(e),s=bn(r,i);s.payload=t,n!=null&&(s.callback=n),t=ir(e,s,i),t!==null&&(Yt(t,e,i,r),Xo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ye(),i=or(e),s=bn(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=ir(e,s,i),t!==null&&(Yt(t,e,i,r),Xo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ye(),r=or(e),i=bn(n,r);i.tag=2,t!=null&&(i.callback=t),t=ir(e,i,r),t!==null&&(Yt(t,e,r,n),Xo(t,e,r))}};function hh(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!Ds(n,r)||!Ds(i,s):!0}function D0(e,t,n){var r=!1,i=fr,s=t.contextType;return typeof s=="object"&&s!==null?s=Ft(s):(i=at(t)?Mr:Ue.current,r=t.contextTypes,s=(r=r!=null)?Mi(e,i):fr),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Xa,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function ph(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&&Xa.enqueueReplaceState(t,t.state,null)}function Zu(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Ef(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Ft(s):(s=at(t)?Mr:Ue.current,i.context=Mi(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Xu(e,t,s,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&&Xa.enqueueReplaceState(i,i.state,null),Ca(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Vi(e,t){try{var n="",r=t;do n+=Fv(r),r=r.return;while(r);var i=n}catch(s){i=`
39
39
  Error generating stack: `+s.message+`
40
- `+s.stack}return{value:e,source:t,stack:i,digest:null}}function Aa(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function bu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Q1=typeof WeakMap=="function"?WeakMap:Map;function py(e,t,n){n=ln(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){il||(il=!0,Lu=r),bu(e,t)},n}function my(e,t,n){n=ln(-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(){bu(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){bu(e,t),typeof r!="function"&&(Dn===null?Dn=new Set([this]):Dn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Hd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Q1;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=ow.bind(null,e,t,n),t.then(e,e))}function Wd(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 Qd(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=ln(-1,1),t.tag=2,Mn(n,t,1))),n.lanes|=1),e)}var q1=hn.ReactCurrentOwner,We=!1;function Ie(e,t,n,r){t.child=e===null?Hm(t,null,n,r):wi(t,e.child,n,r)}function qd(e,t,n,r,i){n=n.render;var s=t.ref;return ei(t,i),r=ef(e,t,n,r,s,i),n=tf(),e!==null&&!We?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,dn(e,t,i)):(oe&&n&&Bc(t),t.flags|=1,Ie(e,t,r,i),t.child)}function Kd(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!df(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,yy(e,t,s,r,i)):(e=Po(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:gs,n(o,r)&&e.ref===t.ref)return dn(e,t,i)}return t.flags|=1,e=Un(s,r),e.ref=t.ref,e.return=t,t.child=e}function yy(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(gs(s,r)&&e.ref===t.ref)if(We=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(We=!0);else return t.lanes=e.lanes,dn(e,t,i)}return Ou(e,t,n,r,i)}function gy(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ee(Kr,Ze),Ze|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ee(Kr,Ze),Ze|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ee(Kr,Ze),Ze|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,ee(Kr,Ze),Ze|=r;return Ie(e,t,i,n),t.child}function vy(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ou(e,t,n,r,i){var s=qe(n)?vr:Fe.current;return s=gi(t,s),ei(t,i),n=ef(e,t,n,r,s,i),r=tf(),e!==null&&!We?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,dn(e,t,i)):(oe&&r&&Bc(t),t.flags|=1,Ie(e,t,n,i),t.child)}function Gd(e,t,n,r,i){if(qe(n)){var s=!0;Ko(t)}else s=!1;if(ei(t,i),t.stateNode===null)bo(e,t),hy(t,n,r),Tu(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var a=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=mt(u):(u=qe(n)?vr:Fe.current,u=gi(t,u));var d=n.getDerivedStateFromProps,c=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||a!==u)&&Vd(t,o,r,u),wn=!1;var f=t.memoizedState;o.state=f,Jo(t,r,o,i),a=t.memoizedState,l!==r||f!==a||Qe.current||wn?(typeof d=="function"&&(Cu(t,n,d,r),a=t.memoizedState),(l=wn||Bd(t,n,l,r,f,a,u))?(c||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),o.props=r,o.state=a,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Qm(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:xt(t.type,l),o.props=u,c=t.pendingProps,f=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=mt(a):(a=qe(n)?vr:Fe.current,a=gi(t,a));var m=n.getDerivedStateFromProps;(d=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==c||f!==a)&&Vd(t,o,r,a),wn=!1,f=t.memoizedState,o.state=f,Jo(t,r,o,i);var v=t.memoizedState;l!==c||f!==v||Qe.current||wn?(typeof m=="function"&&(Cu(t,n,m,r),v=t.memoizedState),(u=wn||Bd(t,n,u,r,f,v,a)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),o.props=r,o.state=v,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ru(e,t,n,r,s,i)}function Ru(e,t,n,r,i,s){vy(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&jd(t,n,!1),dn(e,t,s);r=t.stateNode,q1.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=wi(t,e.child,null,s),t.child=wi(t,null,l,s)):Ie(e,t,l,s),t.memoizedState=r.state,i&&jd(t,n,!0),t.child}function wy(e){var t=e.stateNode;t.pendingContext?Fd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Fd(e,t.context,!1),Yc(e,t.containerInfo)}function Yd(e,t,n,r,i){return vi(),Hc(i),t.flags|=256,Ie(e,t,n,r),t.child}var Pu={dehydrated:null,treeContext:null,retryLane:0};function Au(e){return{baseLanes:e,cachePool:null,transitions:null}}function Sy(e,t,n){var r=t.pendingProps,i=le.current,s=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ee(le,i&1),e===null)return Eu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Ol(o,r,0,null),e=pr(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Au(n),t.memoizedState=Pu,e):sf(t,o));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return K1(e,t,o,r,l,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Un(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?s=Un(l,s):(s=pr(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?Au(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=Pu,r}return s=e.child,e=s.sibling,r=Un(s,{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 sf(e,t){return t=Ol({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function lo(e,t,n,r){return r!==null&&Hc(r),wi(t,e.child,null,n),e=sf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function K1(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=Aa(Error(b(422))),lo(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Ol({mode:"visible",children:r.children},i,0,null),s=pr(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&wi(t,e.child,null,o),t.child.memoizedState=Au(o),t.memoizedState=Pu,s);if(!(t.mode&1))return lo(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(b(419)),r=Aa(s,r,void 0),lo(e,t,o,r)}if(l=(o&e.childLanes)!==0,We||l){if(r=Ee,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,fn(e,i),Rt(r,e,i,-1))}return ff(),r=Aa(Error(b(421))),lo(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=lw.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,Je=Ln(i.nextSibling),nt=t,oe=!0,Ct=null,e!==null&&(ct[ft++]=sn,ct[ft++]=on,ct[ft++]=wr,sn=e.id,on=e.overflow,wr=t),t=sf(t,r.children),t.flags|=4096,t)}function Xd(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ku(e.return,t,n)}function Na(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function xy(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Ie(e,t,r.children,n),r=le.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&&Xd(e,n,t);else if(e.tag===19)Xd(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(ee(le,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&&el(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Na(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&el(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Na(t,!0,n,null,s);break;case"together":Na(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function bo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function dn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),xr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(b(153));if(t.child!==null){for(e=t.child,n=Un(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Un(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function G1(e,t,n){switch(t.tag){case 3:wy(t),vi();break;case 5:qm(t);break;case 1:qe(t.type)&&Ko(t);break;case 4:Yc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ee(Xo,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ee(le,le.current&1),t.flags|=128,null):n&t.child.childLanes?Sy(e,t,n):(ee(le,le.current&1),e=dn(e,t,n),e!==null?e.sibling:null);ee(le,le.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return xy(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ee(le,le.current),r)break;return null;case 22:case 23:return t.lanes=0,gy(e,t,n)}return dn(e,t,n)}var _y,Nu,Ey,ky;_y=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}};Nu=function(){};Ey=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ir(Wt.current);var s=null;switch(n){case"input":i=eu(e,i),r=eu(e,r),s=[];break;case"select":i=ue({},i,{value:void 0}),r=ue({},r,{value:void 0}),s=[];break;case"textarea":i=ru(e,i),r=ru(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Qo)}su(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(cs.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var a=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&l[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(s||(s=[]),s.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(s=s||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(s=s||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(cs.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&ne("scroll",e),s||l===a||(s=[])):(s=s||[]).push(u,a))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};ky=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ui(e,t){if(!oe)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 Pe(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 Y1(e,t,n){var r=t.pendingProps;switch(Vc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pe(t),null;case 1:return qe(t.type)&&qo(),Pe(t),null;case 3:return r=t.stateNode,Si(),se(Qe),se(Fe),Zc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(so(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ct!==null&&(zu(Ct),Ct=null))),Nu(e,t),Pe(t),null;case 5:Xc(t);var i=ir(_s.current);if(n=t.type,e!==null&&t.stateNode!=null)Ey(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(b(166));return Pe(t),null}if(e=ir(Wt.current),so(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Ut]=t,r[Ss]=s,e=(t.mode&1)!==0,n){case"dialog":ne("cancel",r),ne("close",r);break;case"iframe":case"object":case"embed":ne("load",r);break;case"video":case"audio":for(i=0;i<Ki.length;i++)ne(Ki[i],r);break;case"source":ne("error",r);break;case"img":case"image":case"link":ne("error",r),ne("load",r);break;case"details":ne("toggle",r);break;case"input":od(r,s),ne("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},ne("invalid",r);break;case"textarea":ad(r,s),ne("invalid",r)}su(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="children"?typeof l=="string"?r.textContent!==l&&(s.suppressHydrationWarning!==!0&&io(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&io(r.textContent,l,e),i=["children",""+l]):cs.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&ne("scroll",r)}switch(n){case"input":Ys(r),ld(r,s,!0);break;case"textarea":Ys(r),ud(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Qo)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Zp(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ut]=t,e[Ss]=r,_y(e,t,!1,!1),t.stateNode=e;e:{switch(o=ou(n,r),n){case"dialog":ne("cancel",e),ne("close",e),i=r;break;case"iframe":case"object":case"embed":ne("load",e),i=r;break;case"video":case"audio":for(i=0;i<Ki.length;i++)ne(Ki[i],e);i=r;break;case"source":ne("error",e),i=r;break;case"img":case"image":case"link":ne("error",e),ne("load",e),i=r;break;case"details":ne("toggle",e),i=r;break;case"input":od(e,r),i=eu(e,r),ne("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ue({},r,{value:void 0}),ne("invalid",e);break;case"textarea":ad(e,r),i=ru(e,r),ne("invalid",e);break;default:i=r}su(n,i),l=i;for(s in l)if(l.hasOwnProperty(s)){var a=l[s];s==="style"?tm(e,a):s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Jp(e,a)):s==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&fs(e,a):typeof a=="number"&&fs(e,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(cs.hasOwnProperty(s)?a!=null&&s==="onScroll"&&ne("scroll",e):a!=null&&Oc(e,s,a,o))}switch(n){case"input":Ys(e),ld(e,r,!1);break;case"textarea":Ys(e),ud(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Hn(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Yr(e,!!r.multiple,s,!1):r.defaultValue!=null&&Yr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Qo)}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 Pe(t),null;case 6:if(e&&t.stateNode!=null)ky(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(b(166));if(n=ir(_s.current),ir(Wt.current),so(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ut]=t,(s=r.nodeValue!==n)&&(e=nt,e!==null))switch(e.tag){case 3:io(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&io(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ut]=t,t.stateNode=r}return Pe(t),null;case 13:if(se(le),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(oe&&Je!==null&&t.mode&1&&!(t.flags&128))Bm(),vi(),t.flags|=98560,s=!1;else if(s=so(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(b(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(b(317));s[Ut]=t}else vi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Pe(t),s=!1}else Ct!==null&&(zu(Ct),Ct=null),s=!0;if(!s)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||le.current&1?we===0&&(we=3):ff())),t.updateQueue!==null&&(t.flags|=4),Pe(t),null);case 4:return Si(),Nu(e,t),e===null&&vs(t.stateNode.containerInfo),Pe(t),null;case 10:return qc(t.type._context),Pe(t),null;case 17:return qe(t.type)&&qo(),Pe(t),null;case 19:if(se(le),s=t.memoizedState,s===null)return Pe(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)Ui(s,!1);else{if(we!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=el(e),o!==null){for(t.flags|=128,Ui(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ee(le,le.current&1|2),t.child}e=e.sibling}s.tail!==null&&de()>_i&&(t.flags|=128,r=!0,Ui(s,!1),t.lanes=4194304)}else{if(!r)if(e=el(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ui(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!oe)return Pe(t),null}else 2*de()-s.renderingStartTime>_i&&n!==1073741824&&(t.flags|=128,r=!0,Ui(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=de(),t.sibling=null,n=le.current,ee(le,r?n&1|2:n&1),t):(Pe(t),null);case 22:case 23:return cf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ze&1073741824&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),null;case 24:return null;case 25:return null}throw Error(b(156,t.tag))}function X1(e,t){switch(Vc(t),t.tag){case 1:return qe(t.type)&&qo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Si(),se(Qe),se(Fe),Zc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Xc(t),null;case 13:if(se(le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(b(340));vi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(le),null;case 4:return Si(),null;case 10:return qc(t.type._context),null;case 22:case 23:return cf(),null;case 24:return null;default:return null}}var ao=!1,Ne=!1,Z1=typeof WeakSet=="function"?WeakSet:Set,F=null;function qr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function Fu(e,t,n){try{n()}catch(r){fe(e,t,r)}}var Zd=!1;function J1(e,t){if(yu=Vo,e=Rm(),Uc(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,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,u=0,d=0,c=e,f=null;t:for(;;){for(var m;c!==n||i!==0&&c.nodeType!==3||(l=o+i),c!==s||r!==0&&c.nodeType!==3||(a=o+r),c.nodeType===3&&(o+=c.nodeValue.length),(m=c.firstChild)!==null;)f=c,c=m;for(;;){if(c===e)break t;if(f===n&&++u===i&&(l=o),f===s&&++d===r&&(a=o),(m=c.nextSibling)!==null)break;c=f,f=c.parentNode}c=m}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(gu={focusedElem:e,selectionRange:n},Vo=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var w=v.memoizedProps,_=v.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:xt(t.type,w),_);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(b(163))}}catch(E){fe(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return v=Zd,Zd=!1,v}function rs(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 s=i.destroy;i.destroy=void 0,s!==void 0&&Fu(t,n,s)}i=i.next}while(i!==r)}}function Tl(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 ju(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 Cy(e){var t=e.alternate;t!==null&&(e.alternate=null,Cy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ut],delete t[Ss],delete t[Su],delete t[$1],delete t[I1])),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 Ty(e){return e.tag===5||e.tag===3||e.tag===4}function Jd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ty(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 $u(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=Qo));else if(r!==4&&(e=e.child,e!==null))for($u(e,t,n),e=e.sibling;e!==null;)$u(e,t,n),e=e.sibling}function Iu(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(Iu(e,t,n),e=e.sibling;e!==null;)Iu(e,t,n),e=e.sibling}var Te=null,Et=!1;function yn(e,t,n){for(n=n.child;n!==null;)by(e,t,n),n=n.sibling}function by(e,t,n){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(vl,n)}catch{}switch(n.tag){case 5:Ne||qr(n,t);case 6:var r=Te,i=Et;Te=null,yn(e,t,n),Te=r,Et=i,Te!==null&&(Et?(e=Te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Te.removeChild(n.stateNode));break;case 18:Te!==null&&(Et?(e=Te,n=n.stateNode,e.nodeType===8?Ca(e.parentNode,n):e.nodeType===1&&Ca(e,n),ms(e)):Ca(Te,n.stateNode));break;case 4:r=Te,i=Et,Te=n.stateNode.containerInfo,Et=!0,yn(e,t,n),Te=r,Et=i;break;case 0:case 11:case 14:case 15:if(!Ne&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Fu(n,t,o),i=i.next}while(i!==r)}yn(e,t,n);break;case 1:if(!Ne&&(qr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){fe(n,t,l)}yn(e,t,n);break;case 21:yn(e,t,n);break;case 22:n.mode&1?(Ne=(r=Ne)||n.memoizedState!==null,yn(e,t,n),Ne=r):yn(e,t,n);break;default:yn(e,t,n)}}function eh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Z1),t.forEach(function(r){var i=aw.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function wt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:Te=l.stateNode,Et=!1;break e;case 3:Te=l.stateNode.containerInfo,Et=!0;break e;case 4:Te=l.stateNode.containerInfo,Et=!0;break e}l=l.return}if(Te===null)throw Error(b(160));by(s,o,i),Te=null,Et=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){fe(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Oy(t,e),t=t.sibling}function Oy(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(wt(t,e),Ft(e),r&4){try{rs(3,e,e.return),Tl(3,e)}catch(w){fe(e,e.return,w)}try{rs(5,e,e.return)}catch(w){fe(e,e.return,w)}}break;case 1:wt(t,e),Ft(e),r&512&&n!==null&&qr(n,n.return);break;case 5:if(wt(t,e),Ft(e),r&512&&n!==null&&qr(n,n.return),e.flags&32){var i=e.stateNode;try{fs(i,"")}catch(w){fe(e,e.return,w)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&Yp(i,s),ou(l,o);var u=ou(l,s);for(o=0;o<a.length;o+=2){var d=a[o],c=a[o+1];d==="style"?tm(i,c):d==="dangerouslySetInnerHTML"?Jp(i,c):d==="children"?fs(i,c):Oc(i,d,c,u)}switch(l){case"input":tu(i,s);break;case"textarea":Xp(i,s);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var m=s.value;m!=null?Yr(i,!!s.multiple,m,!1):f!==!!s.multiple&&(s.defaultValue!=null?Yr(i,!!s.multiple,s.defaultValue,!0):Yr(i,!!s.multiple,s.multiple?[]:"",!1))}i[Ss]=s}catch(w){fe(e,e.return,w)}}break;case 6:if(wt(t,e),Ft(e),r&4){if(e.stateNode===null)throw Error(b(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(w){fe(e,e.return,w)}}break;case 3:if(wt(t,e),Ft(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ms(t.containerInfo)}catch(w){fe(e,e.return,w)}break;case 4:wt(t,e),Ft(e);break;case 13:wt(t,e),Ft(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(af=de())),r&4&&eh(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Ne=(u=Ne)||d,wt(t,e),Ne=u):wt(t,e),Ft(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(F=e,d=e.child;d!==null;){for(c=F=d;F!==null;){switch(f=F,m=f.child,f.tag){case 0:case 11:case 14:case 15:rs(4,f,f.return);break;case 1:qr(f,f.return);var v=f.stateNode;if(typeof v.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(w){fe(r,n,w)}}break;case 5:qr(f,f.return);break;case 22:if(f.memoizedState!==null){nh(c);continue}}m!==null?(m.return=f,F=m):nh(c)}d=d.sibling}e:for(d=null,c=e;;){if(c.tag===5){if(d===null){d=c;try{i=c.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=c.stateNode,a=c.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=em("display",o))}catch(w){fe(e,e.return,w)}}}else if(c.tag===6){if(d===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(w){fe(e,e.return,w)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;d===c&&(d=null),c=c.return}d===c&&(d=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:wt(t,e),Ft(e),r&4&&eh(e);break;case 21:break;default:wt(t,e),Ft(e)}}function Ft(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Ty(n)){var r=n;break e}n=n.return}throw Error(b(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(fs(i,""),r.flags&=-33);var s=Jd(e);Iu(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,l=Jd(e);$u(e,l,o);break;default:throw Error(b(161))}}catch(a){fe(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ew(e,t,n){F=e,Ry(e)}function Ry(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var i=F,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||ao;if(!o){var l=i.alternate,a=l!==null&&l.memoizedState!==null||Ne;l=ao;var u=Ne;if(ao=o,(Ne=a)&&!u)for(F=i;F!==null;)o=F,a=o.child,o.tag===22&&o.memoizedState!==null?rh(i):a!==null?(a.return=o,F=a):rh(i);for(;s!==null;)F=s,Ry(s),s=s.sibling;F=i,ao=l,Ne=u}th(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,F=s):th(e)}}function th(e){for(;F!==null;){var t=F;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ne||Tl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ne)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:xt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Dd(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Dd(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var c=d.dehydrated;c!==null&&ms(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(b(163))}Ne||t.flags&512&&ju(t)}catch(f){fe(t,t.return,f)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function nh(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function rh(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Tl(4,t)}catch(a){fe(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){fe(t,i,a)}}var s=t.return;try{ju(t)}catch(a){fe(t,s,a)}break;case 5:var o=t.return;try{ju(t)}catch(a){fe(t,o,a)}}}catch(a){fe(t,t.return,a)}if(t===e){F=null;break}var l=t.sibling;if(l!==null){l.return=t.return,F=l;break}F=t.return}}var tw=Math.ceil,rl=hn.ReactCurrentDispatcher,of=hn.ReactCurrentOwner,pt=hn.ReactCurrentBatchConfig,q=0,Ee=null,me=null,be=0,Ze=0,Kr=Kn(0),we=0,Ts=null,xr=0,bl=0,lf=0,is=null,Ve=null,af=0,_i=1/0,en=null,il=!1,Lu=null,Dn=null,uo=!1,Nn=null,sl=0,ss=0,Mu=null,Oo=-1,Ro=0;function Le(){return q&6?de():Oo!==-1?Oo:Oo=de()}function zn(e){return e.mode&1?q&2&&be!==0?be&-be:M1.transition!==null?(Ro===0&&(Ro=hm()),Ro):(e=Y,e!==0||(e=window.event,e=e===void 0?16:Sm(e.type)),e):1}function Rt(e,t,n,r){if(50<ss)throw ss=0,Mu=null,Error(b(185));Ds(e,n,r),(!(q&2)||e!==Ee)&&(e===Ee&&(!(q&2)&&(bl|=n),we===4&&xn(e,be)),Ke(e,r),n===1&&q===0&&!(t.mode&1)&&(_i=de()+500,El&&Gn()))}function Ke(e,t){var n=e.callbackNode;Mv(e,t);var r=Bo(e,e===Ee?be:0);if(r===0)n!==null&&dd(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&dd(n),t===1)e.tag===0?L1(ih.bind(null,e)):Dm(ih.bind(null,e)),F1(function(){!(q&6)&&Gn()}),n=null;else{switch(pm(r)){case 1:n=Fc;break;case 4:n=fm;break;case 16:n=Uo;break;case 536870912:n=dm;break;default:n=Uo}n=Ly(n,Py.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Py(e,t){if(Oo=-1,Ro=0,q&6)throw Error(b(327));var n=e.callbackNode;if(ti()&&e.callbackNode!==n)return null;var r=Bo(e,e===Ee?be:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ol(e,r);else{t=r;var i=q;q|=2;var s=Ny();(Ee!==e||be!==t)&&(en=null,_i=de()+500,hr(e,t));do try{iw();break}catch(l){Ay(e,l)}while(!0);Qc(),rl.current=s,q=i,me!==null?t=0:(Ee=null,be=0,t=we)}if(t!==0){if(t===2&&(i=fu(e),i!==0&&(r=i,t=Du(e,i))),t===1)throw n=Ts,hr(e,0),xn(e,r),Ke(e,de()),n;if(t===6)xn(e,r);else{if(i=e.current.alternate,!(r&30)&&!nw(i)&&(t=ol(e,r),t===2&&(s=fu(e),s!==0&&(r=s,t=Du(e,s))),t===1))throw n=Ts,hr(e,0),xn(e,r),Ke(e,de()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(b(345));case 2:er(e,Ve,en);break;case 3:if(xn(e,r),(r&130023424)===r&&(t=af+500-de(),10<t)){if(Bo(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Le(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=wu(er.bind(null,e,Ve,en),t);break}er(e,Ve,en);break;case 4:if(xn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Ot(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=de()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*tw(r/1960))-r,10<r){e.timeoutHandle=wu(er.bind(null,e,Ve,en),r);break}er(e,Ve,en);break;case 5:er(e,Ve,en);break;default:throw Error(b(329))}}}return Ke(e,de()),e.callbackNode===n?Py.bind(null,e):null}function Du(e,t){var n=is;return e.current.memoizedState.isDehydrated&&(hr(e,t).flags|=256),e=ol(e,t),e!==2&&(t=Ve,Ve=n,t!==null&&zu(t)),e}function zu(e){Ve===null?Ve=e:Ve.push.apply(Ve,e)}function nw(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],s=i.getSnapshot;i=i.value;try{if(!Pt(s(),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 xn(e,t){for(t&=~lf,t&=~bl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ot(t),r=1<<n;e[n]=-1,t&=~r}}function ih(e){if(q&6)throw Error(b(327));ti();var t=Bo(e,0);if(!(t&1))return Ke(e,de()),null;var n=ol(e,t);if(e.tag!==0&&n===2){var r=fu(e);r!==0&&(t=r,n=Du(e,r))}if(n===1)throw n=Ts,hr(e,0),xn(e,t),Ke(e,de()),n;if(n===6)throw Error(b(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,er(e,Ve,en),Ke(e,de()),null}function uf(e,t){var n=q;q|=1;try{return e(t)}finally{q=n,q===0&&(_i=de()+500,El&&Gn())}}function _r(e){Nn!==null&&Nn.tag===0&&!(q&6)&&ti();var t=q;q|=1;var n=pt.transition,r=Y;try{if(pt.transition=null,Y=1,e)return e()}finally{Y=r,pt.transition=n,q=t,!(q&6)&&Gn()}}function cf(){Ze=Kr.current,se(Kr)}function hr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,N1(n)),me!==null)for(n=me.return;n!==null;){var r=n;switch(Vc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&qo();break;case 3:Si(),se(Qe),se(Fe),Zc();break;case 5:Xc(r);break;case 4:Si();break;case 13:se(le);break;case 19:se(le);break;case 10:qc(r.type._context);break;case 22:case 23:cf()}n=n.return}if(Ee=e,me=e=Un(e.current,null),be=Ze=t,we=0,Ts=null,lf=bl=xr=0,Ve=is=null,rr!==null){for(t=0;t<rr.length;t++)if(n=rr[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}rr=null}return e}function Ay(e,t){do{var n=me;try{if(Qc(),Co.current=nl,tl){for(var r=ae.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}tl=!1}if(Sr=0,_e=ge=ae=null,ns=!1,Es=0,of.current=null,n===null||n.return===null){we=1,Ts=t,me=null;break}e:{var s=e,o=n.return,l=n,a=t;if(t=be,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,d=l,c=d.tag;if(!(d.mode&1)&&(c===0||c===11||c===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=Wd(o);if(m!==null){m.flags&=-257,Qd(m,o,l,s,t),m.mode&1&&Hd(s,u,t),t=m,a=u;var v=t.updateQueue;if(v===null){var w=new Set;w.add(a),t.updateQueue=w}else v.add(a);break e}else{if(!(t&1)){Hd(s,u,t),ff();break e}a=Error(b(426))}}else if(oe&&l.mode&1){var _=Wd(o);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Qd(_,o,l,s,t),Hc(xi(a,l));break e}}s=a=xi(a,l),we!==4&&(we=2),is===null?is=[s]:is.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var p=py(s,a,t);Md(s,p);break e;case 1:l=a;var h=s.type,g=s.stateNode;if(!(s.flags&128)&&(typeof h.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Dn===null||!Dn.has(g)))){s.flags|=65536,t&=-t,s.lanes|=t;var E=my(s,l,t);Md(s,E);break e}}s=s.return}while(s!==null)}jy(n)}catch(O){t=O,me===n&&n!==null&&(me=n=n.return);continue}break}while(!0)}function Ny(){var e=rl.current;return rl.current=nl,e===null?nl:e}function ff(){(we===0||we===3||we===2)&&(we=4),Ee===null||!(xr&268435455)&&!(bl&268435455)||xn(Ee,be)}function ol(e,t){var n=q;q|=2;var r=Ny();(Ee!==e||be!==t)&&(en=null,hr(e,t));do try{rw();break}catch(i){Ay(e,i)}while(!0);if(Qc(),q=n,rl.current=r,me!==null)throw Error(b(261));return Ee=null,be=0,we}function rw(){for(;me!==null;)Fy(me)}function iw(){for(;me!==null&&!Rv();)Fy(me)}function Fy(e){var t=Iy(e.alternate,e,Ze);e.memoizedProps=e.pendingProps,t===null?jy(e):me=t,of.current=null}function jy(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=X1(n,t),n!==null){n.flags&=32767,me=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{we=6,me=null;return}}else if(n=Y1(n,t,Ze),n!==null){me=n;return}if(t=t.sibling,t!==null){me=t;return}me=t=e}while(t!==null);we===0&&(we=5)}function er(e,t,n){var r=Y,i=pt.transition;try{pt.transition=null,Y=1,sw(e,t,n,r)}finally{pt.transition=i,Y=r}return null}function sw(e,t,n,r){do ti();while(Nn!==null);if(q&6)throw Error(b(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(b(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Dv(e,s),e===Ee&&(me=Ee=null,be=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||uo||(uo=!0,Ly(Uo,function(){return ti(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=pt.transition,pt.transition=null;var o=Y;Y=1;var l=q;q|=4,of.current=null,J1(e,n),Oy(n,e),C1(gu),Vo=!!yu,gu=yu=null,e.current=n,ew(n),Pv(),q=l,Y=o,pt.transition=s}else e.current=n;if(uo&&(uo=!1,Nn=e,sl=i),s=e.pendingLanes,s===0&&(Dn=null),Fv(n.stateNode),Ke(e,de()),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(il)throw il=!1,e=Lu,Lu=null,e;return sl&1&&e.tag!==0&&ti(),s=e.pendingLanes,s&1?e===Mu?ss++:(ss=0,Mu=e):ss=0,Gn(),null}function ti(){if(Nn!==null){var e=pm(sl),t=pt.transition,n=Y;try{if(pt.transition=null,Y=16>e?16:e,Nn===null)var r=!1;else{if(e=Nn,Nn=null,sl=0,q&6)throw Error(b(331));var i=q;for(q|=4,F=e.current;F!==null;){var s=F,o=s.child;if(F.flags&16){var l=s.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(F=u;F!==null;){var d=F;switch(d.tag){case 0:case 11:case 15:rs(8,d,s)}var c=d.child;if(c!==null)c.return=d,F=c;else for(;F!==null;){d=F;var f=d.sibling,m=d.return;if(Cy(d),d===u){F=null;break}if(f!==null){f.return=m,F=f;break}F=m}}}var v=s.alternate;if(v!==null){var w=v.child;if(w!==null){v.child=null;do{var _=w.sibling;w.sibling=null,w=_}while(w!==null)}}F=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,F=o;else e:for(;F!==null;){if(s=F,s.flags&2048)switch(s.tag){case 0:case 11:case 15:rs(9,s,s.return)}var p=s.sibling;if(p!==null){p.return=s.return,F=p;break e}F=s.return}}var h=e.current;for(F=h;F!==null;){o=F;var g=o.child;if(o.subtreeFlags&2064&&g!==null)g.return=o,F=g;else e:for(o=h;F!==null;){if(l=F,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Tl(9,l)}}catch(O){fe(l,l.return,O)}if(l===o){F=null;break e}var E=l.sibling;if(E!==null){E.return=l.return,F=E;break e}F=l.return}}if(q=i,Gn(),Ht&&typeof Ht.onPostCommitFiberRoot=="function")try{Ht.onPostCommitFiberRoot(vl,e)}catch{}r=!0}return r}finally{Y=n,pt.transition=t}}return!1}function sh(e,t,n){t=xi(n,t),t=py(e,t,1),e=Mn(e,t,1),t=Le(),e!==null&&(Ds(e,1,t),Ke(e,t))}function fe(e,t,n){if(e.tag===3)sh(e,e,n);else for(;t!==null;){if(t.tag===3){sh(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Dn===null||!Dn.has(r))){e=xi(n,e),e=my(t,e,1),t=Mn(t,e,1),e=Le(),t!==null&&(Ds(t,1,e),Ke(t,e));break}}t=t.return}}function ow(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Le(),e.pingedLanes|=e.suspendedLanes&n,Ee===e&&(be&n)===n&&(we===4||we===3&&(be&130023424)===be&&500>de()-af?hr(e,0):lf|=n),Ke(e,t)}function $y(e,t){t===0&&(e.mode&1?(t=Js,Js<<=1,!(Js&130023424)&&(Js=4194304)):t=1);var n=Le();e=fn(e,t),e!==null&&(Ds(e,t,n),Ke(e,n))}function lw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$y(e,n)}function aw(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(b(314))}r!==null&&r.delete(t),$y(e,n)}var Iy;Iy=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qe.current)We=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return We=!1,G1(e,t,n);We=!!(e.flags&131072)}else We=!1,oe&&t.flags&1048576&&zm(t,Yo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;bo(e,t),e=t.pendingProps;var i=gi(t,Fe.current);ei(t,n),i=ef(null,t,r,e,i,n);var s=tf();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,qe(r)?(s=!0,Ko(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Gc(t),i.updater=Cl,t.stateNode=i,i._reactInternals=t,Tu(t,r,e,n),t=Ru(null,t,r,!0,s,n)):(t.tag=0,oe&&s&&Bc(t),Ie(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(bo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=cw(r),e=xt(r,e),i){case 0:t=Ou(null,t,r,e,n);break e;case 1:t=Gd(null,t,r,e,n);break e;case 11:t=qd(null,t,r,e,n);break e;case 14:t=Kd(null,t,r,xt(r.type,e),n);break e}throw Error(b(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xt(r,i),Ou(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xt(r,i),Gd(e,t,r,i,n);case 3:e:{if(wy(t),e===null)throw Error(b(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Qm(e,t),Jo(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=xi(Error(b(423)),t),t=Yd(e,t,r,n,i);break e}else if(r!==i){i=xi(Error(b(424)),t),t=Yd(e,t,r,n,i);break e}else for(Je=Ln(t.stateNode.containerInfo.firstChild),nt=t,oe=!0,Ct=null,n=Hm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(vi(),r===i){t=dn(e,t,n);break e}Ie(e,t,r,n)}t=t.child}return t;case 5:return qm(t),e===null&&Eu(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,vu(r,i)?o=null:s!==null&&vu(r,s)&&(t.flags|=32),vy(e,t),Ie(e,t,o,n),t.child;case 6:return e===null&&Eu(t),null;case 13:return Sy(e,t,n);case 4:return Yc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=wi(t,null,r,n):Ie(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xt(r,i),qd(e,t,r,i,n);case 7:return Ie(e,t,t.pendingProps,n),t.child;case 8:return Ie(e,t,t.pendingProps.children,n),t.child;case 12:return Ie(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,ee(Xo,r._currentValue),r._currentValue=o,s!==null)if(Pt(s.value,o)){if(s.children===i.children&&!Qe.current){t=dn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=ln(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),ku(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(b(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),ku(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Ie(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ei(t,n),i=mt(i),r=r(i),t.flags|=1,Ie(e,t,r,n),t.child;case 14:return r=t.type,i=xt(r,t.pendingProps),i=xt(r.type,i),Kd(e,t,r,i,n);case 15:return yy(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xt(r,i),bo(e,t),t.tag=1,qe(r)?(e=!0,Ko(t)):e=!1,ei(t,n),hy(t,r,i),Tu(t,r,i,n),Ru(null,t,r,!0,e,n);case 19:return xy(e,t,n);case 22:return gy(e,t,n)}throw Error(b(156,t.tag))};function Ly(e,t){return cm(e,t)}function uw(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 ht(e,t,n,r){return new uw(e,t,n,r)}function df(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cw(e){if(typeof e=="function")return df(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Pc)return 11;if(e===Ac)return 14}return 2}function Un(e,t){var n=e.alternate;return n===null?(n=ht(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 Po(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")df(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Mr:return pr(n.children,i,s,t);case Rc:o=8,i|=8;break;case Ya:return e=ht(12,n,t,i|2),e.elementType=Ya,e.lanes=s,e;case Xa:return e=ht(13,n,t,i),e.elementType=Xa,e.lanes=s,e;case Za:return e=ht(19,n,t,i),e.elementType=Za,e.lanes=s,e;case qp:return Ol(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wp:o=10;break e;case Qp:o=9;break e;case Pc:o=11;break e;case Ac:o=14;break e;case vn:o=16,r=null;break e}throw Error(b(130,e==null?e:typeof e,""))}return t=ht(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function pr(e,t,n,r){return e=ht(7,e,r,t),e.lanes=n,e}function Ol(e,t,n,r){return e=ht(22,e,r,t),e.elementType=qp,e.lanes=n,e.stateNode={isHidden:!1},e}function Fa(e,t,n){return e=ht(6,e,null,t),e.lanes=n,e}function ja(e,t,n){return t=ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function fw(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=pa(0),this.expirationTimes=pa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pa(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function hf(e,t,n,r,i,s,o,l,a){return e=new fw(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=ht(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Gc(s),e}function dw(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Lr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function My(e){if(!e)return Wn;e=e._reactInternals;e:{if(br(e)!==e||e.tag!==1)throw Error(b(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(qe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(b(171))}if(e.tag===1){var n=e.type;if(qe(n))return Mm(e,n,t)}return t}function Dy(e,t,n,r,i,s,o,l,a){return e=hf(n,r,!0,e,i,s,o,l,a),e.context=My(null),n=e.current,r=Le(),i=zn(n),s=ln(r,i),s.callback=t??null,Mn(n,s,i),e.current.lanes=i,Ds(e,i,r),Ke(e,r),e}function Rl(e,t,n,r){var i=t.current,s=Le(),o=zn(i);return n=My(n),t.context===null?t.context=n:t.pendingContext=n,t=ln(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Mn(i,t,o),e!==null&&(Rt(e,i,o,s),ko(e,i,o)),o}function ll(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 oh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function pf(e,t){oh(e,t),(e=e.alternate)&&oh(e,t)}function hw(){return null}var zy=typeof reportError=="function"?reportError:function(e){console.error(e)};function mf(e){this._internalRoot=e}Pl.prototype.render=mf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(b(409));Rl(e,t,null,null)};Pl.prototype.unmount=mf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_r(function(){Rl(null,e,null,null)}),t[cn]=null}};function Pl(e){this._internalRoot=e}Pl.prototype.unstable_scheduleHydration=function(e){if(e){var t=gm();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Sn.length&&t!==0&&t<Sn[n].priority;n++);Sn.splice(n,0,e),n===0&&wm(e)}};function yf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Al(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function lh(){}function pw(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=ll(o);s.call(u)}}var o=Dy(t,r,e,0,null,!1,!1,"",lh);return e._reactRootContainer=o,e[cn]=o.current,vs(e.nodeType===8?e.parentNode:e),_r(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=ll(a);l.call(u)}}var a=hf(e,0,!1,null,null,!1,!1,"",lh);return e._reactRootContainer=a,e[cn]=a.current,vs(e.nodeType===8?e.parentNode:e),_r(function(){Rl(t,a,n,r)}),a}function Nl(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var l=i;i=function(){var a=ll(o);l.call(a)}}Rl(t,o,e,i)}else o=pw(n,t,e,i,r);return ll(o)}mm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=qi(t.pendingLanes);n!==0&&(jc(t,n|1),Ke(t,de()),!(q&6)&&(_i=de()+500,Gn()))}break;case 13:_r(function(){var r=fn(e,1);if(r!==null){var i=Le();Rt(r,e,1,i)}}),pf(e,1)}};$c=function(e){if(e.tag===13){var t=fn(e,134217728);if(t!==null){var n=Le();Rt(t,e,134217728,n)}pf(e,134217728)}};ym=function(e){if(e.tag===13){var t=zn(e),n=fn(e,t);if(n!==null){var r=Le();Rt(n,e,t,r)}pf(e,t)}};gm=function(){return Y};vm=function(e,t){var n=Y;try{return Y=e,t()}finally{Y=n}};au=function(e,t,n){switch(t){case"input":if(tu(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=_l(r);if(!i)throw Error(b(90));Gp(r),tu(r,i)}}}break;case"textarea":Xp(e,n);break;case"select":t=n.value,t!=null&&Yr(e,!!n.multiple,t,!1)}};im=uf;sm=_r;var mw={usingClientEntryPoint:!1,Events:[Us,Br,_l,nm,rm,uf]},Bi={findFiberByHostInstance:nr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},yw={bundleType:Bi.bundleType,version:Bi.version,rendererPackageName:Bi.rendererPackageName,rendererConfig:Bi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:hn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=am(e),e===null?null:e.stateNode},findFiberByHostInstance:Bi.findFiberByHostInstance||hw,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 co=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!co.isDisabled&&co.supportsFiber)try{vl=co.inject(yw),Ht=co}catch{}}it.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mw;it.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!yf(t))throw Error(b(200));return dw(e,t,null,n)};it.createRoot=function(e,t){if(!yf(e))throw Error(b(299));var n=!1,r="",i=zy;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=hf(e,1,!1,null,null,n,!1,r,i),e[cn]=t.current,vs(e.nodeType===8?e.parentNode:e),new mf(t)};it.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(b(188)):(e=Object.keys(e).join(","),Error(b(268,e)));return e=am(t),e=e===null?null:e.stateNode,e};it.flushSync=function(e){return _r(e)};it.hydrate=function(e,t,n){if(!Al(t))throw Error(b(200));return Nl(null,e,t,!0,n)};it.hydrateRoot=function(e,t,n){if(!yf(e))throw Error(b(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=zy;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Dy(t,null,e,1,n??null,i,!1,s,o),e[cn]=t.current,vs(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 Pl(t)};it.render=function(e,t,n){if(!Al(t))throw Error(b(200));return Nl(null,e,t,!1,n)};it.unmountComponentAtNode=function(e){if(!Al(e))throw Error(b(40));return e._reactRootContainer?(_r(function(){Nl(null,null,e,!1,function(){e._reactRootContainer=null,e[cn]=null})}),!0):!1};it.unstable_batchedUpdates=uf;it.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Al(n))throw Error(b(200));if(e==null||e._reactInternals===void 0)throw Error(b(38));return Nl(e,t,n,!1,r)};it.version="18.3.1-next-f1338f8080-20240426";function Uy(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Uy)}catch(e){console.error(e)}}Uy(),Up.exports=it;var gw=Up.exports,By,ah=gw;By=ah.createRoot,ah.hydrateRoot;const vw="@alfatech/livechat",ww="v2024.12.31.7",Sw="module",xw="https://api-live.alfatek.dev",_w="wss://api-live.alfatek.dev",Ew=["dist","README.md"],kw="dist/widget.js",Cw={dev:"vite",build:"tsc -b && vite build",lint:"biome lint --write",prepare:"husky",format:"biome format --write && yarn lint"},Tw={"@tanstack/react-query":"^5.59.20",classnames:"^2.5.1",dayjs:"^1.11.13",formik:"^2.4.6",react:"^18.3.1","react-dom":"^18.3.1","react-router-dom":"^6.26.2","react-toastify":"^10.0.6","socket.io-client":"^4.8.1",yup:"^1.4.0",zustand:"^4.5.5"},bw={"@biomejs/biome":"^1.8.3","@types/node":"^22.5.4","@types/react":"^18.3.3","@types/react-dom":"^18.3.0","@vitejs/plugin-react-swc":"^3.5.0",globals:"^15.9.0",husky:"^9.1.5",tailwindcss:"^3.4.10",typescript:"^5.5.3",vite:"^5.4.1"},Vy={name:vw,private:!1,version:ww,type:Sw,apiURL:xw,wsURL:_w,files:Ew,main:kw,scripts:Cw,dependencies:Tw,devDependencies:bw,"lint-staged":{"./**/*.{js,ts,tsx,json}":["npm run format"]}},Ow=Vy.apiURL,Rw=Vy.wsURL,Pw=e=>[{limit:Number.parseInt(e.headers.get("X-Ratelimit-Limit")||"0"),remaining:Number.parseInt(e.headers.get("X-Ratelimit-Remaining")||"0"),reset:Number.parseInt(e.headers.get("X-Ratelimit-Reset")||"0"),retryAfter:Number.parseInt(e.headers.get("Retry-After")||"0")},429],Aw=(e,t)=>[{message:"message"in t?t.message:"Not Found"},404],Nw={429:Pw,404:Aw};async function Fl(e,t={}){const n={};!(t.body instanceof FormData)&&t.body&&(n["Content-Type"]="application/json");const r=await fetch(`${Ow}/${e}`,{...t,credentials:"include",headers:{...t.headers,...n}}).catch(s=>(console.log("err::",s),new Response(null,{status:500})));if(!r.ok){let s={};try{return s=await r.json(),[s,r.status]}catch{console.log("response: ",r)}const o=Nw[r.status];return o?o(r,s):[{},r.status]}const i=r.headers.get("Content-Type");return i&&i.includes("application/json")?[await r.json(),r.status]:[await r.text(),r.status]}const Hy=e=>[200,201,204].includes(e);var Oi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Er=typeof window>"u"||"Deno"in globalThis;function ut(){}function Fw(e,t){return typeof e=="function"?e(t):e}function Uu(e){return typeof e=="number"&&e>=0&&e!==1/0}function Wy(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ni(e,t){return typeof e=="function"?e(t):e}function Tt(e,t){return typeof e=="function"?e(t):e}function uh(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:l}=e;if(o){if(r){if(t.queryHash!==gf(o,t.options))return!1}else if(!bs(t.queryKey,o))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||i&&i!==t.state.fetchStatus||s&&!s(t))}function ch(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(kr(t.options.mutationKey)!==kr(s))return!1}else if(!bs(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function gf(e,t){return((t==null?void 0:t.queryKeyHashFn)||kr)(e)}function kr(e){return JSON.stringify(e,(t,n)=>Bu(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function bs(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!bs(e[n],t[n])):!1}function Qy(e,t){if(e===t)return e;const n=fh(e)&&fh(t);if(n||Bu(e)&&Bu(t)){const r=n?e:Object.keys(e),i=r.length,s=n?t:Object.keys(t),o=s.length,l=n?[]:{};let a=0;for(let u=0;u<o;u++){const d=n?u:s[u];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(l[d]=void 0,a++):(l[d]=Qy(e[d],t[d]),l[d]===e[d]&&e[d]!==void 0&&a++)}return i===o&&a===i?e:l}return t}function al(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function fh(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Bu(e){if(!dh(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!dh(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function dh(e){return Object.prototype.toString.call(e)==="[object Object]"}function jw(e){return new Promise(t=>{setTimeout(t,e)})}function Vu(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Qy(e,t):t}function $w(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Iw(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var vf=Symbol();function qy(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===vf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var or,_n,ri,wp,Lw=(wp=class extends Oi{constructor(){super();L(this,or);L(this,_n);L(this,ri);P(this,ri,t=>{if(!Er&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){y(this,_n)||this.setEventListener(y(this,ri))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,_n))==null||t.call(this),P(this,_n,void 0))}setEventListener(t){var n;P(this,ri,t),(n=y(this,_n))==null||n.call(this),P(this,_n,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){y(this,or)!==t&&(P(this,or,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof y(this,or)=="boolean"?y(this,or):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},or=new WeakMap,_n=new WeakMap,ri=new WeakMap,wp),wf=new Lw,ii,En,si,Sp,Mw=(Sp=class extends Oi{constructor(){super();L(this,ii,!0);L(this,En);L(this,si);P(this,si,t=>{if(!Er&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){y(this,En)||this.setEventListener(y(this,si))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,En))==null||t.call(this),P(this,En,void 0))}setEventListener(t){var n;P(this,si,t),(n=y(this,En))==null||n.call(this),P(this,En,t(this.setOnline.bind(this)))}setOnline(t){y(this,ii)!==t&&(P(this,ii,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return y(this,ii)}},ii=new WeakMap,En=new WeakMap,si=new WeakMap,Sp),ul=new Mw;function Hu(){let e,t;const n=new Promise((i,s)=>{e=i,t=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function Dw(e){return Math.min(1e3*2**e,3e4)}function Ky(e){return(e??"online")==="online"?ul.isOnline():!0}var Gy=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function $a(e){return e instanceof Gy}function Yy(e){let t=!1,n=0,r=!1,i;const s=Hu(),o=w=>{var _;r||(f(new Gy(w)),(_=e.abort)==null||_.call(e))},l=()=>{t=!0},a=()=>{t=!1},u=()=>wf.isFocused()&&(e.networkMode==="always"||ul.isOnline())&&e.canRun(),d=()=>Ky(e.networkMode)&&e.canRun(),c=w=>{var _;r||(r=!0,(_=e.onSuccess)==null||_.call(e,w),i==null||i(),s.resolve(w))},f=w=>{var _;r||(r=!0,(_=e.onError)==null||_.call(e,w),i==null||i(),s.reject(w))},m=()=>new Promise(w=>{var _;i=p=>{(r||u())&&w(p)},(_=e.onPause)==null||_.call(e)}).then(()=>{var w;i=void 0,r||(w=e.onContinue)==null||w.call(e)}),v=()=>{if(r)return;let w;const _=n===0?e.initialPromise:void 0;try{w=_??e.fn()}catch(p){w=Promise.reject(p)}Promise.resolve(w).then(c).catch(p=>{var T;if(r)return;const h=e.retry??(Er?0:3),g=e.retryDelay??Dw,E=typeof g=="function"?g(n,p):g,O=h===!0||typeof h=="number"&&n<h||typeof h=="function"&&h(n,p);if(t||!O){f(p);return}n++,(T=e.onFail)==null||T.call(e,n,p),jw(E).then(()=>u()?void 0:m()).then(()=>{t?f(p):v()})})};return{promise:s,cancel:o,continue:()=>(i==null||i(),s),cancelRetry:l,continueRetry:a,canStart:d,start:()=>(d()?v():m().then(v),s)}}function zw(){let e=[],t=0,n=l=>{l()},r=l=>{l()},i=l=>setTimeout(l,0);const s=l=>{t?e.push(l):i(()=>{n(l)})},o=()=>{const l=e;e=[],l.length&&i(()=>{r(()=>{l.forEach(a=>{n(a)})})})};return{batch:l=>{let a;t++;try{a=l()}finally{t--,t||o()}return a},batchCalls:l=>(...a)=>{s(()=>{l(...a)})},schedule:s,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{i=l}}}var ve=zw(),lr,xp,Xy=(xp=class{constructor(){L(this,lr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Uu(this.gcTime)&&P(this,lr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Er?1/0:5*60*1e3))}clearGcTimeout(){y(this,lr)&&(clearTimeout(y(this,lr)),P(this,lr,void 0))}},lr=new WeakMap,xp),oi,li,at,Ae,Fs,ar,_t,Jt,_p,Uw=(_p=class extends Xy{constructor(t){super();L(this,_t);L(this,oi);L(this,li);L(this,at);L(this,Ae);L(this,Fs);L(this,ar);P(this,ar,!1),P(this,Fs,t.defaultOptions),this.setOptions(t.options),this.observers=[],P(this,at,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,P(this,oi,Bw(this.options)),this.state=t.state??y(this,oi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=y(this,Ae))==null?void 0:t.promise}setOptions(t){this.options={...y(this,Fs),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&y(this,at).remove(this)}setData(t,n){const r=Vu(this.state.data,t,this.options);return B(this,_t,Jt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){B(this,_t,Jt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=y(this,Ae))==null?void 0:r.promise;return(i=y(this,Ae))==null||i.cancel(t),n?n.then(ut).catch(ut):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(y(this,oi))}isActive(){return this.observers.some(t=>Tt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Wy(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,Ae))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,Ae))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),y(this,at).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(y(this,Ae)&&(y(this,ar)?y(this,Ae).cancel({revert:!0}):y(this,Ae).cancelRetry()),this.scheduleGc()),y(this,at).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||B(this,_t,Jt).call(this,{type:"invalidate"})}fetch(t,n){var a,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(y(this,Ae))return y(this,Ae).continueRetry(),y(this,Ae).promise}if(t&&this.setOptions(t),!this.options.queryFn){const c=this.observers.find(f=>f.options.queryFn);c&&this.setOptions(c.options)}const r=new AbortController,i=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(P(this,ar,!0),r.signal)})},s=()=>{const c=qy(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return i(f),P(this,ar,!1),this.options.persister?this.options.persister(c,f,this):c(f)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};i(o),(a=this.options.behavior)==null||a.onFetch(o,this),P(this,li,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=o.fetchOptions)==null?void 0:u.meta))&&B(this,_t,Jt).call(this,{type:"fetch",meta:(d=o.fetchOptions)==null?void 0:d.meta});const l=c=>{var f,m,v,w;$a(c)&&c.silent||B(this,_t,Jt).call(this,{type:"error",error:c}),$a(c)||((m=(f=y(this,at).config).onError)==null||m.call(f,c,this),(w=(v=y(this,at).config).onSettled)==null||w.call(v,this.state.data,c,this)),this.scheduleGc()};return P(this,Ae,Yy({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:c=>{var f,m,v,w;if(c===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(_){l(_);return}(m=(f=y(this,at).config).onSuccess)==null||m.call(f,c,this),(w=(v=y(this,at).config).onSettled)==null||w.call(v,c,this.state.error,this),this.scheduleGc()},onError:l,onFail:(c,f)=>{B(this,_t,Jt).call(this,{type:"failed",failureCount:c,error:f})},onPause:()=>{B(this,_t,Jt).call(this,{type:"pause"})},onContinue:()=>{B(this,_t,Jt).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),y(this,Ae).start()}},oi=new WeakMap,li=new WeakMap,at=new WeakMap,Ae=new WeakMap,Fs=new WeakMap,ar=new WeakMap,_t=new WeakSet,Jt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Zy(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return $a(i)&&i.revert&&y(this,li)?{...y(this,li),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ve.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),y(this,at).notify({query:this,type:"updated",action:t})})},_p);function Zy(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ky(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Bw(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Lt,Ep,Vw=(Ep=class extends Oi{constructor(t={}){super();L(this,Lt);this.config=t,P(this,Lt,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??gf(i,n);let o=this.get(s);return o||(o=new Uw({cache:this,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){y(this,Lt).has(t.queryHash)||(y(this,Lt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=y(this,Lt).get(t.queryHash);n&&(t.destroy(),n===t&&y(this,Lt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ve.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return y(this,Lt).get(t)}getAll(){return[...y(this,Lt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>uh(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>uh(t,r)):n}notify(t){ve.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ve.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ve.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Lt=new WeakMap,Ep),Mt,je,ur,Dt,gn,kp,Hw=(kp=class extends Xy{constructor(t){super();L(this,Dt);L(this,Mt);L(this,je);L(this,ur);this.mutationId=t.mutationId,P(this,je,t.mutationCache),P(this,Mt,[]),this.state=t.state||Jy(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){y(this,Mt).includes(t)||(y(this,Mt).push(t),this.clearGcTimeout(),y(this,je).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){P(this,Mt,y(this,Mt).filter(n=>n!==t)),this.scheduleGc(),y(this,je).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){y(this,Mt).length||(this.state.status==="pending"?this.scheduleGc():y(this,je).remove(this))}continue(){var t;return((t=y(this,ur))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,o,l,a,u,d,c,f,m,v,w,_,p,h,g,E,O,T,C;P(this,ur,Yy({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,$)=>{B(this,Dt,gn).call(this,{type:"failed",failureCount:R,error:$})},onPause:()=>{B(this,Dt,gn).call(this,{type:"pause"})},onContinue:()=>{B(this,Dt,gn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>y(this,je).canRun(this)}));const n=this.state.status==="pending",r=!y(this,ur).canStart();try{if(!n){B(this,Dt,gn).call(this,{type:"pending",variables:t,isPaused:r}),await((s=(i=y(this,je).config).onMutate)==null?void 0:s.call(i,t,this));const $=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t));$!==this.state.context&&B(this,Dt,gn).call(this,{type:"pending",context:$,variables:t,isPaused:r})}const R=await y(this,ur).start();return await((u=(a=y(this,je).config).onSuccess)==null?void 0:u.call(a,R,t,this.state.context,this)),await((c=(d=this.options).onSuccess)==null?void 0:c.call(d,R,t,this.state.context)),await((m=(f=y(this,je).config).onSettled)==null?void 0:m.call(f,R,null,this.state.variables,this.state.context,this)),await((w=(v=this.options).onSettled)==null?void 0:w.call(v,R,null,t,this.state.context)),B(this,Dt,gn).call(this,{type:"success",data:R}),R}catch(R){try{throw await((p=(_=y(this,je).config).onError)==null?void 0:p.call(_,R,t,this.state.context,this)),await((g=(h=this.options).onError)==null?void 0:g.call(h,R,t,this.state.context)),await((O=(E=y(this,je).config).onSettled)==null?void 0:O.call(E,void 0,R,this.state.variables,this.state.context,this)),await((C=(T=this.options).onSettled)==null?void 0:C.call(T,void 0,R,t,this.state.context)),R}finally{B(this,Dt,gn).call(this,{type:"error",error:R})}}finally{y(this,je).runNext(this)}}},Mt=new WeakMap,je=new WeakMap,ur=new WeakMap,Dt=new WeakSet,gn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ve.batch(()=>{y(this,Mt).forEach(r=>{r.onMutationUpdate(t)}),y(this,je).notify({mutation:this,type:"updated",action:t})})},kp);function Jy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Xe,js,Cp,Ww=(Cp=class extends Oi{constructor(t={}){super();L(this,Xe);L(this,js);this.config=t,P(this,Xe,new Map),P(this,js,Date.now())}build(t,n,r){const i=new Hw({mutationCache:this,mutationId:++qs(this,js)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=fo(t),r=y(this,Xe).get(n)??[];r.push(t),y(this,Xe).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=fo(t);if(y(this,Xe).has(n)){const i=(r=y(this,Xe).get(n))==null?void 0:r.filter(s=>s!==t);i&&(i.length===0?y(this,Xe).delete(n):y(this,Xe).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=y(this,Xe).get(fo(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=y(this,Xe).get(fo(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){ve.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...y(this,Xe).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ch(n,r))}findAll(t={}){return this.getAll().filter(n=>ch(t,n))}notify(t){ve.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ve.batch(()=>Promise.all(t.map(n=>n.continue().catch(ut))))}},Xe=new WeakMap,js=new WeakMap,Cp);function fo(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function hh(e){return{onFetch:(t,n)=>{var d,c,f,m,v;const r=t.options,i=(f=(c=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:c.fetchMore)==null?void 0:f.direction,s=((m=t.state.data)==null?void 0:m.pages)||[],o=((v=t.state.data)==null?void 0:v.pageParams)||[];let l={pages:[],pageParams:[]},a=0;const u=async()=>{let w=!1;const _=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(t.signal.aborted?w=!0:t.signal.addEventListener("abort",()=>{w=!0}),t.signal)})},p=qy(t.options,t.fetchOptions),h=async(g,E,O)=>{if(w)return Promise.reject();if(E==null&&g.pages.length)return Promise.resolve(g);const T={queryKey:t.queryKey,pageParam:E,direction:O?"backward":"forward",meta:t.options.meta};_(T);const C=await p(T),{maxPages:R}=t.options,$=O?Iw:$w;return{pages:$(g.pages,C,R),pageParams:$(g.pageParams,E,R)}};if(i&&s.length){const g=i==="backward",E=g?Qw:ph,O={pages:s,pageParams:o},T=E(r,O);l=await h(O,T,g)}else{const g=e??s.length;do{const E=a===0?o[0]??r.initialPageParam:ph(r,l);if(a>0&&E==null)break;l=await h(l,E),a++}while(a<g)}return l};t.options.persister?t.fetchFn=()=>{var w,_;return(_=(w=t.options).persister)==null?void 0:_.call(w,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function ph(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Qw(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var ce,kn,Cn,ai,ui,Tn,ci,fi,Tp,qw=(Tp=class{constructor(e={}){L(this,ce);L(this,kn);L(this,Cn);L(this,ai);L(this,ui);L(this,Tn);L(this,ci);L(this,fi);P(this,ce,e.queryCache||new Vw),P(this,kn,e.mutationCache||new Ww),P(this,Cn,e.defaultOptions||{}),P(this,ai,new Map),P(this,ui,new Map),P(this,Tn,0)}mount(){qs(this,Tn)._++,y(this,Tn)===1&&(P(this,ci,wf.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,ce).onFocus())})),P(this,fi,ul.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,ce).onOnline())})))}unmount(){var e,t;qs(this,Tn)._--,y(this,Tn)===0&&((e=y(this,ci))==null||e.call(this),P(this,ci,void 0),(t=y(this,fi))==null||t.call(this),P(this,fi,void 0))}isFetching(e){return y(this,ce).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return y(this,kn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,ce).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=y(this,ce).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(ni(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return y(this,ce).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=y(this,ce).get(r.queryHash),s=i==null?void 0:i.state.data,o=Fw(t,s);if(o!==void 0)return y(this,ce).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return ve.batch(()=>y(this,ce).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,ce).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=y(this,ce);ve.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=y(this,ce),r={type:"active",...e};return ve.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=ve.batch(()=>y(this,ce).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(ut).catch(ut)}invalidateQueries(e,t={}){return ve.batch(()=>{if(y(this,ce).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none")return Promise.resolve();const n={...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"};return this.refetchQueries(n,t)})}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=ve.batch(()=>y(this,ce).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(ut)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(ut)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=y(this,ce).build(this,t);return n.isStaleByTime(ni(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ut).catch(ut)}fetchInfiniteQuery(e){return e.behavior=hh(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ut).catch(ut)}ensureInfiniteQueryData(e){return e.behavior=hh(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ul.isOnline()?y(this,kn).resumePausedMutations():Promise.resolve()}getQueryCache(){return y(this,ce)}getMutationCache(){return y(this,kn)}getDefaultOptions(){return y(this,Cn)}setDefaultOptions(e){P(this,Cn,e)}setQueryDefaults(e,t){y(this,ai).set(kr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...y(this,ai).values()],n={};return t.forEach(r=>{bs(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){y(this,ui).set(kr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...y(this,ui).values()];let n={};return t.forEach(r=>{bs(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...y(this,Cn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=gf(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===vf&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...y(this,Cn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){y(this,ce).clear(),y(this,kn).clear()}},ce=new WeakMap,kn=new WeakMap,Cn=new WeakMap,ai=new WeakMap,ui=new WeakMap,Tn=new WeakMap,ci=new WeakMap,fi=new WeakMap,Tp),Ue,W,$s,$e,cr,di,bn,zt,Is,hi,pi,fr,dr,On,mi,K,Gi,Wu,Qu,qu,Ku,Gu,Yu,Xu,e0,bp,Kw=(bp=class extends Oi{constructor(t,n){super();L(this,K);L(this,Ue);L(this,W);L(this,$s);L(this,$e);L(this,cr);L(this,di);L(this,bn);L(this,zt);L(this,Is);L(this,hi);L(this,pi);L(this,fr);L(this,dr);L(this,On);L(this,mi,new Set);this.options=n,P(this,Ue,t),P(this,zt,null),P(this,bn,Hu()),this.options.experimental_prefetchInRender||y(this,bn).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(y(this,W).addObserver(this),mh(y(this,W),this.options)?B(this,K,Gi).call(this):this.updateResult(),B(this,K,Ku).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Zu(y(this,W),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Zu(y(this,W),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,B(this,K,Gu).call(this),B(this,K,Yu).call(this),y(this,W).removeObserver(this)}setOptions(t,n){const r=this.options,i=y(this,W);if(this.options=y(this,Ue).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Tt(this.options.enabled,y(this,W))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");B(this,K,Xu).call(this),y(this,W).setOptions(this.options),r._defaulted&&!al(this.options,r)&&y(this,Ue).getQueryCache().notify({type:"observerOptionsUpdated",query:y(this,W),observer:this});const s=this.hasListeners();s&&yh(y(this,W),i,this.options,r)&&B(this,K,Gi).call(this),this.updateResult(n),s&&(y(this,W)!==i||Tt(this.options.enabled,y(this,W))!==Tt(r.enabled,y(this,W))||ni(this.options.staleTime,y(this,W))!==ni(r.staleTime,y(this,W)))&&B(this,K,Wu).call(this);const o=B(this,K,Qu).call(this);s&&(y(this,W)!==i||Tt(this.options.enabled,y(this,W))!==Tt(r.enabled,y(this,W))||o!==y(this,On))&&B(this,K,qu).call(this,o)}getOptimisticResult(t){const n=y(this,Ue).getQueryCache().build(y(this,Ue),t),r=this.createResult(n,t);return Yw(this,r)&&(P(this,$e,r),P(this,di,this.options),P(this,cr,y(this,W).state)),r}getCurrentResult(){return y(this,$e)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){y(this,mi).add(t)}getCurrentQuery(){return y(this,W)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=y(this,Ue).defaultQueryOptions(t),r=y(this,Ue).getQueryCache().build(y(this,Ue),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return B(this,K,Gi).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),y(this,$e)))}createResult(t,n){var R;const r=y(this,W),i=this.options,s=y(this,$e),o=y(this,cr),l=y(this,di),u=t!==r?t.state:y(this,$s),{state:d}=t;let c={...d},f=!1,m;if(n._optimisticResults){const $=this.hasListeners(),M=!$&&mh(t,n),z=$&&yh(t,r,n,i);(M||z)&&(c={...c,...Zy(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:v,errorUpdatedAt:w,status:_}=c;if(n.select&&c.data!==void 0)if(s&&c.data===(o==null?void 0:o.data)&&n.select===y(this,Is))m=y(this,hi);else try{P(this,Is,n.select),m=n.select(c.data),m=Vu(s==null?void 0:s.data,m,n),P(this,hi,m),P(this,zt,null)}catch($){P(this,zt,$)}else m=c.data;if(n.placeholderData!==void 0&&m===void 0&&_==="pending"){let $;if(s!=null&&s.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))$=s.data;else if($=typeof n.placeholderData=="function"?n.placeholderData((R=y(this,pi))==null?void 0:R.state.data,y(this,pi)):n.placeholderData,n.select&&$!==void 0)try{$=n.select($),P(this,zt,null)}catch(M){P(this,zt,M)}$!==void 0&&(_="success",m=Vu(s==null?void 0:s.data,$,n),f=!0)}y(this,zt)&&(v=y(this,zt),m=y(this,hi),w=Date.now(),_="error");const p=c.fetchStatus==="fetching",h=_==="pending",g=_==="error",E=h&&p,O=m!==void 0,C={status:_,fetchStatus:c.fetchStatus,isPending:h,isSuccess:_==="success",isError:g,isInitialLoading:E,isLoading:E,data:m,dataUpdatedAt:c.dataUpdatedAt,error:v,errorUpdatedAt:w,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:p,isRefetching:p&&!h,isLoadingError:g&&!O,isPaused:c.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:g&&O,isStale:Sf(t,n),refetch:this.refetch,promise:y(this,bn)};if(this.options.experimental_prefetchInRender){const $=he=>{C.status==="error"?he.reject(C.error):C.data!==void 0&&he.resolve(C.data)},M=()=>{const he=P(this,bn,C.promise=Hu());$(he)},z=y(this,bn);switch(z.status){case"pending":t.queryHash===r.queryHash&&$(z);break;case"fulfilled":(C.status==="error"||C.data!==z.value)&&M();break;case"rejected":(C.status!=="error"||C.error!==z.reason)&&M();break}}return C}updateResult(t){const n=y(this,$e),r=this.createResult(y(this,W),this.options);if(P(this,cr,y(this,W).state),P(this,di,this.options),y(this,cr).data!==void 0&&P(this,pi,y(this,W)),al(r,n))return;P(this,$e,r);const i={},s=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!y(this,mi).size)return!0;const a=new Set(l??y(this,mi));return this.options.throwOnError&&a.add("error"),Object.keys(y(this,$e)).some(u=>{const d=u;return y(this,$e)[d]!==n[d]&&a.has(d)})};(t==null?void 0:t.listeners)!==!1&&s()&&(i.listeners=!0),B(this,K,e0).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&B(this,K,Ku).call(this)}},Ue=new WeakMap,W=new WeakMap,$s=new WeakMap,$e=new WeakMap,cr=new WeakMap,di=new WeakMap,bn=new WeakMap,zt=new WeakMap,Is=new WeakMap,hi=new WeakMap,pi=new WeakMap,fr=new WeakMap,dr=new WeakMap,On=new WeakMap,mi=new WeakMap,K=new WeakSet,Gi=function(t){B(this,K,Xu).call(this);let n=y(this,W).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ut)),n},Wu=function(){B(this,K,Gu).call(this);const t=ni(this.options.staleTime,y(this,W));if(Er||y(this,$e).isStale||!Uu(t))return;const r=Wy(y(this,$e).dataUpdatedAt,t)+1;P(this,fr,setTimeout(()=>{y(this,$e).isStale||this.updateResult()},r))},Qu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(y(this,W)):this.options.refetchInterval)??!1},qu=function(t){B(this,K,Yu).call(this),P(this,On,t),!(Er||Tt(this.options.enabled,y(this,W))===!1||!Uu(y(this,On))||y(this,On)===0)&&P(this,dr,setInterval(()=>{(this.options.refetchIntervalInBackground||wf.isFocused())&&B(this,K,Gi).call(this)},y(this,On)))},Ku=function(){B(this,K,Wu).call(this),B(this,K,qu).call(this,B(this,K,Qu).call(this))},Gu=function(){y(this,fr)&&(clearTimeout(y(this,fr)),P(this,fr,void 0))},Yu=function(){y(this,dr)&&(clearInterval(y(this,dr)),P(this,dr,void 0))},Xu=function(){const t=y(this,Ue).getQueryCache().build(y(this,Ue),this.options);if(t===y(this,W))return;const n=y(this,W);P(this,W,t),P(this,$s,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},e0=function(t){ve.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(y(this,$e))}),y(this,Ue).getQueryCache().notify({query:y(this,W),type:"observerResultsUpdated"})})},bp);function Gw(e,t){return Tt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function mh(e,t){return Gw(e,t)||e.state.data!==void 0&&Zu(e,t,t.refetchOnMount)}function Zu(e,t,n){if(Tt(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Sf(e,t)}return!1}function yh(e,t,n,r){return(e!==t||Tt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Sf(e,n)}function Sf(e,t){return Tt(t.enabled,e)!==!1&&e.isStaleByTime(ni(t.staleTime,e))}function Yw(e,t){return!al(e.getCurrentResult(),t)}var Rn,Pn,Be,rn,an,Ao,Ju,Op,Xw=(Op=class extends Oi{constructor(t,n){super();L(this,an);L(this,Rn);L(this,Pn);L(this,Be);L(this,rn);P(this,Rn,t),this.setOptions(n),this.bindMethods(),B(this,an,Ao).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var r;const n=this.options;this.options=y(this,Rn).defaultMutationOptions(t),al(this.options,n)||y(this,Rn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:y(this,Be),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&kr(n.mutationKey)!==kr(this.options.mutationKey)?this.reset():((r=y(this,Be))==null?void 0:r.state.status)==="pending"&&y(this,Be).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=y(this,Be))==null||t.removeObserver(this)}onMutationUpdate(t){B(this,an,Ao).call(this),B(this,an,Ju).call(this,t)}getCurrentResult(){return y(this,Pn)}reset(){var t;(t=y(this,Be))==null||t.removeObserver(this),P(this,Be,void 0),B(this,an,Ao).call(this),B(this,an,Ju).call(this)}mutate(t,n){var r;return P(this,rn,n),(r=y(this,Be))==null||r.removeObserver(this),P(this,Be,y(this,Rn).getMutationCache().build(y(this,Rn),this.options)),y(this,Be).addObserver(this),y(this,Be).execute(t)}},Rn=new WeakMap,Pn=new WeakMap,Be=new WeakMap,rn=new WeakMap,an=new WeakSet,Ao=function(){var n;const t=((n=y(this,Be))==null?void 0:n.state)??Jy();P(this,Pn,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Ju=function(t){ve.batch(()=>{var n,r,i,s,o,l,a,u;if(y(this,rn)&&this.hasListeners()){const d=y(this,Pn).variables,c=y(this,Pn).context;(t==null?void 0:t.type)==="success"?((r=(n=y(this,rn)).onSuccess)==null||r.call(n,t.data,d,c),(s=(i=y(this,rn)).onSettled)==null||s.call(i,t.data,null,d,c)):(t==null?void 0:t.type)==="error"&&((l=(o=y(this,rn)).onError)==null||l.call(o,t.error,d,c),(u=(a=y(this,rn)).onSettled)==null||u.call(a,void 0,t.error,d,c))}this.listeners.forEach(d=>{d(y(this,Pn))})})},Op),t0=S.createContext(void 0),n0=e=>{const t=S.useContext(t0);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Zw=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),k.jsx(t0.Provider,{value:e,children:t})),r0=S.createContext(!1),Jw=()=>S.useContext(r0);r0.Provider;function eS(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var tS=S.createContext(eS()),nS=()=>S.useContext(tS);function i0(e,t){return typeof e=="function"?e(...t):!!e}function ec(){}var rS=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},iS=e=>{S.useEffect(()=>{e.clearReset()},[e])},sS=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&i0(n,[e.error,r]),oS=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},lS=(e,t)=>e.isLoading&&e.isFetching&&!t,aS=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,gh=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function uS(e,t,n){var d,c,f,m,v;const r=n0(),i=Jw(),s=nS(),o=r.defaultQueryOptions(e);(c=(d=r.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||c.call(d,o),o._optimisticResults=i?"isRestoring":"optimistic",oS(o),rS(o,s),iS(s);const l=!r.getQueryCache().get(o.queryHash),[a]=S.useState(()=>new t(r,o)),u=a.getOptimisticResult(o);if(S.useSyncExternalStore(S.useCallback(w=>{const _=i?ec:a.subscribe(ve.batchCalls(w));return a.updateResult(),_},[a,i]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),S.useEffect(()=>{a.setOptions(o,{listeners:!1})},[o,a]),aS(o,u))throw gh(o,a,s);if(sS({result:u,errorResetBoundary:s,throwOnError:o.throwOnError,query:r.getQueryCache().get(o.queryHash)}))throw u.error;if((m=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||m.call(f,o,u),o.experimental_prefetchInRender&&!Er&&lS(u,i)){const w=l?gh(o,a,s):(v=r.getQueryCache().get(o.queryHash))==null?void 0:v.promise;w==null||w.catch(ec).finally(()=>{a.updateResult()})}return o.notifyOnChangeProps?u:a.trackResult(u)}function cS(e,t){return uS(e,Kw)}function fS(e,t){const n=n0(),[r]=S.useState(()=>new Xw(n,e));S.useEffect(()=>{r.setOptions(e)},[r,e]);const i=S.useSyncExternalStore(S.useCallback(o=>r.subscribe(ve.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=S.useCallback((o,l)=>{r.mutate(o,l).catch(ec)},[r]);if(i.error&&i0(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}const dS=e=>cS({queryKey:["widgets",e],queryFn:()=>hS(e)}),hS=e=>Fl(`widgets/with-link/${e}`);function pS(e){return!!e&&typeof e.public_id=="string"&&typeof e.link_id=="string"&&typeof e.name=="string"&&typeof e.is_browser_notification_enabled=="boolean"&&typeof e.is_hidden_on_offline=="boolean"&&typeof e.is_upload_disabled=="boolean"}/**
40
+ `+s.stack}return{value:e,source:t,stack:i,digest:null}}function ru(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ju(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var aw=typeof WeakMap=="function"?WeakMap:Map;function M0(e,t,n){n=bn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Na||(Na=!0,uc=r),Ju(e,t)},n}function z0(e,t,n){n=bn(-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(){Ju(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Ju(e,t),typeof r!="function"&&(sr===null?sr=new Set([this]):sr.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function mh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new aw;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=Sw.bind(null,e,t,n),t.then(e,e))}function yh(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 gh(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=bn(-1,1),t.tag=2,ir(n,t,1))),n.lanes|=1),e)}var lw=Pn.ReactCurrentOwner,st=!1;function Ke(e,t,n,r){t.child=e===null?m0(t,null,n,r):Bi(t,e.child,n,r)}function vh(e,t,n,r,i){n=n.render;var s=t.ref;return Ei(t,i),r=Tf(e,t,n,r,s,i),n=Of(),e!==null&&!st?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Rn(e,t,i)):(he&&n&&mf(t),t.flags|=1,Ke(e,t,r,i),t.child)}function wh(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!Df(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,B0(e,t,s,r,i)):(e=ra(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Ds,n(o,r)&&e.ref===t.ref)return Rn(e,t,i)}return t.flags|=1,e=ar(s,r),e.ref=t.ref,e.return=t,t.child=e}function B0(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Ds(s,r)&&e.ref===t.ref)if(st=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(st=!0);else return t.lanes=e.lanes,Rn(e,t,i)}return ec(e,t,n,r,i)}function U0(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},le(yi,mt),mt|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,le(yi,mt),mt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,le(yi,mt),mt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,le(yi,mt),mt|=r;return Ke(e,t,i,n),t.child}function V0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ec(e,t,n,r,i){var s=at(n)?Mr:Ue.current;return s=Mi(t,s),Ei(t,i),n=Tf(e,t,n,r,s,i),r=Of(),e!==null&&!st?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Rn(e,t,i)):(he&&r&&mf(t),t.flags|=1,Ke(e,t,n,i),t.child)}function xh(e,t,n,r,i){if(at(n)){var s=!0;Sa(t)}else s=!1;if(Ei(t,i),t.stateNode===null)ea(e,t),D0(t,n,r),Zu(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ft(c):(c=at(n)?Mr:Ue.current,c=Mi(t,c));var d=n.getDerivedStateFromProps,u=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";u||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==c)&&ph(t,o,r,c),Mn=!1;var f=t.memoizedState;o.state=f,Ca(t,r,o,i),l=t.memoizedState,a!==r||f!==l||ot.current||Mn?(typeof d=="function"&&(Xu(t,n,d,r),l=t.memoizedState),(a=Mn||hh(t,n,a,r,f,l,c))?(u||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=c,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,g0(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:zt(t.type,a),o.props=c,u=t.pendingProps,f=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Ft(l):(l=at(n)?Mr:Ue.current,l=Mi(t,l));var m=n.getDerivedStateFromProps;(d=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==u||f!==l)&&ph(t,o,r,l),Mn=!1,f=t.memoizedState,o.state=f,Ca(t,r,o,i);var v=t.memoizedState;a!==u||f!==v||ot.current||Mn?(typeof m=="function"&&(Xu(t,n,m,r),v=t.memoizedState),(c=Mn||hh(t,n,c,r,f,v,l)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),o.props=r,o.state=v,o.context=l,r=c):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return tc(e,t,n,r,s,i)}function tc(e,t,n,r,i,s){V0(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&sh(t,n,!1),Rn(e,t,s);r=t.stateNode,lw.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Bi(t,e.child,null,s),t.child=Bi(t,null,a,s)):Ke(e,t,a,s),t.memoizedState=r.state,i&&sh(t,n,!0),t.child}function H0(e){var t=e.stateNode;t.pendingContext?ih(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ih(e,t.context,!1),_f(e,t.containerInfo)}function Sh(e,t,n,r,i){return zi(),gf(i),t.flags|=256,Ke(e,t,n,r),t.child}var nc={dehydrated:null,treeContext:null,retryLane:0};function rc(e){return{baseLanes:e,cachePool:null,transitions:null}}function W0(e,t,n){var r=t.pendingProps,i=pe.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),le(pe,i&1),e===null)return Yu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=el(o,r,0,null),e=$r(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=rc(n),t.memoizedState=nc,e):Nf(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return uw(e,t,o,r,a,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=ar(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=ar(a,s):(s=$r(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?rc(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=nc,r}return s=e.child,e=s.sibling,r=ar(s,{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 Nf(e,t){return t=el({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function $o(e,t,n,r){return r!==null&&gf(r),Bi(t,e.child,null,n),e=Nf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function uw(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=ru(Error(O(422))),$o(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=el({mode:"visible",children:r.children},i,0,null),s=$r(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Bi(t,e.child,null,o),t.child.memoizedState=rc(o),t.memoizedState=nc,s);if(!(t.mode&1))return $o(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(O(419)),r=ru(s,r,void 0),$o(e,t,o,r)}if(a=(o&e.childLanes)!==0,st||a){if(r=Pe,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,On(e,i),Yt(r,e,i,-1))}return Lf(),r=ru(Error(O(421))),$o(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Ew.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,yt=rr(i.nextSibling),wt=t,he=!0,Ht=null,e!==null&&(Rt[Pt++]=En,Rt[Pt++]=_n,Rt[Pt++]=zr,En=e.id,_n=e.overflow,zr=t),t=Nf(t,r.children),t.flags|=4096,t)}function Eh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Gu(e.return,t,n)}function iu(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function Q0(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Ke(e,t,r.children,n),r=pe.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&&Eh(e,n,t);else if(e.tag===19)Eh(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(le(pe,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&&Ta(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),iu(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ta(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}iu(t,!0,n,null,s);break;case"together":iu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ea(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Rn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ur|=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=ar(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ar(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function cw(e,t,n){switch(t.tag){case 3:H0(t),zi();break;case 5:v0(t);break;case 1:at(t.type)&&Sa(t);break;case 4:_f(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;le(ba,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(le(pe,pe.current&1),t.flags|=128,null):n&t.child.childLanes?W0(e,t,n):(le(pe,pe.current&1),e=Rn(e,t,n),e!==null?e.sibling:null);le(pe,pe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Q0(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),le(pe,pe.current),r)break;return null;case 22:case 23:return t.lanes=0,U0(e,t,n)}return Rn(e,t,n)}var q0,ic,K0,Y0;q0=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}};ic=function(){};K0=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,kr(un.current);var s=null;switch(n){case"input":i=Cu(e,i),r=Cu(e,r),s=[];break;case"select":i=ye({},i,{value:void 0}),r=ye({},r,{value:void 0}),s=[];break;case"textarea":i=Ru(e,i),r=Ru(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=wa)}Nu(n,r);var o;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Ns.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var l=r[c];if(a=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Ns.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&ue("scroll",e),s||a===l||(s=[])):(s=s||[]).push(c,l))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}};Y0=function(e,t,n,r){n!==r&&(t.flags|=4)};function cs(e,t){if(!he)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 Me(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 fw(e,t,n){var r=t.pendingProps;switch(yf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Me(t),null;case 1:return at(t.type)&&xa(),Me(t),null;case 3:return r=t.stateNode,Ui(),fe(ot),fe(Ue),kf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(jo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ht!==null&&(dc(Ht),Ht=null))),ic(e,t),Me(t),null;case 5:bf(t);var i=kr(Vs.current);if(n=t.type,e!==null&&t.stateNode!=null)K0(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 Me(t),null}if(e=kr(un.current),jo(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[an]=t,r[Bs]=s,e=(t.mode&1)!==0,n){case"dialog":ue("cancel",r),ue("close",r);break;case"iframe":case"object":case"embed":ue("load",r);break;case"video":case"audio":for(i=0;i<gs.length;i++)ue(gs[i],r);break;case"source":ue("error",r);break;case"img":case"image":case"link":ue("error",r),ue("load",r);break;case"details":ue("toggle",r);break;case"input":Nd(r,s),ue("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},ue("invalid",r);break;case"textarea":jd(r,s),ue("invalid",r)}Nu(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Ao(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Ao(r.textContent,a,e),i=["children",""+a]):Ns.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&ue("scroll",r)}switch(n){case"input":bo(r),Ad(r,s,!0);break;case"textarea":bo(r),Fd(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=wa)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=_m(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[an]=t,e[Bs]=r,q0(e,t,!1,!1),t.stateNode=e;e:{switch(o=Au(n,r),n){case"dialog":ue("cancel",e),ue("close",e),i=r;break;case"iframe":case"object":case"embed":ue("load",e),i=r;break;case"video":case"audio":for(i=0;i<gs.length;i++)ue(gs[i],e);i=r;break;case"source":ue("error",e),i=r;break;case"img":case"image":case"link":ue("error",e),ue("load",e),i=r;break;case"details":ue("toggle",e),i=r;break;case"input":Nd(e,r),i=Cu(e,r),ue("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ye({},r,{value:void 0}),ue("invalid",e);break;case"textarea":jd(e,r),i=Ru(e,r),ue("invalid",e);break;default:i=r}Nu(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?Cm(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&bm(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&As(e,l):typeof l=="number"&&As(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ns.hasOwnProperty(s)?l!=null&&s==="onScroll"&&ue("scroll",e):l!=null&&ef(e,s,l,o))}switch(n){case"input":bo(e),Ad(e,r,!1);break;case"textarea":bo(e),Fd(e);break;case"option":r.value!=null&&e.setAttribute("value",""+cr(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?vi(e,!!r.multiple,s,!1):r.defaultValue!=null&&vi(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=wa)}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 Me(t),null;case 6:if(e&&t.stateNode!=null)Y0(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=kr(Vs.current),kr(un.current),jo(t)){if(r=t.stateNode,n=t.memoizedProps,r[an]=t,(s=r.nodeValue!==n)&&(e=wt,e!==null))switch(e.tag){case 3:Ao(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ao(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[an]=t,t.stateNode=r}return Me(t),null;case 13:if(fe(pe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(he&&yt!==null&&t.mode&1&&!(t.flags&128))h0(),zi(),t.flags|=98560,s=!1;else if(s=jo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(O(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(O(317));s[an]=t}else zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Me(t),s=!1}else Ht!==null&&(dc(Ht),Ht=null),s=!0;if(!s)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||pe.current&1?ke===0&&(ke=3):Lf())),t.updateQueue!==null&&(t.flags|=4),Me(t),null);case 4:return Ui(),ic(e,t),e===null&&Ms(t.stateNode.containerInfo),Me(t),null;case 10:return xf(t.type._context),Me(t),null;case 17:return at(t.type)&&xa(),Me(t),null;case 19:if(fe(pe),s=t.memoizedState,s===null)return Me(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)cs(s,!1);else{if(ke!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ta(e),o!==null){for(t.flags|=128,cs(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return le(pe,pe.current&1|2),t.child}e=e.sibling}s.tail!==null&&xe()>Hi&&(t.flags|=128,r=!0,cs(s,!1),t.lanes=4194304)}else{if(!r)if(e=Ta(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),cs(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!he)return Me(t),null}else 2*xe()-s.renderingStartTime>Hi&&n!==1073741824&&(t.flags|=128,r=!0,cs(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=xe(),t.sibling=null,n=pe.current,le(pe,r?n&1|2:n&1),t):(Me(t),null);case 22:case 23:return If(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?mt&1073741824&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function dw(e,t){switch(yf(t),t.tag){case 1:return at(t.type)&&xa(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ui(),fe(ot),fe(Ue),kf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return bf(t),null;case 13:if(fe(pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(pe),null;case 4:return Ui(),null;case 10:return xf(t.type._context),null;case 22:case 23:return If(),null;case 24:return null;default:return null}}var Io=!1,Be=!1,hw=typeof WeakSet=="function"?WeakSet:Set,F=null;function mi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ve(e,t,r)}else n.current=null}function sc(e,t,n){try{n()}catch(r){ve(e,t,r)}}var _h=!1;function pw(e,t){if(Uu=ya,e=e0(),pf(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,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,c=0,d=0,u=e,f=null;t:for(;;){for(var m;u!==n||i!==0&&u.nodeType!==3||(a=o+i),u!==s||r!==0&&u.nodeType!==3||(l=o+r),u.nodeType===3&&(o+=u.nodeValue.length),(m=u.firstChild)!==null;)f=u,u=m;for(;;){if(u===e)break t;if(f===n&&++c===i&&(a=o),f===s&&++d===r&&(l=o),(m=u.nextSibling)!==null)break;u=f,f=u.parentNode}u=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vu={focusedElem:e,selectionRange:n},ya=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var w=v.memoizedProps,x=v.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:zt(t.type,w),x);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(_){ve(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return v=_h,_h=!1,v}function Cs(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 s=i.destroy;i.destroy=void 0,s!==void 0&&sc(t,n,s)}i=i.next}while(i!==r)}}function Za(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 oc(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 G0(e){var t=e.alternate;t!==null&&(e.alternate=null,G0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[an],delete t[Bs],delete t[Qu],delete t[G1],delete t[X1])),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 X0(e){return e.tag===5||e.tag===3||e.tag===4}function bh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||X0(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 ac(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=wa));else if(r!==4&&(e=e.child,e!==null))for(ac(e,t,n),e=e.sibling;e!==null;)ac(e,t,n),e=e.sibling}function lc(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(lc(e,t,n),e=e.sibling;e!==null;)lc(e,t,n),e=e.sibling}var Fe=null,Ut=!1;function In(e,t,n){for(n=n.child;n!==null;)Z0(e,t,n),n=n.sibling}function Z0(e,t,n){if(ln&&typeof ln.onCommitFiberUnmount=="function")try{ln.onCommitFiberUnmount(Ha,n)}catch{}switch(n.tag){case 5:Be||mi(n,t);case 6:var r=Fe,i=Ut;Fe=null,In(e,t,n),Fe=r,Ut=i,Fe!==null&&(Ut?(e=Fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Fe.removeChild(n.stateNode));break;case 18:Fe!==null&&(Ut?(e=Fe,n=n.stateNode,e.nodeType===8?Xl(e.parentNode,n):e.nodeType===1&&Xl(e,n),Is(e)):Xl(Fe,n.stateNode));break;case 4:r=Fe,i=Ut,Fe=n.stateNode.containerInfo,Ut=!0,In(e,t,n),Fe=r,Ut=i;break;case 0:case 11:case 14:case 15:if(!Be&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&sc(n,t,o),i=i.next}while(i!==r)}In(e,t,n);break;case 1:if(!Be&&(mi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ve(n,t,a)}In(e,t,n);break;case 21:In(e,t,n);break;case 22:n.mode&1?(Be=(r=Be)||n.memoizedState!==null,In(e,t,n),Be=r):In(e,t,n);break;default:In(e,t,n)}}function kh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new hw),t.forEach(function(r){var i=_w.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Fe=a.stateNode,Ut=!1;break e;case 3:Fe=a.stateNode.containerInfo,Ut=!0;break e;case 4:Fe=a.stateNode.containerInfo,Ut=!0;break e}a=a.return}if(Fe===null)throw Error(O(160));Z0(s,o,i),Fe=null,Ut=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){ve(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)J0(t,e),t=t.sibling}function J0(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Dt(t,e),Zt(e),r&4){try{Cs(3,e,e.return),Za(3,e)}catch(w){ve(e,e.return,w)}try{Cs(5,e,e.return)}catch(w){ve(e,e.return,w)}}break;case 1:Dt(t,e),Zt(e),r&512&&n!==null&&mi(n,n.return);break;case 5:if(Dt(t,e),Zt(e),r&512&&n!==null&&mi(n,n.return),e.flags&32){var i=e.stateNode;try{As(i,"")}catch(w){ve(e,e.return,w)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&Sm(i,s),Au(a,o);var c=Au(a,s);for(o=0;o<l.length;o+=2){var d=l[o],u=l[o+1];d==="style"?Cm(i,u):d==="dangerouslySetInnerHTML"?bm(i,u):d==="children"?As(i,u):ef(i,d,u,c)}switch(a){case"input":Tu(i,s);break;case"textarea":Em(i,s);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var m=s.value;m!=null?vi(i,!!s.multiple,m,!1):f!==!!s.multiple&&(s.defaultValue!=null?vi(i,!!s.multiple,s.defaultValue,!0):vi(i,!!s.multiple,s.multiple?[]:"",!1))}i[Bs]=s}catch(w){ve(e,e.return,w)}}break;case 6:if(Dt(t,e),Zt(e),r&4){if(e.stateNode===null)throw Error(O(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(w){ve(e,e.return,w)}}break;case 3:if(Dt(t,e),Zt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Is(t.containerInfo)}catch(w){ve(e,e.return,w)}break;case 4:Dt(t,e),Zt(e);break;case 13:Dt(t,e),Zt(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Ff=xe())),r&4&&kh(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Be=(c=Be)||d,Dt(t,e),Be=c):Dt(t,e),Zt(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(F=e,d=e.child;d!==null;){for(u=F=d;F!==null;){switch(f=F,m=f.child,f.tag){case 0:case 11:case 14:case 15:Cs(4,f,f.return);break;case 1:mi(f,f.return);var v=f.stateNode;if(typeof v.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(w){ve(r,n,w)}}break;case 5:mi(f,f.return);break;case 22:if(f.memoizedState!==null){Th(u);continue}}m!==null?(m.return=f,F=m):Th(u)}d=d.sibling}e:for(d=null,u=e;;){if(u.tag===5){if(d===null){d=u;try{i=u.stateNode,c?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=u.stateNode,l=u.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=km("display",o))}catch(w){ve(e,e.return,w)}}}else if(u.tag===6){if(d===null)try{u.stateNode.nodeValue=c?"":u.memoizedProps}catch(w){ve(e,e.return,w)}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===e)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)break e;for(;u.sibling===null;){if(u.return===null||u.return===e)break e;d===u&&(d=null),u=u.return}d===u&&(d=null),u.sibling.return=u.return,u=u.sibling}}break;case 19:Dt(t,e),Zt(e),r&4&&kh(e);break;case 21:break;default:Dt(t,e),Zt(e)}}function Zt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(X0(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&&(As(i,""),r.flags&=-33);var s=bh(e);lc(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=bh(e);ac(e,a,o);break;default:throw Error(O(161))}}catch(l){ve(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function mw(e,t,n){F=e,ey(e)}function ey(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var i=F,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Io;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Be;a=Io;var c=Be;if(Io=o,(Be=l)&&!c)for(F=i;F!==null;)o=F,l=o.child,o.tag===22&&o.memoizedState!==null?Oh(i):l!==null?(l.return=o,F=l):Oh(i);for(;s!==null;)F=s,ey(s),s=s.sibling;F=i,Io=a,Be=c}Ch(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,F=s):Ch(e)}}function Ch(e){for(;F!==null;){var t=F;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Be||Za(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Be)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:zt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&ch(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ch(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var u=d.dehydrated;u!==null&&Is(u)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}Be||t.flags&512&&oc(t)}catch(f){ve(t,t.return,f)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function Th(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function Oh(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Za(4,t)}catch(l){ve(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){ve(t,i,l)}}var s=t.return;try{oc(t)}catch(l){ve(t,s,l)}break;case 5:var o=t.return;try{oc(t)}catch(l){ve(t,o,l)}}}catch(l){ve(t,t.return,l)}if(t===e){F=null;break}var a=t.sibling;if(a!==null){a.return=t.return,F=a;break}F=t.return}}var yw=Math.ceil,Pa=Pn.ReactCurrentDispatcher,Af=Pn.ReactCurrentOwner,jt=Pn.ReactCurrentBatchConfig,J=0,Pe=null,Se=null,$e=0,mt=0,yi=pr(0),ke=0,qs=null,Ur=0,Ja=0,jf=0,Ts=null,rt=null,Ff=0,Hi=1/0,vn=null,Na=!1,uc=null,sr=null,Lo=!1,Zn=null,Aa=0,Os=0,cc=null,ta=-1,na=0;function Ye(){return J&6?xe():ta!==-1?ta:ta=xe()}function or(e){return e.mode&1?J&2&&$e!==0?$e&-$e:J1.transition!==null?(na===0&&(na=Dm()),na):(e=re,e!==0||(e=window.event,e=e===void 0?16:Wm(e.type)),e):1}function Yt(e,t,n,r){if(50<Os)throw Os=0,cc=null,Error(O(185));so(e,n,r),(!(J&2)||e!==Pe)&&(e===Pe&&(!(J&2)&&(Ja|=n),ke===4&&Bn(e,$e)),lt(e,r),n===1&&J===0&&!(t.mode&1)&&(Hi=xe()+500,Ya&&mr()))}function lt(e,t){var n=e.callbackNode;Jv(e,t);var r=ma(e,e===Pe?$e:0);if(r===0)n!==null&&Ld(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ld(n),t===1)e.tag===0?Z1(Rh.bind(null,e)):c0(Rh.bind(null,e)),K1(function(){!(J&6)&&mr()}),n=null;else{switch(Mm(r)){case 1:n=of;break;case 4:n=Im;break;case 16:n=pa;break;case 536870912:n=Lm;break;default:n=pa}n=ly(n,ty.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ty(e,t){if(ta=-1,na=0,J&6)throw Error(O(327));var n=e.callbackNode;if(_i()&&e.callbackNode!==n)return null;var r=ma(e,e===Pe?$e:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ja(e,r);else{t=r;var i=J;J|=2;var s=ry();(Pe!==e||$e!==t)&&(vn=null,Hi=xe()+500,Fr(e,t));do try{ww();break}catch(a){ny(e,a)}while(!0);wf(),Pa.current=s,J=i,Se!==null?t=0:(Pe=null,$e=0,t=ke)}if(t!==0){if(t===2&&(i=Lu(e),i!==0&&(r=i,t=fc(e,i))),t===1)throw n=qs,Fr(e,0),Bn(e,r),lt(e,xe()),n;if(t===6)Bn(e,r);else{if(i=e.current.alternate,!(r&30)&&!gw(i)&&(t=ja(e,r),t===2&&(s=Lu(e),s!==0&&(r=s,t=fc(e,s))),t===1))throw n=qs,Fr(e,0),Bn(e,r),lt(e,xe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:Sr(e,rt,vn);break;case 3:if(Bn(e,r),(r&130023424)===r&&(t=Ff+500-xe(),10<t)){if(ma(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ye(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Wu(Sr.bind(null,e,rt,vn),t);break}Sr(e,rt,vn);break;case 4:if(Bn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Kt(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=xe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*yw(r/1960))-r,10<r){e.timeoutHandle=Wu(Sr.bind(null,e,rt,vn),r);break}Sr(e,rt,vn);break;case 5:Sr(e,rt,vn);break;default:throw Error(O(329))}}}return lt(e,xe()),e.callbackNode===n?ty.bind(null,e):null}function fc(e,t){var n=Ts;return e.current.memoizedState.isDehydrated&&(Fr(e,t).flags|=256),e=ja(e,t),e!==2&&(t=rt,rt=n,t!==null&&dc(t)),e}function dc(e){rt===null?rt=e:rt.push.apply(rt,e)}function gw(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],s=i.getSnapshot;i=i.value;try{if(!Gt(s(),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 Bn(e,t){for(t&=~jf,t&=~Ja,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Kt(t),r=1<<n;e[n]=-1,t&=~r}}function Rh(e){if(J&6)throw Error(O(327));_i();var t=ma(e,0);if(!(t&1))return lt(e,xe()),null;var n=ja(e,t);if(e.tag!==0&&n===2){var r=Lu(e);r!==0&&(t=r,n=fc(e,r))}if(n===1)throw n=qs,Fr(e,0),Bn(e,t),lt(e,xe()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sr(e,rt,vn),lt(e,xe()),null}function $f(e,t){var n=J;J|=1;try{return e(t)}finally{J=n,J===0&&(Hi=xe()+500,Ya&&mr())}}function Vr(e){Zn!==null&&Zn.tag===0&&!(J&6)&&_i();var t=J;J|=1;var n=jt.transition,r=re;try{if(jt.transition=null,re=1,e)return e()}finally{re=r,jt.transition=n,J=t,!(J&6)&&mr()}}function If(){mt=yi.current,fe(yi)}function Fr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,q1(n)),Se!==null)for(n=Se.return;n!==null;){var r=n;switch(yf(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&xa();break;case 3:Ui(),fe(ot),fe(Ue),kf();break;case 5:bf(r);break;case 4:Ui();break;case 13:fe(pe);break;case 19:fe(pe);break;case 10:xf(r.type._context);break;case 22:case 23:If()}n=n.return}if(Pe=e,Se=e=ar(e.current,null),$e=mt=t,ke=0,qs=null,jf=Ja=Ur=0,rt=Ts=null,br!==null){for(t=0;t<br.length;t++)if(n=br[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}br=null}return e}function ny(e,t){do{var n=Se;try{if(wf(),Zo.current=Ra,Oa){for(var r=me.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Oa=!1}if(Br=0,Re=_e=me=null,ks=!1,Hs=0,Af.current=null,n===null||n.return===null){ke=1,qs=t,Se=null;break}e:{var s=e,o=n.return,a=n,l=t;if(t=$e,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,d=a,u=d.tag;if(!(d.mode&1)&&(u===0||u===11||u===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=yh(o);if(m!==null){m.flags&=-257,gh(m,o,a,s,t),m.mode&1&&mh(s,c,t),t=m,l=c;var v=t.updateQueue;if(v===null){var w=new Set;w.add(l),t.updateQueue=w}else v.add(l);break e}else{if(!(t&1)){mh(s,c,t),Lf();break e}l=Error(O(426))}}else if(he&&a.mode&1){var x=yh(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),gh(x,o,a,s,t),gf(Vi(l,a));break e}}s=l=Vi(l,a),ke!==4&&(ke=2),Ts===null?Ts=[s]:Ts.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var p=M0(s,l,t);uh(s,p);break e;case 1:a=l;var h=s.type,g=s.stateNode;if(!(s.flags&128)&&(typeof h.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(sr===null||!sr.has(g)))){s.flags|=65536,t&=-t,s.lanes|=t;var _=z0(s,a,t);uh(s,_);break e}}s=s.return}while(s!==null)}sy(n)}catch(T){t=T,Se===n&&n!==null&&(Se=n=n.return);continue}break}while(!0)}function ry(){var e=Pa.current;return Pa.current=Ra,e===null?Ra:e}function Lf(){(ke===0||ke===3||ke===2)&&(ke=4),Pe===null||!(Ur&268435455)&&!(Ja&268435455)||Bn(Pe,$e)}function ja(e,t){var n=J;J|=2;var r=ry();(Pe!==e||$e!==t)&&(vn=null,Fr(e,t));do try{vw();break}catch(i){ny(e,i)}while(!0);if(wf(),J=n,Pa.current=r,Se!==null)throw Error(O(261));return Pe=null,$e=0,ke}function vw(){for(;Se!==null;)iy(Se)}function ww(){for(;Se!==null&&!Hv();)iy(Se)}function iy(e){var t=ay(e.alternate,e,mt);e.memoizedProps=e.pendingProps,t===null?sy(e):Se=t,Af.current=null}function sy(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=dw(n,t),n!==null){n.flags&=32767,Se=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ke=6,Se=null;return}}else if(n=fw(n,t,mt),n!==null){Se=n;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);ke===0&&(ke=5)}function Sr(e,t,n){var r=re,i=jt.transition;try{jt.transition=null,re=1,xw(e,t,n,r)}finally{jt.transition=i,re=r}return null}function xw(e,t,n,r){do _i();while(Zn!==null);if(J&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 s=n.lanes|n.childLanes;if(e1(e,s),e===Pe&&(Se=Pe=null,$e=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Lo||(Lo=!0,ly(pa,function(){return _i(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=jt.transition,jt.transition=null;var o=re;re=1;var a=J;J|=4,Af.current=null,pw(e,n),J0(n,e),z1(Vu),ya=!!Uu,Vu=Uu=null,e.current=n,mw(n),Wv(),J=a,re=o,jt.transition=s}else e.current=n;if(Lo&&(Lo=!1,Zn=e,Aa=i),s=e.pendingLanes,s===0&&(sr=null),Kv(n.stateNode),lt(e,xe()),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(Na)throw Na=!1,e=uc,uc=null,e;return Aa&1&&e.tag!==0&&_i(),s=e.pendingLanes,s&1?e===cc?Os++:(Os=0,cc=e):Os=0,mr(),null}function _i(){if(Zn!==null){var e=Mm(Aa),t=jt.transition,n=re;try{if(jt.transition=null,re=16>e?16:e,Zn===null)var r=!1;else{if(e=Zn,Zn=null,Aa=0,J&6)throw Error(O(331));var i=J;for(J|=4,F=e.current;F!==null;){var s=F,o=s.child;if(F.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(F=c;F!==null;){var d=F;switch(d.tag){case 0:case 11:case 15:Cs(8,d,s)}var u=d.child;if(u!==null)u.return=d,F=u;else for(;F!==null;){d=F;var f=d.sibling,m=d.return;if(G0(d),d===c){F=null;break}if(f!==null){f.return=m,F=f;break}F=m}}}var v=s.alternate;if(v!==null){var w=v.child;if(w!==null){v.child=null;do{var x=w.sibling;w.sibling=null,w=x}while(w!==null)}}F=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,F=o;else e:for(;F!==null;){if(s=F,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Cs(9,s,s.return)}var p=s.sibling;if(p!==null){p.return=s.return,F=p;break e}F=s.return}}var h=e.current;for(F=h;F!==null;){o=F;var g=o.child;if(o.subtreeFlags&2064&&g!==null)g.return=o,F=g;else e:for(o=h;F!==null;){if(a=F,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Za(9,a)}}catch(T){ve(a,a.return,T)}if(a===o){F=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,F=_;break e}F=a.return}}if(J=i,mr(),ln&&typeof ln.onPostCommitFiberRoot=="function")try{ln.onPostCommitFiberRoot(Ha,e)}catch{}r=!0}return r}finally{re=n,jt.transition=t}}return!1}function Ph(e,t,n){t=Vi(n,t),t=M0(e,t,1),e=ir(e,t,1),t=Ye(),e!==null&&(so(e,1,t),lt(e,t))}function ve(e,t,n){if(e.tag===3)Ph(e,e,n);else for(;t!==null;){if(t.tag===3){Ph(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(sr===null||!sr.has(r))){e=Vi(n,e),e=z0(t,e,1),t=ir(t,e,1),e=Ye(),t!==null&&(so(t,1,e),lt(t,e));break}}t=t.return}}function Sw(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ye(),e.pingedLanes|=e.suspendedLanes&n,Pe===e&&($e&n)===n&&(ke===4||ke===3&&($e&130023424)===$e&&500>xe()-Ff?Fr(e,0):jf|=n),lt(e,t)}function oy(e,t){t===0&&(e.mode&1?(t=To,To<<=1,!(To&130023424)&&(To=4194304)):t=1);var n=Ye();e=On(e,t),e!==null&&(so(e,t,n),lt(e,n))}function Ew(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),oy(e,n)}function _w(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),oy(e,n)}var ay;ay=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ot.current)st=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return st=!1,cw(e,t,n);st=!!(e.flags&131072)}else st=!1,he&&t.flags&1048576&&f0(t,_a,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ea(e,t),e=t.pendingProps;var i=Mi(t,Ue.current);Ei(t,n),i=Tf(null,t,r,e,i,n);var s=Of();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,at(r)?(s=!0,Sa(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ef(t),i.updater=Xa,t.stateNode=i,i._reactInternals=t,Zu(t,r,e,n),t=tc(null,t,r,!0,s,n)):(t.tag=0,he&&s&&mf(t),Ke(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ea(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=kw(r),e=zt(r,e),i){case 0:t=ec(null,t,r,e,n);break e;case 1:t=xh(null,t,r,e,n);break e;case 11:t=vh(null,t,r,e,n);break e;case 14:t=wh(null,t,r,zt(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:zt(r,i),ec(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:zt(r,i),xh(e,t,r,i,n);case 3:e:{if(H0(t),e===null)throw Error(O(387));r=t.pendingProps,s=t.memoizedState,i=s.element,g0(e,t),Ca(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Vi(Error(O(423)),t),t=Sh(e,t,r,n,i);break e}else if(r!==i){i=Vi(Error(O(424)),t),t=Sh(e,t,r,n,i);break e}else for(yt=rr(t.stateNode.containerInfo.firstChild),wt=t,he=!0,Ht=null,n=m0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(zi(),r===i){t=Rn(e,t,n);break e}Ke(e,t,r,n)}t=t.child}return t;case 5:return v0(t),e===null&&Yu(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Hu(r,i)?o=null:s!==null&&Hu(r,s)&&(t.flags|=32),V0(e,t),Ke(e,t,o,n),t.child;case 6:return e===null&&Yu(t),null;case 13:return W0(e,t,n);case 4:return _f(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Bi(t,null,r,n):Ke(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:zt(r,i),vh(e,t,r,i,n);case 7:return Ke(e,t,t.pendingProps,n),t.child;case 8:return Ke(e,t,t.pendingProps.children,n),t.child;case 12:return Ke(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,le(ba,r._currentValue),r._currentValue=o,s!==null)if(Gt(s.value,o)){if(s.children===i.children&&!ot.current){t=Rn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=bn(-1,n&-n),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Gu(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(O(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Gu(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Ke(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ei(t,n),i=Ft(i),r=r(i),t.flags|=1,Ke(e,t,r,n),t.child;case 14:return r=t.type,i=zt(r,t.pendingProps),i=zt(r.type,i),wh(e,t,r,i,n);case 15:return B0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:zt(r,i),ea(e,t),t.tag=1,at(r)?(e=!0,Sa(t)):e=!1,Ei(t,n),D0(t,r,i),Zu(t,r,i,n),tc(null,t,r,!0,e,n);case 19:return Q0(e,t,n);case 22:return U0(e,t,n)}throw Error(O(156,t.tag))};function ly(e,t){return $m(e,t)}function bw(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 At(e,t,n,r){return new bw(e,t,n,r)}function Df(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kw(e){if(typeof e=="function")return Df(e)?1:0;if(e!=null){if(e=e.$$typeof,e===nf)return 11;if(e===rf)return 14}return 2}function ar(e,t){var n=e.alternate;return n===null?(n=At(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 ra(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Df(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case oi:return $r(n.children,i,s,t);case tf:o=8,i|=8;break;case Eu:return e=At(12,n,t,i|2),e.elementType=Eu,e.lanes=s,e;case _u:return e=At(13,n,t,i),e.elementType=_u,e.lanes=s,e;case bu:return e=At(19,n,t,i),e.elementType=bu,e.lanes=s,e;case vm:return el(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ym:o=10;break e;case gm:o=9;break e;case nf:o=11;break e;case rf:o=14;break e;case Dn:o=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=At(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function $r(e,t,n,r){return e=At(7,e,r,t),e.lanes=n,e}function el(e,t,n,r){return e=At(22,e,r,t),e.elementType=vm,e.lanes=n,e.stateNode={isHidden:!1},e}function su(e,t,n){return e=At(6,e,null,t),e.lanes=n,e}function ou(e,t,n){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Cw(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=zl(0),this.expirationTimes=zl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Mf(e,t,n,r,i,s,o,a,l){return e=new Cw(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=At(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ef(s),e}function Tw(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:si,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function uy(e){if(!e)return fr;e=e._reactInternals;e:{if(Kr(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(at(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(at(n))return u0(e,n,t)}return t}function cy(e,t,n,r,i,s,o,a,l){return e=Mf(n,r,!0,e,i,s,o,a,l),e.context=uy(null),n=e.current,r=Ye(),i=or(n),s=bn(r,i),s.callback=t??null,ir(n,s,i),e.current.lanes=i,so(e,i,r),lt(e,r),e}function tl(e,t,n,r){var i=t.current,s=Ye(),o=or(i);return n=uy(n),t.context===null?t.context=n:t.pendingContext=n,t=bn(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ir(i,t,o),e!==null&&(Yt(e,i,o,s),Xo(e,i,o)),o}function Fa(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 Nh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function zf(e,t){Nh(e,t),(e=e.alternate)&&Nh(e,t)}function Ow(){return null}var fy=typeof reportError=="function"?reportError:function(e){console.error(e)};function Bf(e){this._internalRoot=e}nl.prototype.render=Bf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));tl(e,t,null,null)};nl.prototype.unmount=Bf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Vr(function(){tl(null,e,null,null)}),t[Tn]=null}};function nl(e){this._internalRoot=e}nl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Um();e={blockedOn:null,target:e,priority:t};for(var n=0;n<zn.length&&t!==0&&t<zn[n].priority;n++);zn.splice(n,0,e),n===0&&Hm(e)}};function Uf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function rl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ah(){}function Rw(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var c=Fa(o);s.call(c)}}var o=cy(t,r,e,0,null,!1,!1,"",Ah);return e._reactRootContainer=o,e[Tn]=o.current,Ms(e.nodeType===8?e.parentNode:e),Vr(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var c=Fa(l);a.call(c)}}var l=Mf(e,0,!1,null,null,!1,!1,"",Ah);return e._reactRootContainer=l,e[Tn]=l.current,Ms(e.nodeType===8?e.parentNode:e),Vr(function(){tl(t,l,n,r)}),l}function il(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=Fa(o);a.call(l)}}tl(t,o,e,i)}else o=Rw(n,t,e,i,r);return Fa(o)}zm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ys(t.pendingLanes);n!==0&&(af(t,n|1),lt(t,xe()),!(J&6)&&(Hi=xe()+500,mr()))}break;case 13:Vr(function(){var r=On(e,1);if(r!==null){var i=Ye();Yt(r,e,1,i)}}),zf(e,1)}};lf=function(e){if(e.tag===13){var t=On(e,134217728);if(t!==null){var n=Ye();Yt(t,e,134217728,n)}zf(e,134217728)}};Bm=function(e){if(e.tag===13){var t=or(e),n=On(e,t);if(n!==null){var r=Ye();Yt(n,e,t,r)}zf(e,t)}};Um=function(){return re};Vm=function(e,t){var n=re;try{return re=e,t()}finally{re=n}};Fu=function(e,t,n){switch(t){case"input":if(Tu(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=Ka(r);if(!i)throw Error(O(90));xm(r),Tu(r,i)}}}break;case"textarea":Em(e,n);break;case"select":t=n.value,t!=null&&vi(e,!!n.multiple,t,!1)}};Rm=$f;Pm=Vr;var Pw={usingClientEntryPoint:!1,Events:[ao,ci,Ka,Tm,Om,$f]},fs={findFiberByHostInstance:_r,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Nw={bundleType:fs.bundleType,version:fs.version,rendererPackageName:fs.rendererPackageName,rendererConfig:fs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Pn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=jm(e),e===null?null:e.stateNode},findFiberByHostInstance:fs.findFiberByHostInstance||Ow,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 Do=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Do.isDisabled&&Do.supportsFiber)try{Ha=Do.inject(Nw),ln=Do}catch{}}St.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Pw;St.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Uf(t))throw Error(O(200));return Tw(e,t,null,n)};St.createRoot=function(e,t){if(!Uf(e))throw Error(O(299));var n=!1,r="",i=fy;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Mf(e,1,!1,null,null,n,!1,r,i),e[Tn]=t.current,Ms(e.nodeType===8?e.parentNode:e),new Bf(t)};St.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=jm(t),e=e===null?null:e.stateNode,e};St.flushSync=function(e){return Vr(e)};St.hydrate=function(e,t,n){if(!rl(t))throw Error(O(200));return il(null,e,t,!0,n)};St.hydrateRoot=function(e,t,n){if(!Uf(e))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=fy;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=cy(t,null,e,1,n??null,i,!1,s,o),e[Tn]=t.current,Ms(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 nl(t)};St.render=function(e,t,n){if(!rl(t))throw Error(O(200));return il(null,e,t,!1,n)};St.unmountComponentAtNode=function(e){if(!rl(e))throw Error(O(40));return e._reactRootContainer?(Vr(function(){il(null,null,e,!1,function(){e._reactRootContainer=null,e[Tn]=null})}),!0):!1};St.unstable_batchedUpdates=$f;St.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!rl(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return il(e,t,n,!1,r)};St.version="18.3.1-next-f1338f8080-20240426";function dy(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dy)}catch(e){console.error(e)}}dy(),dm.exports=St;var hy=dm.exports;const Aw=qi(hy);var py,jh=hy;py=jh.createRoot,jh.hydrateRoot;const jw="@alfatech/livechat",Fw="v2025.03.05.1",$w="module",Iw="https://api-live.alfatek.dev",Lw="wss://api-live.alfatek.dev",Dw=["dist","README.md"],Mw="dist/widget.js",zw={dev:"vite",build:"tsc -b && vite build",lint:"biome lint --write",prepare:"husky",format:"biome format --write && yarn lint"},Bw={"@tanstack/react-query":"^5.59.20",classnames:"^2.5.1",dayjs:"^1.11.13",formik:"^2.4.6",react:"^18.3.1","react-dom":"^18.3.1","react-router-dom":"^6.26.2","socket.io-client":"^4.8.1",sonner:"^2.0.1",yup:"^1.4.0",zustand:"^4.5.5"},Uw={"@biomejs/biome":"^1.8.3","@types/node":"^22.5.4","@types/react":"^18.3.3","@types/react-dom":"^18.3.0","@vitejs/plugin-react-swc":"^3.5.0",globals:"^15.9.0",husky:"^9.1.5",tailwindcss:"^3.4.10",typescript:"^5.5.3",vite:"^5.4.1"},my={name:jw,private:!1,version:Fw,type:$w,apiURL:Iw,wsURL:Lw,files:Dw,main:Mw,scripts:zw,dependencies:Bw,devDependencies:Uw,"lint-staged":{"./**/*.{js,ts,tsx,json}":["npm run format"]}},Vw=my.apiURL,Hw=my.wsURL,Ww=e=>[{limit:Number.parseInt(e.headers.get("X-Ratelimit-Limit")||"0"),remaining:Number.parseInt(e.headers.get("X-Ratelimit-Remaining")||"0"),reset:Number.parseInt(e.headers.get("X-Ratelimit-Reset")||"0"),retryAfter:Number.parseInt(e.headers.get("Retry-After")||"0")},429],Qw=(e,t)=>[{message:"message"in t?t.message:"Not Found"},404],qw={429:Ww,404:Qw};async function sl(e,t={}){const n={};!(t.body instanceof FormData)&&t.body&&(n["Content-Type"]="application/json");const r=await fetch(`${Vw}/${e}`,{...t,credentials:"include",headers:{...t.headers,...n}}).catch(s=>(console.log("err::",s),new Response(null,{status:500})));if(!r.ok){let s={};try{return s=await r.json(),[s,r.status]}catch{console.log("response: ",r)}const o=qw[r.status];return o?o(r,s):[{},r.status]}const i=r.headers.get("Content-Type");return i&&i.includes("application/json")?[await r.json(),r.status]:[await r.text(),r.status]}const yy=e=>[200,201,204].includes(e);var Xi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Hr=typeof window>"u"||"Deno"in globalThis;function Ot(){}function Kw(e,t){return typeof e=="function"?e(t):e}function hc(e){return typeof e=="number"&&e>=0&&e!==1/0}function gy(e,t){return Math.max(e+(t||0)-Date.now(),0)}function bi(e,t){return typeof e=="function"?e(t):e}function Wt(e,t){return typeof e=="function"?e(t):e}function Fh(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==Vf(o,t.options))return!1}else if(!Ks(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||s&&!s(t))}function $h(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Wr(t.options.mutationKey)!==Wr(s))return!1}else if(!Ks(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Vf(e,t){return((t==null?void 0:t.queryKeyHashFn)||Wr)(e)}function Wr(e){return JSON.stringify(e,(t,n)=>pc(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Ks(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Ks(e[n],t[n])):!1}function vy(e,t){if(e===t)return e;const n=Ih(e)&&Ih(t);if(n||pc(e)&&pc(t)){const r=n?e:Object.keys(e),i=r.length,s=n?t:Object.keys(t),o=s.length,a=n?[]:{};let l=0;for(let c=0;c<o;c++){const d=n?c:s[c];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,l++):(a[d]=vy(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&l++)}return i===o&&l===i?e:a}return t}function $a(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Ih(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function pc(e){if(!Lh(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Lh(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Lh(e){return Object.prototype.toString.call(e)==="[object Object]"}function Yw(e){return new Promise(t=>{setTimeout(t,e)})}function mc(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?vy(e,t):t}function Gw(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Xw(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Hf=Symbol();function wy(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Hf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Tr,Un,ki,Wp,Zw=(Wp=class extends Xi{constructor(){super();U(this,Tr);U(this,Un);U(this,ki);j(this,ki,t=>{if(!Hr&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){y(this,Un)||this.setEventListener(y(this,ki))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,Un))==null||t.call(this),j(this,Un,void 0))}setEventListener(t){var n;j(this,ki,t),(n=y(this,Un))==null||n.call(this),j(this,Un,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){y(this,Tr)!==t&&(j(this,Tr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof y(this,Tr)=="boolean"?y(this,Tr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Tr=new WeakMap,Un=new WeakMap,ki=new WeakMap,Wp),Wf=new Zw,Ci,Vn,Ti,Qp,Jw=(Qp=class extends Xi{constructor(){super();U(this,Ci,!0);U(this,Vn);U(this,Ti);j(this,Ti,t=>{if(!Hr&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){y(this,Vn)||this.setEventListener(y(this,Ti))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,Vn))==null||t.call(this),j(this,Vn,void 0))}setEventListener(t){var n;j(this,Ti,t),(n=y(this,Vn))==null||n.call(this),j(this,Vn,t(this.setOnline.bind(this)))}setOnline(t){y(this,Ci)!==t&&(j(this,Ci,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return y(this,Ci)}},Ci=new WeakMap,Vn=new WeakMap,Ti=new WeakMap,Qp),Ia=new Jw;function yc(){let e,t;const n=new Promise((i,s)=>{e=i,t=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function ex(e){return Math.min(1e3*2**e,3e4)}function xy(e){return(e??"online")==="online"?Ia.isOnline():!0}var Sy=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function au(e){return e instanceof Sy}function Ey(e){let t=!1,n=0,r=!1,i;const s=yc(),o=w=>{var x;r||(f(new Sy(w)),(x=e.abort)==null||x.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>Wf.isFocused()&&(e.networkMode==="always"||Ia.isOnline())&&e.canRun(),d=()=>xy(e.networkMode)&&e.canRun(),u=w=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,w),i==null||i(),s.resolve(w))},f=w=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,w),i==null||i(),s.reject(w))},m=()=>new Promise(w=>{var x;i=p=>{(r||c())&&w(p)},(x=e.onPause)==null||x.call(e)}).then(()=>{var w;i=void 0,r||(w=e.onContinue)==null||w.call(e)}),v=()=>{if(r)return;let w;const x=n===0?e.initialPromise:void 0;try{w=x??e.fn()}catch(p){w=Promise.reject(p)}Promise.resolve(w).then(u).catch(p=>{var C;if(r)return;const h=e.retry??(Hr?0:3),g=e.retryDelay??ex,_=typeof g=="function"?g(n,p):g,T=h===!0||typeof h=="number"&&n<h||typeof h=="function"&&h(n,p);if(t||!T){f(p);return}n++,(C=e.onFail)==null||C.call(e,n,p),Yw(_).then(()=>c()?void 0:m()).then(()=>{t?f(p):v()})})};return{promise:s,cancel:o,continue:()=>(i==null||i(),s),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?v():m().then(v),s)}}function tx(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=a=>setTimeout(a,0);const s=a=>{t?e.push(a):i(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var be=tx(),Or,qp,_y=(qp=class{constructor(){U(this,Or)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),hc(this.gcTime)&&j(this,Or,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Hr?1/0:5*60*1e3))}clearGcTimeout(){y(this,Or)&&(clearTimeout(y(this,Or)),j(this,Or,void 0))}},Or=new WeakMap,qp),Oi,Ri,Tt,ze,eo,Rr,Bt,gn,Kp,nx=(Kp=class extends _y{constructor(t){super();U(this,Bt);U(this,Oi);U(this,Ri);U(this,Tt);U(this,ze);U(this,eo);U(this,Rr);j(this,Rr,!1),j(this,eo,t.defaultOptions),this.setOptions(t.options),this.observers=[],j(this,Tt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,j(this,Oi,rx(this.options)),this.state=t.state??y(this,Oi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=y(this,ze))==null?void 0:t.promise}setOptions(t){this.options={...y(this,eo),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&y(this,Tt).remove(this)}setData(t,n){const r=mc(this.state.data,t,this.options);return q(this,Bt,gn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){q(this,Bt,gn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=y(this,ze))==null?void 0:r.promise;return(i=y(this,ze))==null||i.cancel(t),n?n.then(Ot).catch(Ot):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(y(this,Oi))}isActive(){return this.observers.some(t=>Wt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Hf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!gy(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,ze))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,ze))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),y(this,Tt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(y(this,ze)&&(y(this,Rr)?y(this,ze).cancel({revert:!0}):y(this,ze).cancelRetry()),this.scheduleGc()),y(this,Tt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||q(this,Bt,gn).call(this,{type:"invalidate"})}fetch(t,n){var l,c,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(y(this,ze))return y(this,ze).continueRetry(),y(this,ze).promise}if(t&&this.setOptions(t),!this.options.queryFn){const u=this.observers.find(f=>f.options.queryFn);u&&this.setOptions(u.options)}const r=new AbortController,i=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(j(this,Rr,!0),r.signal)})},s=()=>{const u=wy(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return i(f),j(this,Rr,!1),this.options.persister?this.options.persister(u,f,this):u(f)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};i(o),(l=this.options.behavior)==null||l.onFetch(o,this),j(this,Ri,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=o.fetchOptions)==null?void 0:c.meta))&&q(this,Bt,gn).call(this,{type:"fetch",meta:(d=o.fetchOptions)==null?void 0:d.meta});const a=u=>{var f,m,v,w;au(u)&&u.silent||q(this,Bt,gn).call(this,{type:"error",error:u}),au(u)||((m=(f=y(this,Tt).config).onError)==null||m.call(f,u,this),(w=(v=y(this,Tt).config).onSettled)==null||w.call(v,this.state.data,u,this)),this.scheduleGc()};return j(this,ze,Ey({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:u=>{var f,m,v,w;if(u===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(u)}catch(x){a(x);return}(m=(f=y(this,Tt).config).onSuccess)==null||m.call(f,u,this),(w=(v=y(this,Tt).config).onSettled)==null||w.call(v,u,this.state.error,this),this.scheduleGc()},onError:a,onFail:(u,f)=>{q(this,Bt,gn).call(this,{type:"failed",failureCount:u,error:f})},onPause:()=>{q(this,Bt,gn).call(this,{type:"pause"})},onContinue:()=>{q(this,Bt,gn).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),y(this,ze).start()}},Oi=new WeakMap,Ri=new WeakMap,Tt=new WeakMap,ze=new WeakMap,eo=new WeakMap,Rr=new WeakMap,Bt=new WeakSet,gn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...by(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return au(i)&&i.revert&&y(this,Ri)?{...y(this,Ri),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),be.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),y(this,Tt).notify({query:this,type:"updated",action:t})})},Kp);function by(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:xy(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function rx(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var nn,Yp,ix=(Yp=class extends Xi{constructor(t={}){super();U(this,nn);this.config=t,j(this,nn,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??Vf(i,n);let o=this.get(s);return o||(o=new nx({cache:this,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){y(this,nn).has(t.queryHash)||(y(this,nn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=y(this,nn).get(t.queryHash);n&&(t.destroy(),n===t&&y(this,nn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){be.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return y(this,nn).get(t)}getAll(){return[...y(this,nn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Fh(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Fh(t,r)):n}notify(t){be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){be.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){be.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},nn=new WeakMap,Yp),rn,Qe,Pr,sn,Ln,Gp,sx=(Gp=class extends _y{constructor(t){super();U(this,sn);U(this,rn);U(this,Qe);U(this,Pr);this.mutationId=t.mutationId,j(this,Qe,t.mutationCache),j(this,rn,[]),this.state=t.state||ky(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){y(this,rn).includes(t)||(y(this,rn).push(t),this.clearGcTimeout(),y(this,Qe).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){j(this,rn,y(this,rn).filter(n=>n!==t)),this.scheduleGc(),y(this,Qe).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){y(this,rn).length||(this.state.status==="pending"?this.scheduleGc():y(this,Qe).remove(this))}continue(){var t;return((t=y(this,Pr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,o,a,l,c,d,u,f,m,v,w,x,p,h,g,_,T,C,k;j(this,Pr,Ey({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,I)=>{q(this,sn,Ln).call(this,{type:"failed",failureCount:R,error:I})},onPause:()=>{q(this,sn,Ln).call(this,{type:"pause"})},onContinue:()=>{q(this,sn,Ln).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>y(this,Qe).canRun(this)}));const n=this.state.status==="pending",r=!y(this,Pr).canStart();try{if(!n){q(this,sn,Ln).call(this,{type:"pending",variables:t,isPaused:r}),await((s=(i=y(this,Qe).config).onMutate)==null?void 0:s.call(i,t,this));const I=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,t));I!==this.state.context&&q(this,sn,Ln).call(this,{type:"pending",context:I,variables:t,isPaused:r})}const R=await y(this,Pr).start();return await((c=(l=y(this,Qe).config).onSuccess)==null?void 0:c.call(l,R,t,this.state.context,this)),await((u=(d=this.options).onSuccess)==null?void 0:u.call(d,R,t,this.state.context)),await((m=(f=y(this,Qe).config).onSettled)==null?void 0:m.call(f,R,null,this.state.variables,this.state.context,this)),await((w=(v=this.options).onSettled)==null?void 0:w.call(v,R,null,t,this.state.context)),q(this,sn,Ln).call(this,{type:"success",data:R}),R}catch(R){try{throw await((p=(x=y(this,Qe).config).onError)==null?void 0:p.call(x,R,t,this.state.context,this)),await((g=(h=this.options).onError)==null?void 0:g.call(h,R,t,this.state.context)),await((T=(_=y(this,Qe).config).onSettled)==null?void 0:T.call(_,void 0,R,this.state.variables,this.state.context,this)),await((k=(C=this.options).onSettled)==null?void 0:k.call(C,void 0,R,t,this.state.context)),R}finally{q(this,sn,Ln).call(this,{type:"error",error:R})}}finally{y(this,Qe).runNext(this)}}},rn=new WeakMap,Qe=new WeakMap,Pr=new WeakMap,sn=new WeakSet,Ln=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),be.batch(()=>{y(this,rn).forEach(r=>{r.onMutationUpdate(t)}),y(this,Qe).notify({mutation:this,type:"updated",action:t})})},Gp);function ky(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var pt,to,Xp,ox=(Xp=class extends Xi{constructor(t={}){super();U(this,pt);U(this,to);this.config=t,j(this,pt,new Map),j(this,to,Date.now())}build(t,n,r){const i=new sx({mutationCache:this,mutationId:++So(this,to)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=Mo(t),r=y(this,pt).get(n)??[];r.push(t),y(this,pt).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Mo(t);if(y(this,pt).has(n)){const i=(r=y(this,pt).get(n))==null?void 0:r.filter(s=>s!==t);i&&(i.length===0?y(this,pt).delete(n):y(this,pt).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=y(this,pt).get(Mo(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=y(this,pt).get(Mo(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){be.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...y(this,pt).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>$h(n,r))}findAll(t={}){return this.getAll().filter(n=>$h(t,n))}notify(t){be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return be.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ot))))}},pt=new WeakMap,to=new WeakMap,Xp);function Mo(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Dh(e){return{onFetch:(t,n)=>{var d,u,f,m,v;const r=t.options,i=(f=(u=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:u.fetchMore)==null?void 0:f.direction,s=((m=t.state.data)==null?void 0:m.pages)||[],o=((v=t.state.data)==null?void 0:v.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let w=!1;const x=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(t.signal.aborted?w=!0:t.signal.addEventListener("abort",()=>{w=!0}),t.signal)})},p=wy(t.options,t.fetchOptions),h=async(g,_,T)=>{if(w)return Promise.reject();if(_==null&&g.pages.length)return Promise.resolve(g);const C={queryKey:t.queryKey,pageParam:_,direction:T?"backward":"forward",meta:t.options.meta};x(C);const k=await p(C),{maxPages:R}=t.options,I=T?Xw:Gw;return{pages:I(g.pages,k,R),pageParams:I(g.pageParams,_,R)}};if(i&&s.length){const g=i==="backward",_=g?ax:Mh,T={pages:s,pageParams:o},C=_(r,T);a=await h(T,C,g)}else{const g=e??s.length;do{const _=l===0?o[0]??r.initialPageParam:Mh(r,a);if(l>0&&_==null)break;a=await h(a,_),l++}while(l<g)}return a};t.options.persister?t.fetchFn=()=>{var w,x;return(x=(w=t.options).persister)==null?void 0:x.call(w,c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function Mh(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function ax(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var ge,Hn,Wn,Pi,Ni,Qn,Ai,ji,Zp,lx=(Zp=class{constructor(e={}){U(this,ge);U(this,Hn);U(this,Wn);U(this,Pi);U(this,Ni);U(this,Qn);U(this,Ai);U(this,ji);j(this,ge,e.queryCache||new ix),j(this,Hn,e.mutationCache||new ox),j(this,Wn,e.defaultOptions||{}),j(this,Pi,new Map),j(this,Ni,new Map),j(this,Qn,0)}mount(){So(this,Qn)._++,y(this,Qn)===1&&(j(this,Ai,Wf.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,ge).onFocus())})),j(this,ji,Ia.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,ge).onOnline())})))}unmount(){var e,t;So(this,Qn)._--,y(this,Qn)===0&&((e=y(this,Ai))==null||e.call(this),j(this,Ai,void 0),(t=y(this,ji))==null||t.call(this),j(this,ji,void 0))}isFetching(e){return y(this,ge).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return y(this,Hn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,ge).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=y(this,ge).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(bi(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return y(this,ge).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=y(this,ge).get(r.queryHash),s=i==null?void 0:i.state.data,o=Kw(t,s);if(o!==void 0)return y(this,ge).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return be.batch(()=>y(this,ge).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,ge).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=y(this,ge);be.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=y(this,ge),r={type:"active",...e};return be.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=be.batch(()=>y(this,ge).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Ot).catch(Ot)}invalidateQueries(e,t={}){return be.batch(()=>{if(y(this,ge).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none")return Promise.resolve();const n={...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"};return this.refetchQueries(n,t)})}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=be.batch(()=>y(this,ge).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(Ot)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Ot)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=y(this,ge).build(this,t);return n.isStaleByTime(bi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ot).catch(Ot)}fetchInfiniteQuery(e){return e.behavior=Dh(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ot).catch(Ot)}ensureInfiniteQueryData(e){return e.behavior=Dh(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ia.isOnline()?y(this,Hn).resumePausedMutations():Promise.resolve()}getQueryCache(){return y(this,ge)}getMutationCache(){return y(this,Hn)}getDefaultOptions(){return y(this,Wn)}setDefaultOptions(e){j(this,Wn,e)}setQueryDefaults(e,t){y(this,Pi).set(Wr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...y(this,Pi).values()],n={};return t.forEach(r=>{Ks(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){y(this,Ni).set(Wr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...y(this,Ni).values()];let n={};return t.forEach(r=>{Ks(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...y(this,Wn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Vf(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===Hf&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...y(this,Wn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){y(this,ge).clear(),y(this,Hn).clear()}},ge=new WeakMap,Hn=new WeakMap,Wn=new WeakMap,Pi=new WeakMap,Ni=new WeakMap,Qn=new WeakMap,Ai=new WeakMap,ji=new WeakMap,Zp),et,G,no,qe,Nr,Fi,qn,on,ro,$i,Ii,Ar,jr,Kn,Li,ne,vs,gc,vc,wc,xc,Sc,Ec,_c,Cy,Jp,ux=(Jp=class extends Xi{constructor(t,n){super();U(this,ne);U(this,et);U(this,G);U(this,no);U(this,qe);U(this,Nr);U(this,Fi);U(this,qn);U(this,on);U(this,ro);U(this,$i);U(this,Ii);U(this,Ar);U(this,jr);U(this,Kn);U(this,Li,new Set);this.options=n,j(this,et,t),j(this,on,null),j(this,qn,yc()),this.options.experimental_prefetchInRender||y(this,qn).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(y(this,G).addObserver(this),zh(y(this,G),this.options)?q(this,ne,vs).call(this):this.updateResult(),q(this,ne,xc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return bc(y(this,G),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return bc(y(this,G),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,q(this,ne,Sc).call(this),q(this,ne,Ec).call(this),y(this,G).removeObserver(this)}setOptions(t,n){const r=this.options,i=y(this,G);if(this.options=y(this,et).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Wt(this.options.enabled,y(this,G))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");q(this,ne,_c).call(this),y(this,G).setOptions(this.options),r._defaulted&&!$a(this.options,r)&&y(this,et).getQueryCache().notify({type:"observerOptionsUpdated",query:y(this,G),observer:this});const s=this.hasListeners();s&&Bh(y(this,G),i,this.options,r)&&q(this,ne,vs).call(this),this.updateResult(n),s&&(y(this,G)!==i||Wt(this.options.enabled,y(this,G))!==Wt(r.enabled,y(this,G))||bi(this.options.staleTime,y(this,G))!==bi(r.staleTime,y(this,G)))&&q(this,ne,gc).call(this);const o=q(this,ne,vc).call(this);s&&(y(this,G)!==i||Wt(this.options.enabled,y(this,G))!==Wt(r.enabled,y(this,G))||o!==y(this,Kn))&&q(this,ne,wc).call(this,o)}getOptimisticResult(t){const n=y(this,et).getQueryCache().build(y(this,et),t),r=this.createResult(n,t);return fx(this,r)&&(j(this,qe,r),j(this,Fi,this.options),j(this,Nr,y(this,G).state)),r}getCurrentResult(){return y(this,qe)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){y(this,Li).add(t)}getCurrentQuery(){return y(this,G)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=y(this,et).defaultQueryOptions(t),r=y(this,et).getQueryCache().build(y(this,et),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return q(this,ne,vs).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),y(this,qe)))}createResult(t,n){var R;const r=y(this,G),i=this.options,s=y(this,qe),o=y(this,Nr),a=y(this,Fi),c=t!==r?t.state:y(this,no),{state:d}=t;let u={...d},f=!1,m;if(n._optimisticResults){const I=this.hasListeners(),D=!I&&zh(t,n),B=I&&Bh(t,r,n,i);(D||B)&&(u={...u,...by(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:v,errorUpdatedAt:w,status:x}=u;if(n.select&&u.data!==void 0)if(s&&u.data===(o==null?void 0:o.data)&&n.select===y(this,ro))m=y(this,$i);else try{j(this,ro,n.select),m=n.select(u.data),m=mc(s==null?void 0:s.data,m,n),j(this,$i,m),j(this,on,null)}catch(I){j(this,on,I)}else m=u.data;if(n.placeholderData!==void 0&&m===void 0&&x==="pending"){let I;if(s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))I=s.data;else if(I=typeof n.placeholderData=="function"?n.placeholderData((R=y(this,Ii))==null?void 0:R.state.data,y(this,Ii)):n.placeholderData,n.select&&I!==void 0)try{I=n.select(I),j(this,on,null)}catch(D){j(this,on,D)}I!==void 0&&(x="success",m=mc(s==null?void 0:s.data,I,n),f=!0)}y(this,on)&&(v=y(this,on),m=y(this,$i),w=Date.now(),x="error");const p=u.fetchStatus==="fetching",h=x==="pending",g=x==="error",_=h&&p,T=m!==void 0,k={status:x,fetchStatus:u.fetchStatus,isPending:h,isSuccess:x==="success",isError:g,isInitialLoading:_,isLoading:_,data:m,dataUpdatedAt:u.dataUpdatedAt,error:v,errorUpdatedAt:w,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>c.dataUpdateCount||u.errorUpdateCount>c.errorUpdateCount,isFetching:p,isRefetching:p&&!h,isLoadingError:g&&!T,isPaused:u.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:g&&T,isStale:Qf(t,n),refetch:this.refetch,promise:y(this,qn)};if(this.options.experimental_prefetchInRender){const I=se=>{k.status==="error"?se.reject(k.error):k.data!==void 0&&se.resolve(k.data)},D=()=>{const se=j(this,qn,k.promise=yc());I(se)},B=y(this,qn);switch(B.status){case"pending":t.queryHash===r.queryHash&&I(B);break;case"fulfilled":(k.status==="error"||k.data!==B.value)&&D();break;case"rejected":(k.status!=="error"||k.error!==B.reason)&&D();break}}return k}updateResult(t){const n=y(this,qe),r=this.createResult(y(this,G),this.options);if(j(this,Nr,y(this,G).state),j(this,Fi,this.options),y(this,Nr).data!==void 0&&j(this,Ii,y(this,G)),$a(r,n))return;j(this,qe,r);const i={},s=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!y(this,Li).size)return!0;const l=new Set(a??y(this,Li));return this.options.throwOnError&&l.add("error"),Object.keys(y(this,qe)).some(c=>{const d=c;return y(this,qe)[d]!==n[d]&&l.has(d)})};(t==null?void 0:t.listeners)!==!1&&s()&&(i.listeners=!0),q(this,ne,Cy).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&q(this,ne,xc).call(this)}},et=new WeakMap,G=new WeakMap,no=new WeakMap,qe=new WeakMap,Nr=new WeakMap,Fi=new WeakMap,qn=new WeakMap,on=new WeakMap,ro=new WeakMap,$i=new WeakMap,Ii=new WeakMap,Ar=new WeakMap,jr=new WeakMap,Kn=new WeakMap,Li=new WeakMap,ne=new WeakSet,vs=function(t){q(this,ne,_c).call(this);let n=y(this,G).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ot)),n},gc=function(){q(this,ne,Sc).call(this);const t=bi(this.options.staleTime,y(this,G));if(Hr||y(this,qe).isStale||!hc(t))return;const r=gy(y(this,qe).dataUpdatedAt,t)+1;j(this,Ar,setTimeout(()=>{y(this,qe).isStale||this.updateResult()},r))},vc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(y(this,G)):this.options.refetchInterval)??!1},wc=function(t){q(this,ne,Ec).call(this),j(this,Kn,t),!(Hr||Wt(this.options.enabled,y(this,G))===!1||!hc(y(this,Kn))||y(this,Kn)===0)&&j(this,jr,setInterval(()=>{(this.options.refetchIntervalInBackground||Wf.isFocused())&&q(this,ne,vs).call(this)},y(this,Kn)))},xc=function(){q(this,ne,gc).call(this),q(this,ne,wc).call(this,q(this,ne,vc).call(this))},Sc=function(){y(this,Ar)&&(clearTimeout(y(this,Ar)),j(this,Ar,void 0))},Ec=function(){y(this,jr)&&(clearInterval(y(this,jr)),j(this,jr,void 0))},_c=function(){const t=y(this,et).getQueryCache().build(y(this,et),this.options);if(t===y(this,G))return;const n=y(this,G);j(this,G,t),j(this,no,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Cy=function(t){be.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(y(this,qe))}),y(this,et).getQueryCache().notify({query:y(this,G),type:"observerResultsUpdated"})})},Jp);function cx(e,t){return Wt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function zh(e,t){return cx(e,t)||e.state.data!==void 0&&bc(e,t,t.refetchOnMount)}function bc(e,t,n){if(Wt(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Qf(e,t)}return!1}function Bh(e,t,n,r){return(e!==t||Wt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Qf(e,n)}function Qf(e,t){return Wt(t.enabled,e)!==!1&&e.isStaleByTime(bi(t.staleTime,e))}function fx(e,t){return!$a(e.getCurrentResult(),t)}var Yn,Gn,tt,Sn,kn,ia,kc,em,dx=(em=class extends Xi{constructor(t,n){super();U(this,kn);U(this,Yn);U(this,Gn);U(this,tt);U(this,Sn);j(this,Yn,t),this.setOptions(n),this.bindMethods(),q(this,kn,ia).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var r;const n=this.options;this.options=y(this,Yn).defaultMutationOptions(t),$a(this.options,n)||y(this,Yn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:y(this,tt),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Wr(n.mutationKey)!==Wr(this.options.mutationKey)?this.reset():((r=y(this,tt))==null?void 0:r.state.status)==="pending"&&y(this,tt).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=y(this,tt))==null||t.removeObserver(this)}onMutationUpdate(t){q(this,kn,ia).call(this),q(this,kn,kc).call(this,t)}getCurrentResult(){return y(this,Gn)}reset(){var t;(t=y(this,tt))==null||t.removeObserver(this),j(this,tt,void 0),q(this,kn,ia).call(this),q(this,kn,kc).call(this)}mutate(t,n){var r;return j(this,Sn,n),(r=y(this,tt))==null||r.removeObserver(this),j(this,tt,y(this,Yn).getMutationCache().build(y(this,Yn),this.options)),y(this,tt).addObserver(this),y(this,tt).execute(t)}},Yn=new WeakMap,Gn=new WeakMap,tt=new WeakMap,Sn=new WeakMap,kn=new WeakSet,ia=function(){var n;const t=((n=y(this,tt))==null?void 0:n.state)??ky();j(this,Gn,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},kc=function(t){be.batch(()=>{var n,r,i,s,o,a,l,c;if(y(this,Sn)&&this.hasListeners()){const d=y(this,Gn).variables,u=y(this,Gn).context;(t==null?void 0:t.type)==="success"?((r=(n=y(this,Sn)).onSuccess)==null||r.call(n,t.data,d,u),(s=(i=y(this,Sn)).onSettled)==null||s.call(i,t.data,null,d,u)):(t==null?void 0:t.type)==="error"&&((a=(o=y(this,Sn)).onError)==null||a.call(o,t.error,d,u),(c=(l=y(this,Sn)).onSettled)==null||c.call(l,void 0,t.error,d,u))}this.listeners.forEach(d=>{d(y(this,Gn))})})},em),Ty=S.createContext(void 0),Oy=e=>{const t=S.useContext(Ty);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},hx=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),b.jsx(Ty.Provider,{value:e,children:t})),Ry=S.createContext(!1),px=()=>S.useContext(Ry);Ry.Provider;function mx(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var yx=S.createContext(mx()),gx=()=>S.useContext(yx);function Py(e,t){return typeof e=="function"?e(...t):!!e}function Cc(){}var vx=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},wx=e=>{S.useEffect(()=>{e.clearReset()},[e])},xx=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Py(n,[e.error,r]),Sx=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Ex=(e,t)=>e.isLoading&&e.isFetching&&!t,_x=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Uh=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function bx(e,t,n){var d,u,f,m,v;const r=Oy(),i=px(),s=gx(),o=r.defaultQueryOptions(e);(u=(d=r.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||u.call(d,o),o._optimisticResults=i?"isRestoring":"optimistic",Sx(o),vx(o,s),wx(s);const a=!r.getQueryCache().get(o.queryHash),[l]=S.useState(()=>new t(r,o)),c=l.getOptimisticResult(o);if(S.useSyncExternalStore(S.useCallback(w=>{const x=i?Cc:l.subscribe(be.batchCalls(w));return l.updateResult(),x},[l,i]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),S.useEffect(()=>{l.setOptions(o,{listeners:!1})},[o,l]),_x(o,c))throw Uh(o,l,s);if(xx({result:c,errorResetBoundary:s,throwOnError:o.throwOnError,query:r.getQueryCache().get(o.queryHash)}))throw c.error;if((m=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||m.call(f,o,c),o.experimental_prefetchInRender&&!Hr&&Ex(c,i)){const w=a?Uh(o,l,s):(v=r.getQueryCache().get(o.queryHash))==null?void 0:v.promise;w==null||w.catch(Cc).finally(()=>{l.updateResult()})}return o.notifyOnChangeProps?c:l.trackResult(c)}function kx(e,t){return bx(e,ux)}function Cx(e,t){const n=Oy(),[r]=S.useState(()=>new dx(n,e));S.useEffect(()=>{r.setOptions(e)},[r,e]);const i=S.useSyncExternalStore(S.useCallback(o=>r.subscribe(be.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=S.useCallback((o,a)=>{r.mutate(o,a).catch(Cc)},[r]);if(i.error&&Py(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}const Tx=e=>kx({queryKey:["widgets",e],queryFn:()=>Ox(e)}),Ox=e=>sl(`widgets/with-link/${e}`);function Rx(e){return!!e&&typeof e.public_id=="string"&&typeof e.link_id=="string"&&typeof e.name=="string"&&typeof e.is_browser_notification_enabled=="boolean"&&typeof e.is_hidden_on_offline=="boolean"&&typeof e.is_upload_disabled=="boolean"}/**
41
41
  * @remix-run/router v1.21.0
42
42
  *
43
43
  * Copyright (c) Remix Software Inc.
@@ -46,7 +46,7 @@ Error generating stack: `+s.message+`
46
46
  * LICENSE.md file in the root directory of this source tree.
47
47
  *
48
48
  * @license MIT
49
- */function cl(){return cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cl.apply(this,arguments)}var Fn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Fn||(Fn={}));function mS(e){e===void 0&&(e={});let{initialEntries:t=["/"],initialIndex:n,v5Compat:r=!1}=e,i;i=t.map((m,v)=>d(m,typeof m=="string"?null:m.state,v===0?"default":void 0));let s=a(n??i.length-1),o=Fn.Pop,l=null;function a(m){return Math.min(Math.max(m,0),i.length-1)}function u(){return i[s]}function d(m,v,w){v===void 0&&(v=null);let _=gS(i?u().pathname:"/",m,v,w);return xf(_.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(m)),_}function c(m){return typeof m=="string"?m:vS(m)}return{get index(){return s},get action(){return o},get location(){return u()},createHref:c,createURL(m){return new URL(c(m),"http://localhost")},encodeLocation(m){let v=typeof m=="string"?Or(m):m;return{pathname:v.pathname||"",search:v.search||"",hash:v.hash||""}},push(m,v){o=Fn.Push;let w=d(m,v);s+=1,i.splice(s,i.length,w),r&&l&&l({action:o,location:w,delta:1})},replace(m,v){o=Fn.Replace;let w=d(m,v);i[s]=w,r&&l&&l({action:o,location:w,delta:0})},go(m){o=Fn.Pop;let v=a(s+m),w=i[v];s=v,l&&l({action:o,location:w,delta:m})},listen(m){return l=m,()=>{l=null}}}}function ke(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function xf(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function yS(){return Math.random().toString(36).substr(2,8)}function gS(e,t,n,r){return n===void 0&&(n=null),cl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Or(t):t,{state:n,key:t&&t.key||r||yS()})}function vS(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Or(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var vh;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(vh||(vh={}));function wS(e,t,n){return n===void 0&&(n="/"),SS(e,t,n,!1)}function SS(e,t,n,r){let i=typeof t=="string"?Or(t):t,s=l0(i.pathname||"/",n);if(s==null)return null;let o=s0(e);xS(o);let l=null;for(let a=0;l==null&&a<o.length;++a){let u=NS(s);l=PS(o[a],u,r)}return l}function s0(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,o,l)=>{let a={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};a.relativePath.startsWith("/")&&(ke(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=mr([r,a.relativePath]),d=n.concat(a);s.children&&s.children.length>0&&(ke(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),s0(s.children,t,d,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:OS(u,s.index),routesMeta:d})};return e.forEach((s,o)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))i(s,o);else for(let a of o0(s.path))i(s,o,a)}),t}function o0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=o0(r.join("/")),l=[];return l.push(...o.map(a=>a===""?s:[s,a].join("/"))),i&&l.push(...o),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function xS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:RS(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const _S=/^:[\w-]+$/,ES=3,kS=2,CS=1,TS=10,bS=-2,wh=e=>e==="*";function OS(e,t){let n=e.split("/"),r=n.length;return n.some(wh)&&(r+=bS),t&&(r+=kS),n.filter(i=>!wh(i)).reduce((i,s)=>i+(_S.test(s)?ES:s===""?CS:TS),r)}function RS(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function PS(e,t,n){let{routesMeta:r}=e,i={},s="/",o=[];for(let l=0;l<r.length;++l){let a=r[l],u=l===r.length-1,d=s==="/"?t:t.slice(s.length)||"/",c=Sh({path:a.relativePath,caseSensitive:a.caseSensitive,end:u},d),f=a.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=Sh({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},d)),!c)return null;Object.assign(i,c.params),o.push({params:i,pathname:mr([s,c.pathname]),pathnameBase:MS(mr([s,c.pathnameBase])),route:f}),c.pathnameBase!=="/"&&(s=mr([s,c.pathnameBase]))}return o}function Sh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=AS(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((u,d,c)=>{let{paramName:f,isOptional:m}=d;if(f==="*"){let w=l[c]||"";o=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}const v=l[c];return m&&!v?u[f]=void 0:u[f]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:e}}function AS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),xf(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function NS(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return xf(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function l0(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function FS(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Or(e):e;return{pathname:n?n.startsWith("/")?n:jS(n,t):t,search:DS(r),hash:zS(i)}}function jS(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Ia(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function $S(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function IS(e,t){let n=$S(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function LS(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Or(e):(i=cl({},e),ke(!i.pathname||!i.pathname.includes("?"),Ia("?","pathname","search",i)),ke(!i.pathname||!i.pathname.includes("#"),Ia("#","pathname","hash",i)),ke(!i.search||!i.search.includes("#"),Ia("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,l;if(o==null)l=n;else{let c=t.length-1;if(!r&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),c-=1;i.pathname=f.join("/")}l=c>=0?t[c]:"/"}let a=FS(i,l),u=o&&o!=="/"&&o.endsWith("/"),d=(s||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||d)&&(a.pathname+="/"),a}const mr=e=>e.join("/").replace(/\/\/+/g,"/"),MS=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),DS=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,zS=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function US(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const a0=["post","put","patch","delete"];new Set(a0);const BS=["get",...a0];new Set(BS);/**
49
+ */function La(){return La=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},La.apply(this,arguments)}var Jn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Jn||(Jn={}));function Px(e){e===void 0&&(e={});let{initialEntries:t=["/"],initialIndex:n,v5Compat:r=!1}=e,i;i=t.map((m,v)=>d(m,typeof m=="string"?null:m.state,v===0?"default":void 0));let s=l(n??i.length-1),o=Jn.Pop,a=null;function l(m){return Math.min(Math.max(m,0),i.length-1)}function c(){return i[s]}function d(m,v,w){v===void 0&&(v=null);let x=Ax(i?c().pathname:"/",m,v,w);return qf(x.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(m)),x}function u(m){return typeof m=="string"?m:jx(m)}return{get index(){return s},get action(){return o},get location(){return c()},createHref:u,createURL(m){return new URL(u(m),"http://localhost")},encodeLocation(m){let v=typeof m=="string"?Yr(m):m;return{pathname:v.pathname||"",search:v.search||"",hash:v.hash||""}},push(m,v){o=Jn.Push;let w=d(m,v);s+=1,i.splice(s,i.length,w),r&&a&&a({action:o,location:w,delta:1})},replace(m,v){o=Jn.Replace;let w=d(m,v);i[s]=w,r&&a&&a({action:o,location:w,delta:0})},go(m){o=Jn.Pop;let v=l(s+m),w=i[v];s=v,a&&a({action:o,location:w,delta:m})},listen(m){return a=m,()=>{a=null}}}}function Ne(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function qf(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Nx(){return Math.random().toString(36).substr(2,8)}function Ax(e,t,n,r){return n===void 0&&(n=null),La({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Yr(t):t,{state:n,key:t&&t.key||r||Nx()})}function jx(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Yr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var Vh;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Vh||(Vh={}));function Fx(e,t,n){return n===void 0&&(n="/"),$x(e,t,n,!1)}function $x(e,t,n,r){let i=typeof t=="string"?Yr(t):t,s=jy(i.pathname||"/",n);if(s==null)return null;let o=Ny(e);Ix(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let c=qx(s);a=Wx(o[l],c,r)}return a}function Ny(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,o,a)=>{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(Ne(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Ir([r,l.relativePath]),d=n.concat(l);s.children&&s.children.length>0&&(Ne(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Ny(s.children,t,d,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:Vx(c,s.index),routesMeta:d})};return e.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of Ay(s.path))i(s,o,l)}),t}function Ay(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=Ay(r.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function Ix(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Hx(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Lx=/^:[\w-]+$/,Dx=3,Mx=2,zx=1,Bx=10,Ux=-2,Hh=e=>e==="*";function Vx(e,t){let n=e.split("/"),r=n.length;return n.some(Hh)&&(r+=Ux),t&&(r+=Mx),n.filter(i=>!Hh(i)).reduce((i,s)=>i+(Lx.test(s)?Dx:s===""?zx:Bx),r)}function Hx(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Wx(e,t,n){let{routesMeta:r}=e,i={},s="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],c=a===r.length-1,d=s==="/"?t:t.slice(s.length)||"/",u=Wh({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),f=l.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=Wh({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!u)return null;Object.assign(i,u.params),o.push({params:i,pathname:Ir([s,u.pathname]),pathnameBase:Jx(Ir([s,u.pathnameBase])),route:f}),u.pathnameBase!=="/"&&(s=Ir([s,u.pathnameBase]))}return o}function Wh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Qx(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((c,d,u)=>{let{paramName:f,isOptional:m}=d;if(f==="*"){let w=a[u]||"";o=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}const v=a[u];return m&&!v?c[f]=void 0:c[f]=(v||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:o,pattern:e}}function Qx(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),qf(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function qx(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return qf(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function jy(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Kx(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Yr(e):e;return{pathname:n?n.startsWith("/")?n:Yx(n,t):t,search:eS(r),hash:tS(i)}}function Yx(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function lu(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Gx(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Xx(e,t){let n=Gx(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Zx(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Yr(e):(i=La({},e),Ne(!i.pathname||!i.pathname.includes("?"),lu("?","pathname","search",i)),Ne(!i.pathname||!i.pathname.includes("#"),lu("#","pathname","hash",i)),Ne(!i.search||!i.search.includes("#"),lu("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=n;else{let u=t.length-1;if(!r&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),u-=1;i.pathname=f.join("/")}a=u>=0?t[u]:"/"}let l=Kx(i,a),c=o&&o!=="/"&&o.endsWith("/"),d=(s||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const Ir=e=>e.join("/").replace(/\/\/+/g,"/"),Jx=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),eS=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,tS=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function nS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Fy=["post","put","patch","delete"];new Set(Fy);const rS=["get",...Fy];new Set(rS);/**
50
50
  * React Router v6.28.0
51
51
  *
52
52
  * Copyright (c) Remix Software Inc.
@@ -55,7 +55,7 @@ Error generating stack: `+s.message+`
55
55
  * LICENSE.md file in the root directory of this source tree.
56
56
  *
57
57
  * @license MIT
58
- */function Os(){return Os=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Os.apply(this,arguments)}const _f=S.createContext(null),VS=S.createContext(null),jl=S.createContext(null),$l=S.createContext(null),Ri=S.createContext({outlet:null,matches:[],isDataRoute:!1}),u0=S.createContext(null);function Il(){return S.useContext($l)!=null}function c0(){return Il()||ke(!1),S.useContext($l).location}function f0(e){S.useContext(jl).static||S.useLayoutEffect(e)}function HS(){let{isDataRoute:e}=S.useContext(Ri);return e?rx():WS()}function WS(){Il()||ke(!1);let e=S.useContext(_f),{basename:t,future:n,navigator:r}=S.useContext(jl),{matches:i}=S.useContext(Ri),{pathname:s}=c0(),o=JSON.stringify(IS(i,n.v7_relativeSplatPath)),l=S.useRef(!1);return f0(()=>{l.current=!0}),S.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let c=LS(u,JSON.parse(o),s,d.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:mr([t,c.pathname])),(d.replace?r.replace:r.push)(c,d.state,d)},[t,r,o,s,e])}function QS(e,t){return qS(e,t)}function qS(e,t,n,r){Il()||ke(!1);let{navigator:i}=S.useContext(jl),{matches:s}=S.useContext(Ri),o=s[s.length-1],l=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let u=c0(),d;if(t){var c;let _=typeof t=="string"?Or(t):t;a==="/"||(c=_.pathname)!=null&&c.startsWith(a)||ke(!1),d=_}else d=u;let f=d.pathname||"/",m=f;if(a!=="/"){let _=a.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(_.length).join("/")}let v=wS(e,{pathname:m}),w=ZS(v&&v.map(_=>Object.assign({},_,{params:Object.assign({},l,_.params),pathname:mr([a,i.encodeLocation?i.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?a:mr([a,i.encodeLocation?i.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),s,n,r);return t&&w?S.createElement($l.Provider,{value:{location:Os({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Fn.Pop}},w):w}function KS(){let e=nx(),t=US(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:i},n):null,null)}const GS=S.createElement(KS,null);class YS extends S.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?S.createElement(Ri.Provider,{value:this.props.routeContext},S.createElement(u0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function XS(e){let{routeContext:t,match:n,children:r}=e,i=S.useContext(_f);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(Ri.Provider,{value:t},r)}function ZS(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let d=o.findIndex(c=>c.route.id&&(l==null?void 0:l[c.route.id])!==void 0);d>=0||ke(!1),o=o.slice(0,Math.min(o.length,d+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let c=o[d];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(u=d),c.route.id){let{loaderData:f,errors:m}=n,v=c.route.loader&&f[c.route.id]===void 0&&(!m||m[c.route.id]===void 0);if(c.route.lazy||v){a=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((d,c,f)=>{let m,v=!1,w=null,_=null;n&&(m=l&&c.route.id?l[c.route.id]:void 0,w=c.route.errorElement||GS,a&&(u<0&&f===0?(v=!0,_=null):u===f&&(v=!0,_=c.route.hydrateFallbackElement||null)));let p=t.concat(o.slice(0,f+1)),h=()=>{let g;return m?g=w:v?g=_:c.route.Component?g=S.createElement(c.route.Component,null):c.route.element?g=c.route.element:g=d,S.createElement(XS,{match:c,routeContext:{outlet:d,matches:p,isDataRoute:n!=null},children:g})};return n&&(c.route.ErrorBoundary||c.route.errorElement||f===0)?S.createElement(YS,{location:n.location,revalidation:n.revalidation,component:w,error:m,children:h(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):h()},null)}var d0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(d0||{}),fl=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(fl||{});function JS(e){let t=S.useContext(_f);return t||ke(!1),t}function ex(e){let t=S.useContext(VS);return t||ke(!1),t}function tx(e){let t=S.useContext(Ri);return t||ke(!1),t}function h0(e){let t=tx(),n=t.matches[t.matches.length-1];return n.route.id||ke(!1),n.route.id}function nx(){var e;let t=S.useContext(u0),n=ex(fl.UseRouteError),r=h0(fl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function rx(){let{router:e}=JS(d0.UseNavigateStable),t=h0(fl.UseNavigateStable),n=S.useRef(!1);return f0(()=>{n.current=!0}),S.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Os({fromRouteId:t},s)))},[e,t])}const xh={};function ix(e,t){xh[t]||(xh[t]=!0,console.warn(t))}const _h=(e,t,n)=>ix(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function sx(e,t){e!=null&&e.v7_startTransition||_h("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&!t&&_h("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}const ox="startTransition",Eh=ov[ox];function lx(e){let{basename:t,children:n,initialEntries:r,initialIndex:i,future:s}=e,o=S.useRef();o.current==null&&(o.current=mS({initialEntries:r,initialIndex:i,v5Compat:!0}));let l=o.current,[a,u]=S.useState({action:l.action,location:l.location}),{v7_startTransition:d}=s||{},c=S.useCallback(f=>{d&&Eh?Eh(()=>u(f)):u(f)},[u,d]);return S.useLayoutEffect(()=>l.listen(c),[l,c]),S.useEffect(()=>sx(s),[s]),S.createElement(ax,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:l,future:s})}function tc(e){ke(!1)}function ax(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Fn.Pop,navigator:s,static:o=!1,future:l}=e;Il()&&ke(!1);let a=t.replace(/^\/*/,"/"),u=S.useMemo(()=>({basename:a,navigator:s,static:o,future:Os({v7_relativeSplatPath:!1},l)}),[a,l,s,o]);typeof r=="string"&&(r=Or(r));let{pathname:d="/",search:c="",hash:f="",state:m=null,key:v="default"}=r,w=S.useMemo(()=>{let _=l0(d,a);return _==null?null:{location:{pathname:_,search:c,hash:f,state:m,key:v},navigationType:i}},[a,d,c,f,m,v,i]);return w==null?null:S.createElement(jl.Provider,{value:u},S.createElement($l.Provider,{children:n,value:w}))}function ux(e){let{children:t,location:n}=e;return QS(nc(t),n)}new Promise(()=>{});function nc(e,t){t===void 0&&(t=[]);let n=[];return S.Children.forEach(e,(r,i)=>{if(!S.isValidElement(r))return;let s=[...t,i];if(r.type===S.Fragment){n.push.apply(n,nc(r.props.children,s));return}r.type!==tc&&ke(!1),!r.props.index||!r.props.children||ke(!1);let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=nc(r.props.children,s)),n.push(o)}),n}const cx={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},kh=e=>{let t;const n=new Set,r=(d,c)=>{const f=typeof d=="function"?d(t):d;if(!Object.is(f,t)){const m=t;t=c??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(v=>v(t,m))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>u,subscribe:d=>(n.add(d),()=>n.delete(d)),destroy:()=>{(cx?"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()}},u=t=e(r,i,a);return a},fx=e=>e?kh(e):kh;var p0={exports:{}},m0={},y0={exports:{}},g0={};/**
58
+ */function Ys(){return Ys=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ys.apply(this,arguments)}const Kf=S.createContext(null),iS=S.createContext(null),ol=S.createContext(null),al=S.createContext(null),Zi=S.createContext({outlet:null,matches:[],isDataRoute:!1}),$y=S.createContext(null);function ll(){return S.useContext(al)!=null}function Iy(){return ll()||Ne(!1),S.useContext(al).location}function Ly(e){S.useContext(ol).static||S.useLayoutEffect(e)}function sS(){let{isDataRoute:e}=S.useContext(Zi);return e?vS():oS()}function oS(){ll()||Ne(!1);let e=S.useContext(Kf),{basename:t,future:n,navigator:r}=S.useContext(ol),{matches:i}=S.useContext(Zi),{pathname:s}=Iy(),o=JSON.stringify(Xx(i,n.v7_relativeSplatPath)),a=S.useRef(!1);return Ly(()=>{a.current=!0}),S.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let u=Zx(c,JSON.parse(o),s,d.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:Ir([t,u.pathname])),(d.replace?r.replace:r.push)(u,d.state,d)},[t,r,o,s,e])}function aS(e,t){return lS(e,t)}function lS(e,t,n,r){ll()||Ne(!1);let{navigator:i}=S.useContext(ol),{matches:s}=S.useContext(Zi),o=s[s.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=Iy(),d;if(t){var u;let x=typeof t=="string"?Yr(t):t;l==="/"||(u=x.pathname)!=null&&u.startsWith(l)||Ne(!1),d=x}else d=c;let f=d.pathname||"/",m=f;if(l!=="/"){let x=l.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(x.length).join("/")}let v=Fx(e,{pathname:m}),w=hS(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:Ir([l,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Ir([l,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),s,n,r);return t&&w?S.createElement(al.Provider,{value:{location:Ys({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Jn.Pop}},w):w}function uS(){let e=gS(),t=nS(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:i},n):null,null)}const cS=S.createElement(uS,null);class fS extends S.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?S.createElement(Zi.Provider,{value:this.props.routeContext},S.createElement($y.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function dS(e){let{routeContext:t,match:n,children:r}=e,i=S.useContext(Kf);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(Zi.Provider,{value:t},r)}function hS(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let d=o.findIndex(u=>u.route.id&&(a==null?void 0:a[u.route.id])!==void 0);d>=0||Ne(!1),o=o.slice(0,Math.min(o.length,d+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let u=o[d];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(c=d),u.route.id){let{loaderData:f,errors:m}=n,v=u.route.loader&&f[u.route.id]===void 0&&(!m||m[u.route.id]===void 0);if(u.route.lazy||v){l=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((d,u,f)=>{let m,v=!1,w=null,x=null;n&&(m=a&&u.route.id?a[u.route.id]:void 0,w=u.route.errorElement||cS,l&&(c<0&&f===0?(v=!0,x=null):c===f&&(v=!0,x=u.route.hydrateFallbackElement||null)));let p=t.concat(o.slice(0,f+1)),h=()=>{let g;return m?g=w:v?g=x:u.route.Component?g=S.createElement(u.route.Component,null):u.route.element?g=u.route.element:g=d,S.createElement(dS,{match:u,routeContext:{outlet:d,matches:p,isDataRoute:n!=null},children:g})};return n&&(u.route.ErrorBoundary||u.route.errorElement||f===0)?S.createElement(fS,{location:n.location,revalidation:n.revalidation,component:w,error:m,children:h(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):h()},null)}var Dy=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Dy||{}),Da=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Da||{});function pS(e){let t=S.useContext(Kf);return t||Ne(!1),t}function mS(e){let t=S.useContext(iS);return t||Ne(!1),t}function yS(e){let t=S.useContext(Zi);return t||Ne(!1),t}function My(e){let t=yS(),n=t.matches[t.matches.length-1];return n.route.id||Ne(!1),n.route.id}function gS(){var e;let t=S.useContext($y),n=mS(Da.UseRouteError),r=My(Da.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function vS(){let{router:e}=pS(Dy.UseNavigateStable),t=My(Da.UseNavigateStable),n=S.useRef(!1);return Ly(()=>{n.current=!0}),S.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ys({fromRouteId:t},s)))},[e,t])}const Qh={};function wS(e,t){Qh[t]||(Qh[t]=!0,console.warn(t))}const qh=(e,t,n)=>wS(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function xS(e,t){e!=null&&e.v7_startTransition||qh("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&!t&&qh("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}const SS="startTransition",Kh=Sv[SS];function ES(e){let{basename:t,children:n,initialEntries:r,initialIndex:i,future:s}=e,o=S.useRef();o.current==null&&(o.current=Px({initialEntries:r,initialIndex:i,v5Compat:!0}));let a=o.current,[l,c]=S.useState({action:a.action,location:a.location}),{v7_startTransition:d}=s||{},u=S.useCallback(f=>{d&&Kh?Kh(()=>c(f)):c(f)},[c,d]);return S.useLayoutEffect(()=>a.listen(u),[a,u]),S.useEffect(()=>xS(s),[s]),S.createElement(_S,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:s})}function Tc(e){Ne(!1)}function _S(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Jn.Pop,navigator:s,static:o=!1,future:a}=e;ll()&&Ne(!1);let l=t.replace(/^\/*/,"/"),c=S.useMemo(()=>({basename:l,navigator:s,static:o,future:Ys({v7_relativeSplatPath:!1},a)}),[l,a,s,o]);typeof r=="string"&&(r=Yr(r));let{pathname:d="/",search:u="",hash:f="",state:m=null,key:v="default"}=r,w=S.useMemo(()=>{let x=jy(d,l);return x==null?null:{location:{pathname:x,search:u,hash:f,state:m,key:v},navigationType:i}},[l,d,u,f,m,v,i]);return w==null?null:S.createElement(ol.Provider,{value:c},S.createElement(al.Provider,{children:n,value:w}))}function bS(e){let{children:t,location:n}=e;return aS(Oc(t),n)}new Promise(()=>{});function Oc(e,t){t===void 0&&(t=[]);let n=[];return S.Children.forEach(e,(r,i)=>{if(!S.isValidElement(r))return;let s=[...t,i];if(r.type===S.Fragment){n.push.apply(n,Oc(r.props.children,s));return}r.type!==Tc&&Ne(!1),!r.props.index||!r.props.children||Ne(!1);let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Oc(r.props.children,s)),n.push(o)}),n}const kS={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},Yh=e=>{let t;const n=new Set,r=(d,u)=>{const f=typeof d=="function"?d(t):d;if(!Object.is(f,t)){const m=t;t=u??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(v=>v(t,m))}},i=()=>t,l={setState:r,getState:i,getInitialState:()=>c,subscribe:d=>(n.add(d),()=>n.delete(d)),destroy:()=>{(kS?"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()}},c=t=e(r,i,l);return l},CS=e=>e?Yh(e):Yh;var zy={exports:{}},By={},Uy={exports:{}},Vy={};/**
59
59
  * @license React
60
60
  * use-sync-external-store-shim.production.min.js
61
61
  *
@@ -63,7 +63,7 @@ Error generating stack: `+s.message+`
63
63
  *
64
64
  * This source code is licensed under the MIT license found in the
65
65
  * LICENSE file in the root directory of this source tree.
66
- */var Ei=S;function dx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hx=typeof Object.is=="function"?Object.is:dx,px=Ei.useState,mx=Ei.useEffect,yx=Ei.useLayoutEffect,gx=Ei.useDebugValue;function vx(e,t){var n=t(),r=px({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return yx(function(){i.value=n,i.getSnapshot=t,La(i)&&s({inst:i})},[e,n,t]),mx(function(){return La(i)&&s({inst:i}),e(function(){La(i)&&s({inst:i})})},[e]),gx(n),n}function La(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!hx(e,n)}catch{return!0}}function wx(e,t){return t()}var Sx=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?wx:vx;g0.useSyncExternalStore=Ei.useSyncExternalStore!==void 0?Ei.useSyncExternalStore:Sx;y0.exports=g0;var xx=y0.exports;/**
66
+ */var Wi=S;function TS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var OS=typeof Object.is=="function"?Object.is:TS,RS=Wi.useState,PS=Wi.useEffect,NS=Wi.useLayoutEffect,AS=Wi.useDebugValue;function jS(e,t){var n=t(),r=RS({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return NS(function(){i.value=n,i.getSnapshot=t,uu(i)&&s({inst:i})},[e,n,t]),PS(function(){return uu(i)&&s({inst:i}),e(function(){uu(i)&&s({inst:i})})},[e]),AS(n),n}function uu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!OS(e,n)}catch{return!0}}function FS(e,t){return t()}var $S=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?FS:jS;Vy.useSyncExternalStore=Wi.useSyncExternalStore!==void 0?Wi.useSyncExternalStore:$S;Uy.exports=Vy;var IS=Uy.exports;/**
67
67
  * @license React
68
68
  * use-sync-external-store-shim/with-selector.production.min.js
69
69
  *
@@ -71,18 +71,18 @@ Error generating stack: `+s.message+`
71
71
  *
72
72
  * This source code is licensed under the MIT license found in the
73
73
  * LICENSE file in the root directory of this source tree.
74
- */var Ll=S,_x=xx;function Ex(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kx=typeof Object.is=="function"?Object.is:Ex,Cx=_x.useSyncExternalStore,Tx=Ll.useRef,bx=Ll.useEffect,Ox=Ll.useMemo,Rx=Ll.useDebugValue;m0.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var s=Tx(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=Ox(function(){function a(m){if(!u){if(u=!0,d=m,m=r(m),i!==void 0&&o.hasValue){var v=o.value;if(i(v,m))return c=v}return c=m}if(v=c,kx(d,m))return v;var w=r(m);return i!==void 0&&i(v,w)?v:(d=m,c=w)}var u=!1,d,c,f=n===void 0?null:n;return[function(){return a(t())},f===null?void 0:function(){return a(f())}]},[t,n,r,i]);var l=Cx(e,s[0],s[1]);return bx(function(){o.hasValue=!0,o.value=l},[l]),Rx(l),l};p0.exports=m0;var Px=p0.exports;const Ax=Ls(Px),v0={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},{useDebugValue:Nx}=Dp,{useSyncExternalStoreWithSelector:Fx}=Ax;let Ch=!1;const jx=e=>e;function $x(e,t=jx,n){(v0?"production":void 0)!=="production"&&n&&!Ch&&(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"),Ch=!0);const r=Fx(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Nx(r),r}const Th=e=>{(v0?"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"?fx(e):e,n=(r,i)=>$x(t,r,i);return Object.assign(n,t),n},Ix=e=>e?Th(e):Th,Pi=Ix(e=>({widget:null,open:!1,setOpen:t=>e({open:t}),setWidget:t=>e({widget:t})})),Lx={primary:{solid:"text-white btn bg-blue-500 border-blue-500 hover:text-white hover:bg-blue-600 hover:border-blue-600 focus:text-white focus:bg-blue-600 focus:border-blue-600 focus:ring focus:ring-blue-100 active:text-white active:bg-blue-600 active:border-blue-600 active:ring active:ring-blue-100",soft:"text-blue-500 btn bg-blue-100 hover:text-white hover:bg-blue-600 focus:text-white focus:bg-blue-600 focus:ring focus:ring-blue-100 active:text-white active:bg-blue-600 active:ring active:ring-blue-100",dashed:"bg-white border-dashed text-blue-500 btn border-blue-500 hover:text-blue-500 hover:bg-blue-50 hover:border-blue-600 focus:text-blue-600 focus:bg-blue-50 focus:border-blue-600 active:text-blue-600 active:bg-blue-50 active:border-blue-600",outline:"bg-white text-blue-500 btn border-blue-500 hover:text-white hover:bg-blue-600 hover:border-blue-600 focus:text-white focus:bg-blue-600 focus:border-blue-600 focus:ring focus:ring-blue-100 active:text-white active:bg-blue-600 active:border-blue-600 active:ring active:ring-blue-100",ghost:"bg-white text-blue-500 btn hover:text-blue-500 hover:bg-blue-100 focus:text-blue-500 focus:bg-blue-100 active:text-blue-500 active:bg-blue-100"},red:{solid:"text-white btn bg-red-500 border-red-500 hover:text-white hover:bg-red-600 hover:border-red-600 focus:text-white focus:bg-red-600 focus:border-red-600 focus:ring focus:ring-red-100 active:text-white active:bg-red-600 active:border-red-600 active:ring active:ring-red-100",soft:"text-red-500 btn bg-red-100 hover:text-white hover:bg-red-600 focus:text-white focus:bg-red-600 focus:ring focus:ring-red-100 active:text-white active:bg-red-600 active:ring active:ring-red-100",dashed:"bg-white border-dashed text-red-500 btn border-red-500 hover:text-red-500 hover:bg-red-50 hover:border-red-600 focus:text-red-600 focus:bg-red-50 focus:border-red-600 active:text-red-600 active:bg-red-50 active:border-red-600",outline:"bg-white text-red-500 btn border-red-500 hover:text-white hover:bg-red-600 hover:border-red-600 focus:text-white focus:bg-red-600 focus:border-red-600 focus:ring focus:ring-red-100 active:text-white active:bg-red-600 active:border-red-600 active:ring active:ring-red-100",ghost:"bg-white text-red-500 btn hover:text-red-500 hover:bg-red-100 focus:text-red-500 focus:bg-red-100 active:text-red-500 active:bg-red-100"}},Mx={xs:{default:"py-1 text-xs px-1.5",rounded:"p-1.5 text-xs"},sm:{default:"px-2 py-1.5 text-xs",rounded:"p-2 text-xs"},md:{default:"px-2.5 py-2 text-sm",rounded:"p-2.5 text-xs"},lg:{default:"px-3 py-2.5",rounded:"p-3"},xl:{default:"px-4 py-2.5 text-15",rounded:"p-4 text-15"},"2xl":{default:"px-5 py-3 text-15",rounded:"p-5 text-15"}};var w0={exports:{}};/*!
74
+ */var ul=S,LS=IS;function DS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var MS=typeof Object.is=="function"?Object.is:DS,zS=LS.useSyncExternalStore,BS=ul.useRef,US=ul.useEffect,VS=ul.useMemo,HS=ul.useDebugValue;By.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var s=BS(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=VS(function(){function l(m){if(!c){if(c=!0,d=m,m=r(m),i!==void 0&&o.hasValue){var v=o.value;if(i(v,m))return u=v}return u=m}if(v=u,MS(d,m))return v;var w=r(m);return i!==void 0&&i(v,w)?v:(d=m,u=w)}var c=!1,d,u,f=n===void 0?null:n;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,n,r,i]);var a=zS(e,s[0],s[1]);return US(function(){o.hasValue=!0,o.value=a},[a]),HS(a),a};zy.exports=By;var WS=zy.exports;const QS=qi(WS),Hy={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},{useDebugValue:qS}=P,{useSyncExternalStoreWithSelector:KS}=QS;let Gh=!1;const YS=e=>e;function GS(e,t=YS,n){(Hy?"production":void 0)!=="production"&&n&&!Gh&&(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"),Gh=!0);const r=KS(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return qS(r),r}const Xh=e=>{(Hy?"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"?CS(e):e,n=(r,i)=>GS(t,r,i);return Object.assign(n,t),n},XS=e=>e?Xh(e):Xh,Ji=XS(e=>({widget:null,open:!1,setOpen:t=>e({open:t}),setWidget:t=>e({widget:t})})),ZS={primary:{solid:"lc-text-white lc-btn lc-bg-blue-500 lc-border-blue-500 hover:lc-text-white hover:lc-bg-blue-600 hover:lc-border-blue-600 focus:lc-text-white focus:lc-bg-blue-600 focus:lc-border-blue-600 focus:lc-ring focus:lc-ring-blue-100 active:lc-text-white active:lc-bg-blue-600 active:lc-border-blue-600 active:lc-ring active:lc-ring-blue-100",soft:"lc-text-blue-500 lc-btn lc-bg-blue-100 hover:lc-text-white hover:lc-bg-blue-600 focus:lc-text-white focus:lc-bg-blue-600 focus:lc-ring focus:lc-ring-blue-100 active:lc-text-white active:lc-bg-blue-600 active:lc-ring active:lc-ring-blue-100",dashed:"lc-bg-white lc-border-dashed lc-text-blue-500 lc-btn lc-border-blue-500 hover:lc-text-blue-500 hover:lc-bg-blue-50 hover:lc-border-blue-600 focus:lc-text-blue-600 focus:lc-bg-blue-50 focus:lc-border-blue-600 active:lc-text-blue-600 active:lc-bg-blue-50 active:lc-border-blue-600",outline:"lc-bg-white lc-text-blue-500 lc-btn lc-border-blue-500 hover:lc-text-white hover:lc-bg-blue-600 hover:lc-border-blue-600 focus:lc-text-white focus:lc-bg-blue-600 focus:lc-border-blue-600 focus:lc-ring focus:lc-ring-blue-100 active:lc-text-white active:lc-bg-blue-600 active:lc-border-blue-600 active:lc-ring active:lc-ring-blue-100",ghost:"lc-bg-white lc-text-blue-500 lc-btn hover:lc-text-blue-500 hover:lc-bg-blue-100 focus:lc-text-blue-500 focus:lc-bg-blue-100 active:lc-text-blue-500 active:lc-bg-blue-100"},red:{solid:"lc-text-white lc-btn lc-bg-red-500 lc-border-red-500 hover:lc-text-white hover:lc-bg-red-600 hover:lc-border-red-600 focus:lc-text-white focus:lc-bg-red-600 focus:lc-border-red-600 focus:lc-ring focus:lc-ring-red-100 active:lc-text-white active:lc-bg-red-600 active:lc-border-red-600 active:lc-ring active:lc-ring-red-100",soft:"lc-text-red-500 lc-btn lc-bg-red-100 hover:lc-text-white hover:lc-bg-red-600 focus:lc-text-white focus:lc-bg-red-600 focus:lc-ring focus:lc-ring-red-100 active:lc-text-white active:lc-bg-red-600 active:lc-ring active:lc-ring-red-100",dashed:"lc-bg-white lc-border-dashed lc-text-red-500 lc-btn lc-border-red-500 hover:lc-text-red-500 hover:lc-bg-red-50 hover:lc-border-red-600 focus:lc-text-red-600 focus:lc-bg-red-50 focus:lc-border-red-600 active:lc-text-red-600 active:lc-bg-red-50 active:lc-border-red-600",outline:"lc-bg-white lc-text-red-500 lc-btn lc-border-red-500 hover:lc-text-white hover:lc-bg-red-600 hover:lc-border-red-600 focus:lc-text-white focus:lc-bg-red-600 focus:lc-border-red-600 focus:lc-ring focus:lc-ring-red-100 active:lc-text-white active:lc-bg-red-600 active:lc-border-red-600 active:lc-ring active:lc-ring-red-100",ghost:"lc-bg-white lc-text-red-500 lc-btn hover:lc-text-red-500 hover:lc-bg-red-100 focus:lc-text-red-500 focus:lc-bg-red-100 active:lc-text-red-500 active:lc-bg-red-100"}},JS={xs:{default:"lc-py-1 lc-text-xs lc-px-1.5",rounded:"lc-p-1.5 lc-text-xs"},sm:{default:"lc-px-2 lc-py-1.5 lc-text-xs",rounded:"lc-p-2 lc-text-xs"},md:{default:"lc-px-2.5 lc-py-2 lc-text-sm",rounded:"lc-p-2.5 lc-text-xs"},lg:{default:"lc-px-3 lc-py-2.5",rounded:"lc-p-3"},xl:{default:"lc-px-4 lc-py-2.5 lc-text-15",rounded:"lc-p-4 lc-text-15"},"2xl":{default:"lc-px-5 lc-py-3 lc-text-15",rounded:"lc-p-5 lc-text-15"}};var Wy={exports:{}};/*!
75
75
  Copyright (c) 2018 Jed Watson.
76
76
  Licensed under the MIT License (MIT), see
77
77
  http://jedwatson.github.io/classnames
78
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",o=0;o<arguments.length;o++){var l=arguments[o];l&&(s=i(s,r(l)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var o="";for(var l in s)t.call(s,l)&&s[l]&&(o=i(o,l));return o}function i(s,o){return o?s?s+" "+o:s+o:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(w0);var Dx=w0.exports;const Vt=Ls(Dx);function Rs({children:e,type:t="button",variant:n="primary",kind:r="solid",size:i="md",rounded:s=!1,className:o,...l}){return k.jsx("button",{type:t,className:Vt("flex items-center justify-center",{"rounded-full":s,"rounded-md":!s},o,Lx[n][r],Mx[i][s?"rounded":"default"]),...l,children:e})}function Ge(){}Ge.Home=function(t){return k.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",...t,children:k.jsx("path",{d:"M3 13h1v7c0 1.103.897 2 2 2h12c1.103 0 2-.897 2-2v-7h1a1 1 0 00.707-1.707l-9-9a.999.999 0 00-1.414 0l-9 9A1 1 0 003 13zm7 7v-5h4v5h-4zm2-15.586l6 6V15l.001 5H16v-5c0-1.103-.897-2-2-2h-4c-1.103 0-2 .897-2 2v5H6v-9.586l6-6z"})})};Ge.Chat=e=>k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 8.25h9m-9 3H12m-9.75 1.51c0 1.6 1.123 2.994 2.707 3.227 1.129.166 2.27.293 3.423.379.35.026.67.21.865.501L12 21l2.755-4.133a1.14 1.14 0 0 1 .865-.501 48.172 48.172 0 0 0 3.423-.379c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"})});Ge.MessageTyping=({className:e="size-5",...t})=>k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:e,...t,children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.625 9.75a.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-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 0 1 .778-.332 48.294 48.294 0 0 0 5.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"})});Ge.Check=function(t){return k.jsx("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",...t,children:k.jsx("path",{d:"M12.736 3.97a.733.733 0 011.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 01-1.065.02L3.217 8.384a.757.757 0 010-1.06.733.733 0 011.047 0l3.052 3.093 5.4-6.425a.247.247 0 01.02-.022z"})})};Ge.Website=function(t){return k.jsxs("svg",{fill:"none",viewBox:"0 0 24 24",height:"1em",width:"1em",...t,children:[k.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M14 7a1 1 0 00-1 1v8a1 1 0 001 1h4a1 1 0 001-1V8a1 1 0 00-1-1h-4zm3 2h-2v6h2V9z",clipRule:"evenodd"}),k.jsx("path",{fill:"currentColor",d:"M6 7a1 1 0 000 2h4a1 1 0 100-2H6zM6 11a1 1 0 100 2h4a1 1 0 100-2H6zM5 16a1 1 0 011-1h4a1 1 0 110 2H6a1 1 0 01-1-1z"}),k.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 3a3 3 0 00-3 3v12a3 3 0 003 3h16a3 3 0 003-3V6a3 3 0 00-3-3H4zm16 2H4a1 1 0 00-1 1v12a1 1 0 001 1h16a1 1 0 001-1V6a1 1 0 00-1-1z",clipRule:"evenodd"})]})};Ge.ArrowDown=e=>k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})});Ge.XCircle=({className:e="size-5",...t})=>k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:e,...t,children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})});Ge.X=({className:e="size-5",...t})=>k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:e,...t,children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"})});const Kt=Object.create(null);Kt.open="0";Kt.close="1";Kt.ping="2";Kt.pong="3";Kt.message="4";Kt.upgrade="5";Kt.noop="6";const No=Object.create(null);Object.keys(Kt).forEach(e=>{No[Kt[e]]=e});const rc={type:"error",data:"parser error"},S0=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",x0=typeof ArrayBuffer=="function",_0=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Ef=({type:e,data:t},n,r)=>S0&&t instanceof Blob?n?r(t):bh(t,r):x0&&(t instanceof ArrayBuffer||_0(t))?n?r(t):bh(new Blob([t]),r):r(Kt[e]+(t||"")),bh=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function Oh(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Ma;function zx(e,t){if(S0&&e.data instanceof Blob)return e.data.arrayBuffer().then(Oh).then(t);if(x0&&(e.data instanceof ArrayBuffer||_0(e.data)))return t(Oh(e.data));Ef(e,!1,n=>{Ma||(Ma=new TextEncoder),t(Ma.encode(n))})}const Rh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yi=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Rh.length;e++)Yi[Rh.charCodeAt(e)]=e;const Ux=e=>{let t=e.length*.75,n=e.length,r,i=0,s,o,l,a;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),d=new Uint8Array(u);for(r=0;r<n;r+=4)s=Yi[e.charCodeAt(r)],o=Yi[e.charCodeAt(r+1)],l=Yi[e.charCodeAt(r+2)],a=Yi[e.charCodeAt(r+3)],d[i++]=s<<2|o>>4,d[i++]=(o&15)<<4|l>>2,d[i++]=(l&3)<<6|a&63;return u},Bx=typeof ArrayBuffer=="function",kf=(e,t)=>{if(typeof e!="string")return{type:"message",data:E0(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Vx(e.substring(1),t)}:No[n]?e.length>1?{type:No[n],data:e.substring(1)}:{type:No[n]}:rc},Vx=(e,t)=>{if(Bx){const n=Ux(e);return E0(n,t)}else return{base64:!0,data:e}},E0=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},k0="",Hx=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((s,o)=>{Ef(s,!1,l=>{r[o]=l,++i===n&&t(r.join(k0))})})},Wx=(e,t)=>{const n=e.split(k0),r=[];for(let i=0;i<n.length;i++){const s=kf(n[i],t);if(r.push(s),s.type==="error")break}return r};function Qx(){return new TransformStream({transform(e,t){zx(e,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const s=new DataView(i.buffer);s.setUint8(0,126),s.setUint16(1,r)}else{i=new Uint8Array(9);const s=new DataView(i.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let Da;function ho(e){return e.reduce((t,n)=>t+n.length,0)}function po(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function qx(e,t){Da||(Da=new TextDecoder);const n=[];let r=0,i=-1,s=!1;return new TransformStream({transform(o,l){for(n.push(o);;){if(r===0){if(ho(n)<1)break;const a=po(n,1);s=(a[0]&128)===128,i=a[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(ho(n)<2)break;const a=po(n,2);i=new DataView(a.buffer,a.byteOffset,a.length).getUint16(0),r=3}else if(r===2){if(ho(n)<8)break;const a=po(n,8),u=new DataView(a.buffer,a.byteOffset,a.length),d=u.getUint32(0);if(d>Math.pow(2,21)-1){l.enqueue(rc);break}i=d*Math.pow(2,32)+u.getUint32(4),r=3}else{if(ho(n)<i)break;const a=po(n,i);l.enqueue(kf(s?a:Da.decode(a),t)),r=0}if(i===0||i>e){l.enqueue(rc);break}}}})}const C0=4;function ye(e){if(e)return Kx(e)}function Kx(e){for(var t in ye.prototype)e[t]=ye.prototype[t];return e}ye.prototype.on=ye.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};ye.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};ye.prototype.off=ye.prototype.removeListener=ye.prototype.removeAllListeners=ye.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};ye.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this};ye.prototype.emitReserved=ye.prototype.emit;ye.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};ye.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Ml=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),dt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Gx="arraybuffer";function T0(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const Yx=dt.setTimeout,Xx=dt.clearTimeout;function Dl(e,t){t.useNativeTimers?(e.setTimeoutFn=Yx.bind(dt),e.clearTimeoutFn=Xx.bind(dt)):(e.setTimeoutFn=dt.setTimeout.bind(dt),e.clearTimeoutFn=dt.clearTimeout.bind(dt))}const Zx=1.33;function Jx(e){return typeof e=="string"?e_(e):Math.ceil((e.byteLength||e.size)*Zx)}function e_(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function b0(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function t_(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function n_(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let s=n[r].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}class r_ extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Cf extends ye{constructor(t){super(),this.writable=!1,Dl(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new r_(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=kf(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=t_(t);return n.length?"?"+n:""}}class i_ extends Cf{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Wx(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Hx(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=b0()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let O0=!1;try{O0=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const s_=O0;function o_(){}class l_ extends i_{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,s)=>{this.onError("xhr post error",i,s)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Qt extends ye{constructor(t,n,r){super(),this.createRequest=t,Dl(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=T0(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=Qt.requestsCount++,Qt.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=o_,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Qt.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Qt.requestsCount=0;Qt.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Ph);else if(typeof addEventListener=="function"){const e="onpagehide"in dt?"pagehide":"unload";addEventListener(e,Ph,!1)}}function Ph(){for(let e in Qt.requests)Qt.requests.hasOwnProperty(e)&&Qt.requests[e].abort()}const a_=function(){const e=R0({xdomain:!1});return e&&e.responseType!==null}();class u_ extends l_{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=a_&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Qt(R0,this.uri(),t)}}function R0(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||s_))return new XMLHttpRequest}catch{}if(!t)try{return new dt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const P0=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class c_ extends Cf{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=P0?{}:T0(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;Ef(r,this.supportsBinary,s=>{try{this.doWrite(r,s)}catch{}i&&Ml(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=b0()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const za=dt.WebSocket||dt.MozWebSocket;class f_ extends c_{createSocket(t,n,r){return P0?new za(t,n,r):n?new za(t,n):new za(t)}doWrite(t,n){this.ws.send(n)}}class d_ extends Cf{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=qx(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=Qx();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const s=()=>{r.read().then(({done:l,value:a})=>{l||(this.onPacket(a),s())}).catch(l=>{})};s();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;this._writer.write(r).then(()=>{i&&Ml(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const h_={websocket:f_,webtransport:d_,polling:u_},p_=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,m_=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ic(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=p_.exec(e||""),s={},o=14;for(;o--;)s[m_[o]]=i[o]||"";return n!=-1&&r!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=y_(s,s.path),s.queryKey=g_(s,s.query),s}function y_(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function g_(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,s){i&&(n[i]=s)}),n}const sc=typeof addEventListener=="function"&&typeof removeEventListener=="function",Fo=[];sc&&addEventListener("offline",()=>{Fo.forEach(e=>e())},!1);class Bn extends ye{constructor(t,n){if(super(),this.binaryType=Gx,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=ic(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=ic(n.host).host);Dl(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=n_(this.opts.query)),sc&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Fo.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=C0,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Bn.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Bn.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=Jx(i)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Ml(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const s={type:t,data:n,options:r};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(Bn.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),sc&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Fo.indexOf(this._offlineEventListener);r!==-1&&Fo.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}Bn.protocol=C0;class v_ extends Bn{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;Bn.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",c=>{if(!r)if(c.type==="pong"&&c.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Bn.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(d(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function s(){r||(r=!0,d(),n.close(),n=null)}const o=c=>{const f=new Error("probe error: "+c);f.transport=n.name,s(),this.emitReserved("upgradeError",f)};function l(){o("transport closed")}function a(){o("socket closed")}function u(c){n&&c.name!==n.name&&s()}const d=()=>{n.removeListener("open",i),n.removeListener("error",o),n.removeListener("close",l),this.off("close",a),this.off("upgrading",u)};n.once("open",i),n.once("error",o),n.once("close",l),this.once("close",a),this.once("upgrading",u),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let w_=class extends v_{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(i=>h_[i]).filter(i=>!!i)),super(t,r)}};function S_(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=ic(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const s=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port+t,r.href=r.protocol+"://"+s+(n&&n.port===r.port?"":":"+r.port),r}const x_=typeof ArrayBuffer=="function",__=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,A0=Object.prototype.toString,E_=typeof Blob=="function"||typeof Blob<"u"&&A0.call(Blob)==="[object BlobConstructor]",k_=typeof File=="function"||typeof File<"u"&&A0.call(File)==="[object FileConstructor]";function Tf(e){return x_&&(e instanceof ArrayBuffer||__(e))||E_&&e instanceof Blob||k_&&e instanceof File}function jo(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(jo(e[n]))return!0;return!1}if(Tf(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return jo(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&jo(e[n]))return!0;return!1}function C_(e){const t=[],n=e.data,r=e;return r.data=oc(n,t),r.attachments=t.length,{packet:r,buffers:t}}function oc(e,t){if(!e)return e;if(Tf(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=oc(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=oc(e[r],t));return n}return e}function T_(e,t){return e.data=lc(e.data,t),delete e.attachments,e}function lc(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=lc(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=lc(e[n],t));return e}const b_=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],O_=5;var Q;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Q||(Q={}));class R_{constructor(t){this.replacer=t}encode(t){return(t.type===Q.EVENT||t.type===Q.ACK)&&jo(t)?this.encodeAsBinary({type:t.type===Q.EVENT?Q.BINARY_EVENT:Q.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===Q.BINARY_EVENT||t.type===Q.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=C_(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}function Ah(e){return Object.prototype.toString.call(e)==="[object Object]"}class bf extends ye{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===Q.BINARY_EVENT;r||n.type===Q.BINARY_ACK?(n.type=r?Q.EVENT:Q.ACK,this.reconstructor=new P_(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Tf(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(Q[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Q.BINARY_EVENT||r.type===Q.BINARY_ACK){const s=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const o=t.substring(s,n);if(o!=Number(o)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(o)}if(t.charAt(n+1)==="/"){const s=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(s,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const s=n+1;for(;++n;){const o=t.charAt(n);if(o==null||Number(o)!=o){--n;break}if(n===t.length)break}r.id=Number(t.substring(s,n+1))}if(t.charAt(++n)){const s=this.tryParse(t.substr(n));if(bf.isPayloadValid(r.type,s))r.data=s;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case Q.CONNECT:return Ah(n);case Q.DISCONNECT:return n===void 0;case Q.CONNECT_ERROR:return typeof n=="string"||Ah(n);case Q.EVENT:case Q.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&b_.indexOf(n[0])===-1);case Q.ACK:case Q.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class P_{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=T_(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const A_=Object.freeze(Object.defineProperty({__proto__:null,Decoder:bf,Encoder:R_,get PacketType(){return Q},protocol:O_},Symbol.toStringTag,{value:"Module"}));function kt(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const N_=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class N0 extends ye{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[kt(t,"open",this.onopen.bind(this)),kt(t,"packet",this.onpacket.bind(this)),kt(t,"error",this.onerror.bind(this)),kt(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,i,s;if(N_.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const o={type:Q.EVENT,data:n};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const d=this.ids++,c=n.pop();this._registerAckCallback(d,c),o.id=d}const l=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,a=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!l||(a?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const s=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let l=0;l<this.sendBuffer.length;l++)this.sendBuffer[l].id===t&&this.sendBuffer.splice(l,1);n.call(this,new Error("operation has timed out"))},i),o=(...l)=>{this.io.clearTimeoutFn(s),n.apply(this,l)};o.withError=!0,this.acks[t]=o}emitWithAck(t,...n){return new Promise((r,i)=>{const s=(o,l)=>o?i(o):r(l);s.withError=!0,n.push(s),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...s)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...s)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Q.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Q.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Q.EVENT:case Q.BINARY_EVENT:this.onevent(t);break;case Q.ACK:case Q.BINARY_ACK:this.onack(t);break;case Q.DISCONNECT:this.ondisconnect();break;case Q.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:Q.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Q.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function Ai(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Ai.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};Ai.prototype.reset=function(){this.attempts=0};Ai.prototype.setMin=function(e){this.ms=e};Ai.prototype.setMax=function(e){this.max=e};Ai.prototype.setJitter=function(e){this.jitter=e};class ac extends ye{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Dl(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Ai({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||A_;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new w_(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=kt(n,"open",function(){r.onopen(),t&&t()}),s=l=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",l),t?t(l):this.maybeReconnectOnOpen()},o=kt(n,"error",s);if(this._timeout!==!1){const l=this._timeout,a=this.setTimeoutFn(()=>{i(),s(new Error("timeout")),n.close()},l);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}return this.subs.push(i),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(kt(t,"ping",this.onping.bind(this)),kt(t,"data",this.ondata.bind(this)),kt(t,"error",this.onerror.bind(this)),kt(t,"close",this.onclose.bind(this)),kt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Ml(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new N0(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Vi={};function $o(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=S_(e,t.path||"/socket.io"),r=n.source,i=n.id,s=n.path,o=Vi[i]&&s in Vi[i].nsps,l=t.forceNew||t["force new connection"]||t.multiplex===!1||o;let a;return l?a=new ac(r,t):(Vi[i]||(Vi[i]=new ac(r,t)),a=Vi[i]),n.query&&!t.query&&(t.query=n.queryKey),a.socket(n.path,t)}Object.assign($o,{Manager:ac,Socket:N0,io:$o,connect:$o});const Ua=e=>{const t=document.cookie.split(";").find(n=>n.includes(e));return t?t.split("=")[1]:null},F0=S.createContext(null),Vs=()=>S.useContext(F0),F_=({children:e})=>{const[t,n]=S.useState(null),[r,i]=S.useState(!1),[s,o]=S.useState({}),l=()=>{const m=$o(Rw,{transports:["websocket"],auth:{customer_token:Ua("customer_token"),device_id:Ua("device_id"),customer_refresh_token:Ua("customer_refresh_token")}});m.on("error",v=>{console.error("Websocket error",v)}),m.on("connect",()=>{n(m),i(!0)})},a=()=>{t&&(t.connect(),i(!0))},u=()=>{t&&(t.disconnect(),i(!1))},d=(m,v)=>{t&&(t.on(m,w=>{v(w)}),o({...s,[m]:v}))},c=m=>{t&&s[m]&&(t.off(m,s[m]),delete s[m])},f=(m,v,w)=>{t&&t.emit(m,v,w)};return k.jsx(F0.Provider,{value:{socket:t,connected:r,events:s,connect:l,reconnect:a,disconnect:u,on:d,off:c,emit:f},children:e})};var qt=(e=>(e.ChatView="chat:user:view",e.ChatClose="chat:user:close",e.MessageList="message:list",e.MessageCreate="message:create",e.MessageTyping="message:typing",e.WidgetOpen="widget:open",e.WidgetClose="widget:close",e.PageChange="page-change",e))(qt||{}),bt=(e=>(e.MessageAgentCreate="message:agent:create",e.MessageAgentTyping="message:agent:typing",e.Banned="banned",e.ChatUserClose="chat:user:close",e.ChatUserAssignee="chat:user:assignee",e))(bt||{});const Of=e=>{const t=HS(),n=(r,i)=>{var o;const s=((o=Ab.find(l=>l.name===r))==null?void 0:o.path)??"/";return typeof i=="object"&&s.includes(":")?Object.entries(i).reduce((l,[a,u])=>l.replace(`:${a}`,u),s):i?`${s}?${i}`:s};return{push:(r,i)=>{t(n(r,i),e)},path:n}},j_=()=>fS({mutationFn:e=>Fl(`clients/${e.client_id}/chats`,{method:"POST",body:JSON.stringify({...e,client_id:void 0})})}),$_=e=>Fl(`clients/${e}/chats`),dl=e=>Fl(`clients/${e}/chats`,{method:"DELETE"});function j0({children:e,defaultOpen:t}){const n=Vs(),{open:r,setOpen:i,widget:s}=Pi(),o=Of(),l=()=>{i(!0),n&&n.emit(qt.WidgetOpen,{})},a=()=>{i(!1),n&&n.emit(qt.WidgetClose,{})},u=()=>{i(!1),dl(s.client_id),o.push("registration")},d=async()=>{i(!1),await dl(s.client_id),o.push("registration")};return S.useEffect(()=>{if(t&&i(!0),!(!n||!s))return n.on(bt.Banned,u),n.on(bt.ChatUserClose,d),()=>{n.off(bt.Banned),n.off(bt.ChatUserClose)}},[]),k.jsxs("section",{className:"relative w-full h-full",children:[r&&k.jsx("div",{className:"w-86 h-[32rem] absolute bottom-8 right-8 z-[300]",children:e}),k.jsxs("div",{className:"absolute bottom-0 right-0 z-[400]",children:[!r&&k.jsx(Rs,{size:"lg",rounded:!0,onClick:l,children:k.jsx(Ge.Chat,{className:"size-6"})}),r&&k.jsx(Rs,{size:"lg",rounded:!0,onClick:a,children:k.jsx(Ge.X,{className:"size-6"})})]})]})}function Rr(e){this._maxSize=e,this.clear()}Rr.prototype.clear=function(){this._size=0,this._values=Object.create(null)};Rr.prototype.get=function(e){return this._values[e]};Rr.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var I_=/[^.^\]^[]+|(?=\[\]|\.\.)/g,$0=/^\d+$/,L_=/^\d/,M_=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,D_=/^\s*(['"]?)(.*?)(\1)\s*$/,Rf=512,Nh=new Rr(Rf),Fh=new Rr(Rf),jh=new Rr(Rf),yr={Cache:Rr,split:uc,normalizePath:Ba,setter:function(e){var t=Ba(e);return Fh.get(e)||Fh.set(e,function(r,i){for(var s=0,o=t.length,l=r;s<o-1;){var a=t[s];if(a==="__proto__"||a==="constructor"||a==="prototype")return r;l=l[t[s++]]}l[t[s]]=i})},getter:function(e,t){var n=Ba(e);return jh.get(e)||jh.set(e,function(i){for(var s=0,o=n.length;s<o;)if(i!=null||!t)i=i[n[s++]];else return;return i})},join:function(e){return e.reduce(function(t,n){return t+(Pf(n)||$0.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){z_(Array.isArray(e)?e:uc(e),t,n)}};function Ba(e){return Nh.get(e)||Nh.set(e,uc(e).map(function(t){return t.replace(D_,"$2")}))}function uc(e){return e.match(I_)||[""]}function z_(e,t,n){var r=e.length,i,s,o,l;for(s=0;s<r;s++)i=e[s],i&&(V_(i)&&(i='"'+i+'"'),l=Pf(i),o=!l&&/^\d+$/.test(i),t.call(n,i,l,o,s,e))}function Pf(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function U_(e){return e.match(L_)&&!e.match($0)}function B_(e){return M_.test(e)}function V_(e){return!Pf(e)&&(U_(e)||B_(e))}const H_=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,zl=e=>e.match(H_)||[],Ul=e=>e[0].toUpperCase()+e.slice(1),Af=(e,t)=>zl(e).join(t).toLowerCase(),I0=e=>zl(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),W_=e=>Ul(I0(e)),Q_=e=>Af(e,"_"),q_=e=>Af(e,"-"),K_=e=>Ul(Af(e," ")),G_=e=>zl(e).map(Ul).join(" ");var Va={words:zl,upperFirst:Ul,camelCase:I0,pascalCase:W_,snakeCase:Q_,kebabCase:q_,sentenceCase:K_,titleCase:G_},Nf={exports:{}};Nf.exports=function(e){return L0(Y_(e),e)};Nf.exports.array=L0;function L0(e,t){var n=e.length,r=new Array(n),i={},s=n,o=X_(t),l=Z_(e);for(t.forEach(function(u){if(!l.has(u[0])||!l.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});s--;)i[s]||a(e[s],s,new Set);return r;function a(u,d,c){if(c.has(u)){var f;try{f=", node was:"+JSON.stringify(u)}catch{f=""}throw new Error("Cyclic dependency"+f)}if(!l.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!i[d]){i[d]=!0;var m=o.get(u)||new Set;if(m=Array.from(m),d=m.length){c.add(u);do{var v=m[--d];a(v,l.get(v),c)}while(d);c.delete(u)}r[--n]=u}}}function Y_(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}function X_(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}function Z_(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var J_=Nf.exports;const eE=Ls(J_),tE=Object.prototype.toString,nE=Error.prototype.toString,rE=RegExp.prototype.toString,iE=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",sE=/^Symbol\((.*)\)(.*)$/;function oE(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function $h(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return oE(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return iE.call(e).replace(sE,"Symbol($1)");const r=tE.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+nE.call(e)+"]":r==="RegExp"?rE.call(e):null}function Vn(e,t){let n=$h(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let s=$h(this[r],t);return s!==null?s:i},2)}function M0(e){return e==null?[]:[].concat(e)}let D0,z0,U0,lE=/\$\{\s*(\w+)\s*\}/g;D0=Symbol.toStringTag;class Ih{constructor(t,n,r,i){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[D0]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],M0(t).forEach(s=>{if(He.isError(s)){this.errors.push(...s.errors);const o=s.inner.length?s.inner:[s];this.inner.push(...o)}else this.errors.push(s)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}z0=Symbol.hasInstance;U0=Symbol.toStringTag;class He extends Error{static formatError(t,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof t=="string"?t.replace(lE,(i,s)=>Vn(n[s])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i,s){const o=new Ih(t,n,r,i);if(s)return o;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[U0]="Error",this.name=o.name,this.message=o.message,this.type=o.type,this.value=o.value,this.path=o.path,this.errors=o.errors,this.inner=o.inner,Error.captureStackTrace&&Error.captureStackTrace(this,He)}static[z0](t){return Ih[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let It={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${Vn(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Vn(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${Vn(n,!0)}\``+i}},ze={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},aE={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},cc={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},uE={isValue:"${path} field must be ${value}"},Io={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},cE={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},fE={notType:e=>{const{path:t,value:n,spec:r}=e,i=r.types.length;if(Array.isArray(n)){if(n.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${n.length} for value: \`${Vn(n,!0)}\``;if(n.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${n.length} for value: \`${Vn(n,!0)}\``}return He.formatError(It.notType,e)}};Object.assign(Object.create(null),{mixed:It,string:ze,number:aE,date:cc,object:Io,array:cE,boolean:uE,tuple:fE});const Ff=e=>e&&e.__isYupSchema__;class hl{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:s}=n,o=typeof r=="function"?r:(...l)=>l.every(a=>a===r);return new hl(t,(l,a)=>{var u;let d=o(...l)?i:s;return(u=d==null?void 0:d(a))!=null?u:a})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(s=>s.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!Ff(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const mo={context:"$",value:"."};class Pr{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===mo.context,this.isValue=this.key[0]===mo.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?mo.context:this.isValue?mo.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&yr.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let i=this.isContext?r:this.isValue?t:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Pr.prototype.__isYupRef=!0;const sr=e=>e==null;function Ir(e){function t({value:n,path:r="",options:i,originalValue:s,schema:o},l,a){const{name:u,test:d,params:c,message:f,skipAbsent:m}=e;let{parent:v,context:w,abortEarly:_=o.spec.abortEarly,disableStackTrace:p=o.spec.disableStackTrace}=i;function h(z){return Pr.isRef(z)?z.getValue(n,v,w):z}function g(z={}){const he=Object.assign({value:n,originalValue:s,label:o.spec.label,path:z.path||r,spec:o.spec,disableStackTrace:z.disableStackTrace||p},c,z.params);for(const gt of Object.keys(he))he[gt]=h(he[gt]);const pe=new He(He.formatError(z.message||f,he),n,he.path,z.type||u,he.disableStackTrace);return pe.params=he,pe}const E=_?l:a;let O={path:r,parent:v,type:u,from:i.from,createError:g,resolve:h,options:i,originalValue:s,schema:o};const T=z=>{He.isError(z)?E(z):z?a(null):E(g())},C=z=>{He.isError(z)?E(z):l(z)};if(m&&sr(n))return T(!0);let $;try{var M;if($=d.call(O,n,O),typeof((M=$)==null?void 0:M.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${O.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve($).then(T,C)}}catch(z){C(z);return}T($)}return t.OPTIONS=e,t}function dE(e,t,n,r=n){let i,s,o;return t?(yr.forEach(t,(l,a,u)=>{let d=a?l.slice(1,l.length-1):l;e=e.resolve({context:r,parent:i,value:n});let c=e.type==="tuple",f=u?parseInt(d,10):0;if(e.innerType||c){if(c&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`);if(n&&f>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[f],e=c?e.spec.types[f]:e.innerType}if(!u){if(!e.fields||!e.fields[d])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e.type}")`);i=n,n=n&&n[d],e=e.fields[d]}s=d,o=a?"["+l+"]":"."+l}),{schema:e,parent:i,parentPath:s}):{parent:i,parentPath:t,schema:e}}class pl extends Set{describe(){const t=[];for(const n of this.values())t.push(Pr.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new pl(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function Gr(e,t=new Map){if(Ff(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=Gr(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,i]of e.entries())n.set(r,Gr(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Gr(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=Gr(i,t)}else throw Error(`Unable to clone ${e}`);return n}class Gt{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new pl,this._blacklist=new pl,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(It.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Gr(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(s=>{t.tests.forEach(o=>{s.test(o.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,s)=>s.resolve(i,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,i,s;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive,disableStackTrace:(s=t.disableStackTrace)!=null?s:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),i=n.assert==="ignore-optionality",s=r._cast(t,n);if(n.assert!==!1&&!r.isType(s)){if(i&&sr(s))return s;let o=Vn(t),l=Vn(s);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
78
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",o=0;o<arguments.length;o++){var a=arguments[o];a&&(s=i(s,r(a)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var o="";for(var a in s)t.call(s,a)&&s[a]&&(o=i(o,a));return o}function i(s,o){return o?s?s+" "+o:s+o:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Wy);var eE=Wy.exports;const qt=qi(eE);function Gs({children:e,type:t="button",variant:n="primary",kind:r="solid",size:i="md",rounded:s=!1,className:o,...a}){return b.jsx("button",{type:t,className:qt("lc-flex lc-items-center lc-justify-center",{"lc-rounded-full":s,"lc-rounded-md":!s},o,ZS[n][r],JS[i][s?"rounded":"default"]),...a,children:e})}function ut(){}ut.Home=function(t){return b.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",...t,children:b.jsx("path",{d:"M3 13h1v7c0 1.103.897 2 2 2h12c1.103 0 2-.897 2-2v-7h1a1 1 0 00.707-1.707l-9-9a.999.999 0 00-1.414 0l-9 9A1 1 0 003 13zm7 7v-5h4v5h-4zm2-15.586l6 6V15l.001 5H16v-5c0-1.103-.897-2-2-2h-4c-1.103 0-2 .897-2 2v5H6v-9.586l6-6z"})})};ut.Chat=e=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 8.25h9m-9 3H12m-9.75 1.51c0 1.6 1.123 2.994 2.707 3.227 1.129.166 2.27.293 3.423.379.35.026.67.21.865.501L12 21l2.755-4.133a1.14 1.14 0 0 1 .865-.501 48.172 48.172 0 0 0 3.423-.379c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"})});ut.MessageTyping=({className:e="lc-size-5",...t})=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:e,...t,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.625 9.75a.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-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 0 1 .778-.332 48.294 48.294 0 0 0 5.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"})});ut.Check=function(t){return b.jsx("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",...t,children:b.jsx("path",{d:"M12.736 3.97a.733.733 0 011.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 01-1.065.02L3.217 8.384a.757.757 0 010-1.06.733.733 0 011.047 0l3.052 3.093 5.4-6.425a.247.247 0 01.02-.022z"})})};ut.Website=function(t){return b.jsxs("svg",{fill:"none",viewBox:"0 0 24 24",height:"1em",width:"1em",...t,children:[b.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M14 7a1 1 0 00-1 1v8a1 1 0 001 1h4a1 1 0 001-1V8a1 1 0 00-1-1h-4zm3 2h-2v6h2V9z",clipRule:"evenodd"}),b.jsx("path",{fill:"currentColor",d:"M6 7a1 1 0 000 2h4a1 1 0 100-2H6zM6 11a1 1 0 100 2h4a1 1 0 100-2H6zM5 16a1 1 0 011-1h4a1 1 0 110 2H6a1 1 0 01-1-1z"}),b.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 3a3 3 0 00-3 3v12a3 3 0 003 3h16a3 3 0 003-3V6a3 3 0 00-3-3H4zm16 2H4a1 1 0 00-1 1v12a1 1 0 001 1h16a1 1 0 001-1V6a1 1 0 00-1-1z",clipRule:"evenodd"})]})};ut.ArrowDown=e=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})});ut.XCircle=({className:e="lc-size-5",...t})=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:e,...t,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})});ut.X=({className:e="lc-size-5",...t})=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:e,...t,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"})});const dn=Object.create(null);dn.open="0";dn.close="1";dn.ping="2";dn.pong="3";dn.message="4";dn.upgrade="5";dn.noop="6";const sa=Object.create(null);Object.keys(dn).forEach(e=>{sa[dn[e]]=e});const Rc={type:"error",data:"parser error"},Qy=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",qy=typeof ArrayBuffer=="function",Ky=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Yf=({type:e,data:t},n,r)=>Qy&&t instanceof Blob?n?r(t):Zh(t,r):qy&&(t instanceof ArrayBuffer||Ky(t))?n?r(t):Zh(new Blob([t]),r):r(dn[e]+(t||"")),Zh=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function Jh(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let cu;function tE(e,t){if(Qy&&e.data instanceof Blob)return e.data.arrayBuffer().then(Jh).then(t);if(qy&&(e.data instanceof ArrayBuffer||Ky(e.data)))return t(Jh(e.data));Yf(e,!1,n=>{cu||(cu=new TextEncoder),t(cu.encode(n))})}const ep="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ws=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<ep.length;e++)ws[ep.charCodeAt(e)]=e;const nE=e=>{let t=e.length*.75,n=e.length,r,i=0,s,o,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const c=new ArrayBuffer(t),d=new Uint8Array(c);for(r=0;r<n;r+=4)s=ws[e.charCodeAt(r)],o=ws[e.charCodeAt(r+1)],a=ws[e.charCodeAt(r+2)],l=ws[e.charCodeAt(r+3)],d[i++]=s<<2|o>>4,d[i++]=(o&15)<<4|a>>2,d[i++]=(a&3)<<6|l&63;return c},rE=typeof ArrayBuffer=="function",Gf=(e,t)=>{if(typeof e!="string")return{type:"message",data:Yy(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:iE(e.substring(1),t)}:sa[n]?e.length>1?{type:sa[n],data:e.substring(1)}:{type:sa[n]}:Rc},iE=(e,t)=>{if(rE){const n=nE(e);return Yy(n,t)}else return{base64:!0,data:e}},Yy=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},Gy="",sE=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((s,o)=>{Yf(s,!1,a=>{r[o]=a,++i===n&&t(r.join(Gy))})})},oE=(e,t)=>{const n=e.split(Gy),r=[];for(let i=0;i<n.length;i++){const s=Gf(n[i],t);if(r.push(s),s.type==="error")break}return r};function aE(){return new TransformStream({transform(e,t){tE(e,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const s=new DataView(i.buffer);s.setUint8(0,126),s.setUint16(1,r)}else{i=new Uint8Array(9);const s=new DataView(i.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let fu;function zo(e){return e.reduce((t,n)=>t+n.length,0)}function Bo(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function lE(e,t){fu||(fu=new TextDecoder);const n=[];let r=0,i=-1,s=!1;return new TransformStream({transform(o,a){for(n.push(o);;){if(r===0){if(zo(n)<1)break;const l=Bo(n,1);s=(l[0]&128)===128,i=l[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(zo(n)<2)break;const l=Bo(n,2);i=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),r=3}else if(r===2){if(zo(n)<8)break;const l=Bo(n,8),c=new DataView(l.buffer,l.byteOffset,l.length),d=c.getUint32(0);if(d>Math.pow(2,21)-1){a.enqueue(Rc);break}i=d*Math.pow(2,32)+c.getUint32(4),r=3}else{if(zo(n)<i)break;const l=Bo(n,i);a.enqueue(Gf(s?l:fu.decode(l),t)),r=0}if(i===0||i>e){a.enqueue(Rc);break}}}})}const Xy=4;function Ee(e){if(e)return uE(e)}function uE(e){for(var t in Ee.prototype)e[t]=Ee.prototype[t];return e}Ee.prototype.on=Ee.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Ee.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Ee.prototype.off=Ee.prototype.removeListener=Ee.prototype.removeAllListeners=Ee.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};Ee.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this};Ee.prototype.emitReserved=Ee.prototype.emit;Ee.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Ee.prototype.hasListeners=function(e){return!!this.listeners(e).length};const cl=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Nt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),cE="arraybuffer";function Zy(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const fE=Nt.setTimeout,dE=Nt.clearTimeout;function fl(e,t){t.useNativeTimers?(e.setTimeoutFn=fE.bind(Nt),e.clearTimeoutFn=dE.bind(Nt)):(e.setTimeoutFn=Nt.setTimeout.bind(Nt),e.clearTimeoutFn=Nt.clearTimeout.bind(Nt))}const hE=1.33;function pE(e){return typeof e=="string"?mE(e):Math.ceil((e.byteLength||e.size)*hE)}function mE(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function Jy(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function yE(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function gE(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let s=n[r].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}class vE extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Xf extends Ee{constructor(t){super(),this.writable=!1,fl(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new vE(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Gf(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=yE(t);return n.length?"?"+n:""}}class wE extends Xf{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};oE(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,sE(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Jy()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let eg=!1;try{eg=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const xE=eg;function SE(){}class EE extends wE{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,s)=>{this.onError("xhr post error",i,s)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class cn extends Ee{constructor(t,n,r){super(),this.createRequest=t,fl(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=Zy(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=cn.requestsCount++,cn.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=SE,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete cn.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}cn.requestsCount=0;cn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",tp);else if(typeof addEventListener=="function"){const e="onpagehide"in Nt?"pagehide":"unload";addEventListener(e,tp,!1)}}function tp(){for(let e in cn.requests)cn.requests.hasOwnProperty(e)&&cn.requests[e].abort()}const _E=function(){const e=tg({xdomain:!1});return e&&e.responseType!==null}();class bE extends EE{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=_E&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new cn(tg,this.uri(),t)}}function tg(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||xE))return new XMLHttpRequest}catch{}if(!t)try{return new Nt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const ng=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class kE extends Xf{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=ng?{}:Zy(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;Yf(r,this.supportsBinary,s=>{try{this.doWrite(r,s)}catch{}i&&cl(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Jy()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const du=Nt.WebSocket||Nt.MozWebSocket;class CE extends kE{createSocket(t,n,r){return ng?new du(t,n,r):n?new du(t,n):new du(t)}doWrite(t,n){this.ws.send(n)}}class TE extends Xf{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=lE(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=aE();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const s=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),s())}).catch(a=>{})};s();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;this._writer.write(r).then(()=>{i&&cl(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const OE={websocket:CE,webtransport:TE,polling:bE},RE=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,PE=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Pc(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=RE.exec(e||""),s={},o=14;for(;o--;)s[PE[o]]=i[o]||"";return n!=-1&&r!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=NE(s,s.path),s.queryKey=AE(s,s.query),s}function NE(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function AE(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,s){i&&(n[i]=s)}),n}const Nc=typeof addEventListener=="function"&&typeof removeEventListener=="function",oa=[];Nc&&addEventListener("offline",()=>{oa.forEach(e=>e())},!1);class lr extends Ee{constructor(t,n){if(super(),this.binaryType=cE,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=Pc(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=Pc(n.host).host);fl(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=gE(this.opts.query)),Nc&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},oa.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Xy,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&lr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",lr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=pE(i)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,cl(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const s={type:t,data:n,options:r};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(lr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Nc&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=oa.indexOf(this._offlineEventListener);r!==-1&&oa.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}lr.protocol=Xy;class jE extends lr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;lr.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",u=>{if(!r)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;lr.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(d(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function s(){r||(r=!0,d(),n.close(),n=null)}const o=u=>{const f=new Error("probe error: "+u);f.transport=n.name,s(),this.emitReserved("upgradeError",f)};function a(){o("transport closed")}function l(){o("socket closed")}function c(u){n&&u.name!==n.name&&s()}const d=()=>{n.removeListener("open",i),n.removeListener("error",o),n.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};n.once("open",i),n.once("error",o),n.once("close",a),this.once("close",l),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let FE=class extends jE{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(i=>OE[i]).filter(i=>!!i)),super(t,r)}};function $E(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=Pc(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const s=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port+t,r.href=r.protocol+"://"+s+(n&&n.port===r.port?"":":"+r.port),r}const IE=typeof ArrayBuffer=="function",LE=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,rg=Object.prototype.toString,DE=typeof Blob=="function"||typeof Blob<"u"&&rg.call(Blob)==="[object BlobConstructor]",ME=typeof File=="function"||typeof File<"u"&&rg.call(File)==="[object FileConstructor]";function Zf(e){return IE&&(e instanceof ArrayBuffer||LE(e))||DE&&e instanceof Blob||ME&&e instanceof File}function aa(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(aa(e[n]))return!0;return!1}if(Zf(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return aa(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&aa(e[n]))return!0;return!1}function zE(e){const t=[],n=e.data,r=e;return r.data=Ac(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Ac(e,t){if(!e)return e;if(Zf(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=Ac(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=Ac(e[r],t));return n}return e}function BE(e,t){return e.data=jc(e.data,t),delete e.attachments,e}function jc(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=jc(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=jc(e[n],t));return e}const UE=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],VE=5;var X;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(X||(X={}));class HE{constructor(t){this.replacer=t}encode(t){return(t.type===X.EVENT||t.type===X.ACK)&&aa(t)?this.encodeAsBinary({type:t.type===X.EVENT?X.BINARY_EVENT:X.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===X.BINARY_EVENT||t.type===X.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=zE(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}function np(e){return Object.prototype.toString.call(e)==="[object Object]"}class Jf extends Ee{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===X.BINARY_EVENT;r||n.type===X.BINARY_ACK?(n.type=r?X.EVENT:X.ACK,this.reconstructor=new WE(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Zf(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(X[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===X.BINARY_EVENT||r.type===X.BINARY_ACK){const s=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const o=t.substring(s,n);if(o!=Number(o)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(o)}if(t.charAt(n+1)==="/"){const s=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(s,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const s=n+1;for(;++n;){const o=t.charAt(n);if(o==null||Number(o)!=o){--n;break}if(n===t.length)break}r.id=Number(t.substring(s,n+1))}if(t.charAt(++n)){const s=this.tryParse(t.substr(n));if(Jf.isPayloadValid(r.type,s))r.data=s;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case X.CONNECT:return np(n);case X.DISCONNECT:return n===void 0;case X.CONNECT_ERROR:return typeof n=="string"||np(n);case X.EVENT:case X.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&UE.indexOf(n[0])===-1);case X.ACK:case X.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class WE{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=BE(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const QE=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Jf,Encoder:HE,get PacketType(){return X},protocol:VE},Symbol.toStringTag,{value:"Module"}));function Vt(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const qE=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class ig extends Ee{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Vt(t,"open",this.onopen.bind(this)),Vt(t,"packet",this.onpacket.bind(this)),Vt(t,"error",this.onerror.bind(this)),Vt(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,i,s;if(qE.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const o={type:X.EVENT,data:n};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const d=this.ids++,u=n.pop();this._registerAckCallback(d,u),o.id=d}const a=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,l=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!a||(l?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const s=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===t&&this.sendBuffer.splice(a,1);n.call(this,new Error("operation has timed out"))},i),o=(...a)=>{this.io.clearTimeoutFn(s),n.apply(this,a)};o.withError=!0,this.acks[t]=o}emitWithAck(t,...n){return new Promise((r,i)=>{const s=(o,a)=>o?i(o):r(a);s.withError=!0,n.push(s),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...s)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...s)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:X.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case X.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case X.EVENT:case X.BINARY_EVENT:this.onevent(t);break;case X.ACK:case X.BINARY_ACK:this.onack(t);break;case X.DISCONNECT:this.ondisconnect();break;case X.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:X.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:X.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function es(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}es.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};es.prototype.reset=function(){this.attempts=0};es.prototype.setMin=function(e){this.ms=e};es.prototype.setMax=function(e){this.max=e};es.prototype.setJitter=function(e){this.jitter=e};class Fc extends Ee{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,fl(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new es({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||QE;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new FE(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Vt(n,"open",function(){r.onopen(),t&&t()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},o=Vt(n,"error",s);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{i(),s(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(i),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Vt(t,"ping",this.onping.bind(this)),Vt(t,"data",this.ondata.bind(this)),Vt(t,"error",this.onerror.bind(this)),Vt(t,"close",this.onclose.bind(this)),Vt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){cl(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new ig(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const ds={};function la(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=$E(e,t.path||"/socket.io"),r=n.source,i=n.id,s=n.path,o=ds[i]&&s in ds[i].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||o;let l;return a?l=new Fc(r,t):(ds[i]||(ds[i]=new Fc(r,t)),l=ds[i]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(la,{Manager:Fc,Socket:ig,io:la,connect:la});const hu=e=>{const t=document.cookie.split(";").find(n=>n.includes(e));return t?t.split("=")[1]:null},sg=S.createContext(null),uo=()=>S.useContext(sg),KE=({children:e})=>{const[t,n]=S.useState(null),[r,i]=S.useState(!1),[s,o]=S.useState({}),a=()=>{const m=la(Hw,{transports:["websocket"],auth:{customer_token:hu("customer_token"),device_id:hu("device_id"),customer_refresh_token:hu("customer_refresh_token")}});m.on("error",v=>{console.error("Websocket error",v)}),m.on("connect",()=>{n(m),i(!0)})},l=()=>{t&&(t.connect(),i(!0))},c=()=>{t&&(t.disconnect(),i(!1))},d=(m,v)=>{t&&(t.on(m,w=>{v(w)}),o({...s,[m]:v}))},u=m=>{t&&s[m]&&(t.off(m,s[m]),delete s[m])},f=(m,v,w)=>{t&&t.emit(m,v,w)};return b.jsx(sg.Provider,{value:{socket:t,connected:r,events:s,connect:a,reconnect:l,disconnect:c,on:d,off:u,emit:f},children:e})};var fn=(e=>(e.ChatView="chat:user:view",e.ChatClose="chat:user:close",e.MessageList="message:list",e.MessageCreate="message:create",e.MessageTyping="message:typing",e.WidgetOpen="widget:open",e.WidgetClose="widget:close",e.PageChange="page-change",e))(fn||{}),Qt=(e=>(e.MessageAgentCreate="message:agent:create",e.MessageAgentTyping="message:agent:typing",e.Banned="banned",e.ChatUserClose="chat:user:close",e.ChatUserAssignee="chat:user:assignee",e))(Qt||{});const ed=e=>{const t=sS(),n=(r,i)=>{var o;const s=((o=pO.find(a=>a.name===r))==null?void 0:o.path)??"/";return typeof i=="object"&&s.includes(":")?Object.entries(i).reduce((a,[l,c])=>a.replace(`:${l}`,c),s):i?`${s}?${i}`:s};return{push:(r,i)=>{t(n(r,i),e)},path:n}},YE=()=>Cx({mutationFn:e=>sl(`clients/${e.client_id}/chats`,{method:"POST",body:JSON.stringify({...e,client_id:void 0})})}),GE=e=>sl(`clients/${e}/chats`),Ma=e=>sl(`clients/${e}/chats`,{method:"DELETE"});function og({children:e,defaultOpen:t}){const n=uo(),{open:r,setOpen:i,widget:s}=Ji(),o=ed(),a=()=>{i(!0),n&&n.emit(fn.WidgetOpen,{})},l=()=>{i(!1),n&&n.emit(fn.WidgetClose,{})},c=()=>{i(!1),Ma(s.client_id),o.push("registration")},d=async()=>{i(!1),await Ma(s.client_id),o.push("registration")};return S.useEffect(()=>{if(t&&i(!0),!(!n||!s))return n.on(Qt.Banned,c),n.on(Qt.ChatUserClose,d),()=>{n.off(Qt.Banned),n.off(Qt.ChatUserClose)}},[]),b.jsxs("section",{className:"lc-relative lc-w-full lc-h-full",children:[r&&b.jsx("div",{className:"lc-w-86 lc-h-[32rem] lc-absolute lc-bottom-8 lc-right-8 lc-z-[300]",children:e}),b.jsxs("div",{className:"lc-absolute lc-bottom-0 lc-right-0 lc-z-[400]",children:[!r&&b.jsx(Gs,{size:"lg",rounded:!0,onClick:a,children:b.jsx(ut.Chat,{className:"lc-size-6"})}),r&&b.jsx(Gs,{size:"lg",rounded:!0,onClick:l,children:b.jsx(ut.X,{className:"lc-size-6"})})]})]})}function Gr(e){this._maxSize=e,this.clear()}Gr.prototype.clear=function(){this._size=0,this._values=Object.create(null)};Gr.prototype.get=function(e){return this._values[e]};Gr.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var XE=/[^.^\]^[]+|(?=\[\]|\.\.)/g,ag=/^\d+$/,ZE=/^\d/,JE=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,e_=/^\s*(['"]?)(.*?)(\1)\s*$/,td=512,rp=new Gr(td),ip=new Gr(td),sp=new Gr(td),Lr={Cache:Gr,split:$c,normalizePath:pu,setter:function(e){var t=pu(e);return ip.get(e)||ip.set(e,function(r,i){for(var s=0,o=t.length,a=r;s<o-1;){var l=t[s];if(l==="__proto__"||l==="constructor"||l==="prototype")return r;a=a[t[s++]]}a[t[s]]=i})},getter:function(e,t){var n=pu(e);return sp.get(e)||sp.set(e,function(i){for(var s=0,o=n.length;s<o;)if(i!=null||!t)i=i[n[s++]];else return;return i})},join:function(e){return e.reduce(function(t,n){return t+(nd(n)||ag.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){t_(Array.isArray(e)?e:$c(e),t,n)}};function pu(e){return rp.get(e)||rp.set(e,$c(e).map(function(t){return t.replace(e_,"$2")}))}function $c(e){return e.match(XE)||[""]}function t_(e,t,n){var r=e.length,i,s,o,a;for(s=0;s<r;s++)i=e[s],i&&(i_(i)&&(i='"'+i+'"'),a=nd(i),o=!a&&/^\d+$/.test(i),t.call(n,i,a,o,s,e))}function nd(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function n_(e){return e.match(ZE)&&!e.match(ag)}function r_(e){return JE.test(e)}function i_(e){return!nd(e)&&(n_(e)||r_(e))}const s_=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,dl=e=>e.match(s_)||[],hl=e=>e[0].toUpperCase()+e.slice(1),rd=(e,t)=>dl(e).join(t).toLowerCase(),lg=e=>dl(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),o_=e=>hl(lg(e)),a_=e=>rd(e,"_"),l_=e=>rd(e,"-"),u_=e=>hl(rd(e," ")),c_=e=>dl(e).map(hl).join(" ");var mu={words:dl,upperFirst:hl,camelCase:lg,pascalCase:o_,snakeCase:a_,kebabCase:l_,sentenceCase:u_,titleCase:c_},id={exports:{}};id.exports=function(e){return ug(f_(e),e)};id.exports.array=ug;function ug(e,t){var n=e.length,r=new Array(n),i={},s=n,o=d_(t),a=h_(e);for(t.forEach(function(c){if(!a.has(c[0])||!a.has(c[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});s--;)i[s]||l(e[s],s,new Set);return r;function l(c,d,u){if(u.has(c)){var f;try{f=", node was:"+JSON.stringify(c)}catch{f=""}throw new Error("Cyclic dependency"+f)}if(!a.has(c))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(c));if(!i[d]){i[d]=!0;var m=o.get(c)||new Set;if(m=Array.from(m),d=m.length){u.add(c);do{var v=m[--d];l(v,a.get(v),u)}while(d);u.delete(c)}r[--n]=c}}}function f_(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}function d_(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}function h_(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var p_=id.exports;const m_=qi(p_),y_=Object.prototype.toString,g_=Error.prototype.toString,v_=RegExp.prototype.toString,w_=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",x_=/^Symbol\((.*)\)(.*)$/;function S_(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function op(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return S_(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return w_.call(e).replace(x_,"Symbol($1)");const r=y_.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+g_.call(e)+"]":r==="RegExp"?v_.call(e):null}function ur(e,t){let n=op(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let s=op(this[r],t);return s!==null?s:i},2)}function cg(e){return e==null?[]:[].concat(e)}let fg,dg,hg,E_=/\$\{\s*(\w+)\s*\}/g;fg=Symbol.toStringTag;class ap{constructor(t,n,r,i){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[fg]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],cg(t).forEach(s=>{if(it.isError(s)){this.errors.push(...s.errors);const o=s.inner.length?s.inner:[s];this.inner.push(...o)}else this.errors.push(s)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}dg=Symbol.hasInstance;hg=Symbol.toStringTag;class it extends Error{static formatError(t,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof t=="string"?t.replace(E_,(i,s)=>ur(n[s])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i,s){const o=new ap(t,n,r,i);if(s)return o;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[hg]="Error",this.name=o.name,this.message=o.message,this.type=o.type,this.value=o.value,this.path=o.path,this.errors=o.errors,this.inner=o.inner,Error.captureStackTrace&&Error.captureStackTrace(this,it)}static[dg](t){return ap[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let tn={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${ur(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${ur(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${ur(n,!0)}\``+i}},Je={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},__={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Ic={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},b_={isValue:"${path} field must be ${value}"},ua={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},k_={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},C_={notType:e=>{const{path:t,value:n,spec:r}=e,i=r.types.length;if(Array.isArray(n)){if(n.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${n.length} for value: \`${ur(n,!0)}\``;if(n.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${n.length} for value: \`${ur(n,!0)}\``}return it.formatError(tn.notType,e)}};Object.assign(Object.create(null),{mixed:tn,string:Je,number:__,date:Ic,object:ua,array:k_,boolean:b_,tuple:C_});const sd=e=>e&&e.__isYupSchema__;class za{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:s}=n,o=typeof r=="function"?r:(...a)=>a.every(l=>l===r);return new za(t,(a,l)=>{var c;let d=o(...a)?i:s;return(c=d==null?void 0:d(l))!=null?c:l})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(s=>s.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!sd(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const Uo={context:"$",value:"."};class Xr{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Uo.context,this.isValue=this.key[0]===Uo.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?Uo.context:this.isValue?Uo.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Lr.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let i=this.isContext?r:this.isValue?t:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Xr.prototype.__isYupRef=!0;const Cr=e=>e==null;function ii(e){function t({value:n,path:r="",options:i,originalValue:s,schema:o},a,l){const{name:c,test:d,params:u,message:f,skipAbsent:m}=e;let{parent:v,context:w,abortEarly:x=o.spec.abortEarly,disableStackTrace:p=o.spec.disableStackTrace}=i;function h(B){return Xr.isRef(B)?B.getValue(n,v,w):B}function g(B={}){const se=Object.assign({value:n,originalValue:s,label:o.spec.label,path:B.path||r,spec:o.spec,disableStackTrace:B.disableStackTrace||p},u,B.params);for(const Ve of Object.keys(se))se[Ve]=h(se[Ve]);const oe=new it(it.formatError(B.message||f,se),n,se.path,B.type||c,se.disableStackTrace);return oe.params=se,oe}const _=x?a:l;let T={path:r,parent:v,type:c,from:i.from,createError:g,resolve:h,options:i,originalValue:s,schema:o};const C=B=>{it.isError(B)?_(B):B?l(null):_(g())},k=B=>{it.isError(B)?_(B):a(B)};if(m&&Cr(n))return C(!0);let I;try{var D;if(I=d.call(T,n,T),typeof((D=I)==null?void 0:D.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${T.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(I).then(C,k)}}catch(B){k(B);return}C(I)}return t.OPTIONS=e,t}function T_(e,t,n,r=n){let i,s,o;return t?(Lr.forEach(t,(a,l,c)=>{let d=l?a.slice(1,a.length-1):a;e=e.resolve({context:r,parent:i,value:n});let u=e.type==="tuple",f=c?parseInt(d,10):0;if(e.innerType||u){if(u&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`);if(n&&f>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[f],e=u?e.spec.types[f]:e.innerType}if(!c){if(!e.fields||!e.fields[d])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e.type}")`);i=n,n=n&&n[d],e=e.fields[d]}s=d,o=l?"["+a+"]":"."+a}),{schema:e,parent:i,parentPath:s}):{parent:i,parentPath:t,schema:e}}class Ba extends Set{describe(){const t=[];for(const n of this.values())t.push(Xr.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new Ba(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function gi(e,t=new Map){if(sd(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=gi(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,i]of e.entries())n.set(r,gi(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(gi(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=gi(i,t)}else throw Error(`Unable to clone ${e}`);return n}class hn{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Ba,this._blacklist=new Ba,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(tn.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=gi(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(s=>{t.tests.forEach(o=>{s.test(o.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,s)=>s.resolve(i,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,i,s;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive,disableStackTrace:(s=t.disableStackTrace)!=null?s:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),i=n.assert==="ignore-optionality",s=r._cast(t,n);if(n.assert!==!1&&!r.isType(s)){if(i&&Cr(s))return s;let o=ur(t),a=ur(s);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
79
79
 
80
80
  attempted value: ${o}
81
- `+(l!==o?`result of cast: ${l}`:""))}return s}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,s)=>s.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,i){let{path:s,originalValue:o=t,strict:l=this.spec.strict}=n,a=t;l||(a=this._cast(a,Object.assign({assert:!1},n)));let u=[];for(let d of Object.values(this.internalTests))d&&u.push(d);this.runTests({path:s,value:a,originalValue:o,options:n,tests:u},r,d=>{if(d.length)return i(d,a);this.runTests({path:s,value:a,originalValue:o,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:s,value:o,originalValue:l,path:a,options:u}=t,d=w=>{i||(i=!0,n(w,o))},c=w=>{i||(i=!0,r(w,o))},f=s.length,m=[];if(!f)return c([]);let v={value:o,originalValue:l,path:a,options:u,schema:this};for(let w=0;w<s.length;w++){const _=s[w];_(v,d,function(h){h&&(Array.isArray(h)?m.push(...h):m.push(h)),--f<=0&&c(m)})}}asNestedTest({key:t,index:n,parent:r,parentPath:i,originalParent:s,options:o}){const l=t??n;if(l==null)throw TypeError("Must include `key` or `index` for nested validations");const a=typeof l=="number";let u=r[l];const d=Object.assign({},o,{strict:!0,parent:r,value:u,originalValue:s[l],key:void 0,[a?"index":"key"]:l,path:a||l.includes(".")?`${i||""}[${a?l:`"${l}"`}]`:(i?`${i}.`:"")+t});return(c,f,m)=>this.resolve(d)._validate(u,d,f,m)}validate(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),s=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return new Promise((o,l)=>i._validate(t,n,(a,u)=>{He.isError(a)&&(a.value=u),l(a)},(a,u)=>{a.length?l(new He(a,u,void 0,void 0,s)):o(u)}))}validateSync(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),s,o=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return i._validate(t,Object.assign({},n,{sync:!0}),(l,a)=>{throw He.isError(l)&&(l.value=a),l},(l,a)=>{if(l.length)throw new He(l,t,void 0,void 0,o);s=a}),s}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(He.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(He.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Gr(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=Ir({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=Ir({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=It.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=It.notNull){return this.nullability(!1,t)}required(t=It.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=It.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=Ir(n),s=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(o=>!(o.OPTIONS.name===n.name&&(s||o.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=M0(t).map(s=>new Pr(s));return i.forEach(s=>{s.isSibling&&r.deps.push(s.key)}),r.conditions.push(typeof n=="function"?new hl(i,n):hl.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Ir({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=It.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=Ir({message:n,name:"oneOf",skipAbsent:!0,test(i){let s=this.schema._whitelist,o=s.resolveAll(this.resolve);return o.includes(i)?!0:this.createError({params:{values:Array.from(s).join(", "),resolved:o}})}}),r}notOneOf(t,n=It.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=Ir({message:n,name:"notOneOf",test(i){let s=this.schema._blacklist,o=s.resolveAll(this.resolve);return o.includes(i)?this.createError({params:{values:Array.from(s).join(", "),resolved:o}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:s,nullable:o}=n.spec;return{meta:i,label:r,optional:s,nullable:o,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(a=>({name:a.OPTIONS.name,params:a.OPTIONS.params})).filter((a,u,d)=>d.findIndex(c=>c.name===a.name)===u)}}}Gt.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Gt.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:s,schema:o}=dE(this,t,n,r.context);return o[e](i&&i[s],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])Gt.prototype[e]=Gt.prototype.oneOf;for(const e of["not","nope"])Gt.prototype[e]=Gt.prototype.notOneOf;const hE=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function pE(e){const t=fc(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function fc(e){var t,n;const r=hE.exec(e);return r?{year:Zt(r[1]),month:Zt(r[2],1)-1,day:Zt(r[3],1),hour:Zt(r[4]),minute:Zt(r[5]),second:Zt(r[6]),millisecond:r[7]?Zt(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:Zt(r[10]),minuteOffset:Zt(r[11])}:null}function Zt(e,t=0){return Number(e)||t}let mE=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,yE=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,gE=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,vE="^\\d{4}-\\d{2}-\\d{2}",wE="\\d{2}:\\d{2}:\\d{2}",SE="(([+-]\\d{2}(:?\\d{2})?)|Z)",xE=new RegExp(`${vE}T${wE}(\\.\\d+)?${SE}$`),_E=e=>sr(e)||e===e.trim(),EE={}.toString();function dc(){return new B0}class B0 extends Gt{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===EE?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||It.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=ze.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=ze.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=ze.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,i,s;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:s}=n:i=n),this.test({name:s||"matches",message:i||ze.matches,params:{regex:t},skipAbsent:!0,test:o=>o===""&&r||o.search(t)!==-1})}email(t=ze.email){return this.matches(mE,{name:"email",message:t,excludeEmptyString:!0})}url(t=ze.url){return this.matches(yE,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=ze.uuid){return this.matches(gE,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,i;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:i=void 0}=t:n=t),this.matches(xE,{name:"datetime",message:n||ze.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||ze.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:s=>{if(!s||r)return!0;const o=fc(s);return o?!!o.z:!1}}).test({name:"datetime_precision",message:n||ze.datetime_precision,params:{precision:i},skipAbsent:!0,test:s=>{if(!s||i==null)return!0;const o=fc(s);return o?o.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=ze.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:_E})}lowercase(t=ze.lowercase){return this.transform(n=>sr(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>sr(n)||n===n.toLowerCase()})}uppercase(t=ze.uppercase){return this.transform(n=>sr(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>sr(n)||n===n.toUpperCase()})}}dc.prototype=B0.prototype;let kE=new Date(""),CE=e=>Object.prototype.toString.call(e)==="[object Date]";class Bl extends Gt{constructor(){super({type:"date",check(t){return CE(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=pE(t),isNaN(t)?Bl.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Pr.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,n=cc.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(r)}})}max(t,n=cc.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(r)}})}}Bl.INVALID_DATE=kE;Bl.prototype;function TE(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([o,l])=>`${o}-${l}`));function s(o,l){let a=yr.split(o)[0];r.add(a),i.has(`${l}-${a}`)||n.push([l,a])}for(const o of Object.keys(e)){let l=e[o];r.add(o),Pr.isRef(l)&&l.isSibling?s(l.path,o):Ff(l)&&"deps"in l&&l.deps.forEach(a=>s(a,o))}return eE.array(Array.from(r),n).reverse()}function Lh(e,t){let n=1/0;return e.some((r,i)=>{var s;if((s=t.path)!=null&&s.includes(r))return n=i,!0}),n}function V0(e){return(t,n)=>Lh(e,t)-Lh(e,n)}const bE=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function Lo(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Lo(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Lo(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Lo)}):"optional"in e?e.optional():e}const OE=(e,t)=>{const n=[...yr.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=yr.getter(yr.join(n),!0)(e);return!!(i&&r in i)};let Mh=e=>Object.prototype.toString.call(e)==="[object Object]";function Dh(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const RE=V0([]);function H0(e){return new W0(e)}class W0 extends Gt{constructor(t){super({type:"object",check(n){return Mh(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=RE,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let i=super._cast(t,n);if(i===void 0)return this.getDefault(n);if(!this._typeCheck(i))return i;let s=this.fields,o=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(i).filter(c=>!this._nodes.includes(c))),a={},u=Object.assign({},n,{parent:a,__validating:n.__validating||!1}),d=!1;for(const c of l){let f=s[c],m=c in i;if(f){let v,w=i[c];u.path=(n.path?`${n.path}.`:"")+c,f=f.resolve({value:w,context:n.context,parent:a});let _=f instanceof Gt?f.spec:void 0,p=_==null?void 0:_.strict;if(_!=null&&_.strip){d=d||c in i;continue}v=!n.__validating||!p?f.cast(i[c],u):i[c],v!==void 0&&(a[c]=v)}else m&&!o&&(a[c]=i[c]);(m!==c in a||a[c]!==i[c])&&(d=!0)}return d?a:i}_validate(t,n={},r,i){let{from:s=[],originalValue:o=t,recursive:l=this.spec.recursive}=n;n.from=[{schema:this,value:o},...s],n.__validating=!0,n.originalValue=o,super._validate(t,n,r,(a,u)=>{if(!l||!Mh(u)){i(a,u);return}o=o||u;let d=[];for(let c of this._nodes){let f=this.fields[c];!f||Pr.isRef(f)||d.push(f.asNestedTest({options:n,key:c,parent:u,parentPath:n.path,originalParent:o}))}this.runTests({tests:d,value:u,originalValue:o,options:n},r,c=>{i(c.sort(this._sortErrors).concat(a),u)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,s]of Object.entries(this.fields)){const o=r[i];r[i]=o===void 0?s:o}return n.withMutation(i=>i.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var i;const s=this.fields[r];let o=t;(i=o)!=null&&i.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[r]})),n[r]=s&&"getDefault"in s?s.getDefault(o):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=TE(t,n),r._sortErrors=V0(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let i=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),i=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),i)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return Lo(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,i])=>t.includes(r)&&t.includes(i)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let i=yr.getter(t,!0);return this.transform(s=>{if(!s)return s;let o=s;return OE(s,t)&&(o=Object.assign({},s),r||delete o[t],o[n]=i(s)),o})}json(){return this.transform(bE)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||Io.exact,test(n){if(n==null)return!0;const r=Dh(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=Io.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const s=Dh(this.schema,i);return!t||s.length===0||this.createError({params:{unknown:s.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=Io.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const i of Object.keys(n))r[t(i)]=n[i];return r})}camelCase(){return this.transformKeys(Va.camelCase)}snakeCase(){return this.transformKeys(Va.snakeCase)}constantCase(){return this.transformKeys(t=>Va.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[s,o]of Object.entries(n.fields)){var i;let l=t;(i=l)!=null&&i.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[s]})),r.fields[s]=o.describe(l)}return r}}H0.prototype=W0.prototype;var PE=function(t){return AE(t)&&!NE(t)};function AE(e){return!!e&&typeof e=="object"}function NE(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||$E(e)}var FE=typeof Symbol=="function"&&Symbol.for,jE=FE?Symbol.for("react.element"):60103;function $E(e){return e.$$typeof===jE}function IE(e){return Array.isArray(e)?[]:{}}function ml(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ps(IE(e),e,t):e}function LE(e,t,n){return e.concat(t).map(function(r){return ml(r,n)})}function ME(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(i){r[i]=ml(e[i],n)}),Object.keys(t).forEach(function(i){!n.isMergeableObject(t[i])||!e[i]?r[i]=ml(t[i],n):r[i]=Ps(e[i],t[i],n)}),r}function Ps(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||LE,n.isMergeableObject=n.isMergeableObject||PE;var r=Array.isArray(t),i=Array.isArray(e),s=r===i;return s?r?n.arrayMerge(e,t,n):ME(e,t,n):ml(t,n)}Ps.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Ps(r,i,n)},{})};var hc=Ps,Q0=typeof global=="object"&&global&&global.Object===Object&&global,DE=typeof self=="object"&&self&&self.Object===Object&&self,Yt=Q0||DE||Function("return this")(),Qn=Yt.Symbol,q0=Object.prototype,zE=q0.hasOwnProperty,UE=q0.toString,Hi=Qn?Qn.toStringTag:void 0;function BE(e){var t=zE.call(e,Hi),n=e[Hi];try{e[Hi]=void 0;var r=!0}catch{}var i=UE.call(e);return r&&(t?e[Hi]=n:delete e[Hi]),i}var VE=Object.prototype,HE=VE.toString;function WE(e){return HE.call(e)}var QE="[object Null]",qE="[object Undefined]",zh=Qn?Qn.toStringTag:void 0;function Ar(e){return e==null?e===void 0?qE:QE:zh&&zh in Object(e)?BE(e):WE(e)}function K0(e,t){return function(n){return e(t(n))}}var jf=K0(Object.getPrototypeOf,Object);function Nr(e){return e!=null&&typeof e=="object"}var KE="[object Object]",GE=Function.prototype,YE=Object.prototype,G0=GE.toString,XE=YE.hasOwnProperty,ZE=G0.call(Object);function Uh(e){if(!Nr(e)||Ar(e)!=KE)return!1;var t=jf(e);if(t===null)return!0;var n=XE.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&G0.call(n)==ZE}function JE(){this.__data__=[],this.size=0}function Y0(e,t){return e===t||e!==e&&t!==t}function Vl(e,t){for(var n=e.length;n--;)if(Y0(e[n][0],t))return n;return-1}var ek=Array.prototype,tk=ek.splice;function nk(e){var t=this.__data__,n=Vl(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():tk.call(t,n,1),--this.size,!0}function rk(e){var t=this.__data__,n=Vl(t,e);return n<0?void 0:t[n][1]}function ik(e){return Vl(this.__data__,e)>-1}function sk(e,t){var n=this.__data__,r=Vl(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function pn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}pn.prototype.clear=JE;pn.prototype.delete=nk;pn.prototype.get=rk;pn.prototype.has=ik;pn.prototype.set=sk;function ok(){this.__data__=new pn,this.size=0}function lk(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function ak(e){return this.__data__.get(e)}function uk(e){return this.__data__.has(e)}function Hs(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ck="[object AsyncFunction]",fk="[object Function]",dk="[object GeneratorFunction]",hk="[object Proxy]";function X0(e){if(!Hs(e))return!1;var t=Ar(e);return t==fk||t==dk||t==ck||t==hk}var Ha=Yt["__core-js_shared__"],Bh=function(){var e=/[^.]+$/.exec(Ha&&Ha.keys&&Ha.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function pk(e){return!!Bh&&Bh in e}var mk=Function.prototype,yk=mk.toString;function Fr(e){if(e!=null){try{return yk.call(e)}catch{}try{return e+""}catch{}}return""}var gk=/[\\^$.*+?()[\]{}|]/g,vk=/^\[object .+?Constructor\]$/,wk=Function.prototype,Sk=Object.prototype,xk=wk.toString,_k=Sk.hasOwnProperty,Ek=RegExp("^"+xk.call(_k).replace(gk,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kk(e){if(!Hs(e)||pk(e))return!1;var t=X0(e)?Ek:vk;return t.test(Fr(e))}function Ck(e,t){return e==null?void 0:e[t]}function jr(e,t){var n=Ck(e,t);return kk(n)?n:void 0}var As=jr(Yt,"Map"),Ns=jr(Object,"create");function Tk(){this.__data__=Ns?Ns(null):{},this.size=0}function bk(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ok="__lodash_hash_undefined__",Rk=Object.prototype,Pk=Rk.hasOwnProperty;function Ak(e){var t=this.__data__;if(Ns){var n=t[e];return n===Ok?void 0:n}return Pk.call(t,e)?t[e]:void 0}var Nk=Object.prototype,Fk=Nk.hasOwnProperty;function jk(e){var t=this.__data__;return Ns?t[e]!==void 0:Fk.call(t,e)}var $k="__lodash_hash_undefined__";function Ik(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ns&&t===void 0?$k:t,this}function Cr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Cr.prototype.clear=Tk;Cr.prototype.delete=bk;Cr.prototype.get=Ak;Cr.prototype.has=jk;Cr.prototype.set=Ik;function Lk(){this.size=0,this.__data__={hash:new Cr,map:new(As||pn),string:new Cr}}function Mk(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Hl(e,t){var n=e.__data__;return Mk(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Dk(e){var t=Hl(this,e).delete(e);return this.size-=t?1:0,t}function zk(e){return Hl(this,e).get(e)}function Uk(e){return Hl(this,e).has(e)}function Bk(e,t){var n=Hl(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Yn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Yn.prototype.clear=Lk;Yn.prototype.delete=Dk;Yn.prototype.get=zk;Yn.prototype.has=Uk;Yn.prototype.set=Bk;var Vk=200;function Hk(e,t){var n=this.__data__;if(n instanceof pn){var r=n.__data__;if(!As||r.length<Vk-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(r)}return n.set(e,t),this.size=n.size,this}function Ni(e){var t=this.__data__=new pn(e);this.size=t.size}Ni.prototype.clear=ok;Ni.prototype.delete=lk;Ni.prototype.get=ak;Ni.prototype.has=uk;Ni.prototype.set=Hk;function Wk(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Vh=function(){try{var e=jr(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Z0(e,t,n){t=="__proto__"&&Vh?Vh(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Qk=Object.prototype,qk=Qk.hasOwnProperty;function J0(e,t,n){var r=e[t];(!(qk.call(e,t)&&Y0(r,n))||n===void 0&&!(t in e))&&Z0(e,t,n)}function Wl(e,t,n,r){var i=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var l=t[s],a=void 0;a===void 0&&(a=e[l]),i?Z0(n,l,a):J0(n,l,a)}return n}function Kk(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Gk="[object Arguments]";function Hh(e){return Nr(e)&&Ar(e)==Gk}var eg=Object.prototype,Yk=eg.hasOwnProperty,Xk=eg.propertyIsEnumerable,Zk=Hh(function(){return arguments}())?Hh:function(e){return Nr(e)&&Yk.call(e,"callee")&&!Xk.call(e,"callee")},Ws=Array.isArray;function Jk(){return!1}var tg=typeof et=="object"&&et&&!et.nodeType&&et,Wh=tg&&typeof tt=="object"&&tt&&!tt.nodeType&&tt,eC=Wh&&Wh.exports===tg,Qh=eC?Yt.Buffer:void 0,tC=Qh?Qh.isBuffer:void 0,ng=tC||Jk,nC=9007199254740991,rC=/^(?:0|[1-9]\d*)$/;function iC(e,t){var n=typeof e;return t=t??nC,!!t&&(n=="number"||n!="symbol"&&rC.test(e))&&e>-1&&e%1==0&&e<t}var sC=9007199254740991;function rg(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=sC}var oC="[object Arguments]",lC="[object Array]",aC="[object Boolean]",uC="[object Date]",cC="[object Error]",fC="[object Function]",dC="[object Map]",hC="[object Number]",pC="[object Object]",mC="[object RegExp]",yC="[object Set]",gC="[object String]",vC="[object WeakMap]",wC="[object ArrayBuffer]",SC="[object DataView]",xC="[object Float32Array]",_C="[object Float64Array]",EC="[object Int8Array]",kC="[object Int16Array]",CC="[object Int32Array]",TC="[object Uint8Array]",bC="[object Uint8ClampedArray]",OC="[object Uint16Array]",RC="[object Uint32Array]",ie={};ie[xC]=ie[_C]=ie[EC]=ie[kC]=ie[CC]=ie[TC]=ie[bC]=ie[OC]=ie[RC]=!0;ie[oC]=ie[lC]=ie[wC]=ie[aC]=ie[SC]=ie[uC]=ie[cC]=ie[fC]=ie[dC]=ie[hC]=ie[pC]=ie[mC]=ie[yC]=ie[gC]=ie[vC]=!1;function PC(e){return Nr(e)&&rg(e.length)&&!!ie[Ar(e)]}function $f(e){return function(t){return e(t)}}var ig=typeof et=="object"&&et&&!et.nodeType&&et,os=ig&&typeof tt=="object"&&tt&&!tt.nodeType&&tt,AC=os&&os.exports===ig,Wa=AC&&Q0.process,ki=function(){try{var e=os&&os.require&&os.require("util").types;return e||Wa&&Wa.binding&&Wa.binding("util")}catch{}}(),qh=ki&&ki.isTypedArray,NC=qh?$f(qh):PC,FC=Object.prototype,jC=FC.hasOwnProperty;function sg(e,t){var n=Ws(e),r=!n&&Zk(e),i=!n&&!r&&ng(e),s=!n&&!r&&!i&&NC(e),o=n||r||i||s,l=o?Kk(e.length,String):[],a=l.length;for(var u in e)(t||jC.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||iC(u,a)))&&l.push(u);return l}var $C=Object.prototype;function If(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||$C;return e===n}var IC=K0(Object.keys,Object),LC=Object.prototype,MC=LC.hasOwnProperty;function DC(e){if(!If(e))return IC(e);var t=[];for(var n in Object(e))MC.call(e,n)&&n!="constructor"&&t.push(n);return t}function og(e){return e!=null&&rg(e.length)&&!X0(e)}function Lf(e){return og(e)?sg(e):DC(e)}function zC(e,t){return e&&Wl(t,Lf(t),e)}function UC(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var BC=Object.prototype,VC=BC.hasOwnProperty;function HC(e){if(!Hs(e))return UC(e);var t=If(e),n=[];for(var r in e)r=="constructor"&&(t||!VC.call(e,r))||n.push(r);return n}function Mf(e){return og(e)?sg(e,!0):HC(e)}function WC(e,t){return e&&Wl(t,Mf(t),e)}var lg=typeof et=="object"&&et&&!et.nodeType&&et,Kh=lg&&typeof tt=="object"&&tt&&!tt.nodeType&&tt,QC=Kh&&Kh.exports===lg,Gh=QC?Yt.Buffer:void 0,Yh=Gh?Gh.allocUnsafe:void 0;function qC(e,t){if(t)return e.slice();var n=e.length,r=Yh?Yh(n):new e.constructor(n);return e.copy(r),r}function ag(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function KC(e,t){for(var n=-1,r=e==null?0:e.length,i=0,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s}function ug(){return[]}var GC=Object.prototype,YC=GC.propertyIsEnumerable,Xh=Object.getOwnPropertySymbols,Df=Xh?function(e){return e==null?[]:(e=Object(e),KC(Xh(e),function(t){return YC.call(e,t)}))}:ug;function XC(e,t){return Wl(e,Df(e),t)}function cg(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var ZC=Object.getOwnPropertySymbols,fg=ZC?function(e){for(var t=[];e;)cg(t,Df(e)),e=jf(e);return t}:ug;function JC(e,t){return Wl(e,fg(e),t)}function dg(e,t,n){var r=t(e);return Ws(e)?r:cg(r,n(e))}function e2(e){return dg(e,Lf,Df)}function t2(e){return dg(e,Mf,fg)}var pc=jr(Yt,"DataView"),mc=jr(Yt,"Promise"),yc=jr(Yt,"Set"),gc=jr(Yt,"WeakMap"),Zh="[object Map]",n2="[object Object]",Jh="[object Promise]",ep="[object Set]",tp="[object WeakMap]",np="[object DataView]",r2=Fr(pc),i2=Fr(As),s2=Fr(mc),o2=Fr(yc),l2=Fr(gc),nn=Ar;(pc&&nn(new pc(new ArrayBuffer(1)))!=np||As&&nn(new As)!=Zh||mc&&nn(mc.resolve())!=Jh||yc&&nn(new yc)!=ep||gc&&nn(new gc)!=tp)&&(nn=function(e){var t=Ar(e),n=t==n2?e.constructor:void 0,r=n?Fr(n):"";if(r)switch(r){case r2:return np;case i2:return Zh;case s2:return Jh;case o2:return ep;case l2:return tp}return t});var a2=Object.prototype,u2=a2.hasOwnProperty;function c2(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&u2.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var rp=Yt.Uint8Array;function zf(e){var t=new e.constructor(e.byteLength);return new rp(t).set(new rp(e)),t}function f2(e,t){var n=t?zf(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var d2=/\w*$/;function h2(e){var t=new e.constructor(e.source,d2.exec(e));return t.lastIndex=e.lastIndex,t}var ip=Qn?Qn.prototype:void 0,sp=ip?ip.valueOf:void 0;function p2(e){return sp?Object(sp.call(e)):{}}function m2(e,t){var n=t?zf(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var y2="[object Boolean]",g2="[object Date]",v2="[object Map]",w2="[object Number]",S2="[object RegExp]",x2="[object Set]",_2="[object String]",E2="[object Symbol]",k2="[object ArrayBuffer]",C2="[object DataView]",T2="[object Float32Array]",b2="[object Float64Array]",O2="[object Int8Array]",R2="[object Int16Array]",P2="[object Int32Array]",A2="[object Uint8Array]",N2="[object Uint8ClampedArray]",F2="[object Uint16Array]",j2="[object Uint32Array]";function $2(e,t,n){var r=e.constructor;switch(t){case k2:return zf(e);case y2:case g2:return new r(+e);case C2:return f2(e,n);case T2:case b2:case O2:case R2:case P2:case A2:case N2:case F2:case j2:return m2(e,n);case v2:return new r;case w2:case _2:return new r(e);case S2:return h2(e);case x2:return new r;case E2:return p2(e)}}var op=Object.create,I2=function(){function e(){}return function(t){if(!Hs(t))return{};if(op)return op(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function L2(e){return typeof e.constructor=="function"&&!If(e)?I2(jf(e)):{}}var M2="[object Map]";function D2(e){return Nr(e)&&nn(e)==M2}var lp=ki&&ki.isMap,z2=lp?$f(lp):D2,U2="[object Set]";function B2(e){return Nr(e)&&nn(e)==U2}var ap=ki&&ki.isSet,V2=ap?$f(ap):B2,H2=1,W2=2,Q2=4,hg="[object Arguments]",q2="[object Array]",K2="[object Boolean]",G2="[object Date]",Y2="[object Error]",pg="[object Function]",X2="[object GeneratorFunction]",Z2="[object Map]",J2="[object Number]",mg="[object Object]",eT="[object RegExp]",tT="[object Set]",nT="[object String]",rT="[object Symbol]",iT="[object WeakMap]",sT="[object ArrayBuffer]",oT="[object DataView]",lT="[object Float32Array]",aT="[object Float64Array]",uT="[object Int8Array]",cT="[object Int16Array]",fT="[object Int32Array]",dT="[object Uint8Array]",hT="[object Uint8ClampedArray]",pT="[object Uint16Array]",mT="[object Uint32Array]",J={};J[hg]=J[q2]=J[sT]=J[oT]=J[K2]=J[G2]=J[lT]=J[aT]=J[uT]=J[cT]=J[fT]=J[Z2]=J[J2]=J[mg]=J[eT]=J[tT]=J[nT]=J[rT]=J[dT]=J[hT]=J[pT]=J[mT]=!0;J[Y2]=J[pg]=J[iT]=!1;function ls(e,t,n,r,i,s){var o,l=t&H2,a=t&W2,u=t&Q2;if(o!==void 0)return o;if(!Hs(e))return e;var d=Ws(e);if(d){if(o=c2(e),!l)return ag(e,o)}else{var c=nn(e),f=c==pg||c==X2;if(ng(e))return qC(e,l);if(c==mg||c==hg||f&&!i){if(o=a||f?{}:L2(e),!l)return a?JC(e,WC(o,e)):XC(e,zC(o,e))}else{if(!J[c])return i?e:{};o=$2(e,c,l)}}s||(s=new Ni);var m=s.get(e);if(m)return m;s.set(e,o),V2(e)?e.forEach(function(_){o.add(ls(_,t,n,_,e,s))}):z2(e)&&e.forEach(function(_,p){o.set(p,ls(_,t,n,p,e,s))});var v=u?a?t2:e2:a?Mf:Lf,w=d?void 0:v(e);return Wk(w||e,function(_,p){w&&(p=_,_=e[p]),J0(o,p,ls(_,t,n,p,e,s))}),o}var yT=1,gT=4;function yo(e){return ls(e,yT|gT)}var up=Array.isArray,cp=Object.keys,vT=Object.prototype.hasOwnProperty,wT=typeof Element<"u";function vc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var n=up(e),r=up(t),i,s,o;if(n&&r){if(s=e.length,s!=t.length)return!1;for(i=s;i--!==0;)if(!vc(e[i],t[i]))return!1;return!0}if(n!=r)return!1;var l=e instanceof Date,a=t instanceof Date;if(l!=a)return!1;if(l&&a)return e.getTime()==t.getTime();var u=e instanceof RegExp,d=t instanceof RegExp;if(u!=d)return!1;if(u&&d)return e.toString()==t.toString();var c=cp(e);if(s=c.length,s!==cp(t).length)return!1;for(i=s;i--!==0;)if(!vT.call(t,c[i]))return!1;if(wT&&e instanceof Element&&t instanceof Element)return e===t;for(i=s;i--!==0;)if(o=c[i],!(o==="_owner"&&e.$$typeof)&&!vc(e[o],t[o]))return!1;return!0}return e!==e&&t!==t}var ST=function(t,n){try{return vc(t,n)}catch(r){if(r.message&&r.message.match(/stack|recursion/i)||r.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",r.name,r.message),!1;throw r}};const tr=Ls(ST);var xT=4;function fp(e){return ls(e,xT)}function yg(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var _T="[object Symbol]";function Uf(e){return typeof e=="symbol"||Nr(e)&&Ar(e)==_T}var ET="Expected a function";function Bf(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ET);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(Bf.Cache||Yn),n}Bf.Cache=Yn;var kT=500;function CT(e){var t=Bf(e,function(r){return n.size===kT&&n.clear(),r}),n=t.cache;return t}var TT=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bT=/\\(\\)?/g,OT=CT(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(TT,function(n,r,i,s){t.push(i?s.replace(bT,"$1"):r||n)}),t}),RT=1/0;function PT(e){if(typeof e=="string"||Uf(e))return e;var t=e+"";return t=="0"&&1/e==-RT?"-0":t}var AT=1/0,dp=Qn?Qn.prototype:void 0,hp=dp?dp.toString:void 0;function gg(e){if(typeof e=="string")return e;if(Ws(e))return yg(e,gg)+"";if(Uf(e))return hp?hp.call(e):"";var t=e+"";return t=="0"&&1/e==-AT?"-0":t}function NT(e){return e==null?"":gg(e)}function vg(e){return Ws(e)?yg(e,PT):Uf(e)?[e]:ag(OT(NT(e)))}var wg={exports:{}},X={};/** @license React v16.13.1
81
+ `+(a!==o?`result of cast: ${a}`:""))}return s}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,s)=>s.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,i){let{path:s,originalValue:o=t,strict:a=this.spec.strict}=n,l=t;a||(l=this._cast(l,Object.assign({assert:!1},n)));let c=[];for(let d of Object.values(this.internalTests))d&&c.push(d);this.runTests({path:s,value:l,originalValue:o,options:n,tests:c},r,d=>{if(d.length)return i(d,l);this.runTests({path:s,value:l,originalValue:o,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:s,value:o,originalValue:a,path:l,options:c}=t,d=w=>{i||(i=!0,n(w,o))},u=w=>{i||(i=!0,r(w,o))},f=s.length,m=[];if(!f)return u([]);let v={value:o,originalValue:a,path:l,options:c,schema:this};for(let w=0;w<s.length;w++){const x=s[w];x(v,d,function(h){h&&(Array.isArray(h)?m.push(...h):m.push(h)),--f<=0&&u(m)})}}asNestedTest({key:t,index:n,parent:r,parentPath:i,originalParent:s,options:o}){const a=t??n;if(a==null)throw TypeError("Must include `key` or `index` for nested validations");const l=typeof a=="number";let c=r[a];const d=Object.assign({},o,{strict:!0,parent:r,value:c,originalValue:s[a],key:void 0,[l?"index":"key"]:a,path:l||a.includes(".")?`${i||""}[${l?a:`"${a}"`}]`:(i?`${i}.`:"")+t});return(u,f,m)=>this.resolve(d)._validate(c,d,f,m)}validate(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),s=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return new Promise((o,a)=>i._validate(t,n,(l,c)=>{it.isError(l)&&(l.value=c),a(l)},(l,c)=>{l.length?a(new it(l,c,void 0,void 0,s)):o(c)}))}validateSync(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),s,o=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return i._validate(t,Object.assign({},n,{sync:!0}),(a,l)=>{throw it.isError(a)&&(a.value=l),a},(a,l)=>{if(a.length)throw new it(a,t,void 0,void 0,o);s=l}),s}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(it.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(it.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):gi(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=ii({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=ii({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=tn.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=tn.notNull){return this.nullability(!1,t)}required(t=tn.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=tn.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=ii(n),s=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(o=>!(o.OPTIONS.name===n.name&&(s||o.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=cg(t).map(s=>new Xr(s));return i.forEach(s=>{s.isSibling&&r.deps.push(s.key)}),r.conditions.push(typeof n=="function"?new za(i,n):za.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=ii({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=tn.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=ii({message:n,name:"oneOf",skipAbsent:!0,test(i){let s=this.schema._whitelist,o=s.resolveAll(this.resolve);return o.includes(i)?!0:this.createError({params:{values:Array.from(s).join(", "),resolved:o}})}}),r}notOneOf(t,n=tn.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=ii({message:n,name:"notOneOf",test(i){let s=this.schema._blacklist,o=s.resolveAll(this.resolve);return o.includes(i)?this.createError({params:{values:Array.from(s).join(", "),resolved:o}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:s,nullable:o}=n.spec;return{meta:i,label:r,optional:s,nullable:o,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,c,d)=>d.findIndex(u=>u.name===l.name)===c)}}}hn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])hn.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:s,schema:o}=T_(this,t,n,r.context);return o[e](i&&i[s],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])hn.prototype[e]=hn.prototype.oneOf;for(const e of["not","nope"])hn.prototype[e]=hn.prototype.notOneOf;const O_=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function R_(e){const t=Lc(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function Lc(e){var t,n;const r=O_.exec(e);return r?{year:yn(r[1]),month:yn(r[2],1)-1,day:yn(r[3],1),hour:yn(r[4]),minute:yn(r[5]),second:yn(r[6]),millisecond:r[7]?yn(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:yn(r[10]),minuteOffset:yn(r[11])}:null}function yn(e,t=0){return Number(e)||t}let P_=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,N_=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,A_=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,j_="^\\d{4}-\\d{2}-\\d{2}",F_="\\d{2}:\\d{2}:\\d{2}",$_="(([+-]\\d{2}(:?\\d{2})?)|Z)",I_=new RegExp(`${j_}T${F_}(\\.\\d+)?${$_}$`),L_=e=>Cr(e)||e===e.trim(),D_={}.toString();function Dc(){return new pg}class pg extends hn{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===D_?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||tn.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=Je.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=Je.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=Je.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,i,s;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:s}=n:i=n),this.test({name:s||"matches",message:i||Je.matches,params:{regex:t},skipAbsent:!0,test:o=>o===""&&r||o.search(t)!==-1})}email(t=Je.email){return this.matches(P_,{name:"email",message:t,excludeEmptyString:!0})}url(t=Je.url){return this.matches(N_,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Je.uuid){return this.matches(A_,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,i;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:i=void 0}=t:n=t),this.matches(I_,{name:"datetime",message:n||Je.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Je.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:s=>{if(!s||r)return!0;const o=Lc(s);return o?!!o.z:!1}}).test({name:"datetime_precision",message:n||Je.datetime_precision,params:{precision:i},skipAbsent:!0,test:s=>{if(!s||i==null)return!0;const o=Lc(s);return o?o.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Je.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:L_})}lowercase(t=Je.lowercase){return this.transform(n=>Cr(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Cr(n)||n===n.toLowerCase()})}uppercase(t=Je.uppercase){return this.transform(n=>Cr(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Cr(n)||n===n.toUpperCase()})}}Dc.prototype=pg.prototype;let M_=new Date(""),z_=e=>Object.prototype.toString.call(e)==="[object Date]";class pl extends hn{constructor(){super({type:"date",check(t){return z_(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=R_(t),isNaN(t)?pl.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Xr.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,n=Ic.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(r)}})}max(t,n=Ic.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(r)}})}}pl.INVALID_DATE=M_;pl.prototype;function B_(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([o,a])=>`${o}-${a}`));function s(o,a){let l=Lr.split(o)[0];r.add(l),i.has(`${a}-${l}`)||n.push([a,l])}for(const o of Object.keys(e)){let a=e[o];r.add(o),Xr.isRef(a)&&a.isSibling?s(a.path,o):sd(a)&&"deps"in a&&a.deps.forEach(l=>s(l,o))}return m_.array(Array.from(r),n).reverse()}function lp(e,t){let n=1/0;return e.some((r,i)=>{var s;if((s=t.path)!=null&&s.includes(r))return n=i,!0}),n}function mg(e){return(t,n)=>lp(e,t)-lp(e,n)}const U_=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function ca(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=ca(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=ca(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(ca)}):"optional"in e?e.optional():e}const V_=(e,t)=>{const n=[...Lr.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=Lr.getter(Lr.join(n),!0)(e);return!!(i&&r in i)};let up=e=>Object.prototype.toString.call(e)==="[object Object]";function cp(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const H_=mg([]);function yg(e){return new gg(e)}class gg extends hn{constructor(t){super({type:"object",check(n){return up(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=H_,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let i=super._cast(t,n);if(i===void 0)return this.getDefault(n);if(!this._typeCheck(i))return i;let s=this.fields,o=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,a=[].concat(this._nodes,Object.keys(i).filter(u=>!this._nodes.includes(u))),l={},c=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),d=!1;for(const u of a){let f=s[u],m=u in i;if(f){let v,w=i[u];c.path=(n.path?`${n.path}.`:"")+u,f=f.resolve({value:w,context:n.context,parent:l});let x=f instanceof hn?f.spec:void 0,p=x==null?void 0:x.strict;if(x!=null&&x.strip){d=d||u in i;continue}v=!n.__validating||!p?f.cast(i[u],c):i[u],v!==void 0&&(l[u]=v)}else m&&!o&&(l[u]=i[u]);(m!==u in l||l[u]!==i[u])&&(d=!0)}return d?l:i}_validate(t,n={},r,i){let{from:s=[],originalValue:o=t,recursive:a=this.spec.recursive}=n;n.from=[{schema:this,value:o},...s],n.__validating=!0,n.originalValue=o,super._validate(t,n,r,(l,c)=>{if(!a||!up(c)){i(l,c);return}o=o||c;let d=[];for(let u of this._nodes){let f=this.fields[u];!f||Xr.isRef(f)||d.push(f.asNestedTest({options:n,key:u,parent:c,parentPath:n.path,originalParent:o}))}this.runTests({tests:d,value:c,originalValue:o,options:n},r,u=>{i(u.sort(this._sortErrors).concat(l),c)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,s]of Object.entries(this.fields)){const o=r[i];r[i]=o===void 0?s:o}return n.withMutation(i=>i.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var i;const s=this.fields[r];let o=t;(i=o)!=null&&i.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[r]})),n[r]=s&&"getDefault"in s?s.getDefault(o):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=B_(t,n),r._sortErrors=mg(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let i=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),i=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),i)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return ca(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,i])=>t.includes(r)&&t.includes(i)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let i=Lr.getter(t,!0);return this.transform(s=>{if(!s)return s;let o=s;return V_(s,t)&&(o=Object.assign({},s),r||delete o[t],o[n]=i(s)),o})}json(){return this.transform(U_)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||ua.exact,test(n){if(n==null)return!0;const r=cp(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=ua.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const s=cp(this.schema,i);return!t||s.length===0||this.createError({params:{unknown:s.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=ua.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const i of Object.keys(n))r[t(i)]=n[i];return r})}camelCase(){return this.transformKeys(mu.camelCase)}snakeCase(){return this.transformKeys(mu.snakeCase)}constantCase(){return this.transformKeys(t=>mu.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[s,o]of Object.entries(n.fields)){var i;let a=t;(i=a)!=null&&i.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[s]})),r.fields[s]=o.describe(a)}return r}}yg.prototype=gg.prototype;var W_=function(t){return Q_(t)&&!q_(t)};function Q_(e){return!!e&&typeof e=="object"}function q_(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||G_(e)}var K_=typeof Symbol=="function"&&Symbol.for,Y_=K_?Symbol.for("react.element"):60103;function G_(e){return e.$$typeof===Y_}function X_(e){return Array.isArray(e)?[]:{}}function Ua(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Xs(X_(e),e,t):e}function Z_(e,t,n){return e.concat(t).map(function(r){return Ua(r,n)})}function J_(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(i){r[i]=Ua(e[i],n)}),Object.keys(t).forEach(function(i){!n.isMergeableObject(t[i])||!e[i]?r[i]=Ua(t[i],n):r[i]=Xs(e[i],t[i],n)}),r}function Xs(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Z_,n.isMergeableObject=n.isMergeableObject||W_;var r=Array.isArray(t),i=Array.isArray(e),s=r===i;return s?r?n.arrayMerge(e,t,n):J_(e,t,n):Ua(t,n)}Xs.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Xs(r,i,n)},{})};var Mc=Xs,vg=typeof global=="object"&&global&&global.Object===Object&&global,eb=typeof self=="object"&&self&&self.Object===Object&&self,pn=vg||eb||Function("return this")(),dr=pn.Symbol,wg=Object.prototype,tb=wg.hasOwnProperty,nb=wg.toString,hs=dr?dr.toStringTag:void 0;function rb(e){var t=tb.call(e,hs),n=e[hs];try{e[hs]=void 0;var r=!0}catch{}var i=nb.call(e);return r&&(t?e[hs]=n:delete e[hs]),i}var ib=Object.prototype,sb=ib.toString;function ob(e){return sb.call(e)}var ab="[object Null]",lb="[object Undefined]",fp=dr?dr.toStringTag:void 0;function Zr(e){return e==null?e===void 0?lb:ab:fp&&fp in Object(e)?rb(e):ob(e)}function xg(e,t){return function(n){return e(t(n))}}var od=xg(Object.getPrototypeOf,Object);function Jr(e){return e!=null&&typeof e=="object"}var ub="[object Object]",cb=Function.prototype,fb=Object.prototype,Sg=cb.toString,db=fb.hasOwnProperty,hb=Sg.call(Object);function dp(e){if(!Jr(e)||Zr(e)!=ub)return!1;var t=od(e);if(t===null)return!0;var n=db.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Sg.call(n)==hb}function pb(){this.__data__=[],this.size=0}function Eg(e,t){return e===t||e!==e&&t!==t}function ml(e,t){for(var n=e.length;n--;)if(Eg(e[n][0],t))return n;return-1}var mb=Array.prototype,yb=mb.splice;function gb(e){var t=this.__data__,n=ml(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():yb.call(t,n,1),--this.size,!0}function vb(e){var t=this.__data__,n=ml(t,e);return n<0?void 0:t[n][1]}function wb(e){return ml(this.__data__,e)>-1}function xb(e,t){var n=this.__data__,r=ml(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Nn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Nn.prototype.clear=pb;Nn.prototype.delete=gb;Nn.prototype.get=vb;Nn.prototype.has=wb;Nn.prototype.set=xb;function Sb(){this.__data__=new Nn,this.size=0}function Eb(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function _b(e){return this.__data__.get(e)}function bb(e){return this.__data__.has(e)}function co(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var kb="[object AsyncFunction]",Cb="[object Function]",Tb="[object GeneratorFunction]",Ob="[object Proxy]";function _g(e){if(!co(e))return!1;var t=Zr(e);return t==Cb||t==Tb||t==kb||t==Ob}var yu=pn["__core-js_shared__"],hp=function(){var e=/[^.]+$/.exec(yu&&yu.keys&&yu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Rb(e){return!!hp&&hp in e}var Pb=Function.prototype,Nb=Pb.toString;function ei(e){if(e!=null){try{return Nb.call(e)}catch{}try{return e+""}catch{}}return""}var Ab=/[\\^$.*+?()[\]{}|]/g,jb=/^\[object .+?Constructor\]$/,Fb=Function.prototype,$b=Object.prototype,Ib=Fb.toString,Lb=$b.hasOwnProperty,Db=RegExp("^"+Ib.call(Lb).replace(Ab,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Mb(e){if(!co(e)||Rb(e))return!1;var t=_g(e)?Db:jb;return t.test(ei(e))}function zb(e,t){return e==null?void 0:e[t]}function ti(e,t){var n=zb(e,t);return Mb(n)?n:void 0}var Zs=ti(pn,"Map"),Js=ti(Object,"create");function Bb(){this.__data__=Js?Js(null):{},this.size=0}function Ub(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Vb="__lodash_hash_undefined__",Hb=Object.prototype,Wb=Hb.hasOwnProperty;function Qb(e){var t=this.__data__;if(Js){var n=t[e];return n===Vb?void 0:n}return Wb.call(t,e)?t[e]:void 0}var qb=Object.prototype,Kb=qb.hasOwnProperty;function Yb(e){var t=this.__data__;return Js?t[e]!==void 0:Kb.call(t,e)}var Gb="__lodash_hash_undefined__";function Xb(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Js&&t===void 0?Gb:t,this}function Qr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Qr.prototype.clear=Bb;Qr.prototype.delete=Ub;Qr.prototype.get=Qb;Qr.prototype.has=Yb;Qr.prototype.set=Xb;function Zb(){this.size=0,this.__data__={hash:new Qr,map:new(Zs||Nn),string:new Qr}}function Jb(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function yl(e,t){var n=e.__data__;return Jb(t)?n[typeof t=="string"?"string":"hash"]:n.map}function e2(e){var t=yl(this,e).delete(e);return this.size-=t?1:0,t}function t2(e){return yl(this,e).get(e)}function n2(e){return yl(this,e).has(e)}function r2(e,t){var n=yl(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function yr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}yr.prototype.clear=Zb;yr.prototype.delete=e2;yr.prototype.get=t2;yr.prototype.has=n2;yr.prototype.set=r2;var i2=200;function s2(e,t){var n=this.__data__;if(n instanceof Nn){var r=n.__data__;if(!Zs||r.length<i2-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new yr(r)}return n.set(e,t),this.size=n.size,this}function ts(e){var t=this.__data__=new Nn(e);this.size=t.size}ts.prototype.clear=Sb;ts.prototype.delete=Eb;ts.prototype.get=_b;ts.prototype.has=bb;ts.prototype.set=s2;function o2(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var pp=function(){try{var e=ti(Object,"defineProperty");return e({},"",{}),e}catch{}}();function bg(e,t,n){t=="__proto__"&&pp?pp(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var a2=Object.prototype,l2=a2.hasOwnProperty;function kg(e,t,n){var r=e[t];(!(l2.call(e,t)&&Eg(r,n))||n===void 0&&!(t in e))&&bg(e,t,n)}function gl(e,t,n,r){var i=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var a=t[s],l=void 0;l===void 0&&(l=e[a]),i?bg(n,a,l):kg(n,a,l)}return n}function u2(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var c2="[object Arguments]";function mp(e){return Jr(e)&&Zr(e)==c2}var Cg=Object.prototype,f2=Cg.hasOwnProperty,d2=Cg.propertyIsEnumerable,h2=mp(function(){return arguments}())?mp:function(e){return Jr(e)&&f2.call(e,"callee")&&!d2.call(e,"callee")},fo=Array.isArray;function p2(){return!1}var Tg=typeof gt=="object"&&gt&&!gt.nodeType&&gt,yp=Tg&&typeof vt=="object"&&vt&&!vt.nodeType&&vt,m2=yp&&yp.exports===Tg,gp=m2?pn.Buffer:void 0,y2=gp?gp.isBuffer:void 0,Og=y2||p2,g2=9007199254740991,v2=/^(?:0|[1-9]\d*)$/;function w2(e,t){var n=typeof e;return t=t??g2,!!t&&(n=="number"||n!="symbol"&&v2.test(e))&&e>-1&&e%1==0&&e<t}var x2=9007199254740991;function Rg(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=x2}var S2="[object Arguments]",E2="[object Array]",_2="[object Boolean]",b2="[object Date]",k2="[object Error]",C2="[object Function]",T2="[object Map]",O2="[object Number]",R2="[object Object]",P2="[object RegExp]",N2="[object Set]",A2="[object String]",j2="[object WeakMap]",F2="[object ArrayBuffer]",$2="[object DataView]",I2="[object Float32Array]",L2="[object Float64Array]",D2="[object Int8Array]",M2="[object Int16Array]",z2="[object Int32Array]",B2="[object Uint8Array]",U2="[object Uint8ClampedArray]",V2="[object Uint16Array]",H2="[object Uint32Array]",ce={};ce[I2]=ce[L2]=ce[D2]=ce[M2]=ce[z2]=ce[B2]=ce[U2]=ce[V2]=ce[H2]=!0;ce[S2]=ce[E2]=ce[F2]=ce[_2]=ce[$2]=ce[b2]=ce[k2]=ce[C2]=ce[T2]=ce[O2]=ce[R2]=ce[P2]=ce[N2]=ce[A2]=ce[j2]=!1;function W2(e){return Jr(e)&&Rg(e.length)&&!!ce[Zr(e)]}function ad(e){return function(t){return e(t)}}var Pg=typeof gt=="object"&&gt&&!gt.nodeType&&gt,Rs=Pg&&typeof vt=="object"&&vt&&!vt.nodeType&&vt,Q2=Rs&&Rs.exports===Pg,gu=Q2&&vg.process,Qi=function(){try{var e=Rs&&Rs.require&&Rs.require("util").types;return e||gu&&gu.binding&&gu.binding("util")}catch{}}(),vp=Qi&&Qi.isTypedArray,q2=vp?ad(vp):W2,K2=Object.prototype,Y2=K2.hasOwnProperty;function Ng(e,t){var n=fo(e),r=!n&&h2(e),i=!n&&!r&&Og(e),s=!n&&!r&&!i&&q2(e),o=n||r||i||s,a=o?u2(e.length,String):[],l=a.length;for(var c in e)(t||Y2.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||w2(c,l)))&&a.push(c);return a}var G2=Object.prototype;function ld(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||G2;return e===n}var X2=xg(Object.keys,Object),Z2=Object.prototype,J2=Z2.hasOwnProperty;function ek(e){if(!ld(e))return X2(e);var t=[];for(var n in Object(e))J2.call(e,n)&&n!="constructor"&&t.push(n);return t}function Ag(e){return e!=null&&Rg(e.length)&&!_g(e)}function ud(e){return Ag(e)?Ng(e):ek(e)}function tk(e,t){return e&&gl(t,ud(t),e)}function nk(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var rk=Object.prototype,ik=rk.hasOwnProperty;function sk(e){if(!co(e))return nk(e);var t=ld(e),n=[];for(var r in e)r=="constructor"&&(t||!ik.call(e,r))||n.push(r);return n}function cd(e){return Ag(e)?Ng(e,!0):sk(e)}function ok(e,t){return e&&gl(t,cd(t),e)}var jg=typeof gt=="object"&&gt&&!gt.nodeType&&gt,wp=jg&&typeof vt=="object"&&vt&&!vt.nodeType&&vt,ak=wp&&wp.exports===jg,xp=ak?pn.Buffer:void 0,Sp=xp?xp.allocUnsafe:void 0;function lk(e,t){if(t)return e.slice();var n=e.length,r=Sp?Sp(n):new e.constructor(n);return e.copy(r),r}function Fg(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function uk(e,t){for(var n=-1,r=e==null?0:e.length,i=0,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s}function $g(){return[]}var ck=Object.prototype,fk=ck.propertyIsEnumerable,Ep=Object.getOwnPropertySymbols,fd=Ep?function(e){return e==null?[]:(e=Object(e),uk(Ep(e),function(t){return fk.call(e,t)}))}:$g;function dk(e,t){return gl(e,fd(e),t)}function Ig(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var hk=Object.getOwnPropertySymbols,Lg=hk?function(e){for(var t=[];e;)Ig(t,fd(e)),e=od(e);return t}:$g;function pk(e,t){return gl(e,Lg(e),t)}function Dg(e,t,n){var r=t(e);return fo(e)?r:Ig(r,n(e))}function mk(e){return Dg(e,ud,fd)}function yk(e){return Dg(e,cd,Lg)}var zc=ti(pn,"DataView"),Bc=ti(pn,"Promise"),Uc=ti(pn,"Set"),Vc=ti(pn,"WeakMap"),_p="[object Map]",gk="[object Object]",bp="[object Promise]",kp="[object Set]",Cp="[object WeakMap]",Tp="[object DataView]",vk=ei(zc),wk=ei(Zs),xk=ei(Bc),Sk=ei(Uc),Ek=ei(Vc),xn=Zr;(zc&&xn(new zc(new ArrayBuffer(1)))!=Tp||Zs&&xn(new Zs)!=_p||Bc&&xn(Bc.resolve())!=bp||Uc&&xn(new Uc)!=kp||Vc&&xn(new Vc)!=Cp)&&(xn=function(e){var t=Zr(e),n=t==gk?e.constructor:void 0,r=n?ei(n):"";if(r)switch(r){case vk:return Tp;case wk:return _p;case xk:return bp;case Sk:return kp;case Ek:return Cp}return t});var _k=Object.prototype,bk=_k.hasOwnProperty;function kk(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&bk.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Op=pn.Uint8Array;function dd(e){var t=new e.constructor(e.byteLength);return new Op(t).set(new Op(e)),t}function Ck(e,t){var n=t?dd(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Tk=/\w*$/;function Ok(e){var t=new e.constructor(e.source,Tk.exec(e));return t.lastIndex=e.lastIndex,t}var Rp=dr?dr.prototype:void 0,Pp=Rp?Rp.valueOf:void 0;function Rk(e){return Pp?Object(Pp.call(e)):{}}function Pk(e,t){var n=t?dd(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Nk="[object Boolean]",Ak="[object Date]",jk="[object Map]",Fk="[object Number]",$k="[object RegExp]",Ik="[object Set]",Lk="[object String]",Dk="[object Symbol]",Mk="[object ArrayBuffer]",zk="[object DataView]",Bk="[object Float32Array]",Uk="[object Float64Array]",Vk="[object Int8Array]",Hk="[object Int16Array]",Wk="[object Int32Array]",Qk="[object Uint8Array]",qk="[object Uint8ClampedArray]",Kk="[object Uint16Array]",Yk="[object Uint32Array]";function Gk(e,t,n){var r=e.constructor;switch(t){case Mk:return dd(e);case Nk:case Ak:return new r(+e);case zk:return Ck(e,n);case Bk:case Uk:case Vk:case Hk:case Wk:case Qk:case qk:case Kk:case Yk:return Pk(e,n);case jk:return new r;case Fk:case Lk:return new r(e);case $k:return Ok(e);case Ik:return new r;case Dk:return Rk(e)}}var Np=Object.create,Xk=function(){function e(){}return function(t){if(!co(t))return{};if(Np)return Np(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Zk(e){return typeof e.constructor=="function"&&!ld(e)?Xk(od(e)):{}}var Jk="[object Map]";function eC(e){return Jr(e)&&xn(e)==Jk}var Ap=Qi&&Qi.isMap,tC=Ap?ad(Ap):eC,nC="[object Set]";function rC(e){return Jr(e)&&xn(e)==nC}var jp=Qi&&Qi.isSet,iC=jp?ad(jp):rC,sC=1,oC=2,aC=4,Mg="[object Arguments]",lC="[object Array]",uC="[object Boolean]",cC="[object Date]",fC="[object Error]",zg="[object Function]",dC="[object GeneratorFunction]",hC="[object Map]",pC="[object Number]",Bg="[object Object]",mC="[object RegExp]",yC="[object Set]",gC="[object String]",vC="[object Symbol]",wC="[object WeakMap]",xC="[object ArrayBuffer]",SC="[object DataView]",EC="[object Float32Array]",_C="[object Float64Array]",bC="[object Int8Array]",kC="[object Int16Array]",CC="[object Int32Array]",TC="[object Uint8Array]",OC="[object Uint8ClampedArray]",RC="[object Uint16Array]",PC="[object Uint32Array]",ae={};ae[Mg]=ae[lC]=ae[xC]=ae[SC]=ae[uC]=ae[cC]=ae[EC]=ae[_C]=ae[bC]=ae[kC]=ae[CC]=ae[hC]=ae[pC]=ae[Bg]=ae[mC]=ae[yC]=ae[gC]=ae[vC]=ae[TC]=ae[OC]=ae[RC]=ae[PC]=!0;ae[fC]=ae[zg]=ae[wC]=!1;function Ps(e,t,n,r,i,s){var o,a=t&sC,l=t&oC,c=t&aC;if(o!==void 0)return o;if(!co(e))return e;var d=fo(e);if(d){if(o=kk(e),!a)return Fg(e,o)}else{var u=xn(e),f=u==zg||u==dC;if(Og(e))return lk(e,a);if(u==Bg||u==Mg||f&&!i){if(o=l||f?{}:Zk(e),!a)return l?pk(e,ok(o,e)):dk(e,tk(o,e))}else{if(!ae[u])return i?e:{};o=Gk(e,u,a)}}s||(s=new ts);var m=s.get(e);if(m)return m;s.set(e,o),iC(e)?e.forEach(function(x){o.add(Ps(x,t,n,x,e,s))}):tC(e)&&e.forEach(function(x,p){o.set(p,Ps(x,t,n,p,e,s))});var v=c?l?yk:mk:l?cd:ud,w=d?void 0:v(e);return o2(w||e,function(x,p){w&&(p=x,x=e[p]),kg(o,p,Ps(x,t,n,p,e,s))}),o}var NC=1,AC=4;function Vo(e){return Ps(e,NC|AC)}var Fp=Array.isArray,$p=Object.keys,jC=Object.prototype.hasOwnProperty,FC=typeof Element<"u";function Hc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var n=Fp(e),r=Fp(t),i,s,o;if(n&&r){if(s=e.length,s!=t.length)return!1;for(i=s;i--!==0;)if(!Hc(e[i],t[i]))return!1;return!0}if(n!=r)return!1;var a=e instanceof Date,l=t instanceof Date;if(a!=l)return!1;if(a&&l)return e.getTime()==t.getTime();var c=e instanceof RegExp,d=t instanceof RegExp;if(c!=d)return!1;if(c&&d)return e.toString()==t.toString();var u=$p(e);if(s=u.length,s!==$p(t).length)return!1;for(i=s;i--!==0;)if(!jC.call(t,u[i]))return!1;if(FC&&e instanceof Element&&t instanceof Element)return e===t;for(i=s;i--!==0;)if(o=u[i],!(o==="_owner"&&e.$$typeof)&&!Hc(e[o],t[o]))return!1;return!0}return e!==e&&t!==t}var $C=function(t,n){try{return Hc(t,n)}catch(r){if(r.message&&r.message.match(/stack|recursion/i)||r.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",r.name,r.message),!1;throw r}};const Er=qi($C);var IC=4;function Ip(e){return Ps(e,IC)}function Ug(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var LC="[object Symbol]";function hd(e){return typeof e=="symbol"||Jr(e)&&Zr(e)==LC}var DC="Expected a function";function pd(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(DC);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(pd.Cache||yr),n}pd.Cache=yr;var MC=500;function zC(e){var t=pd(e,function(r){return n.size===MC&&n.clear(),r}),n=t.cache;return t}var BC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,UC=/\\(\\)?/g,VC=zC(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(BC,function(n,r,i,s){t.push(i?s.replace(UC,"$1"):r||n)}),t}),HC=1/0;function WC(e){if(typeof e=="string"||hd(e))return e;var t=e+"";return t=="0"&&1/e==-HC?"-0":t}var QC=1/0,Lp=dr?dr.prototype:void 0,Dp=Lp?Lp.toString:void 0;function Vg(e){if(typeof e=="string")return e;if(fo(e))return Ug(e,Vg)+"";if(hd(e))return Dp?Dp.call(e):"";var t=e+"";return t=="0"&&1/e==-QC?"-0":t}function qC(e){return e==null?"":Vg(e)}function Hg(e){return fo(e)?Ug(e,WC):hd(e)?[e]:Fg(VC(qC(e)))}var Wg={exports:{}},ie={};/** @license React v16.13.1
82
82
  * react-is.production.min.js
83
83
  *
84
84
  * Copyright (c) Facebook, Inc. and its affiliates.
85
85
  *
86
86
  * This source code is licensed under the MIT license found in the
87
87
  * LICENSE file in the root directory of this source tree.
88
- */var Ce=typeof Symbol=="function"&&Symbol.for,Vf=Ce?Symbol.for("react.element"):60103,Hf=Ce?Symbol.for("react.portal"):60106,Ql=Ce?Symbol.for("react.fragment"):60107,ql=Ce?Symbol.for("react.strict_mode"):60108,Kl=Ce?Symbol.for("react.profiler"):60114,Gl=Ce?Symbol.for("react.provider"):60109,Yl=Ce?Symbol.for("react.context"):60110,Wf=Ce?Symbol.for("react.async_mode"):60111,Xl=Ce?Symbol.for("react.concurrent_mode"):60111,Zl=Ce?Symbol.for("react.forward_ref"):60112,Jl=Ce?Symbol.for("react.suspense"):60113,FT=Ce?Symbol.for("react.suspense_list"):60120,ea=Ce?Symbol.for("react.memo"):60115,ta=Ce?Symbol.for("react.lazy"):60116,jT=Ce?Symbol.for("react.block"):60121,$T=Ce?Symbol.for("react.fundamental"):60117,IT=Ce?Symbol.for("react.responder"):60118,LT=Ce?Symbol.for("react.scope"):60119;function ot(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Vf:switch(e=e.type,e){case Wf:case Xl:case Ql:case Kl:case ql:case Jl:return e;default:switch(e=e&&e.$$typeof,e){case Yl:case Zl:case ta:case ea:case Gl:return e;default:return t}}case Hf:return t}}}function Sg(e){return ot(e)===Xl}X.AsyncMode=Wf;X.ConcurrentMode=Xl;X.ContextConsumer=Yl;X.ContextProvider=Gl;X.Element=Vf;X.ForwardRef=Zl;X.Fragment=Ql;X.Lazy=ta;X.Memo=ea;X.Portal=Hf;X.Profiler=Kl;X.StrictMode=ql;X.Suspense=Jl;X.isAsyncMode=function(e){return Sg(e)||ot(e)===Wf};X.isConcurrentMode=Sg;X.isContextConsumer=function(e){return ot(e)===Yl};X.isContextProvider=function(e){return ot(e)===Gl};X.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vf};X.isForwardRef=function(e){return ot(e)===Zl};X.isFragment=function(e){return ot(e)===Ql};X.isLazy=function(e){return ot(e)===ta};X.isMemo=function(e){return ot(e)===ea};X.isPortal=function(e){return ot(e)===Hf};X.isProfiler=function(e){return ot(e)===Kl};X.isStrictMode=function(e){return ot(e)===ql};X.isSuspense=function(e){return ot(e)===Jl};X.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ql||e===Xl||e===Kl||e===ql||e===Jl||e===FT||typeof e=="object"&&e!==null&&(e.$$typeof===ta||e.$$typeof===ea||e.$$typeof===Gl||e.$$typeof===Yl||e.$$typeof===Zl||e.$$typeof===$T||e.$$typeof===IT||e.$$typeof===LT||e.$$typeof===jT)};X.typeOf=ot;wg.exports=X;var MT=wg.exports,xg=MT,DT={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},zT={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},_g={};_g[xg.ForwardRef]=DT;_g[xg.Memo]=zT;function xe(){return xe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xe.apply(this,arguments)}function Eg(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var na=S.createContext(void 0);na.displayName="FormikContext";na.Provider;na.Consumer;function UT(){var e=S.useContext(na);return e}var St=function(t){return typeof t=="function"},ra=function(t){return t!==null&&typeof t=="object"},BT=function(t){return String(Math.floor(Number(t)))===t},Qa=function(t){return Object.prototype.toString.call(t)==="[object String]"},qa=function(t){return ra(t)&&St(t.then)};function Ye(e,t,n,r){r===void 0&&(r=0);for(var i=vg(t);e&&r<i.length;)e=e[i[r++]];return r!==i.length&&!e||e===void 0?n:e}function gr(e,t,n){for(var r=fp(e),i=r,s=0,o=vg(t);s<o.length-1;s++){var l=o[s],a=Ye(e,o.slice(0,s+1));if(a&&(ra(a)||Array.isArray(a)))i=i[l]=fp(a);else{var u=o[s+1];i=i[l]=BT(u)&&Number(u)>=0?[]:{}}}return(s===0?e:i)[o[s]]===n?e:(n===void 0?delete i[o[s]]:i[o[s]]=n,s===0&&n===void 0&&delete r[o[s]],r)}function kg(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var i=0,s=Object.keys(e);i<s.length;i++){var o=s[i],l=e[o];ra(l)?n.get(l)||(n.set(l,!0),r[o]=Array.isArray(l)?[]:{},kg(l,t,n,r[o])):r[o]=t}return r}function VT(e,t){switch(t.type){case"SET_VALUES":return xe({},e,{values:t.payload});case"SET_TOUCHED":return xe({},e,{touched:t.payload});case"SET_ERRORS":return tr(e.errors,t.payload)?e:xe({},e,{errors:t.payload});case"SET_STATUS":return xe({},e,{status:t.payload});case"SET_ISSUBMITTING":return xe({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return xe({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return xe({},e,{values:gr(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return xe({},e,{touched:gr(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return xe({},e,{errors:gr(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return xe({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return xe({},e,{touched:kg(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return xe({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return xe({},e,{isSubmitting:!1});default:return e}}var Zn={},go={};function HT(e){var t=e.validateOnChange,n=t===void 0?!0:t,r=e.validateOnBlur,i=r===void 0?!0:r,s=e.validateOnMount,o=s===void 0?!1:s,l=e.isInitialValid,a=e.enableReinitialize,u=a===void 0?!1:a,d=e.onSubmit,c=Eg(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),f=xe({validateOnChange:n,validateOnBlur:i,validateOnMount:o,onSubmit:d},c),m=S.useRef(f.initialValues),v=S.useRef(f.initialErrors||Zn),w=S.useRef(f.initialTouched||go),_=S.useRef(f.initialStatus),p=S.useRef(!1),h=S.useRef({});S.useEffect(function(){return p.current=!0,function(){p.current=!1}},[]);var g=S.useState(0),E=g[1],O=S.useRef({values:yo(f.initialValues),errors:yo(f.initialErrors)||Zn,touched:yo(f.initialTouched)||go,status:yo(f.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),T=O.current,C=S.useCallback(function(x){var N=O.current;O.current=VT(N,x),N!==O.current&&E(function(j){return j+1})},[]),R=S.useCallback(function(x,N){return new Promise(function(j,I){var V=f.validate(x,N);V==null?j(Zn):qa(V)?V.then(function(G){j(G||Zn)},function(G){I(G)}):j(V)})},[f.validate]),$=S.useCallback(function(x,N){var j=f.validationSchema,I=St(j)?j(N):j,V=N&&I.validateAt?I.validateAt(N,x):QT(x,I);return new Promise(function(G,Se){V.then(function(){G(Zn)},function(Xt){Xt.name==="ValidationError"?G(WT(Xt)):Se(Xt)})})},[f.validationSchema]),M=S.useCallback(function(x,N){return new Promise(function(j){return j(h.current[x].validate(N))})},[]),z=S.useCallback(function(x){var N=Object.keys(h.current).filter(function(I){return St(h.current[I].validate)}),j=N.length>0?N.map(function(I){return M(I,Ye(x,I))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(j).then(function(I){return I.reduce(function(V,G,Se){return G==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||G&&(V=gr(V,N[Se],G)),V},{})})},[M]),he=S.useCallback(function(x){return Promise.all([z(x),f.validationSchema?$(x):{},f.validate?R(x):{}]).then(function(N){var j=N[0],I=N[1],V=N[2],G=hc.all([j,I,V],{arrayMerge:qT});return G})},[f.validate,f.validationSchema,z,R,$]),pe=lt(function(x){return x===void 0&&(x=T.values),C({type:"SET_ISVALIDATING",payload:!0}),he(x).then(function(N){return p.current&&(C({type:"SET_ISVALIDATING",payload:!1}),C({type:"SET_ERRORS",payload:N})),N})});S.useEffect(function(){o&&p.current===!0&&tr(m.current,f.initialValues)&&pe(m.current)},[o,pe]);var gt=S.useCallback(function(x){var N=x&&x.values?x.values:m.current,j=x&&x.errors?x.errors:v.current?v.current:f.initialErrors||{},I=x&&x.touched?x.touched:w.current?w.current:f.initialTouched||{},V=x&&x.status?x.status:_.current?_.current:f.initialStatus;m.current=N,v.current=j,w.current=I,_.current=V;var G=function(){C({type:"RESET_FORM",payload:{isSubmitting:!!x&&!!x.isSubmitting,errors:j,touched:I,status:V,values:N,isValidating:!!x&&!!x.isValidating,submitCount:x&&x.submitCount&&typeof x.submitCount=="number"?x.submitCount:0}})};if(f.onReset){var Se=f.onReset(T.values,Xf);qa(Se)?Se.then(G):G()}else G()},[f.initialErrors,f.initialStatus,f.initialTouched,f.onReset]);S.useEffect(function(){p.current===!0&&!tr(m.current,f.initialValues)&&u&&(m.current=f.initialValues,gt(),o&&pe(m.current))},[u,f.initialValues,gt,o,pe]),S.useEffect(function(){u&&p.current===!0&&!tr(v.current,f.initialErrors)&&(v.current=f.initialErrors||Zn,C({type:"SET_ERRORS",payload:f.initialErrors||Zn}))},[u,f.initialErrors]),S.useEffect(function(){u&&p.current===!0&&!tr(w.current,f.initialTouched)&&(w.current=f.initialTouched||go,C({type:"SET_TOUCHED",payload:f.initialTouched||go}))},[u,f.initialTouched]),S.useEffect(function(){u&&p.current===!0&&!tr(_.current,f.initialStatus)&&(_.current=f.initialStatus,C({type:"SET_STATUS",payload:f.initialStatus}))},[u,f.initialStatus,f.initialTouched]);var Qs=lt(function(x){if(h.current[x]&&St(h.current[x].validate)){var N=Ye(T.values,x),j=h.current[x].validate(N);return qa(j)?(C({type:"SET_ISVALIDATING",payload:!0}),j.then(function(I){return I}).then(function(I){C({type:"SET_FIELD_ERROR",payload:{field:x,value:I}}),C({type:"SET_ISVALIDATING",payload:!1})})):(C({type:"SET_FIELD_ERROR",payload:{field:x,value:j}}),Promise.resolve(j))}else if(f.validationSchema)return C({type:"SET_ISVALIDATING",payload:!0}),$(T.values,x).then(function(I){return I}).then(function(I){C({type:"SET_FIELD_ERROR",payload:{field:x,value:Ye(I,x)}}),C({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),Fi=S.useCallback(function(x,N){var j=N.validate;h.current[x]={validate:j}},[]),ji=S.useCallback(function(x){delete h.current[x]},[]),A=lt(function(x,N){C({type:"SET_TOUCHED",payload:x});var j=N===void 0?i:N;return j?pe(T.values):Promise.resolve()}),D=S.useCallback(function(x){C({type:"SET_ERRORS",payload:x})},[]),U=lt(function(x,N){var j=St(x)?x(T.values):x;C({type:"SET_VALUES",payload:j});var I=N===void 0?n:N;return I?pe(j):Promise.resolve()}),Z=S.useCallback(function(x,N){C({type:"SET_FIELD_ERROR",payload:{field:x,value:N}})},[]),te=lt(function(x,N,j){C({type:"SET_FIELD_VALUE",payload:{field:x,value:N}});var I=j===void 0?n:j;return I?pe(gr(T.values,x,N)):Promise.resolve()}),Xn=S.useCallback(function(x,N){var j=N,I=x,V;if(!Qa(x)){x.persist&&x.persist();var G=x.target?x.target:x.currentTarget,Se=G.type,Xt=G.name,oa=G.id,la=G.value,Ug=G.checked,Lb=G.outerHTML,Zf=G.options,Bg=G.multiple;j=N||Xt||oa,I=/number|range/.test(Se)?(V=parseFloat(la),isNaN(V)?"":V):/checkbox/.test(Se)?GT(Ye(T.values,j),Ug,la):Zf&&Bg?KT(Zf):la}j&&te(j,I)},[te,T.values]),vt=lt(function(x){if(Qa(x))return function(N){return Xn(N,x)};Xn(x)}),At=lt(function(x,N,j){N===void 0&&(N=!0),C({type:"SET_FIELD_TOUCHED",payload:{field:x,value:N}});var I=j===void 0?i:j;return I?pe(T.values):Promise.resolve()}),Nt=S.useCallback(function(x,N){x.persist&&x.persist();var j=x.target,I=j.name,V=j.id,G=j.outerHTML,Se=N||I||V;At(Se,!0)},[At]),mn=lt(function(x){if(Qa(x))return function(N){return Nt(N,x)};Nt(x)}),Kf=S.useCallback(function(x){St(x)?C({type:"SET_FORMIK_STATE",payload:x}):C({type:"SET_FORMIK_STATE",payload:function(){return x}})},[]),Gf=S.useCallback(function(x){C({type:"SET_STATUS",payload:x})},[]),Yf=S.useCallback(function(x){C({type:"SET_ISSUBMITTING",payload:x})},[]),ia=lt(function(){return C({type:"SUBMIT_ATTEMPT"}),pe().then(function(x){var N=x instanceof Error,j=!N&&Object.keys(x).length===0;if(j){var I;try{if(I=jg(),I===void 0)return}catch(V){throw V}return Promise.resolve(I).then(function(V){return p.current&&C({type:"SUBMIT_SUCCESS"}),V}).catch(function(V){if(p.current)throw C({type:"SUBMIT_FAILURE"}),V})}else if(p.current&&(C({type:"SUBMIT_FAILURE"}),N))throw x})}),Fg=lt(function(x){x&&x.preventDefault&&St(x.preventDefault)&&x.preventDefault(),x&&x.stopPropagation&&St(x.stopPropagation)&&x.stopPropagation(),ia().catch(function(N){console.warn("Warning: An unhandled error was caught from submitForm()",N)})}),Xf={resetForm:gt,validateForm:pe,validateField:Qs,setErrors:D,setFieldError:Z,setFieldTouched:At,setFieldValue:te,setStatus:Gf,setSubmitting:Yf,setTouched:A,setValues:U,setFormikState:Kf,submitForm:ia},jg=lt(function(){return d(T.values,Xf)}),$g=lt(function(x){x&&x.preventDefault&&St(x.preventDefault)&&x.preventDefault(),x&&x.stopPropagation&&St(x.stopPropagation)&&x.stopPropagation(),gt()}),Ig=S.useCallback(function(x){return{value:Ye(T.values,x),error:Ye(T.errors,x),touched:!!Ye(T.touched,x),initialValue:Ye(m.current,x),initialTouched:!!Ye(w.current,x),initialError:Ye(v.current,x)}},[T.errors,T.touched,T.values]),Lg=S.useCallback(function(x){return{setValue:function(j,I){return te(x,j,I)},setTouched:function(j,I){return At(x,j,I)},setError:function(j){return Z(x,j)}}},[te,At,Z]),Mg=S.useCallback(function(x){var N=ra(x),j=N?x.name:x,I=Ye(T.values,j),V={name:j,value:I,onChange:vt,onBlur:mn};if(N){var G=x.type,Se=x.value,Xt=x.as,oa=x.multiple;G==="checkbox"?Se===void 0?V.checked=!!I:(V.checked=!!(Array.isArray(I)&&~I.indexOf(Se)),V.value=Se):G==="radio"?(V.checked=I===Se,V.value=Se):Xt==="select"&&oa&&(V.value=V.value||[],V.multiple=!0)}return V},[mn,vt,T.values]),sa=S.useMemo(function(){return!tr(m.current,T.values)},[m.current,T.values]),Dg=S.useMemo(function(){return typeof l<"u"?sa?T.errors&&Object.keys(T.errors).length===0:l!==!1&&St(l)?l(f):l:T.errors&&Object.keys(T.errors).length===0},[l,sa,T.errors,f]),zg=xe({},T,{initialValues:m.current,initialErrors:v.current,initialTouched:w.current,initialStatus:_.current,handleBlur:mn,handleChange:vt,handleReset:$g,handleSubmit:Fg,resetForm:gt,setErrors:D,setFormikState:Kf,setFieldTouched:At,setFieldValue:te,setFieldError:Z,setStatus:Gf,setSubmitting:Yf,setTouched:A,setValues:U,submitForm:ia,validateForm:pe,validateField:Qs,isValid:Dg,dirty:sa,unregisterField:ji,registerField:Fi,getFieldProps:Mg,getFieldMeta:Ig,getFieldHelpers:Lg,validateOnBlur:i,validateOnChange:n,validateOnMount:o});return zg}function WT(e){var t={};if(e.inner){if(e.inner.length===0)return gr(t,e.path,e.message);for(var i=e.inner,n=Array.isArray(i),r=0,i=n?i:i[Symbol.iterator]();;){var s;if(n){if(r>=i.length)break;s=i[r++]}else{if(r=i.next(),r.done)break;s=r.value}var o=s;Ye(t,o.path)||(t=gr(t,o.path,o.message))}}return t}function QT(e,t,n,r){n===void 0&&(n=!1);var i=wc(e);return t[n?"validateSync":"validate"](i,{abortEarly:!1,context:i})}function wc(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(i){return Array.isArray(i)===!0||Uh(i)?wc(i):i!==""?i:void 0}):Uh(e[r])?t[r]=wc(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function qT(e,t,n){var r=e.slice();return t.forEach(function(s,o){if(typeof r[o]>"u"){var l=n.clone!==!1,a=l&&n.isMergeableObject(s);r[o]=a?hc(Array.isArray(s)?[]:{},s,n):s}else n.isMergeableObject(s)?r[o]=hc(e[o],s,n):e.indexOf(s)===-1&&r.push(s)}),r}function KT(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function GT(e,t,n){if(typeof e=="boolean")return!!t;var r=[],i=!1,s=-1;if(Array.isArray(e))r=e,s=e.indexOf(n),i=s>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,s).concat(r.slice(s+1)):r}var YT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?S.useLayoutEffect:S.useEffect;function lt(e){var t=S.useRef(e);return YT(function(){t.current=e}),S.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current.apply(void 0,r)},[])}var XT=S.forwardRef(function(e,t){var n=e.action,r=Eg(e,["action"]),i=n??"#",s=UT(),o=s.handleReset,l=s.handleSubmit;return S.createElement("form",xe({onSubmit:l,ref:t,onReset:o,action:i},r))});XT.displayName="Form";const ZT=({init:e,schema:t,action:n})=>HT({initialValues:e,validationSchema:t,validateOnBlur:!1,enableReinitialize:!0,validateOnChange:!1,validateOnMount:!1,onSubmit:r=>{n(r)}}),Qf=e=>typeof e=="number"&&!isNaN(e),as=e=>typeof e=="string",Cg=e=>typeof e=="function",JT=e=>S.isValidElement(e)||as(e)||Cg(e)||Qf(e),Bt=new Map;let Sc=[];const pp=new Set,Tg=()=>Bt.size>0;function eb(e,t){var n;if(t)return!((n=Bt.get(t))==null||!n.isToastActive(e));let r=!1;return Bt.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function tb(e,t){JT(e)&&(Tg()||Sc.push({content:e,options:t}),Bt.forEach(n=>{n.buildToast(e,t)}))}function mp(e,t){Bt.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}let nb=1;const bg=()=>""+nb++;function rb(e){return e&&(as(e.toastId)||Qf(e.toastId))?e.toastId:bg()}function us(e,t){return tb(e,t),t.toastId}function yl(e,t){return{...t,type:t&&t.type||e,toastId:rb(t)}}function vo(e){return(t,n)=>us(t,yl(e,n))}function re(e,t){return us(e,yl("default",t))}re.loading=(e,t)=>us(e,yl("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),re.promise=function(e,t,n){let r,{pending:i,error:s,success:o}=t;i&&(r=as(i)?re.loading(i,n):re.loading(i.render,{...n,...i}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},a=(d,c,f)=>{if(c==null)return void re.dismiss(r);const m={type:d,...l,...n,data:f},v=as(c)?{render:c}:c;return r?re.update(r,{...m,...v}):re(v.render,{...m,...v}),f},u=Cg(e)?e():e;return u.then(d=>a("success",o,d)).catch(d=>a("error",s,d)),u},re.success=vo("success"),re.info=vo("info"),re.error=vo("error"),re.warning=vo("warning"),re.warn=re.warning,re.dark=(e,t)=>us(e,yl("default",{theme:"dark",...t})),re.dismiss=function(e){(function(t){var n;if(Tg()){if(t==null||as(n=t)||Qf(n))Bt.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=Bt.get(t.containerId);r?r.removeToast(t.id):Bt.forEach(i=>{i.removeToast(t.id)})}}else Sc=Sc.filter(r=>t!=null&&r.options.toastId!==t)})(e)},re.clearWaitingQueue=function(e){e===void 0&&(e={}),Bt.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},re.isActive=eb,re.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var s;let{containerId:o}=i;return(s=Bt.get(o||1))==null?void 0:s.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,s={delay:100,...r,...t,toastId:t.toastId||e,updateId:bg()};s.toastId!==e&&(s.staleId=e);const o=s.render||i;delete s.render,us(o,s)}},re.done=e=>{re.update(e,{progress:1})},re.onChange=function(e){return pp.add(e),()=>{pp.delete(e)}},re.play=e=>mp(!0,e),re.pause=e=>mp(!1,e);function ib(e){return Array.isArray(e)&&e[0].field!==void 0}const sb=(e,t)=>{var n;if(ib(e)){for(const r of e)(n=t==null?void 0:t.form)==null||n.setFieldError(r.field,r.message);return}if(e&&e.message){t!=null&&t.noToast||re.error(e.message);return}if(e&&e.error){t!=null&&t.noToast||re.error(e.error);return}};function ob(e,t,n){let r=n;r||(r=Object.keys(e));for(let i of r){if(Array.isArray(e[i])&&Array.isArray(t[i])){if(e[i].length!==t[i].length)return!1;for(let s=0;s<e[i].length;s++)if(e[i][s]!==t[i][s])return!1;continue}if(e[i]!==t[i])return!1}return!0}function lb({id:e,text:t,required:n,className:r,noMargin:i}){return t?k.jsxs("label",{htmlFor:e,className:Vt(r,{"mb-2":!i},"inline-block text-base font-medium"),children:[t," ",n&&k.jsx("span",{className:"text-red-500",children:"*"})]}):null}const Ka={sm:"px-3 py-1 text-xs",md:"px-4 py-2 text-sm",lg:"px-5 py-3 text-15"};function xc({id:e,label:t,suffix:n,prefix:r,size:i="md",type:s="text",noMargin:o=!1,required:l=!1,error:a,ariaDescribedBy:u,className:d,ariaInvalid:c,ariaLabel:f,autoFocus:m,...v}){return k.jsxs("div",{className:Vt({"mb-3":!o},d),children:[k.jsx(lb,{id:e,text:t,required:l}),k.jsxs("div",{className:"flex items-center",children:[r&&k.jsx("span",{className:Vt("inline-block border border-r-0 border-slate-200 bg-slate-100 rounded-l-md",Ka[i],{"!border-red-500":!!a}),children:r}),k.jsx("input",{id:e,className:Vt("border rounded-md block text-base py-2 px-4 w-full border-slate-200 focus:outline-none focus:border-custom-500 disabled:bg-slate-100 disabled:border-slate-300 disabled:text-slate-500 placeholder:text-slate-400",Ka[i],{"rounded-l-none":!!r,"rounded-r-none":!!n,"!border-red-500 !text-red-500":!!a}),type:s,required:l,"aria-describedby":u,"aria-invalid":c,"aria-label":f,...v}),n&&k.jsx("span",{className:Vt("inline-block border border-l-0 border-slate-200 bg-slate-100rounded-r-md",Ka[i],{"!border-red-500":!!a}),children:n})]}),!!a&&k.jsx("p",{className:"mt-1 text-sm text-red-500",children:a})]})}const yp=e=>{const t=document.cookie.split(";").find(n=>n.trim().startsWith(`${e}=`));return t?t.split("=")[1]:""},gp=e=>{const[t,n]=S.useState(yp(e));return S.useEffect(()=>{n(yp(e))},[e]),t},vp=(e,t)=>{document.cookie=`${e}=${t}`},Og=S.createContext({}),Rg=()=>`${window.location.pathname}_$$_${document.title}`,ab=()=>{const e=localStorage.getItem("lc-page");return!e||e===""?"/":Rg()},ub=()=>{const e=localStorage.getItem("lc-p-history");if(!e||e==="")return[];try{return JSON.parse(e)}catch{return[]}};function cb({children:e}){const[t,n]=S.useState("/"),[r,i]=S.useState(ub());function s(){i([]),localStorage.removeItem("lc-p-history")}const o=l=>{n(l),i(a=>[...new Set([...a,l])]),localStorage.setItem("lc-page",l),localStorage.setItem("lc-p-history",JSON.stringify(r))};return S.useEffect(()=>{o(Rg())},[]),k.jsx(Og.Provider,{value:{page:t,setPage:o,history:r,clearHistory:s},children:e})}function qf(){return S.useContext(Og)}const fb=H0({name:dc().required("Name is required"),email:dc().email("Invalid email").required("Email is required")}),db={email:"",name:""};function hb({onOk:e,savedEmail:t,savedName:n,clientId:r}){const i=qf(),s=j_(),o=ZT({init:{email:t||"",name:n||""},schema:fb,action:async a=>{const[u,d]=await s.mutateAsync({...a,history:i.history,client_id:r});if(Hy(d)){i.clearHistory(),vp("email",a.email),vp("name",a.name),e==null||e();return}sb(u,{form:o})}}),l=!ob(db,o.values);return k.jsxs("form",{className:"grid grid-cols-1 gap-4",onSubmit:a=>{a.preventDefault(),o.handleSubmit()},children:[k.jsx(xc,{id:"name",name:"name",value:o.values.name,onChange:o.handleChange,onBlur:o.handleBlur,placeholder:"Adınız, ör: John Doe",error:o.errors.name,ariaInvalid:o.errors.name?!0:void 0,required:!0,noMargin:!0}),k.jsx(xc,{id:"email",name:"email",value:o.values.email,onChange:o.handleChange,onBlur:o.handleBlur,placeholder:"Email, ör: john@doe.com",error:o.errors.email,ariaInvalid:o.errors.email?!0:void 0,required:!0,noMargin:!0}),k.jsx(Rs,{kind:"soft",type:"submit",disabled:!l,children:"Sohbet Oluştur"})]})}function pb({image_url:e,name:t,size:n="size-9"}){return e?k.jsx("img",{src:e,alt:t,className:Vt("rounded-md",n)}):k.jsx("div",{className:"flex items-center justify-center gap-1",children:k.jsx(Ge.Website,{className:Vt("text-slate-500",n)})})}const Pg=(e,t,n)=>{const r=typeof window<"u"?window:void 0;S.useEffect(()=>(r.addEventListener(e,t),()=>{r.removeEventListener(e,t,!1)}),[e,t,r])};function mb(){const e=qf(),t=S.useCallback(()=>{const n=window.location.pathname;n!==e.page&&e.setPage(n)},[e.page]);return Pg("popstate",t),null}function yb(){const[e,t]=S.useState(!1),n=Vs(),r=qf(),i=S.useCallback(()=>{const s=window.location.pathname;if(s!==r.page){if(n){n.emit(qt.PageChange,{page:s});return}r.setPage(s)}},[n,r.page]);return Pg("popstate",i),S.useEffect(()=>{if(e||!n)return;const s=setTimeout(()=>{ab()!==r.page&&(n.emit(qt.PageChange,{page:r.page}),t(!0))},1e3);return()=>{clearTimeout(s)}},[n,r.page,e]),null}function gb({children:e}){const{widget:t}=Pi();return t?k.jsxs("section",{className:"border h-full w-full rounded-md p-4 relative",children:[k.jsx("div",{className:"-z-10 h-52 bg-zink-600 absolute top-0 left-0 w-full rounded-t-md flex flex-col gap-4 items-center justify-center"}),e]}):null}function vb(){return mb(),null}function wb(){const{widget:e}=Pi(),[t,n]=S.useState(!0),r=gp("email"),i=gp("name"),s=Of();return!e||(S.useEffect(()=>{$_(e.client_id).then(([o,l])=>{Hy(l)&&s.push("chat")}).finally(()=>{n(!1)})},[]),t)?null:k.jsxs(k.Fragment,{children:[k.jsx(j0,{children:k.jsxs(gb,{children:[k.jsxs("div",{className:"flex flex-col gap-3 items-center justify-center h-52",children:[k.jsx(pb,{name:e.name,image_url:e.image_url,size:"size-24"}),k.jsx("div",{className:"text-white text-lg font-bold ml-2",children:e.name})]}),k.jsx(hb,{clientId:e.client_id,savedEmail:r,savedName:i,onOk:()=>{s.push("chat")}})]})}),k.jsx(vb,{})]})}const Sb=[{path:"/",component:wb,name:"registration"}];function xb({name:e,avatar:t,className:n="text-neutral-500"}){return k.jsxs("div",{className:"flex gap-2 items-center",children:[k.jsx("div",{className:"min-w-max",children:k.jsxs("span",{children:[t&&k.jsx("img",{className:"size-10 rounded-full",src:t,"aria-label":e}),!t&&k.jsx("div",{className:"size-10 rounded-full bg-neutral-200"})]})}),k.jsx("div",{className:"flex flex-col",children:k.jsx("span",{className:Vt("line-clamp-1",n),children:e})})]})}function _b(e,t){let n,r=0;return function(...s){r++;const o=r;clearTimeout(n),n=setTimeout(()=>{o===r&&e(...s)},t)}}function Eb({onNewMessage:e}){const t=Vs(),[n,r]=S.useState(""),i=()=>{t==null||t.emit(qt.MessageCreate,{content:n},l=>{r(""),e(l),s("")})},s=l=>{t==null||t.emit(qt.MessageTyping,{content:l})},o=_b(s,300);return k.jsxs("form",{className:"border-t p-2 flex items-center gap-2",onSubmit:l=>{l.preventDefault(),i(),l.currentTarget.reset()},children:[k.jsx("div",{className:"grow relative",children:k.jsx(xc,{id:"message",className:"grow",noMargin:!0,onChange:l=>{r(l.target.value),o(l.target.value)},placeholder:"Bir mesaj yazın"})}),k.jsx("div",{className:"flex items-center justify-center h-full",children:k.jsx(Rs,{className:"rounded-md",type:"submit",children:"Gönder"})})]})}var jt=(e=>(e.Customer="customer",e.User="user",e.System="system",e.Activity="activity",e))(jt||{});function kb({messages:e,isTyping:t}){const n=S.useRef(null),r=S.useRef(null),[i,s]=S.useState(!0),o=()=>{var a;(a=n.current)==null||a.scrollIntoView({behavior:"smooth"})},l=()=>{if(r.current){const{scrollTop:a,scrollHeight:u,clientHeight:d}=r.current,c=u-a<=d+10;s(c)}};return S.useEffect(()=>{i&&o()},[e,i]),k.jsxs("section",{onScroll:l,ref:r,className:"flex flex-col gap-2 w-full h-full grow pt-4 px-4 overflow-y-auto",style:{height:"calc(100vh - 122px)"},children:[e.map((a,u)=>k.jsxs("div",{className:Vt("flex w-full items-center break-all",{"justify-end":a.sender_type===jt.Customer,"justify-start":a.sender_type===jt.User,"justify-center":a.sender_type===jt.System||a.sender_type===jt.Activity}),children:[a.sender_type===jt.System&&k.jsx(k.Fragment,{children:a.content}),[jt.Customer,jt.User].includes(a.sender_type)&&k.jsx("div",{className:"border rounded-md px-2 py-1",children:a.content}),a.sender_type===jt.Activity&&(a.content.split("_").length===3?k.jsxs("div",{className:"border rounded-md px-2 py-1 text-xs",children:[a.content.split("_")[2]," odaya katıldı"]}):a.content),jt.System===a.sender_type&&k.jsx("div",{className:"text-xs text-neutral-400",children:a.created_at.toLocaleString()})]},a.id||u)),t&&k.jsx("div",{className:"flex w-full items-center justify-end",children:k.jsx("div",{className:"h-full flex items-center",children:k.jsx(Ge.MessageTyping,{})})}),!i&&k.jsx("div",{className:"fixed bottom-[7.5rem] right-16",children:k.jsx(Rs,{type:"button",className:"size-10 flex items-center justify-center !p-0",onClick:()=>{var a,u;(u=r.current)==null||u.scrollTo({top:(a=r.current)==null?void 0:a.scrollHeight,behavior:"smooth"})},children:k.jsx(Ge.ArrowDown,{className:"size-5"})})}),k.jsx("div",{ref:n})]})}function Cb({children:e}){const{widget:t}=Pi();return t?k.jsx("section",{className:"border h-full w-full rounded-md relative",children:e}):null}function Tb({children:e}){const t=Vs();return S.useEffect(()=>{t&&t.connect()},[]),!t||!t.connected?null:e}function bb(){const{widget:e,setOpen:t}=Pi(),n=Vs(),r=Of(),[i,s]=S.useState(null),[o,l]=S.useState([]),[a,u]=S.useState(!1),[d,c]=S.useState(!1),[f,m]=S.useState([]),v=()=>{n==null||n.emit(qt.ChatClose,{}),t(!1),dl(e.client_id)};S.useEffect(()=>{n==null||n.emit(qt.ChatView,{},_=>{if(_===null){t(!1),dl(e.client_id),r.push("registration");return}s(_)})},[]);const w=S.useCallback(_=>{l([...o,_])},[o]);return S.useEffect(()=>{if(n)return n.on(bt.MessageAgentCreate,_=>{const p={content:_.content,created_at:_.created_at,files:_.files,id:_._id,sender_type:_.sender_type,answers:_.answers,reply_id:_.reply_id};if(f.length>0){m(h=>[...h,p]);return}_.is_shortcut?m([p]):w(p)}),n.on(bt.ChatUserAssignee,_=>{s({...i,agent_name:_.name,agent_avatar:_.avatar,is_uploadable:(i==null?void 0:i.is_uploadable)??!1})}),n.on(bt.MessageAgentTyping,()=>{u(!0)}),()=>{n.off(bt.MessageAgentCreate),n.off(bt.ChatUserAssignee),n.off(bt.MessageAgentTyping)}},[w]),S.useEffect(()=>{n&&n.emit(qt.MessageList,{},_=>{l(_)})},[]),S.useEffect(()=>{const _=setTimeout(()=>{u(!1)},1e3);return()=>clearTimeout(_)},[a]),S.useEffect(()=>{if(!e||f.length===0)return;const _=(e.writing_timeout||650)*f[0].content.split(" ").length,p=setTimeout(()=>{w(f[0]),m(f.slice(1))},_);return()=>clearTimeout(p)},[f,e]),i?k.jsxs(k.Fragment,{children:[d&&k.jsx("div",{className:"absolute top-0 left-0 backdrop-blur-sm bg-slate-950/20 z-50 h-full w-full rounded-md",children:k.jsx("div",{className:"flex flex-col items-center justify-center h-full mx-5",children:k.jsxs("div",{className:"bg-white p-4 rounded-md",children:[k.jsx("div",{className:"text-lg font-semibold text-neutral-900",children:"Sohbeti kapatmak istediğinize emin misiniz?"}),k.jsxs("div",{className:"flex justify-between mt-4",children:[k.jsx("button",{type:"button",className:"bg-red-500 text-white px-4 py-2 rounded-md",onClick:v,children:"Evet"}),k.jsx("button",{type:"button",className:"bg-neutral-200 text-neutral-900 px-4 py-2 rounded-md",onClick:()=>c(!1),children:"Vazgeç"})]})]})})}),k.jsxs("section",{className:"bg-white h-full w-full rounded-md border flex flex-col",children:[k.jsxs("header",{className:"border-b p-4 bg-zink-600 rounded-t-md flex justify-between items-center",children:[i!=null&&i.agent_name?k.jsx(xb,{name:i.agent_name,avatar:i.agent_avatar,className:"text-neutral-300"}):k.jsx("div",{className:"text-white",children:"Chat with us"}),k.jsx("button",{type:"button",className:"text-white",onClick:()=>c(!0),children:k.jsx(Ge.X,{className:"w-6 h-6 cursor-pointer"})})]}),k.jsx(kb,{messages:o,isTyping:a||f.length>0}),k.jsx(Eb,{onNewMessage:_=>{w(_)}})]})]}):null}function Ob(){return yb(),null}function Rb(){return k.jsxs(Tb,{children:[k.jsx(j0,{defaultOpen:!0,children:k.jsx(Cb,{children:k.jsx(bb,{})})}),k.jsx(Ob,{})]})}const Pb=[{path:"/chat",component:Rb,name:"chat"}],Ag=[...Pb],Ng=[...Sb],Ab=[...Ag,...Ng];function Nb(){return k.jsx(lx,{future:{v7_startTransition:!0},children:k.jsxs(ux,{children:[Ag.map((e,t)=>k.jsx(tc,{path:e.path,element:k.jsx(e.component,{})},t)),Ng.map((e,t)=>k.jsx(tc,{path:e.path,element:k.jsx(e.component,{})},t))]})})}function Fb({link_id:e}){const{setWidget:t,widget:n}=Pi(),{data:r,isLoading:i}=dS(e);return S.useEffect(()=>{Array.isArray(r)&&pS(r[0])&&t(r[0])},[r]),i||!n?null:k.jsx(cb,{children:k.jsx(F_,{children:k.jsx(Nb,{})})})}const jb=new qw;function $b({container:e,link_id:t}){By(e).render(k.jsx(Zw,{client:jb,children:k.jsx(Fb,{link_id:t})}))}window.widget=$b});export default Ib();
88
+ */var Ae=typeof Symbol=="function"&&Symbol.for,md=Ae?Symbol.for("react.element"):60103,yd=Ae?Symbol.for("react.portal"):60106,vl=Ae?Symbol.for("react.fragment"):60107,wl=Ae?Symbol.for("react.strict_mode"):60108,xl=Ae?Symbol.for("react.profiler"):60114,Sl=Ae?Symbol.for("react.provider"):60109,El=Ae?Symbol.for("react.context"):60110,gd=Ae?Symbol.for("react.async_mode"):60111,_l=Ae?Symbol.for("react.concurrent_mode"):60111,bl=Ae?Symbol.for("react.forward_ref"):60112,kl=Ae?Symbol.for("react.suspense"):60113,KC=Ae?Symbol.for("react.suspense_list"):60120,Cl=Ae?Symbol.for("react.memo"):60115,Tl=Ae?Symbol.for("react.lazy"):60116,YC=Ae?Symbol.for("react.block"):60121,GC=Ae?Symbol.for("react.fundamental"):60117,XC=Ae?Symbol.for("react.responder"):60118,ZC=Ae?Symbol.for("react.scope"):60119;function _t(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case md:switch(e=e.type,e){case gd:case _l:case vl:case xl:case wl:case kl:return e;default:switch(e=e&&e.$$typeof,e){case El:case bl:case Tl:case Cl:case Sl:return e;default:return t}}case yd:return t}}}function Qg(e){return _t(e)===_l}ie.AsyncMode=gd;ie.ConcurrentMode=_l;ie.ContextConsumer=El;ie.ContextProvider=Sl;ie.Element=md;ie.ForwardRef=bl;ie.Fragment=vl;ie.Lazy=Tl;ie.Memo=Cl;ie.Portal=yd;ie.Profiler=xl;ie.StrictMode=wl;ie.Suspense=kl;ie.isAsyncMode=function(e){return Qg(e)||_t(e)===gd};ie.isConcurrentMode=Qg;ie.isContextConsumer=function(e){return _t(e)===El};ie.isContextProvider=function(e){return _t(e)===Sl};ie.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===md};ie.isForwardRef=function(e){return _t(e)===bl};ie.isFragment=function(e){return _t(e)===vl};ie.isLazy=function(e){return _t(e)===Tl};ie.isMemo=function(e){return _t(e)===Cl};ie.isPortal=function(e){return _t(e)===yd};ie.isProfiler=function(e){return _t(e)===xl};ie.isStrictMode=function(e){return _t(e)===wl};ie.isSuspense=function(e){return _t(e)===kl};ie.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===vl||e===_l||e===xl||e===wl||e===kl||e===KC||typeof e=="object"&&e!==null&&(e.$$typeof===Tl||e.$$typeof===Cl||e.$$typeof===Sl||e.$$typeof===El||e.$$typeof===bl||e.$$typeof===GC||e.$$typeof===XC||e.$$typeof===ZC||e.$$typeof===YC)};ie.typeOf=_t;Wg.exports=ie;var JC=Wg.exports,qg=JC,eT={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},tT={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Kg={};Kg[qg.ForwardRef]=eT;Kg[qg.Memo]=tT;function Oe(){return Oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oe.apply(this,arguments)}function Yg(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ol=S.createContext(void 0);Ol.displayName="FormikContext";Ol.Provider;Ol.Consumer;function nT(){var e=S.useContext(Ol);return e}var Mt=function(t){return typeof t=="function"},Rl=function(t){return t!==null&&typeof t=="object"},rT=function(t){return String(Math.floor(Number(t)))===t},vu=function(t){return Object.prototype.toString.call(t)==="[object String]"},wu=function(t){return Rl(t)&&Mt(t.then)};function ht(e,t,n,r){r===void 0&&(r=0);for(var i=Hg(t);e&&r<i.length;)e=e[i[r++]];return r!==i.length&&!e||e===void 0?n:e}function Dr(e,t,n){for(var r=Ip(e),i=r,s=0,o=Hg(t);s<o.length-1;s++){var a=o[s],l=ht(e,o.slice(0,s+1));if(l&&(Rl(l)||Array.isArray(l)))i=i[a]=Ip(l);else{var c=o[s+1];i=i[a]=rT(c)&&Number(c)>=0?[]:{}}}return(s===0?e:i)[o[s]]===n?e:(n===void 0?delete i[o[s]]:i[o[s]]=n,s===0&&n===void 0&&delete r[o[s]],r)}function Gg(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var i=0,s=Object.keys(e);i<s.length;i++){var o=s[i],a=e[o];Rl(a)?n.get(a)||(n.set(a,!0),r[o]=Array.isArray(a)?[]:{},Gg(a,t,n,r[o])):r[o]=t}return r}function iT(e,t){switch(t.type){case"SET_VALUES":return Oe({},e,{values:t.payload});case"SET_TOUCHED":return Oe({},e,{touched:t.payload});case"SET_ERRORS":return Er(e.errors,t.payload)?e:Oe({},e,{errors:t.payload});case"SET_STATUS":return Oe({},e,{status:t.payload});case"SET_ISSUBMITTING":return Oe({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Oe({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Oe({},e,{values:Dr(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Oe({},e,{touched:Dr(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Oe({},e,{errors:Dr(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Oe({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Oe({},e,{touched:Gg(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return Oe({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return Oe({},e,{isSubmitting:!1});default:return e}}var wr={},Ho={};function sT(e){var t=e.validateOnChange,n=t===void 0?!0:t,r=e.validateOnBlur,i=r===void 0?!0:r,s=e.validateOnMount,o=s===void 0?!1:s,a=e.isInitialValid,l=e.enableReinitialize,c=l===void 0?!1:l,d=e.onSubmit,u=Yg(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),f=Oe({validateOnChange:n,validateOnBlur:i,validateOnMount:o,onSubmit:d},u),m=S.useRef(f.initialValues),v=S.useRef(f.initialErrors||wr),w=S.useRef(f.initialTouched||Ho),x=S.useRef(f.initialStatus),p=S.useRef(!1),h=S.useRef({});S.useEffect(function(){return p.current=!0,function(){p.current=!1}},[]);var g=S.useState(0),_=g[1],T=S.useRef({values:Vo(f.initialValues),errors:Vo(f.initialErrors)||wr,touched:Vo(f.initialTouched)||Ho,status:Vo(f.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),C=T.current,k=S.useCallback(function(E){var A=T.current;T.current=iT(A,E),A!==T.current&&_(function($){return $+1})},[]),R=S.useCallback(function(E,A){return new Promise(function($,z){var W=f.validate(E,A);W==null?$(wr):wu(W)?W.then(function(te){$(te||wr)},function(te){z(te)}):$(W)})},[f.validate]),I=S.useCallback(function(E,A){var $=f.validationSchema,z=Mt($)?$(A):$,W=A&&z.validateAt?z.validateAt(A,E):aT(E,z);return new Promise(function(te,we){W.then(function(){te(wr)},function(ft){ft.name==="ValidationError"?te(oT(ft)):we(ft)})})},[f.validationSchema]),D=S.useCallback(function(E,A){return new Promise(function($){return $(h.current[E].validate(A))})},[]),B=S.useCallback(function(E){var A=Object.keys(h.current).filter(function(z){return Mt(h.current[z].validate)}),$=A.length>0?A.map(function(z){return D(z,ht(E,z))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all($).then(function(z){return z.reduce(function(W,te,we){return te==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||te&&(W=Dr(W,A[we],te)),W},{})})},[D]),se=S.useCallback(function(E){return Promise.all([B(E),f.validationSchema?I(E):{},f.validate?R(E):{}]).then(function(A){var $=A[0],z=A[1],W=A[2],te=Mc.all([$,z,W],{arrayMerge:lT});return te})},[f.validate,f.validationSchema,B,R,I]),oe=kt(function(E){return E===void 0&&(E=C.values),k({type:"SET_ISVALIDATING",payload:!0}),se(E).then(function(A){return p.current&&(k({type:"SET_ISVALIDATING",payload:!1}),k({type:"SET_ERRORS",payload:A})),A})});S.useEffect(function(){o&&p.current===!0&&Er(m.current,f.initialValues)&&oe(m.current)},[o,oe]);var Ve=S.useCallback(function(E){var A=E&&E.values?E.values:m.current,$=E&&E.errors?E.errors:v.current?v.current:f.initialErrors||{},z=E&&E.touched?E.touched:w.current?w.current:f.initialTouched||{},W=E&&E.status?E.status:x.current?x.current:f.initialStatus;m.current=A,v.current=$,w.current=z,x.current=W;var te=function(){k({type:"RESET_FORM",payload:{isSubmitting:!!E&&!!E.isSubmitting,errors:$,touched:z,status:W,values:A,isValidating:!!E&&!!E.isValidating,submitCount:E&&E.submitCount&&typeof E.submitCount=="number"?E.submitCount:0}})};if(f.onReset){var we=f.onReset(C.values,po);wu(we)?we.then(te):te()}else te()},[f.initialErrors,f.initialStatus,f.initialTouched,f.onReset]);S.useEffect(function(){p.current===!0&&!Er(m.current,f.initialValues)&&c&&(m.current=f.initialValues,Ve(),o&&oe(m.current))},[c,f.initialValues,Ve,o,oe]),S.useEffect(function(){c&&p.current===!0&&!Er(v.current,f.initialErrors)&&(v.current=f.initialErrors||wr,k({type:"SET_ERRORS",payload:f.initialErrors||wr}))},[c,f.initialErrors]),S.useEffect(function(){c&&p.current===!0&&!Er(w.current,f.initialTouched)&&(w.current=f.initialTouched||Ho,k({type:"SET_TOUCHED",payload:f.initialTouched||Ho}))},[c,f.initialTouched]),S.useEffect(function(){c&&p.current===!0&&!Er(x.current,f.initialStatus)&&(x.current=f.initialStatus,k({type:"SET_STATUS",payload:f.initialStatus}))},[c,f.initialStatus,f.initialTouched]);var He=kt(function(E){if(h.current[E]&&Mt(h.current[E].validate)){var A=ht(C.values,E),$=h.current[E].validate(A);return wu($)?(k({type:"SET_ISVALIDATING",payload:!0}),$.then(function(z){return z}).then(function(z){k({type:"SET_FIELD_ERROR",payload:{field:E,value:z}}),k({type:"SET_ISVALIDATING",payload:!1})})):(k({type:"SET_FIELD_ERROR",payload:{field:E,value:$}}),Promise.resolve($))}else if(f.validationSchema)return k({type:"SET_ISVALIDATING",payload:!0}),I(C.values,E).then(function(z){return z}).then(function(z){k({type:"SET_FIELD_ERROR",payload:{field:E,value:ht(z,E)}}),k({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),K=S.useCallback(function(E,A){var $=A.validate;h.current[E]={validate:$}},[]),We=S.useCallback(function(E){delete h.current[E]},[]),N=kt(function(E,A){k({type:"SET_TOUCHED",payload:E});var $=A===void 0?i:A;return $?oe(C.values):Promise.resolve()}),L=S.useCallback(function(E){k({type:"SET_ERRORS",payload:E})},[]),H=kt(function(E,A){var $=Mt(E)?E(C.values):E;k({type:"SET_VALUES",payload:$});var z=A===void 0?n:A;return z?oe($):Promise.resolve()}),M=S.useCallback(function(E,A){k({type:"SET_FIELD_ERROR",payload:{field:E,value:A}})},[]),V=kt(function(E,A,$){k({type:"SET_FIELD_VALUE",payload:{field:E,value:A}});var z=$===void 0?n:$;return z?oe(Dr(C.values,E,A)):Promise.resolve()}),ee=S.useCallback(function(E,A){var $=A,z=E,W;if(!vu(E)){E.persist&&E.persist();var te=E.target?E.target:E.currentTarget,we=te.type,ft=te.name,Xt=te.id,ni=te.value,Fn=te.checked,wd=te.outerHTML,go=te.options,vo=te.multiple;$=A||ft||Xt,z=/number|range/.test(we)?(W=parseFloat(ni),isNaN(W)?"":W):/checkbox/.test(we)?cT(ht(C.values,$),Fn,ni):go&&vo?uT(go):ni}$&&V($,z)},[V,C.values]),de=kt(function(E){if(vu(E))return function(A){return ee(A,E)};ee(E)}),Ce=kt(function(E,A,$){A===void 0&&(A=!0),k({type:"SET_FIELD_TOUCHED",payload:{field:E,value:A}});var z=$===void 0?i:$;return z?oe(C.values):Promise.resolve()}),Z=S.useCallback(function(E,A){E.persist&&E.persist();var $=E.target,z=$.name,W=$.id,te=$.outerHTML,we=A||z||W;Ce(we,!0)},[Ce]),Ze=kt(function(E){if(vu(E))return function(A){return Z(A,E)};Z(E)}),mn=S.useCallback(function(E){Mt(E)?k({type:"SET_FORMIK_STATE",payload:E}):k({type:"SET_FORMIK_STATE",payload:function(){return E}})},[]),An=S.useCallback(function(E){k({type:"SET_STATUS",payload:E})},[]),jn=S.useCallback(function(E){k({type:"SET_ISSUBMITTING",payload:E})},[]),ns=kt(function(){return k({type:"SUBMIT_ATTEMPT"}),oe().then(function(E){var A=E instanceof Error,$=!A&&Object.keys(E).length===0;if($){var z;try{if(z=rs(),z===void 0)return}catch(W){throw W}return Promise.resolve(z).then(function(W){return p.current&&k({type:"SUBMIT_SUCCESS"}),W}).catch(function(W){if(p.current)throw k({type:"SUBMIT_FAILURE"}),W})}else if(p.current&&(k({type:"SUBMIT_FAILURE"}),A))throw E})}),ho=kt(function(E){E&&E.preventDefault&&Mt(E.preventDefault)&&E.preventDefault(),E&&E.stopPropagation&&Mt(E.stopPropagation)&&E.stopPropagation(),ns().catch(function(A){console.warn("Warning: An unhandled error was caught from submitForm()",A)})}),po={resetForm:Ve,validateForm:oe,validateField:He,setErrors:L,setFieldError:M,setFieldTouched:Ce,setFieldValue:V,setStatus:An,setSubmitting:jn,setTouched:N,setValues:H,setFormikState:mn,submitForm:ns},rs=kt(function(){return d(C.values,po)}),Pl=kt(function(E){E&&E.preventDefault&&Mt(E.preventDefault)&&E.preventDefault(),E&&E.stopPropagation&&Mt(E.stopPropagation)&&E.stopPropagation(),Ve()}),mo=S.useCallback(function(E){return{value:ht(C.values,E),error:ht(C.errors,E),touched:!!ht(C.touched,E),initialValue:ht(m.current,E),initialTouched:!!ht(w.current,E),initialError:ht(v.current,E)}},[C.errors,C.touched,C.values]),gr=S.useCallback(function(E){return{setValue:function($,z){return V(E,$,z)},setTouched:function($,z){return Ce(E,$,z)},setError:function($){return M(E,$)}}},[V,Ce,M]),yo=S.useCallback(function(E){var A=Rl(E),$=A?E.name:E,z=ht(C.values,$),W={name:$,value:z,onChange:de,onBlur:Ze};if(A){var te=E.type,we=E.value,ft=E.as,Xt=E.multiple;te==="checkbox"?we===void 0?W.checked=!!z:(W.checked=!!(Array.isArray(z)&&~z.indexOf(we)),W.value=we):te==="radio"?(W.checked=z===we,W.value=we):ft==="select"&&Xt&&(W.value=W.value||[],W.multiple=!0)}return W},[Ze,de,C.values]),ct=S.useMemo(function(){return!Er(m.current,C.values)},[m.current,C.values]),Nl=S.useMemo(function(){return typeof a<"u"?ct?C.errors&&Object.keys(C.errors).length===0:a!==!1&&Mt(a)?a(f):a:C.errors&&Object.keys(C.errors).length===0},[a,ct,C.errors,f]),Al=Oe({},C,{initialValues:m.current,initialErrors:v.current,initialTouched:w.current,initialStatus:x.current,handleBlur:Ze,handleChange:de,handleReset:Pl,handleSubmit:ho,resetForm:Ve,setErrors:L,setFormikState:mn,setFieldTouched:Ce,setFieldValue:V,setFieldError:M,setStatus:An,setSubmitting:jn,setTouched:N,setValues:H,submitForm:ns,validateForm:oe,validateField:He,isValid:Nl,dirty:ct,unregisterField:We,registerField:K,getFieldProps:yo,getFieldMeta:mo,getFieldHelpers:gr,validateOnBlur:i,validateOnChange:n,validateOnMount:o});return Al}function oT(e){var t={};if(e.inner){if(e.inner.length===0)return Dr(t,e.path,e.message);for(var i=e.inner,n=Array.isArray(i),r=0,i=n?i:i[Symbol.iterator]();;){var s;if(n){if(r>=i.length)break;s=i[r++]}else{if(r=i.next(),r.done)break;s=r.value}var o=s;ht(t,o.path)||(t=Dr(t,o.path,o.message))}}return t}function aT(e,t,n,r){n===void 0&&(n=!1);var i=Wc(e);return t[n?"validateSync":"validate"](i,{abortEarly:!1,context:i})}function Wc(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(i){return Array.isArray(i)===!0||dp(i)?Wc(i):i!==""?i:void 0}):dp(e[r])?t[r]=Wc(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function lT(e,t,n){var r=e.slice();return t.forEach(function(s,o){if(typeof r[o]>"u"){var a=n.clone!==!1,l=a&&n.isMergeableObject(s);r[o]=l?Mc(Array.isArray(s)?[]:{},s,n):s}else n.isMergeableObject(s)?r[o]=Mc(e[o],s,n):e.indexOf(s)===-1&&r.push(s)}),r}function uT(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function cT(e,t,n){if(typeof e=="boolean")return!!t;var r=[],i=!1,s=-1;if(Array.isArray(e))r=e,s=e.indexOf(n),i=s>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,s).concat(r.slice(s+1)):r}var fT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?S.useLayoutEffect:S.useEffect;function kt(e){var t=S.useRef(e);return fT(function(){t.current=e}),S.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current.apply(void 0,r)},[])}var dT=S.forwardRef(function(e,t){var n=e.action,r=Yg(e,["action"]),i=n??"#",s=nT(),o=s.handleReset,a=s.handleSubmit;return S.createElement("form",Oe({onSubmit:a,ref:t,onReset:o,action:i},r))});dT.displayName="Form";const hT=({init:e,schema:t,action:n})=>sT({initialValues:e,validationSchema:t,validateOnBlur:!1,enableReinitialize:!0,validateOnChange:!1,validateOnMount:!1,onSubmit:r=>{n(r)}});function pT(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const mT=e=>{switch(e){case"success":return vT;case"info":return xT;case"warning":return wT;case"error":return ST;default:return null}},yT=Array(12).fill(0),gT=({visible:e,className:t})=>P.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},P.createElement("div",{className:"sonner-spinner"},yT.map((n,r)=>P.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),vT=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},P.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),wT=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},P.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),xT=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},P.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),ST=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},P.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),ET=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},P.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),P.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),_T=()=>{const[e,t]=P.useState(document.hidden);return P.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Qc=1;class bT{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...i}=t,s=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Qc++,o=this.toasts.find(l=>l.id===s),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),o?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...t,id:s,title:r}),{...l,...t,id:s,dismissible:a,title:r}):l):this.addToast({title:r,...i,dismissible:a,id:s}),s},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0}))),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const i=Promise.resolve(t instanceof Function?t():t);let s=r!==void 0,o;const a=i.then(async c=>{if(o=["resolve",c],P.isValidElement(c))s=!1,this.create({id:r,type:"default",message:c});else if(CT(c)&&!c.ok){s=!1;const u=typeof n.error=="function"?await n.error(`HTTP error! status: ${c.status}`):n.error,f=typeof n.description=="function"?await n.description(`HTTP error! status: ${c.status}`):n.description,m=typeof u=="object"?u:{message:u};this.create({id:r,type:"error",description:f,...m})}else if(c instanceof Error){s=!1;const u=typeof n.error=="function"?await n.error(c):n.error,f=typeof n.description=="function"?await n.description(c):n.description,m=typeof u=="object"?u:{message:u};this.create({id:r,type:"error",description:f,...m})}else if(n.success!==void 0){s=!1;const u=typeof n.success=="function"?await n.success(c):n.success,f=typeof n.description=="function"?await n.description(c):n.description,m=typeof u=="object"?u:{message:u};this.create({id:r,type:"success",description:f,...m})}}).catch(async c=>{if(o=["reject",c],n.error!==void 0){s=!1;const d=typeof n.error=="function"?await n.error(c):n.error,u=typeof n.description=="function"?await n.description(c):n.description,f=typeof d=="object"?d:{message:d};this.create({id:r,type:"error",description:u,...f})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((c,d)=>a.then(()=>o[0]==="reject"?d(o[1]):c(o[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||Qc++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const nt=new bT,kT=(e,t)=>{const n=(t==null?void 0:t.id)||Qc++;return nt.addToast({title:e,...t,id:n}),n},CT=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",TT=kT,OT=()=>nt.toasts,RT=()=>nt.getActiveToasts(),Mp=Object.assign(TT,{success:nt.success,info:nt.info,warning:nt.warning,error:nt.error,custom:nt.custom,message:nt.message,promise:nt.promise,dismiss:nt.dismiss,loading:nt.loading},{getHistory:OT,getToasts:RT});pT("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}[data-sonner-toaster][data-lifted=true]{transform:translateY(-8px)}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Wo(e){return e.label!==void 0}const PT=3,NT="24px",AT="16px",zp=4e3,jT=356,FT=14,$T=45,IT=200;function Jt(...e){return e.filter(Boolean).join(" ")}function LT(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const DT=e=>{var t,n,r,i,s,o,a,l,c;const{invert:d,toast:u,unstyled:f,interacting:m,setHeights:v,visibleToasts:w,heights:x,index:p,toasts:h,expanded:g,removeToast:_,defaultRichColors:T,closeButton:C,style:k,cancelButtonStyle:R,actionButtonStyle:I,className:D="",descriptionClassName:B="",duration:se,position:oe,gap:Ve,expandByDefault:He,classNames:K,icons:We,closeButtonAriaLabel:N="Close toast"}=e,[L,H]=P.useState(null),[M,V]=P.useState(null),[ee,de]=P.useState(!1),[Ce,Z]=P.useState(!1),[Ze,mn]=P.useState(!1),[An,jn]=P.useState(!1),[ns,ho]=P.useState(!1),[po,rs]=P.useState(0),[Pl,mo]=P.useState(0),gr=P.useRef(u.duration||se||zp),yo=P.useRef(null),ct=P.useRef(null),Nl=p===0,Al=p+1<=w,E=u.type,A=u.dismissible!==!1,$=u.className||"",z=u.descriptionClassName||"",W=P.useMemo(()=>x.findIndex(Q=>Q.toastId===u.id)||0,[x,u.id]),te=P.useMemo(()=>{var Q;return(Q=u.closeButton)!=null?Q:C},[u.closeButton,C]),we=P.useMemo(()=>u.duration||se||zp,[u.duration,se]),ft=P.useRef(0),Xt=P.useRef(0),ni=P.useRef(0),Fn=P.useRef(null),[wd,go]=oe.split("-"),vo=P.useMemo(()=>x.reduce((Q,Te,Le)=>Le>=W?Q:Q+Te.height,0),[x,W]),xd=_T(),nv=u.invert||d,jl=E==="loading";Xt.current=P.useMemo(()=>W*Ve+vo,[W,vo]),P.useEffect(()=>{gr.current=we},[we]),P.useEffect(()=>{de(!0)},[]),P.useEffect(()=>{const Q=ct.current;if(Q){const Te=Q.getBoundingClientRect().height;return mo(Te),v(Le=>[{toastId:u.id,height:Te,position:u.position},...Le]),()=>v(Le=>Le.filter(dt=>dt.toastId!==u.id))}},[v,u.id]),P.useLayoutEffect(()=>{if(!ee)return;const Q=ct.current,Te=Q.style.height;Q.style.height="auto";const Le=Q.getBoundingClientRect().height;Q.style.height=Te,mo(Le),v(dt=>dt.find(je=>je.toastId===u.id)?dt.map(je=>je.toastId===u.id?{...je,height:Le}:je):[{toastId:u.id,height:Le,position:u.position},...dt])},[ee,u.title,u.description,v,u.id]);const $n=P.useCallback(()=>{Z(!0),rs(Xt.current),v(Q=>Q.filter(Te=>Te.toastId!==u.id)),setTimeout(()=>{_(u)},IT)},[u,_,v,Xt]);P.useEffect(()=>{if(u.promise&&E==="loading"||u.duration===1/0||u.type==="loading")return;let Q;return g||m||xd?(()=>{if(ni.current<ft.current){const dt=new Date().getTime()-ft.current;gr.current=gr.current-dt}ni.current=new Date().getTime()})():(()=>{gr.current!==1/0&&(ft.current=new Date().getTime(),Q=setTimeout(()=>{u.onAutoClose==null||u.onAutoClose.call(u,u),$n()},gr.current))})(),()=>clearTimeout(Q)},[g,m,u,E,xd,$n]),P.useEffect(()=>{u.delete&&$n()},[$n,u.delete]);function rv(){var Q;if(We!=null&&We.loading){var Te;return P.createElement("div",{className:Jt(K==null?void 0:K.loader,u==null||(Te=u.classNames)==null?void 0:Te.loader,"sonner-loader"),"data-visible":E==="loading"},We.loading)}return P.createElement(gT,{className:Jt(K==null?void 0:K.loader,u==null||(Q=u.classNames)==null?void 0:Q.loader),visible:E==="loading"})}var Sd,Ed;return P.createElement("li",{tabIndex:0,ref:ct,className:Jt(D,$,K==null?void 0:K.toast,u==null||(t=u.classNames)==null?void 0:t.toast,K==null?void 0:K.default,K==null?void 0:K[E],u==null||(n=u.classNames)==null?void 0:n[E]),"data-sonner-toast":"","data-rich-colors":(Sd=u.richColors)!=null?Sd:T,"data-styled":!(u.jsx||u.unstyled||f),"data-mounted":ee,"data-promise":!!u.promise,"data-swiped":ns,"data-removed":Ce,"data-visible":Al,"data-y-position":wd,"data-x-position":go,"data-index":p,"data-front":Nl,"data-swiping":Ze,"data-dismissible":A,"data-type":E,"data-invert":nv,"data-swipe-out":An,"data-swipe-direction":M,"data-expanded":!!(g||He&&ee),style:{"--index":p,"--toasts-before":p,"--z-index":h.length-p,"--offset":`${Ce?po:Xt.current}px`,"--initial-height":He?"auto":`${Pl}px`,...k,...u.style},onDragEnd:()=>{mn(!1),H(null),Fn.current=null},onPointerDown:Q=>{jl||!A||(yo.current=new Date,rs(Xt.current),Q.target.setPointerCapture(Q.pointerId),Q.target.tagName!=="BUTTON"&&(mn(!0),Fn.current={x:Q.clientX,y:Q.clientY}))},onPointerUp:()=>{var Q,Te,Le;if(An||!A)return;Fn.current=null;const dt=Number(((Q=ct.current)==null?void 0:Q.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),wo=Number(((Te=ct.current)==null?void 0:Te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),je=new Date().getTime()-((Le=yo.current)==null?void 0:Le.getTime()),bt=L==="x"?dt:wo,xo=Math.abs(bt)/je;if(Math.abs(bt)>=$T||xo>.11){rs(Xt.current),u.onDismiss==null||u.onDismiss.call(u,u),V(L==="x"?dt>0?"right":"left":wo>0?"down":"up"),$n(),jn(!0);return}else{var It,Lt;(It=ct.current)==null||It.style.setProperty("--swipe-amount-x","0px"),(Lt=ct.current)==null||Lt.style.setProperty("--swipe-amount-y","0px")}ho(!1),mn(!1),H(null)},onPointerMove:Q=>{var Te,Le,dt;if(!Fn.current||!A||((Te=window.getSelection())==null?void 0:Te.toString().length)>0)return;const je=Q.clientY-Fn.current.y,bt=Q.clientX-Fn.current.x;var xo;const It=(xo=e.swipeDirections)!=null?xo:LT(oe);!L&&(Math.abs(bt)>1||Math.abs(je)>1)&&H(Math.abs(bt)>Math.abs(je)?"x":"y");let Lt={x:0,y:0};const _d=vr=>1/(1.5+Math.abs(vr)/20);if(L==="y"){if(It.includes("top")||It.includes("bottom"))if(It.includes("top")&&je<0||It.includes("bottom")&&je>0)Lt.y=je;else{const vr=je*_d(je);Lt.y=Math.abs(vr)<Math.abs(je)?vr:je}}else if(L==="x"&&(It.includes("left")||It.includes("right")))if(It.includes("left")&&bt<0||It.includes("right")&&bt>0)Lt.x=bt;else{const vr=bt*_d(bt);Lt.x=Math.abs(vr)<Math.abs(bt)?vr:bt}(Math.abs(Lt.x)>0||Math.abs(Lt.y)>0)&&ho(!0),(Le=ct.current)==null||Le.style.setProperty("--swipe-amount-x",`${Lt.x}px`),(dt=ct.current)==null||dt.style.setProperty("--swipe-amount-y",`${Lt.y}px`)}},te&&!u.jsx&&E!=="loading"?P.createElement("button",{"aria-label":N,"data-disabled":jl,"data-close-button":!0,onClick:jl||!A?()=>{}:()=>{$n(),u.onDismiss==null||u.onDismiss.call(u,u)},className:Jt(K==null?void 0:K.closeButton,u==null||(r=u.classNames)==null?void 0:r.closeButton)},(Ed=We==null?void 0:We.close)!=null?Ed:ET):null,E||u.icon||u.promise?P.createElement("div",{"data-icon":"",className:Jt(K==null?void 0:K.icon,u==null||(i=u.classNames)==null?void 0:i.icon)},u.promise||u.type==="loading"&&!u.icon?u.icon||rv():null,u.type!=="loading"?u.icon||(We==null?void 0:We[E])||mT(E):null):null,P.createElement("div",{"data-content":"",className:Jt(K==null?void 0:K.content,u==null||(s=u.classNames)==null?void 0:s.content)},P.createElement("div",{"data-title":"",className:Jt(K==null?void 0:K.title,u==null||(o=u.classNames)==null?void 0:o.title)},u.jsx?u.jsx:typeof u.title=="function"?u.title():u.title),u.description?P.createElement("div",{"data-description":"",className:Jt(B,z,K==null?void 0:K.description,u==null||(a=u.classNames)==null?void 0:a.description)},typeof u.description=="function"?u.description():u.description):null),P.isValidElement(u.cancel)?u.cancel:u.cancel&&Wo(u.cancel)?P.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||R,onClick:Q=>{Wo(u.cancel)&&A&&(u.cancel.onClick==null||u.cancel.onClick.call(u.cancel,Q),$n())},className:Jt(K==null?void 0:K.cancelButton,u==null||(l=u.classNames)==null?void 0:l.cancelButton)},u.cancel.label):null,P.isValidElement(u.action)?u.action:u.action&&Wo(u.action)?P.createElement("button",{"data-button":!0,"data-action":!0,style:u.actionButtonStyle||I,onClick:Q=>{Wo(u.action)&&(u.action.onClick==null||u.action.onClick.call(u.action,Q),!Q.defaultPrevented&&$n())},className:Jt(K==null?void 0:K.actionButton,u==null||(c=u.classNames)==null?void 0:c.actionButton)},u.action.label):null)};function Bp(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function MT(e,t){const n={};return[e,t].forEach((r,i)=>{const s=i===1,o=s?"--mobile-offset":"--offset",a=s?AT:NT;function l(c){["top","right","bottom","left"].forEach(d=>{n[`${o}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${o}-${c}`]=a:n[`${o}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(a)}),n}const zT=P.forwardRef(function(t,n){const{invert:r,position:i="bottom-right",hotkey:s=["altKey","KeyT"],expand:o,closeButton:a,className:l,offset:c,mobileOffset:d,theme:u="light",richColors:f,duration:m,style:v,visibleToasts:w=PT,toastOptions:x,dir:p=Bp(),gap:h=FT,icons:g,containerAriaLabel:_="Notifications"}=t,[T,C]=P.useState([]),k=P.useMemo(()=>Array.from(new Set([i].concat(T.filter(M=>M.position).map(M=>M.position)))),[T,i]),[R,I]=P.useState([]),[D,B]=P.useState(!1),[se,oe]=P.useState(!1),[Ve,He]=P.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),K=P.useRef(null),We=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),N=P.useRef(null),L=P.useRef(!1),H=P.useCallback(M=>{C(V=>{var ee;return(ee=V.find(de=>de.id===M.id))!=null&&ee.delete||nt.dismiss(M.id),V.filter(({id:de})=>de!==M.id)})},[]);return P.useEffect(()=>nt.subscribe(M=>{if(M.dismiss){const V=T.map(ee=>ee.id===M.id?{...ee,delete:!0}:ee);requestAnimationFrame(()=>{C(V)});return}setTimeout(()=>{Aw.flushSync(()=>{C(V=>{const ee=V.findIndex(de=>de.id===M.id);return ee!==-1?[...V.slice(0,ee),{...V[ee],...M},...V.slice(ee+1)]:[M,...V]})})})}),[T]),P.useEffect(()=>{if(u!=="system"){He(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?He("dark"):He("light")),typeof window>"u")return;const M=window.matchMedia("(prefers-color-scheme: dark)");try{M.addEventListener("change",({matches:V})=>{He(V?"dark":"light")})}catch{M.addListener(({matches:ee})=>{try{He(ee?"dark":"light")}catch(de){console.error(de)}})}},[u]),P.useEffect(()=>{T.length<=1&&B(!1)},[T]),P.useEffect(()=>{const M=V=>{var ee;if(s.every(Z=>V[Z]||V.code===Z)){var Ce;B(!0),(Ce=K.current)==null||Ce.focus()}V.code==="Escape"&&(document.activeElement===K.current||(ee=K.current)!=null&&ee.contains(document.activeElement))&&B(!1)};return document.addEventListener("keydown",M),()=>document.removeEventListener("keydown",M)},[s]),P.useEffect(()=>{if(K.current)return()=>{N.current&&(N.current.focus({preventScroll:!0}),N.current=null,L.current=!1)}},[K.current]),P.createElement("section",{ref:n,"aria-label":`${_} ${We}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},k.map((M,V)=>{var ee;const[de,Ce]=M.split("-");return T.length?P.createElement("ol",{key:M,dir:p==="auto"?Bp():p,tabIndex:-1,ref:K,className:l,"data-sonner-toaster":!0,"data-sonner-theme":Ve,"data-y-position":de,"data-lifted":D&&T.length>1&&!o,"data-x-position":Ce,style:{"--front-toast-height":`${((ee=R[0])==null?void 0:ee.height)||0}px`,"--width":`${jT}px`,"--gap":`${h}px`,...v,...MT(c,d)},onBlur:Z=>{L.current&&!Z.currentTarget.contains(Z.relatedTarget)&&(L.current=!1,N.current&&(N.current.focus({preventScroll:!0}),N.current=null))},onFocus:Z=>{Z.target instanceof HTMLElement&&Z.target.dataset.dismissible==="false"||L.current||(L.current=!0,N.current=Z.relatedTarget)},onMouseEnter:()=>B(!0),onMouseMove:()=>B(!0),onMouseLeave:()=>{se||B(!1)},onDragEnd:()=>B(!1),onPointerDown:Z=>{Z.target instanceof HTMLElement&&Z.target.dataset.dismissible==="false"||oe(!0)},onPointerUp:()=>oe(!1)},T.filter(Z=>!Z.position&&V===0||Z.position===M).map((Z,Ze)=>{var mn,An;return P.createElement(DT,{key:Z.id,icons:g,index:Ze,toast:Z,defaultRichColors:f,duration:(mn=x==null?void 0:x.duration)!=null?mn:m,className:x==null?void 0:x.className,descriptionClassName:x==null?void 0:x.descriptionClassName,invert:r,visibleToasts:w,closeButton:(An=x==null?void 0:x.closeButton)!=null?An:a,interacting:se,position:M,style:x==null?void 0:x.style,unstyled:x==null?void 0:x.unstyled,classNames:x==null?void 0:x.classNames,cancelButtonStyle:x==null?void 0:x.cancelButtonStyle,actionButtonStyle:x==null?void 0:x.actionButtonStyle,closeButtonAriaLabel:x==null?void 0:x.closeButtonAriaLabel,removeToast:H,toasts:T.filter(jn=>jn.position==Z.position),heights:R.filter(jn=>jn.position==Z.position),setHeights:I,expandByDefault:o,gap:h,expanded:D,swipeDirections:t.swipeDirections})})):null}))});function BT(e){return Array.isArray(e)&&e[0].field!==void 0}const UT=(e,t)=>{var n;if(BT(e)){for(const r of e)(n=t==null?void 0:t.form)==null||n.setFieldError(r.field,r.message);return}if(e&&e.message){t!=null&&t.noToast||Mp.error(e.message);return}if(e&&e.error){t!=null&&t.noToast||Mp.error(e.error);return}};function VT(e,t,n){let r=n;r||(r=Object.keys(e));for(let i of r){if(Array.isArray(e[i])&&Array.isArray(t[i])){if(e[i].length!==t[i].length)return!1;for(let s=0;s<e[i].length;s++)if(e[i][s]!==t[i][s])return!1;continue}if(e[i]!==t[i])return!1}return!0}function HT({id:e,text:t,required:n,className:r,noMargin:i}){return t?b.jsxs("label",{htmlFor:e,className:qt(r,{"lc-mb-2":!i},"lc-inline-block lc-text-base lc-font-medium"),children:[t," ",n&&b.jsx("span",{className:"lc-text-red-500",children:"*"})]}):null}const xu={sm:"lc-px-3 lc-py-1 lc-text-xs",md:"lc-px-4 lc-py-2 lc-text-sm",lg:"lc-px-5 lc-py-3 lc-text-15"};function qc({id:e,label:t,suffix:n,prefix:r,size:i="md",type:s="text",noMargin:o=!1,required:a=!1,error:l,ariaDescribedBy:c,className:d,ariaInvalid:u,ariaLabel:f,autoFocus:m,...v}){return b.jsxs("div",{className:qt({"lc-mb-3":!o},d),children:[b.jsx(HT,{id:e,text:t,required:a}),b.jsxs("div",{className:"lc-flex lc-items-center",children:[r&&b.jsx("span",{className:qt("lc-inline-block lc-border lc-border-r-0 lc-border-slate-200 lc-bg-slate-100 lc-rounded-l-md",xu[i],{"!lc-border-red-500":!!l}),children:r}),b.jsx("input",{id:e,className:qt("lc-border lc-rounded-md lc-block lc-text-base lc-py-2 lc-px-4 lc-w-full lc-border-slate-200 focus:lc-outline-none focus:lc-border-custom-500 disabled:lc-bg-slate-100 disabled:lc-border-slate-300 disabled:lc-text-slate-500 placeholder:lc-text-slate-400",xu[i],{"lc-rounded-l-none":!!r,"lc-rounded-r-none":!!n,"!lc-border-red-500 !lc-text-red-500":!!l}),type:s,required:a,"aria-describedby":c,"aria-invalid":u,"aria-label":f,...v}),n&&b.jsx("span",{className:qt("lc-inline-block lc-border lc-border-l-0 lc-border-slate-200 lc-bg-slate-100 lc-rounded-r-md",xu[i],{"!lc-border-red-500":!!l}),children:n})]}),!!l&&b.jsx("p",{className:"lc-mt-1 lc-text-sm lc-text-red-500",children:l})]})}const Up=e=>{const t=document.cookie.split(";").find(n=>n.trim().startsWith(`${e}=`));return t?t.split("=")[1]:""},Vp=e=>{const[t,n]=S.useState(Up(e));return S.useEffect(()=>{n(Up(e))},[e]),t},Hp=(e,t)=>{document.cookie=`${e}=${t}`},Xg=S.createContext({}),Zg=()=>`${window.location.pathname}_$$_${document.title}`,WT=()=>{const e=localStorage.getItem("lc-page");return!e||e===""?"/":Zg()},QT=()=>{const e=localStorage.getItem("lc-p-history");if(!e||e==="")return[];try{return JSON.parse(e)}catch{return[]}};function qT({children:e}){const[t,n]=S.useState("/"),[r,i]=S.useState(QT());function s(){i([]),localStorage.removeItem("lc-p-history")}const o=a=>{n(a),i(l=>[...new Set([...l,a])]),localStorage.setItem("lc-page",a),localStorage.setItem("lc-p-history",JSON.stringify(r))};return S.useEffect(()=>{o(Zg())},[]),b.jsx(Xg.Provider,{value:{page:t,setPage:o,history:r,clearHistory:s},children:e})}function vd(){return S.useContext(Xg)}const KT=yg({name:Dc().required("Name is required"),email:Dc().email("Invalid email").required("Email is required")}),YT={email:"",name:""};function GT({onOk:e,savedEmail:t,savedName:n,clientId:r}){const i=vd(),s=YE(),o=hT({init:{email:t||"",name:n||""},schema:KT,action:async l=>{const[c,d]=await s.mutateAsync({...l,history:i.history,client_id:r});if(yy(d)){i.clearHistory(),Hp("email",l.email),Hp("name",l.name),e==null||e();return}UT(c,{form:o})}}),a=!VT(YT,o.values);return b.jsxs("form",{className:"lc-grid lc-grid-cols-1 lc-gap-4",onSubmit:l=>{l.preventDefault(),o.handleSubmit()},children:[b.jsx(qc,{id:"name",name:"name",value:o.values.name,onChange:o.handleChange,onBlur:o.handleBlur,placeholder:"Adınız, ör: John Doe",error:o.errors.name,ariaInvalid:o.errors.name?!0:void 0,required:!0,noMargin:!0}),b.jsx(qc,{id:"email",name:"email",value:o.values.email,onChange:o.handleChange,onBlur:o.handleBlur,placeholder:"Email, ör: john@doe.com",error:o.errors.email,ariaInvalid:o.errors.email?!0:void 0,required:!0,noMargin:!0}),b.jsx(Gs,{kind:"soft",type:"submit",disabled:!a,children:"Sohbet Oluştur"})]})}function XT({image_url:e,name:t,size:n="lc-size-9"}){return e?b.jsx("img",{src:e,alt:t,className:qt("lc-rounded-md",n)}):b.jsx("div",{className:"lc-flex lc-items-center lc-justify-center lc-gap-1",children:b.jsx(ut.Website,{className:qt("lc-text-slate-500",n)})})}const Jg=(e,t,n)=>{const r=typeof window<"u"?window:void 0;S.useEffect(()=>(r.addEventListener(e,t),()=>{r.removeEventListener(e,t,!1)}),[e,t,r])};function ZT(){const e=vd(),t=S.useCallback(()=>{const n=window.location.pathname;n!==e.page&&e.setPage(n)},[e.page]);return Jg("popstate",t),null}function JT(){const[e,t]=S.useState(!1),n=uo(),r=vd(),i=S.useCallback(()=>{const s=window.location.pathname;if(s!==r.page){if(n){n.emit(fn.PageChange,{page:s});return}r.setPage(s)}},[n,r.page]);return Jg("popstate",i),S.useEffect(()=>{if(e||!n)return;const s=setTimeout(()=>{WT()!==r.page&&(n.emit(fn.PageChange,{page:r.page}),t(!0))},1e3);return()=>{clearTimeout(s)}},[n,r.page,e]),null}function eO({children:e}){const{widget:t}=Ji();return t?b.jsxs("section",{className:"lc-border lc-h-full lc-w-full lc-rounded-md lc-p-4 lc-relative",children:[b.jsx("div",{className:"-lc-z-10 lc-h-52 lc-bg-zink-600 lc-absolute lc-top-0 lc-left-0 lc-w-full lc-rounded-t-md lc-flex lc-flex-col lc-gap-4 lc-items-center lc-justify-center"}),e]}):null}function tO(){return ZT(),null}function nO(){const{widget:e}=Ji(),[t,n]=S.useState(!0),r=Vp("email"),i=Vp("name"),s=ed();return!e||(S.useEffect(()=>{GE(e.client_id).then(([o,a])=>{yy(a)&&s.push("chat")}).finally(()=>{n(!1)})},[]),t)?null:b.jsxs(b.Fragment,{children:[b.jsx(og,{children:b.jsxs(eO,{children:[b.jsxs("div",{className:"lc-flex lc-flex-col lc-gap-3 lc-items-center lc-justify-center lc-h-52",children:[b.jsx(XT,{name:e.name,image_url:e.image_url,size:"lc-size-24"}),b.jsx("div",{className:"lc-text-white lc-text-lg lc-font-bold lc-ml-2",children:e.name})]}),b.jsx(GT,{clientId:e.client_id,savedEmail:r,savedName:i,onOk:()=>{s.push("chat")}})]})}),b.jsx(tO,{})]})}const rO=[{path:"/",component:nO,name:"registration"}];function iO({name:e,avatar:t,className:n="lc-text-neutral-500"}){return b.jsxs("div",{className:"lc-flex lc-gap-2 lc-items-center",children:[b.jsx("div",{className:"lc-min-w-max",children:b.jsxs("span",{children:[t&&b.jsx("img",{className:"lc-size-10 lc-rounded-full",src:t,"aria-label":e}),!t&&b.jsx("div",{className:"lc-size-10 lc-rounded-full lc-bg-neutral-200"})]})}),b.jsx("div",{className:"lc-flex lc-flex-col",children:b.jsx("span",{className:qt("lc-line-clamp-1",n),children:e})})]})}function sO(e,t){let n,r=0;return function(...s){r++;const o=r;clearTimeout(n),n=setTimeout(()=>{o===r&&e(...s)},t)}}function oO({onNewMessage:e}){const t=uo(),[n,r]=S.useState(""),i=()=>{t==null||t.emit(fn.MessageCreate,{content:n},a=>{r(""),e(a),s("")})},s=a=>{t==null||t.emit(fn.MessageTyping,{content:a})},o=sO(s,300);return b.jsxs("form",{className:"lc-border-t lc-p-2 lc-flex lc-items-center lc-gap-2",onSubmit:a=>{a.preventDefault(),i(),a.currentTarget.reset()},children:[b.jsx("div",{className:"lc-grow lc-relative",children:b.jsx(qc,{id:"message",className:"lc-grow",noMargin:!0,onChange:a=>{r(a.target.value),o(a.target.value)},placeholder:"Bir mesaj yazın"})}),b.jsx("div",{className:"lc-flex lc-items-center lc-justify-center lc-h-full",children:b.jsx(Gs,{className:"lc-rounded-md",type:"submit",children:"Gönder"})})]})}var Ct=(e=>(e.Customer="customer",e.User="user",e.System="system",e.Activity="activity",e))(Ct||{});function aO({messages:e,isTyping:t}){const n=S.useRef(null),r=S.useRef(null),[i,s]=S.useState(!0),o=()=>{var l;(l=n.current)==null||l.scrollIntoView({behavior:"smooth"})},a=()=>{if(r.current){const{scrollTop:l,scrollHeight:c,clientHeight:d}=r.current,u=c-l<=d+10;s(u)}};return S.useEffect(()=>{i&&o()},[e,i]),b.jsxs("section",{onScroll:a,ref:r,className:"lc-flex lc-flex-col lc-gap-2 lc-w-full lc-h-full lc-grow lc-pt-4 lc-px-4 lc-overflow-y-auto",style:{height:"calc(100vh - 122px)"},children:[e.map((l,c)=>b.jsxs("div",{className:qt("lc-flex lc-w-full lc-items-center lc-break-all",{"lc-justify-end":l.sender_type===Ct.Customer,"lc-justify-start":l.sender_type===Ct.User,"lc-justify-center":l.sender_type===Ct.System||l.sender_type===Ct.Activity}),children:[l.sender_type===Ct.System&&b.jsx(b.Fragment,{children:l.content}),[Ct.Customer,Ct.User].includes(l.sender_type)&&b.jsx("div",{className:qt("lc-border lc-rounded-md lc-px-2 lc-py-1",{"lc-bg-blue-500 lc-text-white":l.sender_type===Ct.Customer,"lc-bg-zink-500 lc-text-white":l.sender_type===Ct.User}),children:l.content}),l.sender_type===Ct.Activity&&(l.content.split("_").length===3?b.jsxs("div",{className:"lc-border lc-rounded-md lc-px-2 lc-py-1 lc-text-xs",children:[l.content.split("_")[2]," odaya katıldı"]}):l.content),Ct.System===l.sender_type&&b.jsx("div",{className:"lc-text-xs lc-text-neutral-400",children:l.created_at.toLocaleString()})]},l.id||c)),t&&b.jsx("div",{className:"lc-flex lc-w-full lc-items-center lc-justify-end",children:b.jsx("div",{className:"lc-h-full lc-flex lc-items-center",children:b.jsx(ut.MessageTyping,{})})}),!i&&b.jsx("div",{className:"lc-fixed lc-bottom-[7.5rem] lc-right-16",children:b.jsx(Gs,{type:"button",className:"lc-size-10 lc-flex lc-items-center lc-justify-center lc-!p-0",onClick:()=>{var l,c;(c=r.current)==null||c.scrollTo({top:(l=r.current)==null?void 0:l.scrollHeight,behavior:"smooth"})},children:b.jsx(ut.ArrowDown,{className:"lc-size-5"})})}),b.jsx("div",{ref:n})]})}function lO({children:e}){const{widget:t}=Ji();return t?b.jsx("section",{className:"lc-border lc-h-full lc-w-full lc-rounded-md lc-relative",children:e}):null}function uO({children:e}){const t=uo();return S.useEffect(()=>{t&&t.connect()},[]),!t||!t.connected?null:e}function cO(){const{widget:e,setOpen:t}=Ji(),n=uo(),r=ed(),[i,s]=S.useState(null),[o,a]=S.useState([]),[l,c]=S.useState(!1),[d,u]=S.useState(!1),[f,m]=S.useState([]),v=()=>{n==null||n.emit(fn.ChatClose,{}),t(!1),s(null),a([]),m([]),Ma(e.client_id).then(()=>{r.push("registration")})};S.useEffect(()=>{n==null||n.emit(fn.ChatView,{},x=>{if(x===null){t(!1),Ma(e.client_id),r.push("registration");return}s(x)})},[]);const w=S.useCallback(x=>{a([...o,x])},[o]);return S.useEffect(()=>{if(n)return n.on(Qt.MessageAgentCreate,x=>{const p={content:x.content,created_at:x.created_at,files:x.files,id:x._id,sender_type:x.sender_type,answers:x.answers,reply_id:x.reply_id};if(f.length>0){m(h=>[...h,p]);return}x.is_shortcut?m([p]):w(p)}),n.on(Qt.ChatUserAssignee,x=>{s({...i,agent_name:x.name,agent_avatar:x.avatar,is_uploadable:(i==null?void 0:i.is_uploadable)??!1})}),n.on(Qt.MessageAgentTyping,()=>{c(!0)}),()=>{n.off(Qt.MessageAgentCreate),n.off(Qt.ChatUserAssignee),n.off(Qt.MessageAgentTyping)}},[w]),S.useEffect(()=>{n&&n.emit(fn.MessageList,{},x=>{a(x)})},[]),S.useEffect(()=>{const x=setTimeout(()=>{c(!1)},1e3);return()=>clearTimeout(x)},[l]),S.useEffect(()=>{if(!e||f.length===0)return;const x=(e.writing_timeout||650)*f[0].content.split(" ").length,p=setTimeout(()=>{w(f[0]),m(f.slice(1))},x);return()=>clearTimeout(p)},[f,e]),i?b.jsxs(b.Fragment,{children:[d&&b.jsx("div",{className:"lc-absolute lc-top-0 lc-left-0 lc-backdrop-blur-sm lc-bg-slate-950/20 lc-z-50 lc-h-full lc-w-full lc-rounded-md",children:b.jsx("div",{className:"lc-flex lc-flex-col lc-items-center lc-justify-center lc-h-full lc-mx-5",children:b.jsxs("div",{className:"lc-bg-white lc-p-4 lc-rounded-md",children:[b.jsx("div",{className:"lc-text-lg lc-font-semibold lc-text-neutral-900",children:"Sohbeti kapatmak istediğinize emin misiniz?"}),b.jsxs("div",{className:"lc-flex lc-justify-between lc-mt-4",children:[b.jsx("button",{type:"button",className:"lc-bg-red-500 lc-text-white lc-px-4 lc-py-2 lc-rounded-md",onClick:v,children:"Evet"}),b.jsx("button",{type:"button",className:"lc-bg-neutral-200 lc-text-neutral-900 lc-px-4 lc-py-2 lc-rounded-md",onClick:()=>u(!1),children:"Vazgeç"})]})]})})}),b.jsxs("section",{className:"lc-bg-white lc-h-full lc-w-full lc-rounded-md lc-border lc-flex lc-flex-col",children:[b.jsxs("header",{className:"lc-border-b lc-p-4 lc-bg-zink-600 lc-rounded-t-md lc-flex lc-justify-between lc-items-center",children:[i!=null&&i.agent_name?b.jsx(iO,{name:i.agent_name,avatar:i.agent_avatar,className:"lc-text-neutral-300"}):b.jsx("div",{className:"lc-text-white",children:"Chat with us"}),b.jsx("button",{type:"button",className:"lc-text-white",onClick:()=>u(!0),children:b.jsx(ut.X,{className:"lc-w-6 lc-h-6 lc-cursor-pointer"})})]}),b.jsx(aO,{messages:o,isTyping:l||f.length>0}),b.jsx(oO,{onNewMessage:x=>{w(x)}})]})]}):null}function fO(){return JT(),null}function dO(){return b.jsxs(uO,{children:[b.jsx(og,{defaultOpen:!0,children:b.jsx(lO,{children:b.jsx(cO,{})})}),b.jsx(fO,{})]})}const hO=[{path:"/chat",component:dO,name:"chat"}],ev=[...hO],tv=[...rO],pO=[...ev,...tv];function mO(){return b.jsx(ES,{future:{v7_startTransition:!0},children:b.jsxs(bS,{children:[ev.map((e,t)=>b.jsx(Tc,{path:e.path,element:b.jsx(e.component,{})},t)),tv.map((e,t)=>b.jsx(Tc,{path:e.path,element:b.jsx(e.component,{})},t))]})})}function yO({link_id:e}){const{setWidget:t,widget:n}=Ji(),{data:r,isLoading:i}=Tx(e);return S.useEffect(()=>{Array.isArray(r)&&Rx(r[0])&&t(r[0])},[r]),i||!n?null:b.jsx(qT,{children:b.jsx(KE,{children:b.jsx(mO,{})})})}const gO=new lx;function vO({container:e,link_id:t}){py(e).render(b.jsxs(hx,{client:gO,children:[b.jsx(yO,{link_id:t}),b.jsx(zT,{richColors:!0,style:{zIndex:999999},position:"bottom-right"})]}))}window.widget=vO});export default wO();