@botpress/webchat 1.0.6 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(dn,j){typeof exports=="object"&&typeof module<"u"?j(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],j):(dn=typeof globalThis<"u"?globalThis:dn||self,j(dn.Webchat={},dn.React))})(this,function(dn,j){"use strict";var HY=Object.defineProperty;var qY=(dn,j,Sc)=>j in dn?HY(dn,j,{enumerable:!0,configurable:!0,writable:!0,value:Sc}):dn[j]=Sc;var Gs=(dn,j,Sc)=>(qY(dn,typeof j!="symbol"?j+"":j,Sc),Sc);function Sc(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const Z=Sc(j);var Ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function a6(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var r=function a(){if(this instanceof a){var s=[null];s.push.apply(s,arguments);var c=Function.bind.apply(n,s);return new c}return n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,s.get?s:{enumerable:!0,get:function(){return e[a]}})}),r}var hS={exports:{}},_h={};/**
1
+ (function(dn,j){typeof exports=="object"&&typeof module<"u"?j(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],j):(dn=typeof globalThis<"u"?globalThis:dn||self,j(dn.Webchat={},dn.React))})(this,function(dn,j){"use strict";var qY=Object.defineProperty;var WY=(dn,j,Sc)=>j in dn?qY(dn,j,{enumerable:!0,configurable:!0,writable:!0,value:Sc}):dn[j]=Sc;var Gs=(dn,j,Sc)=>(WY(dn,typeof j!="symbol"?j+"":j,Sc),Sc);function Sc(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const Z=Sc(j);var Ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o6(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var r=function a(){if(this instanceof a){var s=[null];s.push.apply(s,arguments);var c=Function.bind.apply(n,s);return new c}return n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,s.get?s:{enumerable:!0,get:function(){return e[a]}})}),r}var hS={exports:{}},_h={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
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 ik;function o6(){if(ik)return _h;ik=1;var e=j,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function f(h,v,y){var S,E={},C=null,x=null;y!==void 0&&(C=""+y),v.key!==void 0&&(C=""+v.key),v.ref!==void 0&&(x=v.ref);for(S in v)a.call(v,S)&&!c.hasOwnProperty(S)&&(E[S]=v[S]);if(h&&h.defaultProps)for(S in v=h.defaultProps,v)E[S]===void 0&&(E[S]=v[S]);return{$$typeof:n,type:h,key:C,ref:x,props:E,_owner:s.current}}return _h.Fragment=r,_h.jsx=f,_h.jsxs=f,_h}var Th={};/**
9
+ */var ik;function l6(){if(ik)return _h;ik=1;var e=j,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function f(h,v,y){var S,E={},C=null,x=null;y!==void 0&&(C=""+y),v.key!==void 0&&(C=""+v.key),v.ref!==void 0&&(x=v.ref);for(S in v)a.call(v,S)&&!c.hasOwnProperty(S)&&(E[S]=v[S]);if(h&&h.defaultProps)for(S in v=h.defaultProps,v)E[S]===void 0&&(E[S]=v[S]);return{$$typeof:n,type:h,key:C,ref:x,props:E,_owner:s.current}}return _h.Fragment=r,_h.jsx=f,_h.jsxs=f,_h}var Th={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,7 +14,7 @@
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 ak;function l6(){return ak||(ak=1,process.env.NODE_ENV!=="production"&&function(){var e=j,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),h=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),R=Symbol.iterator,T="@@iterator";function D(W){if(W===null||typeof W!="object")return null;var Pe=R&&W[R]||W[T];return typeof Pe=="function"?Pe:null}var M=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function I(W){{for(var Pe=arguments.length,Ke=new Array(Pe>1?Pe-1:0),St=1;St<Pe;St++)Ke[St-1]=arguments[St];N("error",W,Ke)}}function N(W,Pe,Ke){{var St=M.ReactDebugCurrentFrame,Bt=St.getStackAddendum();Bt!==""&&(Pe+="%s",Ke=Ke.concat([Bt]));var ln=Ke.map(function(Vt){return String(Vt)});ln.unshift("Warning: "+Pe),Function.prototype.apply.call(console[W],console,ln)}}var B=!1,F=!1,$=!1,H=!1,Y=!1,ne;ne=Symbol.for("react.module.reference");function ve(W){return!!(typeof W=="string"||typeof W=="function"||W===a||W===c||Y||W===s||W===y||W===S||H||W===x||B||F||$||typeof W=="object"&&W!==null&&(W.$$typeof===C||W.$$typeof===E||W.$$typeof===f||W.$$typeof===h||W.$$typeof===v||W.$$typeof===ne||W.getModuleId!==void 0))}function ee(W,Pe,Ke){var St=W.displayName;if(St)return St;var Bt=Pe.displayName||Pe.name||"";return Bt!==""?Ke+"("+Bt+")":Ke}function oe(W){return W.displayName||"Context"}function J(W){if(W==null)return null;if(typeof W.tag=="number"&&I("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof W=="function")return W.displayName||W.name||null;if(typeof W=="string")return W;switch(W){case a:return"Fragment";case r:return"Portal";case c:return"Profiler";case s:return"StrictMode";case y:return"Suspense";case S:return"SuspenseList"}if(typeof W=="object")switch(W.$$typeof){case h:var Pe=W;return oe(Pe)+".Consumer";case f:var Ke=W;return oe(Ke._context)+".Provider";case v:return ee(W,W.render,"ForwardRef");case E:var St=W.displayName||null;return St!==null?St:J(W.type)||"Memo";case C:{var Bt=W,ln=Bt._payload,Vt=Bt._init;try{return J(Vt(ln))}catch{return null}}}return null}var pe=Object.assign,ke=0,xe,Ie,se,Te,L,te,ye;function U(){}U.__reactDisabledLog=!0;function _e(){{if(ke===0){xe=console.log,Ie=console.info,se=console.warn,Te=console.error,L=console.group,te=console.groupCollapsed,ye=console.groupEnd;var W={configurable:!0,enumerable:!0,value:U,writable:!0};Object.defineProperties(console,{info:W,log:W,warn:W,error:W,group:W,groupCollapsed:W,groupEnd:W})}ke++}}function We(){{if(ke--,ke===0){var W={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:pe({},W,{value:xe}),info:pe({},W,{value:Ie}),warn:pe({},W,{value:se}),error:pe({},W,{value:Te}),group:pe({},W,{value:L}),groupCollapsed:pe({},W,{value:te}),groupEnd:pe({},W,{value:ye})})}ke<0&&I("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Re=M.ReactCurrentDispatcher,Oe;function $e(W,Pe,Ke){{if(Oe===void 0)try{throw Error()}catch(Bt){var St=Bt.stack.trim().match(/\n( *(at )?)/);Oe=St&&St[1]||""}return`
17
+ */var ak;function s6(){return ak||(ak=1,process.env.NODE_ENV!=="production"&&function(){var e=j,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),h=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),R=Symbol.iterator,T="@@iterator";function D(W){if(W===null||typeof W!="object")return null;var Pe=R&&W[R]||W[T];return typeof Pe=="function"?Pe:null}var M=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function I(W){{for(var Pe=arguments.length,Ke=new Array(Pe>1?Pe-1:0),St=1;St<Pe;St++)Ke[St-1]=arguments[St];N("error",W,Ke)}}function N(W,Pe,Ke){{var St=M.ReactDebugCurrentFrame,Bt=St.getStackAddendum();Bt!==""&&(Pe+="%s",Ke=Ke.concat([Bt]));var ln=Ke.map(function(Vt){return String(Vt)});ln.unshift("Warning: "+Pe),Function.prototype.apply.call(console[W],console,ln)}}var B=!1,F=!1,$=!1,H=!1,Y=!1,ne;ne=Symbol.for("react.module.reference");function ve(W){return!!(typeof W=="string"||typeof W=="function"||W===a||W===c||Y||W===s||W===y||W===S||H||W===x||B||F||$||typeof W=="object"&&W!==null&&(W.$$typeof===C||W.$$typeof===E||W.$$typeof===f||W.$$typeof===h||W.$$typeof===v||W.$$typeof===ne||W.getModuleId!==void 0))}function ee(W,Pe,Ke){var St=W.displayName;if(St)return St;var Bt=Pe.displayName||Pe.name||"";return Bt!==""?Ke+"("+Bt+")":Ke}function oe(W){return W.displayName||"Context"}function J(W){if(W==null)return null;if(typeof W.tag=="number"&&I("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof W=="function")return W.displayName||W.name||null;if(typeof W=="string")return W;switch(W){case a:return"Fragment";case r:return"Portal";case c:return"Profiler";case s:return"StrictMode";case y:return"Suspense";case S:return"SuspenseList"}if(typeof W=="object")switch(W.$$typeof){case h:var Pe=W;return oe(Pe)+".Consumer";case f:var Ke=W;return oe(Ke._context)+".Provider";case v:return ee(W,W.render,"ForwardRef");case E:var St=W.displayName||null;return St!==null?St:J(W.type)||"Memo";case C:{var Bt=W,ln=Bt._payload,Vt=Bt._init;try{return J(Vt(ln))}catch{return null}}}return null}var pe=Object.assign,ke=0,xe,Ie,se,Te,L,te,ye;function U(){}U.__reactDisabledLog=!0;function _e(){{if(ke===0){xe=console.log,Ie=console.info,se=console.warn,Te=console.error,L=console.group,te=console.groupCollapsed,ye=console.groupEnd;var W={configurable:!0,enumerable:!0,value:U,writable:!0};Object.defineProperties(console,{info:W,log:W,warn:W,error:W,group:W,groupCollapsed:W,groupEnd:W})}ke++}}function We(){{if(ke--,ke===0){var W={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:pe({},W,{value:xe}),info:pe({},W,{value:Ie}),warn:pe({},W,{value:se}),error:pe({},W,{value:Te}),group:pe({},W,{value:L}),groupCollapsed:pe({},W,{value:te}),groupEnd:pe({},W,{value:ye})})}ke<0&&I("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Re=M.ReactCurrentDispatcher,Oe;function $e(W,Pe,Ke){{if(Oe===void 0)try{throw Error()}catch(Bt){var St=Bt.stack.trim().match(/\n( *(at )?)/);Oe=St&&St[1]||""}return`
18
18
  `+Oe+W}}var Ge=!1,Ue;{var Le=typeof WeakMap=="function"?WeakMap:Map;Ue=new Le}function me(W,Pe){if(!W||Ge)return"";{var Ke=Ue.get(W);if(Ke!==void 0)return Ke}var St;Ge=!0;var Bt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ln;ln=Re.current,Re.current=null,_e();try{if(Pe){var Vt=function(){throw Error()};if(Object.defineProperty(Vt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Vt,[])}catch(un){St=un}Reflect.construct(W,[],Vt)}else{try{Vt.call()}catch(un){St=un}W.call(Vt.prototype)}}else{try{throw Error()}catch(un){St=un}W()}}catch(un){if(un&&St&&typeof un.stack=="string"){for(var xt=un.stack.split(`
19
19
  `),Dr=St.stack.split(`
20
20
  `),Un=xt.length-1,Bn=Dr.length-1;Un>=1&&Bn>=0&&xt[Un]!==Dr[Bn];)Bn--;for(;Un>=1&&Bn>=0;Un--,Bn--)if(xt[Un]!==Dr[Bn]){if(Un!==1||Bn!==1)do if(Un--,Bn--,Bn<0||xt[Un]!==Dr[Bn]){var ci=`
@@ -24,7 +24,7 @@ Check the render method of \``+W+"`."}return""}}function bu(W){{if(W!==void 0){v
24
24
 
25
25
  Check your code at `+Pe+":"+Ke+"."}return""}}var Vc={};function Ad(W){{var Pe=is();if(!Pe){var Ke=typeof W=="string"?W:W.displayName||W.name;Ke&&(Pe=`
26
26
 
27
- Check the top-level render call using <`+Ke+">.")}return Pe}}function as(W,Pe){{if(!W._store||W._store.validated||W.key!=null)return;W._store.validated=!0;var Ke=Ad(Pe);if(Vc[Ke])return;Vc[Ke]=!0;var St="";W&&W._owner&&W._owner!==tn.current&&(St=" It was passed a child from "+J(W._owner.type)+"."),Rn(W),I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Ke,St),Rn(null)}}function Su(W,Pe){{if(typeof W!="object")return;if(dr(W))for(var Ke=0;Ke<W.length;Ke++){var St=W[Ke];yu(St)&&as(St,Pe)}else if(yu(W))W._store&&(W._store.validated=!0);else if(W){var Bt=D(W);if(typeof Bt=="function"&&Bt!==W.entries)for(var ln=Bt.call(W),Vt;!(Vt=ln.next()).done;)yu(Vt.value)&&as(Vt.value,Pe)}}}function os(W){{var Pe=W.type;if(Pe==null||typeof Pe=="string")return;var Ke;if(typeof Pe=="function")Ke=Pe.propTypes;else if(typeof Pe=="object"&&(Pe.$$typeof===v||Pe.$$typeof===E))Ke=Pe.propTypes;else return;if(Ke){var St=J(Pe);ar(Ke,W.props,"prop",St,W)}else if(Pe.PropTypes!==void 0&&!Mn){Mn=!0;var Bt=J(Pe);I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Bt||"Unknown")}typeof Pe.getDefaultProps=="function"&&!Pe.getDefaultProps.isReactClassApproved&&I("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Eu(W){{for(var Pe=Object.keys(W.props),Ke=0;Ke<Pe.length;Ke++){var St=Pe[Ke];if(St!=="children"&&St!=="key"){Rn(W),I("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",St),Rn(null);break}}W.ref!==null&&(Rn(W),I("Invalid attribute `ref` supplied to `React.Fragment`."),Rn(null))}}function no(W,Pe,Ke,St,Bt,ln){{var Vt=ve(W);if(!Vt){var xt="";(W===void 0||typeof W=="object"&&W!==null&&Object.keys(W).length===0)&&(xt+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Dr=bu(Bt);Dr?xt+=Dr:xt+=is();var Un;W===null?Un="null":dr(W)?Un="array":W!==void 0&&W.$$typeof===n?(Un="<"+(J(W.type)||"Unknown")+" />",xt=" Did you accidentally export a JSX literal instead of a component?"):Un=typeof W,I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Un,xt)}var Bn=Or(W,Pe,Ke,Bt,ln);if(Bn==null)return Bn;if(Vt){var ci=Pe.children;if(ci!==void 0)if(St)if(dr(ci)){for(var fl=0;fl<ci.length;fl++)Su(ci[fl],W);Object.freeze&&Object.freeze(ci)}else I("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Su(ci,W)}return W===a?Eu(Bn):os(Bn),Bn}}function ul(W,Pe,Ke){return no(W,Pe,Ke,!0)}function Ui(W,Pe,Ke){return no(W,Pe,Ke,!1)}var Ia=Ui,cl=ul;Th.Fragment=a,Th.jsx=Ia,Th.jsxs=cl}()),Th}process.env.NODE_ENV==="production"?hS.exports=o6():hS.exports=l6();var he=hS.exports;function Xn(){return Xn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Xn.apply(this,arguments)}function mS(e,n=[]){let r=[];function a(c,f){const h=j.createContext(f),v=r.length;r=[...r,f];function y(E){const{scope:C,children:x,...R}=E,T=(C==null?void 0:C[e][v])||h,D=j.useMemo(()=>R,Object.values(R));return j.createElement(T.Provider,{value:D},x)}function S(E,C){const x=(C==null?void 0:C[e][v])||h,R=j.useContext(x);if(R)return R;if(f!==void 0)return f;throw new Error(`\`${E}\` must be used within \`${c}\``)}return y.displayName=c+"Provider",[y,S]}const s=()=>{const c=r.map(f=>j.createContext(f));return function(h){const v=(h==null?void 0:h[e])||c;return j.useMemo(()=>({[`__scope${e}`]:{...h,[e]:v}}),[h,v])}};return s.scopeName=e,[a,s6(s,...n)]}function s6(...e){const n=e[0];if(e.length===1)return n;const r=()=>{const a=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(c){const f=a.reduce((h,{useScope:v,scopeName:y})=>{const E=v(c)[`__scope${y}`];return{...h,...E}},{});return j.useMemo(()=>({[`__scope${n.scopeName}`]:f}),[f])}};return r.scopeName=n.scopeName,r}function Qs(e){const n=j.useRef(e);return j.useEffect(()=>{n.current=e}),j.useMemo(()=>(...r)=>{var a;return(a=n.current)===null||a===void 0?void 0:a.call(n,...r)},[])}const Rh=globalThis!=null&&globalThis.document?j.useLayoutEffect:()=>{};var vS={exports:{}},ea={},L0={exports:{}},gS={};/**
27
+ Check the top-level render call using <`+Ke+">.")}return Pe}}function as(W,Pe){{if(!W._store||W._store.validated||W.key!=null)return;W._store.validated=!0;var Ke=Ad(Pe);if(Vc[Ke])return;Vc[Ke]=!0;var St="";W&&W._owner&&W._owner!==tn.current&&(St=" It was passed a child from "+J(W._owner.type)+"."),Rn(W),I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Ke,St),Rn(null)}}function Su(W,Pe){{if(typeof W!="object")return;if(dr(W))for(var Ke=0;Ke<W.length;Ke++){var St=W[Ke];yu(St)&&as(St,Pe)}else if(yu(W))W._store&&(W._store.validated=!0);else if(W){var Bt=D(W);if(typeof Bt=="function"&&Bt!==W.entries)for(var ln=Bt.call(W),Vt;!(Vt=ln.next()).done;)yu(Vt.value)&&as(Vt.value,Pe)}}}function os(W){{var Pe=W.type;if(Pe==null||typeof Pe=="string")return;var Ke;if(typeof Pe=="function")Ke=Pe.propTypes;else if(typeof Pe=="object"&&(Pe.$$typeof===v||Pe.$$typeof===E))Ke=Pe.propTypes;else return;if(Ke){var St=J(Pe);ar(Ke,W.props,"prop",St,W)}else if(Pe.PropTypes!==void 0&&!Mn){Mn=!0;var Bt=J(Pe);I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Bt||"Unknown")}typeof Pe.getDefaultProps=="function"&&!Pe.getDefaultProps.isReactClassApproved&&I("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Eu(W){{for(var Pe=Object.keys(W.props),Ke=0;Ke<Pe.length;Ke++){var St=Pe[Ke];if(St!=="children"&&St!=="key"){Rn(W),I("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",St),Rn(null);break}}W.ref!==null&&(Rn(W),I("Invalid attribute `ref` supplied to `React.Fragment`."),Rn(null))}}function no(W,Pe,Ke,St,Bt,ln){{var Vt=ve(W);if(!Vt){var xt="";(W===void 0||typeof W=="object"&&W!==null&&Object.keys(W).length===0)&&(xt+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Dr=bu(Bt);Dr?xt+=Dr:xt+=is();var Un;W===null?Un="null":dr(W)?Un="array":W!==void 0&&W.$$typeof===n?(Un="<"+(J(W.type)||"Unknown")+" />",xt=" Did you accidentally export a JSX literal instead of a component?"):Un=typeof W,I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Un,xt)}var Bn=Or(W,Pe,Ke,Bt,ln);if(Bn==null)return Bn;if(Vt){var ci=Pe.children;if(ci!==void 0)if(St)if(dr(ci)){for(var fl=0;fl<ci.length;fl++)Su(ci[fl],W);Object.freeze&&Object.freeze(ci)}else I("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Su(ci,W)}return W===a?Eu(Bn):os(Bn),Bn}}function ul(W,Pe,Ke){return no(W,Pe,Ke,!0)}function Ui(W,Pe,Ke){return no(W,Pe,Ke,!1)}var Ia=Ui,cl=ul;Th.Fragment=a,Th.jsx=Ia,Th.jsxs=cl}()),Th}process.env.NODE_ENV==="production"?hS.exports=l6():hS.exports=s6();var he=hS.exports;function Xn(){return Xn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Xn.apply(this,arguments)}function mS(e,n=[]){let r=[];function a(c,f){const h=j.createContext(f),v=r.length;r=[...r,f];function y(E){const{scope:C,children:x,...R}=E,T=(C==null?void 0:C[e][v])||h,D=j.useMemo(()=>R,Object.values(R));return j.createElement(T.Provider,{value:D},x)}function S(E,C){const x=(C==null?void 0:C[e][v])||h,R=j.useContext(x);if(R)return R;if(f!==void 0)return f;throw new Error(`\`${E}\` must be used within \`${c}\``)}return y.displayName=c+"Provider",[y,S]}const s=()=>{const c=r.map(f=>j.createContext(f));return function(h){const v=(h==null?void 0:h[e])||c;return j.useMemo(()=>({[`__scope${e}`]:{...h,[e]:v}}),[h,v])}};return s.scopeName=e,[a,u6(s,...n)]}function u6(...e){const n=e[0];if(e.length===1)return n;const r=()=>{const a=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(c){const f=a.reduce((h,{useScope:v,scopeName:y})=>{const E=v(c)[`__scope${y}`];return{...h,...E}},{});return j.useMemo(()=>({[`__scope${n.scopeName}`]:f}),[f])}};return r.scopeName=n.scopeName,r}function Qs(e){const n=j.useRef(e);return j.useEffect(()=>{n.current=e}),j.useMemo(()=>(...r)=>{var a;return(a=n.current)===null||a===void 0?void 0:a.call(n,...r)},[])}const Rh=globalThis!=null&&globalThis.document?j.useLayoutEffect:()=>{};var vS={exports:{}},ea={},L0={exports:{}},gS={};/**
28
28
  * @license React
29
29
  * scheduler.production.min.js
30
30
  *
@@ -32,7 +32,7 @@ Check the top-level render call using <`+Ke+">.")}return Pe}}function as(W,Pe){{
32
32
  *
33
33
  * This source code is licensed under the MIT license found in the
34
34
  * LICENSE file in the root directory of this source tree.
35
- */var ok;function u6(){return ok||(ok=1,function(e){function n(se,Te){var L=se.length;se.push(Te);e:for(;0<L;){var te=L-1>>>1,ye=se[te];if(0<s(ye,Te))se[te]=Te,se[L]=ye,L=te;else break e}}function r(se){return se.length===0?null:se[0]}function a(se){if(se.length===0)return null;var Te=se[0],L=se.pop();if(L!==Te){se[0]=L;e:for(var te=0,ye=se.length,U=ye>>>1;te<U;){var _e=2*(te+1)-1,We=se[_e],Re=_e+1,Oe=se[Re];if(0>s(We,L))Re<ye&&0>s(Oe,We)?(se[te]=Oe,se[Re]=L,te=Re):(se[te]=We,se[_e]=L,te=_e);else if(Re<ye&&0>s(Oe,L))se[te]=Oe,se[Re]=L,te=Re;else break e}}return Te}function s(se,Te){var L=se.sortIndex-Te.sortIndex;return L!==0?L:se.id-Te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var f=Date,h=f.now();e.unstable_now=function(){return f.now()-h}}var v=[],y=[],S=1,E=null,C=3,x=!1,R=!1,T=!1,D=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function N(se){for(var Te=r(y);Te!==null;){if(Te.callback===null)a(y);else if(Te.startTime<=se)a(y),Te.sortIndex=Te.expirationTime,n(v,Te);else break;Te=r(y)}}function B(se){if(T=!1,N(se),!R)if(r(v)!==null)R=!0,xe(F);else{var Te=r(y);Te!==null&&Ie(B,Te.startTime-se)}}function F(se,Te){R=!1,T&&(T=!1,M(Y),Y=-1),x=!0;var L=C;try{for(N(Te),E=r(v);E!==null&&(!(E.expirationTime>Te)||se&&!ee());){var te=E.callback;if(typeof te=="function"){E.callback=null,C=E.priorityLevel;var ye=te(E.expirationTime<=Te);Te=e.unstable_now(),typeof ye=="function"?E.callback=ye:E===r(v)&&a(v),N(Te)}else a(v);E=r(v)}if(E!==null)var U=!0;else{var _e=r(y);_e!==null&&Ie(B,_e.startTime-Te),U=!1}return U}finally{E=null,C=L,x=!1}}var $=!1,H=null,Y=-1,ne=5,ve=-1;function ee(){return!(e.unstable_now()-ve<ne)}function oe(){if(H!==null){var se=e.unstable_now();ve=se;var Te=!0;try{Te=H(!0,se)}finally{Te?J():($=!1,H=null)}}else $=!1}var J;if(typeof I=="function")J=function(){I(oe)};else if(typeof MessageChannel<"u"){var pe=new MessageChannel,ke=pe.port2;pe.port1.onmessage=oe,J=function(){ke.postMessage(null)}}else J=function(){D(oe,0)};function xe(se){H=se,$||($=!0,J())}function Ie(se,Te){Y=D(function(){se(e.unstable_now())},Te)}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(se){se.callback=null},e.unstable_continueExecution=function(){R||x||(R=!0,xe(F))},e.unstable_forceFrameRate=function(se){0>se||125<se?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<se?Math.floor(1e3/se):5},e.unstable_getCurrentPriorityLevel=function(){return C},e.unstable_getFirstCallbackNode=function(){return r(v)},e.unstable_next=function(se){switch(C){case 1:case 2:case 3:var Te=3;break;default:Te=C}var L=C;C=Te;try{return se()}finally{C=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(se,Te){switch(se){case 1:case 2:case 3:case 4:case 5:break;default:se=3}var L=C;C=se;try{return Te()}finally{C=L}},e.unstable_scheduleCallback=function(se,Te,L){var te=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?te+L:te):L=te,se){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3}return ye=L+ye,se={id:S++,callback:Te,priorityLevel:se,startTime:L,expirationTime:ye,sortIndex:-1},L>te?(se.sortIndex=L,n(y,se),r(v)===null&&se===r(y)&&(T?(M(Y),Y=-1):T=!0,Ie(B,L-te))):(se.sortIndex=ye,n(v,se),R||x||(R=!0,xe(F))),se},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(se){var Te=C;return function(){var L=C;C=Te;try{return se.apply(this,arguments)}finally{C=L}}}}(gS)),gS}var yS={};/**
35
+ */var ok;function c6(){return ok||(ok=1,function(e){function n(se,Te){var L=se.length;se.push(Te);e:for(;0<L;){var te=L-1>>>1,ye=se[te];if(0<s(ye,Te))se[te]=Te,se[L]=ye,L=te;else break e}}function r(se){return se.length===0?null:se[0]}function a(se){if(se.length===0)return null;var Te=se[0],L=se.pop();if(L!==Te){se[0]=L;e:for(var te=0,ye=se.length,U=ye>>>1;te<U;){var _e=2*(te+1)-1,We=se[_e],Re=_e+1,Oe=se[Re];if(0>s(We,L))Re<ye&&0>s(Oe,We)?(se[te]=Oe,se[Re]=L,te=Re):(se[te]=We,se[_e]=L,te=_e);else if(Re<ye&&0>s(Oe,L))se[te]=Oe,se[Re]=L,te=Re;else break e}}return Te}function s(se,Te){var L=se.sortIndex-Te.sortIndex;return L!==0?L:se.id-Te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var f=Date,h=f.now();e.unstable_now=function(){return f.now()-h}}var v=[],y=[],S=1,E=null,C=3,x=!1,R=!1,T=!1,D=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function N(se){for(var Te=r(y);Te!==null;){if(Te.callback===null)a(y);else if(Te.startTime<=se)a(y),Te.sortIndex=Te.expirationTime,n(v,Te);else break;Te=r(y)}}function B(se){if(T=!1,N(se),!R)if(r(v)!==null)R=!0,xe(F);else{var Te=r(y);Te!==null&&Ie(B,Te.startTime-se)}}function F(se,Te){R=!1,T&&(T=!1,M(Y),Y=-1),x=!0;var L=C;try{for(N(Te),E=r(v);E!==null&&(!(E.expirationTime>Te)||se&&!ee());){var te=E.callback;if(typeof te=="function"){E.callback=null,C=E.priorityLevel;var ye=te(E.expirationTime<=Te);Te=e.unstable_now(),typeof ye=="function"?E.callback=ye:E===r(v)&&a(v),N(Te)}else a(v);E=r(v)}if(E!==null)var U=!0;else{var _e=r(y);_e!==null&&Ie(B,_e.startTime-Te),U=!1}return U}finally{E=null,C=L,x=!1}}var $=!1,H=null,Y=-1,ne=5,ve=-1;function ee(){return!(e.unstable_now()-ve<ne)}function oe(){if(H!==null){var se=e.unstable_now();ve=se;var Te=!0;try{Te=H(!0,se)}finally{Te?J():($=!1,H=null)}}else $=!1}var J;if(typeof I=="function")J=function(){I(oe)};else if(typeof MessageChannel<"u"){var pe=new MessageChannel,ke=pe.port2;pe.port1.onmessage=oe,J=function(){ke.postMessage(null)}}else J=function(){D(oe,0)};function xe(se){H=se,$||($=!0,J())}function Ie(se,Te){Y=D(function(){se(e.unstable_now())},Te)}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(se){se.callback=null},e.unstable_continueExecution=function(){R||x||(R=!0,xe(F))},e.unstable_forceFrameRate=function(se){0>se||125<se?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<se?Math.floor(1e3/se):5},e.unstable_getCurrentPriorityLevel=function(){return C},e.unstable_getFirstCallbackNode=function(){return r(v)},e.unstable_next=function(se){switch(C){case 1:case 2:case 3:var Te=3;break;default:Te=C}var L=C;C=Te;try{return se()}finally{C=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(se,Te){switch(se){case 1:case 2:case 3:case 4:case 5:break;default:se=3}var L=C;C=se;try{return Te()}finally{C=L}},e.unstable_scheduleCallback=function(se,Te,L){var te=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?te+L:te):L=te,se){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3}return ye=L+ye,se={id:S++,callback:Te,priorityLevel:se,startTime:L,expirationTime:ye,sortIndex:-1},L>te?(se.sortIndex=L,n(y,se),r(v)===null&&se===r(y)&&(T?(M(Y),Y=-1):T=!0,Ie(B,L-te))):(se.sortIndex=ye,n(v,se),R||x||(R=!0,xe(F))),se},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(se){var Te=C;return function(){var L=C;C=Te;try{return se.apply(this,arguments)}finally{C=L}}}}(gS)),gS}var yS={};/**
36
36
  * @license React
37
37
  * scheduler.development.js
38
38
  *
@@ -40,7 +40,7 @@ Check the top-level render call using <`+Ke+">.")}return Pe}}function as(W,Pe){{
40
40
  *
41
41
  * This source code is licensed under the MIT license found in the
42
42
  * LICENSE file in the root directory of this source tree.
43
- */var lk;function c6(){return lk||(lk=1,function(e){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=!1,r=!1,a=5;function s(De,it){var Ot=De.length;De.push(it),h(De,it,Ot)}function c(De){return De.length===0?null:De[0]}function f(De){if(De.length===0)return null;var it=De[0],Ot=De.pop();return Ot!==it&&(De[0]=Ot,v(De,Ot,0)),it}function h(De,it,Ot){for(var Yt=Ot;Yt>0;){var yn=Yt-1>>>1,$n=De[yn];if(y($n,it)>0)De[yn]=it,De[Yt]=$n,Yt=yn;else return}}function v(De,it,Ot){for(var Yt=Ot,yn=De.length,$n=yn>>>1;Yt<$n;){var It=(Yt+1)*2-1,Or=De[It],tn=It+1,$i=De[tn];if(y(Or,it)<0)tn<yn&&y($i,Or)<0?(De[Yt]=$i,De[tn]=it,Yt=tn):(De[Yt]=Or,De[It]=it,Yt=It);else if(tn<yn&&y($i,it)<0)De[Yt]=$i,De[tn]=it,Yt=tn;else return}}function y(De,it){var Ot=De.sortIndex-it.sortIndex;return Ot!==0?Ot:De.id-it.id}var S=1,E=2,C=3,x=4,R=5;function T(De,it){}var D=typeof performance=="object"&&typeof performance.now=="function";if(D){var M=performance;e.unstable_now=function(){return M.now()}}else{var I=Date,N=I.now();e.unstable_now=function(){return I.now()-N}}var B=1073741823,F=-1,$=250,H=5e3,Y=1e4,ne=B,ve=[],ee=[],oe=1,J=null,pe=C,ke=!1,xe=!1,Ie=!1,se=typeof setTimeout=="function"?setTimeout:null,Te=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function te(De){for(var it=c(ee);it!==null;){if(it.callback===null)f(ee);else if(it.startTime<=De)f(ee),it.sortIndex=it.expirationTime,s(ve,it);else return;it=c(ee)}}function ye(De){if(Ie=!1,te(De),!xe)if(c(ve)!==null)xe=!0,Ln(U);else{var it=c(ee);it!==null&&fe(ye,it.startTime-De)}}function U(De,it){xe=!1,Ie&&(Ie=!1,Ne()),ke=!0;var Ot=pe;try{var Yt;if(!r)return _e(De,it)}finally{J=null,pe=Ot,ke=!1}}function _e(De,it){var Ot=it;for(te(Ot),J=c(ve);J!==null&&!n&&!(J.expirationTime>Ot&&(!De||Tn()));){var Yt=J.callback;if(typeof Yt=="function"){J.callback=null,pe=J.priorityLevel;var yn=J.expirationTime<=Ot,$n=Yt(yn);Ot=e.unstable_now(),typeof $n=="function"?J.callback=$n:J===c(ve)&&f(ve),te(Ot)}else f(ve);J=c(ve)}if(J!==null)return!0;var It=c(ee);return It!==null&&fe(ye,It.startTime-Ot),!1}function We(De,it){switch(De){case S:case E:case C:case x:case R:break;default:De=C}var Ot=pe;pe=De;try{return it()}finally{pe=Ot}}function Re(De){var it;switch(pe){case S:case E:case C:it=C;break;default:it=pe;break}var Ot=pe;pe=it;try{return De()}finally{pe=Ot}}function Oe(De){var it=pe;return function(){var Ot=pe;pe=it;try{return De.apply(this,arguments)}finally{pe=Ot}}}function $e(De,it,Ot){var Yt=e.unstable_now(),yn;if(typeof Ot=="object"&&Ot!==null){var $n=Ot.delay;typeof $n=="number"&&$n>0?yn=Yt+$n:yn=Yt}else yn=Yt;var It;switch(De){case S:It=F;break;case E:It=$;break;case R:It=ne;break;case x:It=Y;break;case C:default:It=H;break}var Or=yn+It,tn={id:oe++,callback:it,priorityLevel:De,startTime:yn,expirationTime:Or,sortIndex:-1};return yn>Yt?(tn.sortIndex=yn,s(ee,tn),c(ve)===null&&tn===c(ee)&&(Ie?Ne():Ie=!0,fe(ye,yn-Yt))):(tn.sortIndex=Or,s(ve,tn),!xe&&!ke&&(xe=!0,Ln(U))),tn}function Ge(){}function Ue(){!xe&&!ke&&(xe=!0,Ln(U))}function Le(){return c(ve)}function me(De){De.callback=null}function ze(){return pe}var be=!1,ht=null,He=-1,Rt=a,Gt=-1;function Tn(){var De=e.unstable_now()-Gt;return!(De<Rt)}function ar(){}function or(De){if(De<0||De>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}De>0?Rt=Math.floor(1e3/De):Rt=a}var dr=function(){if(ht!==null){var De=e.unstable_now();Gt=De;var it=!0,Ot=!0;try{Ot=ht(it,De)}finally{Ot?Jn():(be=!1,ht=null)}}else be=!1},Jn;if(typeof L=="function")Jn=function(){L(dr)};else if(typeof MessageChannel<"u"){var pr=new MessageChannel,Yn=pr.port2;pr.port1.onmessage=dr,Jn=function(){Yn.postMessage(null)}}else Jn=function(){se(dr,0)};function Ln(De){ht=De,be||(be=!0,Jn())}function fe(De,it){He=se(function(){De(e.unstable_now())},it)}function Ne(){Te(He),He=-1}var mt=ar,qt=null;e.unstable_IdlePriority=R,e.unstable_ImmediatePriority=S,e.unstable_LowPriority=x,e.unstable_NormalPriority=C,e.unstable_Profiling=qt,e.unstable_UserBlockingPriority=E,e.unstable_cancelCallback=me,e.unstable_continueExecution=Ue,e.unstable_forceFrameRate=or,e.unstable_getCurrentPriorityLevel=ze,e.unstable_getFirstCallbackNode=Le,e.unstable_next=Re,e.unstable_pauseExecution=Ge,e.unstable_requestPaint=mt,e.unstable_runWithPriority=We,e.unstable_scheduleCallback=$e,e.unstable_shouldYield=Tn,e.unstable_wrapCallback=Oe,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(yS)),yS}var sk;function uk(){return sk||(sk=1,process.env.NODE_ENV==="production"?L0.exports=u6():L0.exports=c6()),L0.exports}/**
43
+ */var lk;function f6(){return lk||(lk=1,function(e){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=!1,r=!1,a=5;function s(De,it){var Ot=De.length;De.push(it),h(De,it,Ot)}function c(De){return De.length===0?null:De[0]}function f(De){if(De.length===0)return null;var it=De[0],Ot=De.pop();return Ot!==it&&(De[0]=Ot,v(De,Ot,0)),it}function h(De,it,Ot){for(var Yt=Ot;Yt>0;){var yn=Yt-1>>>1,$n=De[yn];if(y($n,it)>0)De[yn]=it,De[Yt]=$n,Yt=yn;else return}}function v(De,it,Ot){for(var Yt=Ot,yn=De.length,$n=yn>>>1;Yt<$n;){var It=(Yt+1)*2-1,Or=De[It],tn=It+1,$i=De[tn];if(y(Or,it)<0)tn<yn&&y($i,Or)<0?(De[Yt]=$i,De[tn]=it,Yt=tn):(De[Yt]=Or,De[It]=it,Yt=It);else if(tn<yn&&y($i,it)<0)De[Yt]=$i,De[tn]=it,Yt=tn;else return}}function y(De,it){var Ot=De.sortIndex-it.sortIndex;return Ot!==0?Ot:De.id-it.id}var S=1,E=2,C=3,x=4,R=5;function T(De,it){}var D=typeof performance=="object"&&typeof performance.now=="function";if(D){var M=performance;e.unstable_now=function(){return M.now()}}else{var I=Date,N=I.now();e.unstable_now=function(){return I.now()-N}}var B=1073741823,F=-1,$=250,H=5e3,Y=1e4,ne=B,ve=[],ee=[],oe=1,J=null,pe=C,ke=!1,xe=!1,Ie=!1,se=typeof setTimeout=="function"?setTimeout:null,Te=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function te(De){for(var it=c(ee);it!==null;){if(it.callback===null)f(ee);else if(it.startTime<=De)f(ee),it.sortIndex=it.expirationTime,s(ve,it);else return;it=c(ee)}}function ye(De){if(Ie=!1,te(De),!xe)if(c(ve)!==null)xe=!0,Ln(U);else{var it=c(ee);it!==null&&fe(ye,it.startTime-De)}}function U(De,it){xe=!1,Ie&&(Ie=!1,Ne()),ke=!0;var Ot=pe;try{var Yt;if(!r)return _e(De,it)}finally{J=null,pe=Ot,ke=!1}}function _e(De,it){var Ot=it;for(te(Ot),J=c(ve);J!==null&&!n&&!(J.expirationTime>Ot&&(!De||Tn()));){var Yt=J.callback;if(typeof Yt=="function"){J.callback=null,pe=J.priorityLevel;var yn=J.expirationTime<=Ot,$n=Yt(yn);Ot=e.unstable_now(),typeof $n=="function"?J.callback=$n:J===c(ve)&&f(ve),te(Ot)}else f(ve);J=c(ve)}if(J!==null)return!0;var It=c(ee);return It!==null&&fe(ye,It.startTime-Ot),!1}function We(De,it){switch(De){case S:case E:case C:case x:case R:break;default:De=C}var Ot=pe;pe=De;try{return it()}finally{pe=Ot}}function Re(De){var it;switch(pe){case S:case E:case C:it=C;break;default:it=pe;break}var Ot=pe;pe=it;try{return De()}finally{pe=Ot}}function Oe(De){var it=pe;return function(){var Ot=pe;pe=it;try{return De.apply(this,arguments)}finally{pe=Ot}}}function $e(De,it,Ot){var Yt=e.unstable_now(),yn;if(typeof Ot=="object"&&Ot!==null){var $n=Ot.delay;typeof $n=="number"&&$n>0?yn=Yt+$n:yn=Yt}else yn=Yt;var It;switch(De){case S:It=F;break;case E:It=$;break;case R:It=ne;break;case x:It=Y;break;case C:default:It=H;break}var Or=yn+It,tn={id:oe++,callback:it,priorityLevel:De,startTime:yn,expirationTime:Or,sortIndex:-1};return yn>Yt?(tn.sortIndex=yn,s(ee,tn),c(ve)===null&&tn===c(ee)&&(Ie?Ne():Ie=!0,fe(ye,yn-Yt))):(tn.sortIndex=Or,s(ve,tn),!xe&&!ke&&(xe=!0,Ln(U))),tn}function Ge(){}function Ue(){!xe&&!ke&&(xe=!0,Ln(U))}function Le(){return c(ve)}function me(De){De.callback=null}function ze(){return pe}var be=!1,ht=null,He=-1,Rt=a,Gt=-1;function Tn(){var De=e.unstable_now()-Gt;return!(De<Rt)}function ar(){}function or(De){if(De<0||De>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}De>0?Rt=Math.floor(1e3/De):Rt=a}var dr=function(){if(ht!==null){var De=e.unstable_now();Gt=De;var it=!0,Ot=!0;try{Ot=ht(it,De)}finally{Ot?Jn():(be=!1,ht=null)}}else be=!1},Jn;if(typeof L=="function")Jn=function(){L(dr)};else if(typeof MessageChannel<"u"){var pr=new MessageChannel,Yn=pr.port2;pr.port1.onmessage=dr,Jn=function(){Yn.postMessage(null)}}else Jn=function(){se(dr,0)};function Ln(De){ht=De,be||(be=!0,Jn())}function fe(De,it){He=se(function(){De(e.unstable_now())},it)}function Ne(){Te(He),He=-1}var mt=ar,qt=null;e.unstable_IdlePriority=R,e.unstable_ImmediatePriority=S,e.unstable_LowPriority=x,e.unstable_NormalPriority=C,e.unstable_Profiling=qt,e.unstable_UserBlockingPriority=E,e.unstable_cancelCallback=me,e.unstable_continueExecution=Ue,e.unstable_forceFrameRate=or,e.unstable_getCurrentPriorityLevel=ze,e.unstable_getFirstCallbackNode=Le,e.unstable_next=Re,e.unstable_pauseExecution=Ge,e.unstable_requestPaint=mt,e.unstable_runWithPriority=We,e.unstable_scheduleCallback=$e,e.unstable_shouldYield=Tn,e.unstable_wrapCallback=Oe,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(yS)),yS}var sk;function uk(){return sk||(sk=1,process.env.NODE_ENV==="production"?L0.exports=c6():L0.exports=f6()),L0.exports}/**
44
44
  * @license React
45
45
  * react-dom.production.min.js
46
46
  *
@@ -48,7 +48,7 @@ Check the top-level render call using <`+Ke+">.")}return Pe}}function as(W,Pe){{
48
48
  *
49
49
  * This source code is licensed under the MIT license found in the
50
50
  * LICENSE file in the root directory of this source tree.
51
- */var ck;function f6(){if(ck)return ea;ck=1;var e=j,n=uk();function r(o){for(var l="https://reactjs.org/docs/error-decoder.html?invariant="+o,p=1;p<arguments.length;p++)l+="&args[]="+encodeURIComponent(arguments[p]);return"Minified React error #"+o+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function c(o,l){f(o,l),f(o+"Capture",l)}function f(o,l){for(s[o]=l,o=0;o<l.length;o++)a.add(l[o])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),v=Object.prototype.hasOwnProperty,y=/^[: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]*$/,S={},E={};function C(o){return v.call(E,o)?!0:v.call(S,o)?!1:y.test(o)?E[o]=!0:(S[o]=!0,!1)}function x(o,l,p,g){if(p!==null&&p.type===0)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":return g?!1:p!==null?!p.acceptsBooleans:(o=o.toLowerCase().slice(0,5),o!=="data-"&&o!=="aria-");default:return!1}}function R(o,l,p,g){if(l===null||typeof l>"u"||x(o,l,p,g))return!0;if(g)return!1;if(p!==null)switch(p.type){case 3:return!l;case 4:return l===!1;case 5:return isNaN(l);case 6:return isNaN(l)||1>l}return!1}function T(o,l,p,g,w,_,P){this.acceptsBooleans=l===2||l===3||l===4,this.attributeName=g,this.attributeNamespace=w,this.mustUseProperty=p,this.propertyName=o,this.type=l,this.sanitizeURL=_,this.removeEmptyString=P}var D={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){D[o]=new T(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var l=o[0];D[l]=new T(l,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){D[o]=new T(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){D[o]=new T(o,2,!1,o,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(o){D[o]=new T(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){D[o]=new T(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){D[o]=new T(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){D[o]=new T(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){D[o]=new T(o,5,!1,o.toLowerCase(),null,!1,!1)});var M=/[\-:]([a-z])/g;function I(o){return o[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(o){var l=o.replace(M,I);D[l]=new T(l,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var l=o.replace(M,I);D[l]=new T(l,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var l=o.replace(M,I);D[l]=new T(l,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){D[o]=new T(o,1,!1,o.toLowerCase(),null,!1,!1)}),D.xlinkHref=new T("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){D[o]=new T(o,1,!1,o.toLowerCase(),null,!0,!0)});function N(o,l,p,g){var w=D.hasOwnProperty(l)?D[l]:null;(w!==null?w.type!==0:g||!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(R(l,p,w,g)&&(p=null),g||w===null?C(l)&&(p===null?o.removeAttribute(l):o.setAttribute(l,""+p)):w.mustUseProperty?o[w.propertyName]=p===null?w.type===3?!1:"":p:(l=w.attributeName,g=w.attributeNamespace,p===null?o.removeAttribute(l):(w=w.type,p=w===3||w===4&&p===!0?"":""+p,g?o.setAttributeNS(g,l,p):o.setAttribute(l,p))))}var B=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,F=Symbol.for("react.element"),$=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),ne=Symbol.for("react.profiler"),ve=Symbol.for("react.provider"),ee=Symbol.for("react.context"),oe=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),pe=Symbol.for("react.suspense_list"),ke=Symbol.for("react.memo"),xe=Symbol.for("react.lazy"),Ie=Symbol.for("react.offscreen"),se=Symbol.iterator;function Te(o){return o===null||typeof o!="object"?null:(o=se&&o[se]||o["@@iterator"],typeof o=="function"?o:null)}var L=Object.assign,te;function ye(o){if(te===void 0)try{throw Error()}catch(p){var l=p.stack.trim().match(/\n( *(at )?)/);te=l&&l[1]||""}return`
51
+ */var ck;function d6(){if(ck)return ea;ck=1;var e=j,n=uk();function r(o){for(var l="https://reactjs.org/docs/error-decoder.html?invariant="+o,p=1;p<arguments.length;p++)l+="&args[]="+encodeURIComponent(arguments[p]);return"Minified React error #"+o+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function c(o,l){f(o,l),f(o+"Capture",l)}function f(o,l){for(s[o]=l,o=0;o<l.length;o++)a.add(l[o])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),v=Object.prototype.hasOwnProperty,y=/^[: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]*$/,S={},E={};function C(o){return v.call(E,o)?!0:v.call(S,o)?!1:y.test(o)?E[o]=!0:(S[o]=!0,!1)}function x(o,l,p,g){if(p!==null&&p.type===0)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":return g?!1:p!==null?!p.acceptsBooleans:(o=o.toLowerCase().slice(0,5),o!=="data-"&&o!=="aria-");default:return!1}}function R(o,l,p,g){if(l===null||typeof l>"u"||x(o,l,p,g))return!0;if(g)return!1;if(p!==null)switch(p.type){case 3:return!l;case 4:return l===!1;case 5:return isNaN(l);case 6:return isNaN(l)||1>l}return!1}function T(o,l,p,g,w,_,P){this.acceptsBooleans=l===2||l===3||l===4,this.attributeName=g,this.attributeNamespace=w,this.mustUseProperty=p,this.propertyName=o,this.type=l,this.sanitizeURL=_,this.removeEmptyString=P}var D={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){D[o]=new T(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var l=o[0];D[l]=new T(l,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){D[o]=new T(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){D[o]=new T(o,2,!1,o,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(o){D[o]=new T(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){D[o]=new T(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){D[o]=new T(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){D[o]=new T(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){D[o]=new T(o,5,!1,o.toLowerCase(),null,!1,!1)});var M=/[\-:]([a-z])/g;function I(o){return o[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(o){var l=o.replace(M,I);D[l]=new T(l,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var l=o.replace(M,I);D[l]=new T(l,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var l=o.replace(M,I);D[l]=new T(l,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){D[o]=new T(o,1,!1,o.toLowerCase(),null,!1,!1)}),D.xlinkHref=new T("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){D[o]=new T(o,1,!1,o.toLowerCase(),null,!0,!0)});function N(o,l,p,g){var w=D.hasOwnProperty(l)?D[l]:null;(w!==null?w.type!==0:g||!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(R(l,p,w,g)&&(p=null),g||w===null?C(l)&&(p===null?o.removeAttribute(l):o.setAttribute(l,""+p)):w.mustUseProperty?o[w.propertyName]=p===null?w.type===3?!1:"":p:(l=w.attributeName,g=w.attributeNamespace,p===null?o.removeAttribute(l):(w=w.type,p=w===3||w===4&&p===!0?"":""+p,g?o.setAttributeNS(g,l,p):o.setAttribute(l,p))))}var B=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,F=Symbol.for("react.element"),$=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),ne=Symbol.for("react.profiler"),ve=Symbol.for("react.provider"),ee=Symbol.for("react.context"),oe=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),pe=Symbol.for("react.suspense_list"),ke=Symbol.for("react.memo"),xe=Symbol.for("react.lazy"),Ie=Symbol.for("react.offscreen"),se=Symbol.iterator;function Te(o){return o===null||typeof o!="object"?null:(o=se&&o[se]||o["@@iterator"],typeof o=="function"?o:null)}var L=Object.assign,te;function ye(o){if(te===void 0)try{throw Error()}catch(p){var l=p.stack.trim().match(/\n( *(at )?)/);te=l&&l[1]||""}return`
52
52
  `+te+o}var U=!1;function _e(o,l){if(!o||U)return"";U=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(l)if(l=function(){throw Error()},Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(de){var g=de}Reflect.construct(o,[],l)}else{try{l.call()}catch(de){g=de}o.call(l.prototype)}else{try{throw Error()}catch(de){g=de}o()}}catch(de){if(de&&g&&typeof de.stack=="string"){for(var w=de.stack.split(`
53
53
  `),_=g.stack.split(`
54
54
  `),P=w.length-1,q=_.length-1;1<=P&&0<=q&&w[P]!==_[q];)q--;for(;1<=P&&0<=q;P--,q--)if(w[P]!==_[q]){if(P!==1||q!==1)do if(P--,q--,0>q||w[P]!==_[q]){var K=`
@@ -63,7 +63,7 @@ Error generating stack: `+_.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 fk;function d6(){return fk||(fk=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=j,n=uk(),r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,a=!1;function s(t){a=t}function c(t){if(!a){for(var i=arguments.length,u=new Array(i>1?i-1:0),d=1;d<i;d++)u[d-1]=arguments[d];h("warn",t,u)}}function f(t){if(!a){for(var i=arguments.length,u=new Array(i>1?i-1:0),d=1;d<i;d++)u[d-1]=arguments[d];h("error",t,u)}}function h(t,i,u){{var d=r.ReactDebugCurrentFrame,m=d.getStackAddendum();m!==""&&(i+="%s",u=u.concat([m]));var b=u.map(function(k){return String(k)});b.unshift("Warning: "+i),Function.prototype.apply.call(console[t],console,b)}}var v=0,y=1,S=2,E=3,C=4,x=5,R=6,T=7,D=8,M=9,I=10,N=11,B=12,F=13,$=14,H=15,Y=16,ne=17,ve=18,ee=19,oe=21,J=22,pe=23,ke=24,xe=25,Ie=!0,se=!1,Te=!1,L=!1,te=!1,ye=!0,U=!1,_e=!1,We=!0,Re=!0,Oe=!0,$e=new Set,Ge={},Ue={};function Le(t,i){me(t,i),me(t+"Capture",i)}function me(t,i){Ge[t]&&f("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",t),Ge[t]=i;{var u=t.toLowerCase();Ue[u]=t,t==="onDoubleClick"&&(Ue.ondblclick=t)}for(var d=0;d<i.length;d++)$e.add(i[d])}var ze=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",be=Object.prototype.hasOwnProperty;function ht(t){{var i=typeof Symbol=="function"&&Symbol.toStringTag,u=i&&t[Symbol.toStringTag]||t.constructor.name||"Object";return u}}function He(t){try{return Rt(t),!1}catch{return!0}}function Rt(t){return""+t}function Gt(t,i){if(He(t))return f("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",i,ht(t)),Rt(t)}function Tn(t){if(He(t))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ht(t)),Rt(t)}function ar(t,i){if(He(t))return f("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",i,ht(t)),Rt(t)}function or(t,i){if(He(t))return f("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",i,ht(t)),Rt(t)}function dr(t){if(He(t))return f("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",ht(t)),Rt(t)}function Jn(t){if(He(t))return f("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",ht(t)),Rt(t)}var pr=0,Yn=1,Ln=2,fe=3,Ne=4,mt=5,qt=6,De=":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",it=De+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ot=new RegExp("^["+De+"]["+it+"]*$"),Yt={},yn={};function $n(t){return be.call(yn,t)?!0:be.call(Yt,t)?!1:Ot.test(t)?(yn[t]=!0,!0):(Yt[t]=!0,f("Invalid attribute name: `%s`",t),!1)}function It(t,i,u){return i!==null?i.type===pr:u?!1:t.length>2&&(t[0]==="o"||t[0]==="O")&&(t[1]==="n"||t[1]==="N")}function Or(t,i,u,d){if(u!==null&&u.type===pr)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":{if(d)return!1;if(u!==null)return!u.acceptsBooleans;var m=t.toLowerCase().slice(0,5);return m!=="data-"&&m!=="aria-"}default:return!1}}function tn(t,i,u,d){if(i===null||typeof i>"u"||Or(t,i,u,d))return!0;if(d)return!1;if(u!==null)switch(u.type){case fe:return!i;case Ne:return i===!1;case mt:return isNaN(i);case qt:return isNaN(i)||i<1}return!1}function $i(t){return Mn.hasOwnProperty(t)?Mn[t]:null}function Rn(t,i,u,d,m,b,k){this.acceptsBooleans=i===Ln||i===fe||i===Ne,this.attributeName=d,this.attributeNamespace=m,this.mustUseProperty=u,this.propertyName=t,this.type=i,this.sanitizeURL=b,this.removeEmptyString=k}var Mn={},yu=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];yu.forEach(function(t){Mn[t]=new Rn(t,pr,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var i=t[0],u=t[1];Mn[i]=new Rn(i,Yn,!1,u,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){Mn[t]=new Rn(t,Ln,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Mn[t]=new Rn(t,Ln,!1,t,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"].forEach(function(t){Mn[t]=new Rn(t,fe,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){Mn[t]=new Rn(t,fe,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){Mn[t]=new Rn(t,Ne,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){Mn[t]=new Rn(t,qt,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){Mn[t]=new Rn(t,mt,!1,t.toLowerCase(),null,!1,!1)});var is=/[\-\:]([a-z])/g,bu=function(t){return t[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"].forEach(function(t){var i=t.replace(is,bu);Mn[i]=new Rn(i,Yn,!1,t,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(t){var i=t.replace(is,bu);Mn[i]=new Rn(i,Yn,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var i=t.replace(is,bu);Mn[i]=new Rn(i,Yn,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){Mn[t]=new Rn(t,Yn,!1,t.toLowerCase(),null,!1,!1)});var Vc="xlinkHref";Mn[Vc]=new Rn("xlinkHref",Yn,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){Mn[t]=new Rn(t,Yn,!1,t.toLowerCase(),null,!0,!0)});var Ad=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,as=!1;function Su(t){!as&&Ad.test(t)&&(as=!0,f("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(t)))}function os(t,i,u,d){if(d.mustUseProperty){var m=d.propertyName;return t[m]}else{Gt(u,i),d.sanitizeURL&&Su(""+u);var b=d.attributeName,k=null;if(d.type===Ne){if(t.hasAttribute(b)){var O=t.getAttribute(b);return O===""?!0:tn(i,u,d,!1)?O:O===""+u?u:O}}else if(t.hasAttribute(b)){if(tn(i,u,d,!1))return t.getAttribute(b);if(d.type===fe)return u;k=t.getAttribute(b)}return tn(i,u,d,!1)?k===null?u:k:k===""+u?u:k}}function Eu(t,i,u,d){{if(!$n(i))return;if(!t.hasAttribute(i))return u===void 0?void 0:null;var m=t.getAttribute(i);return Gt(u,i),m===""+u?u:m}}function no(t,i,u,d){var m=$i(i);if(!It(i,m,d)){if(tn(i,u,m,d)&&(u=null),d||m===null){if($n(i)){var b=i;u===null?t.removeAttribute(b):(Gt(u,i),t.setAttribute(b,""+u))}return}var k=m.mustUseProperty;if(k){var O=m.propertyName;if(u===null){var A=m.type;t[O]=A===fe?!1:""}else t[O]=u;return}var z=m.attributeName,V=m.attributeNamespace;if(u===null)t.removeAttribute(z);else{var X=m.type,G;X===fe||X===Ne&&u===!0?G="":(Gt(u,z),G=""+u,m.sanitizeURL&&Su(G.toString())),V?t.setAttributeNS(V,z,G):t.setAttribute(z,G)}}}var ul=Symbol.for("react.element"),Ui=Symbol.for("react.portal"),Ia=Symbol.for("react.fragment"),cl=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),Pe=Symbol.for("react.provider"),Ke=Symbol.for("react.context"),St=Symbol.for("react.forward_ref"),Bt=Symbol.for("react.suspense"),ln=Symbol.for("react.suspense_list"),Vt=Symbol.for("react.memo"),xt=Symbol.for("react.lazy"),Dr=Symbol.for("react.scope"),Un=Symbol.for("react.debug_trace_mode"),Bn=Symbol.for("react.offscreen"),ci=Symbol.for("react.legacy_hidden"),fl=Symbol.for("react.cache"),Md=Symbol.for("react.tracing_marker"),un=Symbol.iterator,Tx="@@iterator";function _o(t){if(t===null||typeof t!="object")return null;var i=un&&t[un]||t[Tx];return typeof i=="function"?i:null}var Xt=Object.assign,dl=0,my,gm,Hc,za,vy,ca,gy;function yy(){}yy.__reactDisabledLog=!0;function Rx(){{if(dl===0){my=console.log,gm=console.info,Hc=console.warn,za=console.error,vy=console.group,ca=console.groupCollapsed,gy=console.groupEnd;var t={configurable:!0,enumerable:!0,value:yy,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}dl++}}function Ld(){{if(dl--,dl===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Xt({},t,{value:my}),info:Xt({},t,{value:gm}),warn:Xt({},t,{value:Hc}),error:Xt({},t,{value:za}),group:Xt({},t,{value:vy}),groupCollapsed:Xt({},t,{value:ca}),groupEnd:Xt({},t,{value:gy})})}dl<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var xu=r.ReactCurrentDispatcher,ls;function ja(t,i,u){{if(ls===void 0)try{throw Error()}catch(m){var d=m.stack.trim().match(/\n( *(at )?)/);ls=d&&d[1]||""}return`
66
+ */var fk;function p6(){return fk||(fk=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=j,n=uk(),r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,a=!1;function s(t){a=t}function c(t){if(!a){for(var i=arguments.length,u=new Array(i>1?i-1:0),d=1;d<i;d++)u[d-1]=arguments[d];h("warn",t,u)}}function f(t){if(!a){for(var i=arguments.length,u=new Array(i>1?i-1:0),d=1;d<i;d++)u[d-1]=arguments[d];h("error",t,u)}}function h(t,i,u){{var d=r.ReactDebugCurrentFrame,m=d.getStackAddendum();m!==""&&(i+="%s",u=u.concat([m]));var b=u.map(function(k){return String(k)});b.unshift("Warning: "+i),Function.prototype.apply.call(console[t],console,b)}}var v=0,y=1,S=2,E=3,C=4,x=5,R=6,T=7,D=8,M=9,I=10,N=11,B=12,F=13,$=14,H=15,Y=16,ne=17,ve=18,ee=19,oe=21,J=22,pe=23,ke=24,xe=25,Ie=!0,se=!1,Te=!1,L=!1,te=!1,ye=!0,U=!1,_e=!1,We=!0,Re=!0,Oe=!0,$e=new Set,Ge={},Ue={};function Le(t,i){me(t,i),me(t+"Capture",i)}function me(t,i){Ge[t]&&f("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",t),Ge[t]=i;{var u=t.toLowerCase();Ue[u]=t,t==="onDoubleClick"&&(Ue.ondblclick=t)}for(var d=0;d<i.length;d++)$e.add(i[d])}var ze=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",be=Object.prototype.hasOwnProperty;function ht(t){{var i=typeof Symbol=="function"&&Symbol.toStringTag,u=i&&t[Symbol.toStringTag]||t.constructor.name||"Object";return u}}function He(t){try{return Rt(t),!1}catch{return!0}}function Rt(t){return""+t}function Gt(t,i){if(He(t))return f("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",i,ht(t)),Rt(t)}function Tn(t){if(He(t))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ht(t)),Rt(t)}function ar(t,i){if(He(t))return f("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",i,ht(t)),Rt(t)}function or(t,i){if(He(t))return f("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",i,ht(t)),Rt(t)}function dr(t){if(He(t))return f("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",ht(t)),Rt(t)}function Jn(t){if(He(t))return f("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",ht(t)),Rt(t)}var pr=0,Yn=1,Ln=2,fe=3,Ne=4,mt=5,qt=6,De=":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",it=De+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ot=new RegExp("^["+De+"]["+it+"]*$"),Yt={},yn={};function $n(t){return be.call(yn,t)?!0:be.call(Yt,t)?!1:Ot.test(t)?(yn[t]=!0,!0):(Yt[t]=!0,f("Invalid attribute name: `%s`",t),!1)}function It(t,i,u){return i!==null?i.type===pr:u?!1:t.length>2&&(t[0]==="o"||t[0]==="O")&&(t[1]==="n"||t[1]==="N")}function Or(t,i,u,d){if(u!==null&&u.type===pr)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":{if(d)return!1;if(u!==null)return!u.acceptsBooleans;var m=t.toLowerCase().slice(0,5);return m!=="data-"&&m!=="aria-"}default:return!1}}function tn(t,i,u,d){if(i===null||typeof i>"u"||Or(t,i,u,d))return!0;if(d)return!1;if(u!==null)switch(u.type){case fe:return!i;case Ne:return i===!1;case mt:return isNaN(i);case qt:return isNaN(i)||i<1}return!1}function $i(t){return Mn.hasOwnProperty(t)?Mn[t]:null}function Rn(t,i,u,d,m,b,k){this.acceptsBooleans=i===Ln||i===fe||i===Ne,this.attributeName=d,this.attributeNamespace=m,this.mustUseProperty=u,this.propertyName=t,this.type=i,this.sanitizeURL=b,this.removeEmptyString=k}var Mn={},yu=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];yu.forEach(function(t){Mn[t]=new Rn(t,pr,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var i=t[0],u=t[1];Mn[i]=new Rn(i,Yn,!1,u,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){Mn[t]=new Rn(t,Ln,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Mn[t]=new Rn(t,Ln,!1,t,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"].forEach(function(t){Mn[t]=new Rn(t,fe,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){Mn[t]=new Rn(t,fe,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){Mn[t]=new Rn(t,Ne,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){Mn[t]=new Rn(t,qt,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){Mn[t]=new Rn(t,mt,!1,t.toLowerCase(),null,!1,!1)});var is=/[\-\:]([a-z])/g,bu=function(t){return t[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"].forEach(function(t){var i=t.replace(is,bu);Mn[i]=new Rn(i,Yn,!1,t,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(t){var i=t.replace(is,bu);Mn[i]=new Rn(i,Yn,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var i=t.replace(is,bu);Mn[i]=new Rn(i,Yn,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){Mn[t]=new Rn(t,Yn,!1,t.toLowerCase(),null,!1,!1)});var Vc="xlinkHref";Mn[Vc]=new Rn("xlinkHref",Yn,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){Mn[t]=new Rn(t,Yn,!1,t.toLowerCase(),null,!0,!0)});var Ad=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,as=!1;function Su(t){!as&&Ad.test(t)&&(as=!0,f("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(t)))}function os(t,i,u,d){if(d.mustUseProperty){var m=d.propertyName;return t[m]}else{Gt(u,i),d.sanitizeURL&&Su(""+u);var b=d.attributeName,k=null;if(d.type===Ne){if(t.hasAttribute(b)){var O=t.getAttribute(b);return O===""?!0:tn(i,u,d,!1)?O:O===""+u?u:O}}else if(t.hasAttribute(b)){if(tn(i,u,d,!1))return t.getAttribute(b);if(d.type===fe)return u;k=t.getAttribute(b)}return tn(i,u,d,!1)?k===null?u:k:k===""+u?u:k}}function Eu(t,i,u,d){{if(!$n(i))return;if(!t.hasAttribute(i))return u===void 0?void 0:null;var m=t.getAttribute(i);return Gt(u,i),m===""+u?u:m}}function no(t,i,u,d){var m=$i(i);if(!It(i,m,d)){if(tn(i,u,m,d)&&(u=null),d||m===null){if($n(i)){var b=i;u===null?t.removeAttribute(b):(Gt(u,i),t.setAttribute(b,""+u))}return}var k=m.mustUseProperty;if(k){var O=m.propertyName;if(u===null){var A=m.type;t[O]=A===fe?!1:""}else t[O]=u;return}var z=m.attributeName,V=m.attributeNamespace;if(u===null)t.removeAttribute(z);else{var X=m.type,G;X===fe||X===Ne&&u===!0?G="":(Gt(u,z),G=""+u,m.sanitizeURL&&Su(G.toString())),V?t.setAttributeNS(V,z,G):t.setAttribute(z,G)}}}var ul=Symbol.for("react.element"),Ui=Symbol.for("react.portal"),Ia=Symbol.for("react.fragment"),cl=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),Pe=Symbol.for("react.provider"),Ke=Symbol.for("react.context"),St=Symbol.for("react.forward_ref"),Bt=Symbol.for("react.suspense"),ln=Symbol.for("react.suspense_list"),Vt=Symbol.for("react.memo"),xt=Symbol.for("react.lazy"),Dr=Symbol.for("react.scope"),Un=Symbol.for("react.debug_trace_mode"),Bn=Symbol.for("react.offscreen"),ci=Symbol.for("react.legacy_hidden"),fl=Symbol.for("react.cache"),Md=Symbol.for("react.tracing_marker"),un=Symbol.iterator,Tx="@@iterator";function _o(t){if(t===null||typeof t!="object")return null;var i=un&&t[un]||t[Tx];return typeof i=="function"?i:null}var Xt=Object.assign,dl=0,my,gm,Hc,za,vy,ca,gy;function yy(){}yy.__reactDisabledLog=!0;function Rx(){{if(dl===0){my=console.log,gm=console.info,Hc=console.warn,za=console.error,vy=console.group,ca=console.groupCollapsed,gy=console.groupEnd;var t={configurable:!0,enumerable:!0,value:yy,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}dl++}}function Ld(){{if(dl--,dl===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Xt({},t,{value:my}),info:Xt({},t,{value:gm}),warn:Xt({},t,{value:Hc}),error:Xt({},t,{value:za}),group:Xt({},t,{value:vy}),groupCollapsed:Xt({},t,{value:ca}),groupEnd:Xt({},t,{value:gy})})}dl<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var xu=r.ReactCurrentDispatcher,ls;function ja(t,i,u){{if(ls===void 0)try{throw Error()}catch(m){var d=m.stack.trim().match(/\n( *(at )?)/);ls=d&&d[1]||""}return`
67
67
  `+ls+t}}var ym=!1,Pd;{var bm=typeof WeakMap=="function"?WeakMap:Map;Pd=new bm}function Nd(t,i){if(!t||ym)return"";{var u=Pd.get(t);if(u!==void 0)return u}var d;ym=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var b;b=xu.current,xu.current=null,Rx();try{if(i){var k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(ce){d=ce}Reflect.construct(t,[],k)}else{try{k.call()}catch(ce){d=ce}t.call(k.prototype)}}else{try{throw Error()}catch(ce){d=ce}t()}}catch(ce){if(ce&&d&&typeof ce.stack=="string"){for(var O=ce.stack.split(`
68
68
  `),A=d.stack.split(`
69
69
  `),z=O.length-1,V=A.length-1;z>=1&&V>=0&&O[z]!==A[V];)V--;for(;z>=1&&V>=0;z--,V--)if(O[z]!==A[V]){if(z!==1||V!==1)do if(z--,V--,V<0||O[z]!==A[V]){var X=`
@@ -83,8 +83,8 @@ Check the render method of \``+t+"`.":""}var Ty=["value","defaultValue"];functio
83
83
  * @return {boolean} True if the event is supported.
84
84
  * @internal
85
85
  * @license Modernizr 3.0.0pre (Custom Build) | MIT
86
- */function dw(t){if(!ze)return!1;var i="on"+t,u=i in document;if(!u){var d=document.createElement("div");d.setAttribute(i,"return;"),u=typeof d[i]=="function"}return u}function Zp(){Le("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function o(t,i,u,d){Qd(d);var m=U1(i,"onChange");if(m.length>0){var b=new oi("onChange","change",null,u,d);t.push({event:b,listeners:m})}}var l=null,p=null;function g(t){var i=t.nodeName&&t.nodeName.toLowerCase();return i==="select"||i==="input"&&t.type==="file"}function w(t){var i=[];o(i,p,t,Gd(t)),Vm(_,i)}function _(t){IR(t,0)}function P(t){var i=eh(t);if(wy(i))return t}function q(t,i){if(t==="change")return i}var K=!1;ze&&(K=dw("input")&&(!document.documentMode||document.documentMode>9));function de(t,i){l=t,p=i,l.attachEvent("onpropertychange",Fe)}function Me(){l&&(l.detachEvent("onpropertychange",Fe),l=null,p=null)}function Fe(t){t.propertyName==="value"&&P(p)&&w(t)}function Ae(t,i,u){t==="focusin"?(Me(),de(i,u)):t==="focusout"&&Me()}function Je(t,i){if(t==="selectionchange"||t==="keyup"||t==="keydown")return P(p)}function st(t){var i=t.nodeName;return i&&i.toLowerCase()==="input"&&(t.type==="checkbox"||t.type==="radio")}function ft(t,i){if(t==="click")return P(i)}function sr(t,i){if(t==="input"||t==="change")return P(i)}function re(t){var i=t._wrapperState;!i||!i.controlled||t.type!=="number"||hl(t,"number",t.value)}function Q(t,i,u,d,m,b,k){var O=u?eh(u):window,A,z;if(g(O)?A=q:tc(O)?K?A=sr:(A=Je,z=Ae):st(O)&&(A=ft),A){var V=A(i,u);if(V){o(t,V,d,m);return}}z&&z(i,O,u),i==="focusout"&&re(O)}function le(){me("onMouseEnter",["mouseout","mouseover"]),me("onMouseLeave",["mouseout","mouseover"]),me("onPointerEnter",["pointerout","pointerover"]),me("onPointerLeave",["pointerout","pointerover"])}function Ve(t,i,u,d,m,b,k){var O=i==="mouseover"||i==="pointerover",A=i==="mouseout"||i==="pointerout";if(O&&!e1(d)){var z=d.relatedTarget||d.fromElement;if(z&&(If(z)||Kv(z)))return}if(!(!A&&!O)){var V;if(m.window===m)V=m;else{var X=m.ownerDocument;X?V=X.defaultView||X.parentWindow:V=window}var G,ue;if(A){var ce=d.relatedTarget||d.toElement;if(G=u,ue=ce?If(ce):null,ue!==null){var Se=Hi(ue);(ue!==Se||ue.tag!==x&&ue.tag!==R)&&(ue=null)}}else G=null,ue=u;if(G!==ue){var tt=Ll,bt="onMouseLeave",vt="onMouseEnter",an="mouse";(i==="pointerout"||i==="pointerover")&&(tt=Dv,bt="onPointerLeave",vt="onPointerEnter",an="pointer");var en=G==null?V:eh(G),ie=ue==null?V:eh(ue),Ee=new tt(bt,an+"leave",G,d,m);Ee.target=en,Ee.relatedTarget=ie;var ae=null,je=If(m);if(je===u){var nt=new tt(vt,an+"enter",ue,d,m);nt.target=ie,nt.relatedTarget=en,ae=nt}wB(t,Ee,ae,G,ue)}}}function dt(t,i){return t===i&&(t!==0||1/t===1/i)||t!==t&&i!==i}var ut=typeof Object.is=="function"?Object.is:dt;function gt(t,i){if(ut(t,i))return!0;if(typeof t!="object"||t===null||typeof i!="object"||i===null)return!1;var u=Object.keys(t),d=Object.keys(i);if(u.length!==d.length)return!1;for(var m=0;m<u.length;m++){var b=u[m];if(!be.call(i,b)||!ut(t[b],i[b]))return!1}return!0}function At(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Ir(t){for(;t;){if(t.nextSibling)return t.nextSibling;t=t.parentNode}}function sn(t,i){for(var u=At(t),d=0,m=0;u;){if(u.nodeType===Oo){if(m=d+u.textContent.length,d<=i&&m>=i)return{node:u,offset:i-d};d=m}u=At(Ir(u))}}function Nl(t){var i=t.ownerDocument,u=i&&i.defaultView||window,d=u.getSelection&&u.getSelection();if(!d||d.rangeCount===0)return null;var m=d.anchorNode,b=d.anchorOffset,k=d.focusNode,O=d.focusOffset;try{m.nodeType,k.nodeType}catch{return null}return pw(t,m,b,k,O)}function pw(t,i,u,d,m){var b=0,k=-1,O=-1,A=0,z=0,V=t,X=null;e:for(;;){for(var G=null;V===i&&(u===0||V.nodeType===Oo)&&(k=b+u),V===d&&(m===0||V.nodeType===Oo)&&(O=b+m),V.nodeType===Oo&&(b+=V.nodeValue.length),(G=V.firstChild)!==null;)X=V,V=G;for(;;){if(V===t)break e;if(X===i&&++A===u&&(k=b),X===d&&++z===m&&(O=b),(G=V.nextSibling)!==null)break;V=X,X=V.parentNode}V=G}return k===-1||O===-1?null:{start:k,end:O}}function iB(t,i){var u=t.ownerDocument||document,d=u&&u.defaultView||window;if(d.getSelection){var m=d.getSelection(),b=t.textContent.length,k=Math.min(i.start,b),O=i.end===void 0?k:Math.min(i.end,b);if(!m.extend&&k>O){var A=O;O=k,k=A}var z=sn(t,k),V=sn(t,O);if(z&&V){if(m.rangeCount===1&&m.anchorNode===z.node&&m.anchorOffset===z.offset&&m.focusNode===V.node&&m.focusOffset===V.offset)return;var X=u.createRange();X.setStart(z.node,z.offset),m.removeAllRanges(),k>O?(m.addRange(X),m.extend(V.node,V.offset)):(X.setEnd(V.node,V.offset),m.addRange(X))}}}function kR(t){return t&&t.nodeType===Oo}function _R(t,i){return!t||!i?!1:t===i?!0:kR(t)?!1:kR(i)?_R(t,i.parentNode):"contains"in t?t.contains(i):t.compareDocumentPosition?!!(t.compareDocumentPosition(i)&16):!1}function aB(t){return t&&t.ownerDocument&&_R(t.ownerDocument.documentElement,t)}function oB(t){try{return typeof t.contentWindow.location.href=="string"}catch{return!1}}function TR(){for(var t=window,i=Id();i instanceof t.HTMLIFrameElement;){if(oB(i))t=i.contentWindow;else return i;i=Id(t.document)}return i}function hw(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i&&(i==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||i==="textarea"||t.contentEditable==="true")}function lB(){var t=TR();return{focusedElem:t,selectionRange:hw(t)?uB(t):null}}function sB(t){var i=TR(),u=t.focusedElem,d=t.selectionRange;if(i!==u&&aB(u)){d!==null&&hw(u)&&cB(u,d);for(var m=[],b=u;b=b.parentNode;)b.nodeType===Ci&&m.push({element:b,left:b.scrollLeft,top:b.scrollTop});typeof u.focus=="function"&&u.focus();for(var k=0;k<m.length;k++){var O=m[k];O.element.scrollLeft=O.left,O.element.scrollTop=O.top}}}function uB(t){var i;return"selectionStart"in t?i={start:t.selectionStart,end:t.selectionEnd}:i=Nl(t),i||{start:0,end:0}}function cB(t,i){var u=i.start,d=i.end;d===void 0&&(d=u),"selectionStart"in t?(t.selectionStart=u,t.selectionEnd=Math.min(d,t.value.length)):iB(t,i)}var fB=ze&&"documentMode"in document&&document.documentMode<=11;function dB(){Le("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Kp=null,mw=null,Fv=null,vw=!1;function pB(t){if("selectionStart"in t&&hw(t))return{start:t.selectionStart,end:t.selectionEnd};var i=t.ownerDocument&&t.ownerDocument.defaultView||window,u=i.getSelection();return{anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}}function hB(t){return t.window===t?t.document:t.nodeType===Ua?t:t.ownerDocument}function RR(t,i,u){var d=hB(u);if(!(vw||Kp==null||Kp!==Id(d))){var m=pB(Kp);if(!Fv||!gt(Fv,m)){Fv=m;var b=U1(mw,"onSelect");if(b.length>0){var k=new oi("onSelect","select",null,i,u);t.push({event:k,listeners:b}),k.target=Kp}}}}function mB(t,i,u,d,m,b,k){var O=u?eh(u):window;switch(i){case"focusin":(tc(O)||O.contentEditable==="true")&&(Kp=O,mw=u,Fv=null);break;case"focusout":Kp=null,mw=null,Fv=null;break;case"mousedown":vw=!0;break;case"contextmenu":case"mouseup":case"dragend":vw=!1,RR(t,d,m);break;case"selectionchange":if(fB)break;case"keydown":case"keyup":RR(t,d,m)}}function z1(t,i){var u={};return u[t.toLowerCase()]=i.toLowerCase(),u["Webkit"+t]="webkit"+i,u["Moz"+t]="moz"+i,u}var Gp={animationend:z1("Animation","AnimationEnd"),animationiteration:z1("Animation","AnimationIteration"),animationstart:z1("Animation","AnimationStart"),transitionend:z1("Transition","TransitionEnd")},gw={},OR={};ze&&(OR=document.createElement("div").style,"AnimationEvent"in window||(delete Gp.animationend.animation,delete Gp.animationiteration.animation,delete Gp.animationstart.animation),"TransitionEvent"in window||delete Gp.transitionend.transition);function j1(t){if(gw[t])return gw[t];if(!Gp[t])return t;var i=Gp[t];for(var u in i)if(i.hasOwnProperty(u)&&u in OR)return gw[t]=i[u];return t}var DR=j1("animationend"),AR=j1("animationiteration"),MR=j1("animationstart"),LR=j1("transitionend"),PR=new Map,NR=["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"];function nc(t,i){PR.set(t,i),Le(i,[t])}function vB(){for(var t=0;t<NR.length;t++){var i=NR[t],u=i.toLowerCase(),d=i[0].toUpperCase()+i.slice(1);nc(u,"on"+d)}nc(DR,"onAnimationEnd"),nc(AR,"onAnimationIteration"),nc(MR,"onAnimationStart"),nc("dblclick","onDoubleClick"),nc("focusin","onFocus"),nc("focusout","onBlur"),nc(LR,"onTransitionEnd")}function gB(t,i,u,d,m,b,k){var O=PR.get(i);if(O!==void 0){var A=oi,z=i;switch(i){case"keypress":if(Ms(d)===0)return;case"keydown":case"keyup":A=ow;break;case"focusin":z="focus",A=jp;break;case"focusout":z="blur",A=jp;break;case"beforeblur":case"afterblur":A=jp;break;case"click":if(d.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":A=Ll;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=Ps;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=Ca;break;case DR:case AR:case MR:A=$p;break;case LR:A=sw;break;case"scroll":A=kv;break;case"wheel":A=Bp;break;case"copy":case"cut":case"paste":A=nw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=Dv;break}var V=(b&ds)!==0;{var X=!V&&i==="scroll",G=EB(u,O,d.type,V,X);if(G.length>0){var ue=new A(O,z,null,d,m);t.push({event:ue,listeners:G})}}}}vB(),le(),Zp(),dB(),P1();function yB(t,i,u,d,m,b,k){gB(t,i,u,d,m,b);var O=(b&Vx)===0;O&&(Ve(t,i,u,d,m),Q(t,i,u,d,m),mB(t,i,u,d,m),Yp(t,i,u,d,m))}var Iv=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],yw=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Iv));function FR(t,i,u){var d=t.type||"unknown-event";t.currentTarget=u,Lo(d,i,void 0,t),t.currentTarget=null}function bB(t,i,u){var d;if(u)for(var m=i.length-1;m>=0;m--){var b=i[m],k=b.instance,O=b.currentTarget,A=b.listener;if(k!==d&&t.isPropagationStopped())return;FR(t,A,O),d=k}else for(var z=0;z<i.length;z++){var V=i[z],X=V.instance,G=V.currentTarget,ue=V.listener;if(X!==d&&t.isPropagationStopped())return;FR(t,ue,G),d=X}}function IR(t,i){for(var u=(i&ds)!==0,d=0;d<t.length;d++){var m=t[d],b=m.event,k=m.listeners;bB(b,k,u)}Ym()}function SB(t,i,u,d,m){var b=Gd(u),k=[];yB(k,t,d,u,b,i),IR(k,i)}function Qn(t,i){yw.has(t)||f('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',t);var u=!1,d=GV(i),m=CB(t,u);d.has(m)||(zR(i,t,af,u),d.add(m))}function bw(t,i,u){yw.has(t)&&!i&&f('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',t);var d=0;i&&(d|=ds),zR(u,t,d,i)}var $1="_reactListening"+Math.random().toString(36).slice(2);function zv(t){if(!t[$1]){t[$1]=!0,$e.forEach(function(u){u!=="selectionchange"&&(yw.has(u)||bw(u,!1,t),bw(u,!0,t))});var i=t.nodeType===Ua?t:t.ownerDocument;i!==null&&(i[$1]||(i[$1]=!0,bw("selectionchange",!1,i)))}}function zR(t,i,u,d,m){var b=Zu(t,i,u),k=void 0;cf&&(i==="touchstart"||i==="touchmove"||i==="wheel")&&(k=!0),t=t,d?k!==void 0?Uo(t,i,b,k):Gu(t,i,b):k!==void 0?Fp(t,i,b,k):Cv(t,i,b)}function jR(t,i){return t===i||t.nodeType===mr&&t.parentNode===i}function Sw(t,i,u,d,m){var b=d;if(!(i&Ao)&&!(i&af)){var k=m;if(d!==null){var O=d;e:for(;;){if(O===null)return;var A=O.tag;if(A===E||A===C){var z=O.stateNode.containerInfo;if(jR(z,k))break;if(A===C)for(var V=O.return;V!==null;){var X=V.tag;if(X===E||X===C){var G=V.stateNode.containerInfo;if(jR(G,k))return}V=V.return}for(;z!==null;){var ue=If(z);if(ue===null)return;var ce=ue.tag;if(ce===x||ce===R){O=b=ue;continue e}z=z.parentNode}}O=O.return}}}Vm(function(){return SB(t,i,u,b)})}function jv(t,i,u){return{instance:t,listener:i,currentTarget:u}}function EB(t,i,u,d,m,b){for(var k=i!==null?i+"Capture":null,O=d?k:i,A=[],z=t,V=null;z!==null;){var X=z,G=X.stateNode,ue=X.tag;if(ue===x&&G!==null&&(V=G,O!==null)){var ce=hs(z,O);ce!=null&&A.push(jv(z,ce,V))}if(m)break;z=z.return}return A}function U1(t,i){for(var u=i+"Capture",d=[],m=t;m!==null;){var b=m,k=b.stateNode,O=b.tag;if(O===x&&k!==null){var A=k,z=hs(m,u);z!=null&&d.unshift(jv(m,z,A));var V=hs(m,i);V!=null&&d.push(jv(m,V,A))}m=m.return}return d}function Qp(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==x);return t||null}function xB(t,i){for(var u=t,d=i,m=0,b=u;b;b=Qp(b))m++;for(var k=0,O=d;O;O=Qp(O))k++;for(;m-k>0;)u=Qp(u),m--;for(;k-m>0;)d=Qp(d),k--;for(var A=m;A--;){if(u===d||d!==null&&u===d.alternate)return u;u=Qp(u),d=Qp(d)}return null}function $R(t,i,u,d,m){for(var b=i._reactName,k=[],O=u;O!==null&&O!==d;){var A=O,z=A.alternate,V=A.stateNode,X=A.tag;if(z!==null&&z===d)break;if(X===x&&V!==null){var G=V;if(m){var ue=hs(O,b);ue!=null&&k.unshift(jv(O,ue,G))}else if(!m){var ce=hs(O,b);ce!=null&&k.push(jv(O,ce,G))}}O=O.return}k.length!==0&&t.push({event:i,listeners:k})}function wB(t,i,u,d,m){var b=d&&m?xB(d,m):null;d!==null&&$R(t,i,d,b,!1),m!==null&&u!==null&&$R(t,u,m,b,!0)}function CB(t,i){return t+"__"+(i?"capture":"bubble")}var ka=!1,$v="dangerouslySetInnerHTML",B1="suppressContentEditableWarning",rc="suppressHydrationWarning",UR="autoFocus",Nf="children",Ff="style",V1="__html",Ew,H1,Uv,BR,q1,VR,HR;Ew={dialog:!0,webview:!0},H1=function(t,i){Kd(t,i),zm(t,i),Jy(t,i,{registrationNameDependencies:Ge,possibleRegistrationNames:Ue})},VR=ze&&!document.documentMode,Uv=function(t,i,u){if(!ka){var d=W1(u),m=W1(i);m!==d&&(ka=!0,f("Prop `%s` did not match. Server: %s Client: %s",t,JSON.stringify(m),JSON.stringify(d)))}},BR=function(t){if(!ka){ka=!0;var i=[];t.forEach(function(u){i.push(u)}),f("Extra attributes from the server: %s",i)}},q1=function(t,i){i===!1?f("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",t,t,t):f("Expected `%s` listener to be a function, instead got a value of `%s` type.",t,typeof i)},HR=function(t,i){var u=t.namespaceURI===Ro?t.ownerDocument.createElement(t.tagName):t.ownerDocument.createElementNS(t.namespaceURI,t.tagName);return u.innerHTML=i,u.innerHTML};var kB=/\r\n?/g,_B=/\u0000|\uFFFD/g;function W1(t){dr(t);var i=typeof t=="string"?t:""+t;return i.replace(kB,`
87
- `).replace(_B,"")}function Y1(t,i,u,d){var m=W1(i),b=W1(t);if(b!==m&&(d&&(ka||(ka=!0,f('Text content did not match. Server: "%s" Client: "%s"',b,m))),u&&Ie))throw new Error("Text content does not match server-rendered HTML.")}function qR(t){return t.nodeType===Ua?t:t.ownerDocument}function TB(){}function Z1(t){t.onclick=TB}function RB(t,i,u,d,m){for(var b in d)if(d.hasOwnProperty(b)){var k=d[b];if(b===Ff)k&&Object.freeze(k),Vy(i,k);else if(b===$v){var O=k?k[V1]:void 0;O!=null&&My(i,O)}else if(b===Nf)if(typeof k=="string"){var A=t!=="textarea"||k!=="";A&&qd(i,k)}else typeof k=="number"&&qd(i,""+k);else b===B1||b===rc||b===UR||(Ge.hasOwnProperty(b)?k!=null&&(typeof k!="function"&&q1(b,k),b==="onScroll"&&Qn("scroll",i)):k!=null&&no(i,b,k,m))}}function OB(t,i,u,d){for(var m=0;m<i.length;m+=2){var b=i[m],k=i[m+1];b===Ff?Vy(t,k):b===$v?My(t,k):b===Nf?qd(t,k):no(t,b,k,d)}}function DB(t,i,u,d){var m,b=qR(u),k,O=d;if(O===Ro&&(O=Vd(t)),O===Ro){if(m=Do(t,i),!m&&t!==t.toLowerCase()&&f("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",t),t==="script"){var A=b.createElement("div");A.innerHTML="<script><\/script>";var z=A.firstChild;k=A.removeChild(z)}else if(typeof i.is=="string")k=b.createElement(t,{is:i.is});else if(k=b.createElement(t),t==="select"){var V=k;i.multiple?V.multiple=!0:i.size&&(V.size=i.size)}}else k=b.createElementNS(O,t);return O===Ro&&!m&&Object.prototype.toString.call(k)==="[object HTMLUnknownElement]"&&!be.call(Ew,t)&&(Ew[t]=!0,f("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",t)),k}function AB(t,i){return qR(i).createTextNode(t)}function MB(t,i,u,d){var m=Do(i,u);H1(i,u);var b;switch(i){case"dialog":Qn("cancel",t),Qn("close",t),b=u;break;case"iframe":case"object":case"embed":Qn("load",t),b=u;break;case"video":case"audio":for(var k=0;k<Iv.length;k++)Qn(Iv[k],t);b=u;break;case"source":Qn("error",t),b=u;break;case"img":case"image":case"link":Qn("error",t),Qn("load",t),b=u;break;case"details":Qn("toggle",t),b=u;break;case"input":Xc(t,u),b=Qc(t,u),Qn("invalid",t);break;case"option":Ud(t,u),b=u;break;case"select":Ry(t,u),b=Tm(t,u),Qn("invalid",t);break;case"textarea":Oy(t,u),b=Om(t,u),Qn("invalid",t);break;default:b=u}switch(Yd(i,b),RB(i,t,d,b,m),i){case"input":us(t),Jc(t,u,!1);break;case"textarea":us(t),Ay(t);break;case"option":_m(t,u);break;case"select":Mx(t,u);break;default:typeof b.onClick=="function"&&Z1(t);break}}function LB(t,i,u,d,m){H1(i,d);var b=null,k,O;switch(i){case"input":k=Qc(t,u),O=Qc(t,d),b=[];break;case"select":k=Tm(t,u),O=Tm(t,d),b=[];break;case"textarea":k=Om(t,u),O=Om(t,d),b=[];break;default:k=u,O=d,typeof k.onClick!="function"&&typeof O.onClick=="function"&&Z1(t);break}Yd(i,O);var A,z,V=null;for(A in k)if(!(O.hasOwnProperty(A)||!k.hasOwnProperty(A)||k[A]==null))if(A===Ff){var X=k[A];for(z in X)X.hasOwnProperty(z)&&(V||(V={}),V[z]="")}else A===$v||A===Nf||A===B1||A===rc||A===UR||(Ge.hasOwnProperty(A)?b||(b=[]):(b=b||[]).push(A,null));for(A in O){var G=O[A],ue=k!=null?k[A]:void 0;if(!(!O.hasOwnProperty(A)||G===ue||G==null&&ue==null))if(A===Ff)if(G&&Object.freeze(G),ue){for(z in ue)ue.hasOwnProperty(z)&&(!G||!G.hasOwnProperty(z))&&(V||(V={}),V[z]="");for(z in G)G.hasOwnProperty(z)&&ue[z]!==G[z]&&(V||(V={}),V[z]=G[z])}else V||(b||(b=[]),b.push(A,V)),V=G;else if(A===$v){var ce=G?G[V1]:void 0,Se=ue?ue[V1]:void 0;ce!=null&&Se!==ce&&(b=b||[]).push(A,ce)}else A===Nf?(typeof G=="string"||typeof G=="number")&&(b=b||[]).push(A,""+G):A===B1||A===rc||(Ge.hasOwnProperty(A)?(G!=null&&(typeof G!="function"&&q1(A,G),A==="onScroll"&&Qn("scroll",t)),!b&&ue!==G&&(b=[])):(b=b||[]).push(A,G))}return V&&(nf(V,O[Ff]),(b=b||[]).push(Ff,V)),b}function PB(t,i,u,d,m){u==="input"&&m.type==="radio"&&m.name!=null&&km(t,m);var b=Do(u,d),k=Do(u,m);switch(OB(t,i,b,k),u){case"input":ku(t,m);break;case"textarea":Dy(t,m);break;case"select":Lx(t,m);break}}function NB(t){{var i=t.toLowerCase();return Zd.hasOwnProperty(i)&&Zd[i]||null}}function FB(t,i,u,d,m,b,k){var O,A;switch(O=Do(i,u),H1(i,u),i){case"dialog":Qn("cancel",t),Qn("close",t);break;case"iframe":case"object":case"embed":Qn("load",t);break;case"video":case"audio":for(var z=0;z<Iv.length;z++)Qn(Iv[z],t);break;case"source":Qn("error",t);break;case"img":case"image":case"link":Qn("error",t),Qn("load",t);break;case"details":Qn("toggle",t);break;case"input":Xc(t,u),Qn("invalid",t);break;case"option":Ud(t,u);break;case"select":Ry(t,u),Qn("invalid",t);break;case"textarea":Oy(t,u),Qn("invalid",t);break}Yd(i,u);{A=new Set;for(var V=t.attributes,X=0;X<V.length;X++){var G=V[X].name.toLowerCase();switch(G){case"value":break;case"checked":break;case"selected":break;default:A.add(V[X].name)}}}var ue=null;for(var ce in u)if(u.hasOwnProperty(ce)){var Se=u[ce];if(ce===Nf)typeof Se=="string"?t.textContent!==Se&&(u[rc]!==!0&&Y1(t.textContent,Se,b,k),ue=[Nf,Se]):typeof Se=="number"&&t.textContent!==""+Se&&(u[rc]!==!0&&Y1(t.textContent,Se,b,k),ue=[Nf,""+Se]);else if(Ge.hasOwnProperty(ce))Se!=null&&(typeof Se!="function"&&q1(ce,Se),ce==="onScroll"&&Qn("scroll",t));else if(k&&typeof O=="boolean"){var tt=void 0,bt=O&&U?null:$i(ce);if(u[rc]!==!0){if(!(ce===B1||ce===rc||ce==="value"||ce==="checked"||ce==="selected")){if(ce===$v){var vt=t.innerHTML,an=Se?Se[V1]:void 0;if(an!=null){var en=HR(t,an);en!==vt&&Uv(ce,vt,en)}}else if(ce===Ff){if(A.delete(ce),VR){var ie=Ux(Se);tt=t.getAttribute("style"),ie!==tt&&Uv(ce,tt,ie)}}else if(O&&!U)A.delete(ce.toLowerCase()),tt=Eu(t,ce,Se),Se!==tt&&Uv(ce,tt,Se);else if(!It(ce,bt,O)&&!tn(ce,Se,bt,O)){var Ee=!1;if(bt!==null)A.delete(bt.attributeName),tt=os(t,ce,Se,bt);else{var ae=d;if(ae===Ro&&(ae=Vd(i)),ae===Ro)A.delete(ce.toLowerCase());else{var je=NB(ce);je!==null&&je!==ce&&(Ee=!0,A.delete(je)),A.delete(ce)}tt=Eu(t,ce,Se)}var nt=U;!nt&&Se!==tt&&!Ee&&Uv(ce,tt,Se)}}}}}switch(k&&A.size>0&&u[rc]!==!0&&BR(A),i){case"input":us(t),Jc(t,u,!0);break;case"textarea":us(t),Ay(t);break;case"select":case"option":break;default:typeof u.onClick=="function"&&Z1(t);break}return ue}function IB(t,i,u){var d=t.nodeValue!==i;return d}function xw(t,i){{if(ka)return;ka=!0,f("Did not expect server HTML to contain a <%s> in <%s>.",i.nodeName.toLowerCase(),t.nodeName.toLowerCase())}}function ww(t,i){{if(ka)return;ka=!0,f('Did not expect server HTML to contain the text node "%s" in <%s>.',i.nodeValue,t.nodeName.toLowerCase())}}function Cw(t,i,u){{if(ka)return;ka=!0,f("Expected server HTML to contain a matching <%s> in <%s>.",i,t.nodeName.toLowerCase())}}function kw(t,i){{if(i===""||ka)return;ka=!0,f('Expected server HTML to contain a matching text node for "%s" in <%s>.',i,t.nodeName.toLowerCase())}}function zB(t,i,u){switch(i){case"input":Cy(t,u);return;case"textarea":Dm(t,u);return;case"select":Px(t,u);return}}var Bv=function(){},Vv=function(){};{var jB=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],WR=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],$B=WR.concat(["button"]),UB=["dd","dt","li","option","optgroup","p","rp","rt"],YR={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Vv=function(t,i){var u=Xt({},t||YR),d={tag:i};return WR.indexOf(i)!==-1&&(u.aTagInScope=null,u.buttonTagInScope=null,u.nobrTagInScope=null),$B.indexOf(i)!==-1&&(u.pTagInButtonScope=null),jB.indexOf(i)!==-1&&i!=="address"&&i!=="div"&&i!=="p"&&(u.listItemTagAutoclosing=null,u.dlItemTagAutoclosing=null),u.current=d,i==="form"&&(u.formTag=d),i==="a"&&(u.aTagInScope=d),i==="button"&&(u.buttonTagInScope=d),i==="nobr"&&(u.nobrTagInScope=d),i==="p"&&(u.pTagInButtonScope=d),i==="li"&&(u.listItemTagAutoclosing=d),(i==="dd"||i==="dt")&&(u.dlItemTagAutoclosing=d),u};var BB=function(t,i){switch(i){case"select":return t==="option"||t==="optgroup"||t==="#text";case"optgroup":return t==="option"||t==="#text";case"option":return t==="#text";case"tr":return t==="th"||t==="td"||t==="style"||t==="script"||t==="template";case"tbody":case"thead":case"tfoot":return t==="tr"||t==="style"||t==="script"||t==="template";case"colgroup":return t==="col"||t==="template";case"table":return t==="caption"||t==="colgroup"||t==="tbody"||t==="tfoot"||t==="thead"||t==="style"||t==="script"||t==="template";case"head":return t==="base"||t==="basefont"||t==="bgsound"||t==="link"||t==="meta"||t==="title"||t==="noscript"||t==="noframes"||t==="style"||t==="script"||t==="template";case"html":return t==="head"||t==="body"||t==="frameset";case"frameset":return t==="frame";case"#document":return t==="html"}switch(t){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return i!=="h1"&&i!=="h2"&&i!=="h3"&&i!=="h4"&&i!=="h5"&&i!=="h6";case"rp":case"rt":return UB.indexOf(i)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return i==null}return!0},VB=function(t,i){switch(t){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return i.pTagInButtonScope;case"form":return i.formTag||i.pTagInButtonScope;case"li":return i.listItemTagAutoclosing;case"dd":case"dt":return i.dlItemTagAutoclosing;case"button":return i.buttonTagInScope;case"a":return i.aTagInScope;case"nobr":return i.nobrTagInScope}return null},ZR={};Bv=function(t,i,u){u=u||YR;var d=u.current,m=d&&d.tag;i!=null&&(t!=null&&f("validateDOMNesting: when childText is passed, childTag should be null"),t="#text");var b=BB(t,m)?null:d,k=b?null:VB(t,u),O=b||k;if(O){var A=O.tag,z=!!b+"|"+t+"|"+A;if(!ZR[z]){ZR[z]=!0;var V=t,X="";if(t==="#text"?/\S/.test(i)?V="Text nodes":(V="Whitespace text nodes",X=" Make sure you don't have any extra whitespace between tags on each line of your source code."):V="<"+t+">",b){var G="";A==="table"&&t==="tr"&&(G+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),f("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",V,A,X,G)}else f("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",V,A)}}}}var K1="suppressHydrationWarning",G1="$",Q1="/$",Hv="$?",qv="$!",HB="style",_w=null,Tw=null;function qB(t){var i,u,d=t.nodeType;switch(d){case Ua:case cs:{i=d===Ua?"#document":"#fragment";var m=t.documentElement;u=m?m.namespaceURI:Mm(null,"");break}default:{var b=d===mr?t.parentNode:t,k=b.namespaceURI||null;i=b.tagName,u=Mm(k,i);break}}{var O=i.toLowerCase(),A=Vv(null,O);return{namespace:u,ancestorInfo:A}}}function WB(t,i,u){{var d=t,m=Mm(d.namespace,i),b=Vv(d.ancestorInfo,i);return{namespace:m,ancestorInfo:b}}}function NZ(t){return t}function YB(t){_w=Zi(),Tw=lB();var i=null;return Fr(!1),i}function ZB(t){sB(Tw),Fr(_w),_w=null,Tw=null}function KB(t,i,u,d,m){var b;{var k=d;if(Bv(t,null,k.ancestorInfo),typeof i.children=="string"||typeof i.children=="number"){var O=""+i.children,A=Vv(k.ancestorInfo,t);Bv(null,O,A)}b=k.namespace}var z=DB(t,i,u,b);return Zv(m,z),Nw(z,i),z}function GB(t,i){t.appendChild(i)}function QB(t,i,u,d,m){switch(MB(t,i,u,d),i){case"button":case"input":case"select":case"textarea":return!!u.autoFocus;case"img":return!0;default:return!1}}function XB(t,i,u,d,m,b){{var k=b;if(typeof d.children!=typeof u.children&&(typeof d.children=="string"||typeof d.children=="number")){var O=""+d.children,A=Vv(k.ancestorInfo,i);Bv(null,O,A)}}return LB(t,i,u,d)}function Rw(t,i){return t==="textarea"||t==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}function JB(t,i,u,d){{var m=u;Bv(null,t,m.ancestorInfo)}var b=AB(t,i);return Zv(d,b),b}function eV(){var t=window.event;return t===void 0?zo:fi(t.type)}var Ow=typeof setTimeout=="function"?setTimeout:void 0,tV=typeof clearTimeout=="function"?clearTimeout:void 0,Dw=-1,KR=typeof Promise=="function"?Promise:void 0,nV=typeof queueMicrotask=="function"?queueMicrotask:typeof KR<"u"?function(t){return KR.resolve(null).then(t).catch(rV)}:Ow;function rV(t){setTimeout(function(){throw t})}function iV(t,i,u,d){switch(i){case"button":case"input":case"select":case"textarea":u.autoFocus&&t.focus();return;case"img":{u.src&&(t.src=u.src);return}}}function aV(t,i,u,d,m,b){PB(t,i,u,d,m),Nw(t,m)}function GR(t){qd(t,"")}function oV(t,i,u){t.nodeValue=u}function lV(t,i){t.appendChild(i)}function sV(t,i){var u;t.nodeType===mr?(u=t.parentNode,u.insertBefore(i,t)):(u=t,u.appendChild(i));var d=t._reactRootContainer;d==null&&u.onclick===null&&Z1(u)}function uV(t,i,u){t.insertBefore(i,u)}function cV(t,i,u){t.nodeType===mr?t.parentNode.insertBefore(i,u):t.insertBefore(i,u)}function fV(t,i){t.removeChild(i)}function dV(t,i){t.nodeType===mr?t.parentNode.removeChild(i):t.removeChild(i)}function Aw(t,i){var u=i,d=0;do{var m=u.nextSibling;if(t.removeChild(u),m&&m.nodeType===mr){var b=m.data;if(b===Q1)if(d===0){t.removeChild(m),Jt(i);return}else d--;else(b===G1||b===Hv||b===qv)&&d++}u=m}while(u);Jt(i)}function pV(t,i){t.nodeType===mr?Aw(t.parentNode,i):t.nodeType===Ci&&Aw(t,i),Jt(t)}function hV(t){t=t;var i=t.style;typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}function mV(t){t.nodeValue=""}function vV(t,i){t=t;var u=i[HB],d=u!=null&&u.hasOwnProperty("display")?u.display:null;t.style.display=Wd("display",d)}function gV(t,i){t.nodeValue=i}function yV(t){t.nodeType===Ci?t.textContent="":t.nodeType===Ua&&t.documentElement&&t.removeChild(t.documentElement)}function bV(t,i,u){return t.nodeType!==Ci||i.toLowerCase()!==t.nodeName.toLowerCase()?null:t}function SV(t,i){return i===""||t.nodeType!==Oo?null:t}function EV(t){return t.nodeType!==mr?null:t}function QR(t){return t.data===Hv}function Mw(t){return t.data===qv}function xV(t){var i=t.nextSibling&&t.nextSibling.dataset,u,d,m;return i&&(u=i.dgst,d=i.msg,m=i.stck),{message:d,digest:u,stack:m}}function wV(t,i){t._reactRetry=i}function X1(t){for(;t!=null;t=t.nextSibling){var i=t.nodeType;if(i===Ci||i===Oo)break;if(i===mr){var u=t.data;if(u===G1||u===qv||u===Hv)break;if(u===Q1)return null}}return t}function Wv(t){return X1(t.nextSibling)}function CV(t){return X1(t.firstChild)}function kV(t){return X1(t.firstChild)}function _V(t){return X1(t.nextSibling)}function TV(t,i,u,d,m,b,k){Zv(b,t),Nw(t,u);var O;{var A=m;O=A.namespace}var z=(b.mode&Zt)!==Et;return FB(t,i,u,O,d,z,k)}function RV(t,i,u,d){return Zv(u,t),u.mode&Zt,IB(t,i)}function OV(t,i){Zv(i,t)}function DV(t){for(var i=t.nextSibling,u=0;i;){if(i.nodeType===mr){var d=i.data;if(d===Q1){if(u===0)return Wv(i);u--}else(d===G1||d===qv||d===Hv)&&u++}i=i.nextSibling}return null}function XR(t){for(var i=t.previousSibling,u=0;i;){if(i.nodeType===mr){var d=i.data;if(d===G1||d===qv||d===Hv){if(u===0)return i;u--}else d===Q1&&u++}i=i.previousSibling}return null}function AV(t){Jt(t)}function MV(t){Jt(t)}function LV(t){return t!=="head"&&t!=="body"}function PV(t,i,u,d){var m=!0;Y1(i.nodeValue,u,d,m)}function NV(t,i,u,d,m,b){if(i[K1]!==!0){var k=!0;Y1(d.nodeValue,m,b,k)}}function FV(t,i){i.nodeType===Ci?xw(t,i):i.nodeType===mr||ww(t,i)}function IV(t,i){{var u=t.parentNode;u!==null&&(i.nodeType===Ci?xw(u,i):i.nodeType===mr||ww(u,i))}}function zV(t,i,u,d,m){(m||i[K1]!==!0)&&(d.nodeType===Ci?xw(u,d):d.nodeType===mr||ww(u,d))}function jV(t,i,u){Cw(t,i)}function $V(t,i){kw(t,i)}function UV(t,i,u){{var d=t.parentNode;d!==null&&Cw(d,i)}}function BV(t,i){{var u=t.parentNode;u!==null&&kw(u,i)}}function VV(t,i,u,d,m,b){(b||i[K1]!==!0)&&Cw(u,d)}function HV(t,i,u,d,m){(m||i[K1]!==!0)&&kw(u,d)}function qV(t){f("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",t.nodeName.toLowerCase())}function WV(t){zv(t)}var Xp=Math.random().toString(36).slice(2),Jp="__reactFiber$"+Xp,Lw="__reactProps$"+Xp,Yv="__reactContainer$"+Xp,Pw="__reactEvents$"+Xp,YV="__reactListeners$"+Xp,ZV="__reactHandles$"+Xp;function KV(t){delete t[Jp],delete t[Lw],delete t[Pw],delete t[YV],delete t[ZV]}function Zv(t,i){i[Jp]=t}function J1(t,i){i[Yv]=t}function JR(t){t[Yv]=null}function Kv(t){return!!t[Yv]}function If(t){var i=t[Jp];if(i)return i;for(var u=t.parentNode;u;){if(i=u[Yv]||u[Jp],i){var d=i.alternate;if(i.child!==null||d!==null&&d.child!==null)for(var m=XR(t);m!==null;){var b=m[Jp];if(b)return b;m=XR(m)}return i}t=u,u=t.parentNode}return null}function ic(t){var i=t[Jp]||t[Yv];return i&&(i.tag===x||i.tag===R||i.tag===F||i.tag===E)?i:null}function eh(t){if(t.tag===x||t.tag===R)return t.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function eb(t){return t[Lw]||null}function Nw(t,i){t[Lw]=i}function GV(t){var i=t[Pw];return i===void 0&&(i=t[Pw]=new Set),i}var e4={},t4=r.ReactDebugCurrentFrame;function tb(t){if(t){var i=t._owner,u=qc(t.type,t._source,i?i.type:null);t4.setExtraStackFrame(u)}else t4.setExtraStackFrame(null)}function Vo(t,i,u,d,m){{var b=Function.call.bind(be);for(var k in t)if(b(t,k)){var O=void 0;try{if(typeof t[k]!="function"){var A=Error((d||"React class")+": "+u+" type `"+k+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[k]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw A.name="Invariant Violation",A}O=t[k](i,k,d,u,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(z){O=z}O&&!(O instanceof Error)&&(tb(m),f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",d||"React class",u,k,typeof O),tb(null)),O instanceof Error&&!(O.message in e4)&&(e4[O.message]=!0,tb(m),f("Failed %s type: %s",u,O.message),tb(null))}}}var Fw=[],nb;nb=[];var zs=-1;function ac(t){return{current:t}}function Li(t,i){if(zs<0){f("Unexpected pop.");return}i!==nb[zs]&&f("Unexpected Fiber popped."),t.current=Fw[zs],Fw[zs]=null,nb[zs]=null,zs--}function Pi(t,i,u){zs++,Fw[zs]=t.current,nb[zs]=u,t.current=i}var Iw;Iw={};var Wa={};Object.freeze(Wa);var js=ac(Wa),Fl=ac(!1),zw=Wa;function th(t,i,u){return u&&Il(i)?zw:js.current}function n4(t,i,u){{var d=t.stateNode;d.__reactInternalMemoizedUnmaskedChildContext=i,d.__reactInternalMemoizedMaskedChildContext=u}}function nh(t,i){{var u=t.type,d=u.contextTypes;if(!d)return Wa;var m=t.stateNode;if(m&&m.__reactInternalMemoizedUnmaskedChildContext===i)return m.__reactInternalMemoizedMaskedChildContext;var b={};for(var k in d)b[k]=i[k];{var O=Ft(t)||"Unknown";Vo(d,b,"context",O)}return m&&n4(t,i,b),b}}function rb(){return Fl.current}function Il(t){{var i=t.childContextTypes;return i!=null}}function ib(t){Li(Fl,t),Li(js,t)}function jw(t){Li(Fl,t),Li(js,t)}function r4(t,i,u){{if(js.current!==Wa)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Pi(js,i,t),Pi(Fl,u,t)}}function i4(t,i,u){{var d=t.stateNode,m=i.childContextTypes;if(typeof d.getChildContext!="function"){{var b=Ft(t)||"Unknown";Iw[b]||(Iw[b]=!0,f("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",b,b))}return u}var k=d.getChildContext();for(var O in k)if(!(O in m))throw new Error((Ft(t)||"Unknown")+'.getChildContext(): key "'+O+'" is not defined in childContextTypes.');{var A=Ft(t)||"Unknown";Vo(m,k,"child context",A)}return Xt({},u,k)}}function ab(t){{var i=t.stateNode,u=i&&i.__reactInternalMemoizedMergedChildContext||Wa;return zw=js.current,Pi(js,u,t),Pi(Fl,Fl.current,t),!0}}function a4(t,i,u){{var d=t.stateNode;if(!d)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(u){var m=i4(t,i,zw);d.__reactInternalMemoizedMergedChildContext=m,Li(Fl,t),Li(js,t),Pi(js,m,t),Pi(Fl,u,t)}else Li(Fl,t),Pi(Fl,u,t)}}function QV(t){{if(!Xm(t)||t.tag!==y)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var i=t;do{switch(i.tag){case E:return i.stateNode.context;case y:{var u=i.type;if(Il(u))return i.stateNode.__reactInternalMemoizedMergedChildContext;break}}i=i.return}while(i!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var oc=0,ob=1,$s=null,$w=!1,Uw=!1;function o4(t){$s===null?$s=[t]:$s.push(t)}function XV(t){$w=!0,o4(t)}function l4(){$w&&lc()}function lc(){if(!Uw&&$s!==null){Uw=!0;var t=0,i=Ea();try{var u=!0,d=$s;for(Cr(ti);t<d.length;t++){var m=d[t];do m=m(u);while(m!==null)}$s=null,$w=!1}catch(b){throw $s!==null&&($s=$s.slice(t+1)),rp(ap,lc),b}finally{Cr(i),Uw=!1}}return null}var rh=[],ih=0,lb=null,sb=0,co=[],fo=0,zf=null,Us=1,Bs="";function JV(t){return $f(),(t.flags&Km)!==yt}function eH(t){return $f(),sb}function tH(){var t=Bs,i=Us,u=i&~nH(i);return u.toString(32)+t}function jf(t,i){$f(),rh[ih++]=sb,rh[ih++]=lb,lb=t,sb=i}function s4(t,i,u){$f(),co[fo++]=Us,co[fo++]=Bs,co[fo++]=zf,zf=t;var d=Us,m=Bs,b=ub(d)-1,k=d&~(1<<b),O=u+1,A=ub(i)+b;if(A>30){var z=b-b%5,V=(1<<z)-1,X=(k&V).toString(32),G=k>>z,ue=b-z,ce=ub(i)+ue,Se=O<<ue,tt=Se|G,bt=X+m;Us=1<<ce|tt,Bs=bt}else{var vt=O<<b,an=vt|k,en=m;Us=1<<A|an,Bs=en}}function Bw(t){$f();var i=t.return;if(i!==null){var u=1,d=0;jf(t,u),s4(t,u,d)}}function ub(t){return 32-fp(t)}function nH(t){return 1<<ub(t)-1}function Vw(t){for(;t===lb;)lb=rh[--ih],rh[ih]=null,sb=rh[--ih],rh[ih]=null;for(;t===zf;)zf=co[--fo],co[fo]=null,Bs=co[--fo],co[fo]=null,Us=co[--fo],co[fo]=null}function rH(){return $f(),zf!==null?{id:Us,overflow:Bs}:null}function iH(t,i){$f(),co[fo++]=Us,co[fo++]=Bs,co[fo++]=zf,Us=i.id,Bs=i.overflow,zf=t}function $f(){pi()||f("Expected to be hydrating. This is a bug in React. Please file an issue.")}var di=null,po=null,Ho=!1,Uf=!1,sc=null;function aH(){Ho&&f("We should not be hydrating here. This is a bug in React. Please file a bug.")}function u4(){Uf=!0}function oH(){return Uf}function lH(t){var i=t.stateNode.containerInfo;return po=kV(i),di=t,Ho=!0,sc=null,Uf=!1,!0}function sH(t,i,u){return po=_V(i),di=t,Ho=!0,sc=null,Uf=!1,u!==null&&iH(t,u),!0}function c4(t,i){switch(t.tag){case E:{FV(t.stateNode.containerInfo,i);break}case x:{var u=(t.mode&Zt)!==Et;zV(t.type,t.memoizedProps,t.stateNode,i,u);break}case F:{var d=t.memoizedState;d.dehydrated!==null&&IV(d.dehydrated,i);break}}}function f4(t,i){c4(t,i);var u=fY();u.stateNode=i,u.return=t;var d=t.deletions;d===null?(t.deletions=[u],t.flags|=pn):d.push(u)}function Hw(t,i){{if(Uf)return;switch(t.tag){case E:{var u=t.stateNode.containerInfo;switch(i.tag){case x:var d=i.type;i.pendingProps,jV(u,d);break;case R:var m=i.pendingProps;$V(u,m);break}break}case x:{var b=t.type,k=t.memoizedProps,O=t.stateNode;switch(i.tag){case x:{var A=i.type,z=i.pendingProps,V=(t.mode&Zt)!==Et;VV(b,k,O,A,z,V);break}case R:{var X=i.pendingProps,G=(t.mode&Zt)!==Et;HV(b,k,O,X,G);break}}break}case F:{var ue=t.memoizedState,ce=ue.dehydrated;if(ce!==null)switch(i.tag){case x:var Se=i.type;i.pendingProps,UV(ce,Se);break;case R:var tt=i.pendingProps;BV(ce,tt);break}break}default:return}}}function d4(t,i){i.flags=i.flags&~va|Pn,Hw(t,i)}function p4(t,i){switch(t.tag){case x:{var u=t.type;t.pendingProps;var d=bV(i,u);return d!==null?(t.stateNode=d,di=t,po=CV(d),!0):!1}case R:{var m=t.pendingProps,b=SV(i,m);return b!==null?(t.stateNode=b,di=t,po=null,!0):!1}case F:{var k=EV(i);if(k!==null){var O={dehydrated:k,treeContext:rH(),retryLane:Ai};t.memoizedState=O;var A=dY(k);return A.return=t,t.child=A,di=t,po=null,!0}return!1}default:return!1}}function qw(t){return(t.mode&Zt)!==Et&&(t.flags&Dt)===yt}function Ww(t){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function Yw(t){if(Ho){var i=po;if(!i){qw(t)&&(Hw(di,t),Ww()),d4(di,t),Ho=!1,di=t;return}var u=i;if(!p4(t,i)){qw(t)&&(Hw(di,t),Ww()),i=Wv(u);var d=di;if(!i||!p4(t,i)){d4(di,t),Ho=!1,di=t;return}f4(d,u)}}}function uH(t,i,u){var d=t.stateNode,m=!Uf,b=TV(d,t.type,t.memoizedProps,i,u,t,m);return t.updateQueue=b,b!==null}function cH(t){var i=t.stateNode,u=t.memoizedProps,d=RV(i,u,t);if(d){var m=di;if(m!==null)switch(m.tag){case E:{var b=m.stateNode.containerInfo,k=(m.mode&Zt)!==Et;PV(b,i,u,k);break}case x:{var O=m.type,A=m.memoizedProps,z=m.stateNode,V=(m.mode&Zt)!==Et;NV(O,A,z,i,u,V);break}}}return d}function fH(t){var i=t.memoizedState,u=i!==null?i.dehydrated:null;if(!u)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");OV(u,t)}function dH(t){var i=t.memoizedState,u=i!==null?i.dehydrated:null;if(!u)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return DV(u)}function h4(t){for(var i=t.return;i!==null&&i.tag!==x&&i.tag!==E&&i.tag!==F;)i=i.return;di=i}function cb(t){if(t!==di)return!1;if(!Ho)return h4(t),Ho=!0,!1;if(t.tag!==E&&(t.tag!==x||LV(t.type)&&!Rw(t.type,t.memoizedProps))){var i=po;if(i)if(qw(t))m4(t),Ww();else for(;i;)f4(t,i),i=Wv(i)}return h4(t),t.tag===F?po=dH(t):po=di?Wv(t.stateNode):null,!0}function pH(){return Ho&&po!==null}function m4(t){for(var i=po;i;)c4(t,i),i=Wv(i)}function ah(){di=null,po=null,Ho=!1,Uf=!1}function v4(){sc!==null&&(cD(sc),sc=null)}function pi(){return Ho}function Zw(t){sc===null?sc=[t]:sc.push(t)}var hH=r.ReactCurrentBatchConfig,mH=null;function vH(){return hH.transition}var qo={recordUnsafeLifecycleWarnings:function(t,i){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(t,i){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var gH=function(t){for(var i=null,u=t;u!==null;)u.mode&Kn&&(i=u),u=u.return;return i},Bf=function(t){var i=[];return t.forEach(function(u){i.push(u)}),i.sort().join(", ")},Gv=[],Qv=[],Xv=[],Jv=[],e0=[],t0=[],Vf=new Set;qo.recordUnsafeLifecycleWarnings=function(t,i){Vf.has(t.type)||(typeof i.componentWillMount=="function"&&i.componentWillMount.__suppressDeprecationWarning!==!0&&Gv.push(t),t.mode&Kn&&typeof i.UNSAFE_componentWillMount=="function"&&Qv.push(t),typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Xv.push(t),t.mode&Kn&&typeof i.UNSAFE_componentWillReceiveProps=="function"&&Jv.push(t),typeof i.componentWillUpdate=="function"&&i.componentWillUpdate.__suppressDeprecationWarning!==!0&&e0.push(t),t.mode&Kn&&typeof i.UNSAFE_componentWillUpdate=="function"&&t0.push(t))},qo.flushPendingUnsafeLifecycleWarnings=function(){var t=new Set;Gv.length>0&&(Gv.forEach(function(G){t.add(Ft(G)||"Component"),Vf.add(G.type)}),Gv=[]);var i=new Set;Qv.length>0&&(Qv.forEach(function(G){i.add(Ft(G)||"Component"),Vf.add(G.type)}),Qv=[]);var u=new Set;Xv.length>0&&(Xv.forEach(function(G){u.add(Ft(G)||"Component"),Vf.add(G.type)}),Xv=[]);var d=new Set;Jv.length>0&&(Jv.forEach(function(G){d.add(Ft(G)||"Component"),Vf.add(G.type)}),Jv=[]);var m=new Set;e0.length>0&&(e0.forEach(function(G){m.add(Ft(G)||"Component"),Vf.add(G.type)}),e0=[]);var b=new Set;if(t0.length>0&&(t0.forEach(function(G){b.add(Ft(G)||"Component"),Vf.add(G.type)}),t0=[]),i.size>0){var k=Bf(i);f(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
86
+ */function dw(t){if(!ze)return!1;var i="on"+t,u=i in document;if(!u){var d=document.createElement("div");d.setAttribute(i,"return;"),u=typeof d[i]=="function"}return u}function Zp(){Le("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function o(t,i,u,d){Qd(d);var m=U1(i,"onChange");if(m.length>0){var b=new oi("onChange","change",null,u,d);t.push({event:b,listeners:m})}}var l=null,p=null;function g(t){var i=t.nodeName&&t.nodeName.toLowerCase();return i==="select"||i==="input"&&t.type==="file"}function w(t){var i=[];o(i,p,t,Gd(t)),Vm(_,i)}function _(t){zR(t,0)}function P(t){var i=eh(t);if(wy(i))return t}function q(t,i){if(t==="change")return i}var K=!1;ze&&(K=dw("input")&&(!document.documentMode||document.documentMode>9));function de(t,i){l=t,p=i,l.attachEvent("onpropertychange",Fe)}function Me(){l&&(l.detachEvent("onpropertychange",Fe),l=null,p=null)}function Fe(t){t.propertyName==="value"&&P(p)&&w(t)}function Ae(t,i,u){t==="focusin"?(Me(),de(i,u)):t==="focusout"&&Me()}function Je(t,i){if(t==="selectionchange"||t==="keyup"||t==="keydown")return P(p)}function st(t){var i=t.nodeName;return i&&i.toLowerCase()==="input"&&(t.type==="checkbox"||t.type==="radio")}function ft(t,i){if(t==="click")return P(i)}function sr(t,i){if(t==="input"||t==="change")return P(i)}function re(t){var i=t._wrapperState;!i||!i.controlled||t.type!=="number"||hl(t,"number",t.value)}function Q(t,i,u,d,m,b,k){var O=u?eh(u):window,A,z;if(g(O)?A=q:tc(O)?K?A=sr:(A=Je,z=Ae):st(O)&&(A=ft),A){var V=A(i,u);if(V){o(t,V,d,m);return}}z&&z(i,O,u),i==="focusout"&&re(O)}function le(){me("onMouseEnter",["mouseout","mouseover"]),me("onMouseLeave",["mouseout","mouseover"]),me("onPointerEnter",["pointerout","pointerover"]),me("onPointerLeave",["pointerout","pointerover"])}function Ve(t,i,u,d,m,b,k){var O=i==="mouseover"||i==="pointerover",A=i==="mouseout"||i==="pointerout";if(O&&!e1(d)){var z=d.relatedTarget||d.fromElement;if(z&&(If(z)||Kv(z)))return}if(!(!A&&!O)){var V;if(m.window===m)V=m;else{var X=m.ownerDocument;X?V=X.defaultView||X.parentWindow:V=window}var G,ue;if(A){var ce=d.relatedTarget||d.toElement;if(G=u,ue=ce?If(ce):null,ue!==null){var Se=Hi(ue);(ue!==Se||ue.tag!==x&&ue.tag!==R)&&(ue=null)}}else G=null,ue=u;if(G!==ue){var tt=Ll,bt="onMouseLeave",vt="onMouseEnter",an="mouse";(i==="pointerout"||i==="pointerover")&&(tt=Dv,bt="onPointerLeave",vt="onPointerEnter",an="pointer");var en=G==null?V:eh(G),ie=ue==null?V:eh(ue),Ee=new tt(bt,an+"leave",G,d,m);Ee.target=en,Ee.relatedTarget=ie;var ae=null,je=If(m);if(je===u){var nt=new tt(vt,an+"enter",ue,d,m);nt.target=ie,nt.relatedTarget=en,ae=nt}CB(t,Ee,ae,G,ue)}}}function dt(t,i){return t===i&&(t!==0||1/t===1/i)||t!==t&&i!==i}var ut=typeof Object.is=="function"?Object.is:dt;function gt(t,i){if(ut(t,i))return!0;if(typeof t!="object"||t===null||typeof i!="object"||i===null)return!1;var u=Object.keys(t),d=Object.keys(i);if(u.length!==d.length)return!1;for(var m=0;m<u.length;m++){var b=u[m];if(!be.call(i,b)||!ut(t[b],i[b]))return!1}return!0}function At(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Ir(t){for(;t;){if(t.nextSibling)return t.nextSibling;t=t.parentNode}}function sn(t,i){for(var u=At(t),d=0,m=0;u;){if(u.nodeType===Oo){if(m=d+u.textContent.length,d<=i&&m>=i)return{node:u,offset:i-d};d=m}u=At(Ir(u))}}function Nl(t){var i=t.ownerDocument,u=i&&i.defaultView||window,d=u.getSelection&&u.getSelection();if(!d||d.rangeCount===0)return null;var m=d.anchorNode,b=d.anchorOffset,k=d.focusNode,O=d.focusOffset;try{m.nodeType,k.nodeType}catch{return null}return pw(t,m,b,k,O)}function pw(t,i,u,d,m){var b=0,k=-1,O=-1,A=0,z=0,V=t,X=null;e:for(;;){for(var G=null;V===i&&(u===0||V.nodeType===Oo)&&(k=b+u),V===d&&(m===0||V.nodeType===Oo)&&(O=b+m),V.nodeType===Oo&&(b+=V.nodeValue.length),(G=V.firstChild)!==null;)X=V,V=G;for(;;){if(V===t)break e;if(X===i&&++A===u&&(k=b),X===d&&++z===m&&(O=b),(G=V.nextSibling)!==null)break;V=X,X=V.parentNode}V=G}return k===-1||O===-1?null:{start:k,end:O}}function aB(t,i){var u=t.ownerDocument||document,d=u&&u.defaultView||window;if(d.getSelection){var m=d.getSelection(),b=t.textContent.length,k=Math.min(i.start,b),O=i.end===void 0?k:Math.min(i.end,b);if(!m.extend&&k>O){var A=O;O=k,k=A}var z=sn(t,k),V=sn(t,O);if(z&&V){if(m.rangeCount===1&&m.anchorNode===z.node&&m.anchorOffset===z.offset&&m.focusNode===V.node&&m.focusOffset===V.offset)return;var X=u.createRange();X.setStart(z.node,z.offset),m.removeAllRanges(),k>O?(m.addRange(X),m.extend(V.node,V.offset)):(X.setEnd(V.node,V.offset),m.addRange(X))}}}function _R(t){return t&&t.nodeType===Oo}function TR(t,i){return!t||!i?!1:t===i?!0:_R(t)?!1:_R(i)?TR(t,i.parentNode):"contains"in t?t.contains(i):t.compareDocumentPosition?!!(t.compareDocumentPosition(i)&16):!1}function oB(t){return t&&t.ownerDocument&&TR(t.ownerDocument.documentElement,t)}function lB(t){try{return typeof t.contentWindow.location.href=="string"}catch{return!1}}function RR(){for(var t=window,i=Id();i instanceof t.HTMLIFrameElement;){if(lB(i))t=i.contentWindow;else return i;i=Id(t.document)}return i}function hw(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i&&(i==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||i==="textarea"||t.contentEditable==="true")}function sB(){var t=RR();return{focusedElem:t,selectionRange:hw(t)?cB(t):null}}function uB(t){var i=RR(),u=t.focusedElem,d=t.selectionRange;if(i!==u&&oB(u)){d!==null&&hw(u)&&fB(u,d);for(var m=[],b=u;b=b.parentNode;)b.nodeType===Ci&&m.push({element:b,left:b.scrollLeft,top:b.scrollTop});typeof u.focus=="function"&&u.focus();for(var k=0;k<m.length;k++){var O=m[k];O.element.scrollLeft=O.left,O.element.scrollTop=O.top}}}function cB(t){var i;return"selectionStart"in t?i={start:t.selectionStart,end:t.selectionEnd}:i=Nl(t),i||{start:0,end:0}}function fB(t,i){var u=i.start,d=i.end;d===void 0&&(d=u),"selectionStart"in t?(t.selectionStart=u,t.selectionEnd=Math.min(d,t.value.length)):aB(t,i)}var dB=ze&&"documentMode"in document&&document.documentMode<=11;function pB(){Le("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Kp=null,mw=null,Fv=null,vw=!1;function hB(t){if("selectionStart"in t&&hw(t))return{start:t.selectionStart,end:t.selectionEnd};var i=t.ownerDocument&&t.ownerDocument.defaultView||window,u=i.getSelection();return{anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}}function mB(t){return t.window===t?t.document:t.nodeType===Ua?t:t.ownerDocument}function OR(t,i,u){var d=mB(u);if(!(vw||Kp==null||Kp!==Id(d))){var m=hB(Kp);if(!Fv||!gt(Fv,m)){Fv=m;var b=U1(mw,"onSelect");if(b.length>0){var k=new oi("onSelect","select",null,i,u);t.push({event:k,listeners:b}),k.target=Kp}}}}function vB(t,i,u,d,m,b,k){var O=u?eh(u):window;switch(i){case"focusin":(tc(O)||O.contentEditable==="true")&&(Kp=O,mw=u,Fv=null);break;case"focusout":Kp=null,mw=null,Fv=null;break;case"mousedown":vw=!0;break;case"contextmenu":case"mouseup":case"dragend":vw=!1,OR(t,d,m);break;case"selectionchange":if(dB)break;case"keydown":case"keyup":OR(t,d,m)}}function z1(t,i){var u={};return u[t.toLowerCase()]=i.toLowerCase(),u["Webkit"+t]="webkit"+i,u["Moz"+t]="moz"+i,u}var Gp={animationend:z1("Animation","AnimationEnd"),animationiteration:z1("Animation","AnimationIteration"),animationstart:z1("Animation","AnimationStart"),transitionend:z1("Transition","TransitionEnd")},gw={},DR={};ze&&(DR=document.createElement("div").style,"AnimationEvent"in window||(delete Gp.animationend.animation,delete Gp.animationiteration.animation,delete Gp.animationstart.animation),"TransitionEvent"in window||delete Gp.transitionend.transition);function j1(t){if(gw[t])return gw[t];if(!Gp[t])return t;var i=Gp[t];for(var u in i)if(i.hasOwnProperty(u)&&u in DR)return gw[t]=i[u];return t}var AR=j1("animationend"),MR=j1("animationiteration"),LR=j1("animationstart"),PR=j1("transitionend"),NR=new Map,FR=["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"];function nc(t,i){NR.set(t,i),Le(i,[t])}function gB(){for(var t=0;t<FR.length;t++){var i=FR[t],u=i.toLowerCase(),d=i[0].toUpperCase()+i.slice(1);nc(u,"on"+d)}nc(AR,"onAnimationEnd"),nc(MR,"onAnimationIteration"),nc(LR,"onAnimationStart"),nc("dblclick","onDoubleClick"),nc("focusin","onFocus"),nc("focusout","onBlur"),nc(PR,"onTransitionEnd")}function yB(t,i,u,d,m,b,k){var O=NR.get(i);if(O!==void 0){var A=oi,z=i;switch(i){case"keypress":if(Ms(d)===0)return;case"keydown":case"keyup":A=ow;break;case"focusin":z="focus",A=jp;break;case"focusout":z="blur",A=jp;break;case"beforeblur":case"afterblur":A=jp;break;case"click":if(d.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":A=Ll;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=Ps;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=Ca;break;case AR:case MR:case LR:A=$p;break;case PR:A=sw;break;case"scroll":A=kv;break;case"wheel":A=Bp;break;case"copy":case"cut":case"paste":A=nw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=Dv;break}var V=(b&ds)!==0;{var X=!V&&i==="scroll",G=xB(u,O,d.type,V,X);if(G.length>0){var ue=new A(O,z,null,d,m);t.push({event:ue,listeners:G})}}}}gB(),le(),Zp(),pB(),P1();function bB(t,i,u,d,m,b,k){yB(t,i,u,d,m,b);var O=(b&Vx)===0;O&&(Ve(t,i,u,d,m),Q(t,i,u,d,m),vB(t,i,u,d,m),Yp(t,i,u,d,m))}var Iv=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],yw=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Iv));function IR(t,i,u){var d=t.type||"unknown-event";t.currentTarget=u,Lo(d,i,void 0,t),t.currentTarget=null}function SB(t,i,u){var d;if(u)for(var m=i.length-1;m>=0;m--){var b=i[m],k=b.instance,O=b.currentTarget,A=b.listener;if(k!==d&&t.isPropagationStopped())return;IR(t,A,O),d=k}else for(var z=0;z<i.length;z++){var V=i[z],X=V.instance,G=V.currentTarget,ue=V.listener;if(X!==d&&t.isPropagationStopped())return;IR(t,ue,G),d=X}}function zR(t,i){for(var u=(i&ds)!==0,d=0;d<t.length;d++){var m=t[d],b=m.event,k=m.listeners;SB(b,k,u)}Ym()}function EB(t,i,u,d,m){var b=Gd(u),k=[];bB(k,t,d,u,b,i),zR(k,i)}function Qn(t,i){yw.has(t)||f('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',t);var u=!1,d=QV(i),m=kB(t,u);d.has(m)||(jR(i,t,af,u),d.add(m))}function bw(t,i,u){yw.has(t)&&!i&&f('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',t);var d=0;i&&(d|=ds),jR(u,t,d,i)}var $1="_reactListening"+Math.random().toString(36).slice(2);function zv(t){if(!t[$1]){t[$1]=!0,$e.forEach(function(u){u!=="selectionchange"&&(yw.has(u)||bw(u,!1,t),bw(u,!0,t))});var i=t.nodeType===Ua?t:t.ownerDocument;i!==null&&(i[$1]||(i[$1]=!0,bw("selectionchange",!1,i)))}}function jR(t,i,u,d,m){var b=Zu(t,i,u),k=void 0;cf&&(i==="touchstart"||i==="touchmove"||i==="wheel")&&(k=!0),t=t,d?k!==void 0?Uo(t,i,b,k):Gu(t,i,b):k!==void 0?Fp(t,i,b,k):Cv(t,i,b)}function $R(t,i){return t===i||t.nodeType===mr&&t.parentNode===i}function Sw(t,i,u,d,m){var b=d;if(!(i&Ao)&&!(i&af)){var k=m;if(d!==null){var O=d;e:for(;;){if(O===null)return;var A=O.tag;if(A===E||A===C){var z=O.stateNode.containerInfo;if($R(z,k))break;if(A===C)for(var V=O.return;V!==null;){var X=V.tag;if(X===E||X===C){var G=V.stateNode.containerInfo;if($R(G,k))return}V=V.return}for(;z!==null;){var ue=If(z);if(ue===null)return;var ce=ue.tag;if(ce===x||ce===R){O=b=ue;continue e}z=z.parentNode}}O=O.return}}}Vm(function(){return EB(t,i,u,b)})}function jv(t,i,u){return{instance:t,listener:i,currentTarget:u}}function xB(t,i,u,d,m,b){for(var k=i!==null?i+"Capture":null,O=d?k:i,A=[],z=t,V=null;z!==null;){var X=z,G=X.stateNode,ue=X.tag;if(ue===x&&G!==null&&(V=G,O!==null)){var ce=hs(z,O);ce!=null&&A.push(jv(z,ce,V))}if(m)break;z=z.return}return A}function U1(t,i){for(var u=i+"Capture",d=[],m=t;m!==null;){var b=m,k=b.stateNode,O=b.tag;if(O===x&&k!==null){var A=k,z=hs(m,u);z!=null&&d.unshift(jv(m,z,A));var V=hs(m,i);V!=null&&d.push(jv(m,V,A))}m=m.return}return d}function Qp(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==x);return t||null}function wB(t,i){for(var u=t,d=i,m=0,b=u;b;b=Qp(b))m++;for(var k=0,O=d;O;O=Qp(O))k++;for(;m-k>0;)u=Qp(u),m--;for(;k-m>0;)d=Qp(d),k--;for(var A=m;A--;){if(u===d||d!==null&&u===d.alternate)return u;u=Qp(u),d=Qp(d)}return null}function UR(t,i,u,d,m){for(var b=i._reactName,k=[],O=u;O!==null&&O!==d;){var A=O,z=A.alternate,V=A.stateNode,X=A.tag;if(z!==null&&z===d)break;if(X===x&&V!==null){var G=V;if(m){var ue=hs(O,b);ue!=null&&k.unshift(jv(O,ue,G))}else if(!m){var ce=hs(O,b);ce!=null&&k.push(jv(O,ce,G))}}O=O.return}k.length!==0&&t.push({event:i,listeners:k})}function CB(t,i,u,d,m){var b=d&&m?wB(d,m):null;d!==null&&UR(t,i,d,b,!1),m!==null&&u!==null&&UR(t,u,m,b,!0)}function kB(t,i){return t+"__"+(i?"capture":"bubble")}var ka=!1,$v="dangerouslySetInnerHTML",B1="suppressContentEditableWarning",rc="suppressHydrationWarning",BR="autoFocus",Nf="children",Ff="style",V1="__html",Ew,H1,Uv,VR,q1,HR,qR;Ew={dialog:!0,webview:!0},H1=function(t,i){Kd(t,i),zm(t,i),Jy(t,i,{registrationNameDependencies:Ge,possibleRegistrationNames:Ue})},HR=ze&&!document.documentMode,Uv=function(t,i,u){if(!ka){var d=W1(u),m=W1(i);m!==d&&(ka=!0,f("Prop `%s` did not match. Server: %s Client: %s",t,JSON.stringify(m),JSON.stringify(d)))}},VR=function(t){if(!ka){ka=!0;var i=[];t.forEach(function(u){i.push(u)}),f("Extra attributes from the server: %s",i)}},q1=function(t,i){i===!1?f("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",t,t,t):f("Expected `%s` listener to be a function, instead got a value of `%s` type.",t,typeof i)},qR=function(t,i){var u=t.namespaceURI===Ro?t.ownerDocument.createElement(t.tagName):t.ownerDocument.createElementNS(t.namespaceURI,t.tagName);return u.innerHTML=i,u.innerHTML};var _B=/\r\n?/g,TB=/\u0000|\uFFFD/g;function W1(t){dr(t);var i=typeof t=="string"?t:""+t;return i.replace(_B,`
87
+ `).replace(TB,"")}function Y1(t,i,u,d){var m=W1(i),b=W1(t);if(b!==m&&(d&&(ka||(ka=!0,f('Text content did not match. Server: "%s" Client: "%s"',b,m))),u&&Ie))throw new Error("Text content does not match server-rendered HTML.")}function WR(t){return t.nodeType===Ua?t:t.ownerDocument}function RB(){}function Z1(t){t.onclick=RB}function OB(t,i,u,d,m){for(var b in d)if(d.hasOwnProperty(b)){var k=d[b];if(b===Ff)k&&Object.freeze(k),Vy(i,k);else if(b===$v){var O=k?k[V1]:void 0;O!=null&&My(i,O)}else if(b===Nf)if(typeof k=="string"){var A=t!=="textarea"||k!=="";A&&qd(i,k)}else typeof k=="number"&&qd(i,""+k);else b===B1||b===rc||b===BR||(Ge.hasOwnProperty(b)?k!=null&&(typeof k!="function"&&q1(b,k),b==="onScroll"&&Qn("scroll",i)):k!=null&&no(i,b,k,m))}}function DB(t,i,u,d){for(var m=0;m<i.length;m+=2){var b=i[m],k=i[m+1];b===Ff?Vy(t,k):b===$v?My(t,k):b===Nf?qd(t,k):no(t,b,k,d)}}function AB(t,i,u,d){var m,b=WR(u),k,O=d;if(O===Ro&&(O=Vd(t)),O===Ro){if(m=Do(t,i),!m&&t!==t.toLowerCase()&&f("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",t),t==="script"){var A=b.createElement("div");A.innerHTML="<script><\/script>";var z=A.firstChild;k=A.removeChild(z)}else if(typeof i.is=="string")k=b.createElement(t,{is:i.is});else if(k=b.createElement(t),t==="select"){var V=k;i.multiple?V.multiple=!0:i.size&&(V.size=i.size)}}else k=b.createElementNS(O,t);return O===Ro&&!m&&Object.prototype.toString.call(k)==="[object HTMLUnknownElement]"&&!be.call(Ew,t)&&(Ew[t]=!0,f("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",t)),k}function MB(t,i){return WR(i).createTextNode(t)}function LB(t,i,u,d){var m=Do(i,u);H1(i,u);var b;switch(i){case"dialog":Qn("cancel",t),Qn("close",t),b=u;break;case"iframe":case"object":case"embed":Qn("load",t),b=u;break;case"video":case"audio":for(var k=0;k<Iv.length;k++)Qn(Iv[k],t);b=u;break;case"source":Qn("error",t),b=u;break;case"img":case"image":case"link":Qn("error",t),Qn("load",t),b=u;break;case"details":Qn("toggle",t),b=u;break;case"input":Xc(t,u),b=Qc(t,u),Qn("invalid",t);break;case"option":Ud(t,u),b=u;break;case"select":Ry(t,u),b=Tm(t,u),Qn("invalid",t);break;case"textarea":Oy(t,u),b=Om(t,u),Qn("invalid",t);break;default:b=u}switch(Yd(i,b),OB(i,t,d,b,m),i){case"input":us(t),Jc(t,u,!1);break;case"textarea":us(t),Ay(t);break;case"option":_m(t,u);break;case"select":Mx(t,u);break;default:typeof b.onClick=="function"&&Z1(t);break}}function PB(t,i,u,d,m){H1(i,d);var b=null,k,O;switch(i){case"input":k=Qc(t,u),O=Qc(t,d),b=[];break;case"select":k=Tm(t,u),O=Tm(t,d),b=[];break;case"textarea":k=Om(t,u),O=Om(t,d),b=[];break;default:k=u,O=d,typeof k.onClick!="function"&&typeof O.onClick=="function"&&Z1(t);break}Yd(i,O);var A,z,V=null;for(A in k)if(!(O.hasOwnProperty(A)||!k.hasOwnProperty(A)||k[A]==null))if(A===Ff){var X=k[A];for(z in X)X.hasOwnProperty(z)&&(V||(V={}),V[z]="")}else A===$v||A===Nf||A===B1||A===rc||A===BR||(Ge.hasOwnProperty(A)?b||(b=[]):(b=b||[]).push(A,null));for(A in O){var G=O[A],ue=k!=null?k[A]:void 0;if(!(!O.hasOwnProperty(A)||G===ue||G==null&&ue==null))if(A===Ff)if(G&&Object.freeze(G),ue){for(z in ue)ue.hasOwnProperty(z)&&(!G||!G.hasOwnProperty(z))&&(V||(V={}),V[z]="");for(z in G)G.hasOwnProperty(z)&&ue[z]!==G[z]&&(V||(V={}),V[z]=G[z])}else V||(b||(b=[]),b.push(A,V)),V=G;else if(A===$v){var ce=G?G[V1]:void 0,Se=ue?ue[V1]:void 0;ce!=null&&Se!==ce&&(b=b||[]).push(A,ce)}else A===Nf?(typeof G=="string"||typeof G=="number")&&(b=b||[]).push(A,""+G):A===B1||A===rc||(Ge.hasOwnProperty(A)?(G!=null&&(typeof G!="function"&&q1(A,G),A==="onScroll"&&Qn("scroll",t)),!b&&ue!==G&&(b=[])):(b=b||[]).push(A,G))}return V&&(nf(V,O[Ff]),(b=b||[]).push(Ff,V)),b}function NB(t,i,u,d,m){u==="input"&&m.type==="radio"&&m.name!=null&&km(t,m);var b=Do(u,d),k=Do(u,m);switch(DB(t,i,b,k),u){case"input":ku(t,m);break;case"textarea":Dy(t,m);break;case"select":Lx(t,m);break}}function FB(t){{var i=t.toLowerCase();return Zd.hasOwnProperty(i)&&Zd[i]||null}}function IB(t,i,u,d,m,b,k){var O,A;switch(O=Do(i,u),H1(i,u),i){case"dialog":Qn("cancel",t),Qn("close",t);break;case"iframe":case"object":case"embed":Qn("load",t);break;case"video":case"audio":for(var z=0;z<Iv.length;z++)Qn(Iv[z],t);break;case"source":Qn("error",t);break;case"img":case"image":case"link":Qn("error",t),Qn("load",t);break;case"details":Qn("toggle",t);break;case"input":Xc(t,u),Qn("invalid",t);break;case"option":Ud(t,u);break;case"select":Ry(t,u),Qn("invalid",t);break;case"textarea":Oy(t,u),Qn("invalid",t);break}Yd(i,u);{A=new Set;for(var V=t.attributes,X=0;X<V.length;X++){var G=V[X].name.toLowerCase();switch(G){case"value":break;case"checked":break;case"selected":break;default:A.add(V[X].name)}}}var ue=null;for(var ce in u)if(u.hasOwnProperty(ce)){var Se=u[ce];if(ce===Nf)typeof Se=="string"?t.textContent!==Se&&(u[rc]!==!0&&Y1(t.textContent,Se,b,k),ue=[Nf,Se]):typeof Se=="number"&&t.textContent!==""+Se&&(u[rc]!==!0&&Y1(t.textContent,Se,b,k),ue=[Nf,""+Se]);else if(Ge.hasOwnProperty(ce))Se!=null&&(typeof Se!="function"&&q1(ce,Se),ce==="onScroll"&&Qn("scroll",t));else if(k&&typeof O=="boolean"){var tt=void 0,bt=O&&U?null:$i(ce);if(u[rc]!==!0){if(!(ce===B1||ce===rc||ce==="value"||ce==="checked"||ce==="selected")){if(ce===$v){var vt=t.innerHTML,an=Se?Se[V1]:void 0;if(an!=null){var en=qR(t,an);en!==vt&&Uv(ce,vt,en)}}else if(ce===Ff){if(A.delete(ce),HR){var ie=Ux(Se);tt=t.getAttribute("style"),ie!==tt&&Uv(ce,tt,ie)}}else if(O&&!U)A.delete(ce.toLowerCase()),tt=Eu(t,ce,Se),Se!==tt&&Uv(ce,tt,Se);else if(!It(ce,bt,O)&&!tn(ce,Se,bt,O)){var Ee=!1;if(bt!==null)A.delete(bt.attributeName),tt=os(t,ce,Se,bt);else{var ae=d;if(ae===Ro&&(ae=Vd(i)),ae===Ro)A.delete(ce.toLowerCase());else{var je=FB(ce);je!==null&&je!==ce&&(Ee=!0,A.delete(je)),A.delete(ce)}tt=Eu(t,ce,Se)}var nt=U;!nt&&Se!==tt&&!Ee&&Uv(ce,tt,Se)}}}}}switch(k&&A.size>0&&u[rc]!==!0&&VR(A),i){case"input":us(t),Jc(t,u,!0);break;case"textarea":us(t),Ay(t);break;case"select":case"option":break;default:typeof u.onClick=="function"&&Z1(t);break}return ue}function zB(t,i,u){var d=t.nodeValue!==i;return d}function xw(t,i){{if(ka)return;ka=!0,f("Did not expect server HTML to contain a <%s> in <%s>.",i.nodeName.toLowerCase(),t.nodeName.toLowerCase())}}function ww(t,i){{if(ka)return;ka=!0,f('Did not expect server HTML to contain the text node "%s" in <%s>.',i.nodeValue,t.nodeName.toLowerCase())}}function Cw(t,i,u){{if(ka)return;ka=!0,f("Expected server HTML to contain a matching <%s> in <%s>.",i,t.nodeName.toLowerCase())}}function kw(t,i){{if(i===""||ka)return;ka=!0,f('Expected server HTML to contain a matching text node for "%s" in <%s>.',i,t.nodeName.toLowerCase())}}function jB(t,i,u){switch(i){case"input":Cy(t,u);return;case"textarea":Dm(t,u);return;case"select":Px(t,u);return}}var Bv=function(){},Vv=function(){};{var $B=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],YR=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],UB=YR.concat(["button"]),BB=["dd","dt","li","option","optgroup","p","rp","rt"],ZR={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Vv=function(t,i){var u=Xt({},t||ZR),d={tag:i};return YR.indexOf(i)!==-1&&(u.aTagInScope=null,u.buttonTagInScope=null,u.nobrTagInScope=null),UB.indexOf(i)!==-1&&(u.pTagInButtonScope=null),$B.indexOf(i)!==-1&&i!=="address"&&i!=="div"&&i!=="p"&&(u.listItemTagAutoclosing=null,u.dlItemTagAutoclosing=null),u.current=d,i==="form"&&(u.formTag=d),i==="a"&&(u.aTagInScope=d),i==="button"&&(u.buttonTagInScope=d),i==="nobr"&&(u.nobrTagInScope=d),i==="p"&&(u.pTagInButtonScope=d),i==="li"&&(u.listItemTagAutoclosing=d),(i==="dd"||i==="dt")&&(u.dlItemTagAutoclosing=d),u};var VB=function(t,i){switch(i){case"select":return t==="option"||t==="optgroup"||t==="#text";case"optgroup":return t==="option"||t==="#text";case"option":return t==="#text";case"tr":return t==="th"||t==="td"||t==="style"||t==="script"||t==="template";case"tbody":case"thead":case"tfoot":return t==="tr"||t==="style"||t==="script"||t==="template";case"colgroup":return t==="col"||t==="template";case"table":return t==="caption"||t==="colgroup"||t==="tbody"||t==="tfoot"||t==="thead"||t==="style"||t==="script"||t==="template";case"head":return t==="base"||t==="basefont"||t==="bgsound"||t==="link"||t==="meta"||t==="title"||t==="noscript"||t==="noframes"||t==="style"||t==="script"||t==="template";case"html":return t==="head"||t==="body"||t==="frameset";case"frameset":return t==="frame";case"#document":return t==="html"}switch(t){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return i!=="h1"&&i!=="h2"&&i!=="h3"&&i!=="h4"&&i!=="h5"&&i!=="h6";case"rp":case"rt":return BB.indexOf(i)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return i==null}return!0},HB=function(t,i){switch(t){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return i.pTagInButtonScope;case"form":return i.formTag||i.pTagInButtonScope;case"li":return i.listItemTagAutoclosing;case"dd":case"dt":return i.dlItemTagAutoclosing;case"button":return i.buttonTagInScope;case"a":return i.aTagInScope;case"nobr":return i.nobrTagInScope}return null},KR={};Bv=function(t,i,u){u=u||ZR;var d=u.current,m=d&&d.tag;i!=null&&(t!=null&&f("validateDOMNesting: when childText is passed, childTag should be null"),t="#text");var b=VB(t,m)?null:d,k=b?null:HB(t,u),O=b||k;if(O){var A=O.tag,z=!!b+"|"+t+"|"+A;if(!KR[z]){KR[z]=!0;var V=t,X="";if(t==="#text"?/\S/.test(i)?V="Text nodes":(V="Whitespace text nodes",X=" Make sure you don't have any extra whitespace between tags on each line of your source code."):V="<"+t+">",b){var G="";A==="table"&&t==="tr"&&(G+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),f("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",V,A,X,G)}else f("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",V,A)}}}}var K1="suppressHydrationWarning",G1="$",Q1="/$",Hv="$?",qv="$!",qB="style",_w=null,Tw=null;function WB(t){var i,u,d=t.nodeType;switch(d){case Ua:case cs:{i=d===Ua?"#document":"#fragment";var m=t.documentElement;u=m?m.namespaceURI:Mm(null,"");break}default:{var b=d===mr?t.parentNode:t,k=b.namespaceURI||null;i=b.tagName,u=Mm(k,i);break}}{var O=i.toLowerCase(),A=Vv(null,O);return{namespace:u,ancestorInfo:A}}}function YB(t,i,u){{var d=t,m=Mm(d.namespace,i),b=Vv(d.ancestorInfo,i);return{namespace:m,ancestorInfo:b}}}function FZ(t){return t}function ZB(t){_w=Zi(),Tw=sB();var i=null;return Fr(!1),i}function KB(t){uB(Tw),Fr(_w),_w=null,Tw=null}function GB(t,i,u,d,m){var b;{var k=d;if(Bv(t,null,k.ancestorInfo),typeof i.children=="string"||typeof i.children=="number"){var O=""+i.children,A=Vv(k.ancestorInfo,t);Bv(null,O,A)}b=k.namespace}var z=AB(t,i,u,b);return Zv(m,z),Nw(z,i),z}function QB(t,i){t.appendChild(i)}function XB(t,i,u,d,m){switch(LB(t,i,u,d),i){case"button":case"input":case"select":case"textarea":return!!u.autoFocus;case"img":return!0;default:return!1}}function JB(t,i,u,d,m,b){{var k=b;if(typeof d.children!=typeof u.children&&(typeof d.children=="string"||typeof d.children=="number")){var O=""+d.children,A=Vv(k.ancestorInfo,i);Bv(null,O,A)}}return PB(t,i,u,d)}function Rw(t,i){return t==="textarea"||t==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}function eV(t,i,u,d){{var m=u;Bv(null,t,m.ancestorInfo)}var b=MB(t,i);return Zv(d,b),b}function tV(){var t=window.event;return t===void 0?zo:fi(t.type)}var Ow=typeof setTimeout=="function"?setTimeout:void 0,nV=typeof clearTimeout=="function"?clearTimeout:void 0,Dw=-1,GR=typeof Promise=="function"?Promise:void 0,rV=typeof queueMicrotask=="function"?queueMicrotask:typeof GR<"u"?function(t){return GR.resolve(null).then(t).catch(iV)}:Ow;function iV(t){setTimeout(function(){throw t})}function aV(t,i,u,d){switch(i){case"button":case"input":case"select":case"textarea":u.autoFocus&&t.focus();return;case"img":{u.src&&(t.src=u.src);return}}}function oV(t,i,u,d,m,b){NB(t,i,u,d,m),Nw(t,m)}function QR(t){qd(t,"")}function lV(t,i,u){t.nodeValue=u}function sV(t,i){t.appendChild(i)}function uV(t,i){var u;t.nodeType===mr?(u=t.parentNode,u.insertBefore(i,t)):(u=t,u.appendChild(i));var d=t._reactRootContainer;d==null&&u.onclick===null&&Z1(u)}function cV(t,i,u){t.insertBefore(i,u)}function fV(t,i,u){t.nodeType===mr?t.parentNode.insertBefore(i,u):t.insertBefore(i,u)}function dV(t,i){t.removeChild(i)}function pV(t,i){t.nodeType===mr?t.parentNode.removeChild(i):t.removeChild(i)}function Aw(t,i){var u=i,d=0;do{var m=u.nextSibling;if(t.removeChild(u),m&&m.nodeType===mr){var b=m.data;if(b===Q1)if(d===0){t.removeChild(m),Jt(i);return}else d--;else(b===G1||b===Hv||b===qv)&&d++}u=m}while(u);Jt(i)}function hV(t,i){t.nodeType===mr?Aw(t.parentNode,i):t.nodeType===Ci&&Aw(t,i),Jt(t)}function mV(t){t=t;var i=t.style;typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}function vV(t){t.nodeValue=""}function gV(t,i){t=t;var u=i[qB],d=u!=null&&u.hasOwnProperty("display")?u.display:null;t.style.display=Wd("display",d)}function yV(t,i){t.nodeValue=i}function bV(t){t.nodeType===Ci?t.textContent="":t.nodeType===Ua&&t.documentElement&&t.removeChild(t.documentElement)}function SV(t,i,u){return t.nodeType!==Ci||i.toLowerCase()!==t.nodeName.toLowerCase()?null:t}function EV(t,i){return i===""||t.nodeType!==Oo?null:t}function xV(t){return t.nodeType!==mr?null:t}function XR(t){return t.data===Hv}function Mw(t){return t.data===qv}function wV(t){var i=t.nextSibling&&t.nextSibling.dataset,u,d,m;return i&&(u=i.dgst,d=i.msg,m=i.stck),{message:d,digest:u,stack:m}}function CV(t,i){t._reactRetry=i}function X1(t){for(;t!=null;t=t.nextSibling){var i=t.nodeType;if(i===Ci||i===Oo)break;if(i===mr){var u=t.data;if(u===G1||u===qv||u===Hv)break;if(u===Q1)return null}}return t}function Wv(t){return X1(t.nextSibling)}function kV(t){return X1(t.firstChild)}function _V(t){return X1(t.firstChild)}function TV(t){return X1(t.nextSibling)}function RV(t,i,u,d,m,b,k){Zv(b,t),Nw(t,u);var O;{var A=m;O=A.namespace}var z=(b.mode&Zt)!==Et;return IB(t,i,u,O,d,z,k)}function OV(t,i,u,d){return Zv(u,t),u.mode&Zt,zB(t,i)}function DV(t,i){Zv(i,t)}function AV(t){for(var i=t.nextSibling,u=0;i;){if(i.nodeType===mr){var d=i.data;if(d===Q1){if(u===0)return Wv(i);u--}else(d===G1||d===qv||d===Hv)&&u++}i=i.nextSibling}return null}function JR(t){for(var i=t.previousSibling,u=0;i;){if(i.nodeType===mr){var d=i.data;if(d===G1||d===qv||d===Hv){if(u===0)return i;u--}else d===Q1&&u++}i=i.previousSibling}return null}function MV(t){Jt(t)}function LV(t){Jt(t)}function PV(t){return t!=="head"&&t!=="body"}function NV(t,i,u,d){var m=!0;Y1(i.nodeValue,u,d,m)}function FV(t,i,u,d,m,b){if(i[K1]!==!0){var k=!0;Y1(d.nodeValue,m,b,k)}}function IV(t,i){i.nodeType===Ci?xw(t,i):i.nodeType===mr||ww(t,i)}function zV(t,i){{var u=t.parentNode;u!==null&&(i.nodeType===Ci?xw(u,i):i.nodeType===mr||ww(u,i))}}function jV(t,i,u,d,m){(m||i[K1]!==!0)&&(d.nodeType===Ci?xw(u,d):d.nodeType===mr||ww(u,d))}function $V(t,i,u){Cw(t,i)}function UV(t,i){kw(t,i)}function BV(t,i,u){{var d=t.parentNode;d!==null&&Cw(d,i)}}function VV(t,i){{var u=t.parentNode;u!==null&&kw(u,i)}}function HV(t,i,u,d,m,b){(b||i[K1]!==!0)&&Cw(u,d)}function qV(t,i,u,d,m){(m||i[K1]!==!0)&&kw(u,d)}function WV(t){f("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",t.nodeName.toLowerCase())}function YV(t){zv(t)}var Xp=Math.random().toString(36).slice(2),Jp="__reactFiber$"+Xp,Lw="__reactProps$"+Xp,Yv="__reactContainer$"+Xp,Pw="__reactEvents$"+Xp,ZV="__reactListeners$"+Xp,KV="__reactHandles$"+Xp;function GV(t){delete t[Jp],delete t[Lw],delete t[Pw],delete t[ZV],delete t[KV]}function Zv(t,i){i[Jp]=t}function J1(t,i){i[Yv]=t}function e4(t){t[Yv]=null}function Kv(t){return!!t[Yv]}function If(t){var i=t[Jp];if(i)return i;for(var u=t.parentNode;u;){if(i=u[Yv]||u[Jp],i){var d=i.alternate;if(i.child!==null||d!==null&&d.child!==null)for(var m=JR(t);m!==null;){var b=m[Jp];if(b)return b;m=JR(m)}return i}t=u,u=t.parentNode}return null}function ic(t){var i=t[Jp]||t[Yv];return i&&(i.tag===x||i.tag===R||i.tag===F||i.tag===E)?i:null}function eh(t){if(t.tag===x||t.tag===R)return t.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function eb(t){return t[Lw]||null}function Nw(t,i){t[Lw]=i}function QV(t){var i=t[Pw];return i===void 0&&(i=t[Pw]=new Set),i}var t4={},n4=r.ReactDebugCurrentFrame;function tb(t){if(t){var i=t._owner,u=qc(t.type,t._source,i?i.type:null);n4.setExtraStackFrame(u)}else n4.setExtraStackFrame(null)}function Vo(t,i,u,d,m){{var b=Function.call.bind(be);for(var k in t)if(b(t,k)){var O=void 0;try{if(typeof t[k]!="function"){var A=Error((d||"React class")+": "+u+" type `"+k+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[k]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw A.name="Invariant Violation",A}O=t[k](i,k,d,u,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(z){O=z}O&&!(O instanceof Error)&&(tb(m),f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",d||"React class",u,k,typeof O),tb(null)),O instanceof Error&&!(O.message in t4)&&(t4[O.message]=!0,tb(m),f("Failed %s type: %s",u,O.message),tb(null))}}}var Fw=[],nb;nb=[];var zs=-1;function ac(t){return{current:t}}function Li(t,i){if(zs<0){f("Unexpected pop.");return}i!==nb[zs]&&f("Unexpected Fiber popped."),t.current=Fw[zs],Fw[zs]=null,nb[zs]=null,zs--}function Pi(t,i,u){zs++,Fw[zs]=t.current,nb[zs]=u,t.current=i}var Iw;Iw={};var Wa={};Object.freeze(Wa);var js=ac(Wa),Fl=ac(!1),zw=Wa;function th(t,i,u){return u&&Il(i)?zw:js.current}function r4(t,i,u){{var d=t.stateNode;d.__reactInternalMemoizedUnmaskedChildContext=i,d.__reactInternalMemoizedMaskedChildContext=u}}function nh(t,i){{var u=t.type,d=u.contextTypes;if(!d)return Wa;var m=t.stateNode;if(m&&m.__reactInternalMemoizedUnmaskedChildContext===i)return m.__reactInternalMemoizedMaskedChildContext;var b={};for(var k in d)b[k]=i[k];{var O=Ft(t)||"Unknown";Vo(d,b,"context",O)}return m&&r4(t,i,b),b}}function rb(){return Fl.current}function Il(t){{var i=t.childContextTypes;return i!=null}}function ib(t){Li(Fl,t),Li(js,t)}function jw(t){Li(Fl,t),Li(js,t)}function i4(t,i,u){{if(js.current!==Wa)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Pi(js,i,t),Pi(Fl,u,t)}}function a4(t,i,u){{var d=t.stateNode,m=i.childContextTypes;if(typeof d.getChildContext!="function"){{var b=Ft(t)||"Unknown";Iw[b]||(Iw[b]=!0,f("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",b,b))}return u}var k=d.getChildContext();for(var O in k)if(!(O in m))throw new Error((Ft(t)||"Unknown")+'.getChildContext(): key "'+O+'" is not defined in childContextTypes.');{var A=Ft(t)||"Unknown";Vo(m,k,"child context",A)}return Xt({},u,k)}}function ab(t){{var i=t.stateNode,u=i&&i.__reactInternalMemoizedMergedChildContext||Wa;return zw=js.current,Pi(js,u,t),Pi(Fl,Fl.current,t),!0}}function o4(t,i,u){{var d=t.stateNode;if(!d)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(u){var m=a4(t,i,zw);d.__reactInternalMemoizedMergedChildContext=m,Li(Fl,t),Li(js,t),Pi(js,m,t),Pi(Fl,u,t)}else Li(Fl,t),Pi(Fl,u,t)}}function XV(t){{if(!Xm(t)||t.tag!==y)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var i=t;do{switch(i.tag){case E:return i.stateNode.context;case y:{var u=i.type;if(Il(u))return i.stateNode.__reactInternalMemoizedMergedChildContext;break}}i=i.return}while(i!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var oc=0,ob=1,$s=null,$w=!1,Uw=!1;function l4(t){$s===null?$s=[t]:$s.push(t)}function JV(t){$w=!0,l4(t)}function s4(){$w&&lc()}function lc(){if(!Uw&&$s!==null){Uw=!0;var t=0,i=Ea();try{var u=!0,d=$s;for(Cr(ti);t<d.length;t++){var m=d[t];do m=m(u);while(m!==null)}$s=null,$w=!1}catch(b){throw $s!==null&&($s=$s.slice(t+1)),rp(ap,lc),b}finally{Cr(i),Uw=!1}}return null}var rh=[],ih=0,lb=null,sb=0,co=[],fo=0,zf=null,Us=1,Bs="";function eH(t){return $f(),(t.flags&Km)!==yt}function tH(t){return $f(),sb}function nH(){var t=Bs,i=Us,u=i&~rH(i);return u.toString(32)+t}function jf(t,i){$f(),rh[ih++]=sb,rh[ih++]=lb,lb=t,sb=i}function u4(t,i,u){$f(),co[fo++]=Us,co[fo++]=Bs,co[fo++]=zf,zf=t;var d=Us,m=Bs,b=ub(d)-1,k=d&~(1<<b),O=u+1,A=ub(i)+b;if(A>30){var z=b-b%5,V=(1<<z)-1,X=(k&V).toString(32),G=k>>z,ue=b-z,ce=ub(i)+ue,Se=O<<ue,tt=Se|G,bt=X+m;Us=1<<ce|tt,Bs=bt}else{var vt=O<<b,an=vt|k,en=m;Us=1<<A|an,Bs=en}}function Bw(t){$f();var i=t.return;if(i!==null){var u=1,d=0;jf(t,u),u4(t,u,d)}}function ub(t){return 32-fp(t)}function rH(t){return 1<<ub(t)-1}function Vw(t){for(;t===lb;)lb=rh[--ih],rh[ih]=null,sb=rh[--ih],rh[ih]=null;for(;t===zf;)zf=co[--fo],co[fo]=null,Bs=co[--fo],co[fo]=null,Us=co[--fo],co[fo]=null}function iH(){return $f(),zf!==null?{id:Us,overflow:Bs}:null}function aH(t,i){$f(),co[fo++]=Us,co[fo++]=Bs,co[fo++]=zf,Us=i.id,Bs=i.overflow,zf=t}function $f(){pi()||f("Expected to be hydrating. This is a bug in React. Please file an issue.")}var di=null,po=null,Ho=!1,Uf=!1,sc=null;function oH(){Ho&&f("We should not be hydrating here. This is a bug in React. Please file a bug.")}function c4(){Uf=!0}function lH(){return Uf}function sH(t){var i=t.stateNode.containerInfo;return po=_V(i),di=t,Ho=!0,sc=null,Uf=!1,!0}function uH(t,i,u){return po=TV(i),di=t,Ho=!0,sc=null,Uf=!1,u!==null&&aH(t,u),!0}function f4(t,i){switch(t.tag){case E:{IV(t.stateNode.containerInfo,i);break}case x:{var u=(t.mode&Zt)!==Et;jV(t.type,t.memoizedProps,t.stateNode,i,u);break}case F:{var d=t.memoizedState;d.dehydrated!==null&&zV(d.dehydrated,i);break}}}function d4(t,i){f4(t,i);var u=dY();u.stateNode=i,u.return=t;var d=t.deletions;d===null?(t.deletions=[u],t.flags|=pn):d.push(u)}function Hw(t,i){{if(Uf)return;switch(t.tag){case E:{var u=t.stateNode.containerInfo;switch(i.tag){case x:var d=i.type;i.pendingProps,$V(u,d);break;case R:var m=i.pendingProps;UV(u,m);break}break}case x:{var b=t.type,k=t.memoizedProps,O=t.stateNode;switch(i.tag){case x:{var A=i.type,z=i.pendingProps,V=(t.mode&Zt)!==Et;HV(b,k,O,A,z,V);break}case R:{var X=i.pendingProps,G=(t.mode&Zt)!==Et;qV(b,k,O,X,G);break}}break}case F:{var ue=t.memoizedState,ce=ue.dehydrated;if(ce!==null)switch(i.tag){case x:var Se=i.type;i.pendingProps,BV(ce,Se);break;case R:var tt=i.pendingProps;VV(ce,tt);break}break}default:return}}}function p4(t,i){i.flags=i.flags&~va|Pn,Hw(t,i)}function h4(t,i){switch(t.tag){case x:{var u=t.type;t.pendingProps;var d=SV(i,u);return d!==null?(t.stateNode=d,di=t,po=kV(d),!0):!1}case R:{var m=t.pendingProps,b=EV(i,m);return b!==null?(t.stateNode=b,di=t,po=null,!0):!1}case F:{var k=xV(i);if(k!==null){var O={dehydrated:k,treeContext:iH(),retryLane:Ai};t.memoizedState=O;var A=pY(k);return A.return=t,t.child=A,di=t,po=null,!0}return!1}default:return!1}}function qw(t){return(t.mode&Zt)!==Et&&(t.flags&Dt)===yt}function Ww(t){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function Yw(t){if(Ho){var i=po;if(!i){qw(t)&&(Hw(di,t),Ww()),p4(di,t),Ho=!1,di=t;return}var u=i;if(!h4(t,i)){qw(t)&&(Hw(di,t),Ww()),i=Wv(u);var d=di;if(!i||!h4(t,i)){p4(di,t),Ho=!1,di=t;return}d4(d,u)}}}function cH(t,i,u){var d=t.stateNode,m=!Uf,b=RV(d,t.type,t.memoizedProps,i,u,t,m);return t.updateQueue=b,b!==null}function fH(t){var i=t.stateNode,u=t.memoizedProps,d=OV(i,u,t);if(d){var m=di;if(m!==null)switch(m.tag){case E:{var b=m.stateNode.containerInfo,k=(m.mode&Zt)!==Et;NV(b,i,u,k);break}case x:{var O=m.type,A=m.memoizedProps,z=m.stateNode,V=(m.mode&Zt)!==Et;FV(O,A,z,i,u,V);break}}}return d}function dH(t){var i=t.memoizedState,u=i!==null?i.dehydrated:null;if(!u)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");DV(u,t)}function pH(t){var i=t.memoizedState,u=i!==null?i.dehydrated:null;if(!u)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return AV(u)}function m4(t){for(var i=t.return;i!==null&&i.tag!==x&&i.tag!==E&&i.tag!==F;)i=i.return;di=i}function cb(t){if(t!==di)return!1;if(!Ho)return m4(t),Ho=!0,!1;if(t.tag!==E&&(t.tag!==x||PV(t.type)&&!Rw(t.type,t.memoizedProps))){var i=po;if(i)if(qw(t))v4(t),Ww();else for(;i;)d4(t,i),i=Wv(i)}return m4(t),t.tag===F?po=pH(t):po=di?Wv(t.stateNode):null,!0}function hH(){return Ho&&po!==null}function v4(t){for(var i=po;i;)f4(t,i),i=Wv(i)}function ah(){di=null,po=null,Ho=!1,Uf=!1}function g4(){sc!==null&&(fD(sc),sc=null)}function pi(){return Ho}function Zw(t){sc===null?sc=[t]:sc.push(t)}var mH=r.ReactCurrentBatchConfig,vH=null;function gH(){return mH.transition}var qo={recordUnsafeLifecycleWarnings:function(t,i){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(t,i){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var yH=function(t){for(var i=null,u=t;u!==null;)u.mode&Kn&&(i=u),u=u.return;return i},Bf=function(t){var i=[];return t.forEach(function(u){i.push(u)}),i.sort().join(", ")},Gv=[],Qv=[],Xv=[],Jv=[],e0=[],t0=[],Vf=new Set;qo.recordUnsafeLifecycleWarnings=function(t,i){Vf.has(t.type)||(typeof i.componentWillMount=="function"&&i.componentWillMount.__suppressDeprecationWarning!==!0&&Gv.push(t),t.mode&Kn&&typeof i.UNSAFE_componentWillMount=="function"&&Qv.push(t),typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Xv.push(t),t.mode&Kn&&typeof i.UNSAFE_componentWillReceiveProps=="function"&&Jv.push(t),typeof i.componentWillUpdate=="function"&&i.componentWillUpdate.__suppressDeprecationWarning!==!0&&e0.push(t),t.mode&Kn&&typeof i.UNSAFE_componentWillUpdate=="function"&&t0.push(t))},qo.flushPendingUnsafeLifecycleWarnings=function(){var t=new Set;Gv.length>0&&(Gv.forEach(function(G){t.add(Ft(G)||"Component"),Vf.add(G.type)}),Gv=[]);var i=new Set;Qv.length>0&&(Qv.forEach(function(G){i.add(Ft(G)||"Component"),Vf.add(G.type)}),Qv=[]);var u=new Set;Xv.length>0&&(Xv.forEach(function(G){u.add(Ft(G)||"Component"),Vf.add(G.type)}),Xv=[]);var d=new Set;Jv.length>0&&(Jv.forEach(function(G){d.add(Ft(G)||"Component"),Vf.add(G.type)}),Jv=[]);var m=new Set;e0.length>0&&(e0.forEach(function(G){m.add(Ft(G)||"Component"),Vf.add(G.type)}),e0=[]);var b=new Set;if(t0.length>0&&(t0.forEach(function(G){b.add(Ft(G)||"Component"),Vf.add(G.type)}),t0=[]),i.size>0){var k=Bf(i);f(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
88
88
 
89
89
  * Move code with side effects to componentDidMount, and set initial state in the constructor.
90
90
 
@@ -113,13 +113,13 @@ Please update the following components: %s`,V)}if(m.size>0){var X=Bf(m);c(`compo
113
113
  * Move data fetching code or side effects to componentDidUpdate.
114
114
  * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
115
115
 
116
- Please update the following components: %s`,X)}};var fb=new Map,g4=new Set;qo.recordLegacyContextWarning=function(t,i){var u=gH(t);if(u===null){f("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!g4.has(t.type)){var d=fb.get(u);(t.type.contextTypes!=null||t.type.childContextTypes!=null||i!==null&&typeof i.getChildContext=="function")&&(d===void 0&&(d=[],fb.set(u,d)),d.push(t))}},qo.flushLegacyContextWarning=function(){fb.forEach(function(t,i){if(t.length!==0){var u=t[0],d=new Set;t.forEach(function(b){d.add(Ft(b)||"Component"),g4.add(b.type)});var m=Bf(d);try{Cn(u),f(`Legacy context API has been detected within a strict-mode tree.
116
+ Please update the following components: %s`,X)}};var fb=new Map,y4=new Set;qo.recordLegacyContextWarning=function(t,i){var u=yH(t);if(u===null){f("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!y4.has(t.type)){var d=fb.get(u);(t.type.contextTypes!=null||t.type.childContextTypes!=null||i!==null&&typeof i.getChildContext=="function")&&(d===void 0&&(d=[],fb.set(u,d)),d.push(t))}},qo.flushLegacyContextWarning=function(){fb.forEach(function(t,i){if(t.length!==0){var u=t[0],d=new Set;t.forEach(function(b){d.add(Ft(b)||"Component"),y4.add(b.type)});var m=Bf(d);try{Cn(u),f(`Legacy context API has been detected within a strict-mode tree.
117
117
 
118
118
  The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
119
119
 
120
120
  Please update the following components: %s
121
121
 
122
- Learn more about this warning here: https://reactjs.org/link/legacy-context`,m)}finally{Er()}}})},qo.discardPendingWarnings=function(){Gv=[],Qv=[],Xv=[],Jv=[],e0=[],t0=[],fb=new Map}}function Wo(t,i){if(t&&t.defaultProps){var u=Xt({},i),d=t.defaultProps;for(var m in d)u[m]===void 0&&(u[m]=d[m]);return u}return i}var Kw=ac(null),Gw;Gw={};var db=null,oh=null,Qw=null,pb=!1;function hb(){db=null,oh=null,Qw=null,pb=!1}function y4(){pb=!0}function b4(){pb=!1}function S4(t,i,u){Pi(Kw,i._currentValue,t),i._currentValue=u,i._currentRenderer!==void 0&&i._currentRenderer!==null&&i._currentRenderer!==Gw&&f("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),i._currentRenderer=Gw}function Xw(t,i){var u=Kw.current;Li(Kw,i),t._currentValue=u}function Jw(t,i,u){for(var d=t;d!==null;){var m=d.alternate;if(Ts(d.childLanes,i)?m!==null&&!Ts(m.childLanes,i)&&(m.childLanes=jt(m.childLanes,i)):(d.childLanes=jt(d.childLanes,i),m!==null&&(m.childLanes=jt(m.childLanes,i))),d===u)break;d=d.return}d!==u&&f("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function yH(t,i,u){bH(t,i,u)}function bH(t,i,u){var d=t.child;for(d!==null&&(d.return=t);d!==null;){var m=void 0,b=d.dependencies;if(b!==null){m=d.child;for(var k=b.firstContext;k!==null;){if(k.context===i){if(d.tag===y){var O=wr(u),A=Vs(An,O);A.tag=vb;var z=d.updateQueue;if(z!==null){var V=z.shared,X=V.pending;X===null?A.next=A:(A.next=X.next,X.next=A),V.pending=A}}d.lanes=jt(d.lanes,u);var G=d.alternate;G!==null&&(G.lanes=jt(G.lanes,u)),Jw(d.return,u,t),b.lanes=jt(b.lanes,u);break}k=k.next}}else if(d.tag===I)m=d.type===t.type?null:d.child;else if(d.tag===ve){var ue=d.return;if(ue===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");ue.lanes=jt(ue.lanes,u);var ce=ue.alternate;ce!==null&&(ce.lanes=jt(ce.lanes,u)),Jw(ue,u,t),m=d.sibling}else m=d.child;if(m!==null)m.return=d;else for(m=d;m!==null;){if(m===t){m=null;break}var Se=m.sibling;if(Se!==null){Se.return=m.return,m=Se;break}m=m.return}d=m}}function lh(t,i){db=t,oh=null,Qw=null;var u=t.dependencies;if(u!==null){var d=u.firstContext;d!==null&&(Mi(u.lanes,i)&&m0(),u.firstContext=null)}}function zr(t){pb&&f("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var i=t._currentValue;if(Qw!==t){var u={context:t,memoizedValue:i,next:null};if(oh===null){if(db===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");oh=u,db.dependencies={lanes:we,firstContext:u}}else oh=oh.next=u}return i}var Hf=null;function eC(t){Hf===null?Hf=[t]:Hf.push(t)}function SH(){if(Hf!==null){for(var t=0;t<Hf.length;t++){var i=Hf[t],u=i.interleaved;if(u!==null){i.interleaved=null;var d=u.next,m=i.pending;if(m!==null){var b=m.next;m.next=d,u.next=b}i.pending=u}}Hf=null}}function E4(t,i,u,d){var m=i.interleaved;return m===null?(u.next=u,eC(i)):(u.next=m.next,m.next=u),i.interleaved=u,mb(t,d)}function EH(t,i,u,d){var m=i.interleaved;m===null?(u.next=u,eC(i)):(u.next=m.next,m.next=u),i.interleaved=u}function xH(t,i,u,d){var m=i.interleaved;return m===null?(u.next=u,eC(i)):(u.next=m.next,m.next=u),i.interleaved=u,mb(t,d)}function _a(t,i){return mb(t,i)}var wH=mb;function mb(t,i){t.lanes=jt(t.lanes,i);var u=t.alternate;u!==null&&(u.lanes=jt(u.lanes,i)),u===null&&(t.flags&(Pn|va))!==yt&&xD(t);for(var d=t,m=t.return;m!==null;)m.childLanes=jt(m.childLanes,i),u=m.alternate,u!==null?u.childLanes=jt(u.childLanes,i):(m.flags&(Pn|va))!==yt&&xD(t),d=m,m=m.return;if(d.tag===E){var b=d.stateNode;return b}else return null}var x4=0,w4=1,vb=2,tC=3,gb=!1,nC,yb;nC=!1,yb=null;function rC(t){var i={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:we},effects:null};t.updateQueue=i}function C4(t,i){var u=i.updateQueue,d=t.updateQueue;if(u===d){var m={baseState:d.baseState,firstBaseUpdate:d.firstBaseUpdate,lastBaseUpdate:d.lastBaseUpdate,shared:d.shared,effects:d.effects};i.updateQueue=m}}function Vs(t,i){var u={eventTime:t,lane:i,tag:x4,payload:null,callback:null,next:null};return u}function uc(t,i,u){var d=t.updateQueue;if(d===null)return null;var m=d.shared;if(yb===m&&!nC&&(f("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),nC=!0),wW()){var b=m.pending;return b===null?i.next=i:(i.next=b.next,b.next=i),m.pending=i,wH(t,u)}else return xH(t,m,i,u)}function bb(t,i,u){var d=i.updateQueue;if(d!==null){var m=d.shared;if(fv(u)){var b=m.lanes;b=pv(b,t.pendingLanes);var k=jt(b,u);m.lanes=k,Vu(t,k)}}}function iC(t,i){var u=t.updateQueue,d=t.alternate;if(d!==null){var m=d.updateQueue;if(u===m){var b=null,k=null,O=u.firstBaseUpdate;if(O!==null){var A=O;do{var z={eventTime:A.eventTime,lane:A.lane,tag:A.tag,payload:A.payload,callback:A.callback,next:null};k===null?b=k=z:(k.next=z,k=z),A=A.next}while(A!==null);k===null?b=k=i:(k.next=i,k=i)}else b=k=i;u={baseState:m.baseState,firstBaseUpdate:b,lastBaseUpdate:k,shared:m.shared,effects:m.effects},t.updateQueue=u;return}}var V=u.lastBaseUpdate;V===null?u.firstBaseUpdate=i:V.next=i,u.lastBaseUpdate=i}function CH(t,i,u,d,m,b){switch(u.tag){case w4:{var k=u.payload;if(typeof k=="function"){y4();var O=k.call(b,d,m);{if(t.mode&Kn){xr(!0);try{k.call(b,d,m)}finally{xr(!1)}}b4()}return O}return k}case tC:t.flags=t.flags&~Lr|Dt;case x4:{var A=u.payload,z;if(typeof A=="function"){y4(),z=A.call(b,d,m);{if(t.mode&Kn){xr(!0);try{A.call(b,d,m)}finally{xr(!1)}}b4()}}else z=A;return z==null?d:Xt({},d,z)}case vb:return gb=!0,d}return d}function Sb(t,i,u,d){var m=t.updateQueue;gb=!1,yb=m.shared;var b=m.firstBaseUpdate,k=m.lastBaseUpdate,O=m.shared.pending;if(O!==null){m.shared.pending=null;var A=O,z=A.next;A.next=null,k===null?b=z:k.next=z,k=A;var V=t.alternate;if(V!==null){var X=V.updateQueue,G=X.lastBaseUpdate;G!==k&&(G===null?X.firstBaseUpdate=z:G.next=z,X.lastBaseUpdate=A)}}if(b!==null){var ue=m.baseState,ce=we,Se=null,tt=null,bt=null,vt=b;do{var an=vt.lane,en=vt.eventTime;if(Ts(d,an)){if(bt!==null){var Ee={eventTime:en,lane:nn,tag:vt.tag,payload:vt.payload,callback:vt.callback,next:null};bt=bt.next=Ee}ue=CH(t,m,vt,ue,i,u);var ae=vt.callback;if(ae!==null&&vt.lane!==nn){t.flags|=io;var je=m.effects;je===null?m.effects=[vt]:je.push(vt)}}else{var ie={eventTime:en,lane:an,tag:vt.tag,payload:vt.payload,callback:vt.callback,next:null};bt===null?(tt=bt=ie,Se=ue):bt=bt.next=ie,ce=jt(ce,an)}if(vt=vt.next,vt===null){if(O=m.shared.pending,O===null)break;var nt=O,Xe=nt.next;nt.next=null,vt=Xe,m.lastBaseUpdate=nt,m.shared.pending=null}}while(!0);bt===null&&(Se=ue),m.baseState=Se,m.firstBaseUpdate=tt,m.lastBaseUpdate=bt;var Tt=m.shared.interleaved;if(Tt!==null){var Nt=Tt;do ce=jt(ce,Nt.lane),Nt=Nt.next;while(Nt!==Tt)}else b===null&&(m.shared.lanes=we);T0(ce),t.lanes=ce,t.memoizedState=ue}yb=null}function kH(t,i){if(typeof t!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+t));t.call(i)}function k4(){gb=!1}function Eb(){return gb}function _4(t,i,u){var d=i.effects;if(i.effects=null,d!==null)for(var m=0;m<d.length;m++){var b=d[m],k=b.callback;k!==null&&(b.callback=null,kH(k,u))}}var aC={},T4=new e.Component().refs,oC,lC,sC,uC,cC,R4,xb,fC,dC,pC;{oC=new Set,lC=new Set,sC=new Set,uC=new Set,fC=new Set,cC=new Set,dC=new Set,pC=new Set;var O4=new Set;xb=function(t,i){if(!(t===null||typeof t=="function")){var u=i+"_"+t;O4.has(u)||(O4.add(u),f("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",i,t))}},R4=function(t,i){if(i===void 0){var u=On(t)||"Component";cC.has(u)||(cC.add(u),f("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",u))}},Object.defineProperty(aC,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(aC)}function hC(t,i,u,d){var m=t.memoizedState,b=u(d,m);{if(t.mode&Kn){xr(!0);try{b=u(d,m)}finally{xr(!1)}}R4(i,b)}var k=b==null?m:Xt({},m,b);if(t.memoizedState=k,t.lanes===we){var O=t.updateQueue;O.baseState=k}}var mC={isMounted:qi,enqueueSetState:function(t,i,u){var d=ha(t),m=Qi(),b=gc(d),k=Vs(m,b);k.payload=i,u!=null&&(xb(u,"setState"),k.callback=u);var O=uc(d,k,b);O!==null&&(Qr(O,d,b,m),bb(O,d,b)),Tl(d,b)},enqueueReplaceState:function(t,i,u){var d=ha(t),m=Qi(),b=gc(d),k=Vs(m,b);k.tag=w4,k.payload=i,u!=null&&(xb(u,"replaceState"),k.callback=u);var O=uc(d,k,b);O!==null&&(Qr(O,d,b,m),bb(O,d,b)),Tl(d,b)},enqueueForceUpdate:function(t,i){var u=ha(t),d=Qi(),m=gc(u),b=Vs(d,m);b.tag=vb,i!=null&&(xb(i,"forceUpdate"),b.callback=i);var k=uc(u,b,m);k!==null&&(Qr(k,u,m,d),bb(k,u,m)),lv(u,m)}};function D4(t,i,u,d,m,b,k){var O=t.stateNode;if(typeof O.shouldComponentUpdate=="function"){var A=O.shouldComponentUpdate(d,b,k);{if(t.mode&Kn){xr(!0);try{A=O.shouldComponentUpdate(d,b,k)}finally{xr(!1)}}A===void 0&&f("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",On(i)||"Component")}return A}return i.prototype&&i.prototype.isPureReactComponent?!gt(u,d)||!gt(m,b):!0}function _H(t,i,u){var d=t.stateNode;{var m=On(i)||"Component",b=d.render;b||(i.prototype&&typeof i.prototype.render=="function"?f("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",m):f("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",m)),d.getInitialState&&!d.getInitialState.isReactClassApproved&&!d.state&&f("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",m),d.getDefaultProps&&!d.getDefaultProps.isReactClassApproved&&f("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",m),d.propTypes&&f("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",m),d.contextType&&f("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",m),d.contextTypes&&f("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",m),i.contextType&&i.contextTypes&&!dC.has(i)&&(dC.add(i),f("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",m)),typeof d.componentShouldUpdate=="function"&&f("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",m),i.prototype&&i.prototype.isPureReactComponent&&typeof d.shouldComponentUpdate<"u"&&f("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",On(i)||"A pure component"),typeof d.componentDidUnmount=="function"&&f("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",m),typeof d.componentDidReceiveProps=="function"&&f("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",m),typeof d.componentWillRecieveProps=="function"&&f("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",m),typeof d.UNSAFE_componentWillRecieveProps=="function"&&f("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",m);var k=d.props!==u;d.props!==void 0&&k&&f("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",m,m),d.defaultProps&&f("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",m,m),typeof d.getSnapshotBeforeUpdate=="function"&&typeof d.componentDidUpdate!="function"&&!sC.has(i)&&(sC.add(i),f("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",On(i))),typeof d.getDerivedStateFromProps=="function"&&f("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",m),typeof d.getDerivedStateFromError=="function"&&f("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",m),typeof i.getSnapshotBeforeUpdate=="function"&&f("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",m);var O=d.state;O&&(typeof O!="object"||Ar(O))&&f("%s.state: must be set to an object or null",m),typeof d.getChildContext=="function"&&typeof i.childContextTypes!="object"&&f("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",m)}}function A4(t,i){i.updater=mC,t.stateNode=i,Lu(i,t),i._reactInternalInstance=aC}function M4(t,i,u){var d=!1,m=Wa,b=Wa,k=i.contextType;if("contextType"in i){var O=k===null||k!==void 0&&k.$$typeof===Ke&&k._context===void 0;if(!O&&!pC.has(i)){pC.add(i);var A="";k===void 0?A=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof k!="object"?A=" However, it is set to a "+typeof k+".":k.$$typeof===Pe?A=" Did you accidentally pass the Context.Provider instead?":k._context!==void 0?A=" Did you accidentally pass the Context.Consumer instead?":A=" However, it is set to an object with keys {"+Object.keys(k).join(", ")+"}.",f("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",On(i)||"Component",A)}}if(typeof k=="object"&&k!==null)b=zr(k);else{m=th(t,i,!0);var z=i.contextTypes;d=z!=null,b=d?nh(t,m):Wa}var V=new i(u,b);if(t.mode&Kn){xr(!0);try{V=new i(u,b)}finally{xr(!1)}}var X=t.memoizedState=V.state!==null&&V.state!==void 0?V.state:null;A4(t,V);{if(typeof i.getDerivedStateFromProps=="function"&&X===null){var G=On(i)||"Component";lC.has(G)||(lC.add(G),f("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",G,V.state===null?"null":"undefined",G))}if(typeof i.getDerivedStateFromProps=="function"||typeof V.getSnapshotBeforeUpdate=="function"){var ue=null,ce=null,Se=null;if(typeof V.componentWillMount=="function"&&V.componentWillMount.__suppressDeprecationWarning!==!0?ue="componentWillMount":typeof V.UNSAFE_componentWillMount=="function"&&(ue="UNSAFE_componentWillMount"),typeof V.componentWillReceiveProps=="function"&&V.componentWillReceiveProps.__suppressDeprecationWarning!==!0?ce="componentWillReceiveProps":typeof V.UNSAFE_componentWillReceiveProps=="function"&&(ce="UNSAFE_componentWillReceiveProps"),typeof V.componentWillUpdate=="function"&&V.componentWillUpdate.__suppressDeprecationWarning!==!0?Se="componentWillUpdate":typeof V.UNSAFE_componentWillUpdate=="function"&&(Se="UNSAFE_componentWillUpdate"),ue!==null||ce!==null||Se!==null){var tt=On(i)||"Component",bt=typeof i.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";uC.has(tt)||(uC.add(tt),f(`Unsafe legacy lifecycles will not be called for components using new component APIs.
122
+ Learn more about this warning here: https://reactjs.org/link/legacy-context`,m)}finally{Er()}}})},qo.discardPendingWarnings=function(){Gv=[],Qv=[],Xv=[],Jv=[],e0=[],t0=[],fb=new Map}}function Wo(t,i){if(t&&t.defaultProps){var u=Xt({},i),d=t.defaultProps;for(var m in d)u[m]===void 0&&(u[m]=d[m]);return u}return i}var Kw=ac(null),Gw;Gw={};var db=null,oh=null,Qw=null,pb=!1;function hb(){db=null,oh=null,Qw=null,pb=!1}function b4(){pb=!0}function S4(){pb=!1}function E4(t,i,u){Pi(Kw,i._currentValue,t),i._currentValue=u,i._currentRenderer!==void 0&&i._currentRenderer!==null&&i._currentRenderer!==Gw&&f("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),i._currentRenderer=Gw}function Xw(t,i){var u=Kw.current;Li(Kw,i),t._currentValue=u}function Jw(t,i,u){for(var d=t;d!==null;){var m=d.alternate;if(Ts(d.childLanes,i)?m!==null&&!Ts(m.childLanes,i)&&(m.childLanes=jt(m.childLanes,i)):(d.childLanes=jt(d.childLanes,i),m!==null&&(m.childLanes=jt(m.childLanes,i))),d===u)break;d=d.return}d!==u&&f("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function bH(t,i,u){SH(t,i,u)}function SH(t,i,u){var d=t.child;for(d!==null&&(d.return=t);d!==null;){var m=void 0,b=d.dependencies;if(b!==null){m=d.child;for(var k=b.firstContext;k!==null;){if(k.context===i){if(d.tag===y){var O=wr(u),A=Vs(An,O);A.tag=vb;var z=d.updateQueue;if(z!==null){var V=z.shared,X=V.pending;X===null?A.next=A:(A.next=X.next,X.next=A),V.pending=A}}d.lanes=jt(d.lanes,u);var G=d.alternate;G!==null&&(G.lanes=jt(G.lanes,u)),Jw(d.return,u,t),b.lanes=jt(b.lanes,u);break}k=k.next}}else if(d.tag===I)m=d.type===t.type?null:d.child;else if(d.tag===ve){var ue=d.return;if(ue===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");ue.lanes=jt(ue.lanes,u);var ce=ue.alternate;ce!==null&&(ce.lanes=jt(ce.lanes,u)),Jw(ue,u,t),m=d.sibling}else m=d.child;if(m!==null)m.return=d;else for(m=d;m!==null;){if(m===t){m=null;break}var Se=m.sibling;if(Se!==null){Se.return=m.return,m=Se;break}m=m.return}d=m}}function lh(t,i){db=t,oh=null,Qw=null;var u=t.dependencies;if(u!==null){var d=u.firstContext;d!==null&&(Mi(u.lanes,i)&&m0(),u.firstContext=null)}}function zr(t){pb&&f("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var i=t._currentValue;if(Qw!==t){var u={context:t,memoizedValue:i,next:null};if(oh===null){if(db===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");oh=u,db.dependencies={lanes:we,firstContext:u}}else oh=oh.next=u}return i}var Hf=null;function eC(t){Hf===null?Hf=[t]:Hf.push(t)}function EH(){if(Hf!==null){for(var t=0;t<Hf.length;t++){var i=Hf[t],u=i.interleaved;if(u!==null){i.interleaved=null;var d=u.next,m=i.pending;if(m!==null){var b=m.next;m.next=d,u.next=b}i.pending=u}}Hf=null}}function x4(t,i,u,d){var m=i.interleaved;return m===null?(u.next=u,eC(i)):(u.next=m.next,m.next=u),i.interleaved=u,mb(t,d)}function xH(t,i,u,d){var m=i.interleaved;m===null?(u.next=u,eC(i)):(u.next=m.next,m.next=u),i.interleaved=u}function wH(t,i,u,d){var m=i.interleaved;return m===null?(u.next=u,eC(i)):(u.next=m.next,m.next=u),i.interleaved=u,mb(t,d)}function _a(t,i){return mb(t,i)}var CH=mb;function mb(t,i){t.lanes=jt(t.lanes,i);var u=t.alternate;u!==null&&(u.lanes=jt(u.lanes,i)),u===null&&(t.flags&(Pn|va))!==yt&&wD(t);for(var d=t,m=t.return;m!==null;)m.childLanes=jt(m.childLanes,i),u=m.alternate,u!==null?u.childLanes=jt(u.childLanes,i):(m.flags&(Pn|va))!==yt&&wD(t),d=m,m=m.return;if(d.tag===E){var b=d.stateNode;return b}else return null}var w4=0,C4=1,vb=2,tC=3,gb=!1,nC,yb;nC=!1,yb=null;function rC(t){var i={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:we},effects:null};t.updateQueue=i}function k4(t,i){var u=i.updateQueue,d=t.updateQueue;if(u===d){var m={baseState:d.baseState,firstBaseUpdate:d.firstBaseUpdate,lastBaseUpdate:d.lastBaseUpdate,shared:d.shared,effects:d.effects};i.updateQueue=m}}function Vs(t,i){var u={eventTime:t,lane:i,tag:w4,payload:null,callback:null,next:null};return u}function uc(t,i,u){var d=t.updateQueue;if(d===null)return null;var m=d.shared;if(yb===m&&!nC&&(f("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),nC=!0),CW()){var b=m.pending;return b===null?i.next=i:(i.next=b.next,b.next=i),m.pending=i,CH(t,u)}else return wH(t,m,i,u)}function bb(t,i,u){var d=i.updateQueue;if(d!==null){var m=d.shared;if(fv(u)){var b=m.lanes;b=pv(b,t.pendingLanes);var k=jt(b,u);m.lanes=k,Vu(t,k)}}}function iC(t,i){var u=t.updateQueue,d=t.alternate;if(d!==null){var m=d.updateQueue;if(u===m){var b=null,k=null,O=u.firstBaseUpdate;if(O!==null){var A=O;do{var z={eventTime:A.eventTime,lane:A.lane,tag:A.tag,payload:A.payload,callback:A.callback,next:null};k===null?b=k=z:(k.next=z,k=z),A=A.next}while(A!==null);k===null?b=k=i:(k.next=i,k=i)}else b=k=i;u={baseState:m.baseState,firstBaseUpdate:b,lastBaseUpdate:k,shared:m.shared,effects:m.effects},t.updateQueue=u;return}}var V=u.lastBaseUpdate;V===null?u.firstBaseUpdate=i:V.next=i,u.lastBaseUpdate=i}function kH(t,i,u,d,m,b){switch(u.tag){case C4:{var k=u.payload;if(typeof k=="function"){b4();var O=k.call(b,d,m);{if(t.mode&Kn){xr(!0);try{k.call(b,d,m)}finally{xr(!1)}}S4()}return O}return k}case tC:t.flags=t.flags&~Lr|Dt;case w4:{var A=u.payload,z;if(typeof A=="function"){b4(),z=A.call(b,d,m);{if(t.mode&Kn){xr(!0);try{A.call(b,d,m)}finally{xr(!1)}}S4()}}else z=A;return z==null?d:Xt({},d,z)}case vb:return gb=!0,d}return d}function Sb(t,i,u,d){var m=t.updateQueue;gb=!1,yb=m.shared;var b=m.firstBaseUpdate,k=m.lastBaseUpdate,O=m.shared.pending;if(O!==null){m.shared.pending=null;var A=O,z=A.next;A.next=null,k===null?b=z:k.next=z,k=A;var V=t.alternate;if(V!==null){var X=V.updateQueue,G=X.lastBaseUpdate;G!==k&&(G===null?X.firstBaseUpdate=z:G.next=z,X.lastBaseUpdate=A)}}if(b!==null){var ue=m.baseState,ce=we,Se=null,tt=null,bt=null,vt=b;do{var an=vt.lane,en=vt.eventTime;if(Ts(d,an)){if(bt!==null){var Ee={eventTime:en,lane:nn,tag:vt.tag,payload:vt.payload,callback:vt.callback,next:null};bt=bt.next=Ee}ue=kH(t,m,vt,ue,i,u);var ae=vt.callback;if(ae!==null&&vt.lane!==nn){t.flags|=io;var je=m.effects;je===null?m.effects=[vt]:je.push(vt)}}else{var ie={eventTime:en,lane:an,tag:vt.tag,payload:vt.payload,callback:vt.callback,next:null};bt===null?(tt=bt=ie,Se=ue):bt=bt.next=ie,ce=jt(ce,an)}if(vt=vt.next,vt===null){if(O=m.shared.pending,O===null)break;var nt=O,Xe=nt.next;nt.next=null,vt=Xe,m.lastBaseUpdate=nt,m.shared.pending=null}}while(!0);bt===null&&(Se=ue),m.baseState=Se,m.firstBaseUpdate=tt,m.lastBaseUpdate=bt;var Tt=m.shared.interleaved;if(Tt!==null){var Nt=Tt;do ce=jt(ce,Nt.lane),Nt=Nt.next;while(Nt!==Tt)}else b===null&&(m.shared.lanes=we);T0(ce),t.lanes=ce,t.memoizedState=ue}yb=null}function _H(t,i){if(typeof t!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+t));t.call(i)}function _4(){gb=!1}function Eb(){return gb}function T4(t,i,u){var d=i.effects;if(i.effects=null,d!==null)for(var m=0;m<d.length;m++){var b=d[m],k=b.callback;k!==null&&(b.callback=null,_H(k,u))}}var aC={},R4=new e.Component().refs,oC,lC,sC,uC,cC,O4,xb,fC,dC,pC;{oC=new Set,lC=new Set,sC=new Set,uC=new Set,fC=new Set,cC=new Set,dC=new Set,pC=new Set;var D4=new Set;xb=function(t,i){if(!(t===null||typeof t=="function")){var u=i+"_"+t;D4.has(u)||(D4.add(u),f("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",i,t))}},O4=function(t,i){if(i===void 0){var u=On(t)||"Component";cC.has(u)||(cC.add(u),f("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",u))}},Object.defineProperty(aC,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(aC)}function hC(t,i,u,d){var m=t.memoizedState,b=u(d,m);{if(t.mode&Kn){xr(!0);try{b=u(d,m)}finally{xr(!1)}}O4(i,b)}var k=b==null?m:Xt({},m,b);if(t.memoizedState=k,t.lanes===we){var O=t.updateQueue;O.baseState=k}}var mC={isMounted:qi,enqueueSetState:function(t,i,u){var d=ha(t),m=Qi(),b=gc(d),k=Vs(m,b);k.payload=i,u!=null&&(xb(u,"setState"),k.callback=u);var O=uc(d,k,b);O!==null&&(Qr(O,d,b,m),bb(O,d,b)),Tl(d,b)},enqueueReplaceState:function(t,i,u){var d=ha(t),m=Qi(),b=gc(d),k=Vs(m,b);k.tag=C4,k.payload=i,u!=null&&(xb(u,"replaceState"),k.callback=u);var O=uc(d,k,b);O!==null&&(Qr(O,d,b,m),bb(O,d,b)),Tl(d,b)},enqueueForceUpdate:function(t,i){var u=ha(t),d=Qi(),m=gc(u),b=Vs(d,m);b.tag=vb,i!=null&&(xb(i,"forceUpdate"),b.callback=i);var k=uc(u,b,m);k!==null&&(Qr(k,u,m,d),bb(k,u,m)),lv(u,m)}};function A4(t,i,u,d,m,b,k){var O=t.stateNode;if(typeof O.shouldComponentUpdate=="function"){var A=O.shouldComponentUpdate(d,b,k);{if(t.mode&Kn){xr(!0);try{A=O.shouldComponentUpdate(d,b,k)}finally{xr(!1)}}A===void 0&&f("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",On(i)||"Component")}return A}return i.prototype&&i.prototype.isPureReactComponent?!gt(u,d)||!gt(m,b):!0}function TH(t,i,u){var d=t.stateNode;{var m=On(i)||"Component",b=d.render;b||(i.prototype&&typeof i.prototype.render=="function"?f("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",m):f("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",m)),d.getInitialState&&!d.getInitialState.isReactClassApproved&&!d.state&&f("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",m),d.getDefaultProps&&!d.getDefaultProps.isReactClassApproved&&f("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",m),d.propTypes&&f("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",m),d.contextType&&f("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",m),d.contextTypes&&f("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",m),i.contextType&&i.contextTypes&&!dC.has(i)&&(dC.add(i),f("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",m)),typeof d.componentShouldUpdate=="function"&&f("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",m),i.prototype&&i.prototype.isPureReactComponent&&typeof d.shouldComponentUpdate<"u"&&f("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",On(i)||"A pure component"),typeof d.componentDidUnmount=="function"&&f("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",m),typeof d.componentDidReceiveProps=="function"&&f("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",m),typeof d.componentWillRecieveProps=="function"&&f("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",m),typeof d.UNSAFE_componentWillRecieveProps=="function"&&f("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",m);var k=d.props!==u;d.props!==void 0&&k&&f("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",m,m),d.defaultProps&&f("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",m,m),typeof d.getSnapshotBeforeUpdate=="function"&&typeof d.componentDidUpdate!="function"&&!sC.has(i)&&(sC.add(i),f("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",On(i))),typeof d.getDerivedStateFromProps=="function"&&f("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",m),typeof d.getDerivedStateFromError=="function"&&f("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",m),typeof i.getSnapshotBeforeUpdate=="function"&&f("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",m);var O=d.state;O&&(typeof O!="object"||Ar(O))&&f("%s.state: must be set to an object or null",m),typeof d.getChildContext=="function"&&typeof i.childContextTypes!="object"&&f("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",m)}}function M4(t,i){i.updater=mC,t.stateNode=i,Lu(i,t),i._reactInternalInstance=aC}function L4(t,i,u){var d=!1,m=Wa,b=Wa,k=i.contextType;if("contextType"in i){var O=k===null||k!==void 0&&k.$$typeof===Ke&&k._context===void 0;if(!O&&!pC.has(i)){pC.add(i);var A="";k===void 0?A=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof k!="object"?A=" However, it is set to a "+typeof k+".":k.$$typeof===Pe?A=" Did you accidentally pass the Context.Provider instead?":k._context!==void 0?A=" Did you accidentally pass the Context.Consumer instead?":A=" However, it is set to an object with keys {"+Object.keys(k).join(", ")+"}.",f("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",On(i)||"Component",A)}}if(typeof k=="object"&&k!==null)b=zr(k);else{m=th(t,i,!0);var z=i.contextTypes;d=z!=null,b=d?nh(t,m):Wa}var V=new i(u,b);if(t.mode&Kn){xr(!0);try{V=new i(u,b)}finally{xr(!1)}}var X=t.memoizedState=V.state!==null&&V.state!==void 0?V.state:null;M4(t,V);{if(typeof i.getDerivedStateFromProps=="function"&&X===null){var G=On(i)||"Component";lC.has(G)||(lC.add(G),f("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",G,V.state===null?"null":"undefined",G))}if(typeof i.getDerivedStateFromProps=="function"||typeof V.getSnapshotBeforeUpdate=="function"){var ue=null,ce=null,Se=null;if(typeof V.componentWillMount=="function"&&V.componentWillMount.__suppressDeprecationWarning!==!0?ue="componentWillMount":typeof V.UNSAFE_componentWillMount=="function"&&(ue="UNSAFE_componentWillMount"),typeof V.componentWillReceiveProps=="function"&&V.componentWillReceiveProps.__suppressDeprecationWarning!==!0?ce="componentWillReceiveProps":typeof V.UNSAFE_componentWillReceiveProps=="function"&&(ce="UNSAFE_componentWillReceiveProps"),typeof V.componentWillUpdate=="function"&&V.componentWillUpdate.__suppressDeprecationWarning!==!0?Se="componentWillUpdate":typeof V.UNSAFE_componentWillUpdate=="function"&&(Se="UNSAFE_componentWillUpdate"),ue!==null||ce!==null||Se!==null){var tt=On(i)||"Component",bt=typeof i.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";uC.has(tt)||(uC.add(tt),f(`Unsafe legacy lifecycles will not be called for components using new component APIs.
123
123
 
124
124
  %s uses %s but also contains the following legacy lifecycles:%s%s%s
125
125
 
@@ -127,11 +127,11 @@ The above lifecycles should be removed. Learn more about this warning here:
127
127
  https://reactjs.org/link/unsafe-component-lifecycles`,tt,bt,ue!==null?`
128
128
  `+ue:"",ce!==null?`
129
129
  `+ce:"",Se!==null?`
130
- `+Se:""))}}}return d&&n4(t,m,b),V}function TH(t,i){var u=i.state;typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),u!==i.state&&(f("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Ft(t)||"Component"),mC.enqueueReplaceState(i,i.state,null))}function L4(t,i,u,d){var m=i.state;if(typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(u,d),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(u,d),i.state!==m){{var b=Ft(t)||"Component";oC.has(b)||(oC.add(b),f("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",b))}mC.enqueueReplaceState(i,i.state,null)}}function vC(t,i,u,d){_H(t,i,u);var m=t.stateNode;m.props=u,m.state=t.memoizedState,m.refs=T4,rC(t);var b=i.contextType;if(typeof b=="object"&&b!==null)m.context=zr(b);else{var k=th(t,i,!0);m.context=nh(t,k)}{if(m.state===u){var O=On(i)||"Component";fC.has(O)||(fC.add(O),f("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",O))}t.mode&Kn&&qo.recordLegacyContextWarning(t,m),qo.recordUnsafeLifecycleWarnings(t,m)}m.state=t.memoizedState;var A=i.getDerivedStateFromProps;if(typeof A=="function"&&(hC(t,i,A,u),m.state=t.memoizedState),typeof i.getDerivedStateFromProps!="function"&&typeof m.getSnapshotBeforeUpdate!="function"&&(typeof m.UNSAFE_componentWillMount=="function"||typeof m.componentWillMount=="function")&&(TH(t,m),Sb(t,u,m,d),m.state=t.memoizedState),typeof m.componentDidMount=="function"){var z=zt;z|=_i,(t.mode&ba)!==Et&&(z|=Ti),t.flags|=z}}function RH(t,i,u,d){var m=t.stateNode,b=t.memoizedProps;m.props=b;var k=m.context,O=i.contextType,A=Wa;if(typeof O=="object"&&O!==null)A=zr(O);else{var z=th(t,i,!0);A=nh(t,z)}var V=i.getDerivedStateFromProps,X=typeof V=="function"||typeof m.getSnapshotBeforeUpdate=="function";!X&&(typeof m.UNSAFE_componentWillReceiveProps=="function"||typeof m.componentWillReceiveProps=="function")&&(b!==u||k!==A)&&L4(t,m,u,A),k4();var G=t.memoizedState,ue=m.state=G;if(Sb(t,u,m,d),ue=t.memoizedState,b===u&&G===ue&&!rb()&&!Eb()){if(typeof m.componentDidMount=="function"){var ce=zt;ce|=_i,(t.mode&ba)!==Et&&(ce|=Ti),t.flags|=ce}return!1}typeof V=="function"&&(hC(t,i,V,u),ue=t.memoizedState);var Se=Eb()||D4(t,i,b,u,G,ue,A);if(Se){if(!X&&(typeof m.UNSAFE_componentWillMount=="function"||typeof m.componentWillMount=="function")&&(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"){var tt=zt;tt|=_i,(t.mode&ba)!==Et&&(tt|=Ti),t.flags|=tt}}else{if(typeof m.componentDidMount=="function"){var bt=zt;bt|=_i,(t.mode&ba)!==Et&&(bt|=Ti),t.flags|=bt}t.memoizedProps=u,t.memoizedState=ue}return m.props=u,m.state=ue,m.context=A,Se}function OH(t,i,u,d,m){var b=i.stateNode;C4(t,i);var k=i.memoizedProps,O=i.type===i.elementType?k:Wo(i.type,k);b.props=O;var A=i.pendingProps,z=b.context,V=u.contextType,X=Wa;if(typeof V=="object"&&V!==null)X=zr(V);else{var G=th(i,u,!0);X=nh(i,G)}var ue=u.getDerivedStateFromProps,ce=typeof ue=="function"||typeof b.getSnapshotBeforeUpdate=="function";!ce&&(typeof b.UNSAFE_componentWillReceiveProps=="function"||typeof b.componentWillReceiveProps=="function")&&(k!==A||z!==X)&&L4(i,b,d,X),k4();var Se=i.memoizedState,tt=b.state=Se;if(Sb(i,d,b,m),tt=i.memoizedState,k===A&&Se===tt&&!rb()&&!Eb()&&!Te)return typeof b.componentDidUpdate=="function"&&(k!==t.memoizedProps||Se!==t.memoizedState)&&(i.flags|=zt),typeof b.getSnapshotBeforeUpdate=="function"&&(k!==t.memoizedProps||Se!==t.memoizedState)&&(i.flags|=ma),!1;typeof ue=="function"&&(hC(i,u,ue,d),tt=i.memoizedState);var bt=Eb()||D4(i,u,O,d,Se,tt,X)||Te;return bt?(!ce&&(typeof b.UNSAFE_componentWillUpdate=="function"||typeof b.componentWillUpdate=="function")&&(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(d,tt,X),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(d,tt,X)),typeof b.componentDidUpdate=="function"&&(i.flags|=zt),typeof b.getSnapshotBeforeUpdate=="function"&&(i.flags|=ma)):(typeof b.componentDidUpdate=="function"&&(k!==t.memoizedProps||Se!==t.memoizedState)&&(i.flags|=zt),typeof b.getSnapshotBeforeUpdate=="function"&&(k!==t.memoizedProps||Se!==t.memoizedState)&&(i.flags|=ma),i.memoizedProps=d,i.memoizedState=tt),b.props=d,b.state=tt,b.context=X,bt}var gC,yC,bC,SC,EC,P4=function(t,i){};gC=!1,yC=!1,bC={},SC={},EC={},P4=function(t,i){if(!(t===null||typeof t!="object")&&!(!t._store||t._store.validated||t.key!=null)){if(typeof t._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");t._store.validated=!0;var u=Ft(i)||"Component";SC[u]||(SC[u]=!0,f('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function n0(t,i,u){var d=u.ref;if(d!==null&&typeof d!="function"&&typeof d!="object"){if((t.mode&Kn||_e)&&!(u._owner&&u._self&&u._owner.stateNode!==u._self)){var m=Ft(t)||"Component";bC[m]||(f('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',d),bC[m]=!0)}if(u._owner){var b=u._owner,k;if(b){var O=b;if(O.tag!==y)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");k=O.stateNode}if(!k)throw new Error("Missing owner for string ref "+d+". This error is likely caused by a bug in React. Please file an issue.");var A=k;ar(d,"ref");var z=""+d;if(i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===z)return i.ref;var V=function(X){var G=A.refs;G===T4&&(G=A.refs={}),X===null?delete G[z]:G[z]=X};return V._stringRef=z,V}else{if(typeof d!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!u._owner)throw new Error("Element ref was specified as a string ("+d+`) but no owner was set. This could happen for one of the following reasons:
130
+ `+Se:""))}}}return d&&r4(t,m,b),V}function RH(t,i){var u=i.state;typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),u!==i.state&&(f("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Ft(t)||"Component"),mC.enqueueReplaceState(i,i.state,null))}function P4(t,i,u,d){var m=i.state;if(typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(u,d),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(u,d),i.state!==m){{var b=Ft(t)||"Component";oC.has(b)||(oC.add(b),f("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",b))}mC.enqueueReplaceState(i,i.state,null)}}function vC(t,i,u,d){TH(t,i,u);var m=t.stateNode;m.props=u,m.state=t.memoizedState,m.refs=R4,rC(t);var b=i.contextType;if(typeof b=="object"&&b!==null)m.context=zr(b);else{var k=th(t,i,!0);m.context=nh(t,k)}{if(m.state===u){var O=On(i)||"Component";fC.has(O)||(fC.add(O),f("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",O))}t.mode&Kn&&qo.recordLegacyContextWarning(t,m),qo.recordUnsafeLifecycleWarnings(t,m)}m.state=t.memoizedState;var A=i.getDerivedStateFromProps;if(typeof A=="function"&&(hC(t,i,A,u),m.state=t.memoizedState),typeof i.getDerivedStateFromProps!="function"&&typeof m.getSnapshotBeforeUpdate!="function"&&(typeof m.UNSAFE_componentWillMount=="function"||typeof m.componentWillMount=="function")&&(RH(t,m),Sb(t,u,m,d),m.state=t.memoizedState),typeof m.componentDidMount=="function"){var z=zt;z|=_i,(t.mode&ba)!==Et&&(z|=Ti),t.flags|=z}}function OH(t,i,u,d){var m=t.stateNode,b=t.memoizedProps;m.props=b;var k=m.context,O=i.contextType,A=Wa;if(typeof O=="object"&&O!==null)A=zr(O);else{var z=th(t,i,!0);A=nh(t,z)}var V=i.getDerivedStateFromProps,X=typeof V=="function"||typeof m.getSnapshotBeforeUpdate=="function";!X&&(typeof m.UNSAFE_componentWillReceiveProps=="function"||typeof m.componentWillReceiveProps=="function")&&(b!==u||k!==A)&&P4(t,m,u,A),_4();var G=t.memoizedState,ue=m.state=G;if(Sb(t,u,m,d),ue=t.memoizedState,b===u&&G===ue&&!rb()&&!Eb()){if(typeof m.componentDidMount=="function"){var ce=zt;ce|=_i,(t.mode&ba)!==Et&&(ce|=Ti),t.flags|=ce}return!1}typeof V=="function"&&(hC(t,i,V,u),ue=t.memoizedState);var Se=Eb()||A4(t,i,b,u,G,ue,A);if(Se){if(!X&&(typeof m.UNSAFE_componentWillMount=="function"||typeof m.componentWillMount=="function")&&(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"){var tt=zt;tt|=_i,(t.mode&ba)!==Et&&(tt|=Ti),t.flags|=tt}}else{if(typeof m.componentDidMount=="function"){var bt=zt;bt|=_i,(t.mode&ba)!==Et&&(bt|=Ti),t.flags|=bt}t.memoizedProps=u,t.memoizedState=ue}return m.props=u,m.state=ue,m.context=A,Se}function DH(t,i,u,d,m){var b=i.stateNode;k4(t,i);var k=i.memoizedProps,O=i.type===i.elementType?k:Wo(i.type,k);b.props=O;var A=i.pendingProps,z=b.context,V=u.contextType,X=Wa;if(typeof V=="object"&&V!==null)X=zr(V);else{var G=th(i,u,!0);X=nh(i,G)}var ue=u.getDerivedStateFromProps,ce=typeof ue=="function"||typeof b.getSnapshotBeforeUpdate=="function";!ce&&(typeof b.UNSAFE_componentWillReceiveProps=="function"||typeof b.componentWillReceiveProps=="function")&&(k!==A||z!==X)&&P4(i,b,d,X),_4();var Se=i.memoizedState,tt=b.state=Se;if(Sb(i,d,b,m),tt=i.memoizedState,k===A&&Se===tt&&!rb()&&!Eb()&&!Te)return typeof b.componentDidUpdate=="function"&&(k!==t.memoizedProps||Se!==t.memoizedState)&&(i.flags|=zt),typeof b.getSnapshotBeforeUpdate=="function"&&(k!==t.memoizedProps||Se!==t.memoizedState)&&(i.flags|=ma),!1;typeof ue=="function"&&(hC(i,u,ue,d),tt=i.memoizedState);var bt=Eb()||A4(i,u,O,d,Se,tt,X)||Te;return bt?(!ce&&(typeof b.UNSAFE_componentWillUpdate=="function"||typeof b.componentWillUpdate=="function")&&(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(d,tt,X),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(d,tt,X)),typeof b.componentDidUpdate=="function"&&(i.flags|=zt),typeof b.getSnapshotBeforeUpdate=="function"&&(i.flags|=ma)):(typeof b.componentDidUpdate=="function"&&(k!==t.memoizedProps||Se!==t.memoizedState)&&(i.flags|=zt),typeof b.getSnapshotBeforeUpdate=="function"&&(k!==t.memoizedProps||Se!==t.memoizedState)&&(i.flags|=ma),i.memoizedProps=d,i.memoizedState=tt),b.props=d,b.state=tt,b.context=X,bt}var gC,yC,bC,SC,EC,N4=function(t,i){};gC=!1,yC=!1,bC={},SC={},EC={},N4=function(t,i){if(!(t===null||typeof t!="object")&&!(!t._store||t._store.validated||t.key!=null)){if(typeof t._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");t._store.validated=!0;var u=Ft(i)||"Component";SC[u]||(SC[u]=!0,f('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function n0(t,i,u){var d=u.ref;if(d!==null&&typeof d!="function"&&typeof d!="object"){if((t.mode&Kn||_e)&&!(u._owner&&u._self&&u._owner.stateNode!==u._self)){var m=Ft(t)||"Component";bC[m]||(f('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',d),bC[m]=!0)}if(u._owner){var b=u._owner,k;if(b){var O=b;if(O.tag!==y)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");k=O.stateNode}if(!k)throw new Error("Missing owner for string ref "+d+". This error is likely caused by a bug in React. Please file an issue.");var A=k;ar(d,"ref");var z=""+d;if(i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===z)return i.ref;var V=function(X){var G=A.refs;G===R4&&(G=A.refs={}),X===null?delete G[z]:G[z]=X};return V._stringRef=z,V}else{if(typeof d!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!u._owner)throw new Error("Element ref was specified as a string ("+d+`) but no owner was set. This could happen for one of the following reasons:
131
131
  1. You may be adding a ref to a function component
132
132
  2. You may be adding a ref to a component that was not created inside a component's render method
133
133
  3. You have multiple copies of React loaded
134
- See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return d}function wb(t,i){var u=Object.prototype.toString.call(i);throw new Error("Objects are not valid as a React child (found: "+(u==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":u)+"). If you meant to render a collection of children, use an array instead.")}function Cb(t){{var i=Ft(t)||"Component";if(EC[i])return;EC[i]=!0,f("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function N4(t){var i=t._payload,u=t._init;return u(i)}function F4(t){function i(ie,Ee){if(t){var ae=ie.deletions;ae===null?(ie.deletions=[Ee],ie.flags|=pn):ae.push(Ee)}}function u(ie,Ee){if(!t)return null;for(var ae=Ee;ae!==null;)i(ie,ae),ae=ae.sibling;return null}function d(ie,Ee){for(var ae=new Map,je=Ee;je!==null;)je.key!==null?ae.set(je.key,je):ae.set(je.index,je),je=je.sibling;return ae}function m(ie,Ee){var ae=Xf(ie,Ee);return ae.index=0,ae.sibling=null,ae}function b(ie,Ee,ae){if(ie.index=ae,!t)return ie.flags|=Km,Ee;var je=ie.alternate;if(je!==null){var nt=je.index;return nt<Ee?(ie.flags|=Pn,Ee):nt}else return ie.flags|=Pn,Ee}function k(ie){return t&&ie.alternate===null&&(ie.flags|=Pn),ie}function O(ie,Ee,ae,je){if(Ee===null||Ee.tag!==R){var nt=Z2(ae,ie.mode,je);return nt.return=ie,nt}else{var Xe=m(Ee,ae);return Xe.return=ie,Xe}}function A(ie,Ee,ae,je){var nt=ae.type;if(nt===Ia)return V(ie,Ee,ae.props.children,je,ae.key);if(Ee!==null&&(Ee.elementType===nt||_D(Ee,ae)||typeof nt=="object"&&nt!==null&&nt.$$typeof===xt&&N4(nt)===Ee.type)){var Xe=m(Ee,ae.props);return Xe.ref=n0(ie,Ee,ae),Xe.return=ie,Xe._debugSource=ae._source,Xe._debugOwner=ae._owner,Xe}var Tt=Y2(ae,ie.mode,je);return Tt.ref=n0(ie,Ee,ae),Tt.return=ie,Tt}function z(ie,Ee,ae,je){if(Ee===null||Ee.tag!==C||Ee.stateNode.containerInfo!==ae.containerInfo||Ee.stateNode.implementation!==ae.implementation){var nt=K2(ae,ie.mode,je);return nt.return=ie,nt}else{var Xe=m(Ee,ae.children||[]);return Xe.return=ie,Xe}}function V(ie,Ee,ae,je,nt){if(Ee===null||Ee.tag!==T){var Xe=bc(ae,ie.mode,je,nt);return Xe.return=ie,Xe}else{var Tt=m(Ee,ae);return Tt.return=ie,Tt}}function X(ie,Ee,ae){if(typeof Ee=="string"&&Ee!==""||typeof Ee=="number"){var je=Z2(""+Ee,ie.mode,ae);return je.return=ie,je}if(typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case ul:{var nt=Y2(Ee,ie.mode,ae);return nt.ref=n0(ie,null,Ee),nt.return=ie,nt}case Ui:{var Xe=K2(Ee,ie.mode,ae);return Xe.return=ie,Xe}case xt:{var Tt=Ee._payload,Nt=Ee._init;return X(ie,Nt(Tt),ae)}}if(Ar(Ee)||_o(Ee)){var _n=bc(Ee,ie.mode,ae,null);return _n.return=ie,_n}wb(ie,Ee)}return typeof Ee=="function"&&Cb(ie),null}function G(ie,Ee,ae,je){var nt=Ee!==null?Ee.key:null;if(typeof ae=="string"&&ae!==""||typeof ae=="number")return nt!==null?null:O(ie,Ee,""+ae,je);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case ul:return ae.key===nt?A(ie,Ee,ae,je):null;case Ui:return ae.key===nt?z(ie,Ee,ae,je):null;case xt:{var Xe=ae._payload,Tt=ae._init;return G(ie,Ee,Tt(Xe),je)}}if(Ar(ae)||_o(ae))return nt!==null?null:V(ie,Ee,ae,je,null);wb(ie,ae)}return typeof ae=="function"&&Cb(ie),null}function ue(ie,Ee,ae,je,nt){if(typeof je=="string"&&je!==""||typeof je=="number"){var Xe=ie.get(ae)||null;return O(Ee,Xe,""+je,nt)}if(typeof je=="object"&&je!==null){switch(je.$$typeof){case ul:{var Tt=ie.get(je.key===null?ae:je.key)||null;return A(Ee,Tt,je,nt)}case Ui:{var Nt=ie.get(je.key===null?ae:je.key)||null;return z(Ee,Nt,je,nt)}case xt:var _n=je._payload,cn=je._init;return ue(ie,Ee,ae,cn(_n),nt)}if(Ar(je)||_o(je)){var Tr=ie.get(ae)||null;return V(Ee,Tr,je,nt,null)}wb(Ee,je)}return typeof je=="function"&&Cb(Ee),null}function ce(ie,Ee,ae){{if(typeof ie!="object"||ie===null)return Ee;switch(ie.$$typeof){case ul:case Ui:P4(ie,ae);var je=ie.key;if(typeof je!="string")break;if(Ee===null){Ee=new Set,Ee.add(je);break}if(!Ee.has(je)){Ee.add(je);break}f("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",je);break;case xt:var nt=ie._payload,Xe=ie._init;ce(Xe(nt),Ee,ae);break}}return Ee}function Se(ie,Ee,ae,je){for(var nt=null,Xe=0;Xe<ae.length;Xe++){var Tt=ae[Xe];nt=ce(Tt,nt,ie)}for(var Nt=null,_n=null,cn=Ee,Tr=0,fn=0,yr=null;cn!==null&&fn<ae.length;fn++){cn.index>fn?(yr=cn,cn=null):yr=cn.sibling;var Fi=G(ie,cn,ae[fn],je);if(Fi===null){cn===null&&(cn=yr);break}t&&cn&&Fi.alternate===null&&i(ie,cn),Tr=b(Fi,Tr,fn),_n===null?Nt=Fi:_n.sibling=Fi,_n=Fi,cn=yr}if(fn===ae.length){if(u(ie,cn),pi()){var Si=fn;jf(ie,Si)}return Nt}if(cn===null){for(;fn<ae.length;fn++){var Za=X(ie,ae[fn],je);Za!==null&&(Tr=b(Za,Tr,fn),_n===null?Nt=Za:_n.sibling=Za,_n=Za)}if(pi()){var Xi=fn;jf(ie,Xi)}return Nt}for(var Ji=d(ie,cn);fn<ae.length;fn++){var Ii=ue(Ji,ie,fn,ae[fn],je);Ii!==null&&(t&&Ii.alternate!==null&&Ji.delete(Ii.key===null?fn:Ii.key),Tr=b(Ii,Tr,fn),_n===null?Nt=Ii:_n.sibling=Ii,_n=Ii)}if(t&&Ji.forEach(function(Ch){return i(ie,Ch)}),pi()){var Ks=fn;jf(ie,Ks)}return Nt}function tt(ie,Ee,ae,je){var nt=_o(ae);if(typeof nt!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&ae[Symbol.toStringTag]==="Generator"&&(yC||f("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),yC=!0),ae.entries===nt&&(gC||f("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),gC=!0);var Xe=nt.call(ae);if(Xe)for(var Tt=null,Nt=Xe.next();!Nt.done;Nt=Xe.next()){var _n=Nt.value;Tt=ce(_n,Tt,ie)}}var cn=nt.call(ae);if(cn==null)throw new Error("An iterable object provided no iterator.");for(var Tr=null,fn=null,yr=Ee,Fi=0,Si=0,Za=null,Xi=cn.next();yr!==null&&!Xi.done;Si++,Xi=cn.next()){yr.index>Si?(Za=yr,yr=null):Za=yr.sibling;var Ji=G(ie,yr,Xi.value,je);if(Ji===null){yr===null&&(yr=Za);break}t&&yr&&Ji.alternate===null&&i(ie,yr),Fi=b(Ji,Fi,Si),fn===null?Tr=Ji:fn.sibling=Ji,fn=Ji,yr=Za}if(Xi.done){if(u(ie,yr),pi()){var Ii=Si;jf(ie,Ii)}return Tr}if(yr===null){for(;!Xi.done;Si++,Xi=cn.next()){var Ks=X(ie,Xi.value,je);Ks!==null&&(Fi=b(Ks,Fi,Si),fn===null?Tr=Ks:fn.sibling=Ks,fn=Ks)}if(pi()){var Ch=Si;jf(ie,Ch)}return Tr}for(var M0=d(ie,yr);!Xi.done;Si++,Xi=cn.next()){var ql=ue(M0,ie,Si,Xi.value,je);ql!==null&&(t&&ql.alternate!==null&&M0.delete(ql.key===null?Si:ql.key),Fi=b(ql,Fi,Si),fn===null?Tr=ql:fn.sibling=ql,fn=ql)}if(t&&M0.forEach(function(VY){return i(ie,VY)}),pi()){var BY=Si;jf(ie,BY)}return Tr}function bt(ie,Ee,ae,je){if(Ee!==null&&Ee.tag===R){u(ie,Ee.sibling);var nt=m(Ee,ae);return nt.return=ie,nt}u(ie,Ee);var Xe=Z2(ae,ie.mode,je);return Xe.return=ie,Xe}function vt(ie,Ee,ae,je){for(var nt=ae.key,Xe=Ee;Xe!==null;){if(Xe.key===nt){var Tt=ae.type;if(Tt===Ia){if(Xe.tag===T){u(ie,Xe.sibling);var Nt=m(Xe,ae.props.children);return Nt.return=ie,Nt._debugSource=ae._source,Nt._debugOwner=ae._owner,Nt}}else if(Xe.elementType===Tt||_D(Xe,ae)||typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===xt&&N4(Tt)===Xe.type){u(ie,Xe.sibling);var _n=m(Xe,ae.props);return _n.ref=n0(ie,Xe,ae),_n.return=ie,_n._debugSource=ae._source,_n._debugOwner=ae._owner,_n}u(ie,Xe);break}else i(ie,Xe);Xe=Xe.sibling}if(ae.type===Ia){var cn=bc(ae.props.children,ie.mode,je,ae.key);return cn.return=ie,cn}else{var Tr=Y2(ae,ie.mode,je);return Tr.ref=n0(ie,Ee,ae),Tr.return=ie,Tr}}function an(ie,Ee,ae,je){for(var nt=ae.key,Xe=Ee;Xe!==null;){if(Xe.key===nt)if(Xe.tag===C&&Xe.stateNode.containerInfo===ae.containerInfo&&Xe.stateNode.implementation===ae.implementation){u(ie,Xe.sibling);var Tt=m(Xe,ae.children||[]);return Tt.return=ie,Tt}else{u(ie,Xe);break}else i(ie,Xe);Xe=Xe.sibling}var Nt=K2(ae,ie.mode,je);return Nt.return=ie,Nt}function en(ie,Ee,ae,je){var nt=typeof ae=="object"&&ae!==null&&ae.type===Ia&&ae.key===null;if(nt&&(ae=ae.props.children),typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case ul:return k(vt(ie,Ee,ae,je));case Ui:return k(an(ie,Ee,ae,je));case xt:var Xe=ae._payload,Tt=ae._init;return en(ie,Ee,Tt(Xe),je)}if(Ar(ae))return Se(ie,Ee,ae,je);if(_o(ae))return tt(ie,Ee,ae,je);wb(ie,ae)}return typeof ae=="string"&&ae!==""||typeof ae=="number"?k(bt(ie,Ee,""+ae,je)):(typeof ae=="function"&&Cb(ie),u(ie,Ee))}return en}var sh=F4(!0),I4=F4(!1);function DH(t,i){if(t!==null&&i.child!==t.child)throw new Error("Resuming work not yet implemented.");if(i.child!==null){var u=i.child,d=Xf(u,u.pendingProps);for(i.child=d,d.return=i;u.sibling!==null;)u=u.sibling,d=d.sibling=Xf(u,u.pendingProps),d.return=i;d.sibling=null}}function AH(t,i){for(var u=t.child;u!==null;)oY(u,i),u=u.sibling}var r0={},cc=ac(r0),i0=ac(r0),kb=ac(r0);function _b(t){if(t===r0)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return t}function z4(){var t=_b(kb.current);return t}function xC(t,i){Pi(kb,i,t),Pi(i0,t,t),Pi(cc,r0,t);var u=qB(i);Li(cc,t),Pi(cc,u,t)}function uh(t){Li(cc,t),Li(i0,t),Li(kb,t)}function wC(){var t=_b(cc.current);return t}function j4(t){_b(kb.current);var i=_b(cc.current),u=WB(i,t.type);i!==u&&(Pi(i0,t,t),Pi(cc,u,t))}function CC(t){i0.current===t&&(Li(cc,t),Li(i0,t))}var MH=0,$4=1,U4=1,a0=2,Yo=ac(MH);function kC(t,i){return(t&i)!==0}function ch(t){return t&$4}function _C(t,i){return t&$4|i}function LH(t,i){return t|i}function fc(t,i){Pi(Yo,i,t)}function fh(t){Li(Yo,t)}function PH(t,i){var u=t.memoizedState;return u!==null?u.dehydrated!==null:(t.memoizedProps,!0)}function Tb(t){for(var i=t;i!==null;){if(i.tag===F){var u=i.memoizedState;if(u!==null){var d=u.dehydrated;if(d===null||QR(d)||Mw(d))return i}}else if(i.tag===ee&&i.memoizedProps.revealOrder!==void 0){var m=(i.flags&Dt)!==yt;if(m)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)return null;for(;i.sibling===null;){if(i.return===null||i.return===t)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Ta=0,Hr=1,zl=2,qr=4,hi=8,TC=[];function RC(){for(var t=0;t<TC.length;t++){var i=TC[t];i._workInProgressVersionPrimary=null}TC.length=0}function NH(t,i){var u=i._getVersion,d=u(i._source);t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[i,d]:t.mutableSourceEagerHydrationData.push(i,d)}var et=r.ReactCurrentDispatcher,o0=r.ReactCurrentBatchConfig,OC,dh;OC=new Set;var qf=we,kn=null,Wr=null,Yr=null,Rb=!1,l0=!1,s0=0,FH=0,IH=25,Ce=null,ho=null,dc=-1,DC=!1;function vn(){{var t=Ce;ho===null?ho=[t]:ho.push(t)}}function Ze(){{var t=Ce;ho!==null&&(dc++,ho[dc]!==t&&zH(t))}}function ph(t){t!=null&&!Ar(t)&&f("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Ce,typeof t)}function zH(t){{var i=Ft(kn);if(!OC.has(i)&&(OC.add(i),ho!==null)){for(var u="",d=30,m=0;m<=dc;m++){for(var b=ho[m],k=m===dc?t:b,O=m+1+". "+b;O.length<d;)O+=" ";O+=k+`
134
+ See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return d}function wb(t,i){var u=Object.prototype.toString.call(i);throw new Error("Objects are not valid as a React child (found: "+(u==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":u)+"). If you meant to render a collection of children, use an array instead.")}function Cb(t){{var i=Ft(t)||"Component";if(EC[i])return;EC[i]=!0,f("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function F4(t){var i=t._payload,u=t._init;return u(i)}function I4(t){function i(ie,Ee){if(t){var ae=ie.deletions;ae===null?(ie.deletions=[Ee],ie.flags|=pn):ae.push(Ee)}}function u(ie,Ee){if(!t)return null;for(var ae=Ee;ae!==null;)i(ie,ae),ae=ae.sibling;return null}function d(ie,Ee){for(var ae=new Map,je=Ee;je!==null;)je.key!==null?ae.set(je.key,je):ae.set(je.index,je),je=je.sibling;return ae}function m(ie,Ee){var ae=Xf(ie,Ee);return ae.index=0,ae.sibling=null,ae}function b(ie,Ee,ae){if(ie.index=ae,!t)return ie.flags|=Km,Ee;var je=ie.alternate;if(je!==null){var nt=je.index;return nt<Ee?(ie.flags|=Pn,Ee):nt}else return ie.flags|=Pn,Ee}function k(ie){return t&&ie.alternate===null&&(ie.flags|=Pn),ie}function O(ie,Ee,ae,je){if(Ee===null||Ee.tag!==R){var nt=Z2(ae,ie.mode,je);return nt.return=ie,nt}else{var Xe=m(Ee,ae);return Xe.return=ie,Xe}}function A(ie,Ee,ae,je){var nt=ae.type;if(nt===Ia)return V(ie,Ee,ae.props.children,je,ae.key);if(Ee!==null&&(Ee.elementType===nt||TD(Ee,ae)||typeof nt=="object"&&nt!==null&&nt.$$typeof===xt&&F4(nt)===Ee.type)){var Xe=m(Ee,ae.props);return Xe.ref=n0(ie,Ee,ae),Xe.return=ie,Xe._debugSource=ae._source,Xe._debugOwner=ae._owner,Xe}var Tt=Y2(ae,ie.mode,je);return Tt.ref=n0(ie,Ee,ae),Tt.return=ie,Tt}function z(ie,Ee,ae,je){if(Ee===null||Ee.tag!==C||Ee.stateNode.containerInfo!==ae.containerInfo||Ee.stateNode.implementation!==ae.implementation){var nt=K2(ae,ie.mode,je);return nt.return=ie,nt}else{var Xe=m(Ee,ae.children||[]);return Xe.return=ie,Xe}}function V(ie,Ee,ae,je,nt){if(Ee===null||Ee.tag!==T){var Xe=bc(ae,ie.mode,je,nt);return Xe.return=ie,Xe}else{var Tt=m(Ee,ae);return Tt.return=ie,Tt}}function X(ie,Ee,ae){if(typeof Ee=="string"&&Ee!==""||typeof Ee=="number"){var je=Z2(""+Ee,ie.mode,ae);return je.return=ie,je}if(typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case ul:{var nt=Y2(Ee,ie.mode,ae);return nt.ref=n0(ie,null,Ee),nt.return=ie,nt}case Ui:{var Xe=K2(Ee,ie.mode,ae);return Xe.return=ie,Xe}case xt:{var Tt=Ee._payload,Nt=Ee._init;return X(ie,Nt(Tt),ae)}}if(Ar(Ee)||_o(Ee)){var _n=bc(Ee,ie.mode,ae,null);return _n.return=ie,_n}wb(ie,Ee)}return typeof Ee=="function"&&Cb(ie),null}function G(ie,Ee,ae,je){var nt=Ee!==null?Ee.key:null;if(typeof ae=="string"&&ae!==""||typeof ae=="number")return nt!==null?null:O(ie,Ee,""+ae,je);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case ul:return ae.key===nt?A(ie,Ee,ae,je):null;case Ui:return ae.key===nt?z(ie,Ee,ae,je):null;case xt:{var Xe=ae._payload,Tt=ae._init;return G(ie,Ee,Tt(Xe),je)}}if(Ar(ae)||_o(ae))return nt!==null?null:V(ie,Ee,ae,je,null);wb(ie,ae)}return typeof ae=="function"&&Cb(ie),null}function ue(ie,Ee,ae,je,nt){if(typeof je=="string"&&je!==""||typeof je=="number"){var Xe=ie.get(ae)||null;return O(Ee,Xe,""+je,nt)}if(typeof je=="object"&&je!==null){switch(je.$$typeof){case ul:{var Tt=ie.get(je.key===null?ae:je.key)||null;return A(Ee,Tt,je,nt)}case Ui:{var Nt=ie.get(je.key===null?ae:je.key)||null;return z(Ee,Nt,je,nt)}case xt:var _n=je._payload,cn=je._init;return ue(ie,Ee,ae,cn(_n),nt)}if(Ar(je)||_o(je)){var Tr=ie.get(ae)||null;return V(Ee,Tr,je,nt,null)}wb(Ee,je)}return typeof je=="function"&&Cb(Ee),null}function ce(ie,Ee,ae){{if(typeof ie!="object"||ie===null)return Ee;switch(ie.$$typeof){case ul:case Ui:N4(ie,ae);var je=ie.key;if(typeof je!="string")break;if(Ee===null){Ee=new Set,Ee.add(je);break}if(!Ee.has(je)){Ee.add(je);break}f("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",je);break;case xt:var nt=ie._payload,Xe=ie._init;ce(Xe(nt),Ee,ae);break}}return Ee}function Se(ie,Ee,ae,je){for(var nt=null,Xe=0;Xe<ae.length;Xe++){var Tt=ae[Xe];nt=ce(Tt,nt,ie)}for(var Nt=null,_n=null,cn=Ee,Tr=0,fn=0,yr=null;cn!==null&&fn<ae.length;fn++){cn.index>fn?(yr=cn,cn=null):yr=cn.sibling;var Fi=G(ie,cn,ae[fn],je);if(Fi===null){cn===null&&(cn=yr);break}t&&cn&&Fi.alternate===null&&i(ie,cn),Tr=b(Fi,Tr,fn),_n===null?Nt=Fi:_n.sibling=Fi,_n=Fi,cn=yr}if(fn===ae.length){if(u(ie,cn),pi()){var Si=fn;jf(ie,Si)}return Nt}if(cn===null){for(;fn<ae.length;fn++){var Za=X(ie,ae[fn],je);Za!==null&&(Tr=b(Za,Tr,fn),_n===null?Nt=Za:_n.sibling=Za,_n=Za)}if(pi()){var Xi=fn;jf(ie,Xi)}return Nt}for(var Ji=d(ie,cn);fn<ae.length;fn++){var Ii=ue(Ji,ie,fn,ae[fn],je);Ii!==null&&(t&&Ii.alternate!==null&&Ji.delete(Ii.key===null?fn:Ii.key),Tr=b(Ii,Tr,fn),_n===null?Nt=Ii:_n.sibling=Ii,_n=Ii)}if(t&&Ji.forEach(function(Ch){return i(ie,Ch)}),pi()){var Ks=fn;jf(ie,Ks)}return Nt}function tt(ie,Ee,ae,je){var nt=_o(ae);if(typeof nt!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&ae[Symbol.toStringTag]==="Generator"&&(yC||f("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),yC=!0),ae.entries===nt&&(gC||f("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),gC=!0);var Xe=nt.call(ae);if(Xe)for(var Tt=null,Nt=Xe.next();!Nt.done;Nt=Xe.next()){var _n=Nt.value;Tt=ce(_n,Tt,ie)}}var cn=nt.call(ae);if(cn==null)throw new Error("An iterable object provided no iterator.");for(var Tr=null,fn=null,yr=Ee,Fi=0,Si=0,Za=null,Xi=cn.next();yr!==null&&!Xi.done;Si++,Xi=cn.next()){yr.index>Si?(Za=yr,yr=null):Za=yr.sibling;var Ji=G(ie,yr,Xi.value,je);if(Ji===null){yr===null&&(yr=Za);break}t&&yr&&Ji.alternate===null&&i(ie,yr),Fi=b(Ji,Fi,Si),fn===null?Tr=Ji:fn.sibling=Ji,fn=Ji,yr=Za}if(Xi.done){if(u(ie,yr),pi()){var Ii=Si;jf(ie,Ii)}return Tr}if(yr===null){for(;!Xi.done;Si++,Xi=cn.next()){var Ks=X(ie,Xi.value,je);Ks!==null&&(Fi=b(Ks,Fi,Si),fn===null?Tr=Ks:fn.sibling=Ks,fn=Ks)}if(pi()){var Ch=Si;jf(ie,Ch)}return Tr}for(var M0=d(ie,yr);!Xi.done;Si++,Xi=cn.next()){var ql=ue(M0,ie,Si,Xi.value,je);ql!==null&&(t&&ql.alternate!==null&&M0.delete(ql.key===null?Si:ql.key),Fi=b(ql,Fi,Si),fn===null?Tr=ql:fn.sibling=ql,fn=ql)}if(t&&M0.forEach(function(HY){return i(ie,HY)}),pi()){var VY=Si;jf(ie,VY)}return Tr}function bt(ie,Ee,ae,je){if(Ee!==null&&Ee.tag===R){u(ie,Ee.sibling);var nt=m(Ee,ae);return nt.return=ie,nt}u(ie,Ee);var Xe=Z2(ae,ie.mode,je);return Xe.return=ie,Xe}function vt(ie,Ee,ae,je){for(var nt=ae.key,Xe=Ee;Xe!==null;){if(Xe.key===nt){var Tt=ae.type;if(Tt===Ia){if(Xe.tag===T){u(ie,Xe.sibling);var Nt=m(Xe,ae.props.children);return Nt.return=ie,Nt._debugSource=ae._source,Nt._debugOwner=ae._owner,Nt}}else if(Xe.elementType===Tt||TD(Xe,ae)||typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===xt&&F4(Tt)===Xe.type){u(ie,Xe.sibling);var _n=m(Xe,ae.props);return _n.ref=n0(ie,Xe,ae),_n.return=ie,_n._debugSource=ae._source,_n._debugOwner=ae._owner,_n}u(ie,Xe);break}else i(ie,Xe);Xe=Xe.sibling}if(ae.type===Ia){var cn=bc(ae.props.children,ie.mode,je,ae.key);return cn.return=ie,cn}else{var Tr=Y2(ae,ie.mode,je);return Tr.ref=n0(ie,Ee,ae),Tr.return=ie,Tr}}function an(ie,Ee,ae,je){for(var nt=ae.key,Xe=Ee;Xe!==null;){if(Xe.key===nt)if(Xe.tag===C&&Xe.stateNode.containerInfo===ae.containerInfo&&Xe.stateNode.implementation===ae.implementation){u(ie,Xe.sibling);var Tt=m(Xe,ae.children||[]);return Tt.return=ie,Tt}else{u(ie,Xe);break}else i(ie,Xe);Xe=Xe.sibling}var Nt=K2(ae,ie.mode,je);return Nt.return=ie,Nt}function en(ie,Ee,ae,je){var nt=typeof ae=="object"&&ae!==null&&ae.type===Ia&&ae.key===null;if(nt&&(ae=ae.props.children),typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case ul:return k(vt(ie,Ee,ae,je));case Ui:return k(an(ie,Ee,ae,je));case xt:var Xe=ae._payload,Tt=ae._init;return en(ie,Ee,Tt(Xe),je)}if(Ar(ae))return Se(ie,Ee,ae,je);if(_o(ae))return tt(ie,Ee,ae,je);wb(ie,ae)}return typeof ae=="string"&&ae!==""||typeof ae=="number"?k(bt(ie,Ee,""+ae,je)):(typeof ae=="function"&&Cb(ie),u(ie,Ee))}return en}var sh=I4(!0),z4=I4(!1);function AH(t,i){if(t!==null&&i.child!==t.child)throw new Error("Resuming work not yet implemented.");if(i.child!==null){var u=i.child,d=Xf(u,u.pendingProps);for(i.child=d,d.return=i;u.sibling!==null;)u=u.sibling,d=d.sibling=Xf(u,u.pendingProps),d.return=i;d.sibling=null}}function MH(t,i){for(var u=t.child;u!==null;)lY(u,i),u=u.sibling}var r0={},cc=ac(r0),i0=ac(r0),kb=ac(r0);function _b(t){if(t===r0)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return t}function j4(){var t=_b(kb.current);return t}function xC(t,i){Pi(kb,i,t),Pi(i0,t,t),Pi(cc,r0,t);var u=WB(i);Li(cc,t),Pi(cc,u,t)}function uh(t){Li(cc,t),Li(i0,t),Li(kb,t)}function wC(){var t=_b(cc.current);return t}function $4(t){_b(kb.current);var i=_b(cc.current),u=YB(i,t.type);i!==u&&(Pi(i0,t,t),Pi(cc,u,t))}function CC(t){i0.current===t&&(Li(cc,t),Li(i0,t))}var LH=0,U4=1,B4=1,a0=2,Yo=ac(LH);function kC(t,i){return(t&i)!==0}function ch(t){return t&U4}function _C(t,i){return t&U4|i}function PH(t,i){return t|i}function fc(t,i){Pi(Yo,i,t)}function fh(t){Li(Yo,t)}function NH(t,i){var u=t.memoizedState;return u!==null?u.dehydrated!==null:(t.memoizedProps,!0)}function Tb(t){for(var i=t;i!==null;){if(i.tag===F){var u=i.memoizedState;if(u!==null){var d=u.dehydrated;if(d===null||XR(d)||Mw(d))return i}}else if(i.tag===ee&&i.memoizedProps.revealOrder!==void 0){var m=(i.flags&Dt)!==yt;if(m)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)return null;for(;i.sibling===null;){if(i.return===null||i.return===t)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Ta=0,Hr=1,zl=2,qr=4,hi=8,TC=[];function RC(){for(var t=0;t<TC.length;t++){var i=TC[t];i._workInProgressVersionPrimary=null}TC.length=0}function FH(t,i){var u=i._getVersion,d=u(i._source);t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[i,d]:t.mutableSourceEagerHydrationData.push(i,d)}var et=r.ReactCurrentDispatcher,o0=r.ReactCurrentBatchConfig,OC,dh;OC=new Set;var qf=we,kn=null,Wr=null,Yr=null,Rb=!1,l0=!1,s0=0,IH=0,zH=25,Ce=null,ho=null,dc=-1,DC=!1;function vn(){{var t=Ce;ho===null?ho=[t]:ho.push(t)}}function Ze(){{var t=Ce;ho!==null&&(dc++,ho[dc]!==t&&jH(t))}}function ph(t){t!=null&&!Ar(t)&&f("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Ce,typeof t)}function jH(t){{var i=Ft(kn);if(!OC.has(i)&&(OC.add(i),ho!==null)){for(var u="",d=30,m=0;m<=dc;m++){for(var b=ho[m],k=m===dc?t:b,O=m+1+". "+b;O.length<d;)O+=" ";O+=k+`
135
135
  `,u+=O}f(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
136
136
 
137
137
  Previous render Next render
@@ -144,13 +144,13 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`)}}retur
144
144
  See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function AC(t,i){if(DC)return!1;if(i===null)return f("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Ce),!1;t.length!==i.length&&f(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
145
145
 
146
146
  Previous: %s
147
- Incoming: %s`,Ce,"["+i.join(", ")+"]","["+t.join(", ")+"]");for(var u=0;u<i.length&&u<t.length;u++)if(!ut(t[u],i[u]))return!1;return!0}function hh(t,i,u,d,m,b){qf=b,kn=i,ho=t!==null?t._debugHookTypes:null,dc=-1,DC=t!==null&&t.type!==i.type,i.memoizedState=null,i.updateQueue=null,i.lanes=we,t!==null&&t.memoizedState!==null?et.current=uO:ho!==null?et.current=sO:et.current=lO;var k=u(d,m);if(l0){var O=0;do{if(l0=!1,s0=0,O>=IH)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");O+=1,DC=!1,Wr=null,Yr=null,i.updateQueue=null,dc=-1,et.current=cO,k=u(d,m)}while(l0)}et.current=Ub,i._debugHookTypes=ho;var A=Wr!==null&&Wr.next!==null;if(qf=we,kn=null,Wr=null,Yr=null,Ce=null,ho=null,dc=-1,t!==null&&(t.flags&Ur)!==(i.flags&Ur)&&(t.mode&Zt)!==Et&&f("Internal React error: Expected static flag was missing. Please notify the React team."),Rb=!1,A)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return k}function mh(){var t=s0!==0;return s0=0,t}function B4(t,i,u){i.updateQueue=t.updateQueue,(i.mode&ba)!==Et?i.flags&=~(gs|Ti|Vn|zt):i.flags&=~(Vn|zt),t.lanes=Bu(t.lanes,u)}function V4(){if(et.current=Ub,Rb){for(var t=kn.memoizedState;t!==null;){var i=t.queue;i!==null&&(i.pending=null),t=t.next}Rb=!1}qf=we,kn=null,Wr=null,Yr=null,ho=null,dc=-1,Ce=null,nO=!1,l0=!1,s0=0}function jl(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yr===null?kn.memoizedState=Yr=t:Yr=Yr.next=t,Yr}function mo(){var t;if(Wr===null){var i=kn.alternate;i!==null?t=i.memoizedState:t=null}else t=Wr.next;var u;if(Yr===null?u=kn.memoizedState:u=Yr.next,u!==null)Yr=u,u=Yr.next,Wr=t;else{if(t===null)throw new Error("Rendered more hooks than during the previous render.");Wr=t;var d={memoizedState:Wr.memoizedState,baseState:Wr.baseState,baseQueue:Wr.baseQueue,queue:Wr.queue,next:null};Yr===null?kn.memoizedState=Yr=d:Yr=Yr.next=d}return Yr}function H4(){return{lastEffect:null,stores:null}}function MC(t,i){return typeof i=="function"?i(t):i}function LC(t,i,u){var d=jl(),m;u!==void 0?m=u(i):m=i,d.memoizedState=d.baseState=m;var b={pending:null,interleaved:null,lanes:we,dispatch:null,lastRenderedReducer:t,lastRenderedState:m};d.queue=b;var k=b.dispatch=BH.bind(null,kn,b);return[d.memoizedState,k]}function PC(t,i,u){var d=mo(),m=d.queue;if(m===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");m.lastRenderedReducer=t;var b=Wr,k=b.baseQueue,O=m.pending;if(O!==null){if(k!==null){var A=k.next,z=O.next;k.next=z,O.next=A}b.baseQueue!==k&&f("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),b.baseQueue=k=O,m.pending=null}if(k!==null){var V=k.next,X=b.baseState,G=null,ue=null,ce=null,Se=V;do{var tt=Se.lane;if(Ts(qf,tt)){if(ce!==null){var vt={lane:nn,action:Se.action,hasEagerState:Se.hasEagerState,eagerState:Se.eagerState,next:null};ce=ce.next=vt}if(Se.hasEagerState)X=Se.eagerState;else{var an=Se.action;X=t(X,an)}}else{var bt={lane:tt,action:Se.action,hasEagerState:Se.hasEagerState,eagerState:Se.eagerState,next:null};ce===null?(ue=ce=bt,G=X):ce=ce.next=bt,kn.lanes=jt(kn.lanes,tt),T0(tt)}Se=Se.next}while(Se!==null&&Se!==V);ce===null?G=X:ce.next=ue,ut(X,d.memoizedState)||m0(),d.memoizedState=X,d.baseState=G,d.baseQueue=ce,m.lastRenderedState=X}var en=m.interleaved;if(en!==null){var ie=en;do{var Ee=ie.lane;kn.lanes=jt(kn.lanes,Ee),T0(Ee),ie=ie.next}while(ie!==en)}else k===null&&(m.lanes=we);var ae=m.dispatch;return[d.memoizedState,ae]}function NC(t,i,u){var d=mo(),m=d.queue;if(m===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");m.lastRenderedReducer=t;var b=m.dispatch,k=m.pending,O=d.memoizedState;if(k!==null){m.pending=null;var A=k.next,z=A;do{var V=z.action;O=t(O,V),z=z.next}while(z!==A);ut(O,d.memoizedState)||m0(),d.memoizedState=O,d.baseQueue===null&&(d.baseState=O),m.lastRenderedState=O}return[O,b]}function FZ(t,i,u){}function IZ(t,i,u){}function FC(t,i,u){var d=kn,m=jl(),b,k=pi();if(k){if(u===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");b=u(),dh||b!==u()&&(f("The result of getServerSnapshot should be cached to avoid an infinite loop"),dh=!0)}else{if(b=i(),!dh){var O=i();ut(b,O)||(f("The result of getSnapshot should be cached to avoid an infinite loop"),dh=!0)}var A=aS();if(A===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");xf(A,qf)||q4(d,i,b)}m.memoizedState=b;var z={value:b,getSnapshot:i};return m.queue=z,Lb(Y4.bind(null,d,z,t),[t]),d.flags|=Vn,u0(Hr|hi,W4.bind(null,d,z,b,i),void 0,null),b}function Ob(t,i,u){var d=kn,m=mo(),b=i();if(!dh){var k=i();ut(b,k)||(f("The result of getSnapshot should be cached to avoid an infinite loop"),dh=!0)}var O=m.memoizedState,A=!ut(O,b);A&&(m.memoizedState=b,m0());var z=m.queue;if(f0(Y4.bind(null,d,z,t),[t]),z.getSnapshot!==i||A||Yr!==null&&Yr.memoizedState.tag&Hr){d.flags|=Vn,u0(Hr|hi,W4.bind(null,d,z,b,i),void 0,null);var V=aS();if(V===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");xf(V,qf)||q4(d,i,b)}return b}function q4(t,i,u){t.flags|=pf;var d={getSnapshot:i,value:u},m=kn.updateQueue;if(m===null)m=H4(),kn.updateQueue=m,m.stores=[d];else{var b=m.stores;b===null?m.stores=[d]:b.push(d)}}function W4(t,i,u,d){i.value=u,i.getSnapshot=d,Z4(i)&&K4(t)}function Y4(t,i,u){var d=function(){Z4(i)&&K4(t)};return u(d)}function Z4(t){var i=t.getSnapshot,u=t.value;try{var d=i();return!ut(u,d)}catch{return!0}}function K4(t){var i=_a(t,kt);i!==null&&Qr(i,t,kt,An)}function Db(t){var i=jl();typeof t=="function"&&(t=t()),i.memoizedState=i.baseState=t;var u={pending:null,interleaved:null,lanes:we,dispatch:null,lastRenderedReducer:MC,lastRenderedState:t};i.queue=u;var d=u.dispatch=VH.bind(null,kn,u);return[i.memoizedState,d]}function IC(t){return PC(MC)}function zC(t){return NC(MC)}function u0(t,i,u,d){var m={tag:t,create:i,destroy:u,deps:d,next:null},b=kn.updateQueue;if(b===null)b=H4(),kn.updateQueue=b,b.lastEffect=m.next=m;else{var k=b.lastEffect;if(k===null)b.lastEffect=m.next=m;else{var O=k.next;k.next=m,m.next=O,b.lastEffect=m}}return m}function jC(t){var i=jl();{var u={current:t};return i.memoizedState=u,u}}function Ab(t){var i=mo();return i.memoizedState}function c0(t,i,u,d){var m=jl(),b=d===void 0?null:d;kn.flags|=t,m.memoizedState=u0(Hr|i,u,void 0,b)}function Mb(t,i,u,d){var m=mo(),b=d===void 0?null:d,k=void 0;if(Wr!==null){var O=Wr.memoizedState;if(k=O.destroy,b!==null){var A=O.deps;if(AC(b,A)){m.memoizedState=u0(i,u,k,b);return}}}kn.flags|=t,m.memoizedState=u0(Hr|i,u,k,b)}function Lb(t,i){return(kn.mode&ba)!==Et?c0(gs|Vn|El,hi,t,i):c0(Vn|El,hi,t,i)}function f0(t,i){return Mb(Vn,hi,t,i)}function $C(t,i){return c0(zt,zl,t,i)}function Pb(t,i){return Mb(zt,zl,t,i)}function UC(t,i){var u=zt;return u|=_i,(kn.mode&ba)!==Et&&(u|=Ti),c0(u,qr,t,i)}function Nb(t,i){return Mb(zt,qr,t,i)}function G4(t,i){if(typeof i=="function"){var u=i,d=t();return u(d),function(){u(null)}}else if(i!=null){var m=i;m.hasOwnProperty("current")||f("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(m).join(", ")+"}");var b=t();return m.current=b,function(){m.current=null}}}function BC(t,i,u){typeof i!="function"&&f("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",i!==null?typeof i:"null");var d=u!=null?u.concat([t]):null,m=zt;return m|=_i,(kn.mode&ba)!==Et&&(m|=Ti),c0(m,qr,G4.bind(null,i,t),d)}function Fb(t,i,u){typeof i!="function"&&f("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",i!==null?typeof i:"null");var d=u!=null?u.concat([t]):null;return Mb(zt,qr,G4.bind(null,i,t),d)}function jH(t,i){}var Ib=jH;function VC(t,i){var u=jl(),d=i===void 0?null:i;return u.memoizedState=[t,d],t}function zb(t,i){var u=mo(),d=i===void 0?null:i,m=u.memoizedState;if(m!==null&&d!==null){var b=m[1];if(AC(d,b))return m[0]}return u.memoizedState=[t,d],t}function HC(t,i){var u=jl(),d=i===void 0?null:i,m=t();return u.memoizedState=[m,d],m}function jb(t,i){var u=mo(),d=i===void 0?null:i,m=u.memoizedState;if(m!==null&&d!==null){var b=m[1];if(AC(d,b))return m[0]}var k=t();return u.memoizedState=[k,d],k}function qC(t){var i=jl();return i.memoizedState=t,t}function Q4(t){var i=mo(),u=Wr,d=u.memoizedState;return J4(i,d,t)}function X4(t){var i=mo();if(Wr===null)return i.memoizedState=t,t;var u=Wr.memoizedState;return J4(i,u,t)}function J4(t,i,u){var d=!Qx(qf);if(d){if(!ut(u,i)){var m=dv();kn.lanes=jt(kn.lanes,m),T0(m),t.baseState=!0}return i}else return t.baseState&&(t.baseState=!1,m0()),t.memoizedState=u,u}function $H(t,i,u){var d=Ea();Cr(ni(d,Vr)),t(!0);var m=o0.transition;o0.transition={};var b=o0.transition;o0.transition._updatedFibers=new Set;try{t(!1),i()}finally{if(Cr(d),o0.transition=m,m===null&&b._updatedFibers){var k=b._updatedFibers.size;k>10&&c("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),b._updatedFibers.clear()}}}function WC(){var t=Db(!1),i=t[0],u=t[1],d=$H.bind(null,u),m=jl();return m.memoizedState=d,[i,d]}function eO(){var t=IC(),i=t[0],u=mo(),d=u.memoizedState;return[i,d]}function tO(){var t=zC(),i=t[0],u=mo(),d=u.memoizedState;return[i,d]}var nO=!1;function UH(){return nO}function YC(){var t=jl(),i=aS(),u=i.identifierPrefix,d;if(pi()){var m=tH();d=":"+u+"R"+m;var b=s0++;b>0&&(d+="H"+b.toString(32)),d+=":"}else{var k=FH++;d=":"+u+"r"+k.toString(32)+":"}return t.memoizedState=d,d}function $b(){var t=mo(),i=t.memoizedState;return i}function BH(t,i,u){typeof arguments[3]=="function"&&f("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var d=gc(t),m={lane:d,action:u,hasEagerState:!1,eagerState:null,next:null};if(rO(t))iO(i,m);else{var b=E4(t,i,m,d);if(b!==null){var k=Qi();Qr(b,t,d,k),aO(b,i,d)}}oO(t,d)}function VH(t,i,u){typeof arguments[3]=="function"&&f("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var d=gc(t),m={lane:d,action:u,hasEagerState:!1,eagerState:null,next:null};if(rO(t))iO(i,m);else{var b=t.alternate;if(t.lanes===we&&(b===null||b.lanes===we)){var k=i.lastRenderedReducer;if(k!==null){var O;O=et.current,et.current=Zo;try{var A=i.lastRenderedState,z=k(A,u);if(m.hasEagerState=!0,m.eagerState=z,ut(z,A)){EH(t,i,m,d);return}}catch{}finally{et.current=O}}}var V=E4(t,i,m,d);if(V!==null){var X=Qi();Qr(V,t,d,X),aO(V,i,d)}}oO(t,d)}function rO(t){var i=t.alternate;return t===kn||i!==null&&i===kn}function iO(t,i){l0=Rb=!0;var u=t.pending;u===null?i.next=i:(i.next=u.next,u.next=i),t.pending=i}function aO(t,i,u){if(fv(u)){var d=i.lanes;d=pv(d,t.pendingLanes);var m=jt(d,u);i.lanes=m,Vu(t,m)}}function oO(t,i,u){Tl(t,i)}var Ub={readContext:zr,useCallback:Ni,useContext:Ni,useEffect:Ni,useImperativeHandle:Ni,useInsertionEffect:Ni,useLayoutEffect:Ni,useMemo:Ni,useReducer:Ni,useRef:Ni,useState:Ni,useDebugValue:Ni,useDeferredValue:Ni,useTransition:Ni,useMutableSource:Ni,useSyncExternalStore:Ni,useId:Ni,unstable_isNewReconciler:se},lO=null,sO=null,uO=null,cO=null,$l=null,Zo=null,Bb=null;{var ZC=function(){f("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},Lt=function(){f("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};lO={readContext:function(t){return zr(t)},useCallback:function(t,i){return Ce="useCallback",vn(),ph(i),VC(t,i)},useContext:function(t){return Ce="useContext",vn(),zr(t)},useEffect:function(t,i){return Ce="useEffect",vn(),ph(i),Lb(t,i)},useImperativeHandle:function(t,i,u){return Ce="useImperativeHandle",vn(),ph(u),BC(t,i,u)},useInsertionEffect:function(t,i){return Ce="useInsertionEffect",vn(),ph(i),$C(t,i)},useLayoutEffect:function(t,i){return Ce="useLayoutEffect",vn(),ph(i),UC(t,i)},useMemo:function(t,i){Ce="useMemo",vn(),ph(i);var u=et.current;et.current=$l;try{return HC(t,i)}finally{et.current=u}},useReducer:function(t,i,u){Ce="useReducer",vn();var d=et.current;et.current=$l;try{return LC(t,i,u)}finally{et.current=d}},useRef:function(t){return Ce="useRef",vn(),jC(t)},useState:function(t){Ce="useState",vn();var i=et.current;et.current=$l;try{return Db(t)}finally{et.current=i}},useDebugValue:function(t,i){return Ce="useDebugValue",vn(),void 0},useDeferredValue:function(t){return Ce="useDeferredValue",vn(),qC(t)},useTransition:function(){return Ce="useTransition",vn(),WC()},useMutableSource:function(t,i,u){return Ce="useMutableSource",vn(),void 0},useSyncExternalStore:function(t,i,u){return Ce="useSyncExternalStore",vn(),FC(t,i,u)},useId:function(){return Ce="useId",vn(),YC()},unstable_isNewReconciler:se},sO={readContext:function(t){return zr(t)},useCallback:function(t,i){return Ce="useCallback",Ze(),VC(t,i)},useContext:function(t){return Ce="useContext",Ze(),zr(t)},useEffect:function(t,i){return Ce="useEffect",Ze(),Lb(t,i)},useImperativeHandle:function(t,i,u){return Ce="useImperativeHandle",Ze(),BC(t,i,u)},useInsertionEffect:function(t,i){return Ce="useInsertionEffect",Ze(),$C(t,i)},useLayoutEffect:function(t,i){return Ce="useLayoutEffect",Ze(),UC(t,i)},useMemo:function(t,i){Ce="useMemo",Ze();var u=et.current;et.current=$l;try{return HC(t,i)}finally{et.current=u}},useReducer:function(t,i,u){Ce="useReducer",Ze();var d=et.current;et.current=$l;try{return LC(t,i,u)}finally{et.current=d}},useRef:function(t){return Ce="useRef",Ze(),jC(t)},useState:function(t){Ce="useState",Ze();var i=et.current;et.current=$l;try{return Db(t)}finally{et.current=i}},useDebugValue:function(t,i){return Ce="useDebugValue",Ze(),void 0},useDeferredValue:function(t){return Ce="useDeferredValue",Ze(),qC(t)},useTransition:function(){return Ce="useTransition",Ze(),WC()},useMutableSource:function(t,i,u){return Ce="useMutableSource",Ze(),void 0},useSyncExternalStore:function(t,i,u){return Ce="useSyncExternalStore",Ze(),FC(t,i,u)},useId:function(){return Ce="useId",Ze(),YC()},unstable_isNewReconciler:se},uO={readContext:function(t){return zr(t)},useCallback:function(t,i){return Ce="useCallback",Ze(),zb(t,i)},useContext:function(t){return Ce="useContext",Ze(),zr(t)},useEffect:function(t,i){return Ce="useEffect",Ze(),f0(t,i)},useImperativeHandle:function(t,i,u){return Ce="useImperativeHandle",Ze(),Fb(t,i,u)},useInsertionEffect:function(t,i){return Ce="useInsertionEffect",Ze(),Pb(t,i)},useLayoutEffect:function(t,i){return Ce="useLayoutEffect",Ze(),Nb(t,i)},useMemo:function(t,i){Ce="useMemo",Ze();var u=et.current;et.current=Zo;try{return jb(t,i)}finally{et.current=u}},useReducer:function(t,i,u){Ce="useReducer",Ze();var d=et.current;et.current=Zo;try{return PC(t,i,u)}finally{et.current=d}},useRef:function(t){return Ce="useRef",Ze(),Ab()},useState:function(t){Ce="useState",Ze();var i=et.current;et.current=Zo;try{return IC(t)}finally{et.current=i}},useDebugValue:function(t,i){return Ce="useDebugValue",Ze(),Ib()},useDeferredValue:function(t){return Ce="useDeferredValue",Ze(),Q4(t)},useTransition:function(){return Ce="useTransition",Ze(),eO()},useMutableSource:function(t,i,u){return Ce="useMutableSource",Ze(),void 0},useSyncExternalStore:function(t,i,u){return Ce="useSyncExternalStore",Ze(),Ob(t,i)},useId:function(){return Ce="useId",Ze(),$b()},unstable_isNewReconciler:se},cO={readContext:function(t){return zr(t)},useCallback:function(t,i){return Ce="useCallback",Ze(),zb(t,i)},useContext:function(t){return Ce="useContext",Ze(),zr(t)},useEffect:function(t,i){return Ce="useEffect",Ze(),f0(t,i)},useImperativeHandle:function(t,i,u){return Ce="useImperativeHandle",Ze(),Fb(t,i,u)},useInsertionEffect:function(t,i){return Ce="useInsertionEffect",Ze(),Pb(t,i)},useLayoutEffect:function(t,i){return Ce="useLayoutEffect",Ze(),Nb(t,i)},useMemo:function(t,i){Ce="useMemo",Ze();var u=et.current;et.current=Bb;try{return jb(t,i)}finally{et.current=u}},useReducer:function(t,i,u){Ce="useReducer",Ze();var d=et.current;et.current=Bb;try{return NC(t,i,u)}finally{et.current=d}},useRef:function(t){return Ce="useRef",Ze(),Ab()},useState:function(t){Ce="useState",Ze();var i=et.current;et.current=Bb;try{return zC(t)}finally{et.current=i}},useDebugValue:function(t,i){return Ce="useDebugValue",Ze(),Ib()},useDeferredValue:function(t){return Ce="useDeferredValue",Ze(),X4(t)},useTransition:function(){return Ce="useTransition",Ze(),tO()},useMutableSource:function(t,i,u){return Ce="useMutableSource",Ze(),void 0},useSyncExternalStore:function(t,i,u){return Ce="useSyncExternalStore",Ze(),Ob(t,i)},useId:function(){return Ce="useId",Ze(),$b()},unstable_isNewReconciler:se},$l={readContext:function(t){return ZC(),zr(t)},useCallback:function(t,i){return Ce="useCallback",Lt(),vn(),VC(t,i)},useContext:function(t){return Ce="useContext",Lt(),vn(),zr(t)},useEffect:function(t,i){return Ce="useEffect",Lt(),vn(),Lb(t,i)},useImperativeHandle:function(t,i,u){return Ce="useImperativeHandle",Lt(),vn(),BC(t,i,u)},useInsertionEffect:function(t,i){return Ce="useInsertionEffect",Lt(),vn(),$C(t,i)},useLayoutEffect:function(t,i){return Ce="useLayoutEffect",Lt(),vn(),UC(t,i)},useMemo:function(t,i){Ce="useMemo",Lt(),vn();var u=et.current;et.current=$l;try{return HC(t,i)}finally{et.current=u}},useReducer:function(t,i,u){Ce="useReducer",Lt(),vn();var d=et.current;et.current=$l;try{return LC(t,i,u)}finally{et.current=d}},useRef:function(t){return Ce="useRef",Lt(),vn(),jC(t)},useState:function(t){Ce="useState",Lt(),vn();var i=et.current;et.current=$l;try{return Db(t)}finally{et.current=i}},useDebugValue:function(t,i){return Ce="useDebugValue",Lt(),vn(),void 0},useDeferredValue:function(t){return Ce="useDeferredValue",Lt(),vn(),qC(t)},useTransition:function(){return Ce="useTransition",Lt(),vn(),WC()},useMutableSource:function(t,i,u){return Ce="useMutableSource",Lt(),vn(),void 0},useSyncExternalStore:function(t,i,u){return Ce="useSyncExternalStore",Lt(),vn(),FC(t,i,u)},useId:function(){return Ce="useId",Lt(),vn(),YC()},unstable_isNewReconciler:se},Zo={readContext:function(t){return ZC(),zr(t)},useCallback:function(t,i){return Ce="useCallback",Lt(),Ze(),zb(t,i)},useContext:function(t){return Ce="useContext",Lt(),Ze(),zr(t)},useEffect:function(t,i){return Ce="useEffect",Lt(),Ze(),f0(t,i)},useImperativeHandle:function(t,i,u){return Ce="useImperativeHandle",Lt(),Ze(),Fb(t,i,u)},useInsertionEffect:function(t,i){return Ce="useInsertionEffect",Lt(),Ze(),Pb(t,i)},useLayoutEffect:function(t,i){return Ce="useLayoutEffect",Lt(),Ze(),Nb(t,i)},useMemo:function(t,i){Ce="useMemo",Lt(),Ze();var u=et.current;et.current=Zo;try{return jb(t,i)}finally{et.current=u}},useReducer:function(t,i,u){Ce="useReducer",Lt(),Ze();var d=et.current;et.current=Zo;try{return PC(t,i,u)}finally{et.current=d}},useRef:function(t){return Ce="useRef",Lt(),Ze(),Ab()},useState:function(t){Ce="useState",Lt(),Ze();var i=et.current;et.current=Zo;try{return IC(t)}finally{et.current=i}},useDebugValue:function(t,i){return Ce="useDebugValue",Lt(),Ze(),Ib()},useDeferredValue:function(t){return Ce="useDeferredValue",Lt(),Ze(),Q4(t)},useTransition:function(){return Ce="useTransition",Lt(),Ze(),eO()},useMutableSource:function(t,i,u){return Ce="useMutableSource",Lt(),Ze(),void 0},useSyncExternalStore:function(t,i,u){return Ce="useSyncExternalStore",Lt(),Ze(),Ob(t,i)},useId:function(){return Ce="useId",Lt(),Ze(),$b()},unstable_isNewReconciler:se},Bb={readContext:function(t){return ZC(),zr(t)},useCallback:function(t,i){return Ce="useCallback",Lt(),Ze(),zb(t,i)},useContext:function(t){return Ce="useContext",Lt(),Ze(),zr(t)},useEffect:function(t,i){return Ce="useEffect",Lt(),Ze(),f0(t,i)},useImperativeHandle:function(t,i,u){return Ce="useImperativeHandle",Lt(),Ze(),Fb(t,i,u)},useInsertionEffect:function(t,i){return Ce="useInsertionEffect",Lt(),Ze(),Pb(t,i)},useLayoutEffect:function(t,i){return Ce="useLayoutEffect",Lt(),Ze(),Nb(t,i)},useMemo:function(t,i){Ce="useMemo",Lt(),Ze();var u=et.current;et.current=Zo;try{return jb(t,i)}finally{et.current=u}},useReducer:function(t,i,u){Ce="useReducer",Lt(),Ze();var d=et.current;et.current=Zo;try{return NC(t,i,u)}finally{et.current=d}},useRef:function(t){return Ce="useRef",Lt(),Ze(),Ab()},useState:function(t){Ce="useState",Lt(),Ze();var i=et.current;et.current=Zo;try{return zC(t)}finally{et.current=i}},useDebugValue:function(t,i){return Ce="useDebugValue",Lt(),Ze(),Ib()},useDeferredValue:function(t){return Ce="useDeferredValue",Lt(),Ze(),X4(t)},useTransition:function(){return Ce="useTransition",Lt(),Ze(),tO()},useMutableSource:function(t,i,u){return Ce="useMutableSource",Lt(),Ze(),void 0},useSyncExternalStore:function(t,i,u){return Ce="useSyncExternalStore",Lt(),Ze(),Ob(t,i)},useId:function(){return Ce="useId",Lt(),Ze(),$b()},unstable_isNewReconciler:se}}var pc=n.unstable_now,fO=0,Vb=-1,d0=-1,Hb=-1,KC=!1,qb=!1;function dO(){return KC}function HH(){qb=!0}function qH(){KC=!1,qb=!1}function WH(){KC=qb,qb=!1}function pO(){return fO}function hO(){fO=pc()}function GC(t){d0=pc(),t.actualStartTime<0&&(t.actualStartTime=pc())}function mO(t){d0=-1}function Wb(t,i){if(d0>=0){var u=pc()-d0;t.actualDuration+=u,i&&(t.selfBaseDuration=u),d0=-1}}function Ul(t){if(Vb>=0){var i=pc()-Vb;Vb=-1;for(var u=t.return;u!==null;){switch(u.tag){case E:var d=u.stateNode;d.effectDuration+=i;return;case B:var m=u.stateNode;m.effectDuration+=i;return}u=u.return}}}function QC(t){if(Hb>=0){var i=pc()-Hb;Hb=-1;for(var u=t.return;u!==null;){switch(u.tag){case E:var d=u.stateNode;d!==null&&(d.passiveEffectDuration+=i);return;case B:var m=u.stateNode;m!==null&&(m.passiveEffectDuration+=i);return}u=u.return}}}function Bl(){Vb=pc()}function XC(){Hb=pc()}function JC(t){for(var i=t.child;i;)t.actualDuration+=i.actualDuration,i=i.sibling}function Wf(t,i){return{value:t,source:i,stack:Em(i),digest:null}}function e2(t,i,u){return{value:t,source:null,stack:u??null,digest:i??null}}function YH(t,i){return!0}function t2(t,i){try{var u=YH(t,i);if(u===!1)return;var d=i.value,m=i.source,b=i.stack,k=b!==null?b:"";if(d!=null&&d._suppressLogging){if(t.tag===y)return;console.error(d)}var O=m?Ft(m):null,A=O?"The above error occurred in the <"+O+"> component:":"The above error occurred in one of your React components:",z;if(t.tag===E)z=`Consider adding an error boundary to your tree to customize error handling behavior.
147
+ Incoming: %s`,Ce,"["+i.join(", ")+"]","["+t.join(", ")+"]");for(var u=0;u<i.length&&u<t.length;u++)if(!ut(t[u],i[u]))return!1;return!0}function hh(t,i,u,d,m,b){qf=b,kn=i,ho=t!==null?t._debugHookTypes:null,dc=-1,DC=t!==null&&t.type!==i.type,i.memoizedState=null,i.updateQueue=null,i.lanes=we,t!==null&&t.memoizedState!==null?et.current=cO:ho!==null?et.current=uO:et.current=sO;var k=u(d,m);if(l0){var O=0;do{if(l0=!1,s0=0,O>=zH)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");O+=1,DC=!1,Wr=null,Yr=null,i.updateQueue=null,dc=-1,et.current=fO,k=u(d,m)}while(l0)}et.current=Ub,i._debugHookTypes=ho;var A=Wr!==null&&Wr.next!==null;if(qf=we,kn=null,Wr=null,Yr=null,Ce=null,ho=null,dc=-1,t!==null&&(t.flags&Ur)!==(i.flags&Ur)&&(t.mode&Zt)!==Et&&f("Internal React error: Expected static flag was missing. Please notify the React team."),Rb=!1,A)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return k}function mh(){var t=s0!==0;return s0=0,t}function V4(t,i,u){i.updateQueue=t.updateQueue,(i.mode&ba)!==Et?i.flags&=~(gs|Ti|Vn|zt):i.flags&=~(Vn|zt),t.lanes=Bu(t.lanes,u)}function H4(){if(et.current=Ub,Rb){for(var t=kn.memoizedState;t!==null;){var i=t.queue;i!==null&&(i.pending=null),t=t.next}Rb=!1}qf=we,kn=null,Wr=null,Yr=null,ho=null,dc=-1,Ce=null,rO=!1,l0=!1,s0=0}function jl(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yr===null?kn.memoizedState=Yr=t:Yr=Yr.next=t,Yr}function mo(){var t;if(Wr===null){var i=kn.alternate;i!==null?t=i.memoizedState:t=null}else t=Wr.next;var u;if(Yr===null?u=kn.memoizedState:u=Yr.next,u!==null)Yr=u,u=Yr.next,Wr=t;else{if(t===null)throw new Error("Rendered more hooks than during the previous render.");Wr=t;var d={memoizedState:Wr.memoizedState,baseState:Wr.baseState,baseQueue:Wr.baseQueue,queue:Wr.queue,next:null};Yr===null?kn.memoizedState=Yr=d:Yr=Yr.next=d}return Yr}function q4(){return{lastEffect:null,stores:null}}function MC(t,i){return typeof i=="function"?i(t):i}function LC(t,i,u){var d=jl(),m;u!==void 0?m=u(i):m=i,d.memoizedState=d.baseState=m;var b={pending:null,interleaved:null,lanes:we,dispatch:null,lastRenderedReducer:t,lastRenderedState:m};d.queue=b;var k=b.dispatch=VH.bind(null,kn,b);return[d.memoizedState,k]}function PC(t,i,u){var d=mo(),m=d.queue;if(m===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");m.lastRenderedReducer=t;var b=Wr,k=b.baseQueue,O=m.pending;if(O!==null){if(k!==null){var A=k.next,z=O.next;k.next=z,O.next=A}b.baseQueue!==k&&f("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),b.baseQueue=k=O,m.pending=null}if(k!==null){var V=k.next,X=b.baseState,G=null,ue=null,ce=null,Se=V;do{var tt=Se.lane;if(Ts(qf,tt)){if(ce!==null){var vt={lane:nn,action:Se.action,hasEagerState:Se.hasEagerState,eagerState:Se.eagerState,next:null};ce=ce.next=vt}if(Se.hasEagerState)X=Se.eagerState;else{var an=Se.action;X=t(X,an)}}else{var bt={lane:tt,action:Se.action,hasEagerState:Se.hasEagerState,eagerState:Se.eagerState,next:null};ce===null?(ue=ce=bt,G=X):ce=ce.next=bt,kn.lanes=jt(kn.lanes,tt),T0(tt)}Se=Se.next}while(Se!==null&&Se!==V);ce===null?G=X:ce.next=ue,ut(X,d.memoizedState)||m0(),d.memoizedState=X,d.baseState=G,d.baseQueue=ce,m.lastRenderedState=X}var en=m.interleaved;if(en!==null){var ie=en;do{var Ee=ie.lane;kn.lanes=jt(kn.lanes,Ee),T0(Ee),ie=ie.next}while(ie!==en)}else k===null&&(m.lanes=we);var ae=m.dispatch;return[d.memoizedState,ae]}function NC(t,i,u){var d=mo(),m=d.queue;if(m===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");m.lastRenderedReducer=t;var b=m.dispatch,k=m.pending,O=d.memoizedState;if(k!==null){m.pending=null;var A=k.next,z=A;do{var V=z.action;O=t(O,V),z=z.next}while(z!==A);ut(O,d.memoizedState)||m0(),d.memoizedState=O,d.baseQueue===null&&(d.baseState=O),m.lastRenderedState=O}return[O,b]}function IZ(t,i,u){}function zZ(t,i,u){}function FC(t,i,u){var d=kn,m=jl(),b,k=pi();if(k){if(u===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");b=u(),dh||b!==u()&&(f("The result of getServerSnapshot should be cached to avoid an infinite loop"),dh=!0)}else{if(b=i(),!dh){var O=i();ut(b,O)||(f("The result of getSnapshot should be cached to avoid an infinite loop"),dh=!0)}var A=aS();if(A===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");xf(A,qf)||W4(d,i,b)}m.memoizedState=b;var z={value:b,getSnapshot:i};return m.queue=z,Lb(Z4.bind(null,d,z,t),[t]),d.flags|=Vn,u0(Hr|hi,Y4.bind(null,d,z,b,i),void 0,null),b}function Ob(t,i,u){var d=kn,m=mo(),b=i();if(!dh){var k=i();ut(b,k)||(f("The result of getSnapshot should be cached to avoid an infinite loop"),dh=!0)}var O=m.memoizedState,A=!ut(O,b);A&&(m.memoizedState=b,m0());var z=m.queue;if(f0(Z4.bind(null,d,z,t),[t]),z.getSnapshot!==i||A||Yr!==null&&Yr.memoizedState.tag&Hr){d.flags|=Vn,u0(Hr|hi,Y4.bind(null,d,z,b,i),void 0,null);var V=aS();if(V===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");xf(V,qf)||W4(d,i,b)}return b}function W4(t,i,u){t.flags|=pf;var d={getSnapshot:i,value:u},m=kn.updateQueue;if(m===null)m=q4(),kn.updateQueue=m,m.stores=[d];else{var b=m.stores;b===null?m.stores=[d]:b.push(d)}}function Y4(t,i,u,d){i.value=u,i.getSnapshot=d,K4(i)&&G4(t)}function Z4(t,i,u){var d=function(){K4(i)&&G4(t)};return u(d)}function K4(t){var i=t.getSnapshot,u=t.value;try{var d=i();return!ut(u,d)}catch{return!0}}function G4(t){var i=_a(t,kt);i!==null&&Qr(i,t,kt,An)}function Db(t){var i=jl();typeof t=="function"&&(t=t()),i.memoizedState=i.baseState=t;var u={pending:null,interleaved:null,lanes:we,dispatch:null,lastRenderedReducer:MC,lastRenderedState:t};i.queue=u;var d=u.dispatch=HH.bind(null,kn,u);return[i.memoizedState,d]}function IC(t){return PC(MC)}function zC(t){return NC(MC)}function u0(t,i,u,d){var m={tag:t,create:i,destroy:u,deps:d,next:null},b=kn.updateQueue;if(b===null)b=q4(),kn.updateQueue=b,b.lastEffect=m.next=m;else{var k=b.lastEffect;if(k===null)b.lastEffect=m.next=m;else{var O=k.next;k.next=m,m.next=O,b.lastEffect=m}}return m}function jC(t){var i=jl();{var u={current:t};return i.memoizedState=u,u}}function Ab(t){var i=mo();return i.memoizedState}function c0(t,i,u,d){var m=jl(),b=d===void 0?null:d;kn.flags|=t,m.memoizedState=u0(Hr|i,u,void 0,b)}function Mb(t,i,u,d){var m=mo(),b=d===void 0?null:d,k=void 0;if(Wr!==null){var O=Wr.memoizedState;if(k=O.destroy,b!==null){var A=O.deps;if(AC(b,A)){m.memoizedState=u0(i,u,k,b);return}}}kn.flags|=t,m.memoizedState=u0(Hr|i,u,k,b)}function Lb(t,i){return(kn.mode&ba)!==Et?c0(gs|Vn|El,hi,t,i):c0(Vn|El,hi,t,i)}function f0(t,i){return Mb(Vn,hi,t,i)}function $C(t,i){return c0(zt,zl,t,i)}function Pb(t,i){return Mb(zt,zl,t,i)}function UC(t,i){var u=zt;return u|=_i,(kn.mode&ba)!==Et&&(u|=Ti),c0(u,qr,t,i)}function Nb(t,i){return Mb(zt,qr,t,i)}function Q4(t,i){if(typeof i=="function"){var u=i,d=t();return u(d),function(){u(null)}}else if(i!=null){var m=i;m.hasOwnProperty("current")||f("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(m).join(", ")+"}");var b=t();return m.current=b,function(){m.current=null}}}function BC(t,i,u){typeof i!="function"&&f("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",i!==null?typeof i:"null");var d=u!=null?u.concat([t]):null,m=zt;return m|=_i,(kn.mode&ba)!==Et&&(m|=Ti),c0(m,qr,Q4.bind(null,i,t),d)}function Fb(t,i,u){typeof i!="function"&&f("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",i!==null?typeof i:"null");var d=u!=null?u.concat([t]):null;return Mb(zt,qr,Q4.bind(null,i,t),d)}function $H(t,i){}var Ib=$H;function VC(t,i){var u=jl(),d=i===void 0?null:i;return u.memoizedState=[t,d],t}function zb(t,i){var u=mo(),d=i===void 0?null:i,m=u.memoizedState;if(m!==null&&d!==null){var b=m[1];if(AC(d,b))return m[0]}return u.memoizedState=[t,d],t}function HC(t,i){var u=jl(),d=i===void 0?null:i,m=t();return u.memoizedState=[m,d],m}function jb(t,i){var u=mo(),d=i===void 0?null:i,m=u.memoizedState;if(m!==null&&d!==null){var b=m[1];if(AC(d,b))return m[0]}var k=t();return u.memoizedState=[k,d],k}function qC(t){var i=jl();return i.memoizedState=t,t}function X4(t){var i=mo(),u=Wr,d=u.memoizedState;return eO(i,d,t)}function J4(t){var i=mo();if(Wr===null)return i.memoizedState=t,t;var u=Wr.memoizedState;return eO(i,u,t)}function eO(t,i,u){var d=!Qx(qf);if(d){if(!ut(u,i)){var m=dv();kn.lanes=jt(kn.lanes,m),T0(m),t.baseState=!0}return i}else return t.baseState&&(t.baseState=!1,m0()),t.memoizedState=u,u}function UH(t,i,u){var d=Ea();Cr(ni(d,Vr)),t(!0);var m=o0.transition;o0.transition={};var b=o0.transition;o0.transition._updatedFibers=new Set;try{t(!1),i()}finally{if(Cr(d),o0.transition=m,m===null&&b._updatedFibers){var k=b._updatedFibers.size;k>10&&c("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),b._updatedFibers.clear()}}}function WC(){var t=Db(!1),i=t[0],u=t[1],d=UH.bind(null,u),m=jl();return m.memoizedState=d,[i,d]}function tO(){var t=IC(),i=t[0],u=mo(),d=u.memoizedState;return[i,d]}function nO(){var t=zC(),i=t[0],u=mo(),d=u.memoizedState;return[i,d]}var rO=!1;function BH(){return rO}function YC(){var t=jl(),i=aS(),u=i.identifierPrefix,d;if(pi()){var m=nH();d=":"+u+"R"+m;var b=s0++;b>0&&(d+="H"+b.toString(32)),d+=":"}else{var k=IH++;d=":"+u+"r"+k.toString(32)+":"}return t.memoizedState=d,d}function $b(){var t=mo(),i=t.memoizedState;return i}function VH(t,i,u){typeof arguments[3]=="function"&&f("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var d=gc(t),m={lane:d,action:u,hasEagerState:!1,eagerState:null,next:null};if(iO(t))aO(i,m);else{var b=x4(t,i,m,d);if(b!==null){var k=Qi();Qr(b,t,d,k),oO(b,i,d)}}lO(t,d)}function HH(t,i,u){typeof arguments[3]=="function"&&f("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var d=gc(t),m={lane:d,action:u,hasEagerState:!1,eagerState:null,next:null};if(iO(t))aO(i,m);else{var b=t.alternate;if(t.lanes===we&&(b===null||b.lanes===we)){var k=i.lastRenderedReducer;if(k!==null){var O;O=et.current,et.current=Zo;try{var A=i.lastRenderedState,z=k(A,u);if(m.hasEagerState=!0,m.eagerState=z,ut(z,A)){xH(t,i,m,d);return}}catch{}finally{et.current=O}}}var V=x4(t,i,m,d);if(V!==null){var X=Qi();Qr(V,t,d,X),oO(V,i,d)}}lO(t,d)}function iO(t){var i=t.alternate;return t===kn||i!==null&&i===kn}function aO(t,i){l0=Rb=!0;var u=t.pending;u===null?i.next=i:(i.next=u.next,u.next=i),t.pending=i}function oO(t,i,u){if(fv(u)){var d=i.lanes;d=pv(d,t.pendingLanes);var m=jt(d,u);i.lanes=m,Vu(t,m)}}function lO(t,i,u){Tl(t,i)}var Ub={readContext:zr,useCallback:Ni,useContext:Ni,useEffect:Ni,useImperativeHandle:Ni,useInsertionEffect:Ni,useLayoutEffect:Ni,useMemo:Ni,useReducer:Ni,useRef:Ni,useState:Ni,useDebugValue:Ni,useDeferredValue:Ni,useTransition:Ni,useMutableSource:Ni,useSyncExternalStore:Ni,useId:Ni,unstable_isNewReconciler:se},sO=null,uO=null,cO=null,fO=null,$l=null,Zo=null,Bb=null;{var ZC=function(){f("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},Lt=function(){f("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};sO={readContext:function(t){return zr(t)},useCallback:function(t,i){return Ce="useCallback",vn(),ph(i),VC(t,i)},useContext:function(t){return Ce="useContext",vn(),zr(t)},useEffect:function(t,i){return Ce="useEffect",vn(),ph(i),Lb(t,i)},useImperativeHandle:function(t,i,u){return Ce="useImperativeHandle",vn(),ph(u),BC(t,i,u)},useInsertionEffect:function(t,i){return Ce="useInsertionEffect",vn(),ph(i),$C(t,i)},useLayoutEffect:function(t,i){return Ce="useLayoutEffect",vn(),ph(i),UC(t,i)},useMemo:function(t,i){Ce="useMemo",vn(),ph(i);var u=et.current;et.current=$l;try{return HC(t,i)}finally{et.current=u}},useReducer:function(t,i,u){Ce="useReducer",vn();var d=et.current;et.current=$l;try{return LC(t,i,u)}finally{et.current=d}},useRef:function(t){return Ce="useRef",vn(),jC(t)},useState:function(t){Ce="useState",vn();var i=et.current;et.current=$l;try{return Db(t)}finally{et.current=i}},useDebugValue:function(t,i){return Ce="useDebugValue",vn(),void 0},useDeferredValue:function(t){return Ce="useDeferredValue",vn(),qC(t)},useTransition:function(){return Ce="useTransition",vn(),WC()},useMutableSource:function(t,i,u){return Ce="useMutableSource",vn(),void 0},useSyncExternalStore:function(t,i,u){return Ce="useSyncExternalStore",vn(),FC(t,i,u)},useId:function(){return Ce="useId",vn(),YC()},unstable_isNewReconciler:se},uO={readContext:function(t){return zr(t)},useCallback:function(t,i){return Ce="useCallback",Ze(),VC(t,i)},useContext:function(t){return Ce="useContext",Ze(),zr(t)},useEffect:function(t,i){return Ce="useEffect",Ze(),Lb(t,i)},useImperativeHandle:function(t,i,u){return Ce="useImperativeHandle",Ze(),BC(t,i,u)},useInsertionEffect:function(t,i){return Ce="useInsertionEffect",Ze(),$C(t,i)},useLayoutEffect:function(t,i){return Ce="useLayoutEffect",Ze(),UC(t,i)},useMemo:function(t,i){Ce="useMemo",Ze();var u=et.current;et.current=$l;try{return HC(t,i)}finally{et.current=u}},useReducer:function(t,i,u){Ce="useReducer",Ze();var d=et.current;et.current=$l;try{return LC(t,i,u)}finally{et.current=d}},useRef:function(t){return Ce="useRef",Ze(),jC(t)},useState:function(t){Ce="useState",Ze();var i=et.current;et.current=$l;try{return Db(t)}finally{et.current=i}},useDebugValue:function(t,i){return Ce="useDebugValue",Ze(),void 0},useDeferredValue:function(t){return Ce="useDeferredValue",Ze(),qC(t)},useTransition:function(){return Ce="useTransition",Ze(),WC()},useMutableSource:function(t,i,u){return Ce="useMutableSource",Ze(),void 0},useSyncExternalStore:function(t,i,u){return Ce="useSyncExternalStore",Ze(),FC(t,i,u)},useId:function(){return Ce="useId",Ze(),YC()},unstable_isNewReconciler:se},cO={readContext:function(t){return zr(t)},useCallback:function(t,i){return Ce="useCallback",Ze(),zb(t,i)},useContext:function(t){return Ce="useContext",Ze(),zr(t)},useEffect:function(t,i){return Ce="useEffect",Ze(),f0(t,i)},useImperativeHandle:function(t,i,u){return Ce="useImperativeHandle",Ze(),Fb(t,i,u)},useInsertionEffect:function(t,i){return Ce="useInsertionEffect",Ze(),Pb(t,i)},useLayoutEffect:function(t,i){return Ce="useLayoutEffect",Ze(),Nb(t,i)},useMemo:function(t,i){Ce="useMemo",Ze();var u=et.current;et.current=Zo;try{return jb(t,i)}finally{et.current=u}},useReducer:function(t,i,u){Ce="useReducer",Ze();var d=et.current;et.current=Zo;try{return PC(t,i,u)}finally{et.current=d}},useRef:function(t){return Ce="useRef",Ze(),Ab()},useState:function(t){Ce="useState",Ze();var i=et.current;et.current=Zo;try{return IC(t)}finally{et.current=i}},useDebugValue:function(t,i){return Ce="useDebugValue",Ze(),Ib()},useDeferredValue:function(t){return Ce="useDeferredValue",Ze(),X4(t)},useTransition:function(){return Ce="useTransition",Ze(),tO()},useMutableSource:function(t,i,u){return Ce="useMutableSource",Ze(),void 0},useSyncExternalStore:function(t,i,u){return Ce="useSyncExternalStore",Ze(),Ob(t,i)},useId:function(){return Ce="useId",Ze(),$b()},unstable_isNewReconciler:se},fO={readContext:function(t){return zr(t)},useCallback:function(t,i){return Ce="useCallback",Ze(),zb(t,i)},useContext:function(t){return Ce="useContext",Ze(),zr(t)},useEffect:function(t,i){return Ce="useEffect",Ze(),f0(t,i)},useImperativeHandle:function(t,i,u){return Ce="useImperativeHandle",Ze(),Fb(t,i,u)},useInsertionEffect:function(t,i){return Ce="useInsertionEffect",Ze(),Pb(t,i)},useLayoutEffect:function(t,i){return Ce="useLayoutEffect",Ze(),Nb(t,i)},useMemo:function(t,i){Ce="useMemo",Ze();var u=et.current;et.current=Bb;try{return jb(t,i)}finally{et.current=u}},useReducer:function(t,i,u){Ce="useReducer",Ze();var d=et.current;et.current=Bb;try{return NC(t,i,u)}finally{et.current=d}},useRef:function(t){return Ce="useRef",Ze(),Ab()},useState:function(t){Ce="useState",Ze();var i=et.current;et.current=Bb;try{return zC(t)}finally{et.current=i}},useDebugValue:function(t,i){return Ce="useDebugValue",Ze(),Ib()},useDeferredValue:function(t){return Ce="useDeferredValue",Ze(),J4(t)},useTransition:function(){return Ce="useTransition",Ze(),nO()},useMutableSource:function(t,i,u){return Ce="useMutableSource",Ze(),void 0},useSyncExternalStore:function(t,i,u){return Ce="useSyncExternalStore",Ze(),Ob(t,i)},useId:function(){return Ce="useId",Ze(),$b()},unstable_isNewReconciler:se},$l={readContext:function(t){return ZC(),zr(t)},useCallback:function(t,i){return Ce="useCallback",Lt(),vn(),VC(t,i)},useContext:function(t){return Ce="useContext",Lt(),vn(),zr(t)},useEffect:function(t,i){return Ce="useEffect",Lt(),vn(),Lb(t,i)},useImperativeHandle:function(t,i,u){return Ce="useImperativeHandle",Lt(),vn(),BC(t,i,u)},useInsertionEffect:function(t,i){return Ce="useInsertionEffect",Lt(),vn(),$C(t,i)},useLayoutEffect:function(t,i){return Ce="useLayoutEffect",Lt(),vn(),UC(t,i)},useMemo:function(t,i){Ce="useMemo",Lt(),vn();var u=et.current;et.current=$l;try{return HC(t,i)}finally{et.current=u}},useReducer:function(t,i,u){Ce="useReducer",Lt(),vn();var d=et.current;et.current=$l;try{return LC(t,i,u)}finally{et.current=d}},useRef:function(t){return Ce="useRef",Lt(),vn(),jC(t)},useState:function(t){Ce="useState",Lt(),vn();var i=et.current;et.current=$l;try{return Db(t)}finally{et.current=i}},useDebugValue:function(t,i){return Ce="useDebugValue",Lt(),vn(),void 0},useDeferredValue:function(t){return Ce="useDeferredValue",Lt(),vn(),qC(t)},useTransition:function(){return Ce="useTransition",Lt(),vn(),WC()},useMutableSource:function(t,i,u){return Ce="useMutableSource",Lt(),vn(),void 0},useSyncExternalStore:function(t,i,u){return Ce="useSyncExternalStore",Lt(),vn(),FC(t,i,u)},useId:function(){return Ce="useId",Lt(),vn(),YC()},unstable_isNewReconciler:se},Zo={readContext:function(t){return ZC(),zr(t)},useCallback:function(t,i){return Ce="useCallback",Lt(),Ze(),zb(t,i)},useContext:function(t){return Ce="useContext",Lt(),Ze(),zr(t)},useEffect:function(t,i){return Ce="useEffect",Lt(),Ze(),f0(t,i)},useImperativeHandle:function(t,i,u){return Ce="useImperativeHandle",Lt(),Ze(),Fb(t,i,u)},useInsertionEffect:function(t,i){return Ce="useInsertionEffect",Lt(),Ze(),Pb(t,i)},useLayoutEffect:function(t,i){return Ce="useLayoutEffect",Lt(),Ze(),Nb(t,i)},useMemo:function(t,i){Ce="useMemo",Lt(),Ze();var u=et.current;et.current=Zo;try{return jb(t,i)}finally{et.current=u}},useReducer:function(t,i,u){Ce="useReducer",Lt(),Ze();var d=et.current;et.current=Zo;try{return PC(t,i,u)}finally{et.current=d}},useRef:function(t){return Ce="useRef",Lt(),Ze(),Ab()},useState:function(t){Ce="useState",Lt(),Ze();var i=et.current;et.current=Zo;try{return IC(t)}finally{et.current=i}},useDebugValue:function(t,i){return Ce="useDebugValue",Lt(),Ze(),Ib()},useDeferredValue:function(t){return Ce="useDeferredValue",Lt(),Ze(),X4(t)},useTransition:function(){return Ce="useTransition",Lt(),Ze(),tO()},useMutableSource:function(t,i,u){return Ce="useMutableSource",Lt(),Ze(),void 0},useSyncExternalStore:function(t,i,u){return Ce="useSyncExternalStore",Lt(),Ze(),Ob(t,i)},useId:function(){return Ce="useId",Lt(),Ze(),$b()},unstable_isNewReconciler:se},Bb={readContext:function(t){return ZC(),zr(t)},useCallback:function(t,i){return Ce="useCallback",Lt(),Ze(),zb(t,i)},useContext:function(t){return Ce="useContext",Lt(),Ze(),zr(t)},useEffect:function(t,i){return Ce="useEffect",Lt(),Ze(),f0(t,i)},useImperativeHandle:function(t,i,u){return Ce="useImperativeHandle",Lt(),Ze(),Fb(t,i,u)},useInsertionEffect:function(t,i){return Ce="useInsertionEffect",Lt(),Ze(),Pb(t,i)},useLayoutEffect:function(t,i){return Ce="useLayoutEffect",Lt(),Ze(),Nb(t,i)},useMemo:function(t,i){Ce="useMemo",Lt(),Ze();var u=et.current;et.current=Zo;try{return jb(t,i)}finally{et.current=u}},useReducer:function(t,i,u){Ce="useReducer",Lt(),Ze();var d=et.current;et.current=Zo;try{return NC(t,i,u)}finally{et.current=d}},useRef:function(t){return Ce="useRef",Lt(),Ze(),Ab()},useState:function(t){Ce="useState",Lt(),Ze();var i=et.current;et.current=Zo;try{return zC(t)}finally{et.current=i}},useDebugValue:function(t,i){return Ce="useDebugValue",Lt(),Ze(),Ib()},useDeferredValue:function(t){return Ce="useDeferredValue",Lt(),Ze(),J4(t)},useTransition:function(){return Ce="useTransition",Lt(),Ze(),nO()},useMutableSource:function(t,i,u){return Ce="useMutableSource",Lt(),Ze(),void 0},useSyncExternalStore:function(t,i,u){return Ce="useSyncExternalStore",Lt(),Ze(),Ob(t,i)},useId:function(){return Ce="useId",Lt(),Ze(),$b()},unstable_isNewReconciler:se}}var pc=n.unstable_now,dO=0,Vb=-1,d0=-1,Hb=-1,KC=!1,qb=!1;function pO(){return KC}function qH(){qb=!0}function WH(){KC=!1,qb=!1}function YH(){KC=qb,qb=!1}function hO(){return dO}function mO(){dO=pc()}function GC(t){d0=pc(),t.actualStartTime<0&&(t.actualStartTime=pc())}function vO(t){d0=-1}function Wb(t,i){if(d0>=0){var u=pc()-d0;t.actualDuration+=u,i&&(t.selfBaseDuration=u),d0=-1}}function Ul(t){if(Vb>=0){var i=pc()-Vb;Vb=-1;for(var u=t.return;u!==null;){switch(u.tag){case E:var d=u.stateNode;d.effectDuration+=i;return;case B:var m=u.stateNode;m.effectDuration+=i;return}u=u.return}}}function QC(t){if(Hb>=0){var i=pc()-Hb;Hb=-1;for(var u=t.return;u!==null;){switch(u.tag){case E:var d=u.stateNode;d!==null&&(d.passiveEffectDuration+=i);return;case B:var m=u.stateNode;m!==null&&(m.passiveEffectDuration+=i);return}u=u.return}}}function Bl(){Vb=pc()}function XC(){Hb=pc()}function JC(t){for(var i=t.child;i;)t.actualDuration+=i.actualDuration,i=i.sibling}function Wf(t,i){return{value:t,source:i,stack:Em(i),digest:null}}function e2(t,i,u){return{value:t,source:null,stack:u??null,digest:i??null}}function ZH(t,i){return!0}function t2(t,i){try{var u=ZH(t,i);if(u===!1)return;var d=i.value,m=i.source,b=i.stack,k=b!==null?b:"";if(d!=null&&d._suppressLogging){if(t.tag===y)return;console.error(d)}var O=m?Ft(m):null,A=O?"The above error occurred in the <"+O+"> component:":"The above error occurred in one of your React components:",z;if(t.tag===E)z=`Consider adding an error boundary to your tree to customize error handling behavior.
148
148
  Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var V=Ft(t)||"Anonymous";z="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+V+".")}var X=A+`
149
149
  `+k+`
150
150
 
151
- `+(""+z);console.error(X)}catch(G){setTimeout(function(){throw G})}}var ZH=typeof WeakMap=="function"?WeakMap:Map;function vO(t,i,u){var d=Vs(An,u);d.tag=tC,d.payload={element:null};var m=i.value;return d.callback=function(){$W(m),t2(t,i)},d}function n2(t,i,u){var d=Vs(An,u);d.tag=tC;var m=t.type.getDerivedStateFromError;if(typeof m=="function"){var b=i.value;d.payload=function(){return m(b)},d.callback=function(){TD(t),t2(t,i)}}var k=t.stateNode;return k!==null&&typeof k.componentDidCatch=="function"&&(d.callback=function(){TD(t),t2(t,i),typeof m!="function"&&zW(this);var A=i.value,z=i.stack;this.componentDidCatch(A,{componentStack:z!==null?z:""}),typeof m!="function"&&(Mi(t.lanes,kt)||f("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Ft(t)||"Unknown"))}),d}function gO(t,i,u){var d=t.pingCache,m;if(d===null?(d=t.pingCache=new ZH,m=new Set,d.set(i,m)):(m=d.get(i),m===void 0&&(m=new Set,d.set(i,m))),!m.has(u)){m.add(u);var b=UW.bind(null,t,i,u);Br&&R0(t,u),i.then(b,b)}}function KH(t,i,u,d){var m=t.updateQueue;if(m===null){var b=new Set;b.add(u),t.updateQueue=b}else m.add(u)}function GH(t,i){var u=t.tag;if((t.mode&Zt)===Et&&(u===v||u===N||u===H)){var d=t.alternate;d?(t.updateQueue=d.updateQueue,t.memoizedState=d.memoizedState,t.lanes=d.lanes):(t.updateQueue=null,t.memoizedState=null)}}function yO(t){var i=t;do{if(i.tag===F&&PH(i))return i;i=i.return}while(i!==null);return null}function bO(t,i,u,d,m){if((t.mode&Zt)===Et){if(t===i)t.flags|=Lr;else{if(t.flags|=Dt,u.flags|=hf,u.flags&=~(ep|Vi),u.tag===y){var b=u.alternate;if(b===null)u.tag=ne;else{var k=Vs(An,kt);k.tag=vb,uc(u,k,kt)}}u.lanes=jt(u.lanes,kt)}return t}return t.flags|=Lr,t.lanes=m,t}function QH(t,i,u,d,m){if(u.flags|=Vi,Br&&R0(t,m),d!==null&&typeof d=="object"&&typeof d.then=="function"){var b=d;GH(u),pi()&&u.mode&Zt&&u4();var k=yO(i);if(k!==null){k.flags&=~er,bO(k,i,u,t,m),k.mode&Zt&&gO(t,b,m),KH(k,t,b);return}else{if(!Uu(m)){gO(t,b,m),N2();return}var O=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");d=O}}else if(pi()&&u.mode&Zt){u4();var A=yO(i);if(A!==null){(A.flags&Lr)===yt&&(A.flags|=er),bO(A,i,u,t,m),Zw(Wf(d,u));return}}d=Wf(d,u),DW(d);var z=i;do{switch(z.tag){case E:{var V=d;z.flags|=Lr;var X=wr(m);z.lanes=jt(z.lanes,X);var G=vO(z,V,X);iC(z,G);return}case y:var ue=d,ce=z.type,Se=z.stateNode;if((z.flags&Dt)===yt&&(typeof ce.getDerivedStateFromError=="function"||Se!==null&&typeof Se.componentDidCatch=="function"&&!yD(Se))){z.flags|=Lr;var tt=wr(m);z.lanes=jt(z.lanes,tt);var bt=n2(z,ue,tt);iC(z,bt);return}break}z=z.return}while(z!==null)}function XH(){return null}var p0=r.ReactCurrentOwner,Ko=!1,r2,h0,i2,a2,o2,Yf,l2,Yb;r2={},h0={},i2={},a2={},o2={},Yf=!1,l2={},Yb={};function Ki(t,i,u,d){t===null?i.child=I4(i,null,u,d):i.child=sh(i,t.child,u,d)}function JH(t,i,u,d){i.child=sh(i,t.child,null,d),i.child=sh(i,null,u,d)}function SO(t,i,u,d,m){if(i.type!==i.elementType){var b=u.propTypes;b&&Vo(b,d,"prop",On(u))}var k=u.render,O=i.ref,A,z;lh(i,m),_l(i);{if(p0.current=i,$a(!0),A=hh(t,i,k,d,O,m),z=mh(),i.mode&Kn){xr(!0);try{A=hh(t,i,k,d,O,m),z=mh()}finally{xr(!1)}}$a(!1)}return ys(),t!==null&&!Ko?(B4(t,i,m),Hs(t,i,m)):(pi()&&z&&Bw(i),i.flags|=bl,Ki(t,i,A,m),i.child)}function EO(t,i,u,d,m){if(t===null){var b=u.type;if(iY(b)&&u.compare===null&&u.defaultProps===void 0){var k=b;return k=wh(b),i.tag=H,i.type=k,c2(i,b),xO(t,i,k,d,m)}{var O=b.propTypes;O&&Vo(O,d,"prop",On(b))}var A=W2(u.type,null,d,i,i.mode,m);return A.ref=i.ref,A.return=i,i.child=A,A}{var z=u.type,V=z.propTypes;V&&Vo(V,d,"prop",On(z))}var X=t.child,G=v2(t,m);if(!G){var ue=X.memoizedProps,ce=u.compare;if(ce=ce!==null?ce:gt,ce(ue,d)&&t.ref===i.ref)return Hs(t,i,m)}i.flags|=bl;var Se=Xf(X,d);return Se.ref=i.ref,Se.return=i,i.child=Se,Se}function xO(t,i,u,d,m){if(i.type!==i.elementType){var b=i.elementType;if(b.$$typeof===xt){var k=b,O=k._payload,A=k._init;try{b=A(O)}catch{b=null}var z=b&&b.propTypes;z&&Vo(z,d,"prop",On(b))}}if(t!==null){var V=t.memoizedProps;if(gt(V,d)&&t.ref===i.ref&&i.type===t.type)if(Ko=!1,i.pendingProps=d=V,v2(t,m))(t.flags&hf)!==yt&&(Ko=!0);else return i.lanes=t.lanes,Hs(t,i,m)}return s2(t,i,u,d,m)}function wO(t,i,u){var d=i.pendingProps,m=d.children,b=t!==null?t.memoizedState:null;if(d.mode==="hidden"||L)if((i.mode&Zt)===Et){var k={baseLanes:we,cachePool:null,transitions:null};i.memoizedState=k,oS(i,u)}else if(Mi(u,Ai)){var X={baseLanes:we,cachePool:null,transitions:null};i.memoizedState=X;var G=b!==null?b.baseLanes:u;oS(i,G)}else{var O=null,A;if(b!==null){var z=b.baseLanes;A=jt(z,u)}else A=u;i.lanes=i.childLanes=Ai;var V={baseLanes:A,cachePool:O,transitions:null};return i.memoizedState=V,i.updateQueue=null,oS(i,A),null}else{var ue;b!==null?(ue=jt(b.baseLanes,u),i.memoizedState=null):ue=u,oS(i,ue)}return Ki(t,i,m,u),i.child}function eq(t,i,u){var d=i.pendingProps;return Ki(t,i,d,u),i.child}function tq(t,i,u){var d=i.pendingProps.children;return Ki(t,i,d,u),i.child}function nq(t,i,u){{i.flags|=zt;{var d=i.stateNode;d.effectDuration=0,d.passiveEffectDuration=0}}var m=i.pendingProps,b=m.children;return Ki(t,i,b,u),i.child}function CO(t,i){var u=i.ref;(t===null&&u!==null||t!==null&&t.ref!==u)&&(i.flags|=ki,i.flags|=Gm)}function s2(t,i,u,d,m){if(i.type!==i.elementType){var b=u.propTypes;b&&Vo(b,d,"prop",On(u))}var k;{var O=th(i,u,!0);k=nh(i,O)}var A,z;lh(i,m),_l(i);{if(p0.current=i,$a(!0),A=hh(t,i,u,d,k,m),z=mh(),i.mode&Kn){xr(!0);try{A=hh(t,i,u,d,k,m),z=mh()}finally{xr(!1)}}$a(!1)}return ys(),t!==null&&!Ko?(B4(t,i,m),Hs(t,i,m)):(pi()&&z&&Bw(i),i.flags|=bl,Ki(t,i,A,m),i.child)}function kO(t,i,u,d,m){{switch(bY(i)){case!1:{var b=i.stateNode,k=i.type,O=new k(i.memoizedProps,b.context),A=O.state;b.updater.enqueueSetState(b,A,null);break}case!0:{i.flags|=Dt,i.flags|=Lr;var z=new Error("Simulated error coming from DevTools"),V=wr(m);i.lanes=jt(i.lanes,V);var X=n2(i,Wf(z,i),V);iC(i,X);break}}if(i.type!==i.elementType){var G=u.propTypes;G&&Vo(G,d,"prop",On(u))}}var ue;Il(u)?(ue=!0,ab(i)):ue=!1,lh(i,m);var ce=i.stateNode,Se;ce===null?(Kb(t,i),M4(i,u,d),vC(i,u,d,m),Se=!0):t===null?Se=RH(i,u,d,m):Se=OH(t,i,u,d,m);var tt=u2(t,i,u,Se,ue,m);{var bt=i.stateNode;Se&&bt.props!==d&&(Yf||f("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Ft(i)||"a component"),Yf=!0)}return tt}function u2(t,i,u,d,m,b){CO(t,i);var k=(i.flags&Dt)!==yt;if(!d&&!k)return m&&a4(i,u,!1),Hs(t,i,b);var O=i.stateNode;p0.current=i;var A;if(k&&typeof u.getDerivedStateFromError!="function")A=null,mO();else{_l(i);{if($a(!0),A=O.render(),i.mode&Kn){xr(!0);try{O.render()}finally{xr(!1)}}$a(!1)}ys()}return i.flags|=bl,t!==null&&k?JH(t,i,A,b):Ki(t,i,A,b),i.memoizedState=O.state,m&&a4(i,u,!0),i.child}function _O(t){var i=t.stateNode;i.pendingContext?r4(t,i.pendingContext,i.pendingContext!==i.context):i.context&&r4(t,i.context,!1),xC(t,i.containerInfo)}function rq(t,i,u){if(_O(i),t===null)throw new Error("Should have a current fiber. This is a bug in React.");var d=i.pendingProps,m=i.memoizedState,b=m.element;C4(t,i),Sb(i,d,null,u);var k=i.memoizedState;i.stateNode;var O=k.element;if(m.isDehydrated){var A={element:O,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},z=i.updateQueue;if(z.baseState=A,i.memoizedState=A,i.flags&er){var V=Wf(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),i);return TO(t,i,O,u,V)}else if(O!==b){var X=Wf(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),i);return TO(t,i,O,u,X)}else{lH(i);var G=I4(i,null,O,u);i.child=G;for(var ue=G;ue;)ue.flags=ue.flags&~Pn|va,ue=ue.sibling}}else{if(ah(),O===b)return Hs(t,i,u);Ki(t,i,O,u)}return i.child}function TO(t,i,u,d,m){return ah(),Zw(m),i.flags|=er,Ki(t,i,u,d),i.child}function iq(t,i,u){j4(i),t===null&&Yw(i);var d=i.type,m=i.pendingProps,b=t!==null?t.memoizedProps:null,k=m.children,O=Rw(d,m);return O?k=null:b!==null&&Rw(d,b)&&(i.flags|=mn),CO(t,i),Ki(t,i,k,u),i.child}function aq(t,i){return t===null&&Yw(i),null}function oq(t,i,u,d){Kb(t,i);var m=i.pendingProps,b=u,k=b._payload,O=b._init,A=O(k);i.type=A;var z=i.tag=aY(A),V=Wo(A,m),X;switch(z){case v:return c2(i,A),i.type=A=wh(A),X=s2(null,i,A,V,d),X;case y:return i.type=A=$2(A),X=kO(null,i,A,V,d),X;case N:return i.type=A=U2(A),X=SO(null,i,A,V,d),X;case $:{if(i.type!==i.elementType){var G=A.propTypes;G&&Vo(G,V,"prop",On(A))}return X=EO(null,i,A,Wo(A.type,V),d),X}}var ue="";throw A!==null&&typeof A=="object"&&A.$$typeof===xt&&(ue=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+A+". "+("Lazy element type must resolve to a class or function."+ue))}function lq(t,i,u,d,m){Kb(t,i),i.tag=y;var b;return Il(u)?(b=!0,ab(i)):b=!1,lh(i,m),M4(i,u,d),vC(i,u,d,m),u2(null,i,u,!0,b,m)}function sq(t,i,u,d){Kb(t,i);var m=i.pendingProps,b;{var k=th(i,u,!1);b=nh(i,k)}lh(i,d);var O,A;_l(i);{if(u.prototype&&typeof u.prototype.render=="function"){var z=On(u)||"Unknown";r2[z]||(f("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",z,z),r2[z]=!0)}i.mode&Kn&&qo.recordLegacyContextWarning(i,null),$a(!0),p0.current=i,O=hh(null,i,u,m,b,d),A=mh(),$a(!1)}if(ys(),i.flags|=bl,typeof O=="object"&&O!==null&&typeof O.render=="function"&&O.$$typeof===void 0){var V=On(u)||"Unknown";h0[V]||(f("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",V,V,V),h0[V]=!0)}if(typeof O=="object"&&O!==null&&typeof O.render=="function"&&O.$$typeof===void 0){{var X=On(u)||"Unknown";h0[X]||(f("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",X,X,X),h0[X]=!0)}i.tag=y,i.memoizedState=null,i.updateQueue=null;var G=!1;return Il(u)?(G=!0,ab(i)):G=!1,i.memoizedState=O.state!==null&&O.state!==void 0?O.state:null,rC(i),A4(i,O),vC(i,u,m,d),u2(null,i,u,!0,G,d)}else{if(i.tag=v,i.mode&Kn){xr(!0);try{O=hh(null,i,u,m,b,d),A=mh()}finally{xr(!1)}}return pi()&&A&&Bw(i),Ki(null,i,O,d),c2(i,u),i.child}}function c2(t,i){{if(i&&i.childContextTypes&&f("%s(...): childContextTypes cannot be defined on a function component.",i.displayName||i.name||"Component"),t.ref!==null){var u="",d=da();d&&(u+=`
151
+ `+(""+z);console.error(X)}catch(G){setTimeout(function(){throw G})}}var KH=typeof WeakMap=="function"?WeakMap:Map;function gO(t,i,u){var d=Vs(An,u);d.tag=tC,d.payload={element:null};var m=i.value;return d.callback=function(){UW(m),t2(t,i)},d}function n2(t,i,u){var d=Vs(An,u);d.tag=tC;var m=t.type.getDerivedStateFromError;if(typeof m=="function"){var b=i.value;d.payload=function(){return m(b)},d.callback=function(){RD(t),t2(t,i)}}var k=t.stateNode;return k!==null&&typeof k.componentDidCatch=="function"&&(d.callback=function(){RD(t),t2(t,i),typeof m!="function"&&jW(this);var A=i.value,z=i.stack;this.componentDidCatch(A,{componentStack:z!==null?z:""}),typeof m!="function"&&(Mi(t.lanes,kt)||f("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Ft(t)||"Unknown"))}),d}function yO(t,i,u){var d=t.pingCache,m;if(d===null?(d=t.pingCache=new KH,m=new Set,d.set(i,m)):(m=d.get(i),m===void 0&&(m=new Set,d.set(i,m))),!m.has(u)){m.add(u);var b=BW.bind(null,t,i,u);Br&&R0(t,u),i.then(b,b)}}function GH(t,i,u,d){var m=t.updateQueue;if(m===null){var b=new Set;b.add(u),t.updateQueue=b}else m.add(u)}function QH(t,i){var u=t.tag;if((t.mode&Zt)===Et&&(u===v||u===N||u===H)){var d=t.alternate;d?(t.updateQueue=d.updateQueue,t.memoizedState=d.memoizedState,t.lanes=d.lanes):(t.updateQueue=null,t.memoizedState=null)}}function bO(t){var i=t;do{if(i.tag===F&&NH(i))return i;i=i.return}while(i!==null);return null}function SO(t,i,u,d,m){if((t.mode&Zt)===Et){if(t===i)t.flags|=Lr;else{if(t.flags|=Dt,u.flags|=hf,u.flags&=~(ep|Vi),u.tag===y){var b=u.alternate;if(b===null)u.tag=ne;else{var k=Vs(An,kt);k.tag=vb,uc(u,k,kt)}}u.lanes=jt(u.lanes,kt)}return t}return t.flags|=Lr,t.lanes=m,t}function XH(t,i,u,d,m){if(u.flags|=Vi,Br&&R0(t,m),d!==null&&typeof d=="object"&&typeof d.then=="function"){var b=d;QH(u),pi()&&u.mode&Zt&&c4();var k=bO(i);if(k!==null){k.flags&=~er,SO(k,i,u,t,m),k.mode&Zt&&yO(t,b,m),GH(k,t,b);return}else{if(!Uu(m)){yO(t,b,m),N2();return}var O=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");d=O}}else if(pi()&&u.mode&Zt){c4();var A=bO(i);if(A!==null){(A.flags&Lr)===yt&&(A.flags|=er),SO(A,i,u,t,m),Zw(Wf(d,u));return}}d=Wf(d,u),AW(d);var z=i;do{switch(z.tag){case E:{var V=d;z.flags|=Lr;var X=wr(m);z.lanes=jt(z.lanes,X);var G=gO(z,V,X);iC(z,G);return}case y:var ue=d,ce=z.type,Se=z.stateNode;if((z.flags&Dt)===yt&&(typeof ce.getDerivedStateFromError=="function"||Se!==null&&typeof Se.componentDidCatch=="function"&&!bD(Se))){z.flags|=Lr;var tt=wr(m);z.lanes=jt(z.lanes,tt);var bt=n2(z,ue,tt);iC(z,bt);return}break}z=z.return}while(z!==null)}function JH(){return null}var p0=r.ReactCurrentOwner,Ko=!1,r2,h0,i2,a2,o2,Yf,l2,Yb;r2={},h0={},i2={},a2={},o2={},Yf=!1,l2={},Yb={};function Ki(t,i,u,d){t===null?i.child=z4(i,null,u,d):i.child=sh(i,t.child,u,d)}function eq(t,i,u,d){i.child=sh(i,t.child,null,d),i.child=sh(i,null,u,d)}function EO(t,i,u,d,m){if(i.type!==i.elementType){var b=u.propTypes;b&&Vo(b,d,"prop",On(u))}var k=u.render,O=i.ref,A,z;lh(i,m),_l(i);{if(p0.current=i,$a(!0),A=hh(t,i,k,d,O,m),z=mh(),i.mode&Kn){xr(!0);try{A=hh(t,i,k,d,O,m),z=mh()}finally{xr(!1)}}$a(!1)}return ys(),t!==null&&!Ko?(V4(t,i,m),Hs(t,i,m)):(pi()&&z&&Bw(i),i.flags|=bl,Ki(t,i,A,m),i.child)}function xO(t,i,u,d,m){if(t===null){var b=u.type;if(aY(b)&&u.compare===null&&u.defaultProps===void 0){var k=b;return k=wh(b),i.tag=H,i.type=k,c2(i,b),wO(t,i,k,d,m)}{var O=b.propTypes;O&&Vo(O,d,"prop",On(b))}var A=W2(u.type,null,d,i,i.mode,m);return A.ref=i.ref,A.return=i,i.child=A,A}{var z=u.type,V=z.propTypes;V&&Vo(V,d,"prop",On(z))}var X=t.child,G=v2(t,m);if(!G){var ue=X.memoizedProps,ce=u.compare;if(ce=ce!==null?ce:gt,ce(ue,d)&&t.ref===i.ref)return Hs(t,i,m)}i.flags|=bl;var Se=Xf(X,d);return Se.ref=i.ref,Se.return=i,i.child=Se,Se}function wO(t,i,u,d,m){if(i.type!==i.elementType){var b=i.elementType;if(b.$$typeof===xt){var k=b,O=k._payload,A=k._init;try{b=A(O)}catch{b=null}var z=b&&b.propTypes;z&&Vo(z,d,"prop",On(b))}}if(t!==null){var V=t.memoizedProps;if(gt(V,d)&&t.ref===i.ref&&i.type===t.type)if(Ko=!1,i.pendingProps=d=V,v2(t,m))(t.flags&hf)!==yt&&(Ko=!0);else return i.lanes=t.lanes,Hs(t,i,m)}return s2(t,i,u,d,m)}function CO(t,i,u){var d=i.pendingProps,m=d.children,b=t!==null?t.memoizedState:null;if(d.mode==="hidden"||L)if((i.mode&Zt)===Et){var k={baseLanes:we,cachePool:null,transitions:null};i.memoizedState=k,oS(i,u)}else if(Mi(u,Ai)){var X={baseLanes:we,cachePool:null,transitions:null};i.memoizedState=X;var G=b!==null?b.baseLanes:u;oS(i,G)}else{var O=null,A;if(b!==null){var z=b.baseLanes;A=jt(z,u)}else A=u;i.lanes=i.childLanes=Ai;var V={baseLanes:A,cachePool:O,transitions:null};return i.memoizedState=V,i.updateQueue=null,oS(i,A),null}else{var ue;b!==null?(ue=jt(b.baseLanes,u),i.memoizedState=null):ue=u,oS(i,ue)}return Ki(t,i,m,u),i.child}function tq(t,i,u){var d=i.pendingProps;return Ki(t,i,d,u),i.child}function nq(t,i,u){var d=i.pendingProps.children;return Ki(t,i,d,u),i.child}function rq(t,i,u){{i.flags|=zt;{var d=i.stateNode;d.effectDuration=0,d.passiveEffectDuration=0}}var m=i.pendingProps,b=m.children;return Ki(t,i,b,u),i.child}function kO(t,i){var u=i.ref;(t===null&&u!==null||t!==null&&t.ref!==u)&&(i.flags|=ki,i.flags|=Gm)}function s2(t,i,u,d,m){if(i.type!==i.elementType){var b=u.propTypes;b&&Vo(b,d,"prop",On(u))}var k;{var O=th(i,u,!0);k=nh(i,O)}var A,z;lh(i,m),_l(i);{if(p0.current=i,$a(!0),A=hh(t,i,u,d,k,m),z=mh(),i.mode&Kn){xr(!0);try{A=hh(t,i,u,d,k,m),z=mh()}finally{xr(!1)}}$a(!1)}return ys(),t!==null&&!Ko?(V4(t,i,m),Hs(t,i,m)):(pi()&&z&&Bw(i),i.flags|=bl,Ki(t,i,A,m),i.child)}function _O(t,i,u,d,m){{switch(SY(i)){case!1:{var b=i.stateNode,k=i.type,O=new k(i.memoizedProps,b.context),A=O.state;b.updater.enqueueSetState(b,A,null);break}case!0:{i.flags|=Dt,i.flags|=Lr;var z=new Error("Simulated error coming from DevTools"),V=wr(m);i.lanes=jt(i.lanes,V);var X=n2(i,Wf(z,i),V);iC(i,X);break}}if(i.type!==i.elementType){var G=u.propTypes;G&&Vo(G,d,"prop",On(u))}}var ue;Il(u)?(ue=!0,ab(i)):ue=!1,lh(i,m);var ce=i.stateNode,Se;ce===null?(Kb(t,i),L4(i,u,d),vC(i,u,d,m),Se=!0):t===null?Se=OH(i,u,d,m):Se=DH(t,i,u,d,m);var tt=u2(t,i,u,Se,ue,m);{var bt=i.stateNode;Se&&bt.props!==d&&(Yf||f("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Ft(i)||"a component"),Yf=!0)}return tt}function u2(t,i,u,d,m,b){kO(t,i);var k=(i.flags&Dt)!==yt;if(!d&&!k)return m&&o4(i,u,!1),Hs(t,i,b);var O=i.stateNode;p0.current=i;var A;if(k&&typeof u.getDerivedStateFromError!="function")A=null,vO();else{_l(i);{if($a(!0),A=O.render(),i.mode&Kn){xr(!0);try{O.render()}finally{xr(!1)}}$a(!1)}ys()}return i.flags|=bl,t!==null&&k?eq(t,i,A,b):Ki(t,i,A,b),i.memoizedState=O.state,m&&o4(i,u,!0),i.child}function TO(t){var i=t.stateNode;i.pendingContext?i4(t,i.pendingContext,i.pendingContext!==i.context):i.context&&i4(t,i.context,!1),xC(t,i.containerInfo)}function iq(t,i,u){if(TO(i),t===null)throw new Error("Should have a current fiber. This is a bug in React.");var d=i.pendingProps,m=i.memoizedState,b=m.element;k4(t,i),Sb(i,d,null,u);var k=i.memoizedState;i.stateNode;var O=k.element;if(m.isDehydrated){var A={element:O,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},z=i.updateQueue;if(z.baseState=A,i.memoizedState=A,i.flags&er){var V=Wf(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),i);return RO(t,i,O,u,V)}else if(O!==b){var X=Wf(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),i);return RO(t,i,O,u,X)}else{sH(i);var G=z4(i,null,O,u);i.child=G;for(var ue=G;ue;)ue.flags=ue.flags&~Pn|va,ue=ue.sibling}}else{if(ah(),O===b)return Hs(t,i,u);Ki(t,i,O,u)}return i.child}function RO(t,i,u,d,m){return ah(),Zw(m),i.flags|=er,Ki(t,i,u,d),i.child}function aq(t,i,u){$4(i),t===null&&Yw(i);var d=i.type,m=i.pendingProps,b=t!==null?t.memoizedProps:null,k=m.children,O=Rw(d,m);return O?k=null:b!==null&&Rw(d,b)&&(i.flags|=mn),kO(t,i),Ki(t,i,k,u),i.child}function oq(t,i){return t===null&&Yw(i),null}function lq(t,i,u,d){Kb(t,i);var m=i.pendingProps,b=u,k=b._payload,O=b._init,A=O(k);i.type=A;var z=i.tag=oY(A),V=Wo(A,m),X;switch(z){case v:return c2(i,A),i.type=A=wh(A),X=s2(null,i,A,V,d),X;case y:return i.type=A=$2(A),X=_O(null,i,A,V,d),X;case N:return i.type=A=U2(A),X=EO(null,i,A,V,d),X;case $:{if(i.type!==i.elementType){var G=A.propTypes;G&&Vo(G,V,"prop",On(A))}return X=xO(null,i,A,Wo(A.type,V),d),X}}var ue="";throw A!==null&&typeof A=="object"&&A.$$typeof===xt&&(ue=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+A+". "+("Lazy element type must resolve to a class or function."+ue))}function sq(t,i,u,d,m){Kb(t,i),i.tag=y;var b;return Il(u)?(b=!0,ab(i)):b=!1,lh(i,m),L4(i,u,d),vC(i,u,d,m),u2(null,i,u,!0,b,m)}function uq(t,i,u,d){Kb(t,i);var m=i.pendingProps,b;{var k=th(i,u,!1);b=nh(i,k)}lh(i,d);var O,A;_l(i);{if(u.prototype&&typeof u.prototype.render=="function"){var z=On(u)||"Unknown";r2[z]||(f("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",z,z),r2[z]=!0)}i.mode&Kn&&qo.recordLegacyContextWarning(i,null),$a(!0),p0.current=i,O=hh(null,i,u,m,b,d),A=mh(),$a(!1)}if(ys(),i.flags|=bl,typeof O=="object"&&O!==null&&typeof O.render=="function"&&O.$$typeof===void 0){var V=On(u)||"Unknown";h0[V]||(f("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",V,V,V),h0[V]=!0)}if(typeof O=="object"&&O!==null&&typeof O.render=="function"&&O.$$typeof===void 0){{var X=On(u)||"Unknown";h0[X]||(f("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",X,X,X),h0[X]=!0)}i.tag=y,i.memoizedState=null,i.updateQueue=null;var G=!1;return Il(u)?(G=!0,ab(i)):G=!1,i.memoizedState=O.state!==null&&O.state!==void 0?O.state:null,rC(i),M4(i,O),vC(i,u,m,d),u2(null,i,u,!0,G,d)}else{if(i.tag=v,i.mode&Kn){xr(!0);try{O=hh(null,i,u,m,b,d),A=mh()}finally{xr(!1)}}return pi()&&A&&Bw(i),Ki(null,i,O,d),c2(i,u),i.child}}function c2(t,i){{if(i&&i.childContextTypes&&f("%s(...): childContextTypes cannot be defined on a function component.",i.displayName||i.name||"Component"),t.ref!==null){var u="",d=da();d&&(u+=`
152
152
 
153
- Check the render method of \``+d+"`.");var m=d||"",b=t._debugSource;b&&(m=b.fileName+":"+b.lineNumber),o2[m]||(o2[m]=!0,f("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",u))}if(typeof i.getDerivedStateFromProps=="function"){var k=On(i)||"Unknown";a2[k]||(f("%s: Function components do not support getDerivedStateFromProps.",k),a2[k]=!0)}if(typeof i.contextType=="object"&&i.contextType!==null){var O=On(i)||"Unknown";i2[O]||(f("%s: Function components do not support contextType.",O),i2[O]=!0)}}}var f2={dehydrated:null,treeContext:null,retryLane:nn};function d2(t){return{baseLanes:t,cachePool:XH(),transitions:null}}function uq(t,i){var u=null;return{baseLanes:jt(t.baseLanes,i),cachePool:u,transitions:t.transitions}}function cq(t,i,u,d){if(i!==null){var m=i.memoizedState;if(m===null)return!1}return kC(t,a0)}function fq(t,i){return Bu(t.childLanes,i)}function RO(t,i,u){var d=i.pendingProps;SY(i)&&(i.flags|=Dt);var m=Yo.current,b=!1,k=(i.flags&Dt)!==yt;if(k||cq(m,t)?(b=!0,i.flags&=~Dt):(t===null||t.memoizedState!==null)&&(m=LH(m,U4)),m=ch(m),fc(i,m),t===null){Yw(i);var O=i.memoizedState;if(O!==null){var A=O.dehydrated;if(A!==null)return vq(i,A)}var z=d.children,V=d.fallback;if(b){var X=dq(i,z,V,u),G=i.child;return G.memoizedState=d2(u),i.memoizedState=f2,X}else return p2(i,z)}else{var ue=t.memoizedState;if(ue!==null){var ce=ue.dehydrated;if(ce!==null)return gq(t,i,k,d,ce,ue,u)}if(b){var Se=d.fallback,tt=d.children,bt=hq(t,i,tt,Se,u),vt=i.child,an=t.child.memoizedState;return vt.memoizedState=an===null?d2(u):uq(an,u),vt.childLanes=fq(t,u),i.memoizedState=f2,bt}else{var en=d.children,ie=pq(t,i,en,u);return i.memoizedState=null,ie}}}function p2(t,i,u){var d=t.mode,m={mode:"visible",children:i},b=h2(m,d);return b.return=t,t.child=b,b}function dq(t,i,u,d){var m=t.mode,b=t.child,k={mode:"hidden",children:i},O,A;return(m&Zt)===Et&&b!==null?(O=b,O.childLanes=we,O.pendingProps=k,t.mode&wt&&(O.actualDuration=0,O.actualStartTime=-1,O.selfBaseDuration=0,O.treeBaseDuration=0),A=bc(u,m,d,null)):(O=h2(k,m),A=bc(u,m,d,null)),O.return=t,A.return=t,O.sibling=A,t.child=O,A}function h2(t,i,u){return OD(t,i,we,null)}function OO(t,i){return Xf(t,i)}function pq(t,i,u,d){var m=t.child,b=m.sibling,k=OO(m,{mode:"visible",children:u});if((i.mode&Zt)===Et&&(k.lanes=d),k.return=i,k.sibling=null,b!==null){var O=i.deletions;O===null?(i.deletions=[b],i.flags|=pn):O.push(b)}return i.child=k,k}function hq(t,i,u,d,m){var b=i.mode,k=t.child,O=k.sibling,A={mode:"hidden",children:u},z;if((b&Zt)===Et&&i.child!==k){var V=i.child;z=V,z.childLanes=we,z.pendingProps=A,i.mode&wt&&(z.actualDuration=0,z.actualStartTime=-1,z.selfBaseDuration=k.selfBaseDuration,z.treeBaseDuration=k.treeBaseDuration),i.deletions=null}else z=OO(k,A),z.subtreeFlags=k.subtreeFlags&Ur;var X;return O!==null?X=Xf(O,d):(X=bc(d,b,m,null),X.flags|=Pn),X.return=i,z.return=i,z.sibling=X,i.child=z,X}function Zb(t,i,u,d){d!==null&&Zw(d),sh(i,t.child,null,u);var m=i.pendingProps,b=m.children,k=p2(i,b);return k.flags|=Pn,i.memoizedState=null,k}function mq(t,i,u,d,m){var b=i.mode,k={mode:"visible",children:u},O=h2(k,b),A=bc(d,b,m,null);return A.flags|=Pn,O.return=i,A.return=i,O.sibling=A,i.child=O,(i.mode&Zt)!==Et&&sh(i,t.child,null,m),A}function vq(t,i,u){return(t.mode&Zt)===Et?(f("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),t.lanes=kt):Mw(i)?t.lanes=Es:t.lanes=Ai,null}function gq(t,i,u,d,m,b,k){if(u)if(i.flags&er){i.flags&=~er;var ie=e2(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return Zb(t,i,k,ie)}else{if(i.memoizedState!==null)return i.child=t.child,i.flags|=Dt,null;var Ee=d.children,ae=d.fallback,je=mq(t,i,Ee,ae,k),nt=i.child;return nt.memoizedState=d2(k),i.memoizedState=f2,je}else{if(aH(),(i.mode&Zt)===Et)return Zb(t,i,k,null);if(Mw(m)){var O,A,z;{var V=xV(m);O=V.digest,A=V.message,z=V.stack}var X;A?X=new Error(A):X=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var G=e2(X,O,z);return Zb(t,i,k,G)}var ue=Mi(k,t.childLanes);if(Ko||ue){var ce=aS();if(ce!==null){var Se=Jx(ce,k);if(Se!==nn&&Se!==b.retryLane){b.retryLane=Se;var tt=An;_a(t,Se),Qr(ce,t,Se,tt)}}N2();var bt=e2(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return Zb(t,i,k,bt)}else if(QR(m)){i.flags|=Dt,i.child=t.child;var vt=BW.bind(null,t);return wV(m,vt),null}else{sH(i,m,b.treeContext);var an=d.children,en=p2(i,an);return en.flags|=va,en}}}function DO(t,i,u){t.lanes=jt(t.lanes,i);var d=t.alternate;d!==null&&(d.lanes=jt(d.lanes,i)),Jw(t.return,i,u)}function yq(t,i,u){for(var d=i;d!==null;){if(d.tag===F){var m=d.memoizedState;m!==null&&DO(d,u,t)}else if(d.tag===ee)DO(d,u,t);else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)return;for(;d.sibling===null;){if(d.return===null||d.return===t)return;d=d.return}d.sibling.return=d.return,d=d.sibling}}function bq(t){for(var i=t,u=null;i!==null;){var d=i.alternate;d!==null&&Tb(d)===null&&(u=i),i=i.sibling}return u}function Sq(t){if(t!==void 0&&t!=="forwards"&&t!=="backwards"&&t!=="together"&&!l2[t])if(l2[t]=!0,typeof t=="string")switch(t.toLowerCase()){case"together":case"forwards":case"backwards":{f('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',t,t.toLowerCase());break}case"forward":case"backward":{f('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',t,t.toLowerCase());break}default:f('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',t);break}else f('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',t)}function Eq(t,i){t!==void 0&&!Yb[t]&&(t!=="collapsed"&&t!=="hidden"?(Yb[t]=!0,f('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',t)):i!=="forwards"&&i!=="backwards"&&(Yb[t]=!0,f('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',t)))}function AO(t,i){{var u=Ar(t),d=!u&&typeof _o(t)=="function";if(u||d){var m=u?"array":"iterable";return f("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",m,i,m),!1}}return!0}function xq(t,i){if((i==="forwards"||i==="backwards")&&t!==void 0&&t!==null&&t!==!1)if(Ar(t)){for(var u=0;u<t.length;u++)if(!AO(t[u],u))return}else{var d=_o(t);if(typeof d=="function"){var m=d.call(t);if(m)for(var b=m.next(),k=0;!b.done;b=m.next()){if(!AO(b.value,k))return;k++}}else f('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',i)}}function m2(t,i,u,d,m){var b=t.memoizedState;b===null?t.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:d,tail:u,tailMode:m}:(b.isBackwards=i,b.rendering=null,b.renderingStartTime=0,b.last=d,b.tail=u,b.tailMode=m)}function MO(t,i,u){var d=i.pendingProps,m=d.revealOrder,b=d.tail,k=d.children;Sq(m),Eq(b,m),xq(k,m),Ki(t,i,k,u);var O=Yo.current,A=kC(O,a0);if(A)O=_C(O,a0),i.flags|=Dt;else{var z=t!==null&&(t.flags&Dt)!==yt;z&&yq(i,i.child,u),O=ch(O)}if(fc(i,O),(i.mode&Zt)===Et)i.memoizedState=null;else switch(m){case"forwards":{var V=bq(i.child),X;V===null?(X=i.child,i.child=null):(X=V.sibling,V.sibling=null),m2(i,!1,X,V,b);break}case"backwards":{var G=null,ue=i.child;for(i.child=null;ue!==null;){var ce=ue.alternate;if(ce!==null&&Tb(ce)===null){i.child=ue;break}var Se=ue.sibling;ue.sibling=G,G=ue,ue=Se}m2(i,!0,G,null,b);break}case"together":{m2(i,!1,null,null,void 0);break}default:i.memoizedState=null}return i.child}function wq(t,i,u){xC(i,i.stateNode.containerInfo);var d=i.pendingProps;return t===null?i.child=sh(i,null,d,u):Ki(t,i,d,u),i.child}var LO=!1;function Cq(t,i,u){var d=i.type,m=d._context,b=i.pendingProps,k=i.memoizedProps,O=b.value;{"value"in b||LO||(LO=!0,f("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var A=i.type.propTypes;A&&Vo(A,b,"prop","Context.Provider")}if(S4(i,m,O),k!==null){var z=k.value;if(ut(z,O)){if(k.children===b.children&&!rb())return Hs(t,i,u)}else yH(i,m,u)}var V=b.children;return Ki(t,i,V,u),i.child}var PO=!1;function kq(t,i,u){var d=i.type;d._context===void 0?d!==d.Consumer&&(PO||(PO=!0,f("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):d=d._context;var m=i.pendingProps,b=m.children;typeof b!="function"&&f("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),lh(i,u);var k=zr(d);_l(i);var O;return p0.current=i,$a(!0),O=b(k),$a(!1),ys(),i.flags|=bl,Ki(t,i,O,u),i.child}function m0(){Ko=!0}function Kb(t,i){(i.mode&Zt)===Et&&t!==null&&(t.alternate=null,i.alternate=null,i.flags|=Pn)}function Hs(t,i,u){return t!==null&&(i.dependencies=t.dependencies),mO(),T0(i.lanes),Mi(u,i.childLanes)?(DH(t,i),i.child):null}function _q(t,i,u){{var d=i.return;if(d===null)throw new Error("Cannot swap the root fiber.");if(t.alternate=null,i.alternate=null,u.index=i.index,u.sibling=i.sibling,u.return=i.return,u.ref=i.ref,i===d.child)d.child=u;else{var m=d.child;if(m===null)throw new Error("Expected parent to have a child.");for(;m.sibling!==i;)if(m=m.sibling,m===null)throw new Error("Expected to find the previous sibling.");m.sibling=u}var b=d.deletions;return b===null?(d.deletions=[t],d.flags|=pn):b.push(t),u.flags|=Pn,u}}function v2(t,i){var u=t.lanes;return!!Mi(u,i)}function Tq(t,i,u){switch(i.tag){case E:_O(i),i.stateNode,ah();break;case x:j4(i);break;case y:{var d=i.type;Il(d)&&ab(i);break}case C:xC(i,i.stateNode.containerInfo);break;case I:{var m=i.memoizedProps.value,b=i.type._context;S4(i,b,m);break}case B:{var k=Mi(u,i.childLanes);k&&(i.flags|=zt);{var O=i.stateNode;O.effectDuration=0,O.passiveEffectDuration=0}}break;case F:{var A=i.memoizedState;if(A!==null){if(A.dehydrated!==null)return fc(i,ch(Yo.current)),i.flags|=Dt,null;var z=i.child,V=z.childLanes;if(Mi(u,V))return RO(t,i,u);fc(i,ch(Yo.current));var X=Hs(t,i,u);return X!==null?X.sibling:null}else fc(i,ch(Yo.current));break}case ee:{var G=(t.flags&Dt)!==yt,ue=Mi(u,i.childLanes);if(G){if(ue)return MO(t,i,u);i.flags|=Dt}var ce=i.memoizedState;if(ce!==null&&(ce.rendering=null,ce.tail=null,ce.lastEffect=null),fc(i,Yo.current),ue)break;return null}case J:case pe:return i.lanes=we,wO(t,i,u)}return Hs(t,i,u)}function NO(t,i,u){if(i._debugNeedsRemount&&t!==null)return _q(t,i,W2(i.type,i.key,i.pendingProps,i._debugOwner||null,i.mode,i.lanes));if(t!==null){var d=t.memoizedProps,m=i.pendingProps;if(d!==m||rb()||i.type!==t.type)Ko=!0;else{var b=v2(t,u);if(!b&&(i.flags&Dt)===yt)return Ko=!1,Tq(t,i,u);(t.flags&hf)!==yt?Ko=!0:Ko=!1}}else if(Ko=!1,pi()&&JV(i)){var k=i.index,O=eH();s4(i,O,k)}switch(i.lanes=we,i.tag){case S:return sq(t,i,i.type,u);case Y:{var A=i.elementType;return oq(t,i,A,u)}case v:{var z=i.type,V=i.pendingProps,X=i.elementType===z?V:Wo(z,V);return s2(t,i,z,X,u)}case y:{var G=i.type,ue=i.pendingProps,ce=i.elementType===G?ue:Wo(G,ue);return kO(t,i,G,ce,u)}case E:return rq(t,i,u);case x:return iq(t,i,u);case R:return aq(t,i);case F:return RO(t,i,u);case C:return wq(t,i,u);case N:{var Se=i.type,tt=i.pendingProps,bt=i.elementType===Se?tt:Wo(Se,tt);return SO(t,i,Se,bt,u)}case T:return eq(t,i,u);case D:return tq(t,i,u);case B:return nq(t,i,u);case I:return Cq(t,i,u);case M:return kq(t,i,u);case $:{var vt=i.type,an=i.pendingProps,en=Wo(vt,an);if(i.type!==i.elementType){var ie=vt.propTypes;ie&&Vo(ie,en,"prop",On(vt))}return en=Wo(vt.type,en),EO(t,i,vt,en,u)}case H:return xO(t,i,i.type,i.pendingProps,u);case ne:{var Ee=i.type,ae=i.pendingProps,je=i.elementType===Ee?ae:Wo(Ee,ae);return lq(t,i,Ee,je,u)}case ee:return MO(t,i,u);case oe:break;case J:return wO(t,i,u)}throw new Error("Unknown unit of work tag ("+i.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function vh(t){t.flags|=zt}function FO(t){t.flags|=ki,t.flags|=Gm}var IO,g2,zO,jO;IO=function(t,i,u,d){for(var m=i.child;m!==null;){if(m.tag===x||m.tag===R)GB(t,m.stateNode);else if(m.tag!==C){if(m.child!==null){m.child.return=m,m=m.child;continue}}if(m===i)return;for(;m.sibling===null;){if(m.return===null||m.return===i)return;m=m.return}m.sibling.return=m.return,m=m.sibling}},g2=function(t,i){},zO=function(t,i,u,d,m){var b=t.memoizedProps;if(b!==d){var k=i.stateNode,O=wC(),A=XB(k,u,b,d,m,O);i.updateQueue=A,A&&vh(i)}},jO=function(t,i,u,d){u!==d&&vh(i)};function v0(t,i){if(!pi())switch(t.tailMode){case"hidden":{for(var u=t.tail,d=null;u!==null;)u.alternate!==null&&(d=u),u=u.sibling;d===null?t.tail=null:d.sibling=null;break}case"collapsed":{for(var m=t.tail,b=null;m!==null;)m.alternate!==null&&(b=m),m=m.sibling;b===null?!i&&t.tail!==null?t.tail.sibling=null:t.tail=null:b.sibling=null;break}}}function mi(t){var i=t.alternate!==null&&t.alternate.child===t.child,u=we,d=yt;if(i){if((t.mode&wt)!==Et){for(var A=t.selfBaseDuration,z=t.child;z!==null;)u=jt(u,jt(z.lanes,z.childLanes)),d|=z.subtreeFlags&Ur,d|=z.flags&Ur,A+=z.treeBaseDuration,z=z.sibling;t.treeBaseDuration=A}else for(var V=t.child;V!==null;)u=jt(u,jt(V.lanes,V.childLanes)),d|=V.subtreeFlags&Ur,d|=V.flags&Ur,V.return=t,V=V.sibling;t.subtreeFlags|=d}else{if((t.mode&wt)!==Et){for(var m=t.actualDuration,b=t.selfBaseDuration,k=t.child;k!==null;)u=jt(u,jt(k.lanes,k.childLanes)),d|=k.subtreeFlags,d|=k.flags,m+=k.actualDuration,b+=k.treeBaseDuration,k=k.sibling;t.actualDuration=m,t.treeBaseDuration=b}else for(var O=t.child;O!==null;)u=jt(u,jt(O.lanes,O.childLanes)),d|=O.subtreeFlags,d|=O.flags,O.return=t,O=O.sibling;t.subtreeFlags|=d}return t.childLanes=u,i}function Rq(t,i,u){if(pH()&&(i.mode&Zt)!==Et&&(i.flags&Dt)===yt)return m4(i),ah(),i.flags|=er|Vi|Lr,!1;var d=cb(i);if(u!==null&&u.dehydrated!==null)if(t===null){if(!d)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(fH(i),mi(i),(i.mode&wt)!==Et){var m=u!==null;if(m){var b=i.child;b!==null&&(i.treeBaseDuration-=b.treeBaseDuration)}}return!1}else{if(ah(),(i.flags&Dt)===yt&&(i.memoizedState=null),i.flags|=zt,mi(i),(i.mode&wt)!==Et){var k=u!==null;if(k){var O=i.child;O!==null&&(i.treeBaseDuration-=O.treeBaseDuration)}}return!1}else return v4(),!0}function $O(t,i,u){var d=i.pendingProps;switch(Vw(i),i.tag){case S:case Y:case H:case v:case N:case T:case D:case B:case M:case $:return mi(i),null;case y:{var m=i.type;return Il(m)&&ib(i),mi(i),null}case E:{var b=i.stateNode;if(uh(i),jw(i),RC(),b.pendingContext&&(b.context=b.pendingContext,b.pendingContext=null),t===null||t.child===null){var k=cb(i);if(k)vh(i);else if(t!==null){var O=t.memoizedState;(!O.isDehydrated||(i.flags&er)!==yt)&&(i.flags|=ma,v4())}}return g2(t,i),mi(i),null}case x:{CC(i);var A=z4(),z=i.type;if(t!==null&&i.stateNode!=null)zO(t,i,z,d,A),t.ref!==i.ref&&FO(i);else{if(!d){if(i.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return mi(i),null}var V=wC(),X=cb(i);if(X)uH(i,A,V)&&vh(i);else{var G=KB(z,d,A,V,i);IO(G,i,!1,!1),i.stateNode=G,QB(G,z,d,A)&&vh(i)}i.ref!==null&&FO(i)}return mi(i),null}case R:{var ue=d;if(t&&i.stateNode!=null){var ce=t.memoizedProps;jO(t,i,ce,ue)}else{if(typeof ue!="string"&&i.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var Se=z4(),tt=wC(),bt=cb(i);bt?cH(i)&&vh(i):i.stateNode=JB(ue,Se,tt,i)}return mi(i),null}case F:{fh(i);var vt=i.memoizedState;if(t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){var an=Rq(t,i,vt);if(!an)return i.flags&Lr?i:null}if((i.flags&Dt)!==yt)return i.lanes=u,(i.mode&wt)!==Et&&JC(i),i;var en=vt!==null,ie=t!==null&&t.memoizedState!==null;if(en!==ie&&en){var Ee=i.child;if(Ee.flags|=Sl,(i.mode&Zt)!==Et){var ae=t===null&&(i.memoizedProps.unstable_avoidThisFallback!==!0||!te);ae||kC(Yo.current,U4)?OW():N2()}}var je=i.updateQueue;if(je!==null&&(i.flags|=zt),mi(i),(i.mode&wt)!==Et&&en){var nt=i.child;nt!==null&&(i.treeBaseDuration-=nt.treeBaseDuration)}return null}case C:return uh(i),g2(t,i),t===null&&WV(i.stateNode.containerInfo),mi(i),null;case I:var Xe=i.type._context;return Xw(Xe,i),mi(i),null;case ne:{var Tt=i.type;return Il(Tt)&&ib(i),mi(i),null}case ee:{fh(i);var Nt=i.memoizedState;if(Nt===null)return mi(i),null;var _n=(i.flags&Dt)!==yt,cn=Nt.rendering;if(cn===null)if(_n)v0(Nt,!1);else{var Tr=AW()&&(t===null||(t.flags&Dt)===yt);if(!Tr)for(var fn=i.child;fn!==null;){var yr=Tb(fn);if(yr!==null){_n=!0,i.flags|=Dt,v0(Nt,!1);var Fi=yr.updateQueue;return Fi!==null&&(i.updateQueue=Fi,i.flags|=zt),i.subtreeFlags=yt,AH(i,u),fc(i,_C(Yo.current,a0)),i.child}fn=fn.sibling}Nt.tail!==null&&Zn()>lD()&&(i.flags|=Dt,_n=!0,v0(Nt,!1),i.lanes=uv)}else{if(!_n){var Si=Tb(cn);if(Si!==null){i.flags|=Dt,_n=!0;var Za=Si.updateQueue;if(Za!==null&&(i.updateQueue=Za,i.flags|=zt),v0(Nt,!0),Nt.tail===null&&Nt.tailMode==="hidden"&&!cn.alternate&&!pi())return mi(i),null}else Zn()*2-Nt.renderingStartTime>lD()&&u!==Ai&&(i.flags|=Dt,_n=!0,v0(Nt,!1),i.lanes=uv)}if(Nt.isBackwards)cn.sibling=i.child,i.child=cn;else{var Xi=Nt.last;Xi!==null?Xi.sibling=cn:i.child=cn,Nt.last=cn}}if(Nt.tail!==null){var Ji=Nt.tail;Nt.rendering=Ji,Nt.tail=Ji.sibling,Nt.renderingStartTime=Zn(),Ji.sibling=null;var Ii=Yo.current;return _n?Ii=_C(Ii,a0):Ii=ch(Ii),fc(i,Ii),Ji}return mi(i),null}case oe:break;case J:case pe:{P2(i);var Ks=i.memoizedState,Ch=Ks!==null;if(t!==null){var M0=t.memoizedState,ql=M0!==null;ql!==Ch&&!L&&(i.flags|=Sl)}return!Ch||(i.mode&Zt)===Et?mi(i):Mi(Hl,Ai)&&(mi(i),i.subtreeFlags&(Pn|zt)&&(i.flags|=Sl)),null}case ke:return null;case xe:return null}throw new Error("Unknown unit of work tag ("+i.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Oq(t,i,u){switch(Vw(i),i.tag){case y:{var d=i.type;Il(d)&&ib(i);var m=i.flags;return m&Lr?(i.flags=m&~Lr|Dt,(i.mode&wt)!==Et&&JC(i),i):null}case E:{i.stateNode,uh(i),jw(i),RC();var b=i.flags;return(b&Lr)!==yt&&(b&Dt)===yt?(i.flags=b&~Lr|Dt,i):null}case x:return CC(i),null;case F:{fh(i);var k=i.memoizedState;if(k!==null&&k.dehydrated!==null){if(i.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");ah()}var O=i.flags;return O&Lr?(i.flags=O&~Lr|Dt,(i.mode&wt)!==Et&&JC(i),i):null}case ee:return fh(i),null;case C:return uh(i),null;case I:var A=i.type._context;return Xw(A,i),null;case J:case pe:return P2(i),null;case ke:return null;default:return null}}function UO(t,i,u){switch(Vw(i),i.tag){case y:{var d=i.type.childContextTypes;d!=null&&ib(i);break}case E:{i.stateNode,uh(i),jw(i),RC();break}case x:{CC(i);break}case C:uh(i);break;case F:fh(i);break;case ee:fh(i);break;case I:var m=i.type._context;Xw(m,i);break;case J:case pe:P2(i);break}}var BO=null;BO=new Set;var Gb=!1,vi=!1,Dq=typeof WeakSet=="function"?WeakSet:Set,ct=null,gh=null,yh=null;function Aq(t){vs(null,function(){throw t}),Zm()}var Mq=function(t,i){if(i.props=t.memoizedProps,i.state=t.memoizedState,t.mode&wt)try{Bl(),i.componentWillUnmount()}finally{Ul(t)}else i.componentWillUnmount()};function VO(t,i){try{hc(qr,t)}catch(u){zn(t,i,u)}}function y2(t,i,u){try{Mq(t,u)}catch(d){zn(t,i,d)}}function Lq(t,i,u){try{u.componentDidMount()}catch(d){zn(t,i,d)}}function HO(t,i){try{WO(t)}catch(u){zn(t,i,u)}}function bh(t,i){var u=t.ref;if(u!==null)if(typeof u=="function"){var d;try{if(Re&&Oe&&t.mode&wt)try{Bl(),d=u(null)}finally{Ul(t)}else d=u(null)}catch(m){zn(t,i,m)}typeof d=="function"&&f("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ft(t))}else u.current=null}function Qb(t,i,u){try{u()}catch(d){zn(t,i,d)}}var qO=!1;function Pq(t,i){YB(t.containerInfo),ct=i,Nq();var u=qO;return qO=!1,u}function Nq(){for(;ct!==null;){var t=ct,i=t.child;(t.subtreeFlags&Pu)!==yt&&i!==null?(i.return=t,ct=i):Fq()}}function Fq(){for(;ct!==null;){var t=ct;Cn(t);try{Iq(t)}catch(u){zn(t,t.return,u)}Er();var i=t.sibling;if(i!==null){i.return=t.return,ct=i;return}ct=t.return}}function Iq(t){var i=t.alternate,u=t.flags;if((u&ma)!==yt){switch(Cn(t),t.tag){case v:case N:case H:break;case y:{if(i!==null){var d=i.memoizedProps,m=i.memoizedState,b=t.stateNode;t.type===t.elementType&&!Yf&&(b.props!==t.memoizedProps&&f("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ft(t)||"instance"),b.state!==t.memoizedState&&f("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ft(t)||"instance"));var k=b.getSnapshotBeforeUpdate(t.elementType===t.type?d:Wo(t.type,d),m);{var O=BO;k===void 0&&!O.has(t.type)&&(O.add(t.type),f("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Ft(t)))}b.__reactInternalSnapshotBeforeUpdate=k}break}case E:{{var A=t.stateNode;yV(A.containerInfo)}break}case x:case R:case C:case ne:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Er()}}function Go(t,i,u){var d=i.updateQueue,m=d!==null?d.lastEffect:null;if(m!==null){var b=m.next,k=b;do{if((k.tag&t)===t){var O=k.destroy;k.destroy=void 0,O!==void 0&&((t&hi)!==Ta?sp(i):(t&qr)!==Ta&&up(i),(t&zl)!==Ta&&O0(!0),Qb(i,u,O),(t&zl)!==Ta&&O0(!1),(t&hi)!==Ta?u1():(t&qr)!==Ta&&Nu())}k=k.next}while(k!==b)}}function hc(t,i){var u=i.updateQueue,d=u!==null?u.lastEffect:null;if(d!==null){var m=d.next,b=m;do{if((b.tag&t)===t){(t&hi)!==Ta?s1(i):(t&qr)!==Ta&&c1(i);var k=b.create;(t&zl)!==Ta&&O0(!0),b.destroy=k(),(t&zl)!==Ta&&O0(!1),(t&hi)!==Ta?ov():(t&qr)!==Ta&&f1();{var O=b.destroy;if(O!==void 0&&typeof O!="function"){var A=void 0;(b.tag&qr)!==yt?A="useLayoutEffect":(b.tag&zl)!==yt?A="useInsertionEffect":A="useEffect";var z=void 0;O===null?z=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof O.then=="function"?z=`
153
+ Check the render method of \``+d+"`.");var m=d||"",b=t._debugSource;b&&(m=b.fileName+":"+b.lineNumber),o2[m]||(o2[m]=!0,f("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",u))}if(typeof i.getDerivedStateFromProps=="function"){var k=On(i)||"Unknown";a2[k]||(f("%s: Function components do not support getDerivedStateFromProps.",k),a2[k]=!0)}if(typeof i.contextType=="object"&&i.contextType!==null){var O=On(i)||"Unknown";i2[O]||(f("%s: Function components do not support contextType.",O),i2[O]=!0)}}}var f2={dehydrated:null,treeContext:null,retryLane:nn};function d2(t){return{baseLanes:t,cachePool:JH(),transitions:null}}function cq(t,i){var u=null;return{baseLanes:jt(t.baseLanes,i),cachePool:u,transitions:t.transitions}}function fq(t,i,u,d){if(i!==null){var m=i.memoizedState;if(m===null)return!1}return kC(t,a0)}function dq(t,i){return Bu(t.childLanes,i)}function OO(t,i,u){var d=i.pendingProps;EY(i)&&(i.flags|=Dt);var m=Yo.current,b=!1,k=(i.flags&Dt)!==yt;if(k||fq(m,t)?(b=!0,i.flags&=~Dt):(t===null||t.memoizedState!==null)&&(m=PH(m,B4)),m=ch(m),fc(i,m),t===null){Yw(i);var O=i.memoizedState;if(O!==null){var A=O.dehydrated;if(A!==null)return gq(i,A)}var z=d.children,V=d.fallback;if(b){var X=pq(i,z,V,u),G=i.child;return G.memoizedState=d2(u),i.memoizedState=f2,X}else return p2(i,z)}else{var ue=t.memoizedState;if(ue!==null){var ce=ue.dehydrated;if(ce!==null)return yq(t,i,k,d,ce,ue,u)}if(b){var Se=d.fallback,tt=d.children,bt=mq(t,i,tt,Se,u),vt=i.child,an=t.child.memoizedState;return vt.memoizedState=an===null?d2(u):cq(an,u),vt.childLanes=dq(t,u),i.memoizedState=f2,bt}else{var en=d.children,ie=hq(t,i,en,u);return i.memoizedState=null,ie}}}function p2(t,i,u){var d=t.mode,m={mode:"visible",children:i},b=h2(m,d);return b.return=t,t.child=b,b}function pq(t,i,u,d){var m=t.mode,b=t.child,k={mode:"hidden",children:i},O,A;return(m&Zt)===Et&&b!==null?(O=b,O.childLanes=we,O.pendingProps=k,t.mode&wt&&(O.actualDuration=0,O.actualStartTime=-1,O.selfBaseDuration=0,O.treeBaseDuration=0),A=bc(u,m,d,null)):(O=h2(k,m),A=bc(u,m,d,null)),O.return=t,A.return=t,O.sibling=A,t.child=O,A}function h2(t,i,u){return DD(t,i,we,null)}function DO(t,i){return Xf(t,i)}function hq(t,i,u,d){var m=t.child,b=m.sibling,k=DO(m,{mode:"visible",children:u});if((i.mode&Zt)===Et&&(k.lanes=d),k.return=i,k.sibling=null,b!==null){var O=i.deletions;O===null?(i.deletions=[b],i.flags|=pn):O.push(b)}return i.child=k,k}function mq(t,i,u,d,m){var b=i.mode,k=t.child,O=k.sibling,A={mode:"hidden",children:u},z;if((b&Zt)===Et&&i.child!==k){var V=i.child;z=V,z.childLanes=we,z.pendingProps=A,i.mode&wt&&(z.actualDuration=0,z.actualStartTime=-1,z.selfBaseDuration=k.selfBaseDuration,z.treeBaseDuration=k.treeBaseDuration),i.deletions=null}else z=DO(k,A),z.subtreeFlags=k.subtreeFlags&Ur;var X;return O!==null?X=Xf(O,d):(X=bc(d,b,m,null),X.flags|=Pn),X.return=i,z.return=i,z.sibling=X,i.child=z,X}function Zb(t,i,u,d){d!==null&&Zw(d),sh(i,t.child,null,u);var m=i.pendingProps,b=m.children,k=p2(i,b);return k.flags|=Pn,i.memoizedState=null,k}function vq(t,i,u,d,m){var b=i.mode,k={mode:"visible",children:u},O=h2(k,b),A=bc(d,b,m,null);return A.flags|=Pn,O.return=i,A.return=i,O.sibling=A,i.child=O,(i.mode&Zt)!==Et&&sh(i,t.child,null,m),A}function gq(t,i,u){return(t.mode&Zt)===Et?(f("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),t.lanes=kt):Mw(i)?t.lanes=Es:t.lanes=Ai,null}function yq(t,i,u,d,m,b,k){if(u)if(i.flags&er){i.flags&=~er;var ie=e2(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return Zb(t,i,k,ie)}else{if(i.memoizedState!==null)return i.child=t.child,i.flags|=Dt,null;var Ee=d.children,ae=d.fallback,je=vq(t,i,Ee,ae,k),nt=i.child;return nt.memoizedState=d2(k),i.memoizedState=f2,je}else{if(oH(),(i.mode&Zt)===Et)return Zb(t,i,k,null);if(Mw(m)){var O,A,z;{var V=wV(m);O=V.digest,A=V.message,z=V.stack}var X;A?X=new Error(A):X=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var G=e2(X,O,z);return Zb(t,i,k,G)}var ue=Mi(k,t.childLanes);if(Ko||ue){var ce=aS();if(ce!==null){var Se=Jx(ce,k);if(Se!==nn&&Se!==b.retryLane){b.retryLane=Se;var tt=An;_a(t,Se),Qr(ce,t,Se,tt)}}N2();var bt=e2(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return Zb(t,i,k,bt)}else if(XR(m)){i.flags|=Dt,i.child=t.child;var vt=VW.bind(null,t);return CV(m,vt),null}else{uH(i,m,b.treeContext);var an=d.children,en=p2(i,an);return en.flags|=va,en}}}function AO(t,i,u){t.lanes=jt(t.lanes,i);var d=t.alternate;d!==null&&(d.lanes=jt(d.lanes,i)),Jw(t.return,i,u)}function bq(t,i,u){for(var d=i;d!==null;){if(d.tag===F){var m=d.memoizedState;m!==null&&AO(d,u,t)}else if(d.tag===ee)AO(d,u,t);else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)return;for(;d.sibling===null;){if(d.return===null||d.return===t)return;d=d.return}d.sibling.return=d.return,d=d.sibling}}function Sq(t){for(var i=t,u=null;i!==null;){var d=i.alternate;d!==null&&Tb(d)===null&&(u=i),i=i.sibling}return u}function Eq(t){if(t!==void 0&&t!=="forwards"&&t!=="backwards"&&t!=="together"&&!l2[t])if(l2[t]=!0,typeof t=="string")switch(t.toLowerCase()){case"together":case"forwards":case"backwards":{f('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',t,t.toLowerCase());break}case"forward":case"backward":{f('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',t,t.toLowerCase());break}default:f('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',t);break}else f('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',t)}function xq(t,i){t!==void 0&&!Yb[t]&&(t!=="collapsed"&&t!=="hidden"?(Yb[t]=!0,f('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',t)):i!=="forwards"&&i!=="backwards"&&(Yb[t]=!0,f('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',t)))}function MO(t,i){{var u=Ar(t),d=!u&&typeof _o(t)=="function";if(u||d){var m=u?"array":"iterable";return f("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",m,i,m),!1}}return!0}function wq(t,i){if((i==="forwards"||i==="backwards")&&t!==void 0&&t!==null&&t!==!1)if(Ar(t)){for(var u=0;u<t.length;u++)if(!MO(t[u],u))return}else{var d=_o(t);if(typeof d=="function"){var m=d.call(t);if(m)for(var b=m.next(),k=0;!b.done;b=m.next()){if(!MO(b.value,k))return;k++}}else f('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',i)}}function m2(t,i,u,d,m){var b=t.memoizedState;b===null?t.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:d,tail:u,tailMode:m}:(b.isBackwards=i,b.rendering=null,b.renderingStartTime=0,b.last=d,b.tail=u,b.tailMode=m)}function LO(t,i,u){var d=i.pendingProps,m=d.revealOrder,b=d.tail,k=d.children;Eq(m),xq(b,m),wq(k,m),Ki(t,i,k,u);var O=Yo.current,A=kC(O,a0);if(A)O=_C(O,a0),i.flags|=Dt;else{var z=t!==null&&(t.flags&Dt)!==yt;z&&bq(i,i.child,u),O=ch(O)}if(fc(i,O),(i.mode&Zt)===Et)i.memoizedState=null;else switch(m){case"forwards":{var V=Sq(i.child),X;V===null?(X=i.child,i.child=null):(X=V.sibling,V.sibling=null),m2(i,!1,X,V,b);break}case"backwards":{var G=null,ue=i.child;for(i.child=null;ue!==null;){var ce=ue.alternate;if(ce!==null&&Tb(ce)===null){i.child=ue;break}var Se=ue.sibling;ue.sibling=G,G=ue,ue=Se}m2(i,!0,G,null,b);break}case"together":{m2(i,!1,null,null,void 0);break}default:i.memoizedState=null}return i.child}function Cq(t,i,u){xC(i,i.stateNode.containerInfo);var d=i.pendingProps;return t===null?i.child=sh(i,null,d,u):Ki(t,i,d,u),i.child}var PO=!1;function kq(t,i,u){var d=i.type,m=d._context,b=i.pendingProps,k=i.memoizedProps,O=b.value;{"value"in b||PO||(PO=!0,f("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var A=i.type.propTypes;A&&Vo(A,b,"prop","Context.Provider")}if(E4(i,m,O),k!==null){var z=k.value;if(ut(z,O)){if(k.children===b.children&&!rb())return Hs(t,i,u)}else bH(i,m,u)}var V=b.children;return Ki(t,i,V,u),i.child}var NO=!1;function _q(t,i,u){var d=i.type;d._context===void 0?d!==d.Consumer&&(NO||(NO=!0,f("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):d=d._context;var m=i.pendingProps,b=m.children;typeof b!="function"&&f("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),lh(i,u);var k=zr(d);_l(i);var O;return p0.current=i,$a(!0),O=b(k),$a(!1),ys(),i.flags|=bl,Ki(t,i,O,u),i.child}function m0(){Ko=!0}function Kb(t,i){(i.mode&Zt)===Et&&t!==null&&(t.alternate=null,i.alternate=null,i.flags|=Pn)}function Hs(t,i,u){return t!==null&&(i.dependencies=t.dependencies),vO(),T0(i.lanes),Mi(u,i.childLanes)?(AH(t,i),i.child):null}function Tq(t,i,u){{var d=i.return;if(d===null)throw new Error("Cannot swap the root fiber.");if(t.alternate=null,i.alternate=null,u.index=i.index,u.sibling=i.sibling,u.return=i.return,u.ref=i.ref,i===d.child)d.child=u;else{var m=d.child;if(m===null)throw new Error("Expected parent to have a child.");for(;m.sibling!==i;)if(m=m.sibling,m===null)throw new Error("Expected to find the previous sibling.");m.sibling=u}var b=d.deletions;return b===null?(d.deletions=[t],d.flags|=pn):b.push(t),u.flags|=Pn,u}}function v2(t,i){var u=t.lanes;return!!Mi(u,i)}function Rq(t,i,u){switch(i.tag){case E:TO(i),i.stateNode,ah();break;case x:$4(i);break;case y:{var d=i.type;Il(d)&&ab(i);break}case C:xC(i,i.stateNode.containerInfo);break;case I:{var m=i.memoizedProps.value,b=i.type._context;E4(i,b,m);break}case B:{var k=Mi(u,i.childLanes);k&&(i.flags|=zt);{var O=i.stateNode;O.effectDuration=0,O.passiveEffectDuration=0}}break;case F:{var A=i.memoizedState;if(A!==null){if(A.dehydrated!==null)return fc(i,ch(Yo.current)),i.flags|=Dt,null;var z=i.child,V=z.childLanes;if(Mi(u,V))return OO(t,i,u);fc(i,ch(Yo.current));var X=Hs(t,i,u);return X!==null?X.sibling:null}else fc(i,ch(Yo.current));break}case ee:{var G=(t.flags&Dt)!==yt,ue=Mi(u,i.childLanes);if(G){if(ue)return LO(t,i,u);i.flags|=Dt}var ce=i.memoizedState;if(ce!==null&&(ce.rendering=null,ce.tail=null,ce.lastEffect=null),fc(i,Yo.current),ue)break;return null}case J:case pe:return i.lanes=we,CO(t,i,u)}return Hs(t,i,u)}function FO(t,i,u){if(i._debugNeedsRemount&&t!==null)return Tq(t,i,W2(i.type,i.key,i.pendingProps,i._debugOwner||null,i.mode,i.lanes));if(t!==null){var d=t.memoizedProps,m=i.pendingProps;if(d!==m||rb()||i.type!==t.type)Ko=!0;else{var b=v2(t,u);if(!b&&(i.flags&Dt)===yt)return Ko=!1,Rq(t,i,u);(t.flags&hf)!==yt?Ko=!0:Ko=!1}}else if(Ko=!1,pi()&&eH(i)){var k=i.index,O=tH();u4(i,O,k)}switch(i.lanes=we,i.tag){case S:return uq(t,i,i.type,u);case Y:{var A=i.elementType;return lq(t,i,A,u)}case v:{var z=i.type,V=i.pendingProps,X=i.elementType===z?V:Wo(z,V);return s2(t,i,z,X,u)}case y:{var G=i.type,ue=i.pendingProps,ce=i.elementType===G?ue:Wo(G,ue);return _O(t,i,G,ce,u)}case E:return iq(t,i,u);case x:return aq(t,i,u);case R:return oq(t,i);case F:return OO(t,i,u);case C:return Cq(t,i,u);case N:{var Se=i.type,tt=i.pendingProps,bt=i.elementType===Se?tt:Wo(Se,tt);return EO(t,i,Se,bt,u)}case T:return tq(t,i,u);case D:return nq(t,i,u);case B:return rq(t,i,u);case I:return kq(t,i,u);case M:return _q(t,i,u);case $:{var vt=i.type,an=i.pendingProps,en=Wo(vt,an);if(i.type!==i.elementType){var ie=vt.propTypes;ie&&Vo(ie,en,"prop",On(vt))}return en=Wo(vt.type,en),xO(t,i,vt,en,u)}case H:return wO(t,i,i.type,i.pendingProps,u);case ne:{var Ee=i.type,ae=i.pendingProps,je=i.elementType===Ee?ae:Wo(Ee,ae);return sq(t,i,Ee,je,u)}case ee:return LO(t,i,u);case oe:break;case J:return CO(t,i,u)}throw new Error("Unknown unit of work tag ("+i.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function vh(t){t.flags|=zt}function IO(t){t.flags|=ki,t.flags|=Gm}var zO,g2,jO,$O;zO=function(t,i,u,d){for(var m=i.child;m!==null;){if(m.tag===x||m.tag===R)QB(t,m.stateNode);else if(m.tag!==C){if(m.child!==null){m.child.return=m,m=m.child;continue}}if(m===i)return;for(;m.sibling===null;){if(m.return===null||m.return===i)return;m=m.return}m.sibling.return=m.return,m=m.sibling}},g2=function(t,i){},jO=function(t,i,u,d,m){var b=t.memoizedProps;if(b!==d){var k=i.stateNode,O=wC(),A=JB(k,u,b,d,m,O);i.updateQueue=A,A&&vh(i)}},$O=function(t,i,u,d){u!==d&&vh(i)};function v0(t,i){if(!pi())switch(t.tailMode){case"hidden":{for(var u=t.tail,d=null;u!==null;)u.alternate!==null&&(d=u),u=u.sibling;d===null?t.tail=null:d.sibling=null;break}case"collapsed":{for(var m=t.tail,b=null;m!==null;)m.alternate!==null&&(b=m),m=m.sibling;b===null?!i&&t.tail!==null?t.tail.sibling=null:t.tail=null:b.sibling=null;break}}}function mi(t){var i=t.alternate!==null&&t.alternate.child===t.child,u=we,d=yt;if(i){if((t.mode&wt)!==Et){for(var A=t.selfBaseDuration,z=t.child;z!==null;)u=jt(u,jt(z.lanes,z.childLanes)),d|=z.subtreeFlags&Ur,d|=z.flags&Ur,A+=z.treeBaseDuration,z=z.sibling;t.treeBaseDuration=A}else for(var V=t.child;V!==null;)u=jt(u,jt(V.lanes,V.childLanes)),d|=V.subtreeFlags&Ur,d|=V.flags&Ur,V.return=t,V=V.sibling;t.subtreeFlags|=d}else{if((t.mode&wt)!==Et){for(var m=t.actualDuration,b=t.selfBaseDuration,k=t.child;k!==null;)u=jt(u,jt(k.lanes,k.childLanes)),d|=k.subtreeFlags,d|=k.flags,m+=k.actualDuration,b+=k.treeBaseDuration,k=k.sibling;t.actualDuration=m,t.treeBaseDuration=b}else for(var O=t.child;O!==null;)u=jt(u,jt(O.lanes,O.childLanes)),d|=O.subtreeFlags,d|=O.flags,O.return=t,O=O.sibling;t.subtreeFlags|=d}return t.childLanes=u,i}function Oq(t,i,u){if(hH()&&(i.mode&Zt)!==Et&&(i.flags&Dt)===yt)return v4(i),ah(),i.flags|=er|Vi|Lr,!1;var d=cb(i);if(u!==null&&u.dehydrated!==null)if(t===null){if(!d)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(dH(i),mi(i),(i.mode&wt)!==Et){var m=u!==null;if(m){var b=i.child;b!==null&&(i.treeBaseDuration-=b.treeBaseDuration)}}return!1}else{if(ah(),(i.flags&Dt)===yt&&(i.memoizedState=null),i.flags|=zt,mi(i),(i.mode&wt)!==Et){var k=u!==null;if(k){var O=i.child;O!==null&&(i.treeBaseDuration-=O.treeBaseDuration)}}return!1}else return g4(),!0}function UO(t,i,u){var d=i.pendingProps;switch(Vw(i),i.tag){case S:case Y:case H:case v:case N:case T:case D:case B:case M:case $:return mi(i),null;case y:{var m=i.type;return Il(m)&&ib(i),mi(i),null}case E:{var b=i.stateNode;if(uh(i),jw(i),RC(),b.pendingContext&&(b.context=b.pendingContext,b.pendingContext=null),t===null||t.child===null){var k=cb(i);if(k)vh(i);else if(t!==null){var O=t.memoizedState;(!O.isDehydrated||(i.flags&er)!==yt)&&(i.flags|=ma,g4())}}return g2(t,i),mi(i),null}case x:{CC(i);var A=j4(),z=i.type;if(t!==null&&i.stateNode!=null)jO(t,i,z,d,A),t.ref!==i.ref&&IO(i);else{if(!d){if(i.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return mi(i),null}var V=wC(),X=cb(i);if(X)cH(i,A,V)&&vh(i);else{var G=GB(z,d,A,V,i);zO(G,i,!1,!1),i.stateNode=G,XB(G,z,d,A)&&vh(i)}i.ref!==null&&IO(i)}return mi(i),null}case R:{var ue=d;if(t&&i.stateNode!=null){var ce=t.memoizedProps;$O(t,i,ce,ue)}else{if(typeof ue!="string"&&i.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var Se=j4(),tt=wC(),bt=cb(i);bt?fH(i)&&vh(i):i.stateNode=eV(ue,Se,tt,i)}return mi(i),null}case F:{fh(i);var vt=i.memoizedState;if(t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){var an=Oq(t,i,vt);if(!an)return i.flags&Lr?i:null}if((i.flags&Dt)!==yt)return i.lanes=u,(i.mode&wt)!==Et&&JC(i),i;var en=vt!==null,ie=t!==null&&t.memoizedState!==null;if(en!==ie&&en){var Ee=i.child;if(Ee.flags|=Sl,(i.mode&Zt)!==Et){var ae=t===null&&(i.memoizedProps.unstable_avoidThisFallback!==!0||!te);ae||kC(Yo.current,B4)?DW():N2()}}var je=i.updateQueue;if(je!==null&&(i.flags|=zt),mi(i),(i.mode&wt)!==Et&&en){var nt=i.child;nt!==null&&(i.treeBaseDuration-=nt.treeBaseDuration)}return null}case C:return uh(i),g2(t,i),t===null&&YV(i.stateNode.containerInfo),mi(i),null;case I:var Xe=i.type._context;return Xw(Xe,i),mi(i),null;case ne:{var Tt=i.type;return Il(Tt)&&ib(i),mi(i),null}case ee:{fh(i);var Nt=i.memoizedState;if(Nt===null)return mi(i),null;var _n=(i.flags&Dt)!==yt,cn=Nt.rendering;if(cn===null)if(_n)v0(Nt,!1);else{var Tr=MW()&&(t===null||(t.flags&Dt)===yt);if(!Tr)for(var fn=i.child;fn!==null;){var yr=Tb(fn);if(yr!==null){_n=!0,i.flags|=Dt,v0(Nt,!1);var Fi=yr.updateQueue;return Fi!==null&&(i.updateQueue=Fi,i.flags|=zt),i.subtreeFlags=yt,MH(i,u),fc(i,_C(Yo.current,a0)),i.child}fn=fn.sibling}Nt.tail!==null&&Zn()>sD()&&(i.flags|=Dt,_n=!0,v0(Nt,!1),i.lanes=uv)}else{if(!_n){var Si=Tb(cn);if(Si!==null){i.flags|=Dt,_n=!0;var Za=Si.updateQueue;if(Za!==null&&(i.updateQueue=Za,i.flags|=zt),v0(Nt,!0),Nt.tail===null&&Nt.tailMode==="hidden"&&!cn.alternate&&!pi())return mi(i),null}else Zn()*2-Nt.renderingStartTime>sD()&&u!==Ai&&(i.flags|=Dt,_n=!0,v0(Nt,!1),i.lanes=uv)}if(Nt.isBackwards)cn.sibling=i.child,i.child=cn;else{var Xi=Nt.last;Xi!==null?Xi.sibling=cn:i.child=cn,Nt.last=cn}}if(Nt.tail!==null){var Ji=Nt.tail;Nt.rendering=Ji,Nt.tail=Ji.sibling,Nt.renderingStartTime=Zn(),Ji.sibling=null;var Ii=Yo.current;return _n?Ii=_C(Ii,a0):Ii=ch(Ii),fc(i,Ii),Ji}return mi(i),null}case oe:break;case J:case pe:{P2(i);var Ks=i.memoizedState,Ch=Ks!==null;if(t!==null){var M0=t.memoizedState,ql=M0!==null;ql!==Ch&&!L&&(i.flags|=Sl)}return!Ch||(i.mode&Zt)===Et?mi(i):Mi(Hl,Ai)&&(mi(i),i.subtreeFlags&(Pn|zt)&&(i.flags|=Sl)),null}case ke:return null;case xe:return null}throw new Error("Unknown unit of work tag ("+i.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Dq(t,i,u){switch(Vw(i),i.tag){case y:{var d=i.type;Il(d)&&ib(i);var m=i.flags;return m&Lr?(i.flags=m&~Lr|Dt,(i.mode&wt)!==Et&&JC(i),i):null}case E:{i.stateNode,uh(i),jw(i),RC();var b=i.flags;return(b&Lr)!==yt&&(b&Dt)===yt?(i.flags=b&~Lr|Dt,i):null}case x:return CC(i),null;case F:{fh(i);var k=i.memoizedState;if(k!==null&&k.dehydrated!==null){if(i.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");ah()}var O=i.flags;return O&Lr?(i.flags=O&~Lr|Dt,(i.mode&wt)!==Et&&JC(i),i):null}case ee:return fh(i),null;case C:return uh(i),null;case I:var A=i.type._context;return Xw(A,i),null;case J:case pe:return P2(i),null;case ke:return null;default:return null}}function BO(t,i,u){switch(Vw(i),i.tag){case y:{var d=i.type.childContextTypes;d!=null&&ib(i);break}case E:{i.stateNode,uh(i),jw(i),RC();break}case x:{CC(i);break}case C:uh(i);break;case F:fh(i);break;case ee:fh(i);break;case I:var m=i.type._context;Xw(m,i);break;case J:case pe:P2(i);break}}var VO=null;VO=new Set;var Gb=!1,vi=!1,Aq=typeof WeakSet=="function"?WeakSet:Set,ct=null,gh=null,yh=null;function Mq(t){vs(null,function(){throw t}),Zm()}var Lq=function(t,i){if(i.props=t.memoizedProps,i.state=t.memoizedState,t.mode&wt)try{Bl(),i.componentWillUnmount()}finally{Ul(t)}else i.componentWillUnmount()};function HO(t,i){try{hc(qr,t)}catch(u){zn(t,i,u)}}function y2(t,i,u){try{Lq(t,u)}catch(d){zn(t,i,d)}}function Pq(t,i,u){try{u.componentDidMount()}catch(d){zn(t,i,d)}}function qO(t,i){try{YO(t)}catch(u){zn(t,i,u)}}function bh(t,i){var u=t.ref;if(u!==null)if(typeof u=="function"){var d;try{if(Re&&Oe&&t.mode&wt)try{Bl(),d=u(null)}finally{Ul(t)}else d=u(null)}catch(m){zn(t,i,m)}typeof d=="function"&&f("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ft(t))}else u.current=null}function Qb(t,i,u){try{u()}catch(d){zn(t,i,d)}}var WO=!1;function Nq(t,i){ZB(t.containerInfo),ct=i,Fq();var u=WO;return WO=!1,u}function Fq(){for(;ct!==null;){var t=ct,i=t.child;(t.subtreeFlags&Pu)!==yt&&i!==null?(i.return=t,ct=i):Iq()}}function Iq(){for(;ct!==null;){var t=ct;Cn(t);try{zq(t)}catch(u){zn(t,t.return,u)}Er();var i=t.sibling;if(i!==null){i.return=t.return,ct=i;return}ct=t.return}}function zq(t){var i=t.alternate,u=t.flags;if((u&ma)!==yt){switch(Cn(t),t.tag){case v:case N:case H:break;case y:{if(i!==null){var d=i.memoizedProps,m=i.memoizedState,b=t.stateNode;t.type===t.elementType&&!Yf&&(b.props!==t.memoizedProps&&f("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ft(t)||"instance"),b.state!==t.memoizedState&&f("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ft(t)||"instance"));var k=b.getSnapshotBeforeUpdate(t.elementType===t.type?d:Wo(t.type,d),m);{var O=VO;k===void 0&&!O.has(t.type)&&(O.add(t.type),f("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Ft(t)))}b.__reactInternalSnapshotBeforeUpdate=k}break}case E:{{var A=t.stateNode;bV(A.containerInfo)}break}case x:case R:case C:case ne:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Er()}}function Go(t,i,u){var d=i.updateQueue,m=d!==null?d.lastEffect:null;if(m!==null){var b=m.next,k=b;do{if((k.tag&t)===t){var O=k.destroy;k.destroy=void 0,O!==void 0&&((t&hi)!==Ta?sp(i):(t&qr)!==Ta&&up(i),(t&zl)!==Ta&&O0(!0),Qb(i,u,O),(t&zl)!==Ta&&O0(!1),(t&hi)!==Ta?u1():(t&qr)!==Ta&&Nu())}k=k.next}while(k!==b)}}function hc(t,i){var u=i.updateQueue,d=u!==null?u.lastEffect:null;if(d!==null){var m=d.next,b=m;do{if((b.tag&t)===t){(t&hi)!==Ta?s1(i):(t&qr)!==Ta&&c1(i);var k=b.create;(t&zl)!==Ta&&O0(!0),b.destroy=k(),(t&zl)!==Ta&&O0(!1),(t&hi)!==Ta?ov():(t&qr)!==Ta&&f1();{var O=b.destroy;if(O!==void 0&&typeof O!="function"){var A=void 0;(b.tag&qr)!==yt?A="useLayoutEffect":(b.tag&zl)!==yt?A="useInsertionEffect":A="useEffect";var z=void 0;O===null?z=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof O.then=="function"?z=`
154
154
 
155
155
  It looks like you wrote `+A+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
156
156
 
@@ -163,11 +163,11 @@ It looks like you wrote `+A+`(async () => ...) or returned a Promise. Instead, w
163
163
  fetchData();
164
164
  }, [someId]); // Or [] if effect doesn't need props or state
165
165
 
166
- Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:z=" You returned: "+O,f("%s must not return anything besides a function, which is used for clean-up.%s",A,z)}}}b=b.next}while(b!==m)}}function zq(t,i){if((i.flags&zt)!==yt)switch(i.tag){case B:{var u=i.stateNode.passiveEffectDuration,d=i.memoizedProps,m=d.id,b=d.onPostCommit,k=pO(),O=i.alternate===null?"mount":"update";dO()&&(O="nested-update"),typeof b=="function"&&b(m,O,u,k);var A=i.return;e:for(;A!==null;){switch(A.tag){case E:var z=A.stateNode;z.passiveEffectDuration+=u;break e;case B:var V=A.stateNode;V.passiveEffectDuration+=u;break e}A=A.return}break}}}function jq(t,i,u,d){if((u.flags&ei)!==yt)switch(u.tag){case v:case N:case H:{if(!vi)if(u.mode&wt)try{Bl(),hc(qr|Hr,u)}finally{Ul(u)}else hc(qr|Hr,u);break}case y:{var m=u.stateNode;if(u.flags&zt&&!vi)if(i===null)if(u.type===u.elementType&&!Yf&&(m.props!==u.memoizedProps&&f("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ft(u)||"instance"),m.state!==u.memoizedState&&f("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ft(u)||"instance")),u.mode&wt)try{Bl(),m.componentDidMount()}finally{Ul(u)}else m.componentDidMount();else{var b=u.elementType===u.type?i.memoizedProps:Wo(u.type,i.memoizedProps),k=i.memoizedState;if(u.type===u.elementType&&!Yf&&(m.props!==u.memoizedProps&&f("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ft(u)||"instance"),m.state!==u.memoizedState&&f("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ft(u)||"instance")),u.mode&wt)try{Bl(),m.componentDidUpdate(b,k,m.__reactInternalSnapshotBeforeUpdate)}finally{Ul(u)}else m.componentDidUpdate(b,k,m.__reactInternalSnapshotBeforeUpdate)}var O=u.updateQueue;O!==null&&(u.type===u.elementType&&!Yf&&(m.props!==u.memoizedProps&&f("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ft(u)||"instance"),m.state!==u.memoizedState&&f("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ft(u)||"instance")),_4(u,O,m));break}case E:{var A=u.updateQueue;if(A!==null){var z=null;if(u.child!==null)switch(u.child.tag){case x:z=u.child.stateNode;break;case y:z=u.child.stateNode;break}_4(u,A,z)}break}case x:{var V=u.stateNode;if(i===null&&u.flags&zt){var X=u.type,G=u.memoizedProps;iV(V,X,G)}break}case R:break;case C:break;case B:{{var ue=u.memoizedProps,ce=ue.onCommit,Se=ue.onRender,tt=u.stateNode.effectDuration,bt=pO(),vt=i===null?"mount":"update";dO()&&(vt="nested-update"),typeof Se=="function"&&Se(u.memoizedProps.id,vt,u.actualDuration,u.treeBaseDuration,u.actualStartTime,bt);{typeof ce=="function"&&ce(u.memoizedProps.id,vt,tt,bt),FW(u);var an=u.return;e:for(;an!==null;){switch(an.tag){case E:var en=an.stateNode;en.effectDuration+=tt;break e;case B:var ie=an.stateNode;ie.effectDuration+=tt;break e}an=an.return}}}break}case F:{Yq(t,u);break}case ee:case ne:case oe:case J:case pe:case xe:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}vi||u.flags&ki&&WO(u)}function $q(t){switch(t.tag){case v:case N:case H:{if(t.mode&wt)try{Bl(),VO(t,t.return)}finally{Ul(t)}else VO(t,t.return);break}case y:{var i=t.stateNode;typeof i.componentDidMount=="function"&&Lq(t,t.return,i),HO(t,t.return);break}case x:{HO(t,t.return);break}}}function Uq(t,i){for(var u=null,d=t;;){if(d.tag===x){if(u===null){u=d;try{var m=d.stateNode;i?hV(m):vV(d.stateNode,d.memoizedProps)}catch(k){zn(t,t.return,k)}}}else if(d.tag===R){if(u===null)try{var b=d.stateNode;i?mV(b):gV(b,d.memoizedProps)}catch(k){zn(t,t.return,k)}}else if(!((d.tag===J||d.tag===pe)&&d.memoizedState!==null&&d!==t)){if(d.child!==null){d.child.return=d,d=d.child;continue}}if(d===t)return;for(;d.sibling===null;){if(d.return===null||d.return===t)return;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}function WO(t){var i=t.ref;if(i!==null){var u=t.stateNode,d;switch(t.tag){case x:d=u;break;default:d=u}if(typeof i=="function"){var m;if(t.mode&wt)try{Bl(),m=i(d)}finally{Ul(t)}else m=i(d);typeof m=="function"&&f("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ft(t))}else i.hasOwnProperty("current")||f("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Ft(t)),i.current=d}}function Bq(t){var i=t.alternate;i!==null&&(i.return=null),t.return=null}function YO(t){var i=t.alternate;i!==null&&(t.alternate=null,YO(i));{if(t.child=null,t.deletions=null,t.sibling=null,t.tag===x){var u=t.stateNode;u!==null&&KV(u)}t.stateNode=null,t._debugOwner=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}}function Vq(t){for(var i=t.return;i!==null;){if(ZO(i))return i;i=i.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function ZO(t){return t.tag===x||t.tag===E||t.tag===C}function KO(t){var i=t;e:for(;;){for(;i.sibling===null;){if(i.return===null||ZO(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==x&&i.tag!==R&&i.tag!==ve;){if(i.flags&Pn||i.child===null||i.tag===C)continue e;i.child.return=i,i=i.child}if(!(i.flags&Pn))return i.stateNode}}function Hq(t){var i=Vq(t);switch(i.tag){case x:{var u=i.stateNode;i.flags&mn&&(GR(u),i.flags&=~mn);var d=KO(t);S2(t,d,u);break}case E:case C:{var m=i.stateNode.containerInfo,b=KO(t);b2(t,b,m);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function b2(t,i,u){var d=t.tag,m=d===x||d===R;if(m){var b=t.stateNode;i?cV(u,b,i):sV(u,b)}else if(d!==C){var k=t.child;if(k!==null){b2(k,i,u);for(var O=k.sibling;O!==null;)b2(O,i,u),O=O.sibling}}}function S2(t,i,u){var d=t.tag,m=d===x||d===R;if(m){var b=t.stateNode;i?uV(u,b,i):lV(u,b)}else if(d!==C){var k=t.child;if(k!==null){S2(k,i,u);for(var O=k.sibling;O!==null;)S2(O,i,u),O=O.sibling}}}var gi=null,Qo=!1;function qq(t,i,u){{var d=i;e:for(;d!==null;){switch(d.tag){case x:{gi=d.stateNode,Qo=!1;break e}case E:{gi=d.stateNode.containerInfo,Qo=!0;break e}case C:{gi=d.stateNode.containerInfo,Qo=!0;break e}}d=d.return}if(gi===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");GO(t,i,u),gi=null,Qo=!1}Bq(u)}function mc(t,i,u){for(var d=u.child;d!==null;)GO(t,i,d),d=d.sibling}function GO(t,i,u){switch(iv(u),u.tag){case x:vi||bh(u,i);case R:{{var d=gi,m=Qo;gi=null,mc(t,i,u),gi=d,Qo=m,gi!==null&&(Qo?dV(gi,u.stateNode):fV(gi,u.stateNode))}return}case ve:{gi!==null&&(Qo?pV(gi,u.stateNode):Aw(gi,u.stateNode));return}case C:{{var b=gi,k=Qo;gi=u.stateNode.containerInfo,Qo=!0,mc(t,i,u),gi=b,Qo=k}return}case v:case N:case $:case H:{if(!vi){var O=u.updateQueue;if(O!==null){var A=O.lastEffect;if(A!==null){var z=A.next,V=z;do{var X=V,G=X.destroy,ue=X.tag;G!==void 0&&((ue&zl)!==Ta?Qb(u,i,G):(ue&qr)!==Ta&&(up(u),u.mode&wt?(Bl(),Qb(u,i,G),Ul(u)):Qb(u,i,G),Nu())),V=V.next}while(V!==z)}}}mc(t,i,u);return}case y:{if(!vi){bh(u,i);var ce=u.stateNode;typeof ce.componentWillUnmount=="function"&&y2(u,i,ce)}mc(t,i,u);return}case oe:{mc(t,i,u);return}case J:{if(u.mode&Zt){var Se=vi;vi=Se||u.memoizedState!==null,mc(t,i,u),vi=Se}else mc(t,i,u);break}default:{mc(t,i,u);return}}}function Wq(t){t.memoizedState}function Yq(t,i){var u=i.memoizedState;if(u===null){var d=i.alternate;if(d!==null){var m=d.memoizedState;if(m!==null){var b=m.dehydrated;b!==null&&MV(b)}}}}function QO(t){var i=t.updateQueue;if(i!==null){t.updateQueue=null;var u=t.stateNode;u===null&&(u=t.stateNode=new Dq),i.forEach(function(d){var m=VW.bind(null,t,d);if(!u.has(d)){if(u.add(d),Br)if(gh!==null&&yh!==null)R0(yh,gh);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");d.then(m,m)}})}}function Zq(t,i,u){gh=u,yh=t,Cn(i),XO(i,t),Cn(i),gh=null,yh=null}function Xo(t,i,u){var d=i.deletions;if(d!==null)for(var m=0;m<d.length;m++){var b=d[m];try{qq(t,i,b)}catch(A){zn(b,i,A)}}var k=Dx();if(i.subtreeFlags&Ri)for(var O=i.child;O!==null;)Cn(O),XO(O,t),O=O.sibling;Cn(k)}function XO(t,i,u){var d=t.alternate,m=t.flags;switch(t.tag){case v:case N:case $:case H:{if(Xo(i,t),Vl(t),m&zt){try{Go(zl|Hr,t,t.return),hc(zl|Hr,t)}catch(Tt){zn(t,t.return,Tt)}if(t.mode&wt){try{Bl(),Go(qr|Hr,t,t.return)}catch(Tt){zn(t,t.return,Tt)}Ul(t)}else try{Go(qr|Hr,t,t.return)}catch(Tt){zn(t,t.return,Tt)}}return}case y:{Xo(i,t),Vl(t),m&ki&&d!==null&&bh(d,d.return);return}case x:{Xo(i,t),Vl(t),m&ki&&d!==null&&bh(d,d.return);{if(t.flags&mn){var b=t.stateNode;try{GR(b)}catch(Tt){zn(t,t.return,Tt)}}if(m&zt){var k=t.stateNode;if(k!=null){var O=t.memoizedProps,A=d!==null?d.memoizedProps:O,z=t.type,V=t.updateQueue;if(t.updateQueue=null,V!==null)try{aV(k,V,z,A,O,t)}catch(Tt){zn(t,t.return,Tt)}}}}return}case R:{if(Xo(i,t),Vl(t),m&zt){if(t.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var X=t.stateNode,G=t.memoizedProps,ue=d!==null?d.memoizedProps:G;try{oV(X,ue,G)}catch(Tt){zn(t,t.return,Tt)}}return}case E:{if(Xo(i,t),Vl(t),m&zt&&d!==null){var ce=d.memoizedState;if(ce.isDehydrated)try{AV(i.containerInfo)}catch(Tt){zn(t,t.return,Tt)}}return}case C:{Xo(i,t),Vl(t);return}case F:{Xo(i,t),Vl(t);var Se=t.child;if(Se.flags&Sl){var tt=Se.stateNode,bt=Se.memoizedState,vt=bt!==null;if(tt.isHidden=vt,vt){var an=Se.alternate!==null&&Se.alternate.memoizedState!==null;an||RW()}}if(m&zt){try{Wq(t)}catch(Tt){zn(t,t.return,Tt)}QO(t)}return}case J:{var en=d!==null&&d.memoizedState!==null;if(t.mode&Zt){var ie=vi;vi=ie||en,Xo(i,t),vi=ie}else Xo(i,t);if(Vl(t),m&Sl){var Ee=t.stateNode,ae=t.memoizedState,je=ae!==null,nt=t;if(Ee.isHidden=je,je&&!en&&(nt.mode&Zt)!==Et){ct=nt;for(var Xe=nt.child;Xe!==null;)ct=Xe,Gq(Xe),Xe=Xe.sibling}Uq(nt,je)}return}case ee:{Xo(i,t),Vl(t),m&zt&&QO(t);return}case oe:return;default:{Xo(i,t),Vl(t);return}}}function Vl(t){var i=t.flags;if(i&Pn){try{Hq(t)}catch(u){zn(t,t.return,u)}t.flags&=~Pn}i&va&&(t.flags&=~va)}function Kq(t,i,u){gh=u,yh=i,ct=t,JO(t,i,u),gh=null,yh=null}function JO(t,i,u){for(var d=(t.mode&Zt)!==Et;ct!==null;){var m=ct,b=m.child;if(m.tag===J&&d){var k=m.memoizedState!==null,O=k||Gb;if(O){E2(t,i,u);continue}else{var A=m.alternate,z=A!==null&&A.memoizedState!==null,V=z||vi,X=Gb,G=vi;Gb=O,vi=V,vi&&!G&&(ct=m,Qq(m));for(var ue=b;ue!==null;)ct=ue,JO(ue,i,u),ue=ue.sibling;ct=m,Gb=X,vi=G,E2(t,i,u);continue}}(m.subtreeFlags&ei)!==yt&&b!==null?(b.return=m,ct=b):E2(t,i,u)}}function E2(t,i,u){for(;ct!==null;){var d=ct;if((d.flags&ei)!==yt){var m=d.alternate;Cn(d);try{jq(i,m,d,u)}catch(k){zn(d,d.return,k)}Er()}if(d===t){ct=null;return}var b=d.sibling;if(b!==null){b.return=d.return,ct=b;return}ct=d.return}}function Gq(t){for(;ct!==null;){var i=ct,u=i.child;switch(i.tag){case v:case N:case $:case H:{if(i.mode&wt)try{Bl(),Go(qr,i,i.return)}finally{Ul(i)}else Go(qr,i,i.return);break}case y:{bh(i,i.return);var d=i.stateNode;typeof d.componentWillUnmount=="function"&&y2(i,i.return,d);break}case x:{bh(i,i.return);break}case J:{var m=i.memoizedState!==null;if(m){eD(t);continue}break}}u!==null?(u.return=i,ct=u):eD(t)}}function eD(t){for(;ct!==null;){var i=ct;if(i===t){ct=null;return}var u=i.sibling;if(u!==null){u.return=i.return,ct=u;return}ct=i.return}}function Qq(t){for(;ct!==null;){var i=ct,u=i.child;if(i.tag===J){var d=i.memoizedState!==null;if(d){tD(t);continue}}u!==null?(u.return=i,ct=u):tD(t)}}function tD(t){for(;ct!==null;){var i=ct;Cn(i);try{$q(i)}catch(d){zn(i,i.return,d)}if(Er(),i===t){ct=null;return}var u=i.sibling;if(u!==null){u.return=i.return,ct=u;return}ct=i.return}}function Xq(t,i,u,d){ct=i,Jq(i,t,u,d)}function Jq(t,i,u,d){for(;ct!==null;){var m=ct,b=m.child;(m.subtreeFlags&ga)!==yt&&b!==null?(b.return=m,ct=b):eW(t,i,u,d)}}function eW(t,i,u,d){for(;ct!==null;){var m=ct;if((m.flags&Vn)!==yt){Cn(m);try{tW(i,m,u,d)}catch(k){zn(m,m.return,k)}Er()}if(m===t){ct=null;return}var b=m.sibling;if(b!==null){b.return=m.return,ct=b;return}ct=m.return}}function tW(t,i,u,d){switch(i.tag){case v:case N:case H:{if(i.mode&wt){XC();try{hc(hi|Hr,i)}finally{QC(i)}}else hc(hi|Hr,i);break}}}function nW(t){ct=t,rW()}function rW(){for(;ct!==null;){var t=ct,i=t.child;if((ct.flags&pn)!==yt){var u=t.deletions;if(u!==null){for(var d=0;d<u.length;d++){var m=u[d];ct=m,oW(m,t)}{var b=t.alternate;if(b!==null){var k=b.child;if(k!==null){b.child=null;do{var O=k.sibling;k.sibling=null,k=O}while(k!==null)}}}ct=t}}(t.subtreeFlags&ga)!==yt&&i!==null?(i.return=t,ct=i):iW()}}function iW(){for(;ct!==null;){var t=ct;(t.flags&Vn)!==yt&&(Cn(t),aW(t),Er());var i=t.sibling;if(i!==null){i.return=t.return,ct=i;return}ct=t.return}}function aW(t){switch(t.tag){case v:case N:case H:{t.mode&wt?(XC(),Go(hi|Hr,t,t.return),QC(t)):Go(hi|Hr,t,t.return);break}}}function oW(t,i){for(;ct!==null;){var u=ct;Cn(u),sW(u,i),Er();var d=u.child;d!==null?(d.return=u,ct=d):lW(t)}}function lW(t){for(;ct!==null;){var i=ct,u=i.sibling,d=i.return;if(YO(i),i===t){ct=null;return}if(u!==null){u.return=d,ct=u;return}ct=d}}function sW(t,i){switch(t.tag){case v:case N:case H:{t.mode&wt?(XC(),Go(hi,t,i),QC(t)):Go(hi,t,i);break}}}function uW(t){switch(t.tag){case v:case N:case H:{try{hc(qr|Hr,t)}catch(u){zn(t,t.return,u)}break}case y:{var i=t.stateNode;try{i.componentDidMount()}catch(u){zn(t,t.return,u)}break}}}function cW(t){switch(t.tag){case v:case N:case H:{try{hc(hi|Hr,t)}catch(i){zn(t,t.return,i)}break}}}function fW(t){switch(t.tag){case v:case N:case H:{try{Go(qr|Hr,t,t.return)}catch(u){zn(t,t.return,u)}break}case y:{var i=t.stateNode;typeof i.componentWillUnmount=="function"&&y2(t,t.return,i);break}}}function dW(t){switch(t.tag){case v:case N:case H:try{Go(hi|Hr,t,t.return)}catch(i){zn(t,t.return,i)}}}if(typeof Symbol=="function"&&Symbol.for){var g0=Symbol.for;g0("selector.component"),g0("selector.has_pseudo_class"),g0("selector.role"),g0("selector.test_id"),g0("selector.text")}var pW=[];function hW(){pW.forEach(function(t){return t()})}var mW=r.ReactCurrentActQueue;function vW(t){{var i=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,u=typeof jest<"u";return u&&i!==!1}}function nD(){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!t&&mW.current!==null&&f("The current testing environment is not configured to support act(...)"),t}}var gW=Math.ceil,x2=r.ReactCurrentDispatcher,w2=r.ReactCurrentOwner,yi=r.ReactCurrentBatchConfig,Jo=r.ReactCurrentActQueue,Zr=0,rD=1,bi=2,vo=4,qs=0,y0=1,Zf=2,Xb=3,b0=4,iD=5,C2=6,rn=Zr,Gi=null,ur=null,Kr=we,Hl=we,k2=ac(we),Gr=qs,S0=null,Jb=we,E0=we,eS=we,x0=null,Ra=null,_2=0,aD=500,oD=1/0,yW=500,Ws=null;function w0(){oD=Zn()+yW}function lD(){return oD}var tS=!1,T2=null,Sh=null,Kf=!1,vc=null,C0=we,R2=[],O2=null,bW=50,k0=0,D2=null,A2=!1,nS=!1,SW=50,Eh=0,rS=null,_0=An,iS=we,sD=!1;function aS(){return Gi}function Qi(){return(rn&(bi|vo))!==Zr?Zn():(_0!==An||(_0=Zn()),_0)}function gc(t){var i=t.mode;if((i&Zt)===Et)return kt;if((rn&bi)!==Zr&&Kr!==we)return wr(Kr);var u=vH()!==mH;if(u){if(yi.transition!==null){var d=yi.transition;d._updatedFibers||(d._updatedFibers=new Set),d._updatedFibers.add(t)}return iS===nn&&(iS=dv()),iS}var m=Ea();if(m!==nn)return m;var b=eV();return b}function EW(t){var i=t.mode;return(i&Zt)===Et?kt:Xx()}function Qr(t,i,u,d){qW(),sD&&f("useInsertionEffect must not schedule updates."),A2&&(nS=!0),Rs(t,u,d),(rn&bi)!==we&&t===Gi?ZW(i):(Br&&gv(t,i,u),KW(i),t===Gi&&((rn&bi)===Zr&&(E0=jt(E0,u)),Gr===b0&&yc(t,Kr)),Oa(t,d),u===kt&&rn===Zr&&(i.mode&Zt)===Et&&!Jo.isBatchingLegacy&&(w0(),l4()))}function xW(t,i,u){var d=t.current;d.lanes=i,Rs(t,i,u),Oa(t,u)}function wW(t){return(rn&bi)!==Zr}function Oa(t,i){var u=t.callbackNode;Kx(t,i);var d=Sf(t,t===Gi?Kr:we);if(d===we){u!==null&&CD(u),t.callbackNode=null,t.callbackPriority=nn;return}var m=vr(d),b=t.callbackPriority;if(b===m&&!(Jo.current!==null&&u!==z2)){u==null&&b!==kt&&f("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}u!=null&&CD(u);var k;if(m===kt)t.tag===oc?(Jo.isBatchingLegacy!==null&&(Jo.didScheduleLegacyUpdate=!0),XV(fD.bind(null,t))):o4(fD.bind(null,t)),Jo.current!==null?Jo.current.push(lc):nV(function(){(rn&(bi|vo))===Zr&&lc()}),k=null;else{var O;switch(kf(d)){case ti:O=ap;break;case Vr:O=Wi;break;case zo:O=ao;break;case wf:O=xl;break;default:O=ao;break}k=j2(O,uD.bind(null,t))}t.callbackPriority=m,t.callbackNode=k}function uD(t,i){if(qH(),_0=An,iS=we,(rn&(bi|vo))!==Zr)throw new Error("Should not already be working.");var u=t.callbackNode,d=Zs();if(d&&t.callbackNode!==u)return null;var m=Sf(t,t===Gi?Kr:we);if(m===we)return null;var b=!xf(t,m)&&!g1(t,m)&&!i,k=b?LW(t,m):lS(t,m);if(k!==qs){if(k===Zf){var O=cv(t);O!==we&&(m=O,k=M2(t,O))}if(k===y0){var A=S0;throw Gf(t,we),yc(t,m),Oa(t,Zn()),A}if(k===C2)yc(t,m);else{var z=!xf(t,m),V=t.current.alternate;if(z&&!kW(V)){if(k=lS(t,m),k===Zf){var X=cv(t);X!==we&&(m=X,k=M2(t,X))}if(k===y0){var G=S0;throw Gf(t,we),yc(t,m),Oa(t,Zn()),G}}t.finishedWork=V,t.finishedLanes=m,CW(t,k,m)}}return Oa(t,Zn()),t.callbackNode===u?uD.bind(null,t):null}function M2(t,i){var u=x0;if(kr(t)){var d=Gf(t,i);d.flags|=er,qV(t.containerInfo)}var m=lS(t,i);if(m!==Zf){var b=Ra;Ra=u,b!==null&&cD(b)}return m}function cD(t){Ra===null?Ra=t:Ra.push.apply(Ra,t)}function CW(t,i,u){switch(i){case qs:case y0:throw new Error("Root did not complete. This is a bug in React.");case Zf:{Qf(t,Ra,Ws);break}case Xb:{if(yc(t,u),Op(u)&&!kD()){var d=_2+aD-Zn();if(d>10){var m=Sf(t,we);if(m!==we)break;var b=t.suspendedLanes;if(!Ts(b,u)){Qi(),mv(t,b);break}t.timeoutHandle=Ow(Qf.bind(null,t,Ra,Ws),d);break}}Qf(t,Ra,Ws);break}case b0:{if(yc(t,u),v1(u))break;if(!kD()){var k=m1(t,u),O=k,A=Zn()-O,z=HW(A)-A;if(z>10){t.timeoutHandle=Ow(Qf.bind(null,t,Ra,Ws),z);break}}Qf(t,Ra,Ws);break}case iD:{Qf(t,Ra,Ws);break}default:throw new Error("Unknown root exit status.")}}function kW(t){for(var i=t;;){if(i.flags&pf){var u=i.updateQueue;if(u!==null){var d=u.stores;if(d!==null)for(var m=0;m<d.length;m++){var b=d[m],k=b.getSnapshot,O=b.value;try{if(!ut(k(),O))return!1}catch{return!1}}}}var A=i.child;if(i.subtreeFlags&pf&&A!==null){A.return=i,i=A;continue}if(i===t)return!0;for(;i.sibling===null;){if(i.return===null||i.return===t)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}return!0}function yc(t,i){i=Bu(i,eS),i=Bu(i,E0),hv(t,i)}function fD(t){if(WH(),(rn&(bi|vo))!==Zr)throw new Error("Should not already be working.");Zs();var i=Sf(t,we);if(!Mi(i,kt))return Oa(t,Zn()),null;var u=lS(t,i);if(t.tag!==oc&&u===Zf){var d=cv(t);d!==we&&(i=d,u=M2(t,d))}if(u===y0){var m=S0;throw Gf(t,we),yc(t,i),Oa(t,Zn()),m}if(u===C2)throw new Error("Root did not complete. This is a bug in React.");var b=t.current.alternate;return t.finishedWork=b,t.finishedLanes=i,Qf(t,Ra,Ws),Oa(t,Zn()),null}function _W(t,i){i!==we&&(Vu(t,jt(i,kt)),Oa(t,Zn()),(rn&(bi|vo))===Zr&&(w0(),lc()))}function L2(t,i){var u=rn;rn|=rD;try{return t(i)}finally{rn=u,rn===Zr&&!Jo.isBatchingLegacy&&(w0(),l4())}}function TW(t,i,u,d,m){var b=Ea(),k=yi.transition;try{return yi.transition=null,Cr(ti),t(i,u,d,m)}finally{Cr(b),yi.transition=k,rn===Zr&&w0()}}function Ys(t){vc!==null&&vc.tag===oc&&(rn&(bi|vo))===Zr&&Zs();var i=rn;rn|=rD;var u=yi.transition,d=Ea();try{return yi.transition=null,Cr(ti),t?t():void 0}finally{Cr(d),yi.transition=u,rn=i,(rn&(bi|vo))===Zr&&lc()}}function dD(){return(rn&(bi|vo))!==Zr}function oS(t,i){Pi(k2,Hl,t),Hl=jt(Hl,i)}function P2(t){Hl=k2.current,Li(k2,t)}function Gf(t,i){t.finishedWork=null,t.finishedLanes=we;var u=t.timeoutHandle;if(u!==Dw&&(t.timeoutHandle=Dw,tV(u)),ur!==null)for(var d=ur.return;d!==null;){var m=d.alternate;UO(m,d),d=d.return}Gi=t;var b=Xf(t.current,null);return ur=b,Kr=Hl=i,Gr=qs,S0=null,Jb=we,E0=we,eS=we,x0=null,Ra=null,SH(),qo.discardPendingWarnings(),b}function pD(t,i){do{var u=ur;try{if(hb(),V4(),Er(),w2.current=null,u===null||u.return===null){Gr=y0,S0=i,ur=null;return}if(Re&&u.mode&wt&&Wb(u,!0),We)if(ys(),i!==null&&typeof i=="object"&&typeof i.then=="function"){var d=i;d1(u,d,Kr)}else cp(u,i,Kr);QH(t,u.return,u,i,Kr),gD(u)}catch(m){i=m,ur===u&&u!==null?(u=u.return,ur=u):u=ur;continue}return}while(!0)}function hD(){var t=x2.current;return x2.current=Ub,t===null?Ub:t}function mD(t){x2.current=t}function RW(){_2=Zn()}function T0(t){Jb=jt(t,Jb)}function OW(){Gr===qs&&(Gr=Xb)}function N2(){(Gr===qs||Gr===Xb||Gr===Zf)&&(Gr=b0),Gi!==null&&(Ef(Jb)||Ef(E0))&&yc(Gi,Kr)}function DW(t){Gr!==b0&&(Gr=Zf),x0===null?x0=[t]:x0.push(t)}function AW(){return Gr===qs}function lS(t,i){var u=rn;rn|=bi;var d=hD();if(Gi!==t||Kr!==i){if(Br){var m=t.memoizedUpdaters;m.size>0&&(R0(t,Kr),m.clear()),Mp(t,i)}Ws=yv(),Gf(t,i)}Ha(i);do try{MW();break}catch(b){pD(t,b)}while(!0);if(hb(),rn=u,mD(d),ur!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return Iu(),Gi=null,Kr=we,Gr}function MW(){for(;ur!==null;)vD(ur)}function LW(t,i){var u=rn;rn|=bi;var d=hD();if(Gi!==t||Kr!==i){if(Br){var m=t.memoizedUpdaters;m.size>0&&(R0(t,Kr),m.clear()),Mp(t,i)}Ws=yv(),w0(),Gf(t,i)}Ha(i);do try{PW();break}catch(b){pD(t,b)}while(!0);return hb(),mD(d),rn=u,ur!==null?(vf(),qs):(Iu(),Gi=null,Kr=we,Gr)}function PW(){for(;ur!==null&&!ip();)vD(ur)}function vD(t){var i=t.alternate;Cn(t);var u;(t.mode&wt)!==Et?(GC(t),u=F2(i,t,Hl),Wb(t,!0)):u=F2(i,t,Hl),Er(),t.memoizedProps=t.pendingProps,u===null?gD(t):ur=u,w2.current=null}function gD(t){var i=t;do{var u=i.alternate,d=i.return;if((i.flags&Vi)===yt){Cn(i);var m=void 0;if((i.mode&wt)===Et?m=$O(u,i,Hl):(GC(i),m=$O(u,i,Hl),Wb(i,!1)),Er(),m!==null){ur=m;return}}else{var b=Oq(u,i);if(b!==null){b.flags&=r1,ur=b;return}if((i.mode&wt)!==Et){Wb(i,!1);for(var k=i.actualDuration,O=i.child;O!==null;)k+=O.actualDuration,O=O.sibling;i.actualDuration=k}if(d!==null)d.flags|=Vi,d.subtreeFlags=yt,d.deletions=null;else{Gr=C2,ur=null;return}}var A=i.sibling;if(A!==null){ur=A;return}i=d,ur=i}while(i!==null);Gr===qs&&(Gr=iD)}function Qf(t,i,u){var d=Ea(),m=yi.transition;try{yi.transition=null,Cr(ti),NW(t,i,u,d)}finally{yi.transition=m,Cr(d)}return null}function NW(t,i,u,d){do Zs();while(vc!==null);if(WW(),(rn&(bi|vo))!==Zr)throw new Error("Should not already be working.");var m=t.finishedWork,b=t.finishedLanes;if(lp(b),m===null)return av(),null;if(b===we&&f("root.finishedLanes should not be empty during a commit. This is a bug in React."),t.finishedWork=null,t.finishedLanes=we,m===t.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");t.callbackNode=null,t.callbackPriority=nn;var k=jt(m.lanes,m.childLanes);vv(t,k),t===Gi&&(Gi=null,ur=null,Kr=we),((m.subtreeFlags&ga)!==yt||(m.flags&ga)!==yt)&&(Kf||(Kf=!0,O2=u,j2(ao,function(){return Zs(),null})));var O=(m.subtreeFlags&(Pu|Ri|ei|ga))!==yt,A=(m.flags&(Pu|Ri|ei|ga))!==yt;if(O||A){var z=yi.transition;yi.transition=null;var V=Ea();Cr(ti);var X=rn;rn|=vo,w2.current=null,Pq(t,m),hO(),Zq(t,m,b),ZB(t.containerInfo),t.current=m,p1(b),Kq(m,t,b),Fu(),o1(),rn=X,Cr(V),yi.transition=z}else t.current=m,hO();var G=Kf;if(Kf?(Kf=!1,vc=t,C0=b):(Eh=0,rS=null),k=t.pendingLanes,k===we&&(Sh=null),G||ED(t.current,!1),No(m.stateNode,d),Br&&t.memoizedUpdaters.clear(),hW(),Oa(t,Zn()),i!==null)for(var ue=t.onRecoverableError,ce=0;ce<i.length;ce++){var Se=i[ce],tt=Se.stack,bt=Se.digest;ue(Se.value,{componentStack:tt,digest:bt})}if(tS){tS=!1;var vt=T2;throw T2=null,vt}return Mi(C0,kt)&&t.tag!==oc&&Zs(),k=t.pendingLanes,Mi(k,kt)?(HH(),t===D2?k0++:(k0=0,D2=t)):k0=0,lc(),av(),null}function Zs(){if(vc!==null){var t=kf(C0),i=ew(zo,t),u=yi.transition,d=Ea();try{return yi.transition=null,Cr(i),IW()}finally{Cr(d),yi.transition=u}}return!1}function FW(t){R2.push(t),Kf||(Kf=!0,j2(ao,function(){return Zs(),null}))}function IW(){if(vc===null)return!1;var t=O2;O2=null;var i=vc,u=C0;if(vc=null,C0=we,(rn&(bi|vo))!==Zr)throw new Error("Cannot flush passive effects while already rendering.");A2=!0,nS=!1,h1(u);var d=rn;rn|=vo,nW(i.current),Xq(i,i.current,u,t);{var m=R2;R2=[];for(var b=0;b<m.length;b++){var k=m[b];zq(i,k)}}mf(),ED(i.current,!0),rn=d,lc(),nS?i===rS?Eh++:(Eh=0,rS=i):Eh=0,A2=!1,nS=!1,Cl(i);{var O=i.current.stateNode;O.effectDuration=0,O.passiveEffectDuration=0}return!0}function yD(t){return Sh!==null&&Sh.has(t)}function zW(t){Sh===null?Sh=new Set([t]):Sh.add(t)}function jW(t){tS||(tS=!0,T2=t)}var $W=jW;function bD(t,i,u){var d=Wf(u,i),m=vO(t,d,kt),b=uc(t,m,kt),k=Qi();b!==null&&(Rs(b,kt,k),Oa(b,k))}function zn(t,i,u){if(Aq(u),O0(!1),t.tag===E){bD(t,t,u);return}var d=null;for(d=i;d!==null;){if(d.tag===E){bD(d,t,u);return}else if(d.tag===y){var m=d.type,b=d.stateNode;if(typeof m.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&!yD(b)){var k=Wf(u,t),O=n2(d,k,kt),A=uc(d,O,kt),z=Qi();A!==null&&(Rs(A,kt,z),Oa(A,z));return}}d=d.return}f(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
166
+ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:z=" You returned: "+O,f("%s must not return anything besides a function, which is used for clean-up.%s",A,z)}}}b=b.next}while(b!==m)}}function jq(t,i){if((i.flags&zt)!==yt)switch(i.tag){case B:{var u=i.stateNode.passiveEffectDuration,d=i.memoizedProps,m=d.id,b=d.onPostCommit,k=hO(),O=i.alternate===null?"mount":"update";pO()&&(O="nested-update"),typeof b=="function"&&b(m,O,u,k);var A=i.return;e:for(;A!==null;){switch(A.tag){case E:var z=A.stateNode;z.passiveEffectDuration+=u;break e;case B:var V=A.stateNode;V.passiveEffectDuration+=u;break e}A=A.return}break}}}function $q(t,i,u,d){if((u.flags&ei)!==yt)switch(u.tag){case v:case N:case H:{if(!vi)if(u.mode&wt)try{Bl(),hc(qr|Hr,u)}finally{Ul(u)}else hc(qr|Hr,u);break}case y:{var m=u.stateNode;if(u.flags&zt&&!vi)if(i===null)if(u.type===u.elementType&&!Yf&&(m.props!==u.memoizedProps&&f("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ft(u)||"instance"),m.state!==u.memoizedState&&f("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ft(u)||"instance")),u.mode&wt)try{Bl(),m.componentDidMount()}finally{Ul(u)}else m.componentDidMount();else{var b=u.elementType===u.type?i.memoizedProps:Wo(u.type,i.memoizedProps),k=i.memoizedState;if(u.type===u.elementType&&!Yf&&(m.props!==u.memoizedProps&&f("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ft(u)||"instance"),m.state!==u.memoizedState&&f("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ft(u)||"instance")),u.mode&wt)try{Bl(),m.componentDidUpdate(b,k,m.__reactInternalSnapshotBeforeUpdate)}finally{Ul(u)}else m.componentDidUpdate(b,k,m.__reactInternalSnapshotBeforeUpdate)}var O=u.updateQueue;O!==null&&(u.type===u.elementType&&!Yf&&(m.props!==u.memoizedProps&&f("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ft(u)||"instance"),m.state!==u.memoizedState&&f("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ft(u)||"instance")),T4(u,O,m));break}case E:{var A=u.updateQueue;if(A!==null){var z=null;if(u.child!==null)switch(u.child.tag){case x:z=u.child.stateNode;break;case y:z=u.child.stateNode;break}T4(u,A,z)}break}case x:{var V=u.stateNode;if(i===null&&u.flags&zt){var X=u.type,G=u.memoizedProps;aV(V,X,G)}break}case R:break;case C:break;case B:{{var ue=u.memoizedProps,ce=ue.onCommit,Se=ue.onRender,tt=u.stateNode.effectDuration,bt=hO(),vt=i===null?"mount":"update";pO()&&(vt="nested-update"),typeof Se=="function"&&Se(u.memoizedProps.id,vt,u.actualDuration,u.treeBaseDuration,u.actualStartTime,bt);{typeof ce=="function"&&ce(u.memoizedProps.id,vt,tt,bt),IW(u);var an=u.return;e:for(;an!==null;){switch(an.tag){case E:var en=an.stateNode;en.effectDuration+=tt;break e;case B:var ie=an.stateNode;ie.effectDuration+=tt;break e}an=an.return}}}break}case F:{Zq(t,u);break}case ee:case ne:case oe:case J:case pe:case xe:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}vi||u.flags&ki&&YO(u)}function Uq(t){switch(t.tag){case v:case N:case H:{if(t.mode&wt)try{Bl(),HO(t,t.return)}finally{Ul(t)}else HO(t,t.return);break}case y:{var i=t.stateNode;typeof i.componentDidMount=="function"&&Pq(t,t.return,i),qO(t,t.return);break}case x:{qO(t,t.return);break}}}function Bq(t,i){for(var u=null,d=t;;){if(d.tag===x){if(u===null){u=d;try{var m=d.stateNode;i?mV(m):gV(d.stateNode,d.memoizedProps)}catch(k){zn(t,t.return,k)}}}else if(d.tag===R){if(u===null)try{var b=d.stateNode;i?vV(b):yV(b,d.memoizedProps)}catch(k){zn(t,t.return,k)}}else if(!((d.tag===J||d.tag===pe)&&d.memoizedState!==null&&d!==t)){if(d.child!==null){d.child.return=d,d=d.child;continue}}if(d===t)return;for(;d.sibling===null;){if(d.return===null||d.return===t)return;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}function YO(t){var i=t.ref;if(i!==null){var u=t.stateNode,d;switch(t.tag){case x:d=u;break;default:d=u}if(typeof i=="function"){var m;if(t.mode&wt)try{Bl(),m=i(d)}finally{Ul(t)}else m=i(d);typeof m=="function"&&f("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ft(t))}else i.hasOwnProperty("current")||f("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Ft(t)),i.current=d}}function Vq(t){var i=t.alternate;i!==null&&(i.return=null),t.return=null}function ZO(t){var i=t.alternate;i!==null&&(t.alternate=null,ZO(i));{if(t.child=null,t.deletions=null,t.sibling=null,t.tag===x){var u=t.stateNode;u!==null&&GV(u)}t.stateNode=null,t._debugOwner=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}}function Hq(t){for(var i=t.return;i!==null;){if(KO(i))return i;i=i.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function KO(t){return t.tag===x||t.tag===E||t.tag===C}function GO(t){var i=t;e:for(;;){for(;i.sibling===null;){if(i.return===null||KO(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==x&&i.tag!==R&&i.tag!==ve;){if(i.flags&Pn||i.child===null||i.tag===C)continue e;i.child.return=i,i=i.child}if(!(i.flags&Pn))return i.stateNode}}function qq(t){var i=Hq(t);switch(i.tag){case x:{var u=i.stateNode;i.flags&mn&&(QR(u),i.flags&=~mn);var d=GO(t);S2(t,d,u);break}case E:case C:{var m=i.stateNode.containerInfo,b=GO(t);b2(t,b,m);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function b2(t,i,u){var d=t.tag,m=d===x||d===R;if(m){var b=t.stateNode;i?fV(u,b,i):uV(u,b)}else if(d!==C){var k=t.child;if(k!==null){b2(k,i,u);for(var O=k.sibling;O!==null;)b2(O,i,u),O=O.sibling}}}function S2(t,i,u){var d=t.tag,m=d===x||d===R;if(m){var b=t.stateNode;i?cV(u,b,i):sV(u,b)}else if(d!==C){var k=t.child;if(k!==null){S2(k,i,u);for(var O=k.sibling;O!==null;)S2(O,i,u),O=O.sibling}}}var gi=null,Qo=!1;function Wq(t,i,u){{var d=i;e:for(;d!==null;){switch(d.tag){case x:{gi=d.stateNode,Qo=!1;break e}case E:{gi=d.stateNode.containerInfo,Qo=!0;break e}case C:{gi=d.stateNode.containerInfo,Qo=!0;break e}}d=d.return}if(gi===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");QO(t,i,u),gi=null,Qo=!1}Vq(u)}function mc(t,i,u){for(var d=u.child;d!==null;)QO(t,i,d),d=d.sibling}function QO(t,i,u){switch(iv(u),u.tag){case x:vi||bh(u,i);case R:{{var d=gi,m=Qo;gi=null,mc(t,i,u),gi=d,Qo=m,gi!==null&&(Qo?pV(gi,u.stateNode):dV(gi,u.stateNode))}return}case ve:{gi!==null&&(Qo?hV(gi,u.stateNode):Aw(gi,u.stateNode));return}case C:{{var b=gi,k=Qo;gi=u.stateNode.containerInfo,Qo=!0,mc(t,i,u),gi=b,Qo=k}return}case v:case N:case $:case H:{if(!vi){var O=u.updateQueue;if(O!==null){var A=O.lastEffect;if(A!==null){var z=A.next,V=z;do{var X=V,G=X.destroy,ue=X.tag;G!==void 0&&((ue&zl)!==Ta?Qb(u,i,G):(ue&qr)!==Ta&&(up(u),u.mode&wt?(Bl(),Qb(u,i,G),Ul(u)):Qb(u,i,G),Nu())),V=V.next}while(V!==z)}}}mc(t,i,u);return}case y:{if(!vi){bh(u,i);var ce=u.stateNode;typeof ce.componentWillUnmount=="function"&&y2(u,i,ce)}mc(t,i,u);return}case oe:{mc(t,i,u);return}case J:{if(u.mode&Zt){var Se=vi;vi=Se||u.memoizedState!==null,mc(t,i,u),vi=Se}else mc(t,i,u);break}default:{mc(t,i,u);return}}}function Yq(t){t.memoizedState}function Zq(t,i){var u=i.memoizedState;if(u===null){var d=i.alternate;if(d!==null){var m=d.memoizedState;if(m!==null){var b=m.dehydrated;b!==null&&LV(b)}}}}function XO(t){var i=t.updateQueue;if(i!==null){t.updateQueue=null;var u=t.stateNode;u===null&&(u=t.stateNode=new Aq),i.forEach(function(d){var m=HW.bind(null,t,d);if(!u.has(d)){if(u.add(d),Br)if(gh!==null&&yh!==null)R0(yh,gh);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");d.then(m,m)}})}}function Kq(t,i,u){gh=u,yh=t,Cn(i),JO(i,t),Cn(i),gh=null,yh=null}function Xo(t,i,u){var d=i.deletions;if(d!==null)for(var m=0;m<d.length;m++){var b=d[m];try{Wq(t,i,b)}catch(A){zn(b,i,A)}}var k=Dx();if(i.subtreeFlags&Ri)for(var O=i.child;O!==null;)Cn(O),JO(O,t),O=O.sibling;Cn(k)}function JO(t,i,u){var d=t.alternate,m=t.flags;switch(t.tag){case v:case N:case $:case H:{if(Xo(i,t),Vl(t),m&zt){try{Go(zl|Hr,t,t.return),hc(zl|Hr,t)}catch(Tt){zn(t,t.return,Tt)}if(t.mode&wt){try{Bl(),Go(qr|Hr,t,t.return)}catch(Tt){zn(t,t.return,Tt)}Ul(t)}else try{Go(qr|Hr,t,t.return)}catch(Tt){zn(t,t.return,Tt)}}return}case y:{Xo(i,t),Vl(t),m&ki&&d!==null&&bh(d,d.return);return}case x:{Xo(i,t),Vl(t),m&ki&&d!==null&&bh(d,d.return);{if(t.flags&mn){var b=t.stateNode;try{QR(b)}catch(Tt){zn(t,t.return,Tt)}}if(m&zt){var k=t.stateNode;if(k!=null){var O=t.memoizedProps,A=d!==null?d.memoizedProps:O,z=t.type,V=t.updateQueue;if(t.updateQueue=null,V!==null)try{oV(k,V,z,A,O,t)}catch(Tt){zn(t,t.return,Tt)}}}}return}case R:{if(Xo(i,t),Vl(t),m&zt){if(t.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var X=t.stateNode,G=t.memoizedProps,ue=d!==null?d.memoizedProps:G;try{lV(X,ue,G)}catch(Tt){zn(t,t.return,Tt)}}return}case E:{if(Xo(i,t),Vl(t),m&zt&&d!==null){var ce=d.memoizedState;if(ce.isDehydrated)try{MV(i.containerInfo)}catch(Tt){zn(t,t.return,Tt)}}return}case C:{Xo(i,t),Vl(t);return}case F:{Xo(i,t),Vl(t);var Se=t.child;if(Se.flags&Sl){var tt=Se.stateNode,bt=Se.memoizedState,vt=bt!==null;if(tt.isHidden=vt,vt){var an=Se.alternate!==null&&Se.alternate.memoizedState!==null;an||OW()}}if(m&zt){try{Yq(t)}catch(Tt){zn(t,t.return,Tt)}XO(t)}return}case J:{var en=d!==null&&d.memoizedState!==null;if(t.mode&Zt){var ie=vi;vi=ie||en,Xo(i,t),vi=ie}else Xo(i,t);if(Vl(t),m&Sl){var Ee=t.stateNode,ae=t.memoizedState,je=ae!==null,nt=t;if(Ee.isHidden=je,je&&!en&&(nt.mode&Zt)!==Et){ct=nt;for(var Xe=nt.child;Xe!==null;)ct=Xe,Qq(Xe),Xe=Xe.sibling}Bq(nt,je)}return}case ee:{Xo(i,t),Vl(t),m&zt&&XO(t);return}case oe:return;default:{Xo(i,t),Vl(t);return}}}function Vl(t){var i=t.flags;if(i&Pn){try{qq(t)}catch(u){zn(t,t.return,u)}t.flags&=~Pn}i&va&&(t.flags&=~va)}function Gq(t,i,u){gh=u,yh=i,ct=t,eD(t,i,u),gh=null,yh=null}function eD(t,i,u){for(var d=(t.mode&Zt)!==Et;ct!==null;){var m=ct,b=m.child;if(m.tag===J&&d){var k=m.memoizedState!==null,O=k||Gb;if(O){E2(t,i,u);continue}else{var A=m.alternate,z=A!==null&&A.memoizedState!==null,V=z||vi,X=Gb,G=vi;Gb=O,vi=V,vi&&!G&&(ct=m,Xq(m));for(var ue=b;ue!==null;)ct=ue,eD(ue,i,u),ue=ue.sibling;ct=m,Gb=X,vi=G,E2(t,i,u);continue}}(m.subtreeFlags&ei)!==yt&&b!==null?(b.return=m,ct=b):E2(t,i,u)}}function E2(t,i,u){for(;ct!==null;){var d=ct;if((d.flags&ei)!==yt){var m=d.alternate;Cn(d);try{$q(i,m,d,u)}catch(k){zn(d,d.return,k)}Er()}if(d===t){ct=null;return}var b=d.sibling;if(b!==null){b.return=d.return,ct=b;return}ct=d.return}}function Qq(t){for(;ct!==null;){var i=ct,u=i.child;switch(i.tag){case v:case N:case $:case H:{if(i.mode&wt)try{Bl(),Go(qr,i,i.return)}finally{Ul(i)}else Go(qr,i,i.return);break}case y:{bh(i,i.return);var d=i.stateNode;typeof d.componentWillUnmount=="function"&&y2(i,i.return,d);break}case x:{bh(i,i.return);break}case J:{var m=i.memoizedState!==null;if(m){tD(t);continue}break}}u!==null?(u.return=i,ct=u):tD(t)}}function tD(t){for(;ct!==null;){var i=ct;if(i===t){ct=null;return}var u=i.sibling;if(u!==null){u.return=i.return,ct=u;return}ct=i.return}}function Xq(t){for(;ct!==null;){var i=ct,u=i.child;if(i.tag===J){var d=i.memoizedState!==null;if(d){nD(t);continue}}u!==null?(u.return=i,ct=u):nD(t)}}function nD(t){for(;ct!==null;){var i=ct;Cn(i);try{Uq(i)}catch(d){zn(i,i.return,d)}if(Er(),i===t){ct=null;return}var u=i.sibling;if(u!==null){u.return=i.return,ct=u;return}ct=i.return}}function Jq(t,i,u,d){ct=i,eW(i,t,u,d)}function eW(t,i,u,d){for(;ct!==null;){var m=ct,b=m.child;(m.subtreeFlags&ga)!==yt&&b!==null?(b.return=m,ct=b):tW(t,i,u,d)}}function tW(t,i,u,d){for(;ct!==null;){var m=ct;if((m.flags&Vn)!==yt){Cn(m);try{nW(i,m,u,d)}catch(k){zn(m,m.return,k)}Er()}if(m===t){ct=null;return}var b=m.sibling;if(b!==null){b.return=m.return,ct=b;return}ct=m.return}}function nW(t,i,u,d){switch(i.tag){case v:case N:case H:{if(i.mode&wt){XC();try{hc(hi|Hr,i)}finally{QC(i)}}else hc(hi|Hr,i);break}}}function rW(t){ct=t,iW()}function iW(){for(;ct!==null;){var t=ct,i=t.child;if((ct.flags&pn)!==yt){var u=t.deletions;if(u!==null){for(var d=0;d<u.length;d++){var m=u[d];ct=m,lW(m,t)}{var b=t.alternate;if(b!==null){var k=b.child;if(k!==null){b.child=null;do{var O=k.sibling;k.sibling=null,k=O}while(k!==null)}}}ct=t}}(t.subtreeFlags&ga)!==yt&&i!==null?(i.return=t,ct=i):aW()}}function aW(){for(;ct!==null;){var t=ct;(t.flags&Vn)!==yt&&(Cn(t),oW(t),Er());var i=t.sibling;if(i!==null){i.return=t.return,ct=i;return}ct=t.return}}function oW(t){switch(t.tag){case v:case N:case H:{t.mode&wt?(XC(),Go(hi|Hr,t,t.return),QC(t)):Go(hi|Hr,t,t.return);break}}}function lW(t,i){for(;ct!==null;){var u=ct;Cn(u),uW(u,i),Er();var d=u.child;d!==null?(d.return=u,ct=d):sW(t)}}function sW(t){for(;ct!==null;){var i=ct,u=i.sibling,d=i.return;if(ZO(i),i===t){ct=null;return}if(u!==null){u.return=d,ct=u;return}ct=d}}function uW(t,i){switch(t.tag){case v:case N:case H:{t.mode&wt?(XC(),Go(hi,t,i),QC(t)):Go(hi,t,i);break}}}function cW(t){switch(t.tag){case v:case N:case H:{try{hc(qr|Hr,t)}catch(u){zn(t,t.return,u)}break}case y:{var i=t.stateNode;try{i.componentDidMount()}catch(u){zn(t,t.return,u)}break}}}function fW(t){switch(t.tag){case v:case N:case H:{try{hc(hi|Hr,t)}catch(i){zn(t,t.return,i)}break}}}function dW(t){switch(t.tag){case v:case N:case H:{try{Go(qr|Hr,t,t.return)}catch(u){zn(t,t.return,u)}break}case y:{var i=t.stateNode;typeof i.componentWillUnmount=="function"&&y2(t,t.return,i);break}}}function pW(t){switch(t.tag){case v:case N:case H:try{Go(hi|Hr,t,t.return)}catch(i){zn(t,t.return,i)}}}if(typeof Symbol=="function"&&Symbol.for){var g0=Symbol.for;g0("selector.component"),g0("selector.has_pseudo_class"),g0("selector.role"),g0("selector.test_id"),g0("selector.text")}var hW=[];function mW(){hW.forEach(function(t){return t()})}var vW=r.ReactCurrentActQueue;function gW(t){{var i=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,u=typeof jest<"u";return u&&i!==!1}}function rD(){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!t&&vW.current!==null&&f("The current testing environment is not configured to support act(...)"),t}}var yW=Math.ceil,x2=r.ReactCurrentDispatcher,w2=r.ReactCurrentOwner,yi=r.ReactCurrentBatchConfig,Jo=r.ReactCurrentActQueue,Zr=0,iD=1,bi=2,vo=4,qs=0,y0=1,Zf=2,Xb=3,b0=4,aD=5,C2=6,rn=Zr,Gi=null,ur=null,Kr=we,Hl=we,k2=ac(we),Gr=qs,S0=null,Jb=we,E0=we,eS=we,x0=null,Ra=null,_2=0,oD=500,lD=1/0,bW=500,Ws=null;function w0(){lD=Zn()+bW}function sD(){return lD}var tS=!1,T2=null,Sh=null,Kf=!1,vc=null,C0=we,R2=[],O2=null,SW=50,k0=0,D2=null,A2=!1,nS=!1,EW=50,Eh=0,rS=null,_0=An,iS=we,uD=!1;function aS(){return Gi}function Qi(){return(rn&(bi|vo))!==Zr?Zn():(_0!==An||(_0=Zn()),_0)}function gc(t){var i=t.mode;if((i&Zt)===Et)return kt;if((rn&bi)!==Zr&&Kr!==we)return wr(Kr);var u=gH()!==vH;if(u){if(yi.transition!==null){var d=yi.transition;d._updatedFibers||(d._updatedFibers=new Set),d._updatedFibers.add(t)}return iS===nn&&(iS=dv()),iS}var m=Ea();if(m!==nn)return m;var b=tV();return b}function xW(t){var i=t.mode;return(i&Zt)===Et?kt:Xx()}function Qr(t,i,u,d){WW(),uD&&f("useInsertionEffect must not schedule updates."),A2&&(nS=!0),Rs(t,u,d),(rn&bi)!==we&&t===Gi?KW(i):(Br&&gv(t,i,u),GW(i),t===Gi&&((rn&bi)===Zr&&(E0=jt(E0,u)),Gr===b0&&yc(t,Kr)),Oa(t,d),u===kt&&rn===Zr&&(i.mode&Zt)===Et&&!Jo.isBatchingLegacy&&(w0(),s4()))}function wW(t,i,u){var d=t.current;d.lanes=i,Rs(t,i,u),Oa(t,u)}function CW(t){return(rn&bi)!==Zr}function Oa(t,i){var u=t.callbackNode;Kx(t,i);var d=Sf(t,t===Gi?Kr:we);if(d===we){u!==null&&kD(u),t.callbackNode=null,t.callbackPriority=nn;return}var m=vr(d),b=t.callbackPriority;if(b===m&&!(Jo.current!==null&&u!==z2)){u==null&&b!==kt&&f("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}u!=null&&kD(u);var k;if(m===kt)t.tag===oc?(Jo.isBatchingLegacy!==null&&(Jo.didScheduleLegacyUpdate=!0),JV(dD.bind(null,t))):l4(dD.bind(null,t)),Jo.current!==null?Jo.current.push(lc):rV(function(){(rn&(bi|vo))===Zr&&lc()}),k=null;else{var O;switch(kf(d)){case ti:O=ap;break;case Vr:O=Wi;break;case zo:O=ao;break;case wf:O=xl;break;default:O=ao;break}k=j2(O,cD.bind(null,t))}t.callbackPriority=m,t.callbackNode=k}function cD(t,i){if(WH(),_0=An,iS=we,(rn&(bi|vo))!==Zr)throw new Error("Should not already be working.");var u=t.callbackNode,d=Zs();if(d&&t.callbackNode!==u)return null;var m=Sf(t,t===Gi?Kr:we);if(m===we)return null;var b=!xf(t,m)&&!g1(t,m)&&!i,k=b?PW(t,m):lS(t,m);if(k!==qs){if(k===Zf){var O=cv(t);O!==we&&(m=O,k=M2(t,O))}if(k===y0){var A=S0;throw Gf(t,we),yc(t,m),Oa(t,Zn()),A}if(k===C2)yc(t,m);else{var z=!xf(t,m),V=t.current.alternate;if(z&&!_W(V)){if(k=lS(t,m),k===Zf){var X=cv(t);X!==we&&(m=X,k=M2(t,X))}if(k===y0){var G=S0;throw Gf(t,we),yc(t,m),Oa(t,Zn()),G}}t.finishedWork=V,t.finishedLanes=m,kW(t,k,m)}}return Oa(t,Zn()),t.callbackNode===u?cD.bind(null,t):null}function M2(t,i){var u=x0;if(kr(t)){var d=Gf(t,i);d.flags|=er,WV(t.containerInfo)}var m=lS(t,i);if(m!==Zf){var b=Ra;Ra=u,b!==null&&fD(b)}return m}function fD(t){Ra===null?Ra=t:Ra.push.apply(Ra,t)}function kW(t,i,u){switch(i){case qs:case y0:throw new Error("Root did not complete. This is a bug in React.");case Zf:{Qf(t,Ra,Ws);break}case Xb:{if(yc(t,u),Op(u)&&!_D()){var d=_2+oD-Zn();if(d>10){var m=Sf(t,we);if(m!==we)break;var b=t.suspendedLanes;if(!Ts(b,u)){Qi(),mv(t,b);break}t.timeoutHandle=Ow(Qf.bind(null,t,Ra,Ws),d);break}}Qf(t,Ra,Ws);break}case b0:{if(yc(t,u),v1(u))break;if(!_D()){var k=m1(t,u),O=k,A=Zn()-O,z=qW(A)-A;if(z>10){t.timeoutHandle=Ow(Qf.bind(null,t,Ra,Ws),z);break}}Qf(t,Ra,Ws);break}case aD:{Qf(t,Ra,Ws);break}default:throw new Error("Unknown root exit status.")}}function _W(t){for(var i=t;;){if(i.flags&pf){var u=i.updateQueue;if(u!==null){var d=u.stores;if(d!==null)for(var m=0;m<d.length;m++){var b=d[m],k=b.getSnapshot,O=b.value;try{if(!ut(k(),O))return!1}catch{return!1}}}}var A=i.child;if(i.subtreeFlags&pf&&A!==null){A.return=i,i=A;continue}if(i===t)return!0;for(;i.sibling===null;){if(i.return===null||i.return===t)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}return!0}function yc(t,i){i=Bu(i,eS),i=Bu(i,E0),hv(t,i)}function dD(t){if(YH(),(rn&(bi|vo))!==Zr)throw new Error("Should not already be working.");Zs();var i=Sf(t,we);if(!Mi(i,kt))return Oa(t,Zn()),null;var u=lS(t,i);if(t.tag!==oc&&u===Zf){var d=cv(t);d!==we&&(i=d,u=M2(t,d))}if(u===y0){var m=S0;throw Gf(t,we),yc(t,i),Oa(t,Zn()),m}if(u===C2)throw new Error("Root did not complete. This is a bug in React.");var b=t.current.alternate;return t.finishedWork=b,t.finishedLanes=i,Qf(t,Ra,Ws),Oa(t,Zn()),null}function TW(t,i){i!==we&&(Vu(t,jt(i,kt)),Oa(t,Zn()),(rn&(bi|vo))===Zr&&(w0(),lc()))}function L2(t,i){var u=rn;rn|=iD;try{return t(i)}finally{rn=u,rn===Zr&&!Jo.isBatchingLegacy&&(w0(),s4())}}function RW(t,i,u,d,m){var b=Ea(),k=yi.transition;try{return yi.transition=null,Cr(ti),t(i,u,d,m)}finally{Cr(b),yi.transition=k,rn===Zr&&w0()}}function Ys(t){vc!==null&&vc.tag===oc&&(rn&(bi|vo))===Zr&&Zs();var i=rn;rn|=iD;var u=yi.transition,d=Ea();try{return yi.transition=null,Cr(ti),t?t():void 0}finally{Cr(d),yi.transition=u,rn=i,(rn&(bi|vo))===Zr&&lc()}}function pD(){return(rn&(bi|vo))!==Zr}function oS(t,i){Pi(k2,Hl,t),Hl=jt(Hl,i)}function P2(t){Hl=k2.current,Li(k2,t)}function Gf(t,i){t.finishedWork=null,t.finishedLanes=we;var u=t.timeoutHandle;if(u!==Dw&&(t.timeoutHandle=Dw,nV(u)),ur!==null)for(var d=ur.return;d!==null;){var m=d.alternate;BO(m,d),d=d.return}Gi=t;var b=Xf(t.current,null);return ur=b,Kr=Hl=i,Gr=qs,S0=null,Jb=we,E0=we,eS=we,x0=null,Ra=null,EH(),qo.discardPendingWarnings(),b}function hD(t,i){do{var u=ur;try{if(hb(),H4(),Er(),w2.current=null,u===null||u.return===null){Gr=y0,S0=i,ur=null;return}if(Re&&u.mode&wt&&Wb(u,!0),We)if(ys(),i!==null&&typeof i=="object"&&typeof i.then=="function"){var d=i;d1(u,d,Kr)}else cp(u,i,Kr);XH(t,u.return,u,i,Kr),yD(u)}catch(m){i=m,ur===u&&u!==null?(u=u.return,ur=u):u=ur;continue}return}while(!0)}function mD(){var t=x2.current;return x2.current=Ub,t===null?Ub:t}function vD(t){x2.current=t}function OW(){_2=Zn()}function T0(t){Jb=jt(t,Jb)}function DW(){Gr===qs&&(Gr=Xb)}function N2(){(Gr===qs||Gr===Xb||Gr===Zf)&&(Gr=b0),Gi!==null&&(Ef(Jb)||Ef(E0))&&yc(Gi,Kr)}function AW(t){Gr!==b0&&(Gr=Zf),x0===null?x0=[t]:x0.push(t)}function MW(){return Gr===qs}function lS(t,i){var u=rn;rn|=bi;var d=mD();if(Gi!==t||Kr!==i){if(Br){var m=t.memoizedUpdaters;m.size>0&&(R0(t,Kr),m.clear()),Mp(t,i)}Ws=yv(),Gf(t,i)}Ha(i);do try{LW();break}catch(b){hD(t,b)}while(!0);if(hb(),rn=u,vD(d),ur!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return Iu(),Gi=null,Kr=we,Gr}function LW(){for(;ur!==null;)gD(ur)}function PW(t,i){var u=rn;rn|=bi;var d=mD();if(Gi!==t||Kr!==i){if(Br){var m=t.memoizedUpdaters;m.size>0&&(R0(t,Kr),m.clear()),Mp(t,i)}Ws=yv(),w0(),Gf(t,i)}Ha(i);do try{NW();break}catch(b){hD(t,b)}while(!0);return hb(),vD(d),rn=u,ur!==null?(vf(),qs):(Iu(),Gi=null,Kr=we,Gr)}function NW(){for(;ur!==null&&!ip();)gD(ur)}function gD(t){var i=t.alternate;Cn(t);var u;(t.mode&wt)!==Et?(GC(t),u=F2(i,t,Hl),Wb(t,!0)):u=F2(i,t,Hl),Er(),t.memoizedProps=t.pendingProps,u===null?yD(t):ur=u,w2.current=null}function yD(t){var i=t;do{var u=i.alternate,d=i.return;if((i.flags&Vi)===yt){Cn(i);var m=void 0;if((i.mode&wt)===Et?m=UO(u,i,Hl):(GC(i),m=UO(u,i,Hl),Wb(i,!1)),Er(),m!==null){ur=m;return}}else{var b=Dq(u,i);if(b!==null){b.flags&=r1,ur=b;return}if((i.mode&wt)!==Et){Wb(i,!1);for(var k=i.actualDuration,O=i.child;O!==null;)k+=O.actualDuration,O=O.sibling;i.actualDuration=k}if(d!==null)d.flags|=Vi,d.subtreeFlags=yt,d.deletions=null;else{Gr=C2,ur=null;return}}var A=i.sibling;if(A!==null){ur=A;return}i=d,ur=i}while(i!==null);Gr===qs&&(Gr=aD)}function Qf(t,i,u){var d=Ea(),m=yi.transition;try{yi.transition=null,Cr(ti),FW(t,i,u,d)}finally{yi.transition=m,Cr(d)}return null}function FW(t,i,u,d){do Zs();while(vc!==null);if(YW(),(rn&(bi|vo))!==Zr)throw new Error("Should not already be working.");var m=t.finishedWork,b=t.finishedLanes;if(lp(b),m===null)return av(),null;if(b===we&&f("root.finishedLanes should not be empty during a commit. This is a bug in React."),t.finishedWork=null,t.finishedLanes=we,m===t.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");t.callbackNode=null,t.callbackPriority=nn;var k=jt(m.lanes,m.childLanes);vv(t,k),t===Gi&&(Gi=null,ur=null,Kr=we),((m.subtreeFlags&ga)!==yt||(m.flags&ga)!==yt)&&(Kf||(Kf=!0,O2=u,j2(ao,function(){return Zs(),null})));var O=(m.subtreeFlags&(Pu|Ri|ei|ga))!==yt,A=(m.flags&(Pu|Ri|ei|ga))!==yt;if(O||A){var z=yi.transition;yi.transition=null;var V=Ea();Cr(ti);var X=rn;rn|=vo,w2.current=null,Nq(t,m),mO(),Kq(t,m,b),KB(t.containerInfo),t.current=m,p1(b),Gq(m,t,b),Fu(),o1(),rn=X,Cr(V),yi.transition=z}else t.current=m,mO();var G=Kf;if(Kf?(Kf=!1,vc=t,C0=b):(Eh=0,rS=null),k=t.pendingLanes,k===we&&(Sh=null),G||xD(t.current,!1),No(m.stateNode,d),Br&&t.memoizedUpdaters.clear(),mW(),Oa(t,Zn()),i!==null)for(var ue=t.onRecoverableError,ce=0;ce<i.length;ce++){var Se=i[ce],tt=Se.stack,bt=Se.digest;ue(Se.value,{componentStack:tt,digest:bt})}if(tS){tS=!1;var vt=T2;throw T2=null,vt}return Mi(C0,kt)&&t.tag!==oc&&Zs(),k=t.pendingLanes,Mi(k,kt)?(qH(),t===D2?k0++:(k0=0,D2=t)):k0=0,lc(),av(),null}function Zs(){if(vc!==null){var t=kf(C0),i=ew(zo,t),u=yi.transition,d=Ea();try{return yi.transition=null,Cr(i),zW()}finally{Cr(d),yi.transition=u}}return!1}function IW(t){R2.push(t),Kf||(Kf=!0,j2(ao,function(){return Zs(),null}))}function zW(){if(vc===null)return!1;var t=O2;O2=null;var i=vc,u=C0;if(vc=null,C0=we,(rn&(bi|vo))!==Zr)throw new Error("Cannot flush passive effects while already rendering.");A2=!0,nS=!1,h1(u);var d=rn;rn|=vo,rW(i.current),Jq(i,i.current,u,t);{var m=R2;R2=[];for(var b=0;b<m.length;b++){var k=m[b];jq(i,k)}}mf(),xD(i.current,!0),rn=d,lc(),nS?i===rS?Eh++:(Eh=0,rS=i):Eh=0,A2=!1,nS=!1,Cl(i);{var O=i.current.stateNode;O.effectDuration=0,O.passiveEffectDuration=0}return!0}function bD(t){return Sh!==null&&Sh.has(t)}function jW(t){Sh===null?Sh=new Set([t]):Sh.add(t)}function $W(t){tS||(tS=!0,T2=t)}var UW=$W;function SD(t,i,u){var d=Wf(u,i),m=gO(t,d,kt),b=uc(t,m,kt),k=Qi();b!==null&&(Rs(b,kt,k),Oa(b,k))}function zn(t,i,u){if(Mq(u),O0(!1),t.tag===E){SD(t,t,u);return}var d=null;for(d=i;d!==null;){if(d.tag===E){SD(d,t,u);return}else if(d.tag===y){var m=d.type,b=d.stateNode;if(typeof m.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&!bD(b)){var k=Wf(u,t),O=n2(d,k,kt),A=uc(d,O,kt),z=Qi();A!==null&&(Rs(A,kt,z),Oa(A,z));return}}d=d.return}f(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
167
167
 
168
168
  Error message:
169
169
 
170
- %s`,u)}function UW(t,i,u){var d=t.pingCache;d!==null&&d.delete(i);var m=Qi();mv(t,u),GW(t),Gi===t&&Ts(Kr,u)&&(Gr===b0||Gr===Xb&&Op(Kr)&&Zn()-_2<aD?Gf(t,we):eS=jt(eS,u)),Oa(t,m)}function SD(t,i){i===nn&&(i=EW(t));var u=Qi(),d=_a(t,i);d!==null&&(Rs(d,i,u),Oa(d,u))}function BW(t){var i=t.memoizedState,u=nn;i!==null&&(u=i.retryLane),SD(t,u)}function VW(t,i){var u=nn,d;switch(t.tag){case F:d=t.stateNode;var m=t.memoizedState;m!==null&&(u=m.retryLane);break;case ee:d=t.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}d!==null&&d.delete(i),SD(t,u)}function HW(t){return t<120?120:t<480?480:t<1080?1080:t<1920?1920:t<3e3?3e3:t<4320?4320:gW(t/1960)*1960}function qW(){if(k0>bW)throw k0=0,D2=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Eh>SW&&(Eh=0,rS=null,f("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function WW(){qo.flushLegacyContextWarning(),qo.flushPendingUnsafeLifecycleWarnings()}function ED(t,i){Cn(t),sS(t,Ti,fW),i&&sS(t,gs,dW),sS(t,Ti,uW),i&&sS(t,gs,cW),Er()}function sS(t,i,u){for(var d=t,m=null;d!==null;){var b=d.subtreeFlags&i;d!==m&&d.child!==null&&b!==yt?d=d.child:((d.flags&i)!==yt&&u(d),d.sibling!==null?d=d.sibling:d=m=d.return)}}var uS=null;function xD(t){{if((rn&bi)!==Zr||!(t.mode&Zt))return;var i=t.tag;if(i!==S&&i!==E&&i!==y&&i!==v&&i!==N&&i!==$&&i!==H)return;var u=Ft(t)||"ReactComponent";if(uS!==null){if(uS.has(u))return;uS.add(u)}else uS=new Set([u]);var d=hr;try{Cn(t),f("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{d?Cn(t):Er()}}}var F2;{var YW=null;F2=function(t,i,u){var d=DD(YW,i);try{return NO(t,i,u)}catch(b){if(oH()||b!==null&&typeof b=="object"&&typeof b.then=="function")throw b;if(hb(),V4(),UO(t,i),DD(i,d),i.mode&wt&&GC(i),vs(null,NO,null,t,i,u),Yx()){var m=Zm();typeof m=="object"&&m!==null&&m._suppressLogging&&typeof b=="object"&&b!==null&&!b._suppressLogging&&(b._suppressLogging=!0)}throw b}}}var wD=!1,I2;I2=new Set;function ZW(t){if(fa&&!UH())switch(t.tag){case v:case N:case H:{var i=ur&&Ft(ur)||"Unknown",u=i;if(!I2.has(u)){I2.add(u);var d=Ft(t)||"Unknown";f("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",d,i,i)}break}case y:{wD||(f("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),wD=!0);break}}}function R0(t,i){if(Br){var u=t.memoizedUpdaters;u.forEach(function(d){gv(t,d,i)})}}var z2={};function j2(t,i){{var u=Jo.current;return u!==null?(u.push(i),z2):rp(t,i)}}function CD(t){if(t!==z2)return a1(t)}function kD(){return Jo.current!==null}function KW(t){{if(t.mode&Zt){if(!nD())return}else if(!vW()||rn!==Zr||t.tag!==v&&t.tag!==N&&t.tag!==H)return;if(Jo.current===null){var i=hr;try{Cn(t),f(`An update to %s inside a test was not wrapped in act(...).
170
+ %s`,u)}function BW(t,i,u){var d=t.pingCache;d!==null&&d.delete(i);var m=Qi();mv(t,u),QW(t),Gi===t&&Ts(Kr,u)&&(Gr===b0||Gr===Xb&&Op(Kr)&&Zn()-_2<oD?Gf(t,we):eS=jt(eS,u)),Oa(t,m)}function ED(t,i){i===nn&&(i=xW(t));var u=Qi(),d=_a(t,i);d!==null&&(Rs(d,i,u),Oa(d,u))}function VW(t){var i=t.memoizedState,u=nn;i!==null&&(u=i.retryLane),ED(t,u)}function HW(t,i){var u=nn,d;switch(t.tag){case F:d=t.stateNode;var m=t.memoizedState;m!==null&&(u=m.retryLane);break;case ee:d=t.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}d!==null&&d.delete(i),ED(t,u)}function qW(t){return t<120?120:t<480?480:t<1080?1080:t<1920?1920:t<3e3?3e3:t<4320?4320:yW(t/1960)*1960}function WW(){if(k0>SW)throw k0=0,D2=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Eh>EW&&(Eh=0,rS=null,f("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function YW(){qo.flushLegacyContextWarning(),qo.flushPendingUnsafeLifecycleWarnings()}function xD(t,i){Cn(t),sS(t,Ti,dW),i&&sS(t,gs,pW),sS(t,Ti,cW),i&&sS(t,gs,fW),Er()}function sS(t,i,u){for(var d=t,m=null;d!==null;){var b=d.subtreeFlags&i;d!==m&&d.child!==null&&b!==yt?d=d.child:((d.flags&i)!==yt&&u(d),d.sibling!==null?d=d.sibling:d=m=d.return)}}var uS=null;function wD(t){{if((rn&bi)!==Zr||!(t.mode&Zt))return;var i=t.tag;if(i!==S&&i!==E&&i!==y&&i!==v&&i!==N&&i!==$&&i!==H)return;var u=Ft(t)||"ReactComponent";if(uS!==null){if(uS.has(u))return;uS.add(u)}else uS=new Set([u]);var d=hr;try{Cn(t),f("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{d?Cn(t):Er()}}}var F2;{var ZW=null;F2=function(t,i,u){var d=AD(ZW,i);try{return FO(t,i,u)}catch(b){if(lH()||b!==null&&typeof b=="object"&&typeof b.then=="function")throw b;if(hb(),H4(),BO(t,i),AD(i,d),i.mode&wt&&GC(i),vs(null,FO,null,t,i,u),Yx()){var m=Zm();typeof m=="object"&&m!==null&&m._suppressLogging&&typeof b=="object"&&b!==null&&!b._suppressLogging&&(b._suppressLogging=!0)}throw b}}}var CD=!1,I2;I2=new Set;function KW(t){if(fa&&!BH())switch(t.tag){case v:case N:case H:{var i=ur&&Ft(ur)||"Unknown",u=i;if(!I2.has(u)){I2.add(u);var d=Ft(t)||"Unknown";f("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",d,i,i)}break}case y:{CD||(f("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),CD=!0);break}}}function R0(t,i){if(Br){var u=t.memoizedUpdaters;u.forEach(function(d){gv(t,d,i)})}}var z2={};function j2(t,i){{var u=Jo.current;return u!==null?(u.push(i),z2):rp(t,i)}}function kD(t){if(t!==z2)return a1(t)}function _D(){return Jo.current!==null}function GW(t){{if(t.mode&Zt){if(!rD())return}else if(!gW()||rn!==Zr||t.tag!==v&&t.tag!==N&&t.tag!==H)return;if(Jo.current===null){var i=hr;try{Cn(t),f(`An update to %s inside a test was not wrapped in act(...).
171
171
 
172
172
  When testing, code that causes React state updates should be wrapped into act(...):
173
173
 
@@ -176,7 +176,7 @@ act(() => {
176
176
  });
177
177
  /* assert on the output */
178
178
 
179
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,Ft(t))}finally{i?Cn(t):Er()}}}}function GW(t){t.tag!==oc&&nD()&&Jo.current===null&&f(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
179
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,Ft(t))}finally{i?Cn(t):Er()}}}}function QW(t){t.tag!==oc&&rD()&&Jo.current===null&&f(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
180
180
 
181
181
  When testing, code that resolves suspended data should be wrapped into act(...):
182
182
 
@@ -185,51 +185,51 @@ act(() => {
185
185
  });
186
186
  /* assert on the output */
187
187
 
188
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function O0(t){sD=t}var go=null,xh=null,QW=function(t){go=t};function wh(t){{if(go===null)return t;var i=go(t);return i===void 0?t:i.current}}function $2(t){return wh(t)}function U2(t){{if(go===null)return t;var i=go(t);if(i===void 0){if(t!=null&&typeof t.render=="function"){var u=wh(t.render);if(t.render!==u){var d={$$typeof:St,render:u};return t.displayName!==void 0&&(d.displayName=t.displayName),d}}return t}return i.current}}function _D(t,i){{if(go===null)return!1;var u=t.elementType,d=i.type,m=!1,b=typeof d=="object"&&d!==null?d.$$typeof:null;switch(t.tag){case y:{typeof d=="function"&&(m=!0);break}case v:{(typeof d=="function"||b===xt)&&(m=!0);break}case N:{(b===St||b===xt)&&(m=!0);break}case $:case H:{(b===Vt||b===xt)&&(m=!0);break}default:return!1}if(m){var k=go(u);if(k!==void 0&&k===go(d))return!0}return!1}}function TD(t){{if(go===null||typeof WeakSet!="function")return;xh===null&&(xh=new WeakSet),xh.add(t)}}var XW=function(t,i){{if(go===null)return;var u=i.staleFamilies,d=i.updatedFamilies;Zs(),Ys(function(){B2(t.current,d,u)})}},JW=function(t,i){{if(t.context!==Wa)return;Zs(),Ys(function(){D0(i,t,null,null)})}};function B2(t,i,u){{var d=t.alternate,m=t.child,b=t.sibling,k=t.tag,O=t.type,A=null;switch(k){case v:case H:case y:A=O;break;case N:A=O.render;break}if(go===null)throw new Error("Expected resolveFamily to be set during hot reload.");var z=!1,V=!1;if(A!==null){var X=go(A);X!==void 0&&(u.has(X)?V=!0:i.has(X)&&(k===y?V=!0:z=!0))}if(xh!==null&&(xh.has(t)||d!==null&&xh.has(d))&&(V=!0),V&&(t._debugNeedsRemount=!0),V||z){var G=_a(t,kt);G!==null&&Qr(G,t,kt,An)}m!==null&&!V&&B2(m,i,u),b!==null&&B2(b,i,u)}}var eY=function(t,i){{var u=new Set,d=new Set(i.map(function(m){return m.current}));return V2(t.current,d,u),u}};function V2(t,i,u){{var d=t.child,m=t.sibling,b=t.tag,k=t.type,O=null;switch(b){case v:case H:case y:O=k;break;case N:O=k.render;break}var A=!1;O!==null&&i.has(O)&&(A=!0),A?tY(t,u):d!==null&&V2(d,i,u),m!==null&&V2(m,i,u)}}function tY(t,i){{var u=nY(t,i);if(u)return;for(var d=t;;){switch(d.tag){case x:i.add(d.stateNode);return;case C:i.add(d.stateNode.containerInfo);return;case E:i.add(d.stateNode.containerInfo);return}if(d.return===null)throw new Error("Expected to reach root first.");d=d.return}}}function nY(t,i){for(var u=t,d=!1;;){if(u.tag===x)d=!0,i.add(u.stateNode);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)return d;for(;u.sibling===null;){if(u.return===null||u.return===t)return d;u=u.return}u.sibling.return=u.return,u=u.sibling}return!1}var H2;{H2=!1;try{var RD=Object.preventExtensions({})}catch{H2=!0}}function rY(t,i,u,d){this.tag=t,this.key=u,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=i,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=d,this.flags=yt,this.subtreeFlags=yt,this.deletions=null,this.lanes=we,this.childLanes=we,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!H2&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Ya=function(t,i,u,d){return new rY(t,i,u,d)};function q2(t){var i=t.prototype;return!!(i&&i.isReactComponent)}function iY(t){return typeof t=="function"&&!q2(t)&&t.defaultProps===void 0}function aY(t){if(typeof t=="function")return q2(t)?y:v;if(t!=null){var i=t.$$typeof;if(i===St)return N;if(i===Vt)return $}return S}function Xf(t,i){var u=t.alternate;u===null?(u=Ya(t.tag,i,t.key,t.mode),u.elementType=t.elementType,u.type=t.type,u.stateNode=t.stateNode,u._debugSource=t._debugSource,u._debugOwner=t._debugOwner,u._debugHookTypes=t._debugHookTypes,u.alternate=t,t.alternate=u):(u.pendingProps=i,u.type=t.type,u.flags=yt,u.subtreeFlags=yt,u.deletions=null,u.actualDuration=0,u.actualStartTime=-1),u.flags=t.flags&Ur,u.childLanes=t.childLanes,u.lanes=t.lanes,u.child=t.child,u.memoizedProps=t.memoizedProps,u.memoizedState=t.memoizedState,u.updateQueue=t.updateQueue;var d=t.dependencies;switch(u.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext},u.sibling=t.sibling,u.index=t.index,u.ref=t.ref,u.selfBaseDuration=t.selfBaseDuration,u.treeBaseDuration=t.treeBaseDuration,u._debugNeedsRemount=t._debugNeedsRemount,u.tag){case S:case v:case H:u.type=wh(t.type);break;case y:u.type=$2(t.type);break;case N:u.type=U2(t.type);break}return u}function oY(t,i){t.flags&=Ur|Pn;var u=t.alternate;if(u===null)t.childLanes=we,t.lanes=i,t.child=null,t.subtreeFlags=yt,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null,t.selfBaseDuration=0,t.treeBaseDuration=0;else{t.childLanes=u.childLanes,t.lanes=u.lanes,t.child=u.child,t.subtreeFlags=yt,t.deletions=null,t.memoizedProps=u.memoizedProps,t.memoizedState=u.memoizedState,t.updateQueue=u.updateQueue,t.type=u.type;var d=u.dependencies;t.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext},t.selfBaseDuration=u.selfBaseDuration,t.treeBaseDuration=u.treeBaseDuration}return t}function lY(t,i,u){var d;return t===ob?(d=Zt,i===!0&&(d|=Kn,d|=ba)):d=Et,Br&&(d|=wt),Ya(E,null,null,d)}function W2(t,i,u,d,m,b){var k=S,O=t;if(typeof t=="function")q2(t)?(k=y,O=$2(O)):O=wh(O);else if(typeof t=="string")k=x;else e:switch(t){case Ia:return bc(u.children,m,b,i);case cl:k=D,m|=Kn,(m&Zt)!==Et&&(m|=ba);break;case W:return sY(u,m,b,i);case Bt:return uY(u,m,b,i);case ln:return cY(u,m,b,i);case Bn:return OD(u,m,b,i);case ci:case Dr:case fl:case Md:case Un:default:{if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Pe:k=I;break e;case Ke:k=M;break e;case St:k=N,O=U2(O);break e;case Vt:k=$;break e;case xt:k=Y,O=null;break e}var A="";{(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(A+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var z=d?Ft(d):null;z&&(A+=`
188
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function O0(t){uD=t}var go=null,xh=null,XW=function(t){go=t};function wh(t){{if(go===null)return t;var i=go(t);return i===void 0?t:i.current}}function $2(t){return wh(t)}function U2(t){{if(go===null)return t;var i=go(t);if(i===void 0){if(t!=null&&typeof t.render=="function"){var u=wh(t.render);if(t.render!==u){var d={$$typeof:St,render:u};return t.displayName!==void 0&&(d.displayName=t.displayName),d}}return t}return i.current}}function TD(t,i){{if(go===null)return!1;var u=t.elementType,d=i.type,m=!1,b=typeof d=="object"&&d!==null?d.$$typeof:null;switch(t.tag){case y:{typeof d=="function"&&(m=!0);break}case v:{(typeof d=="function"||b===xt)&&(m=!0);break}case N:{(b===St||b===xt)&&(m=!0);break}case $:case H:{(b===Vt||b===xt)&&(m=!0);break}default:return!1}if(m){var k=go(u);if(k!==void 0&&k===go(d))return!0}return!1}}function RD(t){{if(go===null||typeof WeakSet!="function")return;xh===null&&(xh=new WeakSet),xh.add(t)}}var JW=function(t,i){{if(go===null)return;var u=i.staleFamilies,d=i.updatedFamilies;Zs(),Ys(function(){B2(t.current,d,u)})}},eY=function(t,i){{if(t.context!==Wa)return;Zs(),Ys(function(){D0(i,t,null,null)})}};function B2(t,i,u){{var d=t.alternate,m=t.child,b=t.sibling,k=t.tag,O=t.type,A=null;switch(k){case v:case H:case y:A=O;break;case N:A=O.render;break}if(go===null)throw new Error("Expected resolveFamily to be set during hot reload.");var z=!1,V=!1;if(A!==null){var X=go(A);X!==void 0&&(u.has(X)?V=!0:i.has(X)&&(k===y?V=!0:z=!0))}if(xh!==null&&(xh.has(t)||d!==null&&xh.has(d))&&(V=!0),V&&(t._debugNeedsRemount=!0),V||z){var G=_a(t,kt);G!==null&&Qr(G,t,kt,An)}m!==null&&!V&&B2(m,i,u),b!==null&&B2(b,i,u)}}var tY=function(t,i){{var u=new Set,d=new Set(i.map(function(m){return m.current}));return V2(t.current,d,u),u}};function V2(t,i,u){{var d=t.child,m=t.sibling,b=t.tag,k=t.type,O=null;switch(b){case v:case H:case y:O=k;break;case N:O=k.render;break}var A=!1;O!==null&&i.has(O)&&(A=!0),A?nY(t,u):d!==null&&V2(d,i,u),m!==null&&V2(m,i,u)}}function nY(t,i){{var u=rY(t,i);if(u)return;for(var d=t;;){switch(d.tag){case x:i.add(d.stateNode);return;case C:i.add(d.stateNode.containerInfo);return;case E:i.add(d.stateNode.containerInfo);return}if(d.return===null)throw new Error("Expected to reach root first.");d=d.return}}}function rY(t,i){for(var u=t,d=!1;;){if(u.tag===x)d=!0,i.add(u.stateNode);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)return d;for(;u.sibling===null;){if(u.return===null||u.return===t)return d;u=u.return}u.sibling.return=u.return,u=u.sibling}return!1}var H2;{H2=!1;try{var OD=Object.preventExtensions({})}catch{H2=!0}}function iY(t,i,u,d){this.tag=t,this.key=u,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=i,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=d,this.flags=yt,this.subtreeFlags=yt,this.deletions=null,this.lanes=we,this.childLanes=we,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!H2&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Ya=function(t,i,u,d){return new iY(t,i,u,d)};function q2(t){var i=t.prototype;return!!(i&&i.isReactComponent)}function aY(t){return typeof t=="function"&&!q2(t)&&t.defaultProps===void 0}function oY(t){if(typeof t=="function")return q2(t)?y:v;if(t!=null){var i=t.$$typeof;if(i===St)return N;if(i===Vt)return $}return S}function Xf(t,i){var u=t.alternate;u===null?(u=Ya(t.tag,i,t.key,t.mode),u.elementType=t.elementType,u.type=t.type,u.stateNode=t.stateNode,u._debugSource=t._debugSource,u._debugOwner=t._debugOwner,u._debugHookTypes=t._debugHookTypes,u.alternate=t,t.alternate=u):(u.pendingProps=i,u.type=t.type,u.flags=yt,u.subtreeFlags=yt,u.deletions=null,u.actualDuration=0,u.actualStartTime=-1),u.flags=t.flags&Ur,u.childLanes=t.childLanes,u.lanes=t.lanes,u.child=t.child,u.memoizedProps=t.memoizedProps,u.memoizedState=t.memoizedState,u.updateQueue=t.updateQueue;var d=t.dependencies;switch(u.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext},u.sibling=t.sibling,u.index=t.index,u.ref=t.ref,u.selfBaseDuration=t.selfBaseDuration,u.treeBaseDuration=t.treeBaseDuration,u._debugNeedsRemount=t._debugNeedsRemount,u.tag){case S:case v:case H:u.type=wh(t.type);break;case y:u.type=$2(t.type);break;case N:u.type=U2(t.type);break}return u}function lY(t,i){t.flags&=Ur|Pn;var u=t.alternate;if(u===null)t.childLanes=we,t.lanes=i,t.child=null,t.subtreeFlags=yt,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null,t.selfBaseDuration=0,t.treeBaseDuration=0;else{t.childLanes=u.childLanes,t.lanes=u.lanes,t.child=u.child,t.subtreeFlags=yt,t.deletions=null,t.memoizedProps=u.memoizedProps,t.memoizedState=u.memoizedState,t.updateQueue=u.updateQueue,t.type=u.type;var d=u.dependencies;t.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext},t.selfBaseDuration=u.selfBaseDuration,t.treeBaseDuration=u.treeBaseDuration}return t}function sY(t,i,u){var d;return t===ob?(d=Zt,i===!0&&(d|=Kn,d|=ba)):d=Et,Br&&(d|=wt),Ya(E,null,null,d)}function W2(t,i,u,d,m,b){var k=S,O=t;if(typeof t=="function")q2(t)?(k=y,O=$2(O)):O=wh(O);else if(typeof t=="string")k=x;else e:switch(t){case Ia:return bc(u.children,m,b,i);case cl:k=D,m|=Kn,(m&Zt)!==Et&&(m|=ba);break;case W:return uY(u,m,b,i);case Bt:return cY(u,m,b,i);case ln:return fY(u,m,b,i);case Bn:return DD(u,m,b,i);case ci:case Dr:case fl:case Md:case Un:default:{if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Pe:k=I;break e;case Ke:k=M;break e;case St:k=N,O=U2(O);break e;case Vt:k=$;break e;case xt:k=Y,O=null;break e}var A="";{(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(A+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var z=d?Ft(d):null;z&&(A+=`
189
189
 
190
- Check the render method of \``+z+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(t==null?t:typeof t)+"."+A))}}var V=Ya(k,u,i,m);return V.elementType=t,V.type=O,V.lanes=b,V._debugOwner=d,V}function Y2(t,i,u){var d=null;d=t._owner;var m=t.type,b=t.key,k=t.props,O=W2(m,b,k,d,i,u);return O._debugSource=t._source,O._debugOwner=t._owner,O}function bc(t,i,u,d){var m=Ya(T,t,d,i);return m.lanes=u,m}function sY(t,i,u,d){typeof t.id!="string"&&f('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof t.id);var m=Ya(B,t,d,i|wt);return m.elementType=W,m.lanes=u,m.stateNode={effectDuration:0,passiveEffectDuration:0},m}function uY(t,i,u,d){var m=Ya(F,t,d,i);return m.elementType=Bt,m.lanes=u,m}function cY(t,i,u,d){var m=Ya(ee,t,d,i);return m.elementType=ln,m.lanes=u,m}function OD(t,i,u,d){var m=Ya(J,t,d,i);m.elementType=Bn,m.lanes=u;var b={isHidden:!1};return m.stateNode=b,m}function Z2(t,i,u){var d=Ya(R,t,null,i);return d.lanes=u,d}function fY(){var t=Ya(x,null,null,Et);return t.elementType="DELETED",t}function dY(t){var i=Ya(ve,null,null,Et);return i.stateNode=t,i}function K2(t,i,u){var d=t.children!==null?t.children:[],m=Ya(C,d,t.key,i);return m.lanes=u,m.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},m}function DD(t,i){return t===null&&(t=Ya(S,null,null,Et)),t.tag=i.tag,t.key=i.key,t.elementType=i.elementType,t.type=i.type,t.stateNode=i.stateNode,t.return=i.return,t.child=i.child,t.sibling=i.sibling,t.index=i.index,t.ref=i.ref,t.pendingProps=i.pendingProps,t.memoizedProps=i.memoizedProps,t.updateQueue=i.updateQueue,t.memoizedState=i.memoizedState,t.dependencies=i.dependencies,t.mode=i.mode,t.flags=i.flags,t.subtreeFlags=i.subtreeFlags,t.deletions=i.deletions,t.lanes=i.lanes,t.childLanes=i.childLanes,t.alternate=i.alternate,t.actualDuration=i.actualDuration,t.actualStartTime=i.actualStartTime,t.selfBaseDuration=i.selfBaseDuration,t.treeBaseDuration=i.treeBaseDuration,t._debugSource=i._debugSource,t._debugOwner=i._debugOwner,t._debugNeedsRemount=i._debugNeedsRemount,t._debugHookTypes=i._debugHookTypes,t}function pY(t,i,u,d,m){this.tag=i,this.containerInfo=t,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=Dw,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=nn,this.eventTimes=Ap(we),this.expirationTimes=Ap(An),this.pendingLanes=we,this.suspendedLanes=we,this.pingedLanes=we,this.expiredLanes=we,this.mutableReadLanes=we,this.finishedLanes=we,this.entangledLanes=we,this.entanglements=Ap(we),this.identifierPrefix=d,this.onRecoverableError=m,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var b=this.pendingUpdatersLaneMap=[],k=0;k<Fn;k++)b.push(new Set)}switch(i){case ob:this._debugRootType=u?"hydrateRoot()":"createRoot()";break;case oc:this._debugRootType=u?"hydrate()":"render()";break}}function AD(t,i,u,d,m,b,k,O,A,z){var V=new pY(t,i,u,O,A),X=lY(i,b);V.current=X,X.stateNode=V;{var G={element:d,isDehydrated:u,cache:null,transitions:null,pendingSuspenseBoundaries:null};X.memoizedState=G}return rC(X),V}var G2="18.2.0";function hY(t,i,u){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return Tn(d),{$$typeof:Ui,key:d==null?null:""+d,children:t,containerInfo:i,implementation:u}}var Q2,X2;Q2=!1,X2={};function MD(t){if(!t)return Wa;var i=ha(t),u=QV(i);if(i.tag===y){var d=i.type;if(Il(d))return i4(i,d,u)}return u}function mY(t,i){{var u=ha(t);if(u===void 0){if(typeof t.render=="function")throw new Error("Unable to find node on an unmounted component.");var d=Object.keys(t).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+d)}var m=ya(u);if(m===null)return null;if(m.mode&Kn){var b=Ft(u)||"Component";if(!X2[b]){X2[b]=!0;var k=hr;try{Cn(m),u.mode&Kn?f("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",i,i,b):f("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",i,i,b)}finally{k?Cn(k):Er()}}}return m.stateNode}}function LD(t,i,u,d,m,b,k,O){var A=!1,z=null;return AD(t,i,A,z,u,d,m,b,k)}function PD(t,i,u,d,m,b,k,O,A,z){var V=!0,X=AD(u,d,V,t,m,b,k,O,A);X.context=MD(null);var G=X.current,ue=Qi(),ce=gc(G),Se=Vs(ue,ce);return Se.callback=i??null,uc(G,Se,ce),xW(X,ce,ue),X}function D0(t,i,u,d){l1(i,t);var m=i.current,b=Qi(),k=gc(m);bs(k);var O=MD(u);i.context===null?i.context=O:i.pendingContext=O,fa&&hr!==null&&!Q2&&(Q2=!0,f(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
190
+ Check the render method of \``+z+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(t==null?t:typeof t)+"."+A))}}var V=Ya(k,u,i,m);return V.elementType=t,V.type=O,V.lanes=b,V._debugOwner=d,V}function Y2(t,i,u){var d=null;d=t._owner;var m=t.type,b=t.key,k=t.props,O=W2(m,b,k,d,i,u);return O._debugSource=t._source,O._debugOwner=t._owner,O}function bc(t,i,u,d){var m=Ya(T,t,d,i);return m.lanes=u,m}function uY(t,i,u,d){typeof t.id!="string"&&f('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof t.id);var m=Ya(B,t,d,i|wt);return m.elementType=W,m.lanes=u,m.stateNode={effectDuration:0,passiveEffectDuration:0},m}function cY(t,i,u,d){var m=Ya(F,t,d,i);return m.elementType=Bt,m.lanes=u,m}function fY(t,i,u,d){var m=Ya(ee,t,d,i);return m.elementType=ln,m.lanes=u,m}function DD(t,i,u,d){var m=Ya(J,t,d,i);m.elementType=Bn,m.lanes=u;var b={isHidden:!1};return m.stateNode=b,m}function Z2(t,i,u){var d=Ya(R,t,null,i);return d.lanes=u,d}function dY(){var t=Ya(x,null,null,Et);return t.elementType="DELETED",t}function pY(t){var i=Ya(ve,null,null,Et);return i.stateNode=t,i}function K2(t,i,u){var d=t.children!==null?t.children:[],m=Ya(C,d,t.key,i);return m.lanes=u,m.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},m}function AD(t,i){return t===null&&(t=Ya(S,null,null,Et)),t.tag=i.tag,t.key=i.key,t.elementType=i.elementType,t.type=i.type,t.stateNode=i.stateNode,t.return=i.return,t.child=i.child,t.sibling=i.sibling,t.index=i.index,t.ref=i.ref,t.pendingProps=i.pendingProps,t.memoizedProps=i.memoizedProps,t.updateQueue=i.updateQueue,t.memoizedState=i.memoizedState,t.dependencies=i.dependencies,t.mode=i.mode,t.flags=i.flags,t.subtreeFlags=i.subtreeFlags,t.deletions=i.deletions,t.lanes=i.lanes,t.childLanes=i.childLanes,t.alternate=i.alternate,t.actualDuration=i.actualDuration,t.actualStartTime=i.actualStartTime,t.selfBaseDuration=i.selfBaseDuration,t.treeBaseDuration=i.treeBaseDuration,t._debugSource=i._debugSource,t._debugOwner=i._debugOwner,t._debugNeedsRemount=i._debugNeedsRemount,t._debugHookTypes=i._debugHookTypes,t}function hY(t,i,u,d,m){this.tag=i,this.containerInfo=t,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=Dw,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=nn,this.eventTimes=Ap(we),this.expirationTimes=Ap(An),this.pendingLanes=we,this.suspendedLanes=we,this.pingedLanes=we,this.expiredLanes=we,this.mutableReadLanes=we,this.finishedLanes=we,this.entangledLanes=we,this.entanglements=Ap(we),this.identifierPrefix=d,this.onRecoverableError=m,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var b=this.pendingUpdatersLaneMap=[],k=0;k<Fn;k++)b.push(new Set)}switch(i){case ob:this._debugRootType=u?"hydrateRoot()":"createRoot()";break;case oc:this._debugRootType=u?"hydrate()":"render()";break}}function MD(t,i,u,d,m,b,k,O,A,z){var V=new hY(t,i,u,O,A),X=sY(i,b);V.current=X,X.stateNode=V;{var G={element:d,isDehydrated:u,cache:null,transitions:null,pendingSuspenseBoundaries:null};X.memoizedState=G}return rC(X),V}var G2="18.2.0";function mY(t,i,u){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return Tn(d),{$$typeof:Ui,key:d==null?null:""+d,children:t,containerInfo:i,implementation:u}}var Q2,X2;Q2=!1,X2={};function LD(t){if(!t)return Wa;var i=ha(t),u=XV(i);if(i.tag===y){var d=i.type;if(Il(d))return a4(i,d,u)}return u}function vY(t,i){{var u=ha(t);if(u===void 0){if(typeof t.render=="function")throw new Error("Unable to find node on an unmounted component.");var d=Object.keys(t).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+d)}var m=ya(u);if(m===null)return null;if(m.mode&Kn){var b=Ft(u)||"Component";if(!X2[b]){X2[b]=!0;var k=hr;try{Cn(m),u.mode&Kn?f("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",i,i,b):f("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",i,i,b)}finally{k?Cn(k):Er()}}}return m.stateNode}}function PD(t,i,u,d,m,b,k,O){var A=!1,z=null;return MD(t,i,A,z,u,d,m,b,k)}function ND(t,i,u,d,m,b,k,O,A,z){var V=!0,X=MD(u,d,V,t,m,b,k,O,A);X.context=LD(null);var G=X.current,ue=Qi(),ce=gc(G),Se=Vs(ue,ce);return Se.callback=i??null,uc(G,Se,ce),wW(X,ce,ue),X}function D0(t,i,u,d){l1(i,t);var m=i.current,b=Qi(),k=gc(m);bs(k);var O=LD(u);i.context===null?i.context=O:i.pendingContext=O,fa&&hr!==null&&!Q2&&(Q2=!0,f(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
191
191
 
192
- Check the render method of %s.`,Ft(hr)||"Unknown"));var A=Vs(b,k);A.payload={element:t},d=d===void 0?null:d,d!==null&&(typeof d!="function"&&f("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",d),A.callback=d);var z=uc(m,A,k);return z!==null&&(Qr(z,m,k,b),bb(z,m,k)),k}function cS(t){var i=t.current;if(!i.child)return null;switch(i.child.tag){case x:return i.child.stateNode;default:return i.child.stateNode}}function vY(t){switch(t.tag){case E:{var i=t.stateNode;if(kr(i)){var u=Gx(i);_W(i,u)}break}case F:{Ys(function(){var m=_a(t,kt);if(m!==null){var b=Qi();Qr(m,t,kt,b)}});var d=kt;J2(t,d);break}}}function ND(t,i){var u=t.memoizedState;u!==null&&u.dehydrated!==null&&(u.retryLane=b1(u.retryLane,i))}function J2(t,i){ND(t,i);var u=t.alternate;u&&ND(u,i)}function gY(t){if(t.tag===F){var i=zu,u=_a(t,i);if(u!==null){var d=Qi();Qr(u,t,i,d)}J2(t,i)}}function yY(t){if(t.tag===F){var i=gc(t),u=_a(t,i);if(u!==null){var d=Qi();Qr(u,t,i,d)}J2(t,i)}}function FD(t){var i=i1(t);return i===null?null:i.stateNode}var ID=function(t){return null};function bY(t){return ID(t)}var zD=function(t){return!1};function SY(t){return zD(t)}var jD=null,$D=null,UD=null,BD=null,VD=null,HD=null,qD=null,WD=null,YD=null;{var ZD=function(t,i,u){var d=i[u],m=Ar(t)?t.slice():Xt({},t);return u+1===i.length?(Ar(m)?m.splice(d,1):delete m[d],m):(m[d]=ZD(t[d],i,u+1),m)},KD=function(t,i){return ZD(t,i,0)},GD=function(t,i,u,d){var m=i[d],b=Ar(t)?t.slice():Xt({},t);if(d+1===i.length){var k=u[d];b[k]=b[m],Ar(b)?b.splice(m,1):delete b[m]}else b[m]=GD(t[m],i,u,d+1);return b},QD=function(t,i,u){if(i.length!==u.length){c("copyWithRename() expects paths of the same length");return}else for(var d=0;d<u.length-1;d++)if(i[d]!==u[d]){c("copyWithRename() expects paths to be the same except for the deepest key");return}return GD(t,i,u,0)},XD=function(t,i,u,d){if(u>=i.length)return d;var m=i[u],b=Ar(t)?t.slice():Xt({},t);return b[m]=XD(t[m],i,u+1,d),b},JD=function(t,i,u){return XD(t,i,0,u)},ek=function(t,i){for(var u=t.memoizedState;u!==null&&i>0;)u=u.next,i--;return u};jD=function(t,i,u,d){var m=ek(t,i);if(m!==null){var b=JD(m.memoizedState,u,d);m.memoizedState=b,m.baseState=b,t.memoizedProps=Xt({},t.memoizedProps);var k=_a(t,kt);k!==null&&Qr(k,t,kt,An)}},$D=function(t,i,u){var d=ek(t,i);if(d!==null){var m=KD(d.memoizedState,u);d.memoizedState=m,d.baseState=m,t.memoizedProps=Xt({},t.memoizedProps);var b=_a(t,kt);b!==null&&Qr(b,t,kt,An)}},UD=function(t,i,u,d){var m=ek(t,i);if(m!==null){var b=QD(m.memoizedState,u,d);m.memoizedState=b,m.baseState=b,t.memoizedProps=Xt({},t.memoizedProps);var k=_a(t,kt);k!==null&&Qr(k,t,kt,An)}},BD=function(t,i,u){t.pendingProps=JD(t.memoizedProps,i,u),t.alternate&&(t.alternate.pendingProps=t.pendingProps);var d=_a(t,kt);d!==null&&Qr(d,t,kt,An)},VD=function(t,i){t.pendingProps=KD(t.memoizedProps,i),t.alternate&&(t.alternate.pendingProps=t.pendingProps);var u=_a(t,kt);u!==null&&Qr(u,t,kt,An)},HD=function(t,i,u){t.pendingProps=QD(t.memoizedProps,i,u),t.alternate&&(t.alternate.pendingProps=t.pendingProps);var d=_a(t,kt);d!==null&&Qr(d,t,kt,An)},qD=function(t){var i=_a(t,kt);i!==null&&Qr(i,t,kt,An)},WD=function(t){ID=t},YD=function(t){zD=t}}function EY(t){var i=ya(t);return i===null?null:i.stateNode}function xY(t){return null}function wY(){return hr}function CY(t){var i=t.findFiberByHostInstance,u=r.ReactCurrentDispatcher;return rv({bundleType:t.bundleType,version:t.version,rendererPackageName:t.rendererPackageName,rendererConfig:t.rendererConfig,overrideHookState:jD,overrideHookStateDeletePath:$D,overrideHookStateRenamePath:UD,overrideProps:BD,overridePropsDeletePath:VD,overridePropsRenamePath:HD,setErrorHandler:WD,setSuspenseHandler:YD,scheduleUpdate:qD,currentDispatcherRef:u,findHostInstanceByFiber:EY,findFiberByHostInstance:i||xY,findHostInstancesForRefresh:eY,scheduleRefresh:XW,scheduleRoot:JW,setRefreshHandler:QW,getCurrentFiber:wY,reconcilerVersion:G2})}var e6=typeof reportError=="function"?reportError:function(t){console.error(t)};function tk(t){this._internalRoot=t}fS.prototype.render=tk.prototype.render=function(t){var i=this._internalRoot;if(i===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?f("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):dS(arguments[1])?f("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]<"u"&&f("You passed a second argument to root.render(...) but it only accepts one argument.");var u=i.containerInfo;if(u.nodeType!==mr){var d=FD(i.current);d&&d.parentNode!==u&&f("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}D0(t,i,null,null)},fS.prototype.unmount=tk.prototype.unmount=function(){typeof arguments[0]=="function"&&f("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var t=this._internalRoot;if(t!==null){this._internalRoot=null;var i=t.containerInfo;dD()&&f("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Ys(function(){D0(null,t,null,null)}),JR(i)}};function kY(t,i){if(!dS(t))throw new Error("createRoot(...): Target container is not a DOM element.");t6(t);var u=!1,d=!1,m="",b=e6;i!=null&&(i.hydrate?c("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof i=="object"&&i!==null&&i.$$typeof===ul&&f(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
192
+ Check the render method of %s.`,Ft(hr)||"Unknown"));var A=Vs(b,k);A.payload={element:t},d=d===void 0?null:d,d!==null&&(typeof d!="function"&&f("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",d),A.callback=d);var z=uc(m,A,k);return z!==null&&(Qr(z,m,k,b),bb(z,m,k)),k}function cS(t){var i=t.current;if(!i.child)return null;switch(i.child.tag){case x:return i.child.stateNode;default:return i.child.stateNode}}function gY(t){switch(t.tag){case E:{var i=t.stateNode;if(kr(i)){var u=Gx(i);TW(i,u)}break}case F:{Ys(function(){var m=_a(t,kt);if(m!==null){var b=Qi();Qr(m,t,kt,b)}});var d=kt;J2(t,d);break}}}function FD(t,i){var u=t.memoizedState;u!==null&&u.dehydrated!==null&&(u.retryLane=b1(u.retryLane,i))}function J2(t,i){FD(t,i);var u=t.alternate;u&&FD(u,i)}function yY(t){if(t.tag===F){var i=zu,u=_a(t,i);if(u!==null){var d=Qi();Qr(u,t,i,d)}J2(t,i)}}function bY(t){if(t.tag===F){var i=gc(t),u=_a(t,i);if(u!==null){var d=Qi();Qr(u,t,i,d)}J2(t,i)}}function ID(t){var i=i1(t);return i===null?null:i.stateNode}var zD=function(t){return null};function SY(t){return zD(t)}var jD=function(t){return!1};function EY(t){return jD(t)}var $D=null,UD=null,BD=null,VD=null,HD=null,qD=null,WD=null,YD=null,ZD=null;{var KD=function(t,i,u){var d=i[u],m=Ar(t)?t.slice():Xt({},t);return u+1===i.length?(Ar(m)?m.splice(d,1):delete m[d],m):(m[d]=KD(t[d],i,u+1),m)},GD=function(t,i){return KD(t,i,0)},QD=function(t,i,u,d){var m=i[d],b=Ar(t)?t.slice():Xt({},t);if(d+1===i.length){var k=u[d];b[k]=b[m],Ar(b)?b.splice(m,1):delete b[m]}else b[m]=QD(t[m],i,u,d+1);return b},XD=function(t,i,u){if(i.length!==u.length){c("copyWithRename() expects paths of the same length");return}else for(var d=0;d<u.length-1;d++)if(i[d]!==u[d]){c("copyWithRename() expects paths to be the same except for the deepest key");return}return QD(t,i,u,0)},JD=function(t,i,u,d){if(u>=i.length)return d;var m=i[u],b=Ar(t)?t.slice():Xt({},t);return b[m]=JD(t[m],i,u+1,d),b},e6=function(t,i,u){return JD(t,i,0,u)},ek=function(t,i){for(var u=t.memoizedState;u!==null&&i>0;)u=u.next,i--;return u};$D=function(t,i,u,d){var m=ek(t,i);if(m!==null){var b=e6(m.memoizedState,u,d);m.memoizedState=b,m.baseState=b,t.memoizedProps=Xt({},t.memoizedProps);var k=_a(t,kt);k!==null&&Qr(k,t,kt,An)}},UD=function(t,i,u){var d=ek(t,i);if(d!==null){var m=GD(d.memoizedState,u);d.memoizedState=m,d.baseState=m,t.memoizedProps=Xt({},t.memoizedProps);var b=_a(t,kt);b!==null&&Qr(b,t,kt,An)}},BD=function(t,i,u,d){var m=ek(t,i);if(m!==null){var b=XD(m.memoizedState,u,d);m.memoizedState=b,m.baseState=b,t.memoizedProps=Xt({},t.memoizedProps);var k=_a(t,kt);k!==null&&Qr(k,t,kt,An)}},VD=function(t,i,u){t.pendingProps=e6(t.memoizedProps,i,u),t.alternate&&(t.alternate.pendingProps=t.pendingProps);var d=_a(t,kt);d!==null&&Qr(d,t,kt,An)},HD=function(t,i){t.pendingProps=GD(t.memoizedProps,i),t.alternate&&(t.alternate.pendingProps=t.pendingProps);var u=_a(t,kt);u!==null&&Qr(u,t,kt,An)},qD=function(t,i,u){t.pendingProps=XD(t.memoizedProps,i,u),t.alternate&&(t.alternate.pendingProps=t.pendingProps);var d=_a(t,kt);d!==null&&Qr(d,t,kt,An)},WD=function(t){var i=_a(t,kt);i!==null&&Qr(i,t,kt,An)},YD=function(t){zD=t},ZD=function(t){jD=t}}function xY(t){var i=ya(t);return i===null?null:i.stateNode}function wY(t){return null}function CY(){return hr}function kY(t){var i=t.findFiberByHostInstance,u=r.ReactCurrentDispatcher;return rv({bundleType:t.bundleType,version:t.version,rendererPackageName:t.rendererPackageName,rendererConfig:t.rendererConfig,overrideHookState:$D,overrideHookStateDeletePath:UD,overrideHookStateRenamePath:BD,overrideProps:VD,overridePropsDeletePath:HD,overridePropsRenamePath:qD,setErrorHandler:YD,setSuspenseHandler:ZD,scheduleUpdate:WD,currentDispatcherRef:u,findHostInstanceByFiber:xY,findFiberByHostInstance:i||wY,findHostInstancesForRefresh:tY,scheduleRefresh:JW,scheduleRoot:eY,setRefreshHandler:XW,getCurrentFiber:CY,reconcilerVersion:G2})}var t6=typeof reportError=="function"?reportError:function(t){console.error(t)};function tk(t){this._internalRoot=t}fS.prototype.render=tk.prototype.render=function(t){var i=this._internalRoot;if(i===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?f("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):dS(arguments[1])?f("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]<"u"&&f("You passed a second argument to root.render(...) but it only accepts one argument.");var u=i.containerInfo;if(u.nodeType!==mr){var d=ID(i.current);d&&d.parentNode!==u&&f("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}D0(t,i,null,null)},fS.prototype.unmount=tk.prototype.unmount=function(){typeof arguments[0]=="function"&&f("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var t=this._internalRoot;if(t!==null){this._internalRoot=null;var i=t.containerInfo;pD()&&f("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Ys(function(){D0(null,t,null,null)}),e4(i)}};function _Y(t,i){if(!dS(t))throw new Error("createRoot(...): Target container is not a DOM element.");n6(t);var u=!1,d=!1,m="",b=t6;i!=null&&(i.hydrate?c("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof i=="object"&&i!==null&&i.$$typeof===ul&&f(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
193
193
 
194
194
  let root = createRoot(domContainer);
195
- root.render(<App />);`),i.unstable_strictMode===!0&&(u=!0),i.identifierPrefix!==void 0&&(m=i.identifierPrefix),i.onRecoverableError!==void 0&&(b=i.onRecoverableError),i.transitionCallbacks!==void 0&&i.transitionCallbacks);var k=LD(t,ob,null,u,d,m,b);J1(k.current,t);var O=t.nodeType===mr?t.parentNode:t;return zv(O),new tk(k)}function fS(t){this._internalRoot=t}function _Y(t){t&&T1(t)}fS.prototype.unstable_scheduleHydration=_Y;function TY(t,i,u){if(!dS(t))throw new Error("hydrateRoot(...): Target container is not a DOM element.");t6(t),i===void 0&&f("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var d=u??null,m=u!=null&&u.hydratedSources||null,b=!1,k=!1,O="",A=e6;u!=null&&(u.unstable_strictMode===!0&&(b=!0),u.identifierPrefix!==void 0&&(O=u.identifierPrefix),u.onRecoverableError!==void 0&&(A=u.onRecoverableError));var z=PD(i,null,t,ob,d,b,k,O,A);if(J1(z.current,t),zv(t),m)for(var V=0;V<m.length;V++){var X=m[V];NH(z,X)}return new fS(z)}function dS(t){return!!(t&&(t.nodeType===Ci||t.nodeType===Ua||t.nodeType===cs||!ye))}function A0(t){return!!(t&&(t.nodeType===Ci||t.nodeType===Ua||t.nodeType===cs||t.nodeType===mr&&t.nodeValue===" react-mount-point-unstable "))}function t6(t){t.nodeType===Ci&&t.tagName&&t.tagName.toUpperCase()==="BODY"&&f("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),Kv(t)&&(t._reactRootContainer?f("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):f("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var RY=r.ReactCurrentOwner,n6;n6=function(t){if(t._reactRootContainer&&t.nodeType!==mr){var i=FD(t._reactRootContainer.current);i&&i.parentNode!==t&&f("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var u=!!t._reactRootContainer,d=nk(t),m=!!(d&&ic(d));m&&!u&&f("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),t.nodeType===Ci&&t.tagName&&t.tagName.toUpperCase()==="BODY"&&f("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function nk(t){return t?t.nodeType===Ua?t.documentElement:t.firstChild:null}function r6(){}function OY(t,i,u,d,m){if(m){if(typeof d=="function"){var b=d;d=function(){var G=cS(k);b.call(G)}}var k=PD(i,d,t,oc,null,!1,!1,"",r6);t._reactRootContainer=k,J1(k.current,t);var O=t.nodeType===mr?t.parentNode:t;return zv(O),Ys(),k}else{for(var A;A=t.lastChild;)t.removeChild(A);if(typeof d=="function"){var z=d;d=function(){var G=cS(V);z.call(G)}}var V=LD(t,oc,null,!1,!1,"",r6);t._reactRootContainer=V,J1(V.current,t);var X=t.nodeType===mr?t.parentNode:t;return zv(X),Ys(function(){D0(i,V,u,d)}),V}}function DY(t,i){t!==null&&typeof t!="function"&&f("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",i,t)}function pS(t,i,u,d,m){n6(u),DY(m===void 0?null:m,"render");var b=u._reactRootContainer,k;if(!b)k=OY(u,i,t,m,d);else{if(k=b,typeof m=="function"){var O=m;m=function(){var A=cS(k);O.call(A)}}D0(i,k,t,m)}return cS(k)}function AY(t){{var i=RY.current;if(i!==null&&i.stateNode!==null){var u=i.stateNode._warnedAboutRefsInRender;u||f("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",On(i.type)||"A component"),i.stateNode._warnedAboutRefsInRender=!0}}return t==null?null:t.nodeType===Ci?t:mY(t,"findDOMNode")}function MY(t,i,u){if(f("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!A0(i))throw new Error("Target container is not a DOM element.");{var d=Kv(i)&&i._reactRootContainer===void 0;d&&f("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return pS(null,t,i,!0,u)}function LY(t,i,u){if(f("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!A0(i))throw new Error("Target container is not a DOM element.");{var d=Kv(i)&&i._reactRootContainer===void 0;d&&f("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return pS(null,t,i,!1,u)}function PY(t,i,u,d){if(f("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!A0(u))throw new Error("Target container is not a DOM element.");if(t==null||!df(t))throw new Error("parentComponent must be a valid React Component");return pS(t,i,u,!1,d)}function NY(t){if(!A0(t))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var i=Kv(t)&&t._reactRootContainer===void 0;i&&f("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(t._reactRootContainer){{var u=nk(t),d=u&&!ic(u);d&&f("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Ys(function(){pS(null,null,t,!1,function(){t._reactRootContainer=null,JR(t)})}),!0}else{{var m=nk(t),b=!!(m&&ic(m)),k=t.nodeType===Ci&&A0(t.parentNode)&&!!t.parentNode._reactRootContainer;b&&f("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",k?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}at(vY),E1(gY),Tf(yY),Sv(Ea),w1(Cf),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&f("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),t1(zB),Xd(L2,TW,Ys);function FY(t,i){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!dS(i))throw new Error("Target container is not a DOM element.");return hY(t,i,null,u)}function IY(t,i,u,d){return PY(t,i,u,d)}var rk={usingClientEntryPoint:!1,Events:[ic,eh,eb,Qd,uf,L2]};function zY(t,i){return rk.usingClientEntryPoint||f('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),kY(t,i)}function jY(t,i,u){return rk.usingClientEntryPoint||f('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),TY(t,i,u)}function $Y(t){return dD()&&f("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Ys(t)}var UY=CY({findFiberByHostInstance:If,bundleType:1,version:G2,rendererPackageName:"react-dom"});if(!UY&&ze&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var i6=window.location.protocol;/^(https?|file):$/.test(i6)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(i6==="file:"?`
196
- You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}ta.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rk,ta.createPortal=FY,ta.createRoot=zY,ta.findDOMNode=AY,ta.flushSync=$Y,ta.hydrate=MY,ta.hydrateRoot=jY,ta.render=LY,ta.unmountComponentAtNode=NY,ta.unstable_batchedUpdates=L2,ta.unstable_renderSubtreeIntoContainer=IY,ta.version=G2,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),ta}function dk(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dk)}catch(e){console.error(e)}}}process.env.NODE_ENV==="production"?(dk(),vS.exports=f6()):vS.exports=d6();var P0=vS.exports;function p6(e,n){typeof e=="function"?e(n):e!=null&&(e.current=n)}function pk(...e){return n=>e.forEach(r=>p6(r,n))}function Ec(...e){return j.useCallback(pk(...e),e)}const bS=j.forwardRef((e,n)=>{const{children:r,...a}=e,s=j.Children.toArray(r),c=s.find(m6);if(c){const f=c.props.children,h=s.map(v=>v===c?j.Children.count(f)>1?j.Children.only(null):j.isValidElement(f)?f.props.children:null:v);return j.createElement(SS,Xn({},a,{ref:n}),j.isValidElement(f)?j.cloneElement(f,void 0,h):null)}return j.createElement(SS,Xn({},a,{ref:n}),r)});bS.displayName="Slot";const SS=j.forwardRef((e,n)=>{const{children:r,...a}=e;return j.isValidElement(r)?j.cloneElement(r,{...v6(a,r.props),ref:n?pk(n,r.ref):r.ref}):j.Children.count(r)>1?j.Children.only(null):null});SS.displayName="SlotClone";const h6=({children:e})=>j.createElement(j.Fragment,null,e);function m6(e){return j.isValidElement(e)&&e.type===h6}function v6(e,n){const r={...n};for(const a in n){const s=e[a],c=n[a];/^on[A-Z]/.test(a)?s&&c?r[a]=(...h)=>{c(...h),s(...h)}:s&&(r[a]=s):a==="style"?r[a]={...s,...c}:a==="className"&&(r[a]=[s,c].filter(Boolean).join(" "))}return{...e,...r}}const Ka=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,n)=>{const r=j.forwardRef((a,s)=>{const{asChild:c,...f}=a,h=c?bS:n;return j.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),j.createElement(h,Xn({},f,{ref:s}))});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{});function g6(e,n){e&&P0.flushSync(()=>e.dispatchEvent(n))}const hk="Avatar",[y6,YY]=mS(hk),[b6,mk]=y6(hk),S6=j.forwardRef((e,n)=>{const{__scopeAvatar:r,...a}=e,[s,c]=j.useState("idle");return j.createElement(b6,{scope:r,imageLoadingStatus:s,onImageLoadingStatusChange:c},j.createElement(Ka.span,Xn({},a,{ref:n})))}),E6="AvatarImage",x6=j.forwardRef((e,n)=>{const{__scopeAvatar:r,src:a,onLoadingStatusChange:s=()=>{},...c}=e,f=mk(E6,r),h=k6(a),v=Qs(y=>{s(y),f.onImageLoadingStatusChange(y)});return Rh(()=>{h!=="idle"&&v(h)},[h,v]),h==="loaded"?j.createElement(Ka.img,Xn({},c,{ref:n,src:a})):null}),w6="AvatarFallback",C6=j.forwardRef((e,n)=>{const{__scopeAvatar:r,delayMs:a,...s}=e,c=mk(w6,r),[f,h]=j.useState(a===void 0);return j.useEffect(()=>{if(a!==void 0){const v=window.setTimeout(()=>h(!0),a);return()=>window.clearTimeout(v)}},[a]),f&&c.imageLoadingStatus!=="loaded"?j.createElement(Ka.span,Xn({},s,{ref:n})):null});function k6(e){const[n,r]=j.useState("idle");return j.useEffect(()=>{if(!e){r("error");return}let a=!0;const s=new window.Image,c=f=>()=>{a&&r(f)};return r("loading"),s.onload=c("loaded"),s.onerror=c("error"),s.src=e,()=>{a=!1}},[e]),n}const vk=S6,gk=x6,yk=C6,N0=j.forwardRef((e,n)=>he.jsx(vk,{ref:n,...e}));N0.displayName=vk.displayName;const F0=j.forwardRef((e,n)=>he.jsx(gk,{ref:n,...e}));F0.displayName=gk.displayName;const I0=j.forwardRef((e,n)=>he.jsx(yk,{ref:n,...e}));I0.displayName=yk.displayName;const bk=["http","https","mailto","tel"];function _6(e){const n=(e||"").trim(),r=n.charAt(0);if(r==="#"||r==="/")return n;const a=n.indexOf(":");if(a===-1)return n;let s=-1;for(;++s<bk.length;){const c=bk[s];if(a===c.length&&n.slice(0,c.length).toLowerCase()===c)return n}return s=n.indexOf("?"),s!==-1&&a>s||(s=n.indexOf("#"),s!==-1&&a>s)?n:"javascript:void(0)"}/*!
195
+ root.render(<App />);`),i.unstable_strictMode===!0&&(u=!0),i.identifierPrefix!==void 0&&(m=i.identifierPrefix),i.onRecoverableError!==void 0&&(b=i.onRecoverableError),i.transitionCallbacks!==void 0&&i.transitionCallbacks);var k=PD(t,ob,null,u,d,m,b);J1(k.current,t);var O=t.nodeType===mr?t.parentNode:t;return zv(O),new tk(k)}function fS(t){this._internalRoot=t}function TY(t){t&&T1(t)}fS.prototype.unstable_scheduleHydration=TY;function RY(t,i,u){if(!dS(t))throw new Error("hydrateRoot(...): Target container is not a DOM element.");n6(t),i===void 0&&f("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var d=u??null,m=u!=null&&u.hydratedSources||null,b=!1,k=!1,O="",A=t6;u!=null&&(u.unstable_strictMode===!0&&(b=!0),u.identifierPrefix!==void 0&&(O=u.identifierPrefix),u.onRecoverableError!==void 0&&(A=u.onRecoverableError));var z=ND(i,null,t,ob,d,b,k,O,A);if(J1(z.current,t),zv(t),m)for(var V=0;V<m.length;V++){var X=m[V];FH(z,X)}return new fS(z)}function dS(t){return!!(t&&(t.nodeType===Ci||t.nodeType===Ua||t.nodeType===cs||!ye))}function A0(t){return!!(t&&(t.nodeType===Ci||t.nodeType===Ua||t.nodeType===cs||t.nodeType===mr&&t.nodeValue===" react-mount-point-unstable "))}function n6(t){t.nodeType===Ci&&t.tagName&&t.tagName.toUpperCase()==="BODY"&&f("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),Kv(t)&&(t._reactRootContainer?f("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):f("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var OY=r.ReactCurrentOwner,r6;r6=function(t){if(t._reactRootContainer&&t.nodeType!==mr){var i=ID(t._reactRootContainer.current);i&&i.parentNode!==t&&f("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var u=!!t._reactRootContainer,d=nk(t),m=!!(d&&ic(d));m&&!u&&f("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),t.nodeType===Ci&&t.tagName&&t.tagName.toUpperCase()==="BODY"&&f("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function nk(t){return t?t.nodeType===Ua?t.documentElement:t.firstChild:null}function i6(){}function DY(t,i,u,d,m){if(m){if(typeof d=="function"){var b=d;d=function(){var G=cS(k);b.call(G)}}var k=ND(i,d,t,oc,null,!1,!1,"",i6);t._reactRootContainer=k,J1(k.current,t);var O=t.nodeType===mr?t.parentNode:t;return zv(O),Ys(),k}else{for(var A;A=t.lastChild;)t.removeChild(A);if(typeof d=="function"){var z=d;d=function(){var G=cS(V);z.call(G)}}var V=PD(t,oc,null,!1,!1,"",i6);t._reactRootContainer=V,J1(V.current,t);var X=t.nodeType===mr?t.parentNode:t;return zv(X),Ys(function(){D0(i,V,u,d)}),V}}function AY(t,i){t!==null&&typeof t!="function"&&f("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",i,t)}function pS(t,i,u,d,m){r6(u),AY(m===void 0?null:m,"render");var b=u._reactRootContainer,k;if(!b)k=DY(u,i,t,m,d);else{if(k=b,typeof m=="function"){var O=m;m=function(){var A=cS(k);O.call(A)}}D0(i,k,t,m)}return cS(k)}function MY(t){{var i=OY.current;if(i!==null&&i.stateNode!==null){var u=i.stateNode._warnedAboutRefsInRender;u||f("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",On(i.type)||"A component"),i.stateNode._warnedAboutRefsInRender=!0}}return t==null?null:t.nodeType===Ci?t:vY(t,"findDOMNode")}function LY(t,i,u){if(f("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!A0(i))throw new Error("Target container is not a DOM element.");{var d=Kv(i)&&i._reactRootContainer===void 0;d&&f("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return pS(null,t,i,!0,u)}function PY(t,i,u){if(f("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!A0(i))throw new Error("Target container is not a DOM element.");{var d=Kv(i)&&i._reactRootContainer===void 0;d&&f("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return pS(null,t,i,!1,u)}function NY(t,i,u,d){if(f("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!A0(u))throw new Error("Target container is not a DOM element.");if(t==null||!df(t))throw new Error("parentComponent must be a valid React Component");return pS(t,i,u,!1,d)}function FY(t){if(!A0(t))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var i=Kv(t)&&t._reactRootContainer===void 0;i&&f("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(t._reactRootContainer){{var u=nk(t),d=u&&!ic(u);d&&f("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Ys(function(){pS(null,null,t,!1,function(){t._reactRootContainer=null,e4(t)})}),!0}else{{var m=nk(t),b=!!(m&&ic(m)),k=t.nodeType===Ci&&A0(t.parentNode)&&!!t.parentNode._reactRootContainer;b&&f("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",k?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}at(gY),E1(yY),Tf(bY),Sv(Ea),w1(Cf),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&f("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),t1(jB),Xd(L2,RW,Ys);function IY(t,i){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!dS(i))throw new Error("Target container is not a DOM element.");return mY(t,i,null,u)}function zY(t,i,u,d){return NY(t,i,u,d)}var rk={usingClientEntryPoint:!1,Events:[ic,eh,eb,Qd,uf,L2]};function jY(t,i){return rk.usingClientEntryPoint||f('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),_Y(t,i)}function $Y(t,i,u){return rk.usingClientEntryPoint||f('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),RY(t,i,u)}function UY(t){return pD()&&f("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Ys(t)}var BY=kY({findFiberByHostInstance:If,bundleType:1,version:G2,rendererPackageName:"react-dom"});if(!BY&&ze&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var a6=window.location.protocol;/^(https?|file):$/.test(a6)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(a6==="file:"?`
196
+ You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}ta.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rk,ta.createPortal=IY,ta.createRoot=jY,ta.findDOMNode=MY,ta.flushSync=UY,ta.hydrate=LY,ta.hydrateRoot=$Y,ta.render=PY,ta.unmountComponentAtNode=FY,ta.unstable_batchedUpdates=L2,ta.unstable_renderSubtreeIntoContainer=zY,ta.version=G2,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),ta}function dk(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dk)}catch(e){console.error(e)}}}process.env.NODE_ENV==="production"?(dk(),vS.exports=d6()):vS.exports=p6();var P0=vS.exports;function h6(e,n){typeof e=="function"?e(n):e!=null&&(e.current=n)}function pk(...e){return n=>e.forEach(r=>h6(r,n))}function Ec(...e){return j.useCallback(pk(...e),e)}const bS=j.forwardRef((e,n)=>{const{children:r,...a}=e,s=j.Children.toArray(r),c=s.find(v6);if(c){const f=c.props.children,h=s.map(v=>v===c?j.Children.count(f)>1?j.Children.only(null):j.isValidElement(f)?f.props.children:null:v);return j.createElement(SS,Xn({},a,{ref:n}),j.isValidElement(f)?j.cloneElement(f,void 0,h):null)}return j.createElement(SS,Xn({},a,{ref:n}),r)});bS.displayName="Slot";const SS=j.forwardRef((e,n)=>{const{children:r,...a}=e;return j.isValidElement(r)?j.cloneElement(r,{...g6(a,r.props),ref:n?pk(n,r.ref):r.ref}):j.Children.count(r)>1?j.Children.only(null):null});SS.displayName="SlotClone";const m6=({children:e})=>j.createElement(j.Fragment,null,e);function v6(e){return j.isValidElement(e)&&e.type===m6}function g6(e,n){const r={...n};for(const a in n){const s=e[a],c=n[a];/^on[A-Z]/.test(a)?s&&c?r[a]=(...h)=>{c(...h),s(...h)}:s&&(r[a]=s):a==="style"?r[a]={...s,...c}:a==="className"&&(r[a]=[s,c].filter(Boolean).join(" "))}return{...e,...r}}const Ka=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,n)=>{const r=j.forwardRef((a,s)=>{const{asChild:c,...f}=a,h=c?bS:n;return j.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),j.createElement(h,Xn({},f,{ref:s}))});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{});function y6(e,n){e&&P0.flushSync(()=>e.dispatchEvent(n))}const hk="Avatar",[b6,ZY]=mS(hk),[S6,mk]=b6(hk),E6=j.forwardRef((e,n)=>{const{__scopeAvatar:r,...a}=e,[s,c]=j.useState("idle");return j.createElement(S6,{scope:r,imageLoadingStatus:s,onImageLoadingStatusChange:c},j.createElement(Ka.span,Xn({},a,{ref:n})))}),x6="AvatarImage",w6=j.forwardRef((e,n)=>{const{__scopeAvatar:r,src:a,onLoadingStatusChange:s=()=>{},...c}=e,f=mk(x6,r),h=_6(a),v=Qs(y=>{s(y),f.onImageLoadingStatusChange(y)});return Rh(()=>{h!=="idle"&&v(h)},[h,v]),h==="loaded"?j.createElement(Ka.img,Xn({},c,{ref:n,src:a})):null}),C6="AvatarFallback",k6=j.forwardRef((e,n)=>{const{__scopeAvatar:r,delayMs:a,...s}=e,c=mk(C6,r),[f,h]=j.useState(a===void 0);return j.useEffect(()=>{if(a!==void 0){const v=window.setTimeout(()=>h(!0),a);return()=>window.clearTimeout(v)}},[a]),f&&c.imageLoadingStatus!=="loaded"?j.createElement(Ka.span,Xn({},s,{ref:n})):null});function _6(e){const[n,r]=j.useState("idle");return j.useEffect(()=>{if(!e){r("error");return}let a=!0;const s=new window.Image,c=f=>()=>{a&&r(f)};return r("loading"),s.onload=c("loaded"),s.onerror=c("error"),s.src=e,()=>{a=!1}},[e]),n}const vk=E6,gk=w6,yk=k6,N0=j.forwardRef((e,n)=>he.jsx(vk,{ref:n,...e}));N0.displayName=vk.displayName;const F0=j.forwardRef((e,n)=>he.jsx(gk,{ref:n,...e}));F0.displayName=gk.displayName;const I0=j.forwardRef((e,n)=>he.jsx(yk,{ref:n,...e}));I0.displayName=yk.displayName;const bk=["http","https","mailto","tel"];function T6(e){const n=(e||"").trim(),r=n.charAt(0);if(r==="#"||r==="/")return n;const a=n.indexOf(":");if(a===-1)return n;let s=-1;for(;++s<bk.length;){const c=bk[s];if(a===c.length&&n.slice(0,c.length).toLowerCase()===c)return n}return s=n.indexOf("?"),s!==-1&&a>s||(s=n.indexOf("#"),s!==-1&&a>s)?n:"javascript:void(0)"}/*!
197
197
  * Determine if an object is a Buffer
198
198
  *
199
199
  * @author Feross Aboukhadijeh <https://feross.org>
200
200
  * @license MIT
201
- */var T6=function(n){return n!=null&&n.constructor!=null&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)};const Sk=Jf(T6);function Oh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ek(e.position):"start"in e||"end"in e?Ek(e):"line"in e||"column"in e?ES(e):""}function ES(e){return xk(e&&e.line)+":"+xk(e&&e.column)}function Ek(e){return ES(e&&e.start)+"-"+ES(e&&e.end)}function xk(e){return e&&typeof e=="number"?e:1}class Ga extends Error{constructor(n,r,a){const s=[null,null];let c={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof r=="string"&&(a=r,r=void 0),typeof a=="string"){const f=a.indexOf(":");f===-1?s[1]=a:(s[0]=a.slice(0,f),s[1]=a.slice(f+1))}r&&("type"in r||"position"in r?r.position&&(c=r.position):"start"in r||"end"in r?c=r:("line"in r||"column"in r)&&(c.start=r)),this.name=Oh(r)||"1:1",this.message=typeof n=="object"?n.message:n,this.stack="",typeof n=="object"&&n.stack&&(this.stack=n.stack),this.reason=this.message,this.fatal,this.line=c.start.line,this.column=c.start.column,this.position=c,this.source=s[0],this.ruleId=s[1],this.file,this.actual,this.expected,this.url,this.note}}Ga.prototype.file="",Ga.prototype.name="",Ga.prototype.reason="",Ga.prototype.message="",Ga.prototype.stack="",Ga.prototype.fatal=null,Ga.prototype.column=null,Ga.prototype.line=null,Ga.prototype.source=null,Ga.prototype.ruleId=null,Ga.prototype.position=null;const el={basename:R6,dirname:O6,extname:D6,join:A6,sep:"/"};function R6(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Dh(e);let r=0,a=-1,s=e.length,c;if(n===void 0||n.length===0||n.length>e.length){for(;s--;)if(e.charCodeAt(s)===47){if(c){r=s+1;break}}else a<0&&(c=!0,a=s+1);return a<0?"":e.slice(r,a)}if(n===e)return"";let f=-1,h=n.length-1;for(;s--;)if(e.charCodeAt(s)===47){if(c){r=s+1;break}}else f<0&&(c=!0,f=s+1),h>-1&&(e.charCodeAt(s)===n.charCodeAt(h--)?h<0&&(a=s):(h=-1,a=f));return r===a?a=f:a<0&&(a=e.length),e.slice(r,a)}function O6(e){if(Dh(e),e.length===0)return".";let n=-1,r=e.length,a;for(;--r;)if(e.charCodeAt(r)===47){if(a){n=r;break}}else a||(a=!0);return n<0?e.charCodeAt(0)===47?"/":".":n===1&&e.charCodeAt(0)===47?"//":e.slice(0,n)}function D6(e){Dh(e);let n=e.length,r=-1,a=0,s=-1,c=0,f;for(;n--;){const h=e.charCodeAt(n);if(h===47){if(f){a=n+1;break}continue}r<0&&(f=!0,r=n+1),h===46?s<0?s=n:c!==1&&(c=1):s>-1&&(c=-1)}return s<0||r<0||c===0||c===1&&s===r-1&&s===a+1?"":e.slice(s,r)}function A6(...e){let n=-1,r;for(;++n<e.length;)Dh(e[n]),e[n]&&(r=r===void 0?e[n]:r+"/"+e[n]);return r===void 0?".":M6(r)}function M6(e){Dh(e);const n=e.charCodeAt(0)===47;let r=L6(e,!n);return r.length===0&&!n&&(r="."),r.length>0&&e.charCodeAt(e.length-1)===47&&(r+="/"),n?"/"+r:r}function L6(e,n){let r="",a=0,s=-1,c=0,f=-1,h,v;for(;++f<=e.length;){if(f<e.length)h=e.charCodeAt(f);else{if(h===47)break;h=47}if(h===47){if(!(s===f-1||c===1))if(s!==f-1&&c===2){if(r.length<2||a!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){if(v=r.lastIndexOf("/"),v!==r.length-1){v<0?(r="",a=0):(r=r.slice(0,v),a=r.length-1-r.lastIndexOf("/")),s=f,c=0;continue}}else if(r.length>0){r="",a=0,s=f,c=0;continue}}n&&(r=r.length>0?r+"/..":"..",a=2)}else r.length>0?r+="/"+e.slice(s+1,f):r=e.slice(s+1,f),a=f-s-1;s=f,c=0}else h===46&&c>-1?c++:c=-1}return r}function Dh(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const P6={cwd:N6};function N6(){return"/"}function xS(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function F6(e){if(typeof e=="string")e=new URL(e);else if(!xS(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return I6(e)}function I6(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const n=e.pathname;let r=-1;for(;++r<n.length;)if(n.charCodeAt(r)===37&&n.charCodeAt(r+1)===50){const a=n.charCodeAt(r+2);if(a===70||a===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(n)}const wS=["history","path","basename","stem","extname","dirname"];class wk{constructor(n){let r;n?typeof n=="string"||z6(n)?r={value:n}:xS(n)?r={path:n}:r=n:r={},this.data={},this.messages=[],this.history=[],this.cwd=P6.cwd(),this.value,this.stored,this.result,this.map;let a=-1;for(;++a<wS.length;){const c=wS[a];c in r&&r[c]!==void 0&&r[c]!==null&&(this[c]=c==="history"?[...r[c]]:r[c])}let s;for(s in r)wS.includes(s)||(this[s]=r[s])}get path(){return this.history[this.history.length-1]}set path(n){xS(n)&&(n=F6(n)),kS(n,"path"),this.path!==n&&this.history.push(n)}get dirname(){return typeof this.path=="string"?el.dirname(this.path):void 0}set dirname(n){Ck(this.basename,"dirname"),this.path=el.join(n||"",this.basename)}get basename(){return typeof this.path=="string"?el.basename(this.path):void 0}set basename(n){kS(n,"basename"),CS(n,"basename"),this.path=el.join(this.dirname||"",n)}get extname(){return typeof this.path=="string"?el.extname(this.path):void 0}set extname(n){if(CS(n,"extname"),Ck(this.dirname,"extname"),n){if(n.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=el.join(this.dirname,this.stem+(n||""))}get stem(){return typeof this.path=="string"?el.basename(this.path,this.extname):void 0}set stem(n){kS(n,"stem"),CS(n,"stem"),this.path=el.join(this.dirname||"",n+(this.extname||""))}toString(n){return(this.value||"").toString(n||void 0)}message(n,r,a){const s=new Ga(n,r,a);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}info(n,r,a){const s=this.message(n,r,a);return s.fatal=null,s}fail(n,r,a){const s=this.message(n,r,a);throw s.fatal=!0,s}}function CS(e,n){if(e&&e.includes(el.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+el.sep+"`")}function kS(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function Ck(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function z6(e){return Sk(e)}function kk(e){if(e)throw e}var z0=Object.prototype.hasOwnProperty,_k=Object.prototype.toString,Tk=Object.defineProperty,Rk=Object.getOwnPropertyDescriptor,Ok=function(n){return typeof Array.isArray=="function"?Array.isArray(n):_k.call(n)==="[object Array]"},Dk=function(n){if(!n||_k.call(n)!=="[object Object]")return!1;var r=z0.call(n,"constructor"),a=n.constructor&&n.constructor.prototype&&z0.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!r&&!a)return!1;var s;for(s in n);return typeof s>"u"||z0.call(n,s)},Ak=function(n,r){Tk&&r.name==="__proto__"?Tk(n,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):n[r.name]=r.newValue},Mk=function(n,r){if(r==="__proto__")if(z0.call(n,r)){if(Rk)return Rk(n,r).value}else return;return n[r]},j6=function e(){var n,r,a,s,c,f,h=arguments[0],v=1,y=arguments.length,S=!1;for(typeof h=="boolean"&&(S=h,h=arguments[1]||{},v=2),(h==null||typeof h!="object"&&typeof h!="function")&&(h={});v<y;++v)if(n=arguments[v],n!=null)for(r in n)a=Mk(h,r),s=Mk(n,r),h!==s&&(S&&s&&(Dk(s)||(c=Ok(s)))?(c?(c=!1,f=a&&Ok(a)?a:[]):f=a&&Dk(a)?a:{},Ak(h,{name:r,newValue:e(S,f,s)})):typeof s<"u"&&Ak(h,{name:r,newValue:s}));return h};const Lk=Jf(j6);function _S(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function $6(){const e=[],n={run:r,use:a};return n;function r(...s){let c=-1;const f=s.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);h(null,...s);function h(v,...y){const S=e[++c];let E=-1;if(v){f(v);return}for(;++E<s.length;)(y[E]===null||y[E]===void 0)&&(y[E]=s[E]);s=y,S?U6(S,h)(...y):f(null,...y)}}function a(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),n}}function U6(e,n){let r;return a;function a(...f){const h=e.length>f.length;let v;h&&f.push(s);try{v=e.apply(this,f)}catch(y){const S=y;if(h&&r)throw S;return s(S)}h||(v instanceof Promise?v.then(c,s):v instanceof Error?s(v):c(v))}function s(f,...h){r||(r=!0,n(f,...h))}function c(f){s(null,f)}}const B6=Nk().freeze(),Pk={}.hasOwnProperty;function Nk(){const e=$6(),n=[];let r={},a,s=-1;return c.data=f,c.Parser=void 0,c.Compiler=void 0,c.freeze=h,c.attachers=n,c.use=v,c.parse=y,c.stringify=S,c.run=E,c.runSync=C,c.process=x,c.processSync=R,c;function c(){const T=Nk();let D=-1;for(;++D<n.length;)T.use(...n[D]);return T.data(Lk(!0,{},r)),T}function f(T,D){return typeof T=="string"?arguments.length===2?(OS("data",a),r[T]=D,c):Pk.call(r,T)&&r[T]||null:T?(OS("data",a),r=T,c):r}function h(){if(a)return c;for(;++s<n.length;){const[T,...D]=n[s];if(D[0]===!1)continue;D[0]===!0&&(D[0]=void 0);const M=T.call(c,...D);typeof M=="function"&&e.use(M)}return a=!0,s=Number.POSITIVE_INFINITY,c}function v(T,...D){let M;if(OS("use",a),T!=null)if(typeof T=="function")F(T,...D);else if(typeof T=="object")Array.isArray(T)?B(T):N(T);else throw new TypeError("Expected usable value, not `"+T+"`");return M&&(r.settings=Object.assign(r.settings||{},M)),c;function I($){if(typeof $=="function")F($);else if(typeof $=="object")if(Array.isArray($)){const[H,...Y]=$;F(H,...Y)}else N($);else throw new TypeError("Expected usable value, not `"+$+"`")}function N($){B($.plugins),$.settings&&(M=Object.assign(M||{},$.settings))}function B($){let H=-1;if($!=null)if(Array.isArray($))for(;++H<$.length;){const Y=$[H];I(Y)}else throw new TypeError("Expected a list of plugins, not `"+$+"`")}function F($,H){let Y=-1,ne;for(;++Y<n.length;)if(n[Y][0]===$){ne=n[Y];break}ne?(_S(ne[1])&&_S(H)&&(H=Lk(!0,ne[1],H)),ne[1]=H):n.push([...arguments])}}function y(T){c.freeze();const D=Ah(T),M=c.Parser;return TS("parse",M),Fk(M,"parse")?new M(String(D),D).parse():M(String(D),D)}function S(T,D){c.freeze();const M=Ah(D),I=c.Compiler;return RS("stringify",I),Ik(T),Fk(I,"compile")?new I(T,M).compile():I(T,M)}function E(T,D,M){if(Ik(T),c.freeze(),!M&&typeof D=="function"&&(M=D,D=void 0),!M)return new Promise(I);I(null,M);function I(N,B){e.run(T,Ah(D),F);function F($,H,Y){H=H||T,$?B($):N?N(H):M(null,H,Y)}}}function C(T,D){let M,I;return c.run(T,D,N),zk("runSync","run",I),M;function N(B,F){kk(B),M=F,I=!0}}function x(T,D){if(c.freeze(),TS("process",c.Parser),RS("process",c.Compiler),!D)return new Promise(M);M(null,D);function M(I,N){const B=Ah(T);c.run(c.parse(B),B,($,H,Y)=>{if($||!H||!Y)F($);else{const ne=c.stringify(H,Y);ne==null||(q6(ne)?Y.value=ne:Y.result=ne),F($,Y)}});function F($,H){$||!H?N($):I?I(H):D(null,H)}}}function R(T){let D;c.freeze(),TS("processSync",c.Parser),RS("processSync",c.Compiler);const M=Ah(T);return c.process(M,I),zk("processSync","process",D),M;function I(N){D=!0,kk(N)}}}function Fk(e,n){return typeof e=="function"&&e.prototype&&(V6(e.prototype)||n in e.prototype)}function V6(e){let n;for(n in e)if(Pk.call(e,n))return!0;return!1}function TS(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function RS(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function OS(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ik(e){if(!_S(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function zk(e,n,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Ah(e){return H6(e)?e:new wk(e)}function H6(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function q6(e){return typeof e=="string"||Sk(e)}const W6={};function Y6(e,n){const r=n||W6,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return jk(e,a,s)}function jk(e,n,r){if(Z6(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return $k(e.children,n,r)}return Array.isArray(e)?$k(e,n,r):""}function $k(e,n,r){const a=[];let s=-1;for(;++s<e.length;)a[s]=jk(e[s],n,r);return a.join("")}function Z6(e){return!!(e&&typeof e=="object")}function tl(e,n,r,a){const s=e.length;let c=0,f;if(n<0?n=-n>s?0:s+n:n=n>s?s:n,r=r>0?r:0,a.length<1e4)f=Array.from(a),f.unshift(n,r),e.splice(...f);else for(r&&e.splice(n,r);c<a.length;)f=a.slice(c,c+1e4),f.unshift(n,0),e.splice(...f),c+=1e4,n+=1e4}function Qa(e,n){return e.length>0?(tl(e,e.length,0,n),e):n}const Uk={}.hasOwnProperty;function K6(e){const n={};let r=-1;for(;++r<e.length;)G6(n,e[r]);return n}function G6(e,n){let r;for(r in n){const s=(Uk.call(e,r)?e[r]:void 0)||(e[r]={}),c=n[r];let f;if(c)for(f in c){Uk.call(s,f)||(s[f]=[]);const h=c[f];Q6(s[f],Array.isArray(h)?h:h?[h]:[])}}}function Q6(e,n){let r=-1;const a=[];for(;++r<n.length;)(n[r].add==="after"?e:a).push(n[r]);tl(e,0,0,a)}const X6=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,nl=Xs(/[A-Za-z]/),Da=Xs(/[\dA-Za-z]/),J6=Xs(/[#-'*+\--9=?A-Z^-~]/);function DS(e){return e!==null&&(e<32||e===127)}const AS=Xs(/\d/),eA=Xs(/[\dA-Fa-f]/),tA=Xs(/[!-/:-@[-`{-~]/);function Pt(e){return e!==null&&e<-2}function na(e){return e!==null&&(e<0||e===32)}function gn(e){return e===-2||e===-1||e===32}const nA=Xs(X6),rA=Xs(/\s/);function Xs(e){return n;function n(r){return r!==null&&e.test(String.fromCharCode(r))}}function jn(e,n,r,a){const s=a?a-1:Number.POSITIVE_INFINITY;let c=0;return f;function f(v){return gn(v)?(e.enter(r),h(v)):n(v)}function h(v){return gn(v)&&c++<s?(e.consume(v),h):(e.exit(r),n(v))}}const iA={tokenize:aA};function aA(e){const n=e.attempt(this.parser.constructs.contentInitial,a,s);let r;return n;function a(h){if(h===null){e.consume(h);return}return e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),jn(e,n,"linePrefix")}function s(h){return e.enter("paragraph"),c(h)}function c(h){const v=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=v),r=v,f(h)}function f(h){if(h===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(h);return}return Pt(h)?(e.consume(h),e.exit("chunkText"),c):(e.consume(h),f)}}const oA={tokenize:lA},Bk={tokenize:sA};function lA(e){const n=this,r=[];let a=0,s,c,f;return h;function h(N){if(a<r.length){const B=r[a];return n.containerState=B[1],e.attempt(B[0].continuation,v,y)(N)}return y(N)}function v(N){if(a++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,s&&I();const B=n.events.length;let F=B,$;for(;F--;)if(n.events[F][0]==="exit"&&n.events[F][1].type==="chunkFlow"){$=n.events[F][1].end;break}M(a);let H=B;for(;H<n.events.length;)n.events[H][1].end=Object.assign({},$),H++;return tl(n.events,F+1,0,n.events.slice(B)),n.events.length=H,y(N)}return h(N)}function y(N){if(a===r.length){if(!s)return C(N);if(s.currentConstruct&&s.currentConstruct.concrete)return R(N);n.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Bk,S,E)(N)}function S(N){return s&&I(),M(a),C(N)}function E(N){return n.parser.lazy[n.now().line]=a!==r.length,f=n.now().offset,R(N)}function C(N){return n.containerState={},e.attempt(Bk,x,R)(N)}function x(N){return a++,r.push([n.currentConstruct,n.containerState]),C(N)}function R(N){if(N===null){s&&I(),M(0),e.consume(N);return}return s=s||n.parser.flow(n.now()),e.enter("chunkFlow",{contentType:"flow",previous:c,_tokenizer:s}),T(N)}function T(N){if(N===null){D(e.exit("chunkFlow"),!0),M(0),e.consume(N);return}return Pt(N)?(e.consume(N),D(e.exit("chunkFlow")),a=0,n.interrupt=void 0,h):(e.consume(N),T)}function D(N,B){const F=n.sliceStream(N);if(B&&F.push(null),N.previous=c,c&&(c.next=N),c=N,s.defineSkip(N.start),s.write(F),n.parser.lazy[N.start.line]){let $=s.events.length;for(;$--;)if(s.events[$][1].start.offset<f&&(!s.events[$][1].end||s.events[$][1].end.offset>f))return;const H=n.events.length;let Y=H,ne,ve;for(;Y--;)if(n.events[Y][0]==="exit"&&n.events[Y][1].type==="chunkFlow"){if(ne){ve=n.events[Y][1].end;break}ne=!0}for(M(a),$=H;$<n.events.length;)n.events[$][1].end=Object.assign({},ve),$++;tl(n.events,Y+1,0,n.events.slice(H)),n.events.length=$}}function M(N){let B=r.length;for(;B-- >N;){const F=r[B];n.containerState=F[1],F[0].exit.call(n,e)}r.length=N}function I(){s.write([null]),c=void 0,s=void 0,n.containerState._closeFlow=void 0}}function sA(e,n,r){return jn(e,e.attempt(this.parser.constructs.document,n,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Vk(e){if(e===null||na(e)||rA(e))return 1;if(nA(e))return 2}function MS(e,n,r){const a=[];let s=-1;for(;++s<e.length;){const c=e[s].resolveAll;c&&!a.includes(c)&&(n=c(n,r),a.push(c))}return n}const LS={name:"attention",tokenize:cA,resolveAll:uA};function uA(e,n){let r=-1,a,s,c,f,h,v,y,S;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(a=r;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&n.sliceSerialize(e[a][1]).charCodeAt(0)===n.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[a][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;v=e[a][1].end.offset-e[a][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const E=Object.assign({},e[a][1].end),C=Object.assign({},e[r][1].start);Hk(E,-v),Hk(C,v),f={type:v>1?"strongSequence":"emphasisSequence",start:E,end:Object.assign({},e[a][1].end)},h={type:v>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:C},c={type:v>1?"strongText":"emphasisText",start:Object.assign({},e[a][1].end),end:Object.assign({},e[r][1].start)},s={type:v>1?"strong":"emphasis",start:Object.assign({},f.start),end:Object.assign({},h.end)},e[a][1].end=Object.assign({},f.start),e[r][1].start=Object.assign({},h.end),y=[],e[a][1].end.offset-e[a][1].start.offset&&(y=Qa(y,[["enter",e[a][1],n],["exit",e[a][1],n]])),y=Qa(y,[["enter",s,n],["enter",f,n],["exit",f,n],["enter",c,n]]),y=Qa(y,MS(n.parser.constructs.insideSpan.null,e.slice(a+1,r),n)),y=Qa(y,[["exit",c,n],["enter",h,n],["exit",h,n],["exit",s,n]]),e[r][1].end.offset-e[r][1].start.offset?(S=2,y=Qa(y,[["enter",e[r][1],n],["exit",e[r][1],n]])):S=0,tl(e,a-1,r-a+3,y),r=a+y.length-S-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function cA(e,n){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,s=Vk(a);let c;return f;function f(v){return c=v,e.enter("attentionSequence"),h(v)}function h(v){if(v===c)return e.consume(v),h;const y=e.exit("attentionSequence"),S=Vk(v),E=!S||S===2&&s||r.includes(v),C=!s||s===2&&S||r.includes(a);return y._open=!!(c===42?E:E&&(s||!C)),y._close=!!(c===42?C:C&&(S||!E)),n(v)}}function Hk(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const fA={name:"autolink",tokenize:dA};function dA(e,n,r){let a=0;return s;function s(x){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),c}function c(x){return nl(x)?(e.consume(x),f):y(x)}function f(x){return x===43||x===45||x===46||Da(x)?(a=1,h(x)):y(x)}function h(x){return x===58?(e.consume(x),a=0,v):(x===43||x===45||x===46||Da(x))&&a++<32?(e.consume(x),h):(a=0,y(x))}function v(x){return x===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),n):x===null||x===32||x===60||DS(x)?r(x):(e.consume(x),v)}function y(x){return x===64?(e.consume(x),S):J6(x)?(e.consume(x),y):r(x)}function S(x){return Da(x)?E(x):r(x)}function E(x){return x===46?(e.consume(x),a=0,S):x===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),n):C(x)}function C(x){if((x===45||Da(x))&&a++<63){const R=x===45?C:E;return e.consume(x),R}return r(x)}}const j0={tokenize:pA,partial:!0};function pA(e,n,r){return a;function a(c){return gn(c)?jn(e,s,"linePrefix")(c):s(c)}function s(c){return c===null||Pt(c)?n(c):r(c)}}const qk={name:"blockQuote",tokenize:hA,continuation:{tokenize:mA},exit:vA};function hA(e,n,r){const a=this;return s;function s(f){if(f===62){const h=a.containerState;return h.open||(e.enter("blockQuote",{_container:!0}),h.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(f),e.exit("blockQuoteMarker"),c}return r(f)}function c(f){return gn(f)?(e.enter("blockQuotePrefixWhitespace"),e.consume(f),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(f))}}function mA(e,n,r){const a=this;return s;function s(f){return gn(f)?jn(e,c,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):c(f)}function c(f){return e.attempt(qk,n,r)(f)}}function vA(e){e.exit("blockQuote")}const Wk={name:"characterEscape",tokenize:gA};function gA(e,n,r){return a;function a(c){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(c),e.exit("escapeMarker"),s}function s(c){return tA(c)?(e.enter("characterEscapeValue"),e.consume(c),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):r(c)}}const Yk=document.createElement("i");function PS(e){const n="&"+e+";";Yk.innerHTML=n;const r=Yk.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===n?!1:r}const Zk={name:"characterReference",tokenize:yA};function yA(e,n,r){const a=this;let s=0,c,f;return h;function h(E){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(E),e.exit("characterReferenceMarker"),v}function v(E){return E===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(E),e.exit("characterReferenceMarkerNumeric"),y):(e.enter("characterReferenceValue"),c=31,f=Da,S(E))}function y(E){return E===88||E===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(E),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),c=6,f=eA,S):(e.enter("characterReferenceValue"),c=7,f=AS,S(E))}function S(E){if(E===59&&s){const C=e.exit("characterReferenceValue");return f===Da&&!PS(a.sliceSerialize(C))?r(E):(e.enter("characterReferenceMarker"),e.consume(E),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return f(E)&&s++<c?(e.consume(E),S):r(E)}}const Kk={tokenize:SA,partial:!0},Gk={name:"codeFenced",tokenize:bA,concrete:!0};function bA(e,n,r){const a=this,s={tokenize:F,partial:!0};let c=0,f=0,h;return v;function v($){return y($)}function y($){const H=a.events[a.events.length-1];return c=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,h=$,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),S($)}function S($){return $===h?(f++,e.consume($),S):f<3?r($):(e.exit("codeFencedFenceSequence"),gn($)?jn(e,E,"whitespace")($):E($))}function E($){return $===null||Pt($)?(e.exit("codeFencedFence"),a.interrupt?n($):e.check(Kk,T,B)($)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),C($))}function C($){return $===null||Pt($)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),E($)):gn($)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),jn(e,x,"whitespace")($)):$===96&&$===h?r($):(e.consume($),C)}function x($){return $===null||Pt($)?E($):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),R($))}function R($){return $===null||Pt($)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),E($)):$===96&&$===h?r($):(e.consume($),R)}function T($){return e.attempt(s,B,D)($)}function D($){return e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),M}function M($){return c>0&&gn($)?jn(e,I,"linePrefix",c+1)($):I($)}function I($){return $===null||Pt($)?e.check(Kk,T,B)($):(e.enter("codeFlowValue"),N($))}function N($){return $===null||Pt($)?(e.exit("codeFlowValue"),I($)):(e.consume($),N)}function B($){return e.exit("codeFenced"),n($)}function F($,H,Y){let ne=0;return ve;function ve(ke){return $.enter("lineEnding"),$.consume(ke),$.exit("lineEnding"),ee}function ee(ke){return $.enter("codeFencedFence"),gn(ke)?jn($,oe,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ke):oe(ke)}function oe(ke){return ke===h?($.enter("codeFencedFenceSequence"),J(ke)):Y(ke)}function J(ke){return ke===h?(ne++,$.consume(ke),J):ne>=f?($.exit("codeFencedFenceSequence"),gn(ke)?jn($,pe,"whitespace")(ke):pe(ke)):Y(ke)}function pe(ke){return ke===null||Pt(ke)?($.exit("codeFencedFence"),H(ke)):Y(ke)}}}function SA(e,n,r){const a=this;return s;function s(f){return f===null?r(f):(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c)}function c(f){return a.parser.lazy[a.now().line]?r(f):n(f)}}const NS={name:"codeIndented",tokenize:xA},EA={tokenize:wA,partial:!0};function xA(e,n,r){const a=this;return s;function s(y){return e.enter("codeIndented"),jn(e,c,"linePrefix",4+1)(y)}function c(y){const S=a.events[a.events.length-1];return S&&S[1].type==="linePrefix"&&S[2].sliceSerialize(S[1],!0).length>=4?f(y):r(y)}function f(y){return y===null?v(y):Pt(y)?e.attempt(EA,f,v)(y):(e.enter("codeFlowValue"),h(y))}function h(y){return y===null||Pt(y)?(e.exit("codeFlowValue"),f(y)):(e.consume(y),h)}function v(y){return e.exit("codeIndented"),n(y)}}function wA(e,n,r){const a=this;return s;function s(f){return a.parser.lazy[a.now().line]?r(f):Pt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):jn(e,c,"linePrefix",4+1)(f)}function c(f){const h=a.events[a.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?n(f):Pt(f)?s(f):r(f)}}const CA={name:"codeText",tokenize:TA,resolve:kA,previous:_A};function kA(e){let n=e.length-4,r=3,a,s;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(a=r;++a<n;)if(e[a][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[n][1].type="codeTextPadding",r+=2,n-=2;break}}for(a=r-1,n++;++a<=n;)s===void 0?a!==n&&e[a][1].type!=="lineEnding"&&(s=a):(a===n||e[a][1].type==="lineEnding")&&(e[s][1].type="codeTextData",a!==s+2&&(e[s][1].end=e[a-1][1].end,e.splice(s+2,a-s-2),n-=a-s-2,a=s+2),s=void 0);return e}function _A(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function TA(e,n,r){let a=0,s,c;return f;function f(E){return e.enter("codeText"),e.enter("codeTextSequence"),h(E)}function h(E){return E===96?(e.consume(E),a++,h):(e.exit("codeTextSequence"),v(E))}function v(E){return E===null?r(E):E===32?(e.enter("space"),e.consume(E),e.exit("space"),v):E===96?(c=e.enter("codeTextSequence"),s=0,S(E)):Pt(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),v):(e.enter("codeTextData"),y(E))}function y(E){return E===null||E===32||E===96||Pt(E)?(e.exit("codeTextData"),v(E)):(e.consume(E),y)}function S(E){return E===96?(e.consume(E),s++,S):s===a?(e.exit("codeTextSequence"),e.exit("codeText"),n(E)):(c.type="codeTextData",y(E))}}function Qk(e){const n={};let r=-1,a,s,c,f,h,v,y;for(;++r<e.length;){for(;r in n;)r=n[r];if(a=e[r],r&&a[1].type==="chunkFlow"&&e[r-1][1].type==="listItemPrefix"&&(v=a[1]._tokenizer.events,c=0,c<v.length&&v[c][1].type==="lineEndingBlank"&&(c+=2),c<v.length&&v[c][1].type==="content"))for(;++c<v.length&&v[c][1].type!=="content";)v[c][1].type==="chunkText"&&(v[c][1]._isInFirstContentOfListItem=!0,c++);if(a[0]==="enter")a[1].contentType&&(Object.assign(n,RA(e,r)),r=n[r],y=!0);else if(a[1]._container){for(c=r,s=void 0;c--&&(f=e[c],f[1].type==="lineEnding"||f[1].type==="lineEndingBlank");)f[0]==="enter"&&(s&&(e[s][1].type="lineEndingBlank"),f[1].type="lineEnding",s=c);s&&(a[1].end=Object.assign({},e[s][1].start),h=e.slice(s,r),h.unshift(a),tl(e,s,r-s+1,h))}}return!y}function RA(e,n){const r=e[n][1],a=e[n][2];let s=n-1;const c=[],f=r._tokenizer||a.parser[r.contentType](r.start),h=f.events,v=[],y={};let S,E,C=-1,x=r,R=0,T=0;const D=[T];for(;x;){for(;e[++s][1]!==x;);c.push(s),x._tokenizer||(S=a.sliceStream(x),x.next||S.push(null),E&&f.defineSkip(x.start),x._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(S),x._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),E=x,x=x.next}for(x=r;++C<h.length;)h[C][0]==="exit"&&h[C-1][0]==="enter"&&h[C][1].type===h[C-1][1].type&&h[C][1].start.line!==h[C][1].end.line&&(T=C+1,D.push(T),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(f.events=[],x?(x._tokenizer=void 0,x.previous=void 0):D.pop(),C=D.length;C--;){const M=h.slice(D[C],D[C+1]),I=c.pop();v.unshift([I,I+M.length-1]),tl(e,I,2,M)}for(C=-1;++C<v.length;)y[R+v[C][0]]=R+v[C][1],R+=v[C][1]-v[C][0]-1;return y}const OA={tokenize:MA,resolve:AA},DA={tokenize:LA,partial:!0};function AA(e){return Qk(e),e}function MA(e,n){let r;return a;function a(h){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),s(h)}function s(h){return h===null?c(h):Pt(h)?e.check(DA,f,c)(h):(e.consume(h),s)}function c(h){return e.exit("chunkContent"),e.exit("content"),n(h)}function f(h){return e.consume(h),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function LA(e,n,r){const a=this;return s;function s(f){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),jn(e,c,"linePrefix")}function c(f){if(f===null||Pt(f))return r(f);const h=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?n(f):e.interrupt(a.parser.constructs.flow,r,n)(f)}}function Xk(e,n,r,a,s,c,f,h,v){const y=v||Number.POSITIVE_INFINITY;let S=0;return E;function E(M){return M===60?(e.enter(a),e.enter(s),e.enter(c),e.consume(M),e.exit(c),C):M===null||M===32||M===41||DS(M)?r(M):(e.enter(a),e.enter(f),e.enter(h),e.enter("chunkString",{contentType:"string"}),T(M))}function C(M){return M===62?(e.enter(c),e.consume(M),e.exit(c),e.exit(s),e.exit(a),n):(e.enter(h),e.enter("chunkString",{contentType:"string"}),x(M))}function x(M){return M===62?(e.exit("chunkString"),e.exit(h),C(M)):M===null||M===60||Pt(M)?r(M):(e.consume(M),M===92?R:x)}function R(M){return M===60||M===62||M===92?(e.consume(M),x):x(M)}function T(M){return!S&&(M===null||M===41||na(M))?(e.exit("chunkString"),e.exit(h),e.exit(f),e.exit(a),n(M)):S<y&&M===40?(e.consume(M),S++,T):M===41?(e.consume(M),S--,T):M===null||M===32||M===40||DS(M)?r(M):(e.consume(M),M===92?D:T)}function D(M){return M===40||M===41||M===92?(e.consume(M),T):T(M)}}function Jk(e,n,r,a,s,c){const f=this;let h=0,v;return y;function y(x){return e.enter(a),e.enter(s),e.consume(x),e.exit(s),e.enter(c),S}function S(x){return h>999||x===null||x===91||x===93&&!v||x===94&&!h&&"_hiddenFootnoteSupport"in f.parser.constructs?r(x):x===93?(e.exit(c),e.enter(s),e.consume(x),e.exit(s),e.exit(a),n):Pt(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),S):(e.enter("chunkString",{contentType:"string"}),E(x))}function E(x){return x===null||x===91||x===93||Pt(x)||h++>999?(e.exit("chunkString"),S(x)):(e.consume(x),v||(v=!gn(x)),x===92?C:E)}function C(x){return x===91||x===92||x===93?(e.consume(x),h++,E):E(x)}}function e_(e,n,r,a,s,c){let f;return h;function h(C){return C===34||C===39||C===40?(e.enter(a),e.enter(s),e.consume(C),e.exit(s),f=C===40?41:C,v):r(C)}function v(C){return C===f?(e.enter(s),e.consume(C),e.exit(s),e.exit(a),n):(e.enter(c),y(C))}function y(C){return C===f?(e.exit(c),v(f)):C===null?r(C):Pt(C)?(e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),jn(e,y,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),S(C))}function S(C){return C===f||C===null||Pt(C)?(e.exit("chunkString"),y(C)):(e.consume(C),C===92?E:S)}function E(C){return C===f||C===92?(e.consume(C),S):S(C)}}function Mh(e,n){let r;return a;function a(s){return Pt(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r=!0,a):gn(s)?jn(e,a,r?"linePrefix":"lineSuffix")(s):n(s)}}function ed(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const PA={name:"definition",tokenize:FA},NA={tokenize:IA,partial:!0};function FA(e,n,r){const a=this;let s;return c;function c(x){return e.enter("definition"),f(x)}function f(x){return Jk.call(a,e,h,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function h(x){return s=ed(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),v):r(x)}function v(x){return na(x)?Mh(e,y)(x):y(x)}function y(x){return Xk(e,S,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function S(x){return e.attempt(NA,E,E)(x)}function E(x){return gn(x)?jn(e,C,"whitespace")(x):C(x)}function C(x){return x===null||Pt(x)?(e.exit("definition"),a.parser.defined.push(s),n(x)):r(x)}}function IA(e,n,r){return a;function a(h){return na(h)?Mh(e,s)(h):r(h)}function s(h){return e_(e,c,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(h)}function c(h){return gn(h)?jn(e,f,"whitespace")(h):f(h)}function f(h){return h===null||Pt(h)?n(h):r(h)}}const zA={name:"hardBreakEscape",tokenize:jA};function jA(e,n,r){return a;function a(c){return e.enter("hardBreakEscape"),e.consume(c),s}function s(c){return Pt(c)?(e.exit("hardBreakEscape"),n(c)):r(c)}}const $A={name:"headingAtx",tokenize:BA,resolve:UA};function UA(e,n){let r=e.length-2,a=3,s,c;return e[a][1].type==="whitespace"&&(a+=2),r-2>a&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(a===r-1||r-4>a&&e[r-2][1].type==="whitespace")&&(r-=a+1===r?2:4),r>a&&(s={type:"atxHeadingText",start:e[a][1].start,end:e[r][1].end},c={type:"chunkText",start:e[a][1].start,end:e[r][1].end,contentType:"text"},tl(e,a,r-a+1,[["enter",s,n],["enter",c,n],["exit",c,n],["exit",s,n]])),e}function BA(e,n,r){let a=0;return s;function s(S){return e.enter("atxHeading"),c(S)}function c(S){return e.enter("atxHeadingSequence"),f(S)}function f(S){return S===35&&a++<6?(e.consume(S),f):S===null||na(S)?(e.exit("atxHeadingSequence"),h(S)):r(S)}function h(S){return S===35?(e.enter("atxHeadingSequence"),v(S)):S===null||Pt(S)?(e.exit("atxHeading"),n(S)):gn(S)?jn(e,h,"whitespace")(S):(e.enter("atxHeadingText"),y(S))}function v(S){return S===35?(e.consume(S),v):(e.exit("atxHeadingSequence"),h(S))}function y(S){return S===null||S===35||na(S)?(e.exit("atxHeadingText"),h(S)):(e.consume(S),y)}}const VA=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],t_=["pre","script","style","textarea"],HA={name:"htmlFlow",tokenize:ZA,resolveTo:YA,concrete:!0},qA={tokenize:GA,partial:!0},WA={tokenize:KA,partial:!0};function YA(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function ZA(e,n,r){const a=this;let s,c,f,h,v;return y;function y(U){return S(U)}function S(U){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(U),E}function E(U){return U===33?(e.consume(U),C):U===47?(e.consume(U),c=!0,T):U===63?(e.consume(U),s=3,a.interrupt?n:L):nl(U)?(e.consume(U),f=String.fromCharCode(U),D):r(U)}function C(U){return U===45?(e.consume(U),s=2,x):U===91?(e.consume(U),s=5,h=0,R):nl(U)?(e.consume(U),s=4,a.interrupt?n:L):r(U)}function x(U){return U===45?(e.consume(U),a.interrupt?n:L):r(U)}function R(U){const _e="CDATA[";return U===_e.charCodeAt(h++)?(e.consume(U),h===_e.length?a.interrupt?n:oe:R):r(U)}function T(U){return nl(U)?(e.consume(U),f=String.fromCharCode(U),D):r(U)}function D(U){if(U===null||U===47||U===62||na(U)){const _e=U===47,We=f.toLowerCase();return!_e&&!c&&t_.includes(We)?(s=1,a.interrupt?n(U):oe(U)):VA.includes(f.toLowerCase())?(s=6,_e?(e.consume(U),M):a.interrupt?n(U):oe(U)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(U):c?I(U):N(U))}return U===45||Da(U)?(e.consume(U),f+=String.fromCharCode(U),D):r(U)}function M(U){return U===62?(e.consume(U),a.interrupt?n:oe):r(U)}function I(U){return gn(U)?(e.consume(U),I):ve(U)}function N(U){return U===47?(e.consume(U),ve):U===58||U===95||nl(U)?(e.consume(U),B):gn(U)?(e.consume(U),N):ve(U)}function B(U){return U===45||U===46||U===58||U===95||Da(U)?(e.consume(U),B):F(U)}function F(U){return U===61?(e.consume(U),$):gn(U)?(e.consume(U),F):N(U)}function $(U){return U===null||U===60||U===61||U===62||U===96?r(U):U===34||U===39?(e.consume(U),v=U,H):gn(U)?(e.consume(U),$):Y(U)}function H(U){return U===v?(e.consume(U),v=null,ne):U===null||Pt(U)?r(U):(e.consume(U),H)}function Y(U){return U===null||U===34||U===39||U===47||U===60||U===61||U===62||U===96||na(U)?F(U):(e.consume(U),Y)}function ne(U){return U===47||U===62||gn(U)?N(U):r(U)}function ve(U){return U===62?(e.consume(U),ee):r(U)}function ee(U){return U===null||Pt(U)?oe(U):gn(U)?(e.consume(U),ee):r(U)}function oe(U){return U===45&&s===2?(e.consume(U),xe):U===60&&s===1?(e.consume(U),Ie):U===62&&s===4?(e.consume(U),te):U===63&&s===3?(e.consume(U),L):U===93&&s===5?(e.consume(U),Te):Pt(U)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(qA,ye,J)(U)):U===null||Pt(U)?(e.exit("htmlFlowData"),J(U)):(e.consume(U),oe)}function J(U){return e.check(WA,pe,ye)(U)}function pe(U){return e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),ke}function ke(U){return U===null||Pt(U)?J(U):(e.enter("htmlFlowData"),oe(U))}function xe(U){return U===45?(e.consume(U),L):oe(U)}function Ie(U){return U===47?(e.consume(U),f="",se):oe(U)}function se(U){if(U===62){const _e=f.toLowerCase();return t_.includes(_e)?(e.consume(U),te):oe(U)}return nl(U)&&f.length<8?(e.consume(U),f+=String.fromCharCode(U),se):oe(U)}function Te(U){return U===93?(e.consume(U),L):oe(U)}function L(U){return U===62?(e.consume(U),te):U===45&&s===2?(e.consume(U),L):oe(U)}function te(U){return U===null||Pt(U)?(e.exit("htmlFlowData"),ye(U)):(e.consume(U),te)}function ye(U){return e.exit("htmlFlow"),n(U)}}function KA(e,n,r){const a=this;return s;function s(f){return Pt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):r(f)}function c(f){return a.parser.lazy[a.now().line]?r(f):n(f)}}function GA(e,n,r){return a;function a(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(j0,n,r)}}const QA={name:"htmlText",tokenize:XA};function XA(e,n,r){const a=this;let s,c,f;return h;function h(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),v}function v(L){return L===33?(e.consume(L),y):L===47?(e.consume(L),F):L===63?(e.consume(L),N):nl(L)?(e.consume(L),Y):r(L)}function y(L){return L===45?(e.consume(L),S):L===91?(e.consume(L),c=0,R):nl(L)?(e.consume(L),I):r(L)}function S(L){return L===45?(e.consume(L),x):r(L)}function E(L){return L===null?r(L):L===45?(e.consume(L),C):Pt(L)?(f=E,Ie(L)):(e.consume(L),E)}function C(L){return L===45?(e.consume(L),x):E(L)}function x(L){return L===62?xe(L):L===45?C(L):E(L)}function R(L){const te="CDATA[";return L===te.charCodeAt(c++)?(e.consume(L),c===te.length?T:R):r(L)}function T(L){return L===null?r(L):L===93?(e.consume(L),D):Pt(L)?(f=T,Ie(L)):(e.consume(L),T)}function D(L){return L===93?(e.consume(L),M):T(L)}function M(L){return L===62?xe(L):L===93?(e.consume(L),M):T(L)}function I(L){return L===null||L===62?xe(L):Pt(L)?(f=I,Ie(L)):(e.consume(L),I)}function N(L){return L===null?r(L):L===63?(e.consume(L),B):Pt(L)?(f=N,Ie(L)):(e.consume(L),N)}function B(L){return L===62?xe(L):N(L)}function F(L){return nl(L)?(e.consume(L),$):r(L)}function $(L){return L===45||Da(L)?(e.consume(L),$):H(L)}function H(L){return Pt(L)?(f=H,Ie(L)):gn(L)?(e.consume(L),H):xe(L)}function Y(L){return L===45||Da(L)?(e.consume(L),Y):L===47||L===62||na(L)?ne(L):r(L)}function ne(L){return L===47?(e.consume(L),xe):L===58||L===95||nl(L)?(e.consume(L),ve):Pt(L)?(f=ne,Ie(L)):gn(L)?(e.consume(L),ne):xe(L)}function ve(L){return L===45||L===46||L===58||L===95||Da(L)?(e.consume(L),ve):ee(L)}function ee(L){return L===61?(e.consume(L),oe):Pt(L)?(f=ee,Ie(L)):gn(L)?(e.consume(L),ee):ne(L)}function oe(L){return L===null||L===60||L===61||L===62||L===96?r(L):L===34||L===39?(e.consume(L),s=L,J):Pt(L)?(f=oe,Ie(L)):gn(L)?(e.consume(L),oe):(e.consume(L),pe)}function J(L){return L===s?(e.consume(L),s=void 0,ke):L===null?r(L):Pt(L)?(f=J,Ie(L)):(e.consume(L),J)}function pe(L){return L===null||L===34||L===39||L===60||L===61||L===96?r(L):L===47||L===62||na(L)?ne(L):(e.consume(L),pe)}function ke(L){return L===47||L===62||na(L)?ne(L):r(L)}function xe(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),n):r(L)}function Ie(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),se}function se(L){return gn(L)?jn(e,Te,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):Te(L)}function Te(L){return e.enter("htmlTextData"),f(L)}}const FS={name:"labelEnd",tokenize:iM,resolveTo:rM,resolveAll:nM},JA={tokenize:aM},eM={tokenize:oM},tM={tokenize:lM};function nM(e){let n=-1;for(;++n<e.length;){const r=e[n][1];(r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd")&&(e.splice(n+1,r.type==="labelImage"?4:2),r.type="data",n++)}return e}function rM(e,n){let r=e.length,a=0,s,c,f,h;for(;r--;)if(s=e[r][1],c){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(f){if(e[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(c=r,s.type!=="labelLink")){a=2;break}}else s.type==="labelEnd"&&(f=r);const v={type:e[c][1].type==="labelLink"?"link":"image",start:Object.assign({},e[c][1].start),end:Object.assign({},e[e.length-1][1].end)},y={type:"label",start:Object.assign({},e[c][1].start),end:Object.assign({},e[f][1].end)},S={type:"labelText",start:Object.assign({},e[c+a+2][1].end),end:Object.assign({},e[f-2][1].start)};return h=[["enter",v,n],["enter",y,n]],h=Qa(h,e.slice(c+1,c+a+3)),h=Qa(h,[["enter",S,n]]),h=Qa(h,MS(n.parser.constructs.insideSpan.null,e.slice(c+a+4,f-3),n)),h=Qa(h,[["exit",S,n],e[f-2],e[f-1],["exit",y,n]]),h=Qa(h,e.slice(f+1)),h=Qa(h,[["exit",v,n]]),tl(e,c,e.length,h),e}function iM(e,n,r){const a=this;let s=a.events.length,c,f;for(;s--;)if((a.events[s][1].type==="labelImage"||a.events[s][1].type==="labelLink")&&!a.events[s][1]._balanced){c=a.events[s][1];break}return h;function h(C){return c?c._inactive?E(C):(f=a.parser.defined.includes(ed(a.sliceSerialize({start:c.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(C),e.exit("labelMarker"),e.exit("labelEnd"),v):r(C)}function v(C){return C===40?e.attempt(JA,S,f?S:E)(C):C===91?e.attempt(eM,S,f?y:E)(C):f?S(C):E(C)}function y(C){return e.attempt(tM,S,E)(C)}function S(C){return n(C)}function E(C){return c._balanced=!0,r(C)}}function aM(e,n,r){return a;function a(E){return e.enter("resource"),e.enter("resourceMarker"),e.consume(E),e.exit("resourceMarker"),s}function s(E){return na(E)?Mh(e,c)(E):c(E)}function c(E){return E===41?S(E):Xk(e,f,h,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(E)}function f(E){return na(E)?Mh(e,v)(E):S(E)}function h(E){return r(E)}function v(E){return E===34||E===39||E===40?e_(e,y,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(E):S(E)}function y(E){return na(E)?Mh(e,S)(E):S(E)}function S(E){return E===41?(e.enter("resourceMarker"),e.consume(E),e.exit("resourceMarker"),e.exit("resource"),n):r(E)}}function oM(e,n,r){const a=this;return s;function s(h){return Jk.call(a,e,c,f,"reference","referenceMarker","referenceString")(h)}function c(h){return a.parser.defined.includes(ed(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?n(h):r(h)}function f(h){return r(h)}}function lM(e,n,r){return a;function a(c){return e.enter("reference"),e.enter("referenceMarker"),e.consume(c),e.exit("referenceMarker"),s}function s(c){return c===93?(e.enter("referenceMarker"),e.consume(c),e.exit("referenceMarker"),e.exit("reference"),n):r(c)}}const sM={name:"labelStartImage",tokenize:uM,resolveAll:FS.resolveAll};function uM(e,n,r){const a=this;return s;function s(h){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(h),e.exit("labelImageMarker"),c}function c(h){return h===91?(e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelImage"),f):r(h)}function f(h){return h===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(h):n(h)}}const cM={name:"labelStartLink",tokenize:fM,resolveAll:FS.resolveAll};function fM(e,n,r){const a=this;return s;function s(f){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelLink"),c}function c(f){return f===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(f):n(f)}}const IS={name:"lineEnding",tokenize:dM};function dM(e,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),jn(e,n,"linePrefix")}}const $0={name:"thematicBreak",tokenize:pM};function pM(e,n,r){let a=0,s;return c;function c(y){return e.enter("thematicBreak"),f(y)}function f(y){return s=y,h(y)}function h(y){return y===s?(e.enter("thematicBreakSequence"),v(y)):a>=3&&(y===null||Pt(y))?(e.exit("thematicBreak"),n(y)):r(y)}function v(y){return y===s?(e.consume(y),a++,v):(e.exit("thematicBreakSequence"),gn(y)?jn(e,h,"whitespace")(y):h(y))}}const ra={name:"list",tokenize:vM,continuation:{tokenize:gM},exit:bM},hM={tokenize:SM,partial:!0},mM={tokenize:yM,partial:!0};function vM(e,n,r){const a=this,s=a.events[a.events.length-1];let c=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,f=0;return h;function h(x){const R=a.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(R==="listUnordered"?!a.containerState.marker||x===a.containerState.marker:AS(x)){if(a.containerState.type||(a.containerState.type=R,e.enter(R,{_container:!0})),R==="listUnordered")return e.enter("listItemPrefix"),x===42||x===45?e.check($0,r,y)(x):y(x);if(!a.interrupt||x===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),v(x)}return r(x)}function v(x){return AS(x)&&++f<10?(e.consume(x),v):(!a.interrupt||f<2)&&(a.containerState.marker?x===a.containerState.marker:x===41||x===46)?(e.exit("listItemValue"),y(x)):r(x)}function y(x){return e.enter("listItemMarker"),e.consume(x),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||x,e.check(j0,a.interrupt?r:S,e.attempt(hM,C,E))}function S(x){return a.containerState.initialBlankLine=!0,c++,C(x)}function E(x){return gn(x)?(e.enter("listItemPrefixWhitespace"),e.consume(x),e.exit("listItemPrefixWhitespace"),C):r(x)}function C(x){return a.containerState.size=c+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(x)}}function gM(e,n,r){const a=this;return a.containerState._closeFlow=void 0,e.check(j0,s,c);function s(h){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,jn(e,n,"listItemIndent",a.containerState.size+1)(h)}function c(h){return a.containerState.furtherBlankLines||!gn(h)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,f(h)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(mM,n,f)(h))}function f(h){return a.containerState._closeFlow=!0,a.interrupt=void 0,jn(e,e.attempt(ra,n,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h)}}function yM(e,n,r){const a=this;return jn(e,s,"listItemIndent",a.containerState.size+1);function s(c){const f=a.events[a.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===a.containerState.size?n(c):r(c)}}function bM(e){e.exit(this.containerState.type)}function SM(e,n,r){const a=this;return jn(e,s,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function s(c){const f=a.events[a.events.length-1];return!gn(c)&&f&&f[1].type==="listItemPrefixWhitespace"?n(c):r(c)}}const n_={name:"setextUnderline",tokenize:xM,resolveTo:EM};function EM(e,n){let r=e.length,a,s,c;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){a=r;break}e[r][1].type==="paragraph"&&(s=r)}else e[r][1].type==="content"&&e.splice(r,1),!c&&e[r][1].type==="definition"&&(c=r);const f={type:"setextHeading",start:Object.assign({},e[s][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[s][1].type="setextHeadingText",c?(e.splice(s,0,["enter",f,n]),e.splice(c+1,0,["exit",e[a][1],n]),e[a][1].end=Object.assign({},e[c][1].end)):e[a][1]=f,e.push(["exit",f,n]),e}function xM(e,n,r){const a=this;let s;return c;function c(y){let S=a.events.length,E;for(;S--;)if(a.events[S][1].type!=="lineEnding"&&a.events[S][1].type!=="linePrefix"&&a.events[S][1].type!=="content"){E=a.events[S][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||E)?(e.enter("setextHeadingLine"),s=y,f(y)):r(y)}function f(y){return e.enter("setextHeadingLineSequence"),h(y)}function h(y){return y===s?(e.consume(y),h):(e.exit("setextHeadingLineSequence"),gn(y)?jn(e,v,"lineSuffix")(y):v(y))}function v(y){return y===null||Pt(y)?(e.exit("setextHeadingLine"),n(y)):r(y)}}const wM={tokenize:CM};function CM(e){const n=this,r=e.attempt(j0,a,e.attempt(this.parser.constructs.flowInitial,s,jn(e,e.attempt(this.parser.constructs.flow,s,e.attempt(OA,s)),"linePrefix")));return r;function a(c){if(c===null){e.consume(c);return}return e.enter("lineEndingBlank"),e.consume(c),e.exit("lineEndingBlank"),n.currentConstruct=void 0,r}function s(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),n.currentConstruct=void 0,r}}const kM={resolveAll:i_()},_M=r_("string"),TM=r_("text");function r_(e){return{tokenize:n,resolveAll:i_(e==="text"?RM:void 0)};function n(r){const a=this,s=this.parser.constructs[e],c=r.attempt(s,f,h);return f;function f(S){return y(S)?c(S):h(S)}function h(S){if(S===null){r.consume(S);return}return r.enter("data"),r.consume(S),v}function v(S){return y(S)?(r.exit("data"),c(S)):(r.consume(S),v)}function y(S){if(S===null)return!0;const E=s[S];let C=-1;if(E)for(;++C<E.length;){const x=E[C];if(!x.previous||x.previous.call(a,a.previous))return!0}return!1}}}function i_(e){return n;function n(r,a){let s=-1,c;for(;++s<=r.length;)c===void 0?r[s]&&r[s][1].type==="data"&&(c=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==c+2&&(r[c][1].end=r[s-1][1].end,r.splice(c+2,s-c-2),s=c+2),c=void 0);return e?e(r,a):r}}function RM(e,n){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const a=e[r-1][1],s=n.sliceStream(a);let c=s.length,f=-1,h=0,v;for(;c--;){const y=s[c];if(typeof y=="string"){for(f=y.length;y.charCodeAt(f-1)===32;)h++,f--;if(f)break;f=-1}else if(y===-2)v=!0,h++;else if(y!==-1){c++;break}}if(h){const y={type:r===e.length||v||h<2?"lineSuffix":"hardBreakTrailing",start:{line:a.end.line,column:a.end.column-h,offset:a.end.offset-h,_index:a.start._index+c,_bufferIndex:c?f:a.start._bufferIndex+f},end:Object.assign({},a.end)};a.end=Object.assign({},y.start),a.start.offset===a.end.offset?Object.assign(a,y):(e.splice(r,0,["enter",y,n],["exit",y,n]),r+=2)}r++}return e}function OM(e,n,r){let a=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const s={},c=[];let f=[],h=[];const v={consume:I,enter:N,exit:B,attempt:H(F),check:H($),interrupt:H($,{interrupt:!0})},y={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:x,sliceSerialize:C,now:R,defineSkip:T,write:E};let S=n.tokenize.call(y,v);return n.resolveAll&&c.push(n),y;function E(ee){return f=Qa(f,ee),D(),f[f.length-1]!==null?[]:(Y(n,0),y.events=MS(c,y.events,y),y.events)}function C(ee,oe){return AM(x(ee),oe)}function x(ee){return DM(f,ee)}function R(){const{line:ee,column:oe,offset:J,_index:pe,_bufferIndex:ke}=a;return{line:ee,column:oe,offset:J,_index:pe,_bufferIndex:ke}}function T(ee){s[ee.line]=ee.column,ve()}function D(){let ee;for(;a._index<f.length;){const oe=f[a._index];if(typeof oe=="string")for(ee=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===ee&&a._bufferIndex<oe.length;)M(oe.charCodeAt(a._bufferIndex));else M(oe)}}function M(ee){S=S(ee)}function I(ee){Pt(ee)?(a.line++,a.column=1,a.offset+=ee===-3?2:1,ve()):ee!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===f[a._index].length&&(a._bufferIndex=-1,a._index++)),y.previous=ee}function N(ee,oe){const J=oe||{};return J.type=ee,J.start=R(),y.events.push(["enter",J,y]),h.push(J),J}function B(ee){const oe=h.pop();return oe.end=R(),y.events.push(["exit",oe,y]),oe}function F(ee,oe){Y(ee,oe.from)}function $(ee,oe){oe.restore()}function H(ee,oe){return J;function J(pe,ke,xe){let Ie,se,Te,L;return Array.isArray(pe)?ye(pe):"tokenize"in pe?ye([pe]):te(pe);function te(Re){return Oe;function Oe($e){const Ge=$e!==null&&Re[$e],Ue=$e!==null&&Re.null,Le=[...Array.isArray(Ge)?Ge:Ge?[Ge]:[],...Array.isArray(Ue)?Ue:Ue?[Ue]:[]];return ye(Le)($e)}}function ye(Re){return Ie=Re,se=0,Re.length===0?xe:U(Re[se])}function U(Re){return Oe;function Oe($e){return L=ne(),Te=Re,Re.partial||(y.currentConstruct=Re),Re.name&&y.parser.constructs.disable.null.includes(Re.name)?We():Re.tokenize.call(oe?Object.assign(Object.create(y),oe):y,v,_e,We)($e)}}function _e(Re){return ee(Te,L),ke}function We(Re){return L.restore(),++se<Ie.length?U(Ie[se]):xe}}}function Y(ee,oe){ee.resolveAll&&!c.includes(ee)&&c.push(ee),ee.resolve&&tl(y.events,oe,y.events.length-oe,ee.resolve(y.events.slice(oe),y)),ee.resolveTo&&(y.events=ee.resolveTo(y.events,y))}function ne(){const ee=R(),oe=y.previous,J=y.currentConstruct,pe=y.events.length,ke=Array.from(h);return{restore:xe,from:pe};function xe(){a=ee,y.previous=oe,y.currentConstruct=J,y.events.length=pe,h=ke,ve()}}function ve(){a.line in s&&a.column<2&&(a.column=s[a.line],a.offset+=s[a.line]-1)}}function DM(e,n){const r=n.start._index,a=n.start._bufferIndex,s=n.end._index,c=n.end._bufferIndex;let f;if(r===s)f=[e[r].slice(a,c)];else{if(f=e.slice(r,s),a>-1){const h=f[0];typeof h=="string"?f[0]=h.slice(a):f.shift()}c>0&&f.push(e[s].slice(0,c))}return f}function AM(e,n){let r=-1;const a=[];let s;for(;++r<e.length;){const c=e[r];let f;if(typeof c=="string")f=c;else switch(c){case-5:{f="\r";break}case-4:{f=`
201
+ */var R6=function(n){return n!=null&&n.constructor!=null&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)};const Sk=Jf(R6);function Oh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ek(e.position):"start"in e||"end"in e?Ek(e):"line"in e||"column"in e?ES(e):""}function ES(e){return xk(e&&e.line)+":"+xk(e&&e.column)}function Ek(e){return ES(e&&e.start)+"-"+ES(e&&e.end)}function xk(e){return e&&typeof e=="number"?e:1}class Ga extends Error{constructor(n,r,a){const s=[null,null];let c={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof r=="string"&&(a=r,r=void 0),typeof a=="string"){const f=a.indexOf(":");f===-1?s[1]=a:(s[0]=a.slice(0,f),s[1]=a.slice(f+1))}r&&("type"in r||"position"in r?r.position&&(c=r.position):"start"in r||"end"in r?c=r:("line"in r||"column"in r)&&(c.start=r)),this.name=Oh(r)||"1:1",this.message=typeof n=="object"?n.message:n,this.stack="",typeof n=="object"&&n.stack&&(this.stack=n.stack),this.reason=this.message,this.fatal,this.line=c.start.line,this.column=c.start.column,this.position=c,this.source=s[0],this.ruleId=s[1],this.file,this.actual,this.expected,this.url,this.note}}Ga.prototype.file="",Ga.prototype.name="",Ga.prototype.reason="",Ga.prototype.message="",Ga.prototype.stack="",Ga.prototype.fatal=null,Ga.prototype.column=null,Ga.prototype.line=null,Ga.prototype.source=null,Ga.prototype.ruleId=null,Ga.prototype.position=null;const el={basename:O6,dirname:D6,extname:A6,join:M6,sep:"/"};function O6(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Dh(e);let r=0,a=-1,s=e.length,c;if(n===void 0||n.length===0||n.length>e.length){for(;s--;)if(e.charCodeAt(s)===47){if(c){r=s+1;break}}else a<0&&(c=!0,a=s+1);return a<0?"":e.slice(r,a)}if(n===e)return"";let f=-1,h=n.length-1;for(;s--;)if(e.charCodeAt(s)===47){if(c){r=s+1;break}}else f<0&&(c=!0,f=s+1),h>-1&&(e.charCodeAt(s)===n.charCodeAt(h--)?h<0&&(a=s):(h=-1,a=f));return r===a?a=f:a<0&&(a=e.length),e.slice(r,a)}function D6(e){if(Dh(e),e.length===0)return".";let n=-1,r=e.length,a;for(;--r;)if(e.charCodeAt(r)===47){if(a){n=r;break}}else a||(a=!0);return n<0?e.charCodeAt(0)===47?"/":".":n===1&&e.charCodeAt(0)===47?"//":e.slice(0,n)}function A6(e){Dh(e);let n=e.length,r=-1,a=0,s=-1,c=0,f;for(;n--;){const h=e.charCodeAt(n);if(h===47){if(f){a=n+1;break}continue}r<0&&(f=!0,r=n+1),h===46?s<0?s=n:c!==1&&(c=1):s>-1&&(c=-1)}return s<0||r<0||c===0||c===1&&s===r-1&&s===a+1?"":e.slice(s,r)}function M6(...e){let n=-1,r;for(;++n<e.length;)Dh(e[n]),e[n]&&(r=r===void 0?e[n]:r+"/"+e[n]);return r===void 0?".":L6(r)}function L6(e){Dh(e);const n=e.charCodeAt(0)===47;let r=P6(e,!n);return r.length===0&&!n&&(r="."),r.length>0&&e.charCodeAt(e.length-1)===47&&(r+="/"),n?"/"+r:r}function P6(e,n){let r="",a=0,s=-1,c=0,f=-1,h,v;for(;++f<=e.length;){if(f<e.length)h=e.charCodeAt(f);else{if(h===47)break;h=47}if(h===47){if(!(s===f-1||c===1))if(s!==f-1&&c===2){if(r.length<2||a!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){if(v=r.lastIndexOf("/"),v!==r.length-1){v<0?(r="",a=0):(r=r.slice(0,v),a=r.length-1-r.lastIndexOf("/")),s=f,c=0;continue}}else if(r.length>0){r="",a=0,s=f,c=0;continue}}n&&(r=r.length>0?r+"/..":"..",a=2)}else r.length>0?r+="/"+e.slice(s+1,f):r=e.slice(s+1,f),a=f-s-1;s=f,c=0}else h===46&&c>-1?c++:c=-1}return r}function Dh(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const N6={cwd:F6};function F6(){return"/"}function xS(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function I6(e){if(typeof e=="string")e=new URL(e);else if(!xS(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return z6(e)}function z6(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const n=e.pathname;let r=-1;for(;++r<n.length;)if(n.charCodeAt(r)===37&&n.charCodeAt(r+1)===50){const a=n.charCodeAt(r+2);if(a===70||a===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(n)}const wS=["history","path","basename","stem","extname","dirname"];class wk{constructor(n){let r;n?typeof n=="string"||j6(n)?r={value:n}:xS(n)?r={path:n}:r=n:r={},this.data={},this.messages=[],this.history=[],this.cwd=N6.cwd(),this.value,this.stored,this.result,this.map;let a=-1;for(;++a<wS.length;){const c=wS[a];c in r&&r[c]!==void 0&&r[c]!==null&&(this[c]=c==="history"?[...r[c]]:r[c])}let s;for(s in r)wS.includes(s)||(this[s]=r[s])}get path(){return this.history[this.history.length-1]}set path(n){xS(n)&&(n=I6(n)),kS(n,"path"),this.path!==n&&this.history.push(n)}get dirname(){return typeof this.path=="string"?el.dirname(this.path):void 0}set dirname(n){Ck(this.basename,"dirname"),this.path=el.join(n||"",this.basename)}get basename(){return typeof this.path=="string"?el.basename(this.path):void 0}set basename(n){kS(n,"basename"),CS(n,"basename"),this.path=el.join(this.dirname||"",n)}get extname(){return typeof this.path=="string"?el.extname(this.path):void 0}set extname(n){if(CS(n,"extname"),Ck(this.dirname,"extname"),n){if(n.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=el.join(this.dirname,this.stem+(n||""))}get stem(){return typeof this.path=="string"?el.basename(this.path,this.extname):void 0}set stem(n){kS(n,"stem"),CS(n,"stem"),this.path=el.join(this.dirname||"",n+(this.extname||""))}toString(n){return(this.value||"").toString(n||void 0)}message(n,r,a){const s=new Ga(n,r,a);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}info(n,r,a){const s=this.message(n,r,a);return s.fatal=null,s}fail(n,r,a){const s=this.message(n,r,a);throw s.fatal=!0,s}}function CS(e,n){if(e&&e.includes(el.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+el.sep+"`")}function kS(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function Ck(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function j6(e){return Sk(e)}function kk(e){if(e)throw e}var z0=Object.prototype.hasOwnProperty,_k=Object.prototype.toString,Tk=Object.defineProperty,Rk=Object.getOwnPropertyDescriptor,Ok=function(n){return typeof Array.isArray=="function"?Array.isArray(n):_k.call(n)==="[object Array]"},Dk=function(n){if(!n||_k.call(n)!=="[object Object]")return!1;var r=z0.call(n,"constructor"),a=n.constructor&&n.constructor.prototype&&z0.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!r&&!a)return!1;var s;for(s in n);return typeof s>"u"||z0.call(n,s)},Ak=function(n,r){Tk&&r.name==="__proto__"?Tk(n,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):n[r.name]=r.newValue},Mk=function(n,r){if(r==="__proto__")if(z0.call(n,r)){if(Rk)return Rk(n,r).value}else return;return n[r]},$6=function e(){var n,r,a,s,c,f,h=arguments[0],v=1,y=arguments.length,S=!1;for(typeof h=="boolean"&&(S=h,h=arguments[1]||{},v=2),(h==null||typeof h!="object"&&typeof h!="function")&&(h={});v<y;++v)if(n=arguments[v],n!=null)for(r in n)a=Mk(h,r),s=Mk(n,r),h!==s&&(S&&s&&(Dk(s)||(c=Ok(s)))?(c?(c=!1,f=a&&Ok(a)?a:[]):f=a&&Dk(a)?a:{},Ak(h,{name:r,newValue:e(S,f,s)})):typeof s<"u"&&Ak(h,{name:r,newValue:s}));return h};const Lk=Jf($6);function _S(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function U6(){const e=[],n={run:r,use:a};return n;function r(...s){let c=-1;const f=s.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);h(null,...s);function h(v,...y){const S=e[++c];let E=-1;if(v){f(v);return}for(;++E<s.length;)(y[E]===null||y[E]===void 0)&&(y[E]=s[E]);s=y,S?B6(S,h)(...y):f(null,...y)}}function a(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),n}}function B6(e,n){let r;return a;function a(...f){const h=e.length>f.length;let v;h&&f.push(s);try{v=e.apply(this,f)}catch(y){const S=y;if(h&&r)throw S;return s(S)}h||(v instanceof Promise?v.then(c,s):v instanceof Error?s(v):c(v))}function s(f,...h){r||(r=!0,n(f,...h))}function c(f){s(null,f)}}const V6=Nk().freeze(),Pk={}.hasOwnProperty;function Nk(){const e=U6(),n=[];let r={},a,s=-1;return c.data=f,c.Parser=void 0,c.Compiler=void 0,c.freeze=h,c.attachers=n,c.use=v,c.parse=y,c.stringify=S,c.run=E,c.runSync=C,c.process=x,c.processSync=R,c;function c(){const T=Nk();let D=-1;for(;++D<n.length;)T.use(...n[D]);return T.data(Lk(!0,{},r)),T}function f(T,D){return typeof T=="string"?arguments.length===2?(OS("data",a),r[T]=D,c):Pk.call(r,T)&&r[T]||null:T?(OS("data",a),r=T,c):r}function h(){if(a)return c;for(;++s<n.length;){const[T,...D]=n[s];if(D[0]===!1)continue;D[0]===!0&&(D[0]=void 0);const M=T.call(c,...D);typeof M=="function"&&e.use(M)}return a=!0,s=Number.POSITIVE_INFINITY,c}function v(T,...D){let M;if(OS("use",a),T!=null)if(typeof T=="function")F(T,...D);else if(typeof T=="object")Array.isArray(T)?B(T):N(T);else throw new TypeError("Expected usable value, not `"+T+"`");return M&&(r.settings=Object.assign(r.settings||{},M)),c;function I($){if(typeof $=="function")F($);else if(typeof $=="object")if(Array.isArray($)){const[H,...Y]=$;F(H,...Y)}else N($);else throw new TypeError("Expected usable value, not `"+$+"`")}function N($){B($.plugins),$.settings&&(M=Object.assign(M||{},$.settings))}function B($){let H=-1;if($!=null)if(Array.isArray($))for(;++H<$.length;){const Y=$[H];I(Y)}else throw new TypeError("Expected a list of plugins, not `"+$+"`")}function F($,H){let Y=-1,ne;for(;++Y<n.length;)if(n[Y][0]===$){ne=n[Y];break}ne?(_S(ne[1])&&_S(H)&&(H=Lk(!0,ne[1],H)),ne[1]=H):n.push([...arguments])}}function y(T){c.freeze();const D=Ah(T),M=c.Parser;return TS("parse",M),Fk(M,"parse")?new M(String(D),D).parse():M(String(D),D)}function S(T,D){c.freeze();const M=Ah(D),I=c.Compiler;return RS("stringify",I),Ik(T),Fk(I,"compile")?new I(T,M).compile():I(T,M)}function E(T,D,M){if(Ik(T),c.freeze(),!M&&typeof D=="function"&&(M=D,D=void 0),!M)return new Promise(I);I(null,M);function I(N,B){e.run(T,Ah(D),F);function F($,H,Y){H=H||T,$?B($):N?N(H):M(null,H,Y)}}}function C(T,D){let M,I;return c.run(T,D,N),zk("runSync","run",I),M;function N(B,F){kk(B),M=F,I=!0}}function x(T,D){if(c.freeze(),TS("process",c.Parser),RS("process",c.Compiler),!D)return new Promise(M);M(null,D);function M(I,N){const B=Ah(T);c.run(c.parse(B),B,($,H,Y)=>{if($||!H||!Y)F($);else{const ne=c.stringify(H,Y);ne==null||(W6(ne)?Y.value=ne:Y.result=ne),F($,Y)}});function F($,H){$||!H?N($):I?I(H):D(null,H)}}}function R(T){let D;c.freeze(),TS("processSync",c.Parser),RS("processSync",c.Compiler);const M=Ah(T);return c.process(M,I),zk("processSync","process",D),M;function I(N){D=!0,kk(N)}}}function Fk(e,n){return typeof e=="function"&&e.prototype&&(H6(e.prototype)||n in e.prototype)}function H6(e){let n;for(n in e)if(Pk.call(e,n))return!0;return!1}function TS(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function RS(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function OS(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ik(e){if(!_S(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function zk(e,n,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Ah(e){return q6(e)?e:new wk(e)}function q6(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function W6(e){return typeof e=="string"||Sk(e)}const Y6={};function Z6(e,n){const r=n||Y6,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return jk(e,a,s)}function jk(e,n,r){if(K6(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return $k(e.children,n,r)}return Array.isArray(e)?$k(e,n,r):""}function $k(e,n,r){const a=[];let s=-1;for(;++s<e.length;)a[s]=jk(e[s],n,r);return a.join("")}function K6(e){return!!(e&&typeof e=="object")}function tl(e,n,r,a){const s=e.length;let c=0,f;if(n<0?n=-n>s?0:s+n:n=n>s?s:n,r=r>0?r:0,a.length<1e4)f=Array.from(a),f.unshift(n,r),e.splice(...f);else for(r&&e.splice(n,r);c<a.length;)f=a.slice(c,c+1e4),f.unshift(n,0),e.splice(...f),c+=1e4,n+=1e4}function Qa(e,n){return e.length>0?(tl(e,e.length,0,n),e):n}const Uk={}.hasOwnProperty;function G6(e){const n={};let r=-1;for(;++r<e.length;)Q6(n,e[r]);return n}function Q6(e,n){let r;for(r in n){const s=(Uk.call(e,r)?e[r]:void 0)||(e[r]={}),c=n[r];let f;if(c)for(f in c){Uk.call(s,f)||(s[f]=[]);const h=c[f];X6(s[f],Array.isArray(h)?h:h?[h]:[])}}}function X6(e,n){let r=-1;const a=[];for(;++r<n.length;)(n[r].add==="after"?e:a).push(n[r]);tl(e,0,0,a)}const J6=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,nl=Xs(/[A-Za-z]/),Da=Xs(/[\dA-Za-z]/),eA=Xs(/[#-'*+\--9=?A-Z^-~]/);function DS(e){return e!==null&&(e<32||e===127)}const AS=Xs(/\d/),tA=Xs(/[\dA-Fa-f]/),nA=Xs(/[!-/:-@[-`{-~]/);function Pt(e){return e!==null&&e<-2}function na(e){return e!==null&&(e<0||e===32)}function gn(e){return e===-2||e===-1||e===32}const rA=Xs(J6),iA=Xs(/\s/);function Xs(e){return n;function n(r){return r!==null&&e.test(String.fromCharCode(r))}}function jn(e,n,r,a){const s=a?a-1:Number.POSITIVE_INFINITY;let c=0;return f;function f(v){return gn(v)?(e.enter(r),h(v)):n(v)}function h(v){return gn(v)&&c++<s?(e.consume(v),h):(e.exit(r),n(v))}}const aA={tokenize:oA};function oA(e){const n=e.attempt(this.parser.constructs.contentInitial,a,s);let r;return n;function a(h){if(h===null){e.consume(h);return}return e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),jn(e,n,"linePrefix")}function s(h){return e.enter("paragraph"),c(h)}function c(h){const v=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=v),r=v,f(h)}function f(h){if(h===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(h);return}return Pt(h)?(e.consume(h),e.exit("chunkText"),c):(e.consume(h),f)}}const lA={tokenize:sA},Bk={tokenize:uA};function sA(e){const n=this,r=[];let a=0,s,c,f;return h;function h(N){if(a<r.length){const B=r[a];return n.containerState=B[1],e.attempt(B[0].continuation,v,y)(N)}return y(N)}function v(N){if(a++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,s&&I();const B=n.events.length;let F=B,$;for(;F--;)if(n.events[F][0]==="exit"&&n.events[F][1].type==="chunkFlow"){$=n.events[F][1].end;break}M(a);let H=B;for(;H<n.events.length;)n.events[H][1].end=Object.assign({},$),H++;return tl(n.events,F+1,0,n.events.slice(B)),n.events.length=H,y(N)}return h(N)}function y(N){if(a===r.length){if(!s)return C(N);if(s.currentConstruct&&s.currentConstruct.concrete)return R(N);n.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Bk,S,E)(N)}function S(N){return s&&I(),M(a),C(N)}function E(N){return n.parser.lazy[n.now().line]=a!==r.length,f=n.now().offset,R(N)}function C(N){return n.containerState={},e.attempt(Bk,x,R)(N)}function x(N){return a++,r.push([n.currentConstruct,n.containerState]),C(N)}function R(N){if(N===null){s&&I(),M(0),e.consume(N);return}return s=s||n.parser.flow(n.now()),e.enter("chunkFlow",{contentType:"flow",previous:c,_tokenizer:s}),T(N)}function T(N){if(N===null){D(e.exit("chunkFlow"),!0),M(0),e.consume(N);return}return Pt(N)?(e.consume(N),D(e.exit("chunkFlow")),a=0,n.interrupt=void 0,h):(e.consume(N),T)}function D(N,B){const F=n.sliceStream(N);if(B&&F.push(null),N.previous=c,c&&(c.next=N),c=N,s.defineSkip(N.start),s.write(F),n.parser.lazy[N.start.line]){let $=s.events.length;for(;$--;)if(s.events[$][1].start.offset<f&&(!s.events[$][1].end||s.events[$][1].end.offset>f))return;const H=n.events.length;let Y=H,ne,ve;for(;Y--;)if(n.events[Y][0]==="exit"&&n.events[Y][1].type==="chunkFlow"){if(ne){ve=n.events[Y][1].end;break}ne=!0}for(M(a),$=H;$<n.events.length;)n.events[$][1].end=Object.assign({},ve),$++;tl(n.events,Y+1,0,n.events.slice(H)),n.events.length=$}}function M(N){let B=r.length;for(;B-- >N;){const F=r[B];n.containerState=F[1],F[0].exit.call(n,e)}r.length=N}function I(){s.write([null]),c=void 0,s=void 0,n.containerState._closeFlow=void 0}}function uA(e,n,r){return jn(e,e.attempt(this.parser.constructs.document,n,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Vk(e){if(e===null||na(e)||iA(e))return 1;if(rA(e))return 2}function MS(e,n,r){const a=[];let s=-1;for(;++s<e.length;){const c=e[s].resolveAll;c&&!a.includes(c)&&(n=c(n,r),a.push(c))}return n}const LS={name:"attention",tokenize:fA,resolveAll:cA};function cA(e,n){let r=-1,a,s,c,f,h,v,y,S;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(a=r;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&n.sliceSerialize(e[a][1]).charCodeAt(0)===n.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[a][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;v=e[a][1].end.offset-e[a][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const E=Object.assign({},e[a][1].end),C=Object.assign({},e[r][1].start);Hk(E,-v),Hk(C,v),f={type:v>1?"strongSequence":"emphasisSequence",start:E,end:Object.assign({},e[a][1].end)},h={type:v>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:C},c={type:v>1?"strongText":"emphasisText",start:Object.assign({},e[a][1].end),end:Object.assign({},e[r][1].start)},s={type:v>1?"strong":"emphasis",start:Object.assign({},f.start),end:Object.assign({},h.end)},e[a][1].end=Object.assign({},f.start),e[r][1].start=Object.assign({},h.end),y=[],e[a][1].end.offset-e[a][1].start.offset&&(y=Qa(y,[["enter",e[a][1],n],["exit",e[a][1],n]])),y=Qa(y,[["enter",s,n],["enter",f,n],["exit",f,n],["enter",c,n]]),y=Qa(y,MS(n.parser.constructs.insideSpan.null,e.slice(a+1,r),n)),y=Qa(y,[["exit",c,n],["enter",h,n],["exit",h,n],["exit",s,n]]),e[r][1].end.offset-e[r][1].start.offset?(S=2,y=Qa(y,[["enter",e[r][1],n],["exit",e[r][1],n]])):S=0,tl(e,a-1,r-a+3,y),r=a+y.length-S-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function fA(e,n){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,s=Vk(a);let c;return f;function f(v){return c=v,e.enter("attentionSequence"),h(v)}function h(v){if(v===c)return e.consume(v),h;const y=e.exit("attentionSequence"),S=Vk(v),E=!S||S===2&&s||r.includes(v),C=!s||s===2&&S||r.includes(a);return y._open=!!(c===42?E:E&&(s||!C)),y._close=!!(c===42?C:C&&(S||!E)),n(v)}}function Hk(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const dA={name:"autolink",tokenize:pA};function pA(e,n,r){let a=0;return s;function s(x){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),c}function c(x){return nl(x)?(e.consume(x),f):y(x)}function f(x){return x===43||x===45||x===46||Da(x)?(a=1,h(x)):y(x)}function h(x){return x===58?(e.consume(x),a=0,v):(x===43||x===45||x===46||Da(x))&&a++<32?(e.consume(x),h):(a=0,y(x))}function v(x){return x===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),n):x===null||x===32||x===60||DS(x)?r(x):(e.consume(x),v)}function y(x){return x===64?(e.consume(x),S):eA(x)?(e.consume(x),y):r(x)}function S(x){return Da(x)?E(x):r(x)}function E(x){return x===46?(e.consume(x),a=0,S):x===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),n):C(x)}function C(x){if((x===45||Da(x))&&a++<63){const R=x===45?C:E;return e.consume(x),R}return r(x)}}const j0={tokenize:hA,partial:!0};function hA(e,n,r){return a;function a(c){return gn(c)?jn(e,s,"linePrefix")(c):s(c)}function s(c){return c===null||Pt(c)?n(c):r(c)}}const qk={name:"blockQuote",tokenize:mA,continuation:{tokenize:vA},exit:gA};function mA(e,n,r){const a=this;return s;function s(f){if(f===62){const h=a.containerState;return h.open||(e.enter("blockQuote",{_container:!0}),h.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(f),e.exit("blockQuoteMarker"),c}return r(f)}function c(f){return gn(f)?(e.enter("blockQuotePrefixWhitespace"),e.consume(f),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(f))}}function vA(e,n,r){const a=this;return s;function s(f){return gn(f)?jn(e,c,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):c(f)}function c(f){return e.attempt(qk,n,r)(f)}}function gA(e){e.exit("blockQuote")}const Wk={name:"characterEscape",tokenize:yA};function yA(e,n,r){return a;function a(c){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(c),e.exit("escapeMarker"),s}function s(c){return nA(c)?(e.enter("characterEscapeValue"),e.consume(c),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):r(c)}}const Yk=document.createElement("i");function PS(e){const n="&"+e+";";Yk.innerHTML=n;const r=Yk.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===n?!1:r}const Zk={name:"characterReference",tokenize:bA};function bA(e,n,r){const a=this;let s=0,c,f;return h;function h(E){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(E),e.exit("characterReferenceMarker"),v}function v(E){return E===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(E),e.exit("characterReferenceMarkerNumeric"),y):(e.enter("characterReferenceValue"),c=31,f=Da,S(E))}function y(E){return E===88||E===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(E),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),c=6,f=tA,S):(e.enter("characterReferenceValue"),c=7,f=AS,S(E))}function S(E){if(E===59&&s){const C=e.exit("characterReferenceValue");return f===Da&&!PS(a.sliceSerialize(C))?r(E):(e.enter("characterReferenceMarker"),e.consume(E),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return f(E)&&s++<c?(e.consume(E),S):r(E)}}const Kk={tokenize:EA,partial:!0},Gk={name:"codeFenced",tokenize:SA,concrete:!0};function SA(e,n,r){const a=this,s={tokenize:F,partial:!0};let c=0,f=0,h;return v;function v($){return y($)}function y($){const H=a.events[a.events.length-1];return c=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,h=$,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),S($)}function S($){return $===h?(f++,e.consume($),S):f<3?r($):(e.exit("codeFencedFenceSequence"),gn($)?jn(e,E,"whitespace")($):E($))}function E($){return $===null||Pt($)?(e.exit("codeFencedFence"),a.interrupt?n($):e.check(Kk,T,B)($)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),C($))}function C($){return $===null||Pt($)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),E($)):gn($)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),jn(e,x,"whitespace")($)):$===96&&$===h?r($):(e.consume($),C)}function x($){return $===null||Pt($)?E($):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),R($))}function R($){return $===null||Pt($)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),E($)):$===96&&$===h?r($):(e.consume($),R)}function T($){return e.attempt(s,B,D)($)}function D($){return e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),M}function M($){return c>0&&gn($)?jn(e,I,"linePrefix",c+1)($):I($)}function I($){return $===null||Pt($)?e.check(Kk,T,B)($):(e.enter("codeFlowValue"),N($))}function N($){return $===null||Pt($)?(e.exit("codeFlowValue"),I($)):(e.consume($),N)}function B($){return e.exit("codeFenced"),n($)}function F($,H,Y){let ne=0;return ve;function ve(ke){return $.enter("lineEnding"),$.consume(ke),$.exit("lineEnding"),ee}function ee(ke){return $.enter("codeFencedFence"),gn(ke)?jn($,oe,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ke):oe(ke)}function oe(ke){return ke===h?($.enter("codeFencedFenceSequence"),J(ke)):Y(ke)}function J(ke){return ke===h?(ne++,$.consume(ke),J):ne>=f?($.exit("codeFencedFenceSequence"),gn(ke)?jn($,pe,"whitespace")(ke):pe(ke)):Y(ke)}function pe(ke){return ke===null||Pt(ke)?($.exit("codeFencedFence"),H(ke)):Y(ke)}}}function EA(e,n,r){const a=this;return s;function s(f){return f===null?r(f):(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c)}function c(f){return a.parser.lazy[a.now().line]?r(f):n(f)}}const NS={name:"codeIndented",tokenize:wA},xA={tokenize:CA,partial:!0};function wA(e,n,r){const a=this;return s;function s(y){return e.enter("codeIndented"),jn(e,c,"linePrefix",4+1)(y)}function c(y){const S=a.events[a.events.length-1];return S&&S[1].type==="linePrefix"&&S[2].sliceSerialize(S[1],!0).length>=4?f(y):r(y)}function f(y){return y===null?v(y):Pt(y)?e.attempt(xA,f,v)(y):(e.enter("codeFlowValue"),h(y))}function h(y){return y===null||Pt(y)?(e.exit("codeFlowValue"),f(y)):(e.consume(y),h)}function v(y){return e.exit("codeIndented"),n(y)}}function CA(e,n,r){const a=this;return s;function s(f){return a.parser.lazy[a.now().line]?r(f):Pt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):jn(e,c,"linePrefix",4+1)(f)}function c(f){const h=a.events[a.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?n(f):Pt(f)?s(f):r(f)}}const kA={name:"codeText",tokenize:RA,resolve:_A,previous:TA};function _A(e){let n=e.length-4,r=3,a,s;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(a=r;++a<n;)if(e[a][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[n][1].type="codeTextPadding",r+=2,n-=2;break}}for(a=r-1,n++;++a<=n;)s===void 0?a!==n&&e[a][1].type!=="lineEnding"&&(s=a):(a===n||e[a][1].type==="lineEnding")&&(e[s][1].type="codeTextData",a!==s+2&&(e[s][1].end=e[a-1][1].end,e.splice(s+2,a-s-2),n-=a-s-2,a=s+2),s=void 0);return e}function TA(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function RA(e,n,r){let a=0,s,c;return f;function f(E){return e.enter("codeText"),e.enter("codeTextSequence"),h(E)}function h(E){return E===96?(e.consume(E),a++,h):(e.exit("codeTextSequence"),v(E))}function v(E){return E===null?r(E):E===32?(e.enter("space"),e.consume(E),e.exit("space"),v):E===96?(c=e.enter("codeTextSequence"),s=0,S(E)):Pt(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),v):(e.enter("codeTextData"),y(E))}function y(E){return E===null||E===32||E===96||Pt(E)?(e.exit("codeTextData"),v(E)):(e.consume(E),y)}function S(E){return E===96?(e.consume(E),s++,S):s===a?(e.exit("codeTextSequence"),e.exit("codeText"),n(E)):(c.type="codeTextData",y(E))}}function Qk(e){const n={};let r=-1,a,s,c,f,h,v,y;for(;++r<e.length;){for(;r in n;)r=n[r];if(a=e[r],r&&a[1].type==="chunkFlow"&&e[r-1][1].type==="listItemPrefix"&&(v=a[1]._tokenizer.events,c=0,c<v.length&&v[c][1].type==="lineEndingBlank"&&(c+=2),c<v.length&&v[c][1].type==="content"))for(;++c<v.length&&v[c][1].type!=="content";)v[c][1].type==="chunkText"&&(v[c][1]._isInFirstContentOfListItem=!0,c++);if(a[0]==="enter")a[1].contentType&&(Object.assign(n,OA(e,r)),r=n[r],y=!0);else if(a[1]._container){for(c=r,s=void 0;c--&&(f=e[c],f[1].type==="lineEnding"||f[1].type==="lineEndingBlank");)f[0]==="enter"&&(s&&(e[s][1].type="lineEndingBlank"),f[1].type="lineEnding",s=c);s&&(a[1].end=Object.assign({},e[s][1].start),h=e.slice(s,r),h.unshift(a),tl(e,s,r-s+1,h))}}return!y}function OA(e,n){const r=e[n][1],a=e[n][2];let s=n-1;const c=[],f=r._tokenizer||a.parser[r.contentType](r.start),h=f.events,v=[],y={};let S,E,C=-1,x=r,R=0,T=0;const D=[T];for(;x;){for(;e[++s][1]!==x;);c.push(s),x._tokenizer||(S=a.sliceStream(x),x.next||S.push(null),E&&f.defineSkip(x.start),x._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(S),x._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),E=x,x=x.next}for(x=r;++C<h.length;)h[C][0]==="exit"&&h[C-1][0]==="enter"&&h[C][1].type===h[C-1][1].type&&h[C][1].start.line!==h[C][1].end.line&&(T=C+1,D.push(T),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(f.events=[],x?(x._tokenizer=void 0,x.previous=void 0):D.pop(),C=D.length;C--;){const M=h.slice(D[C],D[C+1]),I=c.pop();v.unshift([I,I+M.length-1]),tl(e,I,2,M)}for(C=-1;++C<v.length;)y[R+v[C][0]]=R+v[C][1],R+=v[C][1]-v[C][0]-1;return y}const DA={tokenize:LA,resolve:MA},AA={tokenize:PA,partial:!0};function MA(e){return Qk(e),e}function LA(e,n){let r;return a;function a(h){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),s(h)}function s(h){return h===null?c(h):Pt(h)?e.check(AA,f,c)(h):(e.consume(h),s)}function c(h){return e.exit("chunkContent"),e.exit("content"),n(h)}function f(h){return e.consume(h),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function PA(e,n,r){const a=this;return s;function s(f){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),jn(e,c,"linePrefix")}function c(f){if(f===null||Pt(f))return r(f);const h=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?n(f):e.interrupt(a.parser.constructs.flow,r,n)(f)}}function Xk(e,n,r,a,s,c,f,h,v){const y=v||Number.POSITIVE_INFINITY;let S=0;return E;function E(M){return M===60?(e.enter(a),e.enter(s),e.enter(c),e.consume(M),e.exit(c),C):M===null||M===32||M===41||DS(M)?r(M):(e.enter(a),e.enter(f),e.enter(h),e.enter("chunkString",{contentType:"string"}),T(M))}function C(M){return M===62?(e.enter(c),e.consume(M),e.exit(c),e.exit(s),e.exit(a),n):(e.enter(h),e.enter("chunkString",{contentType:"string"}),x(M))}function x(M){return M===62?(e.exit("chunkString"),e.exit(h),C(M)):M===null||M===60||Pt(M)?r(M):(e.consume(M),M===92?R:x)}function R(M){return M===60||M===62||M===92?(e.consume(M),x):x(M)}function T(M){return!S&&(M===null||M===41||na(M))?(e.exit("chunkString"),e.exit(h),e.exit(f),e.exit(a),n(M)):S<y&&M===40?(e.consume(M),S++,T):M===41?(e.consume(M),S--,T):M===null||M===32||M===40||DS(M)?r(M):(e.consume(M),M===92?D:T)}function D(M){return M===40||M===41||M===92?(e.consume(M),T):T(M)}}function Jk(e,n,r,a,s,c){const f=this;let h=0,v;return y;function y(x){return e.enter(a),e.enter(s),e.consume(x),e.exit(s),e.enter(c),S}function S(x){return h>999||x===null||x===91||x===93&&!v||x===94&&!h&&"_hiddenFootnoteSupport"in f.parser.constructs?r(x):x===93?(e.exit(c),e.enter(s),e.consume(x),e.exit(s),e.exit(a),n):Pt(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),S):(e.enter("chunkString",{contentType:"string"}),E(x))}function E(x){return x===null||x===91||x===93||Pt(x)||h++>999?(e.exit("chunkString"),S(x)):(e.consume(x),v||(v=!gn(x)),x===92?C:E)}function C(x){return x===91||x===92||x===93?(e.consume(x),h++,E):E(x)}}function e_(e,n,r,a,s,c){let f;return h;function h(C){return C===34||C===39||C===40?(e.enter(a),e.enter(s),e.consume(C),e.exit(s),f=C===40?41:C,v):r(C)}function v(C){return C===f?(e.enter(s),e.consume(C),e.exit(s),e.exit(a),n):(e.enter(c),y(C))}function y(C){return C===f?(e.exit(c),v(f)):C===null?r(C):Pt(C)?(e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),jn(e,y,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),S(C))}function S(C){return C===f||C===null||Pt(C)?(e.exit("chunkString"),y(C)):(e.consume(C),C===92?E:S)}function E(C){return C===f||C===92?(e.consume(C),S):S(C)}}function Mh(e,n){let r;return a;function a(s){return Pt(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r=!0,a):gn(s)?jn(e,a,r?"linePrefix":"lineSuffix")(s):n(s)}}function ed(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const NA={name:"definition",tokenize:IA},FA={tokenize:zA,partial:!0};function IA(e,n,r){const a=this;let s;return c;function c(x){return e.enter("definition"),f(x)}function f(x){return Jk.call(a,e,h,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function h(x){return s=ed(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),v):r(x)}function v(x){return na(x)?Mh(e,y)(x):y(x)}function y(x){return Xk(e,S,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function S(x){return e.attempt(FA,E,E)(x)}function E(x){return gn(x)?jn(e,C,"whitespace")(x):C(x)}function C(x){return x===null||Pt(x)?(e.exit("definition"),a.parser.defined.push(s),n(x)):r(x)}}function zA(e,n,r){return a;function a(h){return na(h)?Mh(e,s)(h):r(h)}function s(h){return e_(e,c,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(h)}function c(h){return gn(h)?jn(e,f,"whitespace")(h):f(h)}function f(h){return h===null||Pt(h)?n(h):r(h)}}const jA={name:"hardBreakEscape",tokenize:$A};function $A(e,n,r){return a;function a(c){return e.enter("hardBreakEscape"),e.consume(c),s}function s(c){return Pt(c)?(e.exit("hardBreakEscape"),n(c)):r(c)}}const UA={name:"headingAtx",tokenize:VA,resolve:BA};function BA(e,n){let r=e.length-2,a=3,s,c;return e[a][1].type==="whitespace"&&(a+=2),r-2>a&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(a===r-1||r-4>a&&e[r-2][1].type==="whitespace")&&(r-=a+1===r?2:4),r>a&&(s={type:"atxHeadingText",start:e[a][1].start,end:e[r][1].end},c={type:"chunkText",start:e[a][1].start,end:e[r][1].end,contentType:"text"},tl(e,a,r-a+1,[["enter",s,n],["enter",c,n],["exit",c,n],["exit",s,n]])),e}function VA(e,n,r){let a=0;return s;function s(S){return e.enter("atxHeading"),c(S)}function c(S){return e.enter("atxHeadingSequence"),f(S)}function f(S){return S===35&&a++<6?(e.consume(S),f):S===null||na(S)?(e.exit("atxHeadingSequence"),h(S)):r(S)}function h(S){return S===35?(e.enter("atxHeadingSequence"),v(S)):S===null||Pt(S)?(e.exit("atxHeading"),n(S)):gn(S)?jn(e,h,"whitespace")(S):(e.enter("atxHeadingText"),y(S))}function v(S){return S===35?(e.consume(S),v):(e.exit("atxHeadingSequence"),h(S))}function y(S){return S===null||S===35||na(S)?(e.exit("atxHeadingText"),h(S)):(e.consume(S),y)}}const HA=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],t_=["pre","script","style","textarea"],qA={name:"htmlFlow",tokenize:KA,resolveTo:ZA,concrete:!0},WA={tokenize:QA,partial:!0},YA={tokenize:GA,partial:!0};function ZA(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function KA(e,n,r){const a=this;let s,c,f,h,v;return y;function y(U){return S(U)}function S(U){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(U),E}function E(U){return U===33?(e.consume(U),C):U===47?(e.consume(U),c=!0,T):U===63?(e.consume(U),s=3,a.interrupt?n:L):nl(U)?(e.consume(U),f=String.fromCharCode(U),D):r(U)}function C(U){return U===45?(e.consume(U),s=2,x):U===91?(e.consume(U),s=5,h=0,R):nl(U)?(e.consume(U),s=4,a.interrupt?n:L):r(U)}function x(U){return U===45?(e.consume(U),a.interrupt?n:L):r(U)}function R(U){const _e="CDATA[";return U===_e.charCodeAt(h++)?(e.consume(U),h===_e.length?a.interrupt?n:oe:R):r(U)}function T(U){return nl(U)?(e.consume(U),f=String.fromCharCode(U),D):r(U)}function D(U){if(U===null||U===47||U===62||na(U)){const _e=U===47,We=f.toLowerCase();return!_e&&!c&&t_.includes(We)?(s=1,a.interrupt?n(U):oe(U)):HA.includes(f.toLowerCase())?(s=6,_e?(e.consume(U),M):a.interrupt?n(U):oe(U)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(U):c?I(U):N(U))}return U===45||Da(U)?(e.consume(U),f+=String.fromCharCode(U),D):r(U)}function M(U){return U===62?(e.consume(U),a.interrupt?n:oe):r(U)}function I(U){return gn(U)?(e.consume(U),I):ve(U)}function N(U){return U===47?(e.consume(U),ve):U===58||U===95||nl(U)?(e.consume(U),B):gn(U)?(e.consume(U),N):ve(U)}function B(U){return U===45||U===46||U===58||U===95||Da(U)?(e.consume(U),B):F(U)}function F(U){return U===61?(e.consume(U),$):gn(U)?(e.consume(U),F):N(U)}function $(U){return U===null||U===60||U===61||U===62||U===96?r(U):U===34||U===39?(e.consume(U),v=U,H):gn(U)?(e.consume(U),$):Y(U)}function H(U){return U===v?(e.consume(U),v=null,ne):U===null||Pt(U)?r(U):(e.consume(U),H)}function Y(U){return U===null||U===34||U===39||U===47||U===60||U===61||U===62||U===96||na(U)?F(U):(e.consume(U),Y)}function ne(U){return U===47||U===62||gn(U)?N(U):r(U)}function ve(U){return U===62?(e.consume(U),ee):r(U)}function ee(U){return U===null||Pt(U)?oe(U):gn(U)?(e.consume(U),ee):r(U)}function oe(U){return U===45&&s===2?(e.consume(U),xe):U===60&&s===1?(e.consume(U),Ie):U===62&&s===4?(e.consume(U),te):U===63&&s===3?(e.consume(U),L):U===93&&s===5?(e.consume(U),Te):Pt(U)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(WA,ye,J)(U)):U===null||Pt(U)?(e.exit("htmlFlowData"),J(U)):(e.consume(U),oe)}function J(U){return e.check(YA,pe,ye)(U)}function pe(U){return e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),ke}function ke(U){return U===null||Pt(U)?J(U):(e.enter("htmlFlowData"),oe(U))}function xe(U){return U===45?(e.consume(U),L):oe(U)}function Ie(U){return U===47?(e.consume(U),f="",se):oe(U)}function se(U){if(U===62){const _e=f.toLowerCase();return t_.includes(_e)?(e.consume(U),te):oe(U)}return nl(U)&&f.length<8?(e.consume(U),f+=String.fromCharCode(U),se):oe(U)}function Te(U){return U===93?(e.consume(U),L):oe(U)}function L(U){return U===62?(e.consume(U),te):U===45&&s===2?(e.consume(U),L):oe(U)}function te(U){return U===null||Pt(U)?(e.exit("htmlFlowData"),ye(U)):(e.consume(U),te)}function ye(U){return e.exit("htmlFlow"),n(U)}}function GA(e,n,r){const a=this;return s;function s(f){return Pt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):r(f)}function c(f){return a.parser.lazy[a.now().line]?r(f):n(f)}}function QA(e,n,r){return a;function a(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(j0,n,r)}}const XA={name:"htmlText",tokenize:JA};function JA(e,n,r){const a=this;let s,c,f;return h;function h(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),v}function v(L){return L===33?(e.consume(L),y):L===47?(e.consume(L),F):L===63?(e.consume(L),N):nl(L)?(e.consume(L),Y):r(L)}function y(L){return L===45?(e.consume(L),S):L===91?(e.consume(L),c=0,R):nl(L)?(e.consume(L),I):r(L)}function S(L){return L===45?(e.consume(L),x):r(L)}function E(L){return L===null?r(L):L===45?(e.consume(L),C):Pt(L)?(f=E,Ie(L)):(e.consume(L),E)}function C(L){return L===45?(e.consume(L),x):E(L)}function x(L){return L===62?xe(L):L===45?C(L):E(L)}function R(L){const te="CDATA[";return L===te.charCodeAt(c++)?(e.consume(L),c===te.length?T:R):r(L)}function T(L){return L===null?r(L):L===93?(e.consume(L),D):Pt(L)?(f=T,Ie(L)):(e.consume(L),T)}function D(L){return L===93?(e.consume(L),M):T(L)}function M(L){return L===62?xe(L):L===93?(e.consume(L),M):T(L)}function I(L){return L===null||L===62?xe(L):Pt(L)?(f=I,Ie(L)):(e.consume(L),I)}function N(L){return L===null?r(L):L===63?(e.consume(L),B):Pt(L)?(f=N,Ie(L)):(e.consume(L),N)}function B(L){return L===62?xe(L):N(L)}function F(L){return nl(L)?(e.consume(L),$):r(L)}function $(L){return L===45||Da(L)?(e.consume(L),$):H(L)}function H(L){return Pt(L)?(f=H,Ie(L)):gn(L)?(e.consume(L),H):xe(L)}function Y(L){return L===45||Da(L)?(e.consume(L),Y):L===47||L===62||na(L)?ne(L):r(L)}function ne(L){return L===47?(e.consume(L),xe):L===58||L===95||nl(L)?(e.consume(L),ve):Pt(L)?(f=ne,Ie(L)):gn(L)?(e.consume(L),ne):xe(L)}function ve(L){return L===45||L===46||L===58||L===95||Da(L)?(e.consume(L),ve):ee(L)}function ee(L){return L===61?(e.consume(L),oe):Pt(L)?(f=ee,Ie(L)):gn(L)?(e.consume(L),ee):ne(L)}function oe(L){return L===null||L===60||L===61||L===62||L===96?r(L):L===34||L===39?(e.consume(L),s=L,J):Pt(L)?(f=oe,Ie(L)):gn(L)?(e.consume(L),oe):(e.consume(L),pe)}function J(L){return L===s?(e.consume(L),s=void 0,ke):L===null?r(L):Pt(L)?(f=J,Ie(L)):(e.consume(L),J)}function pe(L){return L===null||L===34||L===39||L===60||L===61||L===96?r(L):L===47||L===62||na(L)?ne(L):(e.consume(L),pe)}function ke(L){return L===47||L===62||na(L)?ne(L):r(L)}function xe(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),n):r(L)}function Ie(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),se}function se(L){return gn(L)?jn(e,Te,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):Te(L)}function Te(L){return e.enter("htmlTextData"),f(L)}}const FS={name:"labelEnd",tokenize:aM,resolveTo:iM,resolveAll:rM},eM={tokenize:oM},tM={tokenize:lM},nM={tokenize:sM};function rM(e){let n=-1;for(;++n<e.length;){const r=e[n][1];(r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd")&&(e.splice(n+1,r.type==="labelImage"?4:2),r.type="data",n++)}return e}function iM(e,n){let r=e.length,a=0,s,c,f,h;for(;r--;)if(s=e[r][1],c){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(f){if(e[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(c=r,s.type!=="labelLink")){a=2;break}}else s.type==="labelEnd"&&(f=r);const v={type:e[c][1].type==="labelLink"?"link":"image",start:Object.assign({},e[c][1].start),end:Object.assign({},e[e.length-1][1].end)},y={type:"label",start:Object.assign({},e[c][1].start),end:Object.assign({},e[f][1].end)},S={type:"labelText",start:Object.assign({},e[c+a+2][1].end),end:Object.assign({},e[f-2][1].start)};return h=[["enter",v,n],["enter",y,n]],h=Qa(h,e.slice(c+1,c+a+3)),h=Qa(h,[["enter",S,n]]),h=Qa(h,MS(n.parser.constructs.insideSpan.null,e.slice(c+a+4,f-3),n)),h=Qa(h,[["exit",S,n],e[f-2],e[f-1],["exit",y,n]]),h=Qa(h,e.slice(f+1)),h=Qa(h,[["exit",v,n]]),tl(e,c,e.length,h),e}function aM(e,n,r){const a=this;let s=a.events.length,c,f;for(;s--;)if((a.events[s][1].type==="labelImage"||a.events[s][1].type==="labelLink")&&!a.events[s][1]._balanced){c=a.events[s][1];break}return h;function h(C){return c?c._inactive?E(C):(f=a.parser.defined.includes(ed(a.sliceSerialize({start:c.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(C),e.exit("labelMarker"),e.exit("labelEnd"),v):r(C)}function v(C){return C===40?e.attempt(eM,S,f?S:E)(C):C===91?e.attempt(tM,S,f?y:E)(C):f?S(C):E(C)}function y(C){return e.attempt(nM,S,E)(C)}function S(C){return n(C)}function E(C){return c._balanced=!0,r(C)}}function oM(e,n,r){return a;function a(E){return e.enter("resource"),e.enter("resourceMarker"),e.consume(E),e.exit("resourceMarker"),s}function s(E){return na(E)?Mh(e,c)(E):c(E)}function c(E){return E===41?S(E):Xk(e,f,h,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(E)}function f(E){return na(E)?Mh(e,v)(E):S(E)}function h(E){return r(E)}function v(E){return E===34||E===39||E===40?e_(e,y,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(E):S(E)}function y(E){return na(E)?Mh(e,S)(E):S(E)}function S(E){return E===41?(e.enter("resourceMarker"),e.consume(E),e.exit("resourceMarker"),e.exit("resource"),n):r(E)}}function lM(e,n,r){const a=this;return s;function s(h){return Jk.call(a,e,c,f,"reference","referenceMarker","referenceString")(h)}function c(h){return a.parser.defined.includes(ed(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?n(h):r(h)}function f(h){return r(h)}}function sM(e,n,r){return a;function a(c){return e.enter("reference"),e.enter("referenceMarker"),e.consume(c),e.exit("referenceMarker"),s}function s(c){return c===93?(e.enter("referenceMarker"),e.consume(c),e.exit("referenceMarker"),e.exit("reference"),n):r(c)}}const uM={name:"labelStartImage",tokenize:cM,resolveAll:FS.resolveAll};function cM(e,n,r){const a=this;return s;function s(h){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(h),e.exit("labelImageMarker"),c}function c(h){return h===91?(e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelImage"),f):r(h)}function f(h){return h===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(h):n(h)}}const fM={name:"labelStartLink",tokenize:dM,resolveAll:FS.resolveAll};function dM(e,n,r){const a=this;return s;function s(f){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelLink"),c}function c(f){return f===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(f):n(f)}}const IS={name:"lineEnding",tokenize:pM};function pM(e,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),jn(e,n,"linePrefix")}}const $0={name:"thematicBreak",tokenize:hM};function hM(e,n,r){let a=0,s;return c;function c(y){return e.enter("thematicBreak"),f(y)}function f(y){return s=y,h(y)}function h(y){return y===s?(e.enter("thematicBreakSequence"),v(y)):a>=3&&(y===null||Pt(y))?(e.exit("thematicBreak"),n(y)):r(y)}function v(y){return y===s?(e.consume(y),a++,v):(e.exit("thematicBreakSequence"),gn(y)?jn(e,h,"whitespace")(y):h(y))}}const ra={name:"list",tokenize:gM,continuation:{tokenize:yM},exit:SM},mM={tokenize:EM,partial:!0},vM={tokenize:bM,partial:!0};function gM(e,n,r){const a=this,s=a.events[a.events.length-1];let c=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,f=0;return h;function h(x){const R=a.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(R==="listUnordered"?!a.containerState.marker||x===a.containerState.marker:AS(x)){if(a.containerState.type||(a.containerState.type=R,e.enter(R,{_container:!0})),R==="listUnordered")return e.enter("listItemPrefix"),x===42||x===45?e.check($0,r,y)(x):y(x);if(!a.interrupt||x===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),v(x)}return r(x)}function v(x){return AS(x)&&++f<10?(e.consume(x),v):(!a.interrupt||f<2)&&(a.containerState.marker?x===a.containerState.marker:x===41||x===46)?(e.exit("listItemValue"),y(x)):r(x)}function y(x){return e.enter("listItemMarker"),e.consume(x),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||x,e.check(j0,a.interrupt?r:S,e.attempt(mM,C,E))}function S(x){return a.containerState.initialBlankLine=!0,c++,C(x)}function E(x){return gn(x)?(e.enter("listItemPrefixWhitespace"),e.consume(x),e.exit("listItemPrefixWhitespace"),C):r(x)}function C(x){return a.containerState.size=c+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(x)}}function yM(e,n,r){const a=this;return a.containerState._closeFlow=void 0,e.check(j0,s,c);function s(h){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,jn(e,n,"listItemIndent",a.containerState.size+1)(h)}function c(h){return a.containerState.furtherBlankLines||!gn(h)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,f(h)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(vM,n,f)(h))}function f(h){return a.containerState._closeFlow=!0,a.interrupt=void 0,jn(e,e.attempt(ra,n,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h)}}function bM(e,n,r){const a=this;return jn(e,s,"listItemIndent",a.containerState.size+1);function s(c){const f=a.events[a.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===a.containerState.size?n(c):r(c)}}function SM(e){e.exit(this.containerState.type)}function EM(e,n,r){const a=this;return jn(e,s,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function s(c){const f=a.events[a.events.length-1];return!gn(c)&&f&&f[1].type==="listItemPrefixWhitespace"?n(c):r(c)}}const n_={name:"setextUnderline",tokenize:wM,resolveTo:xM};function xM(e,n){let r=e.length,a,s,c;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){a=r;break}e[r][1].type==="paragraph"&&(s=r)}else e[r][1].type==="content"&&e.splice(r,1),!c&&e[r][1].type==="definition"&&(c=r);const f={type:"setextHeading",start:Object.assign({},e[s][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[s][1].type="setextHeadingText",c?(e.splice(s,0,["enter",f,n]),e.splice(c+1,0,["exit",e[a][1],n]),e[a][1].end=Object.assign({},e[c][1].end)):e[a][1]=f,e.push(["exit",f,n]),e}function wM(e,n,r){const a=this;let s;return c;function c(y){let S=a.events.length,E;for(;S--;)if(a.events[S][1].type!=="lineEnding"&&a.events[S][1].type!=="linePrefix"&&a.events[S][1].type!=="content"){E=a.events[S][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||E)?(e.enter("setextHeadingLine"),s=y,f(y)):r(y)}function f(y){return e.enter("setextHeadingLineSequence"),h(y)}function h(y){return y===s?(e.consume(y),h):(e.exit("setextHeadingLineSequence"),gn(y)?jn(e,v,"lineSuffix")(y):v(y))}function v(y){return y===null||Pt(y)?(e.exit("setextHeadingLine"),n(y)):r(y)}}const CM={tokenize:kM};function kM(e){const n=this,r=e.attempt(j0,a,e.attempt(this.parser.constructs.flowInitial,s,jn(e,e.attempt(this.parser.constructs.flow,s,e.attempt(DA,s)),"linePrefix")));return r;function a(c){if(c===null){e.consume(c);return}return e.enter("lineEndingBlank"),e.consume(c),e.exit("lineEndingBlank"),n.currentConstruct=void 0,r}function s(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),n.currentConstruct=void 0,r}}const _M={resolveAll:i_()},TM=r_("string"),RM=r_("text");function r_(e){return{tokenize:n,resolveAll:i_(e==="text"?OM:void 0)};function n(r){const a=this,s=this.parser.constructs[e],c=r.attempt(s,f,h);return f;function f(S){return y(S)?c(S):h(S)}function h(S){if(S===null){r.consume(S);return}return r.enter("data"),r.consume(S),v}function v(S){return y(S)?(r.exit("data"),c(S)):(r.consume(S),v)}function y(S){if(S===null)return!0;const E=s[S];let C=-1;if(E)for(;++C<E.length;){const x=E[C];if(!x.previous||x.previous.call(a,a.previous))return!0}return!1}}}function i_(e){return n;function n(r,a){let s=-1,c;for(;++s<=r.length;)c===void 0?r[s]&&r[s][1].type==="data"&&(c=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==c+2&&(r[c][1].end=r[s-1][1].end,r.splice(c+2,s-c-2),s=c+2),c=void 0);return e?e(r,a):r}}function OM(e,n){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const a=e[r-1][1],s=n.sliceStream(a);let c=s.length,f=-1,h=0,v;for(;c--;){const y=s[c];if(typeof y=="string"){for(f=y.length;y.charCodeAt(f-1)===32;)h++,f--;if(f)break;f=-1}else if(y===-2)v=!0,h++;else if(y!==-1){c++;break}}if(h){const y={type:r===e.length||v||h<2?"lineSuffix":"hardBreakTrailing",start:{line:a.end.line,column:a.end.column-h,offset:a.end.offset-h,_index:a.start._index+c,_bufferIndex:c?f:a.start._bufferIndex+f},end:Object.assign({},a.end)};a.end=Object.assign({},y.start),a.start.offset===a.end.offset?Object.assign(a,y):(e.splice(r,0,["enter",y,n],["exit",y,n]),r+=2)}r++}return e}function DM(e,n,r){let a=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const s={},c=[];let f=[],h=[];const v={consume:I,enter:N,exit:B,attempt:H(F),check:H($),interrupt:H($,{interrupt:!0})},y={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:x,sliceSerialize:C,now:R,defineSkip:T,write:E};let S=n.tokenize.call(y,v);return n.resolveAll&&c.push(n),y;function E(ee){return f=Qa(f,ee),D(),f[f.length-1]!==null?[]:(Y(n,0),y.events=MS(c,y.events,y),y.events)}function C(ee,oe){return MM(x(ee),oe)}function x(ee){return AM(f,ee)}function R(){const{line:ee,column:oe,offset:J,_index:pe,_bufferIndex:ke}=a;return{line:ee,column:oe,offset:J,_index:pe,_bufferIndex:ke}}function T(ee){s[ee.line]=ee.column,ve()}function D(){let ee;for(;a._index<f.length;){const oe=f[a._index];if(typeof oe=="string")for(ee=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===ee&&a._bufferIndex<oe.length;)M(oe.charCodeAt(a._bufferIndex));else M(oe)}}function M(ee){S=S(ee)}function I(ee){Pt(ee)?(a.line++,a.column=1,a.offset+=ee===-3?2:1,ve()):ee!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===f[a._index].length&&(a._bufferIndex=-1,a._index++)),y.previous=ee}function N(ee,oe){const J=oe||{};return J.type=ee,J.start=R(),y.events.push(["enter",J,y]),h.push(J),J}function B(ee){const oe=h.pop();return oe.end=R(),y.events.push(["exit",oe,y]),oe}function F(ee,oe){Y(ee,oe.from)}function $(ee,oe){oe.restore()}function H(ee,oe){return J;function J(pe,ke,xe){let Ie,se,Te,L;return Array.isArray(pe)?ye(pe):"tokenize"in pe?ye([pe]):te(pe);function te(Re){return Oe;function Oe($e){const Ge=$e!==null&&Re[$e],Ue=$e!==null&&Re.null,Le=[...Array.isArray(Ge)?Ge:Ge?[Ge]:[],...Array.isArray(Ue)?Ue:Ue?[Ue]:[]];return ye(Le)($e)}}function ye(Re){return Ie=Re,se=0,Re.length===0?xe:U(Re[se])}function U(Re){return Oe;function Oe($e){return L=ne(),Te=Re,Re.partial||(y.currentConstruct=Re),Re.name&&y.parser.constructs.disable.null.includes(Re.name)?We():Re.tokenize.call(oe?Object.assign(Object.create(y),oe):y,v,_e,We)($e)}}function _e(Re){return ee(Te,L),ke}function We(Re){return L.restore(),++se<Ie.length?U(Ie[se]):xe}}}function Y(ee,oe){ee.resolveAll&&!c.includes(ee)&&c.push(ee),ee.resolve&&tl(y.events,oe,y.events.length-oe,ee.resolve(y.events.slice(oe),y)),ee.resolveTo&&(y.events=ee.resolveTo(y.events,y))}function ne(){const ee=R(),oe=y.previous,J=y.currentConstruct,pe=y.events.length,ke=Array.from(h);return{restore:xe,from:pe};function xe(){a=ee,y.previous=oe,y.currentConstruct=J,y.events.length=pe,h=ke,ve()}}function ve(){a.line in s&&a.column<2&&(a.column=s[a.line],a.offset+=s[a.line]-1)}}function AM(e,n){const r=n.start._index,a=n.start._bufferIndex,s=n.end._index,c=n.end._bufferIndex;let f;if(r===s)f=[e[r].slice(a,c)];else{if(f=e.slice(r,s),a>-1){const h=f[0];typeof h=="string"?f[0]=h.slice(a):f.shift()}c>0&&f.push(e[s].slice(0,c))}return f}function MM(e,n){let r=-1;const a=[];let s;for(;++r<e.length;){const c=e[r];let f;if(typeof c=="string")f=c;else switch(c){case-5:{f="\r";break}case-4:{f=`
202
202
  `;break}case-3:{f=`\r
203
- `;break}case-2:{f=n?" ":" ";break}case-1:{if(!n&&s)continue;f=" ";break}default:f=String.fromCharCode(c)}s=c===-2,a.push(f)}return a.join("")}const MM={[42]:ra,[43]:ra,[45]:ra,[48]:ra,[49]:ra,[50]:ra,[51]:ra,[52]:ra,[53]:ra,[54]:ra,[55]:ra,[56]:ra,[57]:ra,[62]:qk},LM={[91]:PA},PM={[-2]:NS,[-1]:NS,[32]:NS},NM=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:LM,disable:{null:[]},document:MM,flow:{[35]:$A,[42]:$0,[45]:[n_,$0],[60]:HA,[61]:n_,[95]:$0,[96]:Gk,[126]:Gk},flowInitial:PM,insideSpan:{null:[LS,kM]},string:{[38]:Zk,[92]:Wk},text:{[-5]:IS,[-4]:IS,[-3]:IS,[33]:sM,[38]:Zk,[42]:LS,[60]:[fA,QA],[91]:cM,[92]:[zA,Wk],[93]:FS,[95]:LS,[96]:CA}},Symbol.toStringTag,{value:"Module"}));function FM(e){const r=K6([NM,...(e||{}).extensions||[]]),a={defined:[],lazy:{},constructs:r,content:s(iA),document:s(oA),flow:s(wM),string:s(_M),text:s(TM)};return a;function s(c){return f;function f(h){return OM(a,c,h)}}}const a_=/[\0\t\n\r]/g;function IM(){let e=1,n="",r=!0,a;return s;function s(c,f,h){const v=[];let y,S,E,C,x;for(c=n+c.toString(f),E=0,n="",r&&(c.charCodeAt(0)===65279&&E++,r=void 0);E<c.length;){if(a_.lastIndex=E,y=a_.exec(c),C=y&&y.index!==void 0?y.index:c.length,x=c.charCodeAt(C),!y){n=c.slice(E);break}if(x===10&&E===C&&a)v.push(-3),a=void 0;else switch(a&&(v.push(-5),a=void 0),E<C&&(v.push(c.slice(E,C)),e+=C-E),x){case 0:{v.push(65533),e++;break}case 9:{for(S=Math.ceil(e/4)*4,v.push(-2);e++<S;)v.push(-1);break}case 10:{v.push(-4),e=1;break}default:a=!0,e=1}E=C+1}return h&&(a&&v.push(-5),n&&v.push(n),v.push(null)),v}}function zM(e){for(;!Qk(e););return e}function o_(e,n){const r=Number.parseInt(e,n);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCharCode(r)}const jM=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function $M(e){return e.replace(jM,UM)}function UM(e,n,r){if(n)return n;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),c=s===120||s===88;return o_(r.slice(c?2:1),c?16:10)}return PS(r)||e}const l_={}.hasOwnProperty,BM=function(e,n,r){return typeof n!="string"&&(r=n,n=void 0),VM(r)(zM(FM(r).document().write(IM()(e,n,!0))))};function VM(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:h(ar),autolinkProtocol:ee,autolinkEmail:ee,atxHeading:h(He),blockQuote:h(Le),characterEscape:ee,characterReference:ee,codeFenced:h(me),codeFencedFenceInfo:v,codeFencedFenceMeta:v,codeIndented:h(me,v),codeText:h(ze,v),codeTextData:ee,data:ee,codeFlowValue:ee,definition:h(be),definitionDestinationString:v,definitionLabelString:v,definitionTitleString:v,emphasis:h(ht),hardBreakEscape:h(Rt),hardBreakTrailing:h(Rt),htmlFlow:h(Gt,v),htmlFlowData:ee,htmlText:h(Gt,v),htmlTextData:ee,image:h(Tn),label:v,link:h(ar),listItem:h(dr),listItemValue:R,listOrdered:h(or,x),listUnordered:h(or),paragraph:h(Jn),reference:We,referenceString:v,resourceDestinationString:v,resourceTitleString:v,setextHeading:h(He),strong:h(pr),thematicBreak:h(Ln)},exit:{atxHeading:S(),atxHeadingSequence:H,autolink:S(),autolinkEmail:Ue,autolinkProtocol:Ge,blockQuote:S(),characterEscapeValue:oe,characterReferenceMarkerHexadecimal:Oe,characterReferenceMarkerNumeric:Oe,characterReferenceValue:$e,codeFenced:S(I),codeFencedFence:M,codeFencedFenceInfo:T,codeFencedFenceMeta:D,codeFlowValue:oe,codeIndented:S(N),codeText:S(Ie),codeTextData:oe,data:oe,definition:S(),definitionDestinationString:$,definitionLabelString:B,definitionTitleString:F,emphasis:S(),hardBreakEscape:S(pe),hardBreakTrailing:S(pe),htmlFlow:S(ke),htmlFlowData:oe,htmlText:S(xe),htmlTextData:oe,image:S(Te),label:te,labelText:L,lineEnding:J,link:S(se),listItem:S(),listOrdered:S(),listUnordered:S(),paragraph:S(),referenceString:Re,resourceDestinationString:ye,resourceTitleString:U,resource:_e,setextHeading:S(ve),setextHeadingLineSequence:ne,setextHeadingText:Y,strong:S(),thematicBreak:S()}};s_(n,(e||{}).mdastExtensions||[]);const r={};return a;function a(fe){let Ne={type:"root",children:[]};const mt={stack:[Ne],tokenStack:[],config:n,enter:y,exit:E,buffer:v,resume:C,setData:c,getData:f},qt=[];let De=-1;for(;++De<fe.length;)if(fe[De][1].type==="listOrdered"||fe[De][1].type==="listUnordered")if(fe[De][0]==="enter")qt.push(De);else{const it=qt.pop();De=s(fe,it,De)}for(De=-1;++De<fe.length;){const it=n[fe[De][0]];l_.call(it,fe[De][1].type)&&it[fe[De][1].type].call(Object.assign({sliceSerialize:fe[De][2].sliceSerialize},mt),fe[De][1])}if(mt.tokenStack.length>0){const it=mt.tokenStack[mt.tokenStack.length-1];(it[1]||u_).call(mt,void 0,it[0])}for(Ne.position={start:Js(fe.length>0?fe[0][1].start:{line:1,column:1,offset:0}),end:Js(fe.length>0?fe[fe.length-2][1].end:{line:1,column:1,offset:0})},De=-1;++De<n.transforms.length;)Ne=n.transforms[De](Ne)||Ne;return Ne}function s(fe,Ne,mt){let qt=Ne-1,De=-1,it=!1,Ot,Yt,yn,$n;for(;++qt<=mt;){const It=fe[qt];if(It[1].type==="listUnordered"||It[1].type==="listOrdered"||It[1].type==="blockQuote"?(It[0]==="enter"?De++:De--,$n=void 0):It[1].type==="lineEndingBlank"?It[0]==="enter"&&(Ot&&!$n&&!De&&!yn&&(yn=qt),$n=void 0):It[1].type==="linePrefix"||It[1].type==="listItemValue"||It[1].type==="listItemMarker"||It[1].type==="listItemPrefix"||It[1].type==="listItemPrefixWhitespace"||($n=void 0),!De&&It[0]==="enter"&&It[1].type==="listItemPrefix"||De===-1&&It[0]==="exit"&&(It[1].type==="listUnordered"||It[1].type==="listOrdered")){if(Ot){let Or=qt;for(Yt=void 0;Or--;){const tn=fe[Or];if(tn[1].type==="lineEnding"||tn[1].type==="lineEndingBlank"){if(tn[0]==="exit")continue;Yt&&(fe[Yt][1].type="lineEndingBlank",it=!0),tn[1].type="lineEnding",Yt=Or}else if(!(tn[1].type==="linePrefix"||tn[1].type==="blockQuotePrefix"||tn[1].type==="blockQuotePrefixWhitespace"||tn[1].type==="blockQuoteMarker"||tn[1].type==="listItemIndent"))break}yn&&(!Yt||yn<Yt)&&(Ot._spread=!0),Ot.end=Object.assign({},Yt?fe[Yt][1].start:It[1].end),fe.splice(Yt||qt,0,["exit",Ot,It[2]]),qt++,mt++}It[1].type==="listItemPrefix"&&(Ot={type:"listItem",_spread:!1,start:Object.assign({},It[1].start),end:void 0},fe.splice(qt,0,["enter",Ot,It[2]]),qt++,mt++,yn=void 0,$n=!0)}}return fe[Ne][1]._spread=it,mt}function c(fe,Ne){r[fe]=Ne}function f(fe){return r[fe]}function h(fe,Ne){return mt;function mt(qt){y.call(this,fe(qt),qt),Ne&&Ne.call(this,qt)}}function v(){this.stack.push({type:"fragment",children:[]})}function y(fe,Ne,mt){return this.stack[this.stack.length-1].children.push(fe),this.stack.push(fe),this.tokenStack.push([Ne,mt]),fe.position={start:Js(Ne.start)},fe}function S(fe){return Ne;function Ne(mt){fe&&fe.call(this,mt),E.call(this,mt)}}function E(fe,Ne){const mt=this.stack.pop(),qt=this.tokenStack.pop();if(qt)qt[0].type!==fe.type&&(Ne?Ne.call(this,fe,qt[0]):(qt[1]||u_).call(this,fe,qt[0]));else throw new Error("Cannot close `"+fe.type+"` ("+Oh({start:fe.start,end:fe.end})+"): it’s not open");return mt.position.end=Js(fe.end),mt}function C(){return Y6(this.stack.pop())}function x(){c("expectingFirstListItemValue",!0)}function R(fe){if(f("expectingFirstListItemValue")){const Ne=this.stack[this.stack.length-2];Ne.start=Number.parseInt(this.sliceSerialize(fe),10),c("expectingFirstListItemValue")}}function T(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.lang=fe}function D(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.meta=fe}function M(){f("flowCodeInside")||(this.buffer(),c("flowCodeInside",!0))}function I(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=fe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c("flowCodeInside")}function N(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=fe.replace(/(\r?\n|\r)$/g,"")}function B(fe){const Ne=this.resume(),mt=this.stack[this.stack.length-1];mt.label=Ne,mt.identifier=ed(this.sliceSerialize(fe)).toLowerCase()}function F(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.title=fe}function $(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.url=fe}function H(fe){const Ne=this.stack[this.stack.length-1];if(!Ne.depth){const mt=this.sliceSerialize(fe).length;Ne.depth=mt}}function Y(){c("setextHeadingSlurpLineEnding",!0)}function ne(fe){const Ne=this.stack[this.stack.length-1];Ne.depth=this.sliceSerialize(fe).charCodeAt(0)===61?1:2}function ve(){c("setextHeadingSlurpLineEnding")}function ee(fe){const Ne=this.stack[this.stack.length-1];let mt=Ne.children[Ne.children.length-1];(!mt||mt.type!=="text")&&(mt=Yn(),mt.position={start:Js(fe.start)},Ne.children.push(mt)),this.stack.push(mt)}function oe(fe){const Ne=this.stack.pop();Ne.value+=this.sliceSerialize(fe),Ne.position.end=Js(fe.end)}function J(fe){const Ne=this.stack[this.stack.length-1];if(f("atHardBreak")){const mt=Ne.children[Ne.children.length-1];mt.position.end=Js(fe.end),c("atHardBreak");return}!f("setextHeadingSlurpLineEnding")&&n.canContainEols.includes(Ne.type)&&(ee.call(this,fe),oe.call(this,fe))}function pe(){c("atHardBreak",!0)}function ke(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=fe}function xe(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=fe}function Ie(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=fe}function se(){const fe=this.stack[this.stack.length-1];if(f("inReference")){const Ne=f("referenceType")||"shortcut";fe.type+="Reference",fe.referenceType=Ne,delete fe.url,delete fe.title}else delete fe.identifier,delete fe.label;c("referenceType")}function Te(){const fe=this.stack[this.stack.length-1];if(f("inReference")){const Ne=f("referenceType")||"shortcut";fe.type+="Reference",fe.referenceType=Ne,delete fe.url,delete fe.title}else delete fe.identifier,delete fe.label;c("referenceType")}function L(fe){const Ne=this.sliceSerialize(fe),mt=this.stack[this.stack.length-2];mt.label=$M(Ne),mt.identifier=ed(Ne).toLowerCase()}function te(){const fe=this.stack[this.stack.length-1],Ne=this.resume(),mt=this.stack[this.stack.length-1];if(c("inReference",!0),mt.type==="link"){const qt=fe.children;mt.children=qt}else mt.alt=Ne}function ye(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.url=fe}function U(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.title=fe}function _e(){c("inReference")}function We(){c("referenceType","collapsed")}function Re(fe){const Ne=this.resume(),mt=this.stack[this.stack.length-1];mt.label=Ne,mt.identifier=ed(this.sliceSerialize(fe)).toLowerCase(),c("referenceType","full")}function Oe(fe){c("characterReferenceType",fe.type)}function $e(fe){const Ne=this.sliceSerialize(fe),mt=f("characterReferenceType");let qt;mt?(qt=o_(Ne,mt==="characterReferenceMarkerNumeric"?10:16),c("characterReferenceType")):qt=PS(Ne);const De=this.stack.pop();De.value+=qt,De.position.end=Js(fe.end)}function Ge(fe){oe.call(this,fe);const Ne=this.stack[this.stack.length-1];Ne.url=this.sliceSerialize(fe)}function Ue(fe){oe.call(this,fe);const Ne=this.stack[this.stack.length-1];Ne.url="mailto:"+this.sliceSerialize(fe)}function Le(){return{type:"blockquote",children:[]}}function me(){return{type:"code",lang:null,meta:null,value:""}}function ze(){return{type:"inlineCode",value:""}}function be(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ht(){return{type:"emphasis",children:[]}}function He(){return{type:"heading",depth:void 0,children:[]}}function Rt(){return{type:"break"}}function Gt(){return{type:"html",value:""}}function Tn(){return{type:"image",title:null,url:"",alt:null}}function ar(){return{type:"link",title:null,url:"",children:[]}}function or(fe){return{type:"list",ordered:fe.type==="listOrdered",start:null,spread:fe._spread,children:[]}}function dr(fe){return{type:"listItem",spread:fe._spread,checked:null,children:[]}}function Jn(){return{type:"paragraph",children:[]}}function pr(){return{type:"strong",children:[]}}function Yn(){return{type:"text",value:""}}function Ln(){return{type:"thematicBreak"}}}function Js(e){return{line:e.line,column:e.column,offset:e.offset}}function s_(e,n){let r=-1;for(;++r<n.length;){const a=n[r];Array.isArray(a)?s_(e,a):HM(e,a)}}function HM(e,n){let r;for(r in n)if(l_.call(n,r)){if(r==="canContainEols"){const a=n[r];a&&e[r].push(...a)}else if(r==="transforms"){const a=n[r];a&&e[r].push(...a)}else if(r==="enter"||r==="exit"){const a=n[r];a&&Object.assign(e[r],a)}}}function u_(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Oh({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Oh({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Oh({start:n.start,end:n.end})+") is still open")}function qM(e){Object.assign(this,{Parser:r=>{const a=this.data("settings");return BM(r,Object.assign({},a,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function WM(e,n){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,r),e.applyData(n,r)}function YM(e,n){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,r),[e.applyData(n,r),{type:"text",value:`
204
- `}]}function ZM(e,n){const r=n.value?n.value+`
205
- `:"",a=n.lang?n.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,s={};a&&(s.className=["language-"+a]);let c={type:"element",tagName:"code",properties:s,children:[{type:"text",value:r}]};return n.meta&&(c.data={meta:n.meta}),e.patch(n,c),c=e.applyData(n,c),c={type:"element",tagName:"pre",properties:{},children:[c]},e.patch(n,c),c}function KM(e,n){const r={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function GM(e,n){const r={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function td(e){const n=[];let r=-1,a=0,s=0;for(;++r<e.length;){const c=e.charCodeAt(r);let f="";if(c===37&&Da(e.charCodeAt(r+1))&&Da(e.charCodeAt(r+2)))s=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(f=String.fromCharCode(c));else if(c>55295&&c<57344){const h=e.charCodeAt(r+1);c<56320&&h>56319&&h<57344?(f=String.fromCharCode(c,h),s=1):f="�"}else f=String.fromCharCode(c);f&&(n.push(e.slice(a,r),encodeURIComponent(f)),a=r+s+1,f=""),s&&(r+=s,s=0)}return n.join("")+e.slice(a)}function c_(e,n){const r=String(n.identifier).toUpperCase(),a=td(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let c;s===-1?(e.footnoteOrder.push(r),e.footnoteCounts[r]=1,c=e.footnoteOrder.length):(e.footnoteCounts[r]++,c=s+1);const f=e.footnoteCounts[r],h={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+a,id:e.clobberPrefix+"fnref-"+a+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(n,h);const v={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(n,v),e.applyData(n,v)}function QM(e,n){const r=e.footnoteById;let a=1;for(;a in r;)a++;const s=String(a);return r[s]={type:"footnoteDefinition",identifier:s,children:[{type:"paragraph",children:n.children}],position:n.position},c_(e,{type:"footnoteReference",identifier:s,position:n.position})}function XM(e,n){const r={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function JM(e,n){if(e.dangerous){const r={type:"raw",value:n.value};return e.patch(n,r),e.applyData(n,r)}return null}function f_(e,n){const r=n.referenceType;let a="]";if(r==="collapsed"?a+="[]":r==="full"&&(a+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return{type:"text",value:"!["+n.alt+a};const s=e.all(n),c=s[0];c&&c.type==="text"?c.value="["+c.value:s.unshift({type:"text",value:"["});const f=s[s.length-1];return f&&f.type==="text"?f.value+=a:s.push({type:"text",value:a}),s}function e8(e,n){const r=e.definition(n.identifier);if(!r)return f_(e,n);const a={src:td(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const s={type:"element",tagName:"img",properties:a,children:[]};return e.patch(n,s),e.applyData(n,s)}function t8(e,n){const r={src:td(n.url)};n.alt!==null&&n.alt!==void 0&&(r.alt=n.alt),n.title!==null&&n.title!==void 0&&(r.title=n.title);const a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(n,a),e.applyData(n,a)}function n8(e,n){const r={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,r);const a={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(n,a),e.applyData(n,a)}function r8(e,n){const r=e.definition(n.identifier);if(!r)return f_(e,n);const a={href:td(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const s={type:"element",tagName:"a",properties:a,children:e.all(n)};return e.patch(n,s),e.applyData(n,s)}function i8(e,n){const r={href:td(n.url)};n.title!==null&&n.title!==void 0&&(r.title=n.title);const a={type:"element",tagName:"a",properties:r,children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function a8(e,n,r){const a=e.all(n),s=r?o8(r):d_(n),c={},f=[];if(typeof n.checked=="boolean"){const S=a[0];let E;S&&S.type==="element"&&S.tagName==="p"?E=S:(E={type:"element",tagName:"p",properties:{},children:[]},a.unshift(E)),E.children.length>0&&E.children.unshift({type:"text",value:" "}),E.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let h=-1;for(;++h<a.length;){const S=a[h];(s||h!==0||S.type!=="element"||S.tagName!=="p")&&f.push({type:"text",value:`
203
+ `;break}case-2:{f=n?" ":" ";break}case-1:{if(!n&&s)continue;f=" ";break}default:f=String.fromCharCode(c)}s=c===-2,a.push(f)}return a.join("")}const LM={[42]:ra,[43]:ra,[45]:ra,[48]:ra,[49]:ra,[50]:ra,[51]:ra,[52]:ra,[53]:ra,[54]:ra,[55]:ra,[56]:ra,[57]:ra,[62]:qk},PM={[91]:NA},NM={[-2]:NS,[-1]:NS,[32]:NS},FM=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:PM,disable:{null:[]},document:LM,flow:{[35]:UA,[42]:$0,[45]:[n_,$0],[60]:qA,[61]:n_,[95]:$0,[96]:Gk,[126]:Gk},flowInitial:NM,insideSpan:{null:[LS,_M]},string:{[38]:Zk,[92]:Wk},text:{[-5]:IS,[-4]:IS,[-3]:IS,[33]:uM,[38]:Zk,[42]:LS,[60]:[dA,XA],[91]:fM,[92]:[jA,Wk],[93]:FS,[95]:LS,[96]:kA}},Symbol.toStringTag,{value:"Module"}));function IM(e){const r=G6([FM,...(e||{}).extensions||[]]),a={defined:[],lazy:{},constructs:r,content:s(aA),document:s(lA),flow:s(CM),string:s(TM),text:s(RM)};return a;function s(c){return f;function f(h){return DM(a,c,h)}}}const a_=/[\0\t\n\r]/g;function zM(){let e=1,n="",r=!0,a;return s;function s(c,f,h){const v=[];let y,S,E,C,x;for(c=n+c.toString(f),E=0,n="",r&&(c.charCodeAt(0)===65279&&E++,r=void 0);E<c.length;){if(a_.lastIndex=E,y=a_.exec(c),C=y&&y.index!==void 0?y.index:c.length,x=c.charCodeAt(C),!y){n=c.slice(E);break}if(x===10&&E===C&&a)v.push(-3),a=void 0;else switch(a&&(v.push(-5),a=void 0),E<C&&(v.push(c.slice(E,C)),e+=C-E),x){case 0:{v.push(65533),e++;break}case 9:{for(S=Math.ceil(e/4)*4,v.push(-2);e++<S;)v.push(-1);break}case 10:{v.push(-4),e=1;break}default:a=!0,e=1}E=C+1}return h&&(a&&v.push(-5),n&&v.push(n),v.push(null)),v}}function jM(e){for(;!Qk(e););return e}function o_(e,n){const r=Number.parseInt(e,n);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCharCode(r)}const $M=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function UM(e){return e.replace($M,BM)}function BM(e,n,r){if(n)return n;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),c=s===120||s===88;return o_(r.slice(c?2:1),c?16:10)}return PS(r)||e}const l_={}.hasOwnProperty,VM=function(e,n,r){return typeof n!="string"&&(r=n,n=void 0),HM(r)(jM(IM(r).document().write(zM()(e,n,!0))))};function HM(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:h(ar),autolinkProtocol:ee,autolinkEmail:ee,atxHeading:h(He),blockQuote:h(Le),characterEscape:ee,characterReference:ee,codeFenced:h(me),codeFencedFenceInfo:v,codeFencedFenceMeta:v,codeIndented:h(me,v),codeText:h(ze,v),codeTextData:ee,data:ee,codeFlowValue:ee,definition:h(be),definitionDestinationString:v,definitionLabelString:v,definitionTitleString:v,emphasis:h(ht),hardBreakEscape:h(Rt),hardBreakTrailing:h(Rt),htmlFlow:h(Gt,v),htmlFlowData:ee,htmlText:h(Gt,v),htmlTextData:ee,image:h(Tn),label:v,link:h(ar),listItem:h(dr),listItemValue:R,listOrdered:h(or,x),listUnordered:h(or),paragraph:h(Jn),reference:We,referenceString:v,resourceDestinationString:v,resourceTitleString:v,setextHeading:h(He),strong:h(pr),thematicBreak:h(Ln)},exit:{atxHeading:S(),atxHeadingSequence:H,autolink:S(),autolinkEmail:Ue,autolinkProtocol:Ge,blockQuote:S(),characterEscapeValue:oe,characterReferenceMarkerHexadecimal:Oe,characterReferenceMarkerNumeric:Oe,characterReferenceValue:$e,codeFenced:S(I),codeFencedFence:M,codeFencedFenceInfo:T,codeFencedFenceMeta:D,codeFlowValue:oe,codeIndented:S(N),codeText:S(Ie),codeTextData:oe,data:oe,definition:S(),definitionDestinationString:$,definitionLabelString:B,definitionTitleString:F,emphasis:S(),hardBreakEscape:S(pe),hardBreakTrailing:S(pe),htmlFlow:S(ke),htmlFlowData:oe,htmlText:S(xe),htmlTextData:oe,image:S(Te),label:te,labelText:L,lineEnding:J,link:S(se),listItem:S(),listOrdered:S(),listUnordered:S(),paragraph:S(),referenceString:Re,resourceDestinationString:ye,resourceTitleString:U,resource:_e,setextHeading:S(ve),setextHeadingLineSequence:ne,setextHeadingText:Y,strong:S(),thematicBreak:S()}};s_(n,(e||{}).mdastExtensions||[]);const r={};return a;function a(fe){let Ne={type:"root",children:[]};const mt={stack:[Ne],tokenStack:[],config:n,enter:y,exit:E,buffer:v,resume:C,setData:c,getData:f},qt=[];let De=-1;for(;++De<fe.length;)if(fe[De][1].type==="listOrdered"||fe[De][1].type==="listUnordered")if(fe[De][0]==="enter")qt.push(De);else{const it=qt.pop();De=s(fe,it,De)}for(De=-1;++De<fe.length;){const it=n[fe[De][0]];l_.call(it,fe[De][1].type)&&it[fe[De][1].type].call(Object.assign({sliceSerialize:fe[De][2].sliceSerialize},mt),fe[De][1])}if(mt.tokenStack.length>0){const it=mt.tokenStack[mt.tokenStack.length-1];(it[1]||u_).call(mt,void 0,it[0])}for(Ne.position={start:Js(fe.length>0?fe[0][1].start:{line:1,column:1,offset:0}),end:Js(fe.length>0?fe[fe.length-2][1].end:{line:1,column:1,offset:0})},De=-1;++De<n.transforms.length;)Ne=n.transforms[De](Ne)||Ne;return Ne}function s(fe,Ne,mt){let qt=Ne-1,De=-1,it=!1,Ot,Yt,yn,$n;for(;++qt<=mt;){const It=fe[qt];if(It[1].type==="listUnordered"||It[1].type==="listOrdered"||It[1].type==="blockQuote"?(It[0]==="enter"?De++:De--,$n=void 0):It[1].type==="lineEndingBlank"?It[0]==="enter"&&(Ot&&!$n&&!De&&!yn&&(yn=qt),$n=void 0):It[1].type==="linePrefix"||It[1].type==="listItemValue"||It[1].type==="listItemMarker"||It[1].type==="listItemPrefix"||It[1].type==="listItemPrefixWhitespace"||($n=void 0),!De&&It[0]==="enter"&&It[1].type==="listItemPrefix"||De===-1&&It[0]==="exit"&&(It[1].type==="listUnordered"||It[1].type==="listOrdered")){if(Ot){let Or=qt;for(Yt=void 0;Or--;){const tn=fe[Or];if(tn[1].type==="lineEnding"||tn[1].type==="lineEndingBlank"){if(tn[0]==="exit")continue;Yt&&(fe[Yt][1].type="lineEndingBlank",it=!0),tn[1].type="lineEnding",Yt=Or}else if(!(tn[1].type==="linePrefix"||tn[1].type==="blockQuotePrefix"||tn[1].type==="blockQuotePrefixWhitespace"||tn[1].type==="blockQuoteMarker"||tn[1].type==="listItemIndent"))break}yn&&(!Yt||yn<Yt)&&(Ot._spread=!0),Ot.end=Object.assign({},Yt?fe[Yt][1].start:It[1].end),fe.splice(Yt||qt,0,["exit",Ot,It[2]]),qt++,mt++}It[1].type==="listItemPrefix"&&(Ot={type:"listItem",_spread:!1,start:Object.assign({},It[1].start),end:void 0},fe.splice(qt,0,["enter",Ot,It[2]]),qt++,mt++,yn=void 0,$n=!0)}}return fe[Ne][1]._spread=it,mt}function c(fe,Ne){r[fe]=Ne}function f(fe){return r[fe]}function h(fe,Ne){return mt;function mt(qt){y.call(this,fe(qt),qt),Ne&&Ne.call(this,qt)}}function v(){this.stack.push({type:"fragment",children:[]})}function y(fe,Ne,mt){return this.stack[this.stack.length-1].children.push(fe),this.stack.push(fe),this.tokenStack.push([Ne,mt]),fe.position={start:Js(Ne.start)},fe}function S(fe){return Ne;function Ne(mt){fe&&fe.call(this,mt),E.call(this,mt)}}function E(fe,Ne){const mt=this.stack.pop(),qt=this.tokenStack.pop();if(qt)qt[0].type!==fe.type&&(Ne?Ne.call(this,fe,qt[0]):(qt[1]||u_).call(this,fe,qt[0]));else throw new Error("Cannot close `"+fe.type+"` ("+Oh({start:fe.start,end:fe.end})+"): it’s not open");return mt.position.end=Js(fe.end),mt}function C(){return Z6(this.stack.pop())}function x(){c("expectingFirstListItemValue",!0)}function R(fe){if(f("expectingFirstListItemValue")){const Ne=this.stack[this.stack.length-2];Ne.start=Number.parseInt(this.sliceSerialize(fe),10),c("expectingFirstListItemValue")}}function T(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.lang=fe}function D(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.meta=fe}function M(){f("flowCodeInside")||(this.buffer(),c("flowCodeInside",!0))}function I(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=fe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c("flowCodeInside")}function N(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=fe.replace(/(\r?\n|\r)$/g,"")}function B(fe){const Ne=this.resume(),mt=this.stack[this.stack.length-1];mt.label=Ne,mt.identifier=ed(this.sliceSerialize(fe)).toLowerCase()}function F(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.title=fe}function $(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.url=fe}function H(fe){const Ne=this.stack[this.stack.length-1];if(!Ne.depth){const mt=this.sliceSerialize(fe).length;Ne.depth=mt}}function Y(){c("setextHeadingSlurpLineEnding",!0)}function ne(fe){const Ne=this.stack[this.stack.length-1];Ne.depth=this.sliceSerialize(fe).charCodeAt(0)===61?1:2}function ve(){c("setextHeadingSlurpLineEnding")}function ee(fe){const Ne=this.stack[this.stack.length-1];let mt=Ne.children[Ne.children.length-1];(!mt||mt.type!=="text")&&(mt=Yn(),mt.position={start:Js(fe.start)},Ne.children.push(mt)),this.stack.push(mt)}function oe(fe){const Ne=this.stack.pop();Ne.value+=this.sliceSerialize(fe),Ne.position.end=Js(fe.end)}function J(fe){const Ne=this.stack[this.stack.length-1];if(f("atHardBreak")){const mt=Ne.children[Ne.children.length-1];mt.position.end=Js(fe.end),c("atHardBreak");return}!f("setextHeadingSlurpLineEnding")&&n.canContainEols.includes(Ne.type)&&(ee.call(this,fe),oe.call(this,fe))}function pe(){c("atHardBreak",!0)}function ke(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=fe}function xe(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=fe}function Ie(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=fe}function se(){const fe=this.stack[this.stack.length-1];if(f("inReference")){const Ne=f("referenceType")||"shortcut";fe.type+="Reference",fe.referenceType=Ne,delete fe.url,delete fe.title}else delete fe.identifier,delete fe.label;c("referenceType")}function Te(){const fe=this.stack[this.stack.length-1];if(f("inReference")){const Ne=f("referenceType")||"shortcut";fe.type+="Reference",fe.referenceType=Ne,delete fe.url,delete fe.title}else delete fe.identifier,delete fe.label;c("referenceType")}function L(fe){const Ne=this.sliceSerialize(fe),mt=this.stack[this.stack.length-2];mt.label=UM(Ne),mt.identifier=ed(Ne).toLowerCase()}function te(){const fe=this.stack[this.stack.length-1],Ne=this.resume(),mt=this.stack[this.stack.length-1];if(c("inReference",!0),mt.type==="link"){const qt=fe.children;mt.children=qt}else mt.alt=Ne}function ye(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.url=fe}function U(){const fe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.title=fe}function _e(){c("inReference")}function We(){c("referenceType","collapsed")}function Re(fe){const Ne=this.resume(),mt=this.stack[this.stack.length-1];mt.label=Ne,mt.identifier=ed(this.sliceSerialize(fe)).toLowerCase(),c("referenceType","full")}function Oe(fe){c("characterReferenceType",fe.type)}function $e(fe){const Ne=this.sliceSerialize(fe),mt=f("characterReferenceType");let qt;mt?(qt=o_(Ne,mt==="characterReferenceMarkerNumeric"?10:16),c("characterReferenceType")):qt=PS(Ne);const De=this.stack.pop();De.value+=qt,De.position.end=Js(fe.end)}function Ge(fe){oe.call(this,fe);const Ne=this.stack[this.stack.length-1];Ne.url=this.sliceSerialize(fe)}function Ue(fe){oe.call(this,fe);const Ne=this.stack[this.stack.length-1];Ne.url="mailto:"+this.sliceSerialize(fe)}function Le(){return{type:"blockquote",children:[]}}function me(){return{type:"code",lang:null,meta:null,value:""}}function ze(){return{type:"inlineCode",value:""}}function be(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ht(){return{type:"emphasis",children:[]}}function He(){return{type:"heading",depth:void 0,children:[]}}function Rt(){return{type:"break"}}function Gt(){return{type:"html",value:""}}function Tn(){return{type:"image",title:null,url:"",alt:null}}function ar(){return{type:"link",title:null,url:"",children:[]}}function or(fe){return{type:"list",ordered:fe.type==="listOrdered",start:null,spread:fe._spread,children:[]}}function dr(fe){return{type:"listItem",spread:fe._spread,checked:null,children:[]}}function Jn(){return{type:"paragraph",children:[]}}function pr(){return{type:"strong",children:[]}}function Yn(){return{type:"text",value:""}}function Ln(){return{type:"thematicBreak"}}}function Js(e){return{line:e.line,column:e.column,offset:e.offset}}function s_(e,n){let r=-1;for(;++r<n.length;){const a=n[r];Array.isArray(a)?s_(e,a):qM(e,a)}}function qM(e,n){let r;for(r in n)if(l_.call(n,r)){if(r==="canContainEols"){const a=n[r];a&&e[r].push(...a)}else if(r==="transforms"){const a=n[r];a&&e[r].push(...a)}else if(r==="enter"||r==="exit"){const a=n[r];a&&Object.assign(e[r],a)}}}function u_(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Oh({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Oh({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Oh({start:n.start,end:n.end})+") is still open")}function WM(e){Object.assign(this,{Parser:r=>{const a=this.data("settings");return VM(r,Object.assign({},a,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function YM(e,n){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,r),e.applyData(n,r)}function ZM(e,n){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,r),[e.applyData(n,r),{type:"text",value:`
204
+ `}]}function KM(e,n){const r=n.value?n.value+`
205
+ `:"",a=n.lang?n.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,s={};a&&(s.className=["language-"+a]);let c={type:"element",tagName:"code",properties:s,children:[{type:"text",value:r}]};return n.meta&&(c.data={meta:n.meta}),e.patch(n,c),c=e.applyData(n,c),c={type:"element",tagName:"pre",properties:{},children:[c]},e.patch(n,c),c}function GM(e,n){const r={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function QM(e,n){const r={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function td(e){const n=[];let r=-1,a=0,s=0;for(;++r<e.length;){const c=e.charCodeAt(r);let f="";if(c===37&&Da(e.charCodeAt(r+1))&&Da(e.charCodeAt(r+2)))s=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(f=String.fromCharCode(c));else if(c>55295&&c<57344){const h=e.charCodeAt(r+1);c<56320&&h>56319&&h<57344?(f=String.fromCharCode(c,h),s=1):f="�"}else f=String.fromCharCode(c);f&&(n.push(e.slice(a,r),encodeURIComponent(f)),a=r+s+1,f=""),s&&(r+=s,s=0)}return n.join("")+e.slice(a)}function c_(e,n){const r=String(n.identifier).toUpperCase(),a=td(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let c;s===-1?(e.footnoteOrder.push(r),e.footnoteCounts[r]=1,c=e.footnoteOrder.length):(e.footnoteCounts[r]++,c=s+1);const f=e.footnoteCounts[r],h={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+a,id:e.clobberPrefix+"fnref-"+a+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(n,h);const v={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(n,v),e.applyData(n,v)}function XM(e,n){const r=e.footnoteById;let a=1;for(;a in r;)a++;const s=String(a);return r[s]={type:"footnoteDefinition",identifier:s,children:[{type:"paragraph",children:n.children}],position:n.position},c_(e,{type:"footnoteReference",identifier:s,position:n.position})}function JM(e,n){const r={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function e8(e,n){if(e.dangerous){const r={type:"raw",value:n.value};return e.patch(n,r),e.applyData(n,r)}return null}function f_(e,n){const r=n.referenceType;let a="]";if(r==="collapsed"?a+="[]":r==="full"&&(a+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return{type:"text",value:"!["+n.alt+a};const s=e.all(n),c=s[0];c&&c.type==="text"?c.value="["+c.value:s.unshift({type:"text",value:"["});const f=s[s.length-1];return f&&f.type==="text"?f.value+=a:s.push({type:"text",value:a}),s}function t8(e,n){const r=e.definition(n.identifier);if(!r)return f_(e,n);const a={src:td(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const s={type:"element",tagName:"img",properties:a,children:[]};return e.patch(n,s),e.applyData(n,s)}function n8(e,n){const r={src:td(n.url)};n.alt!==null&&n.alt!==void 0&&(r.alt=n.alt),n.title!==null&&n.title!==void 0&&(r.title=n.title);const a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(n,a),e.applyData(n,a)}function r8(e,n){const r={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,r);const a={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(n,a),e.applyData(n,a)}function i8(e,n){const r=e.definition(n.identifier);if(!r)return f_(e,n);const a={href:td(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const s={type:"element",tagName:"a",properties:a,children:e.all(n)};return e.patch(n,s),e.applyData(n,s)}function a8(e,n){const r={href:td(n.url)};n.title!==null&&n.title!==void 0&&(r.title=n.title);const a={type:"element",tagName:"a",properties:r,children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function o8(e,n,r){const a=e.all(n),s=r?l8(r):d_(n),c={},f=[];if(typeof n.checked=="boolean"){const S=a[0];let E;S&&S.type==="element"&&S.tagName==="p"?E=S:(E={type:"element",tagName:"p",properties:{},children:[]},a.unshift(E)),E.children.length>0&&E.children.unshift({type:"text",value:" "}),E.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let h=-1;for(;++h<a.length;){const S=a[h];(s||h!==0||S.type!=="element"||S.tagName!=="p")&&f.push({type:"text",value:`
206
206
  `}),S.type==="element"&&S.tagName==="p"&&!s?f.push(...S.children):f.push(S)}const v=a[a.length-1];v&&(s||v.type!=="element"||v.tagName!=="p")&&f.push({type:"text",value:`
207
- `});const y={type:"element",tagName:"li",properties:c,children:f};return e.patch(n,y),e.applyData(n,y)}function o8(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const r=e.children;let a=-1;for(;!n&&++a<r.length;)n=d_(r[a])}return n}function d_(e){const n=e.spread;return n??e.children.length>1}function l8(e,n){const r={},a=e.all(n);let s=-1;for(typeof n.start=="number"&&n.start!==1&&(r.start=n.start);++s<a.length;){const f=a[s];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const c={type:"element",tagName:n.ordered?"ol":"ul",properties:r,children:e.wrap(a,!0)};return e.patch(n,c),e.applyData(n,c)}function s8(e,n){const r={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function u8(e,n){const r={type:"root",children:e.wrap(e.all(n))};return e.patch(n,r),e.applyData(n,r)}function c8(e,n){const r={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}const zS=p_("start"),jS=p_("end");function f8(e){return{start:zS(e),end:jS(e)}}function p_(e){return n;function n(r){const a=r&&r.position&&r.position[e]||{};return{line:a.line||null,column:a.column||null,offset:a.offset>-1?a.offset:null}}}function d8(e,n){const r=e.all(n),a=r.shift(),s=[];if(a){const f={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(n.children[0],f),s.push(f)}if(r.length>0){const f={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},h=zS(n.children[1]),v=jS(n.children[n.children.length-1]);h.line&&v.line&&(f.position={start:h,end:v}),s.push(f)}const c={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(n,c),e.applyData(n,c)}function p8(e,n,r){const a=r?r.children:void 0,c=(a?a.indexOf(n):1)===0?"th":"td",f=r&&r.type==="table"?r.align:void 0,h=f?f.length:n.children.length;let v=-1;const y=[];for(;++v<h;){const E=n.children[v],C={},x=f?f[v]:void 0;x&&(C.align=x);let R={type:"element",tagName:c,properties:C,children:[]};E&&(R.children=e.all(E),e.patch(E,R),R=e.applyData(n,R)),y.push(R)}const S={type:"element",tagName:"tr",properties:{},children:e.wrap(y,!0)};return e.patch(n,S),e.applyData(n,S)}function h8(e,n){const r={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}const h_=9,m_=32;function m8(e){const n=String(e),r=/\r?\n|\r/g;let a=r.exec(n),s=0;const c=[];for(;a;)c.push(v_(n.slice(s,a.index),s>0,!0),a[0]),s=a.index+a[0].length,a=r.exec(n);return c.push(v_(n.slice(s),s>0,!1)),c.join("")}function v_(e,n,r){let a=0,s=e.length;if(n){let c=e.codePointAt(a);for(;c===h_||c===m_;)a++,c=e.codePointAt(a)}if(r){let c=e.codePointAt(s-1);for(;c===h_||c===m_;)s--,c=e.codePointAt(s-1)}return s>a?e.slice(a,s):""}function v8(e,n){const r={type:"text",value:m8(String(n.value))};return e.patch(n,r),e.applyData(n,r)}function g8(e,n){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,r),e.applyData(n,r)}const y8={blockquote:WM,break:YM,code:ZM,delete:KM,emphasis:GM,footnoteReference:c_,footnote:QM,heading:XM,html:JM,imageReference:e8,image:t8,inlineCode:n8,linkReference:r8,link:i8,listItem:a8,list:l8,paragraph:s8,root:u8,strong:c8,table:d8,tableCell:h8,tableRow:p8,text:v8,thematicBreak:g8,toml:U0,yaml:U0,definition:U0,footnoteDefinition:U0};function U0(){return null}const g_=function(e){if(e==null)return x8;if(typeof e=="string")return E8(e);if(typeof e=="object")return Array.isArray(e)?b8(e):S8(e);if(typeof e=="function")return B0(e);throw new Error("Expected function, string, or object as test")};function b8(e){const n=[];let r=-1;for(;++r<e.length;)n[r]=g_(e[r]);return B0(a);function a(...s){let c=-1;for(;++c<n.length;)if(n[c].call(this,...s))return!0;return!1}}function S8(e){return B0(n);function n(r){let a;for(a in e)if(r[a]!==e[a])return!1;return!0}}function E8(e){return B0(n);function n(r){return r&&r.type===e}}function B0(e){return n;function n(r,...a){return!!(r&&typeof r=="object"&&"type"in r&&e.call(this,r,...a))}}function x8(){return!0}function eZ(e){return e}const w8=!0,y_=!1,C8="skip",k8=function(e,n,r,a){typeof n=="function"&&typeof r!="function"&&(a=r,r=n,n=null);const s=g_(n),c=a?-1:1;f(e,void 0,[])();function f(h,v,y){const S=h&&typeof h=="object"?h:{};if(typeof S.type=="string"){const C=typeof S.tagName=="string"?S.tagName:typeof S.name=="string"?S.name:void 0;Object.defineProperty(E,"name",{value:"node ("+(h.type+(C?"<"+C+">":""))+")"})}return E;function E(){let C=[],x,R,T;if((!n||s(h,v,y[y.length-1]||null))&&(C=_8(r(h,y)),C[0]===y_))return C;if(h.children&&C[0]!==C8)for(R=(a?h.children.length:-1)+c,T=y.concat(h);R>-1&&R<h.children.length;){if(x=f(h.children[R],R,T)(),x[0]===y_)return x;R=typeof x[1]=="number"?x[1]:R+c}return C}}};function _8(e){return Array.isArray(e)?e:typeof e=="number"?[w8,e]:[e]}const $S=function(e,n,r,a){typeof n=="function"&&typeof r!="function"&&(a=r,r=n,n=null),k8(e,n,s,a);function s(c,f){const h=f[f.length-1];return r(c,h?h.children.indexOf(c):null,h)}};function T8(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}const b_={}.hasOwnProperty;function R8(e){const n=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return $S(e,"definition",a=>{const s=S_(a.identifier);s&&!b_.call(n,s)&&(n[s]=a)}),r;function r(a){const s=S_(a);return s&&b_.call(n,s)?n[s]:null}}function S_(e){return String(e||"").toUpperCase()}const V0={}.hasOwnProperty;function O8(e,n){const r=n||{},a=r.allowDangerousHtml||!1,s={};return f.dangerous=a,f.clobberPrefix=r.clobberPrefix===void 0||r.clobberPrefix===null?"user-content-":r.clobberPrefix,f.footnoteLabel=r.footnoteLabel||"Footnotes",f.footnoteLabelTagName=r.footnoteLabelTagName||"h2",f.footnoteLabelProperties=r.footnoteLabelProperties||{className:["sr-only"]},f.footnoteBackLabel=r.footnoteBackLabel||"Back to content",f.unknownHandler=r.unknownHandler,f.passThrough=r.passThrough,f.handlers={...y8,...r.handlers},f.definition=R8(e),f.footnoteById=s,f.footnoteOrder=[],f.footnoteCounts={},f.patch=D8,f.applyData=A8,f.one=h,f.all=v,f.wrap=L8,f.augment=c,$S(e,"footnoteDefinition",y=>{const S=String(y.identifier).toUpperCase();V0.call(s,S)||(s[S]=y)}),f;function c(y,S){if(y&&"data"in y&&y.data){const E=y.data;E.hName&&(S.type!=="element"&&(S={type:"element",tagName:"",properties:{},children:[]}),S.tagName=E.hName),S.type==="element"&&E.hProperties&&(S.properties={...S.properties,...E.hProperties}),"children"in S&&S.children&&E.hChildren&&(S.children=E.hChildren)}if(y){const E="type"in y?y:{position:y};T8(E)||(S.position={start:zS(E),end:jS(E)})}return S}function f(y,S,E,C){return Array.isArray(E)&&(C=E,E={}),c(y,{type:"element",tagName:S,properties:E||{},children:C||[]})}function h(y,S){return E_(f,y,S)}function v(y){return US(f,y)}}function D8(e,n){e.position&&(n.position=f8(e))}function A8(e,n){let r=n;if(e&&e.data){const a=e.data.hName,s=e.data.hChildren,c=e.data.hProperties;typeof a=="string"&&(r.type==="element"?r.tagName=a:r={type:"element",tagName:a,properties:{},children:[]}),r.type==="element"&&c&&(r.properties={...r.properties,...c}),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function E_(e,n,r){const a=n&&n.type;if(!a)throw new Error("Expected node, got `"+n+"`");return V0.call(e.handlers,a)?e.handlers[a](e,n,r):e.passThrough&&e.passThrough.includes(a)?"children"in n?{...n,children:US(e,n)}:n:e.unknownHandler?e.unknownHandler(e,n,r):M8(e,n)}function US(e,n){const r=[];if("children"in n){const a=n.children;let s=-1;for(;++s<a.length;){const c=E_(e,a[s],n);if(c){if(s&&a[s-1].type==="break"&&(!Array.isArray(c)&&c.type==="text"&&(c.value=c.value.replace(/^\s+/,"")),!Array.isArray(c)&&c.type==="element")){const f=c.children[0];f&&f.type==="text"&&(f.value=f.value.replace(/^\s+/,""))}Array.isArray(c)?r.push(...c):r.push(c)}}}return r}function M8(e,n){const r=n.data||{},a="value"in n&&!(V0.call(r,"hProperties")||V0.call(r,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:US(e,n)};return e.patch(n,a),e.applyData(n,a)}function L8(e,n){const r=[];let a=-1;for(n&&r.push({type:"text",value:`
207
+ `});const y={type:"element",tagName:"li",properties:c,children:f};return e.patch(n,y),e.applyData(n,y)}function l8(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const r=e.children;let a=-1;for(;!n&&++a<r.length;)n=d_(r[a])}return n}function d_(e){const n=e.spread;return n??e.children.length>1}function s8(e,n){const r={},a=e.all(n);let s=-1;for(typeof n.start=="number"&&n.start!==1&&(r.start=n.start);++s<a.length;){const f=a[s];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const c={type:"element",tagName:n.ordered?"ol":"ul",properties:r,children:e.wrap(a,!0)};return e.patch(n,c),e.applyData(n,c)}function u8(e,n){const r={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function c8(e,n){const r={type:"root",children:e.wrap(e.all(n))};return e.patch(n,r),e.applyData(n,r)}function f8(e,n){const r={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}const zS=p_("start"),jS=p_("end");function d8(e){return{start:zS(e),end:jS(e)}}function p_(e){return n;function n(r){const a=r&&r.position&&r.position[e]||{};return{line:a.line||null,column:a.column||null,offset:a.offset>-1?a.offset:null}}}function p8(e,n){const r=e.all(n),a=r.shift(),s=[];if(a){const f={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(n.children[0],f),s.push(f)}if(r.length>0){const f={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},h=zS(n.children[1]),v=jS(n.children[n.children.length-1]);h.line&&v.line&&(f.position={start:h,end:v}),s.push(f)}const c={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(n,c),e.applyData(n,c)}function h8(e,n,r){const a=r?r.children:void 0,c=(a?a.indexOf(n):1)===0?"th":"td",f=r&&r.type==="table"?r.align:void 0,h=f?f.length:n.children.length;let v=-1;const y=[];for(;++v<h;){const E=n.children[v],C={},x=f?f[v]:void 0;x&&(C.align=x);let R={type:"element",tagName:c,properties:C,children:[]};E&&(R.children=e.all(E),e.patch(E,R),R=e.applyData(n,R)),y.push(R)}const S={type:"element",tagName:"tr",properties:{},children:e.wrap(y,!0)};return e.patch(n,S),e.applyData(n,S)}function m8(e,n){const r={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}const h_=9,m_=32;function v8(e){const n=String(e),r=/\r?\n|\r/g;let a=r.exec(n),s=0;const c=[];for(;a;)c.push(v_(n.slice(s,a.index),s>0,!0),a[0]),s=a.index+a[0].length,a=r.exec(n);return c.push(v_(n.slice(s),s>0,!1)),c.join("")}function v_(e,n,r){let a=0,s=e.length;if(n){let c=e.codePointAt(a);for(;c===h_||c===m_;)a++,c=e.codePointAt(a)}if(r){let c=e.codePointAt(s-1);for(;c===h_||c===m_;)s--,c=e.codePointAt(s-1)}return s>a?e.slice(a,s):""}function g8(e,n){const r={type:"text",value:v8(String(n.value))};return e.patch(n,r),e.applyData(n,r)}function y8(e,n){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,r),e.applyData(n,r)}const b8={blockquote:YM,break:ZM,code:KM,delete:GM,emphasis:QM,footnoteReference:c_,footnote:XM,heading:JM,html:e8,imageReference:t8,image:n8,inlineCode:r8,linkReference:i8,link:a8,listItem:o8,list:s8,paragraph:u8,root:c8,strong:f8,table:p8,tableCell:m8,tableRow:h8,text:g8,thematicBreak:y8,toml:U0,yaml:U0,definition:U0,footnoteDefinition:U0};function U0(){return null}const g_=function(e){if(e==null)return w8;if(typeof e=="string")return x8(e);if(typeof e=="object")return Array.isArray(e)?S8(e):E8(e);if(typeof e=="function")return B0(e);throw new Error("Expected function, string, or object as test")};function S8(e){const n=[];let r=-1;for(;++r<e.length;)n[r]=g_(e[r]);return B0(a);function a(...s){let c=-1;for(;++c<n.length;)if(n[c].call(this,...s))return!0;return!1}}function E8(e){return B0(n);function n(r){let a;for(a in e)if(r[a]!==e[a])return!1;return!0}}function x8(e){return B0(n);function n(r){return r&&r.type===e}}function B0(e){return n;function n(r,...a){return!!(r&&typeof r=="object"&&"type"in r&&e.call(this,r,...a))}}function w8(){return!0}function tZ(e){return e}const C8=!0,y_=!1,k8="skip",_8=function(e,n,r,a){typeof n=="function"&&typeof r!="function"&&(a=r,r=n,n=null);const s=g_(n),c=a?-1:1;f(e,void 0,[])();function f(h,v,y){const S=h&&typeof h=="object"?h:{};if(typeof S.type=="string"){const C=typeof S.tagName=="string"?S.tagName:typeof S.name=="string"?S.name:void 0;Object.defineProperty(E,"name",{value:"node ("+(h.type+(C?"<"+C+">":""))+")"})}return E;function E(){let C=[],x,R,T;if((!n||s(h,v,y[y.length-1]||null))&&(C=T8(r(h,y)),C[0]===y_))return C;if(h.children&&C[0]!==k8)for(R=(a?h.children.length:-1)+c,T=y.concat(h);R>-1&&R<h.children.length;){if(x=f(h.children[R],R,T)(),x[0]===y_)return x;R=typeof x[1]=="number"?x[1]:R+c}return C}}};function T8(e){return Array.isArray(e)?e:typeof e=="number"?[C8,e]:[e]}const $S=function(e,n,r,a){typeof n=="function"&&typeof r!="function"&&(a=r,r=n,n=null),_8(e,n,s,a);function s(c,f){const h=f[f.length-1];return r(c,h?h.children.indexOf(c):null,h)}};function R8(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}const b_={}.hasOwnProperty;function O8(e){const n=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return $S(e,"definition",a=>{const s=S_(a.identifier);s&&!b_.call(n,s)&&(n[s]=a)}),r;function r(a){const s=S_(a);return s&&b_.call(n,s)?n[s]:null}}function S_(e){return String(e||"").toUpperCase()}const V0={}.hasOwnProperty;function D8(e,n){const r=n||{},a=r.allowDangerousHtml||!1,s={};return f.dangerous=a,f.clobberPrefix=r.clobberPrefix===void 0||r.clobberPrefix===null?"user-content-":r.clobberPrefix,f.footnoteLabel=r.footnoteLabel||"Footnotes",f.footnoteLabelTagName=r.footnoteLabelTagName||"h2",f.footnoteLabelProperties=r.footnoteLabelProperties||{className:["sr-only"]},f.footnoteBackLabel=r.footnoteBackLabel||"Back to content",f.unknownHandler=r.unknownHandler,f.passThrough=r.passThrough,f.handlers={...b8,...r.handlers},f.definition=O8(e),f.footnoteById=s,f.footnoteOrder=[],f.footnoteCounts={},f.patch=A8,f.applyData=M8,f.one=h,f.all=v,f.wrap=P8,f.augment=c,$S(e,"footnoteDefinition",y=>{const S=String(y.identifier).toUpperCase();V0.call(s,S)||(s[S]=y)}),f;function c(y,S){if(y&&"data"in y&&y.data){const E=y.data;E.hName&&(S.type!=="element"&&(S={type:"element",tagName:"",properties:{},children:[]}),S.tagName=E.hName),S.type==="element"&&E.hProperties&&(S.properties={...S.properties,...E.hProperties}),"children"in S&&S.children&&E.hChildren&&(S.children=E.hChildren)}if(y){const E="type"in y?y:{position:y};R8(E)||(S.position={start:zS(E),end:jS(E)})}return S}function f(y,S,E,C){return Array.isArray(E)&&(C=E,E={}),c(y,{type:"element",tagName:S,properties:E||{},children:C||[]})}function h(y,S){return E_(f,y,S)}function v(y){return US(f,y)}}function A8(e,n){e.position&&(n.position=d8(e))}function M8(e,n){let r=n;if(e&&e.data){const a=e.data.hName,s=e.data.hChildren,c=e.data.hProperties;typeof a=="string"&&(r.type==="element"?r.tagName=a:r={type:"element",tagName:a,properties:{},children:[]}),r.type==="element"&&c&&(r.properties={...r.properties,...c}),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function E_(e,n,r){const a=n&&n.type;if(!a)throw new Error("Expected node, got `"+n+"`");return V0.call(e.handlers,a)?e.handlers[a](e,n,r):e.passThrough&&e.passThrough.includes(a)?"children"in n?{...n,children:US(e,n)}:n:e.unknownHandler?e.unknownHandler(e,n,r):L8(e,n)}function US(e,n){const r=[];if("children"in n){const a=n.children;let s=-1;for(;++s<a.length;){const c=E_(e,a[s],n);if(c){if(s&&a[s-1].type==="break"&&(!Array.isArray(c)&&c.type==="text"&&(c.value=c.value.replace(/^\s+/,"")),!Array.isArray(c)&&c.type==="element")){const f=c.children[0];f&&f.type==="text"&&(f.value=f.value.replace(/^\s+/,""))}Array.isArray(c)?r.push(...c):r.push(c)}}}return r}function L8(e,n){const r=n.data||{},a="value"in n&&!(V0.call(r,"hProperties")||V0.call(r,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:US(e,n)};return e.patch(n,a),e.applyData(n,a)}function P8(e,n){const r=[];let a=-1;for(n&&r.push({type:"text",value:`
208
208
  `});++a<e.length;)a&&r.push({type:"text",value:`
209
209
  `}),r.push(e[a]);return n&&e.length>0&&r.push({type:"text",value:`
210
- `}),r}function P8(e){const n=[];let r=-1;for(;++r<e.footnoteOrder.length;){const a=e.footnoteById[e.footnoteOrder[r]];if(!a)continue;const s=e.all(a),c=String(a.identifier).toUpperCase(),f=td(c.toLowerCase());let h=0;const v=[];for(;++h<=e.footnoteCounts[c];){const E={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+f+(h>1?"-"+h:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};h>1&&E.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(h)}]}),v.length>0&&v.push({type:"text",value:" "}),v.push(E)}const y=s[s.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const E=y.children[y.children.length-1];E&&E.type==="text"?E.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...v)}else s.push(...v);const S={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+f},children:e.wrap(s,!0)};e.patch(a,S),n.push(S)}if(n.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:`
210
+ `}),r}function N8(e){const n=[];let r=-1;for(;++r<e.footnoteOrder.length;){const a=e.footnoteById[e.footnoteOrder[r]];if(!a)continue;const s=e.all(a),c=String(a.identifier).toUpperCase(),f=td(c.toLowerCase());let h=0;const v=[];for(;++h<=e.footnoteCounts[c];){const E={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+f+(h>1?"-"+h:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};h>1&&E.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(h)}]}),v.length>0&&v.push({type:"text",value:" "}),v.push(E)}const y=s[s.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const E=y.children[y.children.length-1];E&&E.type==="text"?E.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...v)}else s.push(...v);const S={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+f},children:e.wrap(s,!0)};e.patch(a,S),n.push(S)}if(n.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:`
211
211
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(n,!0)},{type:"text",value:`
212
- `}]}}function x_(e,n){const r=O8(e,n),a=r.one(e,null),s=P8(r);return s&&a.children.push({type:"text",value:`
213
- `},s),Array.isArray(a)?{type:"root",children:a}:a}const N8=function(e,n){return e&&"run"in e?F8(e,n):I8(e||n)};function F8(e,n){return(r,a,s)=>{e.run(x_(r,n),a,c=>{s(c)})}}function I8(e){return n=>x_(n,e)}var BS={exports:{}},H0={exports:{}},Sn={};/** @license React v16.13.1
212
+ `}]}}function x_(e,n){const r=D8(e,n),a=r.one(e,null),s=N8(r);return s&&a.children.push({type:"text",value:`
213
+ `},s),Array.isArray(a)?{type:"root",children:a}:a}const F8=function(e,n){return e&&"run"in e?I8(e,n):z8(e||n)};function I8(e,n){return(r,a,s)=>{e.run(x_(r,n),a,c=>{s(c)})}}function z8(e){return n=>x_(n,e)}var BS={exports:{}},H0={exports:{}},Sn={};/** @license React v16.13.1
214
214
  * react-is.production.min.js
215
215
  *
216
216
  * Copyright (c) Facebook, Inc. and its affiliates.
217
217
  *
218
218
  * This source code is licensed under the MIT license found in the
219
219
  * LICENSE file in the root directory of this source tree.
220
- */var w_;function z8(){if(w_)return Sn;w_=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,v=e?Symbol.for("react.async_mode"):60111,y=e?Symbol.for("react.concurrent_mode"):60111,S=e?Symbol.for("react.forward_ref"):60112,E=e?Symbol.for("react.suspense"):60113,C=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,R=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,D=e?Symbol.for("react.fundamental"):60117,M=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function N(F){if(typeof F=="object"&&F!==null){var $=F.$$typeof;switch($){case n:switch(F=F.type,F){case v:case y:case a:case c:case s:case E:return F;default:switch(F=F&&F.$$typeof,F){case h:case S:case R:case x:case f:return F;default:return $}}case r:return $}}}function B(F){return N(F)===y}return Sn.AsyncMode=v,Sn.ConcurrentMode=y,Sn.ContextConsumer=h,Sn.ContextProvider=f,Sn.Element=n,Sn.ForwardRef=S,Sn.Fragment=a,Sn.Lazy=R,Sn.Memo=x,Sn.Portal=r,Sn.Profiler=c,Sn.StrictMode=s,Sn.Suspense=E,Sn.isAsyncMode=function(F){return B(F)||N(F)===v},Sn.isConcurrentMode=B,Sn.isContextConsumer=function(F){return N(F)===h},Sn.isContextProvider=function(F){return N(F)===f},Sn.isElement=function(F){return typeof F=="object"&&F!==null&&F.$$typeof===n},Sn.isForwardRef=function(F){return N(F)===S},Sn.isFragment=function(F){return N(F)===a},Sn.isLazy=function(F){return N(F)===R},Sn.isMemo=function(F){return N(F)===x},Sn.isPortal=function(F){return N(F)===r},Sn.isProfiler=function(F){return N(F)===c},Sn.isStrictMode=function(F){return N(F)===s},Sn.isSuspense=function(F){return N(F)===E},Sn.isValidElementType=function(F){return typeof F=="string"||typeof F=="function"||F===a||F===y||F===c||F===s||F===E||F===C||typeof F=="object"&&F!==null&&(F.$$typeof===R||F.$$typeof===x||F.$$typeof===f||F.$$typeof===h||F.$$typeof===S||F.$$typeof===D||F.$$typeof===M||F.$$typeof===I||F.$$typeof===T)},Sn.typeOf=N,Sn}var En={};/** @license React v16.13.1
220
+ */var w_;function j8(){if(w_)return Sn;w_=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,v=e?Symbol.for("react.async_mode"):60111,y=e?Symbol.for("react.concurrent_mode"):60111,S=e?Symbol.for("react.forward_ref"):60112,E=e?Symbol.for("react.suspense"):60113,C=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,R=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,D=e?Symbol.for("react.fundamental"):60117,M=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function N(F){if(typeof F=="object"&&F!==null){var $=F.$$typeof;switch($){case n:switch(F=F.type,F){case v:case y:case a:case c:case s:case E:return F;default:switch(F=F&&F.$$typeof,F){case h:case S:case R:case x:case f:return F;default:return $}}case r:return $}}}function B(F){return N(F)===y}return Sn.AsyncMode=v,Sn.ConcurrentMode=y,Sn.ContextConsumer=h,Sn.ContextProvider=f,Sn.Element=n,Sn.ForwardRef=S,Sn.Fragment=a,Sn.Lazy=R,Sn.Memo=x,Sn.Portal=r,Sn.Profiler=c,Sn.StrictMode=s,Sn.Suspense=E,Sn.isAsyncMode=function(F){return B(F)||N(F)===v},Sn.isConcurrentMode=B,Sn.isContextConsumer=function(F){return N(F)===h},Sn.isContextProvider=function(F){return N(F)===f},Sn.isElement=function(F){return typeof F=="object"&&F!==null&&F.$$typeof===n},Sn.isForwardRef=function(F){return N(F)===S},Sn.isFragment=function(F){return N(F)===a},Sn.isLazy=function(F){return N(F)===R},Sn.isMemo=function(F){return N(F)===x},Sn.isPortal=function(F){return N(F)===r},Sn.isProfiler=function(F){return N(F)===c},Sn.isStrictMode=function(F){return N(F)===s},Sn.isSuspense=function(F){return N(F)===E},Sn.isValidElementType=function(F){return typeof F=="string"||typeof F=="function"||F===a||F===y||F===c||F===s||F===E||F===C||typeof F=="object"&&F!==null&&(F.$$typeof===R||F.$$typeof===x||F.$$typeof===f||F.$$typeof===h||F.$$typeof===S||F.$$typeof===D||F.$$typeof===M||F.$$typeof===I||F.$$typeof===T)},Sn.typeOf=N,Sn}var En={};/** @license React v16.13.1
221
221
  * react-is.development.js
222
222
  *
223
223
  * Copyright (c) Facebook, Inc. and its affiliates.
224
224
  *
225
225
  * This source code is licensed under the MIT license found in the
226
226
  * LICENSE file in the root directory of this source tree.
227
- */var C_;function j8(){return C_||(C_=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,v=e?Symbol.for("react.async_mode"):60111,y=e?Symbol.for("react.concurrent_mode"):60111,S=e?Symbol.for("react.forward_ref"):60112,E=e?Symbol.for("react.suspense"):60113,C=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,R=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,D=e?Symbol.for("react.fundamental"):60117,M=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function N(me){return typeof me=="string"||typeof me=="function"||me===a||me===y||me===c||me===s||me===E||me===C||typeof me=="object"&&me!==null&&(me.$$typeof===R||me.$$typeof===x||me.$$typeof===f||me.$$typeof===h||me.$$typeof===S||me.$$typeof===D||me.$$typeof===M||me.$$typeof===I||me.$$typeof===T)}function B(me){if(typeof me=="object"&&me!==null){var ze=me.$$typeof;switch(ze){case n:var be=me.type;switch(be){case v:case y:case a:case c:case s:case E:return be;default:var ht=be&&be.$$typeof;switch(ht){case h:case S:case R:case x:case f:return ht;default:return ze}}case r:return ze}}}var F=v,$=y,H=h,Y=f,ne=n,ve=S,ee=a,oe=R,J=x,pe=r,ke=c,xe=s,Ie=E,se=!1;function Te(me){return se||(se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(me)||B(me)===v}function L(me){return B(me)===y}function te(me){return B(me)===h}function ye(me){return B(me)===f}function U(me){return typeof me=="object"&&me!==null&&me.$$typeof===n}function _e(me){return B(me)===S}function We(me){return B(me)===a}function Re(me){return B(me)===R}function Oe(me){return B(me)===x}function $e(me){return B(me)===r}function Ge(me){return B(me)===c}function Ue(me){return B(me)===s}function Le(me){return B(me)===E}En.AsyncMode=F,En.ConcurrentMode=$,En.ContextConsumer=H,En.ContextProvider=Y,En.Element=ne,En.ForwardRef=ve,En.Fragment=ee,En.Lazy=oe,En.Memo=J,En.Portal=pe,En.Profiler=ke,En.StrictMode=xe,En.Suspense=Ie,En.isAsyncMode=Te,En.isConcurrentMode=L,En.isContextConsumer=te,En.isContextProvider=ye,En.isElement=U,En.isForwardRef=_e,En.isFragment=We,En.isLazy=Re,En.isMemo=Oe,En.isPortal=$e,En.isProfiler=Ge,En.isStrictMode=Ue,En.isSuspense=Le,En.isValidElementType=N,En.typeOf=B}()),En}var k_;function __(){return k_||(k_=1,process.env.NODE_ENV==="production"?H0.exports=z8():H0.exports=j8()),H0.exports}/*
227
+ */var C_;function $8(){return C_||(C_=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,v=e?Symbol.for("react.async_mode"):60111,y=e?Symbol.for("react.concurrent_mode"):60111,S=e?Symbol.for("react.forward_ref"):60112,E=e?Symbol.for("react.suspense"):60113,C=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,R=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,D=e?Symbol.for("react.fundamental"):60117,M=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function N(me){return typeof me=="string"||typeof me=="function"||me===a||me===y||me===c||me===s||me===E||me===C||typeof me=="object"&&me!==null&&(me.$$typeof===R||me.$$typeof===x||me.$$typeof===f||me.$$typeof===h||me.$$typeof===S||me.$$typeof===D||me.$$typeof===M||me.$$typeof===I||me.$$typeof===T)}function B(me){if(typeof me=="object"&&me!==null){var ze=me.$$typeof;switch(ze){case n:var be=me.type;switch(be){case v:case y:case a:case c:case s:case E:return be;default:var ht=be&&be.$$typeof;switch(ht){case h:case S:case R:case x:case f:return ht;default:return ze}}case r:return ze}}}var F=v,$=y,H=h,Y=f,ne=n,ve=S,ee=a,oe=R,J=x,pe=r,ke=c,xe=s,Ie=E,se=!1;function Te(me){return se||(se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(me)||B(me)===v}function L(me){return B(me)===y}function te(me){return B(me)===h}function ye(me){return B(me)===f}function U(me){return typeof me=="object"&&me!==null&&me.$$typeof===n}function _e(me){return B(me)===S}function We(me){return B(me)===a}function Re(me){return B(me)===R}function Oe(me){return B(me)===x}function $e(me){return B(me)===r}function Ge(me){return B(me)===c}function Ue(me){return B(me)===s}function Le(me){return B(me)===E}En.AsyncMode=F,En.ConcurrentMode=$,En.ContextConsumer=H,En.ContextProvider=Y,En.Element=ne,En.ForwardRef=ve,En.Fragment=ee,En.Lazy=oe,En.Memo=J,En.Portal=pe,En.Profiler=ke,En.StrictMode=xe,En.Suspense=Ie,En.isAsyncMode=Te,En.isConcurrentMode=L,En.isContextConsumer=te,En.isContextProvider=ye,En.isElement=U,En.isForwardRef=_e,En.isFragment=We,En.isLazy=Re,En.isMemo=Oe,En.isPortal=$e,En.isProfiler=Ge,En.isStrictMode=Ue,En.isSuspense=Le,En.isValidElementType=N,En.typeOf=B}()),En}var k_;function __(){return k_||(k_=1,process.env.NODE_ENV==="production"?H0.exports=j8():H0.exports=$8()),H0.exports}/*
228
228
  object-assign
229
229
  (c) Sindre Sorhus
230
230
  @license MIT
231
- */var VS,T_;function $8(){if(T_)return VS;T_=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function a(c){if(c==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(c)}function s(){try{if(!Object.assign)return!1;var c=new String("abc");if(c[5]="de",Object.getOwnPropertyNames(c)[0]==="5")return!1;for(var f={},h=0;h<10;h++)f["_"+String.fromCharCode(h)]=h;var v=Object.getOwnPropertyNames(f).map(function(S){return f[S]});if(v.join("")!=="0123456789")return!1;var y={};return"abcdefghijklmnopqrst".split("").forEach(function(S){y[S]=S}),Object.keys(Object.assign({},y)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return VS=s()?Object.assign:function(c,f){for(var h,v=a(c),y,S=1;S<arguments.length;S++){h=Object(arguments[S]);for(var E in h)n.call(h,E)&&(v[E]=h[E]);if(e){y=e(h);for(var C=0;C<y.length;C++)r.call(h,y[C])&&(v[y[C]]=h[y[C]])}}return v},VS}var HS,R_;function qS(){if(R_)return HS;R_=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return HS=e,HS}var WS,O_;function D_(){return O_||(O_=1,WS=Function.call.bind(Object.prototype.hasOwnProperty)),WS}var YS,A_;function U8(){if(A_)return YS;A_=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var n=qS(),r={},a=D_();e=function(c){var f="Warning: "+c;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}}}function s(c,f,h,v,y){if(process.env.NODE_ENV!=="production"){for(var S in c)if(a(c,S)){var E;try{if(typeof c[S]!="function"){var C=Error((v||"React class")+": "+h+" type `"+S+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[S]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}E=c[S](f,S,v,h,null,n)}catch(R){E=R}if(E&&!(E instanceof Error)&&e((v||"React class")+": type specification of "+h+" `"+S+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof E+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),E instanceof Error&&!(E.message in r)){r[E.message]=!0;var x=y?y():"";e("Failed "+h+" type: "+E.message+(x??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},YS=s,YS}var ZS,M_;function B8(){if(M_)return ZS;M_=1;var e=__(),n=$8(),r=qS(),a=D_(),s=U8(),c=function(){};process.env.NODE_ENV!=="production"&&(c=function(h){var v="Warning: "+h;typeof console<"u"&&console.error(v);try{throw new Error(v)}catch{}});function f(){return null}return ZS=function(h,v){var y=typeof Symbol=="function"&&Symbol.iterator,S="@@iterator";function E(L){var te=L&&(y&&L[y]||L[S]);if(typeof te=="function")return te}var C="<<anonymous>>",x={array:M("array"),bigint:M("bigint"),bool:M("boolean"),func:M("function"),number:M("number"),object:M("object"),string:M("string"),symbol:M("symbol"),any:I(),arrayOf:N,element:B(),elementType:F(),instanceOf:$,node:ve(),objectOf:Y,oneOf:H,oneOfType:ne,shape:oe,exact:J};function R(L,te){return L===te?L!==0||1/L===1/te:L!==L&&te!==te}function T(L,te){this.message=L,this.data=te&&typeof te=="object"?te:{},this.stack=""}T.prototype=Error.prototype;function D(L){if(process.env.NODE_ENV!=="production")var te={},ye=0;function U(We,Re,Oe,$e,Ge,Ue,Le){if($e=$e||C,Ue=Ue||Oe,Le!==r){if(v){var me=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw me.name="Invariant Violation",me}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ze=$e+":"+Oe;!te[ze]&&ye<3&&(c("You are manually calling a React.PropTypes validation function for the `"+Ue+"` prop on `"+$e+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),te[ze]=!0,ye++)}}return Re[Oe]==null?We?Re[Oe]===null?new T("The "+Ge+" `"+Ue+"` is marked as required "+("in `"+$e+"`, but its value is `null`.")):new T("The "+Ge+" `"+Ue+"` is marked as required in "+("`"+$e+"`, but its value is `undefined`.")):null:L(Re,Oe,$e,Ge,Ue)}var _e=U.bind(null,!1);return _e.isRequired=U.bind(null,!0),_e}function M(L){function te(ye,U,_e,We,Re,Oe){var $e=ye[U],Ge=xe($e);if(Ge!==L){var Ue=Ie($e);return new T("Invalid "+We+" `"+Re+"` of type "+("`"+Ue+"` supplied to `"+_e+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return D(te)}function I(){return D(f)}function N(L){function te(ye,U,_e,We,Re){if(typeof L!="function")return new T("Property `"+Re+"` of component `"+_e+"` has invalid PropType notation inside arrayOf.");var Oe=ye[U];if(!Array.isArray(Oe)){var $e=xe(Oe);return new T("Invalid "+We+" `"+Re+"` of type "+("`"+$e+"` supplied to `"+_e+"`, expected an array."))}for(var Ge=0;Ge<Oe.length;Ge++){var Ue=L(Oe,Ge,_e,We,Re+"["+Ge+"]",r);if(Ue instanceof Error)return Ue}return null}return D(te)}function B(){function L(te,ye,U,_e,We){var Re=te[ye];if(!h(Re)){var Oe=xe(Re);return new T("Invalid "+_e+" `"+We+"` of type "+("`"+Oe+"` supplied to `"+U+"`, expected a single ReactElement."))}return null}return D(L)}function F(){function L(te,ye,U,_e,We){var Re=te[ye];if(!e.isValidElementType(Re)){var Oe=xe(Re);return new T("Invalid "+_e+" `"+We+"` of type "+("`"+Oe+"` supplied to `"+U+"`, expected a single ReactElement type."))}return null}return D(L)}function $(L){function te(ye,U,_e,We,Re){if(!(ye[U]instanceof L)){var Oe=L.name||C,$e=Te(ye[U]);return new T("Invalid "+We+" `"+Re+"` of type "+("`"+$e+"` supplied to `"+_e+"`, expected ")+("instance of `"+Oe+"`."))}return null}return D(te)}function H(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&(arguments.length>1?c("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):c("Invalid argument supplied to oneOf, expected an array.")),f;function te(ye,U,_e,We,Re){for(var Oe=ye[U],$e=0;$e<L.length;$e++)if(R(Oe,L[$e]))return null;var Ge=JSON.stringify(L,function(Le,me){var ze=Ie(me);return ze==="symbol"?String(me):me});return new T("Invalid "+We+" `"+Re+"` of value `"+String(Oe)+"` "+("supplied to `"+_e+"`, expected one of "+Ge+"."))}return D(te)}function Y(L){function te(ye,U,_e,We,Re){if(typeof L!="function")return new T("Property `"+Re+"` of component `"+_e+"` has invalid PropType notation inside objectOf.");var Oe=ye[U],$e=xe(Oe);if($e!=="object")return new T("Invalid "+We+" `"+Re+"` of type "+("`"+$e+"` supplied to `"+_e+"`, expected an object."));for(var Ge in Oe)if(a(Oe,Ge)){var Ue=L(Oe,Ge,_e,We,Re+"."+Ge,r);if(Ue instanceof Error)return Ue}return null}return D(te)}function ne(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&c("Invalid argument supplied to oneOfType, expected an instance of array."),f;for(var te=0;te<L.length;te++){var ye=L[te];if(typeof ye!="function")return c("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+se(ye)+" at index "+te+"."),f}function U(_e,We,Re,Oe,$e){for(var Ge=[],Ue=0;Ue<L.length;Ue++){var Le=L[Ue],me=Le(_e,We,Re,Oe,$e,r);if(me==null)return null;me.data&&a(me.data,"expectedType")&&Ge.push(me.data.expectedType)}var ze=Ge.length>0?", expected one of type ["+Ge.join(", ")+"]":"";return new T("Invalid "+Oe+" `"+$e+"` supplied to "+("`"+Re+"`"+ze+"."))}return D(U)}function ve(){function L(te,ye,U,_e,We){return pe(te[ye])?null:new T("Invalid "+_e+" `"+We+"` supplied to "+("`"+U+"`, expected a ReactNode."))}return D(L)}function ee(L,te,ye,U,_e){return new T((L||"React class")+": "+te+" type `"+ye+"."+U+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+_e+"`.")}function oe(L){function te(ye,U,_e,We,Re){var Oe=ye[U],$e=xe(Oe);if($e!=="object")return new T("Invalid "+We+" `"+Re+"` of type `"+$e+"` "+("supplied to `"+_e+"`, expected `object`."));for(var Ge in L){var Ue=L[Ge];if(typeof Ue!="function")return ee(_e,We,Re,Ge,Ie(Ue));var Le=Ue(Oe,Ge,_e,We,Re+"."+Ge,r);if(Le)return Le}return null}return D(te)}function J(L){function te(ye,U,_e,We,Re){var Oe=ye[U],$e=xe(Oe);if($e!=="object")return new T("Invalid "+We+" `"+Re+"` of type `"+$e+"` "+("supplied to `"+_e+"`, expected `object`."));var Ge=n({},ye[U],L);for(var Ue in Ge){var Le=L[Ue];if(a(L,Ue)&&typeof Le!="function")return ee(_e,We,Re,Ue,Ie(Le));if(!Le)return new T("Invalid "+We+" `"+Re+"` key `"+Ue+"` supplied to `"+_e+"`.\nBad object: "+JSON.stringify(ye[U],null," ")+`
232
- Valid keys: `+JSON.stringify(Object.keys(L),null," "));var me=Le(Oe,Ue,_e,We,Re+"."+Ue,r);if(me)return me}return null}return D(te)}function pe(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(pe);if(L===null||h(L))return!0;var te=E(L);if(te){var ye=te.call(L),U;if(te!==L.entries){for(;!(U=ye.next()).done;)if(!pe(U.value))return!1}else for(;!(U=ye.next()).done;){var _e=U.value;if(_e&&!pe(_e[1]))return!1}}else return!1;return!0;default:return!1}}function ke(L,te){return L==="symbol"?!0:te?te["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&te instanceof Symbol:!1}function xe(L){var te=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":ke(te,L)?"symbol":te}function Ie(L){if(typeof L>"u"||L===null)return""+L;var te=xe(L);if(te==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return te}function se(L){var te=Ie(L);switch(te){case"array":case"object":return"an "+te;case"boolean":case"date":case"regexp":return"a "+te;default:return te}}function Te(L){return!L.constructor||!L.constructor.name?C:L.constructor.name}return x.checkPropTypes=s,x.resetWarningCache=s.resetWarningCache,x.PropTypes=x,x},ZS}var KS,L_;function V8(){if(L_)return KS;L_=1;var e=qS();function n(){}function r(){}return r.resetWarningCache=n,KS=function(){function a(f,h,v,y,S,E){if(E!==e){var C=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw C.name="Invariant Violation",C}}a.isRequired=a;function s(){return a}var c={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:s,element:a,elementType:a,instanceOf:s,node:a,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:r,resetWarningCache:n};return c.PropTypes=c,c},KS}if(process.env.NODE_ENV!=="production"){var H8=__(),q8=!0;BS.exports=B8()(H8.isElement,q8)}else BS.exports=V8()();var W8=BS.exports;const $t=Jf(W8);class Lh{constructor(n,r,a){this.property=n,this.normal=r,a&&(this.space=a)}}Lh.prototype.property={},Lh.prototype.normal={},Lh.prototype.space=null;function P_(e,n){const r={},a={};let s=-1;for(;++s<e.length;)Object.assign(r,e[s].property),Object.assign(a,e[s].normal);return new Lh(r,a,n)}function GS(e){return e.toLowerCase()}class Xa{constructor(n,r){this.property=n,this.attribute=r}}Xa.prototype.space=null,Xa.prototype.boolean=!1,Xa.prototype.booleanish=!1,Xa.prototype.overloadedBoolean=!1,Xa.prototype.number=!1,Xa.prototype.commaSeparated=!1,Xa.prototype.spaceSeparated=!1,Xa.prototype.commaOrSpaceSeparated=!1,Xa.prototype.mustUseProperty=!1,Xa.prototype.defined=!1;let Y8=0;const Kt=xc(),Rr=xc(),N_=xc(),Be=xc(),qn=xc(),nd=xc(),Aa=xc();function xc(){return 2**++Y8}const QS=Object.freeze(Object.defineProperty({__proto__:null,boolean:Kt,booleanish:Rr,commaOrSpaceSeparated:Aa,commaSeparated:nd,number:Be,overloadedBoolean:N_,spaceSeparated:qn},Symbol.toStringTag,{value:"Module"})),XS=Object.keys(QS);class JS extends Xa{constructor(n,r,a,s){let c=-1;if(super(n,r),F_(this,"space",s),typeof a=="number")for(;++c<XS.length;){const f=XS[c];F_(this,XS[c],(a&QS[f])===QS[f])}}}JS.prototype.defined=!0;function F_(e,n,r){r&&(e[n]=r)}const Z8={}.hasOwnProperty;function rd(e){const n={},r={};let a;for(a in e.properties)if(Z8.call(e.properties,a)){const s=e.properties[a],c=new JS(a,e.transform(e.attributes||{},a),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(c.mustUseProperty=!0),n[a]=c,r[GS(a)]=a,r[GS(c.attribute)]=a}return new Lh(n,r,e.space)}const I_=rd({space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),z_=rd({space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function j_(e,n){return n in e?e[n]:n}function $_(e,n){return j_(e,n.toLowerCase())}const U_=rd({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:$_,properties:{xmlns:null,xmlnsXLink:null}}),B_=rd({transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Rr,ariaAutoComplete:null,ariaBusy:Rr,ariaChecked:Rr,ariaColCount:Be,ariaColIndex:Be,ariaColSpan:Be,ariaControls:qn,ariaCurrent:null,ariaDescribedBy:qn,ariaDetails:null,ariaDisabled:Rr,ariaDropEffect:qn,ariaErrorMessage:null,ariaExpanded:Rr,ariaFlowTo:qn,ariaGrabbed:Rr,ariaHasPopup:null,ariaHidden:Rr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:qn,ariaLevel:Be,ariaLive:null,ariaModal:Rr,ariaMultiLine:Rr,ariaMultiSelectable:Rr,ariaOrientation:null,ariaOwns:qn,ariaPlaceholder:null,ariaPosInSet:Be,ariaPressed:Rr,ariaReadOnly:Rr,ariaRelevant:null,ariaRequired:Rr,ariaRoleDescription:qn,ariaRowCount:Be,ariaRowIndex:Be,ariaRowSpan:Be,ariaSelected:Rr,ariaSetSize:Be,ariaSort:null,ariaValueMax:Be,ariaValueMin:Be,ariaValueNow:Be,ariaValueText:null,role:null}}),K8=rd({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:$_,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:nd,acceptCharset:qn,accessKey:qn,action:null,allow:null,allowFullScreen:Kt,allowPaymentRequest:Kt,allowUserMedia:Kt,alt:null,as:null,async:Kt,autoCapitalize:null,autoComplete:qn,autoFocus:Kt,autoPlay:Kt,capture:Kt,charSet:null,checked:Kt,cite:null,className:qn,cols:Be,colSpan:null,content:null,contentEditable:Rr,controls:Kt,controlsList:qn,coords:Be|nd,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Kt,defer:Kt,dir:null,dirName:null,disabled:Kt,download:N_,draggable:Rr,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Kt,formTarget:null,headers:qn,height:Be,hidden:Kt,high:Be,href:null,hrefLang:null,htmlFor:qn,httpEquiv:qn,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:Kt,itemId:null,itemProp:qn,itemRef:qn,itemScope:Kt,itemType:qn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Kt,low:Be,manifest:null,max:null,maxLength:Be,media:null,method:null,min:null,minLength:Be,multiple:Kt,muted:Kt,name:null,nonce:null,noModule:Kt,noValidate:Kt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Kt,optimum:Be,pattern:null,ping:qn,placeholder:null,playsInline:Kt,poster:null,preload:null,readOnly:Kt,referrerPolicy:null,rel:qn,required:Kt,reversed:Kt,rows:Be,rowSpan:Be,sandbox:qn,scope:null,scoped:Kt,seamless:Kt,selected:Kt,shape:null,size:Be,sizes:null,slot:null,span:Be,spellCheck:Rr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Be,step:null,style:null,tabIndex:Be,target:null,title:null,translate:null,type:null,typeMustMatch:Kt,useMap:null,value:Rr,width:Be,wrap:null,align:null,aLink:null,archive:qn,axis:null,background:null,bgColor:null,border:Be,borderColor:null,bottomMargin:Be,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Kt,declare:Kt,event:null,face:null,frame:null,frameBorder:null,hSpace:Be,leftMargin:Be,link:null,longDesc:null,lowSrc:null,marginHeight:Be,marginWidth:Be,noResize:Kt,noHref:Kt,noShade:Kt,noWrap:Kt,object:null,profile:null,prompt:null,rev:null,rightMargin:Be,rules:null,scheme:null,scrolling:Rr,standby:null,summary:null,text:null,topMargin:Be,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Be,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Kt,disableRemotePlayback:Kt,prefix:null,property:null,results:Be,security:null,unselectable:null}}),G8=rd({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:j_,properties:{about:Aa,accentHeight:Be,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Be,amplitude:Be,arabicForm:null,ascent:Be,attributeName:null,attributeType:null,azimuth:Be,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Be,by:null,calcMode:null,capHeight:Be,className:qn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Be,diffuseConstant:Be,direction:null,display:null,dur:null,divisor:Be,dominantBaseline:null,download:Kt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Be,enableBackground:null,end:null,event:null,exponent:Be,externalResourcesRequired:null,fill:null,fillOpacity:Be,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:nd,g2:nd,glyphName:nd,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Be,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Be,horizOriginX:Be,horizOriginY:Be,id:null,ideographic:Be,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Be,k:Be,k1:Be,k2:Be,k3:Be,k4:Be,kernelMatrix:Aa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Be,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Be,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Be,overlineThickness:Be,paintOrder:null,panose1:null,path:null,pathLength:Be,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:qn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Be,pointsAtY:Be,pointsAtZ:Be,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Aa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Aa,rev:Aa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Aa,requiredFeatures:Aa,requiredFonts:Aa,requiredFormats:Aa,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Be,specularExponent:Be,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Be,strikethroughThickness:Be,string:null,stroke:null,strokeDashArray:Aa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Be,strokeOpacity:Be,strokeWidth:null,style:null,surfaceScale:Be,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Aa,tabIndex:Be,tableValues:null,target:null,targetX:Be,targetY:Be,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Aa,to:null,transform:null,u1:null,u2:null,underlinePosition:Be,underlineThickness:Be,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Be,values:null,vAlphabetic:Be,vMathematical:Be,vectorEffect:null,vHanging:Be,vIdeographic:Be,version:null,vertAdvY:Be,vertOriginX:Be,vertOriginY:Be,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Be,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Q8=/^data[-\w.:]+$/i,V_=/-[a-z]/g,X8=/[A-Z]/g;function J8(e,n){const r=GS(n);let a=n,s=Xa;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Q8.test(n)){if(n.charAt(4)==="-"){const c=n.slice(5).replace(V_,t7);a="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=n.slice(4);if(!V_.test(c)){let f=c.replace(X8,e7);f.charAt(0)!=="-"&&(f="-"+f),n="data"+f}}s=JS}return new s(a,n)}function e7(e){return"-"+e.toLowerCase()}function t7(e){return e.charAt(1).toUpperCase()}const H_={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},n7=P_([z_,I_,U_,B_,K8],"html"),r7=P_([z_,I_,U_,B_,G8],"svg");function i7(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return n=>{$S(n,"element",(r,a,s)=>{const c=s;let f;if(e.allowedElements?f=!e.allowedElements.includes(r.tagName):e.disallowedElements&&(f=e.disallowedElements.includes(r.tagName)),!f&&e.allowElement&&typeof a=="number"&&(f=!e.allowElement(r,a,c)),f&&typeof a=="number")return e.unwrapDisallowed&&r.children?c.children.splice(a,1,...r.children):c.children.splice(a,1),a})}}var eE={exports:{}},xn={};/**
231
+ */var VS,T_;function U8(){if(T_)return VS;T_=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function a(c){if(c==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(c)}function s(){try{if(!Object.assign)return!1;var c=new String("abc");if(c[5]="de",Object.getOwnPropertyNames(c)[0]==="5")return!1;for(var f={},h=0;h<10;h++)f["_"+String.fromCharCode(h)]=h;var v=Object.getOwnPropertyNames(f).map(function(S){return f[S]});if(v.join("")!=="0123456789")return!1;var y={};return"abcdefghijklmnopqrst".split("").forEach(function(S){y[S]=S}),Object.keys(Object.assign({},y)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return VS=s()?Object.assign:function(c,f){for(var h,v=a(c),y,S=1;S<arguments.length;S++){h=Object(arguments[S]);for(var E in h)n.call(h,E)&&(v[E]=h[E]);if(e){y=e(h);for(var C=0;C<y.length;C++)r.call(h,y[C])&&(v[y[C]]=h[y[C]])}}return v},VS}var HS,R_;function qS(){if(R_)return HS;R_=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return HS=e,HS}var WS,O_;function D_(){return O_||(O_=1,WS=Function.call.bind(Object.prototype.hasOwnProperty)),WS}var YS,A_;function B8(){if(A_)return YS;A_=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var n=qS(),r={},a=D_();e=function(c){var f="Warning: "+c;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}}}function s(c,f,h,v,y){if(process.env.NODE_ENV!=="production"){for(var S in c)if(a(c,S)){var E;try{if(typeof c[S]!="function"){var C=Error((v||"React class")+": "+h+" type `"+S+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[S]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}E=c[S](f,S,v,h,null,n)}catch(R){E=R}if(E&&!(E instanceof Error)&&e((v||"React class")+": type specification of "+h+" `"+S+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof E+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),E instanceof Error&&!(E.message in r)){r[E.message]=!0;var x=y?y():"";e("Failed "+h+" type: "+E.message+(x??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},YS=s,YS}var ZS,M_;function V8(){if(M_)return ZS;M_=1;var e=__(),n=U8(),r=qS(),a=D_(),s=B8(),c=function(){};process.env.NODE_ENV!=="production"&&(c=function(h){var v="Warning: "+h;typeof console<"u"&&console.error(v);try{throw new Error(v)}catch{}});function f(){return null}return ZS=function(h,v){var y=typeof Symbol=="function"&&Symbol.iterator,S="@@iterator";function E(L){var te=L&&(y&&L[y]||L[S]);if(typeof te=="function")return te}var C="<<anonymous>>",x={array:M("array"),bigint:M("bigint"),bool:M("boolean"),func:M("function"),number:M("number"),object:M("object"),string:M("string"),symbol:M("symbol"),any:I(),arrayOf:N,element:B(),elementType:F(),instanceOf:$,node:ve(),objectOf:Y,oneOf:H,oneOfType:ne,shape:oe,exact:J};function R(L,te){return L===te?L!==0||1/L===1/te:L!==L&&te!==te}function T(L,te){this.message=L,this.data=te&&typeof te=="object"?te:{},this.stack=""}T.prototype=Error.prototype;function D(L){if(process.env.NODE_ENV!=="production")var te={},ye=0;function U(We,Re,Oe,$e,Ge,Ue,Le){if($e=$e||C,Ue=Ue||Oe,Le!==r){if(v){var me=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw me.name="Invariant Violation",me}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ze=$e+":"+Oe;!te[ze]&&ye<3&&(c("You are manually calling a React.PropTypes validation function for the `"+Ue+"` prop on `"+$e+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),te[ze]=!0,ye++)}}return Re[Oe]==null?We?Re[Oe]===null?new T("The "+Ge+" `"+Ue+"` is marked as required "+("in `"+$e+"`, but its value is `null`.")):new T("The "+Ge+" `"+Ue+"` is marked as required in "+("`"+$e+"`, but its value is `undefined`.")):null:L(Re,Oe,$e,Ge,Ue)}var _e=U.bind(null,!1);return _e.isRequired=U.bind(null,!0),_e}function M(L){function te(ye,U,_e,We,Re,Oe){var $e=ye[U],Ge=xe($e);if(Ge!==L){var Ue=Ie($e);return new T("Invalid "+We+" `"+Re+"` of type "+("`"+Ue+"` supplied to `"+_e+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return D(te)}function I(){return D(f)}function N(L){function te(ye,U,_e,We,Re){if(typeof L!="function")return new T("Property `"+Re+"` of component `"+_e+"` has invalid PropType notation inside arrayOf.");var Oe=ye[U];if(!Array.isArray(Oe)){var $e=xe(Oe);return new T("Invalid "+We+" `"+Re+"` of type "+("`"+$e+"` supplied to `"+_e+"`, expected an array."))}for(var Ge=0;Ge<Oe.length;Ge++){var Ue=L(Oe,Ge,_e,We,Re+"["+Ge+"]",r);if(Ue instanceof Error)return Ue}return null}return D(te)}function B(){function L(te,ye,U,_e,We){var Re=te[ye];if(!h(Re)){var Oe=xe(Re);return new T("Invalid "+_e+" `"+We+"` of type "+("`"+Oe+"` supplied to `"+U+"`, expected a single ReactElement."))}return null}return D(L)}function F(){function L(te,ye,U,_e,We){var Re=te[ye];if(!e.isValidElementType(Re)){var Oe=xe(Re);return new T("Invalid "+_e+" `"+We+"` of type "+("`"+Oe+"` supplied to `"+U+"`, expected a single ReactElement type."))}return null}return D(L)}function $(L){function te(ye,U,_e,We,Re){if(!(ye[U]instanceof L)){var Oe=L.name||C,$e=Te(ye[U]);return new T("Invalid "+We+" `"+Re+"` of type "+("`"+$e+"` supplied to `"+_e+"`, expected ")+("instance of `"+Oe+"`."))}return null}return D(te)}function H(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&(arguments.length>1?c("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):c("Invalid argument supplied to oneOf, expected an array.")),f;function te(ye,U,_e,We,Re){for(var Oe=ye[U],$e=0;$e<L.length;$e++)if(R(Oe,L[$e]))return null;var Ge=JSON.stringify(L,function(Le,me){var ze=Ie(me);return ze==="symbol"?String(me):me});return new T("Invalid "+We+" `"+Re+"` of value `"+String(Oe)+"` "+("supplied to `"+_e+"`, expected one of "+Ge+"."))}return D(te)}function Y(L){function te(ye,U,_e,We,Re){if(typeof L!="function")return new T("Property `"+Re+"` of component `"+_e+"` has invalid PropType notation inside objectOf.");var Oe=ye[U],$e=xe(Oe);if($e!=="object")return new T("Invalid "+We+" `"+Re+"` of type "+("`"+$e+"` supplied to `"+_e+"`, expected an object."));for(var Ge in Oe)if(a(Oe,Ge)){var Ue=L(Oe,Ge,_e,We,Re+"."+Ge,r);if(Ue instanceof Error)return Ue}return null}return D(te)}function ne(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&c("Invalid argument supplied to oneOfType, expected an instance of array."),f;for(var te=0;te<L.length;te++){var ye=L[te];if(typeof ye!="function")return c("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+se(ye)+" at index "+te+"."),f}function U(_e,We,Re,Oe,$e){for(var Ge=[],Ue=0;Ue<L.length;Ue++){var Le=L[Ue],me=Le(_e,We,Re,Oe,$e,r);if(me==null)return null;me.data&&a(me.data,"expectedType")&&Ge.push(me.data.expectedType)}var ze=Ge.length>0?", expected one of type ["+Ge.join(", ")+"]":"";return new T("Invalid "+Oe+" `"+$e+"` supplied to "+("`"+Re+"`"+ze+"."))}return D(U)}function ve(){function L(te,ye,U,_e,We){return pe(te[ye])?null:new T("Invalid "+_e+" `"+We+"` supplied to "+("`"+U+"`, expected a ReactNode."))}return D(L)}function ee(L,te,ye,U,_e){return new T((L||"React class")+": "+te+" type `"+ye+"."+U+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+_e+"`.")}function oe(L){function te(ye,U,_e,We,Re){var Oe=ye[U],$e=xe(Oe);if($e!=="object")return new T("Invalid "+We+" `"+Re+"` of type `"+$e+"` "+("supplied to `"+_e+"`, expected `object`."));for(var Ge in L){var Ue=L[Ge];if(typeof Ue!="function")return ee(_e,We,Re,Ge,Ie(Ue));var Le=Ue(Oe,Ge,_e,We,Re+"."+Ge,r);if(Le)return Le}return null}return D(te)}function J(L){function te(ye,U,_e,We,Re){var Oe=ye[U],$e=xe(Oe);if($e!=="object")return new T("Invalid "+We+" `"+Re+"` of type `"+$e+"` "+("supplied to `"+_e+"`, expected `object`."));var Ge=n({},ye[U],L);for(var Ue in Ge){var Le=L[Ue];if(a(L,Ue)&&typeof Le!="function")return ee(_e,We,Re,Ue,Ie(Le));if(!Le)return new T("Invalid "+We+" `"+Re+"` key `"+Ue+"` supplied to `"+_e+"`.\nBad object: "+JSON.stringify(ye[U],null," ")+`
232
+ Valid keys: `+JSON.stringify(Object.keys(L),null," "));var me=Le(Oe,Ue,_e,We,Re+"."+Ue,r);if(me)return me}return null}return D(te)}function pe(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(pe);if(L===null||h(L))return!0;var te=E(L);if(te){var ye=te.call(L),U;if(te!==L.entries){for(;!(U=ye.next()).done;)if(!pe(U.value))return!1}else for(;!(U=ye.next()).done;){var _e=U.value;if(_e&&!pe(_e[1]))return!1}}else return!1;return!0;default:return!1}}function ke(L,te){return L==="symbol"?!0:te?te["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&te instanceof Symbol:!1}function xe(L){var te=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":ke(te,L)?"symbol":te}function Ie(L){if(typeof L>"u"||L===null)return""+L;var te=xe(L);if(te==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return te}function se(L){var te=Ie(L);switch(te){case"array":case"object":return"an "+te;case"boolean":case"date":case"regexp":return"a "+te;default:return te}}function Te(L){return!L.constructor||!L.constructor.name?C:L.constructor.name}return x.checkPropTypes=s,x.resetWarningCache=s.resetWarningCache,x.PropTypes=x,x},ZS}var KS,L_;function H8(){if(L_)return KS;L_=1;var e=qS();function n(){}function r(){}return r.resetWarningCache=n,KS=function(){function a(f,h,v,y,S,E){if(E!==e){var C=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw C.name="Invariant Violation",C}}a.isRequired=a;function s(){return a}var c={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:s,element:a,elementType:a,instanceOf:s,node:a,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:r,resetWarningCache:n};return c.PropTypes=c,c},KS}if(process.env.NODE_ENV!=="production"){var q8=__(),W8=!0;BS.exports=V8()(q8.isElement,W8)}else BS.exports=H8()();var Y8=BS.exports;const $t=Jf(Y8);class Lh{constructor(n,r,a){this.property=n,this.normal=r,a&&(this.space=a)}}Lh.prototype.property={},Lh.prototype.normal={},Lh.prototype.space=null;function P_(e,n){const r={},a={};let s=-1;for(;++s<e.length;)Object.assign(r,e[s].property),Object.assign(a,e[s].normal);return new Lh(r,a,n)}function GS(e){return e.toLowerCase()}class Xa{constructor(n,r){this.property=n,this.attribute=r}}Xa.prototype.space=null,Xa.prototype.boolean=!1,Xa.prototype.booleanish=!1,Xa.prototype.overloadedBoolean=!1,Xa.prototype.number=!1,Xa.prototype.commaSeparated=!1,Xa.prototype.spaceSeparated=!1,Xa.prototype.commaOrSpaceSeparated=!1,Xa.prototype.mustUseProperty=!1,Xa.prototype.defined=!1;let Z8=0;const Kt=xc(),Rr=xc(),N_=xc(),Be=xc(),qn=xc(),nd=xc(),Aa=xc();function xc(){return 2**++Z8}const QS=Object.freeze(Object.defineProperty({__proto__:null,boolean:Kt,booleanish:Rr,commaOrSpaceSeparated:Aa,commaSeparated:nd,number:Be,overloadedBoolean:N_,spaceSeparated:qn},Symbol.toStringTag,{value:"Module"})),XS=Object.keys(QS);class JS extends Xa{constructor(n,r,a,s){let c=-1;if(super(n,r),F_(this,"space",s),typeof a=="number")for(;++c<XS.length;){const f=XS[c];F_(this,XS[c],(a&QS[f])===QS[f])}}}JS.prototype.defined=!0;function F_(e,n,r){r&&(e[n]=r)}const K8={}.hasOwnProperty;function rd(e){const n={},r={};let a;for(a in e.properties)if(K8.call(e.properties,a)){const s=e.properties[a],c=new JS(a,e.transform(e.attributes||{},a),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(c.mustUseProperty=!0),n[a]=c,r[GS(a)]=a,r[GS(c.attribute)]=a}return new Lh(n,r,e.space)}const I_=rd({space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),z_=rd({space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function j_(e,n){return n in e?e[n]:n}function $_(e,n){return j_(e,n.toLowerCase())}const U_=rd({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:$_,properties:{xmlns:null,xmlnsXLink:null}}),B_=rd({transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Rr,ariaAutoComplete:null,ariaBusy:Rr,ariaChecked:Rr,ariaColCount:Be,ariaColIndex:Be,ariaColSpan:Be,ariaControls:qn,ariaCurrent:null,ariaDescribedBy:qn,ariaDetails:null,ariaDisabled:Rr,ariaDropEffect:qn,ariaErrorMessage:null,ariaExpanded:Rr,ariaFlowTo:qn,ariaGrabbed:Rr,ariaHasPopup:null,ariaHidden:Rr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:qn,ariaLevel:Be,ariaLive:null,ariaModal:Rr,ariaMultiLine:Rr,ariaMultiSelectable:Rr,ariaOrientation:null,ariaOwns:qn,ariaPlaceholder:null,ariaPosInSet:Be,ariaPressed:Rr,ariaReadOnly:Rr,ariaRelevant:null,ariaRequired:Rr,ariaRoleDescription:qn,ariaRowCount:Be,ariaRowIndex:Be,ariaRowSpan:Be,ariaSelected:Rr,ariaSetSize:Be,ariaSort:null,ariaValueMax:Be,ariaValueMin:Be,ariaValueNow:Be,ariaValueText:null,role:null}}),G8=rd({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:$_,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:nd,acceptCharset:qn,accessKey:qn,action:null,allow:null,allowFullScreen:Kt,allowPaymentRequest:Kt,allowUserMedia:Kt,alt:null,as:null,async:Kt,autoCapitalize:null,autoComplete:qn,autoFocus:Kt,autoPlay:Kt,capture:Kt,charSet:null,checked:Kt,cite:null,className:qn,cols:Be,colSpan:null,content:null,contentEditable:Rr,controls:Kt,controlsList:qn,coords:Be|nd,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Kt,defer:Kt,dir:null,dirName:null,disabled:Kt,download:N_,draggable:Rr,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Kt,formTarget:null,headers:qn,height:Be,hidden:Kt,high:Be,href:null,hrefLang:null,htmlFor:qn,httpEquiv:qn,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:Kt,itemId:null,itemProp:qn,itemRef:qn,itemScope:Kt,itemType:qn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Kt,low:Be,manifest:null,max:null,maxLength:Be,media:null,method:null,min:null,minLength:Be,multiple:Kt,muted:Kt,name:null,nonce:null,noModule:Kt,noValidate:Kt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Kt,optimum:Be,pattern:null,ping:qn,placeholder:null,playsInline:Kt,poster:null,preload:null,readOnly:Kt,referrerPolicy:null,rel:qn,required:Kt,reversed:Kt,rows:Be,rowSpan:Be,sandbox:qn,scope:null,scoped:Kt,seamless:Kt,selected:Kt,shape:null,size:Be,sizes:null,slot:null,span:Be,spellCheck:Rr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Be,step:null,style:null,tabIndex:Be,target:null,title:null,translate:null,type:null,typeMustMatch:Kt,useMap:null,value:Rr,width:Be,wrap:null,align:null,aLink:null,archive:qn,axis:null,background:null,bgColor:null,border:Be,borderColor:null,bottomMargin:Be,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Kt,declare:Kt,event:null,face:null,frame:null,frameBorder:null,hSpace:Be,leftMargin:Be,link:null,longDesc:null,lowSrc:null,marginHeight:Be,marginWidth:Be,noResize:Kt,noHref:Kt,noShade:Kt,noWrap:Kt,object:null,profile:null,prompt:null,rev:null,rightMargin:Be,rules:null,scheme:null,scrolling:Rr,standby:null,summary:null,text:null,topMargin:Be,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Be,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Kt,disableRemotePlayback:Kt,prefix:null,property:null,results:Be,security:null,unselectable:null}}),Q8=rd({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:j_,properties:{about:Aa,accentHeight:Be,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Be,amplitude:Be,arabicForm:null,ascent:Be,attributeName:null,attributeType:null,azimuth:Be,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Be,by:null,calcMode:null,capHeight:Be,className:qn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Be,diffuseConstant:Be,direction:null,display:null,dur:null,divisor:Be,dominantBaseline:null,download:Kt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Be,enableBackground:null,end:null,event:null,exponent:Be,externalResourcesRequired:null,fill:null,fillOpacity:Be,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:nd,g2:nd,glyphName:nd,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Be,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Be,horizOriginX:Be,horizOriginY:Be,id:null,ideographic:Be,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Be,k:Be,k1:Be,k2:Be,k3:Be,k4:Be,kernelMatrix:Aa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Be,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Be,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Be,overlineThickness:Be,paintOrder:null,panose1:null,path:null,pathLength:Be,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:qn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Be,pointsAtY:Be,pointsAtZ:Be,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Aa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Aa,rev:Aa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Aa,requiredFeatures:Aa,requiredFonts:Aa,requiredFormats:Aa,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Be,specularExponent:Be,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Be,strikethroughThickness:Be,string:null,stroke:null,strokeDashArray:Aa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Be,strokeOpacity:Be,strokeWidth:null,style:null,surfaceScale:Be,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Aa,tabIndex:Be,tableValues:null,target:null,targetX:Be,targetY:Be,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Aa,to:null,transform:null,u1:null,u2:null,underlinePosition:Be,underlineThickness:Be,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Be,values:null,vAlphabetic:Be,vMathematical:Be,vectorEffect:null,vHanging:Be,vIdeographic:Be,version:null,vertAdvY:Be,vertOriginX:Be,vertOriginY:Be,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Be,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),X8=/^data[-\w.:]+$/i,V_=/-[a-z]/g,J8=/[A-Z]/g;function e7(e,n){const r=GS(n);let a=n,s=Xa;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&X8.test(n)){if(n.charAt(4)==="-"){const c=n.slice(5).replace(V_,n7);a="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=n.slice(4);if(!V_.test(c)){let f=c.replace(J8,t7);f.charAt(0)!=="-"&&(f="-"+f),n="data"+f}}s=JS}return new s(a,n)}function t7(e){return"-"+e.toLowerCase()}function n7(e){return e.charAt(1).toUpperCase()}const H_={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},r7=P_([z_,I_,U_,B_,G8],"html"),i7=P_([z_,I_,U_,B_,Q8],"svg");function a7(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return n=>{$S(n,"element",(r,a,s)=>{const c=s;let f;if(e.allowedElements?f=!e.allowedElements.includes(r.tagName):e.disallowedElements&&(f=e.disallowedElements.includes(r.tagName)),!f&&e.allowElement&&typeof a=="number"&&(f=!e.allowElement(r,a,c)),f&&typeof a=="number")return e.unwrapDisallowed&&r.children?c.children.splice(a,1,...r.children):c.children.splice(a,1),a})}}var eE={exports:{}},xn={};/**
233
233
  * @license React
234
234
  * react-is.production.min.js
235
235
  *
@@ -237,7 +237,7 @@ Valid keys: `+JSON.stringify(Object.keys(L),null," "));var me=Le(Oe,Ue,_e,We,Re
237
237
  *
238
238
  * This source code is licensed under the MIT license found in the
239
239
  * LICENSE file in the root directory of this source tree.
240
- */var q_;function a7(){if(q_)return xn;q_=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.server_context"),v=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),R;R=Symbol.for("react.module.reference");function T(D){if(typeof D=="object"&&D!==null){var M=D.$$typeof;switch(M){case e:switch(D=D.type,D){case r:case s:case a:case y:case S:return D;default:switch(D=D&&D.$$typeof,D){case h:case f:case v:case C:case E:case c:return D;default:return M}}case n:return M}}}return xn.ContextConsumer=f,xn.ContextProvider=c,xn.Element=e,xn.ForwardRef=v,xn.Fragment=r,xn.Lazy=C,xn.Memo=E,xn.Portal=n,xn.Profiler=s,xn.StrictMode=a,xn.Suspense=y,xn.SuspenseList=S,xn.isAsyncMode=function(){return!1},xn.isConcurrentMode=function(){return!1},xn.isContextConsumer=function(D){return T(D)===f},xn.isContextProvider=function(D){return T(D)===c},xn.isElement=function(D){return typeof D=="object"&&D!==null&&D.$$typeof===e},xn.isForwardRef=function(D){return T(D)===v},xn.isFragment=function(D){return T(D)===r},xn.isLazy=function(D){return T(D)===C},xn.isMemo=function(D){return T(D)===E},xn.isPortal=function(D){return T(D)===n},xn.isProfiler=function(D){return T(D)===s},xn.isStrictMode=function(D){return T(D)===a},xn.isSuspense=function(D){return T(D)===y},xn.isSuspenseList=function(D){return T(D)===S},xn.isValidElementType=function(D){return typeof D=="string"||typeof D=="function"||D===r||D===s||D===a||D===y||D===S||D===x||typeof D=="object"&&D!==null&&(D.$$typeof===C||D.$$typeof===E||D.$$typeof===c||D.$$typeof===f||D.$$typeof===v||D.$$typeof===R||D.getModuleId!==void 0)},xn.typeOf=T,xn}var wn={};/**
240
+ */var q_;function o7(){if(q_)return xn;q_=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.server_context"),v=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),R;R=Symbol.for("react.module.reference");function T(D){if(typeof D=="object"&&D!==null){var M=D.$$typeof;switch(M){case e:switch(D=D.type,D){case r:case s:case a:case y:case S:return D;default:switch(D=D&&D.$$typeof,D){case h:case f:case v:case C:case E:case c:return D;default:return M}}case n:return M}}}return xn.ContextConsumer=f,xn.ContextProvider=c,xn.Element=e,xn.ForwardRef=v,xn.Fragment=r,xn.Lazy=C,xn.Memo=E,xn.Portal=n,xn.Profiler=s,xn.StrictMode=a,xn.Suspense=y,xn.SuspenseList=S,xn.isAsyncMode=function(){return!1},xn.isConcurrentMode=function(){return!1},xn.isContextConsumer=function(D){return T(D)===f},xn.isContextProvider=function(D){return T(D)===c},xn.isElement=function(D){return typeof D=="object"&&D!==null&&D.$$typeof===e},xn.isForwardRef=function(D){return T(D)===v},xn.isFragment=function(D){return T(D)===r},xn.isLazy=function(D){return T(D)===C},xn.isMemo=function(D){return T(D)===E},xn.isPortal=function(D){return T(D)===n},xn.isProfiler=function(D){return T(D)===s},xn.isStrictMode=function(D){return T(D)===a},xn.isSuspense=function(D){return T(D)===y},xn.isSuspenseList=function(D){return T(D)===S},xn.isValidElementType=function(D){return typeof D=="string"||typeof D=="function"||D===r||D===s||D===a||D===y||D===S||D===x||typeof D=="object"&&D!==null&&(D.$$typeof===C||D.$$typeof===E||D.$$typeof===c||D.$$typeof===f||D.$$typeof===v||D.$$typeof===R||D.getModuleId!==void 0)},xn.typeOf=T,xn}var wn={};/**
241
241
  * @license React
242
242
  * react-is.development.js
243
243
  *
@@ -245,8 +245,8 @@ Valid keys: `+JSON.stringify(Object.keys(L),null," "));var me=Le(Oe,Ue,_e,We,Re
245
245
  *
246
246
  * This source code is licensed under the MIT license found in the
247
247
  * LICENSE file in the root directory of this source tree.
248
- */var W_;function o7(){return W_||(W_=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.server_context"),v=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),R=!1,T=!1,D=!1,M=!1,I=!1,N;N=Symbol.for("react.module.reference");function B(be){return!!(typeof be=="string"||typeof be=="function"||be===r||be===s||I||be===a||be===y||be===S||M||be===x||R||T||D||typeof be=="object"&&be!==null&&(be.$$typeof===C||be.$$typeof===E||be.$$typeof===c||be.$$typeof===f||be.$$typeof===v||be.$$typeof===N||be.getModuleId!==void 0))}function F(be){if(typeof be=="object"&&be!==null){var ht=be.$$typeof;switch(ht){case e:var He=be.type;switch(He){case r:case s:case a:case y:case S:return He;default:var Rt=He&&He.$$typeof;switch(Rt){case h:case f:case v:case C:case E:case c:return Rt;default:return ht}}case n:return ht}}}var $=f,H=c,Y=e,ne=v,ve=r,ee=C,oe=E,J=n,pe=s,ke=a,xe=y,Ie=S,se=!1,Te=!1;function L(be){return se||(se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function te(be){return Te||(Te=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ye(be){return F(be)===f}function U(be){return F(be)===c}function _e(be){return typeof be=="object"&&be!==null&&be.$$typeof===e}function We(be){return F(be)===v}function Re(be){return F(be)===r}function Oe(be){return F(be)===C}function $e(be){return F(be)===E}function Ge(be){return F(be)===n}function Ue(be){return F(be)===s}function Le(be){return F(be)===a}function me(be){return F(be)===y}function ze(be){return F(be)===S}wn.ContextConsumer=$,wn.ContextProvider=H,wn.Element=Y,wn.ForwardRef=ne,wn.Fragment=ve,wn.Lazy=ee,wn.Memo=oe,wn.Portal=J,wn.Profiler=pe,wn.StrictMode=ke,wn.Suspense=xe,wn.SuspenseList=Ie,wn.isAsyncMode=L,wn.isConcurrentMode=te,wn.isContextConsumer=ye,wn.isContextProvider=U,wn.isElement=_e,wn.isForwardRef=We,wn.isFragment=Re,wn.isLazy=Oe,wn.isMemo=$e,wn.isPortal=Ge,wn.isProfiler=Ue,wn.isStrictMode=Le,wn.isSuspense=me,wn.isSuspenseList=ze,wn.isValidElementType=B,wn.typeOf=F}()),wn}process.env.NODE_ENV==="production"?eE.exports=a7():eE.exports=o7();var l7=eE.exports;const s7=Jf(l7);function u7(e){const n=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof n=="string"&&n.replace(/[ \t\n\f\r]/g,"")===""}function c7(e){return e.join(" ").trim()}function f7(e,n){const r=n||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}var tE={exports:{}},Y_=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,d7=/\n/g,p7=/^\s*/,h7=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,m7=/^:\s*/,v7=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,g7=/^[;\s]*/,y7=/^\s+|\s+$/g,b7=`
249
- `,Z_="/",K_="*",wc="",S7="comment",E7="declaration",x7=function(e,n){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];n=n||{};var r=1,a=1;function s(R){var T=R.match(d7);T&&(r+=T.length);var D=R.lastIndexOf(b7);a=~D?R.length-D:a+R.length}function c(){var R={line:r,column:a};return function(T){return T.position=new f(R),y(),T}}function f(R){this.start=R,this.end={line:r,column:a},this.source=n.source}f.prototype.content=e;function h(R){var T=new Error(n.source+":"+r+":"+a+": "+R);if(T.reason=R,T.filename=n.source,T.line=r,T.column=a,T.source=e,!n.silent)throw T}function v(R){var T=R.exec(e);if(T){var D=T[0];return s(D),e=e.slice(D.length),T}}function y(){v(p7)}function S(R){var T;for(R=R||[];T=E();)T!==!1&&R.push(T);return R}function E(){var R=c();if(!(Z_!=e.charAt(0)||K_!=e.charAt(1))){for(var T=2;wc!=e.charAt(T)&&(K_!=e.charAt(T)||Z_!=e.charAt(T+1));)++T;if(T+=2,wc===e.charAt(T-1))return h("End of comment missing");var D=e.slice(2,T-2);return a+=2,s(D),e=e.slice(T),a+=2,R({type:S7,comment:D})}}function C(){var R=c(),T=v(h7);if(T){if(E(),!v(m7))return h("property missing ':'");var D=v(v7),M=R({type:E7,property:G_(T[0].replace(Y_,wc)),value:D?G_(D[0].replace(Y_,wc)):wc});return v(g7),M}}function x(){var R=[];S(R);for(var T;T=C();)T!==!1&&(R.push(T),S(R));return R}return y(),x()};function G_(e){return e?e.replace(y7,wc):wc}var w7=x7;function Q_(e,n){var r=null;if(!e||typeof e!="string")return r;for(var a,s=w7(e),c=typeof n=="function",f,h,v=0,y=s.length;v<y;v++)a=s[v],f=a.property,h=a.value,c?n(f,h,a):h&&(r||(r={}),r[f]=h);return r}tE.exports=Q_,tE.exports.default=Q_;var C7=tE.exports;const k7=Jf(C7),nE={}.hasOwnProperty,_7=new Set(["table","thead","tbody","tfoot","tr"]);function X_(e,n){const r=[];let a=-1,s;for(;++a<n.children.length;)s=n.children[a],s.type==="element"?r.push(T7(e,s,a,n)):s.type==="text"?(n.type!=="element"||!_7.has(n.tagName)||!u7(s))&&r.push(s.value):s.type==="raw"&&!e.options.skipHtml&&r.push(s.value);return r}function T7(e,n,r,a){const s=e.options,c=s.transformLinkUri===void 0?_6:s.transformLinkUri,f=e.schema,h=n.tagName,v={};let y=f,S;if(f.space==="html"&&h==="svg"&&(y=r7,e.schema=y),n.properties)for(S in n.properties)nE.call(n.properties,S)&&O7(v,S,n.properties[S],e);(h==="ol"||h==="ul")&&e.listDepth++;const E=X_(e,n);(h==="ol"||h==="ul")&&e.listDepth--,e.schema=f;const C=n.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},x=s.components&&nE.call(s.components,h)?s.components[h]:h,R=typeof x=="string"||x===j.Fragment;if(!s7.isValidElementType(x))throw new TypeError(`Component for name \`${h}\` not defined or is not renderable`);if(v.key=r,h==="a"&&s.linkTarget&&(v.target=typeof s.linkTarget=="function"?s.linkTarget(String(v.href||""),n.children,typeof v.title=="string"?v.title:null):s.linkTarget),h==="a"&&c&&(v.href=c(String(v.href||""),n.children,typeof v.title=="string"?v.title:null)),!R&&h==="code"&&a.type==="element"&&a.tagName!=="pre"&&(v.inline=!0),!R&&(h==="h1"||h==="h2"||h==="h3"||h==="h4"||h==="h5"||h==="h6")&&(v.level=Number.parseInt(h.charAt(1),10)),h==="img"&&s.transformImageUri&&(v.src=s.transformImageUri(String(v.src||""),String(v.alt||""),typeof v.title=="string"?v.title:null)),!R&&h==="li"&&a.type==="element"){const T=R7(n);v.checked=T&&T.properties?!!T.properties.checked:null,v.index=rE(a,n),v.ordered=a.tagName==="ol"}return!R&&(h==="ol"||h==="ul")&&(v.ordered=h==="ol",v.depth=e.listDepth),(h==="td"||h==="th")&&(v.align&&(v.style||(v.style={}),v.style.textAlign=v.align,delete v.align),R||(v.isHeader=h==="th")),!R&&h==="tr"&&a.type==="element"&&(v.isHeader=a.tagName==="thead"),s.sourcePos&&(v["data-sourcepos"]=M7(C)),!R&&s.rawSourcePos&&(v.sourcePosition=n.position),!R&&s.includeElementIndex&&(v.index=rE(a,n),v.siblingCount=rE(a)),R||(v.node=n),E.length>0?j.createElement(x,v,E):j.createElement(x,v)}function R7(e){let n=-1;for(;++n<e.children.length;){const r=e.children[n];if(r.type==="element"&&r.tagName==="input")return r}return null}function rE(e,n){let r=-1,a=0;for(;++r<e.children.length&&e.children[r]!==n;)e.children[r].type==="element"&&a++;return a}function O7(e,n,r,a){const s=J8(a.schema,n);let c=r;c==null||c!==c||(Array.isArray(c)&&(c=s.commaSeparated?f7(c):c7(c)),s.property==="style"&&typeof c=="string"&&(c=D7(c)),s.space&&s.property?e[nE.call(H_,s.property)?H_[s.property]:s.property]=c:s.attribute&&(e[s.attribute]=c))}function D7(e){const n={};try{k7(e,r)}catch{}return n;function r(a,s){const c=a.slice(0,4)==="-ms-"?`ms-${a.slice(4)}`:a;n[c.replace(/-([a-z])/g,A7)]=s}}function A7(e,n){return n.toUpperCase()}function M7(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(String).join("")}const J_={}.hasOwnProperty,L7="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",q0={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function eT(e){for(const c in q0)if(J_.call(q0,c)&&J_.call(e,c)){const f=q0[c];console.warn(`[react-markdown] Warning: please ${f.to?`use \`${f.to}\` instead of`:"remove"} \`${c}\` (see <${L7}#${f.id}> for more info)`),delete q0[c]}const n=B6().use(qM).use(e.remarkPlugins||[]).use(N8,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(i7,e),r=new wk;typeof e.children=="string"?r.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const a=n.runSync(n.parse(r),r);if(a.type!=="root")throw new TypeError("Expected a `root` node");let s=j.createElement(j.Fragment,{},X_({options:e,schema:n7,listDepth:0},a));return e.className&&(s=j.createElement("div",{className:e.className},s)),s}eT.propTypes={children:$t.string,className:$t.string,allowElement:$t.func,allowedElements:$t.arrayOf($t.string),disallowedElements:$t.arrayOf($t.string),unwrapDisallowed:$t.bool,remarkPlugins:$t.arrayOf($t.oneOfType([$t.object,$t.func,$t.arrayOf($t.oneOfType([$t.bool,$t.string,$t.object,$t.func,$t.arrayOf($t.any)]))])),rehypePlugins:$t.arrayOf($t.oneOfType([$t.object,$t.func,$t.arrayOf($t.oneOfType([$t.bool,$t.string,$t.object,$t.func,$t.arrayOf($t.any)]))])),sourcePos:$t.bool,rawSourcePos:$t.bool,skipHtml:$t.bool,includeElementIndex:$t.bool,transformLinkUri:$t.oneOfType([$t.func,$t.bool]),linkTarget:$t.oneOfType([$t.func,$t.string]),transformImageUri:$t.func,components:$t.object};const P7=({text:e,type:n,styles:r})=>{const a=r==null?void 0:r[n],s={h1:({node:c,...f})=>he.jsx("h1",{...f,...a==null?void 0:a.heading1}),h2:({node:c,...f})=>he.jsx("h2",{...f,...a==null?void 0:a.heading2}),h3:({node:c,...f})=>he.jsx("h3",{...f,...a==null?void 0:a.heading3}),h4:"h3",h5:"h3",h6:"h3",em:({node:c,...f})=>he.jsx("em",{...f,...a==null?void 0:a.italic}),strong:({node:c,...f})=>he.jsx("strong",{...f,...a==null?void 0:a.bold}),p:({node:c,...f})=>he.jsx("p",{...f,...a==null?void 0:a.text}),hr:({node:c,...f})=>he.jsx("hr",{...f,...a==null?void 0:a.horizontalRule}),a:({node:c,...f})=>he.jsx("a",{...f,...a==null?void 0:a.link}),ol:({node:c,ordered:f,...h})=>he.jsx("ol",{...h,...a==null?void 0:a.orderedList}),ul:({node:c,ordered:f,...h})=>he.jsx("ul",{...h,...a==null?void 0:a.unorderedList}),li:({node:c,ordered:f,...h})=>he.jsx("li",{...h,...a==null?void 0:a.listItem}),br:({node:c,...f})=>he.jsx("br",{...f,...a==null?void 0:a.lineBreak}),img:()=>null,pre:()=>null};return he.jsx(eT,{components:s,children:e})},tT=j.createContext(null);function nT(){const e=j.useContext(tT);if(!e)throw new Error("useComposerContext must be used within a Message");return e}const rT=j.createContext(null);function N7(){const e=j.useContext(rT);if(!e)throw new Error("useMessageContext must be used within a Message");return e}const iT=j.createContext(null);function F7(){const e=j.useContext(iT);if(!e)throw new Error("useModalContext must be used within a ModalProvider");return e}const aT=j.createContext(null);function cr(){const e=j.useContext(aT);if(!e)throw new Error("useWebchatContext must be used within a WebchatProvider");return e}const I7=({text:e,buttonValue:n,type:r,styles:a,variant:s,groupId:c,reusable:f,...h})=>{const{eventEmitter:v,client:y}=cr(),[S,E]=j.useState(!1),[C,x]=j.useState(!1),[R,T]=j.useState(!1);j.useEffect(()=>{if(c)return v.on(`button-group-${c}-click`,()=>{x(!0),f||T(!0)})},[v,c,f]);function D(){c&&v.emit(`button-group-${c}-click`),E(!0),f||T(!0),s!=="link"&&y.sendMessage(n)}return he.jsx(z7,{...h,variant:s,onClick:D,disabled:R,"data-activated":S?"":void 0,"data-group-activated":C?"":void 0,"data-type":s,value:n,...a==null?void 0:a[r],children:e})},z7=e=>{if(e.variant==="link"){const{value:a,variant:s,...c}=e;return he.jsx("a",{...c,href:a,target:"_blank",rel:"noopener noreferrer"})}const{variant:n,...r}=e;return he.jsx("button",{...r})},j7=j.forwardRef(({block:e,styles:n,type:r,...a},s)=>he.jsx("div",{...a,...n==null?void 0:n[r],ref:s,children:he.jsx(fd,{styles:n,block:e})}));function $7(e,n){const r=n?`The ${n} has been copied to your clipboard.`:"Copied to clipboard.";return navigator.clipboard.writeText(e).then(()=>nP({title:r,type:"success"}))}const U7=(e,n={})=>new Promise((r,a)=>{if(typeof window>"u")return a("Window is not defined");if(!e)return a("Url is not defined");let s=null;const c=new Image;c.addEventListener("load",()=>{s&&clearTimeout(s),r({width:c.naturalWidth,height:c.naturalHeight})}),c.addEventListener("error",f=>{s&&clearTimeout(s),a(`${f.type}: ${f.message}`)}),c.src=e,n.timeout&&(s=setTimeout(()=>a("Timeout"),n.timeout))});let B7={data:""},V7=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||B7,H7=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,q7=/\/\*[^]*?\*\/| +/g,oT=/\n+/g,eu=(e,n)=>{let r="",a="",s="";for(let c in e){let f=e[c];c[0]=="@"?c[1]=="i"?r=c+" "+f+";":a+=c[1]=="f"?eu(f,c):c+"{"+eu(f,c[1]=="k"?"":n)+"}":typeof f=="object"?a+=eu(f,n?n.replace(/([^,])+/g,h=>c.replace(/(^:.*)|([^,])+/g,v=>/&/.test(v)?v.replace(/&/g,h):h?h+" "+v:v)):c):f!=null&&(c=/^--/.test(c)?c:c.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=eu.p?eu.p(c,f):c+":"+f+";")}return r+(n&&s?n+"{"+s+"}":s)+a},Wl={},lT=e=>{if(typeof e=="object"){let n="";for(let r in e)n+=r+lT(e[r]);return n}return e},W7=(e,n,r,a,s)=>{let c=lT(e),f=Wl[c]||(Wl[c]=(v=>{let y=0,S=11;for(;y<v.length;)S=101*S+v.charCodeAt(y++)>>>0;return"go"+S})(c));if(!Wl[f]){let v=c!==e?e:(y=>{let S,E,C=[{}];for(;S=H7.exec(y.replace(q7,""));)S[4]?C.shift():S[3]?(E=S[3].replace(oT," ").trim(),C.unshift(C[0][E]=C[0][E]||{})):C[0][S[1]]=S[2].replace(oT," ").trim();return C[0]})(e);Wl[f]=eu(s?{["@keyframes "+f]:v}:v,r?"":"."+f)}let h=r&&Wl.g?Wl.g:null;return r&&(Wl.g=Wl[f]),((v,y,S,E)=>{E?y.data=y.data.replace(E,v):y.data.indexOf(v)===-1&&(y.data=S?v+y.data:y.data+v)})(Wl[f],n,a,h),f},Y7=(e,n,r)=>e.reduce((a,s,c)=>{let f=n[c];if(f&&f.call){let h=f(r),v=h&&h.props&&h.props.className||/^go/.test(h)&&h;f=v?"."+v:h&&typeof h=="object"?h.props?"":eu(h,""):h===!1?"":h}return a+s+(f??"")},"");function W0(e){let n=this||{},r=e.call?e(n.p):e;return W7(r.unshift?r.raw?Y7(r,[].slice.call(arguments,1),n.p):r.reduce((a,s)=>Object.assign(a,s&&s.call?s(n.p):s),{}):r,V7(n.target),n.g,n.o,n.k)}let sT,iE,aE;W0.bind({g:1});let Yl=W0.bind({k:1});function Z7(e,n,r,a){eu.p=n,sT=e,iE=r,aE=a}function tu(e,n){let r=this||{};return function(){let a=arguments;function s(c,f){let h=Object.assign({},c),v=h.className||s.className;r.p=Object.assign({theme:iE&&iE()},h),r.o=/ *go\d+/.test(v),h.className=W0.apply(r,a)+(v?" "+v:""),n&&(h.ref=f);let y=e;return e[0]&&(y=h.as||e,delete h.as),aE&&y[0]&&aE(h),sT(y,h)}return n?n(s):s}}var K7=e=>typeof e=="function",Y0=(e,n)=>K7(e)?e(n):e,G7=(()=>{let e=0;return()=>(++e).toString()})(),uT=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let n=matchMedia("(prefers-reduced-motion: reduce)");e=!n||n.matches}return e}})(),Q7=20,Z0=new Map,X7=1e3,cT=e=>{if(Z0.has(e))return;let n=setTimeout(()=>{Z0.delete(e),Cc({type:4,toastId:e})},X7);Z0.set(e,n)},J7=e=>{let n=Z0.get(e);n&&clearTimeout(n)},oE=(e,n)=>{switch(n.type){case 0:return{...e,toasts:[n.toast,...e.toasts].slice(0,Q7)};case 1:return n.toast.id&&J7(n.toast.id),{...e,toasts:e.toasts.map(c=>c.id===n.toast.id?{...c,...n.toast}:c)};case 2:let{toast:r}=n;return e.toasts.find(c=>c.id===r.id)?oE(e,{type:1,toast:r}):oE(e,{type:0,toast:r});case 3:let{toastId:a}=n;return a?cT(a):e.toasts.forEach(c=>{cT(c.id)}),{...e,toasts:e.toasts.map(c=>c.id===a||a===void 0?{...c,visible:!1}:c)};case 4:return n.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(c=>c.id!==n.toastId)};case 5:return{...e,pausedAt:n.time};case 6:let s=n.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(c=>({...c,pauseDuration:c.pauseDuration+s}))}}},K0=[],G0={toasts:[],pausedAt:void 0},Cc=e=>{G0=oE(G0,e),K0.forEach(n=>{n(G0)})},eL={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},tL=(e={})=>{let[n,r]=j.useState(G0);j.useEffect(()=>(K0.push(r),()=>{let s=K0.indexOf(r);s>-1&&K0.splice(s,1)}),[n]);let a=n.toasts.map(s=>{var c,f;return{...e,...e[s.type],...s,duration:s.duration||((c=e[s.type])==null?void 0:c.duration)||(e==null?void 0:e.duration)||eL[s.type],style:{...e.style,...(f=e[s.type])==null?void 0:f.style,...s.style}}});return{...n,toasts:a}},nL=(e,n="blank",r)=>({createdAt:Date.now(),visible:!0,type:n,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(r==null?void 0:r.id)||G7()}),Ph=e=>(n,r)=>{let a=nL(n,e,r);return Cc({type:2,toast:a}),a.id},ia=(e,n)=>Ph("blank")(e,n);ia.error=Ph("error"),ia.success=Ph("success"),ia.loading=Ph("loading"),ia.custom=Ph("custom"),ia.dismiss=e=>{Cc({type:3,toastId:e})},ia.remove=e=>Cc({type:4,toastId:e}),ia.promise=(e,n,r)=>{let a=ia.loading(n.loading,{...r,...r==null?void 0:r.loading});return e.then(s=>(ia.success(Y0(n.success,s),{id:a,...r,...r==null?void 0:r.success}),s)).catch(s=>{ia.error(Y0(n.error,s),{id:a,...r,...r==null?void 0:r.error})}),e};var rL=(e,n)=>{Cc({type:1,toast:{id:e,height:n}})},iL=()=>{Cc({type:5,time:Date.now()})},aL=e=>{let{toasts:n,pausedAt:r}=tL(e);j.useEffect(()=>{if(r)return;let c=Date.now(),f=n.map(h=>{if(h.duration===1/0)return;let v=(h.duration||0)+h.pauseDuration-(c-h.createdAt);if(v<0){h.visible&&ia.dismiss(h.id);return}return setTimeout(()=>ia.dismiss(h.id),v)});return()=>{f.forEach(h=>h&&clearTimeout(h))}},[n,r]);let a=j.useCallback(()=>{r&&Cc({type:6,time:Date.now()})},[r]),s=j.useCallback((c,f)=>{let{reverseOrder:h=!1,gutter:v=8,defaultPosition:y}=f||{},S=n.filter(x=>(x.position||y)===(c.position||y)&&x.height),E=S.findIndex(x=>x.id===c.id),C=S.filter((x,R)=>R<E&&x.visible).length;return S.filter(x=>x.visible).slice(...h?[C+1]:[0,C]).reduce((x,R)=>x+(R.height||0)+v,0)},[n]);return{toasts:n,handlers:{updateHeight:rL,startPause:iL,endPause:a,calculateOffset:s}}},oL=Yl`
248
+ */var W_;function l7(){return W_||(W_=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.server_context"),v=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),R=!1,T=!1,D=!1,M=!1,I=!1,N;N=Symbol.for("react.module.reference");function B(be){return!!(typeof be=="string"||typeof be=="function"||be===r||be===s||I||be===a||be===y||be===S||M||be===x||R||T||D||typeof be=="object"&&be!==null&&(be.$$typeof===C||be.$$typeof===E||be.$$typeof===c||be.$$typeof===f||be.$$typeof===v||be.$$typeof===N||be.getModuleId!==void 0))}function F(be){if(typeof be=="object"&&be!==null){var ht=be.$$typeof;switch(ht){case e:var He=be.type;switch(He){case r:case s:case a:case y:case S:return He;default:var Rt=He&&He.$$typeof;switch(Rt){case h:case f:case v:case C:case E:case c:return Rt;default:return ht}}case n:return ht}}}var $=f,H=c,Y=e,ne=v,ve=r,ee=C,oe=E,J=n,pe=s,ke=a,xe=y,Ie=S,se=!1,Te=!1;function L(be){return se||(se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function te(be){return Te||(Te=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ye(be){return F(be)===f}function U(be){return F(be)===c}function _e(be){return typeof be=="object"&&be!==null&&be.$$typeof===e}function We(be){return F(be)===v}function Re(be){return F(be)===r}function Oe(be){return F(be)===C}function $e(be){return F(be)===E}function Ge(be){return F(be)===n}function Ue(be){return F(be)===s}function Le(be){return F(be)===a}function me(be){return F(be)===y}function ze(be){return F(be)===S}wn.ContextConsumer=$,wn.ContextProvider=H,wn.Element=Y,wn.ForwardRef=ne,wn.Fragment=ve,wn.Lazy=ee,wn.Memo=oe,wn.Portal=J,wn.Profiler=pe,wn.StrictMode=ke,wn.Suspense=xe,wn.SuspenseList=Ie,wn.isAsyncMode=L,wn.isConcurrentMode=te,wn.isContextConsumer=ye,wn.isContextProvider=U,wn.isElement=_e,wn.isForwardRef=We,wn.isFragment=Re,wn.isLazy=Oe,wn.isMemo=$e,wn.isPortal=Ge,wn.isProfiler=Ue,wn.isStrictMode=Le,wn.isSuspense=me,wn.isSuspenseList=ze,wn.isValidElementType=B,wn.typeOf=F}()),wn}process.env.NODE_ENV==="production"?eE.exports=o7():eE.exports=l7();var s7=eE.exports;const u7=Jf(s7);function c7(e){const n=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof n=="string"&&n.replace(/[ \t\n\f\r]/g,"")===""}function f7(e){return e.join(" ").trim()}function d7(e,n){const r=n||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}var tE={exports:{}},Y_=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,p7=/\n/g,h7=/^\s*/,m7=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,v7=/^:\s*/,g7=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,y7=/^[;\s]*/,b7=/^\s+|\s+$/g,S7=`
249
+ `,Z_="/",K_="*",wc="",E7="comment",x7="declaration",w7=function(e,n){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];n=n||{};var r=1,a=1;function s(R){var T=R.match(p7);T&&(r+=T.length);var D=R.lastIndexOf(S7);a=~D?R.length-D:a+R.length}function c(){var R={line:r,column:a};return function(T){return T.position=new f(R),y(),T}}function f(R){this.start=R,this.end={line:r,column:a},this.source=n.source}f.prototype.content=e;function h(R){var T=new Error(n.source+":"+r+":"+a+": "+R);if(T.reason=R,T.filename=n.source,T.line=r,T.column=a,T.source=e,!n.silent)throw T}function v(R){var T=R.exec(e);if(T){var D=T[0];return s(D),e=e.slice(D.length),T}}function y(){v(h7)}function S(R){var T;for(R=R||[];T=E();)T!==!1&&R.push(T);return R}function E(){var R=c();if(!(Z_!=e.charAt(0)||K_!=e.charAt(1))){for(var T=2;wc!=e.charAt(T)&&(K_!=e.charAt(T)||Z_!=e.charAt(T+1));)++T;if(T+=2,wc===e.charAt(T-1))return h("End of comment missing");var D=e.slice(2,T-2);return a+=2,s(D),e=e.slice(T),a+=2,R({type:E7,comment:D})}}function C(){var R=c(),T=v(m7);if(T){if(E(),!v(v7))return h("property missing ':'");var D=v(g7),M=R({type:x7,property:G_(T[0].replace(Y_,wc)),value:D?G_(D[0].replace(Y_,wc)):wc});return v(y7),M}}function x(){var R=[];S(R);for(var T;T=C();)T!==!1&&(R.push(T),S(R));return R}return y(),x()};function G_(e){return e?e.replace(b7,wc):wc}var C7=w7;function Q_(e,n){var r=null;if(!e||typeof e!="string")return r;for(var a,s=C7(e),c=typeof n=="function",f,h,v=0,y=s.length;v<y;v++)a=s[v],f=a.property,h=a.value,c?n(f,h,a):h&&(r||(r={}),r[f]=h);return r}tE.exports=Q_,tE.exports.default=Q_;var k7=tE.exports;const _7=Jf(k7),nE={}.hasOwnProperty,T7=new Set(["table","thead","tbody","tfoot","tr"]);function X_(e,n){const r=[];let a=-1,s;for(;++a<n.children.length;)s=n.children[a],s.type==="element"?r.push(R7(e,s,a,n)):s.type==="text"?(n.type!=="element"||!T7.has(n.tagName)||!c7(s))&&r.push(s.value):s.type==="raw"&&!e.options.skipHtml&&r.push(s.value);return r}function R7(e,n,r,a){const s=e.options,c=s.transformLinkUri===void 0?T6:s.transformLinkUri,f=e.schema,h=n.tagName,v={};let y=f,S;if(f.space==="html"&&h==="svg"&&(y=i7,e.schema=y),n.properties)for(S in n.properties)nE.call(n.properties,S)&&D7(v,S,n.properties[S],e);(h==="ol"||h==="ul")&&e.listDepth++;const E=X_(e,n);(h==="ol"||h==="ul")&&e.listDepth--,e.schema=f;const C=n.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},x=s.components&&nE.call(s.components,h)?s.components[h]:h,R=typeof x=="string"||x===j.Fragment;if(!u7.isValidElementType(x))throw new TypeError(`Component for name \`${h}\` not defined or is not renderable`);if(v.key=r,h==="a"&&s.linkTarget&&(v.target=typeof s.linkTarget=="function"?s.linkTarget(String(v.href||""),n.children,typeof v.title=="string"?v.title:null):s.linkTarget),h==="a"&&c&&(v.href=c(String(v.href||""),n.children,typeof v.title=="string"?v.title:null)),!R&&h==="code"&&a.type==="element"&&a.tagName!=="pre"&&(v.inline=!0),!R&&(h==="h1"||h==="h2"||h==="h3"||h==="h4"||h==="h5"||h==="h6")&&(v.level=Number.parseInt(h.charAt(1),10)),h==="img"&&s.transformImageUri&&(v.src=s.transformImageUri(String(v.src||""),String(v.alt||""),typeof v.title=="string"?v.title:null)),!R&&h==="li"&&a.type==="element"){const T=O7(n);v.checked=T&&T.properties?!!T.properties.checked:null,v.index=rE(a,n),v.ordered=a.tagName==="ol"}return!R&&(h==="ol"||h==="ul")&&(v.ordered=h==="ol",v.depth=e.listDepth),(h==="td"||h==="th")&&(v.align&&(v.style||(v.style={}),v.style.textAlign=v.align,delete v.align),R||(v.isHeader=h==="th")),!R&&h==="tr"&&a.type==="element"&&(v.isHeader=a.tagName==="thead"),s.sourcePos&&(v["data-sourcepos"]=L7(C)),!R&&s.rawSourcePos&&(v.sourcePosition=n.position),!R&&s.includeElementIndex&&(v.index=rE(a,n),v.siblingCount=rE(a)),R||(v.node=n),E.length>0?j.createElement(x,v,E):j.createElement(x,v)}function O7(e){let n=-1;for(;++n<e.children.length;){const r=e.children[n];if(r.type==="element"&&r.tagName==="input")return r}return null}function rE(e,n){let r=-1,a=0;for(;++r<e.children.length&&e.children[r]!==n;)e.children[r].type==="element"&&a++;return a}function D7(e,n,r,a){const s=e7(a.schema,n);let c=r;c==null||c!==c||(Array.isArray(c)&&(c=s.commaSeparated?d7(c):f7(c)),s.property==="style"&&typeof c=="string"&&(c=A7(c)),s.space&&s.property?e[nE.call(H_,s.property)?H_[s.property]:s.property]=c:s.attribute&&(e[s.attribute]=c))}function A7(e){const n={};try{_7(e,r)}catch{}return n;function r(a,s){const c=a.slice(0,4)==="-ms-"?`ms-${a.slice(4)}`:a;n[c.replace(/-([a-z])/g,M7)]=s}}function M7(e,n){return n.toUpperCase()}function L7(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(String).join("")}const J_={}.hasOwnProperty,P7="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",q0={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function eT(e){for(const c in q0)if(J_.call(q0,c)&&J_.call(e,c)){const f=q0[c];console.warn(`[react-markdown] Warning: please ${f.to?`use \`${f.to}\` instead of`:"remove"} \`${c}\` (see <${P7}#${f.id}> for more info)`),delete q0[c]}const n=V6().use(WM).use(e.remarkPlugins||[]).use(F8,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(a7,e),r=new wk;typeof e.children=="string"?r.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const a=n.runSync(n.parse(r),r);if(a.type!=="root")throw new TypeError("Expected a `root` node");let s=j.createElement(j.Fragment,{},X_({options:e,schema:r7,listDepth:0},a));return e.className&&(s=j.createElement("div",{className:e.className},s)),s}eT.propTypes={children:$t.string,className:$t.string,allowElement:$t.func,allowedElements:$t.arrayOf($t.string),disallowedElements:$t.arrayOf($t.string),unwrapDisallowed:$t.bool,remarkPlugins:$t.arrayOf($t.oneOfType([$t.object,$t.func,$t.arrayOf($t.oneOfType([$t.bool,$t.string,$t.object,$t.func,$t.arrayOf($t.any)]))])),rehypePlugins:$t.arrayOf($t.oneOfType([$t.object,$t.func,$t.arrayOf($t.oneOfType([$t.bool,$t.string,$t.object,$t.func,$t.arrayOf($t.any)]))])),sourcePos:$t.bool,rawSourcePos:$t.bool,skipHtml:$t.bool,includeElementIndex:$t.bool,transformLinkUri:$t.oneOfType([$t.func,$t.bool]),linkTarget:$t.oneOfType([$t.func,$t.string]),transformImageUri:$t.func,components:$t.object};const N7=({text:e,type:n,styles:r})=>{const a=r==null?void 0:r[n],s={h1:({node:c,...f})=>he.jsx("h1",{...f,...a==null?void 0:a.heading1}),h2:({node:c,...f})=>he.jsx("h2",{...f,...a==null?void 0:a.heading2}),h3:({node:c,...f})=>he.jsx("h3",{...f,...a==null?void 0:a.heading3}),h4:"h3",h5:"h3",h6:"h3",em:({node:c,...f})=>he.jsx("em",{...f,...a==null?void 0:a.italic}),strong:({node:c,...f})=>he.jsx("strong",{...f,...a==null?void 0:a.bold}),p:({node:c,...f})=>he.jsx("p",{...f,...a==null?void 0:a.text}),hr:({node:c,...f})=>he.jsx("hr",{...f,...a==null?void 0:a.horizontalRule}),a:({node:c,...f})=>he.jsx("a",{...f,...a==null?void 0:a.link}),ol:({node:c,ordered:f,...h})=>he.jsx("ol",{...h,...a==null?void 0:a.orderedList}),ul:({node:c,ordered:f,...h})=>he.jsx("ul",{...h,...a==null?void 0:a.unorderedList}),li:({node:c,ordered:f,...h})=>he.jsx("li",{...h,...a==null?void 0:a.listItem}),br:({node:c,...f})=>he.jsx("br",{...f,...a==null?void 0:a.lineBreak}),img:()=>null,pre:()=>null};return he.jsx(eT,{components:s,children:e})},tT=j.createContext(null);function nT(){const e=j.useContext(tT);if(!e)throw new Error("useComposerContext must be used within a Message");return e}const rT=j.createContext(null);function F7(){const e=j.useContext(rT);if(!e)throw new Error("useMessageContext must be used within a Message");return e}const iT=j.createContext(null);function I7(){const e=j.useContext(iT);if(!e)throw new Error("useModalContext must be used within a ModalProvider");return e}const aT=j.createContext(null);function cr(){const e=j.useContext(aT);if(!e)throw new Error("useWebchatContext must be used within a WebchatProvider");return e}const z7=({text:e,buttonValue:n,type:r,styles:a,variant:s,groupId:c,reusable:f,...h})=>{const{eventEmitter:v,client:y}=cr(),[S,E]=j.useState(!1),[C,x]=j.useState(!1),[R,T]=j.useState(!1);j.useEffect(()=>{if(c)return v.on(`button-group-${c}-click`,()=>{x(!0),f||T(!0)})},[v,c,f]);function D(){c&&v.emit(`button-group-${c}-click`),E(!0),f||T(!0),s!=="link"&&y.sendMessage(n)}return he.jsx(j7,{...h,variant:s,onClick:D,disabled:R,"data-activated":S?"":void 0,"data-group-activated":C?"":void 0,"data-type":s,value:n,...a==null?void 0:a[r],children:e})},j7=e=>{if(e.variant==="link"){const{value:a,variant:s,...c}=e;return he.jsx("a",{...c,href:a,target:"_blank",rel:"noopener noreferrer"})}const{variant:n,...r}=e;return he.jsx("button",{...r})},$7=j.forwardRef(({block:e,styles:n,type:r,...a},s)=>he.jsx("div",{...a,...n==null?void 0:n[r],ref:s,children:he.jsx(fd,{styles:n,block:e})}));function U7(e,n){const r=n?`The ${n} has been copied to your clipboard.`:"Copied to clipboard.";return navigator.clipboard.writeText(e).then(()=>rP({title:r,type:"success"}))}const B7=(e,n={})=>new Promise((r,a)=>{if(typeof window>"u")return a("Window is not defined");if(!e)return a("Url is not defined");let s=null;const c=new Image;c.addEventListener("load",()=>{s&&clearTimeout(s),r({width:c.naturalWidth,height:c.naturalHeight})}),c.addEventListener("error",f=>{s&&clearTimeout(s),a(`${f.type}: ${f.message}`)}),c.src=e,n.timeout&&(s=setTimeout(()=>a("Timeout"),n.timeout))});let V7={data:""},H7=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||V7,q7=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,W7=/\/\*[^]*?\*\/| +/g,oT=/\n+/g,eu=(e,n)=>{let r="",a="",s="";for(let c in e){let f=e[c];c[0]=="@"?c[1]=="i"?r=c+" "+f+";":a+=c[1]=="f"?eu(f,c):c+"{"+eu(f,c[1]=="k"?"":n)+"}":typeof f=="object"?a+=eu(f,n?n.replace(/([^,])+/g,h=>c.replace(/(^:.*)|([^,])+/g,v=>/&/.test(v)?v.replace(/&/g,h):h?h+" "+v:v)):c):f!=null&&(c=/^--/.test(c)?c:c.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=eu.p?eu.p(c,f):c+":"+f+";")}return r+(n&&s?n+"{"+s+"}":s)+a},Wl={},lT=e=>{if(typeof e=="object"){let n="";for(let r in e)n+=r+lT(e[r]);return n}return e},Y7=(e,n,r,a,s)=>{let c=lT(e),f=Wl[c]||(Wl[c]=(v=>{let y=0,S=11;for(;y<v.length;)S=101*S+v.charCodeAt(y++)>>>0;return"go"+S})(c));if(!Wl[f]){let v=c!==e?e:(y=>{let S,E,C=[{}];for(;S=q7.exec(y.replace(W7,""));)S[4]?C.shift():S[3]?(E=S[3].replace(oT," ").trim(),C.unshift(C[0][E]=C[0][E]||{})):C[0][S[1]]=S[2].replace(oT," ").trim();return C[0]})(e);Wl[f]=eu(s?{["@keyframes "+f]:v}:v,r?"":"."+f)}let h=r&&Wl.g?Wl.g:null;return r&&(Wl.g=Wl[f]),((v,y,S,E)=>{E?y.data=y.data.replace(E,v):y.data.indexOf(v)===-1&&(y.data=S?v+y.data:y.data+v)})(Wl[f],n,a,h),f},Z7=(e,n,r)=>e.reduce((a,s,c)=>{let f=n[c];if(f&&f.call){let h=f(r),v=h&&h.props&&h.props.className||/^go/.test(h)&&h;f=v?"."+v:h&&typeof h=="object"?h.props?"":eu(h,""):h===!1?"":h}return a+s+(f??"")},"");function W0(e){let n=this||{},r=e.call?e(n.p):e;return Y7(r.unshift?r.raw?Z7(r,[].slice.call(arguments,1),n.p):r.reduce((a,s)=>Object.assign(a,s&&s.call?s(n.p):s),{}):r,H7(n.target),n.g,n.o,n.k)}let sT,iE,aE;W0.bind({g:1});let Yl=W0.bind({k:1});function K7(e,n,r,a){eu.p=n,sT=e,iE=r,aE=a}function tu(e,n){let r=this||{};return function(){let a=arguments;function s(c,f){let h=Object.assign({},c),v=h.className||s.className;r.p=Object.assign({theme:iE&&iE()},h),r.o=/ *go\d+/.test(v),h.className=W0.apply(r,a)+(v?" "+v:""),n&&(h.ref=f);let y=e;return e[0]&&(y=h.as||e,delete h.as),aE&&y[0]&&aE(h),sT(y,h)}return n?n(s):s}}var G7=e=>typeof e=="function",Y0=(e,n)=>G7(e)?e(n):e,Q7=(()=>{let e=0;return()=>(++e).toString()})(),uT=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let n=matchMedia("(prefers-reduced-motion: reduce)");e=!n||n.matches}return e}})(),X7=20,Z0=new Map,J7=1e3,cT=e=>{if(Z0.has(e))return;let n=setTimeout(()=>{Z0.delete(e),Cc({type:4,toastId:e})},J7);Z0.set(e,n)},eL=e=>{let n=Z0.get(e);n&&clearTimeout(n)},oE=(e,n)=>{switch(n.type){case 0:return{...e,toasts:[n.toast,...e.toasts].slice(0,X7)};case 1:return n.toast.id&&eL(n.toast.id),{...e,toasts:e.toasts.map(c=>c.id===n.toast.id?{...c,...n.toast}:c)};case 2:let{toast:r}=n;return e.toasts.find(c=>c.id===r.id)?oE(e,{type:1,toast:r}):oE(e,{type:0,toast:r});case 3:let{toastId:a}=n;return a?cT(a):e.toasts.forEach(c=>{cT(c.id)}),{...e,toasts:e.toasts.map(c=>c.id===a||a===void 0?{...c,visible:!1}:c)};case 4:return n.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(c=>c.id!==n.toastId)};case 5:return{...e,pausedAt:n.time};case 6:let s=n.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(c=>({...c,pauseDuration:c.pauseDuration+s}))}}},K0=[],G0={toasts:[],pausedAt:void 0},Cc=e=>{G0=oE(G0,e),K0.forEach(n=>{n(G0)})},tL={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},nL=(e={})=>{let[n,r]=j.useState(G0);j.useEffect(()=>(K0.push(r),()=>{let s=K0.indexOf(r);s>-1&&K0.splice(s,1)}),[n]);let a=n.toasts.map(s=>{var c,f;return{...e,...e[s.type],...s,duration:s.duration||((c=e[s.type])==null?void 0:c.duration)||(e==null?void 0:e.duration)||tL[s.type],style:{...e.style,...(f=e[s.type])==null?void 0:f.style,...s.style}}});return{...n,toasts:a}},rL=(e,n="blank",r)=>({createdAt:Date.now(),visible:!0,type:n,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(r==null?void 0:r.id)||Q7()}),Ph=e=>(n,r)=>{let a=rL(n,e,r);return Cc({type:2,toast:a}),a.id},ia=(e,n)=>Ph("blank")(e,n);ia.error=Ph("error"),ia.success=Ph("success"),ia.loading=Ph("loading"),ia.custom=Ph("custom"),ia.dismiss=e=>{Cc({type:3,toastId:e})},ia.remove=e=>Cc({type:4,toastId:e}),ia.promise=(e,n,r)=>{let a=ia.loading(n.loading,{...r,...r==null?void 0:r.loading});return e.then(s=>(ia.success(Y0(n.success,s),{id:a,...r,...r==null?void 0:r.success}),s)).catch(s=>{ia.error(Y0(n.error,s),{id:a,...r,...r==null?void 0:r.error})}),e};var iL=(e,n)=>{Cc({type:1,toast:{id:e,height:n}})},aL=()=>{Cc({type:5,time:Date.now()})},oL=e=>{let{toasts:n,pausedAt:r}=nL(e);j.useEffect(()=>{if(r)return;let c=Date.now(),f=n.map(h=>{if(h.duration===1/0)return;let v=(h.duration||0)+h.pauseDuration-(c-h.createdAt);if(v<0){h.visible&&ia.dismiss(h.id);return}return setTimeout(()=>ia.dismiss(h.id),v)});return()=>{f.forEach(h=>h&&clearTimeout(h))}},[n,r]);let a=j.useCallback(()=>{r&&Cc({type:6,time:Date.now()})},[r]),s=j.useCallback((c,f)=>{let{reverseOrder:h=!1,gutter:v=8,defaultPosition:y}=f||{},S=n.filter(x=>(x.position||y)===(c.position||y)&&x.height),E=S.findIndex(x=>x.id===c.id),C=S.filter((x,R)=>R<E&&x.visible).length;return S.filter(x=>x.visible).slice(...h?[C+1]:[0,C]).reduce((x,R)=>x+(R.height||0)+v,0)},[n]);return{toasts:n,handlers:{updateHeight:iL,startPause:aL,endPause:a,calculateOffset:s}}},lL=Yl`
250
250
  from {
251
251
  transform: scale(0) rotate(45deg);
252
252
  opacity: 0;
@@ -254,7 +254,7 @@ from {
254
254
  to {
255
255
  transform: scale(1) rotate(45deg);
256
256
  opacity: 1;
257
- }`,lL=Yl`
257
+ }`,sL=Yl`
258
258
  from {
259
259
  transform: scale(0);
260
260
  opacity: 0;
@@ -262,7 +262,7 @@ from {
262
262
  to {
263
263
  transform: scale(1);
264
264
  opacity: 1;
265
- }`,sL=Yl`
265
+ }`,uL=Yl`
266
266
  from {
267
267
  transform: scale(0) rotate(90deg);
268
268
  opacity: 0;
@@ -270,7 +270,7 @@ from {
270
270
  to {
271
271
  transform: scale(1) rotate(90deg);
272
272
  opacity: 1;
273
- }`,uL=tu("div")`
273
+ }`,cL=tu("div")`
274
274
  width: 20px;
275
275
  opacity: 0;
276
276
  height: 20px;
@@ -279,14 +279,14 @@ to {
279
279
  position: relative;
280
280
  transform: rotate(45deg);
281
281
 
282
- animation: ${oL} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
282
+ animation: ${lL} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
283
283
  forwards;
284
284
  animation-delay: 100ms;
285
285
 
286
286
  &:after,
287
287
  &:before {
288
288
  content: '';
289
- animation: ${lL} 0.15s ease-out forwards;
289
+ animation: ${sL} 0.15s ease-out forwards;
290
290
  animation-delay: 150ms;
291
291
  position: absolute;
292
292
  border-radius: 3px;
@@ -299,18 +299,18 @@ to {
299
299
  }
300
300
 
301
301
  &:before {
302
- animation: ${sL} 0.15s ease-out forwards;
302
+ animation: ${uL} 0.15s ease-out forwards;
303
303
  animation-delay: 180ms;
304
304
  transform: rotate(90deg);
305
305
  }
306
- `,cL=Yl`
306
+ `,fL=Yl`
307
307
  from {
308
308
  transform: rotate(0deg);
309
309
  }
310
310
  to {
311
311
  transform: rotate(360deg);
312
312
  }
313
- `,fL=tu("div")`
313
+ `,dL=tu("div")`
314
314
  width: 12px;
315
315
  height: 12px;
316
316
  box-sizing: border-box;
@@ -318,8 +318,8 @@ to {
318
318
  border-radius: 100%;
319
319
  border-color: ${e=>e.secondary||"#e0e0e0"};
320
320
  border-right-color: ${e=>e.primary||"#616161"};
321
- animation: ${cL} 1s linear infinite;
322
- `,dL=Yl`
321
+ animation: ${fL} 1s linear infinite;
322
+ `,pL=Yl`
323
323
  from {
324
324
  transform: scale(0) rotate(45deg);
325
325
  opacity: 0;
@@ -327,7 +327,7 @@ from {
327
327
  to {
328
328
  transform: scale(1) rotate(45deg);
329
329
  opacity: 1;
330
- }`,pL=Yl`
330
+ }`,hL=Yl`
331
331
  0% {
332
332
  height: 0;
333
333
  width: 0;
@@ -341,7 +341,7 @@ to {
341
341
  100% {
342
342
  opacity: 1;
343
343
  height: 10px;
344
- }`,hL=tu("div")`
344
+ }`,mL=tu("div")`
345
345
  width: 20px;
346
346
  opacity: 0;
347
347
  height: 20px;
@@ -350,13 +350,13 @@ to {
350
350
  position: relative;
351
351
  transform: rotate(45deg);
352
352
 
353
- animation: ${dL} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
353
+ animation: ${pL} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
354
354
  forwards;
355
355
  animation-delay: 100ms;
356
356
  &:after {
357
357
  content: '';
358
358
  box-sizing: border-box;
359
- animation: ${pL} 0.2s ease-out forwards;
359
+ animation: ${hL} 0.2s ease-out forwards;
360
360
  opacity: 0;
361
361
  animation-delay: 200ms;
362
362
  position: absolute;
@@ -368,16 +368,16 @@ to {
368
368
  height: 10px;
369
369
  width: 6px;
370
370
  }
371
- `,mL=tu("div")`
372
- position: absolute;
373
371
  `,vL=tu("div")`
372
+ position: absolute;
373
+ `,gL=tu("div")`
374
374
  position: relative;
375
375
  display: flex;
376
376
  justify-content: center;
377
377
  align-items: center;
378
378
  min-width: 20px;
379
379
  min-height: 20px;
380
- `,gL=Yl`
380
+ `,yL=Yl`
381
381
  from {
382
382
  transform: scale(0.6);
383
383
  opacity: 0.4;
@@ -385,20 +385,20 @@ from {
385
385
  to {
386
386
  transform: scale(1);
387
387
  opacity: 1;
388
- }`,yL=tu("div")`
388
+ }`,bL=tu("div")`
389
389
  position: relative;
390
390
  transform: scale(0.6);
391
391
  opacity: 0.4;
392
392
  min-width: 20px;
393
- animation: ${gL} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
393
+ animation: ${yL} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
394
394
  forwards;
395
- `,bL=({toast:e})=>{let{icon:n,type:r,iconTheme:a}=e;return n!==void 0?typeof n=="string"?Z.createElement(yL,null,n):n:r==="blank"?null:Z.createElement(vL,null,Z.createElement(fL,{...a}),r!=="loading"&&Z.createElement(mL,null,r==="error"?Z.createElement(uL,{...a}):Z.createElement(hL,{...a})))},SL=e=>`
395
+ `,SL=({toast:e})=>{let{icon:n,type:r,iconTheme:a}=e;return n!==void 0?typeof n=="string"?Z.createElement(bL,null,n):n:r==="blank"?null:Z.createElement(gL,null,Z.createElement(dL,{...a}),r!=="loading"&&Z.createElement(vL,null,r==="error"?Z.createElement(cL,{...a}):Z.createElement(mL,{...a})))},EL=e=>`
396
396
  0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
397
397
  100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
398
- `,EL=e=>`
398
+ `,xL=e=>`
399
399
  0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
400
400
  100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
401
- `,xL="0%{opacity:0;} 100%{opacity:1;}",wL="0%{opacity:1;} 100%{opacity:0;}",CL=tu("div")`
401
+ `,wL="0%{opacity:0;} 100%{opacity:1;}",CL="0%{opacity:1;} 100%{opacity:0;}",kL=tu("div")`
402
402
  display: flex;
403
403
  align-items: center;
404
404
  background: #fff;
@@ -410,25 +410,25 @@ to {
410
410
  pointer-events: auto;
411
411
  padding: 8px 10px;
412
412
  border-radius: 8px;
413
- `,kL=tu("div")`
413
+ `,_L=tu("div")`
414
414
  display: flex;
415
415
  justify-content: center;
416
416
  margin: 4px 10px;
417
417
  color: inherit;
418
418
  flex: 1 1 auto;
419
419
  white-space: pre-line;
420
- `,_L=(e,n)=>{let r=e.includes("top")?1:-1,[a,s]=uT()?[xL,wL]:[SL(r),EL(r)];return{animation:n?`${Yl(a)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Yl(s)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},TL=Z.memo(({toast:e,position:n,style:r,children:a})=>{let s=e.height?_L(e.position||n||"top-center",e.visible):{opacity:0},c=Z.createElement(bL,{toast:e}),f=Z.createElement(kL,{...e.ariaProps},Y0(e.message,e));return Z.createElement(CL,{className:e.className,style:{...s,...r,...e.style}},typeof a=="function"?a({icon:c,message:f}):Z.createElement(Z.Fragment,null,c,f))});Z7(Z.createElement);var RL=({id:e,className:n,style:r,onHeightUpdate:a,children:s})=>{let c=Z.useCallback(f=>{if(f){let h=()=>{let v=f.getBoundingClientRect().height;a(e,v)};h(),new MutationObserver(h).observe(f,{subtree:!0,childList:!0,characterData:!0})}},[e,a]);return Z.createElement("div",{ref:c,className:n,style:r},s)},OL=(e,n)=>{let r=e.includes("top"),a=r?{top:0}:{bottom:0},s=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:uT()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${n*(r?1:-1)}px)`,...a,...s}},DL=W0`
420
+ `,TL=(e,n)=>{let r=e.includes("top")?1:-1,[a,s]=uT()?[wL,CL]:[EL(r),xL(r)];return{animation:n?`${Yl(a)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Yl(s)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},RL=Z.memo(({toast:e,position:n,style:r,children:a})=>{let s=e.height?TL(e.position||n||"top-center",e.visible):{opacity:0},c=Z.createElement(SL,{toast:e}),f=Z.createElement(_L,{...e.ariaProps},Y0(e.message,e));return Z.createElement(kL,{className:e.className,style:{...s,...r,...e.style}},typeof a=="function"?a({icon:c,message:f}):Z.createElement(Z.Fragment,null,c,f))});K7(Z.createElement);var OL=({id:e,className:n,style:r,onHeightUpdate:a,children:s})=>{let c=Z.useCallback(f=>{if(f){let h=()=>{let v=f.getBoundingClientRect().height;a(e,v)};h(),new MutationObserver(h).observe(f,{subtree:!0,childList:!0,characterData:!0})}},[e,a]);return Z.createElement("div",{ref:c,className:n,style:r},s)},DL=(e,n)=>{let r=e.includes("top"),a=r?{top:0}:{bottom:0},s=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:uT()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${n*(r?1:-1)}px)`,...a,...s}},AL=W0`
421
421
  z-index: 9999;
422
422
  > * {
423
423
  pointer-events: auto;
424
424
  }
425
- `,Q0=16,AL=({reverseOrder:e,position:n="top-center",toastOptions:r,gutter:a,children:s,containerStyle:c,containerClassName:f})=>{let{toasts:h,handlers:v}=aL(r);return Z.createElement("div",{style:{position:"fixed",zIndex:9999,top:Q0,left:Q0,right:Q0,bottom:Q0,pointerEvents:"none",...c},className:f,onMouseEnter:v.startPause,onMouseLeave:v.endPause},h.map(y=>{let S=y.position||n,E=v.calculateOffset(y,{reverseOrder:e,gutter:a,defaultPosition:n}),C=OL(S,E);return Z.createElement(RL,{id:y.id,key:y.id,onHeightUpdate:v.updateHeight,className:y.visible?DL:"",style:C},y.type==="custom"?Y0(y.message,y):s?s(y):Z.createElement(TL,{toast:y,position:S}))}))},ML=Object.defineProperty,LL=(e,n,r)=>n in e?ML(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,lE=(e,n,r)=>(LL(e,typeof n!="symbol"?n+"":n,r),r);let PL=class{constructor(){lE(this,"current",this.detect()),lE(this,"handoffState","pending"),lE(this,"currentId",0)}set(n){this.current!==n&&(this.handoffState="pending",this.currentId=0,this.current=n)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Nh=new PL,X0=(e,n)=>{Nh.isServer?j.useEffect(e,n):j.useLayoutEffect(e,n)};function id(e){let n=j.useRef(e);return X0(()=>{n.current=e},[e]),n}function NL(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(n=>setTimeout(()=>{throw n}))}function J0(){let e=[],n=[],r={enqueue(a){n.push(a)},addEventListener(a,s,c,f){return a.addEventListener(s,c,f),r.add(()=>a.removeEventListener(s,c,f))},requestAnimationFrame(...a){let s=requestAnimationFrame(...a);return r.add(()=>cancelAnimationFrame(s))},nextFrame(...a){return r.requestAnimationFrame(()=>r.requestAnimationFrame(...a))},setTimeout(...a){let s=setTimeout(...a);return r.add(()=>clearTimeout(s))},microTask(...a){let s={current:!0};return NL(()=>{s.current&&a[0]()}),r.add(()=>{s.current=!1})},add(a){return e.push(a),()=>{let s=e.indexOf(a);if(s>=0){let[c]=e.splice(s,1);c()}}},dispose(){for(let a of e.splice(0))a()},async workQueue(){for(let a of n.splice(0))await a()},style(a,s,c){let f=a.style.getPropertyValue(s);return Object.assign(a.style,{[s]:c}),this.add(()=>{Object.assign(a.style,{[s]:f})})}};return r}function fT(){let[e]=j.useState(J0);return j.useEffect(()=>()=>e.dispose(),[e]),e}let kc=function(e){let n=id(e);return j.useCallback((...r)=>n.current(...r),[n])};function dT(){let[e,n]=j.useState(Nh.isHandoffComplete);return e&&Nh.isHandoffComplete===!1&&n(!1),j.useEffect(()=>{e!==!0&&n(!0)},[e]),j.useEffect(()=>Nh.handoff(),[]),e}function rl(e,n,...r){if(e in n){let s=n[e];return typeof s=="function"?s(...r):s}let a=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(a,rl),a}let FL=Symbol();function pT(...e){let n=j.useRef(e);j.useEffect(()=>{n.current=e},[e]);let r=kc(a=>{for(let s of n.current)s!=null&&(typeof s=="function"?s(a):s.current=a)});return e.every(a=>a==null||(a==null?void 0:a[FL]))?void 0:r}function hT(...e){return e.filter(Boolean).join(" ")}var mT=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(mT||{}),Zl=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Zl||{});function vT({ourProps:e,theirProps:n,slot:r,defaultTag:a,features:s,visible:c=!0,name:f}){let h=gT(n,e);if(c)return eg(h,r,a,f);let v=s??0;if(v&2){let{static:y=!1,...S}=h;if(y)return eg(S,r,a,f)}if(v&1){let{unmount:y=!0,...S}=h;return rl(y?0:1,{[0](){return null},[1](){return eg({...S,hidden:!0,style:{display:"none"}},r,a,f)}})}return eg(h,r,a,f)}function eg(e,n={},r,a){var s;let{as:c=r,children:f,refName:h="ref",...v}=uE(e,["unmount","static"]),y=e.ref!==void 0?{[h]:e.ref}:{},S=typeof f=="function"?f(n):f;v.className&&typeof v.className=="function"&&(v.className=v.className(n));let E={};if(n){let C=!1,x=[];for(let[R,T]of Object.entries(n))typeof T=="boolean"&&(C=!0),T===!0&&x.push(R);C&&(E["data-headlessui-state"]=x.join(" "))}if(c===j.Fragment&&Object.keys(yT(v)).length>0){if(!j.isValidElement(S)||Array.isArray(S)&&S.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${a} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(v).map(R=>` - ${R}`).join(`
425
+ `,Q0=16,ML=({reverseOrder:e,position:n="top-center",toastOptions:r,gutter:a,children:s,containerStyle:c,containerClassName:f})=>{let{toasts:h,handlers:v}=oL(r);return Z.createElement("div",{style:{position:"fixed",zIndex:9999,top:Q0,left:Q0,right:Q0,bottom:Q0,pointerEvents:"none",...c},className:f,onMouseEnter:v.startPause,onMouseLeave:v.endPause},h.map(y=>{let S=y.position||n,E=v.calculateOffset(y,{reverseOrder:e,gutter:a,defaultPosition:n}),C=DL(S,E);return Z.createElement(OL,{id:y.id,key:y.id,onHeightUpdate:v.updateHeight,className:y.visible?AL:"",style:C},y.type==="custom"?Y0(y.message,y):s?s(y):Z.createElement(RL,{toast:y,position:S}))}))},LL=Object.defineProperty,PL=(e,n,r)=>n in e?LL(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,lE=(e,n,r)=>(PL(e,typeof n!="symbol"?n+"":n,r),r);let NL=class{constructor(){lE(this,"current",this.detect()),lE(this,"handoffState","pending"),lE(this,"currentId",0)}set(n){this.current!==n&&(this.handoffState="pending",this.currentId=0,this.current=n)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Nh=new NL,X0=(e,n)=>{Nh.isServer?j.useEffect(e,n):j.useLayoutEffect(e,n)};function id(e){let n=j.useRef(e);return X0(()=>{n.current=e},[e]),n}function FL(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(n=>setTimeout(()=>{throw n}))}function J0(){let e=[],n=[],r={enqueue(a){n.push(a)},addEventListener(a,s,c,f){return a.addEventListener(s,c,f),r.add(()=>a.removeEventListener(s,c,f))},requestAnimationFrame(...a){let s=requestAnimationFrame(...a);return r.add(()=>cancelAnimationFrame(s))},nextFrame(...a){return r.requestAnimationFrame(()=>r.requestAnimationFrame(...a))},setTimeout(...a){let s=setTimeout(...a);return r.add(()=>clearTimeout(s))},microTask(...a){let s={current:!0};return FL(()=>{s.current&&a[0]()}),r.add(()=>{s.current=!1})},add(a){return e.push(a),()=>{let s=e.indexOf(a);if(s>=0){let[c]=e.splice(s,1);c()}}},dispose(){for(let a of e.splice(0))a()},async workQueue(){for(let a of n.splice(0))await a()},style(a,s,c){let f=a.style.getPropertyValue(s);return Object.assign(a.style,{[s]:c}),this.add(()=>{Object.assign(a.style,{[s]:f})})}};return r}function fT(){let[e]=j.useState(J0);return j.useEffect(()=>()=>e.dispose(),[e]),e}let kc=function(e){let n=id(e);return j.useCallback((...r)=>n.current(...r),[n])};function dT(){let[e,n]=j.useState(Nh.isHandoffComplete);return e&&Nh.isHandoffComplete===!1&&n(!1),j.useEffect(()=>{e!==!0&&n(!0)},[e]),j.useEffect(()=>Nh.handoff(),[]),e}function rl(e,n,...r){if(e in n){let s=n[e];return typeof s=="function"?s(...r):s}let a=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(a,rl),a}let IL=Symbol();function pT(...e){let n=j.useRef(e);j.useEffect(()=>{n.current=e},[e]);let r=kc(a=>{for(let s of n.current)s!=null&&(typeof s=="function"?s(a):s.current=a)});return e.every(a=>a==null||(a==null?void 0:a[IL]))?void 0:r}function hT(...e){return e.filter(Boolean).join(" ")}var mT=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(mT||{}),Zl=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Zl||{});function vT({ourProps:e,theirProps:n,slot:r,defaultTag:a,features:s,visible:c=!0,name:f}){let h=gT(n,e);if(c)return eg(h,r,a,f);let v=s??0;if(v&2){let{static:y=!1,...S}=h;if(y)return eg(S,r,a,f)}if(v&1){let{unmount:y=!0,...S}=h;return rl(y?0:1,{[0](){return null},[1](){return eg({...S,hidden:!0,style:{display:"none"}},r,a,f)}})}return eg(h,r,a,f)}function eg(e,n={},r,a){var s;let{as:c=r,children:f,refName:h="ref",...v}=uE(e,["unmount","static"]),y=e.ref!==void 0?{[h]:e.ref}:{},S=typeof f=="function"?f(n):f;v.className&&typeof v.className=="function"&&(v.className=v.className(n));let E={};if(n){let C=!1,x=[];for(let[R,T]of Object.entries(n))typeof T=="boolean"&&(C=!0),T===!0&&x.push(R);C&&(E["data-headlessui-state"]=x.join(" "))}if(c===j.Fragment&&Object.keys(yT(v)).length>0){if(!j.isValidElement(S)||Array.isArray(S)&&S.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${a} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(v).map(R=>` - ${R}`).join(`
426
426
  `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(R=>` - ${R}`).join(`
427
427
  `)].join(`
428
- `));let C=hT((s=S.props)==null?void 0:s.className,v.className),x=C?{className:C}:{};return j.cloneElement(S,Object.assign({},gT(S.props,yT(uE(v,["ref"]))),E,y,IL(S.ref,y.ref),x))}return j.createElement(c,Object.assign({},uE(v,["ref"]),c!==j.Fragment&&y,c!==j.Fragment&&E),S)}function IL(...e){return{ref:e.every(n=>n==null)?void 0:n=>{for(let r of e)r!=null&&(typeof r=="function"?r(n):r.current=n)}}}function gT(...e){if(e.length===0)return{};if(e.length===1)return e[0];let n={},r={};for(let a of e)for(let s in a)s.startsWith("on")&&typeof a[s]=="function"?(r[s]!=null||(r[s]=[]),r[s].push(a[s])):n[s]=a[s];if(n.disabled||n["aria-disabled"])return Object.assign(n,Object.fromEntries(Object.keys(r).map(a=>[a,void 0])));for(let a in r)Object.assign(n,{[a](s,...c){let f=r[a];for(let h of f){if((s instanceof Event||(s==null?void 0:s.nativeEvent)instanceof Event)&&s.defaultPrevented)return;h(s,...c)}}});return n}function sE(e){var n;return Object.assign(j.forwardRef(e),{displayName:(n=e.displayName)!=null?n:e.name})}function yT(e){let n=Object.assign({},e);for(let r in n)n[r]===void 0&&delete n[r];return n}function uE(e,n=[]){let r=Object.assign({},e);for(let a of n)a in r&&delete r[a];return r}let cE=j.createContext(null);cE.displayName="OpenClosedContext";var Kl=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Kl||{});function bT(){return j.useContext(cE)}function zL({value:e,children:n}){return j.createElement(cE.Provider,{value:e},n)}function ST(){let e=j.useRef(!1);return X0(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function jL(e=0){let[n,r]=j.useState(e),a=j.useCallback(h=>r(v=>v|h),[n]),s=j.useCallback(h=>!!(n&h),[n]),c=j.useCallback(h=>r(v=>v&~h),[r]),f=j.useCallback(h=>r(v=>v^h),[r]);return{flags:n,addFlag:a,hasFlag:s,removeFlag:c,toggleFlag:f}}function $L(e){let n={called:!1};return(...r)=>{if(!n.called)return n.called=!0,e(...r)}}function fE(e,...n){e&&n.length>0&&e.classList.add(...n)}function dE(e,...n){e&&n.length>0&&e.classList.remove(...n)}function UL(e,n){let r=J0();if(!e)return r.dispose;let{transitionDuration:a,transitionDelay:s}=getComputedStyle(e),[c,f]=[a,s].map(h=>{let[v=0]=h.split(",").filter(Boolean).map(y=>y.includes("ms")?parseFloat(y):parseFloat(y)*1e3).sort((y,S)=>S-y);return v});if(c+f!==0){let h=r.addEventListener(e,"transitionend",v=>{v.target===v.currentTarget&&(n(),h())})}else n();return r.add(()=>n()),r.dispose}function BL(e,n,r,a){let s=r?"enter":"leave",c=J0(),f=a!==void 0?$L(a):()=>{};s==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let h=rl(s,{enter:()=>n.enter,leave:()=>n.leave}),v=rl(s,{enter:()=>n.enterTo,leave:()=>n.leaveTo}),y=rl(s,{enter:()=>n.enterFrom,leave:()=>n.leaveFrom});return dE(e,...n.enter,...n.enterTo,...n.enterFrom,...n.leave,...n.leaveFrom,...n.leaveTo,...n.entered),fE(e,...h,...y),c.nextFrame(()=>{dE(e,...y),fE(e,...v),UL(e,()=>(dE(e,...h),fE(e,...n.entered),f()))}),c.dispose}function VL({container:e,direction:n,classes:r,onStart:a,onStop:s}){let c=ST(),f=fT(),h=id(n);X0(()=>{let v=J0();f.add(v.dispose);let y=e.current;if(y&&h.current!=="idle"&&c.current)return v.dispose(),a.current(h.current),v.add(BL(y,r.current,h.current==="enter",()=>{v.dispose(),s.current(h.current)})),v.dispose},[n])}function _c(e=""){return e.split(" ").filter(n=>n.trim().length>1)}let tg=j.createContext(null);tg.displayName="TransitionContext";var HL=(e=>(e.Visible="visible",e.Hidden="hidden",e))(HL||{});function qL(){let e=j.useContext(tg);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function WL(){let e=j.useContext(ng);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let ng=j.createContext(null);ng.displayName="NestingContext";function rg(e){return"children"in e?rg(e.children):e.current.filter(({el:n})=>n.current!==null).filter(({state:n})=>n==="visible").length>0}function ET(e,n){let r=id(e),a=j.useRef([]),s=ST(),c=fT(),f=kc((x,R=Zl.Hidden)=>{let T=a.current.findIndex(({el:D})=>D===x);T!==-1&&(rl(R,{[Zl.Unmount](){a.current.splice(T,1)},[Zl.Hidden](){a.current[T].state="hidden"}}),c.microTask(()=>{var D;!rg(a)&&s.current&&((D=r.current)==null||D.call(r))}))}),h=kc(x=>{let R=a.current.find(({el:T})=>T===x);return R?R.state!=="visible"&&(R.state="visible"):a.current.push({el:x,state:"visible"}),()=>f(x,Zl.Unmount)}),v=j.useRef([]),y=j.useRef(Promise.resolve()),S=j.useRef({enter:[],leave:[],idle:[]}),E=kc((x,R,T)=>{v.current.splice(0),n&&(n.chains.current[R]=n.chains.current[R].filter(([D])=>D!==x)),n==null||n.chains.current[R].push([x,new Promise(D=>{v.current.push(D)})]),n==null||n.chains.current[R].push([x,new Promise(D=>{Promise.all(S.current[R].map(([M,I])=>I)).then(()=>D())})]),R==="enter"?y.current=y.current.then(()=>n==null?void 0:n.wait.current).then(()=>T(R)):T(R)}),C=kc((x,R,T)=>{Promise.all(S.current[R].splice(0).map(([D,M])=>M)).then(()=>{var D;(D=v.current.shift())==null||D()}).then(()=>T(R))});return j.useMemo(()=>({children:a,register:h,unregister:f,onStart:E,onStop:C,wait:y,chains:S}),[h,f,a,E,C,S,y])}function YL(){}let ZL=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function xT(e){var n;let r={};for(let a of ZL)r[a]=(n=e[a])!=null?n:YL;return r}function KL(e){let n=j.useRef(xT(e));return j.useEffect(()=>{n.current=xT(e)},[e]),n}let GL="div",wT=mT.RenderStrategy,CT=sE(function(e,n){let{beforeEnter:r,afterEnter:a,beforeLeave:s,afterLeave:c,enter:f,enterFrom:h,enterTo:v,entered:y,leave:S,leaveFrom:E,leaveTo:C,...x}=e,R=j.useRef(null),T=pT(R,n),D=x.unmount?Zl.Unmount:Zl.Hidden,{show:M,appear:I,initial:N}=qL(),[B,F]=j.useState(M?"visible":"hidden"),$=WL(),{register:H,unregister:Y}=$,ne=j.useRef(null);j.useEffect(()=>H(R),[H,R]),j.useEffect(()=>{if(D===Zl.Hidden&&R.current){if(M&&B!=="visible"){F("visible");return}return rl(B,{hidden:()=>Y(R),visible:()=>H(R)})}},[B,R,H,Y,M,D]);let ve=id({enter:_c(f),enterFrom:_c(h),enterTo:_c(v),entered:_c(y),leave:_c(S),leaveFrom:_c(E),leaveTo:_c(C)}),ee=KL({beforeEnter:r,afterEnter:a,beforeLeave:s,afterLeave:c}),oe=dT();j.useEffect(()=>{if(oe&&B==="visible"&&R.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[R,B,oe]);let J=N&&!I,pe=(()=>!oe||J||ne.current===M?"idle":M?"enter":"leave")(),ke=jL(0),xe=kc(te=>rl(te,{enter:()=>{ke.addFlag(Kl.Opening),ee.current.beforeEnter()},leave:()=>{ke.addFlag(Kl.Closing),ee.current.beforeLeave()},idle:()=>{}})),Ie=kc(te=>rl(te,{enter:()=>{ke.removeFlag(Kl.Opening),ee.current.afterEnter()},leave:()=>{ke.removeFlag(Kl.Closing),ee.current.afterLeave()},idle:()=>{}})),se=ET(()=>{F("hidden"),Y(R)},$);VL({container:R,classes:ve,direction:pe,onStart:id(te=>{se.onStart(R,te,xe)}),onStop:id(te=>{se.onStop(R,te,Ie),te==="leave"&&!rg(se)&&(F("hidden"),Y(R))})}),j.useEffect(()=>{!J||(D===Zl.Hidden?ne.current=null:ne.current=M)},[M,J,B]);let Te=x,L={ref:T};return I&&M&&Nh.isServer&&(Te={...Te,className:hT(x.className,...ve.current.enter,...ve.current.enterFrom)}),j.createElement(ng.Provider,{value:se},j.createElement(zL,{value:rl(B,{visible:Kl.Open,hidden:Kl.Closed})|ke.flags},vT({ourProps:L,theirProps:Te,defaultTag:GL,features:wT,visible:B==="visible",name:"Transition.Child"})))}),pE=sE(function(e,n){let{show:r,appear:a=!1,unmount:s,...c}=e,f=j.useRef(null),h=pT(f,n);dT();let v=bT();if(r===void 0&&v!==null&&(r=(v&Kl.Open)===Kl.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[y,S]=j.useState(r?"visible":"hidden"),E=ET(()=>{S("hidden")}),[C,x]=j.useState(!0),R=j.useRef([r]);X0(()=>{C!==!1&&R.current[R.current.length-1]!==r&&(R.current.push(r),x(!1))},[R,r]);let T=j.useMemo(()=>({show:r,appear:a,initial:C}),[r,a,C]);j.useEffect(()=>{if(r)S("visible");else if(!rg(E))S("hidden");else{let M=f.current;if(!M)return;let I=M.getBoundingClientRect();I.x===0&&I.y===0&&I.width===0&&I.height===0&&S("hidden")}},[r,E]);let D={unmount:s};return j.createElement(ng.Provider,{value:E},j.createElement(tg.Provider,{value:T},vT({ourProps:{...D,as:j.Fragment,children:j.createElement(CT,{ref:h,...D,...c})},theirProps:{},defaultTag:j.Fragment,features:wT,visible:y==="visible",name:"Transition"})))}),QL=sE(function(e,n){let r=j.useContext(tg)!==null,a=bT()!==null;return j.createElement(j.Fragment,null,!r&&a?j.createElement(pE,{ref:n,...e}):j.createElement(CT,{ref:n,...e}))}),XL=Object.assign(pE,{Child:QL,Root:pE});const JL=e=>Z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,...e},Z.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m7.5 12 3 3 6-6m5.5 3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"})),eP=e=>Z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",...e},Z.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M18 6 6 18M6 6l12 12"})),tP=e=>Z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,...e},Z.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m15 9-6 6m0-6 6 6m7-3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));function nP(e){return ia.custom(n=>he.jsx(iP,{type:e.type,show:n.visible,children:e.type==="custom"?e.content:he.jsx(rP,{...e,toastId:n.id})}))}const rP=({icon:e,type:n,title:r,description:a,toastId:s})=>{const{theme:{notification:c}}=cr();return he.jsxs(he.Fragment,{children:[e?he.jsx(e,{...c==null?void 0:c.icon}):he.jsx(aP,{...c==null?void 0:c.icon,type:n}),he.jsx("p",{...c==null?void 0:c.title,children:r}),a?he.jsx("p",{...c==null?void 0:c.description,children:a}):null,he.jsx(eP,{...c==null?void 0:c.closeIcon,onClick:()=>ia.dismiss(s)})]})},iP=({type:e,...n})=>{const{theme:{notification:r}}=cr();return he.jsx(XL,{...n,...r==null?void 0:r.container,appear:!0,"data-type":e??"neutral"})},aP=({type:e,className:n})=>{switch(e){case"success":return he.jsx(JL,{className:n});case"error":return he.jsx(tP,{className:n});default:return null}},oP=j.forwardRef(({url:e,type:n,styles:r,orientation:a="auto",...s},c)=>{var C,x;const f=j.useId(),{setIsLoading:h}=N7(),[v,y]=j.useState(a),[S,E]=j.useState(!1);return j.useLayoutEffect(()=>{h(R=>[...R,f])},[]),j.useEffect(()=>{e&&v==="auto"&&U7(e).then(({width:R,height:T})=>{y(lP(R,T)),h(D=>D.filter(M=>M!==f))})},[e]),he.jsxs(he.Fragment,{children:[S?null:he.jsx("div",{"data-orientation":v,...(C=r==null?void 0:r[n])==null?void 0:C.placeholder}),he.jsx("img",{"data-orientation":v,"data-loaded":S,...s,...(x=r==null?void 0:r[n])==null?void 0:x.image,src:e,alt:"",ref:c,loading:"lazy",onLoad:()=>{E(!0)}})]})});function lP(e,n){const r={square:1,portrait:.75,landscape:1.3333333333333333},a=e/n;return Object.keys(r).reduce((c,f)=>Math.abs(r[f]-a)<Math.abs(r[c]-a)?f:c)}const sP=j.forwardRef(({url:e,type:n,styles:r,...a},s)=>he.jsx("div",{children:he.jsx("video",{...a,controls:!0,src:e,...r==null?void 0:r[n],ref:s})})),uP=j.forwardRef(({url:e,type:n,styles:r,...a},s)=>he.jsx("div",{children:he.jsx("audio",{...a,controls:!0,src:e,...r==null?void 0:r[n],ref:s})}));function cP({title:e,titleId:n,...r},a){return Z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Z.createElement("title",{id:n},e):null,Z.createElement("path",{fillRule:"evenodd",d:"M15.312 11.424a5.5 5.5 0 01-9.201 2.466l-.312-.311h2.433a.75.75 0 000-1.5H3.989a.75.75 0 00-.75.75v4.242a.75.75 0 001.5 0v-2.43l.31.31a7 7 0 0011.712-3.138.75.75 0 00-1.449-.39zm1.23-3.723a.75.75 0 00.219-.53V2.929a.75.75 0 00-1.5 0V5.36l-.31-.31A7 7 0 003.239 8.188a.75.75 0 101.448.389A5.5 5.5 0 0113.89 6.11l.311.31h-2.432a.75.75 0 000 1.5h4.243a.75.75 0 00.53-.219z",clipRule:"evenodd"}))}const fP=Z.forwardRef(cP);function dP({title:e,titleId:n,...r},a){return Z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Z.createElement("title",{id:n},e):null,Z.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm-.75-4.75a.75.75 0 001.5 0V8.66l1.95 2.1a.75.75 0 101.1-1.02l-3.25-3.5a.75.75 0 00-1.1 0L6.2 9.74a.75.75 0 101.1 1.02l1.95-2.1v4.59z",clipRule:"evenodd"}))}const pP=Z.forwardRef(dP);function hP({title:e,titleId:n,...r},a){return Z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Z.createElement("title",{id:n},e):null,Z.createElement("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z",clipRule:"evenodd"}))}const mP=Z.forwardRef(hP);function vP({title:e,titleId:n,...r},a){return Z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Z.createElement("title",{id:n},e):null,Z.createElement("path",{fillRule:"evenodd",d:"M4.5 2A1.5 1.5 0 003 3.5v13A1.5 1.5 0 004.5 18h11a1.5 1.5 0 001.5-1.5V7.621a1.5 1.5 0 00-.44-1.06l-4.12-4.122A1.5 1.5 0 0011.378 2H4.5zm4.75 6.75a.75.75 0 011.5 0v2.546l.943-1.048a.75.75 0 011.114 1.004l-2.25 2.5a.75.75 0 01-1.114 0l-2.25-2.5a.75.75 0 111.114-1.004l.943 1.048V8.75z",clipRule:"evenodd"}))}const gP=Z.forwardRef(vP);function yP({title:e,titleId:n,...r},a){return Z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Z.createElement("title",{id:n},e):null,Z.createElement("path",{fillRule:"evenodd",d:"M9.69 18.933l.003.001C9.89 19.02 10 19 10 19s.11.02.308-.066l.002-.001.006-.003.018-.008a5.741 5.741 0 00.281-.14c.186-.096.446-.24.757-.433.62-.384 1.445-.966 2.274-1.765C15.302 14.988 17 12.493 17 9A7 7 0 103 9c0 3.492 1.698 5.988 3.355 7.584a13.731 13.731 0 002.273 1.765 11.842 11.842 0 00.976.544l.062.029.018.008.006.003zM10 11.25a2.25 2.25 0 100-4.5 2.25 2.25 0 000 4.5z",clipRule:"evenodd"}))}const bP=Z.forwardRef(yP),SP=j.forwardRef(({type:e,latitude:n,longitude:r,title:a,styles:s,...c},f)=>{var v,y,S;const h=`https://www.google.com/maps/search/?api=1&query=${n},${r}`;return he.jsxs("a",{...c,...(v=s==null?void 0:s[e])==null?void 0:v.container,href:h,type:"_blank",rel:"noopener",ref:f,children:[he.jsx("p",{...(y=s==null?void 0:s[e])==null?void 0:y.title,children:a}),he.jsx(bP,{...(S=s==null?void 0:s[e])==null?void 0:S.icon})]})}),EP=j.forwardRef(({blocks:e,styles:n,type:r,horizontalAlignment:a,verticalAlignment:s,...c},f)=>he.jsx("div",{"data-horizontal":a,"data-vertical":s,...c,...n==null?void 0:n[r],ref:f,children:e.map((h,v)=>he.jsx(fd,{styles:n,block:h},v))})),xP=j.forwardRef(({blocks:e,styles:n,type:r,horizontalAlignment:a,verticalAlignment:s,...c},f)=>he.jsx("div",{"data-horizontal":a,"data-vertical":s,...c,...n==null?void 0:n[r],ref:f,children:e.map((h,v)=>he.jsx(fd,{styles:n,block:h},v))}));function wP(e){return Object.prototype.toString.call(e)==="[object Object]"}function kT(e){return wP(e)||Array.isArray(e)}function CP(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function hE(e,n){const r=Object.keys(e),a=Object.keys(n);if(r.length!==a.length)return!1;const s=JSON.stringify(Object.keys(e.breakpoints||{})),c=JSON.stringify(Object.keys(n.breakpoints||{}));return s!==c?!1:r.every(f=>{const h=e[f],v=n[f];return typeof h=="function"?`${h}`==`${v}`:!kT(h)||!kT(v)?h===v:hE(h,v)})}function _T(e){return e.concat().sort((n,r)=>n.name>r.name?1:-1).map(n=>n.options)}function kP(e,n){if(e.length!==n.length)return!1;const r=_T(e),a=_T(n);return r.every((s,c)=>{const f=a[c];return hE(s,f)})}function mE(e){return typeof e=="number"}function TT(e){return typeof e=="string"}function vE(e){return typeof e=="boolean"}function RT(e){return Object.prototype.toString.call(e)==="[object Object]"}function fr(e){return Math.abs(e)}function gE(e){return Math.sign(e)}function ig(e,n){return fr(e-n)}function _P(e,n){if(e===0||n===0||fr(e)<=fr(n))return 0;const r=ig(fr(e),fr(n));return fr(r/e)}function Fh(e){return og(e).map(Number)}function Gl(e){return e[ag(e)]}function ag(e){return Math.max(0,e.length-1)}function og(e){return Object.keys(e)}function OT(e,n){return[e,n].reduce((r,a)=>(og(a).forEach(s=>{const c=r[s],f=a[s],h=RT(c)&&RT(f);r[s]=h?OT(c,f):f}),r),{})}function DT(e,n){return typeof n.MouseEvent<"u"&&e instanceof n.MouseEvent}function TP(e,n){const r={start:a,center:s,end:c};function a(){return 0}function s(y){return c(y)/2}function c(y){return n-y}function f(){return n*Number(e)}function h(y){return mE(e)?f():r[e](y)}return{measure:h}}function RP(e,n){const r=e==="y"?"y":"x",a=e==="y"?"x":"y",s=h(),c=v();function f(S){const{width:E,height:C}=S;return r==="x"?E:C}function h(){return r==="y"?"top":n==="rtl"?"right":"left"}function v(){return r==="y"?"bottom":n==="rtl"?"left":"right"}return{scroll:r,cross:a,startEdge:s,endEdge:c,measureSize:f}}function nu(e,n){const r=fr(e-n);function a(y){return y<e}function s(y){return y>n}function c(y){return a(y)||s(y)}function f(y){return c(y)?a(y)?e:n:y}function h(y){return r?y-r*Math.ceil((y-n)/r):y}return{length:r,max:n,min:e,constrain:f,reachedAny:c,reachedMax:s,reachedMin:a,removeOffset:h}}function AT(e,n,r){const{constrain:a}=nu(0,e),s=e+1;let c=f(n);function f(C){return r?fr((s+C)%s):a(C)}function h(){return c}function v(C){return c=f(C),E}function y(C){return S().set(h()+C)}function S(){return AT(e,h(),r)}const E={get:h,set:v,add:y,clone:S};return E}function OP(e){const n=e==="rtl"?-1:1;function r(s){return s*n}return{apply:r}}function Ih(){let e=[];function n(s,c,f,h={passive:!0}){return s.addEventListener(c,f,h),e.push(()=>s.removeEventListener(c,f,h)),a}function r(){e=e.filter(s=>s())}const a={add:n,clear:r};return a}function DP(e,n,r,a,s,c,f,h,v,y,S,E,C,x,R,T,D,M,I){const{cross:N}=e,B=["INPUT","SELECT","TEXTAREA"],F={passive:!1},$=Ih(),H=Ih(),Y=nu(50,225).constrain(R.measure(20)),ne={mouse:300,touch:400},ve={mouse:500,touch:600},ee=T?43:25;let oe=!1,J=0,pe=0,ke=!1,xe=!1,Ie=!1,se=!1;function Te(Le,me){if(!me)return;function ze(ht){(vE(me)||me(Le,ht))&&We(ht)}const be=r;$.add(be,"dragstart",ht=>ht.preventDefault(),F).add(be,"touchmove",()=>{},F).add(be,"touchend",()=>{}).add(be,"touchstart",ze).add(be,"mousedown",ze).add(be,"touchcancel",Oe).add(be,"contextmenu",Oe).add(be,"click",$e,!0)}function L(){$.clear(),H.clear()}function te(){const Le=se?a:r;H.add(Le,"touchmove",Re,F).add(Le,"touchend",Oe).add(Le,"mousemove",Re,F).add(Le,"mouseup",Oe)}function ye(Le){const me=Le.nodeName||"";return B.includes(me)}function U(){return(T?ve:ne)[se?"mouse":"touch"]}function _e(Le,me){const ze=C.add(gE(Le)*-1),be=E.byDistance(Le,!T).distance;return T||fr(Le)<Y?be:M&&me?be*.5:E.byIndex(ze.get(),0).distance}function We(Le){const me=DT(Le,s);se=me,!(me&&Le.button!==0)&&(ye(Le.target)||(Ie=T&&me&&!Le.buttons&&oe,oe=ig(c.get(),h.get())>=2,ke=!0,f.pointerDown(Le),S.useFriction(0).useDuration(0),c.set(h),te(),J=f.readPoint(Le),pe=f.readPoint(Le,N),x.emit("pointerDown")))}function Re(Le){const me=f.readPoint(Le),ze=f.readPoint(Le,N),be=ig(me,J),ht=ig(ze,pe);if(!xe&&!se&&(!Le.cancelable||(xe=be>ht,!xe)))return Oe(Le);const He=f.pointerMove(Le);be>D&&(Ie=!0),S.useFriction(.3).useDuration(1),v.start(),c.add(n.apply(He)),Le.preventDefault()}function Oe(Le){const ze=E.byDistance(0,!1).index!==C.get(),be=f.pointerUp(Le)*U(),ht=_e(n.apply(be),ze),He=_P(be,ht),Rt=ee-10*He,Gt=I+He/50;xe=!1,ke=!1,H.clear(),S.useDuration(Rt).useFriction(Gt),y.distance(ht,!T),se=!1,x.emit("pointerUp")}function $e(Le){Ie&&(Le.stopPropagation(),Le.preventDefault())}function Ge(){return ke}return{init:Te,pointerDown:Ge,destroy:L}}function AP(e,n){let a,s;function c(E){return E.timeStamp}function f(E,C){const R=`client${(C||e.scroll)==="x"?"X":"Y"}`;return(DT(E,n)?E:E.touches[0])[R]}function h(E){return a=E,s=E,f(E)}function v(E){const C=f(E)-f(s),x=c(E)-c(a)>170;return s=E,x&&(a=E),C}function y(E){if(!a||!s)return 0;const C=f(s)-f(a),x=c(E)-c(a),R=c(E)-c(s)>170,T=C/x;return x&&!R&&fr(T)>.1?T:0}return{pointerDown:h,pointerMove:v,pointerUp:y,readPoint:f}}function MP(e){function n(a){return e*(a/100)}return{measure:n}}function LP(e,n,r,a,s){let c,f,h=[],v=!1;function y(x){return s.measureSize(x.getBoundingClientRect())}function S(x,R){if(!R)return;f=y(e),h=a.map(y);function T(M){for(const I of M){const N=I.target===e,B=a.indexOf(I.target),F=N?f:h[B],$=y(N?e:a[B]);if(F!==$){r.requestAnimationFrame(()=>{x.reInit(),n.emit("resize")});break}}}c=new ResizeObserver(M=>{v||(vE(R)||R(x,M))&&T(M)}),[e].concat(a).forEach(M=>c.observe(M))}function E(){c&&c.disconnect(),v=!0}return{init:S,destroy:E}}function PP(e,n,r,a){let s=!0,c=0,f=0,h=r,v=a,y=e.get(),S=0;function E(){const F=n.get()-e.get(),$=!h;let H=0;return $?(c=0,e.set(n),H=F):(c+=F/h,c*=v,y+=c,e.add(c),H=y-S),f=gE(H),S=y,s=fr(F)<.001,B}function C(){return s}function x(){return h}function R(){return f}function T(){return c}function D(){return I(r)}function M(){return N(a)}function I(F){return h=F,B}function N(F){return v=F,B}const B={direction:R,duration:x,velocity:T,seek:E,settled:C,useBaseFriction:M,useBaseDuration:D,useFriction:N,useDuration:I};return B}function NP(e,n,r,a,s){const c=s.measure(10),f=s.measure(50),h=nu(.1,.99);let v=!1;function y(){return!(v||!e.reachedAny(r.get())||!e.reachedAny(n.get()))}function S(x){if(!y())return;const R=e.reachedMin(n.get())?"min":"max",T=fr(e[R]-n.get()),D=r.get()-n.get(),M=h.constrain(T/f);r.subtract(D*M),!x&&fr(D)<c&&(r.set(e.constrain(r.get())),a.useDuration(25).useBaseFriction())}function E(x){v=!x}return{constrain:S,toggleActive:E}}function FP(e,n,r,a){const s=nu(-n+e,r[0]),c=v(),f=y();function h(){const E=c[0],C=Gl(c),x=c.lastIndexOf(E),R=c.indexOf(C)+1;return nu(x,R)}function v(){return r.map(s.constrain).map(E=>parseFloat(E.toFixed(3)))}function y(){if(n<=e)return[s.max];if(a==="keepSnaps")return c;const{min:E,max:C}=h();return c.slice(E,C)}return{snapsContained:f}}function IP(e,n,r){const a=n[0],s=r?a-e:Gl(n);return{limit:nu(s,a)}}function zP(e,n,r,a){const c=n.min+.1,f=n.max+.1,{reachedMin:h,reachedMax:v}=nu(c,f);function y(C){return C===1?v(r.get()):C===-1?h(r.get()):!1}function S(C){if(!y(C))return;const x=e*(C*-1);a.forEach(R=>R.add(x))}return{loop:S}}function jP(e){const{max:n,length:r}=e;function a(c){return(c-n)/-r}return{get:a}}function $P(e,n,r,a,s,c,f){const{startEdge:h,endEdge:v}=e,{groupSlides:y}=c,S=x().map(n.measure),E=R(),C=T();function x(){return y(a).map(M=>Gl(M)[v]-M[0][h]).map(fr)}function R(){return a.map(M=>r[h]-M[h]).map(M=>-fr(M))}function T(){const I=Gl(E)-Gl(s);return y(E).map(N=>N[0]).map((N,B,F)=>{const $=!B,H=B===ag(F);return f&&$?0:f&&H?I:N+S[B]})}return{snaps:E,snapsAligned:C}}function UP(e,n,r,a,s){const{reachedAny:c,removeOffset:f,constrain:h}=a;function v(R){return R.concat().sort((T,D)=>fr(T)-fr(D))[0]}function y(R){const T=e?f(R):h(R),D=n.map(I=>I-T).map(I=>S(I,0)).map((I,N)=>({diff:I,index:N})).sort((I,N)=>fr(I.diff)-fr(N.diff)),{index:M}=D[0];return{index:M,distance:T}}function S(R,T){const D=[R,R+r,R-r];if(!e)return D[0];if(!T)return v(D);const M=D.filter(I=>gE(I)===T);return v(M)}function E(R,T){const D=n[R]-s.get(),M=S(D,T);return{index:R,distance:M}}function C(R,T){const D=s.get()+R,{index:M,distance:I}=y(D),N=!e&&c(D);if(!T||N)return{index:M,distance:R};const B=n[M]-I,F=R+S(B,0);return{index:M,distance:F}}return{byDistance:C,byIndex:E,shortcut:S}}function BP(e,n,r,a,s,c,f){function h(E){const C=E.distance,x=E.index!==n.get();c.add(C),C&&(s.duration()?e.start():(e.update(),e.render(1),e.update())),x&&(r.set(n.get()),n.set(E.index),f.emit("select"))}function v(E,C){const x=a.byDistance(E,C);h(x)}function y(E,C){const x=n.clone().set(E),R=a.byIndex(x.get(),C);h(R)}return{distance:v,index:y}}function lg(e){let n=e;function r(){return n}function a(v){n=f(v)}function s(v){n+=f(v)}function c(v){n-=f(v)}function f(v){return mE(v)?v:v.get()}return{get:r,set:a,add:s,subtract:c}}function MT(e,n,r){const a=e.scroll==="x"?f:h,s=r.style;let c=!1;function f(C){return`translate3d(${C}px,0px,0px)`}function h(C){return`translate3d(0px,${C}px,0px)`}function v(C){c||(s.transform=a(n.apply(C)))}function y(C){c=!C}function S(){c||(s.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:S,to:v,toggleActive:y}}function VP(e,n,r,a,s,c,f,h,v){const y=Fh(s),S=Fh(s).reverse(),E=T().concat(D());function C(F,$){return F.reduce((H,Y)=>H-s[Y],$)}function x(F,$){return F.reduce((H,Y)=>C(H,$)>0?H.concat([Y]):H,[])}function R(F,$){const H=$==="start",Y=H?-a:a,ne=f.findSlideBounds([Y]);return F.map(ve=>{const ee=H?0:-a,oe=H?a:0,pe=ne.filter(ke=>ke.index===ve)[0][H?"end":"start"];return{index:ve,slideLocation:lg(-1),translate:MT(e,n,v[ve]),target:()=>h.get()>pe?ee:oe}})}function T(){const F=c[0]-1,$=x(S,F);return R($,"end")}function D(){const F=r-c[0]-1,$=x(y,F);return R($,"start")}function M(){return E.every(({index:F})=>{const $=y.filter(H=>H!==F);return C($,r)<=.1})}function I(){E.forEach(F=>{const{target:$,translate:H,slideLocation:Y}=F,ne=$();ne!==Y.get()&&(H.to(ne),Y.set(ne))})}function N(){E.forEach(F=>F.translate.clear())}return{canLoop:M,clear:N,loop:I,loopPoints:E}}function HP(e,n){let r,a=!1;function s(h,v){if(!v)return;function y(S){for(const E of S)if(E.type==="childList"){h.reInit(),n.emit("slidesChanged");break}}r=new MutationObserver(S=>{a||(vE(v)||v(h,S))&&y(S)}),r.observe(e,{childList:!0})}function c(){r&&r.disconnect(),a=!0}return{init:s,destroy:c}}function qP(e,n,r,a,s,c,f){const{removeOffset:h,constrain:v}=s,y=.5,S=c?[0,n,-n]:[0],E=x(S,f);function C(D){const M=D||0;return r.map(I=>nu(y,I-y).constrain(I*M))}function x(D,M){const I=D||S,N=C(M);return I.reduce((B,F)=>{const $=a.map((H,Y)=>({start:H-r[Y]+N[Y]+F,end:H+e-N[Y]+F,index:Y}));return B.concat($)},[])}function R(D,M){const I=c?h(D):v(D);return(M||E).reduce((B,F)=>{const{index:$,start:H,end:Y}=F,ne=B.includes($),ve=H<I&&Y>I;return!ne&&ve?B.concat([$]):B},[])}return{check:R,findSlideBounds:x}}function WP(e,n,r,a,s,c){const{measureSize:f,startEdge:h,endEdge:v}=e,y=r[0]&&s,S=R(),E=T(),C=r.map(f),x=D();function R(){if(!y)return 0;const I=r[0];return fr(n[h]-I[h])}function T(){if(!y)return 0;const I=c.getComputedStyle(Gl(a));return parseFloat(I.getPropertyValue(`margin-${v}`))}function D(){return r.map((I,N,B)=>{const F=!N,$=N===ag(B);return F?C[N]+S:$?C[N]+E:B[N+1][h]-I[h]}).map(fr)}return{slideSizes:C,slideSizesWithGaps:x}}function YP(e,n,r){const a=mE(r);function s(v,y){return Fh(v).filter(S=>S%y===0).map(S=>v.slice(S,S+y))}function c(v){return Fh(v).reduce((y,S)=>{const C=n.slice(Gl(y),S+1).reduce((x,R)=>x+R,0);return!S||C>e?y.concat(S):y},[]).map((y,S,E)=>v.slice(y,E[S+1]))}function f(v){return a?s(v,r):c(v)}return{groupSlides:f}}function ZP(e,n,r,a,s,c,f,h){const{align:v,axis:y,direction:S,startIndex:E,inViewThreshold:C,loop:x,duration:R,dragFree:T,dragThreshold:D,slidesToScroll:M,skipSnaps:I,containScroll:N}=c,B=n.getBoundingClientRect(),F=r.map(Gt=>Gt.getBoundingClientRect()),$=OP(S),H=RP(y,S),Y=H.measureSize(B),ne=MP(Y),ve=TP(v,Y),ee=!x&&!!N,oe=x||!!N,{slideSizes:J,slideSizesWithGaps:pe}=WP(H,B,F,r,oe,s),ke=YP(Y,pe,M),{snaps:xe,snapsAligned:Ie}=$P(H,ve,B,F,pe,ke,ee),se=-Gl(xe)+Gl(pe),{snapsContained:Te}=FP(Y,se,Ie,N),L=ee?Te:Ie,{limit:te}=IP(se,L,x),ye=AT(ag(L),E,x),U=ye.clone(),_e=Fh(r),We=({dragHandler:Gt,scrollBody:Tn,scrollBounds:ar,eventHandler:or,animation:dr,options:{loop:Jn}})=>{const pr=Gt.pointerDown();Jn||ar.constrain(pr);const Yn=Tn.seek().settled();Yn&&!pr&&(dr.stop(),or.emit("settle")),Yn||or.emit("scroll")},Re=({scrollBody:Gt,translate:Tn,location:ar,offsetLocation:or,scrollLooper:dr,slideLooper:Jn,options:{loop:pr}},Yn)=>{const Ln=Gt.velocity();or.set(ar.get()-Ln+Ln*Yn),pr&&(dr.loop(Gt.direction()),Jn.loop()),Tn.to(or.get())},Oe={start:()=>h.start(Rt),stop:()=>h.stop(Rt),update:()=>We(Rt),render:Gt=>Re(Rt,Gt)},$e=.68,Ge=L[ye.get()],Ue=lg(Ge),Le=lg(Ge),me=lg(Ge),ze=PP(Ue,me,R,$e),be=UP(x,L,se,te,me),ht=BP(Oe,ye,U,be,ze,me,f),He=qP(Y,se,J,xe,te,x,C),Rt={ownerDocument:a,ownerWindow:s,eventHandler:f,containerRect:B,slideRects:F,animation:Oe,axis:H,direction:$,dragHandler:DP(H,$,e,a,s,me,AP(H,s),Ue,Oe,ht,ze,be,ye,f,ne,T,D,I,$e),eventStore:Ih(),percentOfView:ne,index:ye,indexPrevious:U,limit:te,location:Ue,offsetLocation:Le,options:c,resizeHandler:LP(n,f,s,r,H),scrollBody:ze,scrollBounds:NP(te,Ue,me,ze,ne),scrollLooper:zP(se,te,Le,[Ue,Le,me]),scrollProgress:jP(te),scrollSnaps:L,scrollTarget:be,scrollTo:ht,slideLooper:VP(H,$,Y,se,pe,L,He,Le,r),slidesHandler:HP(n,f),slidesInView:He,slideIndexes:_e,slidesToScroll:ke,target:me,translate:MT(H,$,n)};return Rt}function KP(e){const n=16.666666666666668;let r=[],a=null,s=0,c=0;function f(E){a||(a=E);const C=E-a;for(a=E,s+=C;s>=n;)r.forEach(({animation:R})=>R.update()),s-=n;const x=fr(s/n);r.forEach(({animation:R})=>R.render(x)),c&&e.requestAnimationFrame(f)}function h(E){r.includes(E)||r.push(E),!c&&(c=e.requestAnimationFrame(f))}function v(E){r=r.filter(C=>C!==E),!r.length&&(e.cancelAnimationFrame(c),a=null,s=0,c=0)}function y(){a=null,s=0}return{start:h,stop:v,reset:y,window:e}}function GP(){const e={};let n;function r(v){n=v}function a(v){return e[v]||[]}function s(v){return a(v).forEach(y=>y(n,v)),h}function c(v,y){return e[v]=a(v).concat([y]),h}function f(v,y){return e[v]=a(v).filter(S=>S!==y),h}const h={init:r,emit:s,off:f,on:c};return h}const QP={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,breakpoints:{},dragFree:!1,dragThreshold:10,inViewThreshold:0,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function XP(e){function n(c,f){return OT(c,f||{})}function r(c){const f=c.breakpoints||{},h=og(f).filter(v=>e.matchMedia(v).matches).map(v=>f[v]).reduce((v,y)=>n(v,y),{});return n(c,h)}function a(c){return c.map(f=>og(f.breakpoints||{})).reduce((f,h)=>f.concat(h),[]).map(e.matchMedia)}return{mergeOptions:n,optionsAtMedia:r,optionsMediaQueries:a}}function JP(e){let n=[];function r(c,f){return n=c.filter(({options:h})=>e.optionsAtMedia(h).active!==!1),n.forEach(h=>h.init(f,e)),c.reduce((h,v)=>Object.assign(h,{[v.name]:v}),{})}function a(){n=n.filter(c=>c.destroy())}return{init:r,destroy:a}}function ad(e,n,r){const a=e.ownerDocument,s=a.defaultView,c=XP(s),f=JP(c),h=Ih(),v=Ih(),y=GP(),{animationRealms:S}=ad,{mergeOptions:E,optionsAtMedia:C,optionsMediaQueries:x}=c,{on:R,off:T,emit:D}=y,M=J;let I=!1,N,B=E(QP,ad.globalOptions),F=E(B),$=[],H,Y,ne;function ve(){const{container:ze,slides:be}=F;Y=(TT(ze)?e.querySelector(ze):ze)||e.children[0];const He=TT(be)?Y.querySelectorAll(be):be;ne=[].slice.call(He||Y.children)}function ee(ze,be){const ht=ZP(e,Y,ne,a,s,ze,y,be);if(ze.loop&&!ht.slideLooper.canLoop()){const He=Object.assign({},ze,{loop:!1});return ee(He,be)}return ht}function oe(ze,be){if(I)return;const ht=S.find(Rt=>Rt.window===s),He=ht||KP(s);ht||S.push(He),B=E(B,ze),F=C(B),$=be||$,ve(),N=ee(F,He),x([B,...$.map(({options:Rt})=>Rt)]).forEach(Rt=>h.add(Rt,"change",J)),F.active&&(N.translate.to(N.location.get()),N.eventHandler.init(me),N.resizeHandler.init(me,F.watchResize),N.slidesHandler.init(me,F.watchSlides),v.add(a,"visibilitychange",()=>{a.hidden&&He.reset()}),N.options.loop&&N.slideLooper.loop(),Y.offsetParent&&ne.length&&N.dragHandler.init(me,F.watchDrag),H=f.init($,me))}function J(ze,be){const ht=We();pe(),oe(E({startIndex:ht},ze),be),y.emit("reInit")}function pe(){N.dragHandler.destroy(),N.animation.stop(),N.eventStore.clear(),N.translate.clear(),N.slideLooper.clear(),N.resizeHandler.destroy(),N.slidesHandler.destroy(),f.destroy(),h.clear(),v.clear()}function ke(){I||(I=!0,h.clear(),pe(),y.emit("destroy"))}function xe(ze){const be=N[ze?"target":"location"].get(),ht=F.loop?"removeOffset":"constrain";return N.slidesInView.check(N.limit[ht](be))}function Ie(ze){const be=xe(ze);return N.slideIndexes.filter(ht=>!be.includes(ht))}function se(ze,be,ht){!F.active||I||(N.scrollBody.useBaseFriction().useDuration(be?0:F.duration),N.scrollTo.index(ze,ht||0))}function Te(ze){const be=N.index.add(1).get();se(be,ze===!0,-1)}function L(ze){const be=N.index.add(-1).get();se(be,ze===!0,1)}function te(){return N.index.add(1).get()!==We()}function ye(){return N.index.add(-1).get()!==We()}function U(){return N.scrollSnaps.map(N.scrollProgress.get)}function _e(){return N.scrollProgress.get(N.location.get())}function We(){return N.index.get()}function Re(){return N.indexPrevious.get()}function Oe(){return H}function $e(){return N}function Ge(){return e}function Ue(){return Y}function Le(){return ne}const me={canScrollNext:te,canScrollPrev:ye,containerNode:Ue,internalEngine:$e,destroy:ke,off:T,on:R,emit:D,plugins:Oe,previousScrollSnap:Re,reInit:M,rootNode:Ge,scrollNext:Te,scrollPrev:L,scrollProgress:_e,scrollSnapList:U,scrollTo:se,selectedScrollSnap:We,slideNodes:Le,slidesInView:xe,slidesNotInView:Ie};return oe(n,r),setTimeout(()=>y.emit("init"),0),me}ad.animationRealms=[],ad.globalOptions=void 0;function yE(e={},n=[]){const r=j.useRef(e),a=j.useRef(n),[s,c]=j.useState(),[f,h]=j.useState(),v=j.useCallback(()=>{s&&s.reInit(r.current,a.current)},[s]);return j.useEffect(()=>{if(CP()&&f){ad.globalOptions=yE.globalOptions;const y=ad(f,r.current,a.current);return c(y),()=>y.destroy()}else c(void 0)},[f,c]),j.useEffect(()=>{hE(r.current,e)||(r.current=e,v())},[e,v]),j.useEffect(()=>{kP(a.current,n)||(a.current=n,v())},[n,v]),[h,s]}yE.globalOptions=void 0;function e9({title:e,titleId:n,...r},a){return Z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Z.createElement("title",{id:n},e):null,Z.createElement("path",{fillRule:"evenodd",d:"M7.72 12.53a.75.75 0 010-1.06l7.5-7.5a.75.75 0 111.06 1.06L9.31 12l6.97 6.97a.75.75 0 11-1.06 1.06l-7.5-7.5z",clipRule:"evenodd"}))}const t9=Z.forwardRef(e9);function n9({title:e,titleId:n,...r},a){return Z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Z.createElement("title",{id:n},e):null,Z.createElement("path",{fillRule:"evenodd",d:"M16.28 11.47a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 01-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 011.06-1.06l7.5 7.5z",clipRule:"evenodd"}))}const r9=Z.forwardRef(n9);function i9({title:e,titleId:n,...r},a){return Z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Z.createElement("title",{id:n},e):null,Z.createElement("path",{fillRule:"evenodd",d:"M5.625 1.5c-1.036 0-1.875.84-1.875 1.875v17.25c0 1.035.84 1.875 1.875 1.875h12.75c1.035 0 1.875-.84 1.875-1.875V12.75A3.75 3.75 0 0016.5 9h-1.875a1.875 1.875 0 01-1.875-1.875V5.25A3.75 3.75 0 009 1.5H5.625zM7.5 15a.75.75 0 01.75-.75h7.5a.75.75 0 010 1.5h-7.5A.75.75 0 017.5 15zm.75 2.25a.75.75 0 000 1.5H12a.75.75 0 000-1.5H8.25z",clipRule:"evenodd"}),Z.createElement("path",{d:"M12.971 1.816A5.23 5.23 0 0114.25 5.25v1.875c0 .207.168.375.375.375H16.5a5.23 5.23 0 013.434 1.279 9.768 9.768 0 00-6.963-6.963z"}))}const a9=Z.forwardRef(i9);function o9({title:e,titleId:n,...r},a){return Z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Z.createElement("title",{id:n},e):null,Z.createElement("path",{d:"M1.5 8.67v8.58a3 3 0 003 3h15a3 3 0 003-3V8.67l-8.928 5.493a3 3 0 01-3.144 0L1.5 8.67z"}),Z.createElement("path",{d:"M22.5 6.908V6.75a3 3 0 00-3-3h-15a3 3 0 00-3 3v.158l9.714 5.978a1.5 1.5 0 001.572 0L22.5 6.908z"}))}const l9=Z.forwardRef(o9);function s9({title:e,titleId:n,...r},a){return Z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Z.createElement("title",{id:n},e):null,Z.createElement("path",{d:"M21.721 12.752a9.711 9.711 0 00-.945-5.003 12.754 12.754 0 01-4.339 2.708 18.991 18.991 0 01-.214 4.772 17.165 17.165 0 005.498-2.477zM14.634 15.55a17.324 17.324 0 00.332-4.647c-.952.227-1.945.347-2.966.347-1.021 0-2.014-.12-2.966-.347a17.515 17.515 0 00.332 4.647 17.385 17.385 0 005.268 0zM9.772 17.119a18.963 18.963 0 004.456 0A17.182 17.182 0 0112 21.724a17.18 17.18 0 01-2.228-4.605zM7.777 15.23a18.87 18.87 0 01-.214-4.774 12.753 12.753 0 01-4.34-2.708 9.711 9.711 0 00-.944 5.004 17.165 17.165 0 005.498 2.477zM21.356 14.752a9.765 9.765 0 01-7.478 6.817 18.64 18.64 0 001.988-4.718 18.627 18.627 0 005.49-2.098zM2.644 14.752c1.682.971 3.53 1.688 5.49 2.099a18.64 18.64 0 001.988 4.718 9.765 9.765 0 01-7.478-6.816zM13.878 2.43a9.755 9.755 0 016.116 3.986 11.267 11.267 0 01-3.746 2.504 18.63 18.63 0 00-2.37-6.49zM12 2.276a17.152 17.152 0 012.805 7.121c-.897.23-1.837.353-2.805.353-.968 0-1.908-.122-2.805-.353A17.151 17.151 0 0112 2.276zM10.122 2.43a18.629 18.629 0 00-2.37 6.49 11.266 11.266 0 01-3.746-2.504 9.754 9.754 0 016.116-3.985z"}))}const u9=Z.forwardRef(s9);function c9({title:e,titleId:n,...r},a){return Z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Z.createElement("title",{id:n},e):null,Z.createElement("path",{fillRule:"evenodd",d:"M12 1.5a5.25 5.25 0 00-5.25 5.25v3a3 3 0 00-3 3v6.75a3 3 0 003 3h10.5a3 3 0 003-3v-6.75a3 3 0 00-3-3v-3c0-2.9-2.35-5.25-5.25-5.25zm3.75 8.25v-3a3.75 3.75 0 10-7.5 0v3h7.5z",clipRule:"evenodd"}))}const f9=Z.forwardRef(c9);function d9({title:e,titleId:n,...r},a){return Z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Z.createElement("title",{id:n},e):null,Z.createElement("path",{fillRule:"evenodd",d:"M1.5 4.5a3 3 0 013-3h1.372c.86 0 1.61.586 1.819 1.42l1.105 4.423a1.875 1.875 0 01-.694 1.955l-1.293.97c-.135.101-.164.249-.126.352a11.285 11.285 0 006.697 6.697c.103.038.25.009.352-.126l.97-1.293a1.875 1.875 0 011.955-.694l4.423 1.105c.834.209 1.42.959 1.42 1.82V19.5a3 3 0 01-3 3h-2.25C8.552 22.5 1.5 15.448 1.5 6.75V4.5z",clipRule:"evenodd"}))}const p9=Z.forwardRef(d9),h9=j.forwardRef(({type:e,styles:n,blocks:r},a)=>{const[s,c]=yE({skipSnaps:!0}),[f,h]=j.useState(!0),[v,y]=j.useState(!0),S=j.useCallback(()=>c&&c.scrollPrev(),[c]),E=j.useCallback(()=>c&&c.scrollNext(),[c]),C=n==null?void 0:n[e],x=j.useCallback(R=>{h(!R.canScrollPrev()),y(!R.canScrollNext())},[]);return j.useEffect(()=>{c&&(x(c),c.on("reInit",x),c.on("select",x))},[c,x]),he.jsxs("div",{...C==null?void 0:C.container,"data-container":"carousel",ref:s,children:[he.jsx("div",{ref:a,...C==null?void 0:C.slidesContainer,children:r.map((R,T)=>he.jsx(fd,{styles:n,block:R},T))}),he.jsx(t9,{...C==null?void 0:C.backButton,"data-disabled":f?"":void 0,onClick:S}),he.jsx(r9,{...C==null?void 0:C.nextButton,"data-disabled":v?"":void 0,onClick:E})]})}),zh=Math.min,Ja=Math.max,sg=Math.round,od=Math.floor,ru=e=>({x:e,y:e}),m9={left:"right",right:"left",bottom:"top",top:"bottom"},v9={start:"end",end:"start"};function ug(e,n){return typeof e=="function"?e(n):e}function Tc(e){return e.split("-")[0]}function jh(e){return e.split("-")[1]}function g9(e){return e==="x"?"y":"x"}function LT(e){return e==="y"?"height":"width"}function cg(e){return["top","bottom"].includes(Tc(e))?"y":"x"}function PT(e){return g9(cg(e))}function y9(e,n,r){r===void 0&&(r=!1);const a=jh(e),s=PT(e),c=LT(s);let f=s==="x"?a===(r?"end":"start")?"right":"left":a==="start"?"bottom":"top";return n.reference[c]>n.floating[c]&&(f=fg(f)),[f,fg(f)]}function b9(e){const n=fg(e);return[bE(e),n,bE(n)]}function bE(e){return e.replace(/start|end/g,n=>v9[n])}function S9(e,n,r){const a=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?n?s:a:n?a:s;case"left":case"right":return n?c:f;default:return[]}}function E9(e,n,r,a){const s=jh(e);let c=S9(Tc(e),r==="start",a);return s&&(c=c.map(f=>f+"-"+s),n&&(c=c.concat(c.map(bE)))),c}function fg(e){return e.replace(/left|right|bottom|top/g,n=>m9[n])}function x9(e){return{top:0,right:0,bottom:0,left:0,...e}}function w9(e){return typeof e!="number"?x9(e):{top:e,right:e,bottom:e,left:e}}function dg(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function iu(e){return NT(e)?(e.nodeName||"").toLowerCase():"#document"}function Ma(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function Ql(e){var n;return(n=(NT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function NT(e){return e instanceof Node||e instanceof Ma(e).Node}function br(e){return e instanceof Element||e instanceof Ma(e).Element}function Ei(e){return e instanceof HTMLElement||e instanceof Ma(e).HTMLElement}function SE(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ma(e).ShadowRoot}function $h(e){const{overflow:n,overflowX:r,overflowY:a,display:s}=La(e);return/auto|scroll|overlay|hidden|clip/.test(n+a+r)&&!["inline","contents"].includes(s)}function C9(e){return["table","td","th"].includes(iu(e))}function EE(e){const n=xE(),r=La(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!n&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!n&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(a=>(r.willChange||"").includes(a))||["paint","layout","strict","content"].some(a=>(r.contain||"").includes(a))}function k9(e){let n=Rc(e);for(;Ei(n)&&!Uh(n);){if(EE(n))return n;n=Rc(n)}return null}function xE(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Uh(e){return["html","body","#document"].includes(iu(e))}function La(e){return Ma(e).getComputedStyle(e)}function pg(e){return br(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Rc(e){if(iu(e)==="html")return e;const n=e.assignedSlot||e.parentNode||SE(e)&&e.host||Ql(e);return SE(n)?n.host:n}function FT(e){const n=Rc(e);return Uh(n)?e.ownerDocument?e.ownerDocument.body:e.body:Ei(n)&&$h(n)?n:FT(n)}function au(e,n,r){var a;n===void 0&&(n=[]),r===void 0&&(r=!0);const s=FT(e),c=s===((a=e.ownerDocument)==null?void 0:a.body),f=Ma(s);return c?n.concat(f,f.visualViewport||[],$h(s)?s:[],f.frameElement&&r?au(f.frameElement):[]):n.concat(s,au(s,[],r))}function ou(e){let n=e.activeElement;for(;((r=n)==null||(a=r.shadowRoot)==null?void 0:a.activeElement)!=null;){var r,a;n=n.shadowRoot.activeElement}return n}function aa(e,n){if(!e||!n)return!1;const r=n.getRootNode&&n.getRootNode();if(e.contains(n))return!0;if(r&&SE(r)){let a=n;for(;a;){if(e===a)return!0;a=a.parentNode||a.host}}return!1}function IT(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function _9(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(n=>{let{brand:r,version:a}=n;return r+"/"+a}).join(" "):navigator.userAgent}function zT(e){if(e.mozInputSource===0&&e.isTrusted)return!0;const n=/Android/i;return(n.test(IT())||n.test(_9()))&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function jT(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType!=="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0}function $T(){return/apple/i.test(navigator.vendor)}function T9(){return IT().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function UT(e,n){const r=["mouse","pen"];return n||r.push("",void 0),r.includes(e)}function R9(e){return"nativeEvent"in e}function O9(e){return e.matches("html,body")}function yo(e){return(e==null?void 0:e.ownerDocument)||document}function wE(e,n){if(n==null)return!1;if("composedPath"in e)return e.composedPath().includes(n);const r=e;return r.target!=null&&n.contains(r.target)}function BT(e){return"composedPath"in e?e.composedPath()[0]:e.target}const D9="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function VT(e){return Ei(e)&&e.matches(D9)}function li(e){e.preventDefault(),e.stopPropagation()}function HT(e,n,r){let{reference:a,floating:s}=e;const c=cg(n),f=PT(n),h=LT(f),v=Tc(n),y=c==="y",S=a.x+a.width/2-s.width/2,E=a.y+a.height/2-s.height/2,C=a[h]/2-s[h]/2;let x;switch(v){case"top":x={x:S,y:a.y-s.height};break;case"bottom":x={x:S,y:a.y+a.height};break;case"right":x={x:a.x+a.width,y:E};break;case"left":x={x:a.x-s.width,y:E};break;default:x={x:a.x,y:a.y}}switch(jh(n)){case"start":x[f]-=C*(r&&y?-1:1);break;case"end":x[f]+=C*(r&&y?-1:1);break}return x}const A9=async(e,n,r)=>{const{placement:a="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,h=c.filter(Boolean),v=await(f.isRTL==null?void 0:f.isRTL(n));let y=await f.getElementRects({reference:e,floating:n,strategy:s}),{x:S,y:E}=HT(y,a,v),C=a,x={},R=0;for(let T=0;T<h.length;T++){const{name:D,fn:M}=h[T],{x:I,y:N,data:B,reset:F}=await M({x:S,y:E,initialPlacement:a,placement:C,strategy:s,middlewareData:x,rects:y,platform:f,elements:{reference:e,floating:n}});if(S=I??S,E=N??E,x={...x,[D]:{...x[D],...B}},F&&R<=50){R++,typeof F=="object"&&(F.placement&&(C=F.placement),F.rects&&(y=F.rects===!0?await f.getElementRects({reference:e,floating:n,strategy:s}):F.rects),{x:S,y:E}=HT(y,C,v)),T=-1;continue}}return{x:S,y:E,placement:C,strategy:s,middlewareData:x}};async function qT(e,n){var r;n===void 0&&(n={});const{x:a,y:s,platform:c,rects:f,elements:h,strategy:v}=e,{boundary:y="clippingAncestors",rootBoundary:S="viewport",elementContext:E="floating",altBoundary:C=!1,padding:x=0}=ug(n,e),R=w9(x),D=h[C?E==="floating"?"reference":"floating":E],M=dg(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(D)))==null||r?D:D.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(h.floating)),boundary:y,rootBoundary:S,strategy:v})),I=E==="floating"?{...f.floating,x:a,y:s}:f.reference,N=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h.floating)),B=await(c.isElement==null?void 0:c.isElement(N))?await(c.getScale==null?void 0:c.getScale(N))||{x:1,y:1}:{x:1,y:1},F=dg(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({rect:I,offsetParent:N,strategy:v}):I);return{top:(M.top-F.top+R.top)/B.y,bottom:(F.bottom-M.bottom+R.bottom)/B.y,left:(M.left-F.left+R.left)/B.x,right:(F.right-M.right+R.right)/B.x}}const M9=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var r,a;const{placement:s,middlewareData:c,rects:f,initialPlacement:h,platform:v,elements:y}=n,{mainAxis:S=!0,crossAxis:E=!0,fallbackPlacements:C,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:T=!0,...D}=ug(e,n);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const M=Tc(s),I=Tc(h)===h,N=await(v.isRTL==null?void 0:v.isRTL(y.floating)),B=C||(I||!T?[fg(h)]:b9(h));!C&&R!=="none"&&B.push(...E9(h,T,R,N));const F=[h,...B],$=await qT(n,D),H=[];let Y=((a=c.flip)==null?void 0:a.overflows)||[];if(S&&H.push($[M]),E){const oe=y9(s,f,N);H.push($[oe[0]],$[oe[1]])}if(Y=[...Y,{placement:s,overflows:H}],!H.every(oe=>oe<=0)){var ne,ve;const oe=(((ne=c.flip)==null?void 0:ne.index)||0)+1,J=F[oe];if(J)return{data:{index:oe,overflows:Y},reset:{placement:J}};let pe=(ve=Y.filter(ke=>ke.overflows[0]<=0).sort((ke,xe)=>ke.overflows[1]-xe.overflows[1])[0])==null?void 0:ve.placement;if(!pe)switch(x){case"bestFit":{var ee;const ke=(ee=Y.map(xe=>[xe.placement,xe.overflows.filter(Ie=>Ie>0).reduce((Ie,se)=>Ie+se,0)]).sort((xe,Ie)=>xe[1]-Ie[1])[0])==null?void 0:ee[0];ke&&(pe=ke);break}case"initialPlacement":pe=h;break}if(s!==pe)return{reset:{placement:pe}}}return{}}}};async function L9(e,n){const{placement:r,platform:a,elements:s}=e,c=await(a.isRTL==null?void 0:a.isRTL(s.floating)),f=Tc(r),h=jh(r),v=cg(r)==="y",y=["left","top"].includes(f)?-1:1,S=c&&v?-1:1,E=ug(n,e);let{mainAxis:C,crossAxis:x,alignmentAxis:R}=typeof E=="number"?{mainAxis:E,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...E};return h&&typeof R=="number"&&(x=h==="end"?R*-1:R),v?{x:x*S,y:C*y}:{x:C*y,y:x*S}}const P9=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){const{x:r,y:a}=n,s=await L9(n,e);return{x:r+s.x,y:a+s.y,data:s}}}},N9=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){const{placement:r,rects:a,platform:s,elements:c}=n,{apply:f=()=>{},...h}=ug(e,n),v=await qT(n,h),y=Tc(r),S=jh(r),E=cg(r)==="y",{width:C,height:x}=a.floating;let R,T;y==="top"||y==="bottom"?(R=y,T=S===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(T=y,R=S==="end"?"top":"bottom");const D=x-v[R],M=C-v[T],I=!n.middlewareData.shift;let N=D,B=M;if(E){const $=C-v.left-v.right;B=S||I?zh(M,$):$}else{const $=x-v.top-v.bottom;N=S||I?zh(D,$):$}if(I&&!S){const $=Ja(v.left,0),H=Ja(v.right,0),Y=Ja(v.top,0),ne=Ja(v.bottom,0);E?B=C-2*($!==0||H!==0?$+H:Ja(v.left,v.right)):N=x-2*(Y!==0||ne!==0?Y+ne:Ja(v.top,v.bottom))}await f({...n,availableWidth:B,availableHeight:N});const F=await s.getDimensions(c.floating);return C!==F.width||x!==F.height?{reset:{rects:!0}}:{}}}};function WT(e){const n=La(e);let r=parseFloat(n.width)||0,a=parseFloat(n.height)||0;const s=Ei(e),c=s?e.offsetWidth:r,f=s?e.offsetHeight:a,h=sg(r)!==c||sg(a)!==f;return h&&(r=c,a=f),{width:r,height:a,$:h}}function CE(e){return br(e)?e:e.contextElement}function ld(e){const n=CE(e);if(!Ei(n))return ru(1);const r=n.getBoundingClientRect(),{width:a,height:s,$:c}=WT(n);let f=(c?sg(r.width):r.width)/a,h=(c?sg(r.height):r.height)/s;return(!f||!Number.isFinite(f))&&(f=1),(!h||!Number.isFinite(h))&&(h=1),{x:f,y:h}}const F9=ru(0);function YT(e){const n=Ma(e);return!xE()||!n.visualViewport?F9:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function I9(e,n,r){return n===void 0&&(n=!1),!r||n&&r!==Ma(e)?!1:n}function Oc(e,n,r,a){n===void 0&&(n=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),c=CE(e);let f=ru(1);n&&(a?br(a)&&(f=ld(a)):f=ld(e));const h=I9(c,r,a)?YT(c):ru(0);let v=(s.left+h.x)/f.x,y=(s.top+h.y)/f.y,S=s.width/f.x,E=s.height/f.y;if(c){const C=Ma(c),x=a&&br(a)?Ma(a):a;let R=C.frameElement;for(;R&&a&&x!==C;){const T=ld(R),D=R.getBoundingClientRect(),M=La(R),I=D.left+(R.clientLeft+parseFloat(M.paddingLeft))*T.x,N=D.top+(R.clientTop+parseFloat(M.paddingTop))*T.y;v*=T.x,y*=T.y,S*=T.x,E*=T.y,v+=I,y+=N,R=Ma(R).frameElement}}return dg({width:S,height:E,x:v,y})}function z9(e){let{rect:n,offsetParent:r,strategy:a}=e;const s=Ei(r),c=Ql(r);if(r===c)return n;let f={scrollLeft:0,scrollTop:0},h=ru(1);const v=ru(0);if((s||!s&&a!=="fixed")&&((iu(r)!=="body"||$h(c))&&(f=pg(r)),Ei(r))){const y=Oc(r);h=ld(r),v.x=y.x+r.clientLeft,v.y=y.y+r.clientTop}return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-f.scrollLeft*h.x+v.x,y:n.y*h.y-f.scrollTop*h.y+v.y}}function j9(e){return Array.from(e.getClientRects())}function ZT(e){return Oc(Ql(e)).left+pg(e).scrollLeft}function $9(e){const n=Ql(e),r=pg(e),a=e.ownerDocument.body,s=Ja(n.scrollWidth,n.clientWidth,a.scrollWidth,a.clientWidth),c=Ja(n.scrollHeight,n.clientHeight,a.scrollHeight,a.clientHeight);let f=-r.scrollLeft+ZT(e);const h=-r.scrollTop;return La(a).direction==="rtl"&&(f+=Ja(n.clientWidth,a.clientWidth)-s),{width:s,height:c,x:f,y:h}}function U9(e,n){const r=Ma(e),a=Ql(e),s=r.visualViewport;let c=a.clientWidth,f=a.clientHeight,h=0,v=0;if(s){c=s.width,f=s.height;const y=xE();(!y||y&&n==="fixed")&&(h=s.offsetLeft,v=s.offsetTop)}return{width:c,height:f,x:h,y:v}}function B9(e,n){const r=Oc(e,!0,n==="fixed"),a=r.top+e.clientTop,s=r.left+e.clientLeft,c=Ei(e)?ld(e):ru(1),f=e.clientWidth*c.x,h=e.clientHeight*c.y,v=s*c.x,y=a*c.y;return{width:f,height:h,x:v,y}}function KT(e,n,r){let a;if(n==="viewport")a=U9(e,r);else if(n==="document")a=$9(Ql(e));else if(br(n))a=B9(n,r);else{const s=YT(e);a={...n,x:n.x-s.x,y:n.y-s.y}}return dg(a)}function GT(e,n){const r=Rc(e);return r===n||!br(r)||Uh(r)?!1:La(r).position==="fixed"||GT(r,n)}function V9(e,n){const r=n.get(e);if(r)return r;let a=au(e,[],!1).filter(h=>br(h)&&iu(h)!=="body"),s=null;const c=La(e).position==="fixed";let f=c?Rc(e):e;for(;br(f)&&!Uh(f);){const h=La(f),v=EE(f);!v&&h.position==="fixed"&&(s=null),(c?!v&&!s:!v&&h.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||$h(f)&&!v&&GT(e,f))?a=a.filter(S=>S!==f):s=h,f=Rc(f)}return n.set(e,a),a}function H9(e){let{element:n,boundary:r,rootBoundary:a,strategy:s}=e;const f=[...r==="clippingAncestors"?V9(n,this._c):[].concat(r),a],h=f[0],v=f.reduce((y,S)=>{const E=KT(n,S,s);return y.top=Ja(E.top,y.top),y.right=zh(E.right,y.right),y.bottom=zh(E.bottom,y.bottom),y.left=Ja(E.left,y.left),y},KT(n,h,s));return{width:v.right-v.left,height:v.bottom-v.top,x:v.left,y:v.top}}function q9(e){return WT(e)}function W9(e,n,r){const a=Ei(n),s=Ql(n),c=r==="fixed",f=Oc(e,!0,c,n);let h={scrollLeft:0,scrollTop:0};const v=ru(0);if(a||!a&&!c)if((iu(n)!=="body"||$h(s))&&(h=pg(n)),a){const y=Oc(n,!0,c,n);v.x=y.x+n.clientLeft,v.y=y.y+n.clientTop}else s&&(v.x=ZT(s));return{x:f.left+h.scrollLeft-v.x,y:f.top+h.scrollTop-v.y,width:f.width,height:f.height}}function QT(e,n){return!Ei(e)||La(e).position==="fixed"?null:n?n(e):e.offsetParent}function XT(e,n){const r=Ma(e);if(!Ei(e))return r;let a=QT(e,n);for(;a&&C9(a)&&La(a).position==="static";)a=QT(a,n);return a&&(iu(a)==="html"||iu(a)==="body"&&La(a).position==="static"&&!EE(a))?r:a||k9(e)||r}const Y9=async function(e){let{reference:n,floating:r,strategy:a}=e;const s=this.getOffsetParent||XT,c=this.getDimensions;return{reference:W9(n,await s(r),a),floating:{x:0,y:0,...await c(r)}}};function Z9(e){return La(e).direction==="rtl"}const K9={convertOffsetParentRelativeRectToViewportRelativeRect:z9,getDocumentElement:Ql,getClippingRect:H9,getOffsetParent:XT,getElementRects:Y9,getClientRects:j9,getDimensions:q9,getScale:ld,isElement:br,isRTL:Z9};function G9(e,n){let r=null,a;const s=Ql(e);function c(){clearTimeout(a),r&&r.disconnect(),r=null}function f(h,v){h===void 0&&(h=!1),v===void 0&&(v=1),c();const{left:y,top:S,width:E,height:C}=e.getBoundingClientRect();if(h||n(),!E||!C)return;const x=od(S),R=od(s.clientWidth-(y+E)),T=od(s.clientHeight-(S+C)),D=od(y),I={rootMargin:-x+"px "+-R+"px "+-T+"px "+-D+"px",threshold:Ja(0,zh(1,v))||1};let N=!0;function B(F){const $=F[0].intersectionRatio;if($!==v){if(!N)return f();$?f(!1,$):a=setTimeout(()=>{f(!1,1e-7)},100)}N=!1}try{r=new IntersectionObserver(B,{...I,root:s.ownerDocument})}catch{r=new IntersectionObserver(B,I)}r.observe(e)}return f(!0),c}function Q9(e,n,r,a){a===void 0&&(a={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:v=!1}=a,y=CE(e),S=s||c?[...y?au(y):[],...au(n)]:[];S.forEach(M=>{s&&M.addEventListener("scroll",r,{passive:!0}),c&&M.addEventListener("resize",r)});const E=y&&h?G9(y,r):null;let C=-1,x=null;f&&(x=new ResizeObserver(M=>{let[I]=M;I&&I.target===y&&x&&(x.unobserve(n),cancelAnimationFrame(C),C=requestAnimationFrame(()=>{x&&x.observe(n)})),r()}),y&&!v&&x.observe(y),x.observe(n));let R,T=v?Oc(e):null;v&&D();function D(){const M=Oc(e);T&&(M.x!==T.x||M.y!==T.y||M.width!==T.width||M.height!==T.height)&&r(),T=M,R=requestAnimationFrame(D)}return r(),()=>{S.forEach(M=>{s&&M.removeEventListener("scroll",r),c&&M.removeEventListener("resize",r)}),E&&E(),x&&x.disconnect(),x=null,v&&cancelAnimationFrame(R)}}const X9=(e,n,r)=>{const a=new Map,s={platform:K9,...r},c={...s.platform,_c:a};return A9(e,n,{...s,platform:c})};var hg=typeof document<"u"?j.useLayoutEffect:j.useEffect;function mg(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let r,a,s;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(a=r;a--!==0;)if(!mg(e[a],n[a]))return!1;return!0}if(s=Object.keys(e),r=s.length,r!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!{}.hasOwnProperty.call(n,s[a]))return!1;for(a=r;a--!==0;){const c=s[a];if(!(c==="_owner"&&e.$$typeof)&&!mg(e[c],n[c]))return!1}return!0}return e!==e&&n!==n}function JT(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function e5(e,n){const r=JT(e);return Math.round(n*r)/r}function t5(e){const n=Z.useRef(e);return hg(()=>{n.current=e}),n}function J9(e){e===void 0&&(e={});const{placement:n="bottom",strategy:r="absolute",middleware:a=[],platform:s,elements:{reference:c,floating:f}={},transform:h=!0,whileElementsMounted:v,open:y}=e,[S,E]=Z.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[C,x]=Z.useState(a);mg(C,a)||x(a);const[R,T]=Z.useState(null),[D,M]=Z.useState(null),I=Z.useCallback(xe=>{xe!=$.current&&($.current=xe,T(xe))},[T]),N=Z.useCallback(xe=>{xe!==H.current&&(H.current=xe,M(xe))},[M]),B=c||R,F=f||D,$=Z.useRef(null),H=Z.useRef(null),Y=Z.useRef(S),ne=t5(v),ve=t5(s),ee=Z.useCallback(()=>{if(!$.current||!H.current)return;const xe={placement:n,strategy:r,middleware:C};ve.current&&(xe.platform=ve.current),X9($.current,H.current,xe).then(Ie=>{const se={...Ie,isPositioned:!0};oe.current&&!mg(Y.current,se)&&(Y.current=se,P0.flushSync(()=>{E(se)}))})},[C,n,r,ve]);hg(()=>{y===!1&&Y.current.isPositioned&&(Y.current.isPositioned=!1,E(xe=>({...xe,isPositioned:!1})))},[y]);const oe=Z.useRef(!1);hg(()=>(oe.current=!0,()=>{oe.current=!1}),[]),hg(()=>{if(B&&($.current=B),F&&(H.current=F),B&&F){if(ne.current)return ne.current(B,F,ee);ee()}},[B,F,ee,ne]);const J=Z.useMemo(()=>({reference:$,floating:H,setReference:I,setFloating:N}),[I,N]),pe=Z.useMemo(()=>({reference:B,floating:F}),[B,F]),ke=Z.useMemo(()=>{const xe={position:r,left:0,top:0};if(!pe.floating)return xe;const Ie=e5(pe.floating,S.x),se=e5(pe.floating,S.y);return h?{...xe,transform:"translate("+Ie+"px, "+se+"px)",...JT(pe.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:Ie,top:se}},[r,h,pe.floating,S.x,S.y]);return Z.useMemo(()=>({...S,update:ee,refs:J,elements:pe,floatingStyles:ke}),[S,ee,J,pe,ke])}/*!
428
+ `));let C=hT((s=S.props)==null?void 0:s.className,v.className),x=C?{className:C}:{};return j.cloneElement(S,Object.assign({},gT(S.props,yT(uE(v,["ref"]))),E,y,zL(S.ref,y.ref),x))}return j.createElement(c,Object.assign({},uE(v,["ref"]),c!==j.Fragment&&y,c!==j.Fragment&&E),S)}function zL(...e){return{ref:e.every(n=>n==null)?void 0:n=>{for(let r of e)r!=null&&(typeof r=="function"?r(n):r.current=n)}}}function gT(...e){if(e.length===0)return{};if(e.length===1)return e[0];let n={},r={};for(let a of e)for(let s in a)s.startsWith("on")&&typeof a[s]=="function"?(r[s]!=null||(r[s]=[]),r[s].push(a[s])):n[s]=a[s];if(n.disabled||n["aria-disabled"])return Object.assign(n,Object.fromEntries(Object.keys(r).map(a=>[a,void 0])));for(let a in r)Object.assign(n,{[a](s,...c){let f=r[a];for(let h of f){if((s instanceof Event||(s==null?void 0:s.nativeEvent)instanceof Event)&&s.defaultPrevented)return;h(s,...c)}}});return n}function sE(e){var n;return Object.assign(j.forwardRef(e),{displayName:(n=e.displayName)!=null?n:e.name})}function yT(e){let n=Object.assign({},e);for(let r in n)n[r]===void 0&&delete n[r];return n}function uE(e,n=[]){let r=Object.assign({},e);for(let a of n)a in r&&delete r[a];return r}let cE=j.createContext(null);cE.displayName="OpenClosedContext";var Kl=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Kl||{});function bT(){return j.useContext(cE)}function jL({value:e,children:n}){return j.createElement(cE.Provider,{value:e},n)}function ST(){let e=j.useRef(!1);return X0(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function $L(e=0){let[n,r]=j.useState(e),a=j.useCallback(h=>r(v=>v|h),[n]),s=j.useCallback(h=>!!(n&h),[n]),c=j.useCallback(h=>r(v=>v&~h),[r]),f=j.useCallback(h=>r(v=>v^h),[r]);return{flags:n,addFlag:a,hasFlag:s,removeFlag:c,toggleFlag:f}}function UL(e){let n={called:!1};return(...r)=>{if(!n.called)return n.called=!0,e(...r)}}function fE(e,...n){e&&n.length>0&&e.classList.add(...n)}function dE(e,...n){e&&n.length>0&&e.classList.remove(...n)}function BL(e,n){let r=J0();if(!e)return r.dispose;let{transitionDuration:a,transitionDelay:s}=getComputedStyle(e),[c,f]=[a,s].map(h=>{let[v=0]=h.split(",").filter(Boolean).map(y=>y.includes("ms")?parseFloat(y):parseFloat(y)*1e3).sort((y,S)=>S-y);return v});if(c+f!==0){let h=r.addEventListener(e,"transitionend",v=>{v.target===v.currentTarget&&(n(),h())})}else n();return r.add(()=>n()),r.dispose}function VL(e,n,r,a){let s=r?"enter":"leave",c=J0(),f=a!==void 0?UL(a):()=>{};s==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let h=rl(s,{enter:()=>n.enter,leave:()=>n.leave}),v=rl(s,{enter:()=>n.enterTo,leave:()=>n.leaveTo}),y=rl(s,{enter:()=>n.enterFrom,leave:()=>n.leaveFrom});return dE(e,...n.enter,...n.enterTo,...n.enterFrom,...n.leave,...n.leaveFrom,...n.leaveTo,...n.entered),fE(e,...h,...y),c.nextFrame(()=>{dE(e,...y),fE(e,...v),BL(e,()=>(dE(e,...h),fE(e,...n.entered),f()))}),c.dispose}function HL({container:e,direction:n,classes:r,onStart:a,onStop:s}){let c=ST(),f=fT(),h=id(n);X0(()=>{let v=J0();f.add(v.dispose);let y=e.current;if(y&&h.current!=="idle"&&c.current)return v.dispose(),a.current(h.current),v.add(VL(y,r.current,h.current==="enter",()=>{v.dispose(),s.current(h.current)})),v.dispose},[n])}function _c(e=""){return e.split(" ").filter(n=>n.trim().length>1)}let tg=j.createContext(null);tg.displayName="TransitionContext";var qL=(e=>(e.Visible="visible",e.Hidden="hidden",e))(qL||{});function WL(){let e=j.useContext(tg);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function YL(){let e=j.useContext(ng);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let ng=j.createContext(null);ng.displayName="NestingContext";function rg(e){return"children"in e?rg(e.children):e.current.filter(({el:n})=>n.current!==null).filter(({state:n})=>n==="visible").length>0}function ET(e,n){let r=id(e),a=j.useRef([]),s=ST(),c=fT(),f=kc((x,R=Zl.Hidden)=>{let T=a.current.findIndex(({el:D})=>D===x);T!==-1&&(rl(R,{[Zl.Unmount](){a.current.splice(T,1)},[Zl.Hidden](){a.current[T].state="hidden"}}),c.microTask(()=>{var D;!rg(a)&&s.current&&((D=r.current)==null||D.call(r))}))}),h=kc(x=>{let R=a.current.find(({el:T})=>T===x);return R?R.state!=="visible"&&(R.state="visible"):a.current.push({el:x,state:"visible"}),()=>f(x,Zl.Unmount)}),v=j.useRef([]),y=j.useRef(Promise.resolve()),S=j.useRef({enter:[],leave:[],idle:[]}),E=kc((x,R,T)=>{v.current.splice(0),n&&(n.chains.current[R]=n.chains.current[R].filter(([D])=>D!==x)),n==null||n.chains.current[R].push([x,new Promise(D=>{v.current.push(D)})]),n==null||n.chains.current[R].push([x,new Promise(D=>{Promise.all(S.current[R].map(([M,I])=>I)).then(()=>D())})]),R==="enter"?y.current=y.current.then(()=>n==null?void 0:n.wait.current).then(()=>T(R)):T(R)}),C=kc((x,R,T)=>{Promise.all(S.current[R].splice(0).map(([D,M])=>M)).then(()=>{var D;(D=v.current.shift())==null||D()}).then(()=>T(R))});return j.useMemo(()=>({children:a,register:h,unregister:f,onStart:E,onStop:C,wait:y,chains:S}),[h,f,a,E,C,S,y])}function ZL(){}let KL=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function xT(e){var n;let r={};for(let a of KL)r[a]=(n=e[a])!=null?n:ZL;return r}function GL(e){let n=j.useRef(xT(e));return j.useEffect(()=>{n.current=xT(e)},[e]),n}let QL="div",wT=mT.RenderStrategy,CT=sE(function(e,n){let{beforeEnter:r,afterEnter:a,beforeLeave:s,afterLeave:c,enter:f,enterFrom:h,enterTo:v,entered:y,leave:S,leaveFrom:E,leaveTo:C,...x}=e,R=j.useRef(null),T=pT(R,n),D=x.unmount?Zl.Unmount:Zl.Hidden,{show:M,appear:I,initial:N}=WL(),[B,F]=j.useState(M?"visible":"hidden"),$=YL(),{register:H,unregister:Y}=$,ne=j.useRef(null);j.useEffect(()=>H(R),[H,R]),j.useEffect(()=>{if(D===Zl.Hidden&&R.current){if(M&&B!=="visible"){F("visible");return}return rl(B,{hidden:()=>Y(R),visible:()=>H(R)})}},[B,R,H,Y,M,D]);let ve=id({enter:_c(f),enterFrom:_c(h),enterTo:_c(v),entered:_c(y),leave:_c(S),leaveFrom:_c(E),leaveTo:_c(C)}),ee=GL({beforeEnter:r,afterEnter:a,beforeLeave:s,afterLeave:c}),oe=dT();j.useEffect(()=>{if(oe&&B==="visible"&&R.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[R,B,oe]);let J=N&&!I,pe=(()=>!oe||J||ne.current===M?"idle":M?"enter":"leave")(),ke=$L(0),xe=kc(te=>rl(te,{enter:()=>{ke.addFlag(Kl.Opening),ee.current.beforeEnter()},leave:()=>{ke.addFlag(Kl.Closing),ee.current.beforeLeave()},idle:()=>{}})),Ie=kc(te=>rl(te,{enter:()=>{ke.removeFlag(Kl.Opening),ee.current.afterEnter()},leave:()=>{ke.removeFlag(Kl.Closing),ee.current.afterLeave()},idle:()=>{}})),se=ET(()=>{F("hidden"),Y(R)},$);HL({container:R,classes:ve,direction:pe,onStart:id(te=>{se.onStart(R,te,xe)}),onStop:id(te=>{se.onStop(R,te,Ie),te==="leave"&&!rg(se)&&(F("hidden"),Y(R))})}),j.useEffect(()=>{!J||(D===Zl.Hidden?ne.current=null:ne.current=M)},[M,J,B]);let Te=x,L={ref:T};return I&&M&&Nh.isServer&&(Te={...Te,className:hT(x.className,...ve.current.enter,...ve.current.enterFrom)}),j.createElement(ng.Provider,{value:se},j.createElement(jL,{value:rl(B,{visible:Kl.Open,hidden:Kl.Closed})|ke.flags},vT({ourProps:L,theirProps:Te,defaultTag:QL,features:wT,visible:B==="visible",name:"Transition.Child"})))}),pE=sE(function(e,n){let{show:r,appear:a=!1,unmount:s,...c}=e,f=j.useRef(null),h=pT(f,n);dT();let v=bT();if(r===void 0&&v!==null&&(r=(v&Kl.Open)===Kl.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[y,S]=j.useState(r?"visible":"hidden"),E=ET(()=>{S("hidden")}),[C,x]=j.useState(!0),R=j.useRef([r]);X0(()=>{C!==!1&&R.current[R.current.length-1]!==r&&(R.current.push(r),x(!1))},[R,r]);let T=j.useMemo(()=>({show:r,appear:a,initial:C}),[r,a,C]);j.useEffect(()=>{if(r)S("visible");else if(!rg(E))S("hidden");else{let M=f.current;if(!M)return;let I=M.getBoundingClientRect();I.x===0&&I.y===0&&I.width===0&&I.height===0&&S("hidden")}},[r,E]);let D={unmount:s};return j.createElement(ng.Provider,{value:E},j.createElement(tg.Provider,{value:T},vT({ourProps:{...D,as:j.Fragment,children:j.createElement(CT,{ref:h,...D,...c})},theirProps:{},defaultTag:j.Fragment,features:wT,visible:y==="visible",name:"Transition"})))}),XL=sE(function(e,n){let r=j.useContext(tg)!==null,a=bT()!==null;return j.createElement(j.Fragment,null,!r&&a?j.createElement(pE,{ref:n,...e}):j.createElement(CT,{ref:n,...e}))}),JL=Object.assign(pE,{Child:XL,Root:pE});const eP=e=>Z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,...e},Z.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m7.5 12 3 3 6-6m5.5 3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"})),tP=e=>Z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",...e},Z.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M18 6 6 18M6 6l12 12"})),nP=e=>Z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,...e},Z.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m15 9-6 6m0-6 6 6m7-3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));function rP(e){return ia.custom(n=>he.jsx(aP,{type:e.type,show:n.visible,children:e.type==="custom"?e.content:he.jsx(iP,{...e,toastId:n.id})}))}const iP=({icon:e,type:n,title:r,description:a,toastId:s})=>{const{theme:{notification:c}}=cr();return he.jsxs(he.Fragment,{children:[e?he.jsx(e,{...c==null?void 0:c.icon}):he.jsx(oP,{...c==null?void 0:c.icon,type:n}),he.jsx("p",{...c==null?void 0:c.title,children:r}),a?he.jsx("p",{...c==null?void 0:c.description,children:a}):null,he.jsx(tP,{...c==null?void 0:c.closeIcon,onClick:()=>ia.dismiss(s)})]})},aP=({type:e,...n})=>{const{theme:{notification:r}}=cr();return he.jsx(JL,{...n,...r==null?void 0:r.container,appear:!0,"data-type":e??"neutral"})},oP=({type:e,className:n})=>{switch(e){case"success":return he.jsx(eP,{className:n});case"error":return he.jsx(nP,{className:n});default:return null}},lP=j.forwardRef(({url:e,type:n,styles:r,orientation:a="auto",...s},c)=>{var C,x;const f=j.useId(),{setIsLoading:h}=F7(),[v,y]=j.useState(a),[S,E]=j.useState(!1);return j.useLayoutEffect(()=>{h(R=>[...R,f])},[]),j.useEffect(()=>{e&&v==="auto"&&B7(e).then(({width:R,height:T})=>{y(sP(R,T)),h(D=>D.filter(M=>M!==f))})},[e]),he.jsxs(he.Fragment,{children:[S?null:he.jsx("div",{"data-orientation":v,...(C=r==null?void 0:r[n])==null?void 0:C.placeholder}),he.jsx("img",{"data-orientation":v,"data-loaded":S,...s,...(x=r==null?void 0:r[n])==null?void 0:x.image,src:e,alt:"",ref:c,loading:"lazy",onLoad:()=>{E(!0)}})]})});function sP(e,n){const r={square:1,portrait:.75,landscape:1.3333333333333333},a=e/n;return Object.keys(r).reduce((c,f)=>Math.abs(r[f]-a)<Math.abs(r[c]-a)?f:c)}const uP=j.forwardRef(({url:e,type:n,styles:r,...a},s)=>he.jsx("div",{children:he.jsx("video",{...a,controls:!0,src:e,...r==null?void 0:r[n],ref:s})})),cP=j.forwardRef(({url:e,type:n,styles:r,...a},s)=>he.jsx("div",{children:he.jsx("audio",{...a,controls:!0,src:e,...r==null?void 0:r[n],ref:s})}));function fP({title:e,titleId:n,...r},a){return Z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Z.createElement("title",{id:n},e):null,Z.createElement("path",{fillRule:"evenodd",d:"M15.312 11.424a5.5 5.5 0 01-9.201 2.466l-.312-.311h2.433a.75.75 0 000-1.5H3.989a.75.75 0 00-.75.75v4.242a.75.75 0 001.5 0v-2.43l.31.31a7 7 0 0011.712-3.138.75.75 0 00-1.449-.39zm1.23-3.723a.75.75 0 00.219-.53V2.929a.75.75 0 00-1.5 0V5.36l-.31-.31A7 7 0 003.239 8.188a.75.75 0 101.448.389A5.5 5.5 0 0113.89 6.11l.311.31h-2.432a.75.75 0 000 1.5h4.243a.75.75 0 00.53-.219z",clipRule:"evenodd"}))}const dP=Z.forwardRef(fP);function pP({title:e,titleId:n,...r},a){return Z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Z.createElement("title",{id:n},e):null,Z.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm-.75-4.75a.75.75 0 001.5 0V8.66l1.95 2.1a.75.75 0 101.1-1.02l-3.25-3.5a.75.75 0 00-1.1 0L6.2 9.74a.75.75 0 101.1 1.02l1.95-2.1v4.59z",clipRule:"evenodd"}))}const hP=Z.forwardRef(pP);function mP({title:e,titleId:n,...r},a){return Z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Z.createElement("title",{id:n},e):null,Z.createElement("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z",clipRule:"evenodd"}))}const vP=Z.forwardRef(mP);function gP({title:e,titleId:n,...r},a){return Z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Z.createElement("title",{id:n},e):null,Z.createElement("path",{fillRule:"evenodd",d:"M4.5 2A1.5 1.5 0 003 3.5v13A1.5 1.5 0 004.5 18h11a1.5 1.5 0 001.5-1.5V7.621a1.5 1.5 0 00-.44-1.06l-4.12-4.122A1.5 1.5 0 0011.378 2H4.5zm4.75 6.75a.75.75 0 011.5 0v2.546l.943-1.048a.75.75 0 011.114 1.004l-2.25 2.5a.75.75 0 01-1.114 0l-2.25-2.5a.75.75 0 111.114-1.004l.943 1.048V8.75z",clipRule:"evenodd"}))}const yP=Z.forwardRef(gP);function bP({title:e,titleId:n,...r},a){return Z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Z.createElement("title",{id:n},e):null,Z.createElement("path",{fillRule:"evenodd",d:"M9.69 18.933l.003.001C9.89 19.02 10 19 10 19s.11.02.308-.066l.002-.001.006-.003.018-.008a5.741 5.741 0 00.281-.14c.186-.096.446-.24.757-.433.62-.384 1.445-.966 2.274-1.765C15.302 14.988 17 12.493 17 9A7 7 0 103 9c0 3.492 1.698 5.988 3.355 7.584a13.731 13.731 0 002.273 1.765 11.842 11.842 0 00.976.544l.062.029.018.008.006.003zM10 11.25a2.25 2.25 0 100-4.5 2.25 2.25 0 000 4.5z",clipRule:"evenodd"}))}const SP=Z.forwardRef(bP),EP=j.forwardRef(({type:e,latitude:n,longitude:r,title:a,styles:s,...c},f)=>{var v,y,S;const h=`https://www.google.com/maps/search/?api=1&query=${n},${r}`;return he.jsxs("a",{...c,...(v=s==null?void 0:s[e])==null?void 0:v.container,href:h,type:"_blank",rel:"noopener",ref:f,children:[he.jsx("p",{...(y=s==null?void 0:s[e])==null?void 0:y.title,children:a}),he.jsx(SP,{...(S=s==null?void 0:s[e])==null?void 0:S.icon})]})}),xP=j.forwardRef(({blocks:e,styles:n,type:r,horizontalAlignment:a,verticalAlignment:s,...c},f)=>he.jsx("div",{"data-horizontal":a,"data-vertical":s,...c,...n==null?void 0:n[r],ref:f,children:e.map((h,v)=>he.jsx(fd,{styles:n,block:h},v))})),wP=j.forwardRef(({blocks:e,styles:n,type:r,horizontalAlignment:a,verticalAlignment:s,...c},f)=>he.jsx("div",{"data-horizontal":a,"data-vertical":s,...c,...n==null?void 0:n[r],ref:f,children:e.map((h,v)=>he.jsx(fd,{styles:n,block:h},v))}));function CP(e){return Object.prototype.toString.call(e)==="[object Object]"}function kT(e){return CP(e)||Array.isArray(e)}function kP(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function hE(e,n){const r=Object.keys(e),a=Object.keys(n);if(r.length!==a.length)return!1;const s=JSON.stringify(Object.keys(e.breakpoints||{})),c=JSON.stringify(Object.keys(n.breakpoints||{}));return s!==c?!1:r.every(f=>{const h=e[f],v=n[f];return typeof h=="function"?`${h}`==`${v}`:!kT(h)||!kT(v)?h===v:hE(h,v)})}function _T(e){return e.concat().sort((n,r)=>n.name>r.name?1:-1).map(n=>n.options)}function _P(e,n){if(e.length!==n.length)return!1;const r=_T(e),a=_T(n);return r.every((s,c)=>{const f=a[c];return hE(s,f)})}function mE(e){return typeof e=="number"}function TT(e){return typeof e=="string"}function vE(e){return typeof e=="boolean"}function RT(e){return Object.prototype.toString.call(e)==="[object Object]"}function fr(e){return Math.abs(e)}function gE(e){return Math.sign(e)}function ig(e,n){return fr(e-n)}function TP(e,n){if(e===0||n===0||fr(e)<=fr(n))return 0;const r=ig(fr(e),fr(n));return fr(r/e)}function Fh(e){return og(e).map(Number)}function Gl(e){return e[ag(e)]}function ag(e){return Math.max(0,e.length-1)}function og(e){return Object.keys(e)}function OT(e,n){return[e,n].reduce((r,a)=>(og(a).forEach(s=>{const c=r[s],f=a[s],h=RT(c)&&RT(f);r[s]=h?OT(c,f):f}),r),{})}function DT(e,n){return typeof n.MouseEvent<"u"&&e instanceof n.MouseEvent}function RP(e,n){const r={start:a,center:s,end:c};function a(){return 0}function s(y){return c(y)/2}function c(y){return n-y}function f(){return n*Number(e)}function h(y){return mE(e)?f():r[e](y)}return{measure:h}}function OP(e,n){const r=e==="y"?"y":"x",a=e==="y"?"x":"y",s=h(),c=v();function f(S){const{width:E,height:C}=S;return r==="x"?E:C}function h(){return r==="y"?"top":n==="rtl"?"right":"left"}function v(){return r==="y"?"bottom":n==="rtl"?"left":"right"}return{scroll:r,cross:a,startEdge:s,endEdge:c,measureSize:f}}function nu(e,n){const r=fr(e-n);function a(y){return y<e}function s(y){return y>n}function c(y){return a(y)||s(y)}function f(y){return c(y)?a(y)?e:n:y}function h(y){return r?y-r*Math.ceil((y-n)/r):y}return{length:r,max:n,min:e,constrain:f,reachedAny:c,reachedMax:s,reachedMin:a,removeOffset:h}}function AT(e,n,r){const{constrain:a}=nu(0,e),s=e+1;let c=f(n);function f(C){return r?fr((s+C)%s):a(C)}function h(){return c}function v(C){return c=f(C),E}function y(C){return S().set(h()+C)}function S(){return AT(e,h(),r)}const E={get:h,set:v,add:y,clone:S};return E}function DP(e){const n=e==="rtl"?-1:1;function r(s){return s*n}return{apply:r}}function Ih(){let e=[];function n(s,c,f,h={passive:!0}){return s.addEventListener(c,f,h),e.push(()=>s.removeEventListener(c,f,h)),a}function r(){e=e.filter(s=>s())}const a={add:n,clear:r};return a}function AP(e,n,r,a,s,c,f,h,v,y,S,E,C,x,R,T,D,M,I){const{cross:N}=e,B=["INPUT","SELECT","TEXTAREA"],F={passive:!1},$=Ih(),H=Ih(),Y=nu(50,225).constrain(R.measure(20)),ne={mouse:300,touch:400},ve={mouse:500,touch:600},ee=T?43:25;let oe=!1,J=0,pe=0,ke=!1,xe=!1,Ie=!1,se=!1;function Te(Le,me){if(!me)return;function ze(ht){(vE(me)||me(Le,ht))&&We(ht)}const be=r;$.add(be,"dragstart",ht=>ht.preventDefault(),F).add(be,"touchmove",()=>{},F).add(be,"touchend",()=>{}).add(be,"touchstart",ze).add(be,"mousedown",ze).add(be,"touchcancel",Oe).add(be,"contextmenu",Oe).add(be,"click",$e,!0)}function L(){$.clear(),H.clear()}function te(){const Le=se?a:r;H.add(Le,"touchmove",Re,F).add(Le,"touchend",Oe).add(Le,"mousemove",Re,F).add(Le,"mouseup",Oe)}function ye(Le){const me=Le.nodeName||"";return B.includes(me)}function U(){return(T?ve:ne)[se?"mouse":"touch"]}function _e(Le,me){const ze=C.add(gE(Le)*-1),be=E.byDistance(Le,!T).distance;return T||fr(Le)<Y?be:M&&me?be*.5:E.byIndex(ze.get(),0).distance}function We(Le){const me=DT(Le,s);se=me,!(me&&Le.button!==0)&&(ye(Le.target)||(Ie=T&&me&&!Le.buttons&&oe,oe=ig(c.get(),h.get())>=2,ke=!0,f.pointerDown(Le),S.useFriction(0).useDuration(0),c.set(h),te(),J=f.readPoint(Le),pe=f.readPoint(Le,N),x.emit("pointerDown")))}function Re(Le){const me=f.readPoint(Le),ze=f.readPoint(Le,N),be=ig(me,J),ht=ig(ze,pe);if(!xe&&!se&&(!Le.cancelable||(xe=be>ht,!xe)))return Oe(Le);const He=f.pointerMove(Le);be>D&&(Ie=!0),S.useFriction(.3).useDuration(1),v.start(),c.add(n.apply(He)),Le.preventDefault()}function Oe(Le){const ze=E.byDistance(0,!1).index!==C.get(),be=f.pointerUp(Le)*U(),ht=_e(n.apply(be),ze),He=TP(be,ht),Rt=ee-10*He,Gt=I+He/50;xe=!1,ke=!1,H.clear(),S.useDuration(Rt).useFriction(Gt),y.distance(ht,!T),se=!1,x.emit("pointerUp")}function $e(Le){Ie&&(Le.stopPropagation(),Le.preventDefault())}function Ge(){return ke}return{init:Te,pointerDown:Ge,destroy:L}}function MP(e,n){let a,s;function c(E){return E.timeStamp}function f(E,C){const R=`client${(C||e.scroll)==="x"?"X":"Y"}`;return(DT(E,n)?E:E.touches[0])[R]}function h(E){return a=E,s=E,f(E)}function v(E){const C=f(E)-f(s),x=c(E)-c(a)>170;return s=E,x&&(a=E),C}function y(E){if(!a||!s)return 0;const C=f(s)-f(a),x=c(E)-c(a),R=c(E)-c(s)>170,T=C/x;return x&&!R&&fr(T)>.1?T:0}return{pointerDown:h,pointerMove:v,pointerUp:y,readPoint:f}}function LP(e){function n(a){return e*(a/100)}return{measure:n}}function PP(e,n,r,a,s){let c,f,h=[],v=!1;function y(x){return s.measureSize(x.getBoundingClientRect())}function S(x,R){if(!R)return;f=y(e),h=a.map(y);function T(M){for(const I of M){const N=I.target===e,B=a.indexOf(I.target),F=N?f:h[B],$=y(N?e:a[B]);if(F!==$){r.requestAnimationFrame(()=>{x.reInit(),n.emit("resize")});break}}}c=new ResizeObserver(M=>{v||(vE(R)||R(x,M))&&T(M)}),[e].concat(a).forEach(M=>c.observe(M))}function E(){c&&c.disconnect(),v=!0}return{init:S,destroy:E}}function NP(e,n,r,a){let s=!0,c=0,f=0,h=r,v=a,y=e.get(),S=0;function E(){const F=n.get()-e.get(),$=!h;let H=0;return $?(c=0,e.set(n),H=F):(c+=F/h,c*=v,y+=c,e.add(c),H=y-S),f=gE(H),S=y,s=fr(F)<.001,B}function C(){return s}function x(){return h}function R(){return f}function T(){return c}function D(){return I(r)}function M(){return N(a)}function I(F){return h=F,B}function N(F){return v=F,B}const B={direction:R,duration:x,velocity:T,seek:E,settled:C,useBaseFriction:M,useBaseDuration:D,useFriction:N,useDuration:I};return B}function FP(e,n,r,a,s){const c=s.measure(10),f=s.measure(50),h=nu(.1,.99);let v=!1;function y(){return!(v||!e.reachedAny(r.get())||!e.reachedAny(n.get()))}function S(x){if(!y())return;const R=e.reachedMin(n.get())?"min":"max",T=fr(e[R]-n.get()),D=r.get()-n.get(),M=h.constrain(T/f);r.subtract(D*M),!x&&fr(D)<c&&(r.set(e.constrain(r.get())),a.useDuration(25).useBaseFriction())}function E(x){v=!x}return{constrain:S,toggleActive:E}}function IP(e,n,r,a){const s=nu(-n+e,r[0]),c=v(),f=y();function h(){const E=c[0],C=Gl(c),x=c.lastIndexOf(E),R=c.indexOf(C)+1;return nu(x,R)}function v(){return r.map(s.constrain).map(E=>parseFloat(E.toFixed(3)))}function y(){if(n<=e)return[s.max];if(a==="keepSnaps")return c;const{min:E,max:C}=h();return c.slice(E,C)}return{snapsContained:f}}function zP(e,n,r){const a=n[0],s=r?a-e:Gl(n);return{limit:nu(s,a)}}function jP(e,n,r,a){const c=n.min+.1,f=n.max+.1,{reachedMin:h,reachedMax:v}=nu(c,f);function y(C){return C===1?v(r.get()):C===-1?h(r.get()):!1}function S(C){if(!y(C))return;const x=e*(C*-1);a.forEach(R=>R.add(x))}return{loop:S}}function $P(e){const{max:n,length:r}=e;function a(c){return(c-n)/-r}return{get:a}}function UP(e,n,r,a,s,c,f){const{startEdge:h,endEdge:v}=e,{groupSlides:y}=c,S=x().map(n.measure),E=R(),C=T();function x(){return y(a).map(M=>Gl(M)[v]-M[0][h]).map(fr)}function R(){return a.map(M=>r[h]-M[h]).map(M=>-fr(M))}function T(){const I=Gl(E)-Gl(s);return y(E).map(N=>N[0]).map((N,B,F)=>{const $=!B,H=B===ag(F);return f&&$?0:f&&H?I:N+S[B]})}return{snaps:E,snapsAligned:C}}function BP(e,n,r,a,s){const{reachedAny:c,removeOffset:f,constrain:h}=a;function v(R){return R.concat().sort((T,D)=>fr(T)-fr(D))[0]}function y(R){const T=e?f(R):h(R),D=n.map(I=>I-T).map(I=>S(I,0)).map((I,N)=>({diff:I,index:N})).sort((I,N)=>fr(I.diff)-fr(N.diff)),{index:M}=D[0];return{index:M,distance:T}}function S(R,T){const D=[R,R+r,R-r];if(!e)return D[0];if(!T)return v(D);const M=D.filter(I=>gE(I)===T);return v(M)}function E(R,T){const D=n[R]-s.get(),M=S(D,T);return{index:R,distance:M}}function C(R,T){const D=s.get()+R,{index:M,distance:I}=y(D),N=!e&&c(D);if(!T||N)return{index:M,distance:R};const B=n[M]-I,F=R+S(B,0);return{index:M,distance:F}}return{byDistance:C,byIndex:E,shortcut:S}}function VP(e,n,r,a,s,c,f){function h(E){const C=E.distance,x=E.index!==n.get();c.add(C),C&&(s.duration()?e.start():(e.update(),e.render(1),e.update())),x&&(r.set(n.get()),n.set(E.index),f.emit("select"))}function v(E,C){const x=a.byDistance(E,C);h(x)}function y(E,C){const x=n.clone().set(E),R=a.byIndex(x.get(),C);h(R)}return{distance:v,index:y}}function lg(e){let n=e;function r(){return n}function a(v){n=f(v)}function s(v){n+=f(v)}function c(v){n-=f(v)}function f(v){return mE(v)?v:v.get()}return{get:r,set:a,add:s,subtract:c}}function MT(e,n,r){const a=e.scroll==="x"?f:h,s=r.style;let c=!1;function f(C){return`translate3d(${C}px,0px,0px)`}function h(C){return`translate3d(0px,${C}px,0px)`}function v(C){c||(s.transform=a(n.apply(C)))}function y(C){c=!C}function S(){c||(s.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:S,to:v,toggleActive:y}}function HP(e,n,r,a,s,c,f,h,v){const y=Fh(s),S=Fh(s).reverse(),E=T().concat(D());function C(F,$){return F.reduce((H,Y)=>H-s[Y],$)}function x(F,$){return F.reduce((H,Y)=>C(H,$)>0?H.concat([Y]):H,[])}function R(F,$){const H=$==="start",Y=H?-a:a,ne=f.findSlideBounds([Y]);return F.map(ve=>{const ee=H?0:-a,oe=H?a:0,pe=ne.filter(ke=>ke.index===ve)[0][H?"end":"start"];return{index:ve,slideLocation:lg(-1),translate:MT(e,n,v[ve]),target:()=>h.get()>pe?ee:oe}})}function T(){const F=c[0]-1,$=x(S,F);return R($,"end")}function D(){const F=r-c[0]-1,$=x(y,F);return R($,"start")}function M(){return E.every(({index:F})=>{const $=y.filter(H=>H!==F);return C($,r)<=.1})}function I(){E.forEach(F=>{const{target:$,translate:H,slideLocation:Y}=F,ne=$();ne!==Y.get()&&(H.to(ne),Y.set(ne))})}function N(){E.forEach(F=>F.translate.clear())}return{canLoop:M,clear:N,loop:I,loopPoints:E}}function qP(e,n){let r,a=!1;function s(h,v){if(!v)return;function y(S){for(const E of S)if(E.type==="childList"){h.reInit(),n.emit("slidesChanged");break}}r=new MutationObserver(S=>{a||(vE(v)||v(h,S))&&y(S)}),r.observe(e,{childList:!0})}function c(){r&&r.disconnect(),a=!0}return{init:s,destroy:c}}function WP(e,n,r,a,s,c,f){const{removeOffset:h,constrain:v}=s,y=.5,S=c?[0,n,-n]:[0],E=x(S,f);function C(D){const M=D||0;return r.map(I=>nu(y,I-y).constrain(I*M))}function x(D,M){const I=D||S,N=C(M);return I.reduce((B,F)=>{const $=a.map((H,Y)=>({start:H-r[Y]+N[Y]+F,end:H+e-N[Y]+F,index:Y}));return B.concat($)},[])}function R(D,M){const I=c?h(D):v(D);return(M||E).reduce((B,F)=>{const{index:$,start:H,end:Y}=F,ne=B.includes($),ve=H<I&&Y>I;return!ne&&ve?B.concat([$]):B},[])}return{check:R,findSlideBounds:x}}function YP(e,n,r,a,s,c){const{measureSize:f,startEdge:h,endEdge:v}=e,y=r[0]&&s,S=R(),E=T(),C=r.map(f),x=D();function R(){if(!y)return 0;const I=r[0];return fr(n[h]-I[h])}function T(){if(!y)return 0;const I=c.getComputedStyle(Gl(a));return parseFloat(I.getPropertyValue(`margin-${v}`))}function D(){return r.map((I,N,B)=>{const F=!N,$=N===ag(B);return F?C[N]+S:$?C[N]+E:B[N+1][h]-I[h]}).map(fr)}return{slideSizes:C,slideSizesWithGaps:x}}function ZP(e,n,r){const a=mE(r);function s(v,y){return Fh(v).filter(S=>S%y===0).map(S=>v.slice(S,S+y))}function c(v){return Fh(v).reduce((y,S)=>{const C=n.slice(Gl(y),S+1).reduce((x,R)=>x+R,0);return!S||C>e?y.concat(S):y},[]).map((y,S,E)=>v.slice(y,E[S+1]))}function f(v){return a?s(v,r):c(v)}return{groupSlides:f}}function KP(e,n,r,a,s,c,f,h){const{align:v,axis:y,direction:S,startIndex:E,inViewThreshold:C,loop:x,duration:R,dragFree:T,dragThreshold:D,slidesToScroll:M,skipSnaps:I,containScroll:N}=c,B=n.getBoundingClientRect(),F=r.map(Gt=>Gt.getBoundingClientRect()),$=DP(S),H=OP(y,S),Y=H.measureSize(B),ne=LP(Y),ve=RP(v,Y),ee=!x&&!!N,oe=x||!!N,{slideSizes:J,slideSizesWithGaps:pe}=YP(H,B,F,r,oe,s),ke=ZP(Y,pe,M),{snaps:xe,snapsAligned:Ie}=UP(H,ve,B,F,pe,ke,ee),se=-Gl(xe)+Gl(pe),{snapsContained:Te}=IP(Y,se,Ie,N),L=ee?Te:Ie,{limit:te}=zP(se,L,x),ye=AT(ag(L),E,x),U=ye.clone(),_e=Fh(r),We=({dragHandler:Gt,scrollBody:Tn,scrollBounds:ar,eventHandler:or,animation:dr,options:{loop:Jn}})=>{const pr=Gt.pointerDown();Jn||ar.constrain(pr);const Yn=Tn.seek().settled();Yn&&!pr&&(dr.stop(),or.emit("settle")),Yn||or.emit("scroll")},Re=({scrollBody:Gt,translate:Tn,location:ar,offsetLocation:or,scrollLooper:dr,slideLooper:Jn,options:{loop:pr}},Yn)=>{const Ln=Gt.velocity();or.set(ar.get()-Ln+Ln*Yn),pr&&(dr.loop(Gt.direction()),Jn.loop()),Tn.to(or.get())},Oe={start:()=>h.start(Rt),stop:()=>h.stop(Rt),update:()=>We(Rt),render:Gt=>Re(Rt,Gt)},$e=.68,Ge=L[ye.get()],Ue=lg(Ge),Le=lg(Ge),me=lg(Ge),ze=NP(Ue,me,R,$e),be=BP(x,L,se,te,me),ht=VP(Oe,ye,U,be,ze,me,f),He=WP(Y,se,J,xe,te,x,C),Rt={ownerDocument:a,ownerWindow:s,eventHandler:f,containerRect:B,slideRects:F,animation:Oe,axis:H,direction:$,dragHandler:AP(H,$,e,a,s,me,MP(H,s),Ue,Oe,ht,ze,be,ye,f,ne,T,D,I,$e),eventStore:Ih(),percentOfView:ne,index:ye,indexPrevious:U,limit:te,location:Ue,offsetLocation:Le,options:c,resizeHandler:PP(n,f,s,r,H),scrollBody:ze,scrollBounds:FP(te,Ue,me,ze,ne),scrollLooper:jP(se,te,Le,[Ue,Le,me]),scrollProgress:$P(te),scrollSnaps:L,scrollTarget:be,scrollTo:ht,slideLooper:HP(H,$,Y,se,pe,L,He,Le,r),slidesHandler:qP(n,f),slidesInView:He,slideIndexes:_e,slidesToScroll:ke,target:me,translate:MT(H,$,n)};return Rt}function GP(e){const n=16.666666666666668;let r=[],a=null,s=0,c=0;function f(E){a||(a=E);const C=E-a;for(a=E,s+=C;s>=n;)r.forEach(({animation:R})=>R.update()),s-=n;const x=fr(s/n);r.forEach(({animation:R})=>R.render(x)),c&&e.requestAnimationFrame(f)}function h(E){r.includes(E)||r.push(E),!c&&(c=e.requestAnimationFrame(f))}function v(E){r=r.filter(C=>C!==E),!r.length&&(e.cancelAnimationFrame(c),a=null,s=0,c=0)}function y(){a=null,s=0}return{start:h,stop:v,reset:y,window:e}}function QP(){const e={};let n;function r(v){n=v}function a(v){return e[v]||[]}function s(v){return a(v).forEach(y=>y(n,v)),h}function c(v,y){return e[v]=a(v).concat([y]),h}function f(v,y){return e[v]=a(v).filter(S=>S!==y),h}const h={init:r,emit:s,off:f,on:c};return h}const XP={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,breakpoints:{},dragFree:!1,dragThreshold:10,inViewThreshold:0,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function JP(e){function n(c,f){return OT(c,f||{})}function r(c){const f=c.breakpoints||{},h=og(f).filter(v=>e.matchMedia(v).matches).map(v=>f[v]).reduce((v,y)=>n(v,y),{});return n(c,h)}function a(c){return c.map(f=>og(f.breakpoints||{})).reduce((f,h)=>f.concat(h),[]).map(e.matchMedia)}return{mergeOptions:n,optionsAtMedia:r,optionsMediaQueries:a}}function e9(e){let n=[];function r(c,f){return n=c.filter(({options:h})=>e.optionsAtMedia(h).active!==!1),n.forEach(h=>h.init(f,e)),c.reduce((h,v)=>Object.assign(h,{[v.name]:v}),{})}function a(){n=n.filter(c=>c.destroy())}return{init:r,destroy:a}}function ad(e,n,r){const a=e.ownerDocument,s=a.defaultView,c=JP(s),f=e9(c),h=Ih(),v=Ih(),y=QP(),{animationRealms:S}=ad,{mergeOptions:E,optionsAtMedia:C,optionsMediaQueries:x}=c,{on:R,off:T,emit:D}=y,M=J;let I=!1,N,B=E(XP,ad.globalOptions),F=E(B),$=[],H,Y,ne;function ve(){const{container:ze,slides:be}=F;Y=(TT(ze)?e.querySelector(ze):ze)||e.children[0];const He=TT(be)?Y.querySelectorAll(be):be;ne=[].slice.call(He||Y.children)}function ee(ze,be){const ht=KP(e,Y,ne,a,s,ze,y,be);if(ze.loop&&!ht.slideLooper.canLoop()){const He=Object.assign({},ze,{loop:!1});return ee(He,be)}return ht}function oe(ze,be){if(I)return;const ht=S.find(Rt=>Rt.window===s),He=ht||GP(s);ht||S.push(He),B=E(B,ze),F=C(B),$=be||$,ve(),N=ee(F,He),x([B,...$.map(({options:Rt})=>Rt)]).forEach(Rt=>h.add(Rt,"change",J)),F.active&&(N.translate.to(N.location.get()),N.eventHandler.init(me),N.resizeHandler.init(me,F.watchResize),N.slidesHandler.init(me,F.watchSlides),v.add(a,"visibilitychange",()=>{a.hidden&&He.reset()}),N.options.loop&&N.slideLooper.loop(),Y.offsetParent&&ne.length&&N.dragHandler.init(me,F.watchDrag),H=f.init($,me))}function J(ze,be){const ht=We();pe(),oe(E({startIndex:ht},ze),be),y.emit("reInit")}function pe(){N.dragHandler.destroy(),N.animation.stop(),N.eventStore.clear(),N.translate.clear(),N.slideLooper.clear(),N.resizeHandler.destroy(),N.slidesHandler.destroy(),f.destroy(),h.clear(),v.clear()}function ke(){I||(I=!0,h.clear(),pe(),y.emit("destroy"))}function xe(ze){const be=N[ze?"target":"location"].get(),ht=F.loop?"removeOffset":"constrain";return N.slidesInView.check(N.limit[ht](be))}function Ie(ze){const be=xe(ze);return N.slideIndexes.filter(ht=>!be.includes(ht))}function se(ze,be,ht){!F.active||I||(N.scrollBody.useBaseFriction().useDuration(be?0:F.duration),N.scrollTo.index(ze,ht||0))}function Te(ze){const be=N.index.add(1).get();se(be,ze===!0,-1)}function L(ze){const be=N.index.add(-1).get();se(be,ze===!0,1)}function te(){return N.index.add(1).get()!==We()}function ye(){return N.index.add(-1).get()!==We()}function U(){return N.scrollSnaps.map(N.scrollProgress.get)}function _e(){return N.scrollProgress.get(N.location.get())}function We(){return N.index.get()}function Re(){return N.indexPrevious.get()}function Oe(){return H}function $e(){return N}function Ge(){return e}function Ue(){return Y}function Le(){return ne}const me={canScrollNext:te,canScrollPrev:ye,containerNode:Ue,internalEngine:$e,destroy:ke,off:T,on:R,emit:D,plugins:Oe,previousScrollSnap:Re,reInit:M,rootNode:Ge,scrollNext:Te,scrollPrev:L,scrollProgress:_e,scrollSnapList:U,scrollTo:se,selectedScrollSnap:We,slideNodes:Le,slidesInView:xe,slidesNotInView:Ie};return oe(n,r),setTimeout(()=>y.emit("init"),0),me}ad.animationRealms=[],ad.globalOptions=void 0;function yE(e={},n=[]){const r=j.useRef(e),a=j.useRef(n),[s,c]=j.useState(),[f,h]=j.useState(),v=j.useCallback(()=>{s&&s.reInit(r.current,a.current)},[s]);return j.useEffect(()=>{if(kP()&&f){ad.globalOptions=yE.globalOptions;const y=ad(f,r.current,a.current);return c(y),()=>y.destroy()}else c(void 0)},[f,c]),j.useEffect(()=>{hE(r.current,e)||(r.current=e,v())},[e,v]),j.useEffect(()=>{_P(a.current,n)||(a.current=n,v())},[n,v]),[h,s]}yE.globalOptions=void 0;function t9({title:e,titleId:n,...r},a){return Z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Z.createElement("title",{id:n},e):null,Z.createElement("path",{fillRule:"evenodd",d:"M7.72 12.53a.75.75 0 010-1.06l7.5-7.5a.75.75 0 111.06 1.06L9.31 12l6.97 6.97a.75.75 0 11-1.06 1.06l-7.5-7.5z",clipRule:"evenodd"}))}const n9=Z.forwardRef(t9);function r9({title:e,titleId:n,...r},a){return Z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Z.createElement("title",{id:n},e):null,Z.createElement("path",{fillRule:"evenodd",d:"M16.28 11.47a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 01-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 011.06-1.06l7.5 7.5z",clipRule:"evenodd"}))}const i9=Z.forwardRef(r9);function a9({title:e,titleId:n,...r},a){return Z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Z.createElement("title",{id:n},e):null,Z.createElement("path",{fillRule:"evenodd",d:"M5.625 1.5c-1.036 0-1.875.84-1.875 1.875v17.25c0 1.035.84 1.875 1.875 1.875h12.75c1.035 0 1.875-.84 1.875-1.875V12.75A3.75 3.75 0 0016.5 9h-1.875a1.875 1.875 0 01-1.875-1.875V5.25A3.75 3.75 0 009 1.5H5.625zM7.5 15a.75.75 0 01.75-.75h7.5a.75.75 0 010 1.5h-7.5A.75.75 0 017.5 15zm.75 2.25a.75.75 0 000 1.5H12a.75.75 0 000-1.5H8.25z",clipRule:"evenodd"}),Z.createElement("path",{d:"M12.971 1.816A5.23 5.23 0 0114.25 5.25v1.875c0 .207.168.375.375.375H16.5a5.23 5.23 0 013.434 1.279 9.768 9.768 0 00-6.963-6.963z"}))}const o9=Z.forwardRef(a9);function l9({title:e,titleId:n,...r},a){return Z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Z.createElement("title",{id:n},e):null,Z.createElement("path",{d:"M1.5 8.67v8.58a3 3 0 003 3h15a3 3 0 003-3V8.67l-8.928 5.493a3 3 0 01-3.144 0L1.5 8.67z"}),Z.createElement("path",{d:"M22.5 6.908V6.75a3 3 0 00-3-3h-15a3 3 0 00-3 3v.158l9.714 5.978a1.5 1.5 0 001.572 0L22.5 6.908z"}))}const s9=Z.forwardRef(l9);function u9({title:e,titleId:n,...r},a){return Z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Z.createElement("title",{id:n},e):null,Z.createElement("path",{d:"M21.721 12.752a9.711 9.711 0 00-.945-5.003 12.754 12.754 0 01-4.339 2.708 18.991 18.991 0 01-.214 4.772 17.165 17.165 0 005.498-2.477zM14.634 15.55a17.324 17.324 0 00.332-4.647c-.952.227-1.945.347-2.966.347-1.021 0-2.014-.12-2.966-.347a17.515 17.515 0 00.332 4.647 17.385 17.385 0 005.268 0zM9.772 17.119a18.963 18.963 0 004.456 0A17.182 17.182 0 0112 21.724a17.18 17.18 0 01-2.228-4.605zM7.777 15.23a18.87 18.87 0 01-.214-4.774 12.753 12.753 0 01-4.34-2.708 9.711 9.711 0 00-.944 5.004 17.165 17.165 0 005.498 2.477zM21.356 14.752a9.765 9.765 0 01-7.478 6.817 18.64 18.64 0 001.988-4.718 18.627 18.627 0 005.49-2.098zM2.644 14.752c1.682.971 3.53 1.688 5.49 2.099a18.64 18.64 0 001.988 4.718 9.765 9.765 0 01-7.478-6.816zM13.878 2.43a9.755 9.755 0 016.116 3.986 11.267 11.267 0 01-3.746 2.504 18.63 18.63 0 00-2.37-6.49zM12 2.276a17.152 17.152 0 012.805 7.121c-.897.23-1.837.353-2.805.353-.968 0-1.908-.122-2.805-.353A17.151 17.151 0 0112 2.276zM10.122 2.43a18.629 18.629 0 00-2.37 6.49 11.266 11.266 0 01-3.746-2.504 9.754 9.754 0 016.116-3.985z"}))}const c9=Z.forwardRef(u9);function f9({title:e,titleId:n,...r},a){return Z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Z.createElement("title",{id:n},e):null,Z.createElement("path",{fillRule:"evenodd",d:"M12 1.5a5.25 5.25 0 00-5.25 5.25v3a3 3 0 00-3 3v6.75a3 3 0 003 3h10.5a3 3 0 003-3v-6.75a3 3 0 00-3-3v-3c0-2.9-2.35-5.25-5.25-5.25zm3.75 8.25v-3a3.75 3.75 0 10-7.5 0v3h7.5z",clipRule:"evenodd"}))}const d9=Z.forwardRef(f9);function p9({title:e,titleId:n,...r},a){return Z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Z.createElement("title",{id:n},e):null,Z.createElement("path",{fillRule:"evenodd",d:"M1.5 4.5a3 3 0 013-3h1.372c.86 0 1.61.586 1.819 1.42l1.105 4.423a1.875 1.875 0 01-.694 1.955l-1.293.97c-.135.101-.164.249-.126.352a11.285 11.285 0 006.697 6.697c.103.038.25.009.352-.126l.97-1.293a1.875 1.875 0 011.955-.694l4.423 1.105c.834.209 1.42.959 1.42 1.82V19.5a3 3 0 01-3 3h-2.25C8.552 22.5 1.5 15.448 1.5 6.75V4.5z",clipRule:"evenodd"}))}const h9=Z.forwardRef(p9),m9=j.forwardRef(({type:e,styles:n,blocks:r},a)=>{const[s,c]=yE({skipSnaps:!0}),[f,h]=j.useState(!0),[v,y]=j.useState(!0),S=j.useCallback(()=>c&&c.scrollPrev(),[c]),E=j.useCallback(()=>c&&c.scrollNext(),[c]),C=n==null?void 0:n[e],x=j.useCallback(R=>{h(!R.canScrollPrev()),y(!R.canScrollNext())},[]);return j.useEffect(()=>{c&&(x(c),c.on("reInit",x),c.on("select",x))},[c,x]),he.jsxs("div",{...C==null?void 0:C.container,"data-container":"carousel",ref:s,children:[he.jsx("div",{ref:a,...C==null?void 0:C.slidesContainer,children:r.map((R,T)=>he.jsx(fd,{styles:n,block:R},T))}),he.jsx(n9,{...C==null?void 0:C.backButton,"data-disabled":f?"":void 0,onClick:S}),he.jsx(i9,{...C==null?void 0:C.nextButton,"data-disabled":v?"":void 0,onClick:E})]})}),zh=Math.min,Ja=Math.max,sg=Math.round,od=Math.floor,ru=e=>({x:e,y:e}),v9={left:"right",right:"left",bottom:"top",top:"bottom"},g9={start:"end",end:"start"};function ug(e,n){return typeof e=="function"?e(n):e}function Tc(e){return e.split("-")[0]}function jh(e){return e.split("-")[1]}function y9(e){return e==="x"?"y":"x"}function LT(e){return e==="y"?"height":"width"}function cg(e){return["top","bottom"].includes(Tc(e))?"y":"x"}function PT(e){return y9(cg(e))}function b9(e,n,r){r===void 0&&(r=!1);const a=jh(e),s=PT(e),c=LT(s);let f=s==="x"?a===(r?"end":"start")?"right":"left":a==="start"?"bottom":"top";return n.reference[c]>n.floating[c]&&(f=fg(f)),[f,fg(f)]}function S9(e){const n=fg(e);return[bE(e),n,bE(n)]}function bE(e){return e.replace(/start|end/g,n=>g9[n])}function E9(e,n,r){const a=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?n?s:a:n?a:s;case"left":case"right":return n?c:f;default:return[]}}function x9(e,n,r,a){const s=jh(e);let c=E9(Tc(e),r==="start",a);return s&&(c=c.map(f=>f+"-"+s),n&&(c=c.concat(c.map(bE)))),c}function fg(e){return e.replace(/left|right|bottom|top/g,n=>v9[n])}function w9(e){return{top:0,right:0,bottom:0,left:0,...e}}function C9(e){return typeof e!="number"?w9(e):{top:e,right:e,bottom:e,left:e}}function dg(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function iu(e){return NT(e)?(e.nodeName||"").toLowerCase():"#document"}function Ma(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function Ql(e){var n;return(n=(NT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function NT(e){return e instanceof Node||e instanceof Ma(e).Node}function br(e){return e instanceof Element||e instanceof Ma(e).Element}function Ei(e){return e instanceof HTMLElement||e instanceof Ma(e).HTMLElement}function SE(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ma(e).ShadowRoot}function $h(e){const{overflow:n,overflowX:r,overflowY:a,display:s}=La(e);return/auto|scroll|overlay|hidden|clip/.test(n+a+r)&&!["inline","contents"].includes(s)}function k9(e){return["table","td","th"].includes(iu(e))}function EE(e){const n=xE(),r=La(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!n&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!n&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(a=>(r.willChange||"").includes(a))||["paint","layout","strict","content"].some(a=>(r.contain||"").includes(a))}function _9(e){let n=Rc(e);for(;Ei(n)&&!Uh(n);){if(EE(n))return n;n=Rc(n)}return null}function xE(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Uh(e){return["html","body","#document"].includes(iu(e))}function La(e){return Ma(e).getComputedStyle(e)}function pg(e){return br(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Rc(e){if(iu(e)==="html")return e;const n=e.assignedSlot||e.parentNode||SE(e)&&e.host||Ql(e);return SE(n)?n.host:n}function FT(e){const n=Rc(e);return Uh(n)?e.ownerDocument?e.ownerDocument.body:e.body:Ei(n)&&$h(n)?n:FT(n)}function au(e,n,r){var a;n===void 0&&(n=[]),r===void 0&&(r=!0);const s=FT(e),c=s===((a=e.ownerDocument)==null?void 0:a.body),f=Ma(s);return c?n.concat(f,f.visualViewport||[],$h(s)?s:[],f.frameElement&&r?au(f.frameElement):[]):n.concat(s,au(s,[],r))}function ou(e){let n=e.activeElement;for(;((r=n)==null||(a=r.shadowRoot)==null?void 0:a.activeElement)!=null;){var r,a;n=n.shadowRoot.activeElement}return n}function aa(e,n){if(!e||!n)return!1;const r=n.getRootNode&&n.getRootNode();if(e.contains(n))return!0;if(r&&SE(r)){let a=n;for(;a;){if(e===a)return!0;a=a.parentNode||a.host}}return!1}function IT(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function T9(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(n=>{let{brand:r,version:a}=n;return r+"/"+a}).join(" "):navigator.userAgent}function zT(e){if(e.mozInputSource===0&&e.isTrusted)return!0;const n=/Android/i;return(n.test(IT())||n.test(T9()))&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function jT(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType!=="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0}function $T(){return/apple/i.test(navigator.vendor)}function R9(){return IT().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function UT(e,n){const r=["mouse","pen"];return n||r.push("",void 0),r.includes(e)}function O9(e){return"nativeEvent"in e}function D9(e){return e.matches("html,body")}function yo(e){return(e==null?void 0:e.ownerDocument)||document}function wE(e,n){if(n==null)return!1;if("composedPath"in e)return e.composedPath().includes(n);const r=e;return r.target!=null&&n.contains(r.target)}function BT(e){return"composedPath"in e?e.composedPath()[0]:e.target}const A9="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function VT(e){return Ei(e)&&e.matches(A9)}function li(e){e.preventDefault(),e.stopPropagation()}function HT(e,n,r){let{reference:a,floating:s}=e;const c=cg(n),f=PT(n),h=LT(f),v=Tc(n),y=c==="y",S=a.x+a.width/2-s.width/2,E=a.y+a.height/2-s.height/2,C=a[h]/2-s[h]/2;let x;switch(v){case"top":x={x:S,y:a.y-s.height};break;case"bottom":x={x:S,y:a.y+a.height};break;case"right":x={x:a.x+a.width,y:E};break;case"left":x={x:a.x-s.width,y:E};break;default:x={x:a.x,y:a.y}}switch(jh(n)){case"start":x[f]-=C*(r&&y?-1:1);break;case"end":x[f]+=C*(r&&y?-1:1);break}return x}const M9=async(e,n,r)=>{const{placement:a="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,h=c.filter(Boolean),v=await(f.isRTL==null?void 0:f.isRTL(n));let y=await f.getElementRects({reference:e,floating:n,strategy:s}),{x:S,y:E}=HT(y,a,v),C=a,x={},R=0;for(let T=0;T<h.length;T++){const{name:D,fn:M}=h[T],{x:I,y:N,data:B,reset:F}=await M({x:S,y:E,initialPlacement:a,placement:C,strategy:s,middlewareData:x,rects:y,platform:f,elements:{reference:e,floating:n}});if(S=I??S,E=N??E,x={...x,[D]:{...x[D],...B}},F&&R<=50){R++,typeof F=="object"&&(F.placement&&(C=F.placement),F.rects&&(y=F.rects===!0?await f.getElementRects({reference:e,floating:n,strategy:s}):F.rects),{x:S,y:E}=HT(y,C,v)),T=-1;continue}}return{x:S,y:E,placement:C,strategy:s,middlewareData:x}};async function qT(e,n){var r;n===void 0&&(n={});const{x:a,y:s,platform:c,rects:f,elements:h,strategy:v}=e,{boundary:y="clippingAncestors",rootBoundary:S="viewport",elementContext:E="floating",altBoundary:C=!1,padding:x=0}=ug(n,e),R=C9(x),D=h[C?E==="floating"?"reference":"floating":E],M=dg(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(D)))==null||r?D:D.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(h.floating)),boundary:y,rootBoundary:S,strategy:v})),I=E==="floating"?{...f.floating,x:a,y:s}:f.reference,N=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h.floating)),B=await(c.isElement==null?void 0:c.isElement(N))?await(c.getScale==null?void 0:c.getScale(N))||{x:1,y:1}:{x:1,y:1},F=dg(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({rect:I,offsetParent:N,strategy:v}):I);return{top:(M.top-F.top+R.top)/B.y,bottom:(F.bottom-M.bottom+R.bottom)/B.y,left:(M.left-F.left+R.left)/B.x,right:(F.right-M.right+R.right)/B.x}}const L9=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var r,a;const{placement:s,middlewareData:c,rects:f,initialPlacement:h,platform:v,elements:y}=n,{mainAxis:S=!0,crossAxis:E=!0,fallbackPlacements:C,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:T=!0,...D}=ug(e,n);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const M=Tc(s),I=Tc(h)===h,N=await(v.isRTL==null?void 0:v.isRTL(y.floating)),B=C||(I||!T?[fg(h)]:S9(h));!C&&R!=="none"&&B.push(...x9(h,T,R,N));const F=[h,...B],$=await qT(n,D),H=[];let Y=((a=c.flip)==null?void 0:a.overflows)||[];if(S&&H.push($[M]),E){const oe=b9(s,f,N);H.push($[oe[0]],$[oe[1]])}if(Y=[...Y,{placement:s,overflows:H}],!H.every(oe=>oe<=0)){var ne,ve;const oe=(((ne=c.flip)==null?void 0:ne.index)||0)+1,J=F[oe];if(J)return{data:{index:oe,overflows:Y},reset:{placement:J}};let pe=(ve=Y.filter(ke=>ke.overflows[0]<=0).sort((ke,xe)=>ke.overflows[1]-xe.overflows[1])[0])==null?void 0:ve.placement;if(!pe)switch(x){case"bestFit":{var ee;const ke=(ee=Y.map(xe=>[xe.placement,xe.overflows.filter(Ie=>Ie>0).reduce((Ie,se)=>Ie+se,0)]).sort((xe,Ie)=>xe[1]-Ie[1])[0])==null?void 0:ee[0];ke&&(pe=ke);break}case"initialPlacement":pe=h;break}if(s!==pe)return{reset:{placement:pe}}}return{}}}};async function P9(e,n){const{placement:r,platform:a,elements:s}=e,c=await(a.isRTL==null?void 0:a.isRTL(s.floating)),f=Tc(r),h=jh(r),v=cg(r)==="y",y=["left","top"].includes(f)?-1:1,S=c&&v?-1:1,E=ug(n,e);let{mainAxis:C,crossAxis:x,alignmentAxis:R}=typeof E=="number"?{mainAxis:E,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...E};return h&&typeof R=="number"&&(x=h==="end"?R*-1:R),v?{x:x*S,y:C*y}:{x:C*y,y:x*S}}const N9=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){const{x:r,y:a}=n,s=await P9(n,e);return{x:r+s.x,y:a+s.y,data:s}}}},F9=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){const{placement:r,rects:a,platform:s,elements:c}=n,{apply:f=()=>{},...h}=ug(e,n),v=await qT(n,h),y=Tc(r),S=jh(r),E=cg(r)==="y",{width:C,height:x}=a.floating;let R,T;y==="top"||y==="bottom"?(R=y,T=S===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(T=y,R=S==="end"?"top":"bottom");const D=x-v[R],M=C-v[T],I=!n.middlewareData.shift;let N=D,B=M;if(E){const $=C-v.left-v.right;B=S||I?zh(M,$):$}else{const $=x-v.top-v.bottom;N=S||I?zh(D,$):$}if(I&&!S){const $=Ja(v.left,0),H=Ja(v.right,0),Y=Ja(v.top,0),ne=Ja(v.bottom,0);E?B=C-2*($!==0||H!==0?$+H:Ja(v.left,v.right)):N=x-2*(Y!==0||ne!==0?Y+ne:Ja(v.top,v.bottom))}await f({...n,availableWidth:B,availableHeight:N});const F=await s.getDimensions(c.floating);return C!==F.width||x!==F.height?{reset:{rects:!0}}:{}}}};function WT(e){const n=La(e);let r=parseFloat(n.width)||0,a=parseFloat(n.height)||0;const s=Ei(e),c=s?e.offsetWidth:r,f=s?e.offsetHeight:a,h=sg(r)!==c||sg(a)!==f;return h&&(r=c,a=f),{width:r,height:a,$:h}}function CE(e){return br(e)?e:e.contextElement}function ld(e){const n=CE(e);if(!Ei(n))return ru(1);const r=n.getBoundingClientRect(),{width:a,height:s,$:c}=WT(n);let f=(c?sg(r.width):r.width)/a,h=(c?sg(r.height):r.height)/s;return(!f||!Number.isFinite(f))&&(f=1),(!h||!Number.isFinite(h))&&(h=1),{x:f,y:h}}const I9=ru(0);function YT(e){const n=Ma(e);return!xE()||!n.visualViewport?I9:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function z9(e,n,r){return n===void 0&&(n=!1),!r||n&&r!==Ma(e)?!1:n}function Oc(e,n,r,a){n===void 0&&(n=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),c=CE(e);let f=ru(1);n&&(a?br(a)&&(f=ld(a)):f=ld(e));const h=z9(c,r,a)?YT(c):ru(0);let v=(s.left+h.x)/f.x,y=(s.top+h.y)/f.y,S=s.width/f.x,E=s.height/f.y;if(c){const C=Ma(c),x=a&&br(a)?Ma(a):a;let R=C.frameElement;for(;R&&a&&x!==C;){const T=ld(R),D=R.getBoundingClientRect(),M=La(R),I=D.left+(R.clientLeft+parseFloat(M.paddingLeft))*T.x,N=D.top+(R.clientTop+parseFloat(M.paddingTop))*T.y;v*=T.x,y*=T.y,S*=T.x,E*=T.y,v+=I,y+=N,R=Ma(R).frameElement}}return dg({width:S,height:E,x:v,y})}function j9(e){let{rect:n,offsetParent:r,strategy:a}=e;const s=Ei(r),c=Ql(r);if(r===c)return n;let f={scrollLeft:0,scrollTop:0},h=ru(1);const v=ru(0);if((s||!s&&a!=="fixed")&&((iu(r)!=="body"||$h(c))&&(f=pg(r)),Ei(r))){const y=Oc(r);h=ld(r),v.x=y.x+r.clientLeft,v.y=y.y+r.clientTop}return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-f.scrollLeft*h.x+v.x,y:n.y*h.y-f.scrollTop*h.y+v.y}}function $9(e){return Array.from(e.getClientRects())}function ZT(e){return Oc(Ql(e)).left+pg(e).scrollLeft}function U9(e){const n=Ql(e),r=pg(e),a=e.ownerDocument.body,s=Ja(n.scrollWidth,n.clientWidth,a.scrollWidth,a.clientWidth),c=Ja(n.scrollHeight,n.clientHeight,a.scrollHeight,a.clientHeight);let f=-r.scrollLeft+ZT(e);const h=-r.scrollTop;return La(a).direction==="rtl"&&(f+=Ja(n.clientWidth,a.clientWidth)-s),{width:s,height:c,x:f,y:h}}function B9(e,n){const r=Ma(e),a=Ql(e),s=r.visualViewport;let c=a.clientWidth,f=a.clientHeight,h=0,v=0;if(s){c=s.width,f=s.height;const y=xE();(!y||y&&n==="fixed")&&(h=s.offsetLeft,v=s.offsetTop)}return{width:c,height:f,x:h,y:v}}function V9(e,n){const r=Oc(e,!0,n==="fixed"),a=r.top+e.clientTop,s=r.left+e.clientLeft,c=Ei(e)?ld(e):ru(1),f=e.clientWidth*c.x,h=e.clientHeight*c.y,v=s*c.x,y=a*c.y;return{width:f,height:h,x:v,y}}function KT(e,n,r){let a;if(n==="viewport")a=B9(e,r);else if(n==="document")a=U9(Ql(e));else if(br(n))a=V9(n,r);else{const s=YT(e);a={...n,x:n.x-s.x,y:n.y-s.y}}return dg(a)}function GT(e,n){const r=Rc(e);return r===n||!br(r)||Uh(r)?!1:La(r).position==="fixed"||GT(r,n)}function H9(e,n){const r=n.get(e);if(r)return r;let a=au(e,[],!1).filter(h=>br(h)&&iu(h)!=="body"),s=null;const c=La(e).position==="fixed";let f=c?Rc(e):e;for(;br(f)&&!Uh(f);){const h=La(f),v=EE(f);!v&&h.position==="fixed"&&(s=null),(c?!v&&!s:!v&&h.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||$h(f)&&!v&&GT(e,f))?a=a.filter(S=>S!==f):s=h,f=Rc(f)}return n.set(e,a),a}function q9(e){let{element:n,boundary:r,rootBoundary:a,strategy:s}=e;const f=[...r==="clippingAncestors"?H9(n,this._c):[].concat(r),a],h=f[0],v=f.reduce((y,S)=>{const E=KT(n,S,s);return y.top=Ja(E.top,y.top),y.right=zh(E.right,y.right),y.bottom=zh(E.bottom,y.bottom),y.left=Ja(E.left,y.left),y},KT(n,h,s));return{width:v.right-v.left,height:v.bottom-v.top,x:v.left,y:v.top}}function W9(e){return WT(e)}function Y9(e,n,r){const a=Ei(n),s=Ql(n),c=r==="fixed",f=Oc(e,!0,c,n);let h={scrollLeft:0,scrollTop:0};const v=ru(0);if(a||!a&&!c)if((iu(n)!=="body"||$h(s))&&(h=pg(n)),a){const y=Oc(n,!0,c,n);v.x=y.x+n.clientLeft,v.y=y.y+n.clientTop}else s&&(v.x=ZT(s));return{x:f.left+h.scrollLeft-v.x,y:f.top+h.scrollTop-v.y,width:f.width,height:f.height}}function QT(e,n){return!Ei(e)||La(e).position==="fixed"?null:n?n(e):e.offsetParent}function XT(e,n){const r=Ma(e);if(!Ei(e))return r;let a=QT(e,n);for(;a&&k9(a)&&La(a).position==="static";)a=QT(a,n);return a&&(iu(a)==="html"||iu(a)==="body"&&La(a).position==="static"&&!EE(a))?r:a||_9(e)||r}const Z9=async function(e){let{reference:n,floating:r,strategy:a}=e;const s=this.getOffsetParent||XT,c=this.getDimensions;return{reference:Y9(n,await s(r),a),floating:{x:0,y:0,...await c(r)}}};function K9(e){return La(e).direction==="rtl"}const G9={convertOffsetParentRelativeRectToViewportRelativeRect:j9,getDocumentElement:Ql,getClippingRect:q9,getOffsetParent:XT,getElementRects:Z9,getClientRects:$9,getDimensions:W9,getScale:ld,isElement:br,isRTL:K9};function Q9(e,n){let r=null,a;const s=Ql(e);function c(){clearTimeout(a),r&&r.disconnect(),r=null}function f(h,v){h===void 0&&(h=!1),v===void 0&&(v=1),c();const{left:y,top:S,width:E,height:C}=e.getBoundingClientRect();if(h||n(),!E||!C)return;const x=od(S),R=od(s.clientWidth-(y+E)),T=od(s.clientHeight-(S+C)),D=od(y),I={rootMargin:-x+"px "+-R+"px "+-T+"px "+-D+"px",threshold:Ja(0,zh(1,v))||1};let N=!0;function B(F){const $=F[0].intersectionRatio;if($!==v){if(!N)return f();$?f(!1,$):a=setTimeout(()=>{f(!1,1e-7)},100)}N=!1}try{r=new IntersectionObserver(B,{...I,root:s.ownerDocument})}catch{r=new IntersectionObserver(B,I)}r.observe(e)}return f(!0),c}function X9(e,n,r,a){a===void 0&&(a={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:v=!1}=a,y=CE(e),S=s||c?[...y?au(y):[],...au(n)]:[];S.forEach(M=>{s&&M.addEventListener("scroll",r,{passive:!0}),c&&M.addEventListener("resize",r)});const E=y&&h?Q9(y,r):null;let C=-1,x=null;f&&(x=new ResizeObserver(M=>{let[I]=M;I&&I.target===y&&x&&(x.unobserve(n),cancelAnimationFrame(C),C=requestAnimationFrame(()=>{x&&x.observe(n)})),r()}),y&&!v&&x.observe(y),x.observe(n));let R,T=v?Oc(e):null;v&&D();function D(){const M=Oc(e);T&&(M.x!==T.x||M.y!==T.y||M.width!==T.width||M.height!==T.height)&&r(),T=M,R=requestAnimationFrame(D)}return r(),()=>{S.forEach(M=>{s&&M.removeEventListener("scroll",r),c&&M.removeEventListener("resize",r)}),E&&E(),x&&x.disconnect(),x=null,v&&cancelAnimationFrame(R)}}const J9=(e,n,r)=>{const a=new Map,s={platform:G9,...r},c={...s.platform,_c:a};return M9(e,n,{...s,platform:c})};var hg=typeof document<"u"?j.useLayoutEffect:j.useEffect;function mg(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let r,a,s;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(a=r;a--!==0;)if(!mg(e[a],n[a]))return!1;return!0}if(s=Object.keys(e),r=s.length,r!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!{}.hasOwnProperty.call(n,s[a]))return!1;for(a=r;a--!==0;){const c=s[a];if(!(c==="_owner"&&e.$$typeof)&&!mg(e[c],n[c]))return!1}return!0}return e!==e&&n!==n}function JT(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function e5(e,n){const r=JT(e);return Math.round(n*r)/r}function t5(e){const n=Z.useRef(e);return hg(()=>{n.current=e}),n}function eN(e){e===void 0&&(e={});const{placement:n="bottom",strategy:r="absolute",middleware:a=[],platform:s,elements:{reference:c,floating:f}={},transform:h=!0,whileElementsMounted:v,open:y}=e,[S,E]=Z.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[C,x]=Z.useState(a);mg(C,a)||x(a);const[R,T]=Z.useState(null),[D,M]=Z.useState(null),I=Z.useCallback(xe=>{xe!=$.current&&($.current=xe,T(xe))},[T]),N=Z.useCallback(xe=>{xe!==H.current&&(H.current=xe,M(xe))},[M]),B=c||R,F=f||D,$=Z.useRef(null),H=Z.useRef(null),Y=Z.useRef(S),ne=t5(v),ve=t5(s),ee=Z.useCallback(()=>{if(!$.current||!H.current)return;const xe={placement:n,strategy:r,middleware:C};ve.current&&(xe.platform=ve.current),J9($.current,H.current,xe).then(Ie=>{const se={...Ie,isPositioned:!0};oe.current&&!mg(Y.current,se)&&(Y.current=se,P0.flushSync(()=>{E(se)}))})},[C,n,r,ve]);hg(()=>{y===!1&&Y.current.isPositioned&&(Y.current.isPositioned=!1,E(xe=>({...xe,isPositioned:!1})))},[y]);const oe=Z.useRef(!1);hg(()=>(oe.current=!0,()=>{oe.current=!1}),[]),hg(()=>{if(B&&($.current=B),F&&(H.current=F),B&&F){if(ne.current)return ne.current(B,F,ee);ee()}},[B,F,ee,ne]);const J=Z.useMemo(()=>({reference:$,floating:H,setReference:I,setFloating:N}),[I,N]),pe=Z.useMemo(()=>({reference:B,floating:F}),[B,F]),ke=Z.useMemo(()=>{const xe={position:r,left:0,top:0};if(!pe.floating)return xe;const Ie=e5(pe.floating,S.x),se=e5(pe.floating,S.y);return h?{...xe,transform:"translate("+Ie+"px, "+se+"px)",...JT(pe.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:Ie,top:se}},[r,h,pe.floating,S.x,S.y]);return Z.useMemo(()=>({...S,update:ee,refs:J,elements:pe,floatingStyles:ke}),[S,ee,J,pe,ke])}/*!
429
429
  * tabbable 6.2.0
430
430
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
431
- */var eN=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],kE=eN.join(","),n5=typeof Element>"u",Bh=n5?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,vg=!n5&&Element.prototype.getRootNode?function(e){var n;return e==null||(n=e.getRootNode)===null||n===void 0?void 0:n.call(e)}:function(e){return e==null?void 0:e.ownerDocument},gg=function e(n,r){var a;r===void 0&&(r=!0);var s=n==null||(a=n.getAttribute)===null||a===void 0?void 0:a.call(n,"inert"),c=s===""||s==="true",f=c||r&&n&&e(n.parentNode);return f},tN=function(n){var r,a=n==null||(r=n.getAttribute)===null||r===void 0?void 0:r.call(n,"contenteditable");return a===""||a==="true"},nN=function(n,r,a){if(gg(n))return[];var s=Array.prototype.slice.apply(n.querySelectorAll(kE));return r&&Bh.call(n,kE)&&s.unshift(n),s=s.filter(a),s},rN=function e(n,r,a){for(var s=[],c=Array.from(n);c.length;){var f=c.shift();if(!gg(f,!1))if(f.tagName==="SLOT"){var h=f.assignedElements(),v=h.length?h:f.children,y=e(v,!0,a);a.flatten?s.push.apply(s,y):s.push({scopeParent:f,candidates:y})}else{var S=Bh.call(f,kE);S&&a.filter(f)&&(r||!n.includes(f))&&s.push(f);var E=f.shadowRoot||typeof a.getShadowRoot=="function"&&a.getShadowRoot(f),C=!gg(E,!1)&&(!a.shadowRootFilter||a.shadowRootFilter(f));if(E&&C){var x=e(E===!0?f.children:E.children,!0,a);a.flatten?s.push.apply(s,x):s.push({scopeParent:f,candidates:x})}else c.unshift.apply(c,f.children)}}return s},r5=function(n){return!isNaN(parseInt(n.getAttribute("tabindex"),10))},i5=function(n){if(!n)throw new Error("No node provided");return n.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(n.tagName)||tN(n))&&!r5(n)?0:n.tabIndex},iN=function(n,r){var a=i5(n);return a<0&&r&&!r5(n)?0:a},aN=function(n,r){return n.tabIndex===r.tabIndex?n.documentOrder-r.documentOrder:n.tabIndex-r.tabIndex},a5=function(n){return n.tagName==="INPUT"},oN=function(n){return a5(n)&&n.type==="hidden"},lN=function(n){var r=n.tagName==="DETAILS"&&Array.prototype.slice.apply(n.children).some(function(a){return a.tagName==="SUMMARY"});return r},sN=function(n,r){for(var a=0;a<n.length;a++)if(n[a].checked&&n[a].form===r)return n[a]},uN=function(n){if(!n.name)return!0;var r=n.form||vg(n),a=function(h){return r.querySelectorAll('input[type="radio"][name="'+h+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=a(window.CSS.escape(n.name));else try{s=a(n.name)}catch(f){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",f.message),!1}var c=sN(s,n.form);return!c||c===n},cN=function(n){return a5(n)&&n.type==="radio"},fN=function(n){return cN(n)&&!uN(n)},dN=function(n){var r,a=n&&vg(n),s=(r=a)===null||r===void 0?void 0:r.host,c=!1;if(a&&a!==n){var f,h,v;for(c=!!((f=s)!==null&&f!==void 0&&(h=f.ownerDocument)!==null&&h!==void 0&&h.contains(s)||n!=null&&(v=n.ownerDocument)!==null&&v!==void 0&&v.contains(n));!c&&s;){var y,S,E;a=vg(s),s=(y=a)===null||y===void 0?void 0:y.host,c=!!((S=s)!==null&&S!==void 0&&(E=S.ownerDocument)!==null&&E!==void 0&&E.contains(s))}}return c},o5=function(n){var r=n.getBoundingClientRect(),a=r.width,s=r.height;return a===0&&s===0},pN=function(n,r){var a=r.displayCheck,s=r.getShadowRoot;if(getComputedStyle(n).visibility==="hidden")return!0;var c=Bh.call(n,"details>summary:first-of-type"),f=c?n.parentElement:n;if(Bh.call(f,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="legacy-full"){if(typeof s=="function"){for(var h=n;n;){var v=n.parentElement,y=vg(n);if(v&&!v.shadowRoot&&s(v)===!0)return o5(n);n.assignedSlot?n=n.assignedSlot:!v&&y!==n.ownerDocument?n=y.host:n=v}n=h}if(dN(n))return!n.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return o5(n);return!1},hN=function(n){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(n.tagName))for(var r=n.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var a=0;a<r.children.length;a++){var s=r.children.item(a);if(s.tagName==="LEGEND")return Bh.call(r,"fieldset[disabled] *")?!0:!s.contains(n)}return!0}r=r.parentElement}return!1},mN=function(n,r){return!(r.disabled||gg(r)||oN(r)||pN(r,n)||lN(r)||hN(r))},l5=function(n,r){return!(fN(r)||i5(r)<0||!mN(n,r))},vN=function(n){var r=parseInt(n.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},gN=function e(n){var r=[],a=[];return n.forEach(function(s,c){var f=!!s.scopeParent,h=f?s.scopeParent:s,v=iN(h,f),y=f?e(s.candidates):h;v===0?f?r.push.apply(r,y):r.push(h):a.push({documentOrder:c,tabIndex:v,item:s,isScope:f,content:y})}),a.sort(aN).reduce(function(s,c){return c.isScope?s.push.apply(s,c.content):s.push(c.content),s},[]).concat(r)},_E=function(n,r){r=r||{};var a;return r.getShadowRoot?a=rN([n],r.includeContainer,{filter:l5.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:vN}):a=nN(n,r.includeContainer,l5.bind(null,r)),gN(a)};const TE="ArrowUp",yg="ArrowDown",sd="ArrowLeft",Vh="ArrowRight";function bg(e,n,r){return Math.floor(e/n)!==r}function Hh(e,n){return n<0||n>=e.current.length}function RE(e,n){return xi(e,{disabledIndices:n})}function s5(e,n){return xi(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:n})}function xi(e,n){let{startingIndex:r=-1,decrement:a=!1,disabledIndices:s,amount:c=1}=n===void 0?{}:n;const f=e.current;let h=r;do{var v,y;h=h+(a?-c:c)}while(h>=0&&h<=f.length-1&&(s?s.includes(h):f[h]==null||(v=f[h])!=null&&v.hasAttribute("disabled")||((y=f[h])==null?void 0:y.getAttribute("aria-disabled"))==="true"));return h}function yN(e,n){let{event:r,orientation:a,loop:s,cols:c,disabledIndices:f,minIndex:h,maxIndex:v,prevIndex:y,stopEvent:S=!1}=n,E=y;if(r.key===TE){if(S&&li(r),y===-1)E=v;else if(E=xi(e,{startingIndex:E,amount:c,decrement:!0,disabledIndices:f}),s&&(y-c<h||E<0)){const C=y%c,x=v%c,R=v-(x-C);x===C?E=v:E=x>C?R:R-c}Hh(e,E)&&(E=y)}if(r.key===yg&&(S&&li(r),y===-1?E=h:(E=xi(e,{startingIndex:y,amount:c,disabledIndices:f}),s&&y+c>v&&(E=xi(e,{startingIndex:y%c-c,amount:c,disabledIndices:f}))),Hh(e,E)&&(E=y)),a==="both"){const C=od(y/c);r.key===Vh&&(S&&li(r),y%c!==c-1?(E=xi(e,{startingIndex:y,disabledIndices:f}),s&&bg(E,c,C)&&(E=xi(e,{startingIndex:y-y%c-1,disabledIndices:f}))):s&&(E=xi(e,{startingIndex:y-y%c-1,disabledIndices:f})),bg(E,c,C)&&(E=y)),r.key===sd&&(S&&li(r),y%c!==0?(E=xi(e,{startingIndex:y,disabledIndices:f,decrement:!0}),s&&bg(E,c,C)&&(E=xi(e,{startingIndex:y+(c-y%c),decrement:!0,disabledIndices:f}))):s&&(E=xi(e,{startingIndex:y+(c-y%c),decrement:!0,disabledIndices:f})),bg(E,c,C)&&(E=y));const x=od(v/c)===C;Hh(e,E)&&(s&&x?E=r.key===sd?v:xi(e,{startingIndex:y-y%c-1,disabledIndices:f}):E=y)}return E}let u5=0;function Xl(e,n){n===void 0&&(n={});const{preventScroll:r=!1,cancelPrevious:a=!0,sync:s=!1}=n;a&&cancelAnimationFrame(u5);const c=()=>e==null?void 0:e.focus({preventScroll:r});s?c():u5=requestAnimationFrame(c)}var jr=typeof document<"u"?j.useLayoutEffect:j.useEffect;function Sg(){return Sg=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Sg.apply(this,arguments)}let OE=!1,bN=0;const c5=()=>"floating-ui-"+bN++;function SN(){const[e,n]=Z.useState(()=>OE?c5():void 0);return jr(()=>{e==null&&n(c5())},[]),Z.useEffect(()=>{OE||(OE=!0)},[]),e}const DE=Z["useId".toString()]||SN;function EN(){const e=new Map;return{emit(n,r){var a;(a=e.get(n))==null||a.forEach(s=>s(r))},on(n,r){e.set(n,[...e.get(n)||[],r])},off(n,r){var a;e.set(n,((a=e.get(n))==null?void 0:a.filter(s=>s!==r))||[])}}}const xN=Z.createContext(null),wN=Z.createContext(null),f5=()=>{var e;return((e=Z.useContext(xN))==null?void 0:e.id)||null},Eg=()=>Z.useContext(wN);function qh(e){return"data-floating-ui-"+e}function lu(e){const n=j.useRef(e);return jr(()=>{n.current=e}),n}function CN(e,n){var r;let a=[],s=(r=e.find(c=>c.id===n))==null?void 0:r.parentId;for(;s;){const c=e.find(f=>f.id===s);s=c==null?void 0:c.parentId,c&&(a=a.concat(c))}return a}function ud(e,n){let r=e.filter(s=>{var c;return s.parentId===n&&((c=s.context)==null?void 0:c.open)}),a=r;for(;a.length;)a=e.filter(s=>{var c;return(c=a)==null?void 0:c.some(f=>{var h;return s.parentId===f.id&&((h=s.context)==null?void 0:h.open)})}),r=r.concat(a);return r}function kN(e,n){let r,a=-1;function s(c,f){f>a&&(r=c,a=f),ud(e,c).forEach(v=>{s(v.id,f+1)})}return s(n,0),e.find(c=>c.id===r)}let cd=new WeakMap,xg=new WeakSet,wg={},AE=0;const _N=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,d5=e=>e&&(e.host||d5(e.parentNode)),TN=(e,n)=>n.map(r=>{if(e.contains(r))return r;const a=d5(r);return e.contains(a)?a:null}).filter(r=>r!=null);function RN(e,n,r,a){const s="data-floating-ui-inert",c=a?"inert":r?"aria-hidden":null,f=TN(n,e),h=new Set,v=new Set(f),y=[];wg[s]||(wg[s]=new WeakMap);const S=wg[s];f.forEach(E),C(n),h.clear();function E(x){!x||h.has(x)||(h.add(x),x.parentNode&&E(x.parentNode))}function C(x){!x||v.has(x)||Array.prototype.forEach.call(x.children,R=>{if(h.has(R))C(R);else{const T=c?R.getAttribute(c):null,D=T!==null&&T!=="false",M=(cd.get(R)||0)+1,I=(S.get(R)||0)+1;cd.set(R,M),S.set(R,I),y.push(R),M===1&&D&&xg.add(R),I===1&&R.setAttribute(s,""),!D&&c&&R.setAttribute(c,"true")}})}return AE++,()=>{y.forEach(x=>{const R=(cd.get(x)||0)-1,T=(S.get(x)||0)-1;cd.set(x,R),S.set(x,T),R||(!xg.has(x)&&c&&x.removeAttribute(c),xg.delete(x)),T||x.removeAttribute(s)}),AE--,AE||(cd=new WeakMap,cd=new WeakMap,xg=new WeakSet,wg={})}}function p5(e,n,r){n===void 0&&(n=!1),r===void 0&&(r=!1);const a=yo(e[0]).body;return RN(e.concat(Array.from(a.querySelectorAll("[aria-live]"))),a,n,r)}const ME=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function h5(e,n){const r=_E(e,ME());n==="prev"&&r.reverse();const a=r.indexOf(ou(yo(e)));return r.slice(a+1)[0]}function m5(){return h5(document.body,"next")}function v5(){return h5(document.body,"prev")}function Wh(e,n){const r=n||e.currentTarget,a=e.relatedTarget;return!a||!aa(r,a)}function ON(e){_E(e,ME()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function DN(e){e.querySelectorAll("[data-tabindex]").forEach(r=>{const a=r.dataset.tabindex;delete r.dataset.tabindex,a?r.setAttribute("tabindex",a):r.removeAttribute("tabindex")})}const LE={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let AN;function g5(e){e.key==="Tab"&&(e.target,clearTimeout(AN))}const Cg=Z.forwardRef(function(n,r){const[a,s]=Z.useState();jr(()=>($T()&&s("button"),document.addEventListener("keydown",g5),()=>{document.removeEventListener("keydown",g5)}),[]);const c={ref:r,tabIndex:0,role:a,"aria-hidden":a?void 0:!0,[qh("focus-guard")]:"",style:LE};return Z.createElement("span",Sg({},n,c))}),y5=Z.createContext(null);function MN(e){let{id:n,root:r}=e===void 0?{}:e;const[a,s]=Z.useState(null),c=DE(),f=b5(),h=Z.useMemo(()=>({id:n,root:r,portalContext:f,uniqueId:c}),[n,r,f,c]),v=Z.useRef();return jr(()=>()=>{a==null||a.remove()},[a,h]),jr(()=>{if(v.current===h)return;v.current=h;const{id:y,root:S,portalContext:E,uniqueId:C}=h,x=y?document.getElementById(y):null,R=qh("portal");if(x){const T=document.createElement("div");T.id=C,T.setAttribute(R,""),x.appendChild(T),s(T)}else{let T=S||(E==null?void 0:E.portalNode);T&&!br(T)&&(T=T.current),T=T||document.body;let D=null;y&&(D=document.createElement("div"),D.id=y,T.appendChild(D));const M=document.createElement("div");M.id=C,M.setAttribute(R,""),T=D||T,T.appendChild(M),s(M)}},[h]),a}function LN(e){let{children:n,id:r,root:a=null,preserveTabOrder:s=!0}=e;const c=MN({id:r,root:a}),[f,h]=Z.useState(null),v=Z.useRef(null),y=Z.useRef(null),S=Z.useRef(null),E=Z.useRef(null),C=!!f&&!f.modal&&f.open&&s&&!!(a||c);return Z.useEffect(()=>{if(!c||!s||f!=null&&f.modal)return;function x(R){c&&Wh(R)&&(R.type==="focusin"?DN:ON)(c)}return c.addEventListener("focusin",x,!0),c.addEventListener("focusout",x,!0),()=>{c.removeEventListener("focusin",x,!0),c.removeEventListener("focusout",x,!0)}},[c,s,f==null?void 0:f.modal]),Z.createElement(y5.Provider,{value:Z.useMemo(()=>({preserveTabOrder:s,beforeOutsideRef:v,afterOutsideRef:y,beforeInsideRef:S,afterInsideRef:E,portalNode:c,setFocusManagerState:h}),[s,c])},C&&c&&Z.createElement(Cg,{"data-type":"outside",ref:v,onFocus:x=>{if(Wh(x,c)){var R;(R=S.current)==null||R.focus()}else{const T=v5()||(f==null?void 0:f.refs.domReference.current);T==null||T.focus()}}}),C&&c&&Z.createElement("span",{"aria-owns":c.id,style:LE}),c&&P0.createPortal(n,c),C&&c&&Z.createElement(Cg,{"data-type":"outside",ref:y,onFocus:x=>{if(Wh(x,c)){var R;(R=E.current)==null||R.focus()}else{const T=m5()||(f==null?void 0:f.refs.domReference.current);T==null||T.focus(),f!=null&&f.closeOnFocusOut&&(f==null||f.onOpenChange(!1,x.nativeEvent))}}}))}const b5=()=>Z.useContext(y5),PN=Z.forwardRef(function(n,r){return Z.createElement("button",Sg({},n,{type:"button",ref:r,tabIndex:-1,style:LE}))});function NN(e){const{context:n,children:r,disabled:a=!1,order:s=["content"],guards:c=!0,initialFocus:f=0,returnFocus:h=!0,modal:v=!0,visuallyHiddenDismiss:y=!1,closeOnFocusOut:S=!0}=e,{open:E,refs:C,nodeId:x,onOpenChange:R,events:T,dataRef:D,elements:{domReference:M,floating:I}}=n,N=_N()?c:!0,B=lu(s),F=lu(f),$=lu(h),H=Eg(),Y=b5(),ne=typeof f=="number"&&f<0,ve=Z.useRef(null),ee=Z.useRef(null),oe=Z.useRef(!1),J=Z.useRef(null),pe=Z.useRef(!1),ke=Y!=null,xe=M&&M.getAttribute("role")==="combobox"&&VT(M)&&ne,Ie=Z.useCallback(function(te){return te===void 0&&(te=I),te?_E(te,ME()):[]},[I]),se=Z.useCallback(te=>{const ye=Ie(te);return B.current.map(U=>M&&U==="reference"?M:I&&U==="floating"?I:ye).filter(Boolean).flat()},[M,I,B,Ie]);Z.useEffect(()=>{if(a||!v)return;function te(U){if(U.key==="Tab"){aa(I,ou(yo(I)))&&Ie().length===0&&!xe&&li(U);const _e=se(),We=BT(U);B.current[0]==="reference"&&We===M&&(li(U),U.shiftKey?Xl(_e[_e.length-1]):Xl(_e[1])),B.current[1]==="floating"&&We===I&&U.shiftKey&&(li(U),Xl(_e[0]))}}const ye=yo(I);return ye.addEventListener("keydown",te),()=>{ye.removeEventListener("keydown",te)}},[a,M,I,v,B,C,xe,Ie,se]),Z.useEffect(()=>{if(a||!S)return;function te(){pe.current=!0,setTimeout(()=>{pe.current=!1})}function ye(U){const _e=U.relatedTarget;queueMicrotask(()=>{const We=!(aa(M,_e)||aa(I,_e)||aa(_e,I)||aa(Y==null?void 0:Y.portalNode,_e)||_e!=null&&_e.hasAttribute(qh("focus-guard"))||H&&(ud(H.nodesRef.current,x).find(Re=>{var Oe,$e;return aa((Oe=Re.context)==null?void 0:Oe.elements.floating,_e)||aa(($e=Re.context)==null?void 0:$e.elements.domReference,_e)})||CN(H.nodesRef.current,x).find(Re=>{var Oe,$e;return((Oe=Re.context)==null?void 0:Oe.elements.floating)===_e||(($e=Re.context)==null?void 0:$e.elements.domReference)===_e})));_e&&We&&!pe.current&&_e!==J.current&&(oe.current=!0,R(!1,U))})}if(I&&Ei(M))return M.addEventListener("focusout",ye),M.addEventListener("pointerdown",te),!v&&I.addEventListener("focusout",ye),()=>{M.removeEventListener("focusout",ye),M.removeEventListener("pointerdown",te),!v&&I.removeEventListener("focusout",ye)}},[a,M,I,v,x,H,Y,R,S]),Z.useEffect(()=>{var te;if(a)return;const ye=Array.from((Y==null||(te=Y.portalNode)==null?void 0:te.querySelectorAll("["+qh("portal")+"]"))||[]);if(I){const U=[I,...ye,ve.current,ee.current,B.current.includes("reference")||xe?M:null].filter(We=>We!=null),_e=v?p5(U,N,!N):p5(U);return()=>{_e()}}},[a,M,I,v,B,Y,xe,N]),jr(()=>{if(a||!I)return;const te=yo(I),ye=ou(te);queueMicrotask(()=>{const U=se(I),_e=F.current,We=(typeof _e=="number"?U[_e]:_e.current)||I,Re=aa(I,ye);!ne&&!Re&&E&&Xl(We,{preventScroll:We===I})})},[a,E,I,ne,se,F]),jr(()=>{if(a||!I)return;let te=!1;const ye=yo(I),U=ou(ye),_e=D.current;J.current=U;function We(Re){if(Re.type==="escapeKey"&&C.domReference.current&&(J.current=C.domReference.current),["referencePress","escapeKey"].includes(Re.type))return;const Oe=Re.data.returnFocus;typeof Oe=="object"?(oe.current=!1,te=Oe.preventScroll):oe.current=!Oe}return T.on("dismiss",We),()=>{T.off("dismiss",We);const Re=ou(ye);(aa(I,Re)||H&&ud(H.nodesRef.current,x).some($e=>{var Ge;return aa((Ge=$e.context)==null?void 0:Ge.elements.floating,Re)})||_e.openEvent&&["click","mousedown"].includes(_e.openEvent.type))&&C.domReference.current&&(J.current=C.domReference.current),$.current&&Ei(J.current)&&!oe.current&&Xl(J.current,{cancelPrevious:!1,preventScroll:te})}},[a,I,$,D,C,T,H,x]),jr(()=>{if(!(a||!Y))return Y.setFocusManagerState({modal:v,closeOnFocusOut:S,open:E,onOpenChange:R,refs:C}),()=>{Y.setFocusManagerState(null)}},[a,Y,v,E,R,C,S]),jr(()=>{if(!a&&I&&typeof MutationObserver=="function"&&!ne){const te=()=>{const U=I.getAttribute("tabindex");B.current.includes("floating")||ou(yo(I))!==C.domReference.current&&Ie().length===0?U!=="0"&&I.setAttribute("tabindex","0"):U!=="-1"&&I.setAttribute("tabindex","-1")};te();const ye=new MutationObserver(te);return ye.observe(I,{childList:!0,subtree:!0,attributes:!0}),()=>{ye.disconnect()}}},[a,I,C,B,Ie,ne]);function Te(te){return a||!y||!v?null:Z.createElement(PN,{ref:te==="start"?ve:ee,onClick:ye=>R(!1,ye.nativeEvent)},typeof y=="string"?y:"Dismiss")}const L=!a&&N&&!xe&&(ke||v);return Z.createElement(Z.Fragment,null,L&&Z.createElement(Cg,{"data-type":"inside",ref:Y==null?void 0:Y.beforeInsideRef,onFocus:te=>{if(v){const U=se();Xl(s[0]==="reference"?U[0]:U[U.length-1])}else if(Y!=null&&Y.preserveTabOrder&&Y.portalNode)if(oe.current=!1,Wh(te,Y.portalNode)){const U=m5()||M;U==null||U.focus()}else{var ye;(ye=Y.beforeOutsideRef.current)==null||ye.focus()}}}),!xe&&Te("start"),r,Te("end"),L&&Z.createElement(Cg,{"data-type":"inside",ref:Y==null?void 0:Y.afterInsideRef,onFocus:te=>{if(v)Xl(se()[0]);else if(Y!=null&&Y.preserveTabOrder&&Y.portalNode)if(S&&(oe.current=!0),Wh(te,Y.portalNode)){const U=v5()||M;U==null||U.focus()}else{var ye;(ye=Y.afterOutsideRef.current)==null||ye.focus()}}}))}function S5(e){return Ei(e.target)&&e.target.tagName==="BUTTON"}function E5(e){return VT(e)}function FN(e,n){n===void 0&&(n={});const{open:r,onOpenChange:a,dataRef:s,elements:{domReference:c}}=e,{enabled:f=!0,event:h="click",toggle:v=!0,ignoreMouse:y=!1,keyboardHandlers:S=!0}=n,E=Z.useRef(),C=Z.useRef(!1);return Z.useMemo(()=>f?{reference:{onPointerDown(x){E.current=x.pointerType},onMouseDown(x){x.button===0&&(UT(E.current,!0)&&y||h!=="click"&&(r&&v&&(!s.current.openEvent||s.current.openEvent.type==="mousedown")?a(!1,x.nativeEvent):(x.preventDefault(),a(!0,x.nativeEvent))))},onClick(x){if(h==="mousedown"&&E.current){E.current=void 0;return}UT(E.current,!0)&&y||(r&&v&&(!s.current.openEvent||s.current.openEvent.type==="click")?a(!1,x.nativeEvent):a(!0,x.nativeEvent))},onKeyDown(x){E.current=void 0,!(x.defaultPrevented||!S||S5(x))&&(x.key===" "&&!E5(c)&&(x.preventDefault(),C.current=!0),x.key==="Enter"&&a(!(r&&v),x.nativeEvent))},onKeyUp(x){x.defaultPrevented||!S||S5(x)||E5(c)||x.key===" "&&C.current&&(C.current=!1,a(!(r&&v),x.nativeEvent))}}}:{},[f,s,h,y,S,c,v,r,a])}const IN=Z["useInsertionEffect".toString()]||(e=>e());function su(e){const n=Z.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return IN(()=>{n.current=e}),Z.useCallback(function(){for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return n.current==null?void 0:n.current(...a)},[])}const zN={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},jN={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},$N=e=>{var n,r;return{escapeKeyBubbles:typeof e=="boolean"?e:(n=e==null?void 0:e.escapeKey)!=null?n:!1,outsidePressBubbles:typeof e=="boolean"?e:(r=e==null?void 0:e.outsidePress)!=null?r:!0}};function UN(e,n){n===void 0&&(n={});const{open:r,onOpenChange:a,events:s,nodeId:c,elements:{reference:f,domReference:h,floating:v},dataRef:y}=e,{enabled:S=!0,escapeKey:E=!0,outsidePress:C=!0,outsidePressEvent:x="pointerdown",referencePress:R=!1,referencePressEvent:T="pointerdown",ancestorScroll:D=!1,bubbles:M}=n,I=Eg(),N=f5()!=null,B=su(typeof C=="function"?C:()=>!1),F=typeof C=="function"?B:C,$=Z.useRef(!1),{escapeKeyBubbles:H,outsidePressBubbles:Y}=$N(M),ne=su(ee=>{if(!r||!S||!E||ee.key!=="Escape")return;const oe=I?ud(I.nodesRef.current,c):[];if(!H&&(ee.stopPropagation(),oe.length>0)){let J=!0;if(oe.forEach(pe=>{var ke;if((ke=pe.context)!=null&&ke.open&&!pe.context.dataRef.current.__escapeKeyBubbles){J=!1;return}}),!J)return}s.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),a(!1,R9(ee)?ee.nativeEvent:ee)}),ve=su(ee=>{const oe=$.current;if($.current=!1,oe||typeof F=="function"&&!F(ee))return;const J=BT(ee),pe="["+qh("inert")+"]",ke=yo(v).querySelectorAll(pe);let xe=br(J)?J:null;for(;xe&&!Uh(xe);){const Te=Rc(xe);if(Te===yo(v).body||!br(Te))break;xe=Te}if(ke.length&&br(J)&&!O9(J)&&!aa(J,v)&&Array.from(ke).every(Te=>!aa(xe,Te)))return;if(Ei(J)&&v){const Te=J.clientWidth>0&&J.scrollWidth>J.clientWidth,L=J.clientHeight>0&&J.scrollHeight>J.clientHeight;let te=L&&ee.offsetX>J.clientWidth;if(L&&La(J).direction==="rtl"&&(te=ee.offsetX<=J.offsetWidth-J.clientWidth),te||Te&&ee.offsetY>J.clientHeight)return}const Ie=I&&ud(I.nodesRef.current,c).some(Te=>{var L;return wE(ee,(L=Te.context)==null?void 0:L.elements.floating)});if(wE(ee,v)||wE(ee,h)||Ie)return;const se=I?ud(I.nodesRef.current,c):[];if(se.length>0){let Te=!0;if(se.forEach(L=>{var te;if((te=L.context)!=null&&te.open&&!L.context.dataRef.current.__outsidePressBubbles){Te=!1;return}}),!Te)return}s.emit("dismiss",{type:"outsidePress",data:{returnFocus:N?{preventScroll:!0}:zT(ee)||jT(ee)}}),a(!1,ee)});return Z.useEffect(()=>{if(!r||!S)return;y.current.__escapeKeyBubbles=H,y.current.__outsidePressBubbles=Y;function ee(pe){a(!1,pe)}const oe=yo(v);E&&oe.addEventListener("keydown",ne),F&&oe.addEventListener(x,ve);let J=[];return D&&(br(h)&&(J=au(h)),br(v)&&(J=J.concat(au(v))),!br(f)&&f&&f.contextElement&&(J=J.concat(au(f.contextElement)))),J=J.filter(pe=>{var ke;return pe!==((ke=oe.defaultView)==null?void 0:ke.visualViewport)}),J.forEach(pe=>{pe.addEventListener("scroll",ee,{passive:!0})}),()=>{E&&oe.removeEventListener("keydown",ne),F&&oe.removeEventListener(x,ve),J.forEach(pe=>{pe.removeEventListener("scroll",ee)})}},[y,v,h,f,E,F,x,r,a,D,S,H,Y,ne,ve]),Z.useEffect(()=>{$.current=!1},[F,x]),Z.useMemo(()=>S?{reference:{onKeyDown:ne,[zN[T]]:ee=>{R&&(s.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),a(!1,ee.nativeEvent))}},floating:{onKeyDown:ne,[jN[x]]:()=>{$.current=!0}}}:{},[S,s,R,x,T,a,ne])}let PE;process.env.NODE_ENV!=="production"&&(PE=new Set);function BN(e){var n;e===void 0&&(e={});const{open:r=!1,onOpenChange:a,nodeId:s}=e;if(process.env.NODE_ENV!=="production"){var c;const H="Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";if((c=e.elements)!=null&&c.reference&&!br(e.elements.reference)){var f;if(!((f=PE)!=null&&f.has(H))){var h;(h=PE)==null||h.add(H),console.error(H)}}}const[v,y]=Z.useState(null),S=((n=e.elements)==null?void 0:n.reference)||v,E=J9(e),C=Eg(),x=su((H,Y)=>{H&&(T.current.openEvent=Y),a==null||a(H,Y)}),R=Z.useRef(null),T=Z.useRef({}),D=Z.useState(()=>EN())[0],M=DE(),I=Z.useCallback(H=>{const Y=br(H)?{getBoundingClientRect:()=>H.getBoundingClientRect(),contextElement:H}:H;E.refs.setReference(Y)},[E.refs]),N=Z.useCallback(H=>{(br(H)||H===null)&&(R.current=H,y(H)),(br(E.refs.reference.current)||E.refs.reference.current===null||H!==null&&!br(H))&&E.refs.setReference(H)},[E.refs]),B=Z.useMemo(()=>({...E.refs,setReference:N,setPositionReference:I,domReference:R}),[E.refs,N,I]),F=Z.useMemo(()=>({...E.elements,domReference:S}),[E.elements,S]),$=Z.useMemo(()=>({...E,refs:B,elements:F,dataRef:T,nodeId:s,floatingId:M,events:D,open:r,onOpenChange:x}),[E,s,M,D,r,x,B,F]);return jr(()=>{const H=C==null?void 0:C.nodesRef.current.find(Y=>Y.id===s);H&&(H.context=$)}),Z.useMemo(()=>({...E,context:$,refs:B,elements:F}),[E,B,F,$])}function NE(e,n,r){const a=new Map;return{...r==="floating"&&{tabIndex:-1},...e,...n.map(s=>s?s[r]:null).concat(e).reduce((s,c)=>(c&&Object.entries(c).forEach(f=>{let[h,v]=f;if(h.indexOf("on")===0){if(a.has(h)||a.set(h,[]),typeof v=="function"){var y;(y=a.get(h))==null||y.push(v),s[h]=function(){for(var S,E=arguments.length,C=new Array(E),x=0;x<E;x++)C[x]=arguments[x];return(S=a.get(h))==null?void 0:S.map(R=>R(...C)).find(R=>R!==void 0)}}}else s[h]=v}),s),{})}}function VN(e){e===void 0&&(e=[]);const n=e,r=Z.useCallback(c=>NE(c,e,"reference"),n),a=Z.useCallback(c=>NE(c,e,"floating"),n),s=Z.useCallback(c=>NE(c,e,"item"),e.map(c=>c==null?void 0:c.item));return Z.useMemo(()=>({getReferenceProps:r,getFloatingProps:a,getItemProps:s}),[r,a,s])}let x5=!1;function kg(e,n,r){switch(e){case"vertical":return n;case"horizontal":return r;default:return n||r}}function w5(e,n){return kg(n,e===TE||e===yg,e===sd||e===Vh)}function FE(e,n,r){return kg(n,e===yg,r?e===sd:e===Vh)||e==="Enter"||e==" "||e===""}function HN(e,n,r){return kg(n,r?e===sd:e===Vh,e===yg)}function C5(e,n,r){return kg(n,r?e===Vh:e===sd,e===TE)}function qN(e,n){const{open:r,onOpenChange:a,refs:s,elements:{domReference:c,floating:f}}=e,{listRef:h,activeIndex:v,onNavigate:y=()=>{},enabled:S=!0,selectedIndex:E=null,allowEscape:C=!1,loop:x=!1,nested:R=!1,rtl:T=!1,virtual:D=!1,focusItemOnOpen:M="auto",focusItemOnHover:I=!0,openOnArrowKeyDown:N=!0,disabledIndices:B=void 0,orientation:F="vertical",cols:$=1,scrollItemIntoView:H=!0,virtualItemRef:Y}=n;process.env.NODE_ENV!=="production"&&(C&&(x||console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow","escaping."].join(" ")),D||console.warn(["Floating UI: `useListNavigation` must be virtual to allow","escaping."].join(" "))),F==="vertical"&&$>1&&console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the",'`orientation` should be either "horizontal" or "both".'].join(" ")));const ne=f5(),ve=Eg(),ee=su(y),oe=Z.useRef(M),J=Z.useRef(E??-1),pe=Z.useRef(null),ke=Z.useRef(!0),xe=Z.useRef(ee),Ie=Z.useRef(!!f),se=Z.useRef(!1),Te=Z.useRef(!1),L=lu(B),te=lu(r),ye=lu(H),[U,_e]=Z.useState(),[We,Re]=Z.useState(),Oe=su(function(Ue,Le,me){me===void 0&&(me=!1);const ze=Ue.current[Le.current];ze&&(D?(_e(ze.id),ve==null||ve.events.emit("virtualfocus",ze),Y&&(Y.current=ze)):Xl(ze,{preventScroll:!0,sync:T9()&&$T()?x5||se.current:!1}),requestAnimationFrame(()=>{const be=ye.current;be&&ze&&(me||!ke.current)&&(ze.scrollIntoView==null||ze.scrollIntoView(typeof be=="boolean"?{block:"nearest",inline:"nearest"}:be))}))});jr(()=>{document.createElement("div").focus({get preventScroll(){return x5=!0,!1}})},[]),jr(()=>{S&&(r&&f?oe.current&&E!=null&&(Te.current=!0,ee(E)):Ie.current&&(J.current=-1,xe.current(null)))},[S,r,f,E,ee]),jr(()=>{if(S&&r&&f)if(v==null){if(se.current=!1,E!=null)return;if(Ie.current&&(J.current=-1,Oe(h,J)),!Ie.current&&oe.current&&(pe.current!=null||oe.current===!0&&pe.current==null)){let Ue=0;const Le=()=>{h.current[0]==null?(Ue<2&&(Ue?requestAnimationFrame:queueMicrotask)(Le),Ue++):(J.current=pe.current==null||FE(pe.current,F,T)||R?RE(h,L.current):s5(h,L.current),pe.current=null,ee(J.current))};Le()}}else Hh(h,v)||(J.current=v,Oe(h,J,Te.current),Te.current=!1)},[S,r,f,v,E,R,h,F,T,ee,Oe,L]),jr(()=>{var Ue,Le;if(!S||f||!ve||D||!Ie.current)return;const me=ve.nodesRef.current,ze=(Ue=me.find(He=>He.id===ne))==null||(Le=Ue.context)==null?void 0:Le.elements.floating,be=ou(yo(f)),ht=me.some(He=>He.context&&aa(He.context.elements.floating,be));ze&&!ht&&ke.current&&ze.focus({preventScroll:!0})},[S,f,ve,ne,D]),jr(()=>{if(!S||!ve||!D||ne)return;function Ue(Le){Re(Le.id),Y&&(Y.current=Le)}return ve.events.on("virtualfocus",Ue),()=>{ve.events.off("virtualfocus",Ue)}},[S,ve,D,ne,Y]),jr(()=>{xe.current=ee,Ie.current=!!f}),jr(()=>{r||(pe.current=null)},[r]);const $e=v!=null,Ge=Z.useMemo(()=>{function Ue(me){if(!r)return;const ze=h.current.indexOf(me);ze!==-1&&ee(ze)}return{onFocus(me){let{currentTarget:ze}=me;Ue(ze)},onClick:me=>{let{currentTarget:ze}=me;return ze.focus({preventScroll:!0})},...I&&{onMouseMove(me){let{currentTarget:ze}=me;Ue(ze)},onPointerLeave(me){let{pointerType:ze}=me;!ke.current||ze==="touch"||(J.current=-1,Oe(h,J),ee(null),D||Xl(s.floating.current,{preventScroll:!0}))}}}},[r,s,Oe,I,h,ee,D]);return Z.useMemo(()=>{if(!S)return{};const Ue=L.current;function Le(He){if(ke.current=!1,se.current=!0,!te.current&&He.currentTarget===s.floating.current)return;if(R&&C5(He.key,F,T)){li(He),a(!1,He.nativeEvent),Ei(c)&&!D&&c.focus();return}const Rt=J.current,Gt=RE(h,Ue),Tn=s5(h,Ue);if(He.key==="Home"&&(li(He),J.current=Gt,ee(J.current)),He.key==="End"&&(li(He),J.current=Tn,ee(J.current)),!($>1&&(J.current=yN(h,{event:He,orientation:F,loop:x,cols:$,disabledIndices:Ue,minIndex:Gt,maxIndex:Tn,prevIndex:J.current,stopEvent:!0}),ee(J.current),F==="both"))&&w5(He.key,F)){if(li(He),r&&!D&&ou(He.currentTarget.ownerDocument)===He.currentTarget){J.current=FE(He.key,F,T)?Gt:Tn,ee(J.current);return}FE(He.key,F,T)?x?J.current=Rt>=Tn?C&&Rt!==h.current.length?-1:Gt:xi(h,{startingIndex:Rt,disabledIndices:Ue}):J.current=Math.min(Tn,xi(h,{startingIndex:Rt,disabledIndices:Ue})):x?J.current=Rt<=Gt?C&&Rt!==-1?h.current.length:Tn:xi(h,{startingIndex:Rt,decrement:!0,disabledIndices:Ue}):J.current=Math.max(Gt,xi(h,{startingIndex:Rt,decrement:!0,disabledIndices:Ue})),Hh(h,J.current)?ee(null):ee(J.current)}}function me(He){M==="auto"&&zT(He.nativeEvent)&&(oe.current=!0)}function ze(He){oe.current=M,M==="auto"&&jT(He.nativeEvent)&&(oe.current=!0)}const be=D&&r&&$e&&{"aria-activedescendant":We||U},ht=h.current.find(He=>(He==null?void 0:He.id)===U);return{reference:{...be,onKeyDown(He){ke.current=!1;const Rt=He.key.indexOf("Arrow")===0,Gt=HN(He.key,F,T),Tn=C5(He.key,F,T),ar=w5(He.key,F),or=(R?Gt:ar)||He.key==="Enter"||He.key.trim()==="";if(D&&r){const Yn=ve==null?void 0:ve.nodesRef.current.find(fe=>fe.parentId==null),Ln=ve&&Yn?kN(ve.nodesRef.current,Yn.id):null;if(Rt&&Ln&&Y){const fe=new KeyboardEvent("keydown",{key:He.key,bubbles:!0});if(Gt||Tn){var dr,Jn;const Ne=((dr=Ln.context)==null?void 0:dr.elements.domReference)===He.currentTarget,mt=Tn&&!Ne?(Jn=Ln.context)==null?void 0:Jn.elements.domReference:Gt?ht:null;mt&&(li(He),mt.dispatchEvent(fe),Re(void 0))}if(ar&&Ln.context&&Ln.context.open&&Ln.parentId&&He.currentTarget!==Ln.context.elements.domReference){var pr;li(He),(pr=Ln.context.elements.domReference)==null||pr.dispatchEvent(fe);return}}return Le(He)}if(!(!r&&!N&&Rt)){if(or&&(pe.current=R&&ar?null:He.key),R){Gt&&(li(He),r?(J.current=RE(h,Ue),ee(J.current)):a(!0,He.nativeEvent));return}ar&&(E!=null&&(J.current=E),li(He),!r&&N?a(!0,He.nativeEvent):Le(He),r&&ee(J.current))}},onFocus(){r&&ee(null)},onPointerDown:ze,onMouseDown:me,onClick:me},floating:{"aria-orientation":F==="both"?void 0:F,...be,onKeyDown:Le,onPointerMove(){ke.current=!0}},item:Ge}},[c,s,U,We,L,te,h,S,F,T,D,r,$e,R,E,N,C,$,x,M,ee,a,Ge,ve,Y])}function WN(e,n){n===void 0&&(n={});const{open:r,floatingId:a}=e,{enabled:s=!0,role:c="dialog"}=n,f=DE();return Z.useMemo(()=>{const h={id:a,role:c};return s?c==="tooltip"?{reference:{"aria-describedby":r?a:void 0},floating:h}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":c==="alertdialog"?"dialog":c,"aria-controls":r?a:void 0,...c==="listbox"&&{role:"combobox"},...c==="menu"&&{id:f}},floating:{...h,...c==="menu"&&{"aria-labelledby":f}}}:{}},[s,c,r,a,f])}function YN(e,n){var r;const{open:a,dataRef:s}=e,{listRef:c,activeIndex:f,onMatch:h,onTypingChange:v,enabled:y=!0,findMatch:S=null,resetMs:E=750,ignoreKeys:C=[],selectedIndex:x=null}=n,R=Z.useRef(),T=Z.useRef(""),D=Z.useRef((r=x??f)!=null?r:-1),M=Z.useRef(null),I=su(h),N=su(v),B=lu(S),F=lu(C);return jr(()=>{a&&(clearTimeout(R.current),M.current=null,T.current="")},[a]),jr(()=>{if(a&&T.current===""){var $;D.current=($=x??f)!=null?$:-1}},[a,x,f]),Z.useMemo(()=>{if(!y)return{};function $(ne){ne?s.current.typing||(s.current.typing=ne,N(ne)):s.current.typing&&(s.current.typing=ne,N(ne))}function H(ne,ve,ee){const oe=B.current?B.current(ve,ee):ve.find(J=>(J==null?void 0:J.toLocaleLowerCase().indexOf(ee.toLocaleLowerCase()))===0);return oe?ne.indexOf(oe):-1}function Y(ne){const ve=c.current;if(T.current.length>0&&T.current[0]!==" "&&(H(ve,ve,T.current)===-1?$(!1):ne.key===" "&&li(ne)),ve==null||F.current.includes(ne.key)||ne.key.length!==1||ne.ctrlKey||ne.metaKey||ne.altKey)return;a&&ne.key!==" "&&(li(ne),$(!0)),ve.every(pe=>{var ke,xe;return pe?((ke=pe[0])==null?void 0:ke.toLocaleLowerCase())!==((xe=pe[1])==null?void 0:xe.toLocaleLowerCase()):!0})&&T.current===ne.key&&(T.current="",D.current=M.current),T.current+=ne.key,clearTimeout(R.current),R.current=setTimeout(()=>{T.current="",D.current=M.current,$(!1)},E);const oe=D.current,J=H(ve,[...ve.slice((oe||0)+1),...ve.slice(0,(oe||0)+1)],T.current);J!==-1?(I(J),M.current=J):ne.key!==" "&&(T.current="",$(!1))}return{reference:{onKeyDown:Y},floating:{onKeyDown:Y,onKeyUp(ne){ne.key===" "&&$(!1)}}}},[y,a,s,c,E,F,B,I,N])}const ZN=({styles:e,type:n,options:r,label:a,reusable:s})=>{var ke,xe,Ie,se,Te,L,te,ye,U,_e,We,Re;const[c,f]=Z.useState(!1),[h,v]=Z.useState(null),[y,S]=Z.useState(null),{client:E}=cr(),C=r.reduce((Oe,$e)=>(Oe[$e.label]=$e.value,Oe),{}),x=C?Object.keys(C):[],R=Oe=>{f(y!==null&&!s?!1:Oe)},{refs:T,floatingStyles:D,context:M}=BN({placement:"bottom-start",open:c,onOpenChange:R,whileElementsMounted:Q9,middleware:[P9(5),M9({padding:10}),N9({apply({rects:Oe,elements:$e,availableHeight:Ge}){Object.assign($e.floating.style,{maxHeight:`${Ge}px`,minWidth:`${Oe.reference.width}px`})},padding:10})]}),I=Z.useRef([]),N=Z.useRef(x),B=Z.useRef(!1),F=FN(M,{event:"mousedown"}),$=UN(M),H=WN(M,{role:"listbox"}),Y=qN(M,{listRef:I,activeIndex:h,selectedIndex:y,onNavigate:v,loop:!0}),ne=YN(M,{listRef:N,activeIndex:h,selectedIndex:y,onMatch:c?v:S,onTypingChange(Oe){B.current=Oe}}),{getReferenceProps:ve,getFloatingProps:ee,getItemProps:oe}=VN([$,H,Y,ne,F]),J=Oe=>{S(Oe),E.sendMessage(C[x[Oe]]),f(!1)},pe=y!==null?x[y]:void 0;return he.jsxs(he.Fragment,{children:[he.jsxs("div",{tabIndex:0,ref:T.setReference,"aria-labelledby":"select-label","aria-autocomplete":"none","data-disabled":y!==null&&!s?"":void 0,...(xe=(ke=e==null?void 0:e[n])==null?void 0:ke.button)==null?void 0:xe.container,...ve(),children:[he.jsx("span",{...(se=(Ie=e==null?void 0:e[n])==null?void 0:Ie.button)==null?void 0:se.text,children:pe||a||"Select..."}),he.jsx(mP,{...(L=(Te=e==null?void 0:e[n])==null?void 0:Te.button)==null?void 0:L.icon})]}),c&&he.jsx(LN,{children:he.jsx(NN,{context:M,modal:!1,children:he.jsx("div",{ref:T.setFloating,className:(U=(ye=(te=e==null?void 0:e[n])==null?void 0:te.content)==null?void 0:ye.container)==null?void 0:U.className,style:{...D,...(Re=(We=(_e=e==null?void 0:e[n])==null?void 0:_e.content)==null?void 0:We.container)==null?void 0:Re.style},...ee(),children:x.map((Oe,$e)=>{var Ge,Ue;return he.jsx("div",{ref:Le=>{I.current[$e]=Le},role:"option",tabIndex:$e===h?0:-1,"aria-selected":$e===y&&$e===h,"data-active":$e===h?"":void 0,...(Ue=(Ge=e==null?void 0:e[n])==null?void 0:Ge.content)==null?void 0:Ue.item,...oe({onClick(){J($e)},onKeyDown(Le){Le.key==="Enter"&&(Le.preventDefault(),J($e)),Le.key===" "&&!B.current&&(Le.preventDefault(),J($e))}}),children:Oe},Oe)})})})})]})},KN=j.forwardRef(({type:e,title:n,styles:r,url:a,...s},c)=>{var f,h,v;return he.jsxs("a",{...s,...(f=r==null?void 0:r[e])==null?void 0:f.container,href:a,download:!0,ref:c,children:[he.jsx("p",{...(h=r==null?void 0:r[e])==null?void 0:h.title,children:n||a}),he.jsx(gP,{...(v=r==null?void 0:r[e])==null?void 0:v.icon})]})}),IE={text:P7,button:I7,bubble:j7,audio:uP,column:EP,file:KN,image:oP,location:SP,row:xP,video:sP,carousel:h9,dropdown:ZN},fd=({block:e,styles:n,...r})=>{const a=IE[e.type];return he.jsx(a,{...r,...e,styles:n})},k5=e=>{let n;const r=new Set,a=(v,y)=>{const S=typeof v=="function"?v(n):v;if(!Object.is(S,n)){const E=n;n=y??typeof S!="object"?S:Object.assign({},n,S),r.forEach(C=>C(n,E))}},s=()=>n,h={setState:a,getState:s,subscribe:v=>(r.add(v),()=>r.delete(v)),destroy:()=>{r.clear()}};return n=e(a,s,h),h},GN=e=>e?k5(e):k5;var zE={exports:{}},jE={},_g={exports:{}},$E={};/**
431
+ */var tN=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],kE=tN.join(","),n5=typeof Element>"u",Bh=n5?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,vg=!n5&&Element.prototype.getRootNode?function(e){var n;return e==null||(n=e.getRootNode)===null||n===void 0?void 0:n.call(e)}:function(e){return e==null?void 0:e.ownerDocument},gg=function e(n,r){var a;r===void 0&&(r=!0);var s=n==null||(a=n.getAttribute)===null||a===void 0?void 0:a.call(n,"inert"),c=s===""||s==="true",f=c||r&&n&&e(n.parentNode);return f},nN=function(n){var r,a=n==null||(r=n.getAttribute)===null||r===void 0?void 0:r.call(n,"contenteditable");return a===""||a==="true"},rN=function(n,r,a){if(gg(n))return[];var s=Array.prototype.slice.apply(n.querySelectorAll(kE));return r&&Bh.call(n,kE)&&s.unshift(n),s=s.filter(a),s},iN=function e(n,r,a){for(var s=[],c=Array.from(n);c.length;){var f=c.shift();if(!gg(f,!1))if(f.tagName==="SLOT"){var h=f.assignedElements(),v=h.length?h:f.children,y=e(v,!0,a);a.flatten?s.push.apply(s,y):s.push({scopeParent:f,candidates:y})}else{var S=Bh.call(f,kE);S&&a.filter(f)&&(r||!n.includes(f))&&s.push(f);var E=f.shadowRoot||typeof a.getShadowRoot=="function"&&a.getShadowRoot(f),C=!gg(E,!1)&&(!a.shadowRootFilter||a.shadowRootFilter(f));if(E&&C){var x=e(E===!0?f.children:E.children,!0,a);a.flatten?s.push.apply(s,x):s.push({scopeParent:f,candidates:x})}else c.unshift.apply(c,f.children)}}return s},r5=function(n){return!isNaN(parseInt(n.getAttribute("tabindex"),10))},i5=function(n){if(!n)throw new Error("No node provided");return n.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(n.tagName)||nN(n))&&!r5(n)?0:n.tabIndex},aN=function(n,r){var a=i5(n);return a<0&&r&&!r5(n)?0:a},oN=function(n,r){return n.tabIndex===r.tabIndex?n.documentOrder-r.documentOrder:n.tabIndex-r.tabIndex},a5=function(n){return n.tagName==="INPUT"},lN=function(n){return a5(n)&&n.type==="hidden"},sN=function(n){var r=n.tagName==="DETAILS"&&Array.prototype.slice.apply(n.children).some(function(a){return a.tagName==="SUMMARY"});return r},uN=function(n,r){for(var a=0;a<n.length;a++)if(n[a].checked&&n[a].form===r)return n[a]},cN=function(n){if(!n.name)return!0;var r=n.form||vg(n),a=function(h){return r.querySelectorAll('input[type="radio"][name="'+h+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=a(window.CSS.escape(n.name));else try{s=a(n.name)}catch(f){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",f.message),!1}var c=uN(s,n.form);return!c||c===n},fN=function(n){return a5(n)&&n.type==="radio"},dN=function(n){return fN(n)&&!cN(n)},pN=function(n){var r,a=n&&vg(n),s=(r=a)===null||r===void 0?void 0:r.host,c=!1;if(a&&a!==n){var f,h,v;for(c=!!((f=s)!==null&&f!==void 0&&(h=f.ownerDocument)!==null&&h!==void 0&&h.contains(s)||n!=null&&(v=n.ownerDocument)!==null&&v!==void 0&&v.contains(n));!c&&s;){var y,S,E;a=vg(s),s=(y=a)===null||y===void 0?void 0:y.host,c=!!((S=s)!==null&&S!==void 0&&(E=S.ownerDocument)!==null&&E!==void 0&&E.contains(s))}}return c},o5=function(n){var r=n.getBoundingClientRect(),a=r.width,s=r.height;return a===0&&s===0},hN=function(n,r){var a=r.displayCheck,s=r.getShadowRoot;if(getComputedStyle(n).visibility==="hidden")return!0;var c=Bh.call(n,"details>summary:first-of-type"),f=c?n.parentElement:n;if(Bh.call(f,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="legacy-full"){if(typeof s=="function"){for(var h=n;n;){var v=n.parentElement,y=vg(n);if(v&&!v.shadowRoot&&s(v)===!0)return o5(n);n.assignedSlot?n=n.assignedSlot:!v&&y!==n.ownerDocument?n=y.host:n=v}n=h}if(pN(n))return!n.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return o5(n);return!1},mN=function(n){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(n.tagName))for(var r=n.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var a=0;a<r.children.length;a++){var s=r.children.item(a);if(s.tagName==="LEGEND")return Bh.call(r,"fieldset[disabled] *")?!0:!s.contains(n)}return!0}r=r.parentElement}return!1},vN=function(n,r){return!(r.disabled||gg(r)||lN(r)||hN(r,n)||sN(r)||mN(r))},l5=function(n,r){return!(dN(r)||i5(r)<0||!vN(n,r))},gN=function(n){var r=parseInt(n.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},yN=function e(n){var r=[],a=[];return n.forEach(function(s,c){var f=!!s.scopeParent,h=f?s.scopeParent:s,v=aN(h,f),y=f?e(s.candidates):h;v===0?f?r.push.apply(r,y):r.push(h):a.push({documentOrder:c,tabIndex:v,item:s,isScope:f,content:y})}),a.sort(oN).reduce(function(s,c){return c.isScope?s.push.apply(s,c.content):s.push(c.content),s},[]).concat(r)},_E=function(n,r){r=r||{};var a;return r.getShadowRoot?a=iN([n],r.includeContainer,{filter:l5.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:gN}):a=rN(n,r.includeContainer,l5.bind(null,r)),yN(a)};const TE="ArrowUp",yg="ArrowDown",sd="ArrowLeft",Vh="ArrowRight";function bg(e,n,r){return Math.floor(e/n)!==r}function Hh(e,n){return n<0||n>=e.current.length}function RE(e,n){return xi(e,{disabledIndices:n})}function s5(e,n){return xi(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:n})}function xi(e,n){let{startingIndex:r=-1,decrement:a=!1,disabledIndices:s,amount:c=1}=n===void 0?{}:n;const f=e.current;let h=r;do{var v,y;h=h+(a?-c:c)}while(h>=0&&h<=f.length-1&&(s?s.includes(h):f[h]==null||(v=f[h])!=null&&v.hasAttribute("disabled")||((y=f[h])==null?void 0:y.getAttribute("aria-disabled"))==="true"));return h}function bN(e,n){let{event:r,orientation:a,loop:s,cols:c,disabledIndices:f,minIndex:h,maxIndex:v,prevIndex:y,stopEvent:S=!1}=n,E=y;if(r.key===TE){if(S&&li(r),y===-1)E=v;else if(E=xi(e,{startingIndex:E,amount:c,decrement:!0,disabledIndices:f}),s&&(y-c<h||E<0)){const C=y%c,x=v%c,R=v-(x-C);x===C?E=v:E=x>C?R:R-c}Hh(e,E)&&(E=y)}if(r.key===yg&&(S&&li(r),y===-1?E=h:(E=xi(e,{startingIndex:y,amount:c,disabledIndices:f}),s&&y+c>v&&(E=xi(e,{startingIndex:y%c-c,amount:c,disabledIndices:f}))),Hh(e,E)&&(E=y)),a==="both"){const C=od(y/c);r.key===Vh&&(S&&li(r),y%c!==c-1?(E=xi(e,{startingIndex:y,disabledIndices:f}),s&&bg(E,c,C)&&(E=xi(e,{startingIndex:y-y%c-1,disabledIndices:f}))):s&&(E=xi(e,{startingIndex:y-y%c-1,disabledIndices:f})),bg(E,c,C)&&(E=y)),r.key===sd&&(S&&li(r),y%c!==0?(E=xi(e,{startingIndex:y,disabledIndices:f,decrement:!0}),s&&bg(E,c,C)&&(E=xi(e,{startingIndex:y+(c-y%c),decrement:!0,disabledIndices:f}))):s&&(E=xi(e,{startingIndex:y+(c-y%c),decrement:!0,disabledIndices:f})),bg(E,c,C)&&(E=y));const x=od(v/c)===C;Hh(e,E)&&(s&&x?E=r.key===sd?v:xi(e,{startingIndex:y-y%c-1,disabledIndices:f}):E=y)}return E}let u5=0;function Xl(e,n){n===void 0&&(n={});const{preventScroll:r=!1,cancelPrevious:a=!0,sync:s=!1}=n;a&&cancelAnimationFrame(u5);const c=()=>e==null?void 0:e.focus({preventScroll:r});s?c():u5=requestAnimationFrame(c)}var jr=typeof document<"u"?j.useLayoutEffect:j.useEffect;function Sg(){return Sg=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Sg.apply(this,arguments)}let OE=!1,SN=0;const c5=()=>"floating-ui-"+SN++;function EN(){const[e,n]=Z.useState(()=>OE?c5():void 0);return jr(()=>{e==null&&n(c5())},[]),Z.useEffect(()=>{OE||(OE=!0)},[]),e}const DE=Z["useId".toString()]||EN;function xN(){const e=new Map;return{emit(n,r){var a;(a=e.get(n))==null||a.forEach(s=>s(r))},on(n,r){e.set(n,[...e.get(n)||[],r])},off(n,r){var a;e.set(n,((a=e.get(n))==null?void 0:a.filter(s=>s!==r))||[])}}}const wN=Z.createContext(null),CN=Z.createContext(null),f5=()=>{var e;return((e=Z.useContext(wN))==null?void 0:e.id)||null},Eg=()=>Z.useContext(CN);function qh(e){return"data-floating-ui-"+e}function lu(e){const n=j.useRef(e);return jr(()=>{n.current=e}),n}function kN(e,n){var r;let a=[],s=(r=e.find(c=>c.id===n))==null?void 0:r.parentId;for(;s;){const c=e.find(f=>f.id===s);s=c==null?void 0:c.parentId,c&&(a=a.concat(c))}return a}function ud(e,n){let r=e.filter(s=>{var c;return s.parentId===n&&((c=s.context)==null?void 0:c.open)}),a=r;for(;a.length;)a=e.filter(s=>{var c;return(c=a)==null?void 0:c.some(f=>{var h;return s.parentId===f.id&&((h=s.context)==null?void 0:h.open)})}),r=r.concat(a);return r}function _N(e,n){let r,a=-1;function s(c,f){f>a&&(r=c,a=f),ud(e,c).forEach(v=>{s(v.id,f+1)})}return s(n,0),e.find(c=>c.id===r)}let cd=new WeakMap,xg=new WeakSet,wg={},AE=0;const TN=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,d5=e=>e&&(e.host||d5(e.parentNode)),RN=(e,n)=>n.map(r=>{if(e.contains(r))return r;const a=d5(r);return e.contains(a)?a:null}).filter(r=>r!=null);function ON(e,n,r,a){const s="data-floating-ui-inert",c=a?"inert":r?"aria-hidden":null,f=RN(n,e),h=new Set,v=new Set(f),y=[];wg[s]||(wg[s]=new WeakMap);const S=wg[s];f.forEach(E),C(n),h.clear();function E(x){!x||h.has(x)||(h.add(x),x.parentNode&&E(x.parentNode))}function C(x){!x||v.has(x)||Array.prototype.forEach.call(x.children,R=>{if(h.has(R))C(R);else{const T=c?R.getAttribute(c):null,D=T!==null&&T!=="false",M=(cd.get(R)||0)+1,I=(S.get(R)||0)+1;cd.set(R,M),S.set(R,I),y.push(R),M===1&&D&&xg.add(R),I===1&&R.setAttribute(s,""),!D&&c&&R.setAttribute(c,"true")}})}return AE++,()=>{y.forEach(x=>{const R=(cd.get(x)||0)-1,T=(S.get(x)||0)-1;cd.set(x,R),S.set(x,T),R||(!xg.has(x)&&c&&x.removeAttribute(c),xg.delete(x)),T||x.removeAttribute(s)}),AE--,AE||(cd=new WeakMap,cd=new WeakMap,xg=new WeakSet,wg={})}}function p5(e,n,r){n===void 0&&(n=!1),r===void 0&&(r=!1);const a=yo(e[0]).body;return ON(e.concat(Array.from(a.querySelectorAll("[aria-live]"))),a,n,r)}const ME=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function h5(e,n){const r=_E(e,ME());n==="prev"&&r.reverse();const a=r.indexOf(ou(yo(e)));return r.slice(a+1)[0]}function m5(){return h5(document.body,"next")}function v5(){return h5(document.body,"prev")}function Wh(e,n){const r=n||e.currentTarget,a=e.relatedTarget;return!a||!aa(r,a)}function DN(e){_E(e,ME()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function AN(e){e.querySelectorAll("[data-tabindex]").forEach(r=>{const a=r.dataset.tabindex;delete r.dataset.tabindex,a?r.setAttribute("tabindex",a):r.removeAttribute("tabindex")})}const LE={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let MN;function g5(e){e.key==="Tab"&&(e.target,clearTimeout(MN))}const Cg=Z.forwardRef(function(n,r){const[a,s]=Z.useState();jr(()=>($T()&&s("button"),document.addEventListener("keydown",g5),()=>{document.removeEventListener("keydown",g5)}),[]);const c={ref:r,tabIndex:0,role:a,"aria-hidden":a?void 0:!0,[qh("focus-guard")]:"",style:LE};return Z.createElement("span",Sg({},n,c))}),y5=Z.createContext(null);function LN(e){let{id:n,root:r}=e===void 0?{}:e;const[a,s]=Z.useState(null),c=DE(),f=b5(),h=Z.useMemo(()=>({id:n,root:r,portalContext:f,uniqueId:c}),[n,r,f,c]),v=Z.useRef();return jr(()=>()=>{a==null||a.remove()},[a,h]),jr(()=>{if(v.current===h)return;v.current=h;const{id:y,root:S,portalContext:E,uniqueId:C}=h,x=y?document.getElementById(y):null,R=qh("portal");if(x){const T=document.createElement("div");T.id=C,T.setAttribute(R,""),x.appendChild(T),s(T)}else{let T=S||(E==null?void 0:E.portalNode);T&&!br(T)&&(T=T.current),T=T||document.body;let D=null;y&&(D=document.createElement("div"),D.id=y,T.appendChild(D));const M=document.createElement("div");M.id=C,M.setAttribute(R,""),T=D||T,T.appendChild(M),s(M)}},[h]),a}function PN(e){let{children:n,id:r,root:a=null,preserveTabOrder:s=!0}=e;const c=LN({id:r,root:a}),[f,h]=Z.useState(null),v=Z.useRef(null),y=Z.useRef(null),S=Z.useRef(null),E=Z.useRef(null),C=!!f&&!f.modal&&f.open&&s&&!!(a||c);return Z.useEffect(()=>{if(!c||!s||f!=null&&f.modal)return;function x(R){c&&Wh(R)&&(R.type==="focusin"?AN:DN)(c)}return c.addEventListener("focusin",x,!0),c.addEventListener("focusout",x,!0),()=>{c.removeEventListener("focusin",x,!0),c.removeEventListener("focusout",x,!0)}},[c,s,f==null?void 0:f.modal]),Z.createElement(y5.Provider,{value:Z.useMemo(()=>({preserveTabOrder:s,beforeOutsideRef:v,afterOutsideRef:y,beforeInsideRef:S,afterInsideRef:E,portalNode:c,setFocusManagerState:h}),[s,c])},C&&c&&Z.createElement(Cg,{"data-type":"outside",ref:v,onFocus:x=>{if(Wh(x,c)){var R;(R=S.current)==null||R.focus()}else{const T=v5()||(f==null?void 0:f.refs.domReference.current);T==null||T.focus()}}}),C&&c&&Z.createElement("span",{"aria-owns":c.id,style:LE}),c&&P0.createPortal(n,c),C&&c&&Z.createElement(Cg,{"data-type":"outside",ref:y,onFocus:x=>{if(Wh(x,c)){var R;(R=E.current)==null||R.focus()}else{const T=m5()||(f==null?void 0:f.refs.domReference.current);T==null||T.focus(),f!=null&&f.closeOnFocusOut&&(f==null||f.onOpenChange(!1,x.nativeEvent))}}}))}const b5=()=>Z.useContext(y5),NN=Z.forwardRef(function(n,r){return Z.createElement("button",Sg({},n,{type:"button",ref:r,tabIndex:-1,style:LE}))});function FN(e){const{context:n,children:r,disabled:a=!1,order:s=["content"],guards:c=!0,initialFocus:f=0,returnFocus:h=!0,modal:v=!0,visuallyHiddenDismiss:y=!1,closeOnFocusOut:S=!0}=e,{open:E,refs:C,nodeId:x,onOpenChange:R,events:T,dataRef:D,elements:{domReference:M,floating:I}}=n,N=TN()?c:!0,B=lu(s),F=lu(f),$=lu(h),H=Eg(),Y=b5(),ne=typeof f=="number"&&f<0,ve=Z.useRef(null),ee=Z.useRef(null),oe=Z.useRef(!1),J=Z.useRef(null),pe=Z.useRef(!1),ke=Y!=null,xe=M&&M.getAttribute("role")==="combobox"&&VT(M)&&ne,Ie=Z.useCallback(function(te){return te===void 0&&(te=I),te?_E(te,ME()):[]},[I]),se=Z.useCallback(te=>{const ye=Ie(te);return B.current.map(U=>M&&U==="reference"?M:I&&U==="floating"?I:ye).filter(Boolean).flat()},[M,I,B,Ie]);Z.useEffect(()=>{if(a||!v)return;function te(U){if(U.key==="Tab"){aa(I,ou(yo(I)))&&Ie().length===0&&!xe&&li(U);const _e=se(),We=BT(U);B.current[0]==="reference"&&We===M&&(li(U),U.shiftKey?Xl(_e[_e.length-1]):Xl(_e[1])),B.current[1]==="floating"&&We===I&&U.shiftKey&&(li(U),Xl(_e[0]))}}const ye=yo(I);return ye.addEventListener("keydown",te),()=>{ye.removeEventListener("keydown",te)}},[a,M,I,v,B,C,xe,Ie,se]),Z.useEffect(()=>{if(a||!S)return;function te(){pe.current=!0,setTimeout(()=>{pe.current=!1})}function ye(U){const _e=U.relatedTarget;queueMicrotask(()=>{const We=!(aa(M,_e)||aa(I,_e)||aa(_e,I)||aa(Y==null?void 0:Y.portalNode,_e)||_e!=null&&_e.hasAttribute(qh("focus-guard"))||H&&(ud(H.nodesRef.current,x).find(Re=>{var Oe,$e;return aa((Oe=Re.context)==null?void 0:Oe.elements.floating,_e)||aa(($e=Re.context)==null?void 0:$e.elements.domReference,_e)})||kN(H.nodesRef.current,x).find(Re=>{var Oe,$e;return((Oe=Re.context)==null?void 0:Oe.elements.floating)===_e||(($e=Re.context)==null?void 0:$e.elements.domReference)===_e})));_e&&We&&!pe.current&&_e!==J.current&&(oe.current=!0,R(!1,U))})}if(I&&Ei(M))return M.addEventListener("focusout",ye),M.addEventListener("pointerdown",te),!v&&I.addEventListener("focusout",ye),()=>{M.removeEventListener("focusout",ye),M.removeEventListener("pointerdown",te),!v&&I.removeEventListener("focusout",ye)}},[a,M,I,v,x,H,Y,R,S]),Z.useEffect(()=>{var te;if(a)return;const ye=Array.from((Y==null||(te=Y.portalNode)==null?void 0:te.querySelectorAll("["+qh("portal")+"]"))||[]);if(I){const U=[I,...ye,ve.current,ee.current,B.current.includes("reference")||xe?M:null].filter(We=>We!=null),_e=v?p5(U,N,!N):p5(U);return()=>{_e()}}},[a,M,I,v,B,Y,xe,N]),jr(()=>{if(a||!I)return;const te=yo(I),ye=ou(te);queueMicrotask(()=>{const U=se(I),_e=F.current,We=(typeof _e=="number"?U[_e]:_e.current)||I,Re=aa(I,ye);!ne&&!Re&&E&&Xl(We,{preventScroll:We===I})})},[a,E,I,ne,se,F]),jr(()=>{if(a||!I)return;let te=!1;const ye=yo(I),U=ou(ye),_e=D.current;J.current=U;function We(Re){if(Re.type==="escapeKey"&&C.domReference.current&&(J.current=C.domReference.current),["referencePress","escapeKey"].includes(Re.type))return;const Oe=Re.data.returnFocus;typeof Oe=="object"?(oe.current=!1,te=Oe.preventScroll):oe.current=!Oe}return T.on("dismiss",We),()=>{T.off("dismiss",We);const Re=ou(ye);(aa(I,Re)||H&&ud(H.nodesRef.current,x).some($e=>{var Ge;return aa((Ge=$e.context)==null?void 0:Ge.elements.floating,Re)})||_e.openEvent&&["click","mousedown"].includes(_e.openEvent.type))&&C.domReference.current&&(J.current=C.domReference.current),$.current&&Ei(J.current)&&!oe.current&&Xl(J.current,{cancelPrevious:!1,preventScroll:te})}},[a,I,$,D,C,T,H,x]),jr(()=>{if(!(a||!Y))return Y.setFocusManagerState({modal:v,closeOnFocusOut:S,open:E,onOpenChange:R,refs:C}),()=>{Y.setFocusManagerState(null)}},[a,Y,v,E,R,C,S]),jr(()=>{if(!a&&I&&typeof MutationObserver=="function"&&!ne){const te=()=>{const U=I.getAttribute("tabindex");B.current.includes("floating")||ou(yo(I))!==C.domReference.current&&Ie().length===0?U!=="0"&&I.setAttribute("tabindex","0"):U!=="-1"&&I.setAttribute("tabindex","-1")};te();const ye=new MutationObserver(te);return ye.observe(I,{childList:!0,subtree:!0,attributes:!0}),()=>{ye.disconnect()}}},[a,I,C,B,Ie,ne]);function Te(te){return a||!y||!v?null:Z.createElement(NN,{ref:te==="start"?ve:ee,onClick:ye=>R(!1,ye.nativeEvent)},typeof y=="string"?y:"Dismiss")}const L=!a&&N&&!xe&&(ke||v);return Z.createElement(Z.Fragment,null,L&&Z.createElement(Cg,{"data-type":"inside",ref:Y==null?void 0:Y.beforeInsideRef,onFocus:te=>{if(v){const U=se();Xl(s[0]==="reference"?U[0]:U[U.length-1])}else if(Y!=null&&Y.preserveTabOrder&&Y.portalNode)if(oe.current=!1,Wh(te,Y.portalNode)){const U=m5()||M;U==null||U.focus()}else{var ye;(ye=Y.beforeOutsideRef.current)==null||ye.focus()}}}),!xe&&Te("start"),r,Te("end"),L&&Z.createElement(Cg,{"data-type":"inside",ref:Y==null?void 0:Y.afterInsideRef,onFocus:te=>{if(v)Xl(se()[0]);else if(Y!=null&&Y.preserveTabOrder&&Y.portalNode)if(S&&(oe.current=!0),Wh(te,Y.portalNode)){const U=v5()||M;U==null||U.focus()}else{var ye;(ye=Y.afterOutsideRef.current)==null||ye.focus()}}}))}function S5(e){return Ei(e.target)&&e.target.tagName==="BUTTON"}function E5(e){return VT(e)}function IN(e,n){n===void 0&&(n={});const{open:r,onOpenChange:a,dataRef:s,elements:{domReference:c}}=e,{enabled:f=!0,event:h="click",toggle:v=!0,ignoreMouse:y=!1,keyboardHandlers:S=!0}=n,E=Z.useRef(),C=Z.useRef(!1);return Z.useMemo(()=>f?{reference:{onPointerDown(x){E.current=x.pointerType},onMouseDown(x){x.button===0&&(UT(E.current,!0)&&y||h!=="click"&&(r&&v&&(!s.current.openEvent||s.current.openEvent.type==="mousedown")?a(!1,x.nativeEvent):(x.preventDefault(),a(!0,x.nativeEvent))))},onClick(x){if(h==="mousedown"&&E.current){E.current=void 0;return}UT(E.current,!0)&&y||(r&&v&&(!s.current.openEvent||s.current.openEvent.type==="click")?a(!1,x.nativeEvent):a(!0,x.nativeEvent))},onKeyDown(x){E.current=void 0,!(x.defaultPrevented||!S||S5(x))&&(x.key===" "&&!E5(c)&&(x.preventDefault(),C.current=!0),x.key==="Enter"&&a(!(r&&v),x.nativeEvent))},onKeyUp(x){x.defaultPrevented||!S||S5(x)||E5(c)||x.key===" "&&C.current&&(C.current=!1,a(!(r&&v),x.nativeEvent))}}}:{},[f,s,h,y,S,c,v,r,a])}const zN=Z["useInsertionEffect".toString()]||(e=>e());function su(e){const n=Z.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return zN(()=>{n.current=e}),Z.useCallback(function(){for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return n.current==null?void 0:n.current(...a)},[])}const jN={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},$N={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},UN=e=>{var n,r;return{escapeKeyBubbles:typeof e=="boolean"?e:(n=e==null?void 0:e.escapeKey)!=null?n:!1,outsidePressBubbles:typeof e=="boolean"?e:(r=e==null?void 0:e.outsidePress)!=null?r:!0}};function BN(e,n){n===void 0&&(n={});const{open:r,onOpenChange:a,events:s,nodeId:c,elements:{reference:f,domReference:h,floating:v},dataRef:y}=e,{enabled:S=!0,escapeKey:E=!0,outsidePress:C=!0,outsidePressEvent:x="pointerdown",referencePress:R=!1,referencePressEvent:T="pointerdown",ancestorScroll:D=!1,bubbles:M}=n,I=Eg(),N=f5()!=null,B=su(typeof C=="function"?C:()=>!1),F=typeof C=="function"?B:C,$=Z.useRef(!1),{escapeKeyBubbles:H,outsidePressBubbles:Y}=UN(M),ne=su(ee=>{if(!r||!S||!E||ee.key!=="Escape")return;const oe=I?ud(I.nodesRef.current,c):[];if(!H&&(ee.stopPropagation(),oe.length>0)){let J=!0;if(oe.forEach(pe=>{var ke;if((ke=pe.context)!=null&&ke.open&&!pe.context.dataRef.current.__escapeKeyBubbles){J=!1;return}}),!J)return}s.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),a(!1,O9(ee)?ee.nativeEvent:ee)}),ve=su(ee=>{const oe=$.current;if($.current=!1,oe||typeof F=="function"&&!F(ee))return;const J=BT(ee),pe="["+qh("inert")+"]",ke=yo(v).querySelectorAll(pe);let xe=br(J)?J:null;for(;xe&&!Uh(xe);){const Te=Rc(xe);if(Te===yo(v).body||!br(Te))break;xe=Te}if(ke.length&&br(J)&&!D9(J)&&!aa(J,v)&&Array.from(ke).every(Te=>!aa(xe,Te)))return;if(Ei(J)&&v){const Te=J.clientWidth>0&&J.scrollWidth>J.clientWidth,L=J.clientHeight>0&&J.scrollHeight>J.clientHeight;let te=L&&ee.offsetX>J.clientWidth;if(L&&La(J).direction==="rtl"&&(te=ee.offsetX<=J.offsetWidth-J.clientWidth),te||Te&&ee.offsetY>J.clientHeight)return}const Ie=I&&ud(I.nodesRef.current,c).some(Te=>{var L;return wE(ee,(L=Te.context)==null?void 0:L.elements.floating)});if(wE(ee,v)||wE(ee,h)||Ie)return;const se=I?ud(I.nodesRef.current,c):[];if(se.length>0){let Te=!0;if(se.forEach(L=>{var te;if((te=L.context)!=null&&te.open&&!L.context.dataRef.current.__outsidePressBubbles){Te=!1;return}}),!Te)return}s.emit("dismiss",{type:"outsidePress",data:{returnFocus:N?{preventScroll:!0}:zT(ee)||jT(ee)}}),a(!1,ee)});return Z.useEffect(()=>{if(!r||!S)return;y.current.__escapeKeyBubbles=H,y.current.__outsidePressBubbles=Y;function ee(pe){a(!1,pe)}const oe=yo(v);E&&oe.addEventListener("keydown",ne),F&&oe.addEventListener(x,ve);let J=[];return D&&(br(h)&&(J=au(h)),br(v)&&(J=J.concat(au(v))),!br(f)&&f&&f.contextElement&&(J=J.concat(au(f.contextElement)))),J=J.filter(pe=>{var ke;return pe!==((ke=oe.defaultView)==null?void 0:ke.visualViewport)}),J.forEach(pe=>{pe.addEventListener("scroll",ee,{passive:!0})}),()=>{E&&oe.removeEventListener("keydown",ne),F&&oe.removeEventListener(x,ve),J.forEach(pe=>{pe.removeEventListener("scroll",ee)})}},[y,v,h,f,E,F,x,r,a,D,S,H,Y,ne,ve]),Z.useEffect(()=>{$.current=!1},[F,x]),Z.useMemo(()=>S?{reference:{onKeyDown:ne,[jN[T]]:ee=>{R&&(s.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),a(!1,ee.nativeEvent))}},floating:{onKeyDown:ne,[$N[x]]:()=>{$.current=!0}}}:{},[S,s,R,x,T,a,ne])}let PE;process.env.NODE_ENV!=="production"&&(PE=new Set);function VN(e){var n;e===void 0&&(e={});const{open:r=!1,onOpenChange:a,nodeId:s}=e;if(process.env.NODE_ENV!=="production"){var c;const H="Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";if((c=e.elements)!=null&&c.reference&&!br(e.elements.reference)){var f;if(!((f=PE)!=null&&f.has(H))){var h;(h=PE)==null||h.add(H),console.error(H)}}}const[v,y]=Z.useState(null),S=((n=e.elements)==null?void 0:n.reference)||v,E=eN(e),C=Eg(),x=su((H,Y)=>{H&&(T.current.openEvent=Y),a==null||a(H,Y)}),R=Z.useRef(null),T=Z.useRef({}),D=Z.useState(()=>xN())[0],M=DE(),I=Z.useCallback(H=>{const Y=br(H)?{getBoundingClientRect:()=>H.getBoundingClientRect(),contextElement:H}:H;E.refs.setReference(Y)},[E.refs]),N=Z.useCallback(H=>{(br(H)||H===null)&&(R.current=H,y(H)),(br(E.refs.reference.current)||E.refs.reference.current===null||H!==null&&!br(H))&&E.refs.setReference(H)},[E.refs]),B=Z.useMemo(()=>({...E.refs,setReference:N,setPositionReference:I,domReference:R}),[E.refs,N,I]),F=Z.useMemo(()=>({...E.elements,domReference:S}),[E.elements,S]),$=Z.useMemo(()=>({...E,refs:B,elements:F,dataRef:T,nodeId:s,floatingId:M,events:D,open:r,onOpenChange:x}),[E,s,M,D,r,x,B,F]);return jr(()=>{const H=C==null?void 0:C.nodesRef.current.find(Y=>Y.id===s);H&&(H.context=$)}),Z.useMemo(()=>({...E,context:$,refs:B,elements:F}),[E,B,F,$])}function NE(e,n,r){const a=new Map;return{...r==="floating"&&{tabIndex:-1},...e,...n.map(s=>s?s[r]:null).concat(e).reduce((s,c)=>(c&&Object.entries(c).forEach(f=>{let[h,v]=f;if(h.indexOf("on")===0){if(a.has(h)||a.set(h,[]),typeof v=="function"){var y;(y=a.get(h))==null||y.push(v),s[h]=function(){for(var S,E=arguments.length,C=new Array(E),x=0;x<E;x++)C[x]=arguments[x];return(S=a.get(h))==null?void 0:S.map(R=>R(...C)).find(R=>R!==void 0)}}}else s[h]=v}),s),{})}}function HN(e){e===void 0&&(e=[]);const n=e,r=Z.useCallback(c=>NE(c,e,"reference"),n),a=Z.useCallback(c=>NE(c,e,"floating"),n),s=Z.useCallback(c=>NE(c,e,"item"),e.map(c=>c==null?void 0:c.item));return Z.useMemo(()=>({getReferenceProps:r,getFloatingProps:a,getItemProps:s}),[r,a,s])}let x5=!1;function kg(e,n,r){switch(e){case"vertical":return n;case"horizontal":return r;default:return n||r}}function w5(e,n){return kg(n,e===TE||e===yg,e===sd||e===Vh)}function FE(e,n,r){return kg(n,e===yg,r?e===sd:e===Vh)||e==="Enter"||e==" "||e===""}function qN(e,n,r){return kg(n,r?e===sd:e===Vh,e===yg)}function C5(e,n,r){return kg(n,r?e===Vh:e===sd,e===TE)}function WN(e,n){const{open:r,onOpenChange:a,refs:s,elements:{domReference:c,floating:f}}=e,{listRef:h,activeIndex:v,onNavigate:y=()=>{},enabled:S=!0,selectedIndex:E=null,allowEscape:C=!1,loop:x=!1,nested:R=!1,rtl:T=!1,virtual:D=!1,focusItemOnOpen:M="auto",focusItemOnHover:I=!0,openOnArrowKeyDown:N=!0,disabledIndices:B=void 0,orientation:F="vertical",cols:$=1,scrollItemIntoView:H=!0,virtualItemRef:Y}=n;process.env.NODE_ENV!=="production"&&(C&&(x||console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow","escaping."].join(" ")),D||console.warn(["Floating UI: `useListNavigation` must be virtual to allow","escaping."].join(" "))),F==="vertical"&&$>1&&console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the",'`orientation` should be either "horizontal" or "both".'].join(" ")));const ne=f5(),ve=Eg(),ee=su(y),oe=Z.useRef(M),J=Z.useRef(E??-1),pe=Z.useRef(null),ke=Z.useRef(!0),xe=Z.useRef(ee),Ie=Z.useRef(!!f),se=Z.useRef(!1),Te=Z.useRef(!1),L=lu(B),te=lu(r),ye=lu(H),[U,_e]=Z.useState(),[We,Re]=Z.useState(),Oe=su(function(Ue,Le,me){me===void 0&&(me=!1);const ze=Ue.current[Le.current];ze&&(D?(_e(ze.id),ve==null||ve.events.emit("virtualfocus",ze),Y&&(Y.current=ze)):Xl(ze,{preventScroll:!0,sync:R9()&&$T()?x5||se.current:!1}),requestAnimationFrame(()=>{const be=ye.current;be&&ze&&(me||!ke.current)&&(ze.scrollIntoView==null||ze.scrollIntoView(typeof be=="boolean"?{block:"nearest",inline:"nearest"}:be))}))});jr(()=>{document.createElement("div").focus({get preventScroll(){return x5=!0,!1}})},[]),jr(()=>{S&&(r&&f?oe.current&&E!=null&&(Te.current=!0,ee(E)):Ie.current&&(J.current=-1,xe.current(null)))},[S,r,f,E,ee]),jr(()=>{if(S&&r&&f)if(v==null){if(se.current=!1,E!=null)return;if(Ie.current&&(J.current=-1,Oe(h,J)),!Ie.current&&oe.current&&(pe.current!=null||oe.current===!0&&pe.current==null)){let Ue=0;const Le=()=>{h.current[0]==null?(Ue<2&&(Ue?requestAnimationFrame:queueMicrotask)(Le),Ue++):(J.current=pe.current==null||FE(pe.current,F,T)||R?RE(h,L.current):s5(h,L.current),pe.current=null,ee(J.current))};Le()}}else Hh(h,v)||(J.current=v,Oe(h,J,Te.current),Te.current=!1)},[S,r,f,v,E,R,h,F,T,ee,Oe,L]),jr(()=>{var Ue,Le;if(!S||f||!ve||D||!Ie.current)return;const me=ve.nodesRef.current,ze=(Ue=me.find(He=>He.id===ne))==null||(Le=Ue.context)==null?void 0:Le.elements.floating,be=ou(yo(f)),ht=me.some(He=>He.context&&aa(He.context.elements.floating,be));ze&&!ht&&ke.current&&ze.focus({preventScroll:!0})},[S,f,ve,ne,D]),jr(()=>{if(!S||!ve||!D||ne)return;function Ue(Le){Re(Le.id),Y&&(Y.current=Le)}return ve.events.on("virtualfocus",Ue),()=>{ve.events.off("virtualfocus",Ue)}},[S,ve,D,ne,Y]),jr(()=>{xe.current=ee,Ie.current=!!f}),jr(()=>{r||(pe.current=null)},[r]);const $e=v!=null,Ge=Z.useMemo(()=>{function Ue(me){if(!r)return;const ze=h.current.indexOf(me);ze!==-1&&ee(ze)}return{onFocus(me){let{currentTarget:ze}=me;Ue(ze)},onClick:me=>{let{currentTarget:ze}=me;return ze.focus({preventScroll:!0})},...I&&{onMouseMove(me){let{currentTarget:ze}=me;Ue(ze)},onPointerLeave(me){let{pointerType:ze}=me;!ke.current||ze==="touch"||(J.current=-1,Oe(h,J),ee(null),D||Xl(s.floating.current,{preventScroll:!0}))}}}},[r,s,Oe,I,h,ee,D]);return Z.useMemo(()=>{if(!S)return{};const Ue=L.current;function Le(He){if(ke.current=!1,se.current=!0,!te.current&&He.currentTarget===s.floating.current)return;if(R&&C5(He.key,F,T)){li(He),a(!1,He.nativeEvent),Ei(c)&&!D&&c.focus();return}const Rt=J.current,Gt=RE(h,Ue),Tn=s5(h,Ue);if(He.key==="Home"&&(li(He),J.current=Gt,ee(J.current)),He.key==="End"&&(li(He),J.current=Tn,ee(J.current)),!($>1&&(J.current=bN(h,{event:He,orientation:F,loop:x,cols:$,disabledIndices:Ue,minIndex:Gt,maxIndex:Tn,prevIndex:J.current,stopEvent:!0}),ee(J.current),F==="both"))&&w5(He.key,F)){if(li(He),r&&!D&&ou(He.currentTarget.ownerDocument)===He.currentTarget){J.current=FE(He.key,F,T)?Gt:Tn,ee(J.current);return}FE(He.key,F,T)?x?J.current=Rt>=Tn?C&&Rt!==h.current.length?-1:Gt:xi(h,{startingIndex:Rt,disabledIndices:Ue}):J.current=Math.min(Tn,xi(h,{startingIndex:Rt,disabledIndices:Ue})):x?J.current=Rt<=Gt?C&&Rt!==-1?h.current.length:Tn:xi(h,{startingIndex:Rt,decrement:!0,disabledIndices:Ue}):J.current=Math.max(Gt,xi(h,{startingIndex:Rt,decrement:!0,disabledIndices:Ue})),Hh(h,J.current)?ee(null):ee(J.current)}}function me(He){M==="auto"&&zT(He.nativeEvent)&&(oe.current=!0)}function ze(He){oe.current=M,M==="auto"&&jT(He.nativeEvent)&&(oe.current=!0)}const be=D&&r&&$e&&{"aria-activedescendant":We||U},ht=h.current.find(He=>(He==null?void 0:He.id)===U);return{reference:{...be,onKeyDown(He){ke.current=!1;const Rt=He.key.indexOf("Arrow")===0,Gt=qN(He.key,F,T),Tn=C5(He.key,F,T),ar=w5(He.key,F),or=(R?Gt:ar)||He.key==="Enter"||He.key.trim()==="";if(D&&r){const Yn=ve==null?void 0:ve.nodesRef.current.find(fe=>fe.parentId==null),Ln=ve&&Yn?_N(ve.nodesRef.current,Yn.id):null;if(Rt&&Ln&&Y){const fe=new KeyboardEvent("keydown",{key:He.key,bubbles:!0});if(Gt||Tn){var dr,Jn;const Ne=((dr=Ln.context)==null?void 0:dr.elements.domReference)===He.currentTarget,mt=Tn&&!Ne?(Jn=Ln.context)==null?void 0:Jn.elements.domReference:Gt?ht:null;mt&&(li(He),mt.dispatchEvent(fe),Re(void 0))}if(ar&&Ln.context&&Ln.context.open&&Ln.parentId&&He.currentTarget!==Ln.context.elements.domReference){var pr;li(He),(pr=Ln.context.elements.domReference)==null||pr.dispatchEvent(fe);return}}return Le(He)}if(!(!r&&!N&&Rt)){if(or&&(pe.current=R&&ar?null:He.key),R){Gt&&(li(He),r?(J.current=RE(h,Ue),ee(J.current)):a(!0,He.nativeEvent));return}ar&&(E!=null&&(J.current=E),li(He),!r&&N?a(!0,He.nativeEvent):Le(He),r&&ee(J.current))}},onFocus(){r&&ee(null)},onPointerDown:ze,onMouseDown:me,onClick:me},floating:{"aria-orientation":F==="both"?void 0:F,...be,onKeyDown:Le,onPointerMove(){ke.current=!0}},item:Ge}},[c,s,U,We,L,te,h,S,F,T,D,r,$e,R,E,N,C,$,x,M,ee,a,Ge,ve,Y])}function YN(e,n){n===void 0&&(n={});const{open:r,floatingId:a}=e,{enabled:s=!0,role:c="dialog"}=n,f=DE();return Z.useMemo(()=>{const h={id:a,role:c};return s?c==="tooltip"?{reference:{"aria-describedby":r?a:void 0},floating:h}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":c==="alertdialog"?"dialog":c,"aria-controls":r?a:void 0,...c==="listbox"&&{role:"combobox"},...c==="menu"&&{id:f}},floating:{...h,...c==="menu"&&{"aria-labelledby":f}}}:{}},[s,c,r,a,f])}function ZN(e,n){var r;const{open:a,dataRef:s}=e,{listRef:c,activeIndex:f,onMatch:h,onTypingChange:v,enabled:y=!0,findMatch:S=null,resetMs:E=750,ignoreKeys:C=[],selectedIndex:x=null}=n,R=Z.useRef(),T=Z.useRef(""),D=Z.useRef((r=x??f)!=null?r:-1),M=Z.useRef(null),I=su(h),N=su(v),B=lu(S),F=lu(C);return jr(()=>{a&&(clearTimeout(R.current),M.current=null,T.current="")},[a]),jr(()=>{if(a&&T.current===""){var $;D.current=($=x??f)!=null?$:-1}},[a,x,f]),Z.useMemo(()=>{if(!y)return{};function $(ne){ne?s.current.typing||(s.current.typing=ne,N(ne)):s.current.typing&&(s.current.typing=ne,N(ne))}function H(ne,ve,ee){const oe=B.current?B.current(ve,ee):ve.find(J=>(J==null?void 0:J.toLocaleLowerCase().indexOf(ee.toLocaleLowerCase()))===0);return oe?ne.indexOf(oe):-1}function Y(ne){const ve=c.current;if(T.current.length>0&&T.current[0]!==" "&&(H(ve,ve,T.current)===-1?$(!1):ne.key===" "&&li(ne)),ve==null||F.current.includes(ne.key)||ne.key.length!==1||ne.ctrlKey||ne.metaKey||ne.altKey)return;a&&ne.key!==" "&&(li(ne),$(!0)),ve.every(pe=>{var ke,xe;return pe?((ke=pe[0])==null?void 0:ke.toLocaleLowerCase())!==((xe=pe[1])==null?void 0:xe.toLocaleLowerCase()):!0})&&T.current===ne.key&&(T.current="",D.current=M.current),T.current+=ne.key,clearTimeout(R.current),R.current=setTimeout(()=>{T.current="",D.current=M.current,$(!1)},E);const oe=D.current,J=H(ve,[...ve.slice((oe||0)+1),...ve.slice(0,(oe||0)+1)],T.current);J!==-1?(I(J),M.current=J):ne.key!==" "&&(T.current="",$(!1))}return{reference:{onKeyDown:Y},floating:{onKeyDown:Y,onKeyUp(ne){ne.key===" "&&$(!1)}}}},[y,a,s,c,E,F,B,I,N])}const KN=({styles:e,type:n,options:r,label:a,reusable:s})=>{var ke,xe,Ie,se,Te,L,te,ye,U,_e,We,Re;const[c,f]=Z.useState(!1),[h,v]=Z.useState(null),[y,S]=Z.useState(null),{client:E}=cr(),C=r.reduce((Oe,$e)=>(Oe[$e.label]=$e.value,Oe),{}),x=C?Object.keys(C):[],R=Oe=>{f(y!==null&&!s?!1:Oe)},{refs:T,floatingStyles:D,context:M}=VN({placement:"bottom-start",open:c,onOpenChange:R,whileElementsMounted:X9,middleware:[N9(5),L9({padding:10}),F9({apply({rects:Oe,elements:$e,availableHeight:Ge}){Object.assign($e.floating.style,{maxHeight:`${Ge}px`,minWidth:`${Oe.reference.width}px`})},padding:10})]}),I=Z.useRef([]),N=Z.useRef(x),B=Z.useRef(!1),F=IN(M,{event:"mousedown"}),$=BN(M),H=YN(M,{role:"listbox"}),Y=WN(M,{listRef:I,activeIndex:h,selectedIndex:y,onNavigate:v,loop:!0}),ne=ZN(M,{listRef:N,activeIndex:h,selectedIndex:y,onMatch:c?v:S,onTypingChange(Oe){B.current=Oe}}),{getReferenceProps:ve,getFloatingProps:ee,getItemProps:oe}=HN([$,H,Y,ne,F]),J=Oe=>{S(Oe),E.sendMessage(C[x[Oe]]),f(!1)},pe=y!==null?x[y]:void 0;return he.jsxs(he.Fragment,{children:[he.jsxs("div",{tabIndex:0,ref:T.setReference,"aria-labelledby":"select-label","aria-autocomplete":"none","data-disabled":y!==null&&!s?"":void 0,...(xe=(ke=e==null?void 0:e[n])==null?void 0:ke.button)==null?void 0:xe.container,...ve(),children:[he.jsx("span",{...(se=(Ie=e==null?void 0:e[n])==null?void 0:Ie.button)==null?void 0:se.text,children:pe||a||"Select..."}),he.jsx(vP,{...(L=(Te=e==null?void 0:e[n])==null?void 0:Te.button)==null?void 0:L.icon})]}),c&&he.jsx(PN,{children:he.jsx(FN,{context:M,modal:!1,children:he.jsx("div",{ref:T.setFloating,className:(U=(ye=(te=e==null?void 0:e[n])==null?void 0:te.content)==null?void 0:ye.container)==null?void 0:U.className,style:{...D,...(Re=(We=(_e=e==null?void 0:e[n])==null?void 0:_e.content)==null?void 0:We.container)==null?void 0:Re.style},...ee(),children:x.map((Oe,$e)=>{var Ge,Ue;return he.jsx("div",{ref:Le=>{I.current[$e]=Le},role:"option",tabIndex:$e===h?0:-1,"aria-selected":$e===y&&$e===h,"data-active":$e===h?"":void 0,...(Ue=(Ge=e==null?void 0:e[n])==null?void 0:Ge.content)==null?void 0:Ue.item,...oe({onClick(){J($e)},onKeyDown(Le){Le.key==="Enter"&&(Le.preventDefault(),J($e)),Le.key===" "&&!B.current&&(Le.preventDefault(),J($e))}}),children:Oe},Oe)})})})})]})},GN=j.forwardRef(({type:e,title:n,styles:r,url:a,...s},c)=>{var f,h,v;return he.jsxs("a",{...s,...(f=r==null?void 0:r[e])==null?void 0:f.container,href:a,download:!0,ref:c,children:[he.jsx("p",{...(h=r==null?void 0:r[e])==null?void 0:h.title,children:n||a}),he.jsx(yP,{...(v=r==null?void 0:r[e])==null?void 0:v.icon})]})}),IE={text:N7,button:z7,bubble:$7,audio:cP,column:xP,file:GN,image:lP,location:EP,row:wP,video:uP,carousel:m9,dropdown:KN},fd=({block:e,styles:n,...r})=>{const a=IE[e.type];return he.jsx(a,{...r,...e,styles:n})},k5=e=>{let n;const r=new Set,a=(v,y)=>{const S=typeof v=="function"?v(n):v;if(!Object.is(S,n)){const E=n;n=y??typeof S!="object"?S:Object.assign({},n,S),r.forEach(C=>C(n,E))}},s=()=>n,h={setState:a,getState:s,subscribe:v=>(r.add(v),()=>r.delete(v)),destroy:()=>{r.clear()}};return n=e(a,s,h),h},QN=e=>e?k5(e):k5;var zE={exports:{}},jE={},_g={exports:{}},$E={};/**
432
432
  * @license React
433
433
  * use-sync-external-store-shim.production.min.js
434
434
  *
@@ -436,7 +436,7 @@ to {
436
436
  *
437
437
  * This source code is licensed under the MIT license found in the
438
438
  * LICENSE file in the root directory of this source tree.
439
- */var _5;function QN(){if(_5)return $E;_5=1;var e=j;function n(E,C){return E===C&&(E!==0||1/E===1/C)||E!==E&&C!==C}var r=typeof Object.is=="function"?Object.is:n,a=e.useState,s=e.useEffect,c=e.useLayoutEffect,f=e.useDebugValue;function h(E,C){var x=C(),R=a({inst:{value:x,getSnapshot:C}}),T=R[0].inst,D=R[1];return c(function(){T.value=x,T.getSnapshot=C,v(T)&&D({inst:T})},[E,x,C]),s(function(){return v(T)&&D({inst:T}),E(function(){v(T)&&D({inst:T})})},[E]),f(x),x}function v(E){var C=E.getSnapshot;E=E.value;try{var x=C();return!r(E,x)}catch{return!0}}function y(E,C){return C()}var S=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:h;return $E.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:S,$E}var UE={};/**
439
+ */var _5;function XN(){if(_5)return $E;_5=1;var e=j;function n(E,C){return E===C&&(E!==0||1/E===1/C)||E!==E&&C!==C}var r=typeof Object.is=="function"?Object.is:n,a=e.useState,s=e.useEffect,c=e.useLayoutEffect,f=e.useDebugValue;function h(E,C){var x=C(),R=a({inst:{value:x,getSnapshot:C}}),T=R[0].inst,D=R[1];return c(function(){T.value=x,T.getSnapshot=C,v(T)&&D({inst:T})},[E,x,C]),s(function(){return v(T)&&D({inst:T}),E(function(){v(T)&&D({inst:T})})},[E]),f(x),x}function v(E){var C=E.getSnapshot;E=E.value;try{var x=C();return!r(E,x)}catch{return!0}}function y(E,C){return C()}var S=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:h;return $E.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:S,$E}var UE={};/**
440
440
  * @license React
441
441
  * use-sync-external-store-shim.development.js
442
442
  *
@@ -444,7 +444,7 @@ to {
444
444
  *
445
445
  * This source code is licensed under the MIT license found in the
446
446
  * LICENSE file in the root directory of this source tree.
447
- */var T5;function XN(){return T5||(T5=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=j,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(N){{for(var B=arguments.length,F=new Array(B>1?B-1:0),$=1;$<B;$++)F[$-1]=arguments[$];a("error",N,F)}}function a(N,B,F){{var $=n.ReactDebugCurrentFrame,H=$.getStackAddendum();H!==""&&(B+="%s",F=F.concat([H]));var Y=F.map(function(ne){return String(ne)});Y.unshift("Warning: "+B),Function.prototype.apply.call(console[N],console,Y)}}function s(N,B){return N===B&&(N!==0||1/N===1/B)||N!==N&&B!==B}var c=typeof Object.is=="function"?Object.is:s,f=e.useState,h=e.useEffect,v=e.useLayoutEffect,y=e.useDebugValue,S=!1,E=!1;function C(N,B,F){S||e.startTransition!==void 0&&(S=!0,r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var $=B();if(!E){var H=B();c($,H)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),E=!0)}var Y=f({inst:{value:$,getSnapshot:B}}),ne=Y[0].inst,ve=Y[1];return v(function(){ne.value=$,ne.getSnapshot=B,x(ne)&&ve({inst:ne})},[N,$,B]),h(function(){x(ne)&&ve({inst:ne});var ee=function(){x(ne)&&ve({inst:ne})};return N(ee)},[N]),y($),$}function x(N){var B=N.getSnapshot,F=N.value;try{var $=B();return!c(F,$)}catch{return!0}}function R(N,B,F){return B()}var T=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",D=!T,M=D?R:C,I=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:M;UE.useSyncExternalStore=I,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),UE}var R5;function O5(){return R5||(R5=1,process.env.NODE_ENV==="production"?_g.exports=QN():_g.exports=XN()),_g.exports}/**
447
+ */var T5;function JN(){return T5||(T5=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=j,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(N){{for(var B=arguments.length,F=new Array(B>1?B-1:0),$=1;$<B;$++)F[$-1]=arguments[$];a("error",N,F)}}function a(N,B,F){{var $=n.ReactDebugCurrentFrame,H=$.getStackAddendum();H!==""&&(B+="%s",F=F.concat([H]));var Y=F.map(function(ne){return String(ne)});Y.unshift("Warning: "+B),Function.prototype.apply.call(console[N],console,Y)}}function s(N,B){return N===B&&(N!==0||1/N===1/B)||N!==N&&B!==B}var c=typeof Object.is=="function"?Object.is:s,f=e.useState,h=e.useEffect,v=e.useLayoutEffect,y=e.useDebugValue,S=!1,E=!1;function C(N,B,F){S||e.startTransition!==void 0&&(S=!0,r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var $=B();if(!E){var H=B();c($,H)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),E=!0)}var Y=f({inst:{value:$,getSnapshot:B}}),ne=Y[0].inst,ve=Y[1];return v(function(){ne.value=$,ne.getSnapshot=B,x(ne)&&ve({inst:ne})},[N,$,B]),h(function(){x(ne)&&ve({inst:ne});var ee=function(){x(ne)&&ve({inst:ne})};return N(ee)},[N]),y($),$}function x(N){var B=N.getSnapshot,F=N.value;try{var $=B();return!c(F,$)}catch{return!0}}function R(N,B,F){return B()}var T=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",D=!T,M=D?R:C,I=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:M;UE.useSyncExternalStore=I,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),UE}var R5;function O5(){return R5||(R5=1,process.env.NODE_ENV==="production"?_g.exports=XN():_g.exports=JN()),_g.exports}/**
448
448
  * @license React
449
449
  * use-sync-external-store-shim/with-selector.production.min.js
450
450
  *
@@ -452,7 +452,7 @@ to {
452
452
  *
453
453
  * This source code is licensed under the MIT license found in the
454
454
  * LICENSE file in the root directory of this source tree.
455
- */var D5;function JN(){if(D5)return jE;D5=1;var e=j,n=O5();function r(y,S){return y===S&&(y!==0||1/y===1/S)||y!==y&&S!==S}var a=typeof Object.is=="function"?Object.is:r,s=n.useSyncExternalStore,c=e.useRef,f=e.useEffect,h=e.useMemo,v=e.useDebugValue;return jE.useSyncExternalStoreWithSelector=function(y,S,E,C,x){var R=c(null);if(R.current===null){var T={hasValue:!1,value:null};R.current=T}else T=R.current;R=h(function(){function M($){if(!I){if(I=!0,N=$,$=C($),x!==void 0&&T.hasValue){var H=T.value;if(x(H,$))return B=H}return B=$}if(H=B,a(N,$))return H;var Y=C($);return x!==void 0&&x(H,Y)?H:(N=$,B=Y)}var I=!1,N,B,F=E===void 0?null:E;return[function(){return M(S())},F===null?void 0:function(){return M(F())}]},[S,E,C,x]);var D=s(y,R[0],R[1]);return f(function(){T.hasValue=!0,T.value=D},[D]),v(D),D},jE}var BE={};/**
455
+ */var D5;function eF(){if(D5)return jE;D5=1;var e=j,n=O5();function r(y,S){return y===S&&(y!==0||1/y===1/S)||y!==y&&S!==S}var a=typeof Object.is=="function"?Object.is:r,s=n.useSyncExternalStore,c=e.useRef,f=e.useEffect,h=e.useMemo,v=e.useDebugValue;return jE.useSyncExternalStoreWithSelector=function(y,S,E,C,x){var R=c(null);if(R.current===null){var T={hasValue:!1,value:null};R.current=T}else T=R.current;R=h(function(){function M($){if(!I){if(I=!0,N=$,$=C($),x!==void 0&&T.hasValue){var H=T.value;if(x(H,$))return B=H}return B=$}if(H=B,a(N,$))return H;var Y=C($);return x!==void 0&&x(H,Y)?H:(N=$,B=Y)}var I=!1,N,B,F=E===void 0?null:E;return[function(){return M(S())},F===null?void 0:function(){return M(F())}]},[S,E,C,x]);var D=s(y,R[0],R[1]);return f(function(){T.hasValue=!0,T.value=D},[D]),v(D),D},jE}var BE={};/**
456
456
  * @license React
457
457
  * use-sync-external-store-shim/with-selector.development.js
458
458
  *
@@ -460,11 +460,11 @@ to {
460
460
  *
461
461
  * This source code is licensed under the MIT license found in the
462
462
  * LICENSE file in the root directory of this source tree.
463
- */var A5;function eF(){return A5||(A5=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=j,n=O5();function r(S,E){return S===E&&(S!==0||1/S===1/E)||S!==S&&E!==E}var a=typeof Object.is=="function"?Object.is:r,s=n.useSyncExternalStore,c=e.useRef,f=e.useEffect,h=e.useMemo,v=e.useDebugValue;function y(S,E,C,x,R){var T=c(null),D;T.current===null?(D={hasValue:!1,value:null},T.current=D):D=T.current;var M=h(function(){var F=!1,$,H,Y=function(oe){if(!F){F=!0,$=oe;var J=x(oe);if(R!==void 0&&D.hasValue){var pe=D.value;if(R(pe,J))return H=pe,pe}return H=J,J}var ke=$,xe=H;if(a(ke,oe))return xe;var Ie=x(oe);return R!==void 0&&R(xe,Ie)?xe:($=oe,H=Ie,Ie)},ne=C===void 0?null:C,ve=function(){return Y(E())},ee=ne===null?void 0:function(){return Y(ne())};return[ve,ee]},[E,C,x,R]),I=M[0],N=M[1],B=s(S,I,N);return f(function(){D.hasValue=!0,D.value=B},[B]),v(B),B}BE.useSyncExternalStoreWithSelector=y,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),BE}process.env.NODE_ENV==="production"?zE.exports=JN():zE.exports=eF();var tF=zE.exports;const nF=Jf(tF),{useSyncExternalStoreWithSelector:rF}=nF;let vZ=!1;function iF(e,n=e.getState,r){const a=rF(e.subscribe,e.getState,e.getServerState||e.getState,n,r);return j.useDebugValue(a),a}const M5=e=>{const n=typeof e=="function"?GN(e):e,r=(a,s)=>iF(n,a,s);return Object.assign(r,n),r},aF=e=>e?M5(e):M5,VE=new Map,Tg=e=>{const n=VE.get(e);return n?Object.fromEntries(Object.entries(n.stores).map(([r,a])=>[r,a.getState()])):{}},oF=(e,n,r)=>{if(e===void 0)return{type:"untracked",connection:n.connect(r)};const a=VE.get(r.name);if(a)return{type:"tracked",store:e,...a};const s={connection:n.connect(r),stores:{}};return VE.set(r.name,s),{type:"tracked",store:e,...s}},lF=(e,n={})=>(r,a,s)=>{const{enabled:c,anonymousActionType:f,store:h,...v}=n;let y;try{y=(c??!1)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!y)return e(r,a,s);const{connection:S,...E}=oF(h,y,v);let C=!0;s.setState=(T,D,M)=>{const I=r(T,D);if(!C)return I;const N=M===void 0?{type:f||"anonymous"}:typeof M=="string"?{type:M}:M;return h===void 0?(S==null||S.send(N,a()),I):(S==null||S.send({...N,type:`${h}/${N.type}`},{...Tg(v.name),[h]:s.getState()}),I)};const x=(...T)=>{const D=C;C=!1,r(...T),C=D},R=e(s.setState,a,s);if(E.type==="untracked"?S==null||S.init(R):(E.stores[E.store]=s,S==null||S.init(Object.fromEntries(Object.entries(E.stores).map(([T,D])=>[T,T===E.store?R:D.getState()])))),s.dispatchFromDevtools&&typeof s.dispatch=="function"){let T=!1;const D=s.dispatch;s.dispatch=(...M)=>{D(...M)}}return S.subscribe(T=>{var D;switch(T.type){case"ACTION":if(typeof T.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return HE(T.payload,M=>{if(M.type==="__setState"){if(h===void 0){x(M.state);return}Object.keys(M.state).length!==1&&console.error(`
463
+ */var A5;function tF(){return A5||(A5=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=j,n=O5();function r(S,E){return S===E&&(S!==0||1/S===1/E)||S!==S&&E!==E}var a=typeof Object.is=="function"?Object.is:r,s=n.useSyncExternalStore,c=e.useRef,f=e.useEffect,h=e.useMemo,v=e.useDebugValue;function y(S,E,C,x,R){var T=c(null),D;T.current===null?(D={hasValue:!1,value:null},T.current=D):D=T.current;var M=h(function(){var F=!1,$,H,Y=function(oe){if(!F){F=!0,$=oe;var J=x(oe);if(R!==void 0&&D.hasValue){var pe=D.value;if(R(pe,J))return H=pe,pe}return H=J,J}var ke=$,xe=H;if(a(ke,oe))return xe;var Ie=x(oe);return R!==void 0&&R(xe,Ie)?xe:($=oe,H=Ie,Ie)},ne=C===void 0?null:C,ve=function(){return Y(E())},ee=ne===null?void 0:function(){return Y(ne())};return[ve,ee]},[E,C,x,R]),I=M[0],N=M[1],B=s(S,I,N);return f(function(){D.hasValue=!0,D.value=B},[B]),v(B),B}BE.useSyncExternalStoreWithSelector=y,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),BE}process.env.NODE_ENV==="production"?zE.exports=eF():zE.exports=tF();var nF=zE.exports;const rF=Jf(nF),{useSyncExternalStoreWithSelector:iF}=rF;let gZ=!1;function aF(e,n=e.getState,r){const a=iF(e.subscribe,e.getState,e.getServerState||e.getState,n,r);return j.useDebugValue(a),a}const M5=e=>{const n=typeof e=="function"?QN(e):e,r=(a,s)=>aF(n,a,s);return Object.assign(r,n),r},oF=e=>e?M5(e):M5,VE=new Map,Tg=e=>{const n=VE.get(e);return n?Object.fromEntries(Object.entries(n.stores).map(([r,a])=>[r,a.getState()])):{}},lF=(e,n,r)=>{if(e===void 0)return{type:"untracked",connection:n.connect(r)};const a=VE.get(r.name);if(a)return{type:"tracked",store:e,...a};const s={connection:n.connect(r),stores:{}};return VE.set(r.name,s),{type:"tracked",store:e,...s}},sF=(e,n={})=>(r,a,s)=>{const{enabled:c,anonymousActionType:f,store:h,...v}=n;let y;try{y=(c??!1)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!y)return e(r,a,s);const{connection:S,...E}=lF(h,y,v);let C=!0;s.setState=(T,D,M)=>{const I=r(T,D);if(!C)return I;const N=M===void 0?{type:f||"anonymous"}:typeof M=="string"?{type:M}:M;return h===void 0?(S==null||S.send(N,a()),I):(S==null||S.send({...N,type:`${h}/${N.type}`},{...Tg(v.name),[h]:s.getState()}),I)};const x=(...T)=>{const D=C;C=!1,r(...T),C=D},R=e(s.setState,a,s);if(E.type==="untracked"?S==null||S.init(R):(E.stores[E.store]=s,S==null||S.init(Object.fromEntries(Object.entries(E.stores).map(([T,D])=>[T,T===E.store?R:D.getState()])))),s.dispatchFromDevtools&&typeof s.dispatch=="function"){let T=!1;const D=s.dispatch;s.dispatch=(...M)=>{D(...M)}}return S.subscribe(T=>{var D;switch(T.type){case"ACTION":if(typeof T.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return HE(T.payload,M=>{if(M.type==="__setState"){if(h===void 0){x(M.state);return}Object.keys(M.state).length!==1&&console.error(`
464
464
  [zustand devtools middleware] Unsupported __setState action format.
465
465
  When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
466
466
  and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
467
- `);const I=M.state[h];if(I==null)return;JSON.stringify(s.getState())!==JSON.stringify(I)&&x(I);return}s.dispatchFromDevtools&&typeof s.dispatch=="function"&&s.dispatch(M)});case"DISPATCH":switch(T.payload.type){case"RESET":return x(R),h===void 0?S==null?void 0:S.init(s.getState()):S==null?void 0:S.init(Tg(v.name));case"COMMIT":if(h===void 0){S==null||S.init(s.getState());return}return S==null?void 0:S.init(Tg(v.name));case"ROLLBACK":return HE(T.state,M=>{if(h===void 0){x(M),S==null||S.init(s.getState());return}x(M[h]),S==null||S.init(Tg(v.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return HE(T.state,M=>{if(h===void 0){x(M);return}JSON.stringify(s.getState())!==JSON.stringify(M[h])&&x(M[h])});case"IMPORT_STATE":{const{nextLiftedState:M}=T.payload,I=(D=M.computedStates.slice(-1)[0])==null?void 0:D.state;if(!I)return;x(h===void 0?I:I[h]),S==null||S.send(null,M);return}case"PAUSE_RECORDING":return C=!C}return}}),R},HE=(e,n)=>{let r;try{r=JSON.parse(e)}catch(a){console.error("[zustand devtools middleware] Could not parse the received json",a)}r!==void 0&&n(r)};function sF(e,n){let r;try{r=e()}catch{return}return{getItem:s=>{var c;const f=v=>v===null?null:JSON.parse(v,n==null?void 0:n.reviver),h=(c=r.getItem(s))!=null?c:null;return h instanceof Promise?h.then(f):f(h)},setItem:(s,c)=>r.setItem(s,JSON.stringify(c,n==null?void 0:n.replacer)),removeItem:s=>r.removeItem(s)}}const Yh=e=>n=>{try{const r=e(n);return r instanceof Promise?r:{then(a){return Yh(a)(r)},catch(a){return this}}}catch(r){return{then(a){return this},catch(a){return Yh(a)(r)}}}},uF=(e,n)=>(r,a,s)=>{let c={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:D=>D,version:0,merge:(D,M)=>({...M,...D}),...n},f=!1;const h=new Set,v=new Set;let y;try{y=c.getStorage()}catch{}if(!y)return e((...D)=>{console.warn(`[zustand persist middleware] Unable to update item '${c.name}', the given storage is currently unavailable.`),r(...D)},a,s);const S=Yh(c.serialize),E=()=>{const D=c.partialize({...a()});let M;const I=S({state:D,version:c.version}).then(N=>y.setItem(c.name,N)).catch(N=>{M=N});if(M)throw M;return I},C=s.setState;s.setState=(D,M)=>{C(D,M),E()};const x=e((...D)=>{r(...D),E()},a,s);let R;const T=()=>{var D;if(!y)return;f=!1,h.forEach(I=>I(a()));const M=((D=c.onRehydrateStorage)==null?void 0:D.call(c,a()))||void 0;return Yh(y.getItem.bind(y))(c.name).then(I=>{if(I)return c.deserialize(I)}).then(I=>{if(I)if(typeof I.version=="number"&&I.version!==c.version){if(c.migrate)return c.migrate(I.state,I.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return I.state}).then(I=>{var N;return R=c.merge(I,(N=a())!=null?N:x),r(R,!0),E()}).then(()=>{M==null||M(R,void 0),f=!0,v.forEach(I=>I(R))}).catch(I=>{M==null||M(void 0,I)})};return s.persist={setOptions:D=>{c={...c,...D},D.getStorage&&(y=D.getStorage())},clearStorage:()=>{y==null||y.removeItem(c.name)},getOptions:()=>c,rehydrate:()=>T(),hasHydrated:()=>f,onHydrate:D=>(h.add(D),()=>{h.delete(D)}),onFinishHydration:D=>(v.add(D),()=>{v.delete(D)})},T(),R||x},cF=(e,n)=>(r,a,s)=>{let c={storage:sF(()=>localStorage),partialize:T=>T,version:0,merge:(T,D)=>({...D,...T}),...n},f=!1;const h=new Set,v=new Set;let y=c.storage;if(!y)return e((...T)=>{console.warn(`[zustand persist middleware] Unable to update item '${c.name}', the given storage is currently unavailable.`),r(...T)},a,s);const S=()=>{const T=c.partialize({...a()});return y.setItem(c.name,{state:T,version:c.version})},E=s.setState;s.setState=(T,D)=>{E(T,D),S()};const C=e((...T)=>{r(...T),S()},a,s);let x;const R=()=>{var T,D;if(!y)return;f=!1,h.forEach(I=>{var N;return I((N=a())!=null?N:C)});const M=((D=c.onRehydrateStorage)==null?void 0:D.call(c,(T=a())!=null?T:C))||void 0;return Yh(y.getItem.bind(y))(c.name).then(I=>{if(I)if(typeof I.version=="number"&&I.version!==c.version){if(c.migrate)return c.migrate(I.state,I.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return I.state}).then(I=>{var N;return x=c.merge(I,(N=a())!=null?N:C),r(x,!0),S()}).then(()=>{M==null||M(x,void 0),x=a(),f=!0,v.forEach(I=>I(x))}).catch(I=>{M==null||M(void 0,I)})};return s.persist={setOptions:T=>{c={...c,...T},T.storage&&(y=T.storage)},clearStorage:()=>{y==null||y.removeItem(c.name)},getOptions:()=>c,rehydrate:()=>R(),hasHydrated:()=>f,onHydrate:T=>(h.add(T),()=>{h.delete(T)}),onFinishHydration:T=>(v.add(T),()=>{v.delete(T)})},c.skipHydration||R(),x||C},fF=(e,n)=>"getStorage"in n||"serialize"in n||"deserialize"in n?uF(e,n):cF(e,n),Dc=aF()(lF(fF(e=>({messageHistory:{},addMessageToHistory:({userId:n,message:r})=>e(a=>({...a,messageHistory:{...a.messageHistory,[n]:[r,...(a.messageHistory[n]??[]).slice(0,100)]}})),setUser:n=>e(r=>({...r,user:n})),setConversationId:n=>e(r=>({...r,conversationId:n}))}),{name:"botpress-webchat"})));var eo=function(){return eo=Object.assign||function(n){for(var r,a=1,s=arguments.length;a<s;a++){r=arguments[a];for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(n[c]=r[c])}return n},eo.apply(this,arguments)};function L5(e,n){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(e);s<a.length;s++)n.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(r[a[s]]=e[a[s]]);return r}function dF(e,n,r){if(r||arguments.length===2)for(var a=0,s=n.length,c;a<s;a++)(c||!(a in n))&&(c||(c=Array.prototype.slice.call(n,0,a)),c[a]=n[a]);return e.concat(c||Array.prototype.slice.call(n))}typeof SuppressedError=="function"&&SuppressedError;function pF(){var e=j.useRef(!1),n=j.useCallback(function(){return e.current},[]);return j.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),n}function hF(e,n,r){n===void 0&&(n=[]),r===void 0&&(r={loading:!1});var a=j.useRef(0),s=pF(),c=j.useState(r),f=c[0],h=c[1],v=j.useCallback(function(){for(var y=[],S=0;S<arguments.length;S++)y[S]=arguments[S];var E=++a.current;return f.loading||h(function(C){return eo(eo({},C),{loading:!0})}),e.apply(void 0,y).then(function(C){return s()&&E===a.current&&h({value:C,loading:!1}),C},function(C){return s()&&E===a.current&&h({error:C,loading:!1}),C})},n);return[f,v]}function P5(e,n){n===void 0&&(n=[]);var r=hF(e,n,{loading:!0}),a=r[0],s=r[1];return j.useEffect(function(){s()},[s]),a}function mF(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];e&&e.addEventListener&&e.addEventListener.apply(e,n)}function vF(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];e&&e.removeEventListener&&e.removeEventListener.apply(e,n)}var gF=function(e){j.useEffect(e,[])};const dd=gF;var yF=function(e){dd(function(){e()})};const bF=yF;var SF=function(e){var n=j.useRef(e);n.current=e,dd(function(){return function(){return n.current()}})};const EF=SF;var xF=function(e){var n=j.useRef(0),r=j.useState(e),a=r[0],s=r[1],c=j.useCallback(function(f){cancelAnimationFrame(n.current),n.current=requestAnimationFrame(function(){s(f)})},[]);return EF(function(){cancelAnimationFrame(n.current)}),[a,c]};const wF=xF;var CF=function(e){process.env.NODE_ENV==="development"&&(typeof e!="object"||typeof e.current>"u")&&console.error("`useScroll` expects a single ref argument.");var n=wF({x:0,y:0}),r=n[0],a=n[1];return j.useEffect(function(){var s=function(){e.current&&a({x:e.current.scrollLeft,y:e.current.scrollTop})};return e.current&&mF(e.current,"scroll",s,{capture:!1,passive:!0}),function(){e.current&&vF(e.current,"scroll",s)}},[e]),r};const kF=CF,_F=e=>{const n=new Date;return e.getTime()-n.getTime()},TF=(e=_F)=>{const[n,r]=j.useState(0),[a,s]=j.useState(),c=()=>r(f=>f+1);return P5(async()=>{if(a){const f=setTimeout(c,e(a));return()=>{clearTimeout(f)}}},[a]),[n,s]},N5=j.memo(j.forwardRef((e,n)=>{const{state:r,theme:{composer:a}}=cr(),[s,c]=j.useState("");return he.jsx(tT.Provider,{value:{value:s,setValue:c},children:he.jsx("div",{"data-disabled":r.disableComposer,...e,...a==null?void 0:a.container,ref:n})})})),F5=j.memo(({...e})=>{const{state:n,theme:{composer:r},client:a}=cr(),{value:s,setValue:c}=nT(),f=j.useRef(null),[h,v]=j.useState(-1),y=Dc(C=>C.user),S=Dc(C=>C.messageHistory),E=()=>{s&&(a.sendMessage(s),c(""))};return j.useEffect(()=>{f.current&&(f.current.selectionStart=f.current.value.length,f.current.selectionEnd=f.current.value.length)},[s]),he.jsx("textarea",{...r==null?void 0:r.input,disabled:n.disableComposer,ref:f,value:s,"data-has-value":!!s,onChange:C=>c(C.target.value),onKeyDown:C=>{if(!n.disableComposer){if(C.key==="Enter"&&(C.preventDefault(),E(),v(-1)),C.key==="ArrowUp"){C.preventDefault();const x=S[(y==null?void 0:y.userId)??""]??[];h<x.length-1&&c(x[h+1]),v(()=>Math.min(h+1,x.length-1))}if(C.key==="ArrowDown"){C.preventDefault();const x=S[(y==null?void 0:y.userId)??""]??[];c(h===0?"":x[h-1]),v(()=>Math.max(h-1,-1))}}},...e})}),I5=j.memo(j.forwardRef(({icon:e=pP,...n},r)=>{var h,v;const{value:a,setValue:s}=nT(),c=()=>{a&&s("")},{theme:{composer:f}}=cr();return he.jsx("button",{ref:r,...n,...(h=f==null?void 0:f.button)==null?void 0:h.container,disabled:!a,onClick:c,children:he.jsx(e,{...(v=f==null?void 0:f.button)==null?void 0:v.icon})})})),z5=({children:e})=>{const[n,r]=j.useState(!1),[a,s]=j.useState(""),[c,f]=j.useState(null),h=({title:y,content:S})=>{s(y),f(S),r(!0)},v=()=>{r(!1)};return he.jsxs(iT.Provider,{value:{hideModal:v,showModal:h,title:a,content:c,open:n},children:[he.jsx(Bc,{open:n,onOpenChange:r,children:he.jsx(Bc.Content,{title:a,children:c})}),e]})};/**
467
+ `);const I=M.state[h];if(I==null)return;JSON.stringify(s.getState())!==JSON.stringify(I)&&x(I);return}s.dispatchFromDevtools&&typeof s.dispatch=="function"&&s.dispatch(M)});case"DISPATCH":switch(T.payload.type){case"RESET":return x(R),h===void 0?S==null?void 0:S.init(s.getState()):S==null?void 0:S.init(Tg(v.name));case"COMMIT":if(h===void 0){S==null||S.init(s.getState());return}return S==null?void 0:S.init(Tg(v.name));case"ROLLBACK":return HE(T.state,M=>{if(h===void 0){x(M),S==null||S.init(s.getState());return}x(M[h]),S==null||S.init(Tg(v.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return HE(T.state,M=>{if(h===void 0){x(M);return}JSON.stringify(s.getState())!==JSON.stringify(M[h])&&x(M[h])});case"IMPORT_STATE":{const{nextLiftedState:M}=T.payload,I=(D=M.computedStates.slice(-1)[0])==null?void 0:D.state;if(!I)return;x(h===void 0?I:I[h]),S==null||S.send(null,M);return}case"PAUSE_RECORDING":return C=!C}return}}),R},HE=(e,n)=>{let r;try{r=JSON.parse(e)}catch(a){console.error("[zustand devtools middleware] Could not parse the received json",a)}r!==void 0&&n(r)};function uF(e,n){let r;try{r=e()}catch{return}return{getItem:s=>{var c;const f=v=>v===null?null:JSON.parse(v,n==null?void 0:n.reviver),h=(c=r.getItem(s))!=null?c:null;return h instanceof Promise?h.then(f):f(h)},setItem:(s,c)=>r.setItem(s,JSON.stringify(c,n==null?void 0:n.replacer)),removeItem:s=>r.removeItem(s)}}const Yh=e=>n=>{try{const r=e(n);return r instanceof Promise?r:{then(a){return Yh(a)(r)},catch(a){return this}}}catch(r){return{then(a){return this},catch(a){return Yh(a)(r)}}}},cF=(e,n)=>(r,a,s)=>{let c={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:D=>D,version:0,merge:(D,M)=>({...M,...D}),...n},f=!1;const h=new Set,v=new Set;let y;try{y=c.getStorage()}catch{}if(!y)return e((...D)=>{console.warn(`[zustand persist middleware] Unable to update item '${c.name}', the given storage is currently unavailable.`),r(...D)},a,s);const S=Yh(c.serialize),E=()=>{const D=c.partialize({...a()});let M;const I=S({state:D,version:c.version}).then(N=>y.setItem(c.name,N)).catch(N=>{M=N});if(M)throw M;return I},C=s.setState;s.setState=(D,M)=>{C(D,M),E()};const x=e((...D)=>{r(...D),E()},a,s);let R;const T=()=>{var D;if(!y)return;f=!1,h.forEach(I=>I(a()));const M=((D=c.onRehydrateStorage)==null?void 0:D.call(c,a()))||void 0;return Yh(y.getItem.bind(y))(c.name).then(I=>{if(I)return c.deserialize(I)}).then(I=>{if(I)if(typeof I.version=="number"&&I.version!==c.version){if(c.migrate)return c.migrate(I.state,I.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return I.state}).then(I=>{var N;return R=c.merge(I,(N=a())!=null?N:x),r(R,!0),E()}).then(()=>{M==null||M(R,void 0),f=!0,v.forEach(I=>I(R))}).catch(I=>{M==null||M(void 0,I)})};return s.persist={setOptions:D=>{c={...c,...D},D.getStorage&&(y=D.getStorage())},clearStorage:()=>{y==null||y.removeItem(c.name)},getOptions:()=>c,rehydrate:()=>T(),hasHydrated:()=>f,onHydrate:D=>(h.add(D),()=>{h.delete(D)}),onFinishHydration:D=>(v.add(D),()=>{v.delete(D)})},T(),R||x},fF=(e,n)=>(r,a,s)=>{let c={storage:uF(()=>localStorage),partialize:T=>T,version:0,merge:(T,D)=>({...D,...T}),...n},f=!1;const h=new Set,v=new Set;let y=c.storage;if(!y)return e((...T)=>{console.warn(`[zustand persist middleware] Unable to update item '${c.name}', the given storage is currently unavailable.`),r(...T)},a,s);const S=()=>{const T=c.partialize({...a()});return y.setItem(c.name,{state:T,version:c.version})},E=s.setState;s.setState=(T,D)=>{E(T,D),S()};const C=e((...T)=>{r(...T),S()},a,s);let x;const R=()=>{var T,D;if(!y)return;f=!1,h.forEach(I=>{var N;return I((N=a())!=null?N:C)});const M=((D=c.onRehydrateStorage)==null?void 0:D.call(c,(T=a())!=null?T:C))||void 0;return Yh(y.getItem.bind(y))(c.name).then(I=>{if(I)if(typeof I.version=="number"&&I.version!==c.version){if(c.migrate)return c.migrate(I.state,I.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return I.state}).then(I=>{var N;return x=c.merge(I,(N=a())!=null?N:C),r(x,!0),S()}).then(()=>{M==null||M(x,void 0),x=a(),f=!0,v.forEach(I=>I(x))}).catch(I=>{M==null||M(void 0,I)})};return s.persist={setOptions:T=>{c={...c,...T},T.storage&&(y=T.storage)},clearStorage:()=>{y==null||y.removeItem(c.name)},getOptions:()=>c,rehydrate:()=>R(),hasHydrated:()=>f,onHydrate:T=>(h.add(T),()=>{h.delete(T)}),onFinishHydration:T=>(v.add(T),()=>{v.delete(T)})},c.skipHydration||R(),x||C},dF=(e,n)=>"getStorage"in n||"serialize"in n||"deserialize"in n?cF(e,n):fF(e,n),Dc=oF()(sF(dF(e=>({messageHistory:{},addMessageToHistory:({userId:n,message:r})=>e(a=>({...a,messageHistory:{...a.messageHistory,[n]:[r,...(a.messageHistory[n]??[]).slice(0,100)]}})),setUser:n=>e(r=>({...r,user:n})),setConversationId:n=>e(r=>({...r,conversationId:n}))}),{name:"botpress-webchat"})));var eo=function(){return eo=Object.assign||function(n){for(var r,a=1,s=arguments.length;a<s;a++){r=arguments[a];for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(n[c]=r[c])}return n},eo.apply(this,arguments)};function L5(e,n){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(e);s<a.length;s++)n.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(r[a[s]]=e[a[s]]);return r}function pF(e,n,r){if(r||arguments.length===2)for(var a=0,s=n.length,c;a<s;a++)(c||!(a in n))&&(c||(c=Array.prototype.slice.call(n,0,a)),c[a]=n[a]);return e.concat(c||Array.prototype.slice.call(n))}typeof SuppressedError=="function"&&SuppressedError;function hF(){var e=j.useRef(!1),n=j.useCallback(function(){return e.current},[]);return j.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),n}function mF(e,n,r){n===void 0&&(n=[]),r===void 0&&(r={loading:!1});var a=j.useRef(0),s=hF(),c=j.useState(r),f=c[0],h=c[1],v=j.useCallback(function(){for(var y=[],S=0;S<arguments.length;S++)y[S]=arguments[S];var E=++a.current;return f.loading||h(function(C){return eo(eo({},C),{loading:!0})}),e.apply(void 0,y).then(function(C){return s()&&E===a.current&&h({value:C,loading:!1}),C},function(C){return s()&&E===a.current&&h({error:C,loading:!1}),C})},n);return[f,v]}function P5(e,n){n===void 0&&(n=[]);var r=mF(e,n,{loading:!0}),a=r[0],s=r[1];return j.useEffect(function(){s()},[s]),a}function vF(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];e&&e.addEventListener&&e.addEventListener.apply(e,n)}function gF(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];e&&e.removeEventListener&&e.removeEventListener.apply(e,n)}var yF=function(e){j.useEffect(e,[])};const dd=yF;var bF=function(e){dd(function(){e()})};const SF=bF;var EF=function(e){var n=j.useRef(e);n.current=e,dd(function(){return function(){return n.current()}})};const xF=EF;var wF=function(e){var n=j.useRef(0),r=j.useState(e),a=r[0],s=r[1],c=j.useCallback(function(f){cancelAnimationFrame(n.current),n.current=requestAnimationFrame(function(){s(f)})},[]);return xF(function(){cancelAnimationFrame(n.current)}),[a,c]};const CF=wF;var kF=function(e){process.env.NODE_ENV==="development"&&(typeof e!="object"||typeof e.current>"u")&&console.error("`useScroll` expects a single ref argument.");var n=CF({x:0,y:0}),r=n[0],a=n[1];return j.useEffect(function(){var s=function(){e.current&&a({x:e.current.scrollLeft,y:e.current.scrollTop})};return e.current&&vF(e.current,"scroll",s,{capture:!1,passive:!0}),function(){e.current&&gF(e.current,"scroll",s)}},[e]),r};const _F=kF,TF=e=>{const n=new Date;return e.getTime()-n.getTime()},RF=(e=TF)=>{const[n,r]=j.useState(0),[a,s]=j.useState(),c=()=>r(f=>f+1);return P5(async()=>{if(a){const f=setTimeout(c,e(a));return()=>{clearTimeout(f)}}},[a]),[n,s]},N5=j.memo(j.forwardRef((e,n)=>{const{state:r,theme:{composer:a}}=cr(),[s,c]=j.useState("");return he.jsx(tT.Provider,{value:{value:s,setValue:c},children:he.jsx("div",{"data-disabled":r.disableComposer,...e,...a==null?void 0:a.container,ref:n})})})),F5=j.memo(({...e})=>{const{state:n,theme:{composer:r},client:a}=cr(),{value:s,setValue:c}=nT(),f=j.useRef(null),[h,v]=j.useState(-1),y=Dc(C=>C.user),S=Dc(C=>C.messageHistory),E=()=>{s&&(a.sendMessage(s),c(""))};return j.useEffect(()=>{f.current&&(f.current.selectionStart=f.current.value.length,f.current.selectionEnd=f.current.value.length)},[s]),he.jsx("textarea",{...r==null?void 0:r.input,disabled:n.disableComposer,ref:f,value:s,"data-has-value":!!s,onChange:C=>c(C.target.value),onKeyDown:C=>{if(!n.disableComposer){if(C.key==="Enter"&&(C.preventDefault(),E(),v(-1)),C.key==="ArrowUp"){C.preventDefault();const x=S[(y==null?void 0:y.userId)??""]??[];h<x.length-1&&c(x[h+1]),v(()=>Math.min(h+1,x.length-1))}if(C.key==="ArrowDown"){C.preventDefault();const x=S[(y==null?void 0:y.userId)??""]??[];c(h===0?"":x[h-1]),v(()=>Math.max(h-1,-1))}}},...e})}),I5=j.memo(j.forwardRef(({icon:e=hP,...n},r)=>{var h,v;const{value:a,setValue:s}=nT(),c=()=>{a&&s("")},{theme:{composer:f}}=cr();return he.jsx("button",{ref:r,...n,...(h=f==null?void 0:f.button)==null?void 0:h.container,disabled:!a,onClick:c,children:he.jsx(e,{...(v=f==null?void 0:f.button)==null?void 0:v.icon})})})),z5=({children:e})=>{const[n,r]=j.useState(!1),[a,s]=j.useState(""),[c,f]=j.useState(null),h=({title:y,content:S})=>{s(y),f(S),r(!0)},v=()=>{r(!1)};return he.jsxs(iT.Provider,{value:{hideModal:v,showModal:h,title:a,content:c,open:n},children:[he.jsx(Bc,{open:n,onOpenChange:r,children:he.jsx(Bc.Content,{title:a,children:c})}),e]})};/**
468
468
  * @license
469
469
  * Copyright 2021 Google LLC
470
470
  *
@@ -479,7 +479,7 @@ to {
479
479
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
480
480
  * See the License for the specific language governing permissions and
481
481
  * limitations under the License.
482
- */function oa(e){return e<0?-1:e===0?0:1}function Zh(e,n,r){return(1-r)*e+r*n}function RF(e,n,r){return r<e?e:r>n?n:r}function Rg(e,n,r){return r<e?e:r>n?n:r}function OF(e){return e=e%360,e<0&&(e=e+360),e}function qE(e,n){const r=e[0]*n[0][0]+e[1]*n[0][1]+e[2]*n[0][2],a=e[0]*n[1][0]+e[1]*n[1][1]+e[2]*n[1][2],s=e[0]*n[2][0]+e[1]*n[2][1]+e[2]*n[2][2];return[r,a,s]}/**
482
+ */function oa(e){return e<0?-1:e===0?0:1}function Zh(e,n,r){return(1-r)*e+r*n}function OF(e,n,r){return r<e?e:r>n?n:r}function Rg(e,n,r){return r<e?e:r>n?n:r}function DF(e){return e=e%360,e<0&&(e=e+360),e}function qE(e,n){const r=e[0]*n[0][0]+e[1]*n[0][1]+e[2]*n[0][2],a=e[0]*n[1][0]+e[1]*n[1][1]+e[2]*n[1][2],s=e[0]*n[2][0]+e[1]*n[2][1]+e[2]*n[2][2];return[r,a,s]}/**
483
483
  * @license
484
484
  * Copyright 2021 Google LLC
485
485
  *
@@ -494,7 +494,7 @@ to {
494
494
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
495
495
  * See the License for the specific language governing permissions and
496
496
  * limitations under the License.
497
- */const DF=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],AF=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],MF=[95.047,100,108.883];function WE(e,n,r){return(255<<24|(e&255)<<16|(n&255)<<8|r&255)>>>0}function j5(e){const n=Ac(e[0]),r=Ac(e[1]),a=Ac(e[2]);return WE(n,r,a)}function LF(e){return e>>16&255}function PF(e){return e>>8&255}function NF(e){return e&255}function FF(e,n,r){const a=AF,s=a[0][0]*e+a[0][1]*n+a[0][2]*r,c=a[1][0]*e+a[1][1]*n+a[1][2]*r,f=a[2][0]*e+a[2][1]*n+a[2][2]*r,h=Ac(s),v=Ac(c),y=Ac(f);return WE(h,v,y)}function IF(e){const n=pd(LF(e)),r=pd(PF(e)),a=pd(NF(e));return qE([n,r,a],DF)}function zF(e){const n=uu(e),r=Ac(n);return WE(r,r,r)}function $5(e){const n=IF(e)[1];return 116*U5(n/100)-16}function uu(e){return 100*$F((e+16)/116)}function YE(e){return U5(e/100)*116-16}function pd(e){const n=e/255;return n<=.040449936?n/12.92*100:Math.pow((n+.055)/1.055,2.4)*100}function Ac(e){const n=e/100;let r=0;return n<=.0031308?r=n*12.92:r=1.055*Math.pow(n,1/2.4)-.055,RF(0,255,Math.round(r*255))}function jF(){return MF}function U5(e){const n=.008856451679035631,r=24389/27;return e>n?Math.pow(e,1/3):(r*e+16)/116}function $F(e){const n=.008856451679035631,r=24389/27,a=e*e*e;return a>n?a:(116*e-16)/r}/**
497
+ */const AF=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],MF=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],LF=[95.047,100,108.883];function WE(e,n,r){return(255<<24|(e&255)<<16|(n&255)<<8|r&255)>>>0}function j5(e){const n=Ac(e[0]),r=Ac(e[1]),a=Ac(e[2]);return WE(n,r,a)}function PF(e){return e>>16&255}function NF(e){return e>>8&255}function FF(e){return e&255}function IF(e,n,r){const a=MF,s=a[0][0]*e+a[0][1]*n+a[0][2]*r,c=a[1][0]*e+a[1][1]*n+a[1][2]*r,f=a[2][0]*e+a[2][1]*n+a[2][2]*r,h=Ac(s),v=Ac(c),y=Ac(f);return WE(h,v,y)}function zF(e){const n=pd(PF(e)),r=pd(NF(e)),a=pd(FF(e));return qE([n,r,a],AF)}function jF(e){const n=uu(e),r=Ac(n);return WE(r,r,r)}function $5(e){const n=zF(e)[1];return 116*U5(n/100)-16}function uu(e){return 100*UF((e+16)/116)}function YE(e){return U5(e/100)*116-16}function pd(e){const n=e/255;return n<=.040449936?n/12.92*100:Math.pow((n+.055)/1.055,2.4)*100}function Ac(e){const n=e/100;let r=0;return n<=.0031308?r=n*12.92:r=1.055*Math.pow(n,1/2.4)-.055,OF(0,255,Math.round(r*255))}function $F(){return LF}function U5(e){const n=.008856451679035631,r=24389/27;return e>n?Math.pow(e,1/3):(r*e+16)/116}function UF(e){const n=.008856451679035631,r=24389/27,a=e*e*e;return a>n?a:(116*e-16)/r}/**
498
498
  * @license
499
499
  * Copyright 2021 Google LLC
500
500
  *
@@ -509,7 +509,7 @@ to {
509
509
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
510
510
  * See the License for the specific language governing permissions and
511
511
  * limitations under the License.
512
- */class bo{static make(n=jF(),r=200/Math.PI*uu(50)/100,a=50,s=2,c=!1){const f=n,h=f[0]*.401288+f[1]*.650173+f[2]*-.051461,v=f[0]*-.250268+f[1]*1.204414+f[2]*.045854,y=f[0]*-.002079+f[1]*.048952+f[2]*.953127,S=.8+s/10,E=S>=.9?Zh(.59,.69,(S-.9)*10):Zh(.525,.59,(S-.8)*10);let C=c?1:S*(1-1/3.6*Math.exp((-r-42)/92));C=C>1?1:C<0?0:C;const x=S,R=[C*(100/h)+1-C,C*(100/v)+1-C,C*(100/y)+1-C],T=1/(5*r+1),D=T*T*T*T,M=1-D,I=D*r+.1*M*M*Math.cbrt(5*r),N=uu(a)/n[1],B=1.48+Math.sqrt(N),F=.725/Math.pow(N,.2),$=F,H=[Math.pow(I*R[0]*h/100,.42),Math.pow(I*R[1]*v/100,.42),Math.pow(I*R[2]*y/100,.42)],Y=[400*H[0]/(H[0]+27.13),400*H[1]/(H[1]+27.13),400*H[2]/(H[2]+27.13)],ne=(2*Y[0]+Y[1]+.05*Y[2])*F;return new bo(N,ne,F,$,E,x,R,I,Math.pow(I,.25),B)}constructor(n,r,a,s,c,f,h,v,y,S){this.n=n,this.aw=r,this.nbb=a,this.ncb=s,this.c=c,this.nc=f,this.rgbD=h,this.fl=v,this.fLRoot=y,this.z=S}}bo.DEFAULT=bo.make();/**
512
+ */class bo{static make(n=$F(),r=200/Math.PI*uu(50)/100,a=50,s=2,c=!1){const f=n,h=f[0]*.401288+f[1]*.650173+f[2]*-.051461,v=f[0]*-.250268+f[1]*1.204414+f[2]*.045854,y=f[0]*-.002079+f[1]*.048952+f[2]*.953127,S=.8+s/10,E=S>=.9?Zh(.59,.69,(S-.9)*10):Zh(.525,.59,(S-.8)*10);let C=c?1:S*(1-1/3.6*Math.exp((-r-42)/92));C=C>1?1:C<0?0:C;const x=S,R=[C*(100/h)+1-C,C*(100/v)+1-C,C*(100/y)+1-C],T=1/(5*r+1),D=T*T*T*T,M=1-D,I=D*r+.1*M*M*Math.cbrt(5*r),N=uu(a)/n[1],B=1.48+Math.sqrt(N),F=.725/Math.pow(N,.2),$=F,H=[Math.pow(I*R[0]*h/100,.42),Math.pow(I*R[1]*v/100,.42),Math.pow(I*R[2]*y/100,.42)],Y=[400*H[0]/(H[0]+27.13),400*H[1]/(H[1]+27.13),400*H[2]/(H[2]+27.13)],ne=(2*Y[0]+Y[1]+.05*Y[2])*F;return new bo(N,ne,F,$,E,x,R,I,Math.pow(I,.25),B)}constructor(n,r,a,s,c,f,h,v,y,S){this.n=n,this.aw=r,this.nbb=a,this.ncb=s,this.c=c,this.nc=f,this.rgbD=h,this.fl=v,this.fLRoot=y,this.z=S}}bo.DEFAULT=bo.make();/**
513
513
  * @license
514
514
  * Copyright 2021 Google LLC
515
515
  *
@@ -524,7 +524,7 @@ to {
524
524
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
525
525
  * See the License for the specific language governing permissions and
526
526
  * limitations under the License.
527
- */class Pa{constructor(n,r,a,s,c,f,h,v,y){this.hue=n,this.chroma=r,this.j=a,this.q=s,this.m=c,this.s=f,this.jstar=h,this.astar=v,this.bstar=y}distance(n){const r=this.jstar-n.jstar,a=this.astar-n.astar,s=this.bstar-n.bstar,c=Math.sqrt(r*r+a*a+s*s);return 1.41*Math.pow(c,.63)}static fromInt(n){return Pa.fromIntInViewingConditions(n,bo.DEFAULT)}static fromIntInViewingConditions(n,r){const a=(n&16711680)>>16,s=(n&65280)>>8,c=n&255,f=pd(a),h=pd(s),v=pd(c),y=.41233895*f+.35762064*h+.18051042*v,S=.2126*f+.7152*h+.0722*v,E=.01932141*f+.11916382*h+.95034478*v,C=.401288*y+.650173*S-.051461*E,x=-.250268*y+1.204414*S+.045854*E,R=-.002079*y+.048952*S+.953127*E,T=r.rgbD[0]*C,D=r.rgbD[1]*x,M=r.rgbD[2]*R,I=Math.pow(r.fl*Math.abs(T)/100,.42),N=Math.pow(r.fl*Math.abs(D)/100,.42),B=Math.pow(r.fl*Math.abs(M)/100,.42),F=oa(T)*400*I/(I+27.13),$=oa(D)*400*N/(N+27.13),H=oa(M)*400*B/(B+27.13),Y=(11*F+-12*$+H)/11,ne=(F+$-2*H)/9,ve=(20*F+20*$+21*H)/20,ee=(40*F+20*$+H)/20,J=Math.atan2(ne,Y)*180/Math.PI,pe=J<0?J+360:J>=360?J-360:J,ke=pe*Math.PI/180,xe=ee*r.nbb,Ie=100*Math.pow(xe/r.aw,r.c*r.z),se=4/r.c*Math.sqrt(Ie/100)*(r.aw+4)*r.fLRoot,Te=pe<20.14?pe+360:pe,L=.25*(Math.cos(Te*Math.PI/180+2)+3.8),ye=5e4/13*L*r.nc*r.ncb*Math.sqrt(Y*Y+ne*ne)/(ve+.305),U=Math.pow(ye,.9)*Math.pow(1.64-Math.pow(.29,r.n),.73),_e=U*Math.sqrt(Ie/100),We=_e*r.fLRoot,Re=50*Math.sqrt(U*r.c/(r.aw+4)),Oe=(1+100*.007)*Ie/(1+.007*Ie),$e=1/.0228*Math.log(1+.0228*We),Ge=$e*Math.cos(ke),Ue=$e*Math.sin(ke);return new Pa(pe,_e,Ie,se,We,Re,Oe,Ge,Ue)}static fromJch(n,r,a){return Pa.fromJchInViewingConditions(n,r,a,bo.DEFAULT)}static fromJchInViewingConditions(n,r,a,s){const c=4/s.c*Math.sqrt(n/100)*(s.aw+4)*s.fLRoot,f=r*s.fLRoot,h=r/Math.sqrt(n/100),v=50*Math.sqrt(h*s.c/(s.aw+4)),y=a*Math.PI/180,S=(1+100*.007)*n/(1+.007*n),E=1/.0228*Math.log(1+.0228*f),C=E*Math.cos(y),x=E*Math.sin(y);return new Pa(a,r,n,c,f,v,S,C,x)}static fromUcs(n,r,a){return Pa.fromUcsInViewingConditions(n,r,a,bo.DEFAULT)}static fromUcsInViewingConditions(n,r,a,s){const c=r,f=a,h=Math.sqrt(c*c+f*f),y=(Math.exp(h*.0228)-1)/.0228/s.fLRoot;let S=Math.atan2(f,c)*(180/Math.PI);S<0&&(S+=360);const E=n/(1-(n-100)*.007);return Pa.fromJchInViewingConditions(E,y,S,s)}toInt(){return this.viewed(bo.DEFAULT)}viewed(n){const r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),a=Math.pow(r/Math.pow(1.64-Math.pow(.29,n.n),.73),1/.9),s=this.hue*Math.PI/180,c=.25*(Math.cos(s+2)+3.8),f=n.aw*Math.pow(this.j/100,1/n.c/n.z),h=c*(5e4/13)*n.nc*n.ncb,v=f/n.nbb,y=Math.sin(s),S=Math.cos(s),E=23*(v+.305)*a/(23*h+11*a*S+108*a*y),C=E*S,x=E*y,R=(460*v+451*C+288*x)/1403,T=(460*v-891*C-261*x)/1403,D=(460*v-220*C-6300*x)/1403,M=Math.max(0,27.13*Math.abs(R)/(400-Math.abs(R))),I=oa(R)*(100/n.fl)*Math.pow(M,1/.42),N=Math.max(0,27.13*Math.abs(T)/(400-Math.abs(T))),B=oa(T)*(100/n.fl)*Math.pow(N,1/.42),F=Math.max(0,27.13*Math.abs(D)/(400-Math.abs(D))),$=oa(D)*(100/n.fl)*Math.pow(F,1/.42),H=I/n.rgbD[0],Y=B/n.rgbD[1],ne=$/n.rgbD[2],ve=1.86206786*H-1.01125463*Y+.14918677*ne,ee=.38752654*H+.62144744*Y-.00897398*ne,oe=-.0158415*H-.03412294*Y+1.04996444*ne;return FF(ve,ee,oe)}static fromXyzInViewingConditions(n,r,a,s){const c=.401288*n+.650173*r-.051461*a,f=-.250268*n+1.204414*r+.045854*a,h=-.002079*n+.048952*r+.953127*a,v=s.rgbD[0]*c,y=s.rgbD[1]*f,S=s.rgbD[2]*h,E=Math.pow(s.fl*Math.abs(v)/100,.42),C=Math.pow(s.fl*Math.abs(y)/100,.42),x=Math.pow(s.fl*Math.abs(S)/100,.42),R=oa(v)*400*E/(E+27.13),T=oa(y)*400*C/(C+27.13),D=oa(S)*400*x/(x+27.13),M=(11*R+-12*T+D)/11,I=(R+T-2*D)/9,N=(20*R+20*T+21*D)/20,B=(40*R+20*T+D)/20,$=Math.atan2(I,M)*180/Math.PI,H=$<0?$+360:$>=360?$-360:$,Y=H*Math.PI/180,ne=B*s.nbb,ve=100*Math.pow(ne/s.aw,s.c*s.z),ee=4/s.c*Math.sqrt(ve/100)*(s.aw+4)*s.fLRoot,oe=H<20.14?H+360:H,J=1/4*(Math.cos(oe*Math.PI/180+2)+3.8),ke=5e4/13*J*s.nc*s.ncb*Math.sqrt(M*M+I*I)/(N+.305),xe=Math.pow(ke,.9)*Math.pow(1.64-Math.pow(.29,s.n),.73),Ie=xe*Math.sqrt(ve/100),se=Ie*s.fLRoot,Te=50*Math.sqrt(xe*s.c/(s.aw+4)),L=(1+100*.007)*ve/(1+.007*ve),te=Math.log(1+.0228*se)/.0228,ye=te*Math.cos(Y),U=te*Math.sin(Y);return new Pa(H,Ie,ve,ee,se,Te,L,ye,U)}xyzInViewingConditions(n){const r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),a=Math.pow(r/Math.pow(1.64-Math.pow(.29,n.n),.73),1/.9),s=this.hue*Math.PI/180,c=.25*(Math.cos(s+2)+3.8),f=n.aw*Math.pow(this.j/100,1/n.c/n.z),h=c*(5e4/13)*n.nc*n.ncb,v=f/n.nbb,y=Math.sin(s),S=Math.cos(s),E=23*(v+.305)*a/(23*h+11*a*S+108*a*y),C=E*S,x=E*y,R=(460*v+451*C+288*x)/1403,T=(460*v-891*C-261*x)/1403,D=(460*v-220*C-6300*x)/1403,M=Math.max(0,27.13*Math.abs(R)/(400-Math.abs(R))),I=oa(R)*(100/n.fl)*Math.pow(M,1/.42),N=Math.max(0,27.13*Math.abs(T)/(400-Math.abs(T))),B=oa(T)*(100/n.fl)*Math.pow(N,1/.42),F=Math.max(0,27.13*Math.abs(D)/(400-Math.abs(D))),$=oa(D)*(100/n.fl)*Math.pow(F,1/.42),H=I/n.rgbD[0],Y=B/n.rgbD[1],ne=$/n.rgbD[2],ve=1.86206786*H-1.01125463*Y+.14918677*ne,ee=.38752654*H+.62144744*Y-.00897398*ne,oe=-.0158415*H-.03412294*Y+1.04996444*ne;return[ve,ee,oe]}}/**
527
+ */class Pa{constructor(n,r,a,s,c,f,h,v,y){this.hue=n,this.chroma=r,this.j=a,this.q=s,this.m=c,this.s=f,this.jstar=h,this.astar=v,this.bstar=y}distance(n){const r=this.jstar-n.jstar,a=this.astar-n.astar,s=this.bstar-n.bstar,c=Math.sqrt(r*r+a*a+s*s);return 1.41*Math.pow(c,.63)}static fromInt(n){return Pa.fromIntInViewingConditions(n,bo.DEFAULT)}static fromIntInViewingConditions(n,r){const a=(n&16711680)>>16,s=(n&65280)>>8,c=n&255,f=pd(a),h=pd(s),v=pd(c),y=.41233895*f+.35762064*h+.18051042*v,S=.2126*f+.7152*h+.0722*v,E=.01932141*f+.11916382*h+.95034478*v,C=.401288*y+.650173*S-.051461*E,x=-.250268*y+1.204414*S+.045854*E,R=-.002079*y+.048952*S+.953127*E,T=r.rgbD[0]*C,D=r.rgbD[1]*x,M=r.rgbD[2]*R,I=Math.pow(r.fl*Math.abs(T)/100,.42),N=Math.pow(r.fl*Math.abs(D)/100,.42),B=Math.pow(r.fl*Math.abs(M)/100,.42),F=oa(T)*400*I/(I+27.13),$=oa(D)*400*N/(N+27.13),H=oa(M)*400*B/(B+27.13),Y=(11*F+-12*$+H)/11,ne=(F+$-2*H)/9,ve=(20*F+20*$+21*H)/20,ee=(40*F+20*$+H)/20,J=Math.atan2(ne,Y)*180/Math.PI,pe=J<0?J+360:J>=360?J-360:J,ke=pe*Math.PI/180,xe=ee*r.nbb,Ie=100*Math.pow(xe/r.aw,r.c*r.z),se=4/r.c*Math.sqrt(Ie/100)*(r.aw+4)*r.fLRoot,Te=pe<20.14?pe+360:pe,L=.25*(Math.cos(Te*Math.PI/180+2)+3.8),ye=5e4/13*L*r.nc*r.ncb*Math.sqrt(Y*Y+ne*ne)/(ve+.305),U=Math.pow(ye,.9)*Math.pow(1.64-Math.pow(.29,r.n),.73),_e=U*Math.sqrt(Ie/100),We=_e*r.fLRoot,Re=50*Math.sqrt(U*r.c/(r.aw+4)),Oe=(1+100*.007)*Ie/(1+.007*Ie),$e=1/.0228*Math.log(1+.0228*We),Ge=$e*Math.cos(ke),Ue=$e*Math.sin(ke);return new Pa(pe,_e,Ie,se,We,Re,Oe,Ge,Ue)}static fromJch(n,r,a){return Pa.fromJchInViewingConditions(n,r,a,bo.DEFAULT)}static fromJchInViewingConditions(n,r,a,s){const c=4/s.c*Math.sqrt(n/100)*(s.aw+4)*s.fLRoot,f=r*s.fLRoot,h=r/Math.sqrt(n/100),v=50*Math.sqrt(h*s.c/(s.aw+4)),y=a*Math.PI/180,S=(1+100*.007)*n/(1+.007*n),E=1/.0228*Math.log(1+.0228*f),C=E*Math.cos(y),x=E*Math.sin(y);return new Pa(a,r,n,c,f,v,S,C,x)}static fromUcs(n,r,a){return Pa.fromUcsInViewingConditions(n,r,a,bo.DEFAULT)}static fromUcsInViewingConditions(n,r,a,s){const c=r,f=a,h=Math.sqrt(c*c+f*f),y=(Math.exp(h*.0228)-1)/.0228/s.fLRoot;let S=Math.atan2(f,c)*(180/Math.PI);S<0&&(S+=360);const E=n/(1-(n-100)*.007);return Pa.fromJchInViewingConditions(E,y,S,s)}toInt(){return this.viewed(bo.DEFAULT)}viewed(n){const r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),a=Math.pow(r/Math.pow(1.64-Math.pow(.29,n.n),.73),1/.9),s=this.hue*Math.PI/180,c=.25*(Math.cos(s+2)+3.8),f=n.aw*Math.pow(this.j/100,1/n.c/n.z),h=c*(5e4/13)*n.nc*n.ncb,v=f/n.nbb,y=Math.sin(s),S=Math.cos(s),E=23*(v+.305)*a/(23*h+11*a*S+108*a*y),C=E*S,x=E*y,R=(460*v+451*C+288*x)/1403,T=(460*v-891*C-261*x)/1403,D=(460*v-220*C-6300*x)/1403,M=Math.max(0,27.13*Math.abs(R)/(400-Math.abs(R))),I=oa(R)*(100/n.fl)*Math.pow(M,1/.42),N=Math.max(0,27.13*Math.abs(T)/(400-Math.abs(T))),B=oa(T)*(100/n.fl)*Math.pow(N,1/.42),F=Math.max(0,27.13*Math.abs(D)/(400-Math.abs(D))),$=oa(D)*(100/n.fl)*Math.pow(F,1/.42),H=I/n.rgbD[0],Y=B/n.rgbD[1],ne=$/n.rgbD[2],ve=1.86206786*H-1.01125463*Y+.14918677*ne,ee=.38752654*H+.62144744*Y-.00897398*ne,oe=-.0158415*H-.03412294*Y+1.04996444*ne;return IF(ve,ee,oe)}static fromXyzInViewingConditions(n,r,a,s){const c=.401288*n+.650173*r-.051461*a,f=-.250268*n+1.204414*r+.045854*a,h=-.002079*n+.048952*r+.953127*a,v=s.rgbD[0]*c,y=s.rgbD[1]*f,S=s.rgbD[2]*h,E=Math.pow(s.fl*Math.abs(v)/100,.42),C=Math.pow(s.fl*Math.abs(y)/100,.42),x=Math.pow(s.fl*Math.abs(S)/100,.42),R=oa(v)*400*E/(E+27.13),T=oa(y)*400*C/(C+27.13),D=oa(S)*400*x/(x+27.13),M=(11*R+-12*T+D)/11,I=(R+T-2*D)/9,N=(20*R+20*T+21*D)/20,B=(40*R+20*T+D)/20,$=Math.atan2(I,M)*180/Math.PI,H=$<0?$+360:$>=360?$-360:$,Y=H*Math.PI/180,ne=B*s.nbb,ve=100*Math.pow(ne/s.aw,s.c*s.z),ee=4/s.c*Math.sqrt(ve/100)*(s.aw+4)*s.fLRoot,oe=H<20.14?H+360:H,J=1/4*(Math.cos(oe*Math.PI/180+2)+3.8),ke=5e4/13*J*s.nc*s.ncb*Math.sqrt(M*M+I*I)/(N+.305),xe=Math.pow(ke,.9)*Math.pow(1.64-Math.pow(.29,s.n),.73),Ie=xe*Math.sqrt(ve/100),se=Ie*s.fLRoot,Te=50*Math.sqrt(xe*s.c/(s.aw+4)),L=(1+100*.007)*ve/(1+.007*ve),te=Math.log(1+.0228*se)/.0228,ye=te*Math.cos(Y),U=te*Math.sin(Y);return new Pa(H,Ie,ve,ee,se,Te,L,ye,U)}xyzInViewingConditions(n){const r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),a=Math.pow(r/Math.pow(1.64-Math.pow(.29,n.n),.73),1/.9),s=this.hue*Math.PI/180,c=.25*(Math.cos(s+2)+3.8),f=n.aw*Math.pow(this.j/100,1/n.c/n.z),h=c*(5e4/13)*n.nc*n.ncb,v=f/n.nbb,y=Math.sin(s),S=Math.cos(s),E=23*(v+.305)*a/(23*h+11*a*S+108*a*y),C=E*S,x=E*y,R=(460*v+451*C+288*x)/1403,T=(460*v-891*C-261*x)/1403,D=(460*v-220*C-6300*x)/1403,M=Math.max(0,27.13*Math.abs(R)/(400-Math.abs(R))),I=oa(R)*(100/n.fl)*Math.pow(M,1/.42),N=Math.max(0,27.13*Math.abs(T)/(400-Math.abs(T))),B=oa(T)*(100/n.fl)*Math.pow(N,1/.42),F=Math.max(0,27.13*Math.abs(D)/(400-Math.abs(D))),$=oa(D)*(100/n.fl)*Math.pow(F,1/.42),H=I/n.rgbD[0],Y=B/n.rgbD[1],ne=$/n.rgbD[2],ve=1.86206786*H-1.01125463*Y+.14918677*ne,ee=.38752654*H+.62144744*Y-.00897398*ne,oe=-.0158415*H-.03412294*Y+1.04996444*ne;return[ve,ee,oe]}}/**
528
528
  * @license
529
529
  * Copyright 2021 Google LLC
530
530
  *
@@ -539,7 +539,7 @@ to {
539
539
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
540
540
  * See the License for the specific language governing permissions and
541
541
  * limitations under the License.
542
- */class _t{static sanitizeRadians(n){return(n+Math.PI*8)%(Math.PI*2)}static trueDelinearized(n){const r=n/100;let a=0;return r<=.0031308?a=r*12.92:a=1.055*Math.pow(r,1/2.4)-.055,a*255}static chromaticAdaptation(n){const r=Math.pow(Math.abs(n),.42);return oa(n)*400*r/(r+27.13)}static hueOf(n){const r=qE(n,_t.SCALED_DISCOUNT_FROM_LINRGB),a=_t.chromaticAdaptation(r[0]),s=_t.chromaticAdaptation(r[1]),c=_t.chromaticAdaptation(r[2]),f=(11*a+-12*s+c)/11,h=(a+s-2*c)/9;return Math.atan2(h,f)}static areInCyclicOrder(n,r,a){const s=_t.sanitizeRadians(r-n),c=_t.sanitizeRadians(a-n);return s<c}static intercept(n,r,a){return(r-n)/(a-n)}static lerpPoint(n,r,a){return[n[0]+(a[0]-n[0])*r,n[1]+(a[1]-n[1])*r,n[2]+(a[2]-n[2])*r]}static setCoordinate(n,r,a,s){const c=_t.intercept(n[s],r,a[s]);return _t.lerpPoint(n,c,a)}static isBounded(n){return 0<=n&&n<=100}static nthVertex(n,r){const a=_t.Y_FROM_LINRGB[0],s=_t.Y_FROM_LINRGB[1],c=_t.Y_FROM_LINRGB[2],f=r%4<=1?0:100,h=r%2===0?0:100;if(r<4){const v=f,y=h,S=(n-v*s-y*c)/a;return _t.isBounded(S)?[S,v,y]:[-1,-1,-1]}else if(r<8){const v=f,y=h,S=(n-y*a-v*c)/s;return _t.isBounded(S)?[y,S,v]:[-1,-1,-1]}else{const v=f,y=h,S=(n-v*a-y*s)/c;return _t.isBounded(S)?[v,y,S]:[-1,-1,-1]}}static bisectToSegment(n,r){let a=[-1,-1,-1],s=a,c=0,f=0,h=!1,v=!0;for(let y=0;y<12;y++){const S=_t.nthVertex(n,y);if(S[0]<0)continue;const E=_t.hueOf(S);if(!h){a=S,s=S,c=E,f=E,h=!0;continue}(v||_t.areInCyclicOrder(c,E,f))&&(v=!1,_t.areInCyclicOrder(c,r,E)?(s=S,f=E):(a=S,c=E))}return[a,s]}static midpoint(n,r){return[(n[0]+r[0])/2,(n[1]+r[1])/2,(n[2]+r[2])/2]}static criticalPlaneBelow(n){return Math.floor(n-.5)}static criticalPlaneAbove(n){return Math.ceil(n-.5)}static bisectToLimit(n,r){const a=_t.bisectToSegment(n,r);let s=a[0],c=_t.hueOf(s),f=a[1];for(let h=0;h<3;h++)if(s[h]!==f[h]){let v=-1,y=255;s[h]<f[h]?(v=_t.criticalPlaneBelow(_t.trueDelinearized(s[h])),y=_t.criticalPlaneAbove(_t.trueDelinearized(f[h]))):(v=_t.criticalPlaneAbove(_t.trueDelinearized(s[h])),y=_t.criticalPlaneBelow(_t.trueDelinearized(f[h])));for(let S=0;S<8&&!(Math.abs(y-v)<=1);S++){const E=Math.floor((v+y)/2),C=_t.CRITICAL_PLANES[E],x=_t.setCoordinate(s,C,f,h),R=_t.hueOf(x);_t.areInCyclicOrder(c,r,R)?(f=x,y=E):(s=x,c=R,v=E)}}return _t.midpoint(s,f)}static inverseChromaticAdaptation(n){const r=Math.abs(n),a=Math.max(0,27.13*r/(400-r));return oa(n)*Math.pow(a,1/.42)}static findResultByJ(n,r,a){let s=Math.sqrt(a)*11;const c=bo.DEFAULT,f=1/Math.pow(1.64-Math.pow(.29,c.n),.73),v=.25*(Math.cos(n+2)+3.8)*(5e4/13)*c.nc*c.ncb,y=Math.sin(n),S=Math.cos(n);for(let E=0;E<5;E++){const C=s/100,x=r===0||s===0?0:r/Math.sqrt(C),R=Math.pow(x*f,1/.9),D=c.aw*Math.pow(C,1/c.c/c.z)/c.nbb,M=23*(D+.305)*R/(23*v+11*R*S+108*R*y),I=M*S,N=M*y,B=(460*D+451*I+288*N)/1403,F=(460*D-891*I-261*N)/1403,$=(460*D-220*I-6300*N)/1403,H=_t.inverseChromaticAdaptation(B),Y=_t.inverseChromaticAdaptation(F),ne=_t.inverseChromaticAdaptation($),ve=qE([H,Y,ne],_t.LINRGB_FROM_SCALED_DISCOUNT);if(ve[0]<0||ve[1]<0||ve[2]<0)return 0;const ee=_t.Y_FROM_LINRGB[0],oe=_t.Y_FROM_LINRGB[1],J=_t.Y_FROM_LINRGB[2],pe=ee*ve[0]+oe*ve[1]+J*ve[2];if(pe<=0)return 0;if(E===4||Math.abs(pe-a)<.002)return ve[0]>100.01||ve[1]>100.01||ve[2]>100.01?0:j5(ve);s=s-(pe-a)*s/(2*pe)}return 0}static solveToInt(n,r,a){if(r<1e-4||a<1e-4||a>99.9999)return zF(a);n=OF(n);const s=n/180*Math.PI,c=uu(a),f=_t.findResultByJ(s,r,c);if(f!==0)return f;const h=_t.bisectToLimit(c,s);return j5(h)}static solveToCam(n,r,a){return Pa.fromInt(_t.solveToInt(n,r,a))}}_t.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]],_t.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]],_t.Y_FROM_LINRGB=[.2126,.7152,.0722],_t.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];/**
542
+ */class _t{static sanitizeRadians(n){return(n+Math.PI*8)%(Math.PI*2)}static trueDelinearized(n){const r=n/100;let a=0;return r<=.0031308?a=r*12.92:a=1.055*Math.pow(r,1/2.4)-.055,a*255}static chromaticAdaptation(n){const r=Math.pow(Math.abs(n),.42);return oa(n)*400*r/(r+27.13)}static hueOf(n){const r=qE(n,_t.SCALED_DISCOUNT_FROM_LINRGB),a=_t.chromaticAdaptation(r[0]),s=_t.chromaticAdaptation(r[1]),c=_t.chromaticAdaptation(r[2]),f=(11*a+-12*s+c)/11,h=(a+s-2*c)/9;return Math.atan2(h,f)}static areInCyclicOrder(n,r,a){const s=_t.sanitizeRadians(r-n),c=_t.sanitizeRadians(a-n);return s<c}static intercept(n,r,a){return(r-n)/(a-n)}static lerpPoint(n,r,a){return[n[0]+(a[0]-n[0])*r,n[1]+(a[1]-n[1])*r,n[2]+(a[2]-n[2])*r]}static setCoordinate(n,r,a,s){const c=_t.intercept(n[s],r,a[s]);return _t.lerpPoint(n,c,a)}static isBounded(n){return 0<=n&&n<=100}static nthVertex(n,r){const a=_t.Y_FROM_LINRGB[0],s=_t.Y_FROM_LINRGB[1],c=_t.Y_FROM_LINRGB[2],f=r%4<=1?0:100,h=r%2===0?0:100;if(r<4){const v=f,y=h,S=(n-v*s-y*c)/a;return _t.isBounded(S)?[S,v,y]:[-1,-1,-1]}else if(r<8){const v=f,y=h,S=(n-y*a-v*c)/s;return _t.isBounded(S)?[y,S,v]:[-1,-1,-1]}else{const v=f,y=h,S=(n-v*a-y*s)/c;return _t.isBounded(S)?[v,y,S]:[-1,-1,-1]}}static bisectToSegment(n,r){let a=[-1,-1,-1],s=a,c=0,f=0,h=!1,v=!0;for(let y=0;y<12;y++){const S=_t.nthVertex(n,y);if(S[0]<0)continue;const E=_t.hueOf(S);if(!h){a=S,s=S,c=E,f=E,h=!0;continue}(v||_t.areInCyclicOrder(c,E,f))&&(v=!1,_t.areInCyclicOrder(c,r,E)?(s=S,f=E):(a=S,c=E))}return[a,s]}static midpoint(n,r){return[(n[0]+r[0])/2,(n[1]+r[1])/2,(n[2]+r[2])/2]}static criticalPlaneBelow(n){return Math.floor(n-.5)}static criticalPlaneAbove(n){return Math.ceil(n-.5)}static bisectToLimit(n,r){const a=_t.bisectToSegment(n,r);let s=a[0],c=_t.hueOf(s),f=a[1];for(let h=0;h<3;h++)if(s[h]!==f[h]){let v=-1,y=255;s[h]<f[h]?(v=_t.criticalPlaneBelow(_t.trueDelinearized(s[h])),y=_t.criticalPlaneAbove(_t.trueDelinearized(f[h]))):(v=_t.criticalPlaneAbove(_t.trueDelinearized(s[h])),y=_t.criticalPlaneBelow(_t.trueDelinearized(f[h])));for(let S=0;S<8&&!(Math.abs(y-v)<=1);S++){const E=Math.floor((v+y)/2),C=_t.CRITICAL_PLANES[E],x=_t.setCoordinate(s,C,f,h),R=_t.hueOf(x);_t.areInCyclicOrder(c,r,R)?(f=x,y=E):(s=x,c=R,v=E)}}return _t.midpoint(s,f)}static inverseChromaticAdaptation(n){const r=Math.abs(n),a=Math.max(0,27.13*r/(400-r));return oa(n)*Math.pow(a,1/.42)}static findResultByJ(n,r,a){let s=Math.sqrt(a)*11;const c=bo.DEFAULT,f=1/Math.pow(1.64-Math.pow(.29,c.n),.73),v=.25*(Math.cos(n+2)+3.8)*(5e4/13)*c.nc*c.ncb,y=Math.sin(n),S=Math.cos(n);for(let E=0;E<5;E++){const C=s/100,x=r===0||s===0?0:r/Math.sqrt(C),R=Math.pow(x*f,1/.9),D=c.aw*Math.pow(C,1/c.c/c.z)/c.nbb,M=23*(D+.305)*R/(23*v+11*R*S+108*R*y),I=M*S,N=M*y,B=(460*D+451*I+288*N)/1403,F=(460*D-891*I-261*N)/1403,$=(460*D-220*I-6300*N)/1403,H=_t.inverseChromaticAdaptation(B),Y=_t.inverseChromaticAdaptation(F),ne=_t.inverseChromaticAdaptation($),ve=qE([H,Y,ne],_t.LINRGB_FROM_SCALED_DISCOUNT);if(ve[0]<0||ve[1]<0||ve[2]<0)return 0;const ee=_t.Y_FROM_LINRGB[0],oe=_t.Y_FROM_LINRGB[1],J=_t.Y_FROM_LINRGB[2],pe=ee*ve[0]+oe*ve[1]+J*ve[2];if(pe<=0)return 0;if(E===4||Math.abs(pe-a)<.002)return ve[0]>100.01||ve[1]>100.01||ve[2]>100.01?0:j5(ve);s=s-(pe-a)*s/(2*pe)}return 0}static solveToInt(n,r,a){if(r<1e-4||a<1e-4||a>99.9999)return jF(a);n=DF(n);const s=n/180*Math.PI,c=uu(a),f=_t.findResultByJ(s,r,c);if(f!==0)return f;const h=_t.bisectToLimit(c,s);return j5(h)}static solveToCam(n,r,a){return Pa.fromInt(_t.solveToInt(n,r,a))}}_t.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]],_t.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]],_t.Y_FROM_LINRGB=[.2126,.7152,.0722],_t.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];/**
543
543
  * @license
544
544
  * Copyright 2021 Google LLC
545
545
  *
@@ -659,8 +659,8 @@ to {
659
659
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
660
660
  * See the License for the specific language governing permissions and
661
661
  * limitations under the License.
662
- */function hd(e){return e.variant===Kh.FIDELITY||e.variant===Kh.CONTENT}function Sr(e){return e.variant===Kh.MONOCHROME}function UF(e,n,r,a){let s=r,c=Mc.from(e,n,r);if(c.chroma<n){let f=c.chroma;for(;c.chroma<n;){s+=a?-1:1;const h=Mc.from(e,n,s);if(f>h.chroma||Math.abs(h.chroma-n)<.4)break;const v=Math.abs(h.chroma-n),y=Math.abs(c.chroma-n);v<y&&(c=h),f=Math.max(f,h.chroma)}}return s}function BF(e){return bo.make(void 0,void 0,e.isDark?30:80,void 0,void 0)}function KE(e,n){const r=e.inViewingConditions(BF(n));return Qe.tonePrefersLightForeground(e.tone)&&!Qe.toneAllowsLightForeground(r.tone)?Qe.enableLightForeground(e.tone):Qe.enableLightForeground(r.tone)}class ge{static highestSurface(n){return n.isDark?ge.surfaceBright:ge.surfaceDim}}ge.contentAccentToneDelta=15,ge.primaryPaletteKeyColor=Qe.fromPalette({name:"primary_palette_key_color",palette:e=>e.primaryPalette,tone:e=>e.primaryPalette.keyColor.tone}),ge.secondaryPaletteKeyColor=Qe.fromPalette({name:"secondary_palette_key_color",palette:e=>e.secondaryPalette,tone:e=>e.secondaryPalette.keyColor.tone}),ge.tertiaryPaletteKeyColor=Qe.fromPalette({name:"tertiary_palette_key_color",palette:e=>e.tertiaryPalette,tone:e=>e.tertiaryPalette.keyColor.tone}),ge.neutralPaletteKeyColor=Qe.fromPalette({name:"neutral_palette_key_color",palette:e=>e.neutralPalette,tone:e=>e.neutralPalette.keyColor.tone}),ge.neutralVariantPaletteKeyColor=Qe.fromPalette({name:"neutral_variant_palette_key_color",palette:e=>e.neutralVariantPalette,tone:e=>e.neutralVariantPalette.keyColor.tone}),ge.background=Qe.fromPalette({name:"background",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0}),ge.onBackground=Qe.fromPalette({name:"on_background",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>ge.background,contrastCurve:new on(3,3,4.5,7)}),ge.surface=Qe.fromPalette({name:"surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0}),ge.surfaceDim=Qe.fromPalette({name:"surface_dim",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:87,isBackground:!0}),ge.surfaceBright=Qe.fromPalette({name:"surface_bright",palette:e=>e.neutralPalette,tone:e=>e.isDark?24:98,isBackground:!0}),ge.surfaceContainerLowest=Qe.fromPalette({name:"surface_container_lowest",palette:e=>e.neutralPalette,tone:e=>e.isDark?4:100,isBackground:!0}),ge.surfaceContainerLow=Qe.fromPalette({name:"surface_container_low",palette:e=>e.neutralPalette,tone:e=>e.isDark?10:96,isBackground:!0}),ge.surfaceContainer=Qe.fromPalette({name:"surface_container",palette:e=>e.neutralPalette,tone:e=>e.isDark?12:94,isBackground:!0}),ge.surfaceContainerHigh=Qe.fromPalette({name:"surface_container_high",palette:e=>e.neutralPalette,tone:e=>e.isDark?17:92,isBackground:!0}),ge.surfaceContainerHighest=Qe.fromPalette({name:"surface_container_highest",palette:e=>e.neutralPalette,tone:e=>e.isDark?22:90,isBackground:!0}),ge.onSurface=Qe.fromPalette({name:"on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>ge.highestSurface(e),contrastCurve:new on(4.5,7,11,21)}),ge.surfaceVariant=Qe.fromPalette({name:"surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:90,isBackground:!0}),ge.onSurfaceVariant=Qe.fromPalette({name:"on_surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?80:30,background:e=>ge.highestSurface(e),contrastCurve:new on(3,4.5,7,11)}),ge.inverseSurface=Qe.fromPalette({name:"inverse_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:20}),ge.inverseOnSurface=Qe.fromPalette({name:"inverse_on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?20:95,background:e=>ge.inverseSurface,contrastCurve:new on(4.5,7,11,21)}),ge.outline=Qe.fromPalette({name:"outline",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?60:50,background:e=>ge.highestSurface(e),contrastCurve:new on(1.5,3,4.5,7)}),ge.outlineVariant=Qe.fromPalette({name:"outline_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:80,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7)}),ge.shadow=Qe.fromPalette({name:"shadow",palette:e=>e.neutralPalette,tone:e=>0}),ge.scrim=Qe.fromPalette({name:"scrim",palette:e=>e.neutralPalette,tone:e=>0}),ge.surfaceTint=Qe.fromPalette({name:"surface_tint",palette:e=>e.primaryPalette,tone:e=>e.isDark?80:40,isBackground:!0}),ge.primary=Qe.fromPalette({name:"primary",palette:e=>e.primaryPalette,tone:e=>Sr(e)?e.isDark?100:0:e.isDark?80:40,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(3,4.5,7,11),toneDeltaPair:e=>new la(ge.primaryContainer,ge.primary,15,"nearer",!1)}),ge.onPrimary=Qe.fromPalette({name:"on_primary",palette:e=>e.primaryPalette,tone:e=>Sr(e)?e.isDark?10:90:e.isDark?20:100,background:e=>ge.primary,contrastCurve:new on(4.5,7,11,21)}),ge.primaryContainer=Qe.fromPalette({name:"primary_container",palette:e=>e.primaryPalette,tone:e=>hd(e)?KE(e.sourceColorHct,e):Sr(e)?e.isDark?85:25:e.isDark?30:90,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.primaryContainer,ge.primary,15,"nearer",!1)}),ge.onPrimaryContainer=Qe.fromPalette({name:"on_primary_container",palette:e=>e.primaryPalette,tone:e=>hd(e)?Qe.foregroundTone(ge.primaryContainer.tone(e),4.5):Sr(e)?e.isDark?0:100:e.isDark?90:10,background:e=>ge.primaryContainer,contrastCurve:new on(4.5,7,11,21)}),ge.inversePrimary=Qe.fromPalette({name:"inverse_primary",palette:e=>e.primaryPalette,tone:e=>e.isDark?40:80,background:e=>ge.inverseSurface,contrastCurve:new on(3,4.5,7,11)}),ge.secondary=Qe.fromPalette({name:"secondary",palette:e=>e.secondaryPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(3,4.5,7,11),toneDeltaPair:e=>new la(ge.secondaryContainer,ge.secondary,15,"nearer",!1)}),ge.onSecondary=Qe.fromPalette({name:"on_secondary",palette:e=>e.secondaryPalette,tone:e=>Sr(e)?e.isDark?10:100:e.isDark?20:100,background:e=>ge.secondary,contrastCurve:new on(4.5,7,11,21)}),ge.secondaryContainer=Qe.fromPalette({name:"secondary_container",palette:e=>e.secondaryPalette,tone:e=>{const n=e.isDark?30:90;if(Sr(e))return e.isDark?30:85;if(!hd(e))return n;let r=UF(e.secondaryPalette.hue,e.secondaryPalette.chroma,n,!e.isDark);return r=KE(e.secondaryPalette.getHct(r),e),r},isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.secondaryContainer,ge.secondary,15,"nearer",!1)}),ge.onSecondaryContainer=Qe.fromPalette({name:"on_secondary_container",palette:e=>e.secondaryPalette,tone:e=>hd(e)?Qe.foregroundTone(ge.secondaryContainer.tone(e),4.5):e.isDark?90:10,background:e=>ge.secondaryContainer,contrastCurve:new on(4.5,7,11,21)}),ge.tertiary=Qe.fromPalette({name:"tertiary",palette:e=>e.tertiaryPalette,tone:e=>Sr(e)?e.isDark?90:25:e.isDark?80:40,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(3,4.5,7,11),toneDeltaPair:e=>new la(ge.tertiaryContainer,ge.tertiary,15,"nearer",!1)}),ge.onTertiary=Qe.fromPalette({name:"on_tertiary",palette:e=>e.tertiaryPalette,tone:e=>Sr(e)?e.isDark?10:90:e.isDark?20:100,background:e=>ge.tertiary,contrastCurve:new on(4.5,7,11,21)}),ge.tertiaryContainer=Qe.fromPalette({name:"tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>{if(Sr(e))return e.isDark?60:49;if(!hd(e))return e.isDark?30:90;const n=KE(e.tertiaryPalette.getHct(e.sourceColorHct.tone),e),r=e.tertiaryPalette.getHct(n);return ZE.fixIfDisliked(r).tone},isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.tertiaryContainer,ge.tertiary,15,"nearer",!1)}),ge.onTertiaryContainer=Qe.fromPalette({name:"on_tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>Sr(e)?e.isDark?0:100:hd(e)?Qe.foregroundTone(ge.tertiaryContainer.tone(e),4.5):e.isDark?90:10,background:e=>ge.tertiaryContainer,contrastCurve:new on(4.5,7,11,21)}),ge.error=Qe.fromPalette({name:"error",palette:e=>e.errorPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(3,4.5,7,11),toneDeltaPair:e=>new la(ge.errorContainer,ge.error,15,"nearer",!1)}),ge.onError=Qe.fromPalette({name:"on_error",palette:e=>e.errorPalette,tone:e=>e.isDark?20:100,background:e=>ge.error,contrastCurve:new on(4.5,7,11,21)}),ge.errorContainer=Qe.fromPalette({name:"error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?30:90,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.errorContainer,ge.error,15,"nearer",!1)}),ge.onErrorContainer=Qe.fromPalette({name:"on_error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?90:10,background:e=>ge.errorContainer,contrastCurve:new on(4.5,7,11,21)}),ge.primaryFixed=Qe.fromPalette({name:"primary_fixed",palette:e=>e.primaryPalette,tone:e=>Sr(e)?40:90,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.primaryFixed,ge.primaryFixedDim,10,"lighter",!0)}),ge.primaryFixedDim=Qe.fromPalette({name:"primary_fixed_dim",palette:e=>e.primaryPalette,tone:e=>Sr(e)?30:80,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.primaryFixed,ge.primaryFixedDim,10,"lighter",!0)}),ge.onPrimaryFixed=Qe.fromPalette({name:"on_primary_fixed",palette:e=>e.primaryPalette,tone:e=>Sr(e)?100:10,background:e=>ge.primaryFixedDim,secondBackground:e=>ge.primaryFixed,contrastCurve:new on(4.5,7,11,21)}),ge.onPrimaryFixedVariant=Qe.fromPalette({name:"on_primary_fixed_variant",palette:e=>e.primaryPalette,tone:e=>Sr(e)?90:30,background:e=>ge.primaryFixedDim,secondBackground:e=>ge.primaryFixed,contrastCurve:new on(3,4.5,7,11)}),ge.secondaryFixed=Qe.fromPalette({name:"secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>Sr(e)?80:90,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.secondaryFixed,ge.secondaryFixedDim,10,"lighter",!0)}),ge.secondaryFixedDim=Qe.fromPalette({name:"secondary_fixed_dim",palette:e=>e.secondaryPalette,tone:e=>Sr(e)?70:80,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.secondaryFixed,ge.secondaryFixedDim,10,"lighter",!0)}),ge.onSecondaryFixed=Qe.fromPalette({name:"on_secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>10,background:e=>ge.secondaryFixedDim,secondBackground:e=>ge.secondaryFixed,contrastCurve:new on(4.5,7,11,21)}),ge.onSecondaryFixedVariant=Qe.fromPalette({name:"on_secondary_fixed_variant",palette:e=>e.secondaryPalette,tone:e=>Sr(e)?25:30,background:e=>ge.secondaryFixedDim,secondBackground:e=>ge.secondaryFixed,contrastCurve:new on(3,4.5,7,11)}),ge.tertiaryFixed=Qe.fromPalette({name:"tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>Sr(e)?40:90,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.tertiaryFixed,ge.tertiaryFixedDim,10,"lighter",!0)}),ge.tertiaryFixedDim=Qe.fromPalette({name:"tertiary_fixed_dim",palette:e=>e.tertiaryPalette,tone:e=>Sr(e)?30:80,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.tertiaryFixed,ge.tertiaryFixedDim,10,"lighter",!0)}),ge.onTertiaryFixed=Qe.fromPalette({name:"on_tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>Sr(e)?100:10,background:e=>ge.tertiaryFixedDim,secondBackground:e=>ge.tertiaryFixed,contrastCurve:new on(4.5,7,11,21)}),ge.onTertiaryFixedVariant=Qe.fromPalette({name:"on_tertiary_fixed_variant",palette:e=>e.tertiaryPalette,tone:e=>Sr(e)?90:30,background:e=>ge.tertiaryFixedDim,secondBackground:e=>ge.tertiaryFixed,contrastCurve:new on(3,4.5,7,11)});var VF={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const Gh=VF,B5={};for(const e of Object.keys(Gh))B5[Gh[e]]=e;const pt={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var V5=pt;for(const e of Object.keys(pt)){if(!("channels"in pt[e]))throw new Error("missing channels property: "+e);if(!("labels"in pt[e]))throw new Error("missing channel labels property: "+e);if(pt[e].labels.length!==pt[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:n,labels:r}=pt[e];delete pt[e].channels,delete pt[e].labels,Object.defineProperty(pt[e],"channels",{value:n}),Object.defineProperty(pt[e],"labels",{value:r})}pt.rgb.hsl=function(e){const n=e[0]/255,r=e[1]/255,a=e[2]/255,s=Math.min(n,r,a),c=Math.max(n,r,a),f=c-s;let h,v;c===s?h=0:n===c?h=(r-a)/f:r===c?h=2+(a-n)/f:a===c&&(h=4+(n-r)/f),h=Math.min(h*60,360),h<0&&(h+=360);const y=(s+c)/2;return c===s?v=0:y<=.5?v=f/(c+s):v=f/(2-c-s),[h,v*100,y*100]},pt.rgb.hsv=function(e){let n,r,a,s,c;const f=e[0]/255,h=e[1]/255,v=e[2]/255,y=Math.max(f,h,v),S=y-Math.min(f,h,v),E=function(C){return(y-C)/6/S+1/2};return S===0?(s=0,c=0):(c=S/y,n=E(f),r=E(h),a=E(v),f===y?s=a-r:h===y?s=1/3+n-a:v===y&&(s=2/3+r-n),s<0?s+=1:s>1&&(s-=1)),[s*360,c*100,y*100]},pt.rgb.hwb=function(e){const n=e[0],r=e[1];let a=e[2];const s=pt.rgb.hsl(e)[0],c=1/255*Math.min(n,Math.min(r,a));return a=1-1/255*Math.max(n,Math.max(r,a)),[s,c*100,a*100]},pt.rgb.cmyk=function(e){const n=e[0]/255,r=e[1]/255,a=e[2]/255,s=Math.min(1-n,1-r,1-a),c=(1-n-s)/(1-s)||0,f=(1-r-s)/(1-s)||0,h=(1-a-s)/(1-s)||0;return[c*100,f*100,h*100,s*100]};function HF(e,n){return(e[0]-n[0])**2+(e[1]-n[1])**2+(e[2]-n[2])**2}pt.rgb.keyword=function(e){const n=B5[e];if(n)return n;let r=1/0,a;for(const s of Object.keys(Gh)){const c=Gh[s],f=HF(e,c);f<r&&(r=f,a=s)}return a},pt.keyword.rgb=function(e){return Gh[e]},pt.rgb.xyz=function(e){let n=e[0]/255,r=e[1]/255,a=e[2]/255;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;const s=n*.4124+r*.3576+a*.1805,c=n*.2126+r*.7152+a*.0722,f=n*.0193+r*.1192+a*.9505;return[s*100,c*100,f*100]},pt.rgb.lab=function(e){const n=pt.rgb.xyz(e);let r=n[0],a=n[1],s=n[2];r/=95.047,a/=100,s/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;const c=116*a-16,f=500*(r-a),h=200*(a-s);return[c,f,h]},pt.hsl.rgb=function(e){const n=e[0]/360,r=e[1]/100,a=e[2]/100;let s,c,f;if(r===0)return f=a*255,[f,f,f];a<.5?s=a*(1+r):s=a+r-a*r;const h=2*a-s,v=[0,0,0];for(let y=0;y<3;y++)c=n+1/3*-(y-1),c<0&&c++,c>1&&c--,6*c<1?f=h+(s-h)*6*c:2*c<1?f=s:3*c<2?f=h+(s-h)*(2/3-c)*6:f=h,v[y]=f*255;return v},pt.hsl.hsv=function(e){const n=e[0];let r=e[1]/100,a=e[2]/100,s=r;const c=Math.max(a,.01);a*=2,r*=a<=1?a:2-a,s*=c<=1?c:2-c;const f=(a+r)/2,h=a===0?2*s/(c+s):2*r/(a+r);return[n,h*100,f*100]},pt.hsv.rgb=function(e){const n=e[0]/60,r=e[1]/100;let a=e[2]/100;const s=Math.floor(n)%6,c=n-Math.floor(n),f=255*a*(1-r),h=255*a*(1-r*c),v=255*a*(1-r*(1-c));switch(a*=255,s){case 0:return[a,v,f];case 1:return[h,a,f];case 2:return[f,a,v];case 3:return[f,h,a];case 4:return[v,f,a];case 5:return[a,f,h]}},pt.hsv.hsl=function(e){const n=e[0],r=e[1]/100,a=e[2]/100,s=Math.max(a,.01);let c,f;f=(2-r)*a;const h=(2-r)*s;return c=r*s,c/=h<=1?h:2-h,c=c||0,f/=2,[n,c*100,f*100]},pt.hwb.rgb=function(e){const n=e[0]/360;let r=e[1]/100,a=e[2]/100;const s=r+a;let c;s>1&&(r/=s,a/=s);const f=Math.floor(6*n),h=1-a;c=6*n-f,f&1&&(c=1-c);const v=r+c*(h-r);let y,S,E;switch(f){default:case 6:case 0:y=h,S=v,E=r;break;case 1:y=v,S=h,E=r;break;case 2:y=r,S=h,E=v;break;case 3:y=r,S=v,E=h;break;case 4:y=v,S=r,E=h;break;case 5:y=h,S=r,E=v;break}return[y*255,S*255,E*255]},pt.cmyk.rgb=function(e){const n=e[0]/100,r=e[1]/100,a=e[2]/100,s=e[3]/100,c=1-Math.min(1,n*(1-s)+s),f=1-Math.min(1,r*(1-s)+s),h=1-Math.min(1,a*(1-s)+s);return[c*255,f*255,h*255]},pt.xyz.rgb=function(e){const n=e[0]/100,r=e[1]/100,a=e[2]/100;let s,c,f;return s=n*3.2406+r*-1.5372+a*-.4986,c=n*-.9689+r*1.8758+a*.0415,f=n*.0557+r*-.204+a*1.057,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,f=f>.0031308?1.055*f**(1/2.4)-.055:f*12.92,s=Math.min(Math.max(0,s),1),c=Math.min(Math.max(0,c),1),f=Math.min(Math.max(0,f),1),[s*255,c*255,f*255]},pt.xyz.lab=function(e){let n=e[0],r=e[1],a=e[2];n/=95.047,r/=100,a/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;const s=116*r-16,c=500*(n-r),f=200*(r-a);return[s,c,f]},pt.lab.xyz=function(e){const n=e[0],r=e[1],a=e[2];let s,c,f;c=(n+16)/116,s=r/500+c,f=c-a/200;const h=c**3,v=s**3,y=f**3;return c=h>.008856?h:(c-16/116)/7.787,s=v>.008856?v:(s-16/116)/7.787,f=y>.008856?y:(f-16/116)/7.787,s*=95.047,c*=100,f*=108.883,[s,c,f]},pt.lab.lch=function(e){const n=e[0],r=e[1],a=e[2];let s;s=Math.atan2(a,r)*360/2/Math.PI,s<0&&(s+=360);const f=Math.sqrt(r*r+a*a);return[n,f,s]},pt.lch.lab=function(e){const n=e[0],r=e[1],s=e[2]/360*2*Math.PI,c=r*Math.cos(s),f=r*Math.sin(s);return[n,c,f]},pt.rgb.ansi16=function(e,n=null){const[r,a,s]=e;let c=n===null?pt.rgb.hsv(e)[2]:n;if(c=Math.round(c/50),c===0)return 30;let f=30+(Math.round(s/255)<<2|Math.round(a/255)<<1|Math.round(r/255));return c===2&&(f+=60),f},pt.hsv.ansi16=function(e){return pt.rgb.ansi16(pt.hsv.rgb(e),e[2])},pt.rgb.ansi256=function(e){const n=e[0],r=e[1],a=e[2];return n===r&&r===a?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(r/255*5)+Math.round(a/255*5)},pt.ansi16.rgb=function(e){let n=e%10;if(n===0||n===7)return e>50&&(n+=3.5),n=n/10.5*255,[n,n,n];const r=(~~(e>50)+1)*.5,a=(n&1)*r*255,s=(n>>1&1)*r*255,c=(n>>2&1)*r*255;return[a,s,c]},pt.ansi256.rgb=function(e){if(e>=232){const c=(e-232)*10+8;return[c,c,c]}e-=16;let n;const r=Math.floor(e/36)/5*255,a=Math.floor((n=e%36)/6)/5*255,s=n%6/5*255;return[r,a,s]},pt.rgb.hex=function(e){const r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r},pt.hex.rgb=function(e){const n=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n)return[0,0,0];let r=n[0];n[0].length===3&&(r=r.split("").map(h=>h+h).join(""));const a=parseInt(r,16),s=a>>16&255,c=a>>8&255,f=a&255;return[s,c,f]},pt.rgb.hcg=function(e){const n=e[0]/255,r=e[1]/255,a=e[2]/255,s=Math.max(Math.max(n,r),a),c=Math.min(Math.min(n,r),a),f=s-c;let h,v;return f<1?h=c/(1-f):h=0,f<=0?v=0:s===n?v=(r-a)/f%6:s===r?v=2+(a-n)/f:v=4+(n-r)/f,v/=6,v%=1,[v*360,f*100,h*100]},pt.hsl.hcg=function(e){const n=e[1]/100,r=e[2]/100,a=r<.5?2*n*r:2*n*(1-r);let s=0;return a<1&&(s=(r-.5*a)/(1-a)),[e[0],a*100,s*100]},pt.hsv.hcg=function(e){const n=e[1]/100,r=e[2]/100,a=n*r;let s=0;return a<1&&(s=(r-a)/(1-a)),[e[0],a*100,s*100]},pt.hcg.rgb=function(e){const n=e[0]/360,r=e[1]/100,a=e[2]/100;if(r===0)return[a*255,a*255,a*255];const s=[0,0,0],c=n%1*6,f=c%1,h=1-f;let v=0;switch(Math.floor(c)){case 0:s[0]=1,s[1]=f,s[2]=0;break;case 1:s[0]=h,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=f;break;case 3:s[0]=0,s[1]=h,s[2]=1;break;case 4:s[0]=f,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=h}return v=(1-r)*a,[(r*s[0]+v)*255,(r*s[1]+v)*255,(r*s[2]+v)*255]},pt.hcg.hsv=function(e){const n=e[1]/100,r=e[2]/100,a=n+r*(1-n);let s=0;return a>0&&(s=n/a),[e[0],s*100,a*100]},pt.hcg.hsl=function(e){const n=e[1]/100,a=e[2]/100*(1-n)+.5*n;let s=0;return a>0&&a<.5?s=n/(2*a):a>=.5&&a<1&&(s=n/(2*(1-a))),[e[0],s*100,a*100]},pt.hcg.hwb=function(e){const n=e[1]/100,r=e[2]/100,a=n+r*(1-n);return[e[0],(a-n)*100,(1-a)*100]},pt.hwb.hcg=function(e){const n=e[1]/100,a=1-e[2]/100,s=a-n;let c=0;return s<1&&(c=(a-s)/(1-s)),[e[0],s*100,c*100]},pt.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},pt.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},pt.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},pt.gray.hsl=function(e){return[0,0,e[0]]},pt.gray.hsv=pt.gray.hsl,pt.gray.hwb=function(e){return[0,100,e[0]]},pt.gray.cmyk=function(e){return[0,0,0,e[0]]},pt.gray.lab=function(e){return[e[0],0,0]},pt.gray.hex=function(e){const n=Math.round(e[0]/100*255)&255,a=((n<<16)+(n<<8)+n).toString(16).toUpperCase();return"000000".substring(a.length)+a},pt.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const Og=V5;function qF(){const e={},n=Object.keys(Og);for(let r=n.length,a=0;a<r;a++)e[n[a]]={distance:-1,parent:null};return e}function WF(e){const n=qF(),r=[e];for(n[e].distance=0;r.length;){const a=r.pop(),s=Object.keys(Og[a]);for(let c=s.length,f=0;f<c;f++){const h=s[f],v=n[h];v.distance===-1&&(v.distance=n[a].distance+1,v.parent=a,r.unshift(h))}}return n}function YF(e,n){return function(r){return n(e(r))}}function ZF(e,n){const r=[n[e].parent,e];let a=Og[n[e].parent][e],s=n[e].parent;for(;n[s].parent;)r.unshift(n[s].parent),a=YF(Og[n[s].parent][s],a),s=n[s].parent;return a.conversion=r,a}var KF=function(e){const n=WF(e),r={},a=Object.keys(n);for(let s=a.length,c=0;c<s;c++){const f=a[c];n[f].parent!==null&&(r[f]=ZF(f,n))}return r};const GE=V5,GF=KF,Qh={},QF=Object.keys(GE);function XF(e){const n=function(...r){const a=r[0];return a==null?a:(a.length>1&&(r=a),e(r))};return"conversion"in e&&(n.conversion=e.conversion),n}function JF(e){const n=function(...r){const a=r[0];if(a==null)return a;a.length>1&&(r=a);const s=e(r);if(typeof s=="object")for(let c=s.length,f=0;f<c;f++)s[f]=Math.round(s[f]);return s};return"conversion"in e&&(n.conversion=e.conversion),n}QF.forEach(e=>{Qh[e]={},Object.defineProperty(Qh[e],"channels",{value:GE[e].channels}),Object.defineProperty(Qh[e],"labels",{value:GE[e].labels});const n=GF(e);Object.keys(n).forEach(a=>{const s=n[a];Qh[e][a]=JF(s),Qh[e][a].raw=XF(s)})});var H5={},q5={},QE={exports:{}},Wn=String,W5=function(){return{isColorSupported:!1,reset:Wn,bold:Wn,dim:Wn,italic:Wn,underline:Wn,inverse:Wn,hidden:Wn,strikethrough:Wn,black:Wn,red:Wn,green:Wn,yellow:Wn,blue:Wn,magenta:Wn,cyan:Wn,white:Wn,gray:Wn,bgBlack:Wn,bgRed:Wn,bgGreen:Wn,bgYellow:Wn,bgBlue:Wn,bgMagenta:Wn,bgCyan:Wn,bgWhite:Wn}};QE.exports=W5(),QE.exports.createColors=W5;var eI=QE.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function n(v,y){for(var S in y)Object.defineProperty(v,S,{enumerable:!0,get:y[S]})}n(e,{dim:function(){return f},default:function(){return h}});const r=a(eI);function a(v){return v&&v.__esModule?v:{default:v}}let s=new Set;function c(v,y,S){typeof process<"u"&&process.env.JEST_WORKER_ID||S&&s.has(S)||(S&&s.add(S),console.warn(""),y.forEach(E=>console.warn(v,"-",E)))}function f(v){return r.default.dim(v)}const h={info(v,y){c(r.default.bold(r.default.cyan("info")),...Array.isArray(v)?[v]:[y,v])},warn(v,y){c(r.default.bold(r.default.yellow("warn")),...Array.isArray(v)?[v]:[y,v])},risk(v,y){c(r.default.bold(r.default.magenta("risk")),...Array.isArray(v)?[v]:[y,v])}}})(q5),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return s}});const n=r(q5);function r(c){return c&&c.__esModule?c:{default:c}}function a({version:c,from:f,to:h}){n.default.warn(`${f}-color-renamed`,[`As of Tailwind CSS ${c}, \`${f}\` has been renamed to \`${h}\`.`,"Update your configuration file to silence this warning."])}const s={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return a({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return a({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return a({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return a({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return a({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}(H5);let XE=H5;(XE.__esModule?XE:{default:XE}).default;class Y5{constructor(){Gs(this,"eventMap");this.eventMap={}}on(n,r){var a;return this.eventMap[n]||(this.eventMap[n]=new Set),(a=this.eventMap[n])==null||a.add(r),()=>{var s;(s=this.eventMap[n])==null||s.delete(r)}}emit(n,r){var a;(a=this.eventMap[n])==null||a.forEach(s=>{s(r)})}}const tI=new Y5;var hn;(function(e){e.assertEqual=s=>s;function n(s){}e.assertIs=n;function r(s){throw new Error}e.assertNever=r,e.arrayToEnum=s=>{const c={};for(const f of s)c[f]=f;return c},e.getValidEnumValues=s=>{const c=e.objectKeys(s).filter(h=>typeof s[s[h]]!="number"),f={};for(const h of c)f[h]=s[h];return e.objectValues(f)},e.objectValues=s=>e.objectKeys(s).map(function(c){return s[c]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const c=[];for(const f in s)Object.prototype.hasOwnProperty.call(s,f)&&c.push(f);return c},e.find=(s,c)=>{for(const f of s)if(c(f))return f},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function a(s,c=" | "){return s.map(f=>typeof f=="string"?`'${f}'`:f).join(c)}e.joinValues=a,e.jsonStringifyReplacer=(s,c)=>typeof c=="bigint"?c.toString():c})(hn||(hn={}));var JE;(function(e){e.mergeShapes=(n,r)=>({...n,...r})})(JE||(JE={}));const rt=hn.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),cu=e=>{switch(typeof e){case"undefined":return rt.undefined;case"string":return rt.string;case"number":return isNaN(e)?rt.nan:rt.number;case"boolean":return rt.boolean;case"function":return rt.function;case"bigint":return rt.bigint;case"symbol":return rt.symbol;case"object":return Array.isArray(e)?rt.array:e===null?rt.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?rt.promise:typeof Map<"u"&&e instanceof Map?rt.map:typeof Set<"u"&&e instanceof Set?rt.set:typeof Date<"u"&&e instanceof Date?rt.date:rt.object;default:return rt.unknown}},qe=hn.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),nI=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class So extends Error{constructor(n){super(),this.issues=[],this.addIssue=a=>{this.issues=[...this.issues,a]},this.addIssues=(a=[])=>{this.issues=[...this.issues,...a]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=n}get errors(){return this.issues}format(n){const r=n||function(c){return c.message},a={_errors:[]},s=c=>{for(const f of c.issues)if(f.code==="invalid_union")f.unionErrors.map(s);else if(f.code==="invalid_return_type")s(f.returnTypeError);else if(f.code==="invalid_arguments")s(f.argumentsError);else if(f.path.length===0)a._errors.push(r(f));else{let h=a,v=0;for(;v<f.path.length;){const y=f.path[v];v===f.path.length-1?(h[y]=h[y]||{_errors:[]},h[y]._errors.push(r(f))):h[y]=h[y]||{_errors:[]},h=h[y],v++}}};return s(this),a}toString(){return this.message}get message(){return JSON.stringify(this.issues,hn.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(n=r=>r.message){const r={},a=[];for(const s of this.issues)s.path.length>0?(r[s.path[0]]=r[s.path[0]]||[],r[s.path[0]].push(n(s))):a.push(n(s));return{formErrors:a,fieldErrors:r}}get formErrors(){return this.flatten()}}So.create=e=>new So(e);const Xh=(e,n)=>{let r;switch(e.code){case qe.invalid_type:e.received===rt.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case qe.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,hn.jsonStringifyReplacer)}`;break;case qe.unrecognized_keys:r=`Unrecognized key(s) in object: ${hn.joinValues(e.keys,", ")}`;break;case qe.invalid_union:r="Invalid input";break;case qe.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${hn.joinValues(e.options)}`;break;case qe.invalid_enum_value:r=`Invalid enum value. Expected ${hn.joinValues(e.options)}, received '${e.received}'`;break;case qe.invalid_arguments:r="Invalid function arguments";break;case qe.invalid_return_type:r="Invalid function return type";break;case qe.invalid_date:r="Invalid date";break;case qe.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:hn.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case qe.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case qe.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case qe.custom:r="Invalid input";break;case qe.invalid_intersection_types:r="Intersection results could not be merged";break;case qe.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case qe.not_finite:r="Number must be finite";break;default:r=n.defaultError,hn.assertNever(e)}return{message:r}};let Z5=Xh;function rI(e){Z5=e}function Dg(){return Z5}const Ag=e=>{const{data:n,path:r,errorMaps:a,issueData:s}=e,c=[...r,...s.path||[]],f={...s,path:c};let h="";const v=a.filter(y=>!!y).slice().reverse();for(const y of v)h=y(f,{data:n,defaultError:h}).message;return{...s,path:c,message:s.message||h}},iI=[];function ot(e,n){const r=Ag({issueData:n,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,Dg(),Xh].filter(a=>!!a)});e.common.issues.push(r)}class wi{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(n,r){const a=[];for(const s of r){if(s.status==="aborted")return Ut;s.status==="dirty"&&n.dirty(),a.push(s.value)}return{status:n.value,value:a}}static async mergeObjectAsync(n,r){const a=[];for(const s of r)a.push({key:await s.key,value:await s.value});return wi.mergeObjectSync(n,a)}static mergeObjectSync(n,r){const a={};for(const s of r){const{key:c,value:f}=s;if(c.status==="aborted"||f.status==="aborted")return Ut;c.status==="dirty"&&n.dirty(),f.status==="dirty"&&n.dirty(),(typeof f.value<"u"||s.alwaysSet)&&(a[c.value]=f.value)}return{status:n.value,value:a}}}const Ut=Object.freeze({status:"aborted"}),K5=e=>({status:"dirty",value:e}),zi=e=>({status:"valid",value:e}),ex=e=>e.status==="aborted",tx=e=>e.status==="dirty",Mg=e=>e.status==="valid",Lg=e=>typeof Promise<"u"&&e instanceof Promise;var Ct;(function(e){e.errToObj=n=>typeof n=="string"?{message:n}:n||{},e.toString=n=>typeof n=="string"?n:n==null?void 0:n.message})(Ct||(Ct={}));class il{constructor(n,r,a,s){this._cachedPath=[],this.parent=n,this.data=r,this._path=a,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const G5=(e,n)=>{if(Mg(n))return{success:!0,data:n.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new So(e.common.issues);return this._error=r,this._error}}};function Wt(e){if(!e)return{};const{errorMap:n,invalid_type_error:r,required_error:a,description:s}=e;if(n&&(r||a))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return n?{errorMap:n,description:s}:{errorMap:(f,h)=>f.code!=="invalid_type"?{message:h.defaultError}:typeof h.data>"u"?{message:a??h.defaultError}:{message:r??h.defaultError},description:s}}class Qt{constructor(n){this.spa=this.safeParseAsync,this._def=n,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(n){return cu(n.data)}_getOrReturnCtx(n,r){return r||{common:n.parent.common,data:n.data,parsedType:cu(n.data),schemaErrorMap:this._def.errorMap,path:n.path,parent:n.parent}}_processInputParams(n){return{status:new wi,ctx:{common:n.parent.common,data:n.data,parsedType:cu(n.data),schemaErrorMap:this._def.errorMap,path:n.path,parent:n.parent}}}_parseSync(n){const r=this._parse(n);if(Lg(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(n){const r=this._parse(n);return Promise.resolve(r)}parse(n,r){const a=this.safeParse(n,r);if(a.success)return a.data;throw a.error}safeParse(n,r){var a;const s={common:{issues:[],async:(a=r==null?void 0:r.async)!==null&&a!==void 0?a:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:cu(n)},c=this._parseSync({data:n,path:s.path,parent:s});return G5(s,c)}async parseAsync(n,r){const a=await this.safeParseAsync(n,r);if(a.success)return a.data;throw a.error}async safeParseAsync(n,r){const a={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:cu(n)},s=this._parse({data:n,path:a.path,parent:a}),c=await(Lg(s)?s:Promise.resolve(s));return G5(a,c)}refine(n,r){const a=s=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(s):r;return this._refinement((s,c)=>{const f=n(s),h=()=>c.addIssue({code:qe.custom,...a(s)});return typeof Promise<"u"&&f instanceof Promise?f.then(v=>v?!0:(h(),!1)):f?!0:(h(),!1)})}refinement(n,r){return this._refinement((a,s)=>n(a)?!0:(s.addIssue(typeof r=="function"?r(a,s):r),!1))}_refinement(n){return new wo({schema:this,typeName:Mt.ZodEffects,effect:{type:"refinement",refinement:n}})}superRefine(n){return this._refinement(n)}optional(){return es.create(this,this._def)}nullable(){return Fc.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return xo.create(this,this._def)}promise(){return yd.create(this,this._def)}or(n){return nm.create([this,n],this._def)}and(n){return rm.create(this,n,this._def)}transform(n){return new wo({...Wt(this._def),schema:this,typeName:Mt.ZodEffects,effect:{type:"transform",transform:n}})}default(n){const r=typeof n=="function"?n:()=>n;return new sm({...Wt(this._def),innerType:this,defaultValue:r,typeName:Mt.ZodDefault})}brand(){return new X5({typeName:Mt.ZodBranded,type:this,...Wt(this._def)})}catch(n){const r=typeof n=="function"?n:()=>n;return new jg({...Wt(this._def),innerType:this,catchValue:r,typeName:Mt.ZodCatch})}describe(n){const r=this.constructor;return new r({...this._def,description:n})}pipe(n){return um.create(this,n)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const aI=/^c[^\s-]{8,}$/i,oI=/^[a-z][a-z0-9]*$/,lI=/[0-9A-HJKMNP-TV-Z]{26}/,sI=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,uI=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,cI=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,fI=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,dI=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,pI=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function hI(e,n){return!!((n==="v4"||!n)&&fI.test(e)||(n==="v6"||!n)&&dI.test(e))}class Eo extends Qt{constructor(){super(...arguments),this._regex=(n,r,a)=>this.refinement(s=>n.test(s),{validation:r,code:qe.invalid_string,...Ct.errToObj(a)}),this.nonempty=n=>this.min(1,Ct.errToObj(n)),this.trim=()=>new Eo({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new Eo({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new Eo({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(n){if(this._def.coerce&&(n.data=String(n.data)),this._getType(n)!==rt.string){const c=this._getOrReturnCtx(n);return ot(c,{code:qe.invalid_type,expected:rt.string,received:c.parsedType}),Ut}const a=new wi;let s;for(const c of this._def.checks)if(c.kind==="min")n.data.length<c.value&&(s=this._getOrReturnCtx(n,s),ot(s,{code:qe.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),a.dirty());else if(c.kind==="max")n.data.length>c.value&&(s=this._getOrReturnCtx(n,s),ot(s,{code:qe.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),a.dirty());else if(c.kind==="length"){const f=n.data.length>c.value,h=n.data.length<c.value;(f||h)&&(s=this._getOrReturnCtx(n,s),f?ot(s,{code:qe.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}):h&&ot(s,{code:qe.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}),a.dirty())}else if(c.kind==="email")uI.test(n.data)||(s=this._getOrReturnCtx(n,s),ot(s,{validation:"email",code:qe.invalid_string,message:c.message}),a.dirty());else if(c.kind==="emoji")cI.test(n.data)||(s=this._getOrReturnCtx(n,s),ot(s,{validation:"emoji",code:qe.invalid_string,message:c.message}),a.dirty());else if(c.kind==="uuid")sI.test(n.data)||(s=this._getOrReturnCtx(n,s),ot(s,{validation:"uuid",code:qe.invalid_string,message:c.message}),a.dirty());else if(c.kind==="cuid")aI.test(n.data)||(s=this._getOrReturnCtx(n,s),ot(s,{validation:"cuid",code:qe.invalid_string,message:c.message}),a.dirty());else if(c.kind==="cuid2")oI.test(n.data)||(s=this._getOrReturnCtx(n,s),ot(s,{validation:"cuid2",code:qe.invalid_string,message:c.message}),a.dirty());else if(c.kind==="ulid")lI.test(n.data)||(s=this._getOrReturnCtx(n,s),ot(s,{validation:"ulid",code:qe.invalid_string,message:c.message}),a.dirty());else if(c.kind==="url")try{new URL(n.data)}catch{s=this._getOrReturnCtx(n,s),ot(s,{validation:"url",code:qe.invalid_string,message:c.message}),a.dirty()}else c.kind==="regex"?(c.regex.lastIndex=0,c.regex.test(n.data)||(s=this._getOrReturnCtx(n,s),ot(s,{validation:"regex",code:qe.invalid_string,message:c.message}),a.dirty())):c.kind==="trim"?n.data=n.data.trim():c.kind==="includes"?n.data.includes(c.value,c.position)||(s=this._getOrReturnCtx(n,s),ot(s,{code:qe.invalid_string,validation:{includes:c.value,position:c.position},message:c.message}),a.dirty()):c.kind==="toLowerCase"?n.data=n.data.toLowerCase():c.kind==="toUpperCase"?n.data=n.data.toUpperCase():c.kind==="startsWith"?n.data.startsWith(c.value)||(s=this._getOrReturnCtx(n,s),ot(s,{code:qe.invalid_string,validation:{startsWith:c.value},message:c.message}),a.dirty()):c.kind==="endsWith"?n.data.endsWith(c.value)||(s=this._getOrReturnCtx(n,s),ot(s,{code:qe.invalid_string,validation:{endsWith:c.value},message:c.message}),a.dirty()):c.kind==="datetime"?pI(c).test(n.data)||(s=this._getOrReturnCtx(n,s),ot(s,{code:qe.invalid_string,validation:"datetime",message:c.message}),a.dirty()):c.kind==="ip"?hI(n.data,c.version)||(s=this._getOrReturnCtx(n,s),ot(s,{validation:"ip",code:qe.invalid_string,message:c.message}),a.dirty()):hn.assertNever(c);return{status:a.value,value:n.data}}_addCheck(n){return new Eo({...this._def,checks:[...this._def.checks,n]})}email(n){return this._addCheck({kind:"email",...Ct.errToObj(n)})}url(n){return this._addCheck({kind:"url",...Ct.errToObj(n)})}emoji(n){return this._addCheck({kind:"emoji",...Ct.errToObj(n)})}uuid(n){return this._addCheck({kind:"uuid",...Ct.errToObj(n)})}cuid(n){return this._addCheck({kind:"cuid",...Ct.errToObj(n)})}cuid2(n){return this._addCheck({kind:"cuid2",...Ct.errToObj(n)})}ulid(n){return this._addCheck({kind:"ulid",...Ct.errToObj(n)})}ip(n){return this._addCheck({kind:"ip",...Ct.errToObj(n)})}datetime(n){var r;return typeof n=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:n}):this._addCheck({kind:"datetime",precision:typeof(n==null?void 0:n.precision)>"u"?null:n==null?void 0:n.precision,offset:(r=n==null?void 0:n.offset)!==null&&r!==void 0?r:!1,...Ct.errToObj(n==null?void 0:n.message)})}regex(n,r){return this._addCheck({kind:"regex",regex:n,...Ct.errToObj(r)})}includes(n,r){return this._addCheck({kind:"includes",value:n,position:r==null?void 0:r.position,...Ct.errToObj(r==null?void 0:r.message)})}startsWith(n,r){return this._addCheck({kind:"startsWith",value:n,...Ct.errToObj(r)})}endsWith(n,r){return this._addCheck({kind:"endsWith",value:n,...Ct.errToObj(r)})}min(n,r){return this._addCheck({kind:"min",value:n,...Ct.errToObj(r)})}max(n,r){return this._addCheck({kind:"max",value:n,...Ct.errToObj(r)})}length(n,r){return this._addCheck({kind:"length",value:n,...Ct.errToObj(r)})}get isDatetime(){return!!this._def.checks.find(n=>n.kind==="datetime")}get isEmail(){return!!this._def.checks.find(n=>n.kind==="email")}get isURL(){return!!this._def.checks.find(n=>n.kind==="url")}get isEmoji(){return!!this._def.checks.find(n=>n.kind==="emoji")}get isUUID(){return!!this._def.checks.find(n=>n.kind==="uuid")}get isCUID(){return!!this._def.checks.find(n=>n.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(n=>n.kind==="cuid2")}get isULID(){return!!this._def.checks.find(n=>n.kind==="ulid")}get isIP(){return!!this._def.checks.find(n=>n.kind==="ip")}get minLength(){let n=null;for(const r of this._def.checks)r.kind==="min"&&(n===null||r.value>n)&&(n=r.value);return n}get maxLength(){let n=null;for(const r of this._def.checks)r.kind==="max"&&(n===null||r.value<n)&&(n=r.value);return n}}Eo.create=e=>{var n;return new Eo({checks:[],typeName:Mt.ZodString,coerce:(n=e==null?void 0:e.coerce)!==null&&n!==void 0?n:!1,...Wt(e)})};function mI(e,n){const r=(e.toString().split(".")[1]||"").length,a=(n.toString().split(".")[1]||"").length,s=r>a?r:a,c=parseInt(e.toFixed(s).replace(".","")),f=parseInt(n.toFixed(s).replace(".",""));return c%f/Math.pow(10,s)}class fu extends Qt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(n){if(this._def.coerce&&(n.data=Number(n.data)),this._getType(n)!==rt.number){const c=this._getOrReturnCtx(n);return ot(c,{code:qe.invalid_type,expected:rt.number,received:c.parsedType}),Ut}let a;const s=new wi;for(const c of this._def.checks)c.kind==="int"?hn.isInteger(n.data)||(a=this._getOrReturnCtx(n,a),ot(a,{code:qe.invalid_type,expected:"integer",received:"float",message:c.message}),s.dirty()):c.kind==="min"?(c.inclusive?n.data<c.value:n.data<=c.value)&&(a=this._getOrReturnCtx(n,a),ot(a,{code:qe.too_small,minimum:c.value,type:"number",inclusive:c.inclusive,exact:!1,message:c.message}),s.dirty()):c.kind==="max"?(c.inclusive?n.data>c.value:n.data>=c.value)&&(a=this._getOrReturnCtx(n,a),ot(a,{code:qe.too_big,maximum:c.value,type:"number",inclusive:c.inclusive,exact:!1,message:c.message}),s.dirty()):c.kind==="multipleOf"?mI(n.data,c.value)!==0&&(a=this._getOrReturnCtx(n,a),ot(a,{code:qe.not_multiple_of,multipleOf:c.value,message:c.message}),s.dirty()):c.kind==="finite"?Number.isFinite(n.data)||(a=this._getOrReturnCtx(n,a),ot(a,{code:qe.not_finite,message:c.message}),s.dirty()):hn.assertNever(c);return{status:s.value,value:n.data}}gte(n,r){return this.setLimit("min",n,!0,Ct.toString(r))}gt(n,r){return this.setLimit("min",n,!1,Ct.toString(r))}lte(n,r){return this.setLimit("max",n,!0,Ct.toString(r))}lt(n,r){return this.setLimit("max",n,!1,Ct.toString(r))}setLimit(n,r,a,s){return new fu({...this._def,checks:[...this._def.checks,{kind:n,value:r,inclusive:a,message:Ct.toString(s)}]})}_addCheck(n){return new fu({...this._def,checks:[...this._def.checks,n]})}int(n){return this._addCheck({kind:"int",message:Ct.toString(n)})}positive(n){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ct.toString(n)})}negative(n){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ct.toString(n)})}nonpositive(n){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ct.toString(n)})}nonnegative(n){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ct.toString(n)})}multipleOf(n,r){return this._addCheck({kind:"multipleOf",value:n,message:Ct.toString(r)})}finite(n){return this._addCheck({kind:"finite",message:Ct.toString(n)})}safe(n){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ct.toString(n)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ct.toString(n)})}get minValue(){let n=null;for(const r of this._def.checks)r.kind==="min"&&(n===null||r.value>n)&&(n=r.value);return n}get maxValue(){let n=null;for(const r of this._def.checks)r.kind==="max"&&(n===null||r.value<n)&&(n=r.value);return n}get isInt(){return!!this._def.checks.find(n=>n.kind==="int"||n.kind==="multipleOf"&&hn.isInteger(n.value))}get isFinite(){let n=null,r=null;for(const a of this._def.checks){if(a.kind==="finite"||a.kind==="int"||a.kind==="multipleOf")return!0;a.kind==="min"?(r===null||a.value>r)&&(r=a.value):a.kind==="max"&&(n===null||a.value<n)&&(n=a.value)}return Number.isFinite(r)&&Number.isFinite(n)}}fu.create=e=>new fu({checks:[],typeName:Mt.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Wt(e)});class du extends Qt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(n){if(this._def.coerce&&(n.data=BigInt(n.data)),this._getType(n)!==rt.bigint){const c=this._getOrReturnCtx(n);return ot(c,{code:qe.invalid_type,expected:rt.bigint,received:c.parsedType}),Ut}let a;const s=new wi;for(const c of this._def.checks)c.kind==="min"?(c.inclusive?n.data<c.value:n.data<=c.value)&&(a=this._getOrReturnCtx(n,a),ot(a,{code:qe.too_small,type:"bigint",minimum:c.value,inclusive:c.inclusive,message:c.message}),s.dirty()):c.kind==="max"?(c.inclusive?n.data>c.value:n.data>=c.value)&&(a=this._getOrReturnCtx(n,a),ot(a,{code:qe.too_big,type:"bigint",maximum:c.value,inclusive:c.inclusive,message:c.message}),s.dirty()):c.kind==="multipleOf"?n.data%c.value!==BigInt(0)&&(a=this._getOrReturnCtx(n,a),ot(a,{code:qe.not_multiple_of,multipleOf:c.value,message:c.message}),s.dirty()):hn.assertNever(c);return{status:s.value,value:n.data}}gte(n,r){return this.setLimit("min",n,!0,Ct.toString(r))}gt(n,r){return this.setLimit("min",n,!1,Ct.toString(r))}lte(n,r){return this.setLimit("max",n,!0,Ct.toString(r))}lt(n,r){return this.setLimit("max",n,!1,Ct.toString(r))}setLimit(n,r,a,s){return new du({...this._def,checks:[...this._def.checks,{kind:n,value:r,inclusive:a,message:Ct.toString(s)}]})}_addCheck(n){return new du({...this._def,checks:[...this._def.checks,n]})}positive(n){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ct.toString(n)})}negative(n){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ct.toString(n)})}nonpositive(n){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ct.toString(n)})}nonnegative(n){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ct.toString(n)})}multipleOf(n,r){return this._addCheck({kind:"multipleOf",value:n,message:Ct.toString(r)})}get minValue(){let n=null;for(const r of this._def.checks)r.kind==="min"&&(n===null||r.value>n)&&(n=r.value);return n}get maxValue(){let n=null;for(const r of this._def.checks)r.kind==="max"&&(n===null||r.value<n)&&(n=r.value);return n}}du.create=e=>{var n;return new du({checks:[],typeName:Mt.ZodBigInt,coerce:(n=e==null?void 0:e.coerce)!==null&&n!==void 0?n:!1,...Wt(e)})};class Jh extends Qt{_parse(n){if(this._def.coerce&&(n.data=!!n.data),this._getType(n)!==rt.boolean){const a=this._getOrReturnCtx(n);return ot(a,{code:qe.invalid_type,expected:rt.boolean,received:a.parsedType}),Ut}return zi(n.data)}}Jh.create=e=>new Jh({typeName:Mt.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Wt(e)});class Lc extends Qt{_parse(n){if(this._def.coerce&&(n.data=new Date(n.data)),this._getType(n)!==rt.date){const c=this._getOrReturnCtx(n);return ot(c,{code:qe.invalid_type,expected:rt.date,received:c.parsedType}),Ut}if(isNaN(n.data.getTime())){const c=this._getOrReturnCtx(n);return ot(c,{code:qe.invalid_date}),Ut}const a=new wi;let s;for(const c of this._def.checks)c.kind==="min"?n.data.getTime()<c.value&&(s=this._getOrReturnCtx(n,s),ot(s,{code:qe.too_small,message:c.message,inclusive:!0,exact:!1,minimum:c.value,type:"date"}),a.dirty()):c.kind==="max"?n.data.getTime()>c.value&&(s=this._getOrReturnCtx(n,s),ot(s,{code:qe.too_big,message:c.message,inclusive:!0,exact:!1,maximum:c.value,type:"date"}),a.dirty()):hn.assertNever(c);return{status:a.value,value:new Date(n.data.getTime())}}_addCheck(n){return new Lc({...this._def,checks:[...this._def.checks,n]})}min(n,r){return this._addCheck({kind:"min",value:n.getTime(),message:Ct.toString(r)})}max(n,r){return this._addCheck({kind:"max",value:n.getTime(),message:Ct.toString(r)})}get minDate(){let n=null;for(const r of this._def.checks)r.kind==="min"&&(n===null||r.value>n)&&(n=r.value);return n!=null?new Date(n):null}get maxDate(){let n=null;for(const r of this._def.checks)r.kind==="max"&&(n===null||r.value<n)&&(n=r.value);return n!=null?new Date(n):null}}Lc.create=e=>new Lc({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Mt.ZodDate,...Wt(e)});class Pg extends Qt{_parse(n){if(this._getType(n)!==rt.symbol){const a=this._getOrReturnCtx(n);return ot(a,{code:qe.invalid_type,expected:rt.symbol,received:a.parsedType}),Ut}return zi(n.data)}}Pg.create=e=>new Pg({typeName:Mt.ZodSymbol,...Wt(e)});class em extends Qt{_parse(n){if(this._getType(n)!==rt.undefined){const a=this._getOrReturnCtx(n);return ot(a,{code:qe.invalid_type,expected:rt.undefined,received:a.parsedType}),Ut}return zi(n.data)}}em.create=e=>new em({typeName:Mt.ZodUndefined,...Wt(e)});class tm extends Qt{_parse(n){if(this._getType(n)!==rt.null){const a=this._getOrReturnCtx(n);return ot(a,{code:qe.invalid_type,expected:rt.null,received:a.parsedType}),Ut}return zi(n.data)}}tm.create=e=>new tm({typeName:Mt.ZodNull,...Wt(e)});class md extends Qt{constructor(){super(...arguments),this._any=!0}_parse(n){return zi(n.data)}}md.create=e=>new md({typeName:Mt.ZodAny,...Wt(e)});class Pc extends Qt{constructor(){super(...arguments),this._unknown=!0}_parse(n){return zi(n.data)}}Pc.create=e=>new Pc({typeName:Mt.ZodUnknown,...Wt(e)});class Jl extends Qt{_parse(n){const r=this._getOrReturnCtx(n);return ot(r,{code:qe.invalid_type,expected:rt.never,received:r.parsedType}),Ut}}Jl.create=e=>new Jl({typeName:Mt.ZodNever,...Wt(e)});class Ng extends Qt{_parse(n){if(this._getType(n)!==rt.undefined){const a=this._getOrReturnCtx(n);return ot(a,{code:qe.invalid_type,expected:rt.void,received:a.parsedType}),Ut}return zi(n.data)}}Ng.create=e=>new Ng({typeName:Mt.ZodVoid,...Wt(e)});class xo extends Qt{_parse(n){const{ctx:r,status:a}=this._processInputParams(n),s=this._def;if(r.parsedType!==rt.array)return ot(r,{code:qe.invalid_type,expected:rt.array,received:r.parsedType}),Ut;if(s.exactLength!==null){const f=r.data.length>s.exactLength.value,h=r.data.length<s.exactLength.value;(f||h)&&(ot(r,{code:f?qe.too_big:qe.too_small,minimum:h?s.exactLength.value:void 0,maximum:f?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),a.dirty())}if(s.minLength!==null&&r.data.length<s.minLength.value&&(ot(r,{code:qe.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),a.dirty()),s.maxLength!==null&&r.data.length>s.maxLength.value&&(ot(r,{code:qe.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),a.dirty()),r.common.async)return Promise.all([...r.data].map((f,h)=>s.type._parseAsync(new il(r,f,r.path,h)))).then(f=>wi.mergeArray(a,f));const c=[...r.data].map((f,h)=>s.type._parseSync(new il(r,f,r.path,h)));return wi.mergeArray(a,c)}get element(){return this._def.type}min(n,r){return new xo({...this._def,minLength:{value:n,message:Ct.toString(r)}})}max(n,r){return new xo({...this._def,maxLength:{value:n,message:Ct.toString(r)}})}length(n,r){return new xo({...this._def,exactLength:{value:n,message:Ct.toString(r)}})}nonempty(n){return this.min(1,n)}}xo.create=(e,n)=>new xo({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Mt.ZodArray,...Wt(n)});function vd(e){if(e instanceof rr){const n={};for(const r in e.shape){const a=e.shape[r];n[r]=es.create(vd(a))}return new rr({...e._def,shape:()=>n})}else return e instanceof xo?new xo({...e._def,type:vd(e.element)}):e instanceof es?es.create(vd(e.unwrap())):e instanceof Fc?Fc.create(vd(e.unwrap())):e instanceof al?al.create(e.items.map(n=>vd(n))):e}class rr extends Qt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const n=this._def.shape(),r=hn.objectKeys(n);return this._cached={shape:n,keys:r}}_parse(n){if(this._getType(n)!==rt.object){const y=this._getOrReturnCtx(n);return ot(y,{code:qe.invalid_type,expected:rt.object,received:y.parsedType}),Ut}const{status:a,ctx:s}=this._processInputParams(n),{shape:c,keys:f}=this._getCached(),h=[];if(!(this._def.catchall instanceof Jl&&this._def.unknownKeys==="strip"))for(const y in s.data)f.includes(y)||h.push(y);const v=[];for(const y of f){const S=c[y],E=s.data[y];v.push({key:{status:"valid",value:y},value:S._parse(new il(s,E,s.path,y)),alwaysSet:y in s.data})}if(this._def.catchall instanceof Jl){const y=this._def.unknownKeys;if(y==="passthrough")for(const S of h)v.push({key:{status:"valid",value:S},value:{status:"valid",value:s.data[S]}});else if(y==="strict")h.length>0&&(ot(s,{code:qe.unrecognized_keys,keys:h}),a.dirty());else if(y!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const y=this._def.catchall;for(const S of h){const E=s.data[S];v.push({key:{status:"valid",value:S},value:y._parse(new il(s,E,s.path,S)),alwaysSet:S in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const y=[];for(const S of v){const E=await S.key;y.push({key:E,value:await S.value,alwaysSet:S.alwaysSet})}return y}).then(y=>wi.mergeObjectSync(a,y)):wi.mergeObjectSync(a,v)}get shape(){return this._def.shape()}strict(n){return Ct.errToObj,new rr({...this._def,unknownKeys:"strict",...n!==void 0?{errorMap:(r,a)=>{var s,c,f,h;const v=(f=(c=(s=this._def).errorMap)===null||c===void 0?void 0:c.call(s,r,a).message)!==null&&f!==void 0?f:a.defaultError;return r.code==="unrecognized_keys"?{message:(h=Ct.errToObj(n).message)!==null&&h!==void 0?h:v}:{message:v}}}:{}})}strip(){return new rr({...this._def,unknownKeys:"strip"})}passthrough(){return new rr({...this._def,unknownKeys:"passthrough"})}extend(n){return new rr({...this._def,shape:()=>({...this._def.shape(),...n})})}merge(n){return new rr({unknownKeys:n._def.unknownKeys,catchall:n._def.catchall,shape:()=>({...this._def.shape(),...n._def.shape()}),typeName:Mt.ZodObject})}setKey(n,r){return this.augment({[n]:r})}catchall(n){return new rr({...this._def,catchall:n})}pick(n){const r={};return hn.objectKeys(n).forEach(a=>{n[a]&&this.shape[a]&&(r[a]=this.shape[a])}),new rr({...this._def,shape:()=>r})}omit(n){const r={};return hn.objectKeys(this.shape).forEach(a=>{n[a]||(r[a]=this.shape[a])}),new rr({...this._def,shape:()=>r})}deepPartial(){return vd(this)}partial(n){const r={};return hn.objectKeys(this.shape).forEach(a=>{const s=this.shape[a];n&&!n[a]?r[a]=s:r[a]=s.optional()}),new rr({...this._def,shape:()=>r})}required(n){const r={};return hn.objectKeys(this.shape).forEach(a=>{if(n&&!n[a])r[a]=this.shape[a];else{let c=this.shape[a];for(;c instanceof es;)c=c._def.innerType;r[a]=c}}),new rr({...this._def,shape:()=>r})}keyof(){return Q5(hn.objectKeys(this.shape))}}rr.create=(e,n)=>new rr({shape:()=>e,unknownKeys:"strip",catchall:Jl.create(),typeName:Mt.ZodObject,...Wt(n)}),rr.strictCreate=(e,n)=>new rr({shape:()=>e,unknownKeys:"strict",catchall:Jl.create(),typeName:Mt.ZodObject,...Wt(n)}),rr.lazycreate=(e,n)=>new rr({shape:e,unknownKeys:"strip",catchall:Jl.create(),typeName:Mt.ZodObject,...Wt(n)});class nm extends Qt{_parse(n){const{ctx:r}=this._processInputParams(n),a=this._def.options;function s(c){for(const h of c)if(h.result.status==="valid")return h.result;for(const h of c)if(h.result.status==="dirty")return r.common.issues.push(...h.ctx.common.issues),h.result;const f=c.map(h=>new So(h.ctx.common.issues));return ot(r,{code:qe.invalid_union,unionErrors:f}),Ut}if(r.common.async)return Promise.all(a.map(async c=>{const f={...r,common:{...r.common,issues:[]},parent:null};return{result:await c._parseAsync({data:r.data,path:r.path,parent:f}),ctx:f}})).then(s);{let c;const f=[];for(const v of a){const y={...r,common:{...r.common,issues:[]},parent:null},S=v._parseSync({data:r.data,path:r.path,parent:y});if(S.status==="valid")return S;S.status==="dirty"&&!c&&(c={result:S,ctx:y}),y.common.issues.length&&f.push(y.common.issues)}if(c)return r.common.issues.push(...c.ctx.common.issues),c.result;const h=f.map(v=>new So(v));return ot(r,{code:qe.invalid_union,unionErrors:h}),Ut}}get options(){return this._def.options}}nm.create=(e,n)=>new nm({options:e,typeName:Mt.ZodUnion,...Wt(n)});const Fg=e=>e instanceof am?Fg(e.schema):e instanceof wo?Fg(e.innerType()):e instanceof om?[e.value]:e instanceof pu?e.options:e instanceof lm?Object.keys(e.enum):e instanceof sm?Fg(e._def.innerType):e instanceof em?[void 0]:e instanceof tm?[null]:null;class Ig extends Qt{_parse(n){const{ctx:r}=this._processInputParams(n);if(r.parsedType!==rt.object)return ot(r,{code:qe.invalid_type,expected:rt.object,received:r.parsedType}),Ut;const a=this.discriminator,s=r.data[a],c=this.optionsMap.get(s);return c?r.common.async?c._parseAsync({data:r.data,path:r.path,parent:r}):c._parseSync({data:r.data,path:r.path,parent:r}):(ot(r,{code:qe.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[a]}),Ut)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(n,r,a){const s=new Map;for(const c of r){const f=Fg(c.shape[n]);if(!f)throw new Error(`A discriminator value for key \`${n}\` could not be extracted from all schema options`);for(const h of f){if(s.has(h))throw new Error(`Discriminator property ${String(n)} has duplicate value ${String(h)}`);s.set(h,c)}}return new Ig({typeName:Mt.ZodDiscriminatedUnion,discriminator:n,options:r,optionsMap:s,...Wt(a)})}}function nx(e,n){const r=cu(e),a=cu(n);if(e===n)return{valid:!0,data:e};if(r===rt.object&&a===rt.object){const s=hn.objectKeys(n),c=hn.objectKeys(e).filter(h=>s.indexOf(h)!==-1),f={...e,...n};for(const h of c){const v=nx(e[h],n[h]);if(!v.valid)return{valid:!1};f[h]=v.data}return{valid:!0,data:f}}else if(r===rt.array&&a===rt.array){if(e.length!==n.length)return{valid:!1};const s=[];for(let c=0;c<e.length;c++){const f=e[c],h=n[c],v=nx(f,h);if(!v.valid)return{valid:!1};s.push(v.data)}return{valid:!0,data:s}}else return r===rt.date&&a===rt.date&&+e==+n?{valid:!0,data:e}:{valid:!1}}class rm extends Qt{_parse(n){const{status:r,ctx:a}=this._processInputParams(n),s=(c,f)=>{if(ex(c)||ex(f))return Ut;const h=nx(c.value,f.value);return h.valid?((tx(c)||tx(f))&&r.dirty(),{status:r.value,value:h.data}):(ot(a,{code:qe.invalid_intersection_types}),Ut)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([c,f])=>s(c,f)):s(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}rm.create=(e,n,r)=>new rm({left:e,right:n,typeName:Mt.ZodIntersection,...Wt(r)});class al extends Qt{_parse(n){const{status:r,ctx:a}=this._processInputParams(n);if(a.parsedType!==rt.array)return ot(a,{code:qe.invalid_type,expected:rt.array,received:a.parsedType}),Ut;if(a.data.length<this._def.items.length)return ot(a,{code:qe.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ut;!this._def.rest&&a.data.length>this._def.items.length&&(ot(a,{code:qe.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const c=[...a.data].map((f,h)=>{const v=this._def.items[h]||this._def.rest;return v?v._parse(new il(a,f,a.path,h)):null}).filter(f=>!!f);return a.common.async?Promise.all(c).then(f=>wi.mergeArray(r,f)):wi.mergeArray(r,c)}get items(){return this._def.items}rest(n){return new al({...this._def,rest:n})}}al.create=(e,n)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new al({items:e,typeName:Mt.ZodTuple,rest:null,...Wt(n)})};class im extends Qt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(n){const{status:r,ctx:a}=this._processInputParams(n);if(a.parsedType!==rt.object)return ot(a,{code:qe.invalid_type,expected:rt.object,received:a.parsedType}),Ut;const s=[],c=this._def.keyType,f=this._def.valueType;for(const h in a.data)s.push({key:c._parse(new il(a,h,a.path,h)),value:f._parse(new il(a,a.data[h],a.path,h))});return a.common.async?wi.mergeObjectAsync(r,s):wi.mergeObjectSync(r,s)}get element(){return this._def.valueType}static create(n,r,a){return r instanceof Qt?new im({keyType:n,valueType:r,typeName:Mt.ZodRecord,...Wt(a)}):new im({keyType:Eo.create(),valueType:n,typeName:Mt.ZodRecord,...Wt(r)})}}class zg extends Qt{_parse(n){const{status:r,ctx:a}=this._processInputParams(n);if(a.parsedType!==rt.map)return ot(a,{code:qe.invalid_type,expected:rt.map,received:a.parsedType}),Ut;const s=this._def.keyType,c=this._def.valueType,f=[...a.data.entries()].map(([h,v],y)=>({key:s._parse(new il(a,h,a.path,[y,"key"])),value:c._parse(new il(a,v,a.path,[y,"value"]))}));if(a.common.async){const h=new Map;return Promise.resolve().then(async()=>{for(const v of f){const y=await v.key,S=await v.value;if(y.status==="aborted"||S.status==="aborted")return Ut;(y.status==="dirty"||S.status==="dirty")&&r.dirty(),h.set(y.value,S.value)}return{status:r.value,value:h}})}else{const h=new Map;for(const v of f){const y=v.key,S=v.value;if(y.status==="aborted"||S.status==="aborted")return Ut;(y.status==="dirty"||S.status==="dirty")&&r.dirty(),h.set(y.value,S.value)}return{status:r.value,value:h}}}}zg.create=(e,n,r)=>new zg({valueType:n,keyType:e,typeName:Mt.ZodMap,...Wt(r)});class Nc extends Qt{_parse(n){const{status:r,ctx:a}=this._processInputParams(n);if(a.parsedType!==rt.set)return ot(a,{code:qe.invalid_type,expected:rt.set,received:a.parsedType}),Ut;const s=this._def;s.minSize!==null&&a.data.size<s.minSize.value&&(ot(a,{code:qe.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),r.dirty()),s.maxSize!==null&&a.data.size>s.maxSize.value&&(ot(a,{code:qe.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),r.dirty());const c=this._def.valueType;function f(v){const y=new Set;for(const S of v){if(S.status==="aborted")return Ut;S.status==="dirty"&&r.dirty(),y.add(S.value)}return{status:r.value,value:y}}const h=[...a.data.values()].map((v,y)=>c._parse(new il(a,v,a.path,y)));return a.common.async?Promise.all(h).then(v=>f(v)):f(h)}min(n,r){return new Nc({...this._def,minSize:{value:n,message:Ct.toString(r)}})}max(n,r){return new Nc({...this._def,maxSize:{value:n,message:Ct.toString(r)}})}size(n,r){return this.min(n,r).max(n,r)}nonempty(n){return this.min(1,n)}}Nc.create=(e,n)=>new Nc({valueType:e,minSize:null,maxSize:null,typeName:Mt.ZodSet,...Wt(n)});class gd extends Qt{constructor(){super(...arguments),this.validate=this.implement}_parse(n){const{ctx:r}=this._processInputParams(n);if(r.parsedType!==rt.function)return ot(r,{code:qe.invalid_type,expected:rt.function,received:r.parsedType}),Ut;function a(h,v){return Ag({data:h,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Dg(),Xh].filter(y=>!!y),issueData:{code:qe.invalid_arguments,argumentsError:v}})}function s(h,v){return Ag({data:h,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Dg(),Xh].filter(y=>!!y),issueData:{code:qe.invalid_return_type,returnTypeError:v}})}const c={errorMap:r.common.contextualErrorMap},f=r.data;return this._def.returns instanceof yd?zi(async(...h)=>{const v=new So([]),y=await this._def.args.parseAsync(h,c).catch(C=>{throw v.addIssue(a(h,C)),v}),S=await f(...y);return await this._def.returns._def.type.parseAsync(S,c).catch(C=>{throw v.addIssue(s(S,C)),v})}):zi((...h)=>{const v=this._def.args.safeParse(h,c);if(!v.success)throw new So([a(h,v.error)]);const y=f(...v.data),S=this._def.returns.safeParse(y,c);if(!S.success)throw new So([s(y,S.error)]);return S.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...n){return new gd({...this._def,args:al.create(n).rest(Pc.create())})}returns(n){return new gd({...this._def,returns:n})}implement(n){return this.parse(n)}strictImplement(n){return this.parse(n)}static create(n,r,a){return new gd({args:n||al.create([]).rest(Pc.create()),returns:r||Pc.create(),typeName:Mt.ZodFunction,...Wt(a)})}}class am extends Qt{get schema(){return this._def.getter()}_parse(n){const{ctx:r}=this._processInputParams(n);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}am.create=(e,n)=>new am({getter:e,typeName:Mt.ZodLazy,...Wt(n)});class om extends Qt{_parse(n){if(n.data!==this._def.value){const r=this._getOrReturnCtx(n);return ot(r,{received:r.data,code:qe.invalid_literal,expected:this._def.value}),Ut}return{status:"valid",value:n.data}}get value(){return this._def.value}}om.create=(e,n)=>new om({value:e,typeName:Mt.ZodLiteral,...Wt(n)});function Q5(e,n){return new pu({values:e,typeName:Mt.ZodEnum,...Wt(n)})}class pu extends Qt{_parse(n){if(typeof n.data!="string"){const r=this._getOrReturnCtx(n),a=this._def.values;return ot(r,{expected:hn.joinValues(a),received:r.parsedType,code:qe.invalid_type}),Ut}if(this._def.values.indexOf(n.data)===-1){const r=this._getOrReturnCtx(n),a=this._def.values;return ot(r,{received:r.data,code:qe.invalid_enum_value,options:a}),Ut}return zi(n.data)}get options(){return this._def.values}get enum(){const n={};for(const r of this._def.values)n[r]=r;return n}get Values(){const n={};for(const r of this._def.values)n[r]=r;return n}get Enum(){const n={};for(const r of this._def.values)n[r]=r;return n}extract(n){return pu.create(n)}exclude(n){return pu.create(this.options.filter(r=>!n.includes(r)))}}pu.create=Q5;class lm extends Qt{_parse(n){const r=hn.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(n);if(a.parsedType!==rt.string&&a.parsedType!==rt.number){const s=hn.objectValues(r);return ot(a,{expected:hn.joinValues(s),received:a.parsedType,code:qe.invalid_type}),Ut}if(r.indexOf(n.data)===-1){const s=hn.objectValues(r);return ot(a,{received:a.data,code:qe.invalid_enum_value,options:s}),Ut}return zi(n.data)}get enum(){return this._def.values}}lm.create=(e,n)=>new lm({values:e,typeName:Mt.ZodNativeEnum,...Wt(n)});class yd extends Qt{unwrap(){return this._def.type}_parse(n){const{ctx:r}=this._processInputParams(n);if(r.parsedType!==rt.promise&&r.common.async===!1)return ot(r,{code:qe.invalid_type,expected:rt.promise,received:r.parsedType}),Ut;const a=r.parsedType===rt.promise?r.data:Promise.resolve(r.data);return zi(a.then(s=>this._def.type.parseAsync(s,{path:r.path,errorMap:r.common.contextualErrorMap})))}}yd.create=(e,n)=>new yd({type:e,typeName:Mt.ZodPromise,...Wt(n)});class wo extends Qt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Mt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(n){const{status:r,ctx:a}=this._processInputParams(n),s=this._def.effect||null;if(s.type==="preprocess"){const f=s.transform(a.data);return a.common.async?Promise.resolve(f).then(h=>this._def.schema._parseAsync({data:h,path:a.path,parent:a})):this._def.schema._parseSync({data:f,path:a.path,parent:a})}const c={addIssue:f=>{ot(a,f),f.fatal?r.abort():r.dirty()},get path(){return a.path}};if(c.addIssue=c.addIssue.bind(c),s.type==="refinement"){const f=h=>{const v=s.refinement(h,c);if(a.common.async)return Promise.resolve(v);if(v instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return h};if(a.common.async===!1){const h=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return h.status==="aborted"?Ut:(h.status==="dirty"&&r.dirty(),f(h.value),{status:r.value,value:h.value})}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(h=>h.status==="aborted"?Ut:(h.status==="dirty"&&r.dirty(),f(h.value).then(()=>({status:r.value,value:h.value}))))}if(s.type==="transform")if(a.common.async===!1){const f=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!Mg(f))return f;const h=s.transform(f.value,c);if(h instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:h}}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(f=>Mg(f)?Promise.resolve(s.transform(f.value,c)).then(h=>({status:r.value,value:h})):f);hn.assertNever(s)}}wo.create=(e,n,r)=>new wo({schema:e,typeName:Mt.ZodEffects,effect:n,...Wt(r)}),wo.createWithPreprocess=(e,n,r)=>new wo({schema:n,effect:{type:"preprocess",transform:e},typeName:Mt.ZodEffects,...Wt(r)});class es extends Qt{_parse(n){return this._getType(n)===rt.undefined?zi(void 0):this._def.innerType._parse(n)}unwrap(){return this._def.innerType}}es.create=(e,n)=>new es({innerType:e,typeName:Mt.ZodOptional,...Wt(n)});class Fc extends Qt{_parse(n){return this._getType(n)===rt.null?zi(null):this._def.innerType._parse(n)}unwrap(){return this._def.innerType}}Fc.create=(e,n)=>new Fc({innerType:e,typeName:Mt.ZodNullable,...Wt(n)});class sm extends Qt{_parse(n){const{ctx:r}=this._processInputParams(n);let a=r.data;return r.parsedType===rt.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}sm.create=(e,n)=>new sm({innerType:e,typeName:Mt.ZodDefault,defaultValue:typeof n.default=="function"?n.default:()=>n.default,...Wt(n)});class jg extends Qt{_parse(n){const{ctx:r}=this._processInputParams(n),a={...r,common:{...r.common,issues:[]}},s=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return Lg(s)?s.then(c=>({status:"valid",value:c.status==="valid"?c.value:this._def.catchValue({get error(){return new So(a.common.issues)},input:a.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new So(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}jg.create=(e,n)=>new jg({innerType:e,typeName:Mt.ZodCatch,catchValue:typeof n.catch=="function"?n.catch:()=>n.catch,...Wt(n)});class $g extends Qt{_parse(n){if(this._getType(n)!==rt.nan){const a=this._getOrReturnCtx(n);return ot(a,{code:qe.invalid_type,expected:rt.nan,received:a.parsedType}),Ut}return{status:"valid",value:n.data}}}$g.create=e=>new $g({typeName:Mt.ZodNaN,...Wt(e)});const vI=Symbol("zod_brand");class X5 extends Qt{_parse(n){const{ctx:r}=this._processInputParams(n),a=r.data;return this._def.type._parse({data:a,path:r.path,parent:r})}unwrap(){return this._def.type}}class um extends Qt{_parse(n){const{status:r,ctx:a}=this._processInputParams(n);if(a.common.async)return(async()=>{const c=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return c.status==="aborted"?Ut:c.status==="dirty"?(r.dirty(),K5(c.value)):this._def.out._parseAsync({data:c.value,path:a.path,parent:a})})();{const s=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return s.status==="aborted"?Ut:s.status==="dirty"?(r.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:a.path,parent:a})}}static create(n,r){return new um({in:n,out:r,typeName:Mt.ZodPipeline})}}const J5=(e,n={},r)=>e?md.create().superRefine((a,s)=>{var c,f;if(!e(a)){const h=typeof n=="function"?n(a):typeof n=="string"?{message:n}:n,v=(f=(c=h.fatal)!==null&&c!==void 0?c:r)!==null&&f!==void 0?f:!0,y=typeof h=="string"?{message:h}:h;s.addIssue({code:"custom",...y,fatal:v})}}):md.create(),gI={object:rr.lazycreate};var Mt;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline"})(Mt||(Mt={}));const yI=(e,n={message:`Input not instance of ${e.name}`})=>J5(r=>r instanceof e,n),e3=Eo.create,t3=fu.create,bI=$g.create,SI=du.create,n3=Jh.create,EI=Lc.create,xI=Pg.create,wI=em.create,CI=tm.create,kI=md.create,_I=Pc.create,TI=Jl.create,RI=Ng.create,OI=xo.create,DI=rr.create,AI=rr.strictCreate,MI=nm.create,LI=Ig.create,PI=rm.create,NI=al.create,FI=im.create,II=zg.create,zI=Nc.create,jI=gd.create,$I=am.create,UI=om.create,BI=pu.create,VI=lm.create,HI=yd.create,r3=wo.create,qI=es.create,WI=Fc.create,YI=wo.createWithPreprocess,ZI=um.create;var lt=Object.freeze({__proto__:null,defaultErrorMap:Xh,setErrorMap:rI,getErrorMap:Dg,makeIssue:Ag,EMPTY_PATH:iI,addIssueToContext:ot,ParseStatus:wi,INVALID:Ut,DIRTY:K5,OK:zi,isAborted:ex,isDirty:tx,isValid:Mg,isAsync:Lg,get util(){return hn},get objectUtil(){return JE},ZodParsedType:rt,getParsedType:cu,ZodType:Qt,ZodString:Eo,ZodNumber:fu,ZodBigInt:du,ZodBoolean:Jh,ZodDate:Lc,ZodSymbol:Pg,ZodUndefined:em,ZodNull:tm,ZodAny:md,ZodUnknown:Pc,ZodNever:Jl,ZodVoid:Ng,ZodArray:xo,ZodObject:rr,ZodUnion:nm,ZodDiscriminatedUnion:Ig,ZodIntersection:rm,ZodTuple:al,ZodRecord:im,ZodMap:zg,ZodSet:Nc,ZodFunction:gd,ZodLazy:am,ZodLiteral:om,ZodEnum:pu,ZodNativeEnum:lm,ZodPromise:yd,ZodEffects:wo,ZodTransformer:wo,ZodOptional:es,ZodNullable:Fc,ZodDefault:sm,ZodCatch:jg,ZodNaN:$g,BRAND:vI,ZodBranded:X5,ZodPipeline:um,custom:J5,Schema:Qt,ZodSchema:Qt,late:gI,get ZodFirstPartyTypeKind(){return Mt},coerce:{string:e=>Eo.create({...e,coerce:!0}),number:e=>fu.create({...e,coerce:!0}),boolean:e=>Jh.create({...e,coerce:!0}),bigint:e=>du.create({...e,coerce:!0}),date:e=>Lc.create({...e,coerce:!0})},any:kI,array:OI,bigint:SI,boolean:n3,date:EI,discriminatedUnion:LI,effect:r3,enum:BI,function:jI,instanceof:yI,intersection:PI,lazy:$I,literal:UI,map:II,nan:bI,nativeEnum:VI,never:TI,null:CI,nullable:WI,number:t3,object:DI,oboolean:()=>n3().optional(),onumber:()=>t3().optional(),optional:qI,ostring:()=>e3().optional(),pipeline:ZI,preprocess:YI,promise:HI,record:FI,set:zI,strictObject:AI,string:e3,symbol:xI,transformer:r3,tuple:NI,undefined:wI,union:MI,unknown:_I,void:RI,NEVER:Ut,ZodIssueCode:qe,quotelessJson:nI,ZodError:So});const KI=lt.object({type:lt.literal("audio"),audio:lt.string(),title:lt.string().optional()}).transform(({type:e,audio:n})=>({type:e,url:n}));function Ug(e){return{block:e,type:"bubble"}}const GI=lt.object({title:lt.string(),action:lt.literal("Say something"),text:lt.string()}).transform(({title:e,text:n})=>({type:"button",variant:"action",text:e,buttonValue:n,reusable:!0})),QI=lt.object({title:lt.string(),action:lt.literal("Open URL"),url:lt.string()}).transform(({title:e,url:n})=>({type:"button",variant:"link",text:e,buttonValue:n,reusable:!0})),XI=lt.object({title:lt.string(),action:lt.literal("Postback"),payload:lt.string()}).transform(({title:e,payload:n})=>({type:"button",variant:"action",text:e,buttonValue:n,reusable:!0})),JI=lt.union([GI,QI,XI]),i3=lt.object({type:lt.literal("card"),title:lt.string().optional(),subtitle:lt.string().optional(),image:lt.string().optional(),actions:lt.array(JI)}),a3=({title:e,image:n,actions:r,subtitle:a})=>{const s=[];return n&&s.push({type:"image",url:n}),e&&s.push({type:"text",text:`## ${e}`}),a&&s.push({type:"text",text:a}),r.length>0&&s.push({type:"row",blocks:r}),{type:"column",horizontalAlignment:"center",blocks:[...s]}},ez=i3.transform(e=>Ug(a3(e))),tz=lt.object({type:lt.literal("carousel"),items:lt.array(i3.omit({type:!0}).transform(a3))}).transform(({items:e})=>({type:"carousel",blocks:e}));let Bg;const nz=new Uint8Array(16);function rz(){if(!Bg&&(Bg=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Bg))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Bg(nz)}const si=[];for(let e=0;e<256;++e)si.push((e+256).toString(16).slice(1));function iz(e,n=0){return(si[e[n+0]]+si[e[n+1]]+si[e[n+2]]+si[e[n+3]]+"-"+si[e[n+4]]+si[e[n+5]]+"-"+si[e[n+6]]+si[e[n+7]]+"-"+si[e[n+8]]+si[e[n+9]]+"-"+si[e[n+10]]+si[e[n+11]]+si[e[n+12]]+si[e[n+13]]+si[e[n+14]]+si[e[n+15]]).toLowerCase()}const o3={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function az(e,n,r){if(o3.randomUUID&&!n&&!e)return o3.randomUUID();e=e||{};const a=e.random||(e.rng||rz)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,n){r=r||0;for(let s=0;s<16;++s)n[r+s]=a[s];return n}return iz(a)}const oz=lt.object({type:lt.literal("single-choice"),text:lt.string(),choices:lt.array(lt.object({title:lt.string(),value:lt.string()}))}).transform(({choices:e,text:n})=>{const r=az(),a=[{type:"row",blocks:e.map(({title:s,value:c})=>({type:"button",variant:"action",text:s,buttonValue:c,groupId:r}))}];return n&&a.unshift({type:"text",text:n}),Ug({type:"column",blocks:a})}),lz=lt.object({type:lt.literal("file"),file:lt.string(),title:lt.string().optional()}).transform(({file:e,...n})=>({url:e,...n})),sz=lt.object({type:lt.literal("image"),image:lt.string(),title:lt.string().optional()}).transform(({type:e,image:n})=>({type:e,url:n})),uz=lt.object({type:lt.literal("location"),latitude:lt.number(),longitude:lt.number(),address:lt.string().optional(),title:lt.string().optional()}).transform(({type:e,latitude:n,longitude:r,title:a,address:s})=>({type:e,latitude:n,longitude:r,title:a??s??"View on map"})),cz=lt.object({type:lt.literal("text"),text:lt.string(),markdown:lt.boolean().optional()}).transform(({type:e,text:n})=>Ug({type:e,text:n})),fz=lt.object({type:lt.literal("video"),video:lt.string(),title:lt.string().optional()}).transform(({type:e,video:n})=>({type:e,url:n})),dz=lt.object({type:lt.literal("voice"),audio:lt.string()}).transform(({audio:e})=>({type:"audio",url:e})),pz=lt.object({type:lt.literal("dropdown"),text:lt.string().optional(),message:lt.string().optional(),options:lt.array(lt.object({label:lt.string(),value:lt.string()}))}).transform(({options:e,text:n})=>{const r=[{type:"dropdown",label:n??"Select an option",options:e}];return n&&r.unshift({type:"text",text:n}),Ug({type:"column",blocks:r})}),l3=lt.union([cz,sz,KI,fz,tz,ez,uz,lz,dz,oz,pz]);var s3={},rx={},u3={};Object.defineProperty(u3,"__esModule",{value:!0});var Vg={},hz=Ht&&Ht.__awaiter||function(e,n,r,a){function s(c){return c instanceof r?c:new r(function(f){f(c)})}return new(r||(r=Promise))(function(c,f){function h(S){try{y(a.next(S))}catch(E){f(E)}}function v(S){try{y(a.throw(S))}catch(E){f(E)}}function y(S){S.done?c(S.value):s(S.value).then(h,v)}y((a=a.apply(e,n||[])).next())})};Object.defineProperty(Vg,"__esModule",{value:!0}),Vg.Emitter=void 0;let mz=class{constructor(){this.listeners={}}on(n,r,a=!1){const s=this.listeners[n];s?a?s.unshift(r):s.push(r):this.listeners[n]=[r]}emit(n,r){return hz(this,void 0,void 0,function*(){const a=this.listeners[n];if(a!=null&&a.length){for(const s of a)yield s(r);return!0}else return!1})}};Vg.Emitter=mz;var c3={};Object.defineProperty(c3,"__esModule",{value:!0});var f3={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HealthEventType=void 0,function(n){n.Create="create",n.Configure="configure",n.Start="start",n.StartFailure="start-failure",n.Initialize="initialize",n.InitializeFailure="initialize-failure",n.Sleep="sleep",n.Delete="delete"}(e.HealthEventType||(e.HealthEventType={}))})(f3);var d3={};Object.defineProperty(d3,"__esModule",{value:!0});var p3={};Object.defineProperty(p3,"__esModule",{value:!0});var h3={};Object.defineProperty(h3,"__esModule",{value:!0});var m3={};Object.defineProperty(m3,"__esModule",{value:!0}),function(e){var n=Ht&&Ht.__createBinding||(Object.create?function(a,s,c,f){f===void 0&&(f=c),Object.defineProperty(a,f,{enumerable:!0,get:function(){return s[c]}})}:function(a,s,c,f){f===void 0&&(f=c),a[f]=s[c]}),r=Ht&&Ht.__exportStar||function(a,s){for(var c in a)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&n(s,a,c)};Object.defineProperty(e,"__esModule",{value:!0}),r(u3,e),r(Vg,e),r(c3,e),r(f3,e),r(d3,e),r(p3,e),r(h3,e),r(m3,e)}(rx);var Hg={},v3={},ix={exports:{}},qg={},ax={},Wg={},cm={},bd={},Ic={},Sd={},Ed={},ol={};Object.defineProperty(ol,"__esModule",{value:!0}),ol.ERROR_PACKET=ol.PACKET_TYPES_REVERSE=ol.PACKET_TYPES=void 0;const ll=Object.create(null);ol.PACKET_TYPES=ll,ll.open="0",ll.close="1",ll.ping="2",ll.pong="3",ll.message="4",ll.upgrade="5",ll.noop="6";const g3=Object.create(null);ol.PACKET_TYPES_REVERSE=g3,Object.keys(ll).forEach(e=>{g3[ll[e]]=e});const vz={type:"error",data:"parser error"};ol.ERROR_PACKET=vz,Object.defineProperty(Ed,"__esModule",{value:!0}),Ed.encodePacket=Ed.encodePacketToBinary=void 0;const gz=ol,y3=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",b3=typeof ArrayBuffer=="function",S3=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,E3=({type:e,data:n},r,a)=>y3&&n instanceof Blob?r?a(n):x3(n,a):b3&&(n instanceof ArrayBuffer||S3(n))?r?a(n):x3(new Blob([n]),a):a(gz.PACKET_TYPES[e]+(n||""));Ed.encodePacket=E3;const x3=(e,n)=>{const r=new FileReader;return r.onload=function(){const a=r.result.split(",")[1];n("b"+(a||""))},r.readAsDataURL(e)};function w3(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let ox;function yz(e,n){if(y3&&e.data instanceof Blob)return e.data.arrayBuffer().then(w3).then(n);if(b3&&(e.data instanceof ArrayBuffer||S3(e.data)))return n(w3(e.data));E3(e,!1,r=>{ox||(ox=new TextEncoder),n(ox.encode(r))})}Ed.encodePacketToBinary=yz;var Yg={},xd={};Object.defineProperty(xd,"__esModule",{value:!0}),xd.decode=xd.encode=void 0;const wd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fm=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<wd.length;e++)fm[wd.charCodeAt(e)]=e;const bz=e=>{let n=new Uint8Array(e),r,a=n.length,s="";for(r=0;r<a;r+=3)s+=wd[n[r]>>2],s+=wd[(n[r]&3)<<4|n[r+1]>>4],s+=wd[(n[r+1]&15)<<2|n[r+2]>>6],s+=wd[n[r+2]&63];return a%3===2?s=s.substring(0,s.length-1)+"=":a%3===1&&(s=s.substring(0,s.length-2)+"=="),s};xd.encode=bz;const Sz=e=>{let n=e.length*.75,r=e.length,a,s=0,c,f,h,v;e[e.length-1]==="="&&(n--,e[e.length-2]==="="&&n--);const y=new ArrayBuffer(n),S=new Uint8Array(y);for(a=0;a<r;a+=4)c=fm[e.charCodeAt(a)],f=fm[e.charCodeAt(a+1)],h=fm[e.charCodeAt(a+2)],v=fm[e.charCodeAt(a+3)],S[s++]=c<<2|f>>4,S[s++]=(f&15)<<4|h>>2,S[s++]=(h&3)<<6|v&63;return y};xd.decode=Sz,Object.defineProperty(Yg,"__esModule",{value:!0}),Yg.decodePacket=void 0;const Zg=ol,Ez=xd,xz=typeof ArrayBuffer=="function",wz=(e,n)=>{if(typeof e!="string")return{type:"message",data:C3(e,n)};const r=e.charAt(0);return r==="b"?{type:"message",data:Cz(e.substring(1),n)}:Zg.PACKET_TYPES_REVERSE[r]?e.length>1?{type:Zg.PACKET_TYPES_REVERSE[r],data:e.substring(1)}:{type:Zg.PACKET_TYPES_REVERSE[r]}:Zg.ERROR_PACKET};Yg.decodePacket=wz;const Cz=(e,n)=>{if(xz){const r=(0,Ez.decode)(e);return C3(r,n)}else return{base64:!0,data:e}},C3=(e,n)=>{switch(n){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodePayload=e.decodePacket=e.encodePayload=e.encodePacket=e.protocol=e.createPacketDecoderStream=e.createPacketEncoderStream=void 0;const n=Ed;Object.defineProperty(e,"encodePacket",{enumerable:!0,get:function(){return n.encodePacket}});const r=Yg;Object.defineProperty(e,"decodePacket",{enumerable:!0,get:function(){return r.decodePacket}});const a=ol,s=String.fromCharCode(30),c=(C,x)=>{const R=C.length,T=new Array(R);let D=0;C.forEach((M,I)=>{(0,n.encodePacket)(M,!1,N=>{T[I]=N,++D===R&&x(T.join(s))})})};e.encodePayload=c;const f=(C,x)=>{const R=C.split(s),T=[];for(let D=0;D<R.length;D++){const M=(0,r.decodePacket)(R[D],x);if(T.push(M),M.type==="error")break}return T};e.decodePayload=f;function h(){return new TransformStream({transform(C,x){(0,n.encodePacketToBinary)(C,R=>{const T=R.length;let D;if(T<126)D=new Uint8Array(1),new DataView(D.buffer).setUint8(0,T);else if(T<65536){D=new Uint8Array(3);const M=new DataView(D.buffer);M.setUint8(0,126),M.setUint16(1,T)}else{D=new Uint8Array(9);const M=new DataView(D.buffer);M.setUint8(0,127),M.setBigUint64(1,BigInt(T))}C.data&&typeof C.data!="string"&&(D[0]|=128),x.enqueue(D),x.enqueue(R)})}})}e.createPacketEncoderStream=h;let v;function y(C){return C.reduce((x,R)=>x+R.length,0)}function S(C,x){if(C[0].length===x)return C.shift();const R=new Uint8Array(x);let T=0;for(let D=0;D<x;D++)R[D]=C[0][T++],T===C[0].length&&(C.shift(),T=0);return C.length&&T<C[0].length&&(C[0]=C[0].slice(T)),R}function E(C,x){v||(v=new TextDecoder);const R=[];let T=0,D=-1,M=!1;return new TransformStream({transform(I,N){for(R.push(I);;){if(T===0){if(y(R)<1)break;const B=S(R,1);M=(B[0]&128)===128,D=B[0]&127,D<126?T=3:D===126?T=1:T=2}else if(T===1){if(y(R)<2)break;const B=S(R,2);D=new DataView(B.buffer,B.byteOffset,B.length).getUint16(0),T=3}else if(T===2){if(y(R)<8)break;const B=S(R,8),F=new DataView(B.buffer,B.byteOffset,B.length),$=F.getUint32(0);if($>Math.pow(2,53-32)-1){N.enqueue(a.ERROR_PACKET);break}D=$*Math.pow(2,32)+F.getUint32(4),T=3}else{if(y(R)<D)break;const B=S(R,D);N.enqueue((0,r.decodePacket)(M?B:v.decode(B),x)),T=0}if(D===0||D>C){N.enqueue(a.ERROR_PACKET);break}}}})}e.createPacketDecoderStream=E,e.protocol=4})(Sd);function ji(e){if(e)return kz(e)}function kz(e){for(var n in ji.prototype)e[n]=ji.prototype[n];return e}ji.prototype.on=ji.prototype.addEventListener=function(e,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(n),this},ji.prototype.once=function(e,n){function r(){this.off(e,r),n.apply(this,arguments)}return r.fn=n,this.on(e,r),this},ji.prototype.off=ji.prototype.removeListener=ji.prototype.removeAllListeners=ji.prototype.removeEventListener=function(e,n){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var a,s=0;s<r.length;s++)if(a=r[s],a===n||a.fn===n){r.splice(s,1);break}return r.length===0&&delete this._callbacks["$"+e],this},ji.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var n=new Array(arguments.length-1),r=this._callbacks["$"+e],a=1;a<arguments.length;a++)n[a-1]=arguments[a];if(r){r=r.slice(0);for(var a=0,s=r.length;a<s;++a)r[a].apply(this,n)}return this},ji.prototype.emitReserved=ji.prototype.emit,ji.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},ji.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Cd=a6(Object.freeze(Object.defineProperty({__proto__:null,Emitter:ji},Symbol.toStringTag,{value:"Module"})));var to={},zc={};Object.defineProperty(zc,"__esModule",{value:!0}),zc.globalThisShim=void 0,zc.globalThisShim=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())(),Object.defineProperty(to,"__esModule",{value:!0}),to.byteLength=to.installTimerFunctions=to.pick=void 0;const hu=zc;function _z(e,...n){return n.reduce((r,a)=>(e.hasOwnProperty(a)&&(r[a]=e[a]),r),{})}to.pick=_z;const Tz=hu.globalThisShim.setTimeout,Rz=hu.globalThisShim.clearTimeout;function Oz(e,n){n.useNativeTimers?(e.setTimeoutFn=Tz.bind(hu.globalThisShim),e.clearTimeoutFn=Rz.bind(hu.globalThisShim)):(e.setTimeoutFn=hu.globalThisShim.setTimeout.bind(hu.globalThisShim),e.clearTimeoutFn=hu.globalThisShim.clearTimeout.bind(hu.globalThisShim))}to.installTimerFunctions=Oz;const Dz=1.33;function Az(e){return typeof e=="string"?Mz(e):Math.ceil((e.byteLength||e.size)*Dz)}to.byteLength=Az;function Mz(e){let n=0,r=0;for(let a=0,s=e.length;a<s;a++)n=e.charCodeAt(a),n<128?r+=1:n<2048?r+=2:n<55296||n>=57344?r+=3:(a++,r+=4);return r}var lx={exports:{}},sx,k3;function Lz(){if(k3)return sx;k3=1;var e=1e3,n=e*60,r=n*60,a=r*24,s=a*7,c=a*365.25;sx=function(S,E){E=E||{};var C=typeof S;if(C==="string"&&S.length>0)return f(S);if(C==="number"&&isFinite(S))return E.long?v(S):h(S);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(S))};function f(S){if(S=String(S),!(S.length>100)){var E=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(S);if(E){var C=parseFloat(E[1]),x=(E[2]||"ms").toLowerCase();switch(x){case"years":case"year":case"yrs":case"yr":case"y":return C*c;case"weeks":case"week":case"w":return C*s;case"days":case"day":case"d":return C*a;case"hours":case"hour":case"hrs":case"hr":case"h":return C*r;case"minutes":case"minute":case"mins":case"min":case"m":return C*n;case"seconds":case"second":case"secs":case"sec":case"s":return C*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return C;default:return}}}}function h(S){var E=Math.abs(S);return E>=a?Math.round(S/a)+"d":E>=r?Math.round(S/r)+"h":E>=n?Math.round(S/n)+"m":E>=e?Math.round(S/e)+"s":S+"ms"}function v(S){var E=Math.abs(S);return E>=a?y(S,E,a,"day"):E>=r?y(S,E,r,"hour"):E>=n?y(S,E,n,"minute"):E>=e?y(S,E,e,"second"):S+" ms"}function y(S,E,C,x){var R=E>=C*1.5;return Math.round(S/C)+" "+x+(R?"s":"")}return sx}function Pz(e){r.debug=r,r.default=r,r.coerce=v,r.disable=c,r.enable=s,r.enabled=f,r.humanize=Lz(),r.destroy=y,Object.keys(e).forEach(S=>{r[S]=e[S]}),r.names=[],r.skips=[],r.formatters={};function n(S){let E=0;for(let C=0;C<S.length;C++)E=(E<<5)-E+S.charCodeAt(C),E|=0;return r.colors[Math.abs(E)%r.colors.length]}r.selectColor=n;function r(S){let E,C=null,x,R;function T(...D){if(!T.enabled)return;const M=T,I=Number(new Date),N=I-(E||I);M.diff=N,M.prev=E,M.curr=I,E=I,D[0]=r.coerce(D[0]),typeof D[0]!="string"&&D.unshift("%O");let B=0;D[0]=D[0].replace(/%([a-zA-Z%])/g,($,H)=>{if($==="%%")return"%";B++;const Y=r.formatters[H];if(typeof Y=="function"){const ne=D[B];$=Y.call(M,ne),D.splice(B,1),B--}return $}),r.formatArgs.call(M,D),(M.log||r.log).apply(M,D)}return T.namespace=S,T.useColors=r.useColors(),T.color=r.selectColor(S),T.extend=a,T.destroy=r.destroy,Object.defineProperty(T,"enabled",{enumerable:!0,configurable:!1,get:()=>C!==null?C:(x!==r.namespaces&&(x=r.namespaces,R=r.enabled(S)),R),set:D=>{C=D}}),typeof r.init=="function"&&r.init(T),T}function a(S,E){const C=r(this.namespace+(typeof E>"u"?":":E)+S);return C.log=this.log,C}function s(S){r.save(S),r.namespaces=S,r.names=[],r.skips=[];let E;const C=(typeof S=="string"?S:"").split(/[\s,]+/),x=C.length;for(E=0;E<x;E++)C[E]&&(S=C[E].replace(/\*/g,".*?"),S[0]==="-"?r.skips.push(new RegExp("^"+S.slice(1)+"$")):r.names.push(new RegExp("^"+S+"$")))}function c(){const S=[...r.names.map(h),...r.skips.map(h).map(E=>"-"+E)].join(",");return r.enable(""),S}function f(S){if(S[S.length-1]==="*")return!0;let E,C;for(E=0,C=r.skips.length;E<C;E++)if(r.skips[E].test(S))return!1;for(E=0,C=r.names.length;E<C;E++)if(r.names[E].test(S))return!0;return!1}function h(S){return S.toString().substring(2,S.toString().length-2).replace(/\.\*\?$/,"*")}function v(S){return S instanceof Error?S.stack||S.message:S}function y(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}var Nz=Pz;(function(e,n){n.formatArgs=a,n.save=s,n.load=c,n.useColors=r,n.storage=f(),n.destroy=(()=>{let v=!1;return()=>{v||(v=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function a(v){if(v[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+v[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const y="color: "+this.color;v.splice(1,0,y,"color: inherit");let S=0,E=0;v[0].replace(/%[a-zA-Z%]/g,C=>{C!=="%%"&&(S++,C==="%c"&&(E=S))}),v.splice(E,0,y)}n.log=console.debug||console.log||(()=>{});function s(v){try{v?n.storage.setItem("debug",v):n.storage.removeItem("debug")}catch{}}function c(){let v;try{v=n.storage.getItem("debug")}catch{}return!v&&typeof process<"u"&&"env"in process&&(v=process.env.DEBUG),v}function f(){try{return localStorage}catch{}}e.exports=Nz(n);const{formatters:h}=e.exports;h.j=function(v){try{return JSON.stringify(v)}catch(y){return"[UnexpectedJSONParseError]: "+y.message}}})(lx,lx.exports);var sl=lx.exports,jc={};Object.defineProperty(jc,"__esModule",{value:!0}),jc.decode=jc.encode=void 0;function Fz(e){let n="";for(let r in e)e.hasOwnProperty(r)&&(n.length&&(n+="&"),n+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return n}jc.encode=Fz;function Iz(e){let n={},r=e.split("&");for(let a=0,s=r.length;a<s;a++){let c=r[a].split("=");n[decodeURIComponent(c[0])]=decodeURIComponent(c[1])}return n}jc.decode=Iz;var zz=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.Transport=void 0;const jz=Sd,$z=Cd,Uz=to,Bz=zz(sl),Vz=jc,Hz=(0,Bz.default)("engine.io-client:transport");class qz extends Error{constructor(n,r,a){super(n),this.description=r,this.context=a,this.type="TransportError"}}class Wz extends $z.Emitter{constructor(n){super(),this.writable=!1,(0,Uz.installTimerFunctions)(this,n),this.opts=n,this.query=n.query,this.socket=n.socket}onError(n,r,a){return super.emitReserved("error",new qz(n,r,a)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(n){this.readyState==="open"?this.write(n):Hz("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(n){const r=(0,jz.decodePacket)(n,this.socket.binaryType);this.onPacket(r)}onPacket(n){super.emitReserved("packet",n)}onClose(n){this.readyState="closed",super.emitReserved("close",n)}pause(n){}createUri(n,r={}){return n+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){const n=this.opts.hostname;return n.indexOf(":")===-1?n:"["+n+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(n){const r=(0,Vz.encode)(n);return r.length?"?"+r:""}}Ic.Transport=Wz;var ts={};Object.defineProperty(ts,"__esModule",{value:!0}),ts.yeast=ts.decode=ts.encode=void 0;const _3="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Kg=64,T3={};let R3=0,mu=0,O3;function ux(e){let n="";do n=_3[e%Kg]+n,e=Math.floor(e/Kg);while(e>0);return n}ts.encode=ux;function Yz(e){let n=0;for(mu=0;mu<e.length;mu++)n=n*Kg+T3[e.charAt(mu)];return n}ts.decode=Yz;function Zz(){const e=ux(+new Date);return e!==O3?(R3=0,O3=e):e+"."+ux(R3++)}for(ts.yeast=Zz;mu<Kg;mu++)T3[_3[mu]]=mu;var kd={},Gg={};Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.hasCORS=void 0;let D3=!1;try{D3=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}Gg.hasCORS=D3,Object.defineProperty(kd,"__esModule",{value:!0}),kd.createCookieJar=kd.XHR=void 0;const Kz=Gg,Gz=zc;function Qz(e){const n=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!n||Kz.hasCORS))return new XMLHttpRequest}catch{}if(!n)try{return new Gz.globalThisShim[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}kd.XHR=Qz;function Xz(){}kd.createCookieJar=Xz;var Jz=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bd,"__esModule",{value:!0}),bd.Request=bd.Polling=void 0;const ej=Ic,tj=Jz(sl),nj=ts,A3=Sd,cx=kd,rj=Cd,M3=to,ij=zc,sa=(0,tj.default)("engine.io-client:polling");function aj(){}const oj=function(){return new cx.XHR({xdomain:!1}).responseType!=null}();class lj extends ej.Transport{constructor(n){if(super(n),this.polling=!1,typeof location<"u"){const a=location.protocol==="https:";let s=location.port;s||(s=a?"443":"80"),this.xd=typeof location<"u"&&n.hostname!==location.hostname||s!==n.port}const r=n&&n.forceBase64;this.supportsBinary=oj&&!r,this.opts.withCredentials&&(this.cookieJar=(0,cx.createCookieJar)())}get name(){return"polling"}doOpen(){this.poll()}pause(n){this.readyState="pausing";const r=()=>{sa("paused"),this.readyState="paused",n()};if(this.polling||!this.writable){let a=0;this.polling&&(sa("we are currently polling - waiting to pause"),a++,this.once("pollComplete",function(){sa("pre-pause polling complete"),--a||r()})),this.writable||(sa("we are currently writing - waiting to pause"),a++,this.once("drain",function(){sa("pre-pause writing complete"),--a||r()}))}else r()}poll(){sa("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(n){sa("polling got data %s",n);const r=a=>{if(this.readyState==="opening"&&a.type==="open"&&this.onOpen(),a.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(a)};(0,A3.decodePayload)(n,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"?this.poll():sa('ignoring poll - transport state "%s"',this.readyState))}doClose(){const n=()=>{sa("writing close packet"),this.write([{type:"close"}])};this.readyState==="open"?(sa("transport open - closing"),n()):(sa("transport not open - deferring close"),this.once("open",n))}write(n){this.writable=!1,(0,A3.encodePayload)(n,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const n=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=(0,nj.yeast)()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(n,r)}request(n={}){return Object.assign(n,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Co(this.uri(),n)}doWrite(n,r){const a=this.request({method:"POST",data:n});a.on("success",r),a.on("error",(s,c)=>{this.onError("xhr post error",s,c)})}doPoll(){sa("xhr poll");const n=this.request();n.on("data",this.onData.bind(this)),n.on("error",(r,a)=>{this.onError("xhr poll error",r,a)}),this.pollXhr=n}}bd.Polling=lj;class Co extends rj.Emitter{constructor(n,r){super(),(0,M3.installTimerFunctions)(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 n;const r=(0,M3.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this.opts.xd;const a=this.xhr=new cx.XHR(r);try{sa("xhr open %s: %s",this.method,this.uri),a.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){a.setDisableHeaderCheck&&a.setDisableHeaderCheck(!0);for(let s in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(s)&&a.setRequestHeader(s,this.opts.extraHeaders[s])}}catch{}if(this.method==="POST")try{a.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{a.setRequestHeader("Accept","*/*")}catch{}(n=this.opts.cookieJar)===null||n===void 0||n.addCookies(a),"withCredentials"in a&&(a.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(a.timeout=this.opts.requestTimeout),a.onreadystatechange=()=>{var s;a.readyState===3&&((s=this.opts.cookieJar)===null||s===void 0||s.parseCookies(a)),a.readyState===4&&(a.status===200||a.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof a.status=="number"?a.status:0)},0))},sa("xhr data %s",this.data),a.send(this.data)}catch(s){this.setTimeoutFn(()=>{this.onError(s)},0);return}typeof document<"u"&&(this.index=Co.requestsCount++,Co.requests[this.index]=this)}onError(n){this.emitReserved("error",n,this.xhr),this.cleanup(!0)}cleanup(n){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=aj,n)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Co.requests[this.index],this.xhr=null}}onLoad(){const n=this.xhr.responseText;n!==null&&(this.emitReserved("data",n),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(bd.Request=Co,Co.requestsCount=0,Co.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",L3);else if(typeof addEventListener=="function"){const e="onpagehide"in ij.globalThisShim?"pagehide":"unload";addEventListener(e,L3,!1)}}function L3(){for(let e in Co.requests)Co.requests.hasOwnProperty(e)&&Co.requests[e].abort()}var Qg={},Na={};Object.defineProperty(Na,"__esModule",{value:!0}),Na.defaultBinaryType=Na.usingBrowserWebSocket=Na.WebSocket=Na.nextTick=void 0;const P3=zc;Na.nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?n=>Promise.resolve().then(n):(n,r)=>r(n,0))(),Na.WebSocket=P3.globalThisShim.WebSocket||P3.globalThisShim.MozWebSocket,Na.usingBrowserWebSocket=!0,Na.defaultBinaryType="arraybuffer";var sj=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qg,"__esModule",{value:!0}),Qg.WS=void 0;const uj=Ic,cj=ts,fj=to,vu=Na,dj=sj(sl),pj=Sd,hj=(0,dj.default)("engine.io-client:websocket"),N3=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class mj extends uj.Transport{constructor(n){super(n),this.supportsBinary=!n.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const n=this.uri(),r=this.opts.protocols,a=N3?{}:(0,fj.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(a.headers=this.opts.extraHeaders);try{this.ws=vu.usingBrowserWebSocket&&!N3?r?new vu.WebSocket(n,r):new vu.WebSocket(n):new vu.WebSocket(n,r,a)}catch(s){return this.emitReserved("error",s)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=n=>this.onClose({description:"websocket connection closed",context:n}),this.ws.onmessage=n=>this.onData(n.data),this.ws.onerror=n=>this.onError("websocket error",n)}write(n){this.writable=!1;for(let r=0;r<n.length;r++){const a=n[r],s=r===n.length-1;(0,pj.encodePacket)(a,this.supportsBinary,c=>{const f={};vu.usingBrowserWebSocket||(a.options&&(f.compress=a.options.compress),this.opts.perMessageDeflate&&(typeof c=="string"?Buffer.byteLength(c):c.length)<this.opts.perMessageDeflate.threshold&&(f.compress=!1));try{vu.usingBrowserWebSocket?this.ws.send(c):this.ws.send(c,f)}catch{hj("websocket closed before onclose event")}s&&(0,vu.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const n=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=(0,cj.yeast)()),this.supportsBinary||(r.b64=1),this.createUri(n,r)}check(){return!!vu.WebSocket}}Qg.WS=mj;var Xg={},vj=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.WT=void 0;const gj=Ic,yj=Na,F3=Sd,dm=(0,vj(sl).default)("engine.io-client:webtransport");class bj extends gj.Transport{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{dm("transport closed gracefully"),this.onClose()}).catch(n=>{dm("transport closed due to %s",n),this.onError("webtransport error",n)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(n=>{const r=(0,F3.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),a=n.readable.pipeThrough(r).getReader(),s=(0,F3.createPacketEncoderStream)();s.readable.pipeTo(n.writable),this.writer=s.writable.getWriter();const c=()=>{a.read().then(({done:h,value:v})=>{if(h){dm("session is closed");return}dm("received chunk: %o",v),this.onPacket(v),c()}).catch(h=>{dm("an error occurred while reading: %s",h)})};c();const f={type:"open"};this.query.sid&&(f.data=`{"sid":"${this.query.sid}"}`),this.writer.write(f).then(()=>this.onOpen())})}))}write(n){this.writable=!1;for(let r=0;r<n.length;r++){const a=n[r],s=r===n.length-1;this.writer.write(a).then(()=>{s&&(0,yj.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var n;(n=this.transport)===null||n===void 0||n.close()}}Xg.WT=bj,Object.defineProperty(cm,"__esModule",{value:!0}),cm.transports=void 0;const Sj=bd,Ej=Qg,xj=Xg;cm.transports={websocket:Ej.WS,webtransport:xj.WT,polling:Sj.Polling};var pm={};Object.defineProperty(pm,"__esModule",{value:!0}),pm.parse=void 0;const wj=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Cj=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function kj(e){const n=e,r=e.indexOf("["),a=e.indexOf("]");r!=-1&&a!=-1&&(e=e.substring(0,r)+e.substring(r,a).replace(/:/g,";")+e.substring(a,e.length));let s=wj.exec(e||""),c={},f=14;for(;f--;)c[Cj[f]]=s[f]||"";return r!=-1&&a!=-1&&(c.source=n,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=_j(c,c.path),c.queryKey=Tj(c,c.query),c}pm.parse=kj;function _j(e,n){const r=/\/{2,9}/g,a=n.replace(r,"/").split("/");return(n.slice(0,1)=="/"||n.length===0)&&a.splice(0,1),n.slice(-1)=="/"&&a.splice(a.length-1,1),a}function Tj(e,n){const r={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(a,s,c){s&&(r[s]=c)}),r}var Rj=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Wg,"__esModule",{value:!0}),Wg.Socket=void 0;const Oj=cm,I3=to,Dj=jc,z3=pm,Aj=Rj(sl),Mj=Cd,j3=Sd,Lj=Na,ir=(0,Aj.default)("engine.io-client:socket");let $3=class kh extends Mj.Emitter{constructor(n,r={}){super(),this.binaryType=Lj.defaultBinaryType,this.writeBuffer=[],n&&typeof n=="object"&&(r=n,n=null),n?(n=(0,z3.parse)(n),r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)):r.host&&(r.hostname=(0,z3.parse)(r.host).host),(0,I3.installTimerFunctions)(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=r.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,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},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=(0,Dj.decode)(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(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"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(n){ir('creating transport "%s"',n);const r=Object.assign({},this.opts.query);r.EIO=j3.protocol,r.transport=n,this.id&&(r.sid=this.id);const a=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[n]);return ir("options: %j",a),new Oj.transports[n](a)}open(){let n;if(this.opts.rememberUpgrade&&kh.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)n="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else n=this.transports[0];this.readyState="opening";try{n=this.createTransport(n)}catch(r){ir("error while creating transport: %s",r),this.transports.shift(),this.open();return}n.open(),this.setTransport(n)}setTransport(n){ir("setting transport %s",n.name),this.transport&&(ir("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=n,n.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",r=>this.onClose("transport close",r))}probe(n){ir('probing transport "%s"',n);let r=this.createTransport(n),a=!1;kh.priorWebsocketSuccess=!1;const s=()=>{a||(ir('probe transport "%s" opened',n),r.send([{type:"ping",data:"probe"}]),r.once("packet",E=>{if(!a)if(E.type==="pong"&&E.data==="probe"){if(ir('probe transport "%s" pong',n),this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;kh.priorWebsocketSuccess=r.name==="websocket",ir('pausing current transport "%s"',this.transport.name),this.transport.pause(()=>{a||this.readyState!=="closed"&&(ir("changing transport and sending upgrade packet"),S(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{ir('probe transport "%s" failed',n);const C=new Error("probe error");C.transport=r.name,this.emitReserved("upgradeError",C)}}))};function c(){a||(a=!0,S(),r.close(),r=null)}const f=E=>{const C=new Error("probe error: "+E);C.transport=r.name,c(),ir('probe transport "%s" failed because of error: %s',n,E),this.emitReserved("upgradeError",C)};function h(){f("transport closed")}function v(){f("socket closed")}function y(E){r&&E.name!==r.name&&(ir('"%s" works - aborting "%s"',E.name,r.name),c())}const S=()=>{r.removeListener("open",s),r.removeListener("error",f),r.removeListener("close",h),this.off("close",v),this.off("upgrading",y)};r.once("open",s),r.once("error",f),r.once("close",h),this.once("close",v),this.once("upgrading",y),this.upgrades.indexOf("webtransport")!==-1&&n!=="webtransport"?this.setTimeoutFn(()=>{a||r.open()},200):r.open()}onOpen(){if(ir("socket open"),this.readyState="open",kh.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){ir("starting upgrade probes");let n=0;const r=this.upgrades.length;for(;n<r;n++)this.probe(this.upgrades[n])}}onPacket(n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(ir('socket receive: type "%s", data "%s"',n.type,n.data),this.emitReserved("packet",n),this.emitReserved("heartbeat"),this.resetPingTimeout(),n.type){case"open":this.onHandshake(JSON.parse(n.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const r=new Error("server error");r.code=n.data,this.onError(r);break;case"message":this.emitReserved("data",n.data),this.emitReserved("message",n.data);break}else ir('packet received with socket readyState "%s"',this.readyState)}onHandshake(n){this.emitReserved("handshake",n),this.id=n.sid,this.transport.query.sid=n.sid,this.upgrades=this.filterUpgrades(n.upgrades),this.pingInterval=n.pingInterval,this.pingTimeout=n.pingTimeout,this.maxPayload=n.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),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 n=this.getWritablePackets();ir("flushing %d packets in socket",n.length),this.transport.send(n),this.prevBufferLen=n.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let a=0;a<this.writeBuffer.length;a++){const s=this.writeBuffer[a].data;if(s&&(r+=(0,I3.byteLength)(s)),a>0&&r>this.maxPayload)return ir("only send %d out of %d packets",a,this.writeBuffer.length),this.writeBuffer.slice(0,a);r+=2}return ir("payload size is %d (max: %d)",r,this.maxPayload),this.writeBuffer}write(n,r,a){return this.sendPacket("message",n,r,a),this}send(n,r,a){return this.sendPacket("message",n,r,a),this}sendPacket(n,r,a,s){if(typeof r=="function"&&(s=r,r=void 0),typeof a=="function"&&(s=a,a=null),this.readyState==="closing"||this.readyState==="closed")return;a=a||{},a.compress=a.compress!==!1;const c={type:n,data:r,options:a};this.emitReserved("packetCreate",c),this.writeBuffer.push(c),s&&this.once("flush",s),this.flush()}close(){const n=()=>{this.onClose("forced close"),ir("socket closing - telling transport to close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),n()},a=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?a():n()}):this.upgrading?a():n()),this}onError(n){ir("socket error %j",n),kh.priorWebsocketSuccess=!1,this.emitReserved("error",n),this.onClose("transport error",n)}onClose(n,r){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(ir('socket close with reason: "%s"',n),this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",n,r),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(n){const r=[];let a=0;const s=n.length;for(;a<s;a++)~this.transports.indexOf(n[a])&&r.push(n[a]);return r}};Wg.Socket=$3,$3.protocol=j3.protocol,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.nextTick=e.parse=e.installTimerFunctions=e.transports=e.Transport=e.protocol=e.Socket=void 0;const n=Wg;Object.defineProperty(e,"Socket",{enumerable:!0,get:function(){return n.Socket}}),e.protocol=n.Socket.protocol;var r=Ic;Object.defineProperty(e,"Transport",{enumerable:!0,get:function(){return r.Transport}});var a=cm;Object.defineProperty(e,"transports",{enumerable:!0,get:function(){return a.transports}});var s=to;Object.defineProperty(e,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var c=pm;Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return c.parse}});var f=Na;Object.defineProperty(e,"nextTick",{enumerable:!0,get:function(){return f.nextTick}})}(ax);var Pj=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qg,"__esModule",{value:!0}),qg.url=void 0;const Nj=ax,U3=Pj(sl).default("socket.io-client:url");function Fj(e,n="",r){let a=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(U3("protocol-less url %s",e),typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),U3("parse %s",e),a=Nj.parse(e)),a.port||(/^(http|ws)$/.test(a.protocol)?a.port="80":/^(http|ws)s$/.test(a.protocol)&&(a.port="443")),a.path=a.path||"/";const c=a.host.indexOf(":")!==-1?"["+a.host+"]":a.host;return a.id=a.protocol+"://"+c+":"+a.port+n,a.href=a.protocol+"://"+c+(r&&r.port===a.port?"":":"+a.port),a}qg.url=Fj;var Jg={},hm={},ey={},_d={},$c={};Object.defineProperty($c,"__esModule",{value:!0}),$c.hasBinary=$c.isBinary=void 0;const Ij=typeof ArrayBuffer=="function",zj=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,B3=Object.prototype.toString,jj=typeof Blob=="function"||typeof Blob<"u"&&B3.call(Blob)==="[object BlobConstructor]",$j=typeof File=="function"||typeof File<"u"&&B3.call(File)==="[object FileConstructor]";function V3(e){return Ij&&(e instanceof ArrayBuffer||zj(e))||jj&&e instanceof Blob||$j&&e instanceof File}$c.isBinary=V3;function ty(e,n){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,a=e.length;r<a;r++)if(ty(e[r]))return!0;return!1}if(V3(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return ty(e.toJSON(),!0);for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&ty(e[r]))return!0;return!1}$c.hasBinary=ty,Object.defineProperty(_d,"__esModule",{value:!0}),_d.reconstructPacket=_d.deconstructPacket=void 0;const Uj=$c;function Bj(e){const n=[],r=e.data,a=e;return a.data=fx(r,n),a.attachments=n.length,{packet:a,buffers:n}}_d.deconstructPacket=Bj;function fx(e,n){if(!e)return e;if((0,Uj.isBinary)(e)){const r={_placeholder:!0,num:n.length};return n.push(e),r}else if(Array.isArray(e)){const r=new Array(e.length);for(let a=0;a<e.length;a++)r[a]=fx(e[a],n);return r}else if(typeof e=="object"&&!(e instanceof Date)){const r={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=fx(e[a],n));return r}return e}function Vj(e,n){return e.data=dx(e.data,n),delete e.attachments,e}_d.reconstructPacket=Vj;function dx(e,n){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<n.length)return n[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=dx(e[r],n);else if(typeof e=="object")for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=dx(e[r],n));return e}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Decoder=e.Encoder=e.PacketType=e.protocol=void 0;const n=Cd,r=_d,a=$c,c=(0,sl.default)("socket.io-parser"),f=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];e.protocol=5;var h;(function(C){C[C.CONNECT=0]="CONNECT",C[C.DISCONNECT=1]="DISCONNECT",C[C.EVENT=2]="EVENT",C[C.ACK=3]="ACK",C[C.CONNECT_ERROR=4]="CONNECT_ERROR",C[C.BINARY_EVENT=5]="BINARY_EVENT",C[C.BINARY_ACK=6]="BINARY_ACK"})(h=e.PacketType||(e.PacketType={}));class v{constructor(x){this.replacer=x}encode(x){return c("encoding packet %j",x),(x.type===h.EVENT||x.type===h.ACK)&&(0,a.hasBinary)(x)?this.encodeAsBinary({type:x.type===h.EVENT?h.BINARY_EVENT:h.BINARY_ACK,nsp:x.nsp,data:x.data,id:x.id}):[this.encodeAsString(x)]}encodeAsString(x){let R=""+x.type;return(x.type===h.BINARY_EVENT||x.type===h.BINARY_ACK)&&(R+=x.attachments+"-"),x.nsp&&x.nsp!=="/"&&(R+=x.nsp+","),x.id!=null&&(R+=x.id),x.data!=null&&(R+=JSON.stringify(x.data,this.replacer)),c("encoded %j as %s",x,R),R}encodeAsBinary(x){const R=(0,r.deconstructPacket)(x),T=this.encodeAsString(R.packet),D=R.buffers;return D.unshift(T),D}}e.Encoder=v;function y(C){return Object.prototype.toString.call(C)==="[object Object]"}class S extends n.Emitter{constructor(x){super(),this.reviver=x}add(x){let R;if(typeof x=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");R=this.decodeString(x);const T=R.type===h.BINARY_EVENT;T||R.type===h.BINARY_ACK?(R.type=T?h.EVENT:h.ACK,this.reconstructor=new E(R),R.attachments===0&&super.emitReserved("decoded",R)):super.emitReserved("decoded",R)}else if((0,a.isBinary)(x)||x.base64)if(this.reconstructor)R=this.reconstructor.takeBinaryData(x),R&&(this.reconstructor=null,super.emitReserved("decoded",R));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+x)}decodeString(x){let R=0;const T={type:Number(x.charAt(0))};if(h[T.type]===void 0)throw new Error("unknown packet type "+T.type);if(T.type===h.BINARY_EVENT||T.type===h.BINARY_ACK){const M=R+1;for(;x.charAt(++R)!=="-"&&R!=x.length;);const I=x.substring(M,R);if(I!=Number(I)||x.charAt(R)!=="-")throw new Error("Illegal attachments");T.attachments=Number(I)}if(x.charAt(R+1)==="/"){const M=R+1;for(;++R&&!(x.charAt(R)===","||R===x.length););T.nsp=x.substring(M,R)}else T.nsp="/";const D=x.charAt(R+1);if(D!==""&&Number(D)==D){const M=R+1;for(;++R;){const I=x.charAt(R);if(I==null||Number(I)!=I){--R;break}if(R===x.length)break}T.id=Number(x.substring(M,R+1))}if(x.charAt(++R)){const M=this.tryParse(x.substr(R));if(S.isPayloadValid(T.type,M))T.data=M;else throw new Error("invalid payload")}return c("decoded %s as %j",x,T),T}tryParse(x){try{return JSON.parse(x,this.reviver)}catch{return!1}}static isPayloadValid(x,R){switch(x){case h.CONNECT:return y(R);case h.DISCONNECT:return R===void 0;case h.CONNECT_ERROR:return typeof R=="string"||y(R);case h.EVENT:case h.BINARY_EVENT:return Array.isArray(R)&&(typeof R[0]=="number"||typeof R[0]=="string"&&f.indexOf(R[0])===-1);case h.ACK:case h.BINARY_ACK:return Array.isArray(R)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}e.Decoder=S;class E{constructor(x){this.packet=x,this.buffers=[],this.reconPack=x}takeBinaryData(x){if(this.buffers.push(x),this.buffers.length===this.reconPack.attachments){const R=(0,r.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),R}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}})(ey);var mm={};Object.defineProperty(mm,"__esModule",{value:!0}),mm.on=void 0;function Hj(e,n,r){return e.on(n,r),function(){e.off(n,r)}}mm.on=Hj;var qj=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hm,"__esModule",{value:!0}),hm.Socket=void 0;const ko=ey,ny=mm,Wj=Cd,$r=qj(sl).default("socket.io-client:socket"),Yj=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Zj extends Wj.Emitter{constructor(n,r,a){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=n,this.nsp=r,a&&a.auth&&(this.auth=a.auth),this._opts=Object.assign({},a),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const n=this.io;this.subs=[ny.on(n,"open",this.onopen.bind(this)),ny.on(n,"packet",this.onpacket.bind(this)),ny.on(n,"error",this.onerror.bind(this)),ny.on(n,"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(...n){return n.unshift("message"),this.emit.apply(this,n),this}emit(n,...r){if(Yj.hasOwnProperty(n))throw new Error('"'+n.toString()+'" is a reserved event name');if(r.unshift(n),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const a={type:ko.PacketType.EVENT,data:r};if(a.options={},a.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const f=this.ids++;$r("emitting packet with ack id %d",f);const h=r.pop();this._registerAckCallback(f,h),a.id=f}const s=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!s||!this.connected)?$r("discard packet as the transport is not currently writable"):this.connected?(this.notifyOutgoingListeners(a),this.packet(a)):this.sendBuffer.push(a),this.flags={},this}_registerAckCallback(n,r){var a;const s=(a=this.flags.timeout)!==null&&a!==void 0?a:this._opts.ackTimeout;if(s===void 0){this.acks[n]=r;return}const c=this.io.setTimeoutFn(()=>{delete this.acks[n];for(let f=0;f<this.sendBuffer.length;f++)this.sendBuffer[f].id===n&&($r("removing packet with ack id %d from the buffer",n),this.sendBuffer.splice(f,1));$r("event with ack id %d has timed out after %d ms",n,s),r.call(this,new Error("operation has timed out"))},s);this.acks[n]=(...f)=>{this.io.clearTimeoutFn(c),r.apply(this,[null,...f])}}emitWithAck(n,...r){const a=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((s,c)=>{r.push((f,h)=>a?f?c(f):s(h):s(f)),this.emit(n,...r)})}_addToQueue(n){let r;typeof n[n.length-1]=="function"&&(r=n.pop());const a={id:this._queueSeq++,tryCount:0,pending:!1,args:n,flags:Object.assign({fromQueue:!0},this.flags)};n.push((s,...c)=>a!==this._queue[0]?void 0:(s!==null?a.tryCount>this._opts.retries&&($r("packet [%d] is discarded after %d tries",a.id,a.tryCount),this._queue.shift(),r&&r(s)):($r("packet [%d] was successfully sent",a.id),this._queue.shift(),r&&r(null,...c)),a.pending=!1,this._drainQueue())),this._queue.push(a),this._drainQueue()}_drainQueue(n=!1){if($r("draining queue"),!this.connected||this._queue.length===0)return;const r=this._queue[0];if(r.pending&&!n){$r("packet [%d] has already been sent and is waiting for an ack",r.id);return}r.pending=!0,r.tryCount++,$r("sending packet [%d] (try n°%d)",r.id,r.tryCount),this.flags=r.flags,this.emit.apply(this,r.args)}packet(n){n.nsp=this.nsp,this.io._packet(n)}onopen(){$r("transport is open - connecting"),typeof this.auth=="function"?this.auth(n=>{this._sendConnectPacket(n)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(n){this.packet({type:ko.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},n):n})}onerror(n){this.connected||this.emitReserved("connect_error",n)}onclose(n,r){$r("close (%s)",n),this.connected=!1,delete this.id,this.emitReserved("disconnect",n,r)}onpacket(n){if(n.nsp===this.nsp)switch(n.type){case ko.PacketType.CONNECT:n.data&&n.data.sid?this.onconnect(n.data.sid,n.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 ko.PacketType.EVENT:case ko.PacketType.BINARY_EVENT:this.onevent(n);break;case ko.PacketType.ACK:case ko.PacketType.BINARY_ACK:this.onack(n);break;case ko.PacketType.DISCONNECT:this.ondisconnect();break;case ko.PacketType.CONNECT_ERROR:this.destroy();const a=new Error(n.data.message);a.data=n.data.data,this.emitReserved("connect_error",a);break}}onevent(n){const r=n.data||[];$r("emitting event %j",r),n.id!=null&&($r("attaching ack callback to event"),r.push(this.ack(n.id))),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(n){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const a of r)a.apply(this,n)}super.emit.apply(this,n),this._pid&&n.length&&typeof n[n.length-1]=="string"&&(this._lastOffset=n[n.length-1])}ack(n){const r=this;let a=!1;return function(...s){a||(a=!0,$r("sending ack %j",s),r.packet({type:ko.PacketType.ACK,id:n,data:s}))}}onack(n){const r=this.acks[n.id];typeof r=="function"?($r("calling ack %s with %j",n.id,n.data),r.apply(this,n.data),delete this.acks[n.id]):$r("bad ack %s",n.id)}onconnect(n,r){$r("socket connected with id %s",n),this.id=n,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(n=>this.emitEvent(n)),this.receiveBuffer=[],this.sendBuffer.forEach(n=>{this.notifyOutgoingListeners(n),this.packet(n)}),this.sendBuffer=[]}ondisconnect(){$r("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(n=>n()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&($r("performing disconnect (%s)",this.nsp),this.packet({type:ko.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(n){return this.flags.compress=n,this}get volatile(){return this.flags.volatile=!0,this}timeout(n){return this.flags.timeout=n,this}onAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(n),this}prependAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(n),this}offAny(n){if(!this._anyListeners)return this;if(n){const r=this._anyListeners;for(let a=0;a<r.length;a++)if(n===r[a])return r.splice(a,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(n),this}prependAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(n),this}offAnyOutgoing(n){if(!this._anyOutgoingListeners)return this;if(n){const r=this._anyOutgoingListeners;for(let a=0;a<r.length;a++)if(n===r[a])return r.splice(a,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(n){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const a of r)a.apply(this,n.data)}}}hm.Socket=Zj;var ry={};Object.defineProperty(ry,"__esModule",{value:!0}),ry.Backoff=void 0;function Td(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}ry.Backoff=Td,Td.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),r=Math.floor(n*this.jitter*e);e=Math.floor(n*10)&1?e+r:e-r}return Math.min(e,this.max)|0},Td.prototype.reset=function(){this.attempts=0},Td.prototype.setMin=function(e){this.ms=e},Td.prototype.setMax=function(e){this.max=e},Td.prototype.setJitter=function(e){this.jitter=e};var Kj=Ht&&Ht.__createBinding||(Object.create?function(e,n,r,a){a===void 0&&(a=r),Object.defineProperty(e,a,{enumerable:!0,get:function(){return n[r]}})}:function(e,n,r,a){a===void 0&&(a=r),e[a]=n[r]}),Gj=Ht&&Ht.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),Qj=Ht&&Ht.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Kj(n,e,r);return Gj(n,e),n},Xj=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Jg,"__esModule",{value:!0}),Jg.Manager=void 0;const px=ax,Jj=hm,e$=Qj(ey),Uc=mm,t$=ry,n$=Cd,ui=Xj(sl).default("socket.io-client:manager");class r$ extends n$.Emitter{constructor(n,r){var a;super(),this.nsps={},this.subs=[],n&&typeof n=="object"&&(r=n,n=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,px.installTimerFunctions(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((a=r.randomizationFactor)!==null&&a!==void 0?a:.5),this.backoff=new t$.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=n;const s=r.parser||e$;this.encoder=new s.Encoder,this.decoder=new s.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(n){return arguments.length?(this._reconnection=!!n,this):this._reconnection}reconnectionAttempts(n){return n===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=n,this)}reconnectionDelay(n){var r;return n===void 0?this._reconnectionDelay:(this._reconnectionDelay=n,(r=this.backoff)===null||r===void 0||r.setMin(n),this)}randomizationFactor(n){var r;return n===void 0?this._randomizationFactor:(this._randomizationFactor=n,(r=this.backoff)===null||r===void 0||r.setJitter(n),this)}reconnectionDelayMax(n){var r;return n===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=n,(r=this.backoff)===null||r===void 0||r.setMax(n),this)}timeout(n){return arguments.length?(this._timeout=n,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(n){if(ui("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;ui("opening %s",this.uri),this.engine=new px.Socket(this.uri,this.opts);const r=this.engine,a=this;this._readyState="opening",this.skipReconnect=!1;const s=Uc.on(r,"open",function(){a.onopen(),n&&n()}),c=h=>{ui("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",h),n?n(h):this.maybeReconnectOnOpen()},f=Uc.on(r,"error",c);if(this._timeout!==!1){const h=this._timeout;ui("connect attempt will timeout after %d",h);const v=this.setTimeoutFn(()=>{ui("connect attempt timed out after %d",h),s(),c(new Error("timeout")),r.close()},h);this.opts.autoUnref&&v.unref(),this.subs.push(()=>{this.clearTimeoutFn(v)})}return this.subs.push(s),this.subs.push(f),this}connect(n){return this.open(n)}onopen(){ui("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const n=this.engine;this.subs.push(Uc.on(n,"ping",this.onping.bind(this)),Uc.on(n,"data",this.ondata.bind(this)),Uc.on(n,"error",this.onerror.bind(this)),Uc.on(n,"close",this.onclose.bind(this)),Uc.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(n){try{this.decoder.add(n)}catch(r){this.onclose("parse error",r)}}ondecoded(n){px.nextTick(()=>{this.emitReserved("packet",n)},this.setTimeoutFn)}onerror(n){ui("error",n),this.emitReserved("error",n)}socket(n,r){let a=this.nsps[n];return a?this._autoConnect&&!a.active&&a.connect():(a=new Jj.Socket(this,n,r),this.nsps[n]=a),a}_destroy(n){const r=Object.keys(this.nsps);for(const a of r)if(this.nsps[a].active){ui("socket %s is still active, skipping close",a);return}this._close()}_packet(n){ui("writing packet %j",n);const r=this.encoder.encode(n);for(let a=0;a<r.length;a++)this.engine.write(r[a],n.options)}cleanup(){ui("cleanup"),this.subs.forEach(n=>n()),this.subs.length=0,this.decoder.destroy()}_close(){ui("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(n,r){ui("closed due to %s",n),this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",n,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const n=this;if(this.backoff.attempts>=this._reconnectionAttempts)ui("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const r=this.backoff.duration();ui("will wait %dms before reconnect attempt",r),this._reconnecting=!0;const a=this.setTimeoutFn(()=>{n.skipReconnect||(ui("attempting reconnect"),this.emitReserved("reconnect_attempt",n.backoff.attempts),!n.skipReconnect&&n.open(s=>{s?(ui("reconnect attempt error"),n._reconnecting=!1,n.reconnect(),this.emitReserved("reconnect_error",s)):(ui("reconnect success"),n.onreconnect())}))},r);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}}onreconnect(){const n=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",n)}}Jg.Manager=r$,function(e,n){var r=Ht&&Ht.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.connect=n.io=n.Socket=n.Manager=n.protocol=void 0;const a=qg,s=Jg;Object.defineProperty(n,"Manager",{enumerable:!0,get:function(){return s.Manager}});const c=hm;Object.defineProperty(n,"Socket",{enumerable:!0,get:function(){return c.Socket}});const h=r(sl).default("socket.io-client"),v={};function y(E,C){typeof E=="object"&&(C=E,E=void 0),C=C||{};const x=a.url(E,C.path||"/socket.io"),R=x.source,T=x.id,D=x.path,M=v[T]&&D in v[T].nsps,I=C.forceNew||C["force new connection"]||C.multiplex===!1||M;let N;return I?(h("ignoring socket cache for %s",R),N=new s.Manager(R,C)):(v[T]||(h("new io instance for %s",R),v[T]=new s.Manager(R,C)),N=v[T]),x.query&&!C.query&&(C.query=x.queryKey),N.socket(x.path,C)}n.io=y,n.connect=y,n.default=y,Object.assign(y,{Manager:s.Manager,Socket:c.Socket,io:y,connect:y});var S=ey;Object.defineProperty(n,"protocol",{enumerable:!0,get:function(){return S.protocol}}),e.exports=y}(ix,ix.exports);var i$=ix.exports;(function(e){var n=Ht&&Ht.__awaiter||function(v,y,S,E){function C(x){return x instanceof S?x:new S(function(R){R(x)})}return new(S||(S=Promise))(function(x,R){function T(I){try{M(E.next(I))}catch(N){R(N)}}function D(I){try{M(E.throw(I))}catch(N){R(N)}}function M(I){I.done?x(I.value):C(I.value).then(T,D)}M((E=E.apply(v,y||[])).next())})},r=Ht&&Ht.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(e,"__esModule",{value:!0}),e.SocketComEmitter=e.SocketComEvents=e.SocketCom=void 0;const a=rx,s=r(i$);class c{constructor(y){this.url=y,this.pending={},this.emitter=new h,this.events=this.emitter}connect(y){return n(this,void 0,void 0,function*(){return new Promise((S,E)=>{this.disconnect(),this.socket=(0,s.default)(this.url,{transports:["websocket"],auth:y,autoConnect:!1});const C=setTimeout(()=>{E("connection timed out")},5e3);this.socket.on("login",x=>n(this,void 0,void 0,function*(){clearTimeout(C),S(x)})),this.socket.on("connect_error",x=>{var R;(R=this.socket)===null||R===void 0||R.close(),clearTimeout(C),E(x.message)}),this.socket.on("message",x=>n(this,void 0,void 0,function*(){var R;this.pending[x.request]&&(!((R=x.data)===null||R===void 0)&&R.error?this.pending[x.request].reject(new Error(x.data.message)):this.pending[x.request].resolve(x.data),delete this.pending[x.request]),yield this.emitter.emit(f.Message,x)})),this.socket.connect()})})}disconnect(){var y;this.socket&&!(!((y=this.socket)===null||y===void 0)&&y.disconnected)&&this.socket.disconnect()}request(y,S){var E;return n(this,void 0,void 0,function*(){if(!(!((E=this.socket)===null||E===void 0)&&E.connected))throw new Error("Client is disconnected");const C=this.random(32),x=new Promise((R,T)=>{this.pending[C]={resolve:R,reject:T}});return this.socket.send({request:C,type:y,data:S}),x})}random(y){const S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let E="";for(let C=0;C<y;C++)E+=S.charAt(Math.floor(Math.random()*S.length));return E}}e.SocketCom=c;var f;(function(v){v.Message="message"})(f=e.SocketComEvents||(e.SocketComEvents={}));class h extends a.Emitter{}e.SocketComEmitter=h})(v3);var iy={},a$=Ht&&Ht.__awaiter||function(e,n,r,a){function s(c){return c instanceof r?c:new r(function(f){f(c)})}return new(r||(r=Promise))(function(c,f){function h(S){try{y(a.next(S))}catch(E){f(E)}}function v(S){try{y(a.throw(S))}catch(E){f(E)}}function y(S){S.done?c(S.value):s(S.value).then(h,v)}y((a=a.apply(e,n||[])).next())})};Object.defineProperty(iy,"__esModule",{value:!0}),iy.SocketEmitter=void 0;class o${constructor(){this.listeners={}}on(n,r){const a=this.listeners[n];a?a.push(r):this.listeners[n]=[r]}removeListeners(n){this.listeners[n]=[]}emit(n,r){return a$(this,void 0,void 0,function*(){const a=this.listeners[n];if(a!=null&&a.length){for(const s of a)yield s(r);return!0}else return!1})}}iy.SocketEmitter=o$;var ua=Ht&&Ht.__awaiter||function(e,n,r,a){function s(c){return c instanceof r?c:new r(function(f){f(c)})}return new(r||(r=Promise))(function(c,f){function h(S){try{y(a.next(S))}catch(E){f(E)}}function v(S){try{y(a.throw(S))}catch(E){f(E)}}function y(S){S.done?c(S.value):s(S.value).then(h,v)}y((a=a.apply(e,n||[])).next())})};Object.defineProperty(Hg,"__esModule",{value:!0}),Hg.MessagingSocket=void 0;const H3=v3,l$=iy;class s$ extends l$.SocketEmitter{constructor(n){super(),this.clientId=n.clientId,this.com=new H3.SocketCom(n.url),this.com.events.on(H3.SocketComEvents.Message,r=>ua(this,void 0,void 0,function*(){r.type==="message.new"&&(yield this.emit("message",r.data.message))}))}get creds(){return this._creds}get userId(){var n;return(n=this._creds)===null||n===void 0?void 0:n.userId}get conversationId(){return this._conversationId}connect(n){return ua(this,void 0,void 0,function*(){const r=yield this.com.connect({clientId:this.clientId,creds:n});return r.userId===(n==null?void 0:n.userId)&&!r.userToken&&(r.userToken=n.userToken),this._creds=r,yield this.emit("connect",this._creds),yield this.emit("user",this._creds.userId),r})}disconnect(){return ua(this,void 0,void 0,function*(){this.com.disconnect(),yield this.emit("disconnect",void 0)})}getUser(){return ua(this,void 0,void 0,function*(){return this.request("users.get",{})})}switchConversation(n){return ua(this,void 0,void 0,function*(){this._conversationId=n,yield this.emit("conversation",this._conversationId)})}createConversation(n){return ua(this,void 0,void 0,function*(){const r=yield this.request("conversations.create",{});return(n==null?void 0:n.switch)!==!1&&(yield this.switchConversation(r.id)),r})}startConversation(n){return ua(this,void 0,void 0,function*(){yield this.request("conversations.start",{id:n||this._conversationId})})}getConversation(n){return ua(this,void 0,void 0,function*(){return this.request("conversations.get",{id:n||this._conversationId})})}deleteConversation(n){return ua(this,void 0,void 0,function*(){const r=yield this.request("conversations.delete",{id:n||this._conversationId});return r&&(yield this.switchConversation(void 0)),r})}listConversations(n){return ua(this,void 0,void 0,function*(){return this.request("conversations.list",{limit:n||20})})}sendText(n){return ua(this,void 0,void 0,function*(){return this.request("messages.create",{conversationId:this._conversationId,payload:{type:"text",text:n}})})}sendPayload(n){return ua(this,void 0,void 0,function*(){return this.request("messages.create",{conversationId:this._conversationId,payload:n})})}listMessages(n){return ua(this,void 0,void 0,function*(){return this.request("messages.list",{conversationId:this._conversationId,limit:n||20})})}sendFeedback(n,r){return ua(this,void 0,void 0,function*(){yield this.request("messages.feedback",{messageId:n,feedback:r})})}request(n,r){return this.com.request(n,r)}}Hg.MessagingSocket=s$,function(e){var n=Ht&&Ht.__createBinding||(Object.create?function(a,s,c,f){f===void 0&&(f=c),Object.defineProperty(a,f,{enumerable:!0,get:function(){return s[c]}})}:function(a,s,c,f){f===void 0&&(f=c),a[f]=s[c]}),r=Ht&&Ht.__exportStar||function(a,s){for(var c in a)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&n(s,a,c)};Object.defineProperty(e,"__esModule",{value:!0}),r(rx,e),r(Hg,e)}(s3);class u${constructor(n){Gs(this,"socket");Gs(this,"userId");Gs(this,"conversationId");Gs(this,"userToken");Gs(this,"connected",!1);Gs(this,"emitter");Gs(this,"on");this.socket=new s3.MessagingSocket(n),this.emitter=new Y5,this.on=this.emitter.on.bind(this.emitter),this.socket.on("connect",r=>{this.emitter.emit("connect",r)}),this.socket.on("disconnect",r=>{this.emitter.emit("disconnect",r)}),this.socket.on("message",r=>{this.emitter.emit("message",r)}),this.socket.on("conversation",r=>{this.emitter.emit("conversation",r)}),this.socket.on("user",r=>{this.emitter.emit("user",r)})}async connect(n){if(this.connected)return;this.connected=!0;const r=await this.socket.connect(n).catch(a=>{throw this.connected=!1,a});return this.userId=r.userId,this.userToken=r.userToken,r}async disconnect(){await this.socket.disconnect(),this.connected=!1}async sendMessage(n){this.conversationId||await this.newConversation(),await this.socket.sendText(n),this.emitter.emit("messageSent",n)}async switchConversation(n){await this.socket.switchConversation(n),this.conversationId=n}async listConversations(){return this.socket.listConversations()}async newConversation(){const{id:n}=await this.socket.createConversation();this.conversationId=n}listMessages(n){return this.socket.listMessages(n)}}const c$=({styles:e={},renderers:n,client:r,children:a,configuration:s,...c})=>{const[f,h]=j.useState([]),[v,y]=j.useState({disableComposer:!1}),[S,E]=j.useState(s),[C,x]=j.useState(e),R=Dc(B=>B.addMessageToHistory),T=Dc(B=>B.setConversationId),D=Dc(B=>B.user),M=Dc(B=>B.conversationId),I=Dc(B=>B.setUser),N={...c,value:{theme:C,renderers:{...IE,...n},messages:f,eventEmitter:tI,configuration:s,setConfiguration:E,state:v,setState:B=>y({...v,...B}),setTheme:x,client:{sendMessage:async B=>{await r.sendMessage(B),h(F=>[...F,{direction:"outgoing",sender:{name:"You"},timestamp:new Date,block:{type:"bubble",block:{type:"text",text:B}}}]),r.userId&&R({message:B,userId:r.userId})},on:r.on,restartConversation:async()=>{await r.newConversation(),h([])}}}};return dd(()=>r.on("message",B=>{try{const F=l3.parse(B.payload);h($=>[...$,{direction:"incoming",sender:{name:"Bot",avatar:S.botAvatar},timestamp:B.sentOn,block:F}])}catch{console.error("Invalid message payload")}})),dd(()=>r.on("conversation",B=>{T(B)})),P5(async()=>{I(await r.connect(D));const B=(await r.listConversations()).map($=>$.id);M&&B.includes(M)&&await r.switchConversation(M);const F=[];for(const $ of await r.listMessages())try{const H=l3.parse($.payload),Y=$.authorId===r.userId?"outgoing":"incoming";F.push({direction:Y,sender:Y==="outgoing"?{name:"You"}:{name:"Bot",avatar:S.botAvatar},timestamp:$.sentOn,block:H})}catch{console.error("Invalid message payload")}return h(F.reverse()),()=>{r.disconnect()}},[]),he.jsx(aT.Provider,{...N,children:typeof a=="function"?a(S):a})},q3=j.forwardRef(({children:e,...n},r)=>{const{theme:{container:a}}=cr();return he.jsxs("div",{...n,...a,ref:r,children:[he.jsx(AL,{}),he.jsx(z5,{children:e})]})});function ns(e,n,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e==null||e(s),r===!1||!s.defaultPrevented)return n==null?void 0:n(s)}}function W3({prop:e,defaultProp:n,onChange:r=()=>{}}){const[a,s]=f$({defaultProp:n,onChange:r}),c=e!==void 0,f=c?e:a,h=Qs(r),v=j.useCallback(y=>{if(c){const E=typeof y=="function"?y(e):y;E!==e&&h(E)}else s(y)},[c,e,s,h]);return[f,v]}function f$({defaultProp:e,onChange:n}){const r=j.useState(e),[a]=r,s=j.useRef(a),c=Qs(n);return j.useEffect(()=>{s.current!==a&&(c(a),s.current=a)},[a,s,c]),r}function d$(e,n){return j.useReducer((r,a)=>{const s=n[r][a];return s??r},e)}const ay=e=>{const{present:n,children:r}=e,a=p$(n),s=typeof r=="function"?r({present:a.isPresent}):j.Children.only(r),c=Ec(a.ref,s.ref);return typeof r=="function"||a.isPresent?j.cloneElement(s,{ref:c}):null};ay.displayName="Presence";function p$(e){const[n,r]=j.useState(),a=j.useRef({}),s=j.useRef(e),c=j.useRef("none"),f=e?"mounted":"unmounted",[h,v]=d$(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return j.useEffect(()=>{const y=oy(a.current);c.current=h==="mounted"?y:"none"},[h]),Rh(()=>{const y=a.current,S=s.current;if(S!==e){const C=c.current,x=oy(y);e?v("MOUNT"):x==="none"||(y==null?void 0:y.display)==="none"?v("UNMOUNT"):v(S&&C!==x?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,v]),Rh(()=>{if(n){const y=E=>{const x=oy(a.current).includes(E.animationName);E.target===n&&x&&P0.flushSync(()=>v("ANIMATION_END"))},S=E=>{E.target===n&&(c.current=oy(a.current))};return n.addEventListener("animationstart",S),n.addEventListener("animationcancel",y),n.addEventListener("animationend",y),()=>{n.removeEventListener("animationstart",S),n.removeEventListener("animationcancel",y),n.removeEventListener("animationend",y)}}else v("ANIMATION_END")},[n,v]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:j.useCallback(y=>{y&&(a.current=getComputedStyle(y)),r(y)},[])}}function oy(e){return(e==null?void 0:e.animationName)||"none"}const h$=Z["useId".toString()]||(()=>{});let m$=0;function ly(e){const[n,r]=Z.useState(h$());return Rh(()=>{e||r(a=>a??String(m$++))},[e]),e||(n?`radix-${n}`:"")}const Y3="Collapsible",[v$,DZ]=mS(Y3),[g$,hx]=v$(Y3),y$=j.forwardRef((e,n)=>{const{__scopeCollapsible:r,open:a,defaultOpen:s,disabled:c,onOpenChange:f,...h}=e,[v=!1,y]=W3({prop:a,defaultProp:s,onChange:f});return j.createElement(g$,{scope:r,disabled:c,contentId:ly(),open:v,onOpenToggle:j.useCallback(()=>y(S=>!S),[y])},j.createElement(Ka.div,Xn({"data-state":mx(v),"data-disabled":c?"":void 0},h,{ref:n})))}),b$="CollapsibleTrigger",S$=j.forwardRef((e,n)=>{const{__scopeCollapsible:r,...a}=e,s=hx(b$,r);return j.createElement(Ka.button,Xn({type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":mx(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled},a,{ref:n,onClick:ns(e.onClick,s.onOpenToggle)}))}),Z3="CollapsibleContent",E$=j.forwardRef((e,n)=>{const{forceMount:r,...a}=e,s=hx(Z3,e.__scopeCollapsible);return j.createElement(ay,{present:r||s.open},({present:c})=>j.createElement(x$,Xn({},a,{ref:n,present:c})))}),x$=j.forwardRef((e,n)=>{const{__scopeCollapsible:r,present:a,children:s,...c}=e,f=hx(Z3,r),[h,v]=j.useState(a),y=j.useRef(null),S=Ec(n,y),E=j.useRef(0),C=E.current,x=j.useRef(0),R=x.current,T=f.open||h,D=j.useRef(T),M=j.useRef();return j.useEffect(()=>{const I=requestAnimationFrame(()=>D.current=!1);return()=>cancelAnimationFrame(I)},[]),Rh(()=>{const I=y.current;if(I){M.current=M.current||{transitionDuration:I.style.transitionDuration,animationName:I.style.animationName},I.style.transitionDuration="0s",I.style.animationName="none";const N=I.getBoundingClientRect();E.current=N.height,x.current=N.width,D.current||(I.style.transitionDuration=M.current.transitionDuration,I.style.animationName=M.current.animationName),v(a)}},[f.open,a]),j.createElement(Ka.div,Xn({"data-state":mx(f.open),"data-disabled":f.disabled?"":void 0,id:f.contentId,hidden:!T},c,{ref:S,style:{["--radix-collapsible-content-height"]:C?`${C}px`:void 0,["--radix-collapsible-content-width"]:R?`${R}px`:void 0,...e.style}}),T&&s)});function mx(e){return e?"open":"closed"}const w$=y$,C$=S$,k$=E$,_$=e=>Z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e},Z.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M15.5 5.5v-5m0 0h-5m5 0L8.833 7.167m-2.5-5H4.5c-1.4 0-2.1 0-2.635.272A2.5 2.5 0 0 0 .772 3.532C.5 4.066.5 4.767.5 6.167V11.5c0 1.4 0 2.1.272 2.635a2.5 2.5 0 0 0 1.093 1.092C2.4 15.5 3.1 15.5 4.5 15.5h5.333c1.4 0 2.1 0 2.635-.273a2.5 2.5 0 0 0 1.093-1.092c.272-.535.272-1.235.272-2.635V9.667"})),T$=j.memo(j.forwardRef((e,n)=>{const{theme:{header:r}}=cr(),[a,s]=j.useState(!1);return he.jsx(w$,{...e,...r==null?void 0:r.container,open:a,onOpenChange:s,ref:n})})),R$=j.forwardRef((e,n)=>{var a;const{theme:{header:r}}=cr();return he.jsx(C$,{...e,...(a=r==null?void 0:r.content)==null?void 0:a.container,ref:n})}),O$=j.forwardRef((e,n)=>{var a;const{theme:{header:r}}=cr();return he.jsx(k$,{...e,...(a=r==null?void 0:r.expandedContent)==null?void 0:a.container,ref:n})}),D$=j.forwardRef(({src:e,children:n},r)=>{var s,c,f,h,v,y;const{theme:{header:a}}=cr();return he.jsxs(N0,{ref:r,...(c=(s=a==null?void 0:a.content)==null?void 0:s.avatar)==null?void 0:c.container,children:[he.jsx(F0,{...(h=(f=a==null?void 0:a.content)==null?void 0:f.avatar)==null?void 0:h.image,src:e}),he.jsx(I0,{...(y=(v=a==null?void 0:a.content)==null?void 0:v.avatar)==null?void 0:y.fallback,children:n})]})}),A$=j.forwardRef((e,n)=>{var a;const{theme:{header:r}}=cr();return he.jsx("h2",{...e,...(a=r==null?void 0:r.content)==null?void 0:a.title,ref:n})}),M$=j.forwardRef((e,n)=>{var a;const{theme:{header:r}}=cr();return he.jsx("p",{...e,...(a=r==null?void 0:r.content)==null?void 0:a.description,ref:n})}),L$=j.forwardRef((e,n)=>{var a,s;const{theme:{header:r}}=cr();return he.jsx("div",{...e,...(s=(a=r==null?void 0:r.content)==null?void 0:a.actions)==null?void 0:s.container,ref:n})}),Fa=Object.assign(T$,{Content:R$,ExpandedContent:O$,Avatar:D$,Description:M$,Title:A$,Actions:L$,DescriptionItem:({icon:e,title:n,link:r,...a})=>{var h,v,y,S,E,C,x,R,T,D,M,I;const{theme:{header:s}}=cr(),c=e??_$,f=N=>{N&&$7(N)};return!r&&!n?null:r?he.jsxs("a",{...a,...(v=(h=s==null?void 0:s.expandedContent)==null?void 0:h.descriptionItems)==null?void 0:v.container,href:r,target:"_blank",rel:"noopener",children:[he.jsx(c,{...(S=(y=s==null?void 0:s.expandedContent)==null?void 0:y.descriptionItems)==null?void 0:S.icon}),he.jsx("p",{...(C=(E=s==null?void 0:s.expandedContent)==null?void 0:E.descriptionItems)==null?void 0:C.link,children:n})]}):he.jsxs("div",{...a,...(R=(x=s==null?void 0:s.expandedContent)==null?void 0:x.descriptionItems)==null?void 0:R.container,onClick:N=>{f(N.currentTarget.textContent)},children:[he.jsx(c,{...(D=(T=s==null?void 0:s.expandedContent)==null?void 0:T.descriptionItems)==null?void 0:D.icon}),he.jsx("p",{...(I=(M=s==null?void 0:s.expandedContent)==null?void 0:M.descriptionItems)==null?void 0:I.text,children:n})]})}}),K3=j.memo(({...e})=>{const{theme:{loadingIndicator:n}}=cr();return he.jsx("div",{...e,...n==null?void 0:n.container,children:he.jsx("div",{...n==null?void 0:n.loader})})}),vx=j.forwardRef(({direction:e,block:n,scroll:r,disableInput:a,children:s,sender:c,...f},h)=>{var x,R,T;const[v,y]=j.useState([]),{theme:{message:S},configuration:{botAvatar:E,botName:C}}=cr();return bF(()=>{r()}),j.useEffect(()=>{v.length===0&&r()},[v.length]),he.jsx(rT.Provider,{value:{isLoading:v,setIsLoading:y},children:he.jsxs("div",{...f,...S==null?void 0:S.container,"data-loaded":v.length===0,"data-disable-input":!!a,"data-direction":e,ref:h,children:[he.jsxs(N0,{...(x=S==null?void 0:S.avatar)==null?void 0:x.container,children:[he.jsx(F0,{...(R=S==null?void 0:S.avatar)==null?void 0:R.image,src:(c==null?void 0:c.avatar)??E}),he.jsx(I0,{...(T=S==null?void 0:S.avatar)==null?void 0:T.fallback,children:(c==null?void 0:c.name[0])??(C==null?void 0:C[0])})]}),n&&he.jsx(fd,{block:n,styles:S==null?void 0:S.blocks}),s]})})}),G3=1e4,Q3=j.memo(({...e})=>{const{theme:{messageList:n}}=cr(),{messages:r,setState:a,client:s}=cr(),[c,f]=j.useState(!0),h=j.useRef(null),{y:v}=kF(h),[y,S]=j.useState(!1),[E,C]=TF(),x=()=>{if(!h.current)return;const{scrollHeight:R}=h.current;c&&h.current.scrollTo({top:R})};return j.useEffect(()=>{const R=new Date(Date.now()-G3+2e3);r.length>0&&r[r.length-1].timestamp<R&&S(!1)},[E]),dd(()=>s.on("messageSent",()=>{S(!0),C(new Date(Date.now()+G3))})),dd(()=>s.on("message",()=>{S(!1)})),j.useEffect(()=>{const R=r[r.length-1];a({disableComposer:!!(R!=null&&R.disableInput)})},[r.length]),j.useEffect(()=>{if(!h.current)return;const{offsetHeight:R,scrollHeight:T,scrollTop:D}=h.current;f(T<=D+R+100)},[v]),he.jsxs("ul",{...e,...n,ref:h,children:[r.map((R,T)=>he.jsx(vx,{scroll:x,...R},T)),y&&he.jsx(vx,{scroll:x,direction:"incoming",children:he.jsx(K3,{})})]})});function P$(e,n=globalThis==null?void 0:globalThis.document){const r=Qs(e);j.useEffect(()=>{const a=s=>{s.key==="Escape"&&r(s)};return n.addEventListener("keydown",a),()=>n.removeEventListener("keydown",a)},[r,n])}const gx="dismissableLayer.update",N$="dismissableLayer.pointerDownOutside",F$="dismissableLayer.focusOutside";let X3;const I$=j.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),z$=j.forwardRef((e,n)=>{var r;const{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:h,onDismiss:v,...y}=e,S=j.useContext(I$),[E,C]=j.useState(null),x=(r=E==null?void 0:E.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,R]=j.useState({}),T=Ec(n,Y=>C(Y)),D=Array.from(S.layers),[M]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),I=D.indexOf(M),N=E?D.indexOf(E):-1,B=S.layersWithOutsidePointerEventsDisabled.size>0,F=N>=I,$=j$(Y=>{const ne=Y.target,ve=[...S.branches].some(ee=>ee.contains(ne));!F||ve||(c==null||c(Y),h==null||h(Y),Y.defaultPrevented||v==null||v())},x),H=$$(Y=>{const ne=Y.target;[...S.branches].some(ee=>ee.contains(ne))||(f==null||f(Y),h==null||h(Y),Y.defaultPrevented||v==null||v())},x);return P$(Y=>{N===S.layers.size-1&&(s==null||s(Y),!Y.defaultPrevented&&v&&(Y.preventDefault(),v()))},x),j.useEffect(()=>{if(E)return a&&(S.layersWithOutsidePointerEventsDisabled.size===0&&(X3=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(E)),S.layers.add(E),J3(),()=>{a&&S.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=X3)}},[E,x,a,S]),j.useEffect(()=>()=>{E&&(S.layers.delete(E),S.layersWithOutsidePointerEventsDisabled.delete(E),J3())},[E,S]),j.useEffect(()=>{const Y=()=>R({});return document.addEventListener(gx,Y),()=>document.removeEventListener(gx,Y)},[]),j.createElement(Ka.div,Xn({},y,{ref:T,style:{pointerEvents:B?F?"auto":"none":void 0,...e.style},onFocusCapture:ns(e.onFocusCapture,H.onFocusCapture),onBlurCapture:ns(e.onBlurCapture,H.onBlurCapture),onPointerDownCapture:ns(e.onPointerDownCapture,$.onPointerDownCapture)}))});function j$(e,n=globalThis==null?void 0:globalThis.document){const r=Qs(e),a=j.useRef(!1),s=j.useRef(()=>{});return j.useEffect(()=>{const c=h=>{if(h.target&&!a.current){let y=function(){eR(N$,r,v,{discrete:!0})};const v={originalEvent:h};h.pointerType==="touch"?(n.removeEventListener("click",s.current),s.current=y,n.addEventListener("click",s.current,{once:!0})):y()}a.current=!1},f=window.setTimeout(()=>{n.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(f),n.removeEventListener("pointerdown",c),n.removeEventListener("click",s.current)}},[n,r]),{onPointerDownCapture:()=>a.current=!0}}function $$(e,n=globalThis==null?void 0:globalThis.document){const r=Qs(e),a=j.useRef(!1);return j.useEffect(()=>{const s=c=>{c.target&&!a.current&&eR(F$,r,{originalEvent:c},{discrete:!1})};return n.addEventListener("focusin",s),()=>n.removeEventListener("focusin",s)},[n,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function J3(){const e=new CustomEvent(gx);document.dispatchEvent(e)}function eR(e,n,r,{discrete:a}){const s=r.originalEvent.target,c=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});n&&s.addEventListener(e,n,{once:!0}),a?g6(s,c):s.dispatchEvent(c)}const yx="focusScope.autoFocusOnMount",bx="focusScope.autoFocusOnUnmount",tR={bubbles:!1,cancelable:!0},U$=j.forwardRef((e,n)=>{const{loop:r=!1,trapped:a=!1,onMountAutoFocus:s,onUnmountAutoFocus:c,...f}=e,[h,v]=j.useState(null),y=Qs(s),S=Qs(c),E=j.useRef(null),C=Ec(n,T=>v(T)),x=j.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;j.useEffect(()=>{if(a){let T=function(N){if(x.paused||!h)return;const B=N.target;h.contains(B)?E.current=B:gu(E.current,{select:!0})},D=function(N){if(x.paused||!h)return;const B=N.relatedTarget;B!==null&&(h.contains(B)||gu(E.current,{select:!0}))},M=function(N){const B=document.activeElement;for(const F of N)F.removedNodes.length>0&&(h!=null&&h.contains(B)||gu(h))};document.addEventListener("focusin",T),document.addEventListener("focusout",D);const I=new MutationObserver(M);return h&&I.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",T),document.removeEventListener("focusout",D),I.disconnect()}}},[a,h,x.paused]),j.useEffect(()=>{if(h){iR.add(x);const T=document.activeElement;if(!h.contains(T)){const M=new CustomEvent(yx,tR);h.addEventListener(yx,y),h.dispatchEvent(M),M.defaultPrevented||(B$(Y$(nR(h)),{select:!0}),document.activeElement===T&&gu(h))}return()=>{h.removeEventListener(yx,y),setTimeout(()=>{const M=new CustomEvent(bx,tR);h.addEventListener(bx,S),h.dispatchEvent(M),M.defaultPrevented||gu(T??document.body,{select:!0}),h.removeEventListener(bx,S),iR.remove(x)},0)}}},[h,y,S,x]);const R=j.useCallback(T=>{if(!r&&!a||x.paused)return;const D=T.key==="Tab"&&!T.altKey&&!T.ctrlKey&&!T.metaKey,M=document.activeElement;if(D&&M){const I=T.currentTarget,[N,B]=V$(I);N&&B?!T.shiftKey&&M===B?(T.preventDefault(),r&&gu(N,{select:!0})):T.shiftKey&&M===N&&(T.preventDefault(),r&&gu(B,{select:!0})):M===I&&T.preventDefault()}},[r,a,x.paused]);return j.createElement(Ka.div,Xn({tabIndex:-1},f,{ref:C,onKeyDown:R}))});function B$(e,{select:n=!1}={}){const r=document.activeElement;for(const a of e)if(gu(a,{select:n}),document.activeElement!==r)return}function V$(e){const n=nR(e),r=rR(n,e),a=rR(n.reverse(),e);return[r,a]}function nR(e){const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const s=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||s?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function rR(e,n){for(const r of e)if(!H$(r,{upTo:n}))return r}function H$(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function q$(e){return e instanceof HTMLInputElement&&"select"in e}function gu(e,{select:n=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&q$(e)&&n&&e.select()}}const iR=W$();function W$(){let e=[];return{add(n){const r=e[0];n!==r&&(r==null||r.pause()),e=aR(e,n),e.unshift(n)},remove(n){var r;e=aR(e,n),(r=e[0])===null||r===void 0||r.resume()}}}function aR(e,n){const r=[...e],a=r.indexOf(n);return a!==-1&&r.splice(a,1),r}function Y$(e){return e.filter(n=>n.tagName!=="A")}let Sx=0;function Z$(){j.useEffect(()=>{var e,n;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:oR()),document.body.insertAdjacentElement("beforeend",(n=r[1])!==null&&n!==void 0?n:oR()),Sx++,()=>{Sx===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),Sx--}},[])}function oR(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var sy="right-scroll-bar-position",uy="width-before-scroll-bar",K$="with-scroll-bars-hidden",G$="--removed-body-scroll-bar-size";function Q$(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function X$(e,n){var r=j.useState(function(){return{value:e,callback:n,facade:{get current(){return r.value},set current(a){var s=r.value;s!==a&&(r.value=a,r.callback(a,s))}}}})[0];return r.callback=n,r.facade}function J$(e,n){return X$(n||null,function(r){return e.forEach(function(a){return Q$(a,r)})})}function eU(e){return e}function tU(e,n){n===void 0&&(n=eU);var r=[],a=!1,s={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(c){var f=n(c,a);return r.push(f),function(){r=r.filter(function(h){return h!==f})}},assignSyncMedium:function(c){for(a=!0;r.length;){var f=r;r=[],f.forEach(c)}r={push:function(h){return c(h)},filter:function(){return r}}},assignMedium:function(c){a=!0;var f=[];if(r.length){var h=r;r=[],h.forEach(c),f=r}var v=function(){var S=f;f=[],S.forEach(c)},y=function(){return Promise.resolve().then(v)};y(),r={push:function(S){f.push(S),y()},filter:function(S){return f=f.filter(S),r}}}};return s}function nU(e){e===void 0&&(e={});var n=tU(null);return n.options=eo({async:!0,ssr:!1},e),n}var lR=function(e){var n=e.sideCar,r=L5(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=n.read();if(!a)throw new Error("Sidecar medium not found");return Z.createElement(a,eo({},r))};lR.isSideCarExport=!0;function rU(e,n){return e.useMedium(n),lR}var sR=nU(),Ex=function(){},cy=Z.forwardRef(function(e,n){var r=Z.useRef(null),a=Z.useState({onScrollCapture:Ex,onWheelCapture:Ex,onTouchMoveCapture:Ex}),s=a[0],c=a[1],f=e.forwardProps,h=e.children,v=e.className,y=e.removeScrollBar,S=e.enabled,E=e.shards,C=e.sideCar,x=e.noIsolation,R=e.inert,T=e.allowPinchZoom,D=e.as,M=D===void 0?"div":D,I=L5(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),N=C,B=J$([r,n]),F=eo(eo({},I),s);return Z.createElement(Z.Fragment,null,S&&Z.createElement(N,{sideCar:sR,removeScrollBar:y,shards:E,noIsolation:x,inert:R,setCallbacks:c,allowPinchZoom:!!T,lockRef:r}),f?Z.cloneElement(Z.Children.only(h),eo(eo({},F),{ref:B})):Z.createElement(M,eo({},F,{className:v,ref:B}),h))});cy.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},cy.classNames={fullWidth:uy,zeroRight:sy};var uR,iU=function(){if(uR)return uR;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function aU(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=iU();return n&&e.setAttribute("nonce",n),e}function oU(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function lU(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var sU=function(){var e=0,n=null;return{add:function(r){e==0&&(n=aU())&&(oU(n,r),lU(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},uU=function(){var e=sU();return function(n,r){Z.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&r])}},cR=function(){var e=uU(),n=function(r){var a=r.styles,s=r.dynamic;return e(a,s),null};return n},cU={left:0,top:0,right:0,gap:0},xx=function(e){return parseInt(e||"",10)||0},fU=function(e){var n=window.getComputedStyle(document.body),r=n[e==="padding"?"paddingLeft":"marginLeft"],a=n[e==="padding"?"paddingTop":"marginTop"],s=n[e==="padding"?"paddingRight":"marginRight"];return[xx(r),xx(a),xx(s)]},dU=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return cU;var n=fU(e),r=document.documentElement.clientWidth,a=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,a-r+n[2]-n[0])}},pU=cR(),hU=function(e,n,r,a){var s=e.left,c=e.top,f=e.right,h=e.gap;return r===void 0&&(r="margin"),`
663
- .`.concat(K$,` {
662
+ */function hd(e){return e.variant===Kh.FIDELITY||e.variant===Kh.CONTENT}function Sr(e){return e.variant===Kh.MONOCHROME}function BF(e,n,r,a){let s=r,c=Mc.from(e,n,r);if(c.chroma<n){let f=c.chroma;for(;c.chroma<n;){s+=a?-1:1;const h=Mc.from(e,n,s);if(f>h.chroma||Math.abs(h.chroma-n)<.4)break;const v=Math.abs(h.chroma-n),y=Math.abs(c.chroma-n);v<y&&(c=h),f=Math.max(f,h.chroma)}}return s}function VF(e){return bo.make(void 0,void 0,e.isDark?30:80,void 0,void 0)}function KE(e,n){const r=e.inViewingConditions(VF(n));return Qe.tonePrefersLightForeground(e.tone)&&!Qe.toneAllowsLightForeground(r.tone)?Qe.enableLightForeground(e.tone):Qe.enableLightForeground(r.tone)}class ge{static highestSurface(n){return n.isDark?ge.surfaceBright:ge.surfaceDim}}ge.contentAccentToneDelta=15,ge.primaryPaletteKeyColor=Qe.fromPalette({name:"primary_palette_key_color",palette:e=>e.primaryPalette,tone:e=>e.primaryPalette.keyColor.tone}),ge.secondaryPaletteKeyColor=Qe.fromPalette({name:"secondary_palette_key_color",palette:e=>e.secondaryPalette,tone:e=>e.secondaryPalette.keyColor.tone}),ge.tertiaryPaletteKeyColor=Qe.fromPalette({name:"tertiary_palette_key_color",palette:e=>e.tertiaryPalette,tone:e=>e.tertiaryPalette.keyColor.tone}),ge.neutralPaletteKeyColor=Qe.fromPalette({name:"neutral_palette_key_color",palette:e=>e.neutralPalette,tone:e=>e.neutralPalette.keyColor.tone}),ge.neutralVariantPaletteKeyColor=Qe.fromPalette({name:"neutral_variant_palette_key_color",palette:e=>e.neutralVariantPalette,tone:e=>e.neutralVariantPalette.keyColor.tone}),ge.background=Qe.fromPalette({name:"background",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0}),ge.onBackground=Qe.fromPalette({name:"on_background",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>ge.background,contrastCurve:new on(3,3,4.5,7)}),ge.surface=Qe.fromPalette({name:"surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0}),ge.surfaceDim=Qe.fromPalette({name:"surface_dim",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:87,isBackground:!0}),ge.surfaceBright=Qe.fromPalette({name:"surface_bright",palette:e=>e.neutralPalette,tone:e=>e.isDark?24:98,isBackground:!0}),ge.surfaceContainerLowest=Qe.fromPalette({name:"surface_container_lowest",palette:e=>e.neutralPalette,tone:e=>e.isDark?4:100,isBackground:!0}),ge.surfaceContainerLow=Qe.fromPalette({name:"surface_container_low",palette:e=>e.neutralPalette,tone:e=>e.isDark?10:96,isBackground:!0}),ge.surfaceContainer=Qe.fromPalette({name:"surface_container",palette:e=>e.neutralPalette,tone:e=>e.isDark?12:94,isBackground:!0}),ge.surfaceContainerHigh=Qe.fromPalette({name:"surface_container_high",palette:e=>e.neutralPalette,tone:e=>e.isDark?17:92,isBackground:!0}),ge.surfaceContainerHighest=Qe.fromPalette({name:"surface_container_highest",palette:e=>e.neutralPalette,tone:e=>e.isDark?22:90,isBackground:!0}),ge.onSurface=Qe.fromPalette({name:"on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>ge.highestSurface(e),contrastCurve:new on(4.5,7,11,21)}),ge.surfaceVariant=Qe.fromPalette({name:"surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:90,isBackground:!0}),ge.onSurfaceVariant=Qe.fromPalette({name:"on_surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?80:30,background:e=>ge.highestSurface(e),contrastCurve:new on(3,4.5,7,11)}),ge.inverseSurface=Qe.fromPalette({name:"inverse_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:20}),ge.inverseOnSurface=Qe.fromPalette({name:"inverse_on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?20:95,background:e=>ge.inverseSurface,contrastCurve:new on(4.5,7,11,21)}),ge.outline=Qe.fromPalette({name:"outline",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?60:50,background:e=>ge.highestSurface(e),contrastCurve:new on(1.5,3,4.5,7)}),ge.outlineVariant=Qe.fromPalette({name:"outline_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:80,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7)}),ge.shadow=Qe.fromPalette({name:"shadow",palette:e=>e.neutralPalette,tone:e=>0}),ge.scrim=Qe.fromPalette({name:"scrim",palette:e=>e.neutralPalette,tone:e=>0}),ge.surfaceTint=Qe.fromPalette({name:"surface_tint",palette:e=>e.primaryPalette,tone:e=>e.isDark?80:40,isBackground:!0}),ge.primary=Qe.fromPalette({name:"primary",palette:e=>e.primaryPalette,tone:e=>Sr(e)?e.isDark?100:0:e.isDark?80:40,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(3,4.5,7,11),toneDeltaPair:e=>new la(ge.primaryContainer,ge.primary,15,"nearer",!1)}),ge.onPrimary=Qe.fromPalette({name:"on_primary",palette:e=>e.primaryPalette,tone:e=>Sr(e)?e.isDark?10:90:e.isDark?20:100,background:e=>ge.primary,contrastCurve:new on(4.5,7,11,21)}),ge.primaryContainer=Qe.fromPalette({name:"primary_container",palette:e=>e.primaryPalette,tone:e=>hd(e)?KE(e.sourceColorHct,e):Sr(e)?e.isDark?85:25:e.isDark?30:90,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.primaryContainer,ge.primary,15,"nearer",!1)}),ge.onPrimaryContainer=Qe.fromPalette({name:"on_primary_container",palette:e=>e.primaryPalette,tone:e=>hd(e)?Qe.foregroundTone(ge.primaryContainer.tone(e),4.5):Sr(e)?e.isDark?0:100:e.isDark?90:10,background:e=>ge.primaryContainer,contrastCurve:new on(4.5,7,11,21)}),ge.inversePrimary=Qe.fromPalette({name:"inverse_primary",palette:e=>e.primaryPalette,tone:e=>e.isDark?40:80,background:e=>ge.inverseSurface,contrastCurve:new on(3,4.5,7,11)}),ge.secondary=Qe.fromPalette({name:"secondary",palette:e=>e.secondaryPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(3,4.5,7,11),toneDeltaPair:e=>new la(ge.secondaryContainer,ge.secondary,15,"nearer",!1)}),ge.onSecondary=Qe.fromPalette({name:"on_secondary",palette:e=>e.secondaryPalette,tone:e=>Sr(e)?e.isDark?10:100:e.isDark?20:100,background:e=>ge.secondary,contrastCurve:new on(4.5,7,11,21)}),ge.secondaryContainer=Qe.fromPalette({name:"secondary_container",palette:e=>e.secondaryPalette,tone:e=>{const n=e.isDark?30:90;if(Sr(e))return e.isDark?30:85;if(!hd(e))return n;let r=BF(e.secondaryPalette.hue,e.secondaryPalette.chroma,n,!e.isDark);return r=KE(e.secondaryPalette.getHct(r),e),r},isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.secondaryContainer,ge.secondary,15,"nearer",!1)}),ge.onSecondaryContainer=Qe.fromPalette({name:"on_secondary_container",palette:e=>e.secondaryPalette,tone:e=>hd(e)?Qe.foregroundTone(ge.secondaryContainer.tone(e),4.5):e.isDark?90:10,background:e=>ge.secondaryContainer,contrastCurve:new on(4.5,7,11,21)}),ge.tertiary=Qe.fromPalette({name:"tertiary",palette:e=>e.tertiaryPalette,tone:e=>Sr(e)?e.isDark?90:25:e.isDark?80:40,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(3,4.5,7,11),toneDeltaPair:e=>new la(ge.tertiaryContainer,ge.tertiary,15,"nearer",!1)}),ge.onTertiary=Qe.fromPalette({name:"on_tertiary",palette:e=>e.tertiaryPalette,tone:e=>Sr(e)?e.isDark?10:90:e.isDark?20:100,background:e=>ge.tertiary,contrastCurve:new on(4.5,7,11,21)}),ge.tertiaryContainer=Qe.fromPalette({name:"tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>{if(Sr(e))return e.isDark?60:49;if(!hd(e))return e.isDark?30:90;const n=KE(e.tertiaryPalette.getHct(e.sourceColorHct.tone),e),r=e.tertiaryPalette.getHct(n);return ZE.fixIfDisliked(r).tone},isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.tertiaryContainer,ge.tertiary,15,"nearer",!1)}),ge.onTertiaryContainer=Qe.fromPalette({name:"on_tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>Sr(e)?e.isDark?0:100:hd(e)?Qe.foregroundTone(ge.tertiaryContainer.tone(e),4.5):e.isDark?90:10,background:e=>ge.tertiaryContainer,contrastCurve:new on(4.5,7,11,21)}),ge.error=Qe.fromPalette({name:"error",palette:e=>e.errorPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(3,4.5,7,11),toneDeltaPair:e=>new la(ge.errorContainer,ge.error,15,"nearer",!1)}),ge.onError=Qe.fromPalette({name:"on_error",palette:e=>e.errorPalette,tone:e=>e.isDark?20:100,background:e=>ge.error,contrastCurve:new on(4.5,7,11,21)}),ge.errorContainer=Qe.fromPalette({name:"error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?30:90,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.errorContainer,ge.error,15,"nearer",!1)}),ge.onErrorContainer=Qe.fromPalette({name:"on_error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?90:10,background:e=>ge.errorContainer,contrastCurve:new on(4.5,7,11,21)}),ge.primaryFixed=Qe.fromPalette({name:"primary_fixed",palette:e=>e.primaryPalette,tone:e=>Sr(e)?40:90,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.primaryFixed,ge.primaryFixedDim,10,"lighter",!0)}),ge.primaryFixedDim=Qe.fromPalette({name:"primary_fixed_dim",palette:e=>e.primaryPalette,tone:e=>Sr(e)?30:80,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.primaryFixed,ge.primaryFixedDim,10,"lighter",!0)}),ge.onPrimaryFixed=Qe.fromPalette({name:"on_primary_fixed",palette:e=>e.primaryPalette,tone:e=>Sr(e)?100:10,background:e=>ge.primaryFixedDim,secondBackground:e=>ge.primaryFixed,contrastCurve:new on(4.5,7,11,21)}),ge.onPrimaryFixedVariant=Qe.fromPalette({name:"on_primary_fixed_variant",palette:e=>e.primaryPalette,tone:e=>Sr(e)?90:30,background:e=>ge.primaryFixedDim,secondBackground:e=>ge.primaryFixed,contrastCurve:new on(3,4.5,7,11)}),ge.secondaryFixed=Qe.fromPalette({name:"secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>Sr(e)?80:90,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.secondaryFixed,ge.secondaryFixedDim,10,"lighter",!0)}),ge.secondaryFixedDim=Qe.fromPalette({name:"secondary_fixed_dim",palette:e=>e.secondaryPalette,tone:e=>Sr(e)?70:80,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.secondaryFixed,ge.secondaryFixedDim,10,"lighter",!0)}),ge.onSecondaryFixed=Qe.fromPalette({name:"on_secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>10,background:e=>ge.secondaryFixedDim,secondBackground:e=>ge.secondaryFixed,contrastCurve:new on(4.5,7,11,21)}),ge.onSecondaryFixedVariant=Qe.fromPalette({name:"on_secondary_fixed_variant",palette:e=>e.secondaryPalette,tone:e=>Sr(e)?25:30,background:e=>ge.secondaryFixedDim,secondBackground:e=>ge.secondaryFixed,contrastCurve:new on(3,4.5,7,11)}),ge.tertiaryFixed=Qe.fromPalette({name:"tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>Sr(e)?40:90,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.tertiaryFixed,ge.tertiaryFixedDim,10,"lighter",!0)}),ge.tertiaryFixedDim=Qe.fromPalette({name:"tertiary_fixed_dim",palette:e=>e.tertiaryPalette,tone:e=>Sr(e)?30:80,isBackground:!0,background:e=>ge.highestSurface(e),contrastCurve:new on(1,1,3,7),toneDeltaPair:e=>new la(ge.tertiaryFixed,ge.tertiaryFixedDim,10,"lighter",!0)}),ge.onTertiaryFixed=Qe.fromPalette({name:"on_tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>Sr(e)?100:10,background:e=>ge.tertiaryFixedDim,secondBackground:e=>ge.tertiaryFixed,contrastCurve:new on(4.5,7,11,21)}),ge.onTertiaryFixedVariant=Qe.fromPalette({name:"on_tertiary_fixed_variant",palette:e=>e.tertiaryPalette,tone:e=>Sr(e)?90:30,background:e=>ge.tertiaryFixedDim,secondBackground:e=>ge.tertiaryFixed,contrastCurve:new on(3,4.5,7,11)});var HF={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const Gh=HF,B5={};for(const e of Object.keys(Gh))B5[Gh[e]]=e;const pt={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var V5=pt;for(const e of Object.keys(pt)){if(!("channels"in pt[e]))throw new Error("missing channels property: "+e);if(!("labels"in pt[e]))throw new Error("missing channel labels property: "+e);if(pt[e].labels.length!==pt[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:n,labels:r}=pt[e];delete pt[e].channels,delete pt[e].labels,Object.defineProperty(pt[e],"channels",{value:n}),Object.defineProperty(pt[e],"labels",{value:r})}pt.rgb.hsl=function(e){const n=e[0]/255,r=e[1]/255,a=e[2]/255,s=Math.min(n,r,a),c=Math.max(n,r,a),f=c-s;let h,v;c===s?h=0:n===c?h=(r-a)/f:r===c?h=2+(a-n)/f:a===c&&(h=4+(n-r)/f),h=Math.min(h*60,360),h<0&&(h+=360);const y=(s+c)/2;return c===s?v=0:y<=.5?v=f/(c+s):v=f/(2-c-s),[h,v*100,y*100]},pt.rgb.hsv=function(e){let n,r,a,s,c;const f=e[0]/255,h=e[1]/255,v=e[2]/255,y=Math.max(f,h,v),S=y-Math.min(f,h,v),E=function(C){return(y-C)/6/S+1/2};return S===0?(s=0,c=0):(c=S/y,n=E(f),r=E(h),a=E(v),f===y?s=a-r:h===y?s=1/3+n-a:v===y&&(s=2/3+r-n),s<0?s+=1:s>1&&(s-=1)),[s*360,c*100,y*100]},pt.rgb.hwb=function(e){const n=e[0],r=e[1];let a=e[2];const s=pt.rgb.hsl(e)[0],c=1/255*Math.min(n,Math.min(r,a));return a=1-1/255*Math.max(n,Math.max(r,a)),[s,c*100,a*100]},pt.rgb.cmyk=function(e){const n=e[0]/255,r=e[1]/255,a=e[2]/255,s=Math.min(1-n,1-r,1-a),c=(1-n-s)/(1-s)||0,f=(1-r-s)/(1-s)||0,h=(1-a-s)/(1-s)||0;return[c*100,f*100,h*100,s*100]};function qF(e,n){return(e[0]-n[0])**2+(e[1]-n[1])**2+(e[2]-n[2])**2}pt.rgb.keyword=function(e){const n=B5[e];if(n)return n;let r=1/0,a;for(const s of Object.keys(Gh)){const c=Gh[s],f=qF(e,c);f<r&&(r=f,a=s)}return a},pt.keyword.rgb=function(e){return Gh[e]},pt.rgb.xyz=function(e){let n=e[0]/255,r=e[1]/255,a=e[2]/255;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;const s=n*.4124+r*.3576+a*.1805,c=n*.2126+r*.7152+a*.0722,f=n*.0193+r*.1192+a*.9505;return[s*100,c*100,f*100]},pt.rgb.lab=function(e){const n=pt.rgb.xyz(e);let r=n[0],a=n[1],s=n[2];r/=95.047,a/=100,s/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;const c=116*a-16,f=500*(r-a),h=200*(a-s);return[c,f,h]},pt.hsl.rgb=function(e){const n=e[0]/360,r=e[1]/100,a=e[2]/100;let s,c,f;if(r===0)return f=a*255,[f,f,f];a<.5?s=a*(1+r):s=a+r-a*r;const h=2*a-s,v=[0,0,0];for(let y=0;y<3;y++)c=n+1/3*-(y-1),c<0&&c++,c>1&&c--,6*c<1?f=h+(s-h)*6*c:2*c<1?f=s:3*c<2?f=h+(s-h)*(2/3-c)*6:f=h,v[y]=f*255;return v},pt.hsl.hsv=function(e){const n=e[0];let r=e[1]/100,a=e[2]/100,s=r;const c=Math.max(a,.01);a*=2,r*=a<=1?a:2-a,s*=c<=1?c:2-c;const f=(a+r)/2,h=a===0?2*s/(c+s):2*r/(a+r);return[n,h*100,f*100]},pt.hsv.rgb=function(e){const n=e[0]/60,r=e[1]/100;let a=e[2]/100;const s=Math.floor(n)%6,c=n-Math.floor(n),f=255*a*(1-r),h=255*a*(1-r*c),v=255*a*(1-r*(1-c));switch(a*=255,s){case 0:return[a,v,f];case 1:return[h,a,f];case 2:return[f,a,v];case 3:return[f,h,a];case 4:return[v,f,a];case 5:return[a,f,h]}},pt.hsv.hsl=function(e){const n=e[0],r=e[1]/100,a=e[2]/100,s=Math.max(a,.01);let c,f;f=(2-r)*a;const h=(2-r)*s;return c=r*s,c/=h<=1?h:2-h,c=c||0,f/=2,[n,c*100,f*100]},pt.hwb.rgb=function(e){const n=e[0]/360;let r=e[1]/100,a=e[2]/100;const s=r+a;let c;s>1&&(r/=s,a/=s);const f=Math.floor(6*n),h=1-a;c=6*n-f,f&1&&(c=1-c);const v=r+c*(h-r);let y,S,E;switch(f){default:case 6:case 0:y=h,S=v,E=r;break;case 1:y=v,S=h,E=r;break;case 2:y=r,S=h,E=v;break;case 3:y=r,S=v,E=h;break;case 4:y=v,S=r,E=h;break;case 5:y=h,S=r,E=v;break}return[y*255,S*255,E*255]},pt.cmyk.rgb=function(e){const n=e[0]/100,r=e[1]/100,a=e[2]/100,s=e[3]/100,c=1-Math.min(1,n*(1-s)+s),f=1-Math.min(1,r*(1-s)+s),h=1-Math.min(1,a*(1-s)+s);return[c*255,f*255,h*255]},pt.xyz.rgb=function(e){const n=e[0]/100,r=e[1]/100,a=e[2]/100;let s,c,f;return s=n*3.2406+r*-1.5372+a*-.4986,c=n*-.9689+r*1.8758+a*.0415,f=n*.0557+r*-.204+a*1.057,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,f=f>.0031308?1.055*f**(1/2.4)-.055:f*12.92,s=Math.min(Math.max(0,s),1),c=Math.min(Math.max(0,c),1),f=Math.min(Math.max(0,f),1),[s*255,c*255,f*255]},pt.xyz.lab=function(e){let n=e[0],r=e[1],a=e[2];n/=95.047,r/=100,a/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;const s=116*r-16,c=500*(n-r),f=200*(r-a);return[s,c,f]},pt.lab.xyz=function(e){const n=e[0],r=e[1],a=e[2];let s,c,f;c=(n+16)/116,s=r/500+c,f=c-a/200;const h=c**3,v=s**3,y=f**3;return c=h>.008856?h:(c-16/116)/7.787,s=v>.008856?v:(s-16/116)/7.787,f=y>.008856?y:(f-16/116)/7.787,s*=95.047,c*=100,f*=108.883,[s,c,f]},pt.lab.lch=function(e){const n=e[0],r=e[1],a=e[2];let s;s=Math.atan2(a,r)*360/2/Math.PI,s<0&&(s+=360);const f=Math.sqrt(r*r+a*a);return[n,f,s]},pt.lch.lab=function(e){const n=e[0],r=e[1],s=e[2]/360*2*Math.PI,c=r*Math.cos(s),f=r*Math.sin(s);return[n,c,f]},pt.rgb.ansi16=function(e,n=null){const[r,a,s]=e;let c=n===null?pt.rgb.hsv(e)[2]:n;if(c=Math.round(c/50),c===0)return 30;let f=30+(Math.round(s/255)<<2|Math.round(a/255)<<1|Math.round(r/255));return c===2&&(f+=60),f},pt.hsv.ansi16=function(e){return pt.rgb.ansi16(pt.hsv.rgb(e),e[2])},pt.rgb.ansi256=function(e){const n=e[0],r=e[1],a=e[2];return n===r&&r===a?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(r/255*5)+Math.round(a/255*5)},pt.ansi16.rgb=function(e){let n=e%10;if(n===0||n===7)return e>50&&(n+=3.5),n=n/10.5*255,[n,n,n];const r=(~~(e>50)+1)*.5,a=(n&1)*r*255,s=(n>>1&1)*r*255,c=(n>>2&1)*r*255;return[a,s,c]},pt.ansi256.rgb=function(e){if(e>=232){const c=(e-232)*10+8;return[c,c,c]}e-=16;let n;const r=Math.floor(e/36)/5*255,a=Math.floor((n=e%36)/6)/5*255,s=n%6/5*255;return[r,a,s]},pt.rgb.hex=function(e){const r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r},pt.hex.rgb=function(e){const n=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n)return[0,0,0];let r=n[0];n[0].length===3&&(r=r.split("").map(h=>h+h).join(""));const a=parseInt(r,16),s=a>>16&255,c=a>>8&255,f=a&255;return[s,c,f]},pt.rgb.hcg=function(e){const n=e[0]/255,r=e[1]/255,a=e[2]/255,s=Math.max(Math.max(n,r),a),c=Math.min(Math.min(n,r),a),f=s-c;let h,v;return f<1?h=c/(1-f):h=0,f<=0?v=0:s===n?v=(r-a)/f%6:s===r?v=2+(a-n)/f:v=4+(n-r)/f,v/=6,v%=1,[v*360,f*100,h*100]},pt.hsl.hcg=function(e){const n=e[1]/100,r=e[2]/100,a=r<.5?2*n*r:2*n*(1-r);let s=0;return a<1&&(s=(r-.5*a)/(1-a)),[e[0],a*100,s*100]},pt.hsv.hcg=function(e){const n=e[1]/100,r=e[2]/100,a=n*r;let s=0;return a<1&&(s=(r-a)/(1-a)),[e[0],a*100,s*100]},pt.hcg.rgb=function(e){const n=e[0]/360,r=e[1]/100,a=e[2]/100;if(r===0)return[a*255,a*255,a*255];const s=[0,0,0],c=n%1*6,f=c%1,h=1-f;let v=0;switch(Math.floor(c)){case 0:s[0]=1,s[1]=f,s[2]=0;break;case 1:s[0]=h,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=f;break;case 3:s[0]=0,s[1]=h,s[2]=1;break;case 4:s[0]=f,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=h}return v=(1-r)*a,[(r*s[0]+v)*255,(r*s[1]+v)*255,(r*s[2]+v)*255]},pt.hcg.hsv=function(e){const n=e[1]/100,r=e[2]/100,a=n+r*(1-n);let s=0;return a>0&&(s=n/a),[e[0],s*100,a*100]},pt.hcg.hsl=function(e){const n=e[1]/100,a=e[2]/100*(1-n)+.5*n;let s=0;return a>0&&a<.5?s=n/(2*a):a>=.5&&a<1&&(s=n/(2*(1-a))),[e[0],s*100,a*100]},pt.hcg.hwb=function(e){const n=e[1]/100,r=e[2]/100,a=n+r*(1-n);return[e[0],(a-n)*100,(1-a)*100]},pt.hwb.hcg=function(e){const n=e[1]/100,a=1-e[2]/100,s=a-n;let c=0;return s<1&&(c=(a-s)/(1-s)),[e[0],s*100,c*100]},pt.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},pt.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},pt.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},pt.gray.hsl=function(e){return[0,0,e[0]]},pt.gray.hsv=pt.gray.hsl,pt.gray.hwb=function(e){return[0,100,e[0]]},pt.gray.cmyk=function(e){return[0,0,0,e[0]]},pt.gray.lab=function(e){return[e[0],0,0]},pt.gray.hex=function(e){const n=Math.round(e[0]/100*255)&255,a=((n<<16)+(n<<8)+n).toString(16).toUpperCase();return"000000".substring(a.length)+a},pt.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const Og=V5;function WF(){const e={},n=Object.keys(Og);for(let r=n.length,a=0;a<r;a++)e[n[a]]={distance:-1,parent:null};return e}function YF(e){const n=WF(),r=[e];for(n[e].distance=0;r.length;){const a=r.pop(),s=Object.keys(Og[a]);for(let c=s.length,f=0;f<c;f++){const h=s[f],v=n[h];v.distance===-1&&(v.distance=n[a].distance+1,v.parent=a,r.unshift(h))}}return n}function ZF(e,n){return function(r){return n(e(r))}}function KF(e,n){const r=[n[e].parent,e];let a=Og[n[e].parent][e],s=n[e].parent;for(;n[s].parent;)r.unshift(n[s].parent),a=ZF(Og[n[s].parent][s],a),s=n[s].parent;return a.conversion=r,a}var GF=function(e){const n=YF(e),r={},a=Object.keys(n);for(let s=a.length,c=0;c<s;c++){const f=a[c];n[f].parent!==null&&(r[f]=KF(f,n))}return r};const GE=V5,QF=GF,Qh={},XF=Object.keys(GE);function JF(e){const n=function(...r){const a=r[0];return a==null?a:(a.length>1&&(r=a),e(r))};return"conversion"in e&&(n.conversion=e.conversion),n}function eI(e){const n=function(...r){const a=r[0];if(a==null)return a;a.length>1&&(r=a);const s=e(r);if(typeof s=="object")for(let c=s.length,f=0;f<c;f++)s[f]=Math.round(s[f]);return s};return"conversion"in e&&(n.conversion=e.conversion),n}XF.forEach(e=>{Qh[e]={},Object.defineProperty(Qh[e],"channels",{value:GE[e].channels}),Object.defineProperty(Qh[e],"labels",{value:GE[e].labels});const n=QF(e);Object.keys(n).forEach(a=>{const s=n[a];Qh[e][a]=eI(s),Qh[e][a].raw=JF(s)})});var H5={},q5={},QE={exports:{}},Wn=String,W5=function(){return{isColorSupported:!1,reset:Wn,bold:Wn,dim:Wn,italic:Wn,underline:Wn,inverse:Wn,hidden:Wn,strikethrough:Wn,black:Wn,red:Wn,green:Wn,yellow:Wn,blue:Wn,magenta:Wn,cyan:Wn,white:Wn,gray:Wn,bgBlack:Wn,bgRed:Wn,bgGreen:Wn,bgYellow:Wn,bgBlue:Wn,bgMagenta:Wn,bgCyan:Wn,bgWhite:Wn}};QE.exports=W5(),QE.exports.createColors=W5;var tI=QE.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function n(v,y){for(var S in y)Object.defineProperty(v,S,{enumerable:!0,get:y[S]})}n(e,{dim:function(){return f},default:function(){return h}});const r=a(tI);function a(v){return v&&v.__esModule?v:{default:v}}let s=new Set;function c(v,y,S){typeof process<"u"&&process.env.JEST_WORKER_ID||S&&s.has(S)||(S&&s.add(S),console.warn(""),y.forEach(E=>console.warn(v,"-",E)))}function f(v){return r.default.dim(v)}const h={info(v,y){c(r.default.bold(r.default.cyan("info")),...Array.isArray(v)?[v]:[y,v])},warn(v,y){c(r.default.bold(r.default.yellow("warn")),...Array.isArray(v)?[v]:[y,v])},risk(v,y){c(r.default.bold(r.default.magenta("risk")),...Array.isArray(v)?[v]:[y,v])}}})(q5),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return s}});const n=r(q5);function r(c){return c&&c.__esModule?c:{default:c}}function a({version:c,from:f,to:h}){n.default.warn(`${f}-color-renamed`,[`As of Tailwind CSS ${c}, \`${f}\` has been renamed to \`${h}\`.`,"Update your configuration file to silence this warning."])}const s={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return a({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return a({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return a({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return a({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return a({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}(H5);let XE=H5;(XE.__esModule?XE:{default:XE}).default;class Y5{constructor(){Gs(this,"eventMap");this.eventMap={}}on(n,r){var a;return this.eventMap[n]||(this.eventMap[n]=new Set),(a=this.eventMap[n])==null||a.add(r),()=>{var s;(s=this.eventMap[n])==null||s.delete(r)}}emit(n,r){var a;(a=this.eventMap[n])==null||a.forEach(s=>{s(r)})}}const nI=new Y5;function Z5(e,n){let r=0;if(e.length==0)return r;for(let a=0;a<e.length;a++){const s=e.charCodeAt(a);r=(r<<5)-r+s,r=r&r}return Math.abs(r)%n}var hn;(function(e){e.assertEqual=s=>s;function n(s){}e.assertIs=n;function r(s){throw new Error}e.assertNever=r,e.arrayToEnum=s=>{const c={};for(const f of s)c[f]=f;return c},e.getValidEnumValues=s=>{const c=e.objectKeys(s).filter(h=>typeof s[s[h]]!="number"),f={};for(const h of c)f[h]=s[h];return e.objectValues(f)},e.objectValues=s=>e.objectKeys(s).map(function(c){return s[c]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const c=[];for(const f in s)Object.prototype.hasOwnProperty.call(s,f)&&c.push(f);return c},e.find=(s,c)=>{for(const f of s)if(c(f))return f},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function a(s,c=" | "){return s.map(f=>typeof f=="string"?`'${f}'`:f).join(c)}e.joinValues=a,e.jsonStringifyReplacer=(s,c)=>typeof c=="bigint"?c.toString():c})(hn||(hn={}));var JE;(function(e){e.mergeShapes=(n,r)=>({...n,...r})})(JE||(JE={}));const rt=hn.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),cu=e=>{switch(typeof e){case"undefined":return rt.undefined;case"string":return rt.string;case"number":return isNaN(e)?rt.nan:rt.number;case"boolean":return rt.boolean;case"function":return rt.function;case"bigint":return rt.bigint;case"symbol":return rt.symbol;case"object":return Array.isArray(e)?rt.array:e===null?rt.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?rt.promise:typeof Map<"u"&&e instanceof Map?rt.map:typeof Set<"u"&&e instanceof Set?rt.set:typeof Date<"u"&&e instanceof Date?rt.date:rt.object;default:return rt.unknown}},qe=hn.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),rI=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class So extends Error{constructor(n){super(),this.issues=[],this.addIssue=a=>{this.issues=[...this.issues,a]},this.addIssues=(a=[])=>{this.issues=[...this.issues,...a]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=n}get errors(){return this.issues}format(n){const r=n||function(c){return c.message},a={_errors:[]},s=c=>{for(const f of c.issues)if(f.code==="invalid_union")f.unionErrors.map(s);else if(f.code==="invalid_return_type")s(f.returnTypeError);else if(f.code==="invalid_arguments")s(f.argumentsError);else if(f.path.length===0)a._errors.push(r(f));else{let h=a,v=0;for(;v<f.path.length;){const y=f.path[v];v===f.path.length-1?(h[y]=h[y]||{_errors:[]},h[y]._errors.push(r(f))):h[y]=h[y]||{_errors:[]},h=h[y],v++}}};return s(this),a}toString(){return this.message}get message(){return JSON.stringify(this.issues,hn.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(n=r=>r.message){const r={},a=[];for(const s of this.issues)s.path.length>0?(r[s.path[0]]=r[s.path[0]]||[],r[s.path[0]].push(n(s))):a.push(n(s));return{formErrors:a,fieldErrors:r}}get formErrors(){return this.flatten()}}So.create=e=>new So(e);const Xh=(e,n)=>{let r;switch(e.code){case qe.invalid_type:e.received===rt.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case qe.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,hn.jsonStringifyReplacer)}`;break;case qe.unrecognized_keys:r=`Unrecognized key(s) in object: ${hn.joinValues(e.keys,", ")}`;break;case qe.invalid_union:r="Invalid input";break;case qe.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${hn.joinValues(e.options)}`;break;case qe.invalid_enum_value:r=`Invalid enum value. Expected ${hn.joinValues(e.options)}, received '${e.received}'`;break;case qe.invalid_arguments:r="Invalid function arguments";break;case qe.invalid_return_type:r="Invalid function return type";break;case qe.invalid_date:r="Invalid date";break;case qe.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:hn.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case qe.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case qe.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case qe.custom:r="Invalid input";break;case qe.invalid_intersection_types:r="Intersection results could not be merged";break;case qe.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case qe.not_finite:r="Number must be finite";break;default:r=n.defaultError,hn.assertNever(e)}return{message:r}};let K5=Xh;function iI(e){K5=e}function Dg(){return K5}const Ag=e=>{const{data:n,path:r,errorMaps:a,issueData:s}=e,c=[...r,...s.path||[]],f={...s,path:c};let h="";const v=a.filter(y=>!!y).slice().reverse();for(const y of v)h=y(f,{data:n,defaultError:h}).message;return{...s,path:c,message:s.message||h}},aI=[];function ot(e,n){const r=Ag({issueData:n,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,Dg(),Xh].filter(a=>!!a)});e.common.issues.push(r)}class wi{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(n,r){const a=[];for(const s of r){if(s.status==="aborted")return Ut;s.status==="dirty"&&n.dirty(),a.push(s.value)}return{status:n.value,value:a}}static async mergeObjectAsync(n,r){const a=[];for(const s of r)a.push({key:await s.key,value:await s.value});return wi.mergeObjectSync(n,a)}static mergeObjectSync(n,r){const a={};for(const s of r){const{key:c,value:f}=s;if(c.status==="aborted"||f.status==="aborted")return Ut;c.status==="dirty"&&n.dirty(),f.status==="dirty"&&n.dirty(),(typeof f.value<"u"||s.alwaysSet)&&(a[c.value]=f.value)}return{status:n.value,value:a}}}const Ut=Object.freeze({status:"aborted"}),G5=e=>({status:"dirty",value:e}),zi=e=>({status:"valid",value:e}),ex=e=>e.status==="aborted",tx=e=>e.status==="dirty",Mg=e=>e.status==="valid",Lg=e=>typeof Promise<"u"&&e instanceof Promise;var Ct;(function(e){e.errToObj=n=>typeof n=="string"?{message:n}:n||{},e.toString=n=>typeof n=="string"?n:n==null?void 0:n.message})(Ct||(Ct={}));class il{constructor(n,r,a,s){this._cachedPath=[],this.parent=n,this.data=r,this._path=a,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Q5=(e,n)=>{if(Mg(n))return{success:!0,data:n.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new So(e.common.issues);return this._error=r,this._error}}};function Wt(e){if(!e)return{};const{errorMap:n,invalid_type_error:r,required_error:a,description:s}=e;if(n&&(r||a))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return n?{errorMap:n,description:s}:{errorMap:(f,h)=>f.code!=="invalid_type"?{message:h.defaultError}:typeof h.data>"u"?{message:a??h.defaultError}:{message:r??h.defaultError},description:s}}class Qt{constructor(n){this.spa=this.safeParseAsync,this._def=n,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(n){return cu(n.data)}_getOrReturnCtx(n,r){return r||{common:n.parent.common,data:n.data,parsedType:cu(n.data),schemaErrorMap:this._def.errorMap,path:n.path,parent:n.parent}}_processInputParams(n){return{status:new wi,ctx:{common:n.parent.common,data:n.data,parsedType:cu(n.data),schemaErrorMap:this._def.errorMap,path:n.path,parent:n.parent}}}_parseSync(n){const r=this._parse(n);if(Lg(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(n){const r=this._parse(n);return Promise.resolve(r)}parse(n,r){const a=this.safeParse(n,r);if(a.success)return a.data;throw a.error}safeParse(n,r){var a;const s={common:{issues:[],async:(a=r==null?void 0:r.async)!==null&&a!==void 0?a:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:cu(n)},c=this._parseSync({data:n,path:s.path,parent:s});return Q5(s,c)}async parseAsync(n,r){const a=await this.safeParseAsync(n,r);if(a.success)return a.data;throw a.error}async safeParseAsync(n,r){const a={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:cu(n)},s=this._parse({data:n,path:a.path,parent:a}),c=await(Lg(s)?s:Promise.resolve(s));return Q5(a,c)}refine(n,r){const a=s=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(s):r;return this._refinement((s,c)=>{const f=n(s),h=()=>c.addIssue({code:qe.custom,...a(s)});return typeof Promise<"u"&&f instanceof Promise?f.then(v=>v?!0:(h(),!1)):f?!0:(h(),!1)})}refinement(n,r){return this._refinement((a,s)=>n(a)?!0:(s.addIssue(typeof r=="function"?r(a,s):r),!1))}_refinement(n){return new wo({schema:this,typeName:Mt.ZodEffects,effect:{type:"refinement",refinement:n}})}superRefine(n){return this._refinement(n)}optional(){return es.create(this,this._def)}nullable(){return Fc.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return xo.create(this,this._def)}promise(){return yd.create(this,this._def)}or(n){return nm.create([this,n],this._def)}and(n){return rm.create(this,n,this._def)}transform(n){return new wo({...Wt(this._def),schema:this,typeName:Mt.ZodEffects,effect:{type:"transform",transform:n}})}default(n){const r=typeof n=="function"?n:()=>n;return new sm({...Wt(this._def),innerType:this,defaultValue:r,typeName:Mt.ZodDefault})}brand(){return new J5({typeName:Mt.ZodBranded,type:this,...Wt(this._def)})}catch(n){const r=typeof n=="function"?n:()=>n;return new jg({...Wt(this._def),innerType:this,catchValue:r,typeName:Mt.ZodCatch})}describe(n){const r=this.constructor;return new r({...this._def,description:n})}pipe(n){return um.create(this,n)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const oI=/^c[^\s-]{8,}$/i,lI=/^[a-z][a-z0-9]*$/,sI=/[0-9A-HJKMNP-TV-Z]{26}/,uI=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,cI=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,fI=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,dI=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,pI=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,hI=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function mI(e,n){return!!((n==="v4"||!n)&&dI.test(e)||(n==="v6"||!n)&&pI.test(e))}class Eo extends Qt{constructor(){super(...arguments),this._regex=(n,r,a)=>this.refinement(s=>n.test(s),{validation:r,code:qe.invalid_string,...Ct.errToObj(a)}),this.nonempty=n=>this.min(1,Ct.errToObj(n)),this.trim=()=>new Eo({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new Eo({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new Eo({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(n){if(this._def.coerce&&(n.data=String(n.data)),this._getType(n)!==rt.string){const c=this._getOrReturnCtx(n);return ot(c,{code:qe.invalid_type,expected:rt.string,received:c.parsedType}),Ut}const a=new wi;let s;for(const c of this._def.checks)if(c.kind==="min")n.data.length<c.value&&(s=this._getOrReturnCtx(n,s),ot(s,{code:qe.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),a.dirty());else if(c.kind==="max")n.data.length>c.value&&(s=this._getOrReturnCtx(n,s),ot(s,{code:qe.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),a.dirty());else if(c.kind==="length"){const f=n.data.length>c.value,h=n.data.length<c.value;(f||h)&&(s=this._getOrReturnCtx(n,s),f?ot(s,{code:qe.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}):h&&ot(s,{code:qe.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}),a.dirty())}else if(c.kind==="email")cI.test(n.data)||(s=this._getOrReturnCtx(n,s),ot(s,{validation:"email",code:qe.invalid_string,message:c.message}),a.dirty());else if(c.kind==="emoji")fI.test(n.data)||(s=this._getOrReturnCtx(n,s),ot(s,{validation:"emoji",code:qe.invalid_string,message:c.message}),a.dirty());else if(c.kind==="uuid")uI.test(n.data)||(s=this._getOrReturnCtx(n,s),ot(s,{validation:"uuid",code:qe.invalid_string,message:c.message}),a.dirty());else if(c.kind==="cuid")oI.test(n.data)||(s=this._getOrReturnCtx(n,s),ot(s,{validation:"cuid",code:qe.invalid_string,message:c.message}),a.dirty());else if(c.kind==="cuid2")lI.test(n.data)||(s=this._getOrReturnCtx(n,s),ot(s,{validation:"cuid2",code:qe.invalid_string,message:c.message}),a.dirty());else if(c.kind==="ulid")sI.test(n.data)||(s=this._getOrReturnCtx(n,s),ot(s,{validation:"ulid",code:qe.invalid_string,message:c.message}),a.dirty());else if(c.kind==="url")try{new URL(n.data)}catch{s=this._getOrReturnCtx(n,s),ot(s,{validation:"url",code:qe.invalid_string,message:c.message}),a.dirty()}else c.kind==="regex"?(c.regex.lastIndex=0,c.regex.test(n.data)||(s=this._getOrReturnCtx(n,s),ot(s,{validation:"regex",code:qe.invalid_string,message:c.message}),a.dirty())):c.kind==="trim"?n.data=n.data.trim():c.kind==="includes"?n.data.includes(c.value,c.position)||(s=this._getOrReturnCtx(n,s),ot(s,{code:qe.invalid_string,validation:{includes:c.value,position:c.position},message:c.message}),a.dirty()):c.kind==="toLowerCase"?n.data=n.data.toLowerCase():c.kind==="toUpperCase"?n.data=n.data.toUpperCase():c.kind==="startsWith"?n.data.startsWith(c.value)||(s=this._getOrReturnCtx(n,s),ot(s,{code:qe.invalid_string,validation:{startsWith:c.value},message:c.message}),a.dirty()):c.kind==="endsWith"?n.data.endsWith(c.value)||(s=this._getOrReturnCtx(n,s),ot(s,{code:qe.invalid_string,validation:{endsWith:c.value},message:c.message}),a.dirty()):c.kind==="datetime"?hI(c).test(n.data)||(s=this._getOrReturnCtx(n,s),ot(s,{code:qe.invalid_string,validation:"datetime",message:c.message}),a.dirty()):c.kind==="ip"?mI(n.data,c.version)||(s=this._getOrReturnCtx(n,s),ot(s,{validation:"ip",code:qe.invalid_string,message:c.message}),a.dirty()):hn.assertNever(c);return{status:a.value,value:n.data}}_addCheck(n){return new Eo({...this._def,checks:[...this._def.checks,n]})}email(n){return this._addCheck({kind:"email",...Ct.errToObj(n)})}url(n){return this._addCheck({kind:"url",...Ct.errToObj(n)})}emoji(n){return this._addCheck({kind:"emoji",...Ct.errToObj(n)})}uuid(n){return this._addCheck({kind:"uuid",...Ct.errToObj(n)})}cuid(n){return this._addCheck({kind:"cuid",...Ct.errToObj(n)})}cuid2(n){return this._addCheck({kind:"cuid2",...Ct.errToObj(n)})}ulid(n){return this._addCheck({kind:"ulid",...Ct.errToObj(n)})}ip(n){return this._addCheck({kind:"ip",...Ct.errToObj(n)})}datetime(n){var r;return typeof n=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:n}):this._addCheck({kind:"datetime",precision:typeof(n==null?void 0:n.precision)>"u"?null:n==null?void 0:n.precision,offset:(r=n==null?void 0:n.offset)!==null&&r!==void 0?r:!1,...Ct.errToObj(n==null?void 0:n.message)})}regex(n,r){return this._addCheck({kind:"regex",regex:n,...Ct.errToObj(r)})}includes(n,r){return this._addCheck({kind:"includes",value:n,position:r==null?void 0:r.position,...Ct.errToObj(r==null?void 0:r.message)})}startsWith(n,r){return this._addCheck({kind:"startsWith",value:n,...Ct.errToObj(r)})}endsWith(n,r){return this._addCheck({kind:"endsWith",value:n,...Ct.errToObj(r)})}min(n,r){return this._addCheck({kind:"min",value:n,...Ct.errToObj(r)})}max(n,r){return this._addCheck({kind:"max",value:n,...Ct.errToObj(r)})}length(n,r){return this._addCheck({kind:"length",value:n,...Ct.errToObj(r)})}get isDatetime(){return!!this._def.checks.find(n=>n.kind==="datetime")}get isEmail(){return!!this._def.checks.find(n=>n.kind==="email")}get isURL(){return!!this._def.checks.find(n=>n.kind==="url")}get isEmoji(){return!!this._def.checks.find(n=>n.kind==="emoji")}get isUUID(){return!!this._def.checks.find(n=>n.kind==="uuid")}get isCUID(){return!!this._def.checks.find(n=>n.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(n=>n.kind==="cuid2")}get isULID(){return!!this._def.checks.find(n=>n.kind==="ulid")}get isIP(){return!!this._def.checks.find(n=>n.kind==="ip")}get minLength(){let n=null;for(const r of this._def.checks)r.kind==="min"&&(n===null||r.value>n)&&(n=r.value);return n}get maxLength(){let n=null;for(const r of this._def.checks)r.kind==="max"&&(n===null||r.value<n)&&(n=r.value);return n}}Eo.create=e=>{var n;return new Eo({checks:[],typeName:Mt.ZodString,coerce:(n=e==null?void 0:e.coerce)!==null&&n!==void 0?n:!1,...Wt(e)})};function vI(e,n){const r=(e.toString().split(".")[1]||"").length,a=(n.toString().split(".")[1]||"").length,s=r>a?r:a,c=parseInt(e.toFixed(s).replace(".","")),f=parseInt(n.toFixed(s).replace(".",""));return c%f/Math.pow(10,s)}class fu extends Qt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(n){if(this._def.coerce&&(n.data=Number(n.data)),this._getType(n)!==rt.number){const c=this._getOrReturnCtx(n);return ot(c,{code:qe.invalid_type,expected:rt.number,received:c.parsedType}),Ut}let a;const s=new wi;for(const c of this._def.checks)c.kind==="int"?hn.isInteger(n.data)||(a=this._getOrReturnCtx(n,a),ot(a,{code:qe.invalid_type,expected:"integer",received:"float",message:c.message}),s.dirty()):c.kind==="min"?(c.inclusive?n.data<c.value:n.data<=c.value)&&(a=this._getOrReturnCtx(n,a),ot(a,{code:qe.too_small,minimum:c.value,type:"number",inclusive:c.inclusive,exact:!1,message:c.message}),s.dirty()):c.kind==="max"?(c.inclusive?n.data>c.value:n.data>=c.value)&&(a=this._getOrReturnCtx(n,a),ot(a,{code:qe.too_big,maximum:c.value,type:"number",inclusive:c.inclusive,exact:!1,message:c.message}),s.dirty()):c.kind==="multipleOf"?vI(n.data,c.value)!==0&&(a=this._getOrReturnCtx(n,a),ot(a,{code:qe.not_multiple_of,multipleOf:c.value,message:c.message}),s.dirty()):c.kind==="finite"?Number.isFinite(n.data)||(a=this._getOrReturnCtx(n,a),ot(a,{code:qe.not_finite,message:c.message}),s.dirty()):hn.assertNever(c);return{status:s.value,value:n.data}}gte(n,r){return this.setLimit("min",n,!0,Ct.toString(r))}gt(n,r){return this.setLimit("min",n,!1,Ct.toString(r))}lte(n,r){return this.setLimit("max",n,!0,Ct.toString(r))}lt(n,r){return this.setLimit("max",n,!1,Ct.toString(r))}setLimit(n,r,a,s){return new fu({...this._def,checks:[...this._def.checks,{kind:n,value:r,inclusive:a,message:Ct.toString(s)}]})}_addCheck(n){return new fu({...this._def,checks:[...this._def.checks,n]})}int(n){return this._addCheck({kind:"int",message:Ct.toString(n)})}positive(n){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ct.toString(n)})}negative(n){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ct.toString(n)})}nonpositive(n){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ct.toString(n)})}nonnegative(n){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ct.toString(n)})}multipleOf(n,r){return this._addCheck({kind:"multipleOf",value:n,message:Ct.toString(r)})}finite(n){return this._addCheck({kind:"finite",message:Ct.toString(n)})}safe(n){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ct.toString(n)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ct.toString(n)})}get minValue(){let n=null;for(const r of this._def.checks)r.kind==="min"&&(n===null||r.value>n)&&(n=r.value);return n}get maxValue(){let n=null;for(const r of this._def.checks)r.kind==="max"&&(n===null||r.value<n)&&(n=r.value);return n}get isInt(){return!!this._def.checks.find(n=>n.kind==="int"||n.kind==="multipleOf"&&hn.isInteger(n.value))}get isFinite(){let n=null,r=null;for(const a of this._def.checks){if(a.kind==="finite"||a.kind==="int"||a.kind==="multipleOf")return!0;a.kind==="min"?(r===null||a.value>r)&&(r=a.value):a.kind==="max"&&(n===null||a.value<n)&&(n=a.value)}return Number.isFinite(r)&&Number.isFinite(n)}}fu.create=e=>new fu({checks:[],typeName:Mt.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Wt(e)});class du extends Qt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(n){if(this._def.coerce&&(n.data=BigInt(n.data)),this._getType(n)!==rt.bigint){const c=this._getOrReturnCtx(n);return ot(c,{code:qe.invalid_type,expected:rt.bigint,received:c.parsedType}),Ut}let a;const s=new wi;for(const c of this._def.checks)c.kind==="min"?(c.inclusive?n.data<c.value:n.data<=c.value)&&(a=this._getOrReturnCtx(n,a),ot(a,{code:qe.too_small,type:"bigint",minimum:c.value,inclusive:c.inclusive,message:c.message}),s.dirty()):c.kind==="max"?(c.inclusive?n.data>c.value:n.data>=c.value)&&(a=this._getOrReturnCtx(n,a),ot(a,{code:qe.too_big,type:"bigint",maximum:c.value,inclusive:c.inclusive,message:c.message}),s.dirty()):c.kind==="multipleOf"?n.data%c.value!==BigInt(0)&&(a=this._getOrReturnCtx(n,a),ot(a,{code:qe.not_multiple_of,multipleOf:c.value,message:c.message}),s.dirty()):hn.assertNever(c);return{status:s.value,value:n.data}}gte(n,r){return this.setLimit("min",n,!0,Ct.toString(r))}gt(n,r){return this.setLimit("min",n,!1,Ct.toString(r))}lte(n,r){return this.setLimit("max",n,!0,Ct.toString(r))}lt(n,r){return this.setLimit("max",n,!1,Ct.toString(r))}setLimit(n,r,a,s){return new du({...this._def,checks:[...this._def.checks,{kind:n,value:r,inclusive:a,message:Ct.toString(s)}]})}_addCheck(n){return new du({...this._def,checks:[...this._def.checks,n]})}positive(n){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ct.toString(n)})}negative(n){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ct.toString(n)})}nonpositive(n){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ct.toString(n)})}nonnegative(n){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ct.toString(n)})}multipleOf(n,r){return this._addCheck({kind:"multipleOf",value:n,message:Ct.toString(r)})}get minValue(){let n=null;for(const r of this._def.checks)r.kind==="min"&&(n===null||r.value>n)&&(n=r.value);return n}get maxValue(){let n=null;for(const r of this._def.checks)r.kind==="max"&&(n===null||r.value<n)&&(n=r.value);return n}}du.create=e=>{var n;return new du({checks:[],typeName:Mt.ZodBigInt,coerce:(n=e==null?void 0:e.coerce)!==null&&n!==void 0?n:!1,...Wt(e)})};class Jh extends Qt{_parse(n){if(this._def.coerce&&(n.data=!!n.data),this._getType(n)!==rt.boolean){const a=this._getOrReturnCtx(n);return ot(a,{code:qe.invalid_type,expected:rt.boolean,received:a.parsedType}),Ut}return zi(n.data)}}Jh.create=e=>new Jh({typeName:Mt.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Wt(e)});class Lc extends Qt{_parse(n){if(this._def.coerce&&(n.data=new Date(n.data)),this._getType(n)!==rt.date){const c=this._getOrReturnCtx(n);return ot(c,{code:qe.invalid_type,expected:rt.date,received:c.parsedType}),Ut}if(isNaN(n.data.getTime())){const c=this._getOrReturnCtx(n);return ot(c,{code:qe.invalid_date}),Ut}const a=new wi;let s;for(const c of this._def.checks)c.kind==="min"?n.data.getTime()<c.value&&(s=this._getOrReturnCtx(n,s),ot(s,{code:qe.too_small,message:c.message,inclusive:!0,exact:!1,minimum:c.value,type:"date"}),a.dirty()):c.kind==="max"?n.data.getTime()>c.value&&(s=this._getOrReturnCtx(n,s),ot(s,{code:qe.too_big,message:c.message,inclusive:!0,exact:!1,maximum:c.value,type:"date"}),a.dirty()):hn.assertNever(c);return{status:a.value,value:new Date(n.data.getTime())}}_addCheck(n){return new Lc({...this._def,checks:[...this._def.checks,n]})}min(n,r){return this._addCheck({kind:"min",value:n.getTime(),message:Ct.toString(r)})}max(n,r){return this._addCheck({kind:"max",value:n.getTime(),message:Ct.toString(r)})}get minDate(){let n=null;for(const r of this._def.checks)r.kind==="min"&&(n===null||r.value>n)&&(n=r.value);return n!=null?new Date(n):null}get maxDate(){let n=null;for(const r of this._def.checks)r.kind==="max"&&(n===null||r.value<n)&&(n=r.value);return n!=null?new Date(n):null}}Lc.create=e=>new Lc({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Mt.ZodDate,...Wt(e)});class Pg extends Qt{_parse(n){if(this._getType(n)!==rt.symbol){const a=this._getOrReturnCtx(n);return ot(a,{code:qe.invalid_type,expected:rt.symbol,received:a.parsedType}),Ut}return zi(n.data)}}Pg.create=e=>new Pg({typeName:Mt.ZodSymbol,...Wt(e)});class em extends Qt{_parse(n){if(this._getType(n)!==rt.undefined){const a=this._getOrReturnCtx(n);return ot(a,{code:qe.invalid_type,expected:rt.undefined,received:a.parsedType}),Ut}return zi(n.data)}}em.create=e=>new em({typeName:Mt.ZodUndefined,...Wt(e)});class tm extends Qt{_parse(n){if(this._getType(n)!==rt.null){const a=this._getOrReturnCtx(n);return ot(a,{code:qe.invalid_type,expected:rt.null,received:a.parsedType}),Ut}return zi(n.data)}}tm.create=e=>new tm({typeName:Mt.ZodNull,...Wt(e)});class md extends Qt{constructor(){super(...arguments),this._any=!0}_parse(n){return zi(n.data)}}md.create=e=>new md({typeName:Mt.ZodAny,...Wt(e)});class Pc extends Qt{constructor(){super(...arguments),this._unknown=!0}_parse(n){return zi(n.data)}}Pc.create=e=>new Pc({typeName:Mt.ZodUnknown,...Wt(e)});class Jl extends Qt{_parse(n){const r=this._getOrReturnCtx(n);return ot(r,{code:qe.invalid_type,expected:rt.never,received:r.parsedType}),Ut}}Jl.create=e=>new Jl({typeName:Mt.ZodNever,...Wt(e)});class Ng extends Qt{_parse(n){if(this._getType(n)!==rt.undefined){const a=this._getOrReturnCtx(n);return ot(a,{code:qe.invalid_type,expected:rt.void,received:a.parsedType}),Ut}return zi(n.data)}}Ng.create=e=>new Ng({typeName:Mt.ZodVoid,...Wt(e)});class xo extends Qt{_parse(n){const{ctx:r,status:a}=this._processInputParams(n),s=this._def;if(r.parsedType!==rt.array)return ot(r,{code:qe.invalid_type,expected:rt.array,received:r.parsedType}),Ut;if(s.exactLength!==null){const f=r.data.length>s.exactLength.value,h=r.data.length<s.exactLength.value;(f||h)&&(ot(r,{code:f?qe.too_big:qe.too_small,minimum:h?s.exactLength.value:void 0,maximum:f?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),a.dirty())}if(s.minLength!==null&&r.data.length<s.minLength.value&&(ot(r,{code:qe.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),a.dirty()),s.maxLength!==null&&r.data.length>s.maxLength.value&&(ot(r,{code:qe.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),a.dirty()),r.common.async)return Promise.all([...r.data].map((f,h)=>s.type._parseAsync(new il(r,f,r.path,h)))).then(f=>wi.mergeArray(a,f));const c=[...r.data].map((f,h)=>s.type._parseSync(new il(r,f,r.path,h)));return wi.mergeArray(a,c)}get element(){return this._def.type}min(n,r){return new xo({...this._def,minLength:{value:n,message:Ct.toString(r)}})}max(n,r){return new xo({...this._def,maxLength:{value:n,message:Ct.toString(r)}})}length(n,r){return new xo({...this._def,exactLength:{value:n,message:Ct.toString(r)}})}nonempty(n){return this.min(1,n)}}xo.create=(e,n)=>new xo({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Mt.ZodArray,...Wt(n)});function vd(e){if(e instanceof rr){const n={};for(const r in e.shape){const a=e.shape[r];n[r]=es.create(vd(a))}return new rr({...e._def,shape:()=>n})}else return e instanceof xo?new xo({...e._def,type:vd(e.element)}):e instanceof es?es.create(vd(e.unwrap())):e instanceof Fc?Fc.create(vd(e.unwrap())):e instanceof al?al.create(e.items.map(n=>vd(n))):e}class rr extends Qt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const n=this._def.shape(),r=hn.objectKeys(n);return this._cached={shape:n,keys:r}}_parse(n){if(this._getType(n)!==rt.object){const y=this._getOrReturnCtx(n);return ot(y,{code:qe.invalid_type,expected:rt.object,received:y.parsedType}),Ut}const{status:a,ctx:s}=this._processInputParams(n),{shape:c,keys:f}=this._getCached(),h=[];if(!(this._def.catchall instanceof Jl&&this._def.unknownKeys==="strip"))for(const y in s.data)f.includes(y)||h.push(y);const v=[];for(const y of f){const S=c[y],E=s.data[y];v.push({key:{status:"valid",value:y},value:S._parse(new il(s,E,s.path,y)),alwaysSet:y in s.data})}if(this._def.catchall instanceof Jl){const y=this._def.unknownKeys;if(y==="passthrough")for(const S of h)v.push({key:{status:"valid",value:S},value:{status:"valid",value:s.data[S]}});else if(y==="strict")h.length>0&&(ot(s,{code:qe.unrecognized_keys,keys:h}),a.dirty());else if(y!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const y=this._def.catchall;for(const S of h){const E=s.data[S];v.push({key:{status:"valid",value:S},value:y._parse(new il(s,E,s.path,S)),alwaysSet:S in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const y=[];for(const S of v){const E=await S.key;y.push({key:E,value:await S.value,alwaysSet:S.alwaysSet})}return y}).then(y=>wi.mergeObjectSync(a,y)):wi.mergeObjectSync(a,v)}get shape(){return this._def.shape()}strict(n){return Ct.errToObj,new rr({...this._def,unknownKeys:"strict",...n!==void 0?{errorMap:(r,a)=>{var s,c,f,h;const v=(f=(c=(s=this._def).errorMap)===null||c===void 0?void 0:c.call(s,r,a).message)!==null&&f!==void 0?f:a.defaultError;return r.code==="unrecognized_keys"?{message:(h=Ct.errToObj(n).message)!==null&&h!==void 0?h:v}:{message:v}}}:{}})}strip(){return new rr({...this._def,unknownKeys:"strip"})}passthrough(){return new rr({...this._def,unknownKeys:"passthrough"})}extend(n){return new rr({...this._def,shape:()=>({...this._def.shape(),...n})})}merge(n){return new rr({unknownKeys:n._def.unknownKeys,catchall:n._def.catchall,shape:()=>({...this._def.shape(),...n._def.shape()}),typeName:Mt.ZodObject})}setKey(n,r){return this.augment({[n]:r})}catchall(n){return new rr({...this._def,catchall:n})}pick(n){const r={};return hn.objectKeys(n).forEach(a=>{n[a]&&this.shape[a]&&(r[a]=this.shape[a])}),new rr({...this._def,shape:()=>r})}omit(n){const r={};return hn.objectKeys(this.shape).forEach(a=>{n[a]||(r[a]=this.shape[a])}),new rr({...this._def,shape:()=>r})}deepPartial(){return vd(this)}partial(n){const r={};return hn.objectKeys(this.shape).forEach(a=>{const s=this.shape[a];n&&!n[a]?r[a]=s:r[a]=s.optional()}),new rr({...this._def,shape:()=>r})}required(n){const r={};return hn.objectKeys(this.shape).forEach(a=>{if(n&&!n[a])r[a]=this.shape[a];else{let c=this.shape[a];for(;c instanceof es;)c=c._def.innerType;r[a]=c}}),new rr({...this._def,shape:()=>r})}keyof(){return X5(hn.objectKeys(this.shape))}}rr.create=(e,n)=>new rr({shape:()=>e,unknownKeys:"strip",catchall:Jl.create(),typeName:Mt.ZodObject,...Wt(n)}),rr.strictCreate=(e,n)=>new rr({shape:()=>e,unknownKeys:"strict",catchall:Jl.create(),typeName:Mt.ZodObject,...Wt(n)}),rr.lazycreate=(e,n)=>new rr({shape:e,unknownKeys:"strip",catchall:Jl.create(),typeName:Mt.ZodObject,...Wt(n)});class nm extends Qt{_parse(n){const{ctx:r}=this._processInputParams(n),a=this._def.options;function s(c){for(const h of c)if(h.result.status==="valid")return h.result;for(const h of c)if(h.result.status==="dirty")return r.common.issues.push(...h.ctx.common.issues),h.result;const f=c.map(h=>new So(h.ctx.common.issues));return ot(r,{code:qe.invalid_union,unionErrors:f}),Ut}if(r.common.async)return Promise.all(a.map(async c=>{const f={...r,common:{...r.common,issues:[]},parent:null};return{result:await c._parseAsync({data:r.data,path:r.path,parent:f}),ctx:f}})).then(s);{let c;const f=[];for(const v of a){const y={...r,common:{...r.common,issues:[]},parent:null},S=v._parseSync({data:r.data,path:r.path,parent:y});if(S.status==="valid")return S;S.status==="dirty"&&!c&&(c={result:S,ctx:y}),y.common.issues.length&&f.push(y.common.issues)}if(c)return r.common.issues.push(...c.ctx.common.issues),c.result;const h=f.map(v=>new So(v));return ot(r,{code:qe.invalid_union,unionErrors:h}),Ut}}get options(){return this._def.options}}nm.create=(e,n)=>new nm({options:e,typeName:Mt.ZodUnion,...Wt(n)});const Fg=e=>e instanceof am?Fg(e.schema):e instanceof wo?Fg(e.innerType()):e instanceof om?[e.value]:e instanceof pu?e.options:e instanceof lm?Object.keys(e.enum):e instanceof sm?Fg(e._def.innerType):e instanceof em?[void 0]:e instanceof tm?[null]:null;class Ig extends Qt{_parse(n){const{ctx:r}=this._processInputParams(n);if(r.parsedType!==rt.object)return ot(r,{code:qe.invalid_type,expected:rt.object,received:r.parsedType}),Ut;const a=this.discriminator,s=r.data[a],c=this.optionsMap.get(s);return c?r.common.async?c._parseAsync({data:r.data,path:r.path,parent:r}):c._parseSync({data:r.data,path:r.path,parent:r}):(ot(r,{code:qe.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[a]}),Ut)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(n,r,a){const s=new Map;for(const c of r){const f=Fg(c.shape[n]);if(!f)throw new Error(`A discriminator value for key \`${n}\` could not be extracted from all schema options`);for(const h of f){if(s.has(h))throw new Error(`Discriminator property ${String(n)} has duplicate value ${String(h)}`);s.set(h,c)}}return new Ig({typeName:Mt.ZodDiscriminatedUnion,discriminator:n,options:r,optionsMap:s,...Wt(a)})}}function nx(e,n){const r=cu(e),a=cu(n);if(e===n)return{valid:!0,data:e};if(r===rt.object&&a===rt.object){const s=hn.objectKeys(n),c=hn.objectKeys(e).filter(h=>s.indexOf(h)!==-1),f={...e,...n};for(const h of c){const v=nx(e[h],n[h]);if(!v.valid)return{valid:!1};f[h]=v.data}return{valid:!0,data:f}}else if(r===rt.array&&a===rt.array){if(e.length!==n.length)return{valid:!1};const s=[];for(let c=0;c<e.length;c++){const f=e[c],h=n[c],v=nx(f,h);if(!v.valid)return{valid:!1};s.push(v.data)}return{valid:!0,data:s}}else return r===rt.date&&a===rt.date&&+e==+n?{valid:!0,data:e}:{valid:!1}}class rm extends Qt{_parse(n){const{status:r,ctx:a}=this._processInputParams(n),s=(c,f)=>{if(ex(c)||ex(f))return Ut;const h=nx(c.value,f.value);return h.valid?((tx(c)||tx(f))&&r.dirty(),{status:r.value,value:h.data}):(ot(a,{code:qe.invalid_intersection_types}),Ut)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([c,f])=>s(c,f)):s(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}rm.create=(e,n,r)=>new rm({left:e,right:n,typeName:Mt.ZodIntersection,...Wt(r)});class al extends Qt{_parse(n){const{status:r,ctx:a}=this._processInputParams(n);if(a.parsedType!==rt.array)return ot(a,{code:qe.invalid_type,expected:rt.array,received:a.parsedType}),Ut;if(a.data.length<this._def.items.length)return ot(a,{code:qe.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ut;!this._def.rest&&a.data.length>this._def.items.length&&(ot(a,{code:qe.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const c=[...a.data].map((f,h)=>{const v=this._def.items[h]||this._def.rest;return v?v._parse(new il(a,f,a.path,h)):null}).filter(f=>!!f);return a.common.async?Promise.all(c).then(f=>wi.mergeArray(r,f)):wi.mergeArray(r,c)}get items(){return this._def.items}rest(n){return new al({...this._def,rest:n})}}al.create=(e,n)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new al({items:e,typeName:Mt.ZodTuple,rest:null,...Wt(n)})};class im extends Qt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(n){const{status:r,ctx:a}=this._processInputParams(n);if(a.parsedType!==rt.object)return ot(a,{code:qe.invalid_type,expected:rt.object,received:a.parsedType}),Ut;const s=[],c=this._def.keyType,f=this._def.valueType;for(const h in a.data)s.push({key:c._parse(new il(a,h,a.path,h)),value:f._parse(new il(a,a.data[h],a.path,h))});return a.common.async?wi.mergeObjectAsync(r,s):wi.mergeObjectSync(r,s)}get element(){return this._def.valueType}static create(n,r,a){return r instanceof Qt?new im({keyType:n,valueType:r,typeName:Mt.ZodRecord,...Wt(a)}):new im({keyType:Eo.create(),valueType:n,typeName:Mt.ZodRecord,...Wt(r)})}}class zg extends Qt{_parse(n){const{status:r,ctx:a}=this._processInputParams(n);if(a.parsedType!==rt.map)return ot(a,{code:qe.invalid_type,expected:rt.map,received:a.parsedType}),Ut;const s=this._def.keyType,c=this._def.valueType,f=[...a.data.entries()].map(([h,v],y)=>({key:s._parse(new il(a,h,a.path,[y,"key"])),value:c._parse(new il(a,v,a.path,[y,"value"]))}));if(a.common.async){const h=new Map;return Promise.resolve().then(async()=>{for(const v of f){const y=await v.key,S=await v.value;if(y.status==="aborted"||S.status==="aborted")return Ut;(y.status==="dirty"||S.status==="dirty")&&r.dirty(),h.set(y.value,S.value)}return{status:r.value,value:h}})}else{const h=new Map;for(const v of f){const y=v.key,S=v.value;if(y.status==="aborted"||S.status==="aborted")return Ut;(y.status==="dirty"||S.status==="dirty")&&r.dirty(),h.set(y.value,S.value)}return{status:r.value,value:h}}}}zg.create=(e,n,r)=>new zg({valueType:n,keyType:e,typeName:Mt.ZodMap,...Wt(r)});class Nc extends Qt{_parse(n){const{status:r,ctx:a}=this._processInputParams(n);if(a.parsedType!==rt.set)return ot(a,{code:qe.invalid_type,expected:rt.set,received:a.parsedType}),Ut;const s=this._def;s.minSize!==null&&a.data.size<s.minSize.value&&(ot(a,{code:qe.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),r.dirty()),s.maxSize!==null&&a.data.size>s.maxSize.value&&(ot(a,{code:qe.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),r.dirty());const c=this._def.valueType;function f(v){const y=new Set;for(const S of v){if(S.status==="aborted")return Ut;S.status==="dirty"&&r.dirty(),y.add(S.value)}return{status:r.value,value:y}}const h=[...a.data.values()].map((v,y)=>c._parse(new il(a,v,a.path,y)));return a.common.async?Promise.all(h).then(v=>f(v)):f(h)}min(n,r){return new Nc({...this._def,minSize:{value:n,message:Ct.toString(r)}})}max(n,r){return new Nc({...this._def,maxSize:{value:n,message:Ct.toString(r)}})}size(n,r){return this.min(n,r).max(n,r)}nonempty(n){return this.min(1,n)}}Nc.create=(e,n)=>new Nc({valueType:e,minSize:null,maxSize:null,typeName:Mt.ZodSet,...Wt(n)});class gd extends Qt{constructor(){super(...arguments),this.validate=this.implement}_parse(n){const{ctx:r}=this._processInputParams(n);if(r.parsedType!==rt.function)return ot(r,{code:qe.invalid_type,expected:rt.function,received:r.parsedType}),Ut;function a(h,v){return Ag({data:h,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Dg(),Xh].filter(y=>!!y),issueData:{code:qe.invalid_arguments,argumentsError:v}})}function s(h,v){return Ag({data:h,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Dg(),Xh].filter(y=>!!y),issueData:{code:qe.invalid_return_type,returnTypeError:v}})}const c={errorMap:r.common.contextualErrorMap},f=r.data;return this._def.returns instanceof yd?zi(async(...h)=>{const v=new So([]),y=await this._def.args.parseAsync(h,c).catch(C=>{throw v.addIssue(a(h,C)),v}),S=await f(...y);return await this._def.returns._def.type.parseAsync(S,c).catch(C=>{throw v.addIssue(s(S,C)),v})}):zi((...h)=>{const v=this._def.args.safeParse(h,c);if(!v.success)throw new So([a(h,v.error)]);const y=f(...v.data),S=this._def.returns.safeParse(y,c);if(!S.success)throw new So([s(y,S.error)]);return S.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...n){return new gd({...this._def,args:al.create(n).rest(Pc.create())})}returns(n){return new gd({...this._def,returns:n})}implement(n){return this.parse(n)}strictImplement(n){return this.parse(n)}static create(n,r,a){return new gd({args:n||al.create([]).rest(Pc.create()),returns:r||Pc.create(),typeName:Mt.ZodFunction,...Wt(a)})}}class am extends Qt{get schema(){return this._def.getter()}_parse(n){const{ctx:r}=this._processInputParams(n);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}am.create=(e,n)=>new am({getter:e,typeName:Mt.ZodLazy,...Wt(n)});class om extends Qt{_parse(n){if(n.data!==this._def.value){const r=this._getOrReturnCtx(n);return ot(r,{received:r.data,code:qe.invalid_literal,expected:this._def.value}),Ut}return{status:"valid",value:n.data}}get value(){return this._def.value}}om.create=(e,n)=>new om({value:e,typeName:Mt.ZodLiteral,...Wt(n)});function X5(e,n){return new pu({values:e,typeName:Mt.ZodEnum,...Wt(n)})}class pu extends Qt{_parse(n){if(typeof n.data!="string"){const r=this._getOrReturnCtx(n),a=this._def.values;return ot(r,{expected:hn.joinValues(a),received:r.parsedType,code:qe.invalid_type}),Ut}if(this._def.values.indexOf(n.data)===-1){const r=this._getOrReturnCtx(n),a=this._def.values;return ot(r,{received:r.data,code:qe.invalid_enum_value,options:a}),Ut}return zi(n.data)}get options(){return this._def.values}get enum(){const n={};for(const r of this._def.values)n[r]=r;return n}get Values(){const n={};for(const r of this._def.values)n[r]=r;return n}get Enum(){const n={};for(const r of this._def.values)n[r]=r;return n}extract(n){return pu.create(n)}exclude(n){return pu.create(this.options.filter(r=>!n.includes(r)))}}pu.create=X5;class lm extends Qt{_parse(n){const r=hn.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(n);if(a.parsedType!==rt.string&&a.parsedType!==rt.number){const s=hn.objectValues(r);return ot(a,{expected:hn.joinValues(s),received:a.parsedType,code:qe.invalid_type}),Ut}if(r.indexOf(n.data)===-1){const s=hn.objectValues(r);return ot(a,{received:a.data,code:qe.invalid_enum_value,options:s}),Ut}return zi(n.data)}get enum(){return this._def.values}}lm.create=(e,n)=>new lm({values:e,typeName:Mt.ZodNativeEnum,...Wt(n)});class yd extends Qt{unwrap(){return this._def.type}_parse(n){const{ctx:r}=this._processInputParams(n);if(r.parsedType!==rt.promise&&r.common.async===!1)return ot(r,{code:qe.invalid_type,expected:rt.promise,received:r.parsedType}),Ut;const a=r.parsedType===rt.promise?r.data:Promise.resolve(r.data);return zi(a.then(s=>this._def.type.parseAsync(s,{path:r.path,errorMap:r.common.contextualErrorMap})))}}yd.create=(e,n)=>new yd({type:e,typeName:Mt.ZodPromise,...Wt(n)});class wo extends Qt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Mt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(n){const{status:r,ctx:a}=this._processInputParams(n),s=this._def.effect||null;if(s.type==="preprocess"){const f=s.transform(a.data);return a.common.async?Promise.resolve(f).then(h=>this._def.schema._parseAsync({data:h,path:a.path,parent:a})):this._def.schema._parseSync({data:f,path:a.path,parent:a})}const c={addIssue:f=>{ot(a,f),f.fatal?r.abort():r.dirty()},get path(){return a.path}};if(c.addIssue=c.addIssue.bind(c),s.type==="refinement"){const f=h=>{const v=s.refinement(h,c);if(a.common.async)return Promise.resolve(v);if(v instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return h};if(a.common.async===!1){const h=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return h.status==="aborted"?Ut:(h.status==="dirty"&&r.dirty(),f(h.value),{status:r.value,value:h.value})}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(h=>h.status==="aborted"?Ut:(h.status==="dirty"&&r.dirty(),f(h.value).then(()=>({status:r.value,value:h.value}))))}if(s.type==="transform")if(a.common.async===!1){const f=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!Mg(f))return f;const h=s.transform(f.value,c);if(h instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:h}}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(f=>Mg(f)?Promise.resolve(s.transform(f.value,c)).then(h=>({status:r.value,value:h})):f);hn.assertNever(s)}}wo.create=(e,n,r)=>new wo({schema:e,typeName:Mt.ZodEffects,effect:n,...Wt(r)}),wo.createWithPreprocess=(e,n,r)=>new wo({schema:n,effect:{type:"preprocess",transform:e},typeName:Mt.ZodEffects,...Wt(r)});class es extends Qt{_parse(n){return this._getType(n)===rt.undefined?zi(void 0):this._def.innerType._parse(n)}unwrap(){return this._def.innerType}}es.create=(e,n)=>new es({innerType:e,typeName:Mt.ZodOptional,...Wt(n)});class Fc extends Qt{_parse(n){return this._getType(n)===rt.null?zi(null):this._def.innerType._parse(n)}unwrap(){return this._def.innerType}}Fc.create=(e,n)=>new Fc({innerType:e,typeName:Mt.ZodNullable,...Wt(n)});class sm extends Qt{_parse(n){const{ctx:r}=this._processInputParams(n);let a=r.data;return r.parsedType===rt.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}sm.create=(e,n)=>new sm({innerType:e,typeName:Mt.ZodDefault,defaultValue:typeof n.default=="function"?n.default:()=>n.default,...Wt(n)});class jg extends Qt{_parse(n){const{ctx:r}=this._processInputParams(n),a={...r,common:{...r.common,issues:[]}},s=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return Lg(s)?s.then(c=>({status:"valid",value:c.status==="valid"?c.value:this._def.catchValue({get error(){return new So(a.common.issues)},input:a.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new So(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}jg.create=(e,n)=>new jg({innerType:e,typeName:Mt.ZodCatch,catchValue:typeof n.catch=="function"?n.catch:()=>n.catch,...Wt(n)});class $g extends Qt{_parse(n){if(this._getType(n)!==rt.nan){const a=this._getOrReturnCtx(n);return ot(a,{code:qe.invalid_type,expected:rt.nan,received:a.parsedType}),Ut}return{status:"valid",value:n.data}}}$g.create=e=>new $g({typeName:Mt.ZodNaN,...Wt(e)});const gI=Symbol("zod_brand");class J5 extends Qt{_parse(n){const{ctx:r}=this._processInputParams(n),a=r.data;return this._def.type._parse({data:a,path:r.path,parent:r})}unwrap(){return this._def.type}}class um extends Qt{_parse(n){const{status:r,ctx:a}=this._processInputParams(n);if(a.common.async)return(async()=>{const c=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return c.status==="aborted"?Ut:c.status==="dirty"?(r.dirty(),G5(c.value)):this._def.out._parseAsync({data:c.value,path:a.path,parent:a})})();{const s=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return s.status==="aborted"?Ut:s.status==="dirty"?(r.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:a.path,parent:a})}}static create(n,r){return new um({in:n,out:r,typeName:Mt.ZodPipeline})}}const e3=(e,n={},r)=>e?md.create().superRefine((a,s)=>{var c,f;if(!e(a)){const h=typeof n=="function"?n(a):typeof n=="string"?{message:n}:n,v=(f=(c=h.fatal)!==null&&c!==void 0?c:r)!==null&&f!==void 0?f:!0,y=typeof h=="string"?{message:h}:h;s.addIssue({code:"custom",...y,fatal:v})}}):md.create(),yI={object:rr.lazycreate};var Mt;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline"})(Mt||(Mt={}));const bI=(e,n={message:`Input not instance of ${e.name}`})=>e3(r=>r instanceof e,n),t3=Eo.create,n3=fu.create,SI=$g.create,EI=du.create,r3=Jh.create,xI=Lc.create,wI=Pg.create,CI=em.create,kI=tm.create,_I=md.create,TI=Pc.create,RI=Jl.create,OI=Ng.create,DI=xo.create,AI=rr.create,MI=rr.strictCreate,LI=nm.create,PI=Ig.create,NI=rm.create,FI=al.create,II=im.create,zI=zg.create,jI=Nc.create,$I=gd.create,UI=am.create,BI=om.create,VI=pu.create,HI=lm.create,qI=yd.create,i3=wo.create,WI=es.create,YI=Fc.create,ZI=wo.createWithPreprocess,KI=um.create;var lt=Object.freeze({__proto__:null,defaultErrorMap:Xh,setErrorMap:iI,getErrorMap:Dg,makeIssue:Ag,EMPTY_PATH:aI,addIssueToContext:ot,ParseStatus:wi,INVALID:Ut,DIRTY:G5,OK:zi,isAborted:ex,isDirty:tx,isValid:Mg,isAsync:Lg,get util(){return hn},get objectUtil(){return JE},ZodParsedType:rt,getParsedType:cu,ZodType:Qt,ZodString:Eo,ZodNumber:fu,ZodBigInt:du,ZodBoolean:Jh,ZodDate:Lc,ZodSymbol:Pg,ZodUndefined:em,ZodNull:tm,ZodAny:md,ZodUnknown:Pc,ZodNever:Jl,ZodVoid:Ng,ZodArray:xo,ZodObject:rr,ZodUnion:nm,ZodDiscriminatedUnion:Ig,ZodIntersection:rm,ZodTuple:al,ZodRecord:im,ZodMap:zg,ZodSet:Nc,ZodFunction:gd,ZodLazy:am,ZodLiteral:om,ZodEnum:pu,ZodNativeEnum:lm,ZodPromise:yd,ZodEffects:wo,ZodTransformer:wo,ZodOptional:es,ZodNullable:Fc,ZodDefault:sm,ZodCatch:jg,ZodNaN:$g,BRAND:gI,ZodBranded:J5,ZodPipeline:um,custom:e3,Schema:Qt,ZodSchema:Qt,late:yI,get ZodFirstPartyTypeKind(){return Mt},coerce:{string:e=>Eo.create({...e,coerce:!0}),number:e=>fu.create({...e,coerce:!0}),boolean:e=>Jh.create({...e,coerce:!0}),bigint:e=>du.create({...e,coerce:!0}),date:e=>Lc.create({...e,coerce:!0})},any:_I,array:DI,bigint:EI,boolean:r3,date:xI,discriminatedUnion:PI,effect:i3,enum:VI,function:$I,instanceof:bI,intersection:NI,lazy:UI,literal:BI,map:zI,nan:SI,nativeEnum:HI,never:RI,null:kI,nullable:YI,number:n3,object:AI,oboolean:()=>r3().optional(),onumber:()=>n3().optional(),optional:WI,ostring:()=>t3().optional(),pipeline:KI,preprocess:ZI,promise:qI,record:II,set:jI,strictObject:MI,string:t3,symbol:wI,transformer:i3,tuple:FI,undefined:CI,union:LI,unknown:TI,void:OI,NEVER:Ut,ZodIssueCode:qe,quotelessJson:rI,ZodError:So});const GI=lt.object({type:lt.literal("audio"),audio:lt.string(),title:lt.string().optional()}).transform(({type:e,audio:n})=>({type:e,url:n}));function Ug(e){return{block:e,type:"bubble"}}const QI=lt.object({title:lt.string(),action:lt.literal("Say something"),text:lt.string()}).transform(({title:e,text:n})=>({type:"button",variant:"action",text:e,buttonValue:n,reusable:!0})),XI=lt.object({title:lt.string(),action:lt.literal("Open URL"),url:lt.string()}).transform(({title:e,url:n})=>({type:"button",variant:"link",text:e,buttonValue:n,reusable:!0})),JI=lt.object({title:lt.string(),action:lt.literal("Postback"),payload:lt.string()}).transform(({title:e,payload:n})=>({type:"button",variant:"action",text:e,buttonValue:n,reusable:!0})),ez=lt.union([QI,XI,JI]),a3=lt.object({type:lt.literal("card"),title:lt.string().optional(),subtitle:lt.string().optional(),image:lt.string().optional(),actions:lt.array(ez)}),o3=({title:e,image:n,actions:r,subtitle:a})=>{const s=[];return n&&s.push({type:"image",url:n}),e&&s.push({type:"text",text:`## ${e}`}),a&&s.push({type:"text",text:a}),r.length>0&&s.push({type:"row",blocks:r}),{type:"column",horizontalAlignment:"center",blocks:[...s]}},tz=a3.transform(e=>Ug(o3(e))),nz=lt.object({type:lt.literal("carousel"),items:lt.array(a3.omit({type:!0}).transform(o3))}).transform(({items:e})=>({type:"carousel",blocks:e}));let Bg;const rz=new Uint8Array(16);function iz(){if(!Bg&&(Bg=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Bg))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Bg(rz)}const si=[];for(let e=0;e<256;++e)si.push((e+256).toString(16).slice(1));function az(e,n=0){return(si[e[n+0]]+si[e[n+1]]+si[e[n+2]]+si[e[n+3]]+"-"+si[e[n+4]]+si[e[n+5]]+"-"+si[e[n+6]]+si[e[n+7]]+"-"+si[e[n+8]]+si[e[n+9]]+"-"+si[e[n+10]]+si[e[n+11]]+si[e[n+12]]+si[e[n+13]]+si[e[n+14]]+si[e[n+15]]).toLowerCase()}const l3={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function oz(e,n,r){if(l3.randomUUID&&!n&&!e)return l3.randomUUID();e=e||{};const a=e.random||(e.rng||iz)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,n){r=r||0;for(let s=0;s<16;++s)n[r+s]=a[s];return n}return az(a)}const lz=lt.object({type:lt.literal("single-choice"),text:lt.string(),choices:lt.array(lt.object({title:lt.string(),value:lt.string()}))}).transform(({choices:e,text:n})=>{const r=oz(),a=[{type:"row",blocks:e.map(({title:s,value:c})=>({type:"button",variant:"action",text:s,buttonValue:c,groupId:r}))}];return n&&a.unshift({type:"text",text:n}),Ug({type:"column",blocks:a})}),sz=lt.object({type:lt.literal("file"),file:lt.string(),title:lt.string().optional()}).transform(({file:e,...n})=>({url:e,...n})),uz=lt.object({type:lt.literal("image"),image:lt.string(),title:lt.string().optional()}).transform(({type:e,image:n})=>({type:e,url:n})),cz=lt.object({type:lt.literal("location"),latitude:lt.number(),longitude:lt.number(),address:lt.string().optional(),title:lt.string().optional()}).transform(({type:e,latitude:n,longitude:r,title:a,address:s})=>({type:e,latitude:n,longitude:r,title:a??s??"View on map"})),fz=lt.object({type:lt.literal("text"),text:lt.string(),markdown:lt.boolean().optional()}).transform(({type:e,text:n})=>Ug({type:e,text:n})),dz=lt.object({type:lt.literal("video"),video:lt.string(),title:lt.string().optional()}).transform(({type:e,video:n})=>({type:e,url:n})),pz=lt.object({type:lt.literal("voice"),audio:lt.string()}).transform(({audio:e})=>({type:"audio",url:e})),hz=lt.object({type:lt.literal("dropdown"),text:lt.string().optional(),message:lt.string().optional(),options:lt.array(lt.object({label:lt.string(),value:lt.string()}))}).transform(({options:e,text:n})=>{const r=[{type:"dropdown",label:n??"Select an option",options:e}];return n&&r.unshift({type:"text",text:n}),Ug({type:"column",blocks:r})}),s3=lt.union([fz,uz,GI,dz,nz,tz,cz,sz,pz,lz,hz]);var u3={},rx={},c3={};Object.defineProperty(c3,"__esModule",{value:!0});var Vg={},mz=Ht&&Ht.__awaiter||function(e,n,r,a){function s(c){return c instanceof r?c:new r(function(f){f(c)})}return new(r||(r=Promise))(function(c,f){function h(S){try{y(a.next(S))}catch(E){f(E)}}function v(S){try{y(a.throw(S))}catch(E){f(E)}}function y(S){S.done?c(S.value):s(S.value).then(h,v)}y((a=a.apply(e,n||[])).next())})};Object.defineProperty(Vg,"__esModule",{value:!0}),Vg.Emitter=void 0;let vz=class{constructor(){this.listeners={}}on(n,r,a=!1){const s=this.listeners[n];s?a?s.unshift(r):s.push(r):this.listeners[n]=[r]}emit(n,r){return mz(this,void 0,void 0,function*(){const a=this.listeners[n];if(a!=null&&a.length){for(const s of a)yield s(r);return!0}else return!1})}};Vg.Emitter=vz;var f3={};Object.defineProperty(f3,"__esModule",{value:!0});var d3={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HealthEventType=void 0,function(n){n.Create="create",n.Configure="configure",n.Start="start",n.StartFailure="start-failure",n.Initialize="initialize",n.InitializeFailure="initialize-failure",n.Sleep="sleep",n.Delete="delete"}(e.HealthEventType||(e.HealthEventType={}))})(d3);var p3={};Object.defineProperty(p3,"__esModule",{value:!0});var h3={};Object.defineProperty(h3,"__esModule",{value:!0});var m3={};Object.defineProperty(m3,"__esModule",{value:!0});var v3={};Object.defineProperty(v3,"__esModule",{value:!0}),function(e){var n=Ht&&Ht.__createBinding||(Object.create?function(a,s,c,f){f===void 0&&(f=c),Object.defineProperty(a,f,{enumerable:!0,get:function(){return s[c]}})}:function(a,s,c,f){f===void 0&&(f=c),a[f]=s[c]}),r=Ht&&Ht.__exportStar||function(a,s){for(var c in a)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&n(s,a,c)};Object.defineProperty(e,"__esModule",{value:!0}),r(c3,e),r(Vg,e),r(f3,e),r(d3,e),r(p3,e),r(h3,e),r(m3,e),r(v3,e)}(rx);var Hg={},g3={},ix={exports:{}},qg={},ax={},Wg={},cm={},bd={},Ic={},Sd={},Ed={},ol={};Object.defineProperty(ol,"__esModule",{value:!0}),ol.ERROR_PACKET=ol.PACKET_TYPES_REVERSE=ol.PACKET_TYPES=void 0;const ll=Object.create(null);ol.PACKET_TYPES=ll,ll.open="0",ll.close="1",ll.ping="2",ll.pong="3",ll.message="4",ll.upgrade="5",ll.noop="6";const y3=Object.create(null);ol.PACKET_TYPES_REVERSE=y3,Object.keys(ll).forEach(e=>{y3[ll[e]]=e});const gz={type:"error",data:"parser error"};ol.ERROR_PACKET=gz,Object.defineProperty(Ed,"__esModule",{value:!0}),Ed.encodePacket=Ed.encodePacketToBinary=void 0;const yz=ol,b3=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",S3=typeof ArrayBuffer=="function",E3=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,x3=({type:e,data:n},r,a)=>b3&&n instanceof Blob?r?a(n):w3(n,a):S3&&(n instanceof ArrayBuffer||E3(n))?r?a(n):w3(new Blob([n]),a):a(yz.PACKET_TYPES[e]+(n||""));Ed.encodePacket=x3;const w3=(e,n)=>{const r=new FileReader;return r.onload=function(){const a=r.result.split(",")[1];n("b"+(a||""))},r.readAsDataURL(e)};function C3(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let ox;function bz(e,n){if(b3&&e.data instanceof Blob)return e.data.arrayBuffer().then(C3).then(n);if(S3&&(e.data instanceof ArrayBuffer||E3(e.data)))return n(C3(e.data));x3(e,!1,r=>{ox||(ox=new TextEncoder),n(ox.encode(r))})}Ed.encodePacketToBinary=bz;var Yg={},xd={};Object.defineProperty(xd,"__esModule",{value:!0}),xd.decode=xd.encode=void 0;const wd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fm=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<wd.length;e++)fm[wd.charCodeAt(e)]=e;const Sz=e=>{let n=new Uint8Array(e),r,a=n.length,s="";for(r=0;r<a;r+=3)s+=wd[n[r]>>2],s+=wd[(n[r]&3)<<4|n[r+1]>>4],s+=wd[(n[r+1]&15)<<2|n[r+2]>>6],s+=wd[n[r+2]&63];return a%3===2?s=s.substring(0,s.length-1)+"=":a%3===1&&(s=s.substring(0,s.length-2)+"=="),s};xd.encode=Sz;const Ez=e=>{let n=e.length*.75,r=e.length,a,s=0,c,f,h,v;e[e.length-1]==="="&&(n--,e[e.length-2]==="="&&n--);const y=new ArrayBuffer(n),S=new Uint8Array(y);for(a=0;a<r;a+=4)c=fm[e.charCodeAt(a)],f=fm[e.charCodeAt(a+1)],h=fm[e.charCodeAt(a+2)],v=fm[e.charCodeAt(a+3)],S[s++]=c<<2|f>>4,S[s++]=(f&15)<<4|h>>2,S[s++]=(h&3)<<6|v&63;return y};xd.decode=Ez,Object.defineProperty(Yg,"__esModule",{value:!0}),Yg.decodePacket=void 0;const Zg=ol,xz=xd,wz=typeof ArrayBuffer=="function",Cz=(e,n)=>{if(typeof e!="string")return{type:"message",data:k3(e,n)};const r=e.charAt(0);return r==="b"?{type:"message",data:kz(e.substring(1),n)}:Zg.PACKET_TYPES_REVERSE[r]?e.length>1?{type:Zg.PACKET_TYPES_REVERSE[r],data:e.substring(1)}:{type:Zg.PACKET_TYPES_REVERSE[r]}:Zg.ERROR_PACKET};Yg.decodePacket=Cz;const kz=(e,n)=>{if(wz){const r=(0,xz.decode)(e);return k3(r,n)}else return{base64:!0,data:e}},k3=(e,n)=>{switch(n){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodePayload=e.decodePacket=e.encodePayload=e.encodePacket=e.protocol=e.createPacketDecoderStream=e.createPacketEncoderStream=void 0;const n=Ed;Object.defineProperty(e,"encodePacket",{enumerable:!0,get:function(){return n.encodePacket}});const r=Yg;Object.defineProperty(e,"decodePacket",{enumerable:!0,get:function(){return r.decodePacket}});const a=ol,s=String.fromCharCode(30),c=(C,x)=>{const R=C.length,T=new Array(R);let D=0;C.forEach((M,I)=>{(0,n.encodePacket)(M,!1,N=>{T[I]=N,++D===R&&x(T.join(s))})})};e.encodePayload=c;const f=(C,x)=>{const R=C.split(s),T=[];for(let D=0;D<R.length;D++){const M=(0,r.decodePacket)(R[D],x);if(T.push(M),M.type==="error")break}return T};e.decodePayload=f;function h(){return new TransformStream({transform(C,x){(0,n.encodePacketToBinary)(C,R=>{const T=R.length;let D;if(T<126)D=new Uint8Array(1),new DataView(D.buffer).setUint8(0,T);else if(T<65536){D=new Uint8Array(3);const M=new DataView(D.buffer);M.setUint8(0,126),M.setUint16(1,T)}else{D=new Uint8Array(9);const M=new DataView(D.buffer);M.setUint8(0,127),M.setBigUint64(1,BigInt(T))}C.data&&typeof C.data!="string"&&(D[0]|=128),x.enqueue(D),x.enqueue(R)})}})}e.createPacketEncoderStream=h;let v;function y(C){return C.reduce((x,R)=>x+R.length,0)}function S(C,x){if(C[0].length===x)return C.shift();const R=new Uint8Array(x);let T=0;for(let D=0;D<x;D++)R[D]=C[0][T++],T===C[0].length&&(C.shift(),T=0);return C.length&&T<C[0].length&&(C[0]=C[0].slice(T)),R}function E(C,x){v||(v=new TextDecoder);const R=[];let T=0,D=-1,M=!1;return new TransformStream({transform(I,N){for(R.push(I);;){if(T===0){if(y(R)<1)break;const B=S(R,1);M=(B[0]&128)===128,D=B[0]&127,D<126?T=3:D===126?T=1:T=2}else if(T===1){if(y(R)<2)break;const B=S(R,2);D=new DataView(B.buffer,B.byteOffset,B.length).getUint16(0),T=3}else if(T===2){if(y(R)<8)break;const B=S(R,8),F=new DataView(B.buffer,B.byteOffset,B.length),$=F.getUint32(0);if($>Math.pow(2,53-32)-1){N.enqueue(a.ERROR_PACKET);break}D=$*Math.pow(2,32)+F.getUint32(4),T=3}else{if(y(R)<D)break;const B=S(R,D);N.enqueue((0,r.decodePacket)(M?B:v.decode(B),x)),T=0}if(D===0||D>C){N.enqueue(a.ERROR_PACKET);break}}}})}e.createPacketDecoderStream=E,e.protocol=4})(Sd);function ji(e){if(e)return _z(e)}function _z(e){for(var n in ji.prototype)e[n]=ji.prototype[n];return e}ji.prototype.on=ji.prototype.addEventListener=function(e,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(n),this},ji.prototype.once=function(e,n){function r(){this.off(e,r),n.apply(this,arguments)}return r.fn=n,this.on(e,r),this},ji.prototype.off=ji.prototype.removeListener=ji.prototype.removeAllListeners=ji.prototype.removeEventListener=function(e,n){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var a,s=0;s<r.length;s++)if(a=r[s],a===n||a.fn===n){r.splice(s,1);break}return r.length===0&&delete this._callbacks["$"+e],this},ji.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var n=new Array(arguments.length-1),r=this._callbacks["$"+e],a=1;a<arguments.length;a++)n[a-1]=arguments[a];if(r){r=r.slice(0);for(var a=0,s=r.length;a<s;++a)r[a].apply(this,n)}return this},ji.prototype.emitReserved=ji.prototype.emit,ji.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},ji.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Cd=o6(Object.freeze(Object.defineProperty({__proto__:null,Emitter:ji},Symbol.toStringTag,{value:"Module"})));var to={},zc={};Object.defineProperty(zc,"__esModule",{value:!0}),zc.globalThisShim=void 0,zc.globalThisShim=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())(),Object.defineProperty(to,"__esModule",{value:!0}),to.byteLength=to.installTimerFunctions=to.pick=void 0;const hu=zc;function Tz(e,...n){return n.reduce((r,a)=>(e.hasOwnProperty(a)&&(r[a]=e[a]),r),{})}to.pick=Tz;const Rz=hu.globalThisShim.setTimeout,Oz=hu.globalThisShim.clearTimeout;function Dz(e,n){n.useNativeTimers?(e.setTimeoutFn=Rz.bind(hu.globalThisShim),e.clearTimeoutFn=Oz.bind(hu.globalThisShim)):(e.setTimeoutFn=hu.globalThisShim.setTimeout.bind(hu.globalThisShim),e.clearTimeoutFn=hu.globalThisShim.clearTimeout.bind(hu.globalThisShim))}to.installTimerFunctions=Dz;const Az=1.33;function Mz(e){return typeof e=="string"?Lz(e):Math.ceil((e.byteLength||e.size)*Az)}to.byteLength=Mz;function Lz(e){let n=0,r=0;for(let a=0,s=e.length;a<s;a++)n=e.charCodeAt(a),n<128?r+=1:n<2048?r+=2:n<55296||n>=57344?r+=3:(a++,r+=4);return r}var lx={exports:{}},sx,_3;function Pz(){if(_3)return sx;_3=1;var e=1e3,n=e*60,r=n*60,a=r*24,s=a*7,c=a*365.25;sx=function(S,E){E=E||{};var C=typeof S;if(C==="string"&&S.length>0)return f(S);if(C==="number"&&isFinite(S))return E.long?v(S):h(S);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(S))};function f(S){if(S=String(S),!(S.length>100)){var E=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(S);if(E){var C=parseFloat(E[1]),x=(E[2]||"ms").toLowerCase();switch(x){case"years":case"year":case"yrs":case"yr":case"y":return C*c;case"weeks":case"week":case"w":return C*s;case"days":case"day":case"d":return C*a;case"hours":case"hour":case"hrs":case"hr":case"h":return C*r;case"minutes":case"minute":case"mins":case"min":case"m":return C*n;case"seconds":case"second":case"secs":case"sec":case"s":return C*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return C;default:return}}}}function h(S){var E=Math.abs(S);return E>=a?Math.round(S/a)+"d":E>=r?Math.round(S/r)+"h":E>=n?Math.round(S/n)+"m":E>=e?Math.round(S/e)+"s":S+"ms"}function v(S){var E=Math.abs(S);return E>=a?y(S,E,a,"day"):E>=r?y(S,E,r,"hour"):E>=n?y(S,E,n,"minute"):E>=e?y(S,E,e,"second"):S+" ms"}function y(S,E,C,x){var R=E>=C*1.5;return Math.round(S/C)+" "+x+(R?"s":"")}return sx}function Nz(e){r.debug=r,r.default=r,r.coerce=v,r.disable=c,r.enable=s,r.enabled=f,r.humanize=Pz(),r.destroy=y,Object.keys(e).forEach(S=>{r[S]=e[S]}),r.names=[],r.skips=[],r.formatters={};function n(S){let E=0;for(let C=0;C<S.length;C++)E=(E<<5)-E+S.charCodeAt(C),E|=0;return r.colors[Math.abs(E)%r.colors.length]}r.selectColor=n;function r(S){let E,C=null,x,R;function T(...D){if(!T.enabled)return;const M=T,I=Number(new Date),N=I-(E||I);M.diff=N,M.prev=E,M.curr=I,E=I,D[0]=r.coerce(D[0]),typeof D[0]!="string"&&D.unshift("%O");let B=0;D[0]=D[0].replace(/%([a-zA-Z%])/g,($,H)=>{if($==="%%")return"%";B++;const Y=r.formatters[H];if(typeof Y=="function"){const ne=D[B];$=Y.call(M,ne),D.splice(B,1),B--}return $}),r.formatArgs.call(M,D),(M.log||r.log).apply(M,D)}return T.namespace=S,T.useColors=r.useColors(),T.color=r.selectColor(S),T.extend=a,T.destroy=r.destroy,Object.defineProperty(T,"enabled",{enumerable:!0,configurable:!1,get:()=>C!==null?C:(x!==r.namespaces&&(x=r.namespaces,R=r.enabled(S)),R),set:D=>{C=D}}),typeof r.init=="function"&&r.init(T),T}function a(S,E){const C=r(this.namespace+(typeof E>"u"?":":E)+S);return C.log=this.log,C}function s(S){r.save(S),r.namespaces=S,r.names=[],r.skips=[];let E;const C=(typeof S=="string"?S:"").split(/[\s,]+/),x=C.length;for(E=0;E<x;E++)C[E]&&(S=C[E].replace(/\*/g,".*?"),S[0]==="-"?r.skips.push(new RegExp("^"+S.slice(1)+"$")):r.names.push(new RegExp("^"+S+"$")))}function c(){const S=[...r.names.map(h),...r.skips.map(h).map(E=>"-"+E)].join(",");return r.enable(""),S}function f(S){if(S[S.length-1]==="*")return!0;let E,C;for(E=0,C=r.skips.length;E<C;E++)if(r.skips[E].test(S))return!1;for(E=0,C=r.names.length;E<C;E++)if(r.names[E].test(S))return!0;return!1}function h(S){return S.toString().substring(2,S.toString().length-2).replace(/\.\*\?$/,"*")}function v(S){return S instanceof Error?S.stack||S.message:S}function y(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}var Fz=Nz;(function(e,n){n.formatArgs=a,n.save=s,n.load=c,n.useColors=r,n.storage=f(),n.destroy=(()=>{let v=!1;return()=>{v||(v=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function a(v){if(v[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+v[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const y="color: "+this.color;v.splice(1,0,y,"color: inherit");let S=0,E=0;v[0].replace(/%[a-zA-Z%]/g,C=>{C!=="%%"&&(S++,C==="%c"&&(E=S))}),v.splice(E,0,y)}n.log=console.debug||console.log||(()=>{});function s(v){try{v?n.storage.setItem("debug",v):n.storage.removeItem("debug")}catch{}}function c(){let v;try{v=n.storage.getItem("debug")}catch{}return!v&&typeof process<"u"&&"env"in process&&(v=process.env.DEBUG),v}function f(){try{return localStorage}catch{}}e.exports=Fz(n);const{formatters:h}=e.exports;h.j=function(v){try{return JSON.stringify(v)}catch(y){return"[UnexpectedJSONParseError]: "+y.message}}})(lx,lx.exports);var sl=lx.exports,jc={};Object.defineProperty(jc,"__esModule",{value:!0}),jc.decode=jc.encode=void 0;function Iz(e){let n="";for(let r in e)e.hasOwnProperty(r)&&(n.length&&(n+="&"),n+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return n}jc.encode=Iz;function zz(e){let n={},r=e.split("&");for(let a=0,s=r.length;a<s;a++){let c=r[a].split("=");n[decodeURIComponent(c[0])]=decodeURIComponent(c[1])}return n}jc.decode=zz;var jz=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.Transport=void 0;const $z=Sd,Uz=Cd,Bz=to,Vz=jz(sl),Hz=jc,qz=(0,Vz.default)("engine.io-client:transport");class Wz extends Error{constructor(n,r,a){super(n),this.description=r,this.context=a,this.type="TransportError"}}class Yz extends Uz.Emitter{constructor(n){super(),this.writable=!1,(0,Bz.installTimerFunctions)(this,n),this.opts=n,this.query=n.query,this.socket=n.socket}onError(n,r,a){return super.emitReserved("error",new Wz(n,r,a)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(n){this.readyState==="open"?this.write(n):qz("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(n){const r=(0,$z.decodePacket)(n,this.socket.binaryType);this.onPacket(r)}onPacket(n){super.emitReserved("packet",n)}onClose(n){this.readyState="closed",super.emitReserved("close",n)}pause(n){}createUri(n,r={}){return n+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){const n=this.opts.hostname;return n.indexOf(":")===-1?n:"["+n+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(n){const r=(0,Hz.encode)(n);return r.length?"?"+r:""}}Ic.Transport=Yz;var ts={};Object.defineProperty(ts,"__esModule",{value:!0}),ts.yeast=ts.decode=ts.encode=void 0;const T3="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Kg=64,R3={};let O3=0,mu=0,D3;function ux(e){let n="";do n=T3[e%Kg]+n,e=Math.floor(e/Kg);while(e>0);return n}ts.encode=ux;function Zz(e){let n=0;for(mu=0;mu<e.length;mu++)n=n*Kg+R3[e.charAt(mu)];return n}ts.decode=Zz;function Kz(){const e=ux(+new Date);return e!==D3?(O3=0,D3=e):e+"."+ux(O3++)}for(ts.yeast=Kz;mu<Kg;mu++)R3[T3[mu]]=mu;var kd={},Gg={};Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.hasCORS=void 0;let A3=!1;try{A3=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}Gg.hasCORS=A3,Object.defineProperty(kd,"__esModule",{value:!0}),kd.createCookieJar=kd.XHR=void 0;const Gz=Gg,Qz=zc;function Xz(e){const n=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!n||Gz.hasCORS))return new XMLHttpRequest}catch{}if(!n)try{return new Qz.globalThisShim[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}kd.XHR=Xz;function Jz(){}kd.createCookieJar=Jz;var ej=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bd,"__esModule",{value:!0}),bd.Request=bd.Polling=void 0;const tj=Ic,nj=ej(sl),rj=ts,M3=Sd,cx=kd,ij=Cd,L3=to,aj=zc,sa=(0,nj.default)("engine.io-client:polling");function oj(){}const lj=function(){return new cx.XHR({xdomain:!1}).responseType!=null}();class sj extends tj.Transport{constructor(n){if(super(n),this.polling=!1,typeof location<"u"){const a=location.protocol==="https:";let s=location.port;s||(s=a?"443":"80"),this.xd=typeof location<"u"&&n.hostname!==location.hostname||s!==n.port}const r=n&&n.forceBase64;this.supportsBinary=lj&&!r,this.opts.withCredentials&&(this.cookieJar=(0,cx.createCookieJar)())}get name(){return"polling"}doOpen(){this.poll()}pause(n){this.readyState="pausing";const r=()=>{sa("paused"),this.readyState="paused",n()};if(this.polling||!this.writable){let a=0;this.polling&&(sa("we are currently polling - waiting to pause"),a++,this.once("pollComplete",function(){sa("pre-pause polling complete"),--a||r()})),this.writable||(sa("we are currently writing - waiting to pause"),a++,this.once("drain",function(){sa("pre-pause writing complete"),--a||r()}))}else r()}poll(){sa("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(n){sa("polling got data %s",n);const r=a=>{if(this.readyState==="opening"&&a.type==="open"&&this.onOpen(),a.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(a)};(0,M3.decodePayload)(n,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"?this.poll():sa('ignoring poll - transport state "%s"',this.readyState))}doClose(){const n=()=>{sa("writing close packet"),this.write([{type:"close"}])};this.readyState==="open"?(sa("transport open - closing"),n()):(sa("transport not open - deferring close"),this.once("open",n))}write(n){this.writable=!1,(0,M3.encodePayload)(n,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const n=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=(0,rj.yeast)()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(n,r)}request(n={}){return Object.assign(n,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Co(this.uri(),n)}doWrite(n,r){const a=this.request({method:"POST",data:n});a.on("success",r),a.on("error",(s,c)=>{this.onError("xhr post error",s,c)})}doPoll(){sa("xhr poll");const n=this.request();n.on("data",this.onData.bind(this)),n.on("error",(r,a)=>{this.onError("xhr poll error",r,a)}),this.pollXhr=n}}bd.Polling=sj;class Co extends ij.Emitter{constructor(n,r){super(),(0,L3.installTimerFunctions)(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 n;const r=(0,L3.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this.opts.xd;const a=this.xhr=new cx.XHR(r);try{sa("xhr open %s: %s",this.method,this.uri),a.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){a.setDisableHeaderCheck&&a.setDisableHeaderCheck(!0);for(let s in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(s)&&a.setRequestHeader(s,this.opts.extraHeaders[s])}}catch{}if(this.method==="POST")try{a.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{a.setRequestHeader("Accept","*/*")}catch{}(n=this.opts.cookieJar)===null||n===void 0||n.addCookies(a),"withCredentials"in a&&(a.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(a.timeout=this.opts.requestTimeout),a.onreadystatechange=()=>{var s;a.readyState===3&&((s=this.opts.cookieJar)===null||s===void 0||s.parseCookies(a)),a.readyState===4&&(a.status===200||a.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof a.status=="number"?a.status:0)},0))},sa("xhr data %s",this.data),a.send(this.data)}catch(s){this.setTimeoutFn(()=>{this.onError(s)},0);return}typeof document<"u"&&(this.index=Co.requestsCount++,Co.requests[this.index]=this)}onError(n){this.emitReserved("error",n,this.xhr),this.cleanup(!0)}cleanup(n){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=oj,n)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Co.requests[this.index],this.xhr=null}}onLoad(){const n=this.xhr.responseText;n!==null&&(this.emitReserved("data",n),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(bd.Request=Co,Co.requestsCount=0,Co.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",P3);else if(typeof addEventListener=="function"){const e="onpagehide"in aj.globalThisShim?"pagehide":"unload";addEventListener(e,P3,!1)}}function P3(){for(let e in Co.requests)Co.requests.hasOwnProperty(e)&&Co.requests[e].abort()}var Qg={},Na={};Object.defineProperty(Na,"__esModule",{value:!0}),Na.defaultBinaryType=Na.usingBrowserWebSocket=Na.WebSocket=Na.nextTick=void 0;const N3=zc;Na.nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?n=>Promise.resolve().then(n):(n,r)=>r(n,0))(),Na.WebSocket=N3.globalThisShim.WebSocket||N3.globalThisShim.MozWebSocket,Na.usingBrowserWebSocket=!0,Na.defaultBinaryType="arraybuffer";var uj=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qg,"__esModule",{value:!0}),Qg.WS=void 0;const cj=Ic,fj=ts,dj=to,vu=Na,pj=uj(sl),hj=Sd,mj=(0,pj.default)("engine.io-client:websocket"),F3=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class vj extends cj.Transport{constructor(n){super(n),this.supportsBinary=!n.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const n=this.uri(),r=this.opts.protocols,a=F3?{}:(0,dj.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(a.headers=this.opts.extraHeaders);try{this.ws=vu.usingBrowserWebSocket&&!F3?r?new vu.WebSocket(n,r):new vu.WebSocket(n):new vu.WebSocket(n,r,a)}catch(s){return this.emitReserved("error",s)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=n=>this.onClose({description:"websocket connection closed",context:n}),this.ws.onmessage=n=>this.onData(n.data),this.ws.onerror=n=>this.onError("websocket error",n)}write(n){this.writable=!1;for(let r=0;r<n.length;r++){const a=n[r],s=r===n.length-1;(0,hj.encodePacket)(a,this.supportsBinary,c=>{const f={};vu.usingBrowserWebSocket||(a.options&&(f.compress=a.options.compress),this.opts.perMessageDeflate&&(typeof c=="string"?Buffer.byteLength(c):c.length)<this.opts.perMessageDeflate.threshold&&(f.compress=!1));try{vu.usingBrowserWebSocket?this.ws.send(c):this.ws.send(c,f)}catch{mj("websocket closed before onclose event")}s&&(0,vu.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const n=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=(0,fj.yeast)()),this.supportsBinary||(r.b64=1),this.createUri(n,r)}check(){return!!vu.WebSocket}}Qg.WS=vj;var Xg={},gj=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.WT=void 0;const yj=Ic,bj=Na,I3=Sd,dm=(0,gj(sl).default)("engine.io-client:webtransport");class Sj extends yj.Transport{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{dm("transport closed gracefully"),this.onClose()}).catch(n=>{dm("transport closed due to %s",n),this.onError("webtransport error",n)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(n=>{const r=(0,I3.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),a=n.readable.pipeThrough(r).getReader(),s=(0,I3.createPacketEncoderStream)();s.readable.pipeTo(n.writable),this.writer=s.writable.getWriter();const c=()=>{a.read().then(({done:h,value:v})=>{if(h){dm("session is closed");return}dm("received chunk: %o",v),this.onPacket(v),c()}).catch(h=>{dm("an error occurred while reading: %s",h)})};c();const f={type:"open"};this.query.sid&&(f.data=`{"sid":"${this.query.sid}"}`),this.writer.write(f).then(()=>this.onOpen())})}))}write(n){this.writable=!1;for(let r=0;r<n.length;r++){const a=n[r],s=r===n.length-1;this.writer.write(a).then(()=>{s&&(0,bj.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var n;(n=this.transport)===null||n===void 0||n.close()}}Xg.WT=Sj,Object.defineProperty(cm,"__esModule",{value:!0}),cm.transports=void 0;const Ej=bd,xj=Qg,wj=Xg;cm.transports={websocket:xj.WS,webtransport:wj.WT,polling:Ej.Polling};var pm={};Object.defineProperty(pm,"__esModule",{value:!0}),pm.parse=void 0;const Cj=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,kj=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function _j(e){const n=e,r=e.indexOf("["),a=e.indexOf("]");r!=-1&&a!=-1&&(e=e.substring(0,r)+e.substring(r,a).replace(/:/g,";")+e.substring(a,e.length));let s=Cj.exec(e||""),c={},f=14;for(;f--;)c[kj[f]]=s[f]||"";return r!=-1&&a!=-1&&(c.source=n,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=Tj(c,c.path),c.queryKey=Rj(c,c.query),c}pm.parse=_j;function Tj(e,n){const r=/\/{2,9}/g,a=n.replace(r,"/").split("/");return(n.slice(0,1)=="/"||n.length===0)&&a.splice(0,1),n.slice(-1)=="/"&&a.splice(a.length-1,1),a}function Rj(e,n){const r={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(a,s,c){s&&(r[s]=c)}),r}var Oj=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Wg,"__esModule",{value:!0}),Wg.Socket=void 0;const Dj=cm,z3=to,Aj=jc,j3=pm,Mj=Oj(sl),Lj=Cd,$3=Sd,Pj=Na,ir=(0,Mj.default)("engine.io-client:socket");let U3=class kh extends Lj.Emitter{constructor(n,r={}){super(),this.binaryType=Pj.defaultBinaryType,this.writeBuffer=[],n&&typeof n=="object"&&(r=n,n=null),n?(n=(0,j3.parse)(n),r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)):r.host&&(r.hostname=(0,j3.parse)(r.host).host),(0,z3.installTimerFunctions)(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=r.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,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},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=(0,Aj.decode)(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(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"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(n){ir('creating transport "%s"',n);const r=Object.assign({},this.opts.query);r.EIO=$3.protocol,r.transport=n,this.id&&(r.sid=this.id);const a=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[n]);return ir("options: %j",a),new Dj.transports[n](a)}open(){let n;if(this.opts.rememberUpgrade&&kh.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)n="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else n=this.transports[0];this.readyState="opening";try{n=this.createTransport(n)}catch(r){ir("error while creating transport: %s",r),this.transports.shift(),this.open();return}n.open(),this.setTransport(n)}setTransport(n){ir("setting transport %s",n.name),this.transport&&(ir("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=n,n.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",r=>this.onClose("transport close",r))}probe(n){ir('probing transport "%s"',n);let r=this.createTransport(n),a=!1;kh.priorWebsocketSuccess=!1;const s=()=>{a||(ir('probe transport "%s" opened',n),r.send([{type:"ping",data:"probe"}]),r.once("packet",E=>{if(!a)if(E.type==="pong"&&E.data==="probe"){if(ir('probe transport "%s" pong',n),this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;kh.priorWebsocketSuccess=r.name==="websocket",ir('pausing current transport "%s"',this.transport.name),this.transport.pause(()=>{a||this.readyState!=="closed"&&(ir("changing transport and sending upgrade packet"),S(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{ir('probe transport "%s" failed',n);const C=new Error("probe error");C.transport=r.name,this.emitReserved("upgradeError",C)}}))};function c(){a||(a=!0,S(),r.close(),r=null)}const f=E=>{const C=new Error("probe error: "+E);C.transport=r.name,c(),ir('probe transport "%s" failed because of error: %s',n,E),this.emitReserved("upgradeError",C)};function h(){f("transport closed")}function v(){f("socket closed")}function y(E){r&&E.name!==r.name&&(ir('"%s" works - aborting "%s"',E.name,r.name),c())}const S=()=>{r.removeListener("open",s),r.removeListener("error",f),r.removeListener("close",h),this.off("close",v),this.off("upgrading",y)};r.once("open",s),r.once("error",f),r.once("close",h),this.once("close",v),this.once("upgrading",y),this.upgrades.indexOf("webtransport")!==-1&&n!=="webtransport"?this.setTimeoutFn(()=>{a||r.open()},200):r.open()}onOpen(){if(ir("socket open"),this.readyState="open",kh.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){ir("starting upgrade probes");let n=0;const r=this.upgrades.length;for(;n<r;n++)this.probe(this.upgrades[n])}}onPacket(n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(ir('socket receive: type "%s", data "%s"',n.type,n.data),this.emitReserved("packet",n),this.emitReserved("heartbeat"),this.resetPingTimeout(),n.type){case"open":this.onHandshake(JSON.parse(n.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const r=new Error("server error");r.code=n.data,this.onError(r);break;case"message":this.emitReserved("data",n.data),this.emitReserved("message",n.data);break}else ir('packet received with socket readyState "%s"',this.readyState)}onHandshake(n){this.emitReserved("handshake",n),this.id=n.sid,this.transport.query.sid=n.sid,this.upgrades=this.filterUpgrades(n.upgrades),this.pingInterval=n.pingInterval,this.pingTimeout=n.pingTimeout,this.maxPayload=n.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),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 n=this.getWritablePackets();ir("flushing %d packets in socket",n.length),this.transport.send(n),this.prevBufferLen=n.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let a=0;a<this.writeBuffer.length;a++){const s=this.writeBuffer[a].data;if(s&&(r+=(0,z3.byteLength)(s)),a>0&&r>this.maxPayload)return ir("only send %d out of %d packets",a,this.writeBuffer.length),this.writeBuffer.slice(0,a);r+=2}return ir("payload size is %d (max: %d)",r,this.maxPayload),this.writeBuffer}write(n,r,a){return this.sendPacket("message",n,r,a),this}send(n,r,a){return this.sendPacket("message",n,r,a),this}sendPacket(n,r,a,s){if(typeof r=="function"&&(s=r,r=void 0),typeof a=="function"&&(s=a,a=null),this.readyState==="closing"||this.readyState==="closed")return;a=a||{},a.compress=a.compress!==!1;const c={type:n,data:r,options:a};this.emitReserved("packetCreate",c),this.writeBuffer.push(c),s&&this.once("flush",s),this.flush()}close(){const n=()=>{this.onClose("forced close"),ir("socket closing - telling transport to close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),n()},a=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?a():n()}):this.upgrading?a():n()),this}onError(n){ir("socket error %j",n),kh.priorWebsocketSuccess=!1,this.emitReserved("error",n),this.onClose("transport error",n)}onClose(n,r){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(ir('socket close with reason: "%s"',n),this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",n,r),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(n){const r=[];let a=0;const s=n.length;for(;a<s;a++)~this.transports.indexOf(n[a])&&r.push(n[a]);return r}};Wg.Socket=U3,U3.protocol=$3.protocol,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.nextTick=e.parse=e.installTimerFunctions=e.transports=e.Transport=e.protocol=e.Socket=void 0;const n=Wg;Object.defineProperty(e,"Socket",{enumerable:!0,get:function(){return n.Socket}}),e.protocol=n.Socket.protocol;var r=Ic;Object.defineProperty(e,"Transport",{enumerable:!0,get:function(){return r.Transport}});var a=cm;Object.defineProperty(e,"transports",{enumerable:!0,get:function(){return a.transports}});var s=to;Object.defineProperty(e,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var c=pm;Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return c.parse}});var f=Na;Object.defineProperty(e,"nextTick",{enumerable:!0,get:function(){return f.nextTick}})}(ax);var Nj=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qg,"__esModule",{value:!0}),qg.url=void 0;const Fj=ax,B3=Nj(sl).default("socket.io-client:url");function Ij(e,n="",r){let a=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(B3("protocol-less url %s",e),typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),B3("parse %s",e),a=Fj.parse(e)),a.port||(/^(http|ws)$/.test(a.protocol)?a.port="80":/^(http|ws)s$/.test(a.protocol)&&(a.port="443")),a.path=a.path||"/";const c=a.host.indexOf(":")!==-1?"["+a.host+"]":a.host;return a.id=a.protocol+"://"+c+":"+a.port+n,a.href=a.protocol+"://"+c+(r&&r.port===a.port?"":":"+a.port),a}qg.url=Ij;var Jg={},hm={},ey={},_d={},$c={};Object.defineProperty($c,"__esModule",{value:!0}),$c.hasBinary=$c.isBinary=void 0;const zj=typeof ArrayBuffer=="function",jj=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,V3=Object.prototype.toString,$j=typeof Blob=="function"||typeof Blob<"u"&&V3.call(Blob)==="[object BlobConstructor]",Uj=typeof File=="function"||typeof File<"u"&&V3.call(File)==="[object FileConstructor]";function H3(e){return zj&&(e instanceof ArrayBuffer||jj(e))||$j&&e instanceof Blob||Uj&&e instanceof File}$c.isBinary=H3;function ty(e,n){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,a=e.length;r<a;r++)if(ty(e[r]))return!0;return!1}if(H3(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return ty(e.toJSON(),!0);for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&ty(e[r]))return!0;return!1}$c.hasBinary=ty,Object.defineProperty(_d,"__esModule",{value:!0}),_d.reconstructPacket=_d.deconstructPacket=void 0;const Bj=$c;function Vj(e){const n=[],r=e.data,a=e;return a.data=fx(r,n),a.attachments=n.length,{packet:a,buffers:n}}_d.deconstructPacket=Vj;function fx(e,n){if(!e)return e;if((0,Bj.isBinary)(e)){const r={_placeholder:!0,num:n.length};return n.push(e),r}else if(Array.isArray(e)){const r=new Array(e.length);for(let a=0;a<e.length;a++)r[a]=fx(e[a],n);return r}else if(typeof e=="object"&&!(e instanceof Date)){const r={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=fx(e[a],n));return r}return e}function Hj(e,n){return e.data=dx(e.data,n),delete e.attachments,e}_d.reconstructPacket=Hj;function dx(e,n){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<n.length)return n[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=dx(e[r],n);else if(typeof e=="object")for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=dx(e[r],n));return e}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Decoder=e.Encoder=e.PacketType=e.protocol=void 0;const n=Cd,r=_d,a=$c,c=(0,sl.default)("socket.io-parser"),f=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];e.protocol=5;var h;(function(C){C[C.CONNECT=0]="CONNECT",C[C.DISCONNECT=1]="DISCONNECT",C[C.EVENT=2]="EVENT",C[C.ACK=3]="ACK",C[C.CONNECT_ERROR=4]="CONNECT_ERROR",C[C.BINARY_EVENT=5]="BINARY_EVENT",C[C.BINARY_ACK=6]="BINARY_ACK"})(h=e.PacketType||(e.PacketType={}));class v{constructor(x){this.replacer=x}encode(x){return c("encoding packet %j",x),(x.type===h.EVENT||x.type===h.ACK)&&(0,a.hasBinary)(x)?this.encodeAsBinary({type:x.type===h.EVENT?h.BINARY_EVENT:h.BINARY_ACK,nsp:x.nsp,data:x.data,id:x.id}):[this.encodeAsString(x)]}encodeAsString(x){let R=""+x.type;return(x.type===h.BINARY_EVENT||x.type===h.BINARY_ACK)&&(R+=x.attachments+"-"),x.nsp&&x.nsp!=="/"&&(R+=x.nsp+","),x.id!=null&&(R+=x.id),x.data!=null&&(R+=JSON.stringify(x.data,this.replacer)),c("encoded %j as %s",x,R),R}encodeAsBinary(x){const R=(0,r.deconstructPacket)(x),T=this.encodeAsString(R.packet),D=R.buffers;return D.unshift(T),D}}e.Encoder=v;function y(C){return Object.prototype.toString.call(C)==="[object Object]"}class S extends n.Emitter{constructor(x){super(),this.reviver=x}add(x){let R;if(typeof x=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");R=this.decodeString(x);const T=R.type===h.BINARY_EVENT;T||R.type===h.BINARY_ACK?(R.type=T?h.EVENT:h.ACK,this.reconstructor=new E(R),R.attachments===0&&super.emitReserved("decoded",R)):super.emitReserved("decoded",R)}else if((0,a.isBinary)(x)||x.base64)if(this.reconstructor)R=this.reconstructor.takeBinaryData(x),R&&(this.reconstructor=null,super.emitReserved("decoded",R));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+x)}decodeString(x){let R=0;const T={type:Number(x.charAt(0))};if(h[T.type]===void 0)throw new Error("unknown packet type "+T.type);if(T.type===h.BINARY_EVENT||T.type===h.BINARY_ACK){const M=R+1;for(;x.charAt(++R)!=="-"&&R!=x.length;);const I=x.substring(M,R);if(I!=Number(I)||x.charAt(R)!=="-")throw new Error("Illegal attachments");T.attachments=Number(I)}if(x.charAt(R+1)==="/"){const M=R+1;for(;++R&&!(x.charAt(R)===","||R===x.length););T.nsp=x.substring(M,R)}else T.nsp="/";const D=x.charAt(R+1);if(D!==""&&Number(D)==D){const M=R+1;for(;++R;){const I=x.charAt(R);if(I==null||Number(I)!=I){--R;break}if(R===x.length)break}T.id=Number(x.substring(M,R+1))}if(x.charAt(++R)){const M=this.tryParse(x.substr(R));if(S.isPayloadValid(T.type,M))T.data=M;else throw new Error("invalid payload")}return c("decoded %s as %j",x,T),T}tryParse(x){try{return JSON.parse(x,this.reviver)}catch{return!1}}static isPayloadValid(x,R){switch(x){case h.CONNECT:return y(R);case h.DISCONNECT:return R===void 0;case h.CONNECT_ERROR:return typeof R=="string"||y(R);case h.EVENT:case h.BINARY_EVENT:return Array.isArray(R)&&(typeof R[0]=="number"||typeof R[0]=="string"&&f.indexOf(R[0])===-1);case h.ACK:case h.BINARY_ACK:return Array.isArray(R)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}e.Decoder=S;class E{constructor(x){this.packet=x,this.buffers=[],this.reconPack=x}takeBinaryData(x){if(this.buffers.push(x),this.buffers.length===this.reconPack.attachments){const R=(0,r.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),R}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}})(ey);var mm={};Object.defineProperty(mm,"__esModule",{value:!0}),mm.on=void 0;function qj(e,n,r){return e.on(n,r),function(){e.off(n,r)}}mm.on=qj;var Wj=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hm,"__esModule",{value:!0}),hm.Socket=void 0;const ko=ey,ny=mm,Yj=Cd,$r=Wj(sl).default("socket.io-client:socket"),Zj=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Kj extends Yj.Emitter{constructor(n,r,a){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=n,this.nsp=r,a&&a.auth&&(this.auth=a.auth),this._opts=Object.assign({},a),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const n=this.io;this.subs=[ny.on(n,"open",this.onopen.bind(this)),ny.on(n,"packet",this.onpacket.bind(this)),ny.on(n,"error",this.onerror.bind(this)),ny.on(n,"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(...n){return n.unshift("message"),this.emit.apply(this,n),this}emit(n,...r){if(Zj.hasOwnProperty(n))throw new Error('"'+n.toString()+'" is a reserved event name');if(r.unshift(n),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const a={type:ko.PacketType.EVENT,data:r};if(a.options={},a.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const f=this.ids++;$r("emitting packet with ack id %d",f);const h=r.pop();this._registerAckCallback(f,h),a.id=f}const s=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!s||!this.connected)?$r("discard packet as the transport is not currently writable"):this.connected?(this.notifyOutgoingListeners(a),this.packet(a)):this.sendBuffer.push(a),this.flags={},this}_registerAckCallback(n,r){var a;const s=(a=this.flags.timeout)!==null&&a!==void 0?a:this._opts.ackTimeout;if(s===void 0){this.acks[n]=r;return}const c=this.io.setTimeoutFn(()=>{delete this.acks[n];for(let f=0;f<this.sendBuffer.length;f++)this.sendBuffer[f].id===n&&($r("removing packet with ack id %d from the buffer",n),this.sendBuffer.splice(f,1));$r("event with ack id %d has timed out after %d ms",n,s),r.call(this,new Error("operation has timed out"))},s);this.acks[n]=(...f)=>{this.io.clearTimeoutFn(c),r.apply(this,[null,...f])}}emitWithAck(n,...r){const a=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((s,c)=>{r.push((f,h)=>a?f?c(f):s(h):s(f)),this.emit(n,...r)})}_addToQueue(n){let r;typeof n[n.length-1]=="function"&&(r=n.pop());const a={id:this._queueSeq++,tryCount:0,pending:!1,args:n,flags:Object.assign({fromQueue:!0},this.flags)};n.push((s,...c)=>a!==this._queue[0]?void 0:(s!==null?a.tryCount>this._opts.retries&&($r("packet [%d] is discarded after %d tries",a.id,a.tryCount),this._queue.shift(),r&&r(s)):($r("packet [%d] was successfully sent",a.id),this._queue.shift(),r&&r(null,...c)),a.pending=!1,this._drainQueue())),this._queue.push(a),this._drainQueue()}_drainQueue(n=!1){if($r("draining queue"),!this.connected||this._queue.length===0)return;const r=this._queue[0];if(r.pending&&!n){$r("packet [%d] has already been sent and is waiting for an ack",r.id);return}r.pending=!0,r.tryCount++,$r("sending packet [%d] (try n°%d)",r.id,r.tryCount),this.flags=r.flags,this.emit.apply(this,r.args)}packet(n){n.nsp=this.nsp,this.io._packet(n)}onopen(){$r("transport is open - connecting"),typeof this.auth=="function"?this.auth(n=>{this._sendConnectPacket(n)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(n){this.packet({type:ko.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},n):n})}onerror(n){this.connected||this.emitReserved("connect_error",n)}onclose(n,r){$r("close (%s)",n),this.connected=!1,delete this.id,this.emitReserved("disconnect",n,r)}onpacket(n){if(n.nsp===this.nsp)switch(n.type){case ko.PacketType.CONNECT:n.data&&n.data.sid?this.onconnect(n.data.sid,n.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 ko.PacketType.EVENT:case ko.PacketType.BINARY_EVENT:this.onevent(n);break;case ko.PacketType.ACK:case ko.PacketType.BINARY_ACK:this.onack(n);break;case ko.PacketType.DISCONNECT:this.ondisconnect();break;case ko.PacketType.CONNECT_ERROR:this.destroy();const a=new Error(n.data.message);a.data=n.data.data,this.emitReserved("connect_error",a);break}}onevent(n){const r=n.data||[];$r("emitting event %j",r),n.id!=null&&($r("attaching ack callback to event"),r.push(this.ack(n.id))),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(n){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const a of r)a.apply(this,n)}super.emit.apply(this,n),this._pid&&n.length&&typeof n[n.length-1]=="string"&&(this._lastOffset=n[n.length-1])}ack(n){const r=this;let a=!1;return function(...s){a||(a=!0,$r("sending ack %j",s),r.packet({type:ko.PacketType.ACK,id:n,data:s}))}}onack(n){const r=this.acks[n.id];typeof r=="function"?($r("calling ack %s with %j",n.id,n.data),r.apply(this,n.data),delete this.acks[n.id]):$r("bad ack %s",n.id)}onconnect(n,r){$r("socket connected with id %s",n),this.id=n,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(n=>this.emitEvent(n)),this.receiveBuffer=[],this.sendBuffer.forEach(n=>{this.notifyOutgoingListeners(n),this.packet(n)}),this.sendBuffer=[]}ondisconnect(){$r("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(n=>n()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&($r("performing disconnect (%s)",this.nsp),this.packet({type:ko.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(n){return this.flags.compress=n,this}get volatile(){return this.flags.volatile=!0,this}timeout(n){return this.flags.timeout=n,this}onAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(n),this}prependAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(n),this}offAny(n){if(!this._anyListeners)return this;if(n){const r=this._anyListeners;for(let a=0;a<r.length;a++)if(n===r[a])return r.splice(a,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(n),this}prependAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(n),this}offAnyOutgoing(n){if(!this._anyOutgoingListeners)return this;if(n){const r=this._anyOutgoingListeners;for(let a=0;a<r.length;a++)if(n===r[a])return r.splice(a,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(n){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const a of r)a.apply(this,n.data)}}}hm.Socket=Kj;var ry={};Object.defineProperty(ry,"__esModule",{value:!0}),ry.Backoff=void 0;function Td(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}ry.Backoff=Td,Td.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),r=Math.floor(n*this.jitter*e);e=Math.floor(n*10)&1?e+r:e-r}return Math.min(e,this.max)|0},Td.prototype.reset=function(){this.attempts=0},Td.prototype.setMin=function(e){this.ms=e},Td.prototype.setMax=function(e){this.max=e},Td.prototype.setJitter=function(e){this.jitter=e};var Gj=Ht&&Ht.__createBinding||(Object.create?function(e,n,r,a){a===void 0&&(a=r),Object.defineProperty(e,a,{enumerable:!0,get:function(){return n[r]}})}:function(e,n,r,a){a===void 0&&(a=r),e[a]=n[r]}),Qj=Ht&&Ht.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),Xj=Ht&&Ht.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Gj(n,e,r);return Qj(n,e),n},Jj=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Jg,"__esModule",{value:!0}),Jg.Manager=void 0;const px=ax,e$=hm,t$=Xj(ey),Uc=mm,n$=ry,r$=Cd,ui=Jj(sl).default("socket.io-client:manager");class i$ extends r$.Emitter{constructor(n,r){var a;super(),this.nsps={},this.subs=[],n&&typeof n=="object"&&(r=n,n=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,px.installTimerFunctions(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((a=r.randomizationFactor)!==null&&a!==void 0?a:.5),this.backoff=new n$.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=n;const s=r.parser||t$;this.encoder=new s.Encoder,this.decoder=new s.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(n){return arguments.length?(this._reconnection=!!n,this):this._reconnection}reconnectionAttempts(n){return n===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=n,this)}reconnectionDelay(n){var r;return n===void 0?this._reconnectionDelay:(this._reconnectionDelay=n,(r=this.backoff)===null||r===void 0||r.setMin(n),this)}randomizationFactor(n){var r;return n===void 0?this._randomizationFactor:(this._randomizationFactor=n,(r=this.backoff)===null||r===void 0||r.setJitter(n),this)}reconnectionDelayMax(n){var r;return n===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=n,(r=this.backoff)===null||r===void 0||r.setMax(n),this)}timeout(n){return arguments.length?(this._timeout=n,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(n){if(ui("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;ui("opening %s",this.uri),this.engine=new px.Socket(this.uri,this.opts);const r=this.engine,a=this;this._readyState="opening",this.skipReconnect=!1;const s=Uc.on(r,"open",function(){a.onopen(),n&&n()}),c=h=>{ui("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",h),n?n(h):this.maybeReconnectOnOpen()},f=Uc.on(r,"error",c);if(this._timeout!==!1){const h=this._timeout;ui("connect attempt will timeout after %d",h);const v=this.setTimeoutFn(()=>{ui("connect attempt timed out after %d",h),s(),c(new Error("timeout")),r.close()},h);this.opts.autoUnref&&v.unref(),this.subs.push(()=>{this.clearTimeoutFn(v)})}return this.subs.push(s),this.subs.push(f),this}connect(n){return this.open(n)}onopen(){ui("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const n=this.engine;this.subs.push(Uc.on(n,"ping",this.onping.bind(this)),Uc.on(n,"data",this.ondata.bind(this)),Uc.on(n,"error",this.onerror.bind(this)),Uc.on(n,"close",this.onclose.bind(this)),Uc.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(n){try{this.decoder.add(n)}catch(r){this.onclose("parse error",r)}}ondecoded(n){px.nextTick(()=>{this.emitReserved("packet",n)},this.setTimeoutFn)}onerror(n){ui("error",n),this.emitReserved("error",n)}socket(n,r){let a=this.nsps[n];return a?this._autoConnect&&!a.active&&a.connect():(a=new e$.Socket(this,n,r),this.nsps[n]=a),a}_destroy(n){const r=Object.keys(this.nsps);for(const a of r)if(this.nsps[a].active){ui("socket %s is still active, skipping close",a);return}this._close()}_packet(n){ui("writing packet %j",n);const r=this.encoder.encode(n);for(let a=0;a<r.length;a++)this.engine.write(r[a],n.options)}cleanup(){ui("cleanup"),this.subs.forEach(n=>n()),this.subs.length=0,this.decoder.destroy()}_close(){ui("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(n,r){ui("closed due to %s",n),this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",n,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const n=this;if(this.backoff.attempts>=this._reconnectionAttempts)ui("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const r=this.backoff.duration();ui("will wait %dms before reconnect attempt",r),this._reconnecting=!0;const a=this.setTimeoutFn(()=>{n.skipReconnect||(ui("attempting reconnect"),this.emitReserved("reconnect_attempt",n.backoff.attempts),!n.skipReconnect&&n.open(s=>{s?(ui("reconnect attempt error"),n._reconnecting=!1,n.reconnect(),this.emitReserved("reconnect_error",s)):(ui("reconnect success"),n.onreconnect())}))},r);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}}onreconnect(){const n=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",n)}}Jg.Manager=i$,function(e,n){var r=Ht&&Ht.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.connect=n.io=n.Socket=n.Manager=n.protocol=void 0;const a=qg,s=Jg;Object.defineProperty(n,"Manager",{enumerable:!0,get:function(){return s.Manager}});const c=hm;Object.defineProperty(n,"Socket",{enumerable:!0,get:function(){return c.Socket}});const h=r(sl).default("socket.io-client"),v={};function y(E,C){typeof E=="object"&&(C=E,E=void 0),C=C||{};const x=a.url(E,C.path||"/socket.io"),R=x.source,T=x.id,D=x.path,M=v[T]&&D in v[T].nsps,I=C.forceNew||C["force new connection"]||C.multiplex===!1||M;let N;return I?(h("ignoring socket cache for %s",R),N=new s.Manager(R,C)):(v[T]||(h("new io instance for %s",R),v[T]=new s.Manager(R,C)),N=v[T]),x.query&&!C.query&&(C.query=x.queryKey),N.socket(x.path,C)}n.io=y,n.connect=y,n.default=y,Object.assign(y,{Manager:s.Manager,Socket:c.Socket,io:y,connect:y});var S=ey;Object.defineProperty(n,"protocol",{enumerable:!0,get:function(){return S.protocol}}),e.exports=y}(ix,ix.exports);var a$=ix.exports;(function(e){var n=Ht&&Ht.__awaiter||function(v,y,S,E){function C(x){return x instanceof S?x:new S(function(R){R(x)})}return new(S||(S=Promise))(function(x,R){function T(I){try{M(E.next(I))}catch(N){R(N)}}function D(I){try{M(E.throw(I))}catch(N){R(N)}}function M(I){I.done?x(I.value):C(I.value).then(T,D)}M((E=E.apply(v,y||[])).next())})},r=Ht&&Ht.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(e,"__esModule",{value:!0}),e.SocketComEmitter=e.SocketComEvents=e.SocketCom=void 0;const a=rx,s=r(a$);class c{constructor(y){this.url=y,this.pending={},this.emitter=new h,this.events=this.emitter}connect(y){return n(this,void 0,void 0,function*(){return new Promise((S,E)=>{this.disconnect(),this.socket=(0,s.default)(this.url,{transports:["websocket"],auth:y,autoConnect:!1});const C=setTimeout(()=>{E("connection timed out")},5e3);this.socket.on("login",x=>n(this,void 0,void 0,function*(){clearTimeout(C),S(x)})),this.socket.on("connect_error",x=>{var R;(R=this.socket)===null||R===void 0||R.close(),clearTimeout(C),E(x.message)}),this.socket.on("message",x=>n(this,void 0,void 0,function*(){var R;this.pending[x.request]&&(!((R=x.data)===null||R===void 0)&&R.error?this.pending[x.request].reject(new Error(x.data.message)):this.pending[x.request].resolve(x.data),delete this.pending[x.request]),yield this.emitter.emit(f.Message,x)})),this.socket.connect()})})}disconnect(){var y;this.socket&&!(!((y=this.socket)===null||y===void 0)&&y.disconnected)&&this.socket.disconnect()}request(y,S){var E;return n(this,void 0,void 0,function*(){if(!(!((E=this.socket)===null||E===void 0)&&E.connected))throw new Error("Client is disconnected");const C=this.random(32),x=new Promise((R,T)=>{this.pending[C]={resolve:R,reject:T}});return this.socket.send({request:C,type:y,data:S}),x})}random(y){const S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let E="";for(let C=0;C<y;C++)E+=S.charAt(Math.floor(Math.random()*S.length));return E}}e.SocketCom=c;var f;(function(v){v.Message="message"})(f=e.SocketComEvents||(e.SocketComEvents={}));class h extends a.Emitter{}e.SocketComEmitter=h})(g3);var iy={},o$=Ht&&Ht.__awaiter||function(e,n,r,a){function s(c){return c instanceof r?c:new r(function(f){f(c)})}return new(r||(r=Promise))(function(c,f){function h(S){try{y(a.next(S))}catch(E){f(E)}}function v(S){try{y(a.throw(S))}catch(E){f(E)}}function y(S){S.done?c(S.value):s(S.value).then(h,v)}y((a=a.apply(e,n||[])).next())})};Object.defineProperty(iy,"__esModule",{value:!0}),iy.SocketEmitter=void 0;class l${constructor(){this.listeners={}}on(n,r){const a=this.listeners[n];a?a.push(r):this.listeners[n]=[r]}removeListeners(n){this.listeners[n]=[]}emit(n,r){return o$(this,void 0,void 0,function*(){const a=this.listeners[n];if(a!=null&&a.length){for(const s of a)yield s(r);return!0}else return!1})}}iy.SocketEmitter=l$;var ua=Ht&&Ht.__awaiter||function(e,n,r,a){function s(c){return c instanceof r?c:new r(function(f){f(c)})}return new(r||(r=Promise))(function(c,f){function h(S){try{y(a.next(S))}catch(E){f(E)}}function v(S){try{y(a.throw(S))}catch(E){f(E)}}function y(S){S.done?c(S.value):s(S.value).then(h,v)}y((a=a.apply(e,n||[])).next())})};Object.defineProperty(Hg,"__esModule",{value:!0}),Hg.MessagingSocket=void 0;const q3=g3,s$=iy;class u$ extends s$.SocketEmitter{constructor(n){super(),this.clientId=n.clientId,this.com=new q3.SocketCom(n.url),this.com.events.on(q3.SocketComEvents.Message,r=>ua(this,void 0,void 0,function*(){r.type==="message.new"&&(yield this.emit("message",r.data.message))}))}get creds(){return this._creds}get userId(){var n;return(n=this._creds)===null||n===void 0?void 0:n.userId}get conversationId(){return this._conversationId}connect(n){return ua(this,void 0,void 0,function*(){const r=yield this.com.connect({clientId:this.clientId,creds:n});return r.userId===(n==null?void 0:n.userId)&&!r.userToken&&(r.userToken=n.userToken),this._creds=r,yield this.emit("connect",this._creds),yield this.emit("user",this._creds.userId),r})}disconnect(){return ua(this,void 0,void 0,function*(){this.com.disconnect(),yield this.emit("disconnect",void 0)})}getUser(){return ua(this,void 0,void 0,function*(){return this.request("users.get",{})})}switchConversation(n){return ua(this,void 0,void 0,function*(){this._conversationId=n,yield this.emit("conversation",this._conversationId)})}createConversation(n){return ua(this,void 0,void 0,function*(){const r=yield this.request("conversations.create",{});return(n==null?void 0:n.switch)!==!1&&(yield this.switchConversation(r.id)),r})}startConversation(n){return ua(this,void 0,void 0,function*(){yield this.request("conversations.start",{id:n||this._conversationId})})}getConversation(n){return ua(this,void 0,void 0,function*(){return this.request("conversations.get",{id:n||this._conversationId})})}deleteConversation(n){return ua(this,void 0,void 0,function*(){const r=yield this.request("conversations.delete",{id:n||this._conversationId});return r&&(yield this.switchConversation(void 0)),r})}listConversations(n){return ua(this,void 0,void 0,function*(){return this.request("conversations.list",{limit:n||20})})}sendText(n){return ua(this,void 0,void 0,function*(){return this.request("messages.create",{conversationId:this._conversationId,payload:{type:"text",text:n}})})}sendPayload(n){return ua(this,void 0,void 0,function*(){return this.request("messages.create",{conversationId:this._conversationId,payload:n})})}listMessages(n){return ua(this,void 0,void 0,function*(){return this.request("messages.list",{conversationId:this._conversationId,limit:n||20})})}sendFeedback(n,r){return ua(this,void 0,void 0,function*(){yield this.request("messages.feedback",{messageId:n,feedback:r})})}request(n,r){return this.com.request(n,r)}}Hg.MessagingSocket=u$,function(e){var n=Ht&&Ht.__createBinding||(Object.create?function(a,s,c,f){f===void 0&&(f=c),Object.defineProperty(a,f,{enumerable:!0,get:function(){return s[c]}})}:function(a,s,c,f){f===void 0&&(f=c),a[f]=s[c]}),r=Ht&&Ht.__exportStar||function(a,s){for(var c in a)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&n(s,a,c)};Object.defineProperty(e,"__esModule",{value:!0}),r(rx,e),r(Hg,e)}(u3);class c${constructor(n){Gs(this,"socket");Gs(this,"userId");Gs(this,"conversationId");Gs(this,"userToken");Gs(this,"connected",!1);Gs(this,"emitter");Gs(this,"on");this.socket=new u3.MessagingSocket(n),this.emitter=new Y5,this.on=this.emitter.on.bind(this.emitter),this.socket.on("connect",r=>{this.emitter.emit("connect",r)}),this.socket.on("disconnect",r=>{this.emitter.emit("disconnect",r)}),this.socket.on("message",r=>{this.emitter.emit("message",r)}),this.socket.on("conversation",r=>{this.emitter.emit("conversation",r)}),this.socket.on("user",r=>{this.emitter.emit("user",r)})}async connect(n){if(this.connected)return;this.connected=!0;const r=await this.socket.connect(n).catch(a=>{throw this.connected=!1,a});return this.userId=r.userId,this.userToken=r.userToken,r}async disconnect(){await this.socket.disconnect(),this.connected=!1}async sendMessage(n){this.conversationId||await this.newConversation(),await this.socket.sendText(n),this.emitter.emit("messageSent",n)}async switchConversation(n){await this.socket.switchConversation(n),this.conversationId=n}async listConversations(){return this.socket.listConversations()}async newConversation(){const{id:n}=await this.socket.createConversation();this.conversationId=n}listMessages(n){return this.socket.listMessages(n)}}const f$=({styles:e={},renderers:n,client:r,children:a,configuration:s,...c})=>{const[f,h]=j.useState([]),[v,y]=j.useState({disableComposer:!1}),[S,E]=j.useState(s),[C,x]=j.useState(e),R=Dc(B=>B.addMessageToHistory),T=Dc(B=>B.setConversationId),D=Dc(B=>B.user),M=Dc(B=>B.conversationId),I=Dc(B=>B.setUser),N={...c,value:{theme:C,renderers:{...IE,...n},messages:f,eventEmitter:nI,configuration:s,setConfiguration:E,state:v,setState:B=>y({...v,...B}),setTheme:x,client:{...r,sendMessage:async B=>{await r.sendMessage(B),h(F=>[...F,{direction:"outgoing",sender:{name:"You"},timestamp:new Date,block:{type:"bubble",block:{type:"text",text:B}}}]),r.userId&&R({message:B,userId:r.userId})},on:r.on,restartConversation:async()=>{await r.newConversation(),h([])}}}};return dd(()=>r.on("message",B=>{try{const F=s3.parse(B.payload);h($=>[...$,{direction:"incoming",sender:{name:"Bot",avatar:S.botAvatar},timestamp:B.sentOn,block:F}])}catch{console.error("Invalid message payload")}})),dd(()=>r.on("conversation",B=>{T(B)})),P5(async()=>{I(await r.connect(D));const B=(await r.listConversations()).map($=>$.id);M&&B.includes(M)&&await r.switchConversation(M);const F=[];for(const $ of await r.listMessages())try{const H=s3.parse($.payload),Y=$.authorId===r.userId?"outgoing":"incoming";F.push({direction:Y,sender:Y==="outgoing"?{name:"You"}:{name:S.botName??"Bot",avatar:S.botAvatar},timestamp:$.sentOn,block:H})}catch{console.error("Invalid message payload")}return h(F.reverse()),()=>{r.disconnect()}},[]),he.jsx(aT.Provider,{...N,children:typeof a=="function"?a(S):a})},W3=j.forwardRef(({children:e,...n},r)=>{const{theme:{container:a}}=cr();return he.jsxs("div",{...n,...a,ref:r,children:[he.jsx(ML,{}),he.jsx(z5,{children:e})]})});function ns(e,n,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e==null||e(s),r===!1||!s.defaultPrevented)return n==null?void 0:n(s)}}function Y3({prop:e,defaultProp:n,onChange:r=()=>{}}){const[a,s]=d$({defaultProp:n,onChange:r}),c=e!==void 0,f=c?e:a,h=Qs(r),v=j.useCallback(y=>{if(c){const E=typeof y=="function"?y(e):y;E!==e&&h(E)}else s(y)},[c,e,s,h]);return[f,v]}function d$({defaultProp:e,onChange:n}){const r=j.useState(e),[a]=r,s=j.useRef(a),c=Qs(n);return j.useEffect(()=>{s.current!==a&&(c(a),s.current=a)},[a,s,c]),r}function p$(e,n){return j.useReducer((r,a)=>{const s=n[r][a];return s??r},e)}const ay=e=>{const{present:n,children:r}=e,a=h$(n),s=typeof r=="function"?r({present:a.isPresent}):j.Children.only(r),c=Ec(a.ref,s.ref);return typeof r=="function"||a.isPresent?j.cloneElement(s,{ref:c}):null};ay.displayName="Presence";function h$(e){const[n,r]=j.useState(),a=j.useRef({}),s=j.useRef(e),c=j.useRef("none"),f=e?"mounted":"unmounted",[h,v]=p$(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return j.useEffect(()=>{const y=oy(a.current);c.current=h==="mounted"?y:"none"},[h]),Rh(()=>{const y=a.current,S=s.current;if(S!==e){const C=c.current,x=oy(y);e?v("MOUNT"):x==="none"||(y==null?void 0:y.display)==="none"?v("UNMOUNT"):v(S&&C!==x?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,v]),Rh(()=>{if(n){const y=E=>{const x=oy(a.current).includes(E.animationName);E.target===n&&x&&P0.flushSync(()=>v("ANIMATION_END"))},S=E=>{E.target===n&&(c.current=oy(a.current))};return n.addEventListener("animationstart",S),n.addEventListener("animationcancel",y),n.addEventListener("animationend",y),()=>{n.removeEventListener("animationstart",S),n.removeEventListener("animationcancel",y),n.removeEventListener("animationend",y)}}else v("ANIMATION_END")},[n,v]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:j.useCallback(y=>{y&&(a.current=getComputedStyle(y)),r(y)},[])}}function oy(e){return(e==null?void 0:e.animationName)||"none"}const m$=Z["useId".toString()]||(()=>{});let v$=0;function ly(e){const[n,r]=Z.useState(m$());return Rh(()=>{e||r(a=>a??String(v$++))},[e]),e||(n?`radix-${n}`:"")}const Z3="Collapsible",[g$,AZ]=mS(Z3),[y$,hx]=g$(Z3),b$=j.forwardRef((e,n)=>{const{__scopeCollapsible:r,open:a,defaultOpen:s,disabled:c,onOpenChange:f,...h}=e,[v=!1,y]=Y3({prop:a,defaultProp:s,onChange:f});return j.createElement(y$,{scope:r,disabled:c,contentId:ly(),open:v,onOpenToggle:j.useCallback(()=>y(S=>!S),[y])},j.createElement(Ka.div,Xn({"data-state":mx(v),"data-disabled":c?"":void 0},h,{ref:n})))}),S$="CollapsibleTrigger",E$=j.forwardRef((e,n)=>{const{__scopeCollapsible:r,...a}=e,s=hx(S$,r);return j.createElement(Ka.button,Xn({type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":mx(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled},a,{ref:n,onClick:ns(e.onClick,s.onOpenToggle)}))}),K3="CollapsibleContent",x$=j.forwardRef((e,n)=>{const{forceMount:r,...a}=e,s=hx(K3,e.__scopeCollapsible);return j.createElement(ay,{present:r||s.open},({present:c})=>j.createElement(w$,Xn({},a,{ref:n,present:c})))}),w$=j.forwardRef((e,n)=>{const{__scopeCollapsible:r,present:a,children:s,...c}=e,f=hx(K3,r),[h,v]=j.useState(a),y=j.useRef(null),S=Ec(n,y),E=j.useRef(0),C=E.current,x=j.useRef(0),R=x.current,T=f.open||h,D=j.useRef(T),M=j.useRef();return j.useEffect(()=>{const I=requestAnimationFrame(()=>D.current=!1);return()=>cancelAnimationFrame(I)},[]),Rh(()=>{const I=y.current;if(I){M.current=M.current||{transitionDuration:I.style.transitionDuration,animationName:I.style.animationName},I.style.transitionDuration="0s",I.style.animationName="none";const N=I.getBoundingClientRect();E.current=N.height,x.current=N.width,D.current||(I.style.transitionDuration=M.current.transitionDuration,I.style.animationName=M.current.animationName),v(a)}},[f.open,a]),j.createElement(Ka.div,Xn({"data-state":mx(f.open),"data-disabled":f.disabled?"":void 0,id:f.contentId,hidden:!T},c,{ref:S,style:{["--radix-collapsible-content-height"]:C?`${C}px`:void 0,["--radix-collapsible-content-width"]:R?`${R}px`:void 0,...e.style}}),T&&s)});function mx(e){return e?"open":"closed"}const C$=b$,k$=E$,_$=x$,T$=e=>Z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e},Z.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M15.5 5.5v-5m0 0h-5m5 0L8.833 7.167m-2.5-5H4.5c-1.4 0-2.1 0-2.635.272A2.5 2.5 0 0 0 .772 3.532C.5 4.066.5 4.767.5 6.167V11.5c0 1.4 0 2.1.272 2.635a2.5 2.5 0 0 0 1.093 1.092C2.4 15.5 3.1 15.5 4.5 15.5h5.333c1.4 0 2.1 0 2.635-.273a2.5 2.5 0 0 0 1.093-1.092c.272-.535.272-1.235.272-2.635V9.667"})),R$=j.memo(j.forwardRef((e,n)=>{const{theme:{header:r}}=cr(),[a,s]=j.useState(!1);return he.jsx(C$,{...e,...r==null?void 0:r.container,open:a,onOpenChange:s,ref:n})})),O$=j.forwardRef((e,n)=>{var a;const{theme:{header:r}}=cr();return he.jsx(k$,{...e,...(a=r==null?void 0:r.content)==null?void 0:a.container,ref:n})}),D$=j.forwardRef((e,n)=>{var a;const{theme:{header:r}}=cr();return he.jsx(_$,{...e,...(a=r==null?void 0:r.expandedContent)==null?void 0:a.container,ref:n})}),A$=j.forwardRef(({src:e,children:n},r)=>{var f,h,v,y,S,E;const{theme:{header:a},client:{userId:s}}=cr(),c=Z5(s??"",15);return he.jsxs(N0,{ref:r,"data-color":c,...(h=(f=a==null?void 0:a.content)==null?void 0:f.avatar)==null?void 0:h.container,children:[he.jsx(F0,{...(y=(v=a==null?void 0:a.content)==null?void 0:v.avatar)==null?void 0:y.image,src:e}),he.jsx(I0,{...(E=(S=a==null?void 0:a.content)==null?void 0:S.avatar)==null?void 0:E.fallback,children:n})]})}),M$=j.forwardRef((e,n)=>{var a;const{theme:{header:r}}=cr();return he.jsx("h2",{...e,...(a=r==null?void 0:r.content)==null?void 0:a.title,ref:n})}),L$=j.forwardRef((e,n)=>{var a;const{theme:{header:r}}=cr();return he.jsx("p",{...e,...(a=r==null?void 0:r.content)==null?void 0:a.description,ref:n})}),P$=j.forwardRef((e,n)=>{var a,s;const{theme:{header:r}}=cr();return he.jsx("div",{...e,...(s=(a=r==null?void 0:r.content)==null?void 0:a.actions)==null?void 0:s.container,ref:n})}),Fa=Object.assign(R$,{Content:O$,ExpandedContent:D$,Avatar:A$,Description:L$,Title:M$,Actions:P$,DescriptionItem:({icon:e,title:n,link:r,...a})=>{var h,v,y,S,E,C,x,R,T,D,M,I;const{theme:{header:s}}=cr(),c=e??T$,f=N=>{N&&U7(N)};return!r&&!n?null:r?he.jsxs("a",{...a,...(v=(h=s==null?void 0:s.expandedContent)==null?void 0:h.descriptionItems)==null?void 0:v.container,href:r,target:"_blank",rel:"noopener",children:[he.jsx(c,{...(S=(y=s==null?void 0:s.expandedContent)==null?void 0:y.descriptionItems)==null?void 0:S.icon}),he.jsx("p",{...(C=(E=s==null?void 0:s.expandedContent)==null?void 0:E.descriptionItems)==null?void 0:C.link,children:n})]}):he.jsxs("div",{...a,...(R=(x=s==null?void 0:s.expandedContent)==null?void 0:x.descriptionItems)==null?void 0:R.container,onClick:N=>{f(N.currentTarget.textContent)},children:[he.jsx(c,{...(D=(T=s==null?void 0:s.expandedContent)==null?void 0:T.descriptionItems)==null?void 0:D.icon}),he.jsx("p",{...(I=(M=s==null?void 0:s.expandedContent)==null?void 0:M.descriptionItems)==null?void 0:I.text,children:n})]})}}),G3=j.memo(({...e})=>{const{theme:{loadingIndicator:n}}=cr();return he.jsx("div",{...e,...n==null?void 0:n.container,children:he.jsx("div",{...n==null?void 0:n.loader})})}),vx=j.forwardRef(({direction:e,block:n,scroll:r,disableInput:a,children:s,sender:c,...f},h)=>{var T,D,M;const[v,y]=j.useState([]),{theme:{message:S},configuration:{botAvatar:E,botName:C},client:{userId:x}}=cr();SF(()=>{r()}),j.useEffect(()=>{v.length===0&&r()},[v.length]);const R=Z5(x??"",15);return he.jsx(rT.Provider,{value:{isLoading:v,setIsLoading:y},children:he.jsxs("div",{...f,...S==null?void 0:S.container,"data-loaded":v.length===0,"data-disable-input":!!a,"data-direction":e,ref:h,children:[he.jsxs(N0,{"data-color":R,...(T=S==null?void 0:S.avatar)==null?void 0:T.container,children:[he.jsx(F0,{...(D=S==null?void 0:S.avatar)==null?void 0:D.image,src:(c==null?void 0:c.avatar)??E}),he.jsx(I0,{...(M=S==null?void 0:S.avatar)==null?void 0:M.fallback,children:(c==null?void 0:c.name[0])??(C==null?void 0:C[0])})]}),n&&he.jsx(fd,{block:n,styles:S==null?void 0:S.blocks}),s]})})}),Q3=1e4,X3=j.memo(({...e})=>{const{theme:{messageList:n}}=cr(),{messages:r,setState:a,client:s}=cr(),[c,f]=j.useState(!0),h=j.useRef(null),{y:v}=_F(h),[y,S]=j.useState(!1),[E,C]=RF(),x=()=>{if(!h.current)return;const{scrollHeight:R}=h.current;c&&h.current.scrollTo({top:R})};return j.useEffect(()=>{const R=new Date(Date.now()-Q3+2e3);r.length>0&&r[r.length-1].timestamp<R&&S(!1)},[E]),dd(()=>s.on("messageSent",()=>{S(!0),C(new Date(Date.now()+Q3))})),dd(()=>s.on("message",()=>{S(!1)})),j.useEffect(()=>{const R=r[r.length-1];a({disableComposer:!!(R!=null&&R.disableInput)})},[r.length]),j.useEffect(()=>{if(!h.current)return;const{offsetHeight:R,scrollHeight:T,scrollTop:D}=h.current;f(T<=D+R+100)},[v]),he.jsxs("ul",{...e,...n,ref:h,children:[r.map((R,T)=>he.jsx(vx,{scroll:x,...R},T)),y&&he.jsx(vx,{scroll:x,direction:"incoming",children:he.jsx(G3,{})})]})});function N$(e,n=globalThis==null?void 0:globalThis.document){const r=Qs(e);j.useEffect(()=>{const a=s=>{s.key==="Escape"&&r(s)};return n.addEventListener("keydown",a),()=>n.removeEventListener("keydown",a)},[r,n])}const gx="dismissableLayer.update",F$="dismissableLayer.pointerDownOutside",I$="dismissableLayer.focusOutside";let J3;const z$=j.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),j$=j.forwardRef((e,n)=>{var r;const{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:h,onDismiss:v,...y}=e,S=j.useContext(z$),[E,C]=j.useState(null),x=(r=E==null?void 0:E.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,R]=j.useState({}),T=Ec(n,Y=>C(Y)),D=Array.from(S.layers),[M]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),I=D.indexOf(M),N=E?D.indexOf(E):-1,B=S.layersWithOutsidePointerEventsDisabled.size>0,F=N>=I,$=$$(Y=>{const ne=Y.target,ve=[...S.branches].some(ee=>ee.contains(ne));!F||ve||(c==null||c(Y),h==null||h(Y),Y.defaultPrevented||v==null||v())},x),H=U$(Y=>{const ne=Y.target;[...S.branches].some(ee=>ee.contains(ne))||(f==null||f(Y),h==null||h(Y),Y.defaultPrevented||v==null||v())},x);return N$(Y=>{N===S.layers.size-1&&(s==null||s(Y),!Y.defaultPrevented&&v&&(Y.preventDefault(),v()))},x),j.useEffect(()=>{if(E)return a&&(S.layersWithOutsidePointerEventsDisabled.size===0&&(J3=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(E)),S.layers.add(E),eR(),()=>{a&&S.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=J3)}},[E,x,a,S]),j.useEffect(()=>()=>{E&&(S.layers.delete(E),S.layersWithOutsidePointerEventsDisabled.delete(E),eR())},[E,S]),j.useEffect(()=>{const Y=()=>R({});return document.addEventListener(gx,Y),()=>document.removeEventListener(gx,Y)},[]),j.createElement(Ka.div,Xn({},y,{ref:T,style:{pointerEvents:B?F?"auto":"none":void 0,...e.style},onFocusCapture:ns(e.onFocusCapture,H.onFocusCapture),onBlurCapture:ns(e.onBlurCapture,H.onBlurCapture),onPointerDownCapture:ns(e.onPointerDownCapture,$.onPointerDownCapture)}))});function $$(e,n=globalThis==null?void 0:globalThis.document){const r=Qs(e),a=j.useRef(!1),s=j.useRef(()=>{});return j.useEffect(()=>{const c=h=>{if(h.target&&!a.current){let y=function(){tR(F$,r,v,{discrete:!0})};const v={originalEvent:h};h.pointerType==="touch"?(n.removeEventListener("click",s.current),s.current=y,n.addEventListener("click",s.current,{once:!0})):y()}a.current=!1},f=window.setTimeout(()=>{n.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(f),n.removeEventListener("pointerdown",c),n.removeEventListener("click",s.current)}},[n,r]),{onPointerDownCapture:()=>a.current=!0}}function U$(e,n=globalThis==null?void 0:globalThis.document){const r=Qs(e),a=j.useRef(!1);return j.useEffect(()=>{const s=c=>{c.target&&!a.current&&tR(I$,r,{originalEvent:c},{discrete:!1})};return n.addEventListener("focusin",s),()=>n.removeEventListener("focusin",s)},[n,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function eR(){const e=new CustomEvent(gx);document.dispatchEvent(e)}function tR(e,n,r,{discrete:a}){const s=r.originalEvent.target,c=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});n&&s.addEventListener(e,n,{once:!0}),a?y6(s,c):s.dispatchEvent(c)}const yx="focusScope.autoFocusOnMount",bx="focusScope.autoFocusOnUnmount",nR={bubbles:!1,cancelable:!0},B$=j.forwardRef((e,n)=>{const{loop:r=!1,trapped:a=!1,onMountAutoFocus:s,onUnmountAutoFocus:c,...f}=e,[h,v]=j.useState(null),y=Qs(s),S=Qs(c),E=j.useRef(null),C=Ec(n,T=>v(T)),x=j.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;j.useEffect(()=>{if(a){let T=function(N){if(x.paused||!h)return;const B=N.target;h.contains(B)?E.current=B:gu(E.current,{select:!0})},D=function(N){if(x.paused||!h)return;const B=N.relatedTarget;B!==null&&(h.contains(B)||gu(E.current,{select:!0}))},M=function(N){const B=document.activeElement;for(const F of N)F.removedNodes.length>0&&(h!=null&&h.contains(B)||gu(h))};document.addEventListener("focusin",T),document.addEventListener("focusout",D);const I=new MutationObserver(M);return h&&I.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",T),document.removeEventListener("focusout",D),I.disconnect()}}},[a,h,x.paused]),j.useEffect(()=>{if(h){aR.add(x);const T=document.activeElement;if(!h.contains(T)){const M=new CustomEvent(yx,nR);h.addEventListener(yx,y),h.dispatchEvent(M),M.defaultPrevented||(V$(Z$(rR(h)),{select:!0}),document.activeElement===T&&gu(h))}return()=>{h.removeEventListener(yx,y),setTimeout(()=>{const M=new CustomEvent(bx,nR);h.addEventListener(bx,S),h.dispatchEvent(M),M.defaultPrevented||gu(T??document.body,{select:!0}),h.removeEventListener(bx,S),aR.remove(x)},0)}}},[h,y,S,x]);const R=j.useCallback(T=>{if(!r&&!a||x.paused)return;const D=T.key==="Tab"&&!T.altKey&&!T.ctrlKey&&!T.metaKey,M=document.activeElement;if(D&&M){const I=T.currentTarget,[N,B]=H$(I);N&&B?!T.shiftKey&&M===B?(T.preventDefault(),r&&gu(N,{select:!0})):T.shiftKey&&M===N&&(T.preventDefault(),r&&gu(B,{select:!0})):M===I&&T.preventDefault()}},[r,a,x.paused]);return j.createElement(Ka.div,Xn({tabIndex:-1},f,{ref:C,onKeyDown:R}))});function V$(e,{select:n=!1}={}){const r=document.activeElement;for(const a of e)if(gu(a,{select:n}),document.activeElement!==r)return}function H$(e){const n=rR(e),r=iR(n,e),a=iR(n.reverse(),e);return[r,a]}function rR(e){const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const s=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||s?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function iR(e,n){for(const r of e)if(!q$(r,{upTo:n}))return r}function q$(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function W$(e){return e instanceof HTMLInputElement&&"select"in e}function gu(e,{select:n=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&W$(e)&&n&&e.select()}}const aR=Y$();function Y$(){let e=[];return{add(n){const r=e[0];n!==r&&(r==null||r.pause()),e=oR(e,n),e.unshift(n)},remove(n){var r;e=oR(e,n),(r=e[0])===null||r===void 0||r.resume()}}}function oR(e,n){const r=[...e],a=r.indexOf(n);return a!==-1&&r.splice(a,1),r}function Z$(e){return e.filter(n=>n.tagName!=="A")}let Sx=0;function K$(){j.useEffect(()=>{var e,n;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:lR()),document.body.insertAdjacentElement("beforeend",(n=r[1])!==null&&n!==void 0?n:lR()),Sx++,()=>{Sx===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),Sx--}},[])}function lR(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var sy="right-scroll-bar-position",uy="width-before-scroll-bar",G$="with-scroll-bars-hidden",Q$="--removed-body-scroll-bar-size";function X$(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function J$(e,n){var r=j.useState(function(){return{value:e,callback:n,facade:{get current(){return r.value},set current(a){var s=r.value;s!==a&&(r.value=a,r.callback(a,s))}}}})[0];return r.callback=n,r.facade}function eU(e,n){return J$(n||null,function(r){return e.forEach(function(a){return X$(a,r)})})}function tU(e){return e}function nU(e,n){n===void 0&&(n=tU);var r=[],a=!1,s={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(c){var f=n(c,a);return r.push(f),function(){r=r.filter(function(h){return h!==f})}},assignSyncMedium:function(c){for(a=!0;r.length;){var f=r;r=[],f.forEach(c)}r={push:function(h){return c(h)},filter:function(){return r}}},assignMedium:function(c){a=!0;var f=[];if(r.length){var h=r;r=[],h.forEach(c),f=r}var v=function(){var S=f;f=[],S.forEach(c)},y=function(){return Promise.resolve().then(v)};y(),r={push:function(S){f.push(S),y()},filter:function(S){return f=f.filter(S),r}}}};return s}function rU(e){e===void 0&&(e={});var n=nU(null);return n.options=eo({async:!0,ssr:!1},e),n}var sR=function(e){var n=e.sideCar,r=L5(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=n.read();if(!a)throw new Error("Sidecar medium not found");return Z.createElement(a,eo({},r))};sR.isSideCarExport=!0;function iU(e,n){return e.useMedium(n),sR}var uR=rU(),Ex=function(){},cy=Z.forwardRef(function(e,n){var r=Z.useRef(null),a=Z.useState({onScrollCapture:Ex,onWheelCapture:Ex,onTouchMoveCapture:Ex}),s=a[0],c=a[1],f=e.forwardProps,h=e.children,v=e.className,y=e.removeScrollBar,S=e.enabled,E=e.shards,C=e.sideCar,x=e.noIsolation,R=e.inert,T=e.allowPinchZoom,D=e.as,M=D===void 0?"div":D,I=L5(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),N=C,B=eU([r,n]),F=eo(eo({},I),s);return Z.createElement(Z.Fragment,null,S&&Z.createElement(N,{sideCar:uR,removeScrollBar:y,shards:E,noIsolation:x,inert:R,setCallbacks:c,allowPinchZoom:!!T,lockRef:r}),f?Z.cloneElement(Z.Children.only(h),eo(eo({},F),{ref:B})):Z.createElement(M,eo({},F,{className:v,ref:B}),h))});cy.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},cy.classNames={fullWidth:uy,zeroRight:sy};var cR,aU=function(){if(cR)return cR;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function oU(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=aU();return n&&e.setAttribute("nonce",n),e}function lU(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function sU(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var uU=function(){var e=0,n=null;return{add:function(r){e==0&&(n=oU())&&(lU(n,r),sU(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},cU=function(){var e=uU();return function(n,r){Z.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&r])}},fR=function(){var e=cU(),n=function(r){var a=r.styles,s=r.dynamic;return e(a,s),null};return n},fU={left:0,top:0,right:0,gap:0},xx=function(e){return parseInt(e||"",10)||0},dU=function(e){var n=window.getComputedStyle(document.body),r=n[e==="padding"?"paddingLeft":"marginLeft"],a=n[e==="padding"?"paddingTop":"marginTop"],s=n[e==="padding"?"paddingRight":"marginRight"];return[xx(r),xx(a),xx(s)]},pU=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return fU;var n=dU(e),r=document.documentElement.clientWidth,a=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,a-r+n[2]-n[0])}},hU=fR(),mU=function(e,n,r,a){var s=e.left,c=e.top,f=e.right,h=e.gap;return r===void 0&&(r="margin"),`
663
+ .`.concat(G$,` {
664
664
  overflow: hidden `).concat(a,`;
665
665
  padding-right: `).concat(h,"px ").concat(a,`;
666
666
  }
@@ -694,9 +694,9 @@ to {
694
694
  }
695
695
 
696
696
  body {
697
- `).concat(G$,": ").concat(h,`px;
697
+ `).concat(Q$,": ").concat(h,`px;
698
698
  }
699
- `)},mU=function(e){var n=e.noRelative,r=e.noImportant,a=e.gapMode,s=a===void 0?"margin":a,c=Z.useMemo(function(){return dU(s)},[s]);return Z.createElement(pU,{styles:hU(c,!n,s,r?"":"!important")})},wx=!1;if(typeof window<"u")try{var fy=Object.defineProperty({},"passive",{get:function(){return wx=!0,!0}});window.addEventListener("test",fy,fy),window.removeEventListener("test",fy,fy)}catch{wx=!1}var Rd=wx?{passive:!1}:!1,vU=function(e){return e.tagName==="TEXTAREA"},fR=function(e,n){var r=window.getComputedStyle(e);return r[n]!=="hidden"&&!(r.overflowY===r.overflowX&&!vU(e)&&r[n]==="visible")},gU=function(e){return fR(e,"overflowY")},yU=function(e){return fR(e,"overflowX")},dR=function(e,n){var r=n;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=pR(e,r);if(a){var s=hR(e,r),c=s[1],f=s[2];if(c>f)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},bU=function(e){var n=e.scrollTop,r=e.scrollHeight,a=e.clientHeight;return[n,r,a]},SU=function(e){var n=e.scrollLeft,r=e.scrollWidth,a=e.clientWidth;return[n,r,a]},pR=function(e,n){return e==="v"?gU(n):yU(n)},hR=function(e,n){return e==="v"?bU(n):SU(n)},EU=function(e,n){return e==="h"&&n==="rtl"?-1:1},xU=function(e,n,r,a,s){var c=EU(e,window.getComputedStyle(n).direction),f=c*a,h=r.target,v=n.contains(h),y=!1,S=f>0,E=0,C=0;do{var x=hR(e,h),R=x[0],T=x[1],D=x[2],M=T-D-c*R;(R||M)&&pR(e,h)&&(E+=M,C+=R),h=h.parentNode}while(!v&&h!==document.body||v&&(n.contains(h)||n===h));return(S&&(s&&E===0||!s&&f>E)||!S&&(s&&C===0||!s&&-f>C))&&(y=!0),y},dy=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},mR=function(e){return[e.deltaX,e.deltaY]},vR=function(e){return e&&"current"in e?e.current:e},wU=function(e,n){return e[0]===n[0]&&e[1]===n[1]},CU=function(e){return`
699
+ `)},vU=function(e){var n=e.noRelative,r=e.noImportant,a=e.gapMode,s=a===void 0?"margin":a,c=Z.useMemo(function(){return pU(s)},[s]);return Z.createElement(hU,{styles:mU(c,!n,s,r?"":"!important")})},wx=!1;if(typeof window<"u")try{var fy=Object.defineProperty({},"passive",{get:function(){return wx=!0,!0}});window.addEventListener("test",fy,fy),window.removeEventListener("test",fy,fy)}catch{wx=!1}var Rd=wx?{passive:!1}:!1,gU=function(e){return e.tagName==="TEXTAREA"},dR=function(e,n){var r=window.getComputedStyle(e);return r[n]!=="hidden"&&!(r.overflowY===r.overflowX&&!gU(e)&&r[n]==="visible")},yU=function(e){return dR(e,"overflowY")},bU=function(e){return dR(e,"overflowX")},pR=function(e,n){var r=n;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=hR(e,r);if(a){var s=mR(e,r),c=s[1],f=s[2];if(c>f)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},SU=function(e){var n=e.scrollTop,r=e.scrollHeight,a=e.clientHeight;return[n,r,a]},EU=function(e){var n=e.scrollLeft,r=e.scrollWidth,a=e.clientWidth;return[n,r,a]},hR=function(e,n){return e==="v"?yU(n):bU(n)},mR=function(e,n){return e==="v"?SU(n):EU(n)},xU=function(e,n){return e==="h"&&n==="rtl"?-1:1},wU=function(e,n,r,a,s){var c=xU(e,window.getComputedStyle(n).direction),f=c*a,h=r.target,v=n.contains(h),y=!1,S=f>0,E=0,C=0;do{var x=mR(e,h),R=x[0],T=x[1],D=x[2],M=T-D-c*R;(R||M)&&hR(e,h)&&(E+=M,C+=R),h=h.parentNode}while(!v&&h!==document.body||v&&(n.contains(h)||n===h));return(S&&(s&&E===0||!s&&f>E)||!S&&(s&&C===0||!s&&-f>C))&&(y=!0),y},dy=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},vR=function(e){return[e.deltaX,e.deltaY]},gR=function(e){return e&&"current"in e?e.current:e},CU=function(e,n){return e[0]===n[0]&&e[1]===n[1]},kU=function(e){return`
700
700
  .block-interactivity-`.concat(e,` {pointer-events: none;}
701
701
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
702
- `)},kU=0,Od=[];function _U(e){var n=Z.useRef([]),r=Z.useRef([0,0]),a=Z.useRef(),s=Z.useState(kU++)[0],c=Z.useState(function(){return cR()})[0],f=Z.useRef(e);Z.useEffect(function(){f.current=e},[e]),Z.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var T=dF([e.lockRef.current],(e.shards||[]).map(vR),!0).filter(Boolean);return T.forEach(function(D){return D.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),T.forEach(function(D){return D.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var h=Z.useCallback(function(T,D){if("touches"in T&&T.touches.length===2)return!f.current.allowPinchZoom;var M=dy(T),I=r.current,N="deltaX"in T?T.deltaX:I[0]-M[0],B="deltaY"in T?T.deltaY:I[1]-M[1],F,$=T.target,H=Math.abs(N)>Math.abs(B)?"h":"v";if("touches"in T&&H==="h"&&$.type==="range")return!1;var Y=dR(H,$);if(!Y)return!0;if(Y?F=H:(F=H==="v"?"h":"v",Y=dR(H,$)),!Y)return!1;if(!a.current&&"changedTouches"in T&&(N||B)&&(a.current=F),!F)return!0;var ne=a.current||F;return xU(ne,D,T,ne==="h"?N:B,!0)},[]),v=Z.useCallback(function(T){var D=T;if(!(!Od.length||Od[Od.length-1]!==c)){var M="deltaY"in D?mR(D):dy(D),I=n.current.filter(function(F){return F.name===D.type&&F.target===D.target&&wU(F.delta,M)})[0];if(I&&I.should){D.cancelable&&D.preventDefault();return}if(!I){var N=(f.current.shards||[]).map(vR).filter(Boolean).filter(function(F){return F.contains(D.target)}),B=N.length>0?h(D,N[0]):!f.current.noIsolation;B&&D.cancelable&&D.preventDefault()}}},[]),y=Z.useCallback(function(T,D,M,I){var N={name:T,delta:D,target:M,should:I};n.current.push(N),setTimeout(function(){n.current=n.current.filter(function(B){return B!==N})},1)},[]),S=Z.useCallback(function(T){r.current=dy(T),a.current=void 0},[]),E=Z.useCallback(function(T){y(T.type,mR(T),T.target,h(T,e.lockRef.current))},[]),C=Z.useCallback(function(T){y(T.type,dy(T),T.target,h(T,e.lockRef.current))},[]);Z.useEffect(function(){return Od.push(c),e.setCallbacks({onScrollCapture:E,onWheelCapture:E,onTouchMoveCapture:C}),document.addEventListener("wheel",v,Rd),document.addEventListener("touchmove",v,Rd),document.addEventListener("touchstart",S,Rd),function(){Od=Od.filter(function(T){return T!==c}),document.removeEventListener("wheel",v,Rd),document.removeEventListener("touchmove",v,Rd),document.removeEventListener("touchstart",S,Rd)}},[]);var x=e.removeScrollBar,R=e.inert;return Z.createElement(Z.Fragment,null,R?Z.createElement(c,{styles:CU(s)}):null,x?Z.createElement(mU,{gapMode:"margin"}):null)}const TU=rU(sR,_U);var gR=Z.forwardRef(function(e,n){return Z.createElement(cy,eo({},e,{ref:n,sideCar:TU}))});gR.classNames=cy.classNames;const RU=gR;var OU=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},Dd=new WeakMap,py=new WeakMap,hy={},Cx=0,yR=function(e){return e&&(e.host||yR(e.parentNode))},DU=function(e,n){return n.map(function(r){if(e.contains(r))return r;var a=yR(r);return a&&e.contains(a)?a:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},AU=function(e,n,r,a){var s=DU(n,Array.isArray(e)?e:[e]);hy[r]||(hy[r]=new WeakMap);var c=hy[r],f=[],h=new Set,v=new Set(s),y=function(E){!E||h.has(E)||(h.add(E),y(E.parentNode))};s.forEach(y);var S=function(E){!E||v.has(E)||Array.prototype.forEach.call(E.children,function(C){if(h.has(C))S(C);else{var x=C.getAttribute(a),R=x!==null&&x!=="false",T=(Dd.get(C)||0)+1,D=(c.get(C)||0)+1;Dd.set(C,T),c.set(C,D),f.push(C),T===1&&R&&py.set(C,!0),D===1&&C.setAttribute(r,"true"),R||C.setAttribute(a,"true")}})};return S(n),h.clear(),Cx++,function(){f.forEach(function(E){var C=Dd.get(E)-1,x=c.get(E)-1;Dd.set(E,C),c.set(E,x),C||(py.has(E)||E.removeAttribute(a),py.delete(E)),x||E.removeAttribute(r)}),Cx--,Cx||(Dd=new WeakMap,Dd=new WeakMap,py=new WeakMap,hy={})}},MU=function(e,n,r){r===void 0&&(r="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),s=n||OU(e);return s?(a.push.apply(a,Array.from(s.querySelectorAll("[aria-live]"))),AU(a,s,r,"aria-hidden")):function(){return null}};const bR="Dialog",[SR,MZ]=mS(bR),[LU,rs]=SR(bR),PU=e=>{const{__scopeDialog:n,children:r,open:a,defaultOpen:s,onOpenChange:c,modal:f=!0}=e,h=j.useRef(null),v=j.useRef(null),[y=!1,S]=W3({prop:a,defaultProp:s,onChange:c});return j.createElement(LU,{scope:n,triggerRef:h,contentRef:v,contentId:ly(),titleId:ly(),descriptionId:ly(),open:y,onOpenChange:S,onOpenToggle:j.useCallback(()=>S(E=>!E),[S]),modal:f},r)},NU="DialogTrigger",FU=j.forwardRef((e,n)=>{const{__scopeDialog:r,...a}=e,s=rs(NU,r),c=Ec(n,s.triggerRef);return j.createElement(Ka.button,Xn({type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":_x(s.open)},a,{ref:c,onClick:ns(e.onClick,s.onOpenToggle)}))}),IU="DialogPortal",[LZ,ER]=SR(IU,{forceMount:void 0}),kx="DialogOverlay",zU=j.forwardRef((e,n)=>{const r=ER(kx,e.__scopeDialog),{forceMount:a=r.forceMount,...s}=e,c=rs(kx,e.__scopeDialog);return c.modal?j.createElement(ay,{present:a||c.open},j.createElement(jU,Xn({},s,{ref:n}))):null}),jU=j.forwardRef((e,n)=>{const{__scopeDialog:r,...a}=e,s=rs(kx,r);return j.createElement(RU,{as:bS,allowPinchZoom:!0,shards:[s.contentRef]},j.createElement(Ka.div,Xn({"data-state":_x(s.open)},a,{ref:n,style:{pointerEvents:"auto",...a.style}})))}),vm="DialogContent",$U=j.forwardRef((e,n)=>{const r=ER(vm,e.__scopeDialog),{forceMount:a=r.forceMount,...s}=e,c=rs(vm,e.__scopeDialog);return j.createElement(ay,{present:a||c.open},c.modal?j.createElement(UU,Xn({},s,{ref:n})):j.createElement(BU,Xn({},s,{ref:n})))}),UU=j.forwardRef((e,n)=>{const r=rs(vm,e.__scopeDialog),a=j.useRef(null),s=Ec(n,r.contentRef,a);return j.useEffect(()=>{const c=a.current;if(c)return MU(c)},[]),j.createElement(xR,Xn({},e,{ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ns(e.onCloseAutoFocus,c=>{var f;c.preventDefault(),(f=r.triggerRef.current)===null||f===void 0||f.focus()}),onPointerDownOutside:ns(e.onPointerDownOutside,c=>{const f=c.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0;(f.button===2||h)&&c.preventDefault()}),onFocusOutside:ns(e.onFocusOutside,c=>c.preventDefault())}))}),BU=j.forwardRef((e,n)=>{const r=rs(vm,e.__scopeDialog),a=j.useRef(!1),s=j.useRef(!1);return j.createElement(xR,Xn({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var f;if((f=e.onCloseAutoFocus)===null||f===void 0||f.call(e,c),!c.defaultPrevented){var h;a.current||(h=r.triggerRef.current)===null||h===void 0||h.focus(),c.preventDefault()}a.current=!1,s.current=!1},onInteractOutside:c=>{var f,h;(f=e.onInteractOutside)===null||f===void 0||f.call(e,c),c.defaultPrevented||(a.current=!0,c.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const v=c.target;((h=r.triggerRef.current)===null||h===void 0?void 0:h.contains(v))&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&s.current&&c.preventDefault()}}))}),xR=j.forwardRef((e,n)=>{const{__scopeDialog:r,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:c,...f}=e,h=rs(vm,r),v=j.useRef(null),y=Ec(n,v);return Z$(),j.createElement(j.Fragment,null,j.createElement(U$,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:s,onUnmountAutoFocus:c},j.createElement(z$,Xn({role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":_x(h.open)},f,{ref:y,onDismiss:()=>h.onOpenChange(!1)}))),!1)}),VU="DialogTitle",HU=j.forwardRef((e,n)=>{const{__scopeDialog:r,...a}=e,s=rs(VU,r);return j.createElement(Ka.h2,Xn({id:s.titleId},a,{ref:n}))}),qU="DialogClose",WU=j.forwardRef((e,n)=>{const{__scopeDialog:r,...a}=e,s=rs(qU,r);return j.createElement(Ka.button,Xn({type:"button"},a,{ref:n,onClick:ns(e.onClick,()=>s.onOpenChange(!1))}))});function _x(e){return e?"open":"closed"}const YU=PU,ZU=FU,KU=zU,GU=$U,QU=HU,wR=WU;function XU({title:e,titleId:n,...r},a){return Z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Z.createElement("title",{id:n},e):null,Z.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}const JU=Z.forwardRef(XU);function Bc({open:e,onOpenChange:n,children:r}){return he.jsx(YU,{open:e,onOpenChange:n,children:r})}function eB({title:e,children:n}){var a,s,c,f,h,v,y,S;const{theme:{modal:r}}=cr();return he.jsxs(he.Fragment,{children:[he.jsx(KU,{...r==null?void 0:r.overlay}),he.jsx("div",{...r==null?void 0:r.container,children:he.jsxs(GU,{...(a=r==null?void 0:r.dialog)==null?void 0:a.container,children:[he.jsxs("div",{...(c=(s=r==null?void 0:r.dialog)==null?void 0:s.title)==null?void 0:c.container,children:[he.jsx(QU,{...(h=(f=r==null?void 0:r.dialog)==null?void 0:f.title)==null?void 0:h.text,children:e}),he.jsx(wR,{children:he.jsx(JU,{role:"button",tabIndex:0,...(y=(v=r==null?void 0:r.dialog)==null?void 0:v.title)==null?void 0:y.closeIcon})})]}),he.jsx("div",{...(S=r==null?void 0:r.dialog)==null?void 0:S.content,children:n})]})})]})}Bc.Button=ZU,Bc.Close=wR,Bc.Content=eB;const CR=({...e})=>{var c,f;const{theme:{header:n},client:{restartConversation:r}}=cr(),{showModal:a}=F7(),s=h=>{h.stopPropagation(),a({title:"Restart Conversation",content:he.jsxs(he.Fragment,{children:[he.jsx("p",{children:"Are you sure you want to restart a new conversation?"}),he.jsx(Bc.Close,{asChild:!0,children:he.jsx("button",{className:"ml-auto mt-4 rounded-md border border-blue-700 bg-blue-600 px-2 py-1 text-white",onClick:r,children:"clear"})})]})})};return he.jsx(fP,{...e,...(f=(c=n==null?void 0:n.content)==null?void 0:c.actions)==null?void 0:f.icons,role:"button",tabIndex:0,onClick:s,onKeyDown:h=>{h.key==="Enter"&&s(h)}})},tB=({configuration:e})=>{var n,r,a,s,c,f,h,v,y,S;return he.jsxs(q3,{children:[he.jsxs(Fa,{children:[he.jsxs(Fa.Content,{children:[he.jsx(Fa.Avatar,{src:e.botAvatar,children:(e.botName||"My Bot").slice(0,2)}),he.jsx(Fa.Title,{children:e.botName||"My Bot"}),he.jsx(Fa.Description,{children:e.botDescription}),he.jsx(Fa.Actions,{children:he.jsx(CR,{})})]}),he.jsxs(Fa.ExpandedContent,{children:[he.jsx(Fa.DescriptionItem,{"data-email":"",icon:l9,title:(n=e.email)==null?void 0:n.title,link:(r=e.email)==null?void 0:r.link}),he.jsx(Fa.DescriptionItem,{"data-phone":"",icon:p9,title:(a=e.phone)==null?void 0:a.title,link:(s=e.phone)==null?void 0:s.link}),he.jsx(Fa.DescriptionItem,{"data-website":"",link:(c=e.website)==null?void 0:c.link,icon:u9,title:(f=e.website)==null?void 0:f.title}),he.jsx(Fa.DescriptionItem,{"data-terms":"",link:(h=e.termsOfService)==null?void 0:h.link,icon:a9,title:(v=e.termsOfService)==null?void 0:v.title}),he.jsx(Fa.DescriptionItem,{"data-privacy":"",link:(y=e.privacyPolicy)==null?void 0:y.link,icon:f9,title:(S=e.privacyPolicy)==null?void 0:S.title})]})]}),he.jsx(Q3,{}),he.jsxs(N5,{children:[he.jsx(F5,{placeholder:e.composerPlaceholder||"Type your message"}),he.jsx(I5,{})]})]})},nB=["button","text","image","audio","video","file","location","column","row","bubble","carousel","dropdown"],rB=["heading1","heading2","heading3","text","horizontalRule","link","italic","bold","orderedList","unorderedList","listItem","lineBreak","pre"];dn.Avatar=N0,dn.AvatarFallback=I0,dn.AvatarImage=F0,dn.Block=fd,dn.Client=u$,dn.Composer=N5,dn.ComposerButton=I5,dn.ComposerInput=F5,dn.Container=q3,dn.Header=Fa,dn.LoadingIndicator=K3,dn.Message=vx,dn.MessageList=Q3,dn.Modal=Bc,dn.ModalProvider=z5,dn.RestartConversation=CR,dn.Webchat=tB,dn.WebchatProvider=c$,dn.blockTypes=nB,dn.markdownTypes=rB,dn.renderers=IE,Object.defineProperty(dn,Symbol.toStringTag,{value:"Module"})});
702
+ `)},_U=0,Od=[];function TU(e){var n=Z.useRef([]),r=Z.useRef([0,0]),a=Z.useRef(),s=Z.useState(_U++)[0],c=Z.useState(function(){return fR()})[0],f=Z.useRef(e);Z.useEffect(function(){f.current=e},[e]),Z.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var T=pF([e.lockRef.current],(e.shards||[]).map(gR),!0).filter(Boolean);return T.forEach(function(D){return D.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),T.forEach(function(D){return D.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var h=Z.useCallback(function(T,D){if("touches"in T&&T.touches.length===2)return!f.current.allowPinchZoom;var M=dy(T),I=r.current,N="deltaX"in T?T.deltaX:I[0]-M[0],B="deltaY"in T?T.deltaY:I[1]-M[1],F,$=T.target,H=Math.abs(N)>Math.abs(B)?"h":"v";if("touches"in T&&H==="h"&&$.type==="range")return!1;var Y=pR(H,$);if(!Y)return!0;if(Y?F=H:(F=H==="v"?"h":"v",Y=pR(H,$)),!Y)return!1;if(!a.current&&"changedTouches"in T&&(N||B)&&(a.current=F),!F)return!0;var ne=a.current||F;return wU(ne,D,T,ne==="h"?N:B,!0)},[]),v=Z.useCallback(function(T){var D=T;if(!(!Od.length||Od[Od.length-1]!==c)){var M="deltaY"in D?vR(D):dy(D),I=n.current.filter(function(F){return F.name===D.type&&F.target===D.target&&CU(F.delta,M)})[0];if(I&&I.should){D.cancelable&&D.preventDefault();return}if(!I){var N=(f.current.shards||[]).map(gR).filter(Boolean).filter(function(F){return F.contains(D.target)}),B=N.length>0?h(D,N[0]):!f.current.noIsolation;B&&D.cancelable&&D.preventDefault()}}},[]),y=Z.useCallback(function(T,D,M,I){var N={name:T,delta:D,target:M,should:I};n.current.push(N),setTimeout(function(){n.current=n.current.filter(function(B){return B!==N})},1)},[]),S=Z.useCallback(function(T){r.current=dy(T),a.current=void 0},[]),E=Z.useCallback(function(T){y(T.type,vR(T),T.target,h(T,e.lockRef.current))},[]),C=Z.useCallback(function(T){y(T.type,dy(T),T.target,h(T,e.lockRef.current))},[]);Z.useEffect(function(){return Od.push(c),e.setCallbacks({onScrollCapture:E,onWheelCapture:E,onTouchMoveCapture:C}),document.addEventListener("wheel",v,Rd),document.addEventListener("touchmove",v,Rd),document.addEventListener("touchstart",S,Rd),function(){Od=Od.filter(function(T){return T!==c}),document.removeEventListener("wheel",v,Rd),document.removeEventListener("touchmove",v,Rd),document.removeEventListener("touchstart",S,Rd)}},[]);var x=e.removeScrollBar,R=e.inert;return Z.createElement(Z.Fragment,null,R?Z.createElement(c,{styles:kU(s)}):null,x?Z.createElement(vU,{gapMode:"margin"}):null)}const RU=iU(uR,TU);var yR=Z.forwardRef(function(e,n){return Z.createElement(cy,eo({},e,{ref:n,sideCar:RU}))});yR.classNames=cy.classNames;const OU=yR;var DU=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},Dd=new WeakMap,py=new WeakMap,hy={},Cx=0,bR=function(e){return e&&(e.host||bR(e.parentNode))},AU=function(e,n){return n.map(function(r){if(e.contains(r))return r;var a=bR(r);return a&&e.contains(a)?a:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},MU=function(e,n,r,a){var s=AU(n,Array.isArray(e)?e:[e]);hy[r]||(hy[r]=new WeakMap);var c=hy[r],f=[],h=new Set,v=new Set(s),y=function(E){!E||h.has(E)||(h.add(E),y(E.parentNode))};s.forEach(y);var S=function(E){!E||v.has(E)||Array.prototype.forEach.call(E.children,function(C){if(h.has(C))S(C);else{var x=C.getAttribute(a),R=x!==null&&x!=="false",T=(Dd.get(C)||0)+1,D=(c.get(C)||0)+1;Dd.set(C,T),c.set(C,D),f.push(C),T===1&&R&&py.set(C,!0),D===1&&C.setAttribute(r,"true"),R||C.setAttribute(a,"true")}})};return S(n),h.clear(),Cx++,function(){f.forEach(function(E){var C=Dd.get(E)-1,x=c.get(E)-1;Dd.set(E,C),c.set(E,x),C||(py.has(E)||E.removeAttribute(a),py.delete(E)),x||E.removeAttribute(r)}),Cx--,Cx||(Dd=new WeakMap,Dd=new WeakMap,py=new WeakMap,hy={})}},LU=function(e,n,r){r===void 0&&(r="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),s=n||DU(e);return s?(a.push.apply(a,Array.from(s.querySelectorAll("[aria-live]"))),MU(a,s,r,"aria-hidden")):function(){return null}};const SR="Dialog",[ER,LZ]=mS(SR),[PU,rs]=ER(SR),NU=e=>{const{__scopeDialog:n,children:r,open:a,defaultOpen:s,onOpenChange:c,modal:f=!0}=e,h=j.useRef(null),v=j.useRef(null),[y=!1,S]=Y3({prop:a,defaultProp:s,onChange:c});return j.createElement(PU,{scope:n,triggerRef:h,contentRef:v,contentId:ly(),titleId:ly(),descriptionId:ly(),open:y,onOpenChange:S,onOpenToggle:j.useCallback(()=>S(E=>!E),[S]),modal:f},r)},FU="DialogTrigger",IU=j.forwardRef((e,n)=>{const{__scopeDialog:r,...a}=e,s=rs(FU,r),c=Ec(n,s.triggerRef);return j.createElement(Ka.button,Xn({type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":_x(s.open)},a,{ref:c,onClick:ns(e.onClick,s.onOpenToggle)}))}),zU="DialogPortal",[PZ,xR]=ER(zU,{forceMount:void 0}),kx="DialogOverlay",jU=j.forwardRef((e,n)=>{const r=xR(kx,e.__scopeDialog),{forceMount:a=r.forceMount,...s}=e,c=rs(kx,e.__scopeDialog);return c.modal?j.createElement(ay,{present:a||c.open},j.createElement($U,Xn({},s,{ref:n}))):null}),$U=j.forwardRef((e,n)=>{const{__scopeDialog:r,...a}=e,s=rs(kx,r);return j.createElement(OU,{as:bS,allowPinchZoom:!0,shards:[s.contentRef]},j.createElement(Ka.div,Xn({"data-state":_x(s.open)},a,{ref:n,style:{pointerEvents:"auto",...a.style}})))}),vm="DialogContent",UU=j.forwardRef((e,n)=>{const r=xR(vm,e.__scopeDialog),{forceMount:a=r.forceMount,...s}=e,c=rs(vm,e.__scopeDialog);return j.createElement(ay,{present:a||c.open},c.modal?j.createElement(BU,Xn({},s,{ref:n})):j.createElement(VU,Xn({},s,{ref:n})))}),BU=j.forwardRef((e,n)=>{const r=rs(vm,e.__scopeDialog),a=j.useRef(null),s=Ec(n,r.contentRef,a);return j.useEffect(()=>{const c=a.current;if(c)return LU(c)},[]),j.createElement(wR,Xn({},e,{ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ns(e.onCloseAutoFocus,c=>{var f;c.preventDefault(),(f=r.triggerRef.current)===null||f===void 0||f.focus()}),onPointerDownOutside:ns(e.onPointerDownOutside,c=>{const f=c.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0;(f.button===2||h)&&c.preventDefault()}),onFocusOutside:ns(e.onFocusOutside,c=>c.preventDefault())}))}),VU=j.forwardRef((e,n)=>{const r=rs(vm,e.__scopeDialog),a=j.useRef(!1),s=j.useRef(!1);return j.createElement(wR,Xn({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var f;if((f=e.onCloseAutoFocus)===null||f===void 0||f.call(e,c),!c.defaultPrevented){var h;a.current||(h=r.triggerRef.current)===null||h===void 0||h.focus(),c.preventDefault()}a.current=!1,s.current=!1},onInteractOutside:c=>{var f,h;(f=e.onInteractOutside)===null||f===void 0||f.call(e,c),c.defaultPrevented||(a.current=!0,c.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const v=c.target;((h=r.triggerRef.current)===null||h===void 0?void 0:h.contains(v))&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&s.current&&c.preventDefault()}}))}),wR=j.forwardRef((e,n)=>{const{__scopeDialog:r,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:c,...f}=e,h=rs(vm,r),v=j.useRef(null),y=Ec(n,v);return K$(),j.createElement(j.Fragment,null,j.createElement(B$,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:s,onUnmountAutoFocus:c},j.createElement(j$,Xn({role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":_x(h.open)},f,{ref:y,onDismiss:()=>h.onOpenChange(!1)}))),!1)}),HU="DialogTitle",qU=j.forwardRef((e,n)=>{const{__scopeDialog:r,...a}=e,s=rs(HU,r);return j.createElement(Ka.h2,Xn({id:s.titleId},a,{ref:n}))}),WU="DialogClose",YU=j.forwardRef((e,n)=>{const{__scopeDialog:r,...a}=e,s=rs(WU,r);return j.createElement(Ka.button,Xn({type:"button"},a,{ref:n,onClick:ns(e.onClick,()=>s.onOpenChange(!1))}))});function _x(e){return e?"open":"closed"}const ZU=NU,KU=IU,GU=jU,QU=UU,XU=qU,CR=YU;function JU({title:e,titleId:n,...r},a){return Z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":n},r),e?Z.createElement("title",{id:n},e):null,Z.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}const eB=Z.forwardRef(JU);function Bc({open:e,onOpenChange:n,children:r}){return he.jsx(ZU,{open:e,onOpenChange:n,children:r})}function tB({title:e,children:n}){var a,s,c,f,h,v,y,S;const{theme:{modal:r}}=cr();return he.jsxs(he.Fragment,{children:[he.jsx(GU,{...r==null?void 0:r.overlay}),he.jsx("div",{...r==null?void 0:r.container,children:he.jsxs(QU,{...(a=r==null?void 0:r.dialog)==null?void 0:a.container,children:[he.jsxs("div",{...(c=(s=r==null?void 0:r.dialog)==null?void 0:s.title)==null?void 0:c.container,children:[he.jsx(XU,{...(h=(f=r==null?void 0:r.dialog)==null?void 0:f.title)==null?void 0:h.text,children:e}),he.jsx(CR,{children:he.jsx(eB,{role:"button",tabIndex:0,...(y=(v=r==null?void 0:r.dialog)==null?void 0:v.title)==null?void 0:y.closeIcon})})]}),he.jsx("div",{...(S=r==null?void 0:r.dialog)==null?void 0:S.content,children:n})]})})]})}Bc.Button=KU,Bc.Close=CR,Bc.Content=tB;const kR=({...e})=>{var c,f;const{theme:{header:n},client:{restartConversation:r}}=cr(),{showModal:a}=I7(),s=h=>{h.stopPropagation(),a({title:"Restart Conversation",content:he.jsxs(he.Fragment,{children:[he.jsx("p",{children:"Are you sure you want to restart a new conversation?"}),he.jsx(Bc.Close,{asChild:!0,children:he.jsx("button",{className:"ml-auto mt-4 rounded-md border border-blue-700 bg-blue-600 px-2 py-1 text-white",onClick:r,children:"clear"})})]})})};return he.jsx(dP,{...e,...(f=(c=n==null?void 0:n.content)==null?void 0:c.actions)==null?void 0:f.icons,role:"button",tabIndex:0,onClick:s,onKeyDown:h=>{h.key==="Enter"&&s(h)}})},nB=({configuration:e})=>{var n,r,a,s,c,f,h,v,y,S;return he.jsxs(W3,{children:[he.jsxs(Fa,{children:[he.jsxs(Fa.Content,{children:[he.jsx(Fa.Avatar,{src:e.botAvatar,children:(e.botName||"Bot").slice(0,1)}),he.jsx(Fa.Title,{children:e.botName||"My Bot"}),he.jsx(Fa.Description,{children:e.botDescription}),he.jsx(Fa.Actions,{children:he.jsx(kR,{})})]}),he.jsxs(Fa.ExpandedContent,{children:[he.jsx(Fa.DescriptionItem,{"data-email":"",icon:s9,title:(n=e.email)==null?void 0:n.title,link:(r=e.email)==null?void 0:r.link}),he.jsx(Fa.DescriptionItem,{"data-phone":"",icon:h9,title:(a=e.phone)==null?void 0:a.title,link:(s=e.phone)==null?void 0:s.link}),he.jsx(Fa.DescriptionItem,{"data-website":"",link:(c=e.website)==null?void 0:c.link,icon:c9,title:(f=e.website)==null?void 0:f.title}),he.jsx(Fa.DescriptionItem,{"data-terms":"",link:(h=e.termsOfService)==null?void 0:h.link,icon:o9,title:(v=e.termsOfService)==null?void 0:v.title}),he.jsx(Fa.DescriptionItem,{"data-privacy":"",link:(y=e.privacyPolicy)==null?void 0:y.link,icon:d9,title:(S=e.privacyPolicy)==null?void 0:S.title})]})]}),he.jsx(X3,{}),he.jsxs(N5,{children:[he.jsx(F5,{placeholder:e.composerPlaceholder||"Type your message"}),he.jsx(I5,{})]})]})},rB=["button","text","image","audio","video","file","location","column","row","bubble","carousel","dropdown"],iB=["heading1","heading2","heading3","text","horizontalRule","link","italic","bold","orderedList","unorderedList","listItem","lineBreak","pre"];dn.Avatar=N0,dn.AvatarFallback=I0,dn.AvatarImage=F0,dn.Block=fd,dn.Client=c$,dn.Composer=N5,dn.ComposerButton=I5,dn.ComposerInput=F5,dn.Container=W3,dn.Header=Fa,dn.LoadingIndicator=G3,dn.Message=vx,dn.MessageList=X3,dn.Modal=Bc,dn.ModalProvider=z5,dn.RestartConversation=kR,dn.Webchat=nB,dn.WebchatProvider=f$,dn.blockTypes=rB,dn.markdownTypes=iB,dn.renderers=IE,Object.defineProperty(dn,Symbol.toStringTag,{value:"Module"})});