<html lang="en">
<head></head>
<body>

<form id="mainForm" method="post" action="https://stackblitz.com/run" target="_self">
<input type="hidden" name="project[files][README.md]" value="# Hono React Integration for RivetKit

Example project demonstrating full-stack Hono backend with React frontend integration with [RivetKit](https://rivetkit.org).

[Learn More →](https://github.com/rivet-gg/rivetkit)

[Discord](https://rivet.gg/discord) — [Documentation](https://rivetkit.org) — [Issues](https://github.com/rivet-gg/rivetkit/issues)

## Getting Started

### Prerequisites

- Node.js

### Installation

```sh
git clone https://github.com/rivet-gg/rivetkit
cd rivetkit/examples/hono-react
npm install
```

### Development

```sh
npm run dev
```

This will start both the Hono backend server and Vite React frontend. Open your browser to http://localhost:5173 to see the React app connected to Rivet Actors.

## License

Apache 2.0
">
<input type="hidden" name="project[files][package.json]" value="{&quot;name&quot;:&quot;example-hono-react&quot;,&quot;version&quot;:&quot;0.9.9&quot;,&quot;private&quot;:true,&quot;type&quot;:&quot;module&quot;,&quot;scripts&quot;:{&quot;dev&quot;:&quot;concurrently \&quot;npm run dev:backend\&quot; \&quot;npm run dev:frontend\&quot;&quot;,&quot;dev:backend&quot;:&quot;tsx --watch src/backend/server.ts&quot;,&quot;dev:frontend&quot;:&quot;vite&quot;,&quot;build&quot;:&quot;vite build&quot;,&quot;check-types&quot;:&quot;tsc --noEmit&quot;,&quot;test&quot;:&quot;vitest run&quot;},&quot;devDependencies&quot;:{&quot;@types/node&quot;:&quot;^22.13.9&quot;,&quot;@types/react&quot;:&quot;^18.2.0&quot;,&quot;@types/react-dom&quot;:&quot;^18.2.0&quot;,&quot;@vitejs/plugin-react&quot;:&quot;^4.2.0&quot;,&quot;concurrently&quot;:&quot;^8.2.2&quot;,&quot;@rivetkit/actor&quot;:&quot;https://pkg.pr.new/rivet-gg/rivetkit/@rivetkit/actor@27b9131c5788cdf2007730353b43b33a296aedf3&quot;,&quot;tsx&quot;:&quot;^3.12.7&quot;,&quot;typescript&quot;:&quot;^5.5.2&quot;,&quot;vite&quot;:&quot;^5.0.0&quot;,&quot;vitest&quot;:&quot;^3.1.1&quot;},&quot;dependencies&quot;:{&quot;@rivetkit/react&quot;:&quot;https://pkg.pr.new/rivet-gg/rivetkit/@rivetkit/react@27b9131c5788cdf2007730353b43b33a296aedf3&quot;,&quot;hono&quot;:&quot;^4.7.0&quot;,&quot;react&quot;:&quot;^18.2.0&quot;,&quot;react-dom&quot;:&quot;^18.2.0&quot;},&quot;stableVersion&quot;:&quot;0.8.0&quot;}">
<input type="hidden" name="project[files][tsconfig.json]" value="{
  &quot;compilerOptions&quot;: {
    /* Visit https://aka.ms/tsconfig.json to read more about this file */

    /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
    &quot;target&quot;: &quot;esnext&quot;,
    /* Specify a set of bundled library declaration files that describe the target runtime environment. */
    &quot;lib&quot;: [&quot;esnext&quot;, &quot;dom&quot;],
    /* Specify what JSX code is generated. */
    &quot;jsx&quot;: &quot;react-jsx&quot;,

    /* Specify what module code is generated. */
    &quot;module&quot;: &quot;esnext&quot;,
    /* Specify how TypeScript looks up a file from a given module specifier. */
    &quot;moduleResolution&quot;: &quot;bundler&quot;,
    /* Specify type package names to be included without being referenced in a source file. */
    &quot;types&quot;: [&quot;node&quot;],
    /* Enable importing .json files */
    &quot;resolveJsonModule&quot;: true,

    /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */
    &quot;allowJs&quot;: true,
    /* Enable error reporting in type-checked JavaScript files. */
    &quot;checkJs&quot;: false,

    /* Disable emitting files from a compilation. */
    &quot;noEmit&quot;: true,

    /* Ensure that each file can be safely transpiled without relying on other imports. */
    &quot;isolatedModules&quot;: true,
    /* Allow &#39;import x from y&#39; when a module doesn&#39;t have a default export. */
    &quot;allowSyntheticDefaultImports&quot;: true,
    /* Ensure that casing is correct in imports. */
    &quot;forceConsistentCasingInFileNames&quot;: true,

    /* Enable all strict type-checking options. */
    &quot;strict&quot;: true,

    /* Skip type checking all .d.ts files. */
    &quot;skipLibCheck&quot;: true
  },
  &quot;include&quot;: [&quot;src/**/*&quot;]
}
">
<input type="hidden" name="project[files][turbo.json]" value="{
  &quot;$schema&quot;: &quot;https://turbo.build/schema.json&quot;,
  &quot;extends&quot;: [&quot;//&quot;]
}
">
<input type="hidden" name="project[files][vite.config.ts]" value="import react from &quot;@vitejs/plugin-react&quot;;
import { defineConfig } from &quot;vite&quot;;

export default defineConfig({
	plugins: [react()],
	root: &quot;src/frontend&quot;,
	build: {
		outDir: &quot;../../dist&quot;,
	},
	server: {
		host: &quot;0.0.0.0&quot;,
	},
});
">
<input type="hidden" name="project[files][.turbo/turbo-build.log]" value="
&gt; example-hono-react@0.9.9 build /home/runner/work/rivetkit/rivetkit/examples/hono-react
&gt; vite build

[36mvite v5.4.19 [32mbuilding for production...[36m[39m
[33m
[1m(!)[22m outDir [37m[2m/home/runner/work/rivetkit/rivetkit/examples/hono-react/dist[22m[33m is not inside project root and will not be emptied.
Use --emptyOutDir to override.
[39m
transforming...
[32m✓[39m 218 modules transformed.
rendering chunks...
computing gzip size...
[2m../../dist/[22m[32mindex.html                  [39m[1m[2m  0.33 kB[22m[1m[22m[2m │ gzip:  0.24 kB[22m
[2m../../dist/[22m[2massets/[22m[36mbrowser-Bh6UwqLG.js  [39m[1m[2m  0.57 kB[22m[1m[22m[2m │ gzip:  0.40 kB[22m
[2m../../dist/[22m[2massets/[22m[36mindex-z2Dkjsn_.js    [39m[1m[2m  6.73 kB[22m[1m[22m[2m │ gzip:  2.84 kB[22m
[2m../../dist/[22m[2massets/[22m[36mindex-Cecivo5e.js    [39m[1m[2m274.53 kB[22m[1m[22m[2m │ gzip: 84.86 kB[22m
[32m✓ built in 10.69s[39m
">
<input type="hidden" name="project[files][dist/index.html]" value="&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
    &lt;meta charset=&quot;UTF-8&quot; /&gt;
    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;
    &lt;title&gt;Hono React Counter&lt;/title&gt;
    &lt;script type=&quot;module&quot; crossorigin src=&quot;/assets/index-Cecivo5e.js&quot;&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div id=&quot;root&quot;&gt;&lt;/div&gt;
  &lt;/body&gt;
&lt;/html&gt;
">
<input type="hidden" name="project[files][dist/assets/browser-Bh6UwqLG.js]" value="import{g as a}from&quot;./index-Cecivo5e.js&quot;;function f(t,s){for(var o=0;o&lt;s.length;o++){const e=s[o];if(typeof e!=&quot;string&quot;&amp;&amp;!Array.isArray(e)){for(const r in e)if(r!==&quot;default&quot;&amp;&amp;!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&amp;&amp;Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=&gt;e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:&quot;Module&quot;}))}var c=function(){throw new Error(&quot;ws does not work in the browser. Browser clients must use the native WebSocket object&quot;)};const i=a(c),u=f({__proto__:null,default:i},[c]);export{u as b};
">
<input type="hidden" name="project[files][dist/assets/index-Cecivo5e.js]" value="var um=Object.defineProperty;var hc=e=&gt;{throw TypeError(e)};var cm=(e,t,n)=&gt;t in e?um(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Nt=(e,t,n)=&gt;cm(e,typeof t!=&quot;symbol&quot;?t+&quot;&quot;:t,n),so=(e,t,n)=&gt;t.has(e)||hc(&quot;Cannot &quot;+n);var k=(e,t,n)=&gt;(so(e,t,&quot;read from private field&quot;),n?n.call(e):t.get(e)),se=(e,t,n)=&gt;t.has(e)?hc(&quot;Cannot add the same private member more than once&quot;):t instanceof WeakSet?t.add(e):t.set(e,n),le=(e,t,n,r)=&gt;(so(e,t,&quot;write to private field&quot;),r?r.call(e,n):t.set(e,n),n),te=(e,t,n)=&gt;(so(e,t,&quot;access private method&quot;),n);(function(){const t=document.createElement(&quot;link&quot;).relList;if(t&amp;&amp;t.supports&amp;&amp;t.supports(&quot;modulepreload&quot;))return;for(const i of document.querySelectorAll(&#39;link[rel=&quot;modulepreload&quot;]&#39;))r(i);new MutationObserver(i=&gt;{for(const s of i)if(s.type===&quot;childList&quot;)for(const l of s.addedNodes)l.tagName===&quot;LINK&quot;&amp;&amp;l.rel===&quot;modulepreload&quot;&amp;&amp;r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&amp;&amp;(s.integrity=i.integrity),i.referrerPolicy&amp;&amp;(s.referrerPolicy=i.referrerPolicy),i.crossOrigin===&quot;use-credentials&quot;?s.credentials=&quot;include&quot;:i.crossOrigin===&quot;anonymous&quot;?s.credentials=&quot;omit&quot;:s.credentials=&quot;same-origin&quot;,s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function uu(e){return e&amp;&amp;e.__esModule&amp;&amp;Object.prototype.hasOwnProperty.call(e,&quot;default&quot;)?e.default:e}var cd={exports:{}},jl={},fd={exports:{}},X={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var os=Symbol.for(&quot;react.element&quot;),fm=Symbol.for(&quot;react.portal&quot;),dm=Symbol.for(&quot;react.fragment&quot;),hm=Symbol.for(&quot;react.strict_mode&quot;),pm=Symbol.for(&quot;react.profiler&quot;),mm=Symbol.for(&quot;react.provider&quot;),ym=Symbol.for(&quot;react.context&quot;),vm=Symbol.for(&quot;react.forward_ref&quot;),gm=Symbol.for(&quot;react.suspense&quot;),wm=Symbol.for(&quot;react.memo&quot;),_m=Symbol.for(&quot;react.lazy&quot;),pc=Symbol.iterator;function xm(e){return e===null||typeof e!=&quot;object&quot;?null:(e=pc&amp;&amp;e[pc]||e[&quot;@@iterator&quot;],typeof e==&quot;function&quot;?e:null)}var dd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hd=Object.assign,pd={};function ti(e,t,n){this.props=e,this.context=t,this.refs=pd,this.updater=n||dd}ti.prototype.isReactComponent={};ti.prototype.setState=function(e,t){if(typeof e!=&quot;object&quot;&amp;&amp;typeof e!=&quot;function&quot;&amp;&amp;e!=null)throw Error(&quot;setState(...): takes an object of state variables to update or a function which returns an object of state variables.&quot;);this.updater.enqueueSetState(this,e,t,&quot;setState&quot;)};ti.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,&quot;forceUpdate&quot;)};function md(){}md.prototype=ti.prototype;function cu(e,t,n){this.props=e,this.context=t,this.refs=pd,this.updater=n||dd}var fu=cu.prototype=new md;fu.constructor=cu;hd(fu,ti.prototype);fu.isPureReactComponent=!0;var mc=Array.isArray,yd=Object.prototype.hasOwnProperty,du={current:null},vd={key:!0,ref:!0,__self:!0,__source:!0};function gd(e,t,n){var r,i={},s=null,l=null;if(t!=null)for(r in t.ref!==void 0&amp;&amp;(l=t.ref),t.key!==void 0&amp;&amp;(s=&quot;&quot;+t.key),t)yd.call(t,r)&amp;&amp;!vd.hasOwnProperty(r)&amp;&amp;(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1&lt;o){for(var a=Array(o),u=0;u&lt;o;u++)a[u]=arguments[u+2];i.children=a}if(e&amp;&amp;e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&amp;&amp;(i[r]=o[r]);return{$$typeof:os,type:e,key:s,ref:l,props:i,_owner:du.current}}function km(e,t){return{$$typeof:os,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function hu(e){return typeof e==&quot;object&quot;&amp;&amp;e!==null&amp;&amp;e.$$typeof===os}function Sm(e){var t={&quot;=&quot;:&quot;=0&quot;,&quot;:&quot;:&quot;=2&quot;};return&quot;$&quot;+e.replace(/[=:]/g,function(n){return t[n]})}var yc=/\/+/g;function lo(e,t){return typeof e==&quot;object&quot;&amp;&amp;e!==null&amp;&amp;e.key!=null?Sm(&quot;&quot;+e.key):t.toString(36)}function $s(e,t,n,r,i){var s=typeof e;(s===&quot;undefined&quot;||s===&quot;boolean&quot;)&amp;&amp;(e=null);var l=!1;if(e===null)l=!0;else switch(s){case&quot;string&quot;:case&quot;number&quot;:l=!0;break;case&quot;object&quot;:switch(e.$$typeof){case os:case fm:l=!0}}if(l)return l=e,i=i(l),e=r===&quot;&quot;?&quot;.&quot;+lo(l,0):r,mc(i)?(n=&quot;&quot;,e!=null&amp;&amp;(n=e.replace(yc,&quot;$&amp;/&quot;)+&quot;/&quot;),$s(i,t,n,&quot;&quot;,function(u){return u})):i!=null&amp;&amp;(hu(i)&amp;&amp;(i=km(i,n+(!i.key||l&amp;&amp;l.key===i.key?&quot;&quot;:(&quot;&quot;+i.key).replace(yc,&quot;$&amp;/&quot;)+&quot;/&quot;)+e)),t.push(i)),1;if(l=0,r=r===&quot;&quot;?&quot;.&quot;:r+&quot;:&quot;,mc(e))for(var o=0;o&lt;e.length;o++){s=e[o];var a=r+lo(s,o);l+=$s(s,t,n,a,i)}else if(a=xm(e),typeof a==&quot;function&quot;)for(e=a.call(e),o=0;!(s=e.next()).done;)s=s.value,a=r+lo(s,o++),l+=$s(s,t,n,a,i);else if(s===&quot;object&quot;)throw t=String(e),Error(&quot;Objects are not valid as a React child (found: &quot;+(t===&quot;[object Object]&quot;?&quot;object with keys {&quot;+Object.keys(e).join(&quot;, &quot;)+&quot;}&quot;:t)+&quot;). If you meant to render a collection of children, use an array instead.&quot;);return l}function ps(e,t,n){if(e==null)return e;var r=[],i=0;return $s(e,r,&quot;&quot;,&quot;&quot;,function(s){return t.call(n,s,i++)}),r}function Em(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&amp;&amp;(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&amp;&amp;(e._status=2,e._result=n)}),e._status===-1&amp;&amp;(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var We={current:null},js={transition:null},Cm={ReactCurrentDispatcher:We,ReactCurrentBatchConfig:js,ReactCurrentOwner:du};function wd(){throw Error(&quot;act(...) is not supported in production builds of React.&quot;)}X.Children={map:ps,forEach:function(e,t,n){ps(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ps(e,function(){t++}),t},toArray:function(e){return ps(e,function(t){return t})||[]},only:function(e){if(!hu(e))throw Error(&quot;React.Children.only expected to receive a single React element child.&quot;);return e}};X.Component=ti;X.Fragment=dm;X.Profiler=pm;X.PureComponent=cu;X.StrictMode=hm;X.Suspense=gm;X.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Cm;X.act=wd;X.cloneElement=function(e,t,n){if(e==null)throw Error(&quot;React.cloneElement(...): The argument must be a React element, but you passed &quot;+e+&quot;.&quot;);var r=hd({},e.props),i=e.key,s=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&amp;&amp;(s=t.ref,l=du.current),t.key!==void 0&amp;&amp;(i=&quot;&quot;+t.key),e.type&amp;&amp;e.type.defaultProps)var o=e.type.defaultProps;for(a in t)yd.call(t,a)&amp;&amp;!vd.hasOwnProperty(a)&amp;&amp;(r[a]=t[a]===void 0&amp;&amp;o!==void 0?o[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1&lt;a){o=Array(a);for(var u=0;u&lt;a;u++)o[u]=arguments[u+2];r.children=o}return{$$typeof:os,type:e.type,key:i,ref:s,props:r,_owner:l}};X.createContext=function(e){return e={$$typeof:ym,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:mm,_context:e},e.Consumer=e};X.createElement=gd;X.createFactory=function(e){var t=gd.bind(null,e);return t.type=e,t};X.createRef=function(){return{current:null}};X.forwardRef=function(e){return{$$typeof:vm,render:e}};X.isValidElement=hu;X.lazy=function(e){return{$$typeof:_m,_payload:{_status:-1,_result:e},_init:Em}};X.memo=function(e,t){return{$$typeof:wm,type:e,compare:t===void 0?null:t}};X.startTransition=function(e){var t=js.transition;js.transition={};try{e()}finally{js.transition=t}};X.unstable_act=wd;X.useCallback=function(e,t){return We.current.useCallback(e,t)};X.useContext=function(e){return We.current.useContext(e)};X.useDebugValue=function(){};X.useDeferredValue=function(e){return We.current.useDeferredValue(e)};X.useEffect=function(e,t){return We.current.useEffect(e,t)};X.useId=function(){return We.current.useId()};X.useImperativeHandle=function(e,t,n){return We.current.useImperativeHandle(e,t,n)};X.useInsertionEffect=function(e,t){return We.current.useInsertionEffect(e,t)};X.useLayoutEffect=function(e,t){return We.current.useLayoutEffect(e,t)};X.useMemo=function(e,t){return We.current.useMemo(e,t)};X.useReducer=function(e,t,n){return We.current.useReducer(e,t,n)};X.useRef=function(e){return We.current.useRef(e)};X.useState=function(e){return We.current.useState(e)};X.useSyncExternalStore=function(e,t,n){return We.current.useSyncExternalStore(e,t,n)};X.useTransition=function(){return We.current.useTransition()};X.version=&quot;18.3.1&quot;;fd.exports=X;var ht=fd.exports;const Om=uu(ht);/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Tm=ht,Nm=Symbol.for(&quot;react.element&quot;),Rm=Symbol.for(&quot;react.fragment&quot;),Am=Object.prototype.hasOwnProperty,Im=Tm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Pm={key:!0,ref:!0,__self:!0,__source:!0};function _d(e,t,n){var r,i={},s=null,l=null;n!==void 0&amp;&amp;(s=&quot;&quot;+n),t.key!==void 0&amp;&amp;(s=&quot;&quot;+t.key),t.ref!==void 0&amp;&amp;(l=t.ref);for(r in t)Am.call(t,r)&amp;&amp;!Pm.hasOwnProperty(r)&amp;&amp;(i[r]=t[r]);if(e&amp;&amp;e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&amp;&amp;(i[r]=t[r]);return{$$typeof:Nm,type:e,key:s,ref:l,props:i,_owner:Im.current}}jl.Fragment=Rm;jl.jsx=_d;jl.jsxs=_d;cd.exports=jl;var fr=cd.exports,Wo={},xd={exports:{}},lt={},kd={exports:{}},Sd={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t(S,I){var P=S.length;S.push(I);e:for(;0&lt;P;){var B=P-1&gt;&gt;&gt;1,Z=S[B];if(0&lt;i(Z,I))S[B]=I,S[P]=Z,P=B;else break e}}function n(S){return S.length===0?null:S[0]}function r(S){if(S.length===0)return null;var I=S[0],P=S.pop();if(P!==I){S[0]=P;e:for(var B=0,Z=S.length,In=Z&gt;&gt;&gt;1;B&lt;In;){var Pn=2*(B+1)-1,io=S[Pn],Ln=Pn+1,hs=S[Ln];if(0&gt;i(io,P))Ln&lt;Z&amp;&amp;0&gt;i(hs,io)?(S[B]=hs,S[Ln]=P,B=Ln):(S[B]=io,S[Pn]=P,B=Pn);else if(Ln&lt;Z&amp;&amp;0&gt;i(hs,P))S[B]=hs,S[Ln]=P,B=Ln;else break e}}return I}function i(S,I){var P=S.sortIndex-I.sortIndex;return P!==0?P:S.id-I.id}if(typeof performance==&quot;object&quot;&amp;&amp;typeof performance.now==&quot;function&quot;){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,o=l.now();e.unstable_now=function(){return l.now()-o}}var a=[],u=[],c=1,p=null,y=3,w=!1,x=!1,E=!1,G=typeof setTimeout==&quot;function&quot;?setTimeout:null,m=typeof clearTimeout==&quot;function&quot;?clearTimeout:null,d=typeof setImmediate&lt;&quot;u&quot;?setImmediate:null;typeof navigator&lt;&quot;u&quot;&amp;&amp;navigator.scheduling!==void 0&amp;&amp;navigator.scheduling.isInputPending!==void 0&amp;&amp;navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(S){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime&lt;=S)r(u),I.sortIndex=I.expirationTime,t(a,I);else break;I=n(u)}}function O(S){if(E=!1,h(S),!x)if(n(a)!==null)x=!0,R(L);else{var I=n(u);I!==null&amp;&amp;C(O,I.startTime-S)}}function L(S,I){x=!1,E&amp;&amp;(E=!1,m(V),V=-1),w=!0;var P=y;try{for(h(I),p=n(a);p!==null&amp;&amp;(!(p.expirationTime&gt;I)||S&amp;&amp;!He());){var B=p.callback;if(typeof B==&quot;function&quot;){p.callback=null,y=p.priorityLevel;var Z=B(p.expirationTime&lt;=I);I=e.unstable_now(),typeof Z==&quot;function&quot;?p.callback=Z:p===n(a)&amp;&amp;r(a),h(I)}else r(a);p=n(a)}if(p!==null)var In=!0;else{var Pn=n(u);Pn!==null&amp;&amp;C(O,Pn.startTime-I),In=!1}return In}finally{p=null,y=P,w=!1}}var z=!1,F=null,V=-1,ue=5,b=-1;function He(){return!(e.unstable_now()-b&lt;ue)}function Xt(){if(F!==null){var S=e.unstable_now();b=S;var I=!0;try{I=F(!0,S)}finally{I?v():(z=!1,F=null)}}else z=!1}var v;if(typeof d==&quot;function&quot;)v=function(){d(Xt)};else if(typeof MessageChannel&lt;&quot;u&quot;){var U=new MessageChannel,T=U.port2;U.port1.onmessage=Xt,v=function(){T.postMessage(null)}}else v=function(){G(Xt,0)};function R(S){F=S,z||(z=!0,v())}function C(S,I){V=G(function(){S(e.unstable_now())},I)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(S){S.callback=null},e.unstable_continueExecution=function(){x||w||(x=!0,R(L))},e.unstable_forceFrameRate=function(S){0&gt;S||125&lt;S?console.error(&quot;forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported&quot;):ue=0&lt;S?Math.floor(1e3/S):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(S){switch(y){case 1:case 2:case 3:var I=3;break;default:I=y}var P=y;y=I;try{return S()}finally{y=P}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(S,I){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var P=y;y=S;try{return I()}finally{y=P}},e.unstable_scheduleCallback=function(S,I,P){var B=e.unstable_now();switch(typeof P==&quot;object&quot;&amp;&amp;P!==null?(P=P.delay,P=typeof P==&quot;number&quot;&amp;&amp;0&lt;P?B+P:B):P=B,S){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=P+Z,S={id:c++,callback:I,priorityLevel:S,startTime:P,expirationTime:Z,sortIndex:-1},P&gt;B?(S.sortIndex=P,t(u,S),n(a)===null&amp;&amp;S===n(u)&amp;&amp;(E?(m(V),V=-1):E=!0,C(O,P-B))):(S.sortIndex=Z,t(a,S),x||w||(x=!0,R(L))),S},e.unstable_shouldYield=He,e.unstable_wrapCallback=function(S){var I=y;return function(){var P=y;y=I;try{return S.apply(this,arguments)}finally{y=P}}}})(Sd);kd.exports=Sd;var Lm=kd.exports;/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ed=ht,it=Lm;function N(e){for(var t=&quot;https://reactjs.org/docs/error-decoder.html?invariant=&quot;+e,n=1;n&lt;arguments.length;n++)t+=&quot;&amp;args[]=&quot;+encodeURIComponent(arguments[n]);return&quot;Minified React error #&quot;+e+&quot;; visit &quot;+t+&quot; for the full message or use the non-minified dev environment for full errors and additional helpful warnings.&quot;}var Cd=new Set,Mi={};function sr(e,t){Vr(e,t),Vr(e+&quot;Capture&quot;,t)}function Vr(e,t){for(Mi[e]=t,e=0;e&lt;t.length;e++)Cd.add(t[e])}var Qt=!(typeof window&gt;&quot;u&quot;||typeof window.document&gt;&quot;u&quot;||typeof window.document.createElement&gt;&quot;u&quot;),Zo=Object.prototype.hasOwnProperty,Mm=/^[: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]*$/,vc={},gc={};function Dm(e){return Zo.call(gc,e)?!0:Zo.call(vc,e)?!1:Mm.test(e)?gc[e]=!0:(vc[e]=!0,!1)}function zm(e,t,n,r){if(n!==null&amp;&amp;n.type===0)return!1;switch(typeof t){case&quot;function&quot;:case&quot;symbol&quot;:return!0;case&quot;boolean&quot;:return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!==&quot;data-&quot;&amp;&amp;e!==&quot;aria-&quot;);default:return!1}}function Um(e,t,n,r){if(t===null||typeof t&gt;&quot;u&quot;||zm(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1&gt;t}return!1}function Ze(e,t,n,r,i,s,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=l}var De={};&quot;children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style&quot;.split(&quot; &quot;).forEach(function(e){De[e]=new Ze(e,0,!1,e,null,!1,!1)});[[&quot;acceptCharset&quot;,&quot;accept-charset&quot;],[&quot;className&quot;,&quot;class&quot;],[&quot;htmlFor&quot;,&quot;for&quot;],[&quot;httpEquiv&quot;,&quot;http-equiv&quot;]].forEach(function(e){var t=e[0];De[t]=new Ze(t,1,!1,e[1],null,!1,!1)});[&quot;contentEditable&quot;,&quot;draggable&quot;,&quot;spellCheck&quot;,&quot;value&quot;].forEach(function(e){De[e]=new Ze(e,2,!1,e.toLowerCase(),null,!1,!1)});[&quot;autoReverse&quot;,&quot;externalResourcesRequired&quot;,&quot;focusable&quot;,&quot;preserveAlpha&quot;].forEach(function(e){De[e]=new Ze(e,2,!1,e,null,!1,!1)});&quot;allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope&quot;.split(&quot; &quot;).forEach(function(e){De[e]=new Ze(e,3,!1,e.toLowerCase(),null,!1,!1)});[&quot;checked&quot;,&quot;multiple&quot;,&quot;muted&quot;,&quot;selected&quot;].forEach(function(e){De[e]=new Ze(e,3,!0,e,null,!1,!1)});[&quot;capture&quot;,&quot;download&quot;].forEach(function(e){De[e]=new Ze(e,4,!1,e,null,!1,!1)});[&quot;cols&quot;,&quot;rows&quot;,&quot;size&quot;,&quot;span&quot;].forEach(function(e){De[e]=new Ze(e,6,!1,e,null,!1,!1)});[&quot;rowSpan&quot;,&quot;start&quot;].forEach(function(e){De[e]=new Ze(e,5,!1,e.toLowerCase(),null,!1,!1)});var pu=/[\-:]([a-z])/g;function mu(e){return e[1].toUpperCase()}&quot;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&quot;.split(&quot; &quot;).forEach(function(e){var t=e.replace(pu,mu);De[t]=new Ze(t,1,!1,e,null,!1,!1)});&quot;xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type&quot;.split(&quot; &quot;).forEach(function(e){var t=e.replace(pu,mu);De[t]=new Ze(t,1,!1,e,&quot;http://www.w3.org/1999/xlink&quot;,!1,!1)});[&quot;xml:base&quot;,&quot;xml:lang&quot;,&quot;xml:space&quot;].forEach(function(e){var t=e.replace(pu,mu);De[t]=new Ze(t,1,!1,e,&quot;http://www.w3.org/XML/1998/namespace&quot;,!1,!1)});[&quot;tabIndex&quot;,&quot;crossOrigin&quot;].forEach(function(e){De[e]=new Ze(e,1,!1,e.toLowerCase(),null,!1,!1)});De.xlinkHref=new Ze(&quot;xlinkHref&quot;,1,!1,&quot;xlink:href&quot;,&quot;http://www.w3.org/1999/xlink&quot;,!0,!1);[&quot;src&quot;,&quot;href&quot;,&quot;action&quot;,&quot;formAction&quot;].forEach(function(e){De[e]=new Ze(e,1,!1,e.toLowerCase(),null,!0,!0)});function yu(e,t,n,r){var i=De.hasOwnProperty(t)?De[t]:null;(i!==null?i.type!==0:r||!(2&lt;t.length)||t[0]!==&quot;o&quot;&amp;&amp;t[0]!==&quot;O&quot;||t[1]!==&quot;n&quot;&amp;&amp;t[1]!==&quot;N&quot;)&amp;&amp;(Um(t,n,i,r)&amp;&amp;(n=null),r||i===null?Dm(t)&amp;&amp;(n===null?e.removeAttribute(t):e.setAttribute(t,&quot;&quot;+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:&quot;&quot;:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&amp;&amp;n===!0?&quot;&quot;:&quot;&quot;+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Yt=Ed.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ms=Symbol.for(&quot;react.element&quot;),dr=Symbol.for(&quot;react.portal&quot;),hr=Symbol.for(&quot;react.fragment&quot;),vu=Symbol.for(&quot;react.strict_mode&quot;),Ho=Symbol.for(&quot;react.profiler&quot;),Od=Symbol.for(&quot;react.provider&quot;),Td=Symbol.for(&quot;react.context&quot;),gu=Symbol.for(&quot;react.forward_ref&quot;),Qo=Symbol.for(&quot;react.suspense&quot;),Ko=Symbol.for(&quot;react.suspense_list&quot;),wu=Symbol.for(&quot;react.memo&quot;),tn=Symbol.for(&quot;react.lazy&quot;),Nd=Symbol.for(&quot;react.offscreen&quot;),wc=Symbol.iterator;function ii(e){return e===null||typeof e!=&quot;object&quot;?null:(e=wc&amp;&amp;e[wc]||e[&quot;@@iterator&quot;],typeof e==&quot;function&quot;?e:null)}var ve=Object.assign,oo;function mi(e){if(oo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);oo=t&amp;&amp;t[1]||&quot;&quot;}return`
`+oo+e}var ao=!1;function uo(e,t){if(!e||ao)return&quot;&quot;;ao=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,&quot;props&quot;,{set:function(){throw Error()}}),typeof Reflect==&quot;object&quot;&amp;&amp;Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&amp;&amp;r&amp;&amp;typeof u.stack==&quot;string&quot;){for(var i=u.stack.split(`
`),s=r.stack.split(`
`),l=i.length-1,o=s.length-1;1&lt;=l&amp;&amp;0&lt;=o&amp;&amp;i[l]!==s[o];)o--;for(;1&lt;=l&amp;&amp;0&lt;=o;l--,o--)if(i[l]!==s[o]){if(l!==1||o!==1)do if(l--,o--,0&gt;o||i[l]!==s[o]){var a=`
`+i[l].replace(&quot; at new &quot;,&quot; at &quot;);return e.displayName&amp;&amp;a.includes(&quot;&lt;anonymous&gt;&quot;)&amp;&amp;(a=a.replace(&quot;&lt;anonymous&gt;&quot;,e.displayName)),a}while(1&lt;=l&amp;&amp;0&lt;=o);break}}}finally{ao=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:&quot;&quot;)?mi(e):&quot;&quot;}function $m(e){switch(e.tag){case 5:return mi(e.type);case 16:return mi(&quot;Lazy&quot;);case 13:return mi(&quot;Suspense&quot;);case 19:return mi(&quot;SuspenseList&quot;);case 0:case 2:case 15:return e=uo(e.type,!1),e;case 11:return e=uo(e.type.render,!1),e;case 1:return e=uo(e.type,!0),e;default:return&quot;&quot;}}function Jo(e){if(e==null)return null;if(typeof e==&quot;function&quot;)return e.displayName||e.name||null;if(typeof e==&quot;string&quot;)return e;switch(e){case hr:return&quot;Fragment&quot;;case dr:return&quot;Portal&quot;;case Ho:return&quot;Profiler&quot;;case vu:return&quot;StrictMode&quot;;case Qo:return&quot;Suspense&quot;;case Ko:return&quot;SuspenseList&quot;}if(typeof e==&quot;object&quot;)switch(e.$$typeof){case Td:return(e.displayName||&quot;Context&quot;)+&quot;.Consumer&quot;;case Od:return(e._context.displayName||&quot;Context&quot;)+&quot;.Provider&quot;;case gu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||&quot;&quot;,e=e!==&quot;&quot;?&quot;ForwardRef(&quot;+e+&quot;)&quot;:&quot;ForwardRef&quot;),e;case wu:return t=e.displayName||null,t!==null?t:Jo(e.type)||&quot;Memo&quot;;case tn:t=e._payload,e=e._init;try{return Jo(e(t))}catch{}}return null}function jm(e){var t=e.type;switch(e.tag){case 24:return&quot;Cache&quot;;case 9:return(t.displayName||&quot;Context&quot;)+&quot;.Consumer&quot;;case 10:return(t._context.displayName||&quot;Context&quot;)+&quot;.Provider&quot;;case 18:return&quot;DehydratedFragment&quot;;case 11:return e=t.render,e=e.displayName||e.name||&quot;&quot;,t.displayName||(e!==&quot;&quot;?&quot;ForwardRef(&quot;+e+&quot;)&quot;:&quot;ForwardRef&quot;);case 7:return&quot;Fragment&quot;;case 5:return t;case 4:return&quot;Portal&quot;;case 3:return&quot;Root&quot;;case 6:return&quot;Text&quot;;case 16:return Jo(t);case 8:return t===vu?&quot;StrictMode&quot;:&quot;Mode&quot;;case 22:return&quot;Offscreen&quot;;case 12:return&quot;Profiler&quot;;case 21:return&quot;Scope&quot;;case 13:return&quot;Suspense&quot;;case 19:return&quot;SuspenseList&quot;;case 25:return&quot;TracingMarker&quot;;case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==&quot;function&quot;)return t.displayName||t.name||null;if(typeof t==&quot;string&quot;)return t}return null}function En(e){switch(typeof e){case&quot;boolean&quot;:case&quot;number&quot;:case&quot;string&quot;:case&quot;undefined&quot;:return e;case&quot;object&quot;:return e;default:return&quot;&quot;}}function Rd(e){var t=e.type;return(e=e.nodeName)&amp;&amp;e.toLowerCase()===&quot;input&quot;&amp;&amp;(t===&quot;checkbox&quot;||t===&quot;radio&quot;)}function Fm(e){var t=Rd(e)?&quot;checked&quot;:&quot;value&quot;,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=&quot;&quot;+e[t];if(!e.hasOwnProperty(t)&amp;&amp;typeof n&lt;&quot;u&quot;&amp;&amp;typeof n.get==&quot;function&quot;&amp;&amp;typeof n.set==&quot;function&quot;){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=&quot;&quot;+l,s.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=&quot;&quot;+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ys(e){e._valueTracker||(e._valueTracker=Fm(e))}function Ad(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=&quot;&quot;;return e&amp;&amp;(r=Rd(e)?e.checked?&quot;true&quot;:&quot;false&quot;:e.value),e=r,e!==n?(t.setValue(e),!0):!1}function rl(e){if(e=e||(typeof document&lt;&quot;u&quot;?document:void 0),typeof e&gt;&quot;u&quot;)return null;try{return e.activeElement||e.body}catch{return e.body}}function Go(e,t){var n=t.checked;return ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function _c(e,t){var n=t.defaultValue==null?&quot;&quot;:t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=En(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===&quot;checkbox&quot;||t.type===&quot;radio&quot;?t.checked!=null:t.value!=null}}function Id(e,t){t=t.checked,t!=null&amp;&amp;yu(e,&quot;checked&quot;,t,!1)}function bo(e,t){Id(e,t);var n=En(t.value),r=t.type;if(n!=null)r===&quot;number&quot;?(n===0&amp;&amp;e.value===&quot;&quot;||e.value!=n)&amp;&amp;(e.value=&quot;&quot;+n):e.value!==&quot;&quot;+n&amp;&amp;(e.value=&quot;&quot;+n);else if(r===&quot;submit&quot;||r===&quot;reset&quot;){e.removeAttribute(&quot;value&quot;);return}t.hasOwnProperty(&quot;value&quot;)?Yo(e,t.type,n):t.hasOwnProperty(&quot;defaultValue&quot;)&amp;&amp;Yo(e,t.type,En(t.defaultValue)),t.checked==null&amp;&amp;t.defaultChecked!=null&amp;&amp;(e.defaultChecked=!!t.defaultChecked)}function xc(e,t,n){if(t.hasOwnProperty(&quot;value&quot;)||t.hasOwnProperty(&quot;defaultValue&quot;)){var r=t.type;if(!(r!==&quot;submit&quot;&amp;&amp;r!==&quot;reset&quot;||t.value!==void 0&amp;&amp;t.value!==null))return;t=&quot;&quot;+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==&quot;&quot;&amp;&amp;(e.name=&quot;&quot;),e.defaultChecked=!!e._wrapperState.initialChecked,n!==&quot;&quot;&amp;&amp;(e.name=n)}function Yo(e,t,n){(t!==&quot;number&quot;||rl(e.ownerDocument)!==e)&amp;&amp;(n==null?e.defaultValue=&quot;&quot;+e._wrapperState.initialValue:e.defaultValue!==&quot;&quot;+n&amp;&amp;(e.defaultValue=&quot;&quot;+n))}var yi=Array.isArray;function Or(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i&lt;n.length;i++)t[&quot;$&quot;+n[i]]=!0;for(n=0;n&lt;e.length;n++)i=t.hasOwnProperty(&quot;$&quot;+e[n].value),e[n].selected!==i&amp;&amp;(e[n].selected=i),i&amp;&amp;r&amp;&amp;(e[n].defaultSelected=!0)}else{for(n=&quot;&quot;+En(n),t=null,i=0;i&lt;e.length;i++){if(e[i].value===n){e[i].selected=!0,r&amp;&amp;(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&amp;&amp;(t.selected=!0)}}function Xo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(N(91));return ve({},t,{value:void 0,defaultValue:void 0,children:&quot;&quot;+e._wrapperState.initialValue})}function kc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(N(92));if(yi(n)){if(1&lt;n.length)throw Error(N(93));n=n[0]}t=n}t==null&amp;&amp;(t=&quot;&quot;),n=t}e._wrapperState={initialValue:En(n)}}function Pd(e,t){var n=En(t.value),r=En(t.defaultValue);n!=null&amp;&amp;(n=&quot;&quot;+n,n!==e.value&amp;&amp;(e.value=n),t.defaultValue==null&amp;&amp;e.defaultValue!==n&amp;&amp;(e.defaultValue=n)),r!=null&amp;&amp;(e.defaultValue=&quot;&quot;+r)}function Sc(e){var t=e.textContent;t===e._wrapperState.initialValue&amp;&amp;t!==&quot;&quot;&amp;&amp;t!==null&amp;&amp;(e.value=t)}function Ld(e){switch(e){case&quot;svg&quot;:return&quot;http://www.w3.org/2000/svg&quot;;case&quot;math&quot;:return&quot;http://www.w3.org/1998/Math/MathML&quot;;default:return&quot;http://www.w3.org/1999/xhtml&quot;}}function qo(e,t){return e==null||e===&quot;http://www.w3.org/1999/xhtml&quot;?Ld(t):e===&quot;http://www.w3.org/2000/svg&quot;&amp;&amp;t===&quot;foreignObject&quot;?&quot;http://www.w3.org/1999/xhtml&quot;:e}var vs,Md=function(e){return typeof MSApp&lt;&quot;u&quot;&amp;&amp;MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==&quot;http://www.w3.org/2000/svg&quot;||&quot;innerHTML&quot;in e)e.innerHTML=t;else{for(vs=vs||document.createElement(&quot;div&quot;),vs.innerHTML=&quot;&lt;svg&gt;&quot;+t.valueOf().toString()+&quot;&lt;/svg&gt;&quot;,t=vs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Di(e,t){if(t){var n=e.firstChild;if(n&amp;&amp;n===e.lastChild&amp;&amp;n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Si={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Vm=[&quot;Webkit&quot;,&quot;ms&quot;,&quot;Moz&quot;,&quot;O&quot;];Object.keys(Si).forEach(function(e){Vm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Si[t]=Si[e]})});function Dd(e,t,n){return t==null||typeof t==&quot;boolean&quot;||t===&quot;&quot;?&quot;&quot;:n||typeof t!=&quot;number&quot;||t===0||Si.hasOwnProperty(e)&amp;&amp;Si[e]?(&quot;&quot;+t).trim():t+&quot;px&quot;}function zd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf(&quot;--&quot;)===0,i=Dd(n,t[n],r);n===&quot;float&quot;&amp;&amp;(n=&quot;cssFloat&quot;),r?e.setProperty(n,i):e[n]=i}}var Bm=ve({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ea(e,t){if(t){if(Bm[e]&amp;&amp;(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!=&quot;object&quot;||!(&quot;__html&quot;in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&amp;&amp;typeof t.style!=&quot;object&quot;)throw Error(N(62))}}function ta(e,t){if(e.indexOf(&quot;-&quot;)===-1)return typeof t.is==&quot;string&quot;;switch(e){case&quot;annotation-xml&quot;:case&quot;color-profile&quot;:case&quot;font-face&quot;:case&quot;font-face-src&quot;:case&quot;font-face-uri&quot;:case&quot;font-face-format&quot;:case&quot;font-face-name&quot;:case&quot;missing-glyph&quot;:return!1;default:return!0}}var na=null;function _u(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&amp;&amp;(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ra=null,Tr=null,Nr=null;function Ec(e){if(e=cs(e)){if(typeof ra!=&quot;function&quot;)throw Error(N(280));var t=e.stateNode;t&amp;&amp;(t=Zl(t),ra(e.stateNode,e.type,t))}}function Ud(e){Tr?Nr?Nr.push(e):Nr=[e]:Tr=e}function $d(){if(Tr){var e=Tr,t=Nr;if(Nr=Tr=null,Ec(e),t)for(e=0;e&lt;t.length;e++)Ec(t[e])}}function jd(e,t){return e(t)}function Fd(){}var co=!1;function Vd(e,t,n){if(co)return e(t,n);co=!0;try{return jd(e,t,n)}finally{co=!1,(Tr!==null||Nr!==null)&amp;&amp;(Fd(),$d())}}function zi(e,t){var n=e.stateNode;if(n===null)return null;var r=Zl(n);if(r===null)return null;n=r[t];e:switch(t){case&quot;onClick&quot;:case&quot;onClickCapture&quot;:case&quot;onDoubleClick&quot;:case&quot;onDoubleClickCapture&quot;:case&quot;onMouseDown&quot;:case&quot;onMouseDownCapture&quot;:case&quot;onMouseMove&quot;:case&quot;onMouseMoveCapture&quot;:case&quot;onMouseUp&quot;:case&quot;onMouseUpCapture&quot;:case&quot;onMouseEnter&quot;:(r=!r.disabled)||(e=e.type,r=!(e===&quot;button&quot;||e===&quot;input&quot;||e===&quot;select&quot;||e===&quot;textarea&quot;)),e=!r;break e;default:e=!1}if(e)return null;if(n&amp;&amp;typeof n!=&quot;function&quot;)throw Error(N(231,t,typeof n));return n}var ia=!1;if(Qt)try{var si={};Object.defineProperty(si,&quot;passive&quot;,{get:function(){ia=!0}}),window.addEventListener(&quot;test&quot;,si,si),window.removeEventListener(&quot;test&quot;,si,si)}catch{ia=!1}function Wm(e,t,n,r,i,s,l,o,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ei=!1,il=null,sl=!1,sa=null,Zm={onError:function(e){Ei=!0,il=e}};function Hm(e,t,n,r,i,s,l,o,a){Ei=!1,il=null,Wm.apply(Zm,arguments)}function Qm(e,t,n,r,i,s,l,o,a){if(Hm.apply(this,arguments),Ei){if(Ei){var u=il;Ei=!1,il=null}else throw Error(N(198));sl||(sl=!0,sa=u)}}function lr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&amp;4098&amp;&amp;(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Bd(e){if(e.tag===13){var t=e.memoizedState;if(t===null&amp;&amp;(e=e.alternate,e!==null&amp;&amp;(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Cc(e){if(lr(e)!==e)throw Error(N(188))}function Km(e){var t=e.alternate;if(!t){if(t=lr(e),t===null)throw Error(N(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return Cc(i),e;if(s===r)return Cc(i),t;s=s.sibling}throw Error(N(188))}if(n.return!==r.return)n=i,r=s;else{for(var l=!1,o=i.child;o;){if(o===n){l=!0,n=i,r=s;break}if(o===r){l=!0,r=i,n=s;break}o=o.sibling}if(!l){for(o=s.child;o;){if(o===n){l=!0,n=s,r=i;break}if(o===r){l=!0,r=s,n=i;break}o=o.sibling}if(!l)throw Error(N(189))}}if(n.alternate!==r)throw Error(N(190))}if(n.tag!==3)throw Error(N(188));return n.stateNode.current===n?e:t}function Wd(e){return e=Km(e),e!==null?Zd(e):null}function Zd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Zd(e);if(t!==null)return t;e=e.sibling}return null}var Hd=it.unstable_scheduleCallback,Oc=it.unstable_cancelCallback,Jm=it.unstable_shouldYield,Gm=it.unstable_requestPaint,ke=it.unstable_now,bm=it.unstable_getCurrentPriorityLevel,xu=it.unstable_ImmediatePriority,Qd=it.unstable_UserBlockingPriority,ll=it.unstable_NormalPriority,Ym=it.unstable_LowPriority,Kd=it.unstable_IdlePriority,Fl=null,Dt=null;function Xm(e){if(Dt&amp;&amp;typeof Dt.onCommitFiberRoot==&quot;function&quot;)try{Dt.onCommitFiberRoot(Fl,e,void 0,(e.current.flags&amp;128)===128)}catch{}}var Ct=Math.clz32?Math.clz32:ty,qm=Math.log,ey=Math.LN2;function ty(e){return e&gt;&gt;&gt;=0,e===0?32:31-(qm(e)/ey|0)|0}var gs=64,ws=4194304;function vi(e){switch(e&amp;-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&amp;4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&amp;130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ol(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,l=n&amp;268435455;if(l!==0){var o=l&amp;~i;o!==0?r=vi(o):(s&amp;=l,s!==0&amp;&amp;(r=vi(s)))}else l=n&amp;~i,l!==0?r=vi(l):s!==0&amp;&amp;(r=vi(s));if(r===0)return 0;if(t!==0&amp;&amp;t!==r&amp;&amp;!(t&amp;i)&amp;&amp;(i=r&amp;-r,s=t&amp;-t,i&gt;=s||i===16&amp;&amp;(s&amp;4194240)!==0))return t;if(r&amp;4&amp;&amp;(r|=n&amp;16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&amp;=r;0&lt;t;)n=31-Ct(t),i=1&lt;&lt;n,r|=e[n],t&amp;=~i;return r}function ny(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ry(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0&lt;s;){var l=31-Ct(s),o=1&lt;&lt;l,a=i[l];a===-1?(!(o&amp;n)||o&amp;r)&amp;&amp;(i[l]=ny(o,t)):a&lt;=t&amp;&amp;(e.expiredLanes|=o),s&amp;=~o}}function la(e){return e=e.pendingLanes&amp;-1073741825,e!==0?e:e&amp;1073741824?1073741824:0}function Jd(){var e=gs;return gs&lt;&lt;=1,!(gs&amp;4194240)&amp;&amp;(gs=64),e}function fo(e){for(var t=[],n=0;31&gt;n;n++)t.push(e);return t}function as(e,t,n){e.pendingLanes|=t,t!==536870912&amp;&amp;(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ct(t),e[t]=n}function iy(e,t){var n=e.pendingLanes&amp;~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&amp;=t,e.mutableReadLanes&amp;=t,e.entangledLanes&amp;=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0&lt;n;){var i=31-Ct(n),s=1&lt;&lt;i;t[i]=0,r[i]=-1,e[i]=-1,n&amp;=~s}}function ku(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ct(n),i=1&lt;&lt;r;i&amp;t|e[r]&amp;t&amp;&amp;(e[r]|=t),n&amp;=~i}}var oe=0;function Gd(e){return e&amp;=-e,1&lt;e?4&lt;e?e&amp;268435455?16:536870912:4:1}var bd,Su,Yd,Xd,qd,oa=!1,_s=[],pn=null,mn=null,yn=null,Ui=new Map,$i=new Map,sn=[],sy=&quot;mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit&quot;.split(&quot; &quot;);function Tc(e,t){switch(e){case&quot;focusin&quot;:case&quot;focusout&quot;:pn=null;break;case&quot;dragenter&quot;:case&quot;dragleave&quot;:mn=null;break;case&quot;mouseover&quot;:case&quot;mouseout&quot;:yn=null;break;case&quot;pointerover&quot;:case&quot;pointerout&quot;:Ui.delete(t.pointerId);break;case&quot;gotpointercapture&quot;:case&quot;lostpointercapture&quot;:$i.delete(t.pointerId)}}function li(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&amp;&amp;(t=cs(t),t!==null&amp;&amp;Su(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&amp;&amp;t.indexOf(i)===-1&amp;&amp;t.push(i),e)}function ly(e,t,n,r,i){switch(t){case&quot;focusin&quot;:return pn=li(pn,e,t,n,r,i),!0;case&quot;dragenter&quot;:return mn=li(mn,e,t,n,r,i),!0;case&quot;mouseover&quot;:return yn=li(yn,e,t,n,r,i),!0;case&quot;pointerover&quot;:var s=i.pointerId;return Ui.set(s,li(Ui.get(s)||null,e,t,n,r,i)),!0;case&quot;gotpointercapture&quot;:return s=i.pointerId,$i.set(s,li($i.get(s)||null,e,t,n,r,i)),!0}return!1}function eh(e){var t=jn(e.target);if(t!==null){var n=lr(t);if(n!==null){if(t=n.tag,t===13){if(t=Bd(n),t!==null){e.blockedOn=t,qd(e.priority,function(){Yd(n)});return}}else if(t===3&amp;&amp;n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0&lt;t.length;){var n=aa(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);na=r,n.target.dispatchEvent(r),na=null}else return t=cs(n),t!==null&amp;&amp;Su(t),e.blockedOn=n,!1;t.shift()}return!0}function Nc(e,t,n){Fs(e)&amp;&amp;n.delete(t)}function oy(){oa=!1,pn!==null&amp;&amp;Fs(pn)&amp;&amp;(pn=null),mn!==null&amp;&amp;Fs(mn)&amp;&amp;(mn=null),yn!==null&amp;&amp;Fs(yn)&amp;&amp;(yn=null),Ui.forEach(Nc),$i.forEach(Nc)}function oi(e,t){e.blockedOn===t&amp;&amp;(e.blockedOn=null,oa||(oa=!0,it.unstable_scheduleCallback(it.unstable_NormalPriority,oy)))}function ji(e){function t(i){return oi(i,e)}if(0&lt;_s.length){oi(_s[0],e);for(var n=1;n&lt;_s.length;n++){var r=_s[n];r.blockedOn===e&amp;&amp;(r.blockedOn=null)}}for(pn!==null&amp;&amp;oi(pn,e),mn!==null&amp;&amp;oi(mn,e),yn!==null&amp;&amp;oi(yn,e),Ui.forEach(t),$i.forEach(t),n=0;n&lt;sn.length;n++)r=sn[n],r.blockedOn===e&amp;&amp;(r.blockedOn=null);for(;0&lt;sn.length&amp;&amp;(n=sn[0],n.blockedOn===null);)eh(n),n.blockedOn===null&amp;&amp;sn.shift()}var Rr=Yt.ReactCurrentBatchConfig,al=!0;function ay(e,t,n,r){var i=oe,s=Rr.transition;Rr.transition=null;try{oe=1,Eu(e,t,n,r)}finally{oe=i,Rr.transition=s}}function uy(e,t,n,r){var i=oe,s=Rr.transition;Rr.transition=null;try{oe=4,Eu(e,t,n,r)}finally{oe=i,Rr.transition=s}}function Eu(e,t,n,r){if(al){var i=aa(e,t,n,r);if(i===null)ko(e,t,r,ul,n),Tc(e,r);else if(ly(i,e,t,n,r))r.stopPropagation();else if(Tc(e,r),t&amp;4&amp;&amp;-1&lt;sy.indexOf(e)){for(;i!==null;){var s=cs(i);if(s!==null&amp;&amp;bd(s),s=aa(e,t,n,r),s===null&amp;&amp;ko(e,t,r,ul,n),s===i)break;i=s}i!==null&amp;&amp;r.stopPropagation()}else ko(e,t,r,null,n)}}var ul=null;function aa(e,t,n,r){if(ul=null,e=_u(r),e=jn(e),e!==null)if(t=lr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Bd(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&amp;&amp;(e=null);return ul=e,null}function th(e){switch(e){case&quot;cancel&quot;:case&quot;click&quot;:case&quot;close&quot;:case&quot;contextmenu&quot;:case&quot;copy&quot;:case&quot;cut&quot;:case&quot;auxclick&quot;:case&quot;dblclick&quot;:case&quot;dragend&quot;:case&quot;dragstart&quot;:case&quot;drop&quot;:case&quot;focusin&quot;:case&quot;focusout&quot;:case&quot;input&quot;:case&quot;invalid&quot;:case&quot;keydown&quot;:case&quot;keypress&quot;:case&quot;keyup&quot;:case&quot;mousedown&quot;:case&quot;mouseup&quot;:case&quot;paste&quot;:case&quot;pause&quot;:case&quot;play&quot;:case&quot;pointercancel&quot;:case&quot;pointerdown&quot;:case&quot;pointerup&quot;:case&quot;ratechange&quot;:case&quot;reset&quot;:case&quot;resize&quot;:case&quot;seeked&quot;:case&quot;submit&quot;:case&quot;touchcancel&quot;:case&quot;touchend&quot;:case&quot;touchstart&quot;:case&quot;volumechange&quot;:case&quot;change&quot;:case&quot;selectionchange&quot;:case&quot;textInput&quot;:case&quot;compositionstart&quot;:case&quot;compositionend&quot;:case&quot;compositionupdate&quot;:case&quot;beforeblur&quot;:case&quot;afterblur&quot;:case&quot;beforeinput&quot;:case&quot;blur&quot;:case&quot;fullscreenchange&quot;:case&quot;focus&quot;:case&quot;hashchange&quot;:case&quot;popstate&quot;:case&quot;select&quot;:case&quot;selectstart&quot;:return 1;case&quot;drag&quot;:case&quot;dragenter&quot;:case&quot;dragexit&quot;:case&quot;dragleave&quot;:case&quot;dragover&quot;:case&quot;mousemove&quot;:case&quot;mouseout&quot;:case&quot;mouseover&quot;:case&quot;pointermove&quot;:case&quot;pointerout&quot;:case&quot;pointerover&quot;:case&quot;scroll&quot;:case&quot;toggle&quot;:case&quot;touchmove&quot;:case&quot;wheel&quot;:case&quot;mouseenter&quot;:case&quot;mouseleave&quot;:case&quot;pointerenter&quot;:case&quot;pointerleave&quot;:return 4;case&quot;message&quot;:switch(bm()){case xu:return 1;case Qd:return 4;case ll:case Ym:return 16;case Kd:return 536870912;default:return 16}default:return 16}}var fn=null,Cu=null,Vs=null;function nh(){if(Vs)return Vs;var e,t=Cu,n=t.length,r,i=&quot;value&quot;in fn?fn.value:fn.textContent,s=i.length;for(e=0;e&lt;n&amp;&amp;t[e]===i[e];e++);var l=n-e;for(r=1;r&lt;=l&amp;&amp;t[n-r]===i[s-r];r++);return Vs=i.slice(e,1&lt;r?1-r:void 0)}function Bs(e){var t=e.keyCode;return&quot;charCode&quot;in e?(e=e.charCode,e===0&amp;&amp;t===13&amp;&amp;(e=13)):e=t,e===10&amp;&amp;(e=13),32&lt;=e||e===13?e:0}function xs(){return!0}function Rc(){return!1}function ot(e){function t(n,r,i,s,l){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=l,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&amp;&amp;(n=e[o],this[o]=n?n(s):s[o]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?xs:Rc,this.isPropagationStopped=Rc,this}return ve(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&amp;&amp;(n.preventDefault?n.preventDefault():typeof n.returnValue!=&quot;unknown&quot;&amp;&amp;(n.returnValue=!1),this.isDefaultPrevented=xs)},stopPropagation:function(){var n=this.nativeEvent;n&amp;&amp;(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!=&quot;unknown&quot;&amp;&amp;(n.cancelBubble=!0),this.isPropagationStopped=xs)},persist:function(){},isPersistent:xs}),t}var ni={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ou=ot(ni),us=ve({},ni,{view:0,detail:0}),cy=ot(us),ho,po,ai,Vl=ve({},us,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return&quot;movementX&quot;in e?e.movementX:(e!==ai&amp;&amp;(ai&amp;&amp;e.type===&quot;mousemove&quot;?(ho=e.screenX-ai.screenX,po=e.screenY-ai.screenY):po=ho=0,ai=e),ho)},movementY:function(e){return&quot;movementY&quot;in e?e.movementY:po}}),Ac=ot(Vl),fy=ve({},Vl,{dataTransfer:0}),dy=ot(fy),hy=ve({},us,{relatedTarget:0}),mo=ot(hy),py=ve({},ni,{animationName:0,elapsedTime:0,pseudoElement:0}),my=ot(py),yy=ve({},ni,{clipboardData:function(e){return&quot;clipboardData&quot;in e?e.clipboardData:window.clipboardData}}),vy=ot(yy),gy=ve({},ni,{data:0}),Ic=ot(gy),wy={Esc:&quot;Escape&quot;,Spacebar:&quot; &quot;,Left:&quot;ArrowLeft&quot;,Up:&quot;ArrowUp&quot;,Right:&quot;ArrowRight&quot;,Down:&quot;ArrowDown&quot;,Del:&quot;Delete&quot;,Win:&quot;OS&quot;,Menu:&quot;ContextMenu&quot;,Apps:&quot;ContextMenu&quot;,Scroll:&quot;ScrollLock&quot;,MozPrintableKey:&quot;Unidentified&quot;},_y={8:&quot;Backspace&quot;,9:&quot;Tab&quot;,12:&quot;Clear&quot;,13:&quot;Enter&quot;,16:&quot;Shift&quot;,17:&quot;Control&quot;,18:&quot;Alt&quot;,19:&quot;Pause&quot;,20:&quot;CapsLock&quot;,27:&quot;Escape&quot;,32:&quot; &quot;,33:&quot;PageUp&quot;,34:&quot;PageDown&quot;,35:&quot;End&quot;,36:&quot;Home&quot;,37:&quot;ArrowLeft&quot;,38:&quot;ArrowUp&quot;,39:&quot;ArrowRight&quot;,40:&quot;ArrowDown&quot;,45:&quot;Insert&quot;,46:&quot;Delete&quot;,112:&quot;F1&quot;,113:&quot;F2&quot;,114:&quot;F3&quot;,115:&quot;F4&quot;,116:&quot;F5&quot;,117:&quot;F6&quot;,118:&quot;F7&quot;,119:&quot;F8&quot;,120:&quot;F9&quot;,121:&quot;F10&quot;,122:&quot;F11&quot;,123:&quot;F12&quot;,144:&quot;NumLock&quot;,145:&quot;ScrollLock&quot;,224:&quot;Meta&quot;},xy={Alt:&quot;altKey&quot;,Control:&quot;ctrlKey&quot;,Meta:&quot;metaKey&quot;,Shift:&quot;shiftKey&quot;};function ky(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=xy[e])?!!t[e]:!1}function Tu(){return ky}var Sy=ve({},us,{key:function(e){if(e.key){var t=wy[e.key]||e.key;if(t!==&quot;Unidentified&quot;)return t}return e.type===&quot;keypress&quot;?(e=Bs(e),e===13?&quot;Enter&quot;:String.fromCharCode(e)):e.type===&quot;keydown&quot;||e.type===&quot;keyup&quot;?_y[e.keyCode]||&quot;Unidentified&quot;:&quot;&quot;},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tu,charCode:function(e){return e.type===&quot;keypress&quot;?Bs(e):0},keyCode:function(e){return e.type===&quot;keydown&quot;||e.type===&quot;keyup&quot;?e.keyCode:0},which:function(e){return e.type===&quot;keypress&quot;?Bs(e):e.type===&quot;keydown&quot;||e.type===&quot;keyup&quot;?e.keyCode:0}}),Ey=ot(Sy),Cy=ve({},Vl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pc=ot(Cy),Oy=ve({},us,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tu}),Ty=ot(Oy),Ny=ve({},ni,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ry=ot(Ny),Ay=ve({},Vl,{deltaX:function(e){return&quot;deltaX&quot;in e?e.deltaX:&quot;wheelDeltaX&quot;in e?-e.wheelDeltaX:0},deltaY:function(e){return&quot;deltaY&quot;in e?e.deltaY:&quot;wheelDeltaY&quot;in e?-e.wheelDeltaY:&quot;wheelDelta&quot;in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Iy=ot(Ay),Py=[9,13,27,32],Nu=Qt&amp;&amp;&quot;CompositionEvent&quot;in window,Ci=null;Qt&amp;&amp;&quot;documentMode&quot;in document&amp;&amp;(Ci=document.documentMode);var Ly=Qt&amp;&amp;&quot;TextEvent&quot;in window&amp;&amp;!Ci,rh=Qt&amp;&amp;(!Nu||Ci&amp;&amp;8&lt;Ci&amp;&amp;11&gt;=Ci),Lc=&quot; &quot;,Mc=!1;function ih(e,t){switch(e){case&quot;keyup&quot;:return Py.indexOf(t.keyCode)!==-1;case&quot;keydown&quot;:return t.keyCode!==229;case&quot;keypress&quot;:case&quot;mousedown&quot;:case&quot;focusout&quot;:return!0;default:return!1}}function sh(e){return e=e.detail,typeof e==&quot;object&quot;&amp;&amp;&quot;data&quot;in e?e.data:null}var pr=!1;function My(e,t){switch(e){case&quot;compositionend&quot;:return sh(t);case&quot;keypress&quot;:return t.which!==32?null:(Mc=!0,Lc);case&quot;textInput&quot;:return e=t.data,e===Lc&amp;&amp;Mc?null:e;default:return null}}function Dy(e,t){if(pr)return e===&quot;compositionend&quot;||!Nu&amp;&amp;ih(e,t)?(e=nh(),Vs=Cu=fn=null,pr=!1,e):null;switch(e){case&quot;paste&quot;:return null;case&quot;keypress&quot;:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&amp;&amp;t.altKey){if(t.char&amp;&amp;1&lt;t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case&quot;compositionend&quot;:return rh&amp;&amp;t.locale!==&quot;ko&quot;?null:t.data;default:return null}}var zy={color:!0,date:!0,datetime:!0,&quot;datetime-local&quot;:!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Dc(e){var t=e&amp;&amp;e.nodeName&amp;&amp;e.nodeName.toLowerCase();return t===&quot;input&quot;?!!zy[e.type]:t===&quot;textarea&quot;}function lh(e,t,n,r){Ud(r),t=cl(t,&quot;onChange&quot;),0&lt;t.length&amp;&amp;(n=new Ou(&quot;onChange&quot;,&quot;change&quot;,null,n,r),e.push({event:n,listeners:t}))}var Oi=null,Fi=null;function Uy(e){vh(e,0)}function Bl(e){var t=vr(e);if(Ad(t))return e}function $y(e,t){if(e===&quot;change&quot;)return t}var oh=!1;if(Qt){var yo;if(Qt){var vo=&quot;oninput&quot;in document;if(!vo){var zc=document.createElement(&quot;div&quot;);zc.setAttribute(&quot;oninput&quot;,&quot;return;&quot;),vo=typeof zc.oninput==&quot;function&quot;}yo=vo}else yo=!1;oh=yo&amp;&amp;(!document.documentMode||9&lt;document.documentMode)}function Uc(){Oi&amp;&amp;(Oi.detachEvent(&quot;onpropertychange&quot;,ah),Fi=Oi=null)}function ah(e){if(e.propertyName===&quot;value&quot;&amp;&amp;Bl(Fi)){var t=[];lh(t,Fi,e,_u(e)),Vd(Uy,t)}}function jy(e,t,n){e===&quot;focusin&quot;?(Uc(),Oi=t,Fi=n,Oi.attachEvent(&quot;onpropertychange&quot;,ah)):e===&quot;focusout&quot;&amp;&amp;Uc()}function Fy(e){if(e===&quot;selectionchange&quot;||e===&quot;keyup&quot;||e===&quot;keydown&quot;)return Bl(Fi)}function Vy(e,t){if(e===&quot;click&quot;)return Bl(t)}function By(e,t){if(e===&quot;input&quot;||e===&quot;change&quot;)return Bl(t)}function Wy(e,t){return e===t&amp;&amp;(e!==0||1/e===1/t)||e!==e&amp;&amp;t!==t}var Tt=typeof Object.is==&quot;function&quot;?Object.is:Wy;function Vi(e,t){if(Tt(e,t))return!0;if(typeof e!=&quot;object&quot;||e===null||typeof t!=&quot;object&quot;||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r&lt;n.length;r++){var i=n[r];if(!Zo.call(t,i)||!Tt(e[i],t[i]))return!1}return!0}function $c(e){for(;e&amp;&amp;e.firstChild;)e=e.firstChild;return e}function jc(e,t){var n=$c(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e&lt;=t&amp;&amp;r&gt;=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$c(n)}}function uh(e,t){return e&amp;&amp;t?e===t?!0:e&amp;&amp;e.nodeType===3?!1:t&amp;&amp;t.nodeType===3?uh(e,t.parentNode):&quot;contains&quot;in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&amp;16):!1:!1}function ch(){for(var e=window,t=rl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==&quot;string&quot;}catch{n=!1}if(n)e=t.contentWindow;else break;t=rl(e.document)}return t}function Ru(e){var t=e&amp;&amp;e.nodeName&amp;&amp;e.nodeName.toLowerCase();return t&amp;&amp;(t===&quot;input&quot;&amp;&amp;(e.type===&quot;text&quot;||e.type===&quot;search&quot;||e.type===&quot;tel&quot;||e.type===&quot;url&quot;||e.type===&quot;password&quot;)||t===&quot;textarea&quot;||e.contentEditable===&quot;true&quot;)}function Zy(e){var t=ch(),n=e.focusedElem,r=e.selectionRange;if(t!==n&amp;&amp;n&amp;&amp;n.ownerDocument&amp;&amp;uh(n.ownerDocument.documentElement,n)){if(r!==null&amp;&amp;Ru(n)){if(t=r.start,e=r.end,e===void 0&amp;&amp;(e=t),&quot;selectionStart&quot;in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&amp;&amp;t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&amp;&amp;s&gt;r&amp;&amp;(i=r,r=s,s=i),i=jc(n,s);var l=jc(n,r);i&amp;&amp;l&amp;&amp;(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&amp;&amp;(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s&gt;r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&amp;&amp;t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==&quot;function&quot;&amp;&amp;n.focus(),n=0;n&lt;t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Hy=Qt&amp;&amp;&quot;documentMode&quot;in document&amp;&amp;11&gt;=document.documentMode,mr=null,ua=null,Ti=null,ca=!1;function Fc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ca||mr==null||mr!==rl(r)||(r=mr,&quot;selectionStart&quot;in r&amp;&amp;Ru(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&amp;&amp;r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ti&amp;&amp;Vi(Ti,r)||(Ti=r,r=cl(ua,&quot;onSelect&quot;),0&lt;r.length&amp;&amp;(t=new Ou(&quot;onSelect&quot;,&quot;select&quot;,null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function ks(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[&quot;Webkit&quot;+e]=&quot;webkit&quot;+t,n[&quot;Moz&quot;+e]=&quot;moz&quot;+t,n}var yr={animationend:ks(&quot;Animation&quot;,&quot;AnimationEnd&quot;),animationiteration:ks(&quot;Animation&quot;,&quot;AnimationIteration&quot;),animationstart:ks(&quot;Animation&quot;,&quot;AnimationStart&quot;),transitionend:ks(&quot;Transition&quot;,&quot;TransitionEnd&quot;)},go={},fh={};Qt&amp;&amp;(fh=document.createElement(&quot;div&quot;).style,&quot;AnimationEvent&quot;in window||(delete yr.animationend.animation,delete yr.animationiteration.animation,delete yr.animationstart.animation),&quot;TransitionEvent&quot;in window||delete yr.transitionend.transition);function Wl(e){if(go[e])return go[e];if(!yr[e])return e;var t=yr[e],n;for(n in t)if(t.hasOwnProperty(n)&amp;&amp;n in fh)return go[e]=t[n];return e}var dh=Wl(&quot;animationend&quot;),hh=Wl(&quot;animationiteration&quot;),ph=Wl(&quot;animationstart&quot;),mh=Wl(&quot;transitionend&quot;),yh=new Map,Vc=&quot;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&quot;.split(&quot; &quot;);function Nn(e,t){yh.set(e,t),sr(t,[e])}for(var wo=0;wo&lt;Vc.length;wo++){var _o=Vc[wo],Qy=_o.toLowerCase(),Ky=_o[0].toUpperCase()+_o.slice(1);Nn(Qy,&quot;on&quot;+Ky)}Nn(dh,&quot;onAnimationEnd&quot;);Nn(hh,&quot;onAnimationIteration&quot;);Nn(ph,&quot;onAnimationStart&quot;);Nn(&quot;dblclick&quot;,&quot;onDoubleClick&quot;);Nn(&quot;focusin&quot;,&quot;onFocus&quot;);Nn(&quot;focusout&quot;,&quot;onBlur&quot;);Nn(mh,&quot;onTransitionEnd&quot;);Vr(&quot;onMouseEnter&quot;,[&quot;mouseout&quot;,&quot;mouseover&quot;]);Vr(&quot;onMouseLeave&quot;,[&quot;mouseout&quot;,&quot;mouseover&quot;]);Vr(&quot;onPointerEnter&quot;,[&quot;pointerout&quot;,&quot;pointerover&quot;]);Vr(&quot;onPointerLeave&quot;,[&quot;pointerout&quot;,&quot;pointerover&quot;]);sr(&quot;onChange&quot;,&quot;change click focusin focusout input keydown keyup selectionchange&quot;.split(&quot; &quot;));sr(&quot;onSelect&quot;,&quot;focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange&quot;.split(&quot; &quot;));sr(&quot;onBeforeInput&quot;,[&quot;compositionend&quot;,&quot;keypress&quot;,&quot;textInput&quot;,&quot;paste&quot;]);sr(&quot;onCompositionEnd&quot;,&quot;compositionend focusout keydown keypress keyup mousedown&quot;.split(&quot; &quot;));sr(&quot;onCompositionStart&quot;,&quot;compositionstart focusout keydown keypress keyup mousedown&quot;.split(&quot; &quot;));sr(&quot;onCompositionUpdate&quot;,&quot;compositionupdate focusout keydown keypress keyup mousedown&quot;.split(&quot; &quot;));var gi=&quot;abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting&quot;.split(&quot; &quot;),Jy=new Set(&quot;cancel close invalid load scroll toggle&quot;.split(&quot; &quot;).concat(gi));function Bc(e,t,n){var r=e.type||&quot;unknown-event&quot;;e.currentTarget=n,Qm(r,t,void 0,e),e.currentTarget=null}function vh(e,t){t=(t&amp;4)!==0;for(var n=0;n&lt;e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var l=r.length-1;0&lt;=l;l--){var o=r[l],a=o.instance,u=o.currentTarget;if(o=o.listener,a!==s&amp;&amp;i.isPropagationStopped())break e;Bc(i,o,u),s=a}else for(l=0;l&lt;r.length;l++){if(o=r[l],a=o.instance,u=o.currentTarget,o=o.listener,a!==s&amp;&amp;i.isPropagationStopped())break e;Bc(i,o,u),s=a}}}if(sl)throw e=sa,sl=!1,sa=null,e}function ce(e,t){var n=t[ma];n===void 0&amp;&amp;(n=t[ma]=new Set);var r=e+&quot;__bubble&quot;;n.has(r)||(gh(t,e,2,!1),n.add(r))}function xo(e,t,n){var r=0;t&amp;&amp;(r|=4),gh(n,e,r,t)}var Ss=&quot;_reactListening&quot;+Math.random().toString(36).slice(2);function Bi(e){if(!e[Ss]){e[Ss]=!0,Cd.forEach(function(n){n!==&quot;selectionchange&quot;&amp;&amp;(Jy.has(n)||xo(n,!1,e),xo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ss]||(t[Ss]=!0,xo(&quot;selectionchange&quot;,!1,t))}}function gh(e,t,n,r){switch(th(t)){case 1:var i=ay;break;case 4:i=uy;break;default:i=Eu}n=i.bind(null,t,n,e),i=void 0,!ia||t!==&quot;touchstart&quot;&amp;&amp;t!==&quot;touchmove&quot;&amp;&amp;t!==&quot;wheel&quot;||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ko(e,t,n,r,i){var s=r;if(!(t&amp;1)&amp;&amp;!(t&amp;2)&amp;&amp;r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var o=r.stateNode.containerInfo;if(o===i||o.nodeType===8&amp;&amp;o.parentNode===i)break;if(l===4)for(l=r.return;l!==null;){var a=l.tag;if((a===3||a===4)&amp;&amp;(a=l.stateNode.containerInfo,a===i||a.nodeType===8&amp;&amp;a.parentNode===i))return;l=l.return}for(;o!==null;){if(l=jn(o),l===null)return;if(a=l.tag,a===5||a===6){r=s=l;continue e}o=o.parentNode}}r=r.return}Vd(function(){var u=s,c=_u(n),p=[];e:{var y=yh.get(e);if(y!==void 0){var w=Ou,x=e;switch(e){case&quot;keypress&quot;:if(Bs(n)===0)break e;case&quot;keydown&quot;:case&quot;keyup&quot;:w=Ey;break;case&quot;focusin&quot;:x=&quot;focus&quot;,w=mo;break;case&quot;focusout&quot;:x=&quot;blur&quot;,w=mo;break;case&quot;beforeblur&quot;:case&quot;afterblur&quot;:w=mo;break;case&quot;click&quot;:if(n.button===2)break e;case&quot;auxclick&quot;:case&quot;dblclick&quot;:case&quot;mousedown&quot;:case&quot;mousemove&quot;:case&quot;mouseup&quot;:case&quot;mouseout&quot;:case&quot;mouseover&quot;:case&quot;contextmenu&quot;:w=Ac;break;case&quot;drag&quot;:case&quot;dragend&quot;:case&quot;dragenter&quot;:case&quot;dragexit&quot;:case&quot;dragleave&quot;:case&quot;dragover&quot;:case&quot;dragstart&quot;:case&quot;drop&quot;:w=dy;break;case&quot;touchcancel&quot;:case&quot;touchend&quot;:case&quot;touchmove&quot;:case&quot;touchstart&quot;:w=Ty;break;case dh:case hh:case ph:w=my;break;case mh:w=Ry;break;case&quot;scroll&quot;:w=cy;break;case&quot;wheel&quot;:w=Iy;break;case&quot;copy&quot;:case&quot;cut&quot;:case&quot;paste&quot;:w=vy;break;case&quot;gotpointercapture&quot;:case&quot;lostpointercapture&quot;:case&quot;pointercancel&quot;:case&quot;pointerdown&quot;:case&quot;pointermove&quot;:case&quot;pointerout&quot;:case&quot;pointerover&quot;:case&quot;pointerup&quot;:w=Pc}var E=(t&amp;4)!==0,G=!E&amp;&amp;e===&quot;scroll&quot;,m=E?y!==null?y+&quot;Capture&quot;:null:y;E=[];for(var d=u,h;d!==null;){h=d;var O=h.stateNode;if(h.tag===5&amp;&amp;O!==null&amp;&amp;(h=O,m!==null&amp;&amp;(O=zi(d,m),O!=null&amp;&amp;E.push(Wi(d,O,h)))),G)break;d=d.return}0&lt;E.length&amp;&amp;(y=new w(y,x,null,n,c),p.push({event:y,listeners:E}))}}if(!(t&amp;7)){e:{if(y=e===&quot;mouseover&quot;||e===&quot;pointerover&quot;,w=e===&quot;mouseout&quot;||e===&quot;pointerout&quot;,y&amp;&amp;n!==na&amp;&amp;(x=n.relatedTarget||n.fromElement)&amp;&amp;(jn(x)||x[Kt]))break e;if((w||y)&amp;&amp;(y=c.window===c?c:(y=c.ownerDocument)?y.defaultView||y.parentWindow:window,w?(x=n.relatedTarget||n.toElement,w=u,x=x?jn(x):null,x!==null&amp;&amp;(G=lr(x),x!==G||x.tag!==5&amp;&amp;x.tag!==6)&amp;&amp;(x=null)):(w=null,x=u),w!==x)){if(E=Ac,O=&quot;onMouseLeave&quot;,m=&quot;onMouseEnter&quot;,d=&quot;mouse&quot;,(e===&quot;pointerout&quot;||e===&quot;pointerover&quot;)&amp;&amp;(E=Pc,O=&quot;onPointerLeave&quot;,m=&quot;onPointerEnter&quot;,d=&quot;pointer&quot;),G=w==null?y:vr(w),h=x==null?y:vr(x),y=new E(O,d+&quot;leave&quot;,w,n,c),y.target=G,y.relatedTarget=h,O=null,jn(c)===u&amp;&amp;(E=new E(m,d+&quot;enter&quot;,x,n,c),E.target=h,E.relatedTarget=G,O=E),G=O,w&amp;&amp;x)t:{for(E=w,m=x,d=0,h=E;h;h=or(h))d++;for(h=0,O=m;O;O=or(O))h++;for(;0&lt;d-h;)E=or(E),d--;for(;0&lt;h-d;)m=or(m),h--;for(;d--;){if(E===m||m!==null&amp;&amp;E===m.alternate)break t;E=or(E),m=or(m)}E=null}else E=null;w!==null&amp;&amp;Wc(p,y,w,E,!1),x!==null&amp;&amp;G!==null&amp;&amp;Wc(p,G,x,E,!0)}}e:{if(y=u?vr(u):window,w=y.nodeName&amp;&amp;y.nodeName.toLowerCase(),w===&quot;select&quot;||w===&quot;input&quot;&amp;&amp;y.type===&quot;file&quot;)var L=$y;else if(Dc(y))if(oh)L=By;else{L=Fy;var z=jy}else(w=y.nodeName)&amp;&amp;w.toLowerCase()===&quot;input&quot;&amp;&amp;(y.type===&quot;checkbox&quot;||y.type===&quot;radio&quot;)&amp;&amp;(L=Vy);if(L&amp;&amp;(L=L(e,u))){lh(p,L,n,c);break e}z&amp;&amp;z(e,y,u),e===&quot;focusout&quot;&amp;&amp;(z=y._wrapperState)&amp;&amp;z.controlled&amp;&amp;y.type===&quot;number&quot;&amp;&amp;Yo(y,&quot;number&quot;,y.value)}switch(z=u?vr(u):window,e){case&quot;focusin&quot;:(Dc(z)||z.contentEditable===&quot;true&quot;)&amp;&amp;(mr=z,ua=u,Ti=null);break;case&quot;focusout&quot;:Ti=ua=mr=null;break;case&quot;mousedown&quot;:ca=!0;break;case&quot;contextmenu&quot;:case&quot;mouseup&quot;:case&quot;dragend&quot;:ca=!1,Fc(p,n,c);break;case&quot;selectionchange&quot;:if(Hy)break;case&quot;keydown&quot;:case&quot;keyup&quot;:Fc(p,n,c)}var F;if(Nu)e:{switch(e){case&quot;compositionstart&quot;:var V=&quot;onCompositionStart&quot;;break e;case&quot;compositionend&quot;:V=&quot;onCompositionEnd&quot;;break e;case&quot;compositionupdate&quot;:V=&quot;onCompositionUpdate&quot;;break e}V=void 0}else pr?ih(e,n)&amp;&amp;(V=&quot;onCompositionEnd&quot;):e===&quot;keydown&quot;&amp;&amp;n.keyCode===229&amp;&amp;(V=&quot;onCompositionStart&quot;);V&amp;&amp;(rh&amp;&amp;n.locale!==&quot;ko&quot;&amp;&amp;(pr||V!==&quot;onCompositionStart&quot;?V===&quot;onCompositionEnd&quot;&amp;&amp;pr&amp;&amp;(F=nh()):(fn=c,Cu=&quot;value&quot;in fn?fn.value:fn.textContent,pr=!0)),z=cl(u,V),0&lt;z.length&amp;&amp;(V=new Ic(V,e,null,n,c),p.push({event:V,listeners:z}),F?V.data=F:(F=sh(n),F!==null&amp;&amp;(V.data=F)))),(F=Ly?My(e,n):Dy(e,n))&amp;&amp;(u=cl(u,&quot;onBeforeInput&quot;),0&lt;u.length&amp;&amp;(c=new Ic(&quot;onBeforeInput&quot;,&quot;beforeinput&quot;,null,n,c),p.push({event:c,listeners:u}),c.data=F))}vh(p,t)})}function Wi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function cl(e,t){for(var n=t+&quot;Capture&quot;,r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&amp;&amp;s!==null&amp;&amp;(i=s,s=zi(e,n),s!=null&amp;&amp;r.unshift(Wi(e,s,i)),s=zi(e,t),s!=null&amp;&amp;r.push(Wi(e,s,i))),e=e.return}return r}function or(e){if(e===null)return null;do e=e.return;while(e&amp;&amp;e.tag!==5);return e||null}function Wc(e,t,n,r,i){for(var s=t._reactName,l=[];n!==null&amp;&amp;n!==r;){var o=n,a=o.alternate,u=o.stateNode;if(a!==null&amp;&amp;a===r)break;o.tag===5&amp;&amp;u!==null&amp;&amp;(o=u,i?(a=zi(n,s),a!=null&amp;&amp;l.unshift(Wi(n,a,o))):i||(a=zi(n,s),a!=null&amp;&amp;l.push(Wi(n,a,o)))),n=n.return}l.length!==0&amp;&amp;e.push({event:t,listeners:l})}var Gy=/\r\n?/g,by=/\u0000|\uFFFD/g;function Zc(e){return(typeof e==&quot;string&quot;?e:&quot;&quot;+e).replace(Gy,`
`).replace(by,&quot;&quot;)}function Es(e,t,n){if(t=Zc(t),Zc(e)!==t&amp;&amp;n)throw Error(N(425))}function fl(){}var fa=null,da=null;function ha(e,t){return e===&quot;textarea&quot;||e===&quot;noscript&quot;||typeof t.children==&quot;string&quot;||typeof t.children==&quot;number&quot;||typeof t.dangerouslySetInnerHTML==&quot;object&quot;&amp;&amp;t.dangerouslySetInnerHTML!==null&amp;&amp;t.dangerouslySetInnerHTML.__html!=null}var pa=typeof setTimeout==&quot;function&quot;?setTimeout:void 0,Yy=typeof clearTimeout==&quot;function&quot;?clearTimeout:void 0,Hc=typeof Promise==&quot;function&quot;?Promise:void 0,Xy=typeof queueMicrotask==&quot;function&quot;?queueMicrotask:typeof Hc&lt;&quot;u&quot;?function(e){return Hc.resolve(null).then(e).catch(qy)}:pa;function qy(e){setTimeout(function(){throw e})}function So(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&amp;&amp;i.nodeType===8)if(n=i.data,n===&quot;/$&quot;){if(r===0){e.removeChild(i),ji(t);return}r--}else n!==&quot;$&quot;&amp;&amp;n!==&quot;$?&quot;&amp;&amp;n!==&quot;$!&quot;||r++;n=i}while(n);ji(t)}function vn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===&quot;$&quot;||t===&quot;$!&quot;||t===&quot;$?&quot;)break;if(t===&quot;/$&quot;)return null}}return e}function Qc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===&quot;$&quot;||n===&quot;$!&quot;||n===&quot;$?&quot;){if(t===0)return e;t--}else n===&quot;/$&quot;&amp;&amp;t++}e=e.previousSibling}return null}var ri=Math.random().toString(36).slice(2),Mt=&quot;__reactFiber$&quot;+ri,Zi=&quot;__reactProps$&quot;+ri,Kt=&quot;__reactContainer$&quot;+ri,ma=&quot;__reactEvents$&quot;+ri,ev=&quot;__reactListeners$&quot;+ri,tv=&quot;__reactHandles$&quot;+ri;function jn(e){var t=e[Mt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Kt]||n[Mt]){if(n=t.alternate,t.child!==null||n!==null&amp;&amp;n.child!==null)for(e=Qc(e);e!==null;){if(n=e[Mt])return n;e=Qc(e)}return t}e=n,n=e.parentNode}return null}function cs(e){return e=e[Mt]||e[Kt],!e||e.tag!==5&amp;&amp;e.tag!==6&amp;&amp;e.tag!==13&amp;&amp;e.tag!==3?null:e}function vr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(N(33))}function Zl(e){return e[Zi]||null}var ya=[],gr=-1;function Rn(e){return{current:e}}function he(e){0&gt;gr||(e.current=ya[gr],ya[gr]=null,gr--)}function ae(e,t){gr++,ya[gr]=e.current,e.current=t}var Cn={},je=Rn(Cn),Ge=Rn(!1),Xn=Cn;function Br(e,t){var n=e.type.contextTypes;if(!n)return Cn;var r=e.stateNode;if(r&amp;&amp;r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&amp;&amp;(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function be(e){return e=e.childContextTypes,e!=null}function dl(){he(Ge),he(je)}function Kc(e,t,n){if(je.current!==Cn)throw Error(N(168));ae(je,t),ae(Ge,n)}function wh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!=&quot;function&quot;)return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(N(108,jm(e)||&quot;Unknown&quot;,i));return ve({},n,r)}function hl(e){return e=(e=e.stateNode)&amp;&amp;e.__reactInternalMemoizedMergedChildContext||Cn,Xn=je.current,ae(je,e),ae(Ge,Ge.current),!0}function Jc(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=wh(e,t,Xn),r.__reactInternalMemoizedMergedChildContext=e,he(Ge),he(je),ae(je,e)):he(Ge),ae(Ge,n)}var Ft=null,Hl=!1,Eo=!1;function _h(e){Ft===null?Ft=[e]:Ft.push(e)}function nv(e){Hl=!0,_h(e)}function An(){if(!Eo&amp;&amp;Ft!==null){Eo=!0;var e=0,t=oe;try{var n=Ft;for(oe=1;e&lt;n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ft=null,Hl=!1}catch(i){throw Ft!==null&amp;&amp;(Ft=Ft.slice(e+1)),Hd(xu,An),i}finally{oe=t,Eo=!1}}return null}var wr=[],_r=0,pl=null,ml=0,at=[],ut=0,qn=null,Wt=1,Zt=&quot;&quot;;function Dn(e,t){wr[_r++]=ml,wr[_r++]=pl,pl=e,ml=t}function xh(e,t,n){at[ut++]=Wt,at[ut++]=Zt,at[ut++]=qn,qn=e;var r=Wt;e=Zt;var i=32-Ct(r)-1;r&amp;=~(1&lt;&lt;i),n+=1;var s=32-Ct(t)+i;if(30&lt;s){var l=i-i%5;s=(r&amp;(1&lt;&lt;l)-1).toString(32),r&gt;&gt;=l,i-=l,Wt=1&lt;&lt;32-Ct(t)+i|n&lt;&lt;i|r,Zt=s+e}else Wt=1&lt;&lt;s|n&lt;&lt;i|r,Zt=e}function Au(e){e.return!==null&amp;&amp;(Dn(e,1),xh(e,1,0))}function Iu(e){for(;e===pl;)pl=wr[--_r],wr[_r]=null,ml=wr[--_r],wr[_r]=null;for(;e===qn;)qn=at[--ut],at[ut]=null,Zt=at[--ut],at[ut]=null,Wt=at[--ut],at[ut]=null}var rt=null,tt=null,pe=!1,Et=null;function kh(e,t){var n=pt(5,null,null,0);n.elementType=&quot;DELETED&quot;,n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Gc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,rt=e,tt=vn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===&quot;&quot;||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,rt=e,tt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=qn!==null?{id:Wt,overflow:Zt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=pt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,rt=e,tt=null,!0):!1;default:return!1}}function va(e){return(e.mode&amp;1)!==0&amp;&amp;(e.flags&amp;128)===0}function ga(e){if(pe){var t=tt;if(t){var n=t;if(!Gc(e,t)){if(va(e))throw Error(N(418));t=vn(n.nextSibling);var r=rt;t&amp;&amp;Gc(e,t)?kh(r,n):(e.flags=e.flags&amp;-4097|2,pe=!1,rt=e)}}else{if(va(e))throw Error(N(418));e.flags=e.flags&amp;-4097|2,pe=!1,rt=e}}}function bc(e){for(e=e.return;e!==null&amp;&amp;e.tag!==5&amp;&amp;e.tag!==3&amp;&amp;e.tag!==13;)e=e.return;rt=e}function Cs(e){if(e!==rt)return!1;if(!pe)return bc(e),pe=!0,!1;var t;if((t=e.tag!==3)&amp;&amp;!(t=e.tag!==5)&amp;&amp;(t=e.type,t=t!==&quot;head&quot;&amp;&amp;t!==&quot;body&quot;&amp;&amp;!ha(e.type,e.memoizedProps)),t&amp;&amp;(t=tt)){if(va(e))throw Sh(),Error(N(418));for(;t;)kh(e,t),t=vn(t.nextSibling)}if(bc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===&quot;/$&quot;){if(t===0){tt=vn(e.nextSibling);break e}t--}else n!==&quot;$&quot;&amp;&amp;n!==&quot;$!&quot;&amp;&amp;n!==&quot;$?&quot;||t++}e=e.nextSibling}tt=null}}else tt=rt?vn(e.stateNode.nextSibling):null;return!0}function Sh(){for(var e=tt;e;)e=vn(e.nextSibling)}function Wr(){tt=rt=null,pe=!1}function Pu(e){Et===null?Et=[e]:Et.push(e)}var rv=Yt.ReactCurrentBatchConfig;function xt(e,t){if(e&amp;&amp;e.defaultProps){t=ve({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&amp;&amp;(t[n]=e[n]);return t}return t}var yl=Rn(null),vl=null,xr=null,Lu=null;function Mu(){Lu=xr=vl=null}function Du(e){var t=yl.current;he(yl),e._currentValue=t}function wa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&amp;t)!==t?(e.childLanes|=t,r!==null&amp;&amp;(r.childLanes|=t)):r!==null&amp;&amp;(r.childLanes&amp;t)!==t&amp;&amp;(r.childLanes|=t),e===n)break;e=e.return}}function Ar(e,t){vl=e,Lu=xr=null,e=e.dependencies,e!==null&amp;&amp;e.firstContext!==null&amp;&amp;(e.lanes&amp;t&amp;&amp;(Je=!0),e.firstContext=null)}function yt(e){var t=e._currentValue;if(Lu!==e)if(e={context:e,memoizedValue:t,next:null},xr===null){if(vl===null)throw Error(N(308));xr=e,vl.dependencies={lanes:0,firstContext:e}}else xr=xr.next=e;return t}var Fn=null;function zu(e){Fn===null?Fn=[e]:Fn.push(e)}function Eh(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,zu(t)):(n.next=i.next,i.next=n),t.interleaved=n,Jt(e,r)}function Jt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&amp;&amp;(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&amp;&amp;(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var nn=!1;function Uu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ch(e,t){e=e.updateQueue,t.updateQueue===e&amp;&amp;(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ht(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ne&amp;2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Jt(e,n)}return i=r.interleaved,i===null?(t.next=t,zu(r)):(t.next=i.next,i.next=t),r.interleaved=t,Jt(e,n)}function Ws(e,t,n){if(t=t.updateQueue,t!==null&amp;&amp;(t=t.shared,(n&amp;4194240)!==0)){var r=t.lanes;r&amp;=e.pendingLanes,n|=r,t.lanes=n,ku(e,n)}}function Yc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&amp;&amp;(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=l:s=s.next=l,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function gl(e,t,n,r){var i=e.updateQueue;nn=!1;var s=i.firstBaseUpdate,l=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var a=o,u=a.next;a.next=null,l===null?s=u:l.next=u,l=a;var c=e.alternate;c!==null&amp;&amp;(c=c.updateQueue,o=c.lastBaseUpdate,o!==l&amp;&amp;(o===null?c.firstBaseUpdate=u:o.next=u,c.lastBaseUpdate=a))}if(s!==null){var p=i.baseState;l=0,c=u=a=null,o=s;do{var y=o.lane,w=o.eventTime;if((r&amp;y)===y){c!==null&amp;&amp;(c=c.next={eventTime:w,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var x=e,E=o;switch(y=t,w=n,E.tag){case 1:if(x=E.payload,typeof x==&quot;function&quot;){p=x.call(w,p,y);break e}p=x;break e;case 3:x.flags=x.flags&amp;-65537|128;case 0:if(x=E.payload,y=typeof x==&quot;function&quot;?x.call(w,p,y):x,y==null)break e;p=ve({},p,y);break e;case 2:nn=!0}}o.callback!==null&amp;&amp;o.lane!==0&amp;&amp;(e.flags|=64,y=i.effects,y===null?i.effects=[o]:y.push(o))}else w={eventTime:w,lane:y,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(u=c=w,a=p):c=c.next=w,l|=y;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;y=o,o=y.next,y.next=null,i.lastBaseUpdate=y,i.shared.pending=null}}while(!0);if(c===null&amp;&amp;(a=p),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do l|=i.lane,i=i.next;while(i!==t)}else s===null&amp;&amp;(i.shared.lanes=0);tr|=l,e.lanes=l,e.memoizedState=p}}function Xc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t&lt;e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!=&quot;function&quot;)throw Error(N(191,i));i.call(r)}}}var Oh=new Ed.Component().refs;function _a(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ve({},t,n),e.memoizedState=n,e.lanes===0&amp;&amp;(e.updateQueue.baseState=n)}var Ql={isMounted:function(e){return(e=e._reactInternals)?lr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Be(),i=_n(e),s=Ht(r,i);s.payload=t,n!=null&amp;&amp;(s.callback=n),t=gn(e,s,i),t!==null&amp;&amp;(Ot(t,e,i,r),Ws(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Be(),i=_n(e),s=Ht(r,i);s.tag=1,s.payload=t,n!=null&amp;&amp;(s.callback=n),t=gn(e,s,i),t!==null&amp;&amp;(Ot(t,e,i,r),Ws(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Be(),r=_n(e),i=Ht(n,r);i.tag=2,t!=null&amp;&amp;(i.callback=t),t=gn(e,i,r),t!==null&amp;&amp;(Ot(t,e,r,n),Ws(t,e,r))}};function qc(e,t,n,r,i,s,l){return e=e.stateNode,typeof e.shouldComponentUpdate==&quot;function&quot;?e.shouldComponentUpdate(r,s,l):t.prototype&amp;&amp;t.prototype.isPureReactComponent?!Vi(n,r)||!Vi(i,s):!0}function Th(e,t,n){var r=!1,i=Cn,s=t.contextType;return typeof s==&quot;object&quot;&amp;&amp;s!==null?s=yt(s):(i=be(t)?Xn:je.current,r=t.contextTypes,s=(r=r!=null)?Br(e,i):Cn),t=new t(n,s),e.memoizedState=t.state!==null&amp;&amp;t.state!==void 0?t.state:null,t.updater=Ql,e.stateNode=t,t._reactInternals=e,r&amp;&amp;(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function ef(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==&quot;function&quot;&amp;&amp;t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==&quot;function&quot;&amp;&amp;t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&amp;&amp;Ql.enqueueReplaceState(t,t.state,null)}function xa(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Oh,Uu(e);var s=t.contextType;typeof s==&quot;object&quot;&amp;&amp;s!==null?i.context=yt(s):(s=be(t)?Xn:je.current,i.context=Br(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s==&quot;function&quot;&amp;&amp;(_a(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==&quot;function&quot;||typeof i.getSnapshotBeforeUpdate==&quot;function&quot;||typeof i.UNSAFE_componentWillMount!=&quot;function&quot;&amp;&amp;typeof i.componentWillMount!=&quot;function&quot;||(t=i.state,typeof i.componentWillMount==&quot;function&quot;&amp;&amp;i.componentWillMount(),typeof i.UNSAFE_componentWillMount==&quot;function&quot;&amp;&amp;i.UNSAFE_componentWillMount(),t!==i.state&amp;&amp;Ql.enqueueReplaceState(i,i.state,null),gl(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==&quot;function&quot;&amp;&amp;(e.flags|=4194308)}function ui(e,t,n){if(e=n.ref,e!==null&amp;&amp;typeof e!=&quot;function&quot;&amp;&amp;typeof e!=&quot;object&quot;){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(N(309));var r=n.stateNode}if(!r)throw Error(N(147,e));var i=r,s=&quot;&quot;+e;return t!==null&amp;&amp;t.ref!==null&amp;&amp;typeof t.ref==&quot;function&quot;&amp;&amp;t.ref._stringRef===s?t.ref:(t=function(l){var o=i.refs;o===Oh&amp;&amp;(o=i.refs={}),l===null?delete o[s]:o[s]=l},t._stringRef=s,t)}if(typeof e!=&quot;string&quot;)throw Error(N(284));if(!n._owner)throw Error(N(290,e))}return e}function Os(e,t){throw e=Object.prototype.toString.call(t),Error(N(31,e===&quot;[object Object]&quot;?&quot;object with keys {&quot;+Object.keys(t).join(&quot;, &quot;)+&quot;}&quot;:e))}function tf(e){var t=e._init;return t(e._payload)}function Nh(e){function t(m,d){if(e){var h=m.deletions;h===null?(m.deletions=[d],m.flags|=16):h.push(d)}}function n(m,d){if(!e)return null;for(;d!==null;)t(m,d),d=d.sibling;return null}function r(m,d){for(m=new Map;d!==null;)d.key!==null?m.set(d.key,d):m.set(d.index,d),d=d.sibling;return m}function i(m,d){return m=xn(m,d),m.index=0,m.sibling=null,m}function s(m,d,h){return m.index=h,e?(h=m.alternate,h!==null?(h=h.index,h&lt;d?(m.flags|=2,d):h):(m.flags|=2,d)):(m.flags|=1048576,d)}function l(m){return e&amp;&amp;m.alternate===null&amp;&amp;(m.flags|=2),m}function o(m,d,h,O){return d===null||d.tag!==6?(d=Io(h,m.mode,O),d.return=m,d):(d=i(d,h),d.return=m,d)}function a(m,d,h,O){var L=h.type;return L===hr?c(m,d,h.props.children,O,h.key):d!==null&amp;&amp;(d.elementType===L||typeof L==&quot;object&quot;&amp;&amp;L!==null&amp;&amp;L.$$typeof===tn&amp;&amp;tf(L)===d.type)?(O=i(d,h.props),O.ref=ui(m,d,h),O.return=m,O):(O=Gs(h.type,h.key,h.props,null,m.mode,O),O.ref=ui(m,d,h),O.return=m,O)}function u(m,d,h,O){return d===null||d.tag!==4||d.stateNode.containerInfo!==h.containerInfo||d.stateNode.implementation!==h.implementation?(d=Po(h,m.mode,O),d.return=m,d):(d=i(d,h.children||[]),d.return=m,d)}function c(m,d,h,O,L){return d===null||d.tag!==7?(d=Jn(h,m.mode,O,L),d.return=m,d):(d=i(d,h),d.return=m,d)}function p(m,d,h){if(typeof d==&quot;string&quot;&amp;&amp;d!==&quot;&quot;||typeof d==&quot;number&quot;)return d=Io(&quot;&quot;+d,m.mode,h),d.return=m,d;if(typeof d==&quot;object&quot;&amp;&amp;d!==null){switch(d.$$typeof){case ms:return h=Gs(d.type,d.key,d.props,null,m.mode,h),h.ref=ui(m,null,d),h.return=m,h;case dr:return d=Po(d,m.mode,h),d.return=m,d;case tn:var O=d._init;return p(m,O(d._payload),h)}if(yi(d)||ii(d))return d=Jn(d,m.mode,h,null),d.return=m,d;Os(m,d)}return null}function y(m,d,h,O){var L=d!==null?d.key:null;if(typeof h==&quot;string&quot;&amp;&amp;h!==&quot;&quot;||typeof h==&quot;number&quot;)return L!==null?null:o(m,d,&quot;&quot;+h,O);if(typeof h==&quot;object&quot;&amp;&amp;h!==null){switch(h.$$typeof){case ms:return h.key===L?a(m,d,h,O):null;case dr:return h.key===L?u(m,d,h,O):null;case tn:return L=h._init,y(m,d,L(h._payload),O)}if(yi(h)||ii(h))return L!==null?null:c(m,d,h,O,null);Os(m,h)}return null}function w(m,d,h,O,L){if(typeof O==&quot;string&quot;&amp;&amp;O!==&quot;&quot;||typeof O==&quot;number&quot;)return m=m.get(h)||null,o(d,m,&quot;&quot;+O,L);if(typeof O==&quot;object&quot;&amp;&amp;O!==null){switch(O.$$typeof){case ms:return m=m.get(O.key===null?h:O.key)||null,a(d,m,O,L);case dr:return m=m.get(O.key===null?h:O.key)||null,u(d,m,O,L);case tn:var z=O._init;return w(m,d,h,z(O._payload),L)}if(yi(O)||ii(O))return m=m.get(h)||null,c(d,m,O,L,null);Os(d,O)}return null}function x(m,d,h,O){for(var L=null,z=null,F=d,V=d=0,ue=null;F!==null&amp;&amp;V&lt;h.length;V++){F.index&gt;V?(ue=F,F=null):ue=F.sibling;var b=y(m,F,h[V],O);if(b===null){F===null&amp;&amp;(F=ue);break}e&amp;&amp;F&amp;&amp;b.alternate===null&amp;&amp;t(m,F),d=s(b,d,V),z===null?L=b:z.sibling=b,z=b,F=ue}if(V===h.length)return n(m,F),pe&amp;&amp;Dn(m,V),L;if(F===null){for(;V&lt;h.length;V++)F=p(m,h[V],O),F!==null&amp;&amp;(d=s(F,d,V),z===null?L=F:z.sibling=F,z=F);return pe&amp;&amp;Dn(m,V),L}for(F=r(m,F);V&lt;h.length;V++)ue=w(F,m,V,h[V],O),ue!==null&amp;&amp;(e&amp;&amp;ue.alternate!==null&amp;&amp;F.delete(ue.key===null?V:ue.key),d=s(ue,d,V),z===null?L=ue:z.sibling=ue,z=ue);return e&amp;&amp;F.forEach(function(He){return t(m,He)}),pe&amp;&amp;Dn(m,V),L}function E(m,d,h,O){var L=ii(h);if(typeof L!=&quot;function&quot;)throw Error(N(150));if(h=L.call(h),h==null)throw Error(N(151));for(var z=L=null,F=d,V=d=0,ue=null,b=h.next();F!==null&amp;&amp;!b.done;V++,b=h.next()){F.index&gt;V?(ue=F,F=null):ue=F.sibling;var He=y(m,F,b.value,O);if(He===null){F===null&amp;&amp;(F=ue);break}e&amp;&amp;F&amp;&amp;He.alternate===null&amp;&amp;t(m,F),d=s(He,d,V),z===null?L=He:z.sibling=He,z=He,F=ue}if(b.done)return n(m,F),pe&amp;&amp;Dn(m,V),L;if(F===null){for(;!b.done;V++,b=h.next())b=p(m,b.value,O),b!==null&amp;&amp;(d=s(b,d,V),z===null?L=b:z.sibling=b,z=b);return pe&amp;&amp;Dn(m,V),L}for(F=r(m,F);!b.done;V++,b=h.next())b=w(F,m,V,b.value,O),b!==null&amp;&amp;(e&amp;&amp;b.alternate!==null&amp;&amp;F.delete(b.key===null?V:b.key),d=s(b,d,V),z===null?L=b:z.sibling=b,z=b);return e&amp;&amp;F.forEach(function(Xt){return t(m,Xt)}),pe&amp;&amp;Dn(m,V),L}function G(m,d,h,O){if(typeof h==&quot;object&quot;&amp;&amp;h!==null&amp;&amp;h.type===hr&amp;&amp;h.key===null&amp;&amp;(h=h.props.children),typeof h==&quot;object&quot;&amp;&amp;h!==null){switch(h.$$typeof){case ms:e:{for(var L=h.key,z=d;z!==null;){if(z.key===L){if(L=h.type,L===hr){if(z.tag===7){n(m,z.sibling),d=i(z,h.props.children),d.return=m,m=d;break e}}else if(z.elementType===L||typeof L==&quot;object&quot;&amp;&amp;L!==null&amp;&amp;L.$$typeof===tn&amp;&amp;tf(L)===z.type){n(m,z.sibling),d=i(z,h.props),d.ref=ui(m,z,h),d.return=m,m=d;break e}n(m,z);break}else t(m,z);z=z.sibling}h.type===hr?(d=Jn(h.props.children,m.mode,O,h.key),d.return=m,m=d):(O=Gs(h.type,h.key,h.props,null,m.mode,O),O.ref=ui(m,d,h),O.return=m,m=O)}return l(m);case dr:e:{for(z=h.key;d!==null;){if(d.key===z)if(d.tag===4&amp;&amp;d.stateNode.containerInfo===h.containerInfo&amp;&amp;d.stateNode.implementation===h.implementation){n(m,d.sibling),d=i(d,h.children||[]),d.return=m,m=d;break e}else{n(m,d);break}else t(m,d);d=d.sibling}d=Po(h,m.mode,O),d.return=m,m=d}return l(m);case tn:return z=h._init,G(m,d,z(h._payload),O)}if(yi(h))return x(m,d,h,O);if(ii(h))return E(m,d,h,O);Os(m,h)}return typeof h==&quot;string&quot;&amp;&amp;h!==&quot;&quot;||typeof h==&quot;number&quot;?(h=&quot;&quot;+h,d!==null&amp;&amp;d.tag===6?(n(m,d.sibling),d=i(d,h),d.return=m,m=d):(n(m,d),d=Io(h,m.mode,O),d.return=m,m=d),l(m)):n(m,d)}return G}var Zr=Nh(!0),Rh=Nh(!1),fs={},zt=Rn(fs),Hi=Rn(fs),Qi=Rn(fs);function Vn(e){if(e===fs)throw Error(N(174));return e}function $u(e,t){switch(ae(Qi,t),ae(Hi,e),ae(zt,fs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:qo(null,&quot;&quot;);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=qo(t,e)}he(zt),ae(zt,t)}function Hr(){he(zt),he(Hi),he(Qi)}function Ah(e){Vn(Qi.current);var t=Vn(zt.current),n=qo(t,e.type);t!==n&amp;&amp;(ae(Hi,e),ae(zt,n))}function ju(e){Hi.current===e&amp;&amp;(he(zt),he(Hi))}var me=Rn(0);function wl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&amp;&amp;(n=n.dehydrated,n===null||n.data===&quot;$?&quot;||n.data===&quot;$!&quot;))return t}else if(t.tag===19&amp;&amp;t.memoizedProps.revealOrder!==void 0){if(t.flags&amp;128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Co=[];function Fu(){for(var e=0;e&lt;Co.length;e++)Co[e]._workInProgressVersionPrimary=null;Co.length=0}var Zs=Yt.ReactCurrentDispatcher,Oo=Yt.ReactCurrentBatchConfig,er=0,ye=null,Te=null,Ie=null,_l=!1,Ni=!1,Ki=0,iv=0;function ze(){throw Error(N(321))}function Vu(e,t){if(t===null)return!1;for(var n=0;n&lt;t.length&amp;&amp;n&lt;e.length;n++)if(!Tt(e[n],t[n]))return!1;return!0}function Bu(e,t,n,r,i,s){if(er=s,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Zs.current=e===null||e.memoizedState===null?av:uv,e=n(r,i),Ni){s=0;do{if(Ni=!1,Ki=0,25&lt;=s)throw Error(N(301));s+=1,Ie=Te=null,t.updateQueue=null,Zs.current=cv,e=n(r,i)}while(Ni)}if(Zs.current=xl,t=Te!==null&amp;&amp;Te.next!==null,er=0,Ie=Te=ye=null,_l=!1,t)throw Error(N(300));return e}function Wu(){var e=Ki!==0;return Ki=0,e}function It(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ie===null?ye.memoizedState=Ie=e:Ie=Ie.next=e,Ie}function vt(){if(Te===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=Ie===null?ye.memoizedState:Ie.next;if(t!==null)Ie=t,Te=e;else{if(e===null)throw Error(N(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},Ie===null?ye.memoizedState=Ie=e:Ie=Ie.next=e}return Ie}function Ji(e,t){return typeof t==&quot;function&quot;?t(e):t}function To(e){var t=vt(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=Te,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var l=i.next;i.next=s.next,s.next=l}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var o=l=null,a=null,u=s;do{var c=u.lane;if((er&amp;c)===c)a!==null&amp;&amp;(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(o=a=p,l=r):a=a.next=p,ye.lanes|=c,tr|=c}u=u.next}while(u!==null&amp;&amp;u!==s);a===null?l=r:a.next=o,Tt(r,t.memoizedState)||(Je=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,ye.lanes|=s,tr|=s,i=i.next;while(i!==e)}else i===null&amp;&amp;(n.lanes=0);return[t.memoizedState,n.dispatch]}function No(e){var t=vt(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var l=i=i.next;do s=e(s,l.action),l=l.next;while(l!==i);Tt(s,t.memoizedState)||(Je=!0),t.memoizedState=s,t.baseQueue===null&amp;&amp;(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Ih(){}function Ph(e,t){var n=ye,r=vt(),i=t(),s=!Tt(r.memoizedState,i);if(s&amp;&amp;(r.memoizedState=i,Je=!0),r=r.queue,Zu(Dh.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Ie!==null&amp;&amp;Ie.memoizedState.tag&amp;1){if(n.flags|=2048,Gi(9,Mh.bind(null,n,r,i,t),void 0,null),Pe===null)throw Error(N(349));er&amp;30||Lh(n,t,i)}return i}function Lh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Mh(e,t,n,r){t.value=n,t.getSnapshot=r,zh(t)&amp;&amp;Uh(e)}function Dh(e,t,n){return n(function(){zh(t)&amp;&amp;Uh(e)})}function zh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tt(e,n)}catch{return!0}}function Uh(e){var t=Jt(e,1);t!==null&amp;&amp;Ot(t,e,1,-1)}function nf(e){var t=It();return typeof e==&quot;function&quot;&amp;&amp;(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ji,lastRenderedState:e},t.queue=e,e=e.dispatch=ov.bind(null,ye,e),[t.memoizedState,e]}function Gi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function $h(){return vt().memoizedState}function Hs(e,t,n,r){var i=It();ye.flags|=e,i.memoizedState=Gi(1|t,n,void 0,r===void 0?null:r)}function Kl(e,t,n,r){var i=vt();r=r===void 0?null:r;var s=void 0;if(Te!==null){var l=Te.memoizedState;if(s=l.destroy,r!==null&amp;&amp;Vu(r,l.deps)){i.memoizedState=Gi(t,n,s,r);return}}ye.flags|=e,i.memoizedState=Gi(1|t,n,s,r)}function rf(e,t){return Hs(8390656,8,e,t)}function Zu(e,t){return Kl(2048,8,e,t)}function jh(e,t){return Kl(4,2,e,t)}function Fh(e,t){return Kl(4,4,e,t)}function Vh(e,t){if(typeof t==&quot;function&quot;)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Bh(e,t,n){return n=n!=null?n.concat([e]):null,Kl(4,4,Vh.bind(null,t,e),n)}function Hu(){}function Wh(e,t){var n=vt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&amp;&amp;t!==null&amp;&amp;Vu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Zh(e,t){var n=vt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&amp;&amp;t!==null&amp;&amp;Vu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Hh(e,t,n){return er&amp;21?(Tt(n,t)||(n=Jd(),ye.lanes|=n,tr|=n,e.baseState=!0),t):(e.baseState&amp;&amp;(e.baseState=!1,Je=!0),e.memoizedState=n)}function sv(e,t){var n=oe;oe=n!==0&amp;&amp;4&gt;n?n:4,e(!0);var r=Oo.transition;Oo.transition={};try{e(!1),t()}finally{oe=n,Oo.transition=r}}function Qh(){return vt().memoizedState}function lv(e,t,n){var r=_n(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Kh(e))Jh(t,n);else if(n=Eh(e,t,n,r),n!==null){var i=Be();Ot(n,e,r,i),Gh(n,t,r)}}function ov(e,t,n){var r=_n(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Kh(e))Jh(t,i);else{var s=e.alternate;if(e.lanes===0&amp;&amp;(s===null||s.lanes===0)&amp;&amp;(s=t.lastRenderedReducer,s!==null))try{var l=t.lastRenderedState,o=s(l,n);if(i.hasEagerState=!0,i.eagerState=o,Tt(o,l)){var a=t.interleaved;a===null?(i.next=i,zu(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Eh(e,t,i,r),n!==null&amp;&amp;(i=Be(),Ot(n,e,r,i),Gh(n,t,r))}}function Kh(e){var t=e.alternate;return e===ye||t!==null&amp;&amp;t===ye}function Jh(e,t){Ni=_l=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Gh(e,t,n){if(n&amp;4194240){var r=t.lanes;r&amp;=e.pendingLanes,n|=r,t.lanes=n,ku(e,n)}}var xl={readContext:yt,useCallback:ze,useContext:ze,useEffect:ze,useImperativeHandle:ze,useInsertionEffect:ze,useLayoutEffect:ze,useMemo:ze,useReducer:ze,useRef:ze,useState:ze,useDebugValue:ze,useDeferredValue:ze,useTransition:ze,useMutableSource:ze,useSyncExternalStore:ze,useId:ze,unstable_isNewReconciler:!1},av={readContext:yt,useCallback:function(e,t){return It().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:rf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Hs(4194308,4,Vh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Hs(4,2,e,t)},useMemo:function(e,t){var n=It();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=It();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=lv.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=It();return e={current:e},t.memoizedState=e},useState:nf,useDebugValue:Hu,useDeferredValue:function(e){return It().memoizedState=e},useTransition:function(){var e=nf(!1),t=e[0];return e=sv.bind(null,e[1]),It().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ye,i=It();if(pe){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),Pe===null)throw Error(N(349));er&amp;30||Lh(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,rf(Dh.bind(null,r,s,e),[e]),r.flags|=2048,Gi(9,Mh.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=It(),t=Pe.identifierPrefix;if(pe){var n=Zt,r=Wt;n=(r&amp;~(1&lt;&lt;32-Ct(r)-1)).toString(32)+n,t=&quot;:&quot;+t+&quot;R&quot;+n,n=Ki++,0&lt;n&amp;&amp;(t+=&quot;H&quot;+n.toString(32)),t+=&quot;:&quot;}else n=iv++,t=&quot;:&quot;+t+&quot;r&quot;+n.toString(32)+&quot;:&quot;;return e.memoizedState=t},unstable_isNewReconciler:!1},uv={readContext:yt,useCallback:Wh,useContext:yt,useEffect:Zu,useImperativeHandle:Bh,useInsertionEffect:jh,useLayoutEffect:Fh,useMemo:Zh,useReducer:To,useRef:$h,useState:function(){return To(Ji)},useDebugValue:Hu,useDeferredValue:function(e){var t=vt();return Hh(t,Te.memoizedState,e)},useTransition:function(){var e=To(Ji)[0],t=vt().memoizedState;return[e,t]},useMutableSource:Ih,useSyncExternalStore:Ph,useId:Qh,unstable_isNewReconciler:!1},cv={readContext:yt,useCallback:Wh,useContext:yt,useEffect:Zu,useImperativeHandle:Bh,useInsertionEffect:jh,useLayoutEffect:Fh,useMemo:Zh,useReducer:No,useRef:$h,useState:function(){return No(Ji)},useDebugValue:Hu,useDeferredValue:function(e){var t=vt();return Te===null?t.memoizedState=e:Hh(t,Te.memoizedState,e)},useTransition:function(){var e=No(Ji)[0],t=vt().memoizedState;return[e,t]},useMutableSource:Ih,useSyncExternalStore:Ph,useId:Qh,unstable_isNewReconciler:!1};function Qr(e,t){try{var n=&quot;&quot;,r=t;do n+=$m(r),r=r.return;while(r);var i=n}catch(s){i=`
Error generating stack: `+s.message+`
`+s.stack}return{value:e,source:t,stack:i,digest:null}}function Ro(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ka(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var fv=typeof WeakMap==&quot;function&quot;?WeakMap:Map;function bh(e,t,n){n=Ht(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Sl||(Sl=!0,Pa=r),ka(e,t)},n}function Yh(e,t,n){n=Ht(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==&quot;function&quot;){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ka(e,t)}}var s=e.stateNode;return s!==null&amp;&amp;typeof s.componentDidCatch==&quot;function&quot;&amp;&amp;(n.callback=function(){ka(e,t),typeof r!=&quot;function&quot;&amp;&amp;(wn===null?wn=new Set([this]):wn.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:&quot;&quot;})}),n}function sf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new fv;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&amp;&amp;(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Cv.bind(null,e,t,n),t.then(e,e))}function lf(e){do{var t;if((t=e.tag===13)&amp;&amp;(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function of(e,t,n,r,i){return e.mode&amp;1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&amp;=-52805,n.tag===1&amp;&amp;(n.alternate===null?n.tag=17:(t=Ht(-1,1),t.tag=2,gn(n,t,1))),n.lanes|=1),e)}var dv=Yt.ReactCurrentOwner,Je=!1;function Fe(e,t,n,r){t.child=e===null?Rh(t,null,n,r):Zr(t,e.child,n,r)}function af(e,t,n,r,i){n=n.render;var s=t.ref;return Ar(t,i),r=Bu(e,t,n,r,s,i),n=Wu(),e!==null&amp;&amp;!Je?(t.updateQueue=e.updateQueue,t.flags&amp;=-2053,e.lanes&amp;=~i,Gt(e,t,i)):(pe&amp;&amp;n&amp;&amp;Au(t),t.flags|=1,Fe(e,t,r,i),t.child)}function uf(e,t,n,r,i){if(e===null){var s=n.type;return typeof s==&quot;function&quot;&amp;&amp;!qu(s)&amp;&amp;s.defaultProps===void 0&amp;&amp;n.compare===null&amp;&amp;n.defaultProps===void 0?(t.tag=15,t.type=s,Xh(e,t,s,r,i)):(e=Gs(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&amp;i)){var l=s.memoizedProps;if(n=n.compare,n=n!==null?n:Vi,n(l,r)&amp;&amp;e.ref===t.ref)return Gt(e,t,i)}return t.flags|=1,e=xn(s,r),e.ref=t.ref,e.return=t,t.child=e}function Xh(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Vi(s,r)&amp;&amp;e.ref===t.ref)if(Je=!1,t.pendingProps=r=s,(e.lanes&amp;i)!==0)e.flags&amp;131072&amp;&amp;(Je=!0);else return t.lanes=e.lanes,Gt(e,t,i)}return Sa(e,t,n,r,i)}function qh(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode===&quot;hidden&quot;)if(!(t.mode&amp;1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ae(Sr,et),et|=n;else{if(!(n&amp;1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ae(Sr,et),et|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ae(Sr,et),et|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,ae(Sr,et),et|=r;return Fe(e,t,i,n),t.child}function ep(e,t){var n=t.ref;(e===null&amp;&amp;n!==null||e!==null&amp;&amp;e.ref!==n)&amp;&amp;(t.flags|=512,t.flags|=2097152)}function Sa(e,t,n,r,i){var s=be(n)?Xn:je.current;return s=Br(t,s),Ar(t,i),n=Bu(e,t,n,r,s,i),r=Wu(),e!==null&amp;&amp;!Je?(t.updateQueue=e.updateQueue,t.flags&amp;=-2053,e.lanes&amp;=~i,Gt(e,t,i)):(pe&amp;&amp;r&amp;&amp;Au(t),t.flags|=1,Fe(e,t,n,i),t.child)}function cf(e,t,n,r,i){if(be(n)){var s=!0;hl(t)}else s=!1;if(Ar(t,i),t.stateNode===null)Qs(e,t),Th(t,n,r),xa(t,n,r,i),r=!0;else if(e===null){var l=t.stateNode,o=t.memoizedProps;l.props=o;var a=l.context,u=n.contextType;typeof u==&quot;object&quot;&amp;&amp;u!==null?u=yt(u):(u=be(n)?Xn:je.current,u=Br(t,u));var c=n.getDerivedStateFromProps,p=typeof c==&quot;function&quot;||typeof l.getSnapshotBeforeUpdate==&quot;function&quot;;p||typeof l.UNSAFE_componentWillReceiveProps!=&quot;function&quot;&amp;&amp;typeof l.componentWillReceiveProps!=&quot;function&quot;||(o!==r||a!==u)&amp;&amp;ef(t,l,r,u),nn=!1;var y=t.memoizedState;l.state=y,gl(t,r,l,i),a=t.memoizedState,o!==r||y!==a||Ge.current||nn?(typeof c==&quot;function&quot;&amp;&amp;(_a(t,n,c,r),a=t.memoizedState),(o=nn||qc(t,n,o,r,y,a,u))?(p||typeof l.UNSAFE_componentWillMount!=&quot;function&quot;&amp;&amp;typeof l.componentWillMount!=&quot;function&quot;||(typeof l.componentWillMount==&quot;function&quot;&amp;&amp;l.componentWillMount(),typeof l.UNSAFE_componentWillMount==&quot;function&quot;&amp;&amp;l.UNSAFE_componentWillMount()),typeof l.componentDidMount==&quot;function&quot;&amp;&amp;(t.flags|=4194308)):(typeof l.componentDidMount==&quot;function&quot;&amp;&amp;(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),l.props=r,l.state=a,l.context=u,r=o):(typeof l.componentDidMount==&quot;function&quot;&amp;&amp;(t.flags|=4194308),r=!1)}else{l=t.stateNode,Ch(e,t),o=t.memoizedProps,u=t.type===t.elementType?o:xt(t.type,o),l.props=u,p=t.pendingProps,y=l.context,a=n.contextType,typeof a==&quot;object&quot;&amp;&amp;a!==null?a=yt(a):(a=be(n)?Xn:je.current,a=Br(t,a));var w=n.getDerivedStateFromProps;(c=typeof w==&quot;function&quot;||typeof l.getSnapshotBeforeUpdate==&quot;function&quot;)||typeof l.UNSAFE_componentWillReceiveProps!=&quot;function&quot;&amp;&amp;typeof l.componentWillReceiveProps!=&quot;function&quot;||(o!==p||y!==a)&amp;&amp;ef(t,l,r,a),nn=!1,y=t.memoizedState,l.state=y,gl(t,r,l,i);var x=t.memoizedState;o!==p||y!==x||Ge.current||nn?(typeof w==&quot;function&quot;&amp;&amp;(_a(t,n,w,r),x=t.memoizedState),(u=nn||qc(t,n,u,r,y,x,a)||!1)?(c||typeof l.UNSAFE_componentWillUpdate!=&quot;function&quot;&amp;&amp;typeof l.componentWillUpdate!=&quot;function&quot;||(typeof l.componentWillUpdate==&quot;function&quot;&amp;&amp;l.componentWillUpdate(r,x,a),typeof l.UNSAFE_componentWillUpdate==&quot;function&quot;&amp;&amp;l.UNSAFE_componentWillUpdate(r,x,a)),typeof l.componentDidUpdate==&quot;function&quot;&amp;&amp;(t.flags|=4),typeof l.getSnapshotBeforeUpdate==&quot;function&quot;&amp;&amp;(t.flags|=1024)):(typeof l.componentDidUpdate!=&quot;function&quot;||o===e.memoizedProps&amp;&amp;y===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!=&quot;function&quot;||o===e.memoizedProps&amp;&amp;y===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),l.props=r,l.state=x,l.context=a,r=u):(typeof l.componentDidUpdate!=&quot;function&quot;||o===e.memoizedProps&amp;&amp;y===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!=&quot;function&quot;||o===e.memoizedProps&amp;&amp;y===e.memoizedState||(t.flags|=1024),r=!1)}return Ea(e,t,n,r,s,i)}function Ea(e,t,n,r,i,s){ep(e,t);var l=(t.flags&amp;128)!==0;if(!r&amp;&amp;!l)return i&amp;&amp;Jc(t,n,!1),Gt(e,t,s);r=t.stateNode,dv.current=t;var o=l&amp;&amp;typeof n.getDerivedStateFromError!=&quot;function&quot;?null:r.render();return t.flags|=1,e!==null&amp;&amp;l?(t.child=Zr(t,e.child,null,s),t.child=Zr(t,null,o,s)):Fe(e,t,o,s),t.memoizedState=r.state,i&amp;&amp;Jc(t,n,!0),t.child}function tp(e){var t=e.stateNode;t.pendingContext?Kc(e,t.pendingContext,t.pendingContext!==t.context):t.context&amp;&amp;Kc(e,t.context,!1),$u(e,t.containerInfo)}function ff(e,t,n,r,i){return Wr(),Pu(i),t.flags|=256,Fe(e,t,n,r),t.child}var Ca={dehydrated:null,treeContext:null,retryLane:0};function Oa(e){return{baseLanes:e,cachePool:null,transitions:null}}function np(e,t,n){var r=t.pendingProps,i=me.current,s=!1,l=(t.flags&amp;128)!==0,o;if((o=l)||(o=e!==null&amp;&amp;e.memoizedState===null?!1:(i&amp;2)!==0),o?(s=!0,t.flags&amp;=-129):(e===null||e.memoizedState!==null)&amp;&amp;(i|=1),ae(me,i&amp;1),e===null)return ga(t),e=t.memoizedState,e!==null&amp;&amp;(e=e.dehydrated,e!==null)?(t.mode&amp;1?e.data===&quot;$!&quot;?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,s?(r=t.mode,s=t.child,l={mode:&quot;hidden&quot;,children:l},!(r&amp;1)&amp;&amp;s!==null?(s.childLanes=0,s.pendingProps=l):s=bl(l,r,0,null),e=Jn(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Oa(n),t.memoizedState=Ca,e):Qu(t,l));if(i=e.memoizedState,i!==null&amp;&amp;(o=i.dehydrated,o!==null))return hv(e,t,l,r,o,i,n);if(s){s=r.fallback,l=t.mode,i=e.child,o=i.sibling;var a={mode:&quot;hidden&quot;,children:r.children};return!(l&amp;1)&amp;&amp;t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=xn(i,a),r.subtreeFlags=i.subtreeFlags&amp;14680064),o!==null?s=xn(o,s):(s=Jn(s,l,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,l=e.child.memoizedState,l=l===null?Oa(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&amp;~n,t.memoizedState=Ca,r}return s=e.child,e=s.sibling,r=xn(s,{mode:&quot;visible&quot;,children:r.children}),!(t.mode&amp;1)&amp;&amp;(r.lanes=n),r.return=t,r.sibling=null,e!==null&amp;&amp;(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Qu(e,t){return t=bl({mode:&quot;visible&quot;,children:t},e.mode,0,null),t.return=e,e.child=t}function Ts(e,t,n,r){return r!==null&amp;&amp;Pu(r),Zr(t,e.child,null,n),e=Qu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hv(e,t,n,r,i,s,l){if(n)return t.flags&amp;256?(t.flags&amp;=-257,r=Ro(Error(N(422))),Ts(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=bl({mode:&quot;visible&quot;,children:r.children},i,0,null),s=Jn(s,i,l,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&amp;1&amp;&amp;Zr(t,e.child,null,l),t.child.memoizedState=Oa(l),t.memoizedState=Ca,s);if(!(t.mode&amp;1))return Ts(e,t,l,null);if(i.data===&quot;$!&quot;){if(r=i.nextSibling&amp;&amp;i.nextSibling.dataset,r)var o=r.dgst;return r=o,s=Error(N(419)),r=Ro(s,r,void 0),Ts(e,t,l,r)}if(o=(l&amp;e.childLanes)!==0,Je||o){if(r=Pe,r!==null){switch(l&amp;-l){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&amp;(r.suspendedLanes|l)?0:i,i!==0&amp;&amp;i!==s.retryLane&amp;&amp;(s.retryLane=i,Jt(e,i),Ot(r,e,i,-1))}return Xu(),r=Ro(Error(N(421))),Ts(e,t,l,r)}return i.data===&quot;$?&quot;?(t.flags|=128,t.child=e.child,t=Ov.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,tt=vn(i.nextSibling),rt=t,pe=!0,Et=null,e!==null&amp;&amp;(at[ut++]=Wt,at[ut++]=Zt,at[ut++]=qn,Wt=e.id,Zt=e.overflow,qn=t),t=Qu(t,r.children),t.flags|=4096,t)}function df(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&amp;&amp;(r.lanes|=t),wa(e.return,t,n)}function Ao(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function rp(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Fe(e,t,r.children,n),r=me.current,r&amp;2)r=r&amp;1|2,t.flags|=128;else{if(e!==null&amp;&amp;e.flags&amp;128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&amp;&amp;df(e,n,t);else if(e.tag===19)df(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&amp;=1}if(ae(me,r),!(t.mode&amp;1))t.memoizedState=null;else switch(i){case&quot;forwards&quot;:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&amp;&amp;wl(e)===null&amp;&amp;(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ao(t,!1,i,n,s);break;case&quot;backwards&quot;:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&amp;&amp;wl(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ao(t,!0,n,null,s);break;case&quot;together&quot;:Ao(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qs(e,t){!(t.mode&amp;1)&amp;&amp;e!==null&amp;&amp;(e.alternate=null,t.alternate=null,t.flags|=2)}function Gt(e,t,n){if(e!==null&amp;&amp;(t.dependencies=e.dependencies),tr|=t.lanes,!(n&amp;t.childLanes))return null;if(e!==null&amp;&amp;t.child!==e.child)throw Error(N(153));if(t.child!==null){for(e=t.child,n=xn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=xn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function pv(e,t,n){switch(t.tag){case 3:tp(t),Wr();break;case 5:Ah(t);break;case 1:be(t.type)&amp;&amp;hl(t);break;case 4:$u(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ae(yl,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ae(me,me.current&amp;1),t.flags|=128,null):n&amp;t.child.childLanes?np(e,t,n):(ae(me,me.current&amp;1),e=Gt(e,t,n),e!==null?e.sibling:null);ae(me,me.current&amp;1);break;case 19:if(r=(n&amp;t.childLanes)!==0,e.flags&amp;128){if(r)return rp(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&amp;&amp;(i.rendering=null,i.tail=null,i.lastEffect=null),ae(me,me.current),r)break;return null;case 22:case 23:return t.lanes=0,qh(e,t,n)}return Gt(e,t,n)}var ip,Ta,sp,lp;ip=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&amp;&amp;n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ta=function(){};sp=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Vn(zt.current);var s=null;switch(n){case&quot;input&quot;:i=Go(e,i),r=Go(e,r),s=[];break;case&quot;select&quot;:i=ve({},i,{value:void 0}),r=ve({},r,{value:void 0}),s=[];break;case&quot;textarea&quot;:i=Xo(e,i),r=Xo(e,r),s=[];break;default:typeof i.onClick!=&quot;function&quot;&amp;&amp;typeof r.onClick==&quot;function&quot;&amp;&amp;(e.onclick=fl)}ea(n,r);var l;n=null;for(u in i)if(!r.hasOwnProperty(u)&amp;&amp;i.hasOwnProperty(u)&amp;&amp;i[u]!=null)if(u===&quot;style&quot;){var o=i[u];for(l in o)o.hasOwnProperty(l)&amp;&amp;(n||(n={}),n[l]=&quot;&quot;)}else u!==&quot;dangerouslySetInnerHTML&quot;&amp;&amp;u!==&quot;children&quot;&amp;&amp;u!==&quot;suppressContentEditableWarning&quot;&amp;&amp;u!==&quot;suppressHydrationWarning&quot;&amp;&amp;u!==&quot;autoFocus&quot;&amp;&amp;(Mi.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var a=r[u];if(o=i!=null?i[u]:void 0,r.hasOwnProperty(u)&amp;&amp;a!==o&amp;&amp;(a!=null||o!=null))if(u===&quot;style&quot;)if(o){for(l in o)!o.hasOwnProperty(l)||a&amp;&amp;a.hasOwnProperty(l)||(n||(n={}),n[l]=&quot;&quot;);for(l in a)a.hasOwnProperty(l)&amp;&amp;o[l]!==a[l]&amp;&amp;(n||(n={}),n[l]=a[l])}else n||(s||(s=[]),s.push(u,n)),n=a;else u===&quot;dangerouslySetInnerHTML&quot;?(a=a?a.__html:void 0,o=o?o.__html:void 0,a!=null&amp;&amp;o!==a&amp;&amp;(s=s||[]).push(u,a)):u===&quot;children&quot;?typeof a!=&quot;string&quot;&amp;&amp;typeof a!=&quot;number&quot;||(s=s||[]).push(u,&quot;&quot;+a):u!==&quot;suppressContentEditableWarning&quot;&amp;&amp;u!==&quot;suppressHydrationWarning&quot;&amp;&amp;(Mi.hasOwnProperty(u)?(a!=null&amp;&amp;u===&quot;onScroll&quot;&amp;&amp;ce(&quot;scroll&quot;,e),s||o===a||(s=[])):(s=s||[]).push(u,a))}n&amp;&amp;(s=s||[]).push(&quot;style&quot;,n);var u=s;(t.updateQueue=u)&amp;&amp;(t.flags|=4)}};lp=function(e,t,n,r){n!==r&amp;&amp;(t.flags|=4)};function ci(e,t){if(!pe)switch(e.tailMode){case&quot;hidden&quot;:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&amp;&amp;(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case&quot;collapsed&quot;:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&amp;&amp;(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ue(e){var t=e.alternate!==null&amp;&amp;e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&amp;14680064,r|=i.flags&amp;14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function mv(e,t,n){var r=t.pendingProps;switch(Iu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return be(t.type)&amp;&amp;dl(),Ue(t),null;case 3:return r=t.stateNode,Hr(),he(Ge),he(je),Fu(),r.pendingContext&amp;&amp;(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&amp;&amp;(Cs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&amp;&amp;!(t.flags&amp;256)||(t.flags|=1024,Et!==null&amp;&amp;(Da(Et),Et=null))),Ta(e,t),Ue(t),null;case 5:ju(t);var i=Vn(Qi.current);if(n=t.type,e!==null&amp;&amp;t.stateNode!=null)sp(e,t,n,r,i),e.ref!==t.ref&amp;&amp;(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(N(166));return Ue(t),null}if(e=Vn(zt.current),Cs(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Mt]=t,r[Zi]=s,e=(t.mode&amp;1)!==0,n){case&quot;dialog&quot;:ce(&quot;cancel&quot;,r),ce(&quot;close&quot;,r);break;case&quot;iframe&quot;:case&quot;object&quot;:case&quot;embed&quot;:ce(&quot;load&quot;,r);break;case&quot;video&quot;:case&quot;audio&quot;:for(i=0;i&lt;gi.length;i++)ce(gi[i],r);break;case&quot;source&quot;:ce(&quot;error&quot;,r);break;case&quot;img&quot;:case&quot;image&quot;:case&quot;link&quot;:ce(&quot;error&quot;,r),ce(&quot;load&quot;,r);break;case&quot;details&quot;:ce(&quot;toggle&quot;,r);break;case&quot;input&quot;:_c(r,s),ce(&quot;invalid&quot;,r);break;case&quot;select&quot;:r._wrapperState={wasMultiple:!!s.multiple},ce(&quot;invalid&quot;,r);break;case&quot;textarea&quot;:kc(r,s),ce(&quot;invalid&quot;,r)}ea(n,s),i=null;for(var l in s)if(s.hasOwnProperty(l)){var o=s[l];l===&quot;children&quot;?typeof o==&quot;string&quot;?r.textContent!==o&amp;&amp;(s.suppressHydrationWarning!==!0&amp;&amp;Es(r.textContent,o,e),i=[&quot;children&quot;,o]):typeof o==&quot;number&quot;&amp;&amp;r.textContent!==&quot;&quot;+o&amp;&amp;(s.suppressHydrationWarning!==!0&amp;&amp;Es(r.textContent,o,e),i=[&quot;children&quot;,&quot;&quot;+o]):Mi.hasOwnProperty(l)&amp;&amp;o!=null&amp;&amp;l===&quot;onScroll&quot;&amp;&amp;ce(&quot;scroll&quot;,r)}switch(n){case&quot;input&quot;:ys(r),xc(r,s,!0);break;case&quot;textarea&quot;:ys(r),Sc(r);break;case&quot;select&quot;:case&quot;option&quot;:break;default:typeof s.onClick==&quot;function&quot;&amp;&amp;(r.onclick=fl)}r=i,t.updateQueue=r,r!==null&amp;&amp;(t.flags|=4)}else{l=i.nodeType===9?i:i.ownerDocument,e===&quot;http://www.w3.org/1999/xhtml&quot;&amp;&amp;(e=Ld(n)),e===&quot;http://www.w3.org/1999/xhtml&quot;?n===&quot;script&quot;?(e=l.createElement(&quot;div&quot;),e.innerHTML=&quot;&lt;script&gt;&lt;\/script&gt;&quot;,e=e.removeChild(e.firstChild)):typeof r.is==&quot;string&quot;?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n===&quot;select&quot;&amp;&amp;(l=e,r.multiple?l.multiple=!0:r.size&amp;&amp;(l.size=r.size))):e=l.createElementNS(e,n),e[Mt]=t,e[Zi]=r,ip(e,t,!1,!1),t.stateNode=e;e:{switch(l=ta(n,r),n){case&quot;dialog&quot;:ce(&quot;cancel&quot;,e),ce(&quot;close&quot;,e),i=r;break;case&quot;iframe&quot;:case&quot;object&quot;:case&quot;embed&quot;:ce(&quot;load&quot;,e),i=r;break;case&quot;video&quot;:case&quot;audio&quot;:for(i=0;i&lt;gi.length;i++)ce(gi[i],e);i=r;break;case&quot;source&quot;:ce(&quot;error&quot;,e),i=r;break;case&quot;img&quot;:case&quot;image&quot;:case&quot;link&quot;:ce(&quot;error&quot;,e),ce(&quot;load&quot;,e),i=r;break;case&quot;details&quot;:ce(&quot;toggle&quot;,e),i=r;break;case&quot;input&quot;:_c(e,r),i=Go(e,r),ce(&quot;invalid&quot;,e);break;case&quot;option&quot;:i=r;break;case&quot;select&quot;:e._wrapperState={wasMultiple:!!r.multiple},i=ve({},r,{value:void 0}),ce(&quot;invalid&quot;,e);break;case&quot;textarea&quot;:kc(e,r),i=Xo(e,r),ce(&quot;invalid&quot;,e);break;default:i=r}ea(n,i),o=i;for(s in o)if(o.hasOwnProperty(s)){var a=o[s];s===&quot;style&quot;?zd(e,a):s===&quot;dangerouslySetInnerHTML&quot;?(a=a?a.__html:void 0,a!=null&amp;&amp;Md(e,a)):s===&quot;children&quot;?typeof a==&quot;string&quot;?(n!==&quot;textarea&quot;||a!==&quot;&quot;)&amp;&amp;Di(e,a):typeof a==&quot;number&quot;&amp;&amp;Di(e,&quot;&quot;+a):s!==&quot;suppressContentEditableWarning&quot;&amp;&amp;s!==&quot;suppressHydrationWarning&quot;&amp;&amp;s!==&quot;autoFocus&quot;&amp;&amp;(Mi.hasOwnProperty(s)?a!=null&amp;&amp;s===&quot;onScroll&quot;&amp;&amp;ce(&quot;scroll&quot;,e):a!=null&amp;&amp;yu(e,s,a,l))}switch(n){case&quot;input&quot;:ys(e),xc(e,r,!1);break;case&quot;textarea&quot;:ys(e),Sc(e);break;case&quot;option&quot;:r.value!=null&amp;&amp;e.setAttribute(&quot;value&quot;,&quot;&quot;+En(r.value));break;case&quot;select&quot;:e.multiple=!!r.multiple,s=r.value,s!=null?Or(e,!!r.multiple,s,!1):r.defaultValue!=null&amp;&amp;Or(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick==&quot;function&quot;&amp;&amp;(e.onclick=fl)}switch(n){case&quot;button&quot;:case&quot;input&quot;:case&quot;select&quot;:case&quot;textarea&quot;:r=!!r.autoFocus;break e;case&quot;img&quot;:r=!0;break e;default:r=!1}}r&amp;&amp;(t.flags|=4)}t.ref!==null&amp;&amp;(t.flags|=512,t.flags|=2097152)}return Ue(t),null;case 6:if(e&amp;&amp;t.stateNode!=null)lp(e,t,e.memoizedProps,r);else{if(typeof r!=&quot;string&quot;&amp;&amp;t.stateNode===null)throw Error(N(166));if(n=Vn(Qi.current),Vn(zt.current),Cs(t)){if(r=t.stateNode,n=t.memoizedProps,r[Mt]=t,(s=r.nodeValue!==n)&amp;&amp;(e=rt,e!==null))switch(e.tag){case 3:Es(r.nodeValue,n,(e.mode&amp;1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&amp;&amp;Es(r.nodeValue,n,(e.mode&amp;1)!==0)}s&amp;&amp;(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Mt]=t,t.stateNode=r}return Ue(t),null;case 13:if(he(me),r=t.memoizedState,e===null||e.memoizedState!==null&amp;&amp;e.memoizedState.dehydrated!==null){if(pe&amp;&amp;tt!==null&amp;&amp;t.mode&amp;1&amp;&amp;!(t.flags&amp;128))Sh(),Wr(),t.flags|=98560,s=!1;else if(s=Cs(t),r!==null&amp;&amp;r.dehydrated!==null){if(e===null){if(!s)throw Error(N(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(N(317));s[Mt]=t}else Wr(),!(t.flags&amp;128)&amp;&amp;(t.memoizedState=null),t.flags|=4;Ue(t),s=!1}else Et!==null&amp;&amp;(Da(Et),Et=null),s=!0;if(!s)return t.flags&amp;65536?t:null}return t.flags&amp;128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&amp;&amp;e.memoizedState!==null)&amp;&amp;r&amp;&amp;(t.child.flags|=8192,t.mode&amp;1&amp;&amp;(e===null||me.current&amp;1?Ne===0&amp;&amp;(Ne=3):Xu())),t.updateQueue!==null&amp;&amp;(t.flags|=4),Ue(t),null);case 4:return Hr(),Ta(e,t),e===null&amp;&amp;Bi(t.stateNode.containerInfo),Ue(t),null;case 10:return Du(t.type._context),Ue(t),null;case 17:return be(t.type)&amp;&amp;dl(),Ue(t),null;case 19:if(he(me),s=t.memoizedState,s===null)return Ue(t),null;if(r=(t.flags&amp;128)!==0,l=s.rendering,l===null)if(r)ci(s,!1);else{if(Ne!==0||e!==null&amp;&amp;e.flags&amp;128)for(e=t.child;e!==null;){if(l=wl(e),l!==null){for(t.flags|=128,ci(s,!1),r=l.updateQueue,r!==null&amp;&amp;(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&amp;=14680066,l=s.alternate,l===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ae(me,me.current&amp;1|2),t.child}e=e.sibling}s.tail!==null&amp;&amp;ke()&gt;Kr&amp;&amp;(t.flags|=128,r=!0,ci(s,!1),t.lanes=4194304)}else{if(!r)if(e=wl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&amp;&amp;(t.updateQueue=n,t.flags|=4),ci(s,!0),s.tail===null&amp;&amp;s.tailMode===&quot;hidden&quot;&amp;&amp;!l.alternate&amp;&amp;!pe)return Ue(t),null}else 2*ke()-s.renderingStartTime&gt;Kr&amp;&amp;n!==1073741824&amp;&amp;(t.flags|=128,r=!0,ci(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(n=s.last,n!==null?n.sibling=l:t.child=l,s.last=l)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ke(),t.sibling=null,n=me.current,ae(me,r?n&amp;1|2:n&amp;1),t):(Ue(t),null);case 22:case 23:return Yu(),r=t.memoizedState!==null,e!==null&amp;&amp;e.memoizedState!==null!==r&amp;&amp;(t.flags|=8192),r&amp;&amp;t.mode&amp;1?et&amp;1073741824&amp;&amp;(Ue(t),t.subtreeFlags&amp;6&amp;&amp;(t.flags|=8192)):Ue(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function yv(e,t){switch(Iu(t),t.tag){case 1:return be(t.type)&amp;&amp;dl(),e=t.flags,e&amp;65536?(t.flags=e&amp;-65537|128,t):null;case 3:return Hr(),he(Ge),he(je),Fu(),e=t.flags,e&amp;65536&amp;&amp;!(e&amp;128)?(t.flags=e&amp;-65537|128,t):null;case 5:return ju(t),null;case 13:if(he(me),e=t.memoizedState,e!==null&amp;&amp;e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));Wr()}return e=t.flags,e&amp;65536?(t.flags=e&amp;-65537|128,t):null;case 19:return he(me),null;case 4:return Hr(),null;case 10:return Du(t.type._context),null;case 22:case 23:return Yu(),null;case 24:return null;default:return null}}var Ns=!1,$e=!1,vv=typeof WeakSet==&quot;function&quot;?WeakSet:Set,D=null;function kr(e,t){var n=e.ref;if(n!==null)if(typeof n==&quot;function&quot;)try{n(null)}catch(r){_e(e,t,r)}else n.current=null}function Na(e,t,n){try{n()}catch(r){_e(e,t,r)}}var hf=!1;function gv(e,t){if(fa=al,e=ch(),Ru(e)){if(&quot;selectionStart&quot;in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&amp;&amp;n.defaultView||window;var r=n.getSelection&amp;&amp;n.getSelection();if(r&amp;&amp;r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var l=0,o=-1,a=-1,u=0,c=0,p=e,y=null;t:for(;;){for(var w;p!==n||i!==0&amp;&amp;p.nodeType!==3||(o=l+i),p!==s||r!==0&amp;&amp;p.nodeType!==3||(a=l+r),p.nodeType===3&amp;&amp;(l+=p.nodeValue.length),(w=p.firstChild)!==null;)y=p,p=w;for(;;){if(p===e)break t;if(y===n&amp;&amp;++u===i&amp;&amp;(o=l),y===s&amp;&amp;++c===r&amp;&amp;(a=l),(w=p.nextSibling)!==null)break;p=y,y=p.parentNode}p=w}n=o===-1||a===-1?null:{start:o,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(da={focusedElem:e,selectionRange:n},al=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&amp;1028)!==0&amp;&amp;e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var x=t.alternate;if(t.flags&amp;1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var E=x.memoizedProps,G=x.memoizedState,m=t.stateNode,d=m.getSnapshotBeforeUpdate(t.elementType===t.type?E:xt(t.type,E),G);m.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent=&quot;&quot;:h.nodeType===9&amp;&amp;h.documentElement&amp;&amp;h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(O){_e(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return x=hf,hf=!1,x}function Ri(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&amp;e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&amp;&amp;Na(t,n,s)}i=i.next}while(i!==r)}}function Jl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&amp;e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ra(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==&quot;function&quot;?t(e):t.current=e}}function op(e){var t=e.alternate;t!==null&amp;&amp;(e.alternate=null,op(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&amp;&amp;(t=e.stateNode,t!==null&amp;&amp;(delete t[Mt],delete t[Zi],delete t[ma],delete t[ev],delete t[tv])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ap(e){return e.tag===5||e.tag===3||e.tag===4}function pf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ap(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&amp;&amp;e.tag!==6&amp;&amp;e.tag!==18;){if(e.flags&amp;2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&amp;2))return e.stateNode}}function Aa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=fl));else if(r!==4&amp;&amp;(e=e.child,e!==null))for(Aa(e,t,n),e=e.sibling;e!==null;)Aa(e,t,n),e=e.sibling}function Ia(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&amp;&amp;(e=e.child,e!==null))for(Ia(e,t,n),e=e.sibling;e!==null;)Ia(e,t,n),e=e.sibling}var Le=null,St=!1;function qt(e,t,n){for(n=n.child;n!==null;)up(e,t,n),n=n.sibling}function up(e,t,n){if(Dt&amp;&amp;typeof Dt.onCommitFiberUnmount==&quot;function&quot;)try{Dt.onCommitFiberUnmount(Fl,n)}catch{}switch(n.tag){case 5:$e||kr(n,t);case 6:var r=Le,i=St;Le=null,qt(e,t,n),Le=r,St=i,Le!==null&amp;&amp;(St?(e=Le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Le.removeChild(n.stateNode));break;case 18:Le!==null&amp;&amp;(St?(e=Le,n=n.stateNode,e.nodeType===8?So(e.parentNode,n):e.nodeType===1&amp;&amp;So(e,n),ji(e)):So(Le,n.stateNode));break;case 4:r=Le,i=St,Le=n.stateNode.containerInfo,St=!0,qt(e,t,n),Le=r,St=i;break;case 0:case 11:case 14:case 15:if(!$e&amp;&amp;(r=n.updateQueue,r!==null&amp;&amp;(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,l=s.destroy;s=s.tag,l!==void 0&amp;&amp;(s&amp;2||s&amp;4)&amp;&amp;Na(n,t,l),i=i.next}while(i!==r)}qt(e,t,n);break;case 1:if(!$e&amp;&amp;(kr(n,t),r=n.stateNode,typeof r.componentWillUnmount==&quot;function&quot;))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){_e(n,t,o)}qt(e,t,n);break;case 21:qt(e,t,n);break;case 22:n.mode&amp;1?($e=(r=$e)||n.memoizedState!==null,qt(e,t,n),$e=r):qt(e,t,n);break;default:qt(e,t,n)}}function mf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&amp;&amp;(n=e.stateNode=new vv),t.forEach(function(r){var i=Tv.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function _t(e,t){var n=t.deletions;if(n!==null)for(var r=0;r&lt;n.length;r++){var i=n[r];try{var s=e,l=t,o=l;e:for(;o!==null;){switch(o.tag){case 5:Le=o.stateNode,St=!1;break e;case 3:Le=o.stateNode.containerInfo,St=!0;break e;case 4:Le=o.stateNode.containerInfo,St=!0;break e}o=o.return}if(Le===null)throw Error(N(160));up(s,l,i),Le=null,St=!1;var a=i.alternate;a!==null&amp;&amp;(a.return=null),i.return=null}catch(u){_e(i,t,u)}}if(t.subtreeFlags&amp;12854)for(t=t.child;t!==null;)cp(t,e),t=t.sibling}function cp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(_t(t,e),Rt(e),r&amp;4){try{Ri(3,e,e.return),Jl(3,e)}catch(E){_e(e,e.return,E)}try{Ri(5,e,e.return)}catch(E){_e(e,e.return,E)}}break;case 1:_t(t,e),Rt(e),r&amp;512&amp;&amp;n!==null&amp;&amp;kr(n,n.return);break;case 5:if(_t(t,e),Rt(e),r&amp;512&amp;&amp;n!==null&amp;&amp;kr(n,n.return),e.flags&amp;32){var i=e.stateNode;try{Di(i,&quot;&quot;)}catch(E){_e(e,e.return,E)}}if(r&amp;4&amp;&amp;(i=e.stateNode,i!=null)){var s=e.memoizedProps,l=n!==null?n.memoizedProps:s,o=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{o===&quot;input&quot;&amp;&amp;s.type===&quot;radio&quot;&amp;&amp;s.name!=null&amp;&amp;Id(i,s),ta(o,l);var u=ta(o,s);for(l=0;l&lt;a.length;l+=2){var c=a[l],p=a[l+1];c===&quot;style&quot;?zd(i,p):c===&quot;dangerouslySetInnerHTML&quot;?Md(i,p):c===&quot;children&quot;?Di(i,p):yu(i,c,p,u)}switch(o){case&quot;input&quot;:bo(i,s);break;case&quot;textarea&quot;:Pd(i,s);break;case&quot;select&quot;:var y=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var w=s.value;w!=null?Or(i,!!s.multiple,w,!1):y!==!!s.multiple&amp;&amp;(s.defaultValue!=null?Or(i,!!s.multiple,s.defaultValue,!0):Or(i,!!s.multiple,s.multiple?[]:&quot;&quot;,!1))}i[Zi]=s}catch(E){_e(e,e.return,E)}}break;case 6:if(_t(t,e),Rt(e),r&amp;4){if(e.stateNode===null)throw Error(N(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(E){_e(e,e.return,E)}}break;case 3:if(_t(t,e),Rt(e),r&amp;4&amp;&amp;n!==null&amp;&amp;n.memoizedState.isDehydrated)try{ji(t.containerInfo)}catch(E){_e(e,e.return,E)}break;case 4:_t(t,e),Rt(e);break;case 13:_t(t,e),Rt(e),i=e.child,i.flags&amp;8192&amp;&amp;(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&amp;&amp;i.alternate.memoizedState!==null||(Gu=ke())),r&amp;4&amp;&amp;mf(e);break;case 22:if(c=n!==null&amp;&amp;n.memoizedState!==null,e.mode&amp;1?($e=(u=$e)||c,_t(t,e),$e=u):_t(t,e),Rt(e),r&amp;8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&amp;&amp;!c&amp;&amp;e.mode&amp;1)for(D=e,c=e.child;c!==null;){for(p=D=c;D!==null;){switch(y=D,w=y.child,y.tag){case 0:case 11:case 14:case 15:Ri(4,y,y.return);break;case 1:kr(y,y.return);var x=y.stateNode;if(typeof x.componentWillUnmount==&quot;function&quot;){r=y,n=y.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(E){_e(r,n,E)}}break;case 5:kr(y,y.return);break;case 22:if(y.memoizedState!==null){vf(p);continue}}w!==null?(w.return=y,D=w):vf(p)}c=c.sibling}e:for(c=null,p=e;;){if(p.tag===5){if(c===null){c=p;try{i=p.stateNode,u?(s=i.style,typeof s.setProperty==&quot;function&quot;?s.setProperty(&quot;display&quot;,&quot;none&quot;,&quot;important&quot;):s.display=&quot;none&quot;):(o=p.stateNode,a=p.memoizedProps.style,l=a!=null&amp;&amp;a.hasOwnProperty(&quot;display&quot;)?a.display:null,o.style.display=Dd(&quot;display&quot;,l))}catch(E){_e(e,e.return,E)}}}else if(p.tag===6){if(c===null)try{p.stateNode.nodeValue=u?&quot;&quot;:p.memoizedProps}catch(E){_e(e,e.return,E)}}else if((p.tag!==22&amp;&amp;p.tag!==23||p.memoizedState===null||p===e)&amp;&amp;p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;c===p&amp;&amp;(c=null),p=p.return}c===p&amp;&amp;(c=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:_t(t,e),Rt(e),r&amp;4&amp;&amp;mf(e);break;case 21:break;default:_t(t,e),Rt(e)}}function Rt(e){var t=e.flags;if(t&amp;2){try{e:{for(var n=e.return;n!==null;){if(ap(n)){var r=n;break e}n=n.return}throw Error(N(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&amp;32&amp;&amp;(Di(i,&quot;&quot;),r.flags&amp;=-33);var s=pf(e);Ia(e,s,i);break;case 3:case 4:var l=r.stateNode.containerInfo,o=pf(e);Aa(e,o,l);break;default:throw Error(N(161))}}catch(a){_e(e,e.return,a)}e.flags&amp;=-3}t&amp;4096&amp;&amp;(e.flags&amp;=-4097)}function wv(e,t,n){D=e,fp(e)}function fp(e,t,n){for(var r=(e.mode&amp;1)!==0;D!==null;){var i=D,s=i.child;if(i.tag===22&amp;&amp;r){var l=i.memoizedState!==null||Ns;if(!l){var o=i.alternate,a=o!==null&amp;&amp;o.memoizedState!==null||$e;o=Ns;var u=$e;if(Ns=l,($e=a)&amp;&amp;!u)for(D=i;D!==null;)l=D,a=l.child,l.tag===22&amp;&amp;l.memoizedState!==null?gf(i):a!==null?(a.return=l,D=a):gf(i);for(;s!==null;)D=s,fp(s),s=s.sibling;D=i,Ns=o,$e=u}yf(e)}else i.subtreeFlags&amp;8772&amp;&amp;s!==null?(s.return=i,D=s):yf(e)}}function yf(e){for(;D!==null;){var t=D;if(t.flags&amp;8772){var n=t.alternate;try{if(t.flags&amp;8772)switch(t.tag){case 0:case 11:case 15:$e||Jl(5,t);break;case 1:var r=t.stateNode;if(t.flags&amp;4&amp;&amp;!$e)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:xt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&amp;&amp;Xc(t,s,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Xc(t,l,n)}break;case 5:var o=t.stateNode;if(n===null&amp;&amp;t.flags&amp;4){n=o;var a=t.memoizedProps;switch(t.type){case&quot;button&quot;:case&quot;input&quot;:case&quot;select&quot;:case&quot;textarea&quot;:a.autoFocus&amp;&amp;n.focus();break;case&quot;img&quot;:a.src&amp;&amp;(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var p=c.dehydrated;p!==null&amp;&amp;ji(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(N(163))}$e||t.flags&amp;512&amp;&amp;Ra(t)}catch(y){_e(t,t.return,y)}}if(t===e){D=null;break}if(n=t.sibling,n!==null){n.return=t.return,D=n;break}D=t.return}}function vf(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var n=t.sibling;if(n!==null){n.return=t.return,D=n;break}D=t.return}}function gf(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Jl(4,t)}catch(a){_e(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==&quot;function&quot;){var i=t.return;try{r.componentDidMount()}catch(a){_e(t,i,a)}}var s=t.return;try{Ra(t)}catch(a){_e(t,s,a)}break;case 5:var l=t.return;try{Ra(t)}catch(a){_e(t,l,a)}}}catch(a){_e(t,t.return,a)}if(t===e){D=null;break}var o=t.sibling;if(o!==null){o.return=t.return,D=o;break}D=t.return}}var _v=Math.ceil,kl=Yt.ReactCurrentDispatcher,Ku=Yt.ReactCurrentOwner,mt=Yt.ReactCurrentBatchConfig,ne=0,Pe=null,Ee=null,Me=0,et=0,Sr=Rn(0),Ne=0,bi=null,tr=0,Gl=0,Ju=0,Ai=null,Qe=null,Gu=0,Kr=1/0,jt=null,Sl=!1,Pa=null,wn=null,Rs=!1,dn=null,El=0,Ii=0,La=null,Ks=-1,Js=0;function Be(){return ne&amp;6?ke():Ks!==-1?Ks:Ks=ke()}function _n(e){return e.mode&amp;1?ne&amp;2&amp;&amp;Me!==0?Me&amp;-Me:rv.transition!==null?(Js===0&amp;&amp;(Js=Jd()),Js):(e=oe,e!==0||(e=window.event,e=e===void 0?16:th(e.type)),e):1}function Ot(e,t,n,r){if(50&lt;Ii)throw Ii=0,La=null,Error(N(185));as(e,n,r),(!(ne&amp;2)||e!==Pe)&amp;&amp;(e===Pe&amp;&amp;(!(ne&amp;2)&amp;&amp;(Gl|=n),Ne===4&amp;&amp;ln(e,Me)),Ye(e,r),n===1&amp;&amp;ne===0&amp;&amp;!(t.mode&amp;1)&amp;&amp;(Kr=ke()+500,Hl&amp;&amp;An()))}function Ye(e,t){var n=e.callbackNode;ry(e,t);var r=ol(e,e===Pe?Me:0);if(r===0)n!==null&amp;&amp;Oc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&amp;-r,e.callbackPriority!==t){if(n!=null&amp;&amp;Oc(n),t===1)e.tag===0?nv(wf.bind(null,e)):_h(wf.bind(null,e)),Xy(function(){!(ne&amp;6)&amp;&amp;An()}),n=null;else{switch(Gd(r)){case 1:n=xu;break;case 4:n=Qd;break;case 16:n=ll;break;case 536870912:n=Kd;break;default:n=ll}n=wp(n,dp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function dp(e,t){if(Ks=-1,Js=0,ne&amp;6)throw Error(N(327));var n=e.callbackNode;if(Ir()&amp;&amp;e.callbackNode!==n)return null;var r=ol(e,e===Pe?Me:0);if(r===0)return null;if(r&amp;30||r&amp;e.expiredLanes||t)t=Cl(e,r);else{t=r;var i=ne;ne|=2;var s=pp();(Pe!==e||Me!==t)&amp;&amp;(jt=null,Kr=ke()+500,Kn(e,t));do try{Sv();break}catch(o){hp(e,o)}while(!0);Mu(),kl.current=s,ne=i,Ee!==null?t=0:(Pe=null,Me=0,t=Ne)}if(t!==0){if(t===2&amp;&amp;(i=la(e),i!==0&amp;&amp;(r=i,t=Ma(e,i))),t===1)throw n=bi,Kn(e,0),ln(e,r),Ye(e,ke()),n;if(t===6)ln(e,r);else{if(i=e.current.alternate,!(r&amp;30)&amp;&amp;!xv(i)&amp;&amp;(t=Cl(e,r),t===2&amp;&amp;(s=la(e),s!==0&amp;&amp;(r=s,t=Ma(e,s))),t===1))throw n=bi,Kn(e,0),ln(e,r),Ye(e,ke()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(N(345));case 2:zn(e,Qe,jt);break;case 3:if(ln(e,r),(r&amp;130023424)===r&amp;&amp;(t=Gu+500-ke(),10&lt;t)){if(ol(e,0)!==0)break;if(i=e.suspendedLanes,(i&amp;r)!==r){Be(),e.pingedLanes|=e.suspendedLanes&amp;i;break}e.timeoutHandle=pa(zn.bind(null,e,Qe,jt),t);break}zn(e,Qe,jt);break;case 4:if(ln(e,r),(r&amp;4194240)===r)break;for(t=e.eventTimes,i=-1;0&lt;r;){var l=31-Ct(r);s=1&lt;&lt;l,l=t[l],l&gt;i&amp;&amp;(i=l),r&amp;=~s}if(r=i,r=ke()-r,r=(120&gt;r?120:480&gt;r?480:1080&gt;r?1080:1920&gt;r?1920:3e3&gt;r?3e3:4320&gt;r?4320:1960*_v(r/1960))-r,10&lt;r){e.timeoutHandle=pa(zn.bind(null,e,Qe,jt),r);break}zn(e,Qe,jt);break;case 5:zn(e,Qe,jt);break;default:throw Error(N(329))}}}return Ye(e,ke()),e.callbackNode===n?dp.bind(null,e):null}function Ma(e,t){var n=Ai;return e.current.memoizedState.isDehydrated&amp;&amp;(Kn(e,t).flags|=256),e=Cl(e,t),e!==2&amp;&amp;(t=Qe,Qe=n,t!==null&amp;&amp;Da(t)),e}function Da(e){Qe===null?Qe=e:Qe.push.apply(Qe,e)}function xv(e){for(var t=e;;){if(t.flags&amp;16384){var n=t.updateQueue;if(n!==null&amp;&amp;(n=n.stores,n!==null))for(var r=0;r&lt;n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Tt(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&amp;16384&amp;&amp;n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ln(e,t){for(t&amp;=~Ju,t&amp;=~Gl,e.suspendedLanes|=t,e.pingedLanes&amp;=~t,e=e.expirationTimes;0&lt;t;){var n=31-Ct(t),r=1&lt;&lt;n;e[n]=-1,t&amp;=~r}}function wf(e){if(ne&amp;6)throw Error(N(327));Ir();var t=ol(e,0);if(!(t&amp;1))return Ye(e,ke()),null;var n=Cl(e,t);if(e.tag!==0&amp;&amp;n===2){var r=la(e);r!==0&amp;&amp;(t=r,n=Ma(e,r))}if(n===1)throw n=bi,Kn(e,0),ln(e,t),Ye(e,ke()),n;if(n===6)throw Error(N(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,zn(e,Qe,jt),Ye(e,ke()),null}function bu(e,t){var n=ne;ne|=1;try{return e(t)}finally{ne=n,ne===0&amp;&amp;(Kr=ke()+500,Hl&amp;&amp;An())}}function nr(e){dn!==null&amp;&amp;dn.tag===0&amp;&amp;!(ne&amp;6)&amp;&amp;Ir();var t=ne;ne|=1;var n=mt.transition,r=oe;try{if(mt.transition=null,oe=1,e)return e()}finally{oe=r,mt.transition=n,ne=t,!(ne&amp;6)&amp;&amp;An()}}function Yu(){et=Sr.current,he(Sr)}function Kn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&amp;&amp;(e.timeoutHandle=-1,Yy(n)),Ee!==null)for(n=Ee.return;n!==null;){var r=n;switch(Iu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&amp;&amp;dl();break;case 3:Hr(),he(Ge),he(je),Fu();break;case 5:ju(r);break;case 4:Hr();break;case 13:he(me);break;case 19:he(me);break;case 10:Du(r.type._context);break;case 22:case 23:Yu()}n=n.return}if(Pe=e,Ee=e=xn(e.current,null),Me=et=t,Ne=0,bi=null,Ju=Gl=tr=0,Qe=Ai=null,Fn!==null){for(t=0;t&lt;Fn.length;t++)if(n=Fn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var l=s.next;s.next=i,r.next=l}n.pending=r}Fn=null}return e}function hp(e,t){do{var n=Ee;try{if(Mu(),Zs.current=xl,_l){for(var r=ye.memoizedState;r!==null;){var i=r.queue;i!==null&amp;&amp;(i.pending=null),r=r.next}_l=!1}if(er=0,Ie=Te=ye=null,Ni=!1,Ki=0,Ku.current=null,n===null||n.return===null){Ne=1,bi=t,Ee=null;break}e:{var s=e,l=n.return,o=n,a=t;if(t=Me,o.flags|=32768,a!==null&amp;&amp;typeof a==&quot;object&quot;&amp;&amp;typeof a.then==&quot;function&quot;){var u=a,c=o,p=c.tag;if(!(c.mode&amp;1)&amp;&amp;(p===0||p===11||p===15)){var y=c.alternate;y?(c.updateQueue=y.updateQueue,c.memoizedState=y.memoizedState,c.lanes=y.lanes):(c.updateQueue=null,c.memoizedState=null)}var w=lf(l);if(w!==null){w.flags&amp;=-257,of(w,l,o,s,t),w.mode&amp;1&amp;&amp;sf(s,u,t),t=w,a=u;var x=t.updateQueue;if(x===null){var E=new Set;E.add(a),t.updateQueue=E}else x.add(a);break e}else{if(!(t&amp;1)){sf(s,u,t),Xu();break e}a=Error(N(426))}}else if(pe&amp;&amp;o.mode&amp;1){var G=lf(l);if(G!==null){!(G.flags&amp;65536)&amp;&amp;(G.flags|=256),of(G,l,o,s,t),Pu(Qr(a,o));break e}}s=a=Qr(a,o),Ne!==4&amp;&amp;(Ne=2),Ai===null?Ai=[s]:Ai.push(s),s=l;do{switch(s.tag){case 3:s.flags|=65536,t&amp;=-t,s.lanes|=t;var m=bh(s,a,t);Yc(s,m);break e;case 1:o=a;var d=s.type,h=s.stateNode;if(!(s.flags&amp;128)&amp;&amp;(typeof d.getDerivedStateFromError==&quot;function&quot;||h!==null&amp;&amp;typeof h.componentDidCatch==&quot;function&quot;&amp;&amp;(wn===null||!wn.has(h)))){s.flags|=65536,t&amp;=-t,s.lanes|=t;var O=Yh(s,o,t);Yc(s,O);break e}}s=s.return}while(s!==null)}yp(n)}catch(L){t=L,Ee===n&amp;&amp;n!==null&amp;&amp;(Ee=n=n.return);continue}break}while(!0)}function pp(){var e=kl.current;return kl.current=xl,e===null?xl:e}function Xu(){(Ne===0||Ne===3||Ne===2)&amp;&amp;(Ne=4),Pe===null||!(tr&amp;268435455)&amp;&amp;!(Gl&amp;268435455)||ln(Pe,Me)}function Cl(e,t){var n=ne;ne|=2;var r=pp();(Pe!==e||Me!==t)&amp;&amp;(jt=null,Kn(e,t));do try{kv();break}catch(i){hp(e,i)}while(!0);if(Mu(),ne=n,kl.current=r,Ee!==null)throw Error(N(261));return Pe=null,Me=0,Ne}function kv(){for(;Ee!==null;)mp(Ee)}function Sv(){for(;Ee!==null&amp;&amp;!Jm();)mp(Ee)}function mp(e){var t=gp(e.alternate,e,et);e.memoizedProps=e.pendingProps,t===null?yp(e):Ee=t,Ku.current=null}function yp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&amp;32768){if(n=yv(n,t),n!==null){n.flags&amp;=32767,Ee=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ne=6,Ee=null;return}}else if(n=mv(n,t,et),n!==null){Ee=n;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);Ne===0&amp;&amp;(Ne=5)}function zn(e,t,n){var r=oe,i=mt.transition;try{mt.transition=null,oe=1,Ev(e,t,n,r)}finally{mt.transition=i,oe=r}return null}function Ev(e,t,n,r){do Ir();while(dn!==null);if(ne&amp;6)throw Error(N(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(N(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(iy(e,s),e===Pe&amp;&amp;(Ee=Pe=null,Me=0),!(n.subtreeFlags&amp;2064)&amp;&amp;!(n.flags&amp;2064)||Rs||(Rs=!0,wp(ll,function(){return Ir(),null})),s=(n.flags&amp;15990)!==0,n.subtreeFlags&amp;15990||s){s=mt.transition,mt.transition=null;var l=oe;oe=1;var o=ne;ne|=4,Ku.current=null,gv(e,n),cp(n,e),Zy(da),al=!!fa,da=fa=null,e.current=n,wv(n),Gm(),ne=o,oe=l,mt.transition=s}else e.current=n;if(Rs&amp;&amp;(Rs=!1,dn=e,El=i),s=e.pendingLanes,s===0&amp;&amp;(wn=null),Xm(n.stateNode),Ye(e,ke()),t!==null)for(r=e.onRecoverableError,n=0;n&lt;t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Sl)throw Sl=!1,e=Pa,Pa=null,e;return El&amp;1&amp;&amp;e.tag!==0&amp;&amp;Ir(),s=e.pendingLanes,s&amp;1?e===La?Ii++:(Ii=0,La=e):Ii=0,An(),null}function Ir(){if(dn!==null){var e=Gd(El),t=mt.transition,n=oe;try{if(mt.transition=null,oe=16&gt;e?16:e,dn===null)var r=!1;else{if(e=dn,dn=null,El=0,ne&amp;6)throw Error(N(331));var i=ne;for(ne|=4,D=e.current;D!==null;){var s=D,l=s.child;if(D.flags&amp;16){var o=s.deletions;if(o!==null){for(var a=0;a&lt;o.length;a++){var u=o[a];for(D=u;D!==null;){var c=D;switch(c.tag){case 0:case 11:case 15:Ri(8,c,s)}var p=c.child;if(p!==null)p.return=c,D=p;else for(;D!==null;){c=D;var y=c.sibling,w=c.return;if(op(c),c===u){D=null;break}if(y!==null){y.return=w,D=y;break}D=w}}}var x=s.alternate;if(x!==null){var E=x.child;if(E!==null){x.child=null;do{var G=E.sibling;E.sibling=null,E=G}while(E!==null)}}D=s}}if(s.subtreeFlags&amp;2064&amp;&amp;l!==null)l.return=s,D=l;else e:for(;D!==null;){if(s=D,s.flags&amp;2048)switch(s.tag){case 0:case 11:case 15:Ri(9,s,s.return)}var m=s.sibling;if(m!==null){m.return=s.return,D=m;break e}D=s.return}}var d=e.current;for(D=d;D!==null;){l=D;var h=l.child;if(l.subtreeFlags&amp;2064&amp;&amp;h!==null)h.return=l,D=h;else e:for(l=d;D!==null;){if(o=D,o.flags&amp;2048)try{switch(o.tag){case 0:case 11:case 15:Jl(9,o)}}catch(L){_e(o,o.return,L)}if(o===l){D=null;break e}var O=o.sibling;if(O!==null){O.return=o.return,D=O;break e}D=o.return}}if(ne=i,An(),Dt&amp;&amp;typeof Dt.onPostCommitFiberRoot==&quot;function&quot;)try{Dt.onPostCommitFiberRoot(Fl,e)}catch{}r=!0}return r}finally{oe=n,mt.transition=t}}return!1}function _f(e,t,n){t=Qr(n,t),t=bh(e,t,1),e=gn(e,t,1),t=Be(),e!==null&amp;&amp;(as(e,1,t),Ye(e,t))}function _e(e,t,n){if(e.tag===3)_f(e,e,n);else for(;t!==null;){if(t.tag===3){_f(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==&quot;function&quot;||typeof r.componentDidCatch==&quot;function&quot;&amp;&amp;(wn===null||!wn.has(r))){e=Qr(n,e),e=Yh(t,e,1),t=gn(t,e,1),e=Be(),t!==null&amp;&amp;(as(t,1,e),Ye(t,e));break}}t=t.return}}function Cv(e,t,n){var r=e.pingCache;r!==null&amp;&amp;r.delete(t),t=Be(),e.pingedLanes|=e.suspendedLanes&amp;n,Pe===e&amp;&amp;(Me&amp;n)===n&amp;&amp;(Ne===4||Ne===3&amp;&amp;(Me&amp;130023424)===Me&amp;&amp;500&gt;ke()-Gu?Kn(e,0):Ju|=n),Ye(e,t)}function vp(e,t){t===0&amp;&amp;(e.mode&amp;1?(t=ws,ws&lt;&lt;=1,!(ws&amp;130023424)&amp;&amp;(ws=4194304)):t=1);var n=Be();e=Jt(e,t),e!==null&amp;&amp;(as(e,t,n),Ye(e,n))}function Ov(e){var t=e.memoizedState,n=0;t!==null&amp;&amp;(n=t.retryLane),vp(e,n)}function Tv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&amp;&amp;(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&amp;&amp;r.delete(t),vp(e,n)}var gp;gp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ge.current)Je=!0;else{if(!(e.lanes&amp;n)&amp;&amp;!(t.flags&amp;128))return Je=!1,pv(e,t,n);Je=!!(e.flags&amp;131072)}else Je=!1,pe&amp;&amp;t.flags&amp;1048576&amp;&amp;xh(t,ml,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Qs(e,t),e=t.pendingProps;var i=Br(t,je.current);Ar(t,n),i=Bu(null,t,r,e,i,n);var s=Wu();return t.flags|=1,typeof i==&quot;object&quot;&amp;&amp;i!==null&amp;&amp;typeof i.render==&quot;function&quot;&amp;&amp;i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,be(r)?(s=!0,hl(t)):s=!1,t.memoizedState=i.state!==null&amp;&amp;i.state!==void 0?i.state:null,Uu(t),i.updater=Ql,t.stateNode=i,i._reactInternals=t,xa(t,r,e,n),t=Ea(null,t,r,!0,s,n)):(t.tag=0,pe&amp;&amp;s&amp;&amp;Au(t),Fe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Qs(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Rv(r),e=xt(r,e),i){case 0:t=Sa(null,t,r,e,n);break e;case 1:t=cf(null,t,r,e,n);break e;case 11:t=af(null,t,r,e,n);break e;case 14:t=uf(null,t,r,xt(r.type,e),n);break e}throw Error(N(306,r,&quot;&quot;))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xt(r,i),Sa(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xt(r,i),cf(e,t,r,i,n);case 3:e:{if(tp(t),e===null)throw Error(N(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Ch(e,t),gl(t,r,null,n);var l=t.memoizedState;if(r=l.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&amp;256){i=Qr(Error(N(423)),t),t=ff(e,t,r,n,i);break e}else if(r!==i){i=Qr(Error(N(424)),t),t=ff(e,t,r,n,i);break e}else for(tt=vn(t.stateNode.containerInfo.firstChild),rt=t,pe=!0,Et=null,n=Rh(t,null,r,n),t.child=n;n;)n.flags=n.flags&amp;-3|4096,n=n.sibling;else{if(Wr(),r===i){t=Gt(e,t,n);break e}Fe(e,t,r,n)}t=t.child}return t;case 5:return Ah(t),e===null&amp;&amp;ga(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,l=i.children,ha(r,i)?l=null:s!==null&amp;&amp;ha(r,s)&amp;&amp;(t.flags|=32),ep(e,t),Fe(e,t,l,n),t.child;case 6:return e===null&amp;&amp;ga(t),null;case 13:return np(e,t,n);case 4:return $u(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Zr(t,null,r,n):Fe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xt(r,i),af(e,t,r,i,n);case 7:return Fe(e,t,t.pendingProps,n),t.child;case 8:return Fe(e,t,t.pendingProps.children,n),t.child;case 12:return Fe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,l=i.value,ae(yl,r._currentValue),r._currentValue=l,s!==null)if(Tt(s.value,l)){if(s.children===i.children&amp;&amp;!Ge.current){t=Gt(e,t,n);break e}}else for(s=t.child,s!==null&amp;&amp;(s.return=t);s!==null;){var o=s.dependencies;if(o!==null){l=s.child;for(var a=o.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=Ht(-1,n&amp;-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&amp;&amp;(a.lanes|=n),wa(s.return,n,t),o.lanes|=n;break}a=a.next}}else if(s.tag===10)l=s.type===t.type?null:s.child;else if(s.tag===18){if(l=s.return,l===null)throw Error(N(341));l.lanes|=n,o=l.alternate,o!==null&amp;&amp;(o.lanes|=n),wa(l,n,t),l=s.sibling}else l=s.child;if(l!==null)l.return=s;else for(l=s;l!==null;){if(l===t){l=null;break}if(s=l.sibling,s!==null){s.return=l.return,l=s;break}l=l.return}s=l}Fe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ar(t,n),i=yt(i),r=r(i),t.flags|=1,Fe(e,t,r,n),t.child;case 14:return r=t.type,i=xt(r,t.pendingProps),i=xt(r.type,i),uf(e,t,r,i,n);case 15:return Xh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xt(r,i),Qs(e,t),t.tag=1,be(r)?(e=!0,hl(t)):e=!1,Ar(t,n),Th(t,r,i),xa(t,r,i,n),Ea(null,t,r,!0,e,n);case 19:return rp(e,t,n);case 22:return qh(e,t,n)}throw Error(N(156,t.tag))};function wp(e,t){return Hd(e,t)}function Nv(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pt(e,t,n,r){return new Nv(e,t,n,r)}function qu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Rv(e){if(typeof e==&quot;function&quot;)return qu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===gu)return 11;if(e===wu)return 14}return 2}function xn(e,t){var n=e.alternate;return n===null?(n=pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&amp;14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gs(e,t,n,r,i,s){var l=2;if(r=e,typeof e==&quot;function&quot;)qu(e)&amp;&amp;(l=1);else if(typeof e==&quot;string&quot;)l=5;else e:switch(e){case hr:return Jn(n.children,i,s,t);case vu:l=8,i|=8;break;case Ho:return e=pt(12,n,t,i|2),e.elementType=Ho,e.lanes=s,e;case Qo:return e=pt(13,n,t,i),e.elementType=Qo,e.lanes=s,e;case Ko:return e=pt(19,n,t,i),e.elementType=Ko,e.lanes=s,e;case Nd:return bl(n,i,s,t);default:if(typeof e==&quot;object&quot;&amp;&amp;e!==null)switch(e.$$typeof){case Od:l=10;break e;case Td:l=9;break e;case gu:l=11;break e;case wu:l=14;break e;case tn:l=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,&quot;&quot;))}return t=pt(l,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function Jn(e,t,n,r){return e=pt(7,e,r,t),e.lanes=n,e}function bl(e,t,n,r){return e=pt(22,e,r,t),e.elementType=Nd,e.lanes=n,e.stateNode={isHidden:!1},e}function Io(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function Po(e,t,n){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Av(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=fo(0),this.expirationTimes=fo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ec(e,t,n,r,i,s,l,o,a){return e=new Av(e,t,n,o,a),t===1?(t=1,s===!0&amp;&amp;(t|=8)):t=0,s=pt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Uu(s),e}function Iv(e,t,n){var r=3&lt;arguments.length&amp;&amp;arguments[3]!==void 0?arguments[3]:null;return{$$typeof:dr,key:r==null?null:&quot;&quot;+r,children:e,containerInfo:t,implementation:n}}function _p(e){if(!e)return Cn;e=e._reactInternals;e:{if(lr(e)!==e||e.tag!==1)throw Error(N(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(be(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(N(171))}if(e.tag===1){var n=e.type;if(be(n))return wh(e,n,t)}return t}function xp(e,t,n,r,i,s,l,o,a){return e=ec(n,r,!0,e,i,s,l,o,a),e.context=_p(null),n=e.current,r=Be(),i=_n(n),s=Ht(r,i),s.callback=t??null,gn(n,s,i),e.current.lanes=i,as(e,i,r),Ye(e,r),e}function Yl(e,t,n,r){var i=t.current,s=Be(),l=_n(i);return n=_p(n),t.context===null?t.context=n:t.pendingContext=n,t=Ht(s,l),t.payload={element:e},r=r===void 0?null:r,r!==null&amp;&amp;(t.callback=r),e=gn(i,t,l),e!==null&amp;&amp;(Ot(e,i,l,s),Ws(e,i,l)),l}function Ol(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function xf(e,t){if(e=e.memoizedState,e!==null&amp;&amp;e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&amp;&amp;n&lt;t?n:t}}function tc(e,t){xf(e,t),(e=e.alternate)&amp;&amp;xf(e,t)}function Pv(){return null}var kp=typeof reportError==&quot;function&quot;?reportError:function(e){console.error(e)};function nc(e){this._internalRoot=e}Xl.prototype.render=nc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));Yl(e,t,null,null)};Xl.prototype.unmount=nc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;nr(function(){Yl(null,e,null,null)}),t[Kt]=null}};function Xl(e){this._internalRoot=e}Xl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xd();e={blockedOn:null,target:e,priority:t};for(var n=0;n&lt;sn.length&amp;&amp;t!==0&amp;&amp;t&lt;sn[n].priority;n++);sn.splice(n,0,e),n===0&amp;&amp;eh(e)}};function rc(e){return!(!e||e.nodeType!==1&amp;&amp;e.nodeType!==9&amp;&amp;e.nodeType!==11)}function ql(e){return!(!e||e.nodeType!==1&amp;&amp;e.nodeType!==9&amp;&amp;e.nodeType!==11&amp;&amp;(e.nodeType!==8||e.nodeValue!==&quot; react-mount-point-unstable &quot;))}function kf(){}function Lv(e,t,n,r,i){if(i){if(typeof r==&quot;function&quot;){var s=r;r=function(){var u=Ol(l);s.call(u)}}var l=xp(t,r,e,0,null,!1,!1,&quot;&quot;,kf);return e._reactRootContainer=l,e[Kt]=l.current,Bi(e.nodeType===8?e.parentNode:e),nr(),l}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==&quot;function&quot;){var o=r;r=function(){var u=Ol(a);o.call(u)}}var a=ec(e,0,!1,null,null,!1,!1,&quot;&quot;,kf);return e._reactRootContainer=a,e[Kt]=a.current,Bi(e.nodeType===8?e.parentNode:e),nr(function(){Yl(t,a,n,r)}),a}function eo(e,t,n,r,i){var s=n._reactRootContainer;if(s){var l=s;if(typeof i==&quot;function&quot;){var o=i;i=function(){var a=Ol(l);o.call(a)}}Yl(t,l,e,i)}else l=Lv(n,t,e,i,r);return Ol(l)}bd=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=vi(t.pendingLanes);n!==0&amp;&amp;(ku(t,n|1),Ye(t,ke()),!(ne&amp;6)&amp;&amp;(Kr=ke()+500,An()))}break;case 13:nr(function(){var r=Jt(e,1);if(r!==null){var i=Be();Ot(r,e,1,i)}}),tc(e,1)}};Su=function(e){if(e.tag===13){var t=Jt(e,134217728);if(t!==null){var n=Be();Ot(t,e,134217728,n)}tc(e,134217728)}};Yd=function(e){if(e.tag===13){var t=_n(e),n=Jt(e,t);if(n!==null){var r=Be();Ot(n,e,t,r)}tc(e,t)}};Xd=function(){return oe};qd=function(e,t){var n=oe;try{return oe=e,t()}finally{oe=n}};ra=function(e,t,n){switch(t){case&quot;input&quot;:if(bo(e,n),t=n.name,n.type===&quot;radio&quot;&amp;&amp;t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(&quot;input[name=&quot;+JSON.stringify(&quot;&quot;+t)+&#39;][type=&quot;radio&quot;]&#39;),t=0;t&lt;n.length;t++){var r=n[t];if(r!==e&amp;&amp;r.form===e.form){var i=Zl(r);if(!i)throw Error(N(90));Ad(r),bo(r,i)}}}break;case&quot;textarea&quot;:Pd(e,n);break;case&quot;select&quot;:t=n.value,t!=null&amp;&amp;Or(e,!!n.multiple,t,!1)}};jd=bu;Fd=nr;var Mv={usingClientEntryPoint:!1,Events:[cs,vr,Zl,Ud,$d,bu]},fi={findFiberByHostInstance:jn,bundleType:0,version:&quot;18.2.0&quot;,rendererPackageName:&quot;react-dom&quot;},Dv={bundleType:fi.bundleType,version:fi.version,rendererPackageName:fi.rendererPackageName,rendererConfig:fi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Yt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Wd(e),e===null?null:e.stateNode},findFiberByHostInstance:fi.findFiberByHostInstance||Pv,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:&quot;18.2.0-next-9e3b772b8-20220608&quot;};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&lt;&quot;u&quot;){var As=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!As.isDisabled&amp;&amp;As.supportsFiber)try{Fl=As.inject(Dv),Dt=As}catch{}}lt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Mv;lt.createPortal=function(e,t){var n=2&lt;arguments.length&amp;&amp;arguments[2]!==void 0?arguments[2]:null;if(!rc(t))throw Error(N(200));return Iv(e,t,null,n)};lt.createRoot=function(e,t){if(!rc(e))throw Error(N(299));var n=!1,r=&quot;&quot;,i=kp;return t!=null&amp;&amp;(t.unstable_strictMode===!0&amp;&amp;(n=!0),t.identifierPrefix!==void 0&amp;&amp;(r=t.identifierPrefix),t.onRecoverableError!==void 0&amp;&amp;(i=t.onRecoverableError)),t=ec(e,1,!1,null,null,n,!1,r,i),e[Kt]=t.current,Bi(e.nodeType===8?e.parentNode:e),new nc(t)};lt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==&quot;function&quot;?Error(N(188)):(e=Object.keys(e).join(&quot;,&quot;),Error(N(268,e)));return e=Wd(t),e=e===null?null:e.stateNode,e};lt.flushSync=function(e){return nr(e)};lt.hydrate=function(e,t,n){if(!ql(t))throw Error(N(200));return eo(null,e,t,!0,n)};lt.hydrateRoot=function(e,t,n){if(!rc(e))throw Error(N(405));var r=n!=null&amp;&amp;n.hydratedSources||null,i=!1,s=&quot;&quot;,l=kp;if(n!=null&amp;&amp;(n.unstable_strictMode===!0&amp;&amp;(i=!0),n.identifierPrefix!==void 0&amp;&amp;(s=n.identifierPrefix),n.onRecoverableError!==void 0&amp;&amp;(l=n.onRecoverableError)),t=xp(t,null,e,1,n??null,i,!1,s,l),e[Kt]=t.current,Bi(e),r)for(e=0;e&lt;r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Xl(t)};lt.render=function(e,t,n){if(!ql(t))throw Error(N(200));return eo(null,e,t,!1,n)};lt.unmountComponentAtNode=function(e){if(!ql(e))throw Error(N(40));return e._reactRootContainer?(nr(function(){eo(null,null,e,!1,function(){e._reactRootContainer=null,e[Kt]=null})}),!0):!1};lt.unstable_batchedUpdates=bu;lt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ql(n))throw Error(N(200));if(e==null||e._reactInternals===void 0)throw Error(N(38));return eo(e,t,n,!1,r)};lt.version=&quot;18.2.0-next-9e3b772b8-20220608&quot;;function Sp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&gt;&quot;u&quot;||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=&quot;function&quot;))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Sp)}catch(e){console.error(e)}}Sp(),xd.exports=lt;var zv=xd.exports,Sf=zv;Wo.createRoot=Sf.createRoot,Wo.hydrateRoot=Sf.hydrateRoot;const Pr=new WeakMap,bs=new WeakMap,Tl={current:[]};let Lo=!1;const Is=new Set,Ef=new Map;function Ep(e){const t=Array.from(e).sort((n,r)=&gt;n instanceof kn&amp;&amp;n.options.deps.includes(r)?1:r instanceof kn&amp;&amp;r.options.deps.includes(n)?-1:0);for(const n of t){if(Tl.current.includes(n))continue;Tl.current.push(n),n.recompute();const r=bs.get(n);if(r)for(const i of r){const s=Pr.get(i);s&amp;&amp;Ep(s)}}}function Uv(e){e.listeners.forEach(t=&gt;t({prevVal:e.prevState,currentVal:e.state}))}function $v(e){e.listeners.forEach(t=&gt;t({prevVal:e.prevState,currentVal:e.state}))}function jv(e){if(Is.add(e),!Lo)try{for(Lo=!0;Is.size&gt;0;){const t=Array.from(Is);Is.clear();for(const n of t){const r=Ef.get(n)??n.prevState;n.prevState=r,Uv(n)}for(const n of t){const r=Pr.get(n);r&amp;&amp;(Tl.current.push(n),Ep(r))}for(const n of t){const r=Pr.get(n);if(r)for(const i of r)$v(i)}}}finally{Lo=!1,Tl.current=[],Ef.clear()}}function Fv(e){return typeof e==&quot;function&quot;}class za{constructor(t,n){this.listeners=new Set,this.subscribe=r=&gt;{var i,s;this.listeners.add(r);const l=(s=(i=this.options)==null?void 0:i.onSubscribe)==null?void 0:s.call(i,r,this);return()=&gt;{this.listeners.delete(r),l==null||l()}},this.prevState=t,this.state=t,this.options=n}setState(t){var n,r,i;this.prevState=this.state,(n=this.options)!=null&amp;&amp;n.updateFn?this.state=this.options.updateFn(this.prevState)(t):Fv(t)?this.state=t(this.prevState):this.state=t,(i=(r=this.options)==null?void 0:r.onUpdate)==null||i.call(r),jv(this)}}class kn{constructor(t){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=&gt;{const n=[],r=[];for(const i of this.options.deps)n.push(i.prevState),r.push(i.state);return this.lastSeenDepValues=r,{prevDepVals:n,currDepVals:r,prevVal:this.prevState??void 0}},this.recompute=()=&gt;{var n,r;this.prevState=this.state;const{prevDepVals:i,currDepVals:s,prevVal:l}=this.getDepVals();this.state=this.options.fn({prevDepVals:i,currDepVals:s,prevVal:l}),(r=(n=this.options).onUpdate)==null||r.call(n)},this.checkIfRecalculationNeededDeeply=()=&gt;{for(const s of this.options.deps)s instanceof kn&amp;&amp;s.checkIfRecalculationNeededDeeply();let n=!1;const r=this.lastSeenDepValues,{currDepVals:i}=this.getDepVals();for(let s=0;s&lt;i.length;s++)if(i[s]!==r[s]){n=!0;break}n&amp;&amp;this.recompute()},this.mount=()=&gt;(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=&gt;{this.unregisterFromGraph();for(const n of this._subscriptions)n()}),this.subscribe=n=&gt;{var r,i;this.listeners.add(n);const s=(i=(r=this.options).onSubscribe)==null?void 0:i.call(r,n,this);return()=&gt;{this.listeners.delete(n),s==null||s()}},this.options=t,this.state=t.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(t=this.options.deps){for(const n of t)if(n instanceof kn)n.registerOnGraph(),this.registerOnGraph(n.options.deps);else if(n instanceof za){let r=Pr.get(n);r||(r=new Set,Pr.set(n,r)),r.add(this);let i=bs.get(this);i||(i=new Set,bs.set(this,i)),i.add(n)}}unregisterFromGraph(t=this.options.deps){for(const n of t)if(n instanceof kn)this.unregisterFromGraph(n.options.deps);else if(n instanceof za){const r=Pr.get(n);r&amp;&amp;r.delete(this);const i=bs.get(this);i&amp;&amp;i.delete(n)}}}class Vv{constructor(t){const{eager:n,fn:r,...i}=t;this._derived=new kn({...i,fn:()=&gt;{},onUpdate(){r()}}),n&amp;&amp;r()}mount(){return this._derived.mount()}}function Bv(e,t={}){const n=new za({actors:{}}),r=t.hashFunction||Wv,i=new Map;function s(l){const o=r(l),a=i.get(o);if(a)return{...a,state:a.state};const u=new kn({fn:({currDepVals:[x]})=&gt;x.actors[o],deps:[n]});function c(){async function x(){const E=n.state.actors[o];try{const G=e.getOrCreate(E.opts.name,E.opts.key,{params:E.opts.params,createInRegion:E.opts.createInRegion,createWithInput:E.opts.createWithInput}),m=G.connect();await G.resolve(),n.setState(d=&gt;({...d,actors:{...d.actors,[o]:{...d.actors[o],isConnected:!0,isConnecting:!1,handle:G,connection:m,isError:!1,error:null}}}))}catch(G){n.setState(m=&gt;({...m,actors:{...m.actors,[o]:{...m.actors[o],isError:!0,isConnecting:!1,error:G}}}))}}n.setState(E=&gt;(E.actors[o].isConnecting=!0,E.actors[o].isError=!1,E.actors[o].error=null,x(),E))}const p=new Vv({fn:()=&gt;{const x=n.state.actors[o];JSON.stringify(n.prevState.actors[o].opts)===JSON.stringify(n.state.actors[o].opts)&amp;&amp;!x.isConnected&amp;&amp;!x.isConnecting&amp;&amp;!x.isError&amp;&amp;x.opts.enabled&amp;&amp;c()},deps:[u]});n.setState(x=&gt;x.actors[o]?x:{...x,actors:{...x.actors,[o]:{hash:o,isConnected:!1,isConnecting:!1,connection:null,handle:null,isError:!1,error:null,opts:l}}});function y(x){n.setState(E=&gt;{const G=E.actors[o];if(!G)throw new Error(`Actor with key &quot;${o}&quot; does not exist.`);let m;return typeof x==&quot;function&quot;?m=x(G):m=x,{...E,actors:{...E.actors,[o]:m}}})}const w=()=&gt;{const x=u.mount(),E=p.mount();return()=&gt;{x(),E()}};return i.set(o,{state:u,key:o,mount:w,setState:y,create:c,addEventListener}),{mount:w,setState:y,state:u,create:c,key:o}}return{getOrCreateActor:s,store:n}}function Wv({name:e,key:t,params:n}){return JSON.stringify({name:e,key:t,params:n})}var Cp={exports:{}},Op={},Tp={exports:{}},Np={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Jr=ht;function Zv(e,t){return e===t&amp;&amp;(e!==0||1/e===1/t)||e!==e&amp;&amp;t!==t}var Hv=typeof Object.is==&quot;function&quot;?Object.is:Zv,Qv=Jr.useState,Kv=Jr.useEffect,Jv=Jr.useLayoutEffect,Gv=Jr.useDebugValue;function bv(e,t){var n=t(),r=Qv({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return Jv(function(){i.value=n,i.getSnapshot=t,Mo(i)&amp;&amp;s({inst:i})},[e,n,t]),Kv(function(){return Mo(i)&amp;&amp;s({inst:i}),e(function(){Mo(i)&amp;&amp;s({inst:i})})},[e]),Gv(n),n}function Mo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Hv(e,n)}catch{return!0}}function Yv(e,t){return t()}var Xv=typeof window&gt;&quot;u&quot;||typeof window.document&gt;&quot;u&quot;||typeof window.document.createElement&gt;&quot;u&quot;?Yv:bv;Np.useSyncExternalStore=Jr.useSyncExternalStore!==void 0?Jr.useSyncExternalStore:Xv;Tp.exports=Np;var qv=Tp.exports;/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var to=ht,eg=qv;function tg(e,t){return e===t&amp;&amp;(e!==0||1/e===1/t)||e!==e&amp;&amp;t!==t}var ng=typeof Object.is==&quot;function&quot;?Object.is:tg,rg=eg.useSyncExternalStore,ig=to.useRef,sg=to.useEffect,lg=to.useMemo,og=to.useDebugValue;Op.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var s=ig(null);if(s.current===null){var l={hasValue:!1,value:null};s.current=l}else l=s.current;s=lg(function(){function a(w){if(!u){if(u=!0,c=w,w=r(w),i!==void 0&amp;&amp;l.hasValue){var x=l.value;if(i(x,w))return p=x}return p=w}if(x=p,ng(c,w))return x;var E=r(w);return i!==void 0&amp;&amp;i(x,E)?(c=w,x):(c=w,p=E)}var u=!1,c,p,y=n===void 0?null:n;return[function(){return a(t())},y===null?void 0:function(){return a(y())}]},[t,n,r,i]);var o=rg(e,s[0],s[1]);return sg(function(){l.hasValue=!0,l.value=o},[o]),og(o),o};Cp.exports=Op;var ag=Cp.exports;function Cf(e,t=n=&gt;n){return ag.useSyncExternalStoreWithSelector(e.subscribe,()=&gt;e.state,()=&gt;e.state,t,ug)}function ug(e,t){if(Object.is(e,t))return!0;if(typeof e!=&quot;object&quot;||e===null||typeof t!=&quot;object&quot;||t===null)return!1;if(e instanceof Map&amp;&amp;t instanceof Map){if(e.size!==t.size)return!1;for(const[r,i]of e)if(!t.has(r)||!Object.is(i,t.get(r)))return!1;return!0}if(e instanceof Set&amp;&amp;t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r&lt;n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}const cg=&quot;modulepreload&quot;,fg=function(e){return&quot;/&quot;+e},Of={},Rp=function(t,n,r){let i=Promise.resolve();if(n&amp;&amp;n.length&gt;0){document.getElementsByTagName(&quot;link&quot;);const l=document.querySelector(&quot;meta[property=csp-nonce]&quot;),o=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute(&quot;nonce&quot;));i=Promise.allSettled(n.map(a=&gt;{if(a=fg(a),a in Of)return;Of[a]=!0;const u=a.endsWith(&quot;.css&quot;),c=u?&#39;[rel=&quot;stylesheet&quot;]&#39;:&quot;&quot;;if(document.querySelector(`link[href=&quot;${a}&quot;]${c}`))return;const p=document.createElement(&quot;link&quot;);if(p.rel=u?&quot;stylesheet&quot;:cg,u||(p.as=&quot;script&quot;),p.crossOrigin=&quot;&quot;,p.href=a,o&amp;&amp;p.setAttribute(&quot;nonce&quot;,o),document.head.appendChild(p),u)return new Promise((y,w)=&gt;{p.addEventListener(&quot;load&quot;,y),p.addEventListener(&quot;error&quot;,()=&gt;w(new Error(`Unable to preload CSS for ${a}`)))})}))}function s(l){const o=new Event(&quot;vite:preloadError&quot;,{cancelable:!0});if(o.payload=l,window.dispatchEvent(o),!o.defaultPrevented)throw l}return i.then(l=&gt;{for(const o of l||[])o.status===&quot;rejected&quot;&amp;&amp;s(o.reason);return t().catch(s)})};var dg=&quot;internal_error&quot;,hg=class extends Error{constructor(n,r,i){super(r,{cause:i==null?void 0:i.cause});Nt(this,&quot;__type&quot;,&quot;ActorError&quot;);Nt(this,&quot;public&quot;);Nt(this,&quot;metadata&quot;);Nt(this,&quot;statusCode&quot;,500);this.code=n,this.public=(i==null?void 0:i.public)??!1,this.metadata=i==null?void 0:i.metadata,i!=null&amp;&amp;i.public&amp;&amp;(this.statusCode=400)}static isActorError(n){return typeof n==&quot;object&quot;&amp;&amp;n.__type===&quot;ActorError&quot;}toString(){return this.message}serializeForHttp(){return{type:this.code,message:this.message,metadata:this.metadata}}},pg=class extends hg{constructor(e){super(dg,e)}},mg=class extends pg{constructor(e){super(`Unreachable case: ${e}`)}},yg={};function ct(e){throw new Error(`Unreachable case: ${e}`)}function Tf(e){if(e instanceof Error)return typeof process&lt;&quot;u&quot;&amp;&amp;Nl(&quot;_RIVETKIT_ERROR_STACK&quot;)===&quot;1&quot;?`${e.name}: ${e.message}${e.stack?`
${e.stack}`:&quot;&quot;}`:`${e.name}: ${e.message}`;if(typeof e==&quot;string&quot;)return e;if(typeof e==&quot;object&quot;&amp;&amp;e!==null)try{return`${JSON.stringify(e)}`}catch{return&quot;[cannot stringify error]&quot;}else return`Unknown error: ${vg(e)}`}function vg(e){return e&amp;&amp;typeof e==&quot;object&quot;&amp;&amp;&quot;message&quot;in e&amp;&amp;typeof e.message==&quot;string&quot;?e.message:String(e)}var gg={version:&quot;0.9.9&quot;},wg=gg.version,Do;function Ys(){if(Do!==void 0)return Do;let e=`RivetKit/${wg}`;const t=typeof navigator&lt;&quot;u&quot;?navigator:void 0;return t!=null&amp;&amp;t.userAgent&amp;&amp;(e+=` ${t.userAgent}`),Do=e,e}function Nl(e){if(typeof Deno&lt;&quot;u&quot;)return Deno.env.get(e);if(typeof process&lt;&quot;u&quot;)return yg[e]}var Mn={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,CRITICAL:5},Ap={0:&quot;TRACE&quot;,1:&quot;DEBUG&quot;,2:&quot;INFO&quot;,3:&quot;WARN&quot;,4:&quot;ERROR&quot;,5:&quot;CRITICAL&quot;};function _g(...e){let t=&quot;&quot;;for(let n=0;n&lt;e.length;n++){const[r,i]=e[n];let s=!1,l;i==null?(s=!0,l=&quot;&quot;):l=i.toString(),l.length&gt;512&amp;&amp;r!==&quot;msg&quot;&amp;&amp;r!==&quot;error&quot;&amp;&amp;(l=`${l.slice(0,512)}...`);const o=l.indexOf(&quot; &quot;)&gt;-1||l.indexOf(&quot;=&quot;)&gt;-1,a=l.indexOf(&#39;&quot;&#39;)&gt;-1||l.indexOf(&quot;\\&quot;)&gt;-1;l=l.replace(/\n/g,&quot;\\n&quot;),a&amp;&amp;(l=l.replace(/[&quot;\\]/g,&quot;\\$&amp;&quot;)),(o||a)&amp;&amp;(l=`&quot;${l}&quot;`),l===&quot;&quot;&amp;&amp;!s&amp;&amp;(l=&#39;&quot;&quot;&#39;),t+=`${r}=${l}`,n!==e.length-1&amp;&amp;(t+=&quot; &quot;)}return t}function xg(e){const t=e.getUTCFullYear(),n=String(e.getUTCMonth()+1).padStart(2,&quot;0&quot;),r=String(e.getUTCDate()).padStart(2,&quot;0&quot;),i=String(e.getUTCHours()).padStart(2,&quot;0&quot;),s=String(e.getUTCMinutes()).padStart(2,&quot;0&quot;),l=String(e.getUTCSeconds()).padStart(2,&quot;0&quot;),o=String(e.getUTCMilliseconds()).padStart(3,&quot;0&quot;);return`${t}-${n}-${r}T${i}:${s}:${l}.${o}Z`}function kg(e){if(typeof e==&quot;string&quot;||typeof e==&quot;number&quot;||typeof e==&quot;boolean&quot;||e===null||e===void 0)return e;if(e instanceof Error)return String(e);try{return JSON.stringify(e)}catch{return&quot;[cannot stringify]&quot;}}var ei,Ip,Pp,id,Sg=(id=class{constructor(e,t){se(this,ei);Nt(this,&quot;name&quot;);Nt(this,&quot;level&quot;);this.name=e,this.level=t}log(e,t,...n){const r={msg:t,args:n,level:e,loggerName:this.name,datetime:new Date,levelName:Ap[e]};te(this,ei,Ip).call(this,e)&amp;&amp;te(this,ei,Pp).call(this,r)}trace(e,...t){this.log(Mn.TRACE,e,...t)}debug(e,...t){this.log(Mn.DEBUG,e,...t)}info(e,...t){this.log(Mn.INFO,e,...t)}warn(e,...t){this.log(Mn.WARN,e,...t)}error(e,...t){this.log(Mn.ERROR,e,...t)}critical(e,...t){this.log(Mn.CRITICAL,e,...t)}},ei=new WeakSet,Ip=function(e){return e&gt;=Mn[this.level]},Pp=function(e){console.log(Eg(e))},id),zo={};function Lp(e=&quot;default&quot;){const n=Nl(&quot;_LOG_LEVEL&quot;)??&quot;INFO&quot;;return zo[e]||(zo[e]=new Sg(e,n)),zo[e]}function Eg(e){const t=[];for(let i=0;i&lt;e.args.length;i++){const s=e.args[i];if(s&amp;&amp;typeof s==&quot;object&quot;)for(const l in s){const o=s[l];Nf(l,o,t)}else Nf(`arg${i}`,s,t)}const n=Nl(&quot;_LOG_TIMESTAMP&quot;)===&quot;1&quot;,r=Nl(&quot;_LOG_TARGET&quot;)===&quot;1&quot;;return _g(...n?[[&quot;ts&quot;,xg(new Date)]]:[],[&quot;level&quot;,Ap[e.level]],...r?[[&quot;target&quot;,e.loggerName]]:[],[&quot;msg&quot;,e.msg],...t)}function Nf(e,t,n){n.push([e,kg(t)])}let Ua;try{Ua=new TextDecoder}catch{}let $,Gn,_=0;const Cg=105,Og=57342,Tg=57343,Rf=57337,Af=6,ar={};let di=11281e4,$t=1681e4,q={},xe,Rl,Al=0,Yi=0,Re,ft,Ce=[],$a=[],Ke,Ve,wi,If={useRecords:!1,mapsAsObjects:!0},Xi=!1,Mp=2;try{new Function(&quot;&quot;)}catch{Mp=1/0}class qi{constructor(t){if(t&amp;&amp;((t.keyMap||t._keyMap)&amp;&amp;!t.useRecords&amp;&amp;(t.useRecords=!1,t.mapsAsObjects=!0),t.useRecords===!1&amp;&amp;t.mapsAsObjects===void 0&amp;&amp;(t.mapsAsObjects=!0),t.getStructures&amp;&amp;(t.getShared=t.getStructures),t.getShared&amp;&amp;!t.structures&amp;&amp;((t.structures=[]).uninitialized=!0),t.keyMap)){this.mapKey=new Map;for(let[n,r]of Object.entries(t.keyMap))this.mapKey.set(r,n)}Object.assign(this,t)}decodeKey(t){return this.keyMap&amp;&amp;this.mapKey.get(t)||t}encodeKey(t){return this.keyMap&amp;&amp;this.keyMap.hasOwnProperty(t)?this.keyMap[t]:t}encodeKeys(t){if(!this._keyMap)return t;let n=new Map;for(let[r,i]of Object.entries(t))n.set(this._keyMap.hasOwnProperty(r)?this._keyMap[r]:r,i);return n}decodeKeys(t){if(!this._keyMap||t.constructor.name!=&quot;Map&quot;)return t;if(!this._mapKey){this._mapKey=new Map;for(let[r,i]of Object.entries(this._keyMap))this._mapKey.set(i,r)}let n={};return t.forEach((r,i)=&gt;n[dt(this._mapKey.has(i)?this._mapKey.get(i):i)]=r),n}mapDecode(t,n){let r=this.decode(t);if(this._keyMap)switch(r.constructor.name){case&quot;Array&quot;:return r.map(i=&gt;this.decodeKeys(i))}return r}decode(t,n){if($)return $p(()=&gt;(Ba(),this?this.decode(t,n):qi.prototype.decode.call(If,t,n)));Gn=n&gt;-1?n:t.length,_=0,Yi=0,Rl=null,Re=null,$=t;try{Ve=t.dataView||(t.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength))}catch(r){throw $=null,t instanceof Uint8Array?r:new Error(&quot;Source must be a Uint8Array or Buffer but was a &quot;+(t&amp;&amp;typeof t==&quot;object&quot;?t.constructor.name:typeof t))}if(this instanceof qi){if(q=this,Ke=this.sharedValues&amp;&amp;(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return xe=this.structures,Ps();(!xe||xe.length&gt;0)&amp;&amp;(xe=[])}else q=If,(!xe||xe.length&gt;0)&amp;&amp;(xe=[]),Ke=null;return Ps()}decodeMultiple(t,n){let r,i=0;try{let s=t.length;Xi=!0;let l=this?this.decode(t,s):lc.decode(t,s);if(n){if(n(l)===!1)return;for(;_&lt;s;)if(i=_,n(Ps())===!1)return}else{for(r=[l];_&lt;s;)i=_,r.push(Ps());return r}}catch(s){throw s.lastPosition=i,s.values=r,s}finally{Xi=!1,Ba()}}}function Ps(){try{let e=ee();if(Re){if(_&gt;=Re.postBundlePosition){let t=new Error(&quot;Unexpected bundle position&quot;);throw t.incomplete=!0,t}_=Re.postBundlePosition,Re=null}if(_==Gn)xe=null,$=null,ft&amp;&amp;(ft=null);else if(_&gt;Gn){let t=new Error(&quot;Unexpected end of CBOR data&quot;);throw t.incomplete=!0,t}else if(!Xi)throw new Error(&quot;Data read, but end of buffer not reached&quot;);return e}catch(e){throw Ba(),(e instanceof RangeError||e.message.startsWith(&quot;Unexpected end of buffer&quot;))&amp;&amp;(e.incomplete=!0),e}}function ee(){let e=$[_++],t=e&gt;&gt;5;if(e=e&amp;31,e&gt;23)switch(e){case 24:e=$[_++];break;case 25:if(t==7)return Ig();e=Ve.getUint16(_),_+=2;break;case 26:if(t==7){let n=Ve.getFloat32(_);if(q.useFloat32&gt;2){let r=sc[($[_]&amp;127)&lt;&lt;1|$[_+1]&gt;&gt;7];return _+=4,(r*n+(n&gt;0?.5:-.5)&gt;&gt;0)/r}return _+=4,n}e=Ve.getUint32(_),_+=4;break;case 27:if(t==7){let n=Ve.getFloat64(_);return _+=8,n}if(t&gt;1){if(Ve.getUint32(_)&gt;0)throw new Error(&quot;JavaScript does not support arrays, maps, or strings with length over 4294967295&quot;);e=Ve.getUint32(_+4)}else q.int64AsNumber?(e=Ve.getUint32(_)*4294967296,e+=Ve.getUint32(_+4)):e=Ve.getBigUint64(_);_+=8;break;case 31:switch(t){case 2:case 3:throw new Error(&quot;Indefinite length not supported for byte or text strings&quot;);case 4:let n=[],r,i=0;for(;(r=ee())!=ar;){if(i&gt;=di)throw new Error(`Array length exceeds ${di}`);n[i++]=r}return t==4?n:t==3?n.join(&quot;&quot;):Buffer.concat(n);case 5:let s;if(q.mapsAsObjects){let l={},o=0;if(q.keyMap)for(;(s=ee())!=ar;){if(o++&gt;=$t)throw new Error(`Property count exceeds ${$t}`);l[dt(q.decodeKey(s))]=ee()}else for(;(s=ee())!=ar;){if(o++&gt;=$t)throw new Error(`Property count exceeds ${$t}`);l[dt(s)]=ee()}return l}else{wi&amp;&amp;(q.mapsAsObjects=!0,wi=!1);let l=new Map;if(q.keyMap){let o=0;for(;(s=ee())!=ar;){if(o++&gt;=$t)throw new Error(`Map size exceeds ${$t}`);l.set(q.decodeKey(s),ee())}}else{let o=0;for(;(s=ee())!=ar;){if(o++&gt;=$t)throw new Error(`Map size exceeds ${$t}`);l.set(s,ee())}}return l}case 7:return ar;default:throw new Error(&quot;Invalid major type for indefinite length &quot;+t)}default:throw new Error(&quot;Unknown token &quot;+e)}switch(t){case 0:return e;case 1:return~e;case 2:return Ag(e);case 3:if(Yi&gt;=_)return Rl.slice(_-Al,(_+=e)-Al);if(Yi==0&amp;&amp;Gn&lt;140&amp;&amp;e&lt;32){let i=e&lt;16?Dp(e):Rg(e);if(i!=null)return i}return Ng(e);case 4:if(e&gt;=di)throw new Error(`Array length exceeds ${di}`);let n=new Array(e);for(let i=0;i&lt;e;i++)n[i]=ee();return n;case 5:if(e&gt;=$t)throw new Error(`Map size exceeds ${di}`);if(q.mapsAsObjects){let i={};if(q.keyMap)for(let s=0;s&lt;e;s++)i[dt(q.decodeKey(ee()))]=ee();else for(let s=0;s&lt;e;s++)i[dt(ee())]=ee();return i}else{wi&amp;&amp;(q.mapsAsObjects=!0,wi=!1);let i=new Map;if(q.keyMap)for(let s=0;s&lt;e;s++)i.set(q.decodeKey(ee()),ee());else for(let s=0;s&lt;e;s++)i.set(ee(),ee());return i}case 6:if(e&gt;=Rf){let i=xe[e&amp;8191];if(i)return i.read||(i.read=ja(i)),i.read();if(e&lt;65536){if(e==Tg){let s=Er(),l=ee(),o=ee();Va(l,o);let a={};if(q.keyMap)for(let u=2;u&lt;s;u++){let c=q.decodeKey(o[u-2]);a[dt(c)]=ee()}else for(let u=2;u&lt;s;u++){let c=o[u-2];a[dt(c)]=ee()}return a}else if(e==Og){let s=Er(),l=ee();for(let o=2;o&lt;s;o++)Va(l++,ee());return ee()}else if(e==Rf)return Ug();if(q.getShared&amp;&amp;(ic(),i=xe[e&amp;8191],i))return i.read||(i.read=ja(i)),i.read()}}let r=Ce[e];if(r)return r.handlesRead?r(ee):r(ee());{let i=ee();for(let s=0;s&lt;$a.length;s++){let l=$a[s](e,i);if(l!==void 0)return l}return new rr(i,e)}case 7:switch(e){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;case 31:default:let i=(Ke||Un())[e];if(i!==void 0)return i;throw new Error(&quot;Unknown token &quot;+e)}default:if(isNaN(e)){let i=new Error(&quot;Unexpected end of CBOR data&quot;);throw i.incomplete=!0,i}throw new Error(&quot;Unknown CBOR token &quot;+e)}}const Pf=/^[a-zA-Z_$][a-zA-Z\d_$]*$/;function ja(e){if(!e)throw new Error(&quot;Structure is required in record definition&quot;);function t(){let n=$[_++];if(n=n&amp;31,n&gt;23)switch(n){case 24:n=$[_++];break;case 25:n=Ve.getUint16(_),_+=2;break;case 26:n=Ve.getUint32(_),_+=4;break;default:throw new Error(&quot;Expected array header, but got &quot;+$[_-1])}let r=this.compiledReader;for(;r;){if(r.propertyCount===n)return r(ee);r=r.next}if(this.slowReads++&gt;=Mp){let s=this.length==n?this:this.slice(0,n);return r=q.keyMap?new Function(&quot;r&quot;,&quot;return {&quot;+s.map(l=&gt;q.decodeKey(l)).map(l=&gt;Pf.test(l)?dt(l)+&quot;:r()&quot;:&quot;[&quot;+JSON.stringify(l)+&quot;]:r()&quot;).join(&quot;,&quot;)+&quot;}&quot;):new Function(&quot;r&quot;,&quot;return {&quot;+s.map(l=&gt;Pf.test(l)?dt(l)+&quot;:r()&quot;:&quot;[&quot;+JSON.stringify(l)+&quot;]:r()&quot;).join(&quot;,&quot;)+&quot;}&quot;),this.compiledReader&amp;&amp;(r.next=this.compiledReader),r.propertyCount=n,this.compiledReader=r,r(ee)}let i={};if(q.keyMap)for(let s=0;s&lt;n;s++)i[dt(q.decodeKey(this[s]))]=ee();else for(let s=0;s&lt;n;s++)i[dt(this[s])]=ee();return i}return e.slowReads=0,t}function dt(e){if(typeof e==&quot;string&quot;)return e===&quot;__proto__&quot;?&quot;__proto_&quot;:e;if(typeof e==&quot;number&quot;||typeof e==&quot;boolean&quot;||typeof e==&quot;bigint&quot;)return e.toString();if(e==null)return e+&quot;&quot;;throw new Error(&quot;Invalid property name type &quot;+typeof e)}let Ng=Fa;function Fa(e){let t;if(e&lt;16&amp;&amp;(t=Dp(e)))return t;if(e&gt;64&amp;&amp;Ua)return Ua.decode($.subarray(_,_+=e));const n=_+e,r=[];for(t=&quot;&quot;;_&lt;n;){const i=$[_++];if(!(i&amp;128))r.push(i);else if((i&amp;224)===192){const s=$[_++]&amp;63;r.push((i&amp;31)&lt;&lt;6|s)}else if((i&amp;240)===224){const s=$[_++]&amp;63,l=$[_++]&amp;63;r.push((i&amp;31)&lt;&lt;12|s&lt;&lt;6|l)}else if((i&amp;248)===240){const s=$[_++]&amp;63,l=$[_++]&amp;63,o=$[_++]&amp;63;let a=(i&amp;7)&lt;&lt;18|s&lt;&lt;12|l&lt;&lt;6|o;a&gt;65535&amp;&amp;(a-=65536,r.push(a&gt;&gt;&gt;10&amp;1023|55296),a=56320|a&amp;1023),r.push(a)}else r.push(i);r.length&gt;=4096&amp;&amp;(t+=Ae.apply(String,r),r.length=0)}return r.length&gt;0&amp;&amp;(t+=Ae.apply(String,r)),t}let Ae=String.fromCharCode;function Rg(e){let t=_,n=new Array(e);for(let r=0;r&lt;e;r++){const i=$[_++];if((i&amp;128)&gt;0){_=t;return}n[r]=i}return Ae.apply(String,n)}function Dp(e){if(e&lt;4)if(e&lt;2){if(e===0)return&quot;&quot;;{let t=$[_++];if((t&amp;128)&gt;1){_-=1;return}return Ae(t)}}else{let t=$[_++],n=$[_++];if((t&amp;128)&gt;0||(n&amp;128)&gt;0){_-=2;return}if(e&lt;3)return Ae(t,n);let r=$[_++];if((r&amp;128)&gt;0){_-=3;return}return Ae(t,n,r)}else{let t=$[_++],n=$[_++],r=$[_++],i=$[_++];if((t&amp;128)&gt;0||(n&amp;128)&gt;0||(r&amp;128)&gt;0||(i&amp;128)&gt;0){_-=4;return}if(e&lt;6){if(e===4)return Ae(t,n,r,i);{let s=$[_++];if((s&amp;128)&gt;0){_-=5;return}return Ae(t,n,r,i,s)}}else if(e&lt;8){let s=$[_++],l=$[_++];if((s&amp;128)&gt;0||(l&amp;128)&gt;0){_-=6;return}if(e&lt;7)return Ae(t,n,r,i,s,l);let o=$[_++];if((o&amp;128)&gt;0){_-=7;return}return Ae(t,n,r,i,s,l,o)}else{let s=$[_++],l=$[_++],o=$[_++],a=$[_++];if((s&amp;128)&gt;0||(l&amp;128)&gt;0||(o&amp;128)&gt;0||(a&amp;128)&gt;0){_-=8;return}if(e&lt;10){if(e===8)return Ae(t,n,r,i,s,l,o,a);{let u=$[_++];if((u&amp;128)&gt;0){_-=9;return}return Ae(t,n,r,i,s,l,o,a,u)}}else if(e&lt;12){let u=$[_++],c=$[_++];if((u&amp;128)&gt;0||(c&amp;128)&gt;0){_-=10;return}if(e&lt;11)return Ae(t,n,r,i,s,l,o,a,u,c);let p=$[_++];if((p&amp;128)&gt;0){_-=11;return}return Ae(t,n,r,i,s,l,o,a,u,c,p)}else{let u=$[_++],c=$[_++],p=$[_++],y=$[_++];if((u&amp;128)&gt;0||(c&amp;128)&gt;0||(p&amp;128)&gt;0||(y&amp;128)&gt;0){_-=12;return}if(e&lt;14){if(e===12)return Ae(t,n,r,i,s,l,o,a,u,c,p,y);{let w=$[_++];if((w&amp;128)&gt;0){_-=13;return}return Ae(t,n,r,i,s,l,o,a,u,c,p,y,w)}}else{let w=$[_++],x=$[_++];if((w&amp;128)&gt;0||(x&amp;128)&gt;0){_-=14;return}if(e&lt;15)return Ae(t,n,r,i,s,l,o,a,u,c,p,y,w,x);let E=$[_++];if((E&amp;128)&gt;0){_-=15;return}return Ae(t,n,r,i,s,l,o,a,u,c,p,y,w,x,E)}}}}}function Ag(e){return q.copyBuffers?Uint8Array.prototype.slice.call($,_,_+=e):$.subarray(_,_+=e)}let zp=new Float32Array(1),Ls=new Uint8Array(zp.buffer,0,4);function Ig(){let e=$[_++],t=$[_++],n=(e&amp;127)&gt;&gt;2;if(n===31)return t||e&amp;3?NaN:e&amp;128?-1/0:1/0;if(n===0){let r=((e&amp;3)&lt;&lt;8|t)/16777216;return e&amp;128?-r:r}return Ls[3]=e&amp;128|(n&gt;&gt;1)+56,Ls[2]=(e&amp;7)&lt;&lt;5|t&gt;&gt;3,Ls[1]=t&lt;&lt;5,Ls[0]=0,zp[0]}new Array(4096);class rr{constructor(t,n){this.value=t,this.tag=n}}Ce[0]=e=&gt;new Date(e);Ce[1]=e=&gt;new Date(Math.round(e*1e3));Ce[2]=e=&gt;{let t=BigInt(0);for(let n=0,r=e.byteLength;n&lt;r;n++)t=BigInt(e[n])+(t&lt;&lt;BigInt(8));return t};Ce[3]=e=&gt;BigInt(-1)-Ce[2](e);Ce[4]=e=&gt;+(e[1]+&quot;e&quot;+e[0]);Ce[5]=e=&gt;e[1]*Math.exp(e[0]*Math.log(2));const Va=(e,t)=&gt;{e=e-57344;let n=xe[e];n&amp;&amp;n.isShared&amp;&amp;((xe.restoreStructures||(xe.restoreStructures=[]))[e]=n),xe[e]=t,t.read=ja(t)};Ce[Cg]=e=&gt;{let t=e.length,n=e[1];Va(e[0],n);let r={};for(let i=2;i&lt;t;i++){let s=n[i-2];r[dt(s)]=e[i]}return r};Ce[14]=e=&gt;Re?Re[0].slice(Re.position0,Re.position0+=e):new rr(e,14);Ce[15]=e=&gt;Re?Re[1].slice(Re.position1,Re.position1+=e):new rr(e,15);let Pg={Error,RegExp};Ce[27]=e=&gt;(Pg[e[0]]||Error)(e[1],e[2]);const Up=e=&gt;{if($[_++]!=132){let n=new Error(&quot;Packed values structure must be followed by a 4 element array&quot;);throw $.length&lt;_&amp;&amp;(n.incomplete=!0),n}let t=e();if(!t||!t.length){let n=new Error(&quot;Packed values structure must be followed by a 4 element array&quot;);throw n.incomplete=!0,n}return Ke=Ke?t.concat(Ke.slice(t.length)):t,Ke.prefixes=e(),Ke.suffixes=e(),e()};Up.handlesRead=!0;Ce[51]=Up;Ce[Af]=e=&gt;{if(!Ke)if(q.getShared)ic();else return new rr(e,Af);if(typeof e==&quot;number&quot;)return Ke[16+(e&gt;=0?2*e:-2*e-1)];let t=new Error(&quot;No support for non-integer packed references yet&quot;);throw e===void 0&amp;&amp;(t.incomplete=!0),t};Ce[28]=e=&gt;{ft||(ft=new Map,ft.id=0);let t=ft.id++,n=_,r=$[_],i;r&gt;&gt;5==4?i=[]:i={};let s={target:i};ft.set(t,s);let l=e();return s.used?(Object.getPrototypeOf(i)!==Object.getPrototypeOf(l)&amp;&amp;(_=n,i=l,ft.set(t,{target:i}),l=e()),Object.assign(i,l)):(s.target=l,l)};Ce[28].handlesRead=!0;Ce[29]=e=&gt;{let t=ft.get(e);return t.used=!0,t.target};Ce[258]=e=&gt;new Set(e);(Ce[259]=e=&gt;(q.mapsAsObjects&amp;&amp;(q.mapsAsObjects=!1,wi=!0),e())).handlesRead=!0;function ur(e,t){return typeof e==&quot;string&quot;?e+t:e instanceof Array?e.concat(t):Object.assign({},e,t)}function Un(){if(!Ke)if(q.getShared)ic();else throw new Error(&quot;No packed values available&quot;);return Ke}const Lg=1399353956;$a.push((e,t)=&gt;{if(e&gt;=225&amp;&amp;e&lt;=255)return ur(Un().prefixes[e-224],t);if(e&gt;=28704&amp;&amp;e&lt;=32767)return ur(Un().prefixes[e-28672],t);if(e&gt;=1879052288&amp;&amp;e&lt;=2147483647)return ur(Un().prefixes[e-1879048192],t);if(e&gt;=216&amp;&amp;e&lt;=223)return ur(t,Un().suffixes[e-216]);if(e&gt;=27647&amp;&amp;e&lt;=28671)return ur(t,Un().suffixes[e-27639]);if(e&gt;=1811940352&amp;&amp;e&lt;=1879048191)return ur(t,Un().suffixes[e-1811939328]);if(e==Lg)return{packedValues:Ke,structures:xe.slice(0),version:t};if(e==55799)return t});const Mg=new Uint8Array(new Uint16Array([1]).buffer)[0]==1,Lf=[Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,typeof BigUint64Array&gt;&quot;u&quot;?{name:&quot;BigUint64Array&quot;}:BigUint64Array,Int8Array,Int16Array,Int32Array,typeof BigInt64Array&gt;&quot;u&quot;?{name:&quot;BigInt64Array&quot;}:BigInt64Array,Float32Array,Float64Array],Dg=[64,68,69,70,71,72,77,78,79,85,86];for(let e=0;e&lt;Lf.length;e++)zg(Lf[e],Dg[e]);function zg(e,t){let n=&quot;get&quot;+e.name.slice(0,-5),r;typeof e==&quot;function&quot;?r=e.BYTES_PER_ELEMENT:e=null;for(let i=0;i&lt;2;i++){if(!i&amp;&amp;r==1)continue;let s=r==2?1:r==4?2:r==8?3:0;Ce[i?t:t-4]=r==1||i==Mg?l=&gt;{if(!e)throw new Error(&quot;Could not find typed array for code &quot;+t);return!q.copyBuffers&amp;&amp;(r===1||r===2&amp;&amp;!(l.byteOffset&amp;1)||r===4&amp;&amp;!(l.byteOffset&amp;3)||r===8&amp;&amp;!(l.byteOffset&amp;7))?new e(l.buffer,l.byteOffset,l.byteLength&gt;&gt;s):new e(Uint8Array.prototype.slice.call(l,0).buffer)}:l=&gt;{if(!e)throw new Error(&quot;Could not find typed array for code &quot;+t);let o=new DataView(l.buffer,l.byteOffset,l.byteLength),a=l.length&gt;&gt;s,u=new e(a),c=o[n];for(let p=0;p&lt;a;p++)u[p]=c.call(o,p&lt;&lt;s,i);return u}}}function Ug(){let e=Er(),t=_+ee();for(let r=2;r&lt;e;r++){let i=Er();_+=i}let n=_;return _=t,Re=[Fa(Er()),Fa(Er())],Re.position0=0,Re.position1=0,Re.postBundlePosition=_,_=n,ee()}function Er(){let e=$[_++]&amp;31;if(e&gt;23)switch(e){case 24:e=$[_++];break;case 25:e=Ve.getUint16(_),_+=2;break;case 26:e=Ve.getUint32(_),_+=4;break}return e}function ic(){if(q.getShared){let e=$p(()=&gt;($=null,q.getShared()))||{},t=e.structures||[];q.sharedVersion=e.version,Ke=q.sharedValues=e.packedValues,xe===!0?q.structures=xe=t:xe.splice.apply(xe,[0,t.length].concat(t))}}function $p(e){let t=Gn,n=_,r=Al,i=Yi,s=Rl,l=ft,o=Re,a=new Uint8Array($.slice(0,Gn)),u=xe,c=q,p=Xi,y=e();return Gn=t,_=n,Al=r,Yi=i,Rl=s,ft=l,Re=o,$=a,Xi=p,xe=u,q=c,Ve=new DataView($.buffer,$.byteOffset,$.byteLength),y}function Ba(){$=null,ft=null,xe=null}const sc=new Array(147);for(let e=0;e&lt;256;e++)sc[e]=+(&quot;1e&quot;+Math.floor(45.15-e*.30103));let lc=new qi({useRecords:!1});const Pi=lc.decode;lc.decodeMultiple;let Xs;try{Xs=new TextEncoder}catch{}let Wa,jp;const no=typeof globalThis==&quot;object&quot;&amp;&amp;globalThis.Buffer,ds=typeof no&lt;&quot;u&quot;,Uo=ds?no.allocUnsafeSlow:Uint8Array,Mf=ds?no:Uint8Array,Df=256,zf=ds?4294967296:2144337920;let $o,g,de,f=0,en,Oe=null;const $g=61440,jg=/[\u0080-\uFFFF]/,Xe=Symbol(&quot;record-id&quot;);class Fg extends qi{constructor(t){super(t),this.offset=0;let n,r,i,s,l;t=t||{};let o=Mf.prototype.utf8Write?function(v,U,T){return g.utf8Write(v,U,T)}:Xs&amp;&amp;Xs.encodeInto?function(v,U){return Xs.encodeInto(v,g.subarray(U)).written}:!1,a=this,u=t.structures||t.saveStructures,c=t.maxSharedStructures;if(c==null&amp;&amp;(c=u?128:0),c&gt;8190)throw new Error(&quot;Maximum maxSharedStructure is 8190&quot;);let p=t.sequential;p&amp;&amp;(c=0),this.structures||(this.structures=[]),this.saveStructures&amp;&amp;(this.saveShared=this.saveStructures);let y,w,x=t.sharedValues,E;if(x){E=Object.create(null);for(let v=0,U=x.length;v&lt;U;v++)E[x[v]]=v}let G=[],m=0,d=0;this.mapEncode=function(v,U){if(this._keyMap&amp;&amp;!this._mapped)switch(v.constructor.name){case&quot;Array&quot;:v=v.map(T=&gt;this.encodeKeys(T));break}return this.encode(v,U)},this.encode=function(v,U){if(g||(g=new Uo(8192),de=new DataView(g.buffer,0,8192),f=0),en=g.length-10,en-f&lt;2048?(g=new Uo(g.length),de=new DataView(g.buffer,0,g.length),en=g.length-10,f=0):U===jf&amp;&amp;(f=f+7&amp;2147483640),n=f,a.useSelfDescribedHeader&amp;&amp;(de.setUint32(f,3654940416),f+=3),l=a.structuredClone?new Map:null,a.bundleStrings&amp;&amp;typeof v!=&quot;string&quot;?(Oe=[],Oe.size=1/0):Oe=null,r=a.structures,r){if(r.uninitialized){let R=a.getShared()||{};a.structures=r=R.structures||[],a.sharedVersion=R.version;let C=a.sharedValues=R.packedValues;if(C){E={};for(let S=0,I=C.length;S&lt;I;S++)E[C[S]]=S}}let T=r.length;if(T&gt;c&amp;&amp;!p&amp;&amp;(T=c),!r.transitions){r.transitions=Object.create(null);for(let R=0;R&lt;T;R++){let C=r[R];if(!C)continue;let S,I=r.transitions;for(let P=0,B=C.length;P&lt;B;P++){I[Xe]===void 0&amp;&amp;(I[Xe]=R);let Z=C[P];S=I[Z],S||(S=I[Z]=Object.create(null)),I=S}I[Xe]=R|1048576}}p||(r.nextId=T)}if(i&amp;&amp;(i=!1),s=r||[],w=E,t.pack){let T=new Map;if(T.values=[],T.encoder=a,T.maxValues=t.maxPrivatePackedValues||(E?16:1/0),T.objectMap=E||!1,T.samplingPackedValues=y,qs(v,T),T.values.length&gt;0){g[f++]=216,g[f++]=51,Pt(4);let R=T.values;h(R),Pt(0),Pt(0),w=Object.create(E||null);for(let C=0,S=R.length;C&lt;S;C++)w[R[C]]=C}}$o=U&amp;Fo;try{if($o)return;if(h(v),Oe&amp;&amp;$f(n,h),a.offset=f,l&amp;&amp;l.idsToInsert){f+=l.idsToInsert.length*2,f&gt;en&amp;&amp;L(f),a.offset=f;let T=Wg(g.subarray(n,f),l.idsToInsert);return l=null,T}return U&amp;jf?(g.start=n,g.end=f,g):g.subarray(n,f)}finally{if(r){if(d&lt;10&amp;&amp;d++,r.length&gt;c&amp;&amp;(r.length=c),m&gt;1e4)r.transitions=null,d=0,m=0,G.length&gt;0&amp;&amp;(G=[]);else if(G.length&gt;0&amp;&amp;!p){for(let T=0,R=G.length;T&lt;R;T++)G[T][Xe]=void 0;G=[]}}if(i&amp;&amp;a.saveShared){a.structures.length&gt;c&amp;&amp;(a.structures=a.structures.slice(0,c));let T=g.subarray(n,f);return a.updateSharedData()===!1?a.encode(v):T}U&amp;Zg&amp;&amp;(f=n)}},this.findCommonStringsToPack=()=&gt;(y=new Map,E||(E=Object.create(null)),v=&gt;{let U=v&amp;&amp;v.threshold||4,T=this.pack?v.maxPrivatePackedValues||16:0;x||(x=this.sharedValues=[]);for(let[R,C]of y)C.count&gt;U&amp;&amp;(E[R]=T++,x.push(R),i=!0);for(;this.saveShared&amp;&amp;this.updateSharedData()===!1;);y=null});const h=v=&gt;{f&gt;en&amp;&amp;(g=L(f));var U=typeof v,T;if(U===&quot;string&quot;){if(w){let I=w[v];if(I&gt;=0){I&lt;16?g[f++]=I+224:(g[f++]=198,I&amp;1?h(15-I&gt;&gt;1):h(I-16&gt;&gt;1));return}else if(y&amp;&amp;!t.pack){let P=y.get(v);P?P.count++:y.set(v,{count:1})}}let R=v.length;if(Oe&amp;&amp;R&gt;=4&amp;&amp;R&lt;1024){if((Oe.size+=R)&gt;$g){let P,B=(Oe[0]?Oe[0].length*3+Oe[1].length:0)+10;f+B&gt;en&amp;&amp;(g=L(f+B)),g[f++]=217,g[f++]=223,g[f++]=249,g[f++]=Oe.position?132:130,g[f++]=26,P=f-n,f+=4,Oe.position&amp;&amp;$f(n,h),Oe=[&quot;&quot;,&quot;&quot;],Oe.size=0,Oe.position=P}let I=jg.test(v);Oe[I?0:1]+=v,g[f++]=I?206:207,h(R);return}let C;R&lt;32?C=1:R&lt;256?C=2:R&lt;65536?C=3:C=5;let S=R*3;if(f+S&gt;en&amp;&amp;(g=L(f+S)),R&lt;64||!o){let I,P,B,Z=f+C;for(I=0;I&lt;R;I++)P=v.charCodeAt(I),P&lt;128?g[Z++]=P:P&lt;2048?(g[Z++]=P&gt;&gt;6|192,g[Z++]=P&amp;63|128):(P&amp;64512)===55296&amp;&amp;((B=v.charCodeAt(I+1))&amp;64512)===56320?(P=65536+((P&amp;1023)&lt;&lt;10)+(B&amp;1023),I++,g[Z++]=P&gt;&gt;18|240,g[Z++]=P&gt;&gt;12&amp;63|128,g[Z++]=P&gt;&gt;6&amp;63|128,g[Z++]=P&amp;63|128):(g[Z++]=P&gt;&gt;12|224,g[Z++]=P&gt;&gt;6&amp;63|128,g[Z++]=P&amp;63|128);T=Z-f-C}else T=o(v,f+C,S);T&lt;24?g[f++]=96|T:T&lt;256?(C&lt;2&amp;&amp;g.copyWithin(f+2,f+1,f+1+T),g[f++]=120,g[f++]=T):T&lt;65536?(C&lt;3&amp;&amp;g.copyWithin(f+3,f+2,f+2+T),g[f++]=121,g[f++]=T&gt;&gt;8,g[f++]=T&amp;255):(C&lt;5&amp;&amp;g.copyWithin(f+5,f+3,f+3+T),g[f++]=122,de.setUint32(f,T),f+=4),f+=T}else if(U===&quot;number&quot;)if(!this.alwaysUseFloat&amp;&amp;v&gt;&gt;&gt;0===v)v&lt;24?g[f++]=v:v&lt;256?(g[f++]=24,g[f++]=v):v&lt;65536?(g[f++]=25,g[f++]=v&gt;&gt;8,g[f++]=v&amp;255):(g[f++]=26,de.setUint32(f,v),f+=4);else if(!this.alwaysUseFloat&amp;&amp;v&gt;&gt;0===v)v&gt;=-24?g[f++]=31-v:v&gt;=-256?(g[f++]=56,g[f++]=~v):v&gt;=-65536?(g[f++]=57,de.setUint16(f,~v),f+=2):(g[f++]=58,de.setUint32(f,~v),f+=4);else{let R;if((R=this.useFloat32)&gt;0&amp;&amp;v&lt;4294967296&amp;&amp;v&gt;=-2147483648){g[f++]=250,de.setFloat32(f,v);let C;if(R&lt;4||(C=v*sc[(g[f]&amp;127)&lt;&lt;1|g[f+1]&gt;&gt;7])&gt;&gt;0===C){f+=4;return}else f--}g[f++]=251,de.setFloat64(f,v),f+=8}else if(U===&quot;object&quot;)if(!v)g[f++]=246;else{if(l){let C=l.get(v);if(C){if(g[f++]=216,g[f++]=29,g[f++]=25,!C.references){let S=l.idsToInsert||(l.idsToInsert=[]);C.references=[],S.push(C)}C.references.push(f-n),f+=2;return}else l.set(v,{offset:f-n})}let R=v.constructor;if(R===Object)O(v);else if(R===Array){T=v.length,T&lt;24?g[f++]=128|T:Pt(T);for(let C=0;C&lt;T;C++)h(v[C])}else if(R===Map)if((this.mapsAsObjects?this.useTag259ForMaps!==!1:this.useTag259ForMaps)&amp;&amp;(g[f++]=217,g[f++]=1,g[f++]=3),T=v.size,T&lt;24?g[f++]=160|T:T&lt;256?(g[f++]=184,g[f++]=T):T&lt;65536?(g[f++]=185,g[f++]=T&gt;&gt;8,g[f++]=T&amp;255):(g[f++]=186,de.setUint32(f,T),f+=4),a.keyMap)for(let[C,S]of v)h(a.encodeKey(C)),h(S);else for(let[C,S]of v)h(C),h(S);else{for(let C=0,S=Wa.length;C&lt;S;C++){let I=jp[C];if(v instanceof I){let P=Wa[C],B=P.tag;B==null&amp;&amp;(B=P.getTag&amp;&amp;P.getTag.call(this,v)),B&lt;24?g[f++]=192|B:B&lt;256?(g[f++]=216,g[f++]=B):B&lt;65536?(g[f++]=217,g[f++]=B&gt;&gt;8,g[f++]=B&amp;255):B&gt;-1&amp;&amp;(g[f++]=218,de.setUint32(f,B),f+=4),P.encode.call(this,v,h,L);return}}if(v[Symbol.iterator]){if($o){let C=new Error(&quot;Iterable should be serialized as iterator&quot;);throw C.iteratorNotHandled=!0,C}g[f++]=159;for(let C of v)h(C);g[f++]=255;return}if(v[Symbol.asyncIterator]||jo(v)){let C=new Error(&quot;Iterable/blob should be serialized as iterator&quot;);throw C.iteratorNotHandled=!0,C}if(this.useToJSON&amp;&amp;v.toJSON){const C=v.toJSON();if(C!==v)return h(C)}O(v)}}else if(U===&quot;boolean&quot;)g[f++]=v?245:244;else if(U===&quot;bigint&quot;){if(v&lt;BigInt(1)&lt;&lt;BigInt(64)&amp;&amp;v&gt;=0)g[f++]=27,de.setBigUint64(f,v);else if(v&gt;-(BigInt(1)&lt;&lt;BigInt(64))&amp;&amp;v&lt;0)g[f++]=59,de.setBigUint64(f,-v-BigInt(1));else if(this.largeBigIntToFloat)g[f++]=251,de.setFloat64(f,Number(v));else{v&gt;=BigInt(0)?g[f++]=194:(g[f++]=195,v=BigInt(-1)-v);let R=[];for(;v;)R.push(Number(v&amp;BigInt(255))),v&gt;&gt;=BigInt(8);Za(new Uint8Array(R.reverse()),L);return}f+=8}else if(U===&quot;undefined&quot;)g[f++]=247;else throw new Error(&quot;Unknown type: &quot;+U)},O=this.useRecords===!1?this.variableMapSize?v=&gt;{let U=Object.keys(v),T=Object.values(v),R=U.length;if(R&lt;24?g[f++]=160|R:R&lt;256?(g[f++]=184,g[f++]=R):R&lt;65536?(g[f++]=185,g[f++]=R&gt;&gt;8,g[f++]=R&amp;255):(g[f++]=186,de.setUint32(f,R),f+=4),a.keyMap)for(let C=0;C&lt;R;C++)h(a.encodeKey(U[C])),h(T[C]);else for(let C=0;C&lt;R;C++)h(U[C]),h(T[C])}:v=&gt;{g[f++]=185;let U=f-n;f+=2;let T=0;if(a.keyMap)for(let R in v)(typeof v.hasOwnProperty!=&quot;function&quot;||v.hasOwnProperty(R))&amp;&amp;(h(a.encodeKey(R)),h(v[R]),T++);else for(let R in v)(typeof v.hasOwnProperty!=&quot;function&quot;||v.hasOwnProperty(R))&amp;&amp;(h(R),h(v[R]),T++);g[U+++n]=T&gt;&gt;8,g[U+n]=T&amp;255}:(v,U)=&gt;{let T,R=s.transitions||(s.transitions=Object.create(null)),C=0,S=0,I,P;if(this.keyMap){P=Object.keys(v).map(Z=&gt;this.encodeKey(Z)),S=P.length;for(let Z=0;Z&lt;S;Z++){let In=P[Z];T=R[In],T||(T=R[In]=Object.create(null),C++),R=T}}else for(let Z in v)(typeof v.hasOwnProperty!=&quot;function&quot;||v.hasOwnProperty(Z))&amp;&amp;(T=R[Z],T||(R[Xe]&amp;1048576&amp;&amp;(I=R[Xe]&amp;65535),T=R[Z]=Object.create(null),C++),R=T,S++);let B=R[Xe];if(B!==void 0)B&amp;=65535,g[f++]=217,g[f++]=B&gt;&gt;8|224,g[f++]=B&amp;255;else if(P||(P=R.__keys__||(R.__keys__=Object.keys(v))),I===void 0?(B=s.nextId++,B||(B=0,s.nextId=1),B&gt;=Df&amp;&amp;(s.nextId=(B=c)+1)):B=I,s[B]=P,B&lt;c){g[f++]=217,g[f++]=B&gt;&gt;8|224,g[f++]=B&amp;255,R=s.transitions;for(let Z=0;Z&lt;S;Z++)(R[Xe]===void 0||R[Xe]&amp;1048576)&amp;&amp;(R[Xe]=B),R=R[P[Z]];R[Xe]=B|1048576,i=!0}else{if(R[Xe]=B,de.setUint32(f,3655335680),f+=3,C&amp;&amp;(m+=d*C),G.length&gt;=Df-c&amp;&amp;(G.shift()[Xe]=void 0),G.push(R),Pt(S+2),h(57344+B),h(P),U)return;for(let Z in v)(typeof v.hasOwnProperty!=&quot;function&quot;||v.hasOwnProperty(Z))&amp;&amp;h(v[Z]);return}if(S&lt;24?g[f++]=128|S:Pt(S),!U)for(let Z in v)(typeof v.hasOwnProperty!=&quot;function&quot;||v.hasOwnProperty(Z))&amp;&amp;h(v[Z])},L=v=&gt;{let U;if(v&gt;16777216){if(v-n&gt;zf)throw new Error(&quot;Encoded buffer would be larger than maximum buffer size&quot;);U=Math.min(zf,Math.round(Math.max((v-n)*(v&gt;67108864?1.25:2),4194304)/4096)*4096)}else U=(Math.max(v-n&lt;&lt;2,g.length-1)&gt;&gt;12)+1&lt;&lt;12;let T=new Uo(U);return de=new DataView(T.buffer,0,U),g.copy?g.copy(T,0,n,v):T.set(g.slice(n,v)),f-=n,n=0,en=T.length-10,g=T};let z=100,F=1e3;this.encodeAsIterable=function(v,U){return He(v,U,V)},this.encodeAsAsyncIterable=function(v,U){return He(v,U,Xt)};function*V(v,U,T){let R=v.constructor;if(R===Object){let C=a.useRecords!==!1;C?O(v,!0):Uf(Object.keys(v).length,160);for(let S in v){let I=v[S];C||h(S),I&amp;&amp;typeof I==&quot;object&quot;?U[S]?yield*V(I,U[S]):yield*ue(I,U,S):h(I)}}else if(R===Array){let C=v.length;Pt(C);for(let S=0;S&lt;C;S++){let I=v[S];I&amp;&amp;(typeof I==&quot;object&quot;||f-n&gt;z)?U.element?yield*V(I,U.element):yield*ue(I,U,&quot;element&quot;):h(I)}}else if(v[Symbol.iterator]&amp;&amp;!v.buffer){g[f++]=159;for(let C of v)C&amp;&amp;(typeof C==&quot;object&quot;||f-n&gt;z)?U.element?yield*V(C,U.element):yield*ue(C,U,&quot;element&quot;):h(C);g[f++]=255}else jo(v)?(Uf(v.size,64),yield g.subarray(n,f),yield v,b()):v[Symbol.asyncIterator]?(g[f++]=159,yield g.subarray(n,f),yield v,b(),g[f++]=255):h(v);T&amp;&amp;f&gt;n?yield g.subarray(n,f):f-n&gt;z&amp;&amp;(yield g.subarray(n,f),b())}function*ue(v,U,T){let R=f-n;try{h(v),f-n&gt;z&amp;&amp;(yield g.subarray(n,f),b())}catch(C){if(C.iteratorNotHandled)U[T]={},f=n+R,yield*V.call(this,v,U[T]);else throw C}}function b(){z=F,a.encode(null,Fo)}function He(v,U,T){return U&amp;&amp;U.chunkThreshold?z=F=U.chunkThreshold:z=100,v&amp;&amp;typeof v==&quot;object&quot;?(a.encode(null,Fo),T(v,a.iterateProperties||(a.iterateProperties={}),!0)):[a.encode(v)]}async function*Xt(v,U){for(let T of V(v,U,!0)){let R=T.constructor;if(R===Mf||R===Uint8Array)yield T;else if(jo(T)){let C=T.stream().getReader(),S;for(;!(S=await C.read()).done;)yield S.value}else if(T[Symbol.asyncIterator])for await(let C of T)b(),C?yield*Xt(C,U.async||(U.async={})):yield a.encode(C);else yield T}}}useBuffer(t){g=t,de=new DataView(g.buffer,g.byteOffset,g.byteLength),f=0}clearSharedData(){this.structures&amp;&amp;(this.structures=[]),this.sharedValues&amp;&amp;(this.sharedValues=void 0)}updateSharedData(){let t=this.sharedVersion||0;this.sharedVersion=t+1;let n=this.structures.slice(0),r=new Fp(n,this.sharedValues,this.sharedVersion),i=this.saveShared(r,s=&gt;(s&amp;&amp;s.version||0)==t);return i===!1?(r=this.getShared()||{},this.structures=r.structures||[],this.sharedValues=r.packedValues,this.sharedVersion=r.version,this.structures.nextId=this.structures.length):n.forEach((s,l)=&gt;this.structures[l]=s),i}}function Uf(e,t){e&lt;24?g[f++]=t|e:e&lt;256?(g[f++]=t|24,g[f++]=e):e&lt;65536?(g[f++]=t|25,g[f++]=e&gt;&gt;8,g[f++]=e&amp;255):(g[f++]=t|26,de.setUint32(f,e),f+=4)}class Fp{constructor(t,n,r){this.structures=t,this.packedValues=n,this.version=r}}function Pt(e){e&lt;24?g[f++]=128|e:e&lt;256?(g[f++]=152,g[f++]=e):e&lt;65536?(g[f++]=153,g[f++]=e&gt;&gt;8,g[f++]=e&amp;255):(g[f++]=154,de.setUint32(f,e),f+=4)}const Vg=typeof Blob&gt;&quot;u&quot;?function(){}:Blob;function jo(e){if(e instanceof Vg)return!0;let t=e[Symbol.toStringTag];return t===&quot;Blob&quot;||t===&quot;File&quot;}function qs(e,t){switch(typeof e){case&quot;string&quot;:if(e.length&gt;3){if(t.objectMap[e]&gt;-1||t.values.length&gt;=t.maxValues)return;let r=t.get(e);if(r)++r.count==2&amp;&amp;t.values.push(e);else if(t.set(e,{count:1}),t.samplingPackedValues){let i=t.samplingPackedValues.get(e);i?i.count++:t.samplingPackedValues.set(e,{count:1})}}break;case&quot;object&quot;:if(e)if(e instanceof Array)for(let r=0,i=e.length;r&lt;i;r++)qs(e[r],t);else{let r=!t.encoder.useRecords;for(var n in e)e.hasOwnProperty(n)&amp;&amp;(r&amp;&amp;qs(n,t),qs(e[n],t))}break;case&quot;function&quot;:console.log(e)}}const Bg=new Uint8Array(new Uint16Array([1]).buffer)[0]==1;jp=[Date,Set,Error,RegExp,rr,ArrayBuffer,Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,typeof BigUint64Array&gt;&quot;u&quot;?function(){}:BigUint64Array,Int8Array,Int16Array,Int32Array,typeof BigInt64Array&gt;&quot;u&quot;?function(){}:BigInt64Array,Float32Array,Float64Array,Fp];Wa=[{tag:1,encode(e,t){let n=e.getTime()/1e3;(this.useTimestamp32||e.getMilliseconds()===0)&amp;&amp;n&gt;=0&amp;&amp;n&lt;4294967296?(g[f++]=26,de.setUint32(f,n),f+=4):(g[f++]=251,de.setFloat64(f,n),f+=8)}},{tag:258,encode(e,t){let n=Array.from(e);t(n)}},{tag:27,encode(e,t){t([e.name,e.message])}},{tag:27,encode(e,t){t([&quot;RegExp&quot;,e.source,e.flags])}},{getTag(e){return e.tag},encode(e,t){t(e.value)}},{encode(e,t,n){Za(e,n)}},{getTag(e){if(e.constructor===Uint8Array&amp;&amp;(this.tagUint8Array||ds&amp;&amp;this.tagUint8Array!==!1))return 64},encode(e,t,n){Za(e,n)}},At(68,1),At(69,2),At(70,4),At(71,8),At(72,1),At(77,2),At(78,4),At(79,8),At(85,4),At(86,8),{encode(e,t){let n=e.packedValues||[],r=e.structures||[];if(n.values.length&gt;0){g[f++]=216,g[f++]=51,Pt(4);let i=n.values;t(i),Pt(0),Pt(0),packedObjectMap=Object.create(sharedPackedObjectMap||null);for(let s=0,l=i.length;s&lt;l;s++)packedObjectMap[i[s]]=s}if(r){de.setUint32(f,3655335424),f+=3;let i=r.slice(0);i.unshift(57344),i.push(new rr(e.version,1399353956)),t(i)}else t(new rr(e.version,1399353956))}}];function At(e,t){return!Bg&amp;&amp;t&gt;1&amp;&amp;(e-=4),{tag:e,encode:function(r,i){let s=r.byteLength,l=r.byteOffset||0,o=r.buffer||r;i(ds?no.from(o,l,s):new Uint8Array(o,l,s))}}}function Za(e,t){let n=e.byteLength;n&lt;24?g[f++]=64+n:n&lt;256?(g[f++]=88,g[f++]=n):n&lt;65536?(g[f++]=89,g[f++]=n&gt;&gt;8,g[f++]=n&amp;255):(g[f++]=90,de.setUint32(f,n),f+=4),f+n&gt;=g.length&amp;&amp;t(f+n),g.set(e.buffer?e:new Uint8Array(e),f),f+=n}function Wg(e,t){let n,r=t.length*2,i=e.length-r;t.sort((s,l)=&gt;s.offset&gt;l.offset?1:-1);for(let s=0;s&lt;t.length;s++){let l=t[s];l.id=s;for(let o of l.references)e[o++]=s&gt;&gt;8,e[o]=s&amp;255}for(;n=t.pop();){let s=n.offset;e.copyWithin(s+r,s,i),r-=2;let l=s+r;e[l++]=216,e[l++]=28,i=s}return e}function $f(e,t){de.setUint32(Oe.position+e,f-Oe.position-e+1);let n=Oe;Oe=null,t(n[0]),t(n[1])}let oc=new Fg({useRecords:!1});const Vp=oc.encode;oc.encodeAsIterable;oc.encodeAsAsyncIterable;const jf=512,Zg=1024,Fo=2048;var ie;(function(e){e.assertEqual=i=&gt;{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=&gt;{const s={};for(const l of i)s[l]=l;return s},e.getValidEnumValues=i=&gt;{const s=e.objectKeys(i).filter(o=&gt;typeof i[i[o]]!=&quot;number&quot;),l={};for(const o of s)l[o]=i[o];return e.objectValues(l)},e.objectValues=i=&gt;e.objectKeys(i).map(function(s){return i[s]}),e.objectKeys=typeof Object.keys==&quot;function&quot;?i=&gt;Object.keys(i):i=&gt;{const s=[];for(const l in i)Object.prototype.hasOwnProperty.call(i,l)&amp;&amp;s.push(l);return s},e.find=(i,s)=&gt;{for(const l of i)if(s(l))return l},e.isInteger=typeof Number.isInteger==&quot;function&quot;?i=&gt;Number.isInteger(i):i=&gt;typeof i==&quot;number&quot;&amp;&amp;Number.isFinite(i)&amp;&amp;Math.floor(i)===i;function r(i,s=&quot; | &quot;){return i.map(l=&gt;typeof l==&quot;string&quot;?`&#39;${l}&#39;`:l).join(s)}e.joinValues=r,e.jsonStringifyReplacer=(i,s)=&gt;typeof s==&quot;bigint&quot;?s.toString():s})(ie||(ie={}));var Ff;(function(e){e.mergeShapes=(t,n)=&gt;({...t,...n})})(Ff||(Ff={}));const j=ie.arrayToEnum([&quot;string&quot;,&quot;nan&quot;,&quot;number&quot;,&quot;integer&quot;,&quot;float&quot;,&quot;boolean&quot;,&quot;date&quot;,&quot;bigint&quot;,&quot;symbol&quot;,&quot;function&quot;,&quot;undefined&quot;,&quot;null&quot;,&quot;array&quot;,&quot;object&quot;,&quot;unknown&quot;,&quot;promise&quot;,&quot;void&quot;,&quot;never&quot;,&quot;map&quot;,&quot;set&quot;]),rn=e=&gt;{switch(typeof e){case&quot;undefined&quot;:return j.undefined;case&quot;string&quot;:return j.string;case&quot;number&quot;:return Number.isNaN(e)?j.nan:j.number;case&quot;boolean&quot;:return j.boolean;case&quot;function&quot;:return j.function;case&quot;bigint&quot;:return j.bigint;case&quot;symbol&quot;:return j.symbol;case&quot;object&quot;:return Array.isArray(e)?j.array:e===null?j.null:e.then&amp;&amp;typeof e.then==&quot;function&quot;&amp;&amp;e.catch&amp;&amp;typeof e.catch==&quot;function&quot;?j.promise:typeof Map&lt;&quot;u&quot;&amp;&amp;e instanceof Map?j.map:typeof Set&lt;&quot;u&quot;&amp;&amp;e instanceof Set?j.set:typeof Date&lt;&quot;u&quot;&amp;&amp;e instanceof Date?j.date:j.object;default:return j.unknown}},A=ie.arrayToEnum([&quot;invalid_type&quot;,&quot;invalid_literal&quot;,&quot;custom&quot;,&quot;invalid_union&quot;,&quot;invalid_union_discriminator&quot;,&quot;invalid_enum_value&quot;,&quot;unrecognized_keys&quot;,&quot;invalid_arguments&quot;,&quot;invalid_return_type&quot;,&quot;invalid_date&quot;,&quot;invalid_string&quot;,&quot;too_small&quot;,&quot;too_big&quot;,&quot;invalid_intersection_types&quot;,&quot;not_multiple_of&quot;,&quot;not_finite&quot;]);class bt extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=&gt;{this.issues=[...this.issues,r]},this.addIssues=(r=[])=&gt;{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name=&quot;ZodError&quot;,this.issues=t}format(t){const n=t||function(s){return s.message},r={_errors:[]},i=s=&gt;{for(const l of s.issues)if(l.code===&quot;invalid_union&quot;)l.unionErrors.map(i);else if(l.code===&quot;invalid_return_type&quot;)i(l.returnTypeError);else if(l.code===&quot;invalid_arguments&quot;)i(l.argumentsError);else if(l.path.length===0)r._errors.push(n(l));else{let o=r,a=0;for(;a&lt;l.path.length;){const u=l.path[a];a===l.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(n(l))):o[u]=o[u]||{_errors:[]},o=o[u],a++}}};return i(this),r}static assert(t){if(!(t instanceof bt))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ie.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=&gt;n.message){const n={},r=[];for(const i of this.issues)if(i.path.length&gt;0){const s=i.path[0];n[s]=n[s]||[],n[s].push(t(i))}else r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}bt.create=e=&gt;new bt(e);const Ha=(e,t)=&gt;{let n;switch(e.code){case A.invalid_type:e.received===j.undefined?n=&quot;Required&quot;:n=`Expected ${e.expected}, received ${e.received}`;break;case A.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ie.jsonStringifyReplacer)}`;break;case A.unrecognized_keys:n=`Unrecognized key(s) in object: ${ie.joinValues(e.keys,&quot;, &quot;)}`;break;case A.invalid_union:n=&quot;Invalid input&quot;;break;case A.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ie.joinValues(e.options)}`;break;case A.invalid_enum_value:n=`Invalid enum value. Expected ${ie.joinValues(e.options)}, received &#39;${e.received}&#39;`;break;case A.invalid_arguments:n=&quot;Invalid function arguments&quot;;break;case A.invalid_return_type:n=&quot;Invalid function return type&quot;;break;case A.invalid_date:n=&quot;Invalid date&quot;;break;case A.invalid_string:typeof e.validation==&quot;object&quot;?&quot;includes&quot;in e.validation?(n=`Invalid input: must include &quot;${e.validation.includes}&quot;`,typeof e.validation.position==&quot;number&quot;&amp;&amp;(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):&quot;startsWith&quot;in e.validation?n=`Invalid input: must start with &quot;${e.validation.startsWith}&quot;`:&quot;endsWith&quot;in e.validation?n=`Invalid input: must end with &quot;${e.validation.endsWith}&quot;`:ie.assertNever(e.validation):e.validation!==&quot;regex&quot;?n=`Invalid ${e.validation}`:n=&quot;Invalid&quot;;break;case A.too_small:e.type===&quot;array&quot;?n=`Array must contain ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;at least&quot;:&quot;more than&quot;} ${e.minimum} element(s)`:e.type===&quot;string&quot;?n=`String must contain ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;at least&quot;:&quot;over&quot;} ${e.minimum} character(s)`:e.type===&quot;number&quot;?n=`Number must be ${e.exact?&quot;exactly equal to &quot;:e.inclusive?&quot;greater than or equal to &quot;:&quot;greater than &quot;}${e.minimum}`:e.type===&quot;bigint&quot;?n=`Number must be ${e.exact?&quot;exactly equal to &quot;:e.inclusive?&quot;greater than or equal to &quot;:&quot;greater than &quot;}${e.minimum}`:e.type===&quot;date&quot;?n=`Date must be ${e.exact?&quot;exactly equal to &quot;:e.inclusive?&quot;greater than or equal to &quot;:&quot;greater than &quot;}${new Date(Number(e.minimum))}`:n=&quot;Invalid input&quot;;break;case A.too_big:e.type===&quot;array&quot;?n=`Array must contain ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;at most&quot;:&quot;less than&quot;} ${e.maximum} element(s)`:e.type===&quot;string&quot;?n=`String must contain ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;at most&quot;:&quot;under&quot;} ${e.maximum} character(s)`:e.type===&quot;number&quot;?n=`Number must be ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;less than or equal to&quot;:&quot;less than&quot;} ${e.maximum}`:e.type===&quot;bigint&quot;?n=`BigInt must be ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;less than or equal to&quot;:&quot;less than&quot;} ${e.maximum}`:e.type===&quot;date&quot;?n=`Date must be ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;smaller than or equal to&quot;:&quot;smaller than&quot;} ${new Date(Number(e.maximum))}`:n=&quot;Invalid input&quot;;break;case A.custom:n=&quot;Invalid input&quot;;break;case A.invalid_intersection_types:n=&quot;Intersection results could not be merged&quot;;break;case A.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case A.not_finite:n=&quot;Number must be finite&quot;;break;default:n=t.defaultError,ie.assertNever(e)}return{message:n}};let Hg=Ha;function Qg(){return Hg}const Kg=e=&gt;{const{data:t,path:n,errorMaps:r,issueData:i}=e,s=[...n,...i.path||[]],l={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let o=&quot;&quot;;const a=r.filter(u=&gt;!!u).slice().reverse();for(const u of a)o=u(l,{data:t,defaultError:o}).message;return{...i,path:s,message:o}};function M(e,t){const n=Qg(),r=Kg({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ha?void 0:Ha].filter(i=&gt;!!i)});e.common.issues.push(r)}class st{constructor(){this.value=&quot;valid&quot;}dirty(){this.value===&quot;valid&quot;&amp;&amp;(this.value=&quot;dirty&quot;)}abort(){this.value!==&quot;aborted&quot;&amp;&amp;(this.value=&quot;aborted&quot;)}static mergeArray(t,n){const r=[];for(const i of n){if(i.status===&quot;aborted&quot;)return Q;i.status===&quot;dirty&quot;&amp;&amp;t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const s=await i.key,l=await i.value;r.push({key:s,value:l})}return st.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:s,value:l}=i;if(s.status===&quot;aborted&quot;||l.status===&quot;aborted&quot;)return Q;s.status===&quot;dirty&quot;&amp;&amp;t.dirty(),l.status===&quot;dirty&quot;&amp;&amp;t.dirty(),s.value!==&quot;__proto__&quot;&amp;&amp;(typeof l.value&lt;&quot;u&quot;||i.alwaysSet)&amp;&amp;(r[s.value]=l.value)}return{status:t.value,value:r}}}const Q=Object.freeze({status:&quot;aborted&quot;}),_i=e=&gt;({status:&quot;dirty&quot;,value:e}),wt=e=&gt;({status:&quot;valid&quot;,value:e}),Vf=e=&gt;e.status===&quot;aborted&quot;,Bf=e=&gt;e.status===&quot;dirty&quot;,Gr=e=&gt;e.status===&quot;valid&quot;,Il=e=&gt;typeof Promise&lt;&quot;u&quot;&amp;&amp;e instanceof Promise;var W;(function(e){e.errToObj=t=&gt;typeof t==&quot;string&quot;?{message:t}:t||{},e.toString=t=&gt;typeof t==&quot;string&quot;?t:t==null?void 0:t.message})(W||(W={}));class On{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Wf=(e,t)=&gt;{if(Gr(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error(&quot;Validation failed but no issues detected.&quot;);return{success:!1,get error(){if(this._error)return this._error;const n=new bt(e.common.issues);return this._error=n,this._error}}};function Y(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&amp;&amp;(n||r))throw new Error(`Can&#39;t use &quot;invalid_type_error&quot; or &quot;required_error&quot; in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(l,o)=&gt;{const{message:a}=e;return l.code===&quot;invalid_enum_value&quot;?{message:a??o.defaultError}:typeof o.data&gt;&quot;u&quot;?{message:a??r??o.defaultError}:l.code!==&quot;invalid_type&quot;?{message:o.defaultError}:{message:a??n??o.defaultError}},description:i}}class re{get description(){return this._def.description}_getType(t){return rn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:rn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new st,ctx:{common:t.parent.common,data:t.data,parsedType:rn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Il(n))throw new Error(&quot;Synchronous parse encountered promise.&quot;);return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:rn(t)},i=this._parseSync({data:t,path:r.path,parent:r});return Wf(r,i)}&quot;~validate&quot;(t){var r,i;const n={common:{issues:[],async:!!this[&quot;~standard&quot;].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:rn(t)};if(!this[&quot;~standard&quot;].async)try{const s=this._parseSync({data:t,path:[],parent:n});return Gr(s)?{value:s.value}:{issues:n.common.issues}}catch(s){(i=(r=s==null?void 0:s.message)==null?void 0:r.toLowerCase())!=null&amp;&amp;i.includes(&quot;encountered&quot;)&amp;&amp;(this[&quot;~standard&quot;].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(s=&gt;Gr(s)?{value:s.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:rn(t)},i=this._parse({data:t,path:r.path,parent:r}),s=await(Il(i)?i:Promise.resolve(i));return Wf(r,s)}refine(t,n){const r=i=&gt;typeof n==&quot;string&quot;||typeof n&gt;&quot;u&quot;?{message:n}:typeof n==&quot;function&quot;?n(i):n;return this._refinement((i,s)=&gt;{const l=t(i),o=()=&gt;s.addIssue({code:A.custom,...r(i)});return typeof Promise&lt;&quot;u&quot;&amp;&amp;l instanceof Promise?l.then(a=&gt;a?!0:(o(),!1)):l?!0:(o(),!1)})}refinement(t,n){return this._refinement((r,i)=&gt;t(r)?!0:(i.addIssue(typeof n==&quot;function&quot;?n(r,i):n),!1))}_refinement(t){return new Xr({schema:this,typeName:K.ZodEffects,effect:{type:&quot;refinement&quot;,refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,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.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[&quot;~standard&quot;]={version:1,vendor:&quot;zod&quot;,validate:n=&gt;this[&quot;~validate&quot;](n)}}optional(){return Sn.create(this,this._def)}nullable(){return qr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ut.create(this)}promise(){return Dl.create(this,this._def)}or(t){return Ll.create([this,t],this._def)}and(t){return Ml.create(this,t,this._def)}transform(t){return new Xr({...Y(this._def),schema:this,typeName:K.ZodEffects,effect:{type:&quot;transform&quot;,transform:t}})}default(t){const n=typeof t==&quot;function&quot;?t:()=&gt;t;return new Ga({...Y(this._def),innerType:this,defaultValue:n,typeName:K.ZodDefault})}brand(){return new y0({typeName:K.ZodBranded,type:this,...Y(this._def)})}catch(t){const n=typeof t==&quot;function&quot;?t:()=&gt;t;return new ba({...Y(this._def),innerType:this,catchValue:n,typeName:K.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return ac.create(this,t)}readonly(){return Ya.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Jg=/^c[^\s-]{8,}$/i,Gg=/^[0-9a-z]+$/,bg=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Yg=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Xg=/^[a-z0-9_-]{21}$/i,qg=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,e0=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,t0=/^(?!\.)(?!.*\.\.)([A-Z0-9_&#39;+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,n0=&quot;^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$&quot;;let Vo;const r0=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,i0=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,s0=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,l0=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,o0=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,a0=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Bp=&quot;((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))&quot;,u0=new RegExp(`^${Bp}$`);function Wp(e){let t=&quot;[0-5]\\d&quot;;e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&amp;&amp;(t=`${t}(\\.\\d+)?`);const n=e.precision?&quot;+&quot;:&quot;?&quot;;return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function c0(e){return new RegExp(`^${Wp(e)}$`)}function f0(e){let t=`${Bp}T${Wp(e)}`;const n=[];return n.push(e.local?&quot;Z?&quot;:&quot;Z&quot;),e.offset&amp;&amp;n.push(&quot;([+-]\\d{2}:?\\d{2})&quot;),t=`${t}(${n.join(&quot;|&quot;)})`,new RegExp(`^${t}$`)}function d0(e,t){return!!((t===&quot;v4&quot;||!t)&amp;&amp;r0.test(e)||(t===&quot;v6&quot;||!t)&amp;&amp;s0.test(e))}function h0(e,t){if(!qg.test(e))return!1;try{const[n]=e.split(&quot;.&quot;);if(!n)return!1;const r=n.replace(/-/g,&quot;+&quot;).replace(/_/g,&quot;/&quot;).padEnd(n.length+(4-n.length%4)%4,&quot;=&quot;),i=JSON.parse(atob(r));return!(typeof i!=&quot;object&quot;||i===null||&quot;typ&quot;in i&amp;&amp;(i==null?void 0:i.typ)!==&quot;JWT&quot;||!i.alg||t&amp;&amp;i.alg!==t)}catch{return!1}}function p0(e,t){return!!((t===&quot;v4&quot;||!t)&amp;&amp;i0.test(e)||(t===&quot;v6&quot;||!t)&amp;&amp;l0.test(e))}class hn extends re{_parse(t){if(this._def.coerce&amp;&amp;(t.data=String(t.data)),this._getType(t)!==j.string){const s=this._getOrReturnCtx(t);return M(s,{code:A.invalid_type,expected:j.string,received:s.parsedType}),Q}const r=new st;let i;for(const s of this._def.checks)if(s.kind===&quot;min&quot;)t.data.length&lt;s.value&amp;&amp;(i=this._getOrReturnCtx(t,i),M(i,{code:A.too_small,minimum:s.value,type:&quot;string&quot;,inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind===&quot;max&quot;)t.data.length&gt;s.value&amp;&amp;(i=this._getOrReturnCtx(t,i),M(i,{code:A.too_big,maximum:s.value,type:&quot;string&quot;,inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind===&quot;length&quot;){const l=t.data.length&gt;s.value,o=t.data.length&lt;s.value;(l||o)&amp;&amp;(i=this._getOrReturnCtx(t,i),l?M(i,{code:A.too_big,maximum:s.value,type:&quot;string&quot;,inclusive:!0,exact:!0,message:s.message}):o&amp;&amp;M(i,{code:A.too_small,minimum:s.value,type:&quot;string&quot;,inclusive:!0,exact:!0,message:s.message}),r.dirty())}else if(s.kind===&quot;email&quot;)t0.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;email&quot;,code:A.invalid_string,message:s.message}),r.dirty());else if(s.kind===&quot;emoji&quot;)Vo||(Vo=new RegExp(n0,&quot;u&quot;)),Vo.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;emoji&quot;,code:A.invalid_string,message:s.message}),r.dirty());else if(s.kind===&quot;uuid&quot;)Yg.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;uuid&quot;,code:A.invalid_string,message:s.message}),r.dirty());else if(s.kind===&quot;nanoid&quot;)Xg.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;nanoid&quot;,code:A.invalid_string,message:s.message}),r.dirty());else if(s.kind===&quot;cuid&quot;)Jg.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;cuid&quot;,code:A.invalid_string,message:s.message}),r.dirty());else if(s.kind===&quot;cuid2&quot;)Gg.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;cuid2&quot;,code:A.invalid_string,message:s.message}),r.dirty());else if(s.kind===&quot;ulid&quot;)bg.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;ulid&quot;,code:A.invalid_string,message:s.message}),r.dirty());else if(s.kind===&quot;url&quot;)try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;url&quot;,code:A.invalid_string,message:s.message}),r.dirty()}else s.kind===&quot;regex&quot;?(s.regex.lastIndex=0,s.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;regex&quot;,code:A.invalid_string,message:s.message}),r.dirty())):s.kind===&quot;trim&quot;?t.data=t.data.trim():s.kind===&quot;includes&quot;?t.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(t,i),M(i,{code:A.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),r.dirty()):s.kind===&quot;toLowerCase&quot;?t.data=t.data.toLowerCase():s.kind===&quot;toUpperCase&quot;?t.data=t.data.toUpperCase():s.kind===&quot;startsWith&quot;?t.data.startsWith(s.value)||(i=this._getOrReturnCtx(t,i),M(i,{code:A.invalid_string,validation:{startsWith:s.value},message:s.message}),r.dirty()):s.kind===&quot;endsWith&quot;?t.data.endsWith(s.value)||(i=this._getOrReturnCtx(t,i),M(i,{code:A.invalid_string,validation:{endsWith:s.value},message:s.message}),r.dirty()):s.kind===&quot;datetime&quot;?f0(s).test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{code:A.invalid_string,validation:&quot;datetime&quot;,message:s.message}),r.dirty()):s.kind===&quot;date&quot;?u0.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{code:A.invalid_string,validation:&quot;date&quot;,message:s.message}),r.dirty()):s.kind===&quot;time&quot;?c0(s).test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{code:A.invalid_string,validation:&quot;time&quot;,message:s.message}),r.dirty()):s.kind===&quot;duration&quot;?e0.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;duration&quot;,code:A.invalid_string,message:s.message}),r.dirty()):s.kind===&quot;ip&quot;?d0(t.data,s.version)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;ip&quot;,code:A.invalid_string,message:s.message}),r.dirty()):s.kind===&quot;jwt&quot;?h0(t.data,s.alg)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;jwt&quot;,code:A.invalid_string,message:s.message}),r.dirty()):s.kind===&quot;cidr&quot;?p0(t.data,s.version)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;cidr&quot;,code:A.invalid_string,message:s.message}),r.dirty()):s.kind===&quot;base64&quot;?o0.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;base64&quot;,code:A.invalid_string,message:s.message}),r.dirty()):s.kind===&quot;base64url&quot;?a0.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;base64url&quot;,code:A.invalid_string,message:s.message}),r.dirty()):ie.assertNever(s);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=&gt;t.test(i),{validation:n,code:A.invalid_string,...W.errToObj(r)})}_addCheck(t){return new hn({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:&quot;email&quot;,...W.errToObj(t)})}url(t){return this._addCheck({kind:&quot;url&quot;,...W.errToObj(t)})}emoji(t){return this._addCheck({kind:&quot;emoji&quot;,...W.errToObj(t)})}uuid(t){return this._addCheck({kind:&quot;uuid&quot;,...W.errToObj(t)})}nanoid(t){return this._addCheck({kind:&quot;nanoid&quot;,...W.errToObj(t)})}cuid(t){return this._addCheck({kind:&quot;cuid&quot;,...W.errToObj(t)})}cuid2(t){return this._addCheck({kind:&quot;cuid2&quot;,...W.errToObj(t)})}ulid(t){return this._addCheck({kind:&quot;ulid&quot;,...W.errToObj(t)})}base64(t){return this._addCheck({kind:&quot;base64&quot;,...W.errToObj(t)})}base64url(t){return this._addCheck({kind:&quot;base64url&quot;,...W.errToObj(t)})}jwt(t){return this._addCheck({kind:&quot;jwt&quot;,...W.errToObj(t)})}ip(t){return this._addCheck({kind:&quot;ip&quot;,...W.errToObj(t)})}cidr(t){return this._addCheck({kind:&quot;cidr&quot;,...W.errToObj(t)})}datetime(t){return typeof t==&quot;string&quot;?this._addCheck({kind:&quot;datetime&quot;,precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:&quot;datetime&quot;,precision:typeof(t==null?void 0:t.precision)&gt;&quot;u&quot;?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...W.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:&quot;date&quot;,message:t})}time(t){return typeof t==&quot;string&quot;?this._addCheck({kind:&quot;time&quot;,precision:null,message:t}):this._addCheck({kind:&quot;time&quot;,precision:typeof(t==null?void 0:t.precision)&gt;&quot;u&quot;?null:t==null?void 0:t.precision,...W.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:&quot;duration&quot;,...W.errToObj(t)})}regex(t,n){return this._addCheck({kind:&quot;regex&quot;,regex:t,...W.errToObj(n)})}includes(t,n){return this._addCheck({kind:&quot;includes&quot;,value:t,position:n==null?void 0:n.position,...W.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:&quot;startsWith&quot;,value:t,...W.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:&quot;endsWith&quot;,value:t,...W.errToObj(n)})}min(t,n){return this._addCheck({kind:&quot;min&quot;,value:t,...W.errToObj(n)})}max(t,n){return this._addCheck({kind:&quot;max&quot;,value:t,...W.errToObj(n)})}length(t,n){return this._addCheck({kind:&quot;length&quot;,value:t,...W.errToObj(n)})}nonempty(t){return this.min(1,W.errToObj(t))}trim(){return new hn({...this._def,checks:[...this._def.checks,{kind:&quot;trim&quot;}]})}toLowerCase(){return new hn({...this._def,checks:[...this._def.checks,{kind:&quot;toLowerCase&quot;}]})}toUpperCase(){return new hn({...this._def,checks:[...this._def.checks,{kind:&quot;toUpperCase&quot;}]})}get isDatetime(){return!!this._def.checks.find(t=&gt;t.kind===&quot;datetime&quot;)}get isDate(){return!!this._def.checks.find(t=&gt;t.kind===&quot;date&quot;)}get isTime(){return!!this._def.checks.find(t=&gt;t.kind===&quot;time&quot;)}get isDuration(){return!!this._def.checks.find(t=&gt;t.kind===&quot;duration&quot;)}get isEmail(){return!!this._def.checks.find(t=&gt;t.kind===&quot;email&quot;)}get isURL(){return!!this._def.checks.find(t=&gt;t.kind===&quot;url&quot;)}get isEmoji(){return!!this._def.checks.find(t=&gt;t.kind===&quot;emoji&quot;)}get isUUID(){return!!this._def.checks.find(t=&gt;t.kind===&quot;uuid&quot;)}get isNANOID(){return!!this._def.checks.find(t=&gt;t.kind===&quot;nanoid&quot;)}get isCUID(){return!!this._def.checks.find(t=&gt;t.kind===&quot;cuid&quot;)}get isCUID2(){return!!this._def.checks.find(t=&gt;t.kind===&quot;cuid2&quot;)}get isULID(){return!!this._def.checks.find(t=&gt;t.kind===&quot;ulid&quot;)}get isIP(){return!!this._def.checks.find(t=&gt;t.kind===&quot;ip&quot;)}get isCIDR(){return!!this._def.checks.find(t=&gt;t.kind===&quot;cidr&quot;)}get isBase64(){return!!this._def.checks.find(t=&gt;t.kind===&quot;base64&quot;)}get isBase64url(){return!!this._def.checks.find(t=&gt;t.kind===&quot;base64url&quot;)}get minLength(){let t=null;for(const n of this._def.checks)n.kind===&quot;min&quot;&amp;&amp;(t===null||n.value&gt;t)&amp;&amp;(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind===&quot;max&quot;&amp;&amp;(t===null||n.value&lt;t)&amp;&amp;(t=n.value);return t}}hn.create=e=&gt;new hn({checks:[],typeName:K.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Y(e)});function m0(e,t){const n=(e.toString().split(&quot;.&quot;)[1]||&quot;&quot;).length,r=(t.toString().split(&quot;.&quot;)[1]||&quot;&quot;).length,i=n&gt;r?n:r,s=Number.parseInt(e.toFixed(i).replace(&quot;.&quot;,&quot;&quot;)),l=Number.parseInt(t.toFixed(i).replace(&quot;.&quot;,&quot;&quot;));return s%l/10**i}class br extends re{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&amp;&amp;(t.data=Number(t.data)),this._getType(t)!==j.number){const s=this._getOrReturnCtx(t);return M(s,{code:A.invalid_type,expected:j.number,received:s.parsedType}),Q}let r;const i=new st;for(const s of this._def.checks)s.kind===&quot;int&quot;?ie.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{code:A.invalid_type,expected:&quot;integer&quot;,received:&quot;float&quot;,message:s.message}),i.dirty()):s.kind===&quot;min&quot;?(s.inclusive?t.data&lt;s.value:t.data&lt;=s.value)&amp;&amp;(r=this._getOrReturnCtx(t,r),M(r,{code:A.too_small,minimum:s.value,type:&quot;number&quot;,inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind===&quot;max&quot;?(s.inclusive?t.data&gt;s.value:t.data&gt;=s.value)&amp;&amp;(r=this._getOrReturnCtx(t,r),M(r,{code:A.too_big,maximum:s.value,type:&quot;number&quot;,inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind===&quot;multipleOf&quot;?m0(t.data,s.value)!==0&amp;&amp;(r=this._getOrReturnCtx(t,r),M(r,{code:A.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind===&quot;finite&quot;?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{code:A.not_finite,message:s.message}),i.dirty()):ie.assertNever(s);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit(&quot;min&quot;,t,!0,W.toString(n))}gt(t,n){return this.setLimit(&quot;min&quot;,t,!1,W.toString(n))}lte(t,n){return this.setLimit(&quot;max&quot;,t,!0,W.toString(n))}lt(t,n){return this.setLimit(&quot;max&quot;,t,!1,W.toString(n))}setLimit(t,n,r,i){return new br({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:W.toString(i)}]})}_addCheck(t){return new br({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:&quot;int&quot;,message:W.toString(t)})}positive(t){return this._addCheck({kind:&quot;min&quot;,value:0,inclusive:!1,message:W.toString(t)})}negative(t){return this._addCheck({kind:&quot;max&quot;,value:0,inclusive:!1,message:W.toString(t)})}nonpositive(t){return this._addCheck({kind:&quot;max&quot;,value:0,inclusive:!0,message:W.toString(t)})}nonnegative(t){return this._addCheck({kind:&quot;min&quot;,value:0,inclusive:!0,message:W.toString(t)})}multipleOf(t,n){return this._addCheck({kind:&quot;multipleOf&quot;,value:t,message:W.toString(n)})}finite(t){return this._addCheck({kind:&quot;finite&quot;,message:W.toString(t)})}safe(t){return this._addCheck({kind:&quot;min&quot;,inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:W.toString(t)})._addCheck({kind:&quot;max&quot;,inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:W.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind===&quot;min&quot;&amp;&amp;(t===null||n.value&gt;t)&amp;&amp;(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind===&quot;max&quot;&amp;&amp;(t===null||n.value&lt;t)&amp;&amp;(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=&gt;t.kind===&quot;int&quot;||t.kind===&quot;multipleOf&quot;&amp;&amp;ie.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind===&quot;finite&quot;||r.kind===&quot;int&quot;||r.kind===&quot;multipleOf&quot;)return!0;r.kind===&quot;min&quot;?(n===null||r.value&gt;n)&amp;&amp;(n=r.value):r.kind===&quot;max&quot;&amp;&amp;(t===null||r.value&lt;t)&amp;&amp;(t=r.value)}return Number.isFinite(n)&amp;&amp;Number.isFinite(t)}}br.create=e=&gt;new br({checks:[],typeName:K.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Y(e)});class es extends re{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==j.bigint)return this._getInvalidInput(t);let r;const i=new st;for(const s of this._def.checks)s.kind===&quot;min&quot;?(s.inclusive?t.data&lt;s.value:t.data&lt;=s.value)&amp;&amp;(r=this._getOrReturnCtx(t,r),M(r,{code:A.too_small,type:&quot;bigint&quot;,minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind===&quot;max&quot;?(s.inclusive?t.data&gt;s.value:t.data&gt;=s.value)&amp;&amp;(r=this._getOrReturnCtx(t,r),M(r,{code:A.too_big,type:&quot;bigint&quot;,maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind===&quot;multipleOf&quot;?t.data%s.value!==BigInt(0)&amp;&amp;(r=this._getOrReturnCtx(t,r),M(r,{code:A.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):ie.assertNever(s);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return M(n,{code:A.invalid_type,expected:j.bigint,received:n.parsedType}),Q}gte(t,n){return this.setLimit(&quot;min&quot;,t,!0,W.toString(n))}gt(t,n){return this.setLimit(&quot;min&quot;,t,!1,W.toString(n))}lte(t,n){return this.setLimit(&quot;max&quot;,t,!0,W.toString(n))}lt(t,n){return this.setLimit(&quot;max&quot;,t,!1,W.toString(n))}setLimit(t,n,r,i){return new es({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:W.toString(i)}]})}_addCheck(t){return new es({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:&quot;min&quot;,value:BigInt(0),inclusive:!1,message:W.toString(t)})}negative(t){return this._addCheck({kind:&quot;max&quot;,value:BigInt(0),inclusive:!1,message:W.toString(t)})}nonpositive(t){return this._addCheck({kind:&quot;max&quot;,value:BigInt(0),inclusive:!0,message:W.toString(t)})}nonnegative(t){return this._addCheck({kind:&quot;min&quot;,value:BigInt(0),inclusive:!0,message:W.toString(t)})}multipleOf(t,n){return this._addCheck({kind:&quot;multipleOf&quot;,value:t,message:W.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind===&quot;min&quot;&amp;&amp;(t===null||n.value&gt;t)&amp;&amp;(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind===&quot;max&quot;&amp;&amp;(t===null||n.value&lt;t)&amp;&amp;(t=n.value);return t}}es.create=e=&gt;new es({checks:[],typeName:K.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Y(e)});class Qa extends re{_parse(t){if(this._def.coerce&amp;&amp;(t.data=!!t.data),this._getType(t)!==j.boolean){const r=this._getOrReturnCtx(t);return M(r,{code:A.invalid_type,expected:j.boolean,received:r.parsedType}),Q}return wt(t.data)}}Qa.create=e=&gt;new Qa({typeName:K.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Y(e)});class Pl extends re{_parse(t){if(this._def.coerce&amp;&amp;(t.data=new Date(t.data)),this._getType(t)!==j.date){const s=this._getOrReturnCtx(t);return M(s,{code:A.invalid_type,expected:j.date,received:s.parsedType}),Q}if(Number.isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return M(s,{code:A.invalid_date}),Q}const r=new st;let i;for(const s of this._def.checks)s.kind===&quot;min&quot;?t.data.getTime()&lt;s.value&amp;&amp;(i=this._getOrReturnCtx(t,i),M(i,{code:A.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:&quot;date&quot;}),r.dirty()):s.kind===&quot;max&quot;?t.data.getTime()&gt;s.value&amp;&amp;(i=this._getOrReturnCtx(t,i),M(i,{code:A.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:&quot;date&quot;}),r.dirty()):ie.assertNever(s);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Pl({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:&quot;min&quot;,value:t.getTime(),message:W.toString(n)})}max(t,n){return this._addCheck({kind:&quot;max&quot;,value:t.getTime(),message:W.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind===&quot;min&quot;&amp;&amp;(t===null||n.value&gt;t)&amp;&amp;(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind===&quot;max&quot;&amp;&amp;(t===null||n.value&lt;t)&amp;&amp;(t=n.value);return t!=null?new Date(t):null}}Pl.create=e=&gt;new Pl({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:K.ZodDate,...Y(e)});class Zf extends re{_parse(t){if(this._getType(t)!==j.symbol){const r=this._getOrReturnCtx(t);return M(r,{code:A.invalid_type,expected:j.symbol,received:r.parsedType}),Q}return wt(t.data)}}Zf.create=e=&gt;new Zf({typeName:K.ZodSymbol,...Y(e)});class Hf extends re{_parse(t){if(this._getType(t)!==j.undefined){const r=this._getOrReturnCtx(t);return M(r,{code:A.invalid_type,expected:j.undefined,received:r.parsedType}),Q}return wt(t.data)}}Hf.create=e=&gt;new Hf({typeName:K.ZodUndefined,...Y(e)});class Qf extends re{_parse(t){if(this._getType(t)!==j.null){const r=this._getOrReturnCtx(t);return M(r,{code:A.invalid_type,expected:j.null,received:r.parsedType}),Q}return wt(t.data)}}Qf.create=e=&gt;new Qf({typeName:K.ZodNull,...Y(e)});class Kf extends re{constructor(){super(...arguments),this._any=!0}_parse(t){return wt(t.data)}}Kf.create=e=&gt;new Kf({typeName:K.ZodAny,...Y(e)});class Ka extends re{constructor(){super(...arguments),this._unknown=!0}_parse(t){return wt(t.data)}}Ka.create=e=&gt;new Ka({typeName:K.ZodUnknown,...Y(e)});class Tn extends re{_parse(t){const n=this._getOrReturnCtx(t);return M(n,{code:A.invalid_type,expected:j.never,received:n.parsedType}),Q}}Tn.create=e=&gt;new Tn({typeName:K.ZodNever,...Y(e)});class Jf extends re{_parse(t){if(this._getType(t)!==j.undefined){const r=this._getOrReturnCtx(t);return M(r,{code:A.invalid_type,expected:j.void,received:r.parsedType}),Q}return wt(t.data)}}Jf.create=e=&gt;new Jf({typeName:K.ZodVoid,...Y(e)});class Ut extends re{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==j.array)return M(n,{code:A.invalid_type,expected:j.array,received:n.parsedType}),Q;if(i.exactLength!==null){const l=n.data.length&gt;i.exactLength.value,o=n.data.length&lt;i.exactLength.value;(l||o)&amp;&amp;(M(n,{code:l?A.too_big:A.too_small,minimum:o?i.exactLength.value:void 0,maximum:l?i.exactLength.value:void 0,type:&quot;array&quot;,inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&amp;&amp;n.data.length&lt;i.minLength.value&amp;&amp;(M(n,{code:A.too_small,minimum:i.minLength.value,type:&quot;array&quot;,inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&amp;&amp;n.data.length&gt;i.maxLength.value&amp;&amp;(M(n,{code:A.too_big,maximum:i.maxLength.value,type:&quot;array&quot;,inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((l,o)=&gt;i.type._parseAsync(new On(n,l,n.path,o)))).then(l=&gt;st.mergeArray(r,l));const s=[...n.data].map((l,o)=&gt;i.type._parseSync(new On(n,l,n.path,o)));return st.mergeArray(r,s)}get element(){return this._def.type}min(t,n){return new Ut({...this._def,minLength:{value:t,message:W.toString(n)}})}max(t,n){return new Ut({...this._def,maxLength:{value:t,message:W.toString(n)}})}length(t,n){return new Ut({...this._def,exactLength:{value:t,message:W.toString(n)}})}nonempty(t){return this.min(1,t)}}Ut.create=(e,t)=&gt;new Ut({type:e,minLength:null,maxLength:null,exactLength:null,typeName:K.ZodArray,...Y(t)});function cr(e){if(e instanceof Se){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Sn.create(cr(r))}return new Se({...e._def,shape:()=&gt;t})}else return e instanceof Ut?new Ut({...e._def,type:cr(e.element)}):e instanceof Sn?Sn.create(cr(e.unwrap())):e instanceof qr?qr.create(cr(e.unwrap())):e instanceof ir?ir.create(e.items.map(t=&gt;cr(t))):e}class Se extends re{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=ie.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==j.object){const u=this._getOrReturnCtx(t);return M(u,{code:A.invalid_type,expected:j.object,received:u.parsedType}),Q}const{status:r,ctx:i}=this._processInputParams(t),{shape:s,keys:l}=this._getCached(),o=[];if(!(this._def.catchall instanceof Tn&amp;&amp;this._def.unknownKeys===&quot;strip&quot;))for(const u in i.data)l.includes(u)||o.push(u);const a=[];for(const u of l){const c=s[u],p=i.data[u];a.push({key:{status:&quot;valid&quot;,value:u},value:c._parse(new On(i,p,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof Tn){const u=this._def.unknownKeys;if(u===&quot;passthrough&quot;)for(const c of o)a.push({key:{status:&quot;valid&quot;,value:c},value:{status:&quot;valid&quot;,value:i.data[c]}});else if(u===&quot;strict&quot;)o.length&gt;0&amp;&amp;(M(i,{code:A.unrecognized_keys,keys:o}),r.dirty());else if(u!==&quot;strip&quot;)throw new Error(&quot;Internal ZodObject error: invalid unknownKeys value.&quot;)}else{const u=this._def.catchall;for(const c of o){const p=i.data[c];a.push({key:{status:&quot;valid&quot;,value:c},value:u._parse(new On(i,p,i.path,c)),alwaysSet:c in i.data})}}return i.common.async?Promise.resolve().then(async()=&gt;{const u=[];for(const c of a){const p=await c.key,y=await c.value;u.push({key:p,value:y,alwaysSet:c.alwaysSet})}return u}).then(u=&gt;st.mergeObjectSync(r,u)):st.mergeObjectSync(r,a)}get shape(){return this._def.shape()}strict(t){return W.errToObj,new Se({...this._def,unknownKeys:&quot;strict&quot;,...t!==void 0?{errorMap:(n,r)=&gt;{var s,l;const i=((l=(s=this._def).errorMap)==null?void 0:l.call(s,n,r).message)??r.defaultError;return n.code===&quot;unrecognized_keys&quot;?{message:W.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new Se({...this._def,unknownKeys:&quot;strip&quot;})}passthrough(){return new Se({...this._def,unknownKeys:&quot;passthrough&quot;})}extend(t){return new Se({...this._def,shape:()=&gt;({...this._def.shape(),...t})})}merge(t){return new Se({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=&gt;({...this._def.shape(),...t._def.shape()}),typeName:K.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Se({...this._def,catchall:t})}pick(t){const n={};for(const r of ie.objectKeys(t))t[r]&amp;&amp;this.shape[r]&amp;&amp;(n[r]=this.shape[r]);return new Se({...this._def,shape:()=&gt;n})}omit(t){const n={};for(const r of ie.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new Se({...this._def,shape:()=&gt;n})}deepPartial(){return cr(this)}partial(t){const n={};for(const r of ie.objectKeys(this.shape)){const i=this.shape[r];t&amp;&amp;!t[r]?n[r]=i:n[r]=i.optional()}return new Se({...this._def,shape:()=&gt;n})}required(t){const n={};for(const r of ie.objectKeys(this.shape))if(t&amp;&amp;!t[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof Sn;)s=s._def.innerType;n[r]=s}return new Se({...this._def,shape:()=&gt;n})}keyof(){return Zp(ie.objectKeys(this.shape))}}Se.create=(e,t)=&gt;new Se({shape:()=&gt;e,unknownKeys:&quot;strip&quot;,catchall:Tn.create(),typeName:K.ZodObject,...Y(t)});Se.strictCreate=(e,t)=&gt;new Se({shape:()=&gt;e,unknownKeys:&quot;strict&quot;,catchall:Tn.create(),typeName:K.ZodObject,...Y(t)});Se.lazycreate=(e,t)=&gt;new Se({shape:e,unknownKeys:&quot;strip&quot;,catchall:Tn.create(),typeName:K.ZodObject,...Y(t)});class Ll extends re{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(s){for(const o of s)if(o.result.status===&quot;valid&quot;)return o.result;for(const o of s)if(o.result.status===&quot;dirty&quot;)return n.common.issues.push(...o.ctx.common.issues),o.result;const l=s.map(o=&gt;new bt(o.ctx.common.issues));return M(n,{code:A.invalid_union,unionErrors:l}),Q}if(n.common.async)return Promise.all(r.map(async s=&gt;{const l={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:l}),ctx:l}})).then(i);{let s;const l=[];for(const a of r){const u={...n,common:{...n.common,issues:[]},parent:null},c=a._parseSync({data:n.data,path:n.path,parent:u});if(c.status===&quot;valid&quot;)return c;c.status===&quot;dirty&quot;&amp;&amp;!s&amp;&amp;(s={result:c,ctx:u}),u.common.issues.length&amp;&amp;l.push(u.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const o=l.map(a=&gt;new bt(a));return M(n,{code:A.invalid_union,unionErrors:o}),Q}}get options(){return this._def.options}}Ll.create=(e,t)=&gt;new Ll({options:e,typeName:K.ZodUnion,...Y(t)});function Ja(e,t){const n=rn(e),r=rn(t);if(e===t)return{valid:!0,data:e};if(n===j.object&amp;&amp;r===j.object){const i=ie.objectKeys(t),s=ie.objectKeys(e).filter(o=&gt;i.indexOf(o)!==-1),l={...e,...t};for(const o of s){const a=Ja(e[o],t[o]);if(!a.valid)return{valid:!1};l[o]=a.data}return{valid:!0,data:l}}else if(n===j.array&amp;&amp;r===j.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let s=0;s&lt;e.length;s++){const l=e[s],o=t[s],a=Ja(l,o);if(!a.valid)return{valid:!1};i.push(a.data)}return{valid:!0,data:i}}else return n===j.date&amp;&amp;r===j.date&amp;&amp;+e==+t?{valid:!0,data:e}:{valid:!1}}class Ml extends re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(s,l)=&gt;{if(Vf(s)||Vf(l))return Q;const o=Ja(s.value,l.value);return o.valid?((Bf(s)||Bf(l))&amp;&amp;n.dirty(),{status:n.value,value:o.data}):(M(r,{code:A.invalid_intersection_types}),Q)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,l])=&gt;i(s,l)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Ml.create=(e,t,n)=&gt;new Ml({left:e,right:t,typeName:K.ZodIntersection,...Y(n)});class ir extends re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==j.array)return M(r,{code:A.invalid_type,expected:j.array,received:r.parsedType}),Q;if(r.data.length&lt;this._def.items.length)return M(r,{code:A.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:&quot;array&quot;}),Q;!this._def.rest&amp;&amp;r.data.length&gt;this._def.items.length&amp;&amp;(M(r,{code:A.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:&quot;array&quot;}),n.dirty());const s=[...r.data].map((l,o)=&gt;{const a=this._def.items[o]||this._def.rest;return a?a._parse(new On(r,l,r.path,o)):null}).filter(l=&gt;!!l);return r.common.async?Promise.all(s).then(l=&gt;st.mergeArray(n,l)):st.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new ir({...this._def,rest:t})}}ir.create=(e,t)=&gt;{if(!Array.isArray(e))throw new Error(&quot;You must pass an array of schemas to z.tuple([ ... ])&quot;);return new ir({items:e,typeName:K.ZodTuple,rest:null,...Y(t)})};class Gf extends re{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==j.map)return M(r,{code:A.invalid_type,expected:j.map,received:r.parsedType}),Q;const i=this._def.keyType,s=this._def.valueType,l=[...r.data.entries()].map(([o,a],u)=&gt;({key:i._parse(new On(r,o,r.path,[u,&quot;key&quot;])),value:s._parse(new On(r,a,r.path,[u,&quot;value&quot;]))}));if(r.common.async){const o=new Map;return Promise.resolve().then(async()=&gt;{for(const a of l){const u=await a.key,c=await a.value;if(u.status===&quot;aborted&quot;||c.status===&quot;aborted&quot;)return Q;(u.status===&quot;dirty&quot;||c.status===&quot;dirty&quot;)&amp;&amp;n.dirty(),o.set(u.value,c.value)}return{status:n.value,value:o}})}else{const o=new Map;for(const a of l){const u=a.key,c=a.value;if(u.status===&quot;aborted&quot;||c.status===&quot;aborted&quot;)return Q;(u.status===&quot;dirty&quot;||c.status===&quot;dirty&quot;)&amp;&amp;n.dirty(),o.set(u.value,c.value)}return{status:n.value,value:o}}}}Gf.create=(e,t,n)=&gt;new Gf({valueType:t,keyType:e,typeName:K.ZodMap,...Y(n)});class ts extends re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==j.set)return M(r,{code:A.invalid_type,expected:j.set,received:r.parsedType}),Q;const i=this._def;i.minSize!==null&amp;&amp;r.data.size&lt;i.minSize.value&amp;&amp;(M(r,{code:A.too_small,minimum:i.minSize.value,type:&quot;set&quot;,inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&amp;&amp;r.data.size&gt;i.maxSize.value&amp;&amp;(M(r,{code:A.too_big,maximum:i.maxSize.value,type:&quot;set&quot;,inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const s=this._def.valueType;function l(a){const u=new Set;for(const c of a){if(c.status===&quot;aborted&quot;)return Q;c.status===&quot;dirty&quot;&amp;&amp;n.dirty(),u.add(c.value)}return{status:n.value,value:u}}const o=[...r.data.values()].map((a,u)=&gt;s._parse(new On(r,a,r.path,u)));return r.common.async?Promise.all(o).then(a=&gt;l(a)):l(o)}min(t,n){return new ts({...this._def,minSize:{value:t,message:W.toString(n)}})}max(t,n){return new ts({...this._def,maxSize:{value:t,message:W.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}ts.create=(e,t)=&gt;new ts({valueType:e,minSize:null,maxSize:null,typeName:K.ZodSet,...Y(t)});class bf extends re{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}bf.create=(e,t)=&gt;new bf({getter:e,typeName:K.ZodLazy,...Y(t)});class Yf extends re{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return M(n,{received:n.data,code:A.invalid_literal,expected:this._def.value}),Q}return{status:&quot;valid&quot;,value:t.data}}get value(){return this._def.value}}Yf.create=(e,t)=&gt;new Yf({value:e,typeName:K.ZodLiteral,...Y(t)});function Zp(e,t){return new Yr({values:e,typeName:K.ZodEnum,...Y(t)})}class Yr extends re{_parse(t){if(typeof t.data!=&quot;string&quot;){const n=this._getOrReturnCtx(t),r=this._def.values;return M(n,{expected:ie.joinValues(r),received:n.parsedType,code:A.invalid_type}),Q}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return M(n,{received:n.data,code:A.invalid_enum_value,options:r}),Q}return wt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Yr.create(t,{...this._def,...n})}exclude(t,n=this._def){return Yr.create(this.options.filter(r=&gt;!t.includes(r)),{...this._def,...n})}}Yr.create=Zp;class Xf extends re{_parse(t){const n=ie.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==j.string&amp;&amp;r.parsedType!==j.number){const i=ie.objectValues(n);return M(r,{expected:ie.joinValues(i),received:r.parsedType,code:A.invalid_type}),Q}if(this._cache||(this._cache=new Set(ie.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=ie.objectValues(n);return M(r,{received:r.data,code:A.invalid_enum_value,options:i}),Q}return wt(t.data)}get enum(){return this._def.values}}Xf.create=(e,t)=&gt;new Xf({values:e,typeName:K.ZodNativeEnum,...Y(t)});class Dl extends re{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==j.promise&amp;&amp;n.common.async===!1)return M(n,{code:A.invalid_type,expected:j.promise,received:n.parsedType}),Q;const r=n.parsedType===j.promise?n.data:Promise.resolve(n.data);return wt(r.then(i=&gt;this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Dl.create=(e,t)=&gt;new Dl({type:e,typeName:K.ZodPromise,...Y(t)});class Xr extends re{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===K.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,s={addIssue:l=&gt;{M(r,l),l.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),i.type===&quot;preprocess&quot;){const l=i.transform(r.data,s);if(r.common.async)return Promise.resolve(l).then(async o=&gt;{if(n.value===&quot;aborted&quot;)return Q;const a=await this._def.schema._parseAsync({data:o,path:r.path,parent:r});return a.status===&quot;aborted&quot;?Q:a.status===&quot;dirty&quot;||n.value===&quot;dirty&quot;?_i(a.value):a});{if(n.value===&quot;aborted&quot;)return Q;const o=this._def.schema._parseSync({data:l,path:r.path,parent:r});return o.status===&quot;aborted&quot;?Q:o.status===&quot;dirty&quot;||n.value===&quot;dirty&quot;?_i(o.value):o}}if(i.type===&quot;refinement&quot;){const l=o=&gt;{const a=i.refinement(o,s);if(r.common.async)return Promise.resolve(a);if(a instanceof Promise)throw new Error(&quot;Async refinement encountered during synchronous parse operation. Use .parseAsync instead.&quot;);return o};if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return o.status===&quot;aborted&quot;?Q:(o.status===&quot;dirty&quot;&amp;&amp;n.dirty(),l(o.value),{status:n.value,value:o.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=&gt;o.status===&quot;aborted&quot;?Q:(o.status===&quot;dirty&quot;&amp;&amp;n.dirty(),l(o.value).then(()=&gt;({status:n.value,value:o.value}))))}if(i.type===&quot;transform&quot;)if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Gr(l))return Q;const o=i.transform(l.value,s);if(o instanceof Promise)throw new Error(&quot;Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.&quot;);return{status:n.value,value:o}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=&gt;Gr(l)?Promise.resolve(i.transform(l.value,s)).then(o=&gt;({status:n.value,value:o})):Q);ie.assertNever(i)}}Xr.create=(e,t,n)=&gt;new Xr({schema:e,typeName:K.ZodEffects,effect:t,...Y(n)});Xr.createWithPreprocess=(e,t,n)=&gt;new Xr({schema:t,effect:{type:&quot;preprocess&quot;,transform:e},typeName:K.ZodEffects,...Y(n)});class Sn extends re{_parse(t){return this._getType(t)===j.undefined?wt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Sn.create=(e,t)=&gt;new Sn({innerType:e,typeName:K.ZodOptional,...Y(t)});class qr extends re{_parse(t){return this._getType(t)===j.null?wt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}qr.create=(e,t)=&gt;new qr({innerType:e,typeName:K.ZodNullable,...Y(t)});class Ga extends re{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===j.undefined&amp;&amp;(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Ga.create=(e,t)=&gt;new Ga({innerType:e,typeName:K.ZodDefault,defaultValue:typeof t.default==&quot;function&quot;?t.default:()=&gt;t.default,...Y(t)});class ba extends re{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Il(i)?i.then(s=&gt;({status:&quot;valid&quot;,value:s.status===&quot;valid&quot;?s.value:this._def.catchValue({get error(){return new bt(r.common.issues)},input:r.data})})):{status:&quot;valid&quot;,value:i.status===&quot;valid&quot;?i.value:this._def.catchValue({get error(){return new bt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ba.create=(e,t)=&gt;new ba({innerType:e,typeName:K.ZodCatch,catchValue:typeof t.catch==&quot;function&quot;?t.catch:()=&gt;t.catch,...Y(t)});class qf extends re{_parse(t){if(this._getType(t)!==j.nan){const r=this._getOrReturnCtx(t);return M(r,{code:A.invalid_type,expected:j.nan,received:r.parsedType}),Q}return{status:&quot;valid&quot;,value:t.data}}}qf.create=e=&gt;new qf({typeName:K.ZodNaN,...Y(e)});class y0 extends re{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class ac extends re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=&gt;{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status===&quot;aborted&quot;?Q:s.status===&quot;dirty&quot;?(n.dirty(),_i(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status===&quot;aborted&quot;?Q:i.status===&quot;dirty&quot;?(n.dirty(),{status:&quot;dirty&quot;,value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new ac({in:t,out:n,typeName:K.ZodPipeline})}}class Ya extends re{_parse(t){const n=this._def.innerType._parse(t),r=i=&gt;(Gr(i)&amp;&amp;(i.value=Object.freeze(i.value)),i);return Il(n)?n.then(i=&gt;r(i)):r(n)}unwrap(){return this._def.innerType}}Ya.create=(e,t)=&gt;new Ya({innerType:e,typeName:K.ZodReadonly,...Y(t)});var K;(function(e){e.ZodString=&quot;ZodString&quot;,e.ZodNumber=&quot;ZodNumber&quot;,e.ZodNaN=&quot;ZodNaN&quot;,e.ZodBigInt=&quot;ZodBigInt&quot;,e.ZodBoolean=&quot;ZodBoolean&quot;,e.ZodDate=&quot;ZodDate&quot;,e.ZodSymbol=&quot;ZodSymbol&quot;,e.ZodUndefined=&quot;ZodUndefined&quot;,e.ZodNull=&quot;ZodNull&quot;,e.ZodAny=&quot;ZodAny&quot;,e.ZodUnknown=&quot;ZodUnknown&quot;,e.ZodNever=&quot;ZodNever&quot;,e.ZodVoid=&quot;ZodVoid&quot;,e.ZodArray=&quot;ZodArray&quot;,e.ZodObject=&quot;ZodObject&quot;,e.ZodUnion=&quot;ZodUnion&quot;,e.ZodDiscriminatedUnion=&quot;ZodDiscriminatedUnion&quot;,e.ZodIntersection=&quot;ZodIntersection&quot;,e.ZodTuple=&quot;ZodTuple&quot;,e.ZodRecord=&quot;ZodRecord&quot;,e.ZodMap=&quot;ZodMap&quot;,e.ZodSet=&quot;ZodSet&quot;,e.ZodFunction=&quot;ZodFunction&quot;,e.ZodLazy=&quot;ZodLazy&quot;,e.ZodLiteral=&quot;ZodLiteral&quot;,e.ZodEnum=&quot;ZodEnum&quot;,e.ZodEffects=&quot;ZodEffects&quot;,e.ZodNativeEnum=&quot;ZodNativeEnum&quot;,e.ZodOptional=&quot;ZodOptional&quot;,e.ZodNullable=&quot;ZodNullable&quot;,e.ZodDefault=&quot;ZodDefault&quot;,e.ZodCatch=&quot;ZodCatch&quot;,e.ZodPromise=&quot;ZodPromise&quot;,e.ZodBranded=&quot;ZodBranded&quot;,e.ZodPipeline=&quot;ZodPipeline&quot;,e.ZodReadonly=&quot;ZodReadonly&quot;})(K||(K={}));const Hp=hn.create,v0=br.create,g0=Qa.create,uc=Ka.create;Tn.create;const Qp=Ut.create,bn=Se.create,w0=Ll.create;Ml.create;ir.create;const Kp=Yr.create;Dl.create;Sn.create;qr.create;var _0=&quot;actor-runtime&quot;;function x0(){return Lp(_0)}function ed(e){throw x0().error(&quot;unreachable&quot;,{value:`${e}`,stack:new Error().stack}),new mg(e)}Kp([&quot;json&quot;,&quot;cbor&quot;]);bn({a:Qp(uc())});bn({o:uc()});var k0=bn({i:v0().int(),n:Hp(),a:Qp(uc())}),S0=bn({e:Hp(),s:g0()});bn({b:w0([bn({ar:k0}),bn({sr:S0})])});Kp([&quot;websocket&quot;,&quot;sse&quot;]);var Ms=&quot;X-RivetKit-Query&quot;,hi=&quot;X-RivetKit-Encoding&quot;,Ds=&quot;X-RivetKit-Conn-Params&quot;,E0=&quot;X-RivetKit-Actor&quot;,C0=&quot;X-RivetKit-Conn&quot;,O0=&quot;X-RivetKit-Conn-Token&quot;,T0=&quot;actor-client&quot;;function H(){return Lp(T0)}var zs=null;async function N0(){return zs!==null||(zs=(async()=&gt;{let e;if(typeof WebSocket&lt;&quot;u&quot;)e=WebSocket,H().debug(&quot;using native websocket&quot;);else try{e=(await Rp(()=&gt;import(&quot;./browser-Bh6UwqLG.js&quot;).then(n=&gt;n.b),[])).default,H().debug(&quot;using websocket from npm&quot;)}catch{e=class{constructor(){throw new Error(&#39;WebSocket support requires installing the &quot;ws&quot; peer dependency.&#39;)}},H().debug(&quot;using mock websocket&quot;)}return e})()),zs}var R0=function(e,t,n,r,i,s,l,o){if(!e){var a;if(t===void 0)a=new Error(&quot;Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.&quot;);else{var u=[n,r,i,s,l,o],c=0;a=new Error(t.replace(/%s/g,function(){return u[c++]})),a.name=&quot;Invariant Violation&quot;}throw a.framesToPop=1,a}},A0=R0;const I0=uu(A0);/*!
 * https://github.com/Starcounter-Jack/JSON-Patch
 * (c) 2017-2022 Joachim Wester
 * MIT licensed
 */var P0=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(r,i){r.__proto__=i}||function(r,i){for(var s in i)i.hasOwnProperty(s)&amp;&amp;(r[s]=i[s])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),L0=Object.prototype.hasOwnProperty;function Xa(e,t){return L0.call(e,t)}function qa(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n&lt;t.length;n++)t[n]=&quot;&quot;+n;return t}if(Object.keys)return Object.keys(e);var r=[];for(var i in e)Xa(e,i)&amp;&amp;r.push(i);return r}function nt(e){switch(typeof e){case&quot;object&quot;:return JSON.parse(JSON.stringify(e));case&quot;undefined&quot;:return null;default:return e}}function eu(e){for(var t=0,n=e.length,r;t&lt;n;){if(r=e.charCodeAt(t),r&gt;=48&amp;&amp;r&lt;=57){t++;continue}return!1}return!0}function $n(e){return e.indexOf(&quot;/&quot;)===-1&amp;&amp;e.indexOf(&quot;~&quot;)===-1?e:e.replace(/~/g,&quot;~0&quot;).replace(/\//g,&quot;~1&quot;)}function Jp(e){return e.replace(/~1/g,&quot;/&quot;).replace(/~0/g,&quot;~&quot;)}function tu(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,n=e.length;t&lt;n;t++)if(tu(e[t]))return!0}else if(typeof e==&quot;object&quot;){for(var r=qa(e),i=r.length,s=0;s&lt;i;s++)if(tu(e[r[s]]))return!0}}return!1}function td(e,t){var n=[e];for(var r in t){var i=typeof t[r]==&quot;object&quot;?JSON.stringify(t[r],null,2):t[r];typeof i&lt;&quot;u&quot;&amp;&amp;n.push(r+&quot;: &quot;+i)}return n.join(`
`)}var Gp=function(e){P0(t,e);function t(n,r,i,s,l){var o=this.constructor,a=e.call(this,td(n,{name:r,index:i,operation:s,tree:l}))||this;return a.name=r,a.index=i,a.operation=s,a.tree=l,Object.setPrototypeOf(a,o.prototype),a.message=td(n,{name:r,index:i,operation:s,tree:l}),a}return t}(Error),we=Gp,M0=nt,Cr={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var r=e[t];return delete e[t],{newDocument:n,removed:r}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:function(e,t,n){var r=zl(n,this.path);r&amp;&amp;(r=nt(r));var i=Yn(n,{op:&quot;remove&quot;,path:this.from}).removed;return Yn(n,{op:&quot;add&quot;,path:this.path,value:i}),{newDocument:n,removed:r}},copy:function(e,t,n){var r=zl(n,this.from);return Yn(n,{op:&quot;add&quot;,path:this.path,value:nt(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:ns(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},D0={add:function(e,t,n){return eu(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){var r=e.splice(t,1);return{newDocument:n,removed:r[0]}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:Cr.move,copy:Cr.copy,test:Cr.test,_get:Cr._get};function zl(e,t){if(t==&quot;&quot;)return e;var n={op:&quot;_get&quot;,path:t};return Yn(e,n),n.value}function Yn(e,t,n,r,i,s){if(n===void 0&amp;&amp;(n=!1),r===void 0&amp;&amp;(r=!0),i===void 0&amp;&amp;(i=!0),s===void 0&amp;&amp;(s=0),n&amp;&amp;(typeof n==&quot;function&quot;?n(t,0,e,t.path):Ul(t,0)),t.path===&quot;&quot;){var l={newDocument:e};if(t.op===&quot;add&quot;)return l.newDocument=t.value,l;if(t.op===&quot;replace&quot;)return l.newDocument=t.value,l.removed=e,l;if(t.op===&quot;move&quot;||t.op===&quot;copy&quot;)return l.newDocument=zl(e,t.from),t.op===&quot;move&quot;&amp;&amp;(l.removed=e),l;if(t.op===&quot;test&quot;){if(l.test=ns(e,t.value),l.test===!1)throw new we(&quot;Test operation failed&quot;,&quot;TEST_OPERATION_FAILED&quot;,s,t,e);return l.newDocument=e,l}else{if(t.op===&quot;remove&quot;)return l.removed=e,l.newDocument=null,l;if(t.op===&quot;_get&quot;)return t.value=e,l;if(n)throw new we(&quot;Operation `op` property is not one of operations defined in RFC-6902&quot;,&quot;OPERATION_OP_INVALID&quot;,s,t,e);return l}}else{r||(e=nt(e));var o=t.path||&quot;&quot;,a=o.split(&quot;/&quot;),u=e,c=1,p=a.length,y=void 0,w=void 0,x=void 0;for(typeof n==&quot;function&quot;?x=n:x=Ul;;){if(w=a[c],w&amp;&amp;w.indexOf(&quot;~&quot;)!=-1&amp;&amp;(w=Jp(w)),i&amp;&amp;(w==&quot;__proto__&quot;||w==&quot;prototype&quot;&amp;&amp;c&gt;0&amp;&amp;a[c-1]==&quot;constructor&quot;))throw new TypeError(&quot;JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README&quot;);if(n&amp;&amp;y===void 0&amp;&amp;(u[w]===void 0?y=a.slice(0,c).join(&quot;/&quot;):c==p-1&amp;&amp;(y=t.path),y!==void 0&amp;&amp;x(t,0,e,y)),c++,Array.isArray(u)){if(w===&quot;-&quot;)w=u.length;else{if(n&amp;&amp;!eu(w))throw new we(&quot;Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index&quot;,&quot;OPERATION_PATH_ILLEGAL_ARRAY_INDEX&quot;,s,t,e);eu(w)&amp;&amp;(w=~~w)}if(c&gt;=p){if(n&amp;&amp;t.op===&quot;add&quot;&amp;&amp;w&gt;u.length)throw new we(&quot;The specified index MUST NOT be greater than the number of elements in the array&quot;,&quot;OPERATION_VALUE_OUT_OF_BOUNDS&quot;,s,t,e);var l=D0[t.op].call(t,u,w,e);if(l.test===!1)throw new we(&quot;Test operation failed&quot;,&quot;TEST_OPERATION_FAILED&quot;,s,t,e);return l}}else if(c&gt;=p){var l=Cr[t.op].call(t,u,w,e);if(l.test===!1)throw new we(&quot;Test operation failed&quot;,&quot;TEST_OPERATION_FAILED&quot;,s,t,e);return l}if(u=u[w],n&amp;&amp;c&lt;p&amp;&amp;(!u||typeof u!=&quot;object&quot;))throw new we(&quot;Cannot perform operation at the desired path&quot;,&quot;OPERATION_PATH_UNRESOLVABLE&quot;,s,t,e)}}}function cc(e,t,n,r,i){if(r===void 0&amp;&amp;(r=!0),i===void 0&amp;&amp;(i=!0),n&amp;&amp;!Array.isArray(t))throw new we(&quot;Patch sequence must be an array&quot;,&quot;SEQUENCE_NOT_AN_ARRAY&quot;);r||(e=nt(e));for(var s=new Array(t.length),l=0,o=t.length;l&lt;o;l++)s[l]=Yn(e,t[l],n,!0,i,l),e=s[l].newDocument;return s.newDocument=e,s}function z0(e,t,n){var r=Yn(e,t);if(r.test===!1)throw new we(&quot;Test operation failed&quot;,&quot;TEST_OPERATION_FAILED&quot;,n,t,e);return r.newDocument}function Ul(e,t,n,r){if(typeof e!=&quot;object&quot;||e===null||Array.isArray(e))throw new we(&quot;Operation is not an object&quot;,&quot;OPERATION_NOT_AN_OBJECT&quot;,t,e,n);if(Cr[e.op]){if(typeof e.path!=&quot;string&quot;)throw new we(&quot;Operation `path` property is not a string&quot;,&quot;OPERATION_PATH_INVALID&quot;,t,e,n);if(e.path.indexOf(&quot;/&quot;)!==0&amp;&amp;e.path.length&gt;0)throw new we(&#39;Operation `path` property must start with &quot;/&quot;&#39;,&quot;OPERATION_PATH_INVALID&quot;,t,e,n);if((e.op===&quot;move&quot;||e.op===&quot;copy&quot;)&amp;&amp;typeof e.from!=&quot;string&quot;)throw new we(&quot;Operation `from` property is not present (applicable in `move` and `copy` operations)&quot;,&quot;OPERATION_FROM_REQUIRED&quot;,t,e,n);if((e.op===&quot;add&quot;||e.op===&quot;replace&quot;||e.op===&quot;test&quot;)&amp;&amp;e.value===void 0)throw new we(&quot;Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)&quot;,&quot;OPERATION_VALUE_REQUIRED&quot;,t,e,n);if((e.op===&quot;add&quot;||e.op===&quot;replace&quot;||e.op===&quot;test&quot;)&amp;&amp;tu(e.value))throw new we(&quot;Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)&quot;,&quot;OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED&quot;,t,e,n);if(n){if(e.op==&quot;add&quot;){var i=e.path.split(&quot;/&quot;).length,s=r.split(&quot;/&quot;).length;if(i!==s+1&amp;&amp;i!==s)throw new we(&quot;Cannot perform an `add` operation at the desired path&quot;,&quot;OPERATION_PATH_CANNOT_ADD&quot;,t,e,n)}else if(e.op===&quot;replace&quot;||e.op===&quot;remove&quot;||e.op===&quot;_get&quot;){if(e.path!==r)throw new we(&quot;Cannot perform the operation at a path that does not exist&quot;,&quot;OPERATION_PATH_UNRESOLVABLE&quot;,t,e,n)}else if(e.op===&quot;move&quot;||e.op===&quot;copy&quot;){var l={op:&quot;_get&quot;,path:e.from,value:void 0},o=bp([l],n);if(o&amp;&amp;o.name===&quot;OPERATION_PATH_UNRESOLVABLE&quot;)throw new we(&quot;Cannot perform the operation from a path that does not exist&quot;,&quot;OPERATION_FROM_UNRESOLVABLE&quot;,t,e,n)}}}else throw new we(&quot;Operation `op` property is not one of operations defined in RFC-6902&quot;,&quot;OPERATION_OP_INVALID&quot;,t,e,n)}function bp(e,t,n){try{if(!Array.isArray(e))throw new we(&quot;Patch sequence must be an array&quot;,&quot;SEQUENCE_NOT_AN_ARRAY&quot;);if(t)cc(nt(t),nt(e),n||!0);else{n=n||Ul;for(var r=0;r&lt;e.length;r++)n(e[r],r,t,void 0)}}catch(i){if(i instanceof we)return i;throw i}}function ns(e,t){if(e===t)return!0;if(e&amp;&amp;t&amp;&amp;typeof e==&quot;object&quot;&amp;&amp;typeof t==&quot;object&quot;){var n=Array.isArray(e),r=Array.isArray(t),i,s,l;if(n&amp;&amp;r){if(s=e.length,s!=t.length)return!1;for(i=s;i--!==0;)if(!ns(e[i],t[i]))return!1;return!0}if(n!=r)return!1;var o=Object.keys(e);if(s=o.length,s!==Object.keys(t).length)return!1;for(i=s;i--!==0;)if(!t.hasOwnProperty(o[i]))return!1;for(i=s;i--!==0;)if(l=o[i],!ns(e[l],t[l]))return!1;return!0}return e!==e&amp;&amp;t!==t}const U0=Object.freeze(Object.defineProperty({__proto__:null,JsonPatchError:we,_areEquals:ns,applyOperation:Yn,applyPatch:cc,applyReducer:z0,deepClone:M0,getValueByPointer:zl,validate:bp,validator:Ul},Symbol.toStringTag,{value:&quot;Module&quot;}));/*!
 * https://github.com/Starcounter-Jack/JSON-Patch
 * (c) 2017-2021 Joachim Wester
 * MIT license
 */var fc=new WeakMap,$0=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),j0=function(){function e(t,n){this.callback=t,this.observer=n}return e}();function F0(e){return fc.get(e)}function V0(e,t){return e.observers.get(t)}function B0(e,t){e.observers.delete(t.callback)}function W0(e,t){t.unobserve()}function Z0(e,t){var n=[],r,i=F0(e);if(!i)i=new $0(e),fc.set(e,i);else{var s=V0(i,t);r=s&amp;&amp;s.observer}if(r)return r;if(r={},i.value=nt(e),t){r.callback=t,r.next=null;var l=function(){nu(r)},o=function(){clearTimeout(r.next),r.next=setTimeout(l)};typeof window&lt;&quot;u&quot;&amp;&amp;(window.addEventListener(&quot;mouseup&quot;,o),window.addEventListener(&quot;keyup&quot;,o),window.addEventListener(&quot;mousedown&quot;,o),window.addEventListener(&quot;keydown&quot;,o),window.addEventListener(&quot;change&quot;,o))}return r.patches=n,r.object=e,r.unobserve=function(){nu(r),clearTimeout(r.next),B0(i,r),typeof window&lt;&quot;u&quot;&amp;&amp;(window.removeEventListener(&quot;mouseup&quot;,o),window.removeEventListener(&quot;keyup&quot;,o),window.removeEventListener(&quot;mousedown&quot;,o),window.removeEventListener(&quot;keydown&quot;,o),window.removeEventListener(&quot;change&quot;,o))},i.observers.set(t,new j0(t,r)),r}function nu(e,t){t===void 0&amp;&amp;(t=!1);var n=fc.get(e.object);dc(n.value,e.object,e.patches,&quot;&quot;,t),e.patches.length&amp;&amp;cc(n.value,e.patches);var r=e.patches;return r.length&gt;0&amp;&amp;(e.patches=[],e.callback&amp;&amp;e.callback(r)),r}function dc(e,t,n,r,i){if(t!==e){typeof t.toJSON==&quot;function&quot;&amp;&amp;(t=t.toJSON());for(var s=qa(t),l=qa(e),o=!1,a=l.length-1;a&gt;=0;a--){var u=l[a],c=e[u];if(Xa(t,u)&amp;&amp;!(t[u]===void 0&amp;&amp;c!==void 0&amp;&amp;Array.isArray(t)===!1)){var p=t[u];typeof c==&quot;object&quot;&amp;&amp;c!=null&amp;&amp;typeof p==&quot;object&quot;&amp;&amp;p!=null&amp;&amp;Array.isArray(c)===Array.isArray(p)?dc(c,p,n,r+&quot;/&quot;+$n(u),i):c!==p&amp;&amp;(i&amp;&amp;n.push({op:&quot;test&quot;,path:r+&quot;/&quot;+$n(u),value:nt(c)}),n.push({op:&quot;replace&quot;,path:r+&quot;/&quot;+$n(u),value:nt(p)}))}else Array.isArray(e)===Array.isArray(t)?(i&amp;&amp;n.push({op:&quot;test&quot;,path:r+&quot;/&quot;+$n(u),value:nt(c)}),n.push({op:&quot;remove&quot;,path:r+&quot;/&quot;+$n(u)}),o=!0):(i&amp;&amp;n.push({op:&quot;test&quot;,path:r,value:e}),n.push({op:&quot;replace&quot;,path:r,value:t}))}if(!(!o&amp;&amp;s.length==l.length))for(var a=0;a&lt;s.length;a++){var u=s[a];!Xa(e,u)&amp;&amp;t[u]!==void 0&amp;&amp;n.push({op:&quot;add&quot;,path:r+&quot;/&quot;+$n(u),value:nt(t[u])})}}}function H0(e,t,n){n===void 0&amp;&amp;(n=!1);var r=[];return dc(e,t,r,&quot;&quot;,n),r}const Q0=Object.freeze(Object.defineProperty({__proto__:null,compare:H0,generate:nu,observe:Z0,unobserve:W0},Symbol.toStringTag,{value:&quot;Module&quot;}));Object.assign({},U0,Q0,{JsonPatchError:Gp,deepClone:nt,escapePathComponent:$n,unescapePathComponent:Jp});new Set(&quot;.\\+*[^]$()&quot;);var Yp={};function gt(e,t){typeof t==&quot;boolean&quot;&amp;&amp;(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&amp;&amp;t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&amp;&amp;(this._cachedTimeouts=this._timeouts.slice(0))}var K0=gt;gt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};gt.prototype.stop=function(){this._timeout&amp;&amp;clearTimeout(this._timeout),this._timer&amp;&amp;clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};gt.prototype.retry=function(e){if(this._timeout&amp;&amp;clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&amp;&amp;t-this._operationStart&gt;=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error(&quot;RetryOperation timeout occurred&quot;)),!1;this._errors.push(e);var n=this._timeouts.shift();if(n===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),n=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&amp;&amp;(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&amp;&amp;r._timeout.unref()),r._fn(r._attempts)},n),this._options.unref&amp;&amp;this._timer.unref(),!0};gt.prototype.attempt=function(e,t){this._fn=e,t&amp;&amp;(t.timeout&amp;&amp;(this._operationTimeout=t.timeout),t.cb&amp;&amp;(this._operationTimeoutCb=t.cb));var n=this;this._operationTimeoutCb&amp;&amp;(this._timeout=setTimeout(function(){n._operationTimeoutCb()},n._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};gt.prototype.try=function(e){console.log(&quot;Using RetryOperation.try() is deprecated&quot;),this.attempt(e)};gt.prototype.start=function(e){console.log(&quot;Using RetryOperation.start() is deprecated&quot;),this.attempt(e)};gt.prototype.start=gt.prototype.try;gt.prototype.errors=function(){return this._errors};gt.prototype.attempts=function(){return this._attempts};gt.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,n=0,r=0;r&lt;this._errors.length;r++){var i=this._errors[r],s=i.message,l=(e[s]||0)+1;e[s]=l,l&gt;=n&amp;&amp;(t=i,n=l)}return t};(function(e){var t=K0;e.operation=function(n){var r=e.timeouts(n);return new t(r,{forever:n&amp;&amp;(n.forever||n.retries===1/0),unref:n&amp;&amp;n.unref,maxRetryTime:n&amp;&amp;n.maxRetryTime})},e.timeouts=function(n){if(n instanceof Array)return[].concat(n);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var i in n)r[i]=n[i];if(r.minTimeout&gt;r.maxTimeout)throw new Error(&quot;minTimeout is greater than maxTimeout&quot;);for(var s=[],l=0;l&lt;r.retries;l++)s.push(this.createTimeout(l,r));return n&amp;&amp;n.forever&amp;&amp;!s.length&amp;&amp;s.push(this.createTimeout(l,r)),s.sort(function(o,a){return o-a}),s},e.createTimeout=function(n,r){var i=r.randomize?Math.random()+1:1,s=Math.round(i*Math.max(r.minTimeout,1)*Math.pow(r.factor,n));return s=Math.min(s,r.maxTimeout),s},e.wrap=function(n,r,i){if(r instanceof Array&amp;&amp;(i=r,r=null),!i){i=[];for(var s in n)typeof n[s]==&quot;function&quot;&amp;&amp;i.push(s)}for(var l=0;l&lt;i.length;l++){var o=i[l],a=n[o];n[o]=(function(c){var p=e.operation(r),y=Array.prototype.slice.call(arguments,1),w=y.pop();y.push(function(x){p.retry(x)||(x&amp;&amp;(arguments[0]=p.mainError()),w.apply(this,arguments))}),p.attempt(function(){c.apply(n,y)})}).bind(n,a),n[o].options=r}}})(Yp);var J0=Yp;const G0=uu(J0),b0=Object.prototype.toString,Y0=e=&gt;b0.call(e)===&quot;[object Error]&quot;,X0=new Set([&quot;network error&quot;,&quot;Failed to fetch&quot;,&quot;NetworkError when attempting to fetch resource.&quot;,&quot;The Internet connection appears to be offline.&quot;,&quot;Load failed&quot;,&quot;Network request failed&quot;,&quot;fetch failed&quot;,&quot;terminated&quot;]);function q0(e){return e&amp;&amp;Y0(e)&amp;&amp;e.name===&quot;TypeError&quot;&amp;&amp;typeof e.message==&quot;string&quot;?e.message===&quot;Load failed&quot;?e.stack===void 0:X0.has(e.message):!1}class ew extends Error{constructor(t){super(),t instanceof Error?(this.originalError=t,{message:t}=t):(this.originalError=new Error(t),this.originalError.stack=this.stack),this.name=&quot;AbortError&quot;,this.message=t}}const nd=(e,t,n)=&gt;{const r=n.retries-(t-1);return e.attemptNumber=t,e.retriesLeft=r,e};async function tw(e,t){return new Promise((n,r)=&gt;{t={...t},t.onFailedAttempt??(t.onFailedAttempt=()=&gt;{}),t.shouldRetry??(t.shouldRetry=()=&gt;!0),t.retries??(t.retries=10);const i=G0.operation(t),s=()=&gt;{var o;i.stop(),r((o=t.signal)==null?void 0:o.reason)};t.signal&amp;&amp;!t.signal.aborted&amp;&amp;t.signal.addEventListener(&quot;abort&quot;,s,{once:!0});const l=()=&gt;{var o;(o=t.signal)==null||o.removeEventListener(&quot;abort&quot;,s),i.stop()};i.attempt(async o=&gt;{try{const a=await e(o);l(),n(a)}catch(a){try{if(!(a instanceof Error))throw new TypeError(`Non-error was thrown: &quot;${a}&quot;. You should only throw errors.`);if(a instanceof ew)throw a.originalError;if(a instanceof TypeError&amp;&amp;!q0(a))throw a;if(nd(a,o,t),await t.shouldRetry(a)||(i.stop(),r(a)),await t.onFailedAttempt(a),!i.retry(a))throw i.mainError()}catch(u){nd(u,o,t),l(),r(u)}}})})}var ro=class extends Error{},xi=class extends ro{},$l=class extends ro{constructor(t,n,r){super(n);Nt(this,&quot;__type&quot;,&quot;ActorError&quot;);this.code=t,this.metadata=r}},Bo=class extends ro{constructor(e,t){super(`HTTP request error: ${e}`,{cause:t==null?void 0:t.cause})}},nw=class extends ro{constructor(){super(&quot;Attempting to interact with a disposed actor connection.&quot;)}};async function rw(e,t,n,r,i){let s,l=i||{};if(typeof r==&quot;string&quot;)s=r;else if(r instanceof URL)s=r.pathname+r.search;else if(r instanceof Request){const o=new URL(r.url);s=o.pathname+o.search;const a=new Headers(r.headers),u=new Headers((i==null?void 0:i.headers)||{}),c=new Headers(a);for(const[p,y]of u)c.set(p,y);l={method:r.method,body:r.body,mode:r.mode,credentials:r.credentials,redirect:r.redirect,referrer:r.referrer,referrerPolicy:r.referrerPolicy,integrity:r.integrity,keepalive:r.keepalive,signal:r.signal,...l,headers:c},l.body&amp;&amp;(l.duplex=&quot;half&quot;)}else throw new TypeError(&quot;Invalid input type for fetch&quot;);return await e.rawHttpRequest(void 0,t,&quot;json&quot;,n,s,l,void 0)}async function iw(e,t,n,r,i){return await e.rawWebSocket(void 0,t,&quot;json&quot;,n,r||&quot;&quot;,i,void 0)}var Lr,Vt,Bn,ge,Bt,sd,sw=(sd=class{constructor(e,t,n,r,i){se(this,Lr);se(this,Vt);se(this,Bn);se(this,ge);se(this,Bt);le(this,Lr,e),le(this,Vt,t),le(this,Bn,r),le(this,ge,i),le(this,Bt,n)}async action(e){return await k(this,Vt).action(void 0,k(this,ge),k(this,Bn),k(this,Bt),e.name,e.args,{signal:e.signal})}connect(){H().debug(&quot;establishing connection from handle&quot;,{query:k(this,ge)});const e=new uw(k(this,Lr),k(this,Vt),k(this,Bt),k(this,Bn),k(this,ge));return k(this,Lr)[Xp](e)}async fetch(e,t){return rw(k(this,Vt),k(this,ge),k(this,Bt),e,t)}async websocket(e,t){return iw(k(this,Vt),k(this,ge),k(this,Bt),e,t)}async resolve({signal:e}={}){if(&quot;getForKey&quot;in k(this,ge)||&quot;getOrCreateForKey&quot;in k(this,ge)){let t;&quot;getForKey&quot;in k(this,ge)?t=k(this,ge).getForKey.name:&quot;getOrCreateForKey&quot;in k(this,ge)?t=k(this,ge).getOrCreateForKey.name:ed(k(this,ge));const n=await k(this,Vt).resolveActorId(void 0,k(this,ge),k(this,Bn),k(this,Bt),e?{signal:e}:void 0);return le(this,ge,{getForId:{actorId:n,name:t}}),n}else{if(&quot;getForId&quot;in k(this,ge))return k(this,ge).getForId.actorId;&quot;create&quot;in k(this,ge)?I0(!1,&quot;actorQuery cannot be create&quot;):ed(k(this,ge))}}},Lr=new WeakMap,Vt=new WeakMap,Bn=new WeakMap,ge=new WeakMap,Bt=new WeakMap,sd),el=Symbol(&quot;actorConns&quot;),Xp=Symbol(&quot;createActorConnProxy&quot;),Li=Symbol(&quot;transport&quot;),ld,od,rs,Mr,Dr,Wn,ki,ad,lw=(ad=class{constructor(e,t){se(this,Wn);se(this,rs,!1);Nt(this,od,new Set);se(this,Mr);se(this,Dr);Nt(this,ld);le(this,Mr,e),le(this,Dr,(t==null?void 0:t.encoding)??&quot;cbor&quot;),this[Li]=(t==null?void 0:t.transport)??&quot;websocket&quot;}getForId(e,t,n){H().debug(&quot;get handle to actor with id&quot;,{name:e,actorId:t,params:n==null?void 0:n.params});const r={getForId:{name:e,actorId:t}},i=te(this,Wn,ki).call(this,n==null?void 0:n.params,r);return pi(i)}get(e,t,n){const r=typeof t==&quot;string&quot;?[t]:t||[];H().debug(&quot;get handle to actor&quot;,{name:e,key:r,parameters:n==null?void 0:n.params});const i={getForKey:{name:e,key:r}},s=te(this,Wn,ki).call(this,n==null?void 0:n.params,i);return pi(s)}getOrCreate(e,t,n){const r=typeof t==&quot;string&quot;?[t]:t||[];H().debug(&quot;get or create handle to actor&quot;,{name:e,key:r,parameters:n==null?void 0:n.params,createInRegion:n==null?void 0:n.createInRegion});const i={getOrCreateForKey:{name:e,key:r,input:n==null?void 0:n.createWithInput,region:n==null?void 0:n.createInRegion}},s=te(this,Wn,ki).call(this,n==null?void 0:n.params,i);return pi(s)}async create(e,t,n){const r=typeof t==&quot;string&quot;?[t]:t||[],i={create:{...n,name:e,key:r}};H().debug(&quot;create actor handle&quot;,{name:e,key:r,parameters:n==null?void 0:n.params,create:i.create});const s=await k(this,Mr).resolveActorId(void 0,i,k(this,Dr),n==null?void 0:n.params,n!=null&amp;&amp;n.signal?{signal:n.signal}:void 0);H().debug(&quot;created actor with ID&quot;,{name:e,key:r,actorId:s});const l={getForId:{name:e,actorId:s}},o=te(this,Wn,ki).call(this,n==null?void 0:n.params,l);return pi(o)}[(od=el,ld=Li,Xp)](e){return this[el].add(e),e[em](),pi(e)}async dispose(){if(k(this,rs)){H().warn(&quot;client already disconnected&quot;);return}le(this,rs,!0),H().debug(&quot;disposing client&quot;);const e=[];for(const t of this[el].values())e.push(t.dispose());await Promise.all(e)}},rs=new WeakMap,Mr=new WeakMap,Dr=new WeakMap,Wn=new WeakSet,ki=function(e,t){return new sw(this,k(this,Mr),e,k(this,Dr),t)},ad);function ow(e,t){const n=new lw(e,t);return new Proxy(n,{get:(r,i,s)=&gt;{if(typeof i==&quot;symbol&quot;||i in r){const l=Reflect.get(r,i,s);return typeof l==&quot;function&quot;?l.bind(r):l}if(typeof i==&quot;string&quot;)return{get:(l,o)=&gt;r.get(i,l,o),getOrCreate:(l,o)=&gt;r.getOrCreate(i,l,o),getForId:(l,o)=&gt;r.getForId(i,l,o),create:async(l,o={})=&gt;await r.create(i,l,o)}}})}function pi(e){const t=new Map;return new Proxy(e,{get(n,r,i){if(typeof r==&quot;symbol&quot;)return Reflect.get(n,r,i);if(r===&quot;constructor&quot;||r in n){const s=Reflect.get(n,r,i);return typeof s==&quot;function&quot;?s.bind(n):s}if(typeof r==&quot;string&quot;){if(r===&quot;then&quot;)return;let s=t.get(r);return s||(s=(...l)=&gt;n.action({name:r,args:l}),t.set(r,s)),s}},has(n,r){return typeof r==&quot;string&quot;?!0:Reflect.has(n,r)},getPrototypeOf(n){return Reflect.getPrototypeOf(n)},ownKeys(n){return Reflect.ownKeys(n)},getOwnPropertyDescriptor(n,r){const i=Reflect.getOwnPropertyDescriptor(n,r);if(i)return i;if(typeof r==&quot;string&quot;)return{configurable:!0,enumerable:!1,writable:!1,value:(...s)=&gt;n.action({name:r,args:s})}}})}function aw(e){if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer||e instanceof Uint8Array)return e.byteLength;if(typeof e==&quot;string&quot;)return e.length;ct(e)}async function rd(e){H().debug(&quot;sending http request&quot;,{url:e.url,encoding:e.encoding});let t,n;(e.method===&quot;POST&quot;||e.method===&quot;PUT&quot;)&amp;&amp;(e.encoding===&quot;json&quot;?(t=&quot;application/json&quot;,n=JSON.stringify(e.body)):e.encoding===&quot;cbor&quot;?(t=&quot;application/octet-stream&quot;,n=Vp(e.body)):ct(e.encoding));let r;try{r=await(e.customFetch??fetch)(new Request(e.url,{method:e.method,headers:{...e.headers,...t?{&quot;Content-Type&quot;:t}:{},&quot;User-Agent&quot;:Ys()},body:n,credentials:&quot;include&quot;,signal:e.signal}))}catch(s){throw new Bo(`Request failed: ${s}`,{cause:s})}if(!r.ok){const s=await r.arrayBuffer();let l;try{if(e.encoding===&quot;json&quot;){const o=new TextDecoder().decode(s);l=JSON.parse(o)}else if(e.encoding===&quot;cbor&quot;){const o=new Uint8Array(s);l=Pi(o)}else ct(e.encoding)}catch{const a=new TextDecoder(&quot;utf-8&quot;,{fatal:!1}).decode(s);throw new Bo(`${r.statusText} (${r.status}):
${a}`)}throw new $l(l.c,l.m,l.md)}if(e.skipParseResponse)return;let i;try{if(e.encoding===&quot;json&quot;)i=await r.json();else if(e.encoding===&quot;cbor&quot;){const s=await r.arrayBuffer(),l=new Uint8Array(s);i=Pi(l)}else ct(e.encoding)}catch(s){throw new Bo(`Failed to parse response: ${s}`,{cause:s})}return i}function qp(e,t){if(e===&quot;json&quot;)return JSON.stringify(t);if(e===&quot;cbor&quot;)return Vp(t);ct(e)}var em=Symbol(&quot;connect&quot;),on,is,zr,Zn,Hn,Ur,fe,an,un,Lt,$r,ss,ls,qe,cn,Qn,jr,kt,Fr,J,ru,tm,nm,rm,im,iu,su,lu,ou,sm,lm,au,tl,om,am,nl,ud,uw=(ud=class{constructor(e,t,n,r,i){se(this,J);se(this,on,!1);se(this,is,new AbortController);se(this,zr,!1);se(this,Zn);se(this,Hn);se(this,Ur);se(this,fe);se(this,an,[]);se(this,un,new Map);se(this,Lt,new Map);se(this,$r,new Set);se(this,ss,0);se(this,ls);se(this,qe);se(this,cn);se(this,Qn);se(this,jr);se(this,kt);se(this,Fr);this.client=e,this.driver=t,this.params=n,this.encodingKind=r,this.actorQuery=i,le(this,cn,e),le(this,Qn,t),le(this,jr,n),le(this,kt,r),le(this,Fr,i),le(this,ls,setInterval(()=&gt;6e4))}async action(e){H().debug(&quot;action&quot;,{name:e.name,args:e.args});const t=k(this,ss);le(this,ss,k(this,ss)+1);const{promise:n,resolve:r,reject:i}=Promise.withResolvers();k(this,un).set(t,{name:e.name,resolve:r,reject:i}),te(this,J,tl).call(this,{b:{ar:{i:t,n:e.name,a:e.args}}});const{i:s,o:l}=await n;if(s!==t)throw new Error(`Request ID ${t} does not match response ID ${s}`);return l}[em](){te(this,J,ru).call(this)}on(e,t){return te(this,J,au).call(this,e,t,!1)}once(e,t){return te(this,J,au).call(this,e,t,!0)}onError(e){return k(this,$r).add(e),()=&gt;{k(this,$r).delete(e)}}async dispose(){if(k(this,on)){H().warn(&quot;connection already disconnected&quot;);return}if(le(this,on,!0),H().debug(&quot;disposing actor&quot;),clearInterval(k(this,ls)),k(this,is).abort(),k(this,cn)[el].delete(this),k(this,fe))if(&quot;websocket&quot;in k(this,fe)){const{promise:e,resolve:t}=Promise.withResolvers();k(this,fe).websocket.addEventListener(&quot;close&quot;,()=&gt;{H().debug(&quot;ws closed&quot;),t(void 0)}),k(this,fe).websocket.close(),await e}else&quot;sse&quot;in k(this,fe)?k(this,fe).sse.close():ct(k(this,fe));le(this,fe,void 0)}},on=new WeakMap,is=new WeakMap,zr=new WeakMap,Zn=new WeakMap,Hn=new WeakMap,Ur=new WeakMap,fe=new WeakMap,an=new WeakMap,un=new WeakMap,Lt=new WeakMap,$r=new WeakMap,ss=new WeakMap,ls=new WeakMap,qe=new WeakMap,cn=new WeakMap,Qn=new WeakMap,jr=new WeakMap,kt=new WeakMap,Fr=new WeakMap,J=new WeakSet,ru=async function(){le(this,zr,!0);try{await tw(te(this,J,tm).bind(this),{forever:!0,minTimeout:250,maxTimeout:3e4,onFailedAttempt:e=&gt;{H().warn(&quot;failed to reconnect&quot;,{attempt:e.attemptNumber,error:Tf(e)})},signal:k(this,is).signal})}catch(e){if(e.name===&quot;AbortError&quot;){H().info(&quot;connection retry aborted&quot;);return}else throw e}le(this,zr,!1)},tm=async function(){try{if(k(this,qe))throw new Error(&quot;#onOpenPromise already defined&quot;);le(this,qe,Promise.withResolvers()),k(this,cn)[Li]===&quot;websocket&quot;?await te(this,J,nm).call(this):k(this,cn)[Li]===&quot;sse&quot;?await te(this,J,rm).call(this):ct(k(this,cn)[Li]),await k(this,qe).promise}finally{le(this,qe,void 0)}},nm=async function({signal:e}={}){const t=await k(this,Qn).connectWebSocket(void 0,k(this,Fr),k(this,kt),k(this,jr),e?{signal:e}:void 0);le(this,fe,{websocket:t}),t.addEventListener(&quot;open&quot;,()=&gt;{H().debug(&quot;websocket open&quot;)}),t.addEventListener(&quot;message&quot;,async n=&gt;{te(this,J,iu).call(this,n.data)}),t.addEventListener(&quot;close&quot;,n=&gt;{te(this,J,su).call(this,n)}),t.addEventListener(&quot;error&quot;,n=&gt;{te(this,J,lu).call(this)})},rm=async function({signal:e}={}){const t=await k(this,Qn).connectSse(void 0,k(this,Fr),k(this,kt),k(this,jr),e?{signal:e}:void 0);le(this,fe,{sse:t}),t.onopen=()=&gt;{H().debug(&quot;eventsource open&quot;)},t.onmessage=n=&gt;{te(this,J,iu).call(this,n.data)},t.onerror=n=&gt;{t.readyState===t.CLOSED?te(this,J,su).call(this,new Event(&quot;error&quot;)):te(this,J,lu).call(this)}},im=function(){H().debug(&quot;socket open&quot;,{messageQueueLength:k(this,an).length}),k(this,qe)?k(this,qe).resolve(void 0):H().warn(&quot;#onOpenPromise is undefined&quot;);for(const t of k(this,Lt).keys())te(this,J,nl).call(this,t,!0);const e=k(this,an);le(this,an,[]);for(const t of e)te(this,J,tl).call(this,t)},iu=async function(e){var t;H().trace(&quot;received message&quot;,{dataType:typeof e,isBlob:e instanceof Blob,isArrayBuffer:e instanceof ArrayBuffer});const n=await te(this,J,am).call(this,e);if(H().trace(&quot;parsed message&quot;,{response:JSON.stringify(n).substring(0,100)+&quot;...&quot;}),&quot;i&quot;in n.b)le(this,Zn,n.b.i.ai),le(this,Hn,n.b.i.ci),le(this,Ur,n.b.i.ct),H().trace(&quot;received init message&quot;,{actorId:k(this,Zn),connectionId:k(this,Hn)}),te(this,J,im).call(this);else if(&quot;e&quot;in n.b){const{c:r,m:i,md:s,ai:l}=n.b.e;if(l){const o=te(this,J,ou).call(this,l);H().warn(&quot;action error&quot;,{actionId:l,actionName:o==null?void 0:o.name,code:r,message:i,metadata:s}),o.reject(new $l(r,i,s))}else{H().warn(&quot;connection error&quot;,{code:r,message:i,metadata:s});const o=new $l(r,i,s);k(this,qe)&amp;&amp;k(this,qe).reject(o);for(const[a,u]of k(this,un).entries())u.reject(o),k(this,un).delete(a);te(this,J,lm).call(this,o)}}else if(&quot;ar&quot;in n.b){const{i:r,o:i}=n.b.ar;H().trace(&quot;received action response&quot;,{actionId:r,outputType:i});const s=te(this,J,ou).call(this,r);H().trace(&quot;resolving action promise&quot;,{actionId:r,actionName:s==null?void 0:s.name}),s.resolve(n.b.ar)}else&quot;ev&quot;in n.b?(H().trace(&quot;received event&quot;,{name:n.b.ev.n,argsCount:(t=n.b.ev.a)==null?void 0:t.length}),te(this,J,sm).call(this,n.b.ev)):ct(n.b)},su=function(e){k(this,qe)&amp;&amp;k(this,qe).reject(new Error(&quot;Closed&quot;));const t=e;t.wasClean?H().info(&quot;socket closed&quot;,{code:t.code,reason:t.reason,wasClean:t.wasClean}):H().warn(&quot;socket closed&quot;,{code:t.code,reason:t.reason,wasClean:t.wasClean}),le(this,fe,void 0),!k(this,on)&amp;&amp;!k(this,zr)&amp;&amp;te(this,J,ru).call(this)},lu=function(){k(this,on)||H().warn(&quot;socket error&quot;)},ou=function(e){const t=k(this,un).get(e);if(!t)throw new xi(`No in flight response for ${e}`);return k(this,un).delete(e),t},sm=function(e){const{n:t,a:n}=e,r=k(this,Lt).get(t);if(r){for(const i of[...r])i.callback(...n),i.once&amp;&amp;r.delete(i);r.size===0&amp;&amp;k(this,Lt).delete(t)}},lm=function(e){for(const t of[...k(this,$r)])try{t(e)}catch(n){H().error(&quot;Error in connection error handler&quot;,{error:Tf(n)})}},au=function(e,t,n){const r={callback:t,once:n};let i=k(this,Lt).get(e);return i===void 0&amp;&amp;(i=new Set,k(this,Lt).set(e,i),te(this,J,nl).call(this,e,!0)),i.add(r),()=&gt;{const s=k(this,Lt).get(e);s&amp;&amp;(s.delete(r),s.size===0&amp;&amp;(k(this,Lt).delete(e),te(this,J,nl).call(this,e,!1)))}},tl=function(e,t){if(k(this,on))throw new nw;let n=!1;if(!k(this,fe))n=!0;else if(&quot;websocket&quot;in k(this,fe))if(k(this,fe).websocket.readyState===1)try{const r=qp(k(this,kt),e);k(this,fe).websocket.send(r),H().trace(&quot;sent websocket message&quot;,{len:aw(r)})}catch(r){H().warn(&quot;failed to send message, added to queue&quot;,{error:r}),n=!0}else n=!0;else&quot;sse&quot;in k(this,fe)?k(this,fe).sse.readyState===1?te(this,J,om).call(this,e,t):n=!0:ct(k(this,fe));!(t!=null&amp;&amp;t.ephemeral)&amp;&amp;n&amp;&amp;(k(this,an).push(e),H().debug(&quot;queued connection message&quot;))},om=async function(e,t){try{if(!k(this,Zn)||!k(this,Hn)||!k(this,Ur))throw new xi(&quot;Missing connection ID or token.&quot;);H().trace(&quot;sent http message&quot;,{message:JSON.stringify(e).substring(0,100)+&quot;...&quot;});const n=await k(this,Qn).sendHttpMessage(void 0,k(this,Zn),k(this,kt),k(this,Hn),k(this,Ur),e,t!=null&amp;&amp;t.signal?{signal:t.signal}:void 0);if(!n.ok)throw new xi(`Publish message over HTTP error (${n.statusText}):
${await n.text()}`);await n.json()}catch(n){H().warn(&quot;failed to send message, added to queue&quot;,{error:n}),t!=null&amp;&amp;t.ephemeral||k(this,an).unshift(e)}},am=async function(e){if(k(this,kt)===&quot;json&quot;){if(typeof e!=&quot;string&quot;)throw new Error(&quot;received non-string for json parse&quot;);return JSON.parse(e)}else if(k(this,kt)===&quot;cbor&quot;){if(k(this,fe))if(&quot;sse&quot;in k(this,fe))if(typeof e==&quot;string&quot;){const t=atob(e);e=new Uint8Array([...t].map(n=&gt;n.charCodeAt(0)))}else throw new xi(`Expected data to be a string for SSE, got ${e}.`);else&quot;websocket&quot;in k(this,fe)||ct(k(this,fe));else throw new Error(&quot;Cannot parse message when no transport defined&quot;);if(e instanceof Blob)return Pi(new Uint8Array(await e.arrayBuffer()));if(e instanceof ArrayBuffer)return Pi(new Uint8Array(e));if(e instanceof Uint8Array)return Pi(e);throw new Error(`received non-binary type for cbor parse: ${typeof e}`)}else ct(k(this,kt))},nl=function(e,t){te(this,J,tl).call(this,{b:{sr:{e,s:t}}},{ephemeral:!0})},ud),Us=null;async function cw(){return Us!==null||(Us=(async()=&gt;{let e;try{e=(await Rp(()=&gt;import(&quot;./index-z2Dkjsn_.js&quot;),[])).EventSource,H().debug(&quot;using eventsource from npm&quot;)}catch{e=class{constructor(){throw new Error(&#39;EventSource support requires installing the &quot;eventsource&quot; peer dependency.&#39;)}},H().debug(&quot;using mock eventsource&quot;)}return e})()),Us}function fw(e){const t=(async()=&gt;{const[r,i]=await Promise.all([N0(),cw()]);return{WebSocket:r,EventSource:i}})();return{action:async(r,i,s,l,o,a,u)=&gt;(H().debug(&quot;actor handle action&quot;,{name:o,args:a,query:i}),(await rd({url:`${e}/registry/actors/actions/${encodeURIComponent(o)}`,method:&quot;POST&quot;,headers:{[hi]:s,[Ms]:JSON.stringify(i),...l!==void 0?{[Ds]:JSON.stringify(l)}:{}},body:{a},encoding:s,signal:u==null?void 0:u.signal})).o),resolveActorId:async(r,i,s,l)=&gt;{H().debug(&quot;resolving actor ID&quot;,{query:i});try{const o=await rd({url:`${e}/registry/actors/resolve`,method:&quot;POST&quot;,headers:{[hi]:s,[Ms]:JSON.stringify(i),...l!==void 0?{[Ds]:JSON.stringify(l)}:{}},body:{},encoding:s});return H().debug(&quot;resolved actor ID&quot;,{actorId:o.i}),o.i}catch(o){throw H().error(&quot;failed to resolve actor ID&quot;,{error:o}),o instanceof $l?o:new xi(`Failed to resolve actor ID: ${String(o)}`)}},connectWebSocket:async(r,i,s,l)=&gt;{const{WebSocket:o}=await t,u=`${e.replace(/^http:/,&quot;ws:&quot;).replace(/^https:/,&quot;wss:&quot;)}/registry/actors/connect/websocket`,c=[`query.${encodeURIComponent(JSON.stringify(i))}`,`encoding.${s}`];l&amp;&amp;c.push(`conn_params.${encodeURIComponent(JSON.stringify(l))}`),c.push(&quot;rivetkit&quot;),H().debug(&quot;connecting to websocket&quot;,{url:u});const p=new o(u,c);if(s===&quot;cbor&quot;)p.binaryType=&quot;arraybuffer&quot;;else if(s===&quot;json&quot;)try{p.binaryType=&quot;blob&quot;}catch{}else ct(s);return p},connectSse:async(r,i,s,l)=&gt;{const{EventSource:o}=await t,a=`${e}/registry/actors/connect/sse`;return H().debug(&quot;connecting to sse&quot;,{url:a}),new o(a,{fetch:(c,p)=&gt;fetch(c,{...p,headers:{...p==null?void 0:p.headers,&quot;User-Agent&quot;:Ys(),[hi]:s,[Ms]:JSON.stringify(i),...l!==void 0?{[Ds]:JSON.stringify(l)}:{}},credentials:&quot;include&quot;})})},sendHttpMessage:async(r,i,s,l,o,a)=&gt;{const u=qp(s,a);return await fetch(`${e}/registry/actors/message`,{method:&quot;POST&quot;,headers:{&quot;User-Agent&quot;:Ys(),[hi]:s,[E0]:i,[C0]:l,[O0]:o},body:u,credentials:&quot;include&quot;})},rawHttpRequest:async(r,i,s,l,o,a)=&gt;{const u=o.startsWith(&quot;/&quot;)?o.slice(1):o,c=`${e}/registry/actors/raw/http/${u}`;H().debug(&quot;rewriting http url&quot;,{from:o,to:c});const p=new Headers(a.headers);return p.set(&quot;User-Agent&quot;,Ys()),p.set(Ms,JSON.stringify(i)),p.set(hi,s),l!==void 0&amp;&amp;p.set(Ds,JSON.stringify(l)),await fetch(c,{...a,headers:p})},rawWebSocket:async(r,i,s,l,o,a)=&gt;{const{WebSocket:u}=await t,c=e.replace(/^http:/,&quot;ws:&quot;).replace(/^https:/,&quot;wss:&quot;),p=o.startsWith(&quot;/&quot;)?o.slice(1):o,y=`${c}/registry/actors/raw/websocket/${p}`;H().debug(&quot;rewriting websocket url&quot;,{from:o,to:y});const w=[];return w.push(`query.${encodeURIComponent(JSON.stringify(i))}`),w.push(`encoding.${s}`),l&amp;&amp;w.push(`conn_params.${encodeURIComponent(JSON.stringify(l))}`),w.push(&quot;rivetkit&quot;),a&amp;&amp;(Array.isArray(a)?w.push(...a):w.push(a)),H().debug(&quot;opening raw websocket&quot;,{url:y}),new u(y,w)}}}function dw(e,t){const n=fw(e);return ow(n,t)}function hw(e,t={}){const{getOrCreateActor:n}=Bv(e,t);function r(i){const{mount:s,setState:l,state:o}=n(i);ht.useEffect(()=&gt;{l(c=&gt;(c.opts={...i,enabled:i.enabled??!0},c))},[i,l]),ht.useEffect(()=&gt;s(),[s]);const a=Cf(o)||{};function u(c,p){const y=ht.useRef(p),w=Cf(o)||{};ht.useEffect(()=&gt;{y.current=p},[p]),ht.useEffect(()=&gt;{if(!(w!=null&amp;&amp;w.connection))return;function x(...E){y.current(...E)}return w.connection.on(c,x)},[w.connection,w.isConnected,w.hash,c])}return{...a,useEvent:u}}return{useActor:r}}const pw=dw(&quot;http://localhost:8080&quot;),{useActor:mw}=hw(pw);function yw(){const[e,t]=ht.useState(0),[n,r]=ht.useState(&quot;test-counter&quot;),i=mw({name:&quot;counter&quot;,key:[n]});i.useEvent(&quot;newCount&quot;,l=&gt;t(l));const s=async()=&gt;{var l;await((l=i.connection)==null?void 0:l.increment(1))};return fr.jsxs(&quot;div&quot;,{children:[fr.jsxs(&quot;h1&quot;,{children:[&quot;Counter: &quot;,e]}),fr.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:n,onChange:l=&gt;r(l.target.value),placeholder:&quot;Counter name&quot;}),fr.jsx(&quot;button&quot;,{onClick:s,children:&quot;Increment&quot;})]})}Wo.createRoot(document.getElementById(&quot;root&quot;)).render(fr.jsx(Om.StrictMode,{children:fr.jsx(yw,{})}));export{uu as g};
">
<input type="hidden" name="project[files][dist/assets/index-z2Dkjsn_.js]" value="class V extends Error{constructor(e,s){super(e),this.name=&quot;ParseError&quot;,this.type=s.type,this.field=s.field,this.value=s.value,this.line=s.line}}function A(t){}function et(t){if(typeof t==&quot;function&quot;)throw new TypeError(&quot;`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?&quot;);const{onEvent:e=A,onError:s=A,onRetry:i=A,onComment:l}=t;let r=&quot;&quot;,d=!0,u,E=&quot;&quot;,f=&quot;&quot;;function $(a){const h=d?a.replace(/^\xEF\xBB\xBF/,&quot;&quot;):a,[m,P]=st(`${r}${h}`);for(const D of m)W(D);r=P,d=!1}function W(a){if(a===&quot;&quot;){U();return}if(a.startsWith(&quot;:&quot;)){l&amp;&amp;l(a.slice(a.startsWith(&quot;: &quot;)?2:1));return}const h=a.indexOf(&quot;:&quot;);if(h!==-1){const m=a.slice(0,h),P=a[h+1]===&quot; &quot;?2:1,D=a.slice(h+P);S(m,D,a);return}S(a,&quot;&quot;,a)}function S(a,h,m){switch(a){case&quot;event&quot;:f=h;break;case&quot;data&quot;:E=`${E}${h}
`;break;case&quot;id&quot;:u=h.includes(&quot;\0&quot;)?void 0:h;break;case&quot;retry&quot;:/^\d+$/.test(h)?i(parseInt(h,10)):s(new V(`Invalid \`retry\` value: &quot;${h}&quot;`,{type:&quot;invalid-retry&quot;,value:h,line:m}));break;default:s(new V(`Unknown field &quot;${a.length&gt;20?`${a.slice(0,20)}…`:a}&quot;`,{type:&quot;unknown-field&quot;,field:a,value:h,line:m}));break}}function U(){E.length&gt;0&amp;&amp;e({id:u,event:f||void 0,data:E.endsWith(`
`)?E.slice(0,-1):E}),u=void 0,E=&quot;&quot;,f=&quot;&quot;}function T(a={}){r&amp;&amp;a.consume&amp;&amp;W(r),d=!0,u=void 0,E=&quot;&quot;,f=&quot;&quot;,r=&quot;&quot;}return{feed:$,reset:T}}function st(t){const e=[];let s=&quot;&quot;,i=0;for(;i&lt;t.length;){const l=t.indexOf(&quot;\r&quot;,i),r=t.indexOf(`
`,i);let d=-1;if(l!==-1&amp;&amp;r!==-1?d=Math.min(l,r):l!==-1?d=l:r!==-1&amp;&amp;(d=r),d===-1){s=t.slice(i);break}else{const u=t.slice(i,d);e.push(u),i=d+1,t[i-1]===&quot;\r&quot;&amp;&amp;t[i]===`
`&amp;&amp;i++}}return[e,s]}class X extends Event{constructor(e,s){var i,l;super(e),this.code=(i=s==null?void 0:s.code)!=null?i:void 0,this.message=(l=s==null?void 0:s.message)!=null?l:void 0}[Symbol.for(&quot;nodejs.util.inspect.custom&quot;)](e,s,i){return i(Y(this),s)}[Symbol.for(&quot;Deno.customInspect&quot;)](e,s){return e(Y(this),s)}}function nt(t){const e=globalThis.DOMException;return typeof e==&quot;function&quot;?new e(t,&quot;SyntaxError&quot;):new SyntaxError(t)}function F(t){return t instanceof Error?&quot;errors&quot;in t&amp;&amp;Array.isArray(t.errors)?t.errors.map(F).join(&quot;, &quot;):&quot;cause&quot;in t&amp;&amp;t.cause instanceof Error?`${t}: ${F(t.cause)}`:t.message:`${t}`}function Y(t){return{type:t.type,message:t.message,code:t.code,defaultPrevented:t.defaultPrevented,cancelable:t.cancelable,timeStamp:t.timeStamp}}var tt=t=&gt;{throw TypeError(t)},Q=(t,e,s)=&gt;e.has(t)||tt(&quot;Cannot &quot;+s),n=(t,e,s)=&gt;(Q(t,e,&quot;read from private field&quot;),s?s.call(t):e.get(t)),c=(t,e,s)=&gt;e.has(t)?tt(&quot;Cannot add the same private member more than once&quot;):e instanceof WeakSet?e.add(t):e.set(t,s),o=(t,e,s,i)=&gt;(Q(t,e,&quot;write to private field&quot;),e.set(t,s),s),w=(t,e,s)=&gt;(Q(t,e,&quot;access private method&quot;),s),p,_,y,I,R,L,b,N,g,C,k,x,M,v,B,q,H,Z,j,z,O,J,K;class G extends EventTarget{constructor(e,s){var i,l;super(),c(this,v),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,c(this,p),c(this,_),c(this,y),c(this,I),c(this,R),c(this,L),c(this,b),c(this,N,null),c(this,g),c(this,C),c(this,k,null),c(this,x,null),c(this,M,null),c(this,q,async r=&gt;{var d;n(this,C).reset();const{body:u,redirected:E,status:f,headers:$}=r;if(f===204){w(this,v,O).call(this,&quot;Server sent HTTP 204, not reconnecting&quot;,204),this.close();return}if(E?o(this,y,new URL(r.url)):o(this,y,void 0),f!==200){w(this,v,O).call(this,`Non-200 status code (${f})`,f);return}if(!($.get(&quot;content-type&quot;)||&quot;&quot;).startsWith(&quot;text/event-stream&quot;)){w(this,v,O).call(this,&#39;Invalid content type, expected &quot;text/event-stream&quot;&#39;,f);return}if(n(this,p)===this.CLOSED)return;o(this,p,this.OPEN);const W=new Event(&quot;open&quot;);if((d=n(this,M))==null||d.call(this,W),this.dispatchEvent(W),typeof u!=&quot;object&quot;||!u||!(&quot;getReader&quot;in u)){w(this,v,O).call(this,&quot;Invalid response body, expected a web ReadableStream&quot;,f),this.close();return}const S=new TextDecoder,U=u.getReader();let T=!0;do{const{done:a,value:h}=await U.read();h&amp;&amp;n(this,C).feed(S.decode(h,{stream:!a})),a&amp;&amp;(T=!1,n(this,C).reset(),w(this,v,J).call(this))}while(T)}),c(this,H,r=&gt;{o(this,g,void 0),!(r.name===&quot;AbortError&quot;||r.type===&quot;aborted&quot;)&amp;&amp;w(this,v,J).call(this,F(r))}),c(this,j,r=&gt;{typeof r.id==&quot;string&quot;&amp;&amp;o(this,N,r.id);const d=new MessageEvent(r.event||&quot;message&quot;,{data:r.data,origin:n(this,y)?n(this,y).origin:n(this,_).origin,lastEventId:r.id||&quot;&quot;});n(this,x)&amp;&amp;(!r.event||r.event===&quot;message&quot;)&amp;&amp;n(this,x).call(this,d),this.dispatchEvent(d)}),c(this,z,r=&gt;{o(this,L,r)}),c(this,K,()=&gt;{o(this,b,void 0),n(this,p)===this.CONNECTING&amp;&amp;w(this,v,B).call(this)});try{if(e instanceof URL)o(this,_,e);else if(typeof e==&quot;string&quot;)o(this,_,new URL(e,it()));else throw new Error(&quot;Invalid URL&quot;)}catch{throw nt(&quot;An invalid or illegal string was specified&quot;)}o(this,C,et({onEvent:n(this,j),onRetry:n(this,z)})),o(this,p,this.CONNECTING),o(this,L,3e3),o(this,R,(i=s==null?void 0:s.fetch)!=null?i:globalThis.fetch),o(this,I,(l=s==null?void 0:s.withCredentials)!=null?l:!1),w(this,v,B).call(this)}get readyState(){return n(this,p)}get url(){return n(this,_).href}get withCredentials(){return n(this,I)}get onerror(){return n(this,k)}set onerror(e){o(this,k,e)}get onmessage(){return n(this,x)}set onmessage(e){o(this,x,e)}get onopen(){return n(this,M)}set onopen(e){o(this,M,e)}addEventListener(e,s,i){const l=s;super.addEventListener(e,l,i)}removeEventListener(e,s,i){const l=s;super.removeEventListener(e,l,i)}close(){n(this,b)&amp;&amp;clearTimeout(n(this,b)),n(this,p)!==this.CLOSED&amp;&amp;(n(this,g)&amp;&amp;n(this,g).abort(),o(this,p,this.CLOSED),o(this,g,void 0))}}p=new WeakMap,_=new WeakMap,y=new WeakMap,I=new WeakMap,R=new WeakMap,L=new WeakMap,b=new WeakMap,N=new WeakMap,g=new WeakMap,C=new WeakMap,k=new WeakMap,x=new WeakMap,M=new WeakMap,v=new WeakSet,B=function(){o(this,p,this.CONNECTING),o(this,g,new AbortController),n(this,R)(n(this,_),w(this,v,Z).call(this)).then(n(this,q)).catch(n(this,H))},q=new WeakMap,H=new WeakMap,Z=function(){var t;const e={mode:&quot;cors&quot;,redirect:&quot;follow&quot;,headers:{Accept:&quot;text/event-stream&quot;,...n(this,N)?{&quot;Last-Event-ID&quot;:n(this,N)}:void 0},cache:&quot;no-store&quot;,signal:(t=n(this,g))==null?void 0:t.signal};return&quot;window&quot;in globalThis&amp;&amp;(e.credentials=this.withCredentials?&quot;include&quot;:&quot;same-origin&quot;),e},j=new WeakMap,z=new WeakMap,O=function(t,e){var s;n(this,p)!==this.CLOSED&amp;&amp;o(this,p,this.CLOSED);const i=new X(&quot;error&quot;,{code:e,message:t});(s=n(this,k))==null||s.call(this,i),this.dispatchEvent(i)},J=function(t,e){var s;if(n(this,p)===this.CLOSED)return;o(this,p,this.CONNECTING);const i=new X(&quot;error&quot;,{code:e,message:t});(s=n(this,k))==null||s.call(this,i),this.dispatchEvent(i),o(this,b,setTimeout(n(this,K),n(this,L)))},K=new WeakMap,G.CONNECTING=0,G.OPEN=1,G.CLOSED=2;function it(){const t=&quot;document&quot;in globalThis?globalThis.document:void 0;return t&amp;&amp;typeof t==&quot;object&quot;&amp;&amp;&quot;baseURI&quot;in t&amp;&amp;typeof t.baseURI==&quot;string&quot;?t.baseURI:void 0}export{X as ErrorEvent,G as EventSource};
">
<input type="hidden" name="project[files][src/backend/registry.ts]" value="import { actor, setup } from &quot;@rivetkit/actor&quot;;

export const counter = actor({
	onAuth: () =&gt; {
		// Configure auth here
	},
	state: { count: 0 },
	actions: {
		increment: (c, x: number) =&gt; {
			c.state.count += x;
			c.broadcast(&quot;newCount&quot;, c.state.count);
			return c.state.count;
		},
	},
});

export const registry = setup({
	use: { counter },
});
">
<input type="hidden" name="project[files][src/backend/server.ts]" value="import { Hono } from &quot;hono&quot;;
import { registry } from &quot;./registry&quot;;

const { client, serve } = registry.createServer({
	cors: {
		origin: &quot;http://localhost:5173&quot;,
	},
});

// Setup router
const app = new Hono();

// Example HTTP endpoint
app.post(&quot;/increment/:name&quot;, async (c) =&gt; {
	const name = c.req.param(&quot;name&quot;);

	const counter = client.counter.getOrCreate(name);
	const newCount = await counter.increment(1);

	return c.text(`New Count: ${newCount}`);
});

serve(app);
">
<input type="hidden" name="project[files][src/frontend/App.tsx]" value="import { createClient, createRivetKit } from &quot;@rivetkit/react&quot;;
import { useState } from &quot;react&quot;;
import type { registry } from &quot;../backend/registry&quot;;

const client = createClient&lt;typeof registry&gt;(&quot;http://localhost:8080&quot;);
const { useActor } = createRivetKit&lt;typeof registry&gt;(client);

function App() {
	const [count, setCount] = useState(0);
	const [counterName, setCounterName] = useState(&quot;test-counter&quot;);

	const counter = useActor({
		name: &quot;counter&quot;,
		key: [counterName],
	});

	counter.useEvent(&quot;newCount&quot;, (x: number) =&gt; setCount(x));

	const increment = async () =&gt; {
		await counter.connection?.increment(1);
	};

	return (
		&lt;div&gt;
			&lt;h1&gt;Counter: {count}&lt;/h1&gt;
			&lt;input
				type=&quot;text&quot;
				value={counterName}
				onChange={(e) =&gt; setCounterName(e.target.value)}
				placeholder=&quot;Counter name&quot;
			/&gt;
			&lt;button onClick={increment}&gt;Increment&lt;/button&gt;
		&lt;/div&gt;
	);
}

export default App;
">
<input type="hidden" name="project[files][src/frontend/index.html]" value="&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
    &lt;meta charset=&quot;UTF-8&quot; /&gt;
    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;
    &lt;title&gt;Hono React Counter&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div id=&quot;root&quot;&gt;&lt;/div&gt;
    &lt;script type=&quot;module&quot; src=&quot;/main.tsx&quot;&gt;&lt;/script&gt;
  &lt;/body&gt;
&lt;/html&gt;
">
<input type="hidden" name="project[files][src/frontend/main.tsx]" value="import React from &quot;react&quot;;
import ReactDOM from &quot;react-dom/client&quot;;
import App from &quot;./App&quot;;

ReactDOM.createRoot(document.getElementById(&quot;root&quot;)!).render(
	&lt;React.StrictMode&gt;
		&lt;App /&gt;
	&lt;/React.StrictMode&gt;,
);
">
<input type="hidden" name="project[description]" value="generated by https://pkg.pr.new">
<input type="hidden" name="project[template]" value="node">
<input type="hidden" name="project[title]" value="example-hono-react">
</form>
<script>document.getElementById("mainForm").submit();</script>

</body></html>