@volter/twin-sentry 0.1.36 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -134
- package/api/spec/SOURCE.md +15 -0
- package/api/spec/doc-examples.json +12 -0
- package/api/spec/openapi.json.gz +0 -0
- package/api/spec/patches.json +5350 -0
- package/api/spec/sources.json +122 -0
- package/api/src/fetch.ts +18 -0
- package/api/src/generated/surface.gen.json +1 -0
- package/api/src/generated/ui.gen.json +1 -0
- package/api/src/index.ts +3 -0
- package/api/src/manifest.ts +136 -0
- package/api/src/semantics/api.ts +246 -0
- package/api/src/semantics/around.ts +36 -0
- package/api/src/semantics/doors.ts +50 -0
- package/api/src/semantics/index.ts +19 -0
- package/api/src/semantics/shared.ts +35 -0
- package/api/src/semantics/states.ts +17 -0
- package/dist/api/spec/SOURCE.md +15 -0
- package/dist/api/spec/doc-examples.json +12 -0
- package/dist/api/spec/openapi.json.gz +0 -0
- package/dist/api/spec/patches.json +5350 -0
- package/dist/api/spec/sources.json +122 -0
- package/dist/api/src/fetch.d.ts +2 -0
- package/dist/api/src/fetch.js +17 -0
- package/dist/api/src/fetch.ts +18 -0
- package/dist/api/src/generated/surface.gen.json +1 -0
- package/dist/api/src/generated/ui.gen.json +1 -0
- package/dist/api/src/index.d.ts +2 -0
- package/dist/api/src/index.js +3 -0
- package/dist/api/src/index.ts +3 -0
- package/dist/api/src/manifest.d.ts +2 -0
- package/dist/api/src/manifest.js +135 -0
- package/dist/api/src/manifest.ts +136 -0
- package/dist/api/src/semantics/api.d.ts +13 -0
- package/dist/api/src/semantics/api.js +267 -0
- package/dist/api/src/semantics/api.ts +246 -0
- package/dist/api/src/semantics/around.d.ts +2 -0
- package/dist/api/src/semantics/around.js +41 -0
- package/dist/api/src/semantics/around.ts +36 -0
- package/dist/api/src/semantics/doors.d.ts +8 -0
- package/dist/api/src/semantics/doors.js +39 -0
- package/dist/api/src/semantics/doors.ts +50 -0
- package/dist/api/src/semantics/index.d.ts +2 -0
- package/dist/api/src/semantics/index.js +15 -0
- package/dist/api/src/semantics/index.ts +19 -0
- package/dist/api/src/semantics/shared.d.ts +15 -0
- package/dist/api/src/semantics/shared.js +27 -0
- package/dist/api/src/semantics/shared.ts +35 -0
- package/dist/api/src/semantics/states.d.ts +24 -0
- package/dist/api/src/semantics/states.js +17 -0
- package/dist/api/src/semantics/states.ts +17 -0
- package/dist/generated/pack-facts.json +87 -0
- package/dist/ingest/spec/SOURCE.md +30 -0
- package/dist/ingest/spec/authentication.mdx.gz +0 -0
- package/dist/ingest/spec/compression.mdx.gz +0 -0
- package/dist/ingest/spec/doc-examples.json +216 -0
- package/dist/ingest/spec/envelope-items.mdx.gz +0 -0
- package/dist/ingest/spec/envelopes.mdx.gz +0 -0
- package/dist/ingest/spec/openapi.json +178 -0
- package/dist/ingest/spec/rate-limiting.mdx.gz +0 -0
- package/dist/ingest/spec/sources.json +25 -0
- package/dist/ingest/spec/transport.mdx.gz +0 -0
- package/dist/ingest/spec/write-spec.ts +192 -0
- package/dist/ingest/src/fetch.d.ts +2 -0
- package/dist/ingest/src/fetch.js +15 -0
- package/dist/ingest/src/fetch.ts +16 -0
- package/dist/ingest/src/generated/surface.gen.json +1 -0
- package/dist/ingest/src/generated/ui.gen.json +1 -0
- package/dist/ingest/src/index.d.ts +2 -0
- package/dist/ingest/src/index.js +3 -0
- package/dist/ingest/src/index.ts +3 -0
- package/dist/ingest/src/manifest.d.ts +2 -0
- package/dist/ingest/src/manifest.js +34 -0
- package/dist/ingest/src/manifest.ts +39 -0
- package/dist/ingest/src/semantics/api.d.ts +2 -0
- package/dist/ingest/src/semantics/api.js +240 -0
- package/dist/ingest/src/semantics/api.ts +188 -0
- package/dist/ingest/src/semantics/around.d.ts +2 -0
- package/dist/ingest/src/semantics/around.js +6 -0
- package/dist/ingest/src/semantics/around.ts +7 -0
- package/dist/ingest/src/semantics/index.d.ts +2 -0
- package/dist/ingest/src/semantics/index.js +4 -0
- package/dist/ingest/src/semantics/index.ts +8 -0
- package/dist/ingest/src/semantics/shared.d.ts +4 -0
- package/dist/ingest/src/semantics/shared.js +2 -0
- package/dist/ingest/src/semantics/shared.ts +7 -0
- package/dist/ingest/src/semantics/states.d.ts +1 -0
- package/dist/ingest/src/semantics/states.js +2 -0
- package/dist/ingest/src/semantics/states.ts +2 -0
- package/dist/journeys/coverage.json +205 -0
- package/dist/journeys/customer-life.json +923 -0
- package/dist/journeys/customer-life.outline.md +51 -0
- package/dist/journeys/decisions.json +170 -0
- package/dist/journeys/demand.json +136 -0
- package/dist/journeys/score.json +231 -0
- package/dist/journeys/unreachable.json +29 -0
- package/dist/journeys/vendor-examples.json +474 -0
- package/dist/spec/sources.json +76 -0
- package/dist/src/cli.js +12 -27
- package/dist/src/fetch.d.ts +2 -0
- package/dist/src/fetch.js +9 -0
- package/dist/src/index.d.ts +5 -15
- package/dist/src/index.js +12 -75
- package/dist/src/manifest.d.ts +2 -0
- package/dist/src/manifest.js +34 -0
- package/dist/src/semantics/shared.d.ts +87 -0
- package/dist/src/semantics/shared.js +411 -0
- package/dist/src/server.d.ts +7 -0
- package/dist/src/server.js +7 -0
- package/generated/pack-facts.json +87 -0
- package/ingest/spec/SOURCE.md +30 -0
- package/ingest/spec/authentication.mdx.gz +0 -0
- package/ingest/spec/compression.mdx.gz +0 -0
- package/ingest/spec/doc-examples.json +216 -0
- package/ingest/spec/envelope-items.mdx.gz +0 -0
- package/ingest/spec/envelopes.mdx.gz +0 -0
- package/ingest/spec/openapi.json +178 -0
- package/ingest/spec/rate-limiting.mdx.gz +0 -0
- package/ingest/spec/sources.json +25 -0
- package/ingest/spec/transport.mdx.gz +0 -0
- package/ingest/spec/write-spec.ts +192 -0
- package/ingest/src/fetch.ts +16 -0
- package/ingest/src/generated/surface.gen.json +1 -0
- package/ingest/src/generated/ui.gen.json +1 -0
- package/ingest/src/index.ts +3 -0
- package/ingest/src/manifest.ts +39 -0
- package/ingest/src/semantics/api.ts +188 -0
- package/ingest/src/semantics/around.ts +7 -0
- package/ingest/src/semantics/index.ts +8 -0
- package/ingest/src/semantics/shared.ts +7 -0
- package/ingest/src/semantics/states.ts +2 -0
- package/journeys/coverage.json +205 -0
- package/journeys/customer-life.json +923 -0
- package/journeys/customer-life.outline.md +51 -0
- package/journeys/decisions.json +170 -0
- package/journeys/demand.json +136 -0
- package/journeys/score.json +231 -0
- package/journeys/unreachable.json +29 -0
- package/journeys/vendor-examples.json +474 -0
- package/package.json +16 -42
- package/spec/sources.json +76 -0
- package/src/cli.ts +12 -24
- package/src/fetch.ts +10 -0
- package/src/index.ts +12 -143
- package/src/manifest.ts +40 -0
- package/src/semantics/shared.ts +443 -0
- package/src/server.ts +8 -0
- package/client/sentry-mirror.css +0 -99
- package/client/sentry-mirror.tsx +0 -352
- package/dist/client/sentry-mirror.bundle.js +0 -388
- package/dist/client/sentry-mirror.css +0 -99
- package/dist/client/sentry-mirror.d.ts +0 -17
- package/dist/client/sentry-mirror.js +0 -156
- package/dist/client/sentry-mirror.tsx +0 -352
- package/dist/src/sentry-budget.d.ts +0 -50
- package/dist/src/sentry-budget.js +0 -145
- package/dist/src/sentry-capabilities.d.ts +0 -3
- package/dist/src/sentry-capabilities.js +0 -1180
- package/dist/src/sentry-conformance.d.ts +0 -22
- package/dist/src/sentry-conformance.js +0 -97
- package/dist/src/sentry-connector.d.ts +0 -77
- package/dist/src/sentry-connector.js +0 -226
- package/dist/src/sentry-events.d.ts +0 -54
- package/dist/src/sentry-events.js +0 -132
- package/dist/src/sentry-ingest.d.ts +0 -137
- package/dist/src/sentry-ingest.js +0 -387
- package/dist/src/sentry-mirror-ui.d.ts +0 -38
- package/dist/src/sentry-mirror-ui.js +0 -162
- package/dist/src/sentry-perform-harness.d.ts +0 -9
- package/dist/src/sentry-perform-harness.js +0 -20
- package/dist/src/sentry-server.d.ts +0 -14
- package/dist/src/sentry-server.js +0 -27
- package/dist/src/sentry-twin.d.ts +0 -17
- package/dist/src/sentry-twin.js +0 -1739
- package/dist/test-fixtures/sentry-openapi-operations.SOURCE.md +0 -24
- package/dist/test-fixtures/sentry-openapi-operations.json +0 -1837
- package/src/sentry-budget.ts +0 -171
- package/src/sentry-capabilities.ts +0 -1222
- package/src/sentry-conformance.ts +0 -110
- package/src/sentry-connector.ts +0 -260
- package/src/sentry-events.ts +0 -172
- package/src/sentry-ingest.ts +0 -471
- package/src/sentry-mirror-ui.ts +0 -162
- package/src/sentry-perform-harness.ts +0 -19
- package/src/sentry-server.ts +0 -35
- package/src/sentry-twin.ts +0 -1615
- package/test-fixtures/sentry-openapi-operations.SOURCE.md +0 -24
- package/test-fixtures/sentry-openapi-operations.json +0 -1837
|
@@ -1,388 +0,0 @@
|
|
|
1
|
-
var Ob=Object.create;var{getPrototypeOf:Lb,defineProperty:fJ,getOwnPropertyNames:Mq,getOwnPropertyDescriptor:Kb}=Object,Aq=Object.prototype.hasOwnProperty;function Eq($){return this[$]}var Db,Wb,J6=($,I,G)=>{var Z=$!=null&&typeof $==="object";if(Z){var _=I?Db??=new WeakMap:Wb??=new WeakMap,J=_.get($);if(J)return J}G=$!=null?Ob(Lb($)):{};let Y=I||!$||!$.__esModule?fJ(G,"default",{value:$,enumerable:!0}):G;for(let W of Mq($))if(!Aq.call(Y,W))fJ(Y,W,{get:Eq.bind($,W),enumerable:!0});if(Z)_.set($,Y);return Y},V$=($)=>{var I=(Tq??=new WeakMap).get($),G;if(I)return I;if(I=fJ({},"__esModule",{value:!0}),$&&typeof $==="object"||typeof $==="function"){for(var Z of Mq($))if(!Aq.call(I,Z))fJ(I,Z,{get:Eq.bind($,Z),enumerable:!(G=Kb($,Z))||G.enumerable})}return Tq.set($,I),I},Tq,N6=($,I)=>()=>(I||$((I={exports:{}}).exports,I),I.exports);var Hb=($)=>$;function Fb($,I){this[$]=Hb.bind(null,I)}var LU=($,I)=>{for(var G in I)fJ($,G,{get:I[G],enumerable:!0,configurable:!0,set:Fb.bind(I,G)})};var WI=($,I)=>()=>($&&(I=$($=0)),I);var qD=(($)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy($,{get:(I,G)=>(typeof require<"u"?require:I)[G]}):$)(function($){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+$+'" is not supported')});var yJ=N6((Tb,EZ)=>{(function(){function $(u,_0){Object.defineProperty(Z.prototype,u,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",_0[0],_0[1])}})}function I(u){if(u===null||typeof u!=="object")return null;return u=m&&u[m]||u["@@iterator"],typeof u==="function"?u:null}function G(u,_0){u=(u=u.constructor)&&(u.displayName||u.name)||"ReactClass";var o=u+"."+_0;r[o]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",_0,u),r[o]=!0)}function Z(u,_0,o){this.props=u,this.context=_0,this.refs=I0,this.updater=o||Y0}function _(){}function J(u,_0,o){this.props=u,this.context=_0,this.refs=I0,this.updater=o||Y0}function Y(){}function W(u){return""+u}function R(u){try{W(u);var _0=!1}catch(x0){_0=!0}if(_0){_0=console;var o=_0.error,R0=typeof Symbol==="function"&&Symbol.toStringTag&&u[Symbol.toStringTag]||u.constructor.name||"Object";return o.call(_0,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",R0),W(u)}}function M(u){if(u==null)return null;if(typeof u==="function")return u.$$typeof===S0?null:u.displayName||u.name||null;if(typeof u==="string")return u;switch(u){case P:return"Fragment";case A:return"Profiler";case O:return"StrictMode";case a:return"Suspense";case J0:return"SuspenseList";case d:return"Activity"}if(typeof u==="object")switch(typeof u.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),u.$$typeof){case q:return"Portal";case j:return u.displayName||"Context";case k:return(u._context.displayName||"Context")+".Consumer";case h:var _0=u.render;return u=u.displayName,u||(u=_0.displayName||_0.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case D0:return _0=u.displayName||null,_0!==null?_0:M(u.type)||"Memo";case O0:_0=u._payload,u=u._init;try{return M(u(_0))}catch(o){}}return null}function E(u){if(u===P)return"<>";if(typeof u==="object"&&u!==null&&u.$$typeof===O0)return"<...>";try{var _0=M(u);return _0?"<"+_0+">":"<...>"}catch(o){return"<...>"}}function T(){var u=M0.A;return u===null?null:u.getOwner()}function S(){return Error("react-stack-top-frame")}function N(u){if(z0.call(u,"key")){var _0=Object.getOwnPropertyDescriptor(u,"key").get;if(_0&&_0.isReactWarning)return!1}return u.key!==void 0}function B(u,_0){function o(){F0||(F0=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",_0))}o.isReactWarning=!0,Object.defineProperty(u,"key",{get:o,configurable:!0})}function x(){var u=M(this.type);return s0[u]||(s0[u]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),u=this.props.ref,u!==void 0?u:null}function w(u,_0,o,R0,x0,p){var A0=o.ref;return u={$$typeof:v,type:u,key:_0,props:o,_owner:R0},(A0!==void 0?A0:null)!==null?Object.defineProperty(u,"ref",{enumerable:!1,get:x}):Object.defineProperty(u,"ref",{enumerable:!1,value:null}),u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(u,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(u,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:x0}),Object.defineProperty(u,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:p}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u}function y(u,_0){return _0=w(u.type,_0,u.props,u._owner,u._debugStack,u._debugTask),u._store&&(_0._store.validated=u._store.validated),_0}function g(u){b(u)?u._store&&(u._store.validated=1):typeof u==="object"&&u!==null&&u.$$typeof===O0&&(u._payload.status==="fulfilled"?b(u._payload.value)&&u._payload.value._store&&(u._payload.value._store.validated=1):u._store&&(u._store.validated=1))}function b(u){return typeof u==="object"&&u!==null&&u.$$typeof===v}function l(u){var _0={"=":"=0",":":"=2"};return"$"+u.replace(/[=:]/g,function(o){return _0[o]})}function i(u,_0){return typeof u==="object"&&u!==null&&u.key!=null?(R(u.key),l(""+u.key)):_0.toString(36)}function $0(u){switch(u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:switch(typeof u.status==="string"?u.then(Y,Y):(u.status="pending",u.then(function(_0){u.status==="pending"&&(u.status="fulfilled",u.value=_0)},function(_0){u.status==="pending"&&(u.status="rejected",u.reason=_0)})),u.status){case"fulfilled":return u.value;case"rejected":throw u.reason}}throw u}function Q0(u,_0,o,R0,x0){var p=typeof u;if(p==="undefined"||p==="boolean")u=null;var A0=!1;if(u===null)A0=!0;else switch(p){case"bigint":case"string":case"number":A0=!0;break;case"object":switch(u.$$typeof){case v:case q:A0=!0;break;case O0:return A0=u._init,Q0(A0(u._payload),_0,o,R0,x0)}}if(A0){A0=u,x0=x0(A0);var v0=R0===""?"."+i(A0,0):R0;return s(x0)?(o="",v0!=null&&(o=v0.replace(T0,"$&/")+"/"),Q0(x0,_0,o,"",function(H0){return H0})):x0!=null&&(b(x0)&&(x0.key!=null&&(A0&&A0.key===x0.key||R(x0.key)),o=y(x0,o+(x0.key==null||A0&&A0.key===x0.key?"":(""+x0.key).replace(T0,"$&/")+"/")+v0),R0!==""&&A0!=null&&b(A0)&&A0.key==null&&A0._store&&!A0._store.validated&&(o._store.validated=2),x0=o),_0.push(x0)),1}if(A0=0,v0=R0===""?".":R0+":",s(u))for(var X0=0;X0<u.length;X0++)R0=u[X0],p=v0+i(R0,X0),A0+=Q0(R0,_0,o,p,x0);else if(X0=I(u),typeof X0==="function")for(X0===u.entries&&(M$||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),M$=!0),u=X0.call(u),X0=0;!(R0=u.next()).done;)R0=R0.value,p=v0+i(R0,X0++),A0+=Q0(R0,_0,o,p,x0);else if(p==="object"){if(typeof u.then==="function")return Q0($0(u),_0,o,R0,x0);throw _0=String(u),Error("Objects are not valid as a React child (found: "+(_0==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":_0)+"). If you meant to render a collection of children, use an array instead.")}return A0}function G0(u,_0,o){if(u==null)return u;var R0=[],x0=0;return Q0(u,R0,"","",function(p){return _0.call(o,p,x0++)}),R0}function K0(u){if(u._status===-1){var _0=u._ioInfo;_0!=null&&(_0.start=_0.end=performance.now()),_0=u._result;var o=_0();if(o.then(function(x0){if(u._status===0||u._status===-1){u._status=1,u._result=x0;var p=u._ioInfo;p!=null&&(p.end=performance.now()),o.status===void 0&&(o.status="fulfilled",o.value=x0)}},function(x0){if(u._status===0||u._status===-1){u._status=2,u._result=x0;var p=u._ioInfo;p!=null&&(p.end=performance.now()),o.status===void 0&&(o.status="rejected",o.reason=x0)}}),_0=u._ioInfo,_0!=null){_0.value=o;var R0=o.displayName;typeof R0==="string"&&(_0.name=R0)}u._status===-1&&(u._status=0,u._result=o)}if(u._status===1)return _0=u._result,_0===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2
|
-
|
|
3
|
-
Your code should look like:
|
|
4
|
-
const MyComponent = lazy(() => import('./MyComponent'))
|
|
5
|
-
|
|
6
|
-
Did you accidentally put curly braces around the import?`,_0),"default"in _0||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
7
|
-
|
|
8
|
-
Your code should look like:
|
|
9
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,_0),_0.default;throw u._result}function t(){var u=M0.H;return u===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
10
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
11
|
-
2. You might be breaking the Rules of Hooks
|
|
12
|
-
3. You might have more than one copy of React in the same app
|
|
13
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),u}function P0(){M0.asyncTransitions--}function Q(u){if(p0===null)try{var _0=("require"+Math.random()).slice(0,7);p0=(EZ&&EZ[_0]).call(EZ,"timers").setImmediate}catch(o){p0=function(R0){X$===!1&&(X$=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var x0=new MessageChannel;x0.port1.onmessage=R0,x0.port2.postMessage(void 0)}}return p0(u)}function K(u){return 1<u.length&&typeof AggregateError==="function"?AggregateError(u):u[0]}function F(u,_0){_0!==l0-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),l0=_0}function L(u,_0,o){var R0=M0.actQueue;if(R0!==null)if(R0.length!==0)try{H(R0),Q(function(){return L(u,_0,o)});return}catch(x0){M0.thrownErrors.push(x0)}else M0.actQueue=null;0<M0.thrownErrors.length?(R0=K(M0.thrownErrors),M0.thrownErrors.length=0,o(R0)):_0(u)}function H(u){if(!N0){N0=!0;var _0=0;try{for(;_0<u.length;_0++){var o=u[_0];do{M0.didUsePromise=!1;var R0=o(!1);if(R0!==null){if(M0.didUsePromise){u[_0]=o,u.splice(0,_0);return}o=R0}else break}while(1)}u.length=0}catch(x0){u.splice(0,_0+1),M0.thrownErrors.push(x0)}finally{N0=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var v=Symbol.for("react.transitional.element"),q=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),j=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),J0=Symbol.for("react.suspense_list"),D0=Symbol.for("react.memo"),O0=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),m=Symbol.iterator,r={},Y0={isMounted:function(){return!1},enqueueForceUpdate:function(u){G(u,"forceUpdate")},enqueueReplaceState:function(u){G(u,"replaceState")},enqueueSetState:function(u){G(u,"setState")}},W0=Object.assign,I0={};Object.freeze(I0),Z.prototype.isReactComponent={},Z.prototype.setState=function(u,_0){if(typeof u!=="object"&&typeof u!=="function"&&u!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,u,_0,"setState")},Z.prototype.forceUpdate=function(u){this.updater.enqueueForceUpdate(this,u,"forceUpdate")};var c={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(Y$ in c)c.hasOwnProperty(Y$)&&$(Y$,c[Y$]);_.prototype=Z.prototype,c=J.prototype=new _,c.constructor=J,W0(c,Z.prototype),c.isPureReactComponent=!0;var s=Array.isArray,S0=Symbol.for("react.client.reference"),M0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},z0=Object.prototype.hasOwnProperty,c0=console.createTask?console.createTask:function(){return null};c={react_stack_bottom_frame:function(u){return u()}};var F0,q0,s0={},k0=c.react_stack_bottom_frame.bind(c,S)(),n0=c0(E(S)),M$=!1,T0=/\/+/g,V0=typeof reportError==="function"?reportError:function(u){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var _0=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof u==="object"&&u!==null&&typeof u.message==="string"?String(u.message):String(u),error:u});if(!window.dispatchEvent(_0))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",u);return}console.error(u)},X$=!1,p0=null,l0=0,L0=!1,N0=!1,B0=typeof queueMicrotask==="function"?function(u){queueMicrotask(function(){return queueMicrotask(u)})}:Q;c=Object.freeze({__proto__:null,c:function(u){return t().useMemoCache(u)}});var Y$={map:G0,forEach:function(u,_0,o){G0(u,function(){_0.apply(this,arguments)},o)},count:function(u){var _0=0;return G0(u,function(){_0++}),_0},toArray:function(u){return G0(u,function(_0){return _0})||[]},only:function(u){if(!b(u))throw Error("React.Children.only expected to receive a single React element child.");return u}};Tb.Activity=d,Tb.Children=Y$,Tb.Component=Z,Tb.Fragment=P,Tb.Profiler=A,Tb.PureComponent=J,Tb.StrictMode=O,Tb.Suspense=a,Tb.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M0,Tb.__COMPILER_RUNTIME=c,Tb.act=function(u){var _0=M0.actQueue,o=l0;l0++;var R0=M0.actQueue=_0!==null?_0:[],x0=!1;try{var p=u()}catch(X0){M0.thrownErrors.push(X0)}if(0<M0.thrownErrors.length)throw F(_0,o),u=K(M0.thrownErrors),M0.thrownErrors.length=0,u;if(p!==null&&typeof p==="object"&&typeof p.then==="function"){var A0=p;return B0(function(){x0||L0||(L0=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(X0,H0){x0=!0,A0.then(function(C0){if(F(_0,o),o===0){try{H(R0),Q(function(){return L(C0,X0,H0)})}catch(d0){M0.thrownErrors.push(d0)}if(0<M0.thrownErrors.length){var H$=K(M0.thrownErrors);M0.thrownErrors.length=0,H0(H$)}}else X0(C0)},function(C0){F(_0,o),0<M0.thrownErrors.length?(C0=K(M0.thrownErrors),M0.thrownErrors.length=0,H0(C0)):H0(C0)})}}}var v0=p;if(F(_0,o),o===0&&(H(R0),R0.length!==0&&B0(function(){x0||L0||(L0=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),M0.actQueue=null),0<M0.thrownErrors.length)throw u=K(M0.thrownErrors),M0.thrownErrors.length=0,u;return{then:function(X0,H0){x0=!0,o===0?(M0.actQueue=R0,Q(function(){return L(v0,X0,H0)})):X0(v0)}}},Tb.cache=function(u){return function(){return u.apply(null,arguments)}},Tb.cacheSignal=function(){return null},Tb.captureOwnerStack=function(){var u=M0.getCurrentStack;return u===null?null:u()},Tb.cloneElement=function(u,_0,o){if(u===null||u===void 0)throw Error("The argument must be a React element, but you passed "+u+".");var R0=W0({},u.props),x0=u.key,p=u._owner;if(_0!=null){var A0;$:{if(z0.call(_0,"ref")&&(A0=Object.getOwnPropertyDescriptor(_0,"ref").get)&&A0.isReactWarning){A0=!1;break $}A0=_0.ref!==void 0}A0&&(p=T()),N(_0)&&(R(_0.key),x0=""+_0.key);for(v0 in _0)!z0.call(_0,v0)||v0==="key"||v0==="__self"||v0==="__source"||v0==="ref"&&_0.ref===void 0||(R0[v0]=_0[v0])}var v0=arguments.length-2;if(v0===1)R0.children=o;else if(1<v0){A0=Array(v0);for(var X0=0;X0<v0;X0++)A0[X0]=arguments[X0+2];R0.children=A0}R0=w(u.type,x0,R0,p,u._debugStack,u._debugTask);for(x0=2;x0<arguments.length;x0++)g(arguments[x0]);return R0},Tb.createContext=function(u){return u={$$typeof:j,_currentValue:u,_currentValue2:u,_threadCount:0,Provider:null,Consumer:null},u.Provider=u,u.Consumer={$$typeof:k,_context:u},u._currentRenderer=null,u._currentRenderer2=null,u},Tb.createElement=function(u,_0,o){for(var R0=2;R0<arguments.length;R0++)g(arguments[R0]);R0={};var x0=null;if(_0!=null)for(X0 in q0||!("__self"in _0)||"key"in _0||(q0=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),N(_0)&&(R(_0.key),x0=""+_0.key),_0)z0.call(_0,X0)&&X0!=="key"&&X0!=="__self"&&X0!=="__source"&&(R0[X0]=_0[X0]);var p=arguments.length-2;if(p===1)R0.children=o;else if(1<p){for(var A0=Array(p),v0=0;v0<p;v0++)A0[v0]=arguments[v0+2];Object.freeze&&Object.freeze(A0),R0.children=A0}if(u&&u.defaultProps)for(X0 in p=u.defaultProps,p)R0[X0]===void 0&&(R0[X0]=p[X0]);x0&&B(R0,typeof u==="function"?u.displayName||u.name||"Unknown":u);var X0=1e4>M0.recentlyCreatedOwnerStacks++;return w(u,x0,R0,T(),X0?Error("react-stack-top-frame"):k0,X0?c0(E(u)):n0)},Tb.createRef=function(){var u={current:null};return Object.seal(u),u},Tb.forwardRef=function(u){u!=null&&u.$$typeof===D0?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof u!=="function"?console.error("forwardRef requires a render function but was given %s.",u===null?"null":typeof u):u.length!==0&&u.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",u.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),u!=null&&u.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var _0={$$typeof:h,render:u},o;return Object.defineProperty(_0,"displayName",{enumerable:!1,configurable:!0,get:function(){return o},set:function(R0){o=R0,u.name||u.displayName||(Object.defineProperty(u,"name",{value:R0}),u.displayName=R0)}}),_0},Tb.isValidElement=b,Tb.lazy=function(u){u={_status:-1,_result:u};var _0={$$typeof:O0,_payload:u,_init:K0},o={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return u._ioInfo=o,_0._debugInfo=[{awaited:o}],_0},Tb.memo=function(u,_0){u==null&&console.error("memo: The first argument must be a component. Instead received: %s",u===null?"null":typeof u),_0={$$typeof:D0,type:u,compare:_0===void 0?null:_0};var o;return Object.defineProperty(_0,"displayName",{enumerable:!1,configurable:!0,get:function(){return o},set:function(R0){o=R0,u.name||u.displayName||(Object.defineProperty(u,"name",{value:R0}),u.displayName=R0)}}),_0},Tb.startTransition=function(u){var _0=M0.T,o={};o._updatedFibers=new Set,M0.T=o;try{var R0=u(),x0=M0.S;x0!==null&&x0(o,R0),typeof R0==="object"&&R0!==null&&typeof R0.then==="function"&&(M0.asyncTransitions++,R0.then(P0,P0),R0.then(Y,V0))}catch(p){V0(p)}finally{_0===null&&o._updatedFibers&&(u=o._updatedFibers.size,o._updatedFibers.clear(),10<u&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),_0!==null&&o.types!==null&&(_0.types!==null&&_0.types!==o.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),_0.types=o.types),M0.T=_0}},Tb.unstable_useCacheRefresh=function(){return t().useCacheRefresh()},Tb.use=function(u){return t().use(u)},Tb.useActionState=function(u,_0,o){return t().useActionState(u,_0,o)},Tb.useCallback=function(u,_0){return t().useCallback(u,_0)},Tb.useContext=function(u){var _0=t();return u.$$typeof===k&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),_0.useContext(u)},Tb.useDebugValue=function(u,_0){return t().useDebugValue(u,_0)},Tb.useDeferredValue=function(u,_0){return t().useDeferredValue(u,_0)},Tb.useEffect=function(u,_0){return u==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),t().useEffect(u,_0)},Tb.useEffectEvent=function(u){return t().useEffectEvent(u)},Tb.useId=function(){return t().useId()},Tb.useImperativeHandle=function(u,_0,o){return t().useImperativeHandle(u,_0,o)},Tb.useInsertionEffect=function(u,_0){return u==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),t().useInsertionEffect(u,_0)},Tb.useLayoutEffect=function(u,_0){return u==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),t().useLayoutEffect(u,_0)},Tb.useMemo=function(u,_0){return t().useMemo(u,_0)},Tb.useOptimistic=function(u,_0){return t().useOptimistic(u,_0)},Tb.useReducer=function(u,_0,o){return t().useReducer(u,_0,o)},Tb.useRef=function(u){return t().useRef(u)},Tb.useState=function(u){return t().useState(u)},Tb.useSyncExternalStore=function(u,_0,o){return t().useSyncExternalStore(u,_0,o)},Tb.useTransition=function(){return t().useTransition()},Tb.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Rq=N6((Mb)=>{(function(){function $(){if(l=!1,G0){var L=Mb.unstable_now();P0=L;var H=!0;try{$:{g=!1,b&&(b=!1,$0(K0),K0=-1),y=!0;var v=w;try{U:{J(L);for(x=G(S);x!==null&&!(x.expirationTime>L&&W());){var q=x.callback;if(typeof q==="function"){x.callback=null,w=x.priorityLevel;var P=q(x.expirationTime<=L);if(L=Mb.unstable_now(),typeof P==="function"){x.callback=P,J(L),H=!0;break U}x===G(S)&&Z(S),J(L)}else Z(S);x=G(S)}if(x!==null)H=!0;else{var O=G(N);O!==null&&R(Y,O.startTime-L),H=!1}}break $}finally{x=null,w=v,y=!1}H=void 0}}finally{H?Q():G0=!1}}}function I(L,H){var v=L.length;L.push(H);$:for(;0<v;){var q=v-1>>>1,P=L[q];if(0<_(P,H))L[q]=H,L[v]=P,v=q;else break $}}function G(L){return L.length===0?null:L[0]}function Z(L){if(L.length===0)return null;var H=L[0],v=L.pop();if(v!==H){L[0]=v;$:for(var q=0,P=L.length,O=P>>>1;q<O;){var A=2*(q+1)-1,k=L[A],j=A+1,h=L[j];if(0>_(k,v))j<P&&0>_(h,k)?(L[q]=h,L[j]=v,q=j):(L[q]=k,L[A]=v,q=A);else if(j<P&&0>_(h,v))L[q]=h,L[j]=v,q=j;else break $}}return H}function _(L,H){var v=L.sortIndex-H.sortIndex;return v!==0?v:L.id-H.id}function J(L){for(var H=G(N);H!==null;){if(H.callback===null)Z(N);else if(H.startTime<=L)Z(N),H.sortIndex=H.expirationTime,I(S,H);else break;H=G(N)}}function Y(L){if(b=!1,J(L),!g)if(G(S)!==null)g=!0,G0||(G0=!0,Q());else{var H=G(N);H!==null&&R(Y,H.startTime-L)}}function W(){return l?!0:Mb.unstable_now()-P0<t?!1:!0}function R(L,H){K0=i(function(){L(Mb.unstable_now())},H)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),Mb.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var M=performance;Mb.unstable_now=function(){return M.now()}}else{var E=Date,T=E.now();Mb.unstable_now=function(){return E.now()-T}}var S=[],N=[],B=1,x=null,w=3,y=!1,g=!1,b=!1,l=!1,i=typeof setTimeout==="function"?setTimeout:null,$0=typeof clearTimeout==="function"?clearTimeout:null,Q0=typeof setImmediate<"u"?setImmediate:null,G0=!1,K0=-1,t=5,P0=-1;if(typeof Q0==="function")var Q=function(){Q0($)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,F=K.port2;K.port1.onmessage=$,Q=function(){F.postMessage(null)}}else Q=function(){i($,0)};Mb.unstable_IdlePriority=5,Mb.unstable_ImmediatePriority=1,Mb.unstable_LowPriority=4,Mb.unstable_NormalPriority=3,Mb.unstable_Profiling=null,Mb.unstable_UserBlockingPriority=2,Mb.unstable_cancelCallback=function(L){L.callback=null},Mb.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):t=0<L?Math.floor(1000/L):5},Mb.unstable_getCurrentPriorityLevel=function(){return w},Mb.unstable_next=function(L){switch(w){case 1:case 2:case 3:var H=3;break;default:H=w}var v=w;w=H;try{return L()}finally{w=v}},Mb.unstable_requestPaint=function(){l=!0},Mb.unstable_runWithPriority=function(L,H){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var v=w;w=L;try{return H()}finally{w=v}},Mb.unstable_scheduleCallback=function(L,H,v){var q=Mb.unstable_now();switch(typeof v==="object"&&v!==null?(v=v.delay,v=typeof v==="number"&&0<v?q+v:q):v=q,L){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5000}return P=v+P,L={id:B++,callback:H,priorityLevel:L,startTime:v,expirationTime:P,sortIndex:-1},v>q?(L.sortIndex=v,I(N,L),G(S)===null&&L===G(N)&&(b?($0(K0),K0=-1):b=!0,R(Y,v-q))):(L.sortIndex=P,I(S,L),g||y||(g=!0,G0||(G0=!0,Q()))),L},Mb.unstable_shouldYield=W,Mb.unstable_wrapCallback=function(L){var H=w;return function(){var v=w;w=H;try{return L.apply(this,arguments)}finally{w=v}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Pq=N6((Ab)=>{var ND=J6(yJ());(function(){function $(){}function I(E){return""+E}function G(E,T,S){var N=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{I(N);var B=!1}catch(x){B=!0}return B&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&N[Symbol.toStringTag]||N.constructor.name||"Object"),I(N)),{$$typeof:R,key:N==null?null:""+N,children:E,containerInfo:T,implementation:S}}function Z(E,T){if(E==="font")return"";if(typeof T==="string")return T==="use-credentials"?T:""}function _(E){return E===null?"`null`":E===void 0?"`undefined`":E===""?"an empty string":'something with type "'+typeof E+'"'}function J(E){return E===null?"`null`":E===void 0?"`undefined`":E===""?"an empty string":typeof E==="string"?JSON.stringify(E):typeof E==="number"?"`"+E+"`":'something with type "'+typeof E+'"'}function Y(){var E=M.H;return E===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
14
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
15
|
-
2. You might be breaking the Rules of Hooks
|
|
16
|
-
3. You might have more than one copy of React in the same app
|
|
17
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),E}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var W={d:{f:$,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:$,C:$,L:$,m:$,X:$,S:$,M:$},p:0,findDOMNode:null},R=Symbol.for("react.portal"),M=ND.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Ab.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,Ab.createPortal=function(E,T){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!T||T.nodeType!==1&&T.nodeType!==9&&T.nodeType!==11)throw Error("Target container is not a DOM element.");return G(E,T,null,S)},Ab.flushSync=function(E){var T=M.T,S=W.p;try{if(M.T=null,W.p=2,E)return E()}finally{M.T=T,W.p=S,W.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},Ab.preconnect=function(E,T){typeof E==="string"&&E?T!=null&&typeof T!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",J(T)):T!=null&&typeof T.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",_(T.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",_(E)),typeof E==="string"&&(T?(T=T.crossOrigin,T=typeof T==="string"?T==="use-credentials"?T:"":void 0):T=null,W.d.C(E,T))},Ab.prefetchDNS=function(E){if(typeof E!=="string"||!E)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",_(E));else if(1<arguments.length){var T=arguments[1];typeof T==="object"&&T.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",J(T)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",J(T))}typeof E==="string"&&W.d.D(E)},Ab.preinit=function(E,T){if(typeof E==="string"&&E?T==null||typeof T!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",J(T)):T.as!=="style"&&T.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',J(T.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",_(E)),typeof E==="string"&&T&&typeof T.as==="string"){var S=T.as,N=Z(S,T.crossOrigin),B=typeof T.integrity==="string"?T.integrity:void 0,x=typeof T.fetchPriority==="string"?T.fetchPriority:void 0;S==="style"?W.d.S(E,typeof T.precedence==="string"?T.precedence:void 0,{crossOrigin:N,integrity:B,fetchPriority:x}):S==="script"&&W.d.X(E,{crossOrigin:N,integrity:B,fetchPriority:x,nonce:typeof T.nonce==="string"?T.nonce:void 0})}},Ab.preinitModule=function(E,T){var S="";if(typeof E==="string"&&E||(S+=" The `href` argument encountered was "+_(E)+"."),T!==void 0&&typeof T!=="object"?S+=" The `options` argument encountered was "+_(T)+".":T&&("as"in T)&&T.as!=="script"&&(S+=" The `as` option encountered was "+J(T.as)+"."),S)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",S);else switch(S=T&&typeof T.as==="string"?T.as:"script",S){case"script":break;default:S=J(S),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',S,E)}if(typeof E==="string")if(typeof T==="object"&&T!==null){if(T.as==null||T.as==="script")S=Z(T.as,T.crossOrigin),W.d.M(E,{crossOrigin:S,integrity:typeof T.integrity==="string"?T.integrity:void 0,nonce:typeof T.nonce==="string"?T.nonce:void 0})}else T==null&&W.d.M(E)},Ab.preload=function(E,T){var S="";if(typeof E==="string"&&E||(S+=" The `href` argument encountered was "+_(E)+"."),T==null||typeof T!=="object"?S+=" The `options` argument encountered was "+_(T)+".":typeof T.as==="string"&&T.as||(S+=" The `as` option encountered was "+_(T.as)+"."),S&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',S),typeof E==="string"&&typeof T==="object"&&T!==null&&typeof T.as==="string"){S=T.as;var N=Z(S,T.crossOrigin);W.d.L(E,S,{crossOrigin:N,integrity:typeof T.integrity==="string"?T.integrity:void 0,nonce:typeof T.nonce==="string"?T.nonce:void 0,type:typeof T.type==="string"?T.type:void 0,fetchPriority:typeof T.fetchPriority==="string"?T.fetchPriority:void 0,referrerPolicy:typeof T.referrerPolicy==="string"?T.referrerPolicy:void 0,imageSrcSet:typeof T.imageSrcSet==="string"?T.imageSrcSet:void 0,imageSizes:typeof T.imageSizes==="string"?T.imageSizes:void 0,media:typeof T.media==="string"?T.media:void 0})}},Ab.preloadModule=function(E,T){var S="";typeof E==="string"&&E||(S+=" The `href` argument encountered was "+_(E)+"."),T!==void 0&&typeof T!=="object"?S+=" The `options` argument encountered was "+_(T)+".":T&&("as"in T)&&typeof T.as!=="string"&&(S+=" The `as` option encountered was "+_(T.as)+"."),S&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',S),typeof E==="string"&&(T?(S=Z(T.as,T.crossOrigin),W.d.m(E,{as:typeof T.as==="string"&&T.as!=="script"?T.as:void 0,crossOrigin:S,integrity:typeof T.integrity==="string"?T.integrity:void 0})):W.d.m(E))},Ab.requestFormReset=function(E){W.d.r(E)},Ab.unstable_batchedUpdates=function(E,T){return E(T)},Ab.useFormState=function(E,T,S){return Y().useFormState(E,T,S)},Ab.useFormStatus=function(){return Y().useHostTransitionStatus()},Ab.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Sq=N6((I00,Vq)=>{var Eb=J6(Pq());Vq.exports=Eb});var vq=N6((Rb)=>{var X1=J6(Rq()),XG=J6(yJ()),BD=J6(Sq());(function(){function $(U,X){for(U=U.memoizedState;U!==null&&0<X;)U=U.next,X--;return U}function I(U,X,z,D){if(z>=X.length)return D;var V=X[z],C=DU(U)?U.slice():i$({},U);return C[V]=I(U[V],X,z+1,D),C}function G(U,X,z){if(X.length!==z.length)console.warn("copyWithRename() expects paths of the same length");else{for(var D=0;D<z.length-1;D++)if(X[D]!==z[D]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return Z(U,X,z,0)}}function Z(U,X,z,D){var V=X[D],C=DU(U)?U.slice():i$({},U);return D+1===X.length?(C[z[D]]=C[V],DU(C)?C.splice(V,1):delete C[V]):C[V]=Z(U[V],X,z,D+1),C}function _(U,X,z){var D=X[z],V=DU(U)?U.slice():i$({},U);if(z+1===X.length)return DU(V)?V.splice(D,1):delete V[D],V;return V[D]=_(U[D],X,z+1),V}function J(){return!1}function Y(){return null}function W(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function R(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function M(){}function E(){}function T(U){var X=[];return U.forEach(function(z){X.push(z)}),X.sort().join(", ")}function S(U,X,z,D){return new ew(U,X,z,D)}function N(U,X){U.context===X2&&(o9(U.current,2,X,U,null,null),WX())}function B(U,X){if(p6!==null){var z=X.staleFamilies;X=X.updatedFamilies,jY(),VR(U.current,X,z),WX()}}function x(U){p6=U}function w(U){return!(!U||U.nodeType!==1&&U.nodeType!==9&&U.nodeType!==11)}function y(U){var X=U,z=U;if(U.alternate)for(;X.return;)X=X.return;else{U=X;do X=U,(X.flags&4098)!==0&&(z=X.return),U=X.return;while(U)}return X.tag===3?z:null}function g(U){if(U.tag===13){var X=U.memoizedState;if(X===null&&(U=U.alternate,U!==null&&(X=U.memoizedState)),X!==null)return X.dehydrated}return null}function b(U){if(U.tag===31){var X=U.memoizedState;if(X===null&&(U=U.alternate,U!==null&&(X=U.memoizedState)),X!==null)return X.dehydrated}return null}function l(U){if(y(U)!==U)throw Error("Unable to find node on an unmounted component.")}function i(U){var X=U.alternate;if(!X){if(X=y(U),X===null)throw Error("Unable to find node on an unmounted component.");return X!==U?null:U}for(var z=U,D=X;;){var V=z.return;if(V===null)break;var C=V.alternate;if(C===null){if(D=V.return,D!==null){z=D;continue}break}if(V.child===C.child){for(C=V.child;C;){if(C===z)return l(V),U;if(C===D)return l(V),X;C=C.sibling}throw Error("Unable to find node on an unmounted component.")}if(z.return!==D.return)z=V,D=C;else{for(var f=!1,n=V.child;n;){if(n===z){f=!0,z=V,D=C;break}if(n===D){f=!0,D=V,z=C;break}n=n.sibling}if(!f){for(n=C.child;n;){if(n===z){f=!0,z=C,D=V;break}if(n===D){f=!0,D=C,z=V;break}n=n.sibling}if(!f)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(z.alternate!==D)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(z.tag!==3)throw Error("Unable to find node on an unmounted component.");return z.stateNode.current===z?U:X}function $0(U){var X=U.tag;if(X===5||X===26||X===27||X===6)return U;for(U=U.child;U!==null;){if(X=$0(U),X!==null)return X;U=U.sibling}return null}function Q0(U){if(U===null||typeof U!=="object")return null;return U=jS&&U[jS]||U["@@iterator"],typeof U==="function"?U:null}function G0(U){if(U==null)return null;if(typeof U==="function")return U.$$typeof===Af?null:U.displayName||U.name||null;if(typeof U==="string")return U;switch(U){case RX:return"Fragment";case $K:return"Profiler";case W8:return"StrictMode";case IK:return"Suspense";case _K:return"SuspenseList";case XK:return"Activity"}if(typeof U==="object")switch(typeof U.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),U.$$typeof){case EX:return"Portal";case fI:return U.displayName||"Context";case UK:return(U._context.displayName||"Context")+".Consumer";case nY:var X=U.render;return U=U.displayName,U||(U=X.displayName||X.name||"",U=U!==""?"ForwardRef("+U+")":"ForwardRef"),U;case H8:return X=U.displayName||null,X!==null?X:G0(U.type)||"Memo";case E6:X=U._payload,U=U._init;try{return G0(U(X))}catch(z){}}return null}function K0(U){return typeof U.tag==="number"?t(U):typeof U.name==="string"?U.name:null}function t(U){var X=U.type;switch(U.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(X._context.displayName||"Context")+".Consumer";case 10:return X.displayName||"Context";case 18:return"DehydratedFragment";case 11:return U=X.render,U=U.displayName||U.name||"",X.displayName||(U!==""?"ForwardRef("+U+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return X;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return G0(X);case 8:return X===W8?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof X==="function")return X.displayName||X.name||null;if(typeof X==="string")return X;break;case 29:if(X=U._debugInfo,X!=null){for(var z=X.length-1;0<=z;z--)if(typeof X[z].name==="string")return X[z].name}if(U.return!==null)return t(U.return)}return null}function P0(U){return{current:U}}function Q(U,X){0>K_?console.error("Unexpected pop."):(X!==YK[K_]&&console.error("Unexpected Fiber popped."),U.current=GK[K_],GK[K_]=null,YK[K_]=null,K_--)}function K(U,X,z){K_++,GK[K_]=U.current,YK[K_]=z,U.current=X}function F(U){return U===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),U}function L(U,X){K(s_,X,U),K(pY,U,U),K(a_,null,U);var z=X.nodeType;switch(z){case 9:case 11:z=z===9?"#document":"#fragment",X=(X=X.documentElement)?(X=X.namespaceURI)?US(X):C_:C_;break;default:if(z=X.tagName,X=X.namespaceURI)X=US(X),X=IS(X,z);else switch(z){case"svg":X=IG;break;case"math":X=DZ;break;default:X=C_}}z=z.toLowerCase(),z=tE(null,z),z={context:X,ancestorInfo:z},Q(a_,U),K(a_,z,U)}function H(U){Q(a_,U),Q(pY,U),Q(s_,U)}function v(){return F(a_.current)}function q(U){U.memoizedState!==null&&K(F8,U,U);var X=F(a_.current),z=U.type,D=IS(X.context,z);z=tE(X.ancestorInfo,z),D={context:D,ancestorInfo:z},X!==D&&(K(pY,U,U),K(a_,D,U))}function P(U){pY.current===U&&(Q(a_,U),Q(pY,U)),F8.current===U&&(Q(F8,U),gJ._currentValue=v4)}function O(){}function A(){if(cY===0){kS=console.log,gS=console.info,wS=console.warn,xS=console.error,fS=console.group,yS=console.groupCollapsed,bS=console.groupEnd;var U={configurable:!0,enumerable:!0,value:O,writable:!0};Object.defineProperties(console,{info:U,log:U,warn:U,error:U,group:U,groupCollapsed:U,groupEnd:U})}cY++}function k(){if(cY--,cY===0){var U={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:i$({},U,{value:kS}),info:i$({},U,{value:gS}),warn:i$({},U,{value:wS}),error:i$({},U,{value:xS}),group:i$({},U,{value:fS}),groupCollapsed:i$({},U,{value:yS}),groupEnd:i$({},U,{value:bS})})}0>cY&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function j(U){var X=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,U=U.stack,Error.prepareStackTrace=X,U.startsWith(`Error: react-stack-top-frame
|
|
18
|
-
`)&&(U=U.slice(29)),X=U.indexOf(`
|
|
19
|
-
`),X!==-1&&(U=U.slice(X+1)),X=U.indexOf("react_stack_bottom_frame"),X!==-1&&(X=U.lastIndexOf(`
|
|
20
|
-
`,X)),X!==-1)U=U.slice(0,X);else return"";return U}function h(U){if(JK===void 0)try{throw Error()}catch(z){var X=z.stack.trim().match(/\n( *(at )?)/);JK=X&&X[1]||"",hS=-1<z.stack.indexOf(`
|
|
21
|
-
at`)?" (<anonymous>)":-1<z.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
22
|
-
`+JK+U+hS}function a(U,X){if(!U||QK)return"";var z=zK.get(U);if(z!==void 0)return z;QK=!0,z=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var D=null;D=e0.H,e0.H=null,A();try{var V={DetermineComponentFrameRoot:function(){try{if(X){var g0=function(){throw Error()};if(Object.defineProperty(g0.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(g0,[])}catch(F$){var o0=F$}Reflect.construct(U,[],g0)}else{try{g0.call()}catch(F$){o0=F$}U.call(g0.prototype)}}else{try{throw Error()}catch(F$){o0=F$}(g0=U())&&typeof g0.catch==="function"&&g0.catch(function(){})}}catch(F$){if(F$&&o0&&typeof F$.stack==="string")return[F$.stack,o0.stack]}return[null,null]}};V.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var C=Object.getOwnPropertyDescriptor(V.DetermineComponentFrameRoot,"name");C&&C.configurable&&Object.defineProperty(V.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=V.DetermineComponentFrameRoot(),n=f[0],U0=f[1];if(n&&U0){var Z0=n.split(`
|
|
23
|
-
`),h0=U0.split(`
|
|
24
|
-
`);for(f=C=0;C<Z0.length&&!Z0[C].includes("DetermineComponentFrameRoot");)C++;for(;f<h0.length&&!h0[f].includes("DetermineComponentFrameRoot");)f++;if(C===Z0.length||f===h0.length)for(C=Z0.length-1,f=h0.length-1;1<=C&&0<=f&&Z0[C]!==h0[f];)f--;for(;1<=C&&0<=f;C--,f--)if(Z0[C]!==h0[f]){if(C!==1||f!==1)do if(C--,f--,0>f||Z0[C]!==h0[f]){var u0=`
|
|
25
|
-
`+Z0[C].replace(" at new "," at ");return U.displayName&&u0.includes("<anonymous>")&&(u0=u0.replace("<anonymous>",U.displayName)),typeof U==="function"&&zK.set(U,u0),u0}while(1<=C&&0<=f);break}}}finally{QK=!1,e0.H=D,k(),Error.prepareStackTrace=z}return Z0=(Z0=U?U.displayName||U.name:"")?h(Z0):"",typeof U==="function"&&zK.set(U,Z0),Z0}function J0(U,X){switch(U.tag){case 26:case 27:case 5:return h(U.type);case 16:return h("Lazy");case 13:return U.child!==X&&X!==null?h("Suspense Fallback"):h("Suspense");case 19:return h("SuspenseList");case 0:case 15:return a(U.type,!1);case 11:return a(U.type.render,!1);case 1:return a(U.type,!0);case 31:return h("Activity");default:return""}}function D0(U){try{var X="",z=null;do{X+=J0(U,z);var D=U._debugInfo;if(D)for(var V=D.length-1;0<=V;V--){var C=D[V];if(typeof C.name==="string"){var f=X;$:{var{name:n,env:U0,debugLocation:Z0}=C;if(Z0!=null){var h0=j(Z0),u0=h0.lastIndexOf(`
|
|
26
|
-
`),g0=u0===-1?h0:h0.slice(u0+1);if(g0.indexOf(n)!==-1){var o0=`
|
|
27
|
-
`+g0;break $}}o0=h(n+(U0?" ["+U0+"]":""))}X=f+o0}}z=U,U=U.return}while(U);return X}catch(F$){return`
|
|
28
|
-
Error generating stack: `+F$.message+`
|
|
29
|
-
`+F$.stack}}function O0(U){return(U=U?U.displayName||U.name:"")?h(U):""}function d(){if(R6===null)return null;var U=R6._debugOwner;return U!=null?K0(U):null}function m(){if(R6===null)return"";var U=R6;try{var X="";switch(U.tag===6&&(U=U.return),U.tag){case 26:case 27:case 5:X+=h(U.type);break;case 13:X+=h("Suspense");break;case 19:X+=h("SuspenseList");break;case 31:X+=h("Activity");break;case 30:case 0:case 15:case 1:U._debugOwner||X!==""||(X+=O0(U.type));break;case 11:U._debugOwner||X!==""||(X+=O0(U.type.render))}for(;U;)if(typeof U.tag==="number"){var z=U;U=z._debugOwner;var D=z._debugStack;if(U&&D){var V=j(D);V!==""&&(X+=`
|
|
30
|
-
`+V)}}else if(U.debugStack!=null){var C=U.debugStack;(U=U.owner)&&C&&(X+=`
|
|
31
|
-
`+j(C))}else break;var f=X}catch(n){f=`
|
|
32
|
-
Error generating stack: `+n.message+`
|
|
33
|
-
`+n.stack}return f}function r(U,X,z,D,V,C,f){var n=R6;Y0(U);try{return U!==null&&U._debugTask?U._debugTask.run(X.bind(null,z,D,V,C,f)):X(z,D,V,C,f)}finally{Y0(n)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Y0(U){e0.getCurrentStack=U===null?null:m,yI=!1,R6=U}function W0(U){return typeof Symbol==="function"&&Symbol.toStringTag&&U[Symbol.toStringTag]||U.constructor.name||"Object"}function I0(U){try{return c(U),!1}catch(X){return!0}}function c(U){return""+U}function s(U,X){if(I0(U))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",X,W0(U)),c(U)}function S0(U,X){if(I0(U))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",X,W0(U)),c(U)}function M0(U){if(I0(U))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",W0(U)),c(U)}function z0(U){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var X=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(X.isDisabled)return!0;if(!X.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{VX=X.inject(U),xU=X}catch(z){console.error("React instrumentation encountered an error: %o.",z)}return X.checkDCE?!0:!1}function c0(U){if(typeof Cf==="function"&&qf(U),xU&&typeof xU.setStrictMode==="function")try{xU.setStrictMode(VX,U)}catch(X){bI||(bI=!0,console.error("React instrumentation encountered an error: %o",X))}}function F0(U){return U>>>=0,U===0?32:31-(Nf(U)/Bf|0)|0}function q0(U){var X=U&42;if(X!==0)return X;switch(U&-U){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return U&261888;case 262144:case 524288:case 1048576:case 2097152:return U&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return U&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),U}}function s0(U,X,z){var D=U.pendingLanes;if(D===0)return 0;var V=0,C=U.suspendedLanes,f=U.pingedLanes;U=U.warmLanes;var n=D&134217727;return n!==0?(D=n&~C,D!==0?V=q0(D):(f&=n,f!==0?V=q0(f):z||(z=n&~U,z!==0&&(V=q0(z))))):(n=D&~C,n!==0?V=q0(n):f!==0?V=q0(f):z||(z=D&~U,z!==0&&(V=q0(z)))),V===0?0:X!==0&&X!==V&&(X&C)===0&&(C=V&-V,z=X&-X,C>=z||C===32&&(z&4194048)!==0)?X:V}function k0(U,X){return(U.pendingLanes&~(U.suspendedLanes&~U.pingedLanes)&X)===0}function n0(U,X){switch(U){case 1:case 2:case 4:case 8:case 64:return X+250;case 16:case 32: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 X+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function M$(){var U=A8;return A8<<=1,(A8&62914560)===0&&(A8=4194304),U}function T0(U){for(var X=[],z=0;31>z;z++)X.push(U);return X}function V0(U,X){U.pendingLanes|=X,X!==268435456&&(U.suspendedLanes=0,U.pingedLanes=0,U.warmLanes=0)}function X$(U,X,z,D,V,C){var f=U.pendingLanes;U.pendingLanes=z,U.suspendedLanes=0,U.pingedLanes=0,U.warmLanes=0,U.expiredLanes&=z,U.entangledLanes&=z,U.errorRecoveryDisabledLanes&=z,U.shellSuspendCounter=0;var{entanglements:n,expirationTimes:U0,hiddenUpdates:Z0}=U;for(z=f&~z;0<z;){var h0=31-hU(z),u0=1<<h0;n[h0]=0,U0[h0]=-1;var g0=Z0[h0];if(g0!==null)for(Z0[h0]=null,h0=0;h0<g0.length;h0++){var o0=g0[h0];o0!==null&&(o0.lane&=-536870913)}z&=~u0}D!==0&&p0(U,D,0),C!==0&&V===0&&U.tag!==0&&(U.suspendedLanes|=C&~(f&~X))}function p0(U,X,z){U.pendingLanes|=X,U.suspendedLanes&=~X;var D=31-hU(X);U.entangledLanes|=X,U.entanglements[D]=U.entanglements[D]|1073741824|z&261930}function l0(U,X){var z=U.entangledLanes|=X;for(U=U.entanglements;z;){var D=31-hU(z),V=1<<D;V&X|U[D]&X&&(U[D]|=X),z&=~V}}function L0(U,X){var z=X&-X;return z=(z&42)!==0?1:N0(z),(z&(U.suspendedLanes|X))!==0?0:z}function N0(U){switch(U){case 2:U=1;break;case 8:U=4;break;case 32:U=16;break;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:U=128;break;case 268435456:U=134217728;break;default:U=0}return U}function B0(U,X,z){if(hI)for(U=U.pendingUpdatersLaneMap;0<z;){var D=31-hU(z),V=1<<D;U[D].add(X),z&=~V}}function Y$(U,X){if(hI)for(var{pendingUpdatersLaneMap:z,memoizedUpdaters:D}=U;0<X;){var V=31-hU(X);U=1<<V,V=z[V],0<V.size&&(V.forEach(function(C){var f=C.alternate;f!==null&&D.has(f)||D.add(C)}),V.clear()),X&=~U}}function u(U){return U&=-U,P6!==0&&P6<U?QI!==0&&QI<U?(U&134217727)!==0?uI:E8:QI:P6}function _0(){var U=Q1.p;if(U!==0)return U;return U=window.event,U===void 0?uI:VS(U.type)}function o(U,X){var z=Q1.p;try{return Q1.p=U,X()}finally{Q1.p=z}}function R0(U){delete U[NU],delete U[uU],delete U[DK],delete U[jf],delete U[kf]}function x0(U){var X=U[NU];if(X)return X;for(var z=U.parentNode;z;){if(X=z[$2]||z[NU]){if(z=X.alternate,X.child!==null||z!==null&&z.child!==null)for(U=ZS(U);U!==null;){if(z=U[NU])return z;U=ZS(U)}return X}U=z,z=U.parentNode}return null}function p(U){if(U=U[NU]||U[$2]){var X=U.tag;if(X===5||X===6||X===13||X===31||X===26||X===27||X===3)return U}return null}function A0(U){var X=U.tag;if(X===5||X===26||X===27||X===6)return U.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function v0(U){var X=U[uS];return X||(X=U[uS]={hoistableStyles:new Map,hoistableScripts:new Map}),X}function X0(U){U[lY]=!0}function H0(U,X){C0(U,X),C0(U+"Capture",X)}function C0(U,X){X4[U]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",U),X4[U]=X;var z=U.toLowerCase();WK[z]=U,U==="onDoubleClick"&&(WK.ondblclick=U);for(U=0;U<X.length;U++)nS.add(X[U])}function H$(U,X){gf[X.type]||X.onChange||X.onInput||X.readOnly||X.disabled||X.value==null||(U==="select"?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),X.onChange||X.readOnly||X.disabled||X.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function d0(U){if(JI.call(cS,U))return!0;if(JI.call(pS,U))return!1;if(wf.test(U))return cS[U]=!0;return pS[U]=!0,console.error("Invalid attribute name: `%s`",U),!1}function e(U,X,z){if(d0(X)){if(!U.hasAttribute(X)){switch(typeof z){case"symbol":case"object":return z;case"function":return z;case"boolean":if(z===!1)return z}return z===void 0?void 0:null}if(U=U.getAttribute(X),U===""&&z===!0)return!0;return s(z,X),U===""+z?z:U}}function E0(U,X,z){if(d0(X))if(z===null)U.removeAttribute(X);else{switch(typeof z){case"undefined":case"function":case"symbol":U.removeAttribute(X);return;case"boolean":var D=X.toLowerCase().slice(0,5);if(D!=="data-"&&D!=="aria-"){U.removeAttribute(X);return}}s(z,X),U.setAttribute(X,""+z)}}function b0(U,X,z){if(z===null)U.removeAttribute(X);else{switch(typeof z){case"undefined":case"function":case"symbol":case"boolean":U.removeAttribute(X);return}s(z,X),U.setAttribute(X,""+z)}}function f0(U,X,z,D){if(D===null)U.removeAttribute(z);else{switch(typeof D){case"undefined":case"function":case"symbol":case"boolean":U.removeAttribute(z);return}s(D,z),U.setAttributeNS(X,z,""+D)}}function z$(U){switch(typeof U){case"bigint":case"boolean":case"number":case"string":case"undefined":return U;case"object":return M0(U),U;default:return""}}function a0(U){var X=U.type;return(U=U.nodeName)&&U.toLowerCase()==="input"&&(X==="checkbox"||X==="radio")}function U$(U,X,z){var D=Object.getOwnPropertyDescriptor(U.constructor.prototype,X);if(!U.hasOwnProperty(X)&&typeof D<"u"&&typeof D.get==="function"&&typeof D.set==="function"){var{get:V,set:C}=D;return Object.defineProperty(U,X,{configurable:!0,get:function(){return V.call(this)},set:function(f){M0(f),z=""+f,C.call(this,f)}}),Object.defineProperty(U,X,{enumerable:D.enumerable}),{getValue:function(){return z},setValue:function(f){M0(f),z=""+f},stopTracking:function(){U._valueTracker=null,delete U[X]}}}}function c$(U){if(!U._valueTracker){var X=a0(U)?"checked":"value";U._valueTracker=U$(U,X,""+U[X])}}function K$(U){if(!U)return!1;var X=U._valueTracker;if(!X)return!0;var z=X.getValue(),D="";return U&&(D=a0(U)?U.checked?"true":"false":U.value),U=D,U!==z?(X.setValue(U),!0):!1}function L$(U){if(U=U||(typeof document<"u"?document:void 0),typeof U>"u")return null;try{return U.activeElement||U.body}catch(X){return U.body}}function B$(U){return U.replace(xf,function(X){return"\\"+X.charCodeAt(0).toString(16)+" "})}function Z$(U,X){X.checked===void 0||X.defaultChecked===void 0||mS||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",d()||"A component",X.type),mS=!0),X.value===void 0||X.defaultValue===void 0||lS||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",d()||"A component",X.type),lS=!0)}function I$(U,X,z,D,V,C,f,n){if(U.name="",f!=null&&typeof f!=="function"&&typeof f!=="symbol"&&typeof f!=="boolean"?(s(f,"type"),U.type=f):U.removeAttribute("type"),X!=null)if(f==="number"){if(X===0&&U.value===""||U.value!=X)U.value=""+z$(X)}else U.value!==""+z$(X)&&(U.value=""+z$(X));else f!=="submit"&&f!=="reset"||U.removeAttribute("value");X!=null?C$(U,f,z$(X)):z!=null?C$(U,f,z$(z)):D!=null&&U.removeAttribute("value"),V==null&&C!=null&&(U.defaultChecked=!!C),V!=null&&(U.checked=V&&typeof V!=="function"&&typeof V!=="symbol"),n!=null&&typeof n!=="function"&&typeof n!=="symbol"&&typeof n!=="boolean"?(s(n,"name"),U.name=""+z$(n)):U.removeAttribute("name")}function I1(U,X,z,D,V,C,f,n){if(C!=null&&typeof C!=="function"&&typeof C!=="symbol"&&typeof C!=="boolean"&&(s(C,"type"),U.type=C),X!=null||z!=null){if(!(C!=="submit"&&C!=="reset"||X!==void 0&&X!==null)){c$(U);return}z=z!=null?""+z$(z):"",X=X!=null?""+z$(X):z,n||X===U.value||(U.value=X),U.defaultValue=X}D=D!=null?D:V,D=typeof D!=="function"&&typeof D!=="symbol"&&!!D,U.checked=n?U.checked:!!D,U.defaultChecked=!!D,f!=null&&typeof f!=="function"&&typeof f!=="symbol"&&typeof f!=="boolean"&&(s(f,"name"),U.name=f),c$(U)}function C$(U,X,z){X==="number"&&L$(U.ownerDocument)===U||U.defaultValue===""+z||(U.defaultValue=""+z)}function g$(U,X){X.value==null&&(typeof X.children==="object"&&X.children!==null?XG.Children.forEach(X.children,function(z){z==null||typeof z==="string"||typeof z==="number"||typeof z==="bigint"||iS||(iS=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):X.dangerouslySetInnerHTML==null||oS||(oS=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),X.selected==null||dS||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),dS=!0)}function z1(){var U=d();return U?`
|
|
34
|
-
|
|
35
|
-
Check the render method of \``+U+"`.":""}function U1(U,X,z,D){if(U=U.options,X){X={};for(var V=0;V<z.length;V++)X["$"+z[V]]=!0;for(z=0;z<U.length;z++)V=X.hasOwnProperty("$"+U[z].value),U[z].selected!==V&&(U[z].selected=V),V&&D&&(U[z].defaultSelected=!0)}else{z=""+z$(z),X=null;for(V=0;V<U.length;V++){if(U[V].value===z){U[V].selected=!0,D&&(U[V].defaultSelected=!0);return}X!==null||U[V].disabled||(X=U[V])}X!==null&&(X.selected=!0)}}function o1(U,X){for(U=0;U<rS.length;U++){var z=rS[U];if(X[z]!=null){var D=DU(X[z]);X.multiple&&!D?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",z,z1()):!X.multiple&&D&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",z,z1())}}X.value===void 0||X.defaultValue===void 0||tS||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),tS=!0)}function t1(U,X){X.value===void 0||X.defaultValue===void 0||aS||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",d()||"A component"),aS=!0),X.children!=null&&X.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function r1(U,X,z){if(X!=null&&(X=""+z$(X),X!==U.value&&(U.value=X),z==null)){U.defaultValue!==X&&(U.defaultValue=X);return}U.defaultValue=z!=null?""+z$(z):""}function a1(U,X,z,D){if(X==null){if(D!=null){if(z!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(DU(D)){if(1<D.length)throw Error("<textarea> can only have at most one child.");D=D[0]}z=D}z==null&&(z=""),X=z}z=z$(X),U.defaultValue=z,D=U.textContent,D===z&&D!==""&&D!==null&&(U.value=D),c$(U)}function s1(U,X){return U.serverProps===void 0&&U.serverTail.length===0&&U.children.length===1&&3<U.distanceFromLeaf&&U.distanceFromLeaf>15-X?s1(U.children[0],X):U}function Y1(U){return" "+" ".repeat(U)}function S1(U){return"+ "+" ".repeat(U)}function R1(U){return"- "+" ".repeat(U)}function e1(U){switch(U.tag){case 26:case 27:case 5:return U.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return U=U.type,U.displayName||U.name||null;case 11:return U=U.type.render,U.displayName||U.name||null;case 1:return U=U.type,U.displayName||U.name||null;default:return null}}function B1(U,X){return sS.test(U)?(U=JSON.stringify(U),U.length>X-2?8>X?'{"..."}':"{"+U.slice(0,X-7)+'..."}':"{"+U+"}"):U.length>X?5>X?'{"..."}':U.slice(0,X-3)+"...":U}function f1(U,X,z){var D=120-2*z;if(X===null)return S1(z)+B1(U,D)+`
|
|
36
|
-
`;if(typeof X==="string"){for(var V=0;V<X.length&&V<U.length&&X.charCodeAt(V)===U.charCodeAt(V);V++);return V>D-8&&10<V&&(U="..."+U.slice(V-8),X="..."+X.slice(V-8)),S1(z)+B1(U,D)+`
|
|
37
|
-
`+R1(z)+B1(X,D)+`
|
|
38
|
-
`}return Y1(z)+B1(U,D)+`
|
|
39
|
-
`}function c1(U){return Object.prototype.toString.call(U).replace(/^\[object (.*)\]$/,function(X,z){return z})}function j1(U,X){switch(typeof U){case"string":return U=JSON.stringify(U),U.length>X?5>X?'"..."':U.slice(0,X-4)+'..."':U;case"object":if(U===null)return"null";if(DU(U))return"[...]";if(U.$$typeof===xI)return(X=G0(U.type))?"<"+X+">":"<...>";var z=c1(U);if(z==="Object"){z="",X-=2;for(var D in U)if(U.hasOwnProperty(D)){var V=JSON.stringify(D);if(V!=='"'+D+'"'&&(D=V),X-=D.length-2,V=j1(U[D],15>X?X:15),X-=V.length,0>X){z+=z===""?"...":", ...";break}z+=(z===""?"":",")+D+":"+V}return"{"+z+"}"}return z;case"function":return(X=U.displayName||U.name)?"function "+X:"function";default:return String(U)}}function v1(U,X){return typeof U!=="string"||sS.test(U)?"{"+j1(U,X-2)+"}":U.length>X-2?5>X?'"..."':'"'+U.slice(0,X-5)+'..."':'"'+U+'"'}function c2(U,X,z){var D=120-z.length-U.length,V=[],C;for(C in X)if(X.hasOwnProperty(C)&&C!=="children"){var f=v1(X[C],120-z.length-C.length-1);D-=C.length+f.length+2,V.push(C+"="+f)}return V.length===0?z+"<"+U+`>
|
|
40
|
-
`:0<D?z+"<"+U+" "+V.join(" ")+`>
|
|
41
|
-
`:z+"<"+U+`
|
|
42
|
-
`+z+" "+V.join(`
|
|
43
|
-
`+z+" ")+`
|
|
44
|
-
`+z+`>
|
|
45
|
-
`}function YY(U,X,z){var D="",V=i$({},X),C;for(C in U)if(U.hasOwnProperty(C)){delete V[C];var f=120-2*z-C.length-2,n=j1(U[C],f);X.hasOwnProperty(C)?(f=j1(X[C],f),D+=S1(z)+C+": "+n+`
|
|
46
|
-
`,D+=R1(z)+C+": "+f+`
|
|
47
|
-
`):D+=S1(z)+C+": "+n+`
|
|
48
|
-
`}for(var U0 in V)V.hasOwnProperty(U0)&&(U=j1(V[U0],120-2*z-U0.length-2),D+=R1(z)+U0+": "+U+`
|
|
49
|
-
`);return D}function JY(U,X,z,D){var V="",C=new Map;for(Z0 in z)z.hasOwnProperty(Z0)&&C.set(Z0.toLowerCase(),Z0);if(C.size===1&&C.has("children"))V+=c2(U,X,Y1(D));else{for(var f in X)if(X.hasOwnProperty(f)&&f!=="children"){var n=120-2*(D+1)-f.length-1,U0=C.get(f.toLowerCase());if(U0!==void 0){C.delete(f.toLowerCase());var Z0=X[f];U0=z[U0];var h0=v1(Z0,n);n=v1(U0,n),typeof Z0==="object"&&Z0!==null&&typeof U0==="object"&&U0!==null&&c1(Z0)==="Object"&&c1(U0)==="Object"&&(2<Object.keys(Z0).length||2<Object.keys(U0).length||-1<h0.indexOf("...")||-1<n.indexOf("..."))?V+=Y1(D+1)+f+`={{
|
|
50
|
-
`+YY(Z0,U0,D+2)+Y1(D+1)+`}}
|
|
51
|
-
`:(V+=S1(D+1)+f+"="+h0+`
|
|
52
|
-
`,V+=R1(D+1)+f+"="+n+`
|
|
53
|
-
`)}else V+=Y1(D+1)+f+"="+v1(X[f],n)+`
|
|
54
|
-
`}C.forEach(function(u0){if(u0!=="children"){var g0=120-2*(D+1)-u0.length-1;V+=R1(D+1)+u0+"="+v1(z[u0],g0)+`
|
|
55
|
-
`}}),V=V===""?Y1(D)+"<"+U+`>
|
|
56
|
-
`:Y1(D)+"<"+U+`
|
|
57
|
-
`+V+Y1(D)+`>
|
|
58
|
-
`}if(U=z.children,X=X.children,typeof U==="string"||typeof U==="number"||typeof U==="bigint"){if(C="",typeof X==="string"||typeof X==="number"||typeof X==="bigint")C=""+X;V+=f1(C,""+U,D+1)}else if(typeof X==="string"||typeof X==="number"||typeof X==="bigint")V=U==null?V+f1(""+X,null,D+1):V+f1(""+X,void 0,D+1);return V}function iE(U,X){var z=e1(U);if(z===null){z="";for(U=U.child;U;)z+=iE(U,X),U=U.sibling;return z}return Y1(X)+"<"+z+`>
|
|
59
|
-
`}function $L(U,X){var z=s1(U,X);if(z!==U&&(U.children.length!==1||U.children[0]!==z))return Y1(X)+`...
|
|
60
|
-
`+$L(z,X+1);z="";var D=U.fiber._debugInfo;if(D)for(var V=0;V<D.length;V++){var C=D[V].name;typeof C==="string"&&(z+=Y1(X)+"<"+C+`>
|
|
61
|
-
`,X++)}if(D="",V=U.fiber.pendingProps,U.fiber.tag===6)D=f1(V,U.serverProps,X),X++;else if(C=e1(U.fiber),C!==null)if(U.serverProps===void 0){D=X;var f=120-2*D-C.length-2,n="";for(Z0 in V)if(V.hasOwnProperty(Z0)&&Z0!=="children"){var U0=v1(V[Z0],15);if(f-=Z0.length+U0.length+2,0>f){n+=" ...";break}n+=" "+Z0+"="+U0}D=Y1(D)+"<"+C+n+`>
|
|
62
|
-
`,X++}else U.serverProps===null?(D=c2(C,V,S1(X)),X++):typeof U.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(D=JY(C,V,U.serverProps,X),X++);var Z0="";V=U.fiber.child;for(C=0;V&&C<U.children.length;)f=U.children[C],f.fiber===V?(Z0+=$L(f,X),C++):Z0+=iE(V,X),V=V.sibling;V&&0<U.children.length&&(Z0+=Y1(X)+`...
|
|
63
|
-
`),V=U.serverTail,U.serverProps===null&&X--;for(U=0;U<V.length;U++)C=V[U],Z0=typeof C==="string"?Z0+(R1(X)+B1(C,120-2*X)+`
|
|
64
|
-
`):Z0+c2(C.type,C.props,R1(X));return z+D+Z0}function UL(U){try{return`
|
|
65
|
-
|
|
66
|
-
`+$L(U,0)}catch(X){return""}}function oE(U,X,z){for(var D=X,V=null,C=0;D;)D===U&&(C=0),V={fiber:D,children:V!==null?[V]:[],serverProps:D===X?z:D===U?null:void 0,serverTail:[],distanceFromLeaf:C},C++,D=D.return;return V!==null?UL(V).replaceAll(/^[+-]/gm,">"):""}function tE(U,X){var z=i$({},U||$v),D={tag:X};if(eS.indexOf(X)!==-1&&(z.aTagInScope=null,z.buttonTagInScope=null,z.nobrTagInScope=null),yf.indexOf(X)!==-1&&(z.pTagInButtonScope=null),ff.indexOf(X)!==-1&&X!=="address"&&X!=="div"&&X!=="p"&&(z.listItemTagAutoclosing=null,z.dlItemTagAutoclosing=null),z.current=D,X==="form"&&(z.formTag=D),X==="a"&&(z.aTagInScope=D),X==="button"&&(z.buttonTagInScope=D),X==="nobr"&&(z.nobrTagInScope=D),X==="p"&&(z.pTagInButtonScope=D),X==="li"&&(z.listItemTagAutoclosing=D),X==="dd"||X==="dt")z.dlItemTagAutoclosing=D;return X==="#document"||X==="html"?z.containerTagInScope=null:z.containerTagInScope||(z.containerTagInScope=D),U!==null||X!=="#document"&&X!=="html"&&X!=="body"?z.implicitRootScope===!0&&(z.implicitRootScope=!1):z.implicitRootScope=!0,z}function rE(U,X,z){switch(X){case"select":return U==="hr"||U==="option"||U==="optgroup"||U==="script"||U==="template"||U==="#text";case"optgroup":return U==="option"||U==="#text";case"option":return U==="#text";case"tr":return U==="th"||U==="td"||U==="style"||U==="script"||U==="template";case"tbody":case"thead":case"tfoot":return U==="tr"||U==="style"||U==="script"||U==="template";case"colgroup":return U==="col"||U==="template";case"table":return U==="caption"||U==="colgroup"||U==="tbody"||U==="tfoot"||U==="thead"||U==="style"||U==="script"||U==="template";case"head":return U==="base"||U==="basefont"||U==="bgsound"||U==="link"||U==="meta"||U==="title"||U==="noscript"||U==="noframes"||U==="style"||U==="script"||U==="template";case"html":if(z)break;return U==="head"||U==="body"||U==="frameset";case"frameset":return U==="frame";case"#document":if(!z)return U==="html"}switch(U){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return X!=="h1"&&X!=="h2"&&X!=="h3"&&X!=="h4"&&X!=="h5"&&X!=="h6";case"rp":case"rt":return bf.indexOf(X)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return X==null;case"head":return z||X===null;case"html":return z&&X==="#document"||X===null;case"body":return z&&(X==="#document"||X==="html")||X===null}return!0}function gw(U,X){switch(U){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return X.pTagInButtonScope;case"form":return X.formTag||X.pTagInButtonScope;case"li":return X.listItemTagAutoclosing;case"dd":case"dt":return X.dlItemTagAutoclosing;case"button":return X.buttonTagInScope;case"a":return X.aTagInScope;case"nobr":return X.nobrTagInScope}return null}function aE(U,X){for(;U;){switch(U.tag){case 5:case 26:case 27:if(U.type===X)return U}U=U.return}return null}function IL(U,X){X=X||$v;var z=X.current;if(X=(z=rE(U,z&&z.tag,X.implicitRootScope)?null:z)?null:gw(U,X),X=z||X,!X)return!0;var D=X.tag;if(X=String(!!z)+"|"+U+"|"+D,R8[X])return!1;R8[X]=!0;var V=(X=R6)?aE(X.return,D):null,C=X!==null&&V!==null?oE(V,X,null):"",f="<"+U+">";return z?(z="",D==="table"&&U==="tr"&&(z+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
|
|
67
|
-
This will cause a hydration error.%s`,f,D,z,C)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
68
|
-
This will cause a hydration error.%s`,f,D,C),X&&(U=X.return,V===null||U===null||V===U&&U._debugOwner===X._debugOwner||r(V,function(){console.error(`<%s> cannot contain a nested %s.
|
|
69
|
-
See this log for the ancestor stack trace.`,D,f)})),!1}function Oz(U,X,z){if(z||rE("#text",X,!1))return!0;if(z="#text|"+X,R8[z])return!1;R8[z]=!0;var D=(z=R6)?aE(z,X):null;return z=z!==null&&D!==null?oE(D,z,z.tag!==6?{children:null}:null):"",/\S/.test(U)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
70
|
-
This will cause a hydration error.%s`,X,z):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
|
71
|
-
This will cause a hydration error.%s`,X,z),!1}function QY(U,X){if(X){var z=U.firstChild;if(z&&z===U.lastChild&&z.nodeType===3){z.nodeValue=X;return}}U.textContent=X}function ww(U){return U.replace(nf,function(X,z){return z.toUpperCase()})}function sE(U,X,z){var D=X.indexOf("--")===0;D||(-1<X.indexOf("-")?SX.hasOwnProperty(X)&&SX[X]||(SX[X]=!0,console.error("Unsupported style property %s. Did you mean %s?",X,ww(X.replace(uf,"ms-")))):hf.test(X)?SX.hasOwnProperty(X)&&SX[X]||(SX[X]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",X,X.charAt(0).toUpperCase()+X.slice(1))):!_v.test(z)||FK.hasOwnProperty(z)&&FK[z]||(FK[z]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,X,z.replace(_v,""))),typeof z==="number"&&(isNaN(z)?Xv||(Xv=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",X)):isFinite(z)||Gv||(Gv=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",X)))),z==null||typeof z==="boolean"||z===""?D?U.setProperty(X,""):X==="float"?U.cssFloat="":U[X]="":D?U.setProperty(X,z):typeof z!=="number"||z===0||Yv.has(X)?X==="float"?U.cssFloat=z:(S0(z,X),U[X]=(""+z).trim()):U[X]=z+"px"}function eE(U,X,z){if(X!=null&&typeof X!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(X&&Object.freeze(X),U=U.style,z!=null){if(X){var D={};if(z){for(var V in z)if(z.hasOwnProperty(V)&&!X.hasOwnProperty(V))for(var C=HK[V]||[V],f=0;f<C.length;f++)D[C[f]]=V}for(var n in X)if(X.hasOwnProperty(n)&&(!z||z[n]!==X[n]))for(V=HK[n]||[n],C=0;C<V.length;C++)D[V[C]]=n;n={};for(var U0 in X)for(V=HK[U0]||[U0],C=0;C<V.length;C++)n[V[C]]=U0;U0={};for(var Z0 in D)if(V=D[Z0],(C=n[Z0])&&V!==C&&(f=V+","+C,!U0[f])){U0[f]=!0,f=console;var h0=X[V];f.error.call(f,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",h0==null||typeof h0==="boolean"||h0===""?"Removing":"Updating",V,C)}}for(var u0 in z)!z.hasOwnProperty(u0)||X!=null&&X.hasOwnProperty(u0)||(u0.indexOf("--")===0?U.setProperty(u0,""):u0==="float"?U.cssFloat="":U[u0]="");for(var g0 in X)Z0=X[g0],X.hasOwnProperty(g0)&&z[g0]!==Z0&&sE(U,g0,Z0)}else for(D in X)X.hasOwnProperty(D)&&sE(U,D,X[D])}function zY(U){if(U.indexOf("-")===-1)return!1;switch(U){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function $R(U){return pf.get(U)||U}function xw(U,X){if(JI.call(CX,X)&&CX[X])return!0;if(lf.test(X)){if(U="aria-"+X.slice(4).toLowerCase(),U=Jv.hasOwnProperty(U)?U:null,U==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",X),CX[X]=!0;if(X!==U)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",X,U),CX[X]=!0}if(cf.test(X)){if(U=X.toLowerCase(),U=Jv.hasOwnProperty(U)?U:null,U==null)return CX[X]=!0,!1;X!==U&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",X,U),CX[X]=!0)}return!0}function fw(U,X){var z=[],D;for(D in X)xw(U,D)||z.push(D);X=z.map(function(V){return"`"+V+"`"}).join(", "),z.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",X,U):1<z.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",X,U)}function yw(U,X,z,D){if(JI.call(nU,X)&&nU[X])return!0;var V=X.toLowerCase();if(V==="onfocusin"||V==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),nU[X]=!0;if(typeof z==="function"&&(U==="form"&&X==="action"||U==="input"&&X==="formAction"||U==="button"&&X==="formAction"))return!0;if(D!=null){if(U=D.possibleRegistrationNames,D.registrationNameDependencies.hasOwnProperty(X))return!0;if(D=U.hasOwnProperty(V)?U[V]:null,D!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",X,D),nU[X]=!0;if(zv.test(X))return console.error("Unknown event handler property `%s`. It will be ignored.",X),nU[X]=!0}else if(zv.test(X))return mf.test(X)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",X),nU[X]=!0;if(df.test(X)||of.test(X))return!0;if(V==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),nU[X]=!0;if(V==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),nU[X]=!0;if(V==="is"&&z!==null&&z!==void 0&&typeof z!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof z),nU[X]=!0;if(typeof z==="number"&&isNaN(z))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",X),nU[X]=!0;if(V8.hasOwnProperty(V)){if(V=V8[V],V!==X)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",X,V),nU[X]=!0}else if(X!==V)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",X,V),nU[X]=!0;switch(X){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof z){case"boolean":switch(X){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:if(V=X.toLowerCase().slice(0,5),V==="data-"||V==="aria-")return!0;return z?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',z,X,X,z,X):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',z,X,X,z,X,X,X),nU[X]=!0}case"function":case"symbol":return nU[X]=!0,!1;case"string":if(z==="false"||z==="true"){switch(X){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",z,X,z==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',X,z),nU[X]=!0}}return!0}function bw(U,X,z){var D=[],V;for(V in X)yw(U,V,X[V],z)||D.push(V);X=D.map(function(C){return"`"+C+"`"}).join(", "),D.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",X,U):1<D.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",X,U)}function ZY(U){return tf.test(""+U)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":U}function G_(){}function _L(U){return U=U.target||U.srcElement||window,U.correspondingUseElement&&(U=U.correspondingUseElement),U.nodeType===3?U.parentNode:U}function UR(U){var X=p(U);if(X&&(U=X.stateNode)){var z=U[uU]||null;$:switch(U=X.stateNode,X.type){case"input":if(I$(U,z.value,z.defaultValue,z.defaultValue,z.checked,z.defaultChecked,z.type,z.name),X=z.name,z.type==="radio"&&X!=null){for(z=U;z.parentNode;)z=z.parentNode;s(X,"name"),z=z.querySelectorAll('input[name="'+B$(""+X)+'"][type="radio"]');for(X=0;X<z.length;X++){var D=z[X];if(D!==U&&D.form===U.form){var V=D[uU]||null;if(!V)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");I$(D,V.value,V.defaultValue,V.defaultValue,V.checked,V.defaultChecked,V.type,V.name)}}for(X=0;X<z.length;X++)D=z[X],D.form===U.form&&K$(D)}break $;case"textarea":r1(U,z.value,z.defaultValue);break $;case"select":X=z.value,X!=null&&U1(U,!!z.multiple,X,!1)}}}function IR(U,X,z){if(TK)return U(X,z);TK=!0;try{var D=U(X);return D}finally{if(TK=!1,qX!==null||NX!==null){if(WX(),qX&&(X=qX,U=NX,NX=qX=null,UR(X),U))for(X=0;X<U.length;X++)UR(U[X])}}}function OY(U,X){var z=U.stateNode;if(z===null)return null;var D=z[uU]||null;if(D===null)return null;z=D[X];$:switch(X){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(D=!D.disabled)||(U=U.type,D=!(U==="button"||U==="input"||U==="select"||U==="textarea")),U=!D;break $;default:U=!1}if(U)return null;if(z&&typeof z!=="function")throw Error("Expected `"+X+"` listener to be a function, instead got a value of `"+typeof z+"` type.");return z}function _R(){if(S8)return S8;var U,X=AK,z=X.length,D,V="value"in U2?U2.value:U2.textContent,C=V.length;for(U=0;U<z&&X[U]===V[U];U++);var f=z-U;for(D=1;D<=f&&X[z-D]===V[C-D];D++);return S8=V.slice(U,1<D?1-D:void 0)}function Lz(U){var X=U.keyCode;return"charCode"in U?(U=U.charCode,U===0&&X===13&&(U=13)):U=X,U===10&&(U=13),32<=U||U===13?U:0}function Kz(){return!0}function XR(){return!1}function $6(U){function X(z,D,V,C,f){this._reactName=z,this._targetInst=V,this.type=D,this.nativeEvent=C,this.target=f,this.currentTarget=null;for(var n in U)U.hasOwnProperty(n)&&(z=U[n],this[n]=z?z(C):C[n]);return this.isDefaultPrevented=(C.defaultPrevented!=null?C.defaultPrevented:C.returnValue===!1)?Kz:XR,this.isPropagationStopped=XR,this}return i$(X.prototype,{preventDefault:function(){this.defaultPrevented=!0;var z=this.nativeEvent;z&&(z.preventDefault?z.preventDefault():typeof z.returnValue!=="unknown"&&(z.returnValue=!1),this.isDefaultPrevented=Kz)},stopPropagation:function(){var z=this.nativeEvent;z&&(z.stopPropagation?z.stopPropagation():typeof z.cancelBubble!=="unknown"&&(z.cancelBubble=!0),this.isPropagationStopped=Kz)},persist:function(){},isPersistent:Kz}),X}function hw(U){var X=this.nativeEvent;return X.getModifierState?X.getModifierState(U):(U=Qy[U])?!!X[U]:!1}function XL(){return hw}function GR(U,X){switch(U){case"keyup":return Ay.indexOf(X.keyCode)!==-1;case"keydown":return X.keyCode!==Kv;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function YR(U){return U=U.detail,typeof U==="object"&&"data"in U?U.data:null}function uw(U,X){switch(U){case"compositionend":return YR(X);case"keypress":if(X.which!==Wv)return null;return Fv=!0,Hv;case"textInput":return U=X.data,U===Hv&&Fv?null:U;default:return null}}function nw(U,X){if(BX)return U==="compositionend"||!VK&&GR(U,X)?(U=_R(),S8=AK=U2=null,BX=!1,U):null;switch(U){case"paste":return null;case"keypress":if(!(X.ctrlKey||X.altKey||X.metaKey)||X.ctrlKey&&X.altKey){if(X.char&&1<X.char.length)return X.char;if(X.which)return String.fromCharCode(X.which)}return null;case"compositionend":return Dv&&X.locale!=="ko"?null:X.data;default:return null}}function JR(U){var X=U&&U.nodeName&&U.nodeName.toLowerCase();return X==="input"?!!Ry[U.type]:X==="textarea"?!0:!1}function pw(U){if(!nI)return!1;U="on"+U;var X=U in document;return X||(X=document.createElement("div"),X.setAttribute(U,"return;"),X=typeof X[U]==="function"),X}function QR(U,X,z,D){qX?NX?NX.push(D):NX=[D]:qX=D,X=G8(X,"onChange"),0<X.length&&(z=new v8("onChange","change",null,z,D),U.push({event:z,listeners:X}))}function cw(U){lV(U,0)}function Dz(U){var X=A0(U);if(K$(X))return U}function zR(U,X){if(U==="change")return X}function ZR(){rY&&(rY.detachEvent("onpropertychange",OR),aY=rY=null)}function OR(U){if(U.propertyName==="value"&&Dz(aY)){var X=[];QR(X,aY,U,_L(U)),IR(cw,X)}}function lw(U,X,z){U==="focusin"?(ZR(),rY=X,aY=z,rY.attachEvent("onpropertychange",OR)):U==="focusout"&&ZR()}function mw(U){if(U==="selectionchange"||U==="keyup"||U==="keydown")return Dz(aY)}function dw(U,X){if(U==="click")return Dz(X)}function iw(U,X){if(U==="input"||U==="change")return Dz(X)}function ow(U,X){return U===X&&(U!==0||1/U===1/X)||U!==U&&X!==X}function LY(U,X){if(pU(U,X))return!0;if(typeof U!=="object"||U===null||typeof X!=="object"||X===null)return!1;var z=Object.keys(U),D=Object.keys(X);if(z.length!==D.length)return!1;for(D=0;D<z.length;D++){var V=z[D];if(!JI.call(X,V)||!pU(U[V],X[V]))return!1}return!0}function LR(U){for(;U&&U.firstChild;)U=U.firstChild;return U}function KR(U,X){var z=LR(U);U=0;for(var D;z;){if(z.nodeType===3){if(D=U+z.textContent.length,U<=X&&D>=X)return{node:z,offset:X-U};U=D}$:{for(;z;){if(z.nextSibling){z=z.nextSibling;break $}z=z.parentNode}z=void 0}z=LR(z)}}function DR(U,X){return U&&X?U===X?!0:U&&U.nodeType===3?!1:X&&X.nodeType===3?DR(U,X.parentNode):("contains"in U)?U.contains(X):U.compareDocumentPosition?!!(U.compareDocumentPosition(X)&16):!1:!1}function WR(U){U=U!=null&&U.ownerDocument!=null&&U.ownerDocument.defaultView!=null?U.ownerDocument.defaultView:window;for(var X=L$(U.document);X instanceof U.HTMLIFrameElement;){try{var z=typeof X.contentWindow.location.href==="string"}catch(D){z=!1}if(z)U=X.contentWindow;else break;X=L$(U.document)}return X}function GL(U){var X=U&&U.nodeName&&U.nodeName.toLowerCase();return X&&(X==="input"&&(U.type==="text"||U.type==="search"||U.type==="tel"||U.type==="url"||U.type==="password")||X==="textarea"||U.contentEditable==="true")}function HR(U,X,z){var D=z.window===z?z.document:z.nodeType===9?z:z.ownerDocument;vK||jX==null||jX!==L$(D)||(D=jX,("selectionStart"in D)&&GL(D)?D={start:D.selectionStart,end:D.selectionEnd}:(D=(D.ownerDocument&&D.ownerDocument.defaultView||window).getSelection(),D={anchorNode:D.anchorNode,anchorOffset:D.anchorOffset,focusNode:D.focusNode,focusOffset:D.focusOffset}),sY&&LY(sY,D)||(sY=D,D=G8(SK,"onSelect"),0<D.length&&(X=new v8("onSelect","select",null,X,z),U.push({event:X,listeners:D}),X.target=jX)))}function l2(U,X){var z={};return z[U.toLowerCase()]=X.toLowerCase(),z["Webkit"+U]="webkit"+X,z["Moz"+U]="moz"+X,z}function m2(U){if(CK[U])return CK[U];if(!kX[U])return U;var X=kX[U],z;for(z in X)if(X.hasOwnProperty(z)&&z in Mv)return CK[U]=X[z];return U}function XI(U,X){Vv.set(U,X),H0(X,[U])}function tw(U){for(var X=q8,z=0;z<U.length;z++){var D=U[z];if(typeof D==="object"&&D!==null)if(DU(D)&&D.length===2&&typeof D[0]==="string"){if(X!==q8&&X!==kK)return BK;X=kK}else return BK;else{if(typeof D==="function"||typeof D==="string"&&50<D.length||X!==q8&&X!==jK)return BK;X=jK}}return X}function YL(U,X,z,D){for(var V in U)JI.call(U,V)&&V[0]!=="_"&&MI(V,U[V],X,z,D)}function MI(U,X,z,D,V){switch(typeof X){case"object":if(X===null){X="null";break}else{if(X.$$typeof===xI){var C=G0(X.type)||"…",f=X.key;X=X.props;var n=Object.keys(X),U0=n.length;if(f==null&&U0===0){X="<"+C+" />";break}if(3>D||U0===1&&n[0]==="children"&&f==null){X="<"+C+" … />";break}z.push([V+" ".repeat(D)+U,"<"+C]),f!==null&&MI("key",f,z,D+1,V),U=!1;for(var Z0 in X)Z0==="children"?X.children!=null&&(!DU(X.children)||0<X.children.length)&&(U=!0):JI.call(X,Z0)&&Z0[0]!=="_"&&MI(Z0,X[Z0],z,D+1,V);z.push(["",U?">…</"+C+">":"/>"]);return}if(C=Object.prototype.toString.call(X),C=C.slice(8,C.length-1),C==="Array"){if(Z0=tw(X),Z0===jK||Z0===q8){X=JSON.stringify(X);break}else if(Z0===kK){z.push([V+" ".repeat(D)+U,""]);for(U=0;U<X.length;U++)C=X[U],MI(C[0],C[1],z,D+1,V);return}}if(C==="Promise"){if(X.status==="fulfilled"){if(C=z.length,MI(U,X.value,z,D,V),z.length>C){z=z[C],z[1]="Promise<"+(z[1]||"Object")+">";return}}else if(X.status==="rejected"&&(C=z.length,MI(U,X.reason,z,D,V),z.length>C)){z=z[C],z[1]="Rejected Promise<"+z[1]+">";return}z.push([" ".repeat(D)+U,"Promise"]);return}C==="Object"&&(Z0=Object.getPrototypeOf(X))&&typeof Z0.constructor==="function"&&(C=Z0.constructor.name),z.push([V+" ".repeat(D)+U,C==="Object"?3>D?"":"…":C]),3>D&&YL(X,z,D+1,V);return}case"function":X=X.name===""?"() => {}":X.name+"() {}";break;case"string":X=X===Ny?"…":JSON.stringify(X);break;case"undefined":X="undefined";break;case"boolean":X=X?"true":"false";break;default:X=String(X)}z.push([V+" ".repeat(D)+U,X])}function FR(U,X,z,D){var V=!0;for(f in U)f in X||(z.push([N8+" ".repeat(D)+f,"…"]),V=!1);for(var C in X)if(C in U){var f=U[C],n=X[C];if(f!==n){if(D===0&&C==="children")V=" ".repeat(D)+C,z.push([N8+V,"…"],[B8+V,"…"]);else{if(!(3<=D)){if(typeof f==="object"&&typeof n==="object"&&f!==null&&n!==null&&f.$$typeof===n.$$typeof)if(n.$$typeof===xI){if(f.type===n.type&&f.key===n.key){f=G0(n.type)||"…",V=" ".repeat(D)+C,f="<"+f+" … />",z.push([N8+V,f],[B8+V,f]),V=!1;continue}}else{var U0=Object.prototype.toString.call(f),Z0=Object.prototype.toString.call(n);if(U0===Z0&&(Z0==="[object Object]"||Z0==="[object Array]")){U0=[Cv+" ".repeat(D)+C,Z0==="[object Array]"?"Array":""],z.push(U0),Z0=z.length,FR(f,n,z,D+1)?Z0===z.length&&(U0[1]="Referentially unequal but deeply equal objects. Consider memoization."):V=!1;continue}}else if(typeof f==="function"&&typeof n==="function"&&f.name===n.name&&f.length===n.length&&(U0=Function.prototype.toString.call(f),Z0=Function.prototype.toString.call(n),U0===Z0)){f=n.name===""?"() => {}":n.name+"() {}",z.push([Cv+" ".repeat(D)+C,f+" Referentially unequal function closure. Consider memoization."]);continue}}MI(C,f,z,D,N8),MI(C,n,z,D,B8)}V=!1}}else z.push([B8+" ".repeat(D)+C,"…"]),V=!1;return V}function D6(U){t$=U&63?"Blocking":U&64?"Gesture":U&4194176?"Transition":U&62914560?"Suspense":U&2080374784?"Idle":"Other"}function AI(U,X,z,D){C1&&(_2.start=X,_2.end=z,D_.color="warning",D_.tooltipText=D,D_.properties=null,(U=U._debugTask)?U.run(performance.measure.bind(performance,D,_2)):performance.measure(D,_2))}function Wz(U,X,z){AI(U,X,z,"Reconnect")}function Hz(U,X,z,D,V){var C=t(U);if(C!==null&&C1){var{alternate:f,actualDuration:n}=U;if(f===null||f.child!==U.child)for(var U0=U.child;U0!==null;U0=U0.sibling)n-=U0.actualDuration;D=0.5>n?D?"tertiary-light":"primary-light":10>n?D?"tertiary":"primary":100>n?D?"tertiary-dark":"primary-dark":"error";var Z0=U.memoizedProps;n=U._debugTask,Z0!==null&&f!==null&&f.memoizedProps!==Z0?(U0=[By],Z0=FR(f.memoizedProps,Z0,U0,0),1<U0.length&&(Z0&&!I2&&(f.lanes&V)===0&&100<U.actualDuration?(I2=!0,U0[0]=jy,D_.color="warning",D_.tooltipText=qv):(D_.color=D,D_.tooltipText=C),D_.properties=U0,_2.start=X,_2.end=z,n!=null?n.run(performance.measure.bind(performance,""+C,_2)):performance.measure(""+C,_2))):n!=null?n.run(console.timeStamp.bind(console,C,X,z,u6,void 0,D)):console.timeStamp(C,X,z,u6,void 0,D)}}function JL(U,X,z,D){if(C1){var V=t(U);if(V!==null){for(var C=null,f=[],n=0;n<D.length;n++){var U0=D[n];C==null&&U0.source!==null&&(C=U0.source._debugTask),U0=U0.value,f.push(["Error",typeof U0==="object"&&U0!==null&&typeof U0.message==="string"?String(U0.message):String(U0)])}U.key!==null&&MI("key",U.key,f,0,""),U.memoizedProps!==null&&YL(U.memoizedProps,f,0,""),C==null&&(C=U._debugTask),U={start:X,end:z,detail:{devtools:{color:"error",track:u6,tooltipText:U.tag===13?"Hydration failed":"Error boundary caught an error",properties:f}}},C?C.run(performance.measure.bind(performance,""+V,U)):performance.measure(""+V,U)}}}function EI(U,X,z,D,V){if(V!==null){if(C1){var C=t(U);if(C!==null){D=[];for(var f=0;f<V.length;f++){var n=V[f].value;D.push(["Error",typeof n==="object"&&n!==null&&typeof n.message==="string"?String(n.message):String(n)])}U.key!==null&&MI("key",U.key,D,0,""),U.memoizedProps!==null&&YL(U.memoizedProps,D,0,""),X={start:X,end:z,detail:{devtools:{color:"error",track:u6,tooltipText:"A lifecycle or effect errored",properties:D}}},(U=U._debugTask)?U.run(performance.measure.bind(performance,""+C,X)):performance.measure(""+C,X)}}}else C=t(U),C!==null&&C1&&(V=1>D?"secondary-light":100>D?"secondary":500>D?"secondary-dark":"error",(U=U._debugTask)?U.run(console.timeStamp.bind(console,C,X,z,u6,void 0,V)):console.timeStamp(C,X,z,u6,void 0,V))}function rw(U,X,z,D){if(C1&&!(X<=U)){var V=(z&738197653)===z?"tertiary-dark":"primary-dark";z=(z&536870912)===z?"Prepared":(z&201326741)===z?"Hydrated":"Render",D?D.run(console.timeStamp.bind(console,z,U,X,t$,o$,V)):console.timeStamp(z,U,X,t$,o$,V)}}function TR(U,X,z,D){!C1||X<=U||(z=(z&738197653)===z?"tertiary-dark":"primary-dark",D?D.run(console.timeStamp.bind(console,"Prewarm",U,X,t$,o$,z)):console.timeStamp("Prewarm",U,X,t$,o$,z))}function MR(U,X,z,D){!C1||X<=U||(z=(z&738197653)===z?"tertiary-dark":"primary-dark",D?D.run(console.timeStamp.bind(console,"Suspended",U,X,t$,o$,z)):console.timeStamp("Suspended",U,X,t$,o$,z))}function aw(U,X,z,D,V,C){if(C1&&!(X<=U)){z=[];for(var f=0;f<D.length;f++){var n=D[f].value;z.push(["Recoverable Error",typeof n==="object"&&n!==null&&typeof n.message==="string"?String(n.message):String(n)])}U={start:U,end:X,detail:{devtools:{color:"primary-dark",track:t$,trackGroup:o$,tooltipText:V?"Hydration Failed":"Recovered after Error",properties:z}}},C?C.run(performance.measure.bind(performance,"Recovered",U)):performance.measure("Recovered",U)}}function QL(U,X,z,D){!C1||X<=U||(D?D.run(console.timeStamp.bind(console,"Errored",U,X,t$,o$,"error")):console.timeStamp("Errored",U,X,t$,o$,"error"))}function sw(U,X,z,D){!C1||X<=U||(D?D.run(console.timeStamp.bind(console,z,U,X,t$,o$,"secondary-light")):console.timeStamp(z,U,X,t$,o$,"secondary-light"))}function AR(U,X,z,D,V){if(C1&&!(X<=U)){for(var C=[],f=0;f<z.length;f++){var n=z[f].value;C.push(["Error",typeof n==="object"&&n!==null&&typeof n.message==="string"?String(n.message):String(n)])}U={start:U,end:X,detail:{devtools:{color:"error",track:t$,trackGroup:o$,tooltipText:D?"Remaining Effects Errored":"Commit Errored",properties:C}}},V?V.run(performance.measure.bind(performance,"Errored",U)):performance.measure("Errored",U)}}function KY(U,X,z){!C1||X<=U||(z?z.run(console.timeStamp.bind(console,"Animating",U,X,t$,o$,"secondary-dark")):console.timeStamp("Animating",U,X,t$,o$,"secondary-dark"))}function Fz(){for(var U=gX,X=gK=gX=0;X<U;){var z=n6[X];n6[X++]=null;var D=n6[X];n6[X++]=null;var V=n6[X];n6[X++]=null;var C=n6[X];if(n6[X++]=null,D!==null&&V!==null){var f=D.pending;f===null?V.next=V:(V.next=f.next,f.next=V),D.pending=V}C!==0&&ER(z,V,C)}}function Tz(U,X,z,D){n6[gX++]=U,n6[gX++]=X,n6[gX++]=z,n6[gX++]=D,gK|=D,U.lanes|=D,U=U.alternate,U!==null&&(U.lanes|=D)}function zL(U,X,z,D){return Tz(U,X,z,D),Mz(U)}function wU(U,X){return Tz(U,null,null,X),Mz(U)}function ER(U,X,z){U.lanes|=z;var D=U.alternate;D!==null&&(D.lanes|=z);for(var V=!1,C=U.return;C!==null;)C.childLanes|=z,D=C.alternate,D!==null&&(D.childLanes|=z),C.tag===22&&(U=C.stateNode,U===null||U._visibility&eY||(V=!0)),U=C,C=C.return;return U.tag===3?(C=U.stateNode,V&&X!==null&&(V=31-hU(z),U=C.hiddenUpdates,D=U[V],D===null?U[V]=[X]:D.push(X),X.lane=z|536870912),C):null}function Mz(U){if(vJ>dy)throw A4=vJ=0,CJ=LD=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");A4>iy&&(A4=0,CJ=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),U.alternate===null&&(U.flags&4098)!==0&&yV(U);for(var X=U,z=X.return;z!==null;)X.alternate===null&&(X.flags&4098)!==0&&yV(U),X=z,z=X.return;return X.tag===3?X.stateNode:null}function d2(U){if(p6===null)return U;var X=p6(U);return X===void 0?U:X.current}function ZL(U){if(p6===null)return U;var X=p6(U);return X===void 0?U!==null&&U!==void 0&&typeof U.render==="function"&&(X=d2(U.render),U.render!==X)?(X={$$typeof:nY,render:X},U.displayName!==void 0&&(X.displayName=U.displayName),X):U:X.current}function RR(U,X){if(p6===null)return!1;var z=U.elementType;X=X.type;var D=!1,V=typeof X==="object"&&X!==null?X.$$typeof:null;switch(U.tag){case 1:typeof X==="function"&&(D=!0);break;case 0:typeof X==="function"?D=!0:V===E6&&(D=!0);break;case 11:V===nY?D=!0:V===E6&&(D=!0);break;case 14:case 15:V===H8?D=!0:V===E6&&(D=!0);break;default:return!1}return D&&(U=p6(z),U!==void 0&&U===p6(X))?!0:!1}function PR(U){p6!==null&&typeof WeakSet==="function"&&(wX===null&&(wX=new WeakSet),wX.add(U))}function VR(U,X,z){do{var D=U,V=D.alternate,C=D.child,f=D.sibling,n=D.tag;D=D.type;var U0=null;switch(n){case 0:case 15:case 1:U0=D;break;case 11:U0=D.render}if(p6===null)throw Error("Expected resolveFamily to be set during hot reload.");var Z0=!1;if(D=!1,U0!==null&&(U0=p6(U0),U0!==void 0&&(z.has(U0)?D=!0:X.has(U0)&&(n===1?D=!0:Z0=!0))),wX!==null&&(wX.has(U)||V!==null&&wX.has(V))&&(D=!0),D&&(U._debugNeedsRemount=!0),D||Z0)V=wU(U,2),V!==null&&l1(V,U,2);if(C===null||D||VR(C,X,z),f===null)break;U=f}while(1)}function ew(U,X,z,D){this.tag=U,this.key=z,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=X,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=D,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Nv||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function OL(U){return U=U.prototype,!(!U||!U.isReactComponent)}function Y_(U,X){var z=U.alternate;switch(z===null?(z=S(U.tag,X,U.key,U.mode),z.elementType=U.elementType,z.type=U.type,z.stateNode=U.stateNode,z._debugOwner=U._debugOwner,z._debugStack=U._debugStack,z._debugTask=U._debugTask,z._debugHookTypes=U._debugHookTypes,z.alternate=U,U.alternate=z):(z.pendingProps=X,z.type=U.type,z.flags=0,z.subtreeFlags=0,z.deletions=null,z.actualDuration=-0,z.actualStartTime=-1.1),z.flags=U.flags&65011712,z.childLanes=U.childLanes,z.lanes=U.lanes,z.child=U.child,z.memoizedProps=U.memoizedProps,z.memoizedState=U.memoizedState,z.updateQueue=U.updateQueue,X=U.dependencies,z.dependencies=X===null?null:{lanes:X.lanes,firstContext:X.firstContext,_debugThenableState:X._debugThenableState},z.sibling=U.sibling,z.index=U.index,z.ref=U.ref,z.refCleanup=U.refCleanup,z.selfBaseDuration=U.selfBaseDuration,z.treeBaseDuration=U.treeBaseDuration,z._debugInfo=U._debugInfo,z._debugNeedsRemount=U._debugNeedsRemount,z.tag){case 0:case 15:z.type=d2(U.type);break;case 1:z.type=d2(U.type);break;case 11:z.type=ZL(U.type)}return z}function SR(U,X){U.flags&=65011714;var z=U.alternate;return z===null?(U.childLanes=0,U.lanes=X,U.child=null,U.subtreeFlags=0,U.memoizedProps=null,U.memoizedState=null,U.updateQueue=null,U.dependencies=null,U.stateNode=null,U.selfBaseDuration=0,U.treeBaseDuration=0):(U.childLanes=z.childLanes,U.lanes=z.lanes,U.child=z.child,U.subtreeFlags=0,U.deletions=null,U.memoizedProps=z.memoizedProps,U.memoizedState=z.memoizedState,U.updateQueue=z.updateQueue,U.type=z.type,X=z.dependencies,U.dependencies=X===null?null:{lanes:X.lanes,firstContext:X.firstContext,_debugThenableState:X._debugThenableState},U.selfBaseDuration=z.selfBaseDuration,U.treeBaseDuration=z.treeBaseDuration),U}function LL(U,X,z,D,V,C){var f=0,n=U;if(typeof U==="function")OL(U)&&(f=1),n=d2(n);else if(typeof U==="string")f=v(),f=Qf(U,z,f)?26:U==="html"||U==="head"||U==="body"?27:5;else $:switch(U){case XK:return X=S(31,z,X,V),X.elementType=XK,X.lanes=C,X;case RX:return i2(z.children,V,C,X);case W8:f=8,V|=fU,V|=zI;break;case $K:return U=z,D=V,typeof U.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof U.id),X=S(12,U,X,D|h$),X.elementType=$K,X.lanes=C,X.stateNode={effectDuration:0,passiveEffectDuration:0},X;case IK:return X=S(13,z,X,V),X.elementType=IK,X.lanes=C,X;case _K:return X=S(19,z,X,V),X.elementType=_K,X.lanes=C,X;default:if(typeof U==="object"&&U!==null)switch(U.$$typeof){case fI:f=10;break $;case UK:f=9;break $;case nY:f=11,n=ZL(n);break $;case H8:f=14;break $;case E6:f=16,n=null;break $}if(n="",U===void 0||typeof U==="object"&&U!==null&&Object.keys(U).length===0)n+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";U===null?z="null":DU(U)?z="array":U!==void 0&&U.$$typeof===xI?(z="<"+(G0(U.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):z=typeof U,(f=D?K0(D):null)&&(n+=`
|
|
72
|
-
|
|
73
|
-
Check the render method of \``+f+"`."),f=29,z=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(z+"."+n)),n=null}return X=S(f,z,X,V),X.elementType=U,X.type=n,X.lanes=C,X._debugOwner=D,X}function Az(U,X,z){return X=LL(U.type,U.key,U.props,U._owner,X,z),X._debugOwner=U._owner,X._debugStack=U._debugStack,X._debugTask=U._debugTask,X}function i2(U,X,z,D){return U=S(7,U,D,X),U.lanes=z,U}function KL(U,X,z){return U=S(6,U,null,X),U.lanes=z,U}function vR(U){var X=S(18,null,null,j$);return X.stateNode=U,X}function DL(U,X,z){return X=S(4,U.children!==null?U.children:[],U.key,X),X.lanes=z,X.stateNode={containerInfo:U.containerInfo,pendingChildren:null,implementation:U.implementation},X}function W6(U,X){if(typeof U==="object"&&U!==null){var z=wK.get(U);if(z!==void 0)return z;return X={value:U,source:X,stack:D0(X)},wK.set(U,X),X}return{value:U,source:X,stack:D0(X)}}function J_(U,X){h_(),xX[fX++]=$J,xX[fX++]=j8,j8=U,$J=X}function CR(U,X,z){h_(),c6[l6++]=H_,c6[l6++]=F_,c6[l6++]=Y4,Y4=U;var D=H_;U=F_;var V=32-hU(D)-1;D&=~(1<<V),z+=1;var C=32-hU(X)+V;if(30<C){var f=V-V%5;C=(D&(1<<f)-1).toString(32),D>>=f,V-=f,H_=1<<32-hU(X)+V|z<<V|D,F_=C+U}else H_=1<<C|z<<V|D,F_=U}function WL(U){h_(),U.return!==null&&(J_(U,1),CR(U,1,0))}function HL(U){for(;U===j8;)j8=xX[--fX],xX[fX]=null,$J=xX[--fX],xX[fX]=null;for(;U===Y4;)Y4=c6[--l6],c6[l6]=null,F_=c6[--l6],c6[l6]=null,H_=c6[--l6],c6[l6]=null}function qR(){return h_(),Y4!==null?{id:H_,overflow:F_}:null}function NR(U,X){h_(),c6[l6++]=H_,c6[l6++]=F_,c6[l6++]=Y4,H_=X.id,F_=X.overflow,Y4=U}function h_(){a$||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function o2(U,X){if(U.return===null){if(V6===null)V6={fiber:U,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:X};else{if(V6.fiber!==U)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");V6.distanceFromLeaf>X&&(V6.distanceFromLeaf=X)}return V6}var z=o2(U.return,X+1).children;if(0<z.length&&z[z.length-1].fiber===U)return z=z[z.length-1],z.distanceFromLeaf>X&&(z.distanceFromLeaf=X),z;return X={fiber:U,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:X},z.push(X),X}function BR(){a$&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Ez(U,X){pI||(U=o2(U,0),U.serverProps=null,X!==null&&(X=QS(X),U.serverTail.push(X)))}function u_(U){var X=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,z="",D=V6;throw D!==null&&(V6=null,z=UL(D)),DY(W6(Error("Hydration failed because the server rendered "+(X?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
74
|
-
|
|
75
|
-
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
76
|
-
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
77
|
-
- Date formatting in a user's locale which doesn't match the server.
|
|
78
|
-
- External changing data without sending a snapshot of it along with the HTML.
|
|
79
|
-
- Invalid HTML tag nesting.
|
|
80
|
-
|
|
81
|
-
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
82
|
-
|
|
83
|
-
https://react.dev/link/hydration-mismatch`+z),U)),xK}function jR(U){var{stateNode:X,type:z,memoizedProps:D}=U;switch(X[NU]=U,X[uU]=D,f9(z,D),z){case"dialog":s$("cancel",X),s$("close",X);break;case"iframe":case"object":case"embed":s$("load",X);break;case"video":case"audio":for(z=0;z<qJ.length;z++)s$(qJ[z],X);break;case"source":s$("error",X);break;case"img":case"image":case"link":s$("error",X),s$("load",X);break;case"details":s$("toggle",X);break;case"input":H$("input",D),s$("invalid",X),Z$(X,D),I1(X,D.value,D.defaultValue,D.checked,D.defaultChecked,D.type,D.name,!0);break;case"option":g$(X,D);break;case"select":H$("select",D),s$("invalid",X),o1(X,D);break;case"textarea":H$("textarea",D),s$("invalid",X),t1(X,D),a1(X,D.value,D.defaultValue,D.children)}z=D.children,typeof z!=="string"&&typeof z!=="number"&&typeof z!=="bigint"||X.textContent===""+z||D.suppressHydrationWarning===!0||oV(X.textContent,z)?(D.popover!=null&&(s$("beforetoggle",X),s$("toggle",X)),D.onScroll!=null&&s$("scroll",X),D.onScrollEnd!=null&&s$("scrollend",X),D.onClick!=null&&(X.onclick=G_),X=!0):X=!1,X||u_(U,!0)}function kR(U){for(BU=U.return;BU;)switch(BU.tag){case 5:case 31:case 13:m6=!1;return;case 27:case 3:m6=!0;return;default:BU=BU.return}}function YX(U){if(U!==BU)return!1;if(!a$)return kR(U),a$=!0,!1;var X=U.tag,z;if(z=X!==3&&X!==27){if(z=X===5)z=U.type,z=!(z!=="form"&&z!=="button")||n9(U.type,U.memoizedProps);z=!z}if(z&&q1){for(z=q1;z;){var D=o2(U,0),V=QS(z);D.serverTail.push(V),z=V.type==="Suspense"?m9(z):A6(z.nextSibling)}u_(U)}if(kR(U),X===13){if(U=U.memoizedState,U=U!==null?U.dehydrated:null,!U)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");q1=m9(U)}else if(X===31){if(U=U.memoizedState,U=U!==null?U.dehydrated:null,!U)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");q1=m9(U)}else X===27?(X=q1,r_(U.type)?(U=VD,VD=null,q1=U):q1=X):q1=BU?A6(U.stateNode.nextSibling):null;return!0}function t2(){q1=BU=null,pI=a$=!1}function FL(){var U=G2;return U!==null&&(dU===null?dU=U:dU.push.apply(dU,U),G2=null),U}function DY(U){G2===null?G2=[U]:G2.push(U)}function TL(){var U=V6;if(U!==null){V6=null;for(var X=UL(U);0<U.children.length;)U=U.children[0];r(U.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
|
84
|
-
|
|
85
|
-
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
86
|
-
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
87
|
-
- Date formatting in a user's locale which doesn't match the server.
|
|
88
|
-
- External changing data without sending a snapshot of it along with the HTML.
|
|
89
|
-
- Invalid HTML tag nesting.
|
|
90
|
-
|
|
91
|
-
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
92
|
-
|
|
93
|
-
%s%s`,"https://react.dev/link/hydration-mismatch",X)})}}function Rz(){yX=k8=null,bX=!1}function n_(U,X,z){K(fK,X._currentValue,U),X._currentValue=z,K(yK,X._currentRenderer,U),X._currentRenderer!==void 0&&X._currentRenderer!==null&&X._currentRenderer!==jv&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),X._currentRenderer=jv}function Q_(U,X){U._currentValue=fK.current;var z=yK.current;Q(yK,X),U._currentRenderer=z,Q(fK,X)}function ML(U,X,z){for(;U!==null;){var D=U.alternate;if((U.childLanes&X)!==X?(U.childLanes|=X,D!==null&&(D.childLanes|=X)):D!==null&&(D.childLanes&X)!==X&&(D.childLanes|=X),U===z)break;U=U.return}U!==z&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function AL(U,X,z,D){var V=U.child;V!==null&&(V.return=U);for(;V!==null;){var C=V.dependencies;if(C!==null){var f=V.child;C=C.firstContext;$:for(;C!==null;){var n=C;C=V;for(var U0=0;U0<X.length;U0++)if(n.context===X[U0]){C.lanes|=z,n=C.alternate,n!==null&&(n.lanes|=z),ML(C.return,z,U),D||(f=null);break $}C=n.next}}else if(V.tag===18){if(f=V.return,f===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");f.lanes|=z,C=f.alternate,C!==null&&(C.lanes|=z),ML(f,z,U),f=null}else f=V.child;if(f!==null)f.return=V;else for(f=V;f!==null;){if(f===U){f=null;break}if(V=f.sibling,V!==null){V.return=f.return,f=V;break}f=f.return}V=f}}function JX(U,X,z,D){U=null;for(var V=X,C=!1;V!==null;){if(!C){if((V.flags&524288)!==0)C=!0;else if((V.flags&262144)!==0)break}if(V.tag===10){var f=V.alternate;if(f===null)throw Error("Should have a current fiber. This is a bug in React.");if(f=f.memoizedProps,f!==null){var n=V.type;pU(V.pendingProps.value,f.value)||(U!==null?U.push(n):U=[n])}}else if(V===F8.current){if(f=V.alternate,f===null)throw Error("Should have a current fiber. This is a bug in React.");f.memoizedState.memoizedState!==V.memoizedState.memoizedState&&(U!==null?U.push(gJ):U=[gJ])}V=V.return}U!==null&&AL(X,U,z,D),X.flags|=262144}function Pz(U){for(U=U.firstContext;U!==null;){if(!pU(U.context._currentValue,U.memoizedValue))return!0;U=U.next}return!1}function r2(U){k8=U,yX=null,U=U.dependencies,U!==null&&(U.firstContext=null)}function k1(U){return bX&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),gR(k8,U)}function Vz(U,X){return k8===null&&r2(U),gR(U,X)}function gR(U,X){var z=X._currentValue;if(X={context:X,memoizedValue:z,next:null},yX===null){if(U===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");yX=X,U.dependencies={lanes:0,firstContext:X,_debugThenableState:null},U.flags|=524288}else yX=yX.next=X;return z}function EL(){return{controller:new wy,data:new Map,refCount:0}}function a2(U){U.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),U.refCount++}function WY(U){U.refCount--,0>U.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),U.refCount===0&&xy(fy,function(){U.controller.abort()})}function RI(U,X,z){if((U&127)!==0)0>cI&&(cI=YU(),IJ=g8(X),bK=X,z!=null&&(hK=t(z)),(_1&(HU|C6))!==PU&&(m1=!0,Q2=UJ),U=fY(),X=xY(),U!==hX||X!==_J?hX=-1.1:X!==null&&(Q2=UJ),Q4=U,_J=X);else if((U&4194048)!==0&&0>d6&&(d6=YU(),XJ=g8(X),kv=X,z!=null&&(gv=t(z)),0>A_)){if(U=fY(),X=xY(),U!==Z2||X!==z4)Z2=-1.1;z2=U,z4=X}}function $x(U){if(0>cI){cI=YU(),IJ=U._debugTask!=null?U._debugTask:null,(_1&(HU|C6))!==PU&&(Q2=UJ);var X=fY(),z=xY();X!==hX||z!==_J?hX=-1.1:z!==null&&(Q2=UJ),Q4=X,_J=z}if(0>d6&&(d6=YU(),XJ=U._debugTask!=null?U._debugTask:null,0>A_)){if(U=fY(),X=xY(),U!==Z2||X!==z4)Z2=-1.1;z2=U,z4=X}}function z_(){var U=J4;return J4=0,U}function Sz(U){var X=J4;return J4=U,X}function HY(U){var X=J4;return J4+=U,X}function vz(){N$=v$=-1.1}function H6(){var U=v$;return v$=-1.1,U}function F6(U){0<=U&&(v$=U)}function PI(){var U=y1;return y1=-0,U}function VI(U){0<=U&&(y1=U)}function SI(){var U=g1;return g1=null,U}function vI(){var U=m1;return m1=!1,U}function RL(U){cU=YU(),0>U.actualStartTime&&(U.actualStartTime=cU)}function PL(U){if(0<=cU){var X=YU()-cU;U.actualDuration+=X,U.selfBaseDuration=X,cU=-1}}function wR(U){if(0<=cU){var X=YU()-cU;U.actualDuration+=X,cU=-1}}function CI(){if(0<=cU){var U=YU(),X=U-cU;cU=-1,J4+=X,y1+=X,N$=U}}function xR(U){g1===null&&(g1=[]),g1.push(U),M_===null&&(M_=[]),M_.push(U)}function qI(){cU=YU(),0>v$&&(v$=cU)}function FY(U){for(var X=U.child;X;)U.actualDuration+=X.actualDuration,X=X.sibling}function Ux(U,X){if(YJ===null){var z=YJ=[];nK=0,Z4=k9(),uX={status:"pending",value:void 0,then:function(D){z.push(D)}}}return nK++,X.then(fR,fR),X}function fR(){if(--nK===0&&(-1<d6||(A_=-1.1),YJ!==null)){uX!==null&&(uX.status="fulfilled");var U=YJ;YJ=null,Z4=0,uX=null;for(var X=0;X<U.length;X++)(0,U[X])()}}function Ix(U,X){var z=[],D={status:"pending",value:null,reason:null,then:function(V){z.push(V)}};return U.then(function(){D.status="fulfilled",D.value=X;for(var V=0;V<z.length;V++)(0,z[V])(X)},function(V){D.status="rejected",D.reason=V;for(V=0;V<z.length;V++)(0,z[V])(void 0)}),D}function VL(){var U=O4.current;return U!==null?U:M1.pooledCache}function Cz(U,X){X===null?K(O4,O4.current,U):K(O4,X.pool,U)}function yR(){var U=VL();return U===null?null:{parent:GU._currentValue,pool:U}}function bR(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function hR(U){return U=U.status,U==="fulfilled"||U==="rejected"}function uR(U,X,z){e0.actQueue!==null&&(e0.didUsePromise=!0);var D=U.thenables;if(z=D[z],z===void 0?D.push(X):z!==X&&(U.didWarnAboutUncachedPromise||(U.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),X.then(G_,G_),X=z),X._debugInfo===void 0){U=performance.now(),D=X.displayName;var V={name:typeof D==="string"?D:"Promise",start:U,end:U,value:X};X._debugInfo=[{awaited:V}],X.status!=="fulfilled"&&X.status!=="rejected"&&(U=function(){V.end=performance.now()},X.then(U,U))}switch(X.status){case"fulfilled":return X.value;case"rejected":throw U=X.reason,pR(U),U;default:if(typeof X.status==="string")X.then(G_,G_);else{if(U=M1,U!==null&&100<U.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");U=X,U.status="pending",U.then(function(C){if(X.status==="pending"){var f=X;f.status="fulfilled",f.value=C}},function(C){if(X.status==="pending"){var f=X;f.status="rejected",f.reason=C}})}switch(X.status){case"fulfilled":return X.value;case"rejected":throw U=X.reason,pR(U),U}throw K4=X,KJ=!0,nX}}function p_(U){try{return uy(U)}catch(X){if(X!==null&&typeof X==="object"&&typeof X.then==="function")throw K4=X,KJ=!0,nX;throw X}}function nR(){if(K4===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var U=K4;return K4=null,KJ=!1,U}function pR(U){if(U===nX||U===n8)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function vU(U){var X=u$;return U!=null&&(u$=X===null?U:X.concat(U)),X}function SL(){var U=u$;if(U!=null){for(var X=U.length-1;0<=X;X--)if(U[X].name!=null){var z=U[X].debugTask;if(z!=null)return z}}return null}function qz(U,X,z){for(var D=Object.keys(U.props),V=0;V<D.length;V++){var C=D[V];if(C!=="children"&&C!=="key"){X===null&&(X=Az(U,z.mode,0),X._debugInfo=u$,X.return=z),r(X,function(f){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",f)},C);break}}}function Nz(U){var X=DJ;return DJ+=1,pX===null&&(pX=bR()),uR(pX,U,X)}function TY(U,X){X=X.props.ref,U.ref=X!==void 0?X:null}function cR(U,X){if(X.$$typeof===Tf)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
94
|
-
- Multiple copies of the "react" package is used.
|
|
95
|
-
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
96
|
-
- A compiler tries to "inline" JSX instead of using the runtime.`);throw U=Object.prototype.toString.call(X),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(X).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}function Bz(U,X){var z=SL();z!==null?z.run(cR.bind(null,U,X)):cR(U,X)}function lR(U,X){var z=t(U)||"Component";ev[z]||(ev[z]=!0,X=X.displayName||X.name||"Component",U.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
97
|
-
root.render(%s)`,X,X,X):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
98
|
-
<%s>{%s}</%s>`,X,X,z,X,z))}function jz(U,X){var z=SL();z!==null?z.run(lR.bind(null,U,X)):lR(U,X)}function mR(U,X){var z=t(U)||"Component";$C[z]||($C[z]=!0,X=String(X),U.tag===3?console.error(`Symbols are not valid as a React child.
|
|
99
|
-
root.render(%s)`,X):console.error(`Symbols are not valid as a React child.
|
|
100
|
-
<%s>%s</%s>`,z,X,z))}function kz(U,X){var z=SL();z!==null?z.run(mR.bind(null,U,X)):mR(U,X)}function dR(U){function X(j0,w0){if(U){var y0=j0.deletions;y0===null?(j0.deletions=[w0],j0.flags|=16):y0.push(w0)}}function z(j0,w0){if(!U)return null;for(;w0!==null;)X(j0,w0),w0=w0.sibling;return null}function D(j0){for(var w0=new Map;j0!==null;)j0.key!==null?w0.set(j0.key,j0):w0.set(j0.index,j0),j0=j0.sibling;return w0}function V(j0,w0){return j0=Y_(j0,w0),j0.index=0,j0.sibling=null,j0}function C(j0,w0,y0){if(j0.index=y0,!U)return j0.flags|=1048576,w0;if(y0=j0.alternate,y0!==null)return y0=y0.index,y0<w0?(j0.flags|=67108866,w0):y0;return j0.flags|=67108866,w0}function f(j0){return U&&j0.alternate===null&&(j0.flags|=67108866),j0}function n(j0,w0,y0,_$){if(w0===null||w0.tag!==6)return w0=KL(y0,j0.mode,_$),w0.return=j0,w0._debugOwner=j0,w0._debugTask=j0._debugTask,w0._debugInfo=u$,w0;return w0=V(w0,y0),w0.return=j0,w0._debugInfo=u$,w0}function U0(j0,w0,y0,_$){var T$=y0.type;if(T$===RX)return w0=h0(j0,w0,y0.props.children,_$,y0.key),qz(y0,w0,j0),w0;if(w0!==null&&(w0.elementType===T$||RR(w0,y0)||typeof T$==="object"&&T$!==null&&T$.$$typeof===E6&&p_(T$)===w0.type))return w0=V(w0,y0.props),TY(w0,y0),w0.return=j0,w0._debugOwner=y0._owner,w0._debugInfo=u$,w0;return w0=Az(y0,j0.mode,_$),TY(w0,y0),w0.return=j0,w0._debugInfo=u$,w0}function Z0(j0,w0,y0,_$){if(w0===null||w0.tag!==4||w0.stateNode.containerInfo!==y0.containerInfo||w0.stateNode.implementation!==y0.implementation)return w0=DL(y0,j0.mode,_$),w0.return=j0,w0._debugInfo=u$,w0;return w0=V(w0,y0.children||[]),w0.return=j0,w0._debugInfo=u$,w0}function h0(j0,w0,y0,_$,T$){if(w0===null||w0.tag!==7)return w0=i2(y0,j0.mode,_$,T$),w0.return=j0,w0._debugOwner=j0,w0._debugTask=j0._debugTask,w0._debugInfo=u$,w0;return w0=V(w0,y0),w0.return=j0,w0._debugInfo=u$,w0}function u0(j0,w0,y0){if(typeof w0==="string"&&w0!==""||typeof w0==="number"||typeof w0==="bigint")return w0=KL(""+w0,j0.mode,y0),w0.return=j0,w0._debugOwner=j0,w0._debugTask=j0._debugTask,w0._debugInfo=u$,w0;if(typeof w0==="object"&&w0!==null){switch(w0.$$typeof){case xI:return y0=Az(w0,j0.mode,y0),TY(y0,w0),y0.return=j0,j0=vU(w0._debugInfo),y0._debugInfo=u$,u$=j0,y0;case EX:return w0=DL(w0,j0.mode,y0),w0.return=j0,w0._debugInfo=u$,w0;case E6:var _$=vU(w0._debugInfo);return w0=p_(w0),j0=u0(j0,w0,y0),u$=_$,j0}if(DU(w0)||Q0(w0))return y0=i2(w0,j0.mode,y0,null),y0.return=j0,y0._debugOwner=j0,y0._debugTask=j0._debugTask,j0=vU(w0._debugInfo),y0._debugInfo=u$,u$=j0,y0;if(typeof w0.then==="function")return _$=vU(w0._debugInfo),j0=u0(j0,Nz(w0),y0),u$=_$,j0;if(w0.$$typeof===fI)return u0(j0,Vz(j0,w0),y0);Bz(j0,w0)}return typeof w0==="function"&&jz(j0,w0),typeof w0==="symbol"&&kz(j0,w0),null}function g0(j0,w0,y0,_$){var T$=w0!==null?w0.key:null;if(typeof y0==="string"&&y0!==""||typeof y0==="number"||typeof y0==="bigint")return T$!==null?null:n(j0,w0,""+y0,_$);if(typeof y0==="object"&&y0!==null){switch(y0.$$typeof){case xI:return y0.key===T$?(T$=vU(y0._debugInfo),j0=U0(j0,w0,y0,_$),u$=T$,j0):null;case EX:return y0.key===T$?Z0(j0,w0,y0,_$):null;case E6:return T$=vU(y0._debugInfo),y0=p_(y0),j0=g0(j0,w0,y0,_$),u$=T$,j0}if(DU(y0)||Q0(y0)){if(T$!==null)return null;return T$=vU(y0._debugInfo),j0=h0(j0,w0,y0,_$,null),u$=T$,j0}if(typeof y0.then==="function")return T$=vU(y0._debugInfo),j0=g0(j0,w0,Nz(y0),_$),u$=T$,j0;if(y0.$$typeof===fI)return g0(j0,w0,Vz(j0,y0),_$);Bz(j0,y0)}return typeof y0==="function"&&jz(j0,y0),typeof y0==="symbol"&&kz(j0,y0),null}function o0(j0,w0,y0,_$,T$){if(typeof _$==="string"&&_$!==""||typeof _$==="number"||typeof _$==="bigint")return j0=j0.get(y0)||null,n(w0,j0,""+_$,T$);if(typeof _$==="object"&&_$!==null){switch(_$.$$typeof){case xI:return y0=j0.get(_$.key===null?y0:_$.key)||null,j0=vU(_$._debugInfo),w0=U0(w0,y0,_$,T$),u$=j0,w0;case EX:return j0=j0.get(_$.key===null?y0:_$.key)||null,Z0(w0,j0,_$,T$);case E6:var x$=vU(_$._debugInfo);return _$=p_(_$),w0=o0(j0,w0,y0,_$,T$),u$=x$,w0}if(DU(_$)||Q0(_$))return y0=j0.get(y0)||null,j0=vU(_$._debugInfo),w0=h0(w0,y0,_$,T$,null),u$=j0,w0;if(typeof _$.then==="function")return x$=vU(_$._debugInfo),w0=o0(j0,w0,y0,Nz(_$),T$),u$=x$,w0;if(_$.$$typeof===fI)return o0(j0,w0,y0,Vz(w0,_$),T$);Bz(w0,_$)}return typeof _$==="function"&&jz(w0,_$),typeof _$==="symbol"&&kz(w0,_$),null}function F$(j0,w0,y0,_$){if(typeof y0!=="object"||y0===null)return _$;switch(y0.$$typeof){case xI:case EX:E(j0,w0,y0);var T$=y0.key;if(typeof T$!=="string")break;if(_$===null){_$=new Set,_$.add(T$);break}if(!_$.has(T$)){_$.add(T$);break}r(w0,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",T$)});break;case E6:y0=p_(y0),F$(j0,w0,y0,_$)}return _$}function E$(j0,w0,y0,_$){for(var T$=null,x$=null,S$=null,P$=w0,b$=w0=0,N1=null;P$!==null&&b$<y0.length;b$++){P$.index>b$?(N1=P$,P$=null):N1=P$.sibling;var XU=g0(j0,P$,y0[b$],_$);if(XU===null){P$===null&&(P$=N1);break}T$=F$(j0,XU,y0[b$],T$),U&&P$&&XU.alternate===null&&X(j0,P$),w0=C(XU,w0,b$),S$===null?x$=XU:S$.sibling=XU,S$=XU,P$=N1}if(b$===y0.length)return z(j0,P$),a$&&J_(j0,b$),x$;if(P$===null){for(;b$<y0.length;b$++)P$=u0(j0,y0[b$],_$),P$!==null&&(T$=F$(j0,P$,y0[b$],T$),w0=C(P$,w0,b$),S$===null?x$=P$:S$.sibling=P$,S$=P$);return a$&&J_(j0,b$),x$}for(P$=D(P$);b$<y0.length;b$++)N1=o0(P$,j0,b$,y0[b$],_$),N1!==null&&(T$=F$(j0,N1,y0[b$],T$),U&&N1.alternate!==null&&P$.delete(N1.key===null?b$:N1.key),w0=C(N1,w0,b$),S$===null?x$=N1:S$.sibling=N1,S$=N1);return U&&P$.forEach(function(N_){return X(j0,N_)}),a$&&J_(j0,b$),x$}function V1(j0,w0,y0,_$){if(y0==null)throw Error("An iterable object provided no iterator.");for(var T$=null,x$=null,S$=w0,P$=w0=0,b$=null,N1=null,XU=y0.next();S$!==null&&!XU.done;P$++,XU=y0.next()){S$.index>P$?(b$=S$,S$=null):b$=S$.sibling;var N_=g0(j0,S$,XU.value,_$);if(N_===null){S$===null&&(S$=b$);break}N1=F$(j0,N_,XU.value,N1),U&&S$&&N_.alternate===null&&X(j0,S$),w0=C(N_,w0,P$),x$===null?T$=N_:x$.sibling=N_,x$=N_,S$=b$}if(XU.done)return z(j0,S$),a$&&J_(j0,P$),T$;if(S$===null){for(;!XU.done;P$++,XU=y0.next())S$=u0(j0,XU.value,_$),S$!==null&&(N1=F$(j0,S$,XU.value,N1),w0=C(S$,w0,P$),x$===null?T$=S$:x$.sibling=S$,x$=S$);return a$&&J_(j0,P$),T$}for(S$=D(S$);!XU.done;P$++,XU=y0.next())b$=o0(S$,j0,P$,XU.value,_$),b$!==null&&(N1=F$(j0,b$,XU.value,N1),U&&b$.alternate!==null&&S$.delete(b$.key===null?P$:b$.key),w0=C(b$,w0,P$),x$===null?T$=b$:x$.sibling=b$,x$=b$);return U&&S$.forEach(function(Zb){return X(j0,Zb)}),a$&&J_(j0,P$),T$}function e$(j0,w0,y0,_$){if(typeof y0==="object"&&y0!==null&&y0.type===RX&&y0.key===null&&(qz(y0,null,j0),y0=y0.props.children),typeof y0==="object"&&y0!==null){switch(y0.$$typeof){case xI:var T$=vU(y0._debugInfo);$:{for(var x$=y0.key;w0!==null;){if(w0.key===x$){if(x$=y0.type,x$===RX){if(w0.tag===7){z(j0,w0.sibling),_$=V(w0,y0.props.children),_$.return=j0,_$._debugOwner=y0._owner,_$._debugInfo=u$,qz(y0,_$,j0),j0=_$;break $}}else if(w0.elementType===x$||RR(w0,y0)||typeof x$==="object"&&x$!==null&&x$.$$typeof===E6&&p_(x$)===w0.type){z(j0,w0.sibling),_$=V(w0,y0.props),TY(_$,y0),_$.return=j0,_$._debugOwner=y0._owner,_$._debugInfo=u$,j0=_$;break $}z(j0,w0);break}else X(j0,w0);w0=w0.sibling}y0.type===RX?(_$=i2(y0.props.children,j0.mode,_$,y0.key),_$.return=j0,_$._debugOwner=j0,_$._debugTask=j0._debugTask,_$._debugInfo=u$,qz(y0,_$,j0),j0=_$):(_$=Az(y0,j0.mode,_$),TY(_$,y0),_$.return=j0,_$._debugInfo=u$,j0=_$)}return j0=f(j0),u$=T$,j0;case EX:$:{T$=y0;for(y0=T$.key;w0!==null;){if(w0.key===y0)if(w0.tag===4&&w0.stateNode.containerInfo===T$.containerInfo&&w0.stateNode.implementation===T$.implementation){z(j0,w0.sibling),_$=V(w0,T$.children||[]),_$.return=j0,j0=_$;break $}else{z(j0,w0);break}else X(j0,w0);w0=w0.sibling}_$=DL(T$,j0.mode,_$),_$.return=j0,j0=_$}return f(j0);case E6:return T$=vU(y0._debugInfo),y0=p_(y0),j0=e$(j0,w0,y0,_$),u$=T$,j0}if(DU(y0))return T$=vU(y0._debugInfo),j0=E$(j0,w0,y0,_$),u$=T$,j0;if(Q0(y0)){if(T$=vU(y0._debugInfo),x$=Q0(y0),typeof x$!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var S$=x$.call(y0);if(S$===y0){if(j0.tag!==0||Object.prototype.toString.call(j0.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(S$)!=="[object Generator]")av||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),av=!0}else y0.entries!==x$||mK||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),mK=!0);return j0=V1(j0,w0,S$,_$),u$=T$,j0}if(typeof y0.then==="function")return T$=vU(y0._debugInfo),j0=e$(j0,w0,Nz(y0),_$),u$=T$,j0;if(y0.$$typeof===fI)return e$(j0,w0,Vz(j0,y0),_$);Bz(j0,y0)}if(typeof y0==="string"&&y0!==""||typeof y0==="number"||typeof y0==="bigint")return T$=""+y0,w0!==null&&w0.tag===6?(z(j0,w0.sibling),_$=V(w0,T$),_$.return=j0,j0=_$):(z(j0,w0),_$=KL(T$,j0.mode,_$),_$.return=j0,_$._debugOwner=j0,_$._debugTask=j0._debugTask,_$._debugInfo=u$,j0=_$),f(j0);return typeof y0==="function"&&jz(j0,y0),typeof y0==="symbol"&&kz(j0,y0),z(j0,w0)}return function(j0,w0,y0,_$){var T$=u$;u$=null;try{DJ=0;var x$=e$(j0,w0,y0,_$);return pX=null,x$}catch(N1){if(N1===nX||N1===n8)throw N1;var S$=S(29,N1,null,j0.mode);S$.lanes=_$,S$.return=j0;var P$=S$._debugInfo=u$;if(S$._debugOwner=j0._debugOwner,S$._debugTask=j0._debugTask,P$!=null){for(var b$=P$.length-1;0<=b$;b$--)if(typeof P$[b$].stack==="string"){S$._debugOwner=P$[b$],S$._debugTask=P$[b$].debugTask;break}}return S$}finally{u$=T$}}}function iR(U,X){var z=DU(U);return U=!z&&typeof Q0(U)==="function",z||U?(z=z?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",z,X,z),!1):!0}function vL(U){U.updateQueue={baseState:U.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function CL(U,X){U=U.updateQueue,X.updateQueue===U&&(X.updateQueue={baseState:U.baseState,firstBaseUpdate:U.firstBaseUpdate,lastBaseUpdate:U.lastBaseUpdate,shared:U.shared,callbacks:null})}function c_(U){return{lane:U,tag:IC,payload:null,callback:null,next:null}}function l_(U,X,z){var D=U.updateQueue;if(D===null)return null;if(D=D.shared,iK===D&&!GC){var V=t(U);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
101
|
-
|
|
102
|
-
Please update the following component: %s`,V),GC=!0}if((_1&HU)!==PU)return V=D.pending,V===null?X.next=X:(X.next=V.next,V.next=X),D.pending=X,X=Mz(U),ER(U,null,z),X;return Tz(U,D,X,z),Mz(U)}function MY(U,X,z){if(X=X.updateQueue,X!==null&&(X=X.shared,(z&4194048)!==0)){var D=X.lanes;D&=U.pendingLanes,z|=D,X.lanes=z,l0(U,z)}}function gz(U,X){var{updateQueue:z,alternate:D}=U;if(D!==null&&(D=D.updateQueue,z===D)){var V=null,C=null;if(z=z.firstBaseUpdate,z!==null){do{var f={lane:z.lane,tag:z.tag,payload:z.payload,callback:null,next:null};C===null?V=C=f:C=C.next=f,z=z.next}while(z!==null);C===null?V=C=X:C=C.next=X}else V=C=X;z={baseState:D.baseState,firstBaseUpdate:V,lastBaseUpdate:C,shared:D.shared,callbacks:D.callbacks},U.updateQueue=z;return}U=z.lastBaseUpdate,U===null?z.firstBaseUpdate=X:U.next=X,z.lastBaseUpdate=X}function AY(){if(oK){var U=uX;if(U!==null)throw U}}function EY(U,X,z,D){oK=!1;var V=U.updateQueue;O2=!1,iK=V.shared;var{firstBaseUpdate:C,lastBaseUpdate:f}=V,n=V.shared.pending;if(n!==null){V.shared.pending=null;var U0=n,Z0=U0.next;U0.next=null,f===null?C=Z0:f.next=Z0,f=U0;var h0=U.alternate;h0!==null&&(h0=h0.updateQueue,n=h0.lastBaseUpdate,n!==f&&(n===null?h0.firstBaseUpdate=Z0:n.next=Z0,h0.lastBaseUpdate=U0))}if(C!==null){var u0=V.baseState;f=0,h0=Z0=U0=null,n=C;do{var g0=n.lane&-536870913,o0=g0!==n.lane;if(o0?(n$&g0)===g0:(D&g0)===g0){g0!==0&&g0===Z4&&(oK=!0),h0!==null&&(h0=h0.next={lane:0,tag:n.tag,payload:n.payload,callback:null,next:null});$:{g0=U;var F$=n,E$=X,V1=z;switch(F$.tag){case _C:if(F$=F$.payload,typeof F$==="function"){bX=!0;var e$=F$.call(V1,u0,E$);if(g0.mode&fU){c0(!0);try{F$.call(V1,u0,E$)}finally{c0(!1)}}bX=!1,u0=e$;break $}u0=F$;break $;case dK:g0.flags=g0.flags&-65537|128;case IC:if(e$=F$.payload,typeof e$==="function"){if(bX=!0,F$=e$.call(V1,u0,E$),g0.mode&fU){c0(!0);try{e$.call(V1,u0,E$)}finally{c0(!1)}}bX=!1}else F$=e$;if(F$===null||F$===void 0)break $;u0=i$({},u0,F$);break $;case XC:O2=!0}}g0=n.callback,g0!==null&&(U.flags|=64,o0&&(U.flags|=8192),o0=V.callbacks,o0===null?V.callbacks=[g0]:o0.push(g0))}else o0={lane:g0,tag:n.tag,payload:n.payload,callback:n.callback,next:null},h0===null?(Z0=h0=o0,U0=u0):h0=h0.next=o0,f|=g0;if(n=n.next,n===null)if(n=V.shared.pending,n===null)break;else o0=n,n=o0.next,o0.next=null,V.lastBaseUpdate=o0,V.shared.pending=null}while(1);h0===null&&(U0=u0),V.baseState=U0,V.firstBaseUpdate=Z0,V.lastBaseUpdate=h0,C===null&&(V.shared.lanes=0),D2|=f,U.lanes=f,U.memoizedState=u0}iK=null}function oR(U,X){if(typeof U!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+U);U.call(X)}function _x(U,X){var z=U.shared.hiddenCallbacks;if(z!==null)for(U.shared.hiddenCallbacks=null,U=0;U<z.length;U++)oR(z[U],X)}function tR(U,X){var z=U.callbacks;if(z!==null)for(U.callbacks=null,U=0;U<z.length;U++)oR(z[U],X)}function rR(U,X){var z=dI;K(c8,z,U),K(cX,X,U),dI=z|X.baseLanes}function qL(U){K(c8,dI,U),K(cX,cX.current,U)}function NL(U){dI=c8.current,Q(cX,U),Q(c8,U)}function m_(U){var X=U.alternate;K(_U,_U.current&lX,U),K(S6,U,U),i6===null&&(X===null||cX.current!==null?i6=U:X.memoizedState!==null&&(i6=U))}function BL(U){K(_U,_U.current,U),K(S6,U,U),i6===null&&(i6=U)}function aR(U){U.tag===22?(K(_U,_U.current,U),K(S6,U,U),i6===null&&(i6=U)):d_(U)}function d_(U){K(_U,_U.current,U),K(S6,S6.current,U)}function T6(U){Q(S6,U),i6===U&&(i6=null),Q(_U,U)}function wz(U){for(var X=U;X!==null;){if(X.tag===13){var z=X.memoizedState;if(z!==null&&(z=z.dehydrated,z===null||c9(z)||l9(z)))return X}else if(X.tag===19&&(X.memoizedProps.revealOrder==="forwards"||X.memoizedProps.revealOrder==="backwards"||X.memoizedProps.revealOrder==="unstable_legacy-backwards"||X.memoizedProps.revealOrder==="together")){if((X.flags&128)!==0)return X}else if(X.child!==null){X.child.return=X,X=X.child;continue}if(X===U)break;for(;X.sibling===null;){if(X.return===null||X.return===U)return null;X=X.return}X.sibling.return=X.return,X=X.sibling}return null}function d$(){var U=t0;t6===null?t6=[U]:t6.push(U)}function D$(){var U=t0;if(t6!==null&&(V_++,t6[V_]!==U)){var X=t(w$);if(!YC.has(X)&&(YC.add(X),t6!==null)){for(var z="",D=0;D<=V_;D++){var V=t6[D],C=D===V_?U:V;for(V=D+1+". "+V;30>V.length;)V+=" ";V+=C+`
|
|
103
|
-
`,z+=V}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
104
|
-
|
|
105
|
-
Previous render Next render
|
|
106
|
-
------------------------------------------------------
|
|
107
|
-
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
108
|
-
`,X,z)}}}function QX(U){U===void 0||U===null||DU(U)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",t0,typeof U)}function xz(){var U=t(w$);QC.has(U)||(QC.add(U),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",U))}function $U(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
109
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
110
|
-
2. You might be breaking the Rules of Hooks
|
|
111
|
-
3. You might have more than one copy of React in the same app
|
|
112
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function jL(U,X){if(FJ)return!1;if(X===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",t0),!1;U.length!==X.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
113
|
-
|
|
114
|
-
Previous: %s
|
|
115
|
-
Incoming: %s`,t0,"["+X.join(", ")+"]","["+U.join(", ")+"]");for(var z=0;z<X.length&&z<U.length;z++)if(!pU(U[z],X[z]))return!1;return!0}function kL(U,X,z,D,V,C){if(R_=C,w$=X,t6=U!==null?U._debugHookTypes:null,V_=-1,FJ=U!==null&&U.type!==X.type,Object.prototype.toString.call(z)==="[object AsyncFunction]"||Object.prototype.toString.call(z)==="[object AsyncGeneratorFunction]")C=t(w$),tK.has(C)||(tK.add(C),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",C===null?"An unknown Component":"<"+C+">"));X.memoizedState=null,X.updateQueue=null,X.lanes=0,e0.H=U!==null&&U.memoizedState!==null?aK:t6!==null?zC:rK,W4=C=(X.mode&fU)!==j$;var f=pK(z,D,V);if(W4=!1,dX&&(f=gL(X,z,D,V)),C){c0(!0);try{f=gL(X,z,D,V)}finally{c0(!1)}}return sR(U,X),f}function sR(U,X){X._debugHookTypes=t6,X.dependencies===null?P_!==null&&(X.dependencies={lanes:0,firstContext:null,_debugThenableState:P_}):X.dependencies._debugThenableState=P_,e0.H=TJ;var z=T1!==null&&T1.next!==null;if(R_=0,t6=t0=JU=T1=w$=null,V_=-1,U!==null&&(U.flags&65011712)!==(X.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),m8=!1,HJ=0,P_=null,z)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");U===null||QU||(U=U.dependencies,U!==null&&Pz(U)&&(QU=!0)),KJ?(KJ=!1,U=!0):U=!1,U&&(X=t(X)||"Unknown",JC.has(X)||tK.has(X)||(JC.add(X),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function gL(U,X,z,D){w$=U;var V=0;do{if(dX&&(P_=null),HJ=0,dX=!1,V>=py)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(V+=1,FJ=!1,JU=T1=null,U.updateQueue!=null){var C=U.updateQueue;C.lastEffect=null,C.events=null,C.stores=null,C.memoCache!=null&&(C.memoCache.index=0)}V_=-1,e0.H=ZC,C=pK(X,z,D)}while(dX);return C}function Xx(){var U=e0.H,X=U.useState()[0];return X=typeof X.then==="function"?RY(X):X,U=U.useState()[0],(T1!==null?T1.memoizedState:null)!==U&&(w$.flags|=1024),X}function wL(){var U=d8!==0;return d8=0,U}function xL(U,X,z){X.updateQueue=U.updateQueue,X.flags=(X.mode&zI)!==j$?X.flags&-402655237:X.flags&-2053,U.lanes&=~z}function fL(U){if(m8){for(U=U.memoizedState;U!==null;){var X=U.queue;X!==null&&(X.pending=null),U=U.next}m8=!1}R_=0,t6=JU=T1=w$=null,V_=-1,t0=null,dX=!1,HJ=d8=0,P_=null}function bU(){var U={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return JU===null?w$.memoizedState=JU=U:JU=JU.next=U,JU}function Z1(){if(T1===null){var U=w$.alternate;U=U!==null?U.memoizedState:null}else U=T1.next;var X=JU===null?w$.memoizedState:JU.next;if(X!==null)JU=X,T1=U;else{if(U===null){if(w$.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}T1=U,U={memoizedState:T1.memoizedState,baseState:T1.baseState,baseQueue:T1.baseQueue,queue:T1.queue,next:null},JU===null?w$.memoizedState=JU=U:JU=JU.next=U}return JU}function fz(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function RY(U){var X=HJ;return HJ+=1,P_===null&&(P_=bR()),U=uR(P_,U,X),X=w$,(JU===null?X.memoizedState:JU.next)===null&&(X=X.alternate,e0.H=X!==null&&X.memoizedState!==null?aK:rK),U}function i_(U){if(U!==null&&typeof U==="object"){if(typeof U.then==="function")return RY(U);if(U.$$typeof===fI)return k1(U)}throw Error("An unsupported type was passed to use(): "+String(U))}function s2(U){var X=null,z=w$.updateQueue;if(z!==null&&(X=z.memoCache),X==null){var D=w$.alternate;D!==null&&(D=D.updateQueue,D!==null&&(D=D.memoCache,D!=null&&(X={data:D.data.map(function(V){return V.slice()}),index:0})))}if(X==null&&(X={data:[],index:0}),z===null&&(z=fz(),w$.updateQueue=z),z.memoCache=X,z=X.data[X.index],z===void 0||FJ)for(z=X.data[X.index]=Array(U),D=0;D<U;D++)z[D]=Mf;else z.length!==U&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",z.length,U);return X.index++,z}function GI(U,X){return typeof X==="function"?X(U):X}function yL(U,X,z){var D=bU();if(z!==void 0){var V=z(X);if(W4){c0(!0);try{z(X)}finally{c0(!1)}}}else V=X;return D.memoizedState=D.baseState=V,U={pending:null,lanes:0,dispatch:null,lastRenderedReducer:U,lastRenderedState:V},D.queue=U,U=U.dispatch=zx.bind(null,w$,U),[D.memoizedState,U]}function zX(U){var X=Z1();return bL(X,T1,U)}function bL(U,X,z){var D=U.queue;if(D===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");D.lastRenderedReducer=z;var V=U.baseQueue,C=D.pending;if(C!==null){if(V!==null){var f=V.next;V.next=C.next,C.next=f}X.baseQueue!==V&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),X.baseQueue=V=C,D.pending=null}if(C=U.baseState,V===null)U.memoizedState=C;else{X=V.next;var n=f=null,U0=null,Z0=X,h0=!1;do{var u0=Z0.lane&-536870913;if(u0!==Z0.lane?(n$&u0)===u0:(R_&u0)===u0){var g0=Z0.revertLane;if(g0===0)U0!==null&&(U0=U0.next={lane:0,revertLane:0,gesture:null,action:Z0.action,hasEagerState:Z0.hasEagerState,eagerState:Z0.eagerState,next:null}),u0===Z4&&(h0=!0);else if((R_&g0)===g0){Z0=Z0.next,g0===Z4&&(h0=!0);continue}else u0={lane:0,revertLane:Z0.revertLane,gesture:null,action:Z0.action,hasEagerState:Z0.hasEagerState,eagerState:Z0.eagerState,next:null},U0===null?(n=U0=u0,f=C):U0=U0.next=u0,w$.lanes|=g0,D2|=g0;u0=Z0.action,W4&&z(C,u0),C=Z0.hasEagerState?Z0.eagerState:z(C,u0)}else g0={lane:u0,revertLane:Z0.revertLane,gesture:Z0.gesture,action:Z0.action,hasEagerState:Z0.hasEagerState,eagerState:Z0.eagerState,next:null},U0===null?(n=U0=g0,f=C):U0=U0.next=g0,w$.lanes|=u0,D2|=u0;Z0=Z0.next}while(Z0!==null&&Z0!==X);if(U0===null?f=C:U0.next=n,!pU(C,U.memoizedState)&&(QU=!0,h0&&(z=uX,z!==null)))throw z;U.memoizedState=C,U.baseState=f,U.baseQueue=U0,D.lastRenderedState=C}return V===null&&(D.lanes=0),[U.memoizedState,D.dispatch]}function PY(U){var X=Z1(),z=X.queue;if(z===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");z.lastRenderedReducer=U;var{dispatch:D,pending:V}=z,C=X.memoizedState;if(V!==null){z.pending=null;var f=V=V.next;do C=U(C,f.action),f=f.next;while(f!==V);pU(C,X.memoizedState)||(QU=!0),X.memoizedState=C,X.baseQueue===null&&(X.baseState=C),z.lastRenderedState=C}return[C,D]}function hL(U,X,z){var D=w$,V=bU();if(a$){if(z===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var C=z();mX||C===z()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),mX=!0)}else{if(C=X(),mX||(z=X(),pU(C,z)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),mX=!0)),M1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(n$&127)!==0||eR(D,X,C)}return V.memoizedState=C,z={value:C,getSnapshot:X},V.queue=z,uz(UP.bind(null,D,z,U),[U]),D.flags|=2048,OX(o6|mU,{destroy:void 0},$P.bind(null,D,z,C,X),null),C}function yz(U,X,z){var D=w$,V=Z1(),C=a$;if(C){if(z===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");z=z()}else if(z=X(),!mX){var f=X();pU(z,f)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),mX=!0)}if(f=!pU((T1||V).memoizedState,z))V.memoizedState=z,QU=!0;V=V.queue;var n=UP.bind(null,D,V,U);if(U6(2048,mU,n,[U]),V.getSnapshot!==X||f||JU!==null&&JU.memoizedState.tag&o6){if(D.flags|=2048,OX(o6|mU,{destroy:void 0},$P.bind(null,D,V,z,X),null),M1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");C||(R_&127)!==0||eR(D,X,z)}return z}function eR(U,X,z){U.flags|=16384,U={getSnapshot:X,value:z},X=w$.updateQueue,X===null?(X=fz(),w$.updateQueue=X,X.stores=[U]):(z=X.stores,z===null?X.stores=[U]:z.push(U))}function $P(U,X,z,D){X.value=z,X.getSnapshot=D,IP(X)&&_P(U)}function UP(U,X,z){return z(function(){IP(X)&&(RI(2,"updateSyncExternalStore()",U),_P(U))})}function IP(U){var X=U.getSnapshot;U=U.value;try{var z=X();return!pU(U,z)}catch(D){return!0}}function _P(U){var X=wU(U,2);X!==null&&l1(X,U,2)}function uL(U){var X=bU();if(typeof U==="function"){var z=U;if(U=z(),W4){c0(!0);try{z()}finally{c0(!1)}}}return X.memoizedState=X.baseState=U,X.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:GI,lastRenderedState:U},X}function nL(U){U=uL(U);var X=U.queue,z=RP.bind(null,w$,X);return X.dispatch=z,[U.memoizedState,z]}function pL(U){var X=bU();X.memoizedState=X.baseState=U;var z={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return X.queue=z,X=I9.bind(null,w$,!0,z),z.dispatch=X,[U,X]}function XP(U,X){var z=Z1();return GP(z,T1,U,X)}function GP(U,X,z,D){return U.baseState=z,bL(U,T1,typeof D==="function"?D:GI)}function YP(U,X){var z=Z1();if(T1!==null)return GP(z,T1,U,X);return z.baseState=U,[U,z.queue.dispatch]}function Gx(U,X,z,D,V){if(dz(U))throw Error("Cannot update form state while rendering.");if(U=X.action,U!==null){var C={payload:V,action:U,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){C.listeners.push(f)}};e0.T!==null?z(!0):C.isTransition=!1,D(C),z=X.pending,z===null?(C.next=X.pending=C,JP(X,C)):(C.next=z.next,X.pending=z.next=C)}}function JP(U,X){var{action:z,payload:D}=X,V=U.state;if(X.isTransition){var C=e0.T,f={};f._updatedFibers=new Set,e0.T=f;try{var n=z(V,D),U0=e0.S;U0!==null&&U0(f,n),QP(U,X,n)}catch(Z0){cL(U,X,Z0)}finally{C!==null&&f.types!==null&&(C.types!==null&&C.types!==f.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),C.types=f.types),e0.T=C,C===null&&f._updatedFibers&&(U=f._updatedFibers.size,f._updatedFibers.clear(),10<U&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{f=z(V,D),QP(U,X,f)}catch(Z0){cL(U,X,Z0)}}function QP(U,X,z){z!==null&&typeof z==="object"&&typeof z.then==="function"?(e0.asyncTransitions++,z.then(mz,mz),z.then(function(D){zP(U,X,D)},function(D){return cL(U,X,D)}),X.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):zP(U,X,z)}function zP(U,X,z){X.status="fulfilled",X.value=z,ZP(X),U.state=z,X=U.pending,X!==null&&(z=X.next,z===X?U.pending=null:(z=z.next,X.next=z,JP(U,z)))}function cL(U,X,z){var D=U.pending;if(U.pending=null,D!==null){D=D.next;do X.status="rejected",X.reason=z,ZP(X),X=X.next;while(X!==D)}U.action=null}function ZP(U){U=U.listeners;for(var X=0;X<U.length;X++)(0,U[X])()}function OP(U,X){return X}function ZX(U,X){if(a$){var z=M1.formState;if(z!==null){$:{var D=w$;if(a$){if(q1){U:{var V=q1;for(var C=m6;V.nodeType!==8;){if(!C){V=null;break U}if(V=A6(V.nextSibling),V===null){V=null;break U}}C=V.data,V=C===AD||C===tC?V:null}if(V){q1=A6(V.nextSibling),D=V.data===AD;break $}}u_(D)}D=!1}D&&(X=z[0])}}return z=bU(),z.memoizedState=z.baseState=X,D={pending:null,lanes:0,dispatch:null,lastRenderedReducer:OP,lastRenderedState:X},z.queue=D,z=RP.bind(null,w$,D),D.dispatch=z,D=uL(!1),C=I9.bind(null,w$,!1,D.queue),D=bU(),V={state:X,dispatch:null,action:U,pending:null},D.queue=V,z=Gx.bind(null,w$,V,C,z),V.dispatch=z,D.memoizedState=U,[X,z,!1]}function bz(U){var X=Z1();return LP(X,T1,U)}function LP(U,X,z){if(X=bL(U,X,OP)[0],U=zX(GI)[0],typeof X==="object"&&X!==null&&typeof X.then==="function")try{var D=RY(X)}catch(f){if(f===nX)throw n8;throw f}else D=X;X=Z1();var V=X.queue,C=V.dispatch;return z!==X.memoizedState&&(w$.flags|=2048,OX(o6|mU,{destroy:void 0},Yx.bind(null,V,z),null)),[D,C,U]}function Yx(U,X){U.action=X}function hz(U){var X=Z1(),z=T1;if(z!==null)return LP(X,z,U);Z1(),X=X.memoizedState,z=Z1();var D=z.queue.dispatch;return z.memoizedState=U,[X,D,!1]}function OX(U,X,z,D){return U={tag:U,create:z,deps:D,inst:X,next:null},X=w$.updateQueue,X===null&&(X=fz(),w$.updateQueue=X),z=X.lastEffect,z===null?X.lastEffect=U.next=U:(D=z.next,z.next=U,U.next=D,X.lastEffect=U),U}function lL(U){var X=bU();return U={current:U},X.memoizedState=U}function e2(U,X,z,D){var V=bU();w$.flags|=U,V.memoizedState=OX(o6|X,{destroy:void 0},z,D===void 0?null:D)}function U6(U,X,z,D){var V=Z1();D=D===void 0?null:D;var C=V.memoizedState.inst;T1!==null&&D!==null&&jL(D,T1.memoizedState.deps)?V.memoizedState=OX(X,C,z,D):(w$.flags|=U,V.memoizedState=OX(o6|X,C,z,D))}function uz(U,X){(w$.mode&zI)!==j$?e2(276826112,mU,U,X):e2(8390656,mU,U,X)}function Jx(U){w$.flags|=4;var X=w$.updateQueue;if(X===null)X=fz(),w$.updateQueue=X,X.events=[U];else{var z=X.events;z===null?X.events=[U]:z.push(U)}}function mL(U){var X=bU(),z={impl:U};return X.memoizedState=z,function(){if((_1&HU)!==PU)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return z.impl.apply(void 0,arguments)}}function nz(U){var X=Z1().memoizedState;return Jx({ref:X,nextImpl:U}),function(){if((_1&HU)!==PU)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return X.impl.apply(void 0,arguments)}}function dL(U,X){var z=4194308;return(w$.mode&zI)!==j$&&(z|=134217728),e2(z,v6,U,X)}function KP(U,X){if(typeof X==="function"){U=U();var z=X(U);return function(){typeof z==="function"?z():X(null)}}if(X!==null&&X!==void 0)return X.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(X).join(", ")+"}"),U=U(),X.current=U,function(){X.current=null}}function iL(U,X,z){typeof X!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",X!==null?typeof X:"null"),z=z!==null&&z!==void 0?z.concat([U]):null;var D=4194308;(w$.mode&zI)!==j$&&(D|=134217728),e2(D,v6,KP.bind(null,X,U),z)}function pz(U,X,z){typeof X!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",X!==null?typeof X:"null"),z=z!==null&&z!==void 0?z.concat([U]):null,U6(4,v6,KP.bind(null,X,U),z)}function oL(U,X){return bU().memoizedState=[U,X===void 0?null:X],U}function cz(U,X){var z=Z1();X=X===void 0?null:X;var D=z.memoizedState;if(X!==null&&jL(X,D[1]))return D[0];return z.memoizedState=[U,X],U}function tL(U,X){var z=bU();X=X===void 0?null:X;var D=U();if(W4){c0(!0);try{U()}finally{c0(!1)}}return z.memoizedState=[D,X],D}function lz(U,X){var z=Z1();X=X===void 0?null:X;var D=z.memoizedState;if(X!==null&&jL(X,D[1]))return D[0];if(D=U(),W4){c0(!0);try{U()}finally{c0(!1)}}return z.memoizedState=[D,X],D}function rL(U,X){var z=bU();return aL(z,U,X)}function DP(U,X){var z=Z1();return HP(z,T1.memoizedState,U,X)}function WP(U,X){var z=Z1();return T1===null?aL(z,U,X):HP(z,T1.memoizedState,U,X)}function aL(U,X,z){if(z===void 0||(R_&1073741824)!==0&&(n$&261930)===0)return U.memoizedState=X;return U.memoizedState=z,U=FV(),w$.lanes|=U,D2|=U,z}function HP(U,X,z,D){if(pU(z,X))return z;if(cX.current!==null)return U=aL(U,z,D),pU(U,X)||(QU=!0),U;if((R_&42)===0||(R_&1073741824)!==0&&(n$&261930)===0)return QU=!0,U.memoizedState=z;return U=FV(),w$.lanes|=U,D2|=U,X}function mz(){e0.asyncTransitions--}function FP(U,X,z,D,V){var C=Q1.p;Q1.p=C!==0&&C<QI?C:QI;var f=e0.T,n={};n._updatedFibers=new Set,e0.T=n,I9(U,!1,X,z);try{var U0=V(),Z0=e0.S;if(Z0!==null&&Z0(n,U0),U0!==null&&typeof U0==="object"&&typeof U0.then==="function"){e0.asyncTransitions++,U0.then(mz,mz);var h0=Ix(U0,D);VY(U,X,h0,M6(U))}else VY(U,X,D,M6(U))}catch(u0){VY(U,X,{then:function(){},status:"rejected",reason:u0},M6(U))}finally{Q1.p=C,f!==null&&n.types!==null&&(f.types!==null&&f.types!==n.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),f.types=n.types),e0.T=f,f===null&&n._updatedFibers&&(U=n._updatedFibers.size,n._updatedFibers.clear(),10<U&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function sL(U,X,z,D){if(U.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var V=TP(U).queue;$x(U),FP(U,V,X,v4,z===null?M:function(){return MP(U),z(D)})}function TP(U){var X=U.memoizedState;if(X!==null)return X;X={memoizedState:v4,baseState:v4,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:GI,lastRenderedState:v4},next:null};var z={};return X.next={memoizedState:z,baseState:z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:GI,lastRenderedState:z},next:null},U.memoizedState=X,U=U.alternate,U!==null&&(U.memoizedState=X),X}function MP(U){e0.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var X=TP(U);X.next===null&&(X=U.alternate.memoizedState),VY(U,X.next.queue,{},M6(U))}function eL(){var U=uL(!1);return U=FP.bind(null,w$,U.queue,!0,!1),bU().memoizedState=U,[!1,U]}function AP(){var U=zX(GI)[0],X=Z1().memoizedState;return[typeof U==="boolean"?U:RY(U),X]}function EP(){var U=PY(GI)[0],X=Z1().memoizedState;return[typeof U==="boolean"?U:RY(U),X]}function $4(){return k1(gJ)}function $9(){var U=bU(),X=M1.identifierPrefix;if(a$){var z=F_,D=H_;z=(D&~(1<<32-hU(D)-1)).toString(32)+z,X="_"+X+"R_"+z,z=d8++,0<z&&(X+="H"+z.toString(32)),X+="_"}else z=ny++,X="_"+X+"r_"+z.toString(32)+"_";return U.memoizedState=X}function U9(){return bU().memoizedState=Qx.bind(null,w$)}function Qx(U,X){for(var z=U.return;z!==null;){switch(z.tag){case 24:case 3:var D=M6(z),V=c_(D),C=l_(z,V,D);C!==null&&(RI(D,"refresh()",U),l1(C,z,D),MY(C,z,D)),U=EL(),X!==null&&X!==void 0&&C!==null&&console.error("The seed argument is not enabled outside experimental channels."),V.payload={cache:U};return}z=z.return}}function zx(U,X,z){var D=arguments;typeof D[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),D=M6(U);var V={lane:D,revertLane:0,gesture:null,action:z,hasEagerState:!1,eagerState:null,next:null};dz(U)?PP(X,V):(V=zL(U,X,V,D),V!==null&&(RI(D,"dispatch()",U),l1(V,U,D),VP(V,X,D)))}function RP(U,X,z){var D=arguments;typeof D[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),D=M6(U),VY(U,X,z,D)&&RI(D,"setState()",U)}function VY(U,X,z,D){var V={lane:D,revertLane:0,gesture:null,action:z,hasEagerState:!1,eagerState:null,next:null};if(dz(U))PP(X,V);else{var C=U.alternate;if(U.lanes===0&&(C===null||C.lanes===0)&&(C=X.lastRenderedReducer,C!==null)){var f=e0.H;e0.H=OI;try{var n=X.lastRenderedState,U0=C(n,z);if(V.hasEagerState=!0,V.eagerState=U0,pU(U0,n))return Tz(U,X,V,0),M1===null&&Fz(),!1}catch(Z0){}finally{e0.H=f}}if(z=zL(U,X,V,D),z!==null)return l1(z,U,D),VP(z,X,D),!0}return!1}function I9(U,X,z,D){if(e0.T===null&&Z4===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),D={lane:2,revertLane:k9(),gesture:null,action:D,hasEagerState:!1,eagerState:null,next:null},dz(U)){if(X)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else X=zL(U,z,D,2),X!==null&&(RI(2,"setOptimistic()",U),l1(X,U,2))}function dz(U){var X=U.alternate;return U===w$||X!==null&&X===w$}function PP(U,X){dX=m8=!0;var z=U.pending;z===null?X.next=X:(X.next=z.next,z.next=X),U.pending=X}function VP(U,X,z){if((z&4194048)!==0){var D=X.lanes;D&=U.pendingLanes,z|=D,X.lanes=z,l0(U,z)}}function _9(U){if(U!==null&&typeof U!=="function"){var X=String(U);EC.has(X)||(EC.add(X),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",U))}}function X9(U,X,z,D){var V=U.memoizedState,C=z(D,V);if(U.mode&fU){c0(!0);try{C=z(D,V)}finally{c0(!1)}}C===void 0&&(X=G0(X)||"Component",FC.has(X)||(FC.add(X),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",X))),V=C===null||C===void 0?V:i$({},V,C),U.memoizedState=V,U.lanes===0&&(U.updateQueue.baseState=V)}function SP(U,X,z,D,V,C,f){var n=U.stateNode;if(typeof n.shouldComponentUpdate==="function"){if(z=n.shouldComponentUpdate(D,C,f),U.mode&fU){c0(!0);try{z=n.shouldComponentUpdate(D,C,f)}finally{c0(!1)}}return z===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",G0(X)||"Component"),z}return X.prototype&&X.prototype.isPureReactComponent?!LY(z,D)||!LY(V,C):!0}function vP(U,X,z,D){var V=X.state;typeof X.componentWillReceiveProps==="function"&&X.componentWillReceiveProps(z,D),typeof X.UNSAFE_componentWillReceiveProps==="function"&&X.UNSAFE_componentWillReceiveProps(z,D),X.state!==V&&(U=t(U)||"Component",LC.has(U)||(LC.add(U),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",U)),sK.enqueueReplaceState(X,X.state,null))}function U4(U,X){var z=X;if("ref"in X){z={};for(var D in X)D!=="ref"&&(z[D]=X[D])}if(U=U.defaultProps){z===X&&(z=i$({},z));for(var V in U)z[V]===void 0&&(z[V]=U[V])}return z}function CP(U){NK(U),console.warn(`%s
|
|
116
|
-
|
|
117
|
-
%s
|
|
118
|
-
`,iX?"An error occurred in the <"+iX+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
119
|
-
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function qP(U){var X=iX?"The above error occurred in the <"+iX+"> component.":"The above error occurred in one of your React components.",z="React will try to recreate this component tree from scratch using the error boundary you provided, "+((eK||"Anonymous")+".");if(typeof U==="object"&&U!==null&&typeof U.environmentName==="string"){var D=U.environmentName;U=[`%o
|
|
120
|
-
|
|
121
|
-
%s
|
|
122
|
-
|
|
123
|
-
%s
|
|
124
|
-
`,U,X,z].slice(0),typeof U[0]==="string"?U.splice(0,1,_q+" "+U[0],Xq,FZ+D+FZ,Gq):U.splice(0,0,_q,Xq,FZ+D+FZ,Gq),U.unshift(console),D=Qb.apply(console.error,U),D()}else console.error(`%o
|
|
125
|
-
|
|
126
|
-
%s
|
|
127
|
-
|
|
128
|
-
%s
|
|
129
|
-
`,U,X,z)}function NP(U){NK(U)}function iz(U,X){try{iX=X.source?t(X.source):null,eK=null;var z=X.value;if(e0.actQueue!==null)e0.thrownErrors.push(z);else{var D=U.onUncaughtError;D(z,{componentStack:X.stack})}}catch(V){setTimeout(function(){throw V})}}function BP(U,X,z){try{iX=z.source?t(z.source):null,eK=t(X);var D=U.onCaughtError;D(z.value,{componentStack:z.stack,errorBoundary:X.tag===1?X.stateNode:null})}catch(V){setTimeout(function(){throw V})}}function G9(U,X,z){return z=c_(z),z.tag=dK,z.payload={element:null},z.callback=function(){r(X.source,iz,U,X)},z}function Y9(U){return U=c_(U),U.tag=dK,U}function J9(U,X,z,D){var V=z.type.getDerivedStateFromError;if(typeof V==="function"){var C=D.value;U.payload=function(){return V(C)},U.callback=function(){PR(z),r(D.source,BP,X,z,D)}}var f=z.stateNode;f!==null&&typeof f.componentDidCatch==="function"&&(U.callback=function(){PR(z),r(D.source,BP,X,z,D),typeof V!=="function"&&(H2===null?H2=new Set([this]):H2.add(this)),yy(this,D),typeof V==="function"||(z.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",t(z)||"Unknown")})}function Zx(U,X,z,D,V){if(z.flags|=32768,hI&&kY(U,V),D!==null&&typeof D==="object"&&typeof D.then==="function"){if(X=z.alternate,X!==null&&JX(X,z,V,!0),a$&&(pI=!0),z=S6.current,z!==null){switch(z.tag){case 31:case 13:return i6===null?I8():z.alternate===null&&b1===v_&&(b1=t8),z.flags&=-257,z.flags|=65536,z.lanes=V,D===p8?z.flags|=16384:(X=z.updateQueue,X===null?z.updateQueue=new Set([D]):X.add(D),q9(U,D,V)),!1;case 22:return z.flags|=65536,D===p8?z.flags|=16384:(X=z.updateQueue,X===null?(X={transitions:null,markerInstances:null,retryQueue:new Set([D])},z.updateQueue=X):(z=X.retryQueue,z===null?X.retryQueue=new Set([D]):z.add(D)),q9(U,D,V)),!1}throw Error("Unexpected Suspense handler tag ("+z.tag+"). This is a bug in React.")}return q9(U,D,V),I8(),!1}if(a$)return pI=!0,X=S6.current,X!==null?((X.flags&65536)===0&&(X.flags|=256),X.flags|=65536,X.lanes=V,D!==xK&&DY(W6(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:D}),z))):(D!==xK&&DY(W6(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:D}),z)),U=U.current.alternate,U.flags|=65536,V&=-V,U.lanes|=V,D=W6(D,z),V=G9(U.stateNode,D,V),gz(U,V),b1!==L2&&(b1=H4)),!1;var C=W6(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:D}),z);if(VJ===null?VJ=[C]:VJ.push(C),b1!==L2&&(b1=H4),X===null)return!0;D=W6(D,z),z=X;do{switch(z.tag){case 3:return z.flags|=65536,U=V&-V,z.lanes|=U,U=G9(z.stateNode,D,U),gz(z,U),!1;case 1:if(X=z.type,C=z.stateNode,(z.flags&128)===0&&(typeof X.getDerivedStateFromError==="function"||C!==null&&typeof C.componentDidCatch==="function"&&(H2===null||!H2.has(C))))return z.flags|=65536,V&=-V,z.lanes|=V,V=Y9(V),J9(V,U,z,D),gz(z,V),!1}z=z.return}while(z!==null);return!1}function CU(U,X,z,D){X.child=U===null?UC(X,null,z,D):D4(X,U.child,z,D)}function jP(U,X,z,D,V){z=z.render;var C=X.ref;if("ref"in D){var f={};for(var n in D)n!=="ref"&&(f[n]=D[n])}else f=D;if(r2(X),D=kL(U,X,z,f,C,V),n=wL(),U!==null&&!QU)return xL(U,X,V),Z_(U,X,V);return a$&&n&&WL(X),X.flags|=1,CU(U,X,D,V),X.child}function kP(U,X,z,D,V){if(U===null){var C=z.type;if(typeof C==="function"&&!OL(C)&&C.defaultProps===void 0&&z.compare===null)return z=d2(C),X.tag=15,X.type=z,z9(X,C),gP(U,X,z,D,V);return U=LL(z.type,null,D,X,X.mode,V),U.ref=X.ref,U.return=X,X.child=U}if(C=U.child,!W9(U,V)){var f=C.memoizedProps;if(z=z.compare,z=z!==null?z:LY,z(f,D)&&U.ref===X.ref)return Z_(U,X,V)}return X.flags|=1,U=Y_(C,D),U.ref=X.ref,U.return=X,X.child=U}function gP(U,X,z,D,V){if(U!==null){var C=U.memoizedProps;if(LY(C,D)&&U.ref===X.ref&&X.type===U.type)if(QU=!1,X.pendingProps=D=C,W9(U,V))(U.flags&131072)!==0&&(QU=!0);else return X.lanes=U.lanes,Z_(U,X,V)}return Q9(U,X,z,D,V)}function wP(U,X,z,D){var V=D.children,C=U!==null?U.memoizedState:null;if(U===null&&X.stateNode===null&&(X.stateNode={_visibility:eY,_pendingMarkers:null,_retryCache:null,_transitions:null}),D.mode==="hidden"){if((X.flags&128)!==0){if(C=C!==null?C.baseLanes|z:z,U!==null){D=X.child=U.child;for(V=0;D!==null;)V=V|D.lanes|D.childLanes,D=D.sibling;D=V&~C}else D=0,X.child=null;return xP(U,X,C,z,D)}if((z&536870912)!==0)X.memoizedState={baseLanes:0,cachePool:null},U!==null&&Cz(X,C!==null?C.cachePool:null),C!==null?rR(X,C):qL(X),aR(X);else return D=X.lanes=536870912,xP(U,X,C!==null?C.baseLanes|z:z,z,D)}else C!==null?(Cz(X,C.cachePool),rR(X,C),d_(X),X.memoizedState=null):(U!==null&&Cz(X,null),qL(X),d_(X));return CU(U,X,V,z),X.child}function SY(U,X){return U!==null&&U.tag===22||X.stateNode!==null||(X.stateNode={_visibility:eY,_pendingMarkers:null,_retryCache:null,_transitions:null}),X.sibling}function xP(U,X,z,D,V){var C=VL();return C=C===null?null:{parent:GU._currentValue,pool:C},X.memoizedState={baseLanes:z,cachePool:C},U!==null&&Cz(X,null),qL(X),aR(X),U!==null&&JX(U,X,D,!0),X.childLanes=V,null}function oz(U,X){var z=X.hidden;return z!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
130
|
-
- <Activity %s>
|
|
131
|
-
+ <Activity %s>`,z===!0?"hidden":z===!1?"hidden={false}":"hidden={...}",z?'mode="hidden"':'mode="visible"'),X=rz({mode:X.mode,children:X.children},U.mode),X.ref=U.ref,U.child=X,X.return=U,X}function fP(U,X,z){return D4(X,U.child,null,z),U=oz(X,X.pendingProps),U.flags|=2,T6(X),X.memoizedState=null,U}function Ox(U,X,z){var D=X.pendingProps,V=(X.flags&128)!==0;if(X.flags&=-129,U===null){if(a$){if(D.mode==="hidden")return U=oz(X,D),X.lanes=536870912,SY(null,U);if(BL(X),(U=q1)?(z=JS(U,m6),z=z!==null&&z.data===R4?z:null,z!==null&&(D={dehydrated:z,treeContext:qR(),retryLane:536870912,hydrationErrors:null},X.memoizedState=D,D=vR(z),D.return=X,X.child=D,BU=X,q1=null)):z=null,z===null)throw Ez(X,U),u_(X);return X.lanes=536870912,null}return oz(X,D)}var C=U.memoizedState;if(C!==null){var f=C.dehydrated;if(BL(X),V)if(X.flags&256)X.flags&=-257,X=fP(U,X,z);else if(X.memoizedState!==null)X.child=U.child,X.flags|=128,X=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(BR(),(z&536870912)!==0&&U8(X),QU||JX(U,X,z,!1),V=(z&U.childLanes)!==0,QU||V){if(D=M1,D!==null&&(f=L0(D,z),f!==0&&f!==C.retryLane))throw C.retryLane=f,wU(U,f),l1(D,U,f),$D;I8(),X=fP(U,X,z)}else U=C.treeContext,q1=A6(f.nextSibling),BU=X,a$=!0,G2=null,pI=!1,V6=null,m6=!1,U!==null&&NR(X,U),X=oz(X,D),X.flags|=4096;return X}return C=U.child,D={mode:D.mode,children:D.children},(z&536870912)!==0&&(z&U.lanes)!==0&&U8(X),U=Y_(C,D),U.ref=X.ref,X.child=U,U.return=X,U}function tz(U,X){var z=X.ref;if(z===null)U!==null&&U.ref!==null&&(X.flags|=4194816);else{if(typeof z!=="function"&&typeof z!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(U===null||U.ref!==z)X.flags|=4194816}}function Q9(U,X,z,D,V){if(z.prototype&&typeof z.prototype.render==="function"){var C=G0(z)||"Unknown";RC[C]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",C,C),RC[C]=!0)}if(X.mode&fU&&ZI.recordLegacyContextWarning(X,null),U===null&&(z9(X,X.type),z.contextTypes&&(C=G0(z)||"Unknown",VC[C]||(VC[C]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",C)))),r2(X),z=kL(U,X,z,D,void 0,V),D=wL(),U!==null&&!QU)return xL(U,X,V),Z_(U,X,V);return a$&&D&&WL(X),X.flags|=1,CU(U,X,z,V),X.child}function yP(U,X,z,D,V,C){if(r2(X),V_=-1,FJ=U!==null&&U.type!==X.type,X.updateQueue=null,z=gL(X,D,z,V),sR(U,X),D=wL(),U!==null&&!QU)return xL(U,X,C),Z_(U,X,C);return a$&&D&&WL(X),X.flags|=1,CU(U,X,z,C),X.child}function bP(U,X,z,D,V){switch(Y(X)){case!1:var C=X.stateNode,f=new X.type(X.memoizedProps,C.context).state;C.updater.enqueueSetState(C,f,null);break;case!0:X.flags|=128,X.flags|=65536,C=Error("Simulated error coming from DevTools");var n=V&-V;if(X.lanes|=n,f=M1,f===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");n=Y9(n),J9(n,f,X,W6(C,X)),gz(X,n)}if(r2(X),X.stateNode===null){if(f=X2,C=z.contextType,"contextType"in z&&C!==null&&(C===void 0||C.$$typeof!==fI)&&!AC.has(z)&&(AC.add(z),n=C===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof C!=="object"?" However, it is set to a "+typeof C+".":C.$$typeof===UK?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(C).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",G0(z)||"Component",n)),typeof C==="object"&&C!==null&&(f=k1(C)),C=new z(D,f),X.mode&fU){c0(!0);try{C=new z(D,f)}finally{c0(!1)}}if(f=X.memoizedState=C.state!==null&&C.state!==void 0?C.state:null,C.updater=sK,X.stateNode=C,C._reactInternals=X,C._reactInternalInstance=OC,typeof z.getDerivedStateFromProps==="function"&&f===null&&(f=G0(z)||"Component",KC.has(f)||(KC.add(f),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",f,C.state===null?"null":"undefined",f))),typeof z.getDerivedStateFromProps==="function"||typeof C.getSnapshotBeforeUpdate==="function"){var U0=n=f=null;if(typeof C.componentWillMount==="function"&&C.componentWillMount.__suppressDeprecationWarning!==!0?f="componentWillMount":typeof C.UNSAFE_componentWillMount==="function"&&(f="UNSAFE_componentWillMount"),typeof C.componentWillReceiveProps==="function"&&C.componentWillReceiveProps.__suppressDeprecationWarning!==!0?n="componentWillReceiveProps":typeof C.UNSAFE_componentWillReceiveProps==="function"&&(n="UNSAFE_componentWillReceiveProps"),typeof C.componentWillUpdate==="function"&&C.componentWillUpdate.__suppressDeprecationWarning!==!0?U0="componentWillUpdate":typeof C.UNSAFE_componentWillUpdate==="function"&&(U0="UNSAFE_componentWillUpdate"),f!==null||n!==null||U0!==null){C=G0(z)||"Component";var Z0=typeof z.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";WC.has(C)||(WC.add(C),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
132
|
-
|
|
133
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
134
|
-
|
|
135
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
136
|
-
https://react.dev/link/unsafe-component-lifecycles`,C,Z0,f!==null?`
|
|
137
|
-
`+f:"",n!==null?`
|
|
138
|
-
`+n:"",U0!==null?`
|
|
139
|
-
`+U0:""))}}C=X.stateNode,f=G0(z)||"Component",C.render||(z.prototype&&typeof z.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",f):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",f)),!C.getInitialState||C.getInitialState.isReactClassApproved||C.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",f),C.getDefaultProps&&!C.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",f),C.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",f),z.childContextTypes&&!MC.has(z)&&(MC.add(z),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",f)),z.contextTypes&&!TC.has(z)&&(TC.add(z),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",f)),typeof C.componentShouldUpdate==="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",f),z.prototype&&z.prototype.isPureReactComponent&&typeof C.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",G0(z)||"A pure component"),typeof C.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",f),typeof C.componentDidReceiveProps==="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",f),typeof C.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",f),typeof C.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",f),n=C.props!==D,C.props!==void 0&&n&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",f),C.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",f,f),typeof C.getSnapshotBeforeUpdate!=="function"||typeof C.componentDidUpdate==="function"||DC.has(z)||(DC.add(z),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",G0(z))),typeof C.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",f),typeof C.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",f),typeof z.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",f),(n=C.state)&&(typeof n!=="object"||DU(n))&&console.error("%s.state: must be set to an object or null",f),typeof C.getChildContext==="function"&&typeof z.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",f),C=X.stateNode,C.props=D,C.state=X.memoizedState,C.refs={},vL(X),f=z.contextType,C.context=typeof f==="object"&&f!==null?k1(f):X2,C.state===D&&(f=G0(z)||"Component",HC.has(f)||(HC.add(f),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",f))),X.mode&fU&&ZI.recordLegacyContextWarning(X,C),ZI.recordUnsafeLifecycleWarnings(X,C),C.state=X.memoizedState,f=z.getDerivedStateFromProps,typeof f==="function"&&(X9(X,z,f,D),C.state=X.memoizedState),typeof z.getDerivedStateFromProps==="function"||typeof C.getSnapshotBeforeUpdate==="function"||typeof C.UNSAFE_componentWillMount!=="function"&&typeof C.componentWillMount!=="function"||(f=C.state,typeof C.componentWillMount==="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount==="function"&&C.UNSAFE_componentWillMount(),f!==C.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",t(X)||"Component"),sK.enqueueReplaceState(C,C.state,null)),EY(X,D,C,V),AY(),C.state=X.memoizedState),typeof C.componentDidMount==="function"&&(X.flags|=4194308),(X.mode&zI)!==j$&&(X.flags|=134217728),C=!0}else if(U===null){C=X.stateNode;var h0=X.memoizedProps;n=U4(z,h0),C.props=n;var u0=C.context;U0=z.contextType,f=X2,typeof U0==="object"&&U0!==null&&(f=k1(U0)),Z0=z.getDerivedStateFromProps,U0=typeof Z0==="function"||typeof C.getSnapshotBeforeUpdate==="function",h0=X.pendingProps!==h0,U0||typeof C.UNSAFE_componentWillReceiveProps!=="function"&&typeof C.componentWillReceiveProps!=="function"||(h0||u0!==f)&&vP(X,C,D,f),O2=!1;var g0=X.memoizedState;C.state=g0,EY(X,D,C,V),AY(),u0=X.memoizedState,h0||g0!==u0||O2?(typeof Z0==="function"&&(X9(X,z,Z0,D),u0=X.memoizedState),(n=O2||SP(X,z,n,D,g0,u0,f))?(U0||typeof C.UNSAFE_componentWillMount!=="function"&&typeof C.componentWillMount!=="function"||(typeof C.componentWillMount==="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount==="function"&&C.UNSAFE_componentWillMount()),typeof C.componentDidMount==="function"&&(X.flags|=4194308),(X.mode&zI)!==j$&&(X.flags|=134217728)):(typeof C.componentDidMount==="function"&&(X.flags|=4194308),(X.mode&zI)!==j$&&(X.flags|=134217728),X.memoizedProps=D,X.memoizedState=u0),C.props=D,C.state=u0,C.context=f,C=n):(typeof C.componentDidMount==="function"&&(X.flags|=4194308),(X.mode&zI)!==j$&&(X.flags|=134217728),C=!1)}else{C=X.stateNode,CL(U,X),f=X.memoizedProps,U0=U4(z,f),C.props=U0,Z0=X.pendingProps,g0=C.context,u0=z.contextType,n=X2,typeof u0==="object"&&u0!==null&&(n=k1(u0)),h0=z.getDerivedStateFromProps,(u0=typeof h0==="function"||typeof C.getSnapshotBeforeUpdate==="function")||typeof C.UNSAFE_componentWillReceiveProps!=="function"&&typeof C.componentWillReceiveProps!=="function"||(f!==Z0||g0!==n)&&vP(X,C,D,n),O2=!1,g0=X.memoizedState,C.state=g0,EY(X,D,C,V),AY();var o0=X.memoizedState;f!==Z0||g0!==o0||O2||U!==null&&U.dependencies!==null&&Pz(U.dependencies)?(typeof h0==="function"&&(X9(X,z,h0,D),o0=X.memoizedState),(U0=O2||SP(X,z,U0,D,g0,o0,n)||U!==null&&U.dependencies!==null&&Pz(U.dependencies))?(u0||typeof C.UNSAFE_componentWillUpdate!=="function"&&typeof C.componentWillUpdate!=="function"||(typeof C.componentWillUpdate==="function"&&C.componentWillUpdate(D,o0,n),typeof C.UNSAFE_componentWillUpdate==="function"&&C.UNSAFE_componentWillUpdate(D,o0,n)),typeof C.componentDidUpdate==="function"&&(X.flags|=4),typeof C.getSnapshotBeforeUpdate==="function"&&(X.flags|=1024)):(typeof C.componentDidUpdate!=="function"||f===U.memoizedProps&&g0===U.memoizedState||(X.flags|=4),typeof C.getSnapshotBeforeUpdate!=="function"||f===U.memoizedProps&&g0===U.memoizedState||(X.flags|=1024),X.memoizedProps=D,X.memoizedState=o0),C.props=D,C.state=o0,C.context=n,C=U0):(typeof C.componentDidUpdate!=="function"||f===U.memoizedProps&&g0===U.memoizedState||(X.flags|=4),typeof C.getSnapshotBeforeUpdate!=="function"||f===U.memoizedProps&&g0===U.memoizedState||(X.flags|=1024),C=!1)}if(n=C,tz(U,X),f=(X.flags&128)!==0,n||f){if(n=X.stateNode,Y0(X),f&&typeof z.getDerivedStateFromError!=="function")z=null,cU=-1;else if(z=nv(n),X.mode&fU){c0(!0);try{nv(n)}finally{c0(!1)}}X.flags|=1,U!==null&&f?(X.child=D4(X,U.child,null,V),X.child=D4(X,null,z,V)):CU(U,X,z,V),X.memoizedState=n.state,U=X.child}else U=Z_(U,X,V);return V=X.stateNode,C&&V.props!==D&&(oX||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",t(X)||"a component"),oX=!0),U}function hP(U,X,z,D){return t2(),X.flags|=256,CU(U,X,z,D),X.child}function z9(U,X){X&&X.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
140
|
-
%s.childContextTypes = ...`,X.displayName||X.name||"Component"),typeof X.getDerivedStateFromProps==="function"&&(U=G0(X)||"Unknown",SC[U]||(console.error("%s: Function components do not support getDerivedStateFromProps.",U),SC[U]=!0)),typeof X.contextType==="object"&&X.contextType!==null&&(X=G0(X)||"Unknown",PC[X]||(console.error("%s: Function components do not support contextType.",X),PC[X]=!0))}function Z9(U){return{baseLanes:U,cachePool:yR()}}function O9(U,X,z){return U=U!==null?U.childLanes&~z:0,X&&(U|=Y6),U}function uP(U,X,z){var D,V=X.pendingProps;J(X)&&(X.flags|=128);var C=!1,f=(X.flags&128)!==0;if((D=f)||(D=U!==null&&U.memoizedState===null?!1:(_U.current&WJ)!==0),D&&(C=!0,X.flags&=-129),D=(X.flags&32)!==0,X.flags&=-33,U===null){if(a$){if(C?m_(X):d_(X),(U=q1)?(z=JS(U,m6),z=z!==null&&z.data!==R4?z:null,z!==null&&(D={dehydrated:z,treeContext:qR(),retryLane:536870912,hydrationErrors:null},X.memoizedState=D,D=vR(z),D.return=X,X.child=D,BU=X,q1=null)):z=null,z===null)throw Ez(X,U),u_(X);return l9(z)?X.lanes=32:X.lanes=536870912,null}var n=V.children;if(V=V.fallback,C){d_(X);var U0=X.mode;return n=rz({mode:"hidden",children:n},U0),V=i2(V,U0,z,null),n.return=X,V.return=X,n.sibling=V,X.child=n,V=X.child,V.memoizedState=Z9(z),V.childLanes=O9(U,D,z),X.memoizedState=UD,SY(null,V)}return m_(X),L9(X,n)}var Z0=U.memoizedState;if(Z0!==null){var h0=Z0.dehydrated;if(h0!==null){if(f)X.flags&256?(m_(X),X.flags&=-257,X=K9(U,X,z)):X.memoizedState!==null?(d_(X),X.child=U.child,X.flags|=128,X=null):(d_(X),n=V.fallback,U0=X.mode,V=rz({mode:"visible",children:V.children},U0),n=i2(n,U0,z,null),n.flags|=2,V.return=X,n.return=X,V.sibling=n,X.child=V,D4(X,U.child,null,z),V=X.child,V.memoizedState=Z9(z),V.childLanes=O9(U,D,z),X.memoizedState=UD,X=SY(null,V));else if(m_(X),BR(),(z&536870912)!==0&&U8(X),l9(h0)){if(D=h0.nextSibling&&h0.nextSibling.dataset,D){n=D.dgst;var u0=D.msg;U0=D.stck;var g0=D.cstck}C=u0,D=n,V=U0,h0=g0,n=C,U0=h0,n=n?Error(n):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),n.stack=V||"",n.digest=D,D=U0===void 0?null:U0,V={value:n,source:null,stack:D},typeof D==="string"&&wK.set(n,V),DY(V),X=K9(U,X,z)}else if(QU||JX(U,X,z,!1),D=(z&U.childLanes)!==0,QU||D){if(D=M1,D!==null&&(V=L0(D,z),V!==0&&V!==Z0.retryLane))throw Z0.retryLane=V,wU(U,V),l1(D,U,V),$D;c9(h0)||I8(),X=K9(U,X,z)}else c9(h0)?(X.flags|=192,X.child=U.child,X=null):(U=Z0.treeContext,q1=A6(h0.nextSibling),BU=X,a$=!0,G2=null,pI=!1,V6=null,m6=!1,U!==null&&NR(X,U),X=L9(X,V.children),X.flags|=4096);return X}}if(C)return d_(X),n=V.fallback,U0=X.mode,g0=U.child,h0=g0.sibling,V=Y_(g0,{mode:"hidden",children:V.children}),V.subtreeFlags=g0.subtreeFlags&65011712,h0!==null?n=Y_(h0,n):(n=i2(n,U0,z,null),n.flags|=2),n.return=X,V.return=X,V.sibling=n,X.child=V,SY(null,V),V=X.child,n=U.child.memoizedState,n===null?n=Z9(z):(U0=n.cachePool,U0!==null?(g0=GU._currentValue,U0=U0.parent!==g0?{parent:g0,pool:g0}:U0):U0=yR(),n={baseLanes:n.baseLanes|z,cachePool:U0}),V.memoizedState=n,V.childLanes=O9(U,D,z),X.memoizedState=UD,SY(U.child,V);return Z0!==null&&(z&62914560)===z&&(z&U.lanes)!==0&&U8(X),m_(X),z=U.child,U=z.sibling,z=Y_(z,{mode:"visible",children:V.children}),z.return=X,z.sibling=null,U!==null&&(D=X.deletions,D===null?(X.deletions=[U],X.flags|=16):D.push(U)),X.child=z,X.memoizedState=null,z}function L9(U,X){return X=rz({mode:"visible",children:X},U.mode),X.return=U,U.child=X}function rz(U,X){return U=S(22,U,null,X),U.lanes=0,U}function K9(U,X,z){return D4(X,U.child,null,z),U=L9(X,X.pendingProps.children),U.flags|=2,X.memoizedState=null,U}function nP(U,X,z){U.lanes|=X;var D=U.alternate;D!==null&&(D.lanes|=X),ML(U.return,X,z)}function D9(U,X,z,D,V,C){var f=U.memoizedState;f===null?U.memoizedState={isBackwards:X,rendering:null,renderingStartTime:0,last:D,tail:z,tailMode:V,treeForkCount:C}:(f.isBackwards=X,f.rendering=null,f.renderingStartTime=0,f.last=D,f.tail=z,f.tailMode=V,f.treeForkCount=C)}function pP(U,X,z){var D=X.pendingProps,V=D.revealOrder,C=D.tail,f=D.children,n=_U.current;if((D=(n&WJ)!==0)?(n=n&lX|WJ,X.flags|=128):n&=lX,K(_U,n,X),n=V==null?"null":V,V!=="forwards"&&V!=="unstable_legacy-backwards"&&V!=="together"&&V!=="independent"&&!vC[n])if(vC[n]=!0,V==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(V==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof V==="string")switch(V.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',V,V.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',V,V.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',V)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',V);if(n=C==null?"null":C,!o8[n])if(C==null){if(V==="forwards"||V==="backwards"||V==="unstable_legacy-backwards")o8[n]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else C!=="visible"&&C!=="collapsed"&&C!=="hidden"?(o8[n]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',C)):V!=="forwards"&&V!=="backwards"&&V!=="unstable_legacy-backwards"&&(o8[n]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',C));$:if((V==="forwards"||V==="backwards"||V==="unstable_legacy-backwards")&&f!==void 0&&f!==null&&f!==!1)if(DU(f)){for(n=0;n<f.length;n++)if(!iR(f[n],n))break $}else if(n=Q0(f),typeof n==="function"){if(n=n.call(f))for(var U0=n.next(),Z0=0;!U0.done;U0=n.next()){if(!iR(U0.value,Z0))break $;Z0++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',V);if(CU(U,X,f,z),a$?(h_(),f=$J):f=0,!D&&U!==null&&(U.flags&128)!==0)$:for(U=X.child;U!==null;){if(U.tag===13)U.memoizedState!==null&&nP(U,z,X);else if(U.tag===19)nP(U,z,X);else if(U.child!==null){U.child.return=U,U=U.child;continue}if(U===X)break $;for(;U.sibling===null;){if(U.return===null||U.return===X)break $;U=U.return}U.sibling.return=U.return,U=U.sibling}switch(V){case"forwards":z=X.child;for(V=null;z!==null;)U=z.alternate,U!==null&&wz(U)===null&&(V=z),z=z.sibling;z=V,z===null?(V=X.child,X.child=null):(V=z.sibling,z.sibling=null),D9(X,!1,V,z,C,f);break;case"backwards":case"unstable_legacy-backwards":z=null,V=X.child;for(X.child=null;V!==null;){if(U=V.alternate,U!==null&&wz(U)===null){X.child=V;break}U=V.sibling,V.sibling=z,z=V,V=U}D9(X,!0,z,null,C,f);break;case"together":D9(X,!1,null,null,void 0,f);break;default:X.memoizedState=null}return X.child}function Z_(U,X,z){if(U!==null&&(X.dependencies=U.dependencies),cU=-1,D2|=X.lanes,(z&X.childLanes)===0)if(U!==null){if(JX(U,X,z,!1),(z&X.childLanes)===0)return null}else return null;if(U!==null&&X.child!==U.child)throw Error("Resuming work not yet implemented.");if(X.child!==null){U=X.child,z=Y_(U,U.pendingProps),X.child=z;for(z.return=X;U.sibling!==null;)U=U.sibling,z=z.sibling=Y_(U,U.pendingProps),z.return=X;z.sibling=null}return X.child}function W9(U,X){if((U.lanes&X)!==0)return!0;return U=U.dependencies,U!==null&&Pz(U)?!0:!1}function Lx(U,X,z){switch(X.tag){case 3:L(X,X.stateNode.containerInfo),n_(X,GU,U.memoizedState.cache),t2();break;case 27:case 5:q(X);break;case 4:L(X,X.stateNode.containerInfo);break;case 10:n_(X,X.type,X.memoizedProps.value);break;case 12:(z&X.childLanes)!==0&&(X.flags|=4),X.flags|=2048;var D=X.stateNode;D.effectDuration=-0,D.passiveEffectDuration=-0;break;case 31:if(X.memoizedState!==null)return X.flags|=128,BL(X),null;break;case 13:if(D=X.memoizedState,D!==null){if(D.dehydrated!==null)return m_(X),X.flags|=128,null;if((z&X.child.childLanes)!==0)return uP(U,X,z);return m_(X),U=Z_(U,X,z),U!==null?U.sibling:null}m_(X);break;case 19:var V=(U.flags&128)!==0;if(D=(z&X.childLanes)!==0,D||(JX(U,X,z,!1),D=(z&X.childLanes)!==0),V){if(D)return pP(U,X,z);X.flags|=128}if(V=X.memoizedState,V!==null&&(V.rendering=null,V.tail=null,V.lastEffect=null),K(_U,_U.current,X),D)break;else return null;case 22:return X.lanes=0,wP(U,X,z,X.pendingProps);case 24:n_(X,GU,U.memoizedState.cache)}return Z_(U,X,z)}function H9(U,X,z){if(X._debugNeedsRemount&&U!==null){z=LL(X.type,X.key,X.pendingProps,X._debugOwner||null,X.mode,X.lanes),z._debugStack=X._debugStack,z._debugTask=X._debugTask;var D=X.return;if(D===null)throw Error("Cannot swap the root fiber.");if(U.alternate=null,X.alternate=null,z.index=X.index,z.sibling=X.sibling,z.return=X.return,z.ref=X.ref,z._debugInfo=X._debugInfo,X===D.child)D.child=z;else{var V=D.child;if(V===null)throw Error("Expected parent to have a child.");for(;V.sibling!==X;)if(V=V.sibling,V===null)throw Error("Expected to find the previous sibling.");V.sibling=z}return X=D.deletions,X===null?(D.deletions=[U],D.flags|=16):X.push(U),z.flags|=2,z}if(U!==null)if(U.memoizedProps!==X.pendingProps||X.type!==U.type)QU=!0;else{if(!W9(U,z)&&(X.flags&128)===0)return QU=!1,Lx(U,X,z);QU=(U.flags&131072)!==0?!0:!1}else{if(QU=!1,D=a$)h_(),D=(X.flags&1048576)!==0;D&&(D=X.index,h_(),CR(X,$J,D))}switch(X.lanes=0,X.tag){case 16:$:if(D=X.pendingProps,U=p_(X.elementType),X.type=U,typeof U==="function")OL(U)?(D=U4(U,D),X.tag=1,X.type=U=d2(U),X=bP(null,X,U,D,z)):(X.tag=0,z9(X,U),X.type=U=d2(U),X=Q9(null,X,U,D,z));else{if(U!==void 0&&U!==null){if(V=U.$$typeof,V===nY){X.tag=11,X.type=U=ZL(U),X=jP(null,X,U,D,z);break $}else if(V===H8){X.tag=14,X=kP(null,X,U,D,z);break $}}throw X="",U!==null&&typeof U==="object"&&U.$$typeof===E6&&(X=" Did you wrap a component in React.lazy() more than once?"),z=G0(U)||U,Error("Element type is invalid. Received a promise that resolves to: "+z+". Lazy element type must resolve to a class or function."+X)}return X;case 0:return Q9(U,X,X.type,X.pendingProps,z);case 1:return D=X.type,V=U4(D,X.pendingProps),bP(U,X,D,V,z);case 3:$:{if(L(X,X.stateNode.containerInfo),U===null)throw Error("Should have a current fiber. This is a bug in React.");D=X.pendingProps;var C=X.memoizedState;V=C.element,CL(U,X),EY(X,D,null,z);var f=X.memoizedState;if(D=f.cache,n_(X,GU,D),D!==C.cache&&AL(X,[GU],z,!0),AY(),D=f.element,C.isDehydrated)if(C={element:D,isDehydrated:!1,cache:f.cache},X.updateQueue.baseState=C,X.memoizedState=C,X.flags&256){X=hP(U,X,D,z);break $}else if(D!==V){V=W6(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),X),DY(V),X=hP(U,X,D,z);break $}else{switch(U=X.stateNode.containerInfo,U.nodeType){case 9:U=U.body;break;default:U=U.nodeName==="HTML"?U.ownerDocument.body:U}q1=A6(U.firstChild),BU=X,a$=!0,G2=null,pI=!1,V6=null,m6=!0,z=UC(X,null,D,z);for(X.child=z;z;)z.flags=z.flags&-3|4096,z=z.sibling}else{if(t2(),D===V){X=Z_(U,X,z);break $}CU(U,X,D,z)}X=X.child}return X;case 26:return tz(U,X),U===null?(z=KS(X.type,null,X.pendingProps,null))?X.memoizedState=z:a$||(z=X.type,U=X.pendingProps,D=F(s_.current),D=Y8(D).createElement(z),D[NU]=X,D[uU]=U,qU(D,z,U),X0(D),X.stateNode=D):X.memoizedState=KS(X.type,U.memoizedProps,X.pendingProps,U.memoizedState),null;case 27:return q(X),U===null&&a$&&(D=F(s_.current),V=v(),D=X.stateNode=OS(X.type,X.pendingProps,D,V,!1),pI||(V=eV(D,X.type,X.pendingProps,V),V!==null&&(o2(X,0).serverProps=V)),BU=X,m6=!0,V=q1,r_(X.type)?(VD=V,q1=A6(D.firstChild)):q1=V),CU(U,X,X.pendingProps.children,z),tz(U,X),U===null&&(X.flags|=4194304),X.child;case 5:return U===null&&a$&&(C=v(),D=IL(X.type,C.ancestorInfo),V=q1,(f=!V)||(f=$f(V,X.type,X.pendingProps,m6),f!==null?(X.stateNode=f,pI||(C=eV(f,X.type,X.pendingProps,C),C!==null&&(o2(X,0).serverProps=C)),BU=X,q1=A6(f.firstChild),m6=!1,C=!0):C=!1,f=!C),f&&(D&&Ez(X,V),u_(X))),q(X),V=X.type,C=X.pendingProps,f=U!==null?U.memoizedProps:null,D=C.children,n9(V,C)?D=null:f!==null&&n9(V,f)&&(X.flags|=32),X.memoizedState!==null&&(V=kL(U,X,Xx,null,null,z),gJ._currentValue=V),tz(U,X),CU(U,X,D,z),X.child;case 6:return U===null&&a$&&(z=X.pendingProps,U=v(),D=U.ancestorInfo.current,z=D!=null?Oz(z,D.tag,U.ancestorInfo.implicitRootScope):!0,U=q1,(D=!U)||(D=Uf(U,X.pendingProps,m6),D!==null?(X.stateNode=D,BU=X,q1=null,D=!0):D=!1,D=!D),D&&(z&&Ez(X,U),u_(X))),null;case 13:return uP(U,X,z);case 4:return L(X,X.stateNode.containerInfo),D=X.pendingProps,U===null?X.child=D4(X,null,D,z):CU(U,X,D,z),X.child;case 11:return jP(U,X,X.type,X.pendingProps,z);case 7:return CU(U,X,X.pendingProps,z),X.child;case 8:return CU(U,X,X.pendingProps.children,z),X.child;case 12:return X.flags|=4,X.flags|=2048,D=X.stateNode,D.effectDuration=-0,D.passiveEffectDuration=-0,CU(U,X,X.pendingProps.children,z),X.child;case 10:return D=X.type,V=X.pendingProps,C=V.value,"value"in V||CC||(CC=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),n_(X,D,C),CU(U,X,V.children,z),X.child;case 9:return V=X.type._context,D=X.pendingProps.children,typeof D!=="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),r2(X),V=k1(V),D=pK(D,V,void 0),X.flags|=1,CU(U,X,D,z),X.child;case 14:return kP(U,X,X.type,X.pendingProps,z);case 15:return gP(U,X,X.type,X.pendingProps,z);case 19:return pP(U,X,z);case 31:return Ox(U,X,z);case 22:return wP(U,X,z,X.pendingProps);case 24:return r2(X),D=k1(GU),U===null?(V=VL(),V===null&&(V=M1,C=EL(),V.pooledCache=C,a2(C),C!==null&&(V.pooledCacheLanes|=z),V=C),X.memoizedState={parent:D,cache:V},vL(X),n_(X,GU,V)):((U.lanes&z)!==0&&(CL(U,X),EY(X,null,null,z),AY()),V=U.memoizedState,C=X.memoizedState,V.parent!==D?(V={parent:D,cache:D},X.memoizedState=V,X.lanes===0&&(X.memoizedState=X.updateQueue.baseState=V),n_(X,GU,D)):(D=C.cache,n_(X,GU,D),D!==V.cache&&AL(X,[GU],z,!0))),CU(U,X,X.pendingProps.children,z),X.child;case 29:throw X.pendingProps}throw Error("Unknown unit of work tag ("+X.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function O_(U){U.flags|=4}function F9(U,X,z,D,V){if(X=(U.mode&gy)!==j$)X=!1;if(X){if(U.flags|=16777216,(V&335544128)===V)if(U.stateNode.complete)U.flags|=8192;else if(EV())U.flags|=8192;else throw K4=p8,lK}else U.flags&=-16777217}function cP(U,X){if(X.type!=="stylesheet"||(X.state.loading&r6)!==S4)U.flags&=-16777217;else if(U.flags|=16777216,!TS(X))if(EV())U.flags|=8192;else throw K4=p8,lK}function az(U,X){X!==null&&(U.flags|=4),U.flags&16384&&(X=U.tag!==22?M$():536870912,U.lanes|=X,M4|=X)}function vY(U,X){if(!a$)switch(U.tailMode){case"hidden":X=U.tail;for(var z=null;X!==null;)X.alternate!==null&&(z=X),X=X.sibling;z===null?U.tail=null:z.sibling=null;break;case"collapsed":z=U.tail;for(var D=null;z!==null;)z.alternate!==null&&(D=z),z=z.sibling;D===null?X||U.tail===null?U.tail=null:U.tail.sibling=null:D.sibling=null}}function P1(U){var X=U.alternate!==null&&U.alternate.child===U.child,z=0,D=0;if(X)if((U.mode&h$)!==j$){for(var{selfBaseDuration:V,child:C}=U;C!==null;)z|=C.lanes|C.childLanes,D|=C.subtreeFlags&65011712,D|=C.flags&65011712,V+=C.treeBaseDuration,C=C.sibling;U.treeBaseDuration=V}else for(V=U.child;V!==null;)z|=V.lanes|V.childLanes,D|=V.subtreeFlags&65011712,D|=V.flags&65011712,V.return=U,V=V.sibling;else if((U.mode&h$)!==j$){V=U.actualDuration,C=U.selfBaseDuration;for(var f=U.child;f!==null;)z|=f.lanes|f.childLanes,D|=f.subtreeFlags,D|=f.flags,V+=f.actualDuration,C+=f.treeBaseDuration,f=f.sibling;U.actualDuration=V,U.treeBaseDuration=C}else for(V=U.child;V!==null;)z|=V.lanes|V.childLanes,D|=V.subtreeFlags,D|=V.flags,V.return=U,V=V.sibling;return U.subtreeFlags|=D,U.childLanes=z,X}function Kx(U,X,z){var D=X.pendingProps;switch(HL(X),X.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return P1(X),null;case 1:return P1(X),null;case 3:if(z=X.stateNode,D=null,U!==null&&(D=U.memoizedState.cache),X.memoizedState.cache!==D&&(X.flags|=2048),Q_(GU,X),H(X),z.pendingContext&&(z.context=z.pendingContext,z.pendingContext=null),U===null||U.child===null)YX(X)?(TL(),O_(X)):U===null||U.memoizedState.isDehydrated&&(X.flags&256)===0||(X.flags|=1024,FL());return P1(X),null;case 26:var{type:V,memoizedState:C}=X;return U===null?(O_(X),C!==null?(P1(X),cP(X,C)):(P1(X),F9(X,V,null,D,z))):C?C!==U.memoizedState?(O_(X),P1(X),cP(X,C)):(P1(X),X.flags&=-16777217):(U=U.memoizedProps,U!==D&&O_(X),P1(X),F9(X,V,U,D,z)),null;case 27:if(P(X),z=F(s_.current),V=X.type,U!==null&&X.stateNode!=null)U.memoizedProps!==D&&O_(X);else{if(!D){if(X.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return P1(X),null}U=v(),YX(X)?jR(X,U):(U=OS(V,D,z,U,!0),X.stateNode=U,O_(X))}return P1(X),null;case 5:if(P(X),V=X.type,U!==null&&X.stateNode!=null)U.memoizedProps!==D&&O_(X);else{if(!D){if(X.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return P1(X),null}var f=v();if(YX(X))jR(X,f);else{switch(C=F(s_.current),IL(V,f.ancestorInfo),f=f.context,C=Y8(C),f){case IG:C=C.createElementNS(vX,V);break;case DZ:C=C.createElementNS(P8,V);break;default:switch(V){case"svg":C=C.createElementNS(vX,V);break;case"math":C=C.createElementNS(P8,V);break;case"script":C=C.createElement("div"),C.innerHTML="<script></script>",C=C.removeChild(C.firstChild);break;case"select":C=typeof D.is==="string"?C.createElement("select",{is:D.is}):C.createElement("select"),D.multiple?C.multiple=!0:D.size&&(C.size=D.size);break;default:C=typeof D.is==="string"?C.createElement(V,{is:D.is}):C.createElement(V),V.indexOf("-")===-1&&(V!==V.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",V),Object.prototype.toString.call(C)!=="[object HTMLUnknownElement]"||JI.call(aC,V)||(aC[V]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",V)))}}C[NU]=X,C[uU]=D;$:for(f=X.child;f!==null;){if(f.tag===5||f.tag===6)C.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===X)break $;for(;f.sibling===null;){if(f.return===null||f.return===X)break $;f=f.return}f.sibling.return=f.return,f=f.sibling}X.stateNode=C;$:switch(qU(C,V,D),V){case"button":case"input":case"select":case"textarea":D=!!D.autoFocus;break $;case"img":D=!0;break $;default:D=!1}D&&O_(X)}}return P1(X),F9(X,X.type,U===null?null:U.memoizedProps,X.pendingProps,z),null;case 6:if(U&&X.stateNode!=null)U.memoizedProps!==D&&O_(X);else{if(typeof D!=="string"&&X.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(U=F(s_.current),z=v(),YX(X)){if(U=X.stateNode,z=X.memoizedProps,V=!pI,D=null,C=BU,C!==null)switch(C.tag){case 3:V&&(V=zS(U,z,D),V!==null&&(o2(X,0).serverProps=V));break;case 27:case 5:D=C.memoizedProps,V&&(V=zS(U,z,D),V!==null&&(o2(X,0).serverProps=V))}U[NU]=X,U=U.nodeValue===z||D!==null&&D.suppressHydrationWarning===!0||oV(U.nodeValue,z)?!0:!1,U||u_(X,!0)}else V=z.ancestorInfo.current,V!=null&&Oz(D,V.tag,z.ancestorInfo.implicitRootScope),U=Y8(U).createTextNode(D),U[NU]=X,X.stateNode=U}return P1(X),null;case 31:if(z=X.memoizedState,U===null||U.memoizedState!==null){if(D=YX(X),z!==null){if(U===null){if(!D)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(U=X.memoizedState,U=U!==null?U.dehydrated:null,!U)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");U[NU]=X,P1(X),(X.mode&h$)!==j$&&z!==null&&(U=X.child,U!==null&&(X.treeBaseDuration-=U.treeBaseDuration))}else TL(),t2(),(X.flags&128)===0&&(z=X.memoizedState=null),X.flags|=4,P1(X),(X.mode&h$)!==j$&&z!==null&&(U=X.child,U!==null&&(X.treeBaseDuration-=U.treeBaseDuration));U=!1}else z=FL(),U!==null&&U.memoizedState!==null&&(U.memoizedState.hydrationErrors=z),U=!0;if(!U){if(X.flags&256)return T6(X),X;return T6(X),null}if((X.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return P1(X),null;case 13:if(D=X.memoizedState,U===null||U.memoizedState!==null&&U.memoizedState.dehydrated!==null){if(V=D,C=YX(X),V!==null&&V.dehydrated!==null){if(U===null){if(!C)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(C=X.memoizedState,C=C!==null?C.dehydrated:null,!C)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");C[NU]=X,P1(X),(X.mode&h$)!==j$&&V!==null&&(V=X.child,V!==null&&(X.treeBaseDuration-=V.treeBaseDuration))}else TL(),t2(),(X.flags&128)===0&&(V=X.memoizedState=null),X.flags|=4,P1(X),(X.mode&h$)!==j$&&V!==null&&(V=X.child,V!==null&&(X.treeBaseDuration-=V.treeBaseDuration));V=!1}else V=FL(),U!==null&&U.memoizedState!==null&&(U.memoizedState.hydrationErrors=V),V=!0;if(!V){if(X.flags&256)return T6(X),X;return T6(X),null}}if(T6(X),(X.flags&128)!==0)return X.lanes=z,(X.mode&h$)!==j$&&FY(X),X;return z=D!==null,U=U!==null&&U.memoizedState!==null,z&&(D=X.child,V=null,D.alternate!==null&&D.alternate.memoizedState!==null&&D.alternate.memoizedState.cachePool!==null&&(V=D.alternate.memoizedState.cachePool.pool),C=null,D.memoizedState!==null&&D.memoizedState.cachePool!==null&&(C=D.memoizedState.cachePool.pool),C!==V&&(D.flags|=2048)),z!==U&&z&&(X.child.flags|=8192),az(X,X.updateQueue),P1(X),(X.mode&h$)!==j$&&z&&(U=X.child,U!==null&&(X.treeBaseDuration-=U.treeBaseDuration)),null;case 4:return H(X),U===null&&w9(X.stateNode.containerInfo),P1(X),null;case 10:return Q_(X.type,X),P1(X),null;case 19:if(Q(_U,X),D=X.memoizedState,D===null)return P1(X),null;if(V=(X.flags&128)!==0,C=D.rendering,C===null)if(V)vY(D,!1);else{if(b1!==v_||U!==null&&(U.flags&128)!==0)for(U=X.child;U!==null;){if(C=wz(U),C!==null){X.flags|=128,vY(D,!1),U=C.updateQueue,X.updateQueue=U,az(X,U),X.subtreeFlags=0,U=z;for(z=X.child;z!==null;)SR(z,U),z=z.sibling;return K(_U,_U.current&lX|WJ,X),a$&&J_(X,D.treeForkCount),X.child}U=U.sibling}D.tail!==null&&AU()>UZ&&(X.flags|=128,V=!0,vY(D,!1),X.lanes=4194304)}else{if(!V)if(U=wz(C),U!==null){if(X.flags|=128,V=!0,U=U.updateQueue,X.updateQueue=U,az(X,U),vY(D,!0),D.tail===null&&D.tailMode==="hidden"&&!C.alternate&&!a$)return P1(X),null}else 2*AU()-D.renderingStartTime>UZ&&z!==536870912&&(X.flags|=128,V=!0,vY(D,!1),X.lanes=4194304);D.isBackwards?(C.sibling=X.child,X.child=C):(U=D.last,U!==null?U.sibling=C:X.child=C,D.last=C)}if(D.tail!==null)return U=D.tail,D.rendering=U,D.tail=U.sibling,D.renderingStartTime=AU(),U.sibling=null,z=_U.current,z=V?z&lX|WJ:z&lX,K(_U,z,X),a$&&J_(X,D.treeForkCount),U;return P1(X),null;case 22:case 23:return T6(X),NL(X),D=X.memoizedState!==null,U!==null?U.memoizedState!==null!==D&&(X.flags|=8192):D&&(X.flags|=8192),D?(z&536870912)!==0&&(X.flags&128)===0&&(P1(X),X.subtreeFlags&6&&(X.flags|=8192)):P1(X),z=X.updateQueue,z!==null&&az(X,z.retryQueue),z=null,U!==null&&U.memoizedState!==null&&U.memoizedState.cachePool!==null&&(z=U.memoizedState.cachePool.pool),D=null,X.memoizedState!==null&&X.memoizedState.cachePool!==null&&(D=X.memoizedState.cachePool.pool),D!==z&&(X.flags|=2048),U!==null&&Q(O4,X),null;case 24:return z=null,U!==null&&(z=U.memoizedState.cache),X.memoizedState.cache!==z&&(X.flags|=2048),Q_(GU,X),P1(X),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+X.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Dx(U,X){switch(HL(X),X.tag){case 1:return U=X.flags,U&65536?(X.flags=U&-65537|128,(X.mode&h$)!==j$&&FY(X),X):null;case 3:return Q_(GU,X),H(X),U=X.flags,(U&65536)!==0&&(U&128)===0?(X.flags=U&-65537|128,X):null;case 26:case 27:case 5:return P(X),null;case 31:if(X.memoizedState!==null){if(T6(X),X.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");t2()}return U=X.flags,U&65536?(X.flags=U&-65537|128,(X.mode&h$)!==j$&&FY(X),X):null;case 13:if(T6(X),U=X.memoizedState,U!==null&&U.dehydrated!==null){if(X.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");t2()}return U=X.flags,U&65536?(X.flags=U&-65537|128,(X.mode&h$)!==j$&&FY(X),X):null;case 19:return Q(_U,X),null;case 4:return H(X),null;case 10:return Q_(X.type,X),null;case 22:case 23:return T6(X),NL(X),U!==null&&Q(O4,X),U=X.flags,U&65536?(X.flags=U&-65537|128,(X.mode&h$)!==j$&&FY(X),X):null;case 24:return Q_(GU,X),null;case 25:return null;default:return null}}function lP(U,X){switch(HL(X),X.tag){case 3:Q_(GU,X),H(X);break;case 26:case 27:case 5:P(X);break;case 4:H(X);break;case 31:X.memoizedState!==null&&T6(X);break;case 13:T6(X);break;case 19:Q(_U,X);break;case 10:Q_(X.type,X);break;case 22:case 23:T6(X),NL(X),U!==null&&Q(O4,X);break;case 24:Q_(GU,X)}}function NI(U){return(U.mode&h$)!==j$}function mP(U,X){NI(U)?(qI(),CY(X,U),CI()):CY(X,U)}function T9(U,X,z){NI(U)?(qI(),LX(z,U,X),CI()):LX(z,U,X)}function CY(U,X){try{var z=X.updateQueue,D=z!==null?z.lastEffect:null;if(D!==null){var V=D.next;z=V;do{if((z.tag&U)===U&&(D=void 0,(U&lU)!==l8&&(eX=!0),D=r(X,by,z),(U&lU)!==l8&&(eX=!1),D!==void 0&&typeof D!=="function")){var C=void 0;C=(z.tag&v6)!==0?"useLayoutEffect":(z.tag&lU)!==0?"useInsertionEffect":"useEffect";var f=void 0;f=D===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof D.then==="function"?`
|
|
141
|
-
|
|
142
|
-
It looks like you wrote `+C+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
143
|
-
|
|
144
|
-
`+C+`(() => {
|
|
145
|
-
async function fetchData() {
|
|
146
|
-
// You can await here
|
|
147
|
-
const response = await MyAPI.getData(someId);
|
|
148
|
-
// ...
|
|
149
|
-
}
|
|
150
|
-
fetchData();
|
|
151
|
-
}, [someId]); // Or [] if effect doesn't need props or state
|
|
152
|
-
|
|
153
|
-
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+D,r(X,function(n,U0){console.error("%s must not return anything besides a function, which is used for clean-up.%s",n,U0)},C,f)}z=z.next}while(z!==V)}}catch(n){J1(X,X.return,n)}}function LX(U,X,z){try{var D=X.updateQueue,V=D!==null?D.lastEffect:null;if(V!==null){var C=V.next;D=C;do{if((D.tag&U)===U){var f=D.inst,n=f.destroy;n!==void 0&&(f.destroy=void 0,(U&lU)!==l8&&(eX=!0),V=X,r(V,hy,V,z,n),(U&lU)!==l8&&(eX=!1))}D=D.next}while(D!==C)}}catch(U0){J1(X,X.return,U0)}}function dP(U,X){NI(U)?(qI(),CY(X,U),CI()):CY(X,U)}function M9(U,X,z){NI(U)?(qI(),LX(z,U,X),CI()):LX(z,U,X)}function iP(U){var X=U.updateQueue;if(X!==null){var z=U.stateNode;U.type.defaultProps||"ref"in U.memoizedProps||oX||(z.props!==U.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",t(U)||"instance"),z.state!==U.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",t(U)||"instance"));try{r(U,tR,X,z)}catch(D){J1(U,U.return,D)}}}function Wx(U,X,z){return U.getSnapshotBeforeUpdate(X,z)}function Hx(U,X){var{memoizedProps:z,memoizedState:D}=X;X=U.stateNode,U.type.defaultProps||"ref"in U.memoizedProps||oX||(X.props!==U.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",t(U)||"instance"),X.state!==U.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",t(U)||"instance"));try{var V=U4(U.type,z),C=r(U,Wx,X,V,D);z=qC,C!==void 0||z.has(U.type)||(z.add(U.type),r(U,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",t(U))})),X.__reactInternalSnapshotBeforeUpdate=C}catch(f){J1(U,U.return,f)}}function oP(U,X,z){z.props=U4(U.type,U.memoizedProps),z.state=U.memoizedState,NI(U)?(qI(),r(U,iv,U,X,z),CI()):r(U,iv,U,X,z)}function Fx(U){var X=U.ref;if(X!==null){switch(U.tag){case 26:case 27:case 5:var z=U.stateNode;break;case 30:z=U.stateNode;break;default:z=U.stateNode}if(typeof X==="function")if(NI(U))try{qI(),U.refCleanup=X(z)}finally{CI()}else U.refCleanup=X(z);else typeof X==="string"?console.error("String refs are no longer supported."):X.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",t(U)),X.current=z}}function qY(U,X){try{r(U,Fx,U)}catch(z){J1(U,X,z)}}function BI(U,X){var{ref:z,refCleanup:D}=U;if(z!==null)if(typeof D==="function")try{if(NI(U))try{qI(),r(U,D)}finally{CI(U)}else r(U,D)}catch(V){J1(U,X,V)}finally{U.refCleanup=null,U=U.alternate,U!=null&&(U.refCleanup=null)}else if(typeof z==="function")try{if(NI(U))try{qI(),r(U,z,null)}finally{CI(U)}else r(U,z,null)}catch(V){J1(U,X,V)}else z.current=null}function tP(U,X,z,D){var V=U.memoizedProps,C=V.id,f=V.onCommit;V=V.onRender,X=X===null?"mount":"update",b8&&(X="nested-update"),typeof V==="function"&&V(C,X,U.actualDuration,U.treeBaseDuration,U.actualStartTime,z),typeof f==="function"&&f(C,X,D,z)}function Tx(U,X,z,D){var V=U.memoizedProps;U=V.id,V=V.onPostCommit,X=X===null?"mount":"update",b8&&(X="nested-update"),typeof V==="function"&&V(U,X,D,z)}function rP(U){var{type:X,memoizedProps:z,stateNode:D}=U;try{r(U,px,D,X,z,U)}catch(V){J1(U,U.return,V)}}function A9(U,X,z){try{r(U,lx,U.stateNode,U.type,z,X,U)}catch(D){J1(U,U.return,D)}}function aP(U){return U.tag===5||U.tag===3||U.tag===26||U.tag===27&&r_(U.type)||U.tag===4}function E9(U){$:for(;;){for(;U.sibling===null;){if(U.return===null||aP(U.return))return null;U=U.return}U.sibling.return=U.return;for(U=U.sibling;U.tag!==5&&U.tag!==6&&U.tag!==18;){if(U.tag===27&&r_(U.type))continue $;if(U.flags&2)continue $;if(U.child===null||U.tag===4)continue $;else U.child.return=U,U=U.child}if(!(U.flags&2))return U.stateNode}}function R9(U,X,z){var D=U.tag;if(D===5||D===6)U=U.stateNode,X?(XS(z),(z.nodeType===9?z.body:z.nodeName==="HTML"?z.ownerDocument.body:z).insertBefore(U,X)):(XS(z),X=z.nodeType===9?z.body:z.nodeName==="HTML"?z.ownerDocument.body:z,X.appendChild(U),z=z._reactRootContainer,z!==null&&z!==void 0||X.onclick!==null||(X.onclick=G_));else if(D!==4&&(D===27&&r_(U.type)&&(z=U.stateNode,X=null),U=U.child,U!==null))for(R9(U,X,z),U=U.sibling;U!==null;)R9(U,X,z),U=U.sibling}function sz(U,X,z){var D=U.tag;if(D===5||D===6)U=U.stateNode,X?z.insertBefore(U,X):z.appendChild(U);else if(D!==4&&(D===27&&r_(U.type)&&(z=U.stateNode),U=U.child,U!==null))for(sz(U,X,z),U=U.sibling;U!==null;)sz(U,X,z),U=U.sibling}function Mx(U){for(var X,z=U.return;z!==null;){if(aP(z)){X=z;break}z=z.return}if(X==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(X.tag){case 27:X=X.stateNode,z=E9(U),sz(U,z,X);break;case 5:z=X.stateNode,X.flags&32&&(_S(z),X.flags&=-33),X=E9(U),sz(U,X,z);break;case 3:case 4:X=X.stateNode.containerInfo,z=E9(U),R9(U,z,X);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function sP(U){var{stateNode:X,memoizedProps:z}=U;try{r(U,Yf,U.type,z,X,U)}catch(D){J1(U,U.return,D)}}function eP(U,X){return X.tag===31?(X=X.memoizedState,U.memoizedState!==null&&X===null):X.tag===13?(U=U.memoizedState,X=X.memoizedState,U!==null&&U.dehydrated!==null&&(X===null||X.dehydrated===null)):X.tag===3?U.memoizedState.isDehydrated&&(X.flags&256)===0:!1}function Ax(U,X){if(U=U.containerInfo,ED=TZ,U=WR(U),GL(U)){if("selectionStart"in U)var z={start:U.selectionStart,end:U.selectionEnd};else $:{z=(z=U.ownerDocument)&&z.defaultView||window;var D=z.getSelection&&z.getSelection();if(D&&D.rangeCount!==0){z=D.anchorNode;var{anchorOffset:V,focusNode:C}=D;D=D.focusOffset;try{z.nodeType,C.nodeType}catch(F$){z=null;break $}var f=0,n=-1,U0=-1,Z0=0,h0=0,u0=U,g0=null;U:for(;;){for(var o0;;){if(u0!==z||V!==0&&u0.nodeType!==3||(n=f+V),u0!==C||D!==0&&u0.nodeType!==3||(U0=f+D),u0.nodeType===3&&(f+=u0.nodeValue.length),(o0=u0.firstChild)===null)break;g0=u0,u0=o0}for(;;){if(u0===U)break U;if(g0===z&&++Z0===V&&(n=f),g0===C&&++h0===D&&(U0=f),(o0=u0.nextSibling)!==null)break;u0=g0,g0=u0.parentNode}u0=o0}z=n===-1||U0===-1?null:{start:n,end:U0}}else z=null}z=z||{start:0,end:0}}else z=null;RD={focusedElem:U,selectionRange:z},TZ=!1;for(RU=X;RU!==null;)if(X=RU,U=X.child,(X.subtreeFlags&1028)!==0&&U!==null)U.return=X,RU=U;else for(;RU!==null;){switch(U=X=RU,z=U.alternate,V=U.flags,U.tag){case 0:if((V&4)!==0&&(U=U.updateQueue,U=U!==null?U.events:null,U!==null))for(z=0;z<U.length;z++)V=U[z],V.ref.impl=V.nextImpl;break;case 11:case 15:break;case 1:(V&1024)!==0&&z!==null&&Hx(U,z);break;case 3:if((V&1024)!==0){if(U=U.stateNode.containerInfo,z=U.nodeType,z===9)p9(U);else if(z===1)switch(U.nodeName){case"HEAD":case"HTML":case"BODY":p9(U);break;default:U.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((V&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(U=X.sibling,U!==null){U.return=X.return,RU=U;break}RU=X.return}}function $V(U,X,z){var D=H6(),V=PI(),C=SI(),f=vI(),n=z.flags;switch(z.tag){case 0:case 11:case 15:jI(U,z),n&4&&mP(z,v6|o6);break;case 1:if(jI(U,z),n&4)if(U=z.stateNode,X===null)z.type.defaultProps||"ref"in z.memoizedProps||oX||(U.props!==z.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",t(z)||"instance"),U.state!==z.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",t(z)||"instance")),NI(z)?(qI(),r(z,cK,z,U),CI()):r(z,cK,z,U);else{var U0=U4(z.type,X.memoizedProps);X=X.memoizedState,z.type.defaultProps||"ref"in z.memoizedProps||oX||(U.props!==z.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",t(z)||"instance"),U.state!==z.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",t(z)||"instance")),NI(z)?(qI(),r(z,lv,z,U,U0,X,U.__reactInternalSnapshotBeforeUpdate),CI()):r(z,lv,z,U,U0,X,U.__reactInternalSnapshotBeforeUpdate)}n&64&&iP(z),n&512&&qY(z,z.return);break;case 3:if(X=z_(),jI(U,z),n&64&&(n=z.updateQueue,n!==null)){if(U0=null,z.child!==null)switch(z.child.tag){case 27:case 5:U0=z.child.stateNode;break;case 1:U0=z.child.stateNode}try{r(z,tR,n,U0)}catch(h0){J1(z,z.return,h0)}}U.effectDuration+=Sz(X);break;case 27:X===null&&n&4&&sP(z);case 26:case 5:if(jI(U,z),X===null){if(n&4)rP(z);else if(n&64){U=z.type,X=z.memoizedProps,U0=z.stateNode;try{r(z,cx,U0,U,X,z)}catch(h0){J1(z,z.return,h0)}}}n&512&&qY(z,z.return);break;case 12:if(n&4){n=z_(),jI(U,z),U=z.stateNode,U.effectDuration+=HY(n);try{r(z,tP,z,X,Y2,U.effectDuration)}catch(h0){J1(z,z.return,h0)}}else jI(U,z);break;case 31:jI(U,z),n&4&&_V(U,z);break;case 13:jI(U,z),n&4&&XV(U,z),n&64&&(U=z.memoizedState,U!==null&&(U=U.dehydrated,U!==null&&(n=Nx.bind(null,z),If(U,n))));break;case 22:if(n=z.memoizedState!==null||S_,!n){X=X!==null&&X.memoizedState!==null||zU,U0=S_;var Z0=zU;S_=n,(zU=X)&&!Z0?(kI(U,z,(z.subtreeFlags&8772)!==0),(z.mode&h$)!==j$&&0<=v$&&0<=N$&&0.05<N$-v$&&Wz(z,v$,N$)):jI(U,z),S_=U0,zU=Z0}break;case 30:break;default:jI(U,z)}(z.mode&h$)!==j$&&0<=v$&&0<=N$&&((m1||0.05<y1)&&EI(z,v$,N$,y1,g1),z.alternate===null&&z.return!==null&&z.return.alternate!==null&&0.05<N$-v$&&(eP(z.return.alternate,z.return)||AI(z,v$,N$,"Mount"))),F6(D),VI(V),g1=C,m1=f}function UV(U){var X=U.alternate;X!==null&&(U.alternate=null,UV(X)),U.child=null,U.deletions=null,U.sibling=null,U.tag===5&&(X=U.stateNode,X!==null&&R0(X)),U.stateNode=null,U._debugOwner=null,U.return=null,U.dependencies=null,U.memoizedProps=null,U.memoizedState=null,U.pendingProps=null,U.stateNode=null,U.updateQueue=null}function L_(U,X,z){for(z=z.child;z!==null;)IV(U,X,z),z=z.sibling}function IV(U,X,z){if(xU&&typeof xU.onCommitFiberUnmount==="function")try{xU.onCommitFiberUnmount(VX,z)}catch(Z0){bI||(bI=!0,console.error("React instrumentation encountered an error: %o",Z0))}var D=H6(),V=PI(),C=SI(),f=vI();switch(z.tag){case 26:zU||BI(z,X),L_(U,X,z),z.memoizedState?z.memoizedState.count--:z.stateNode&&(U=z.stateNode,U.parentNode.removeChild(U));break;case 27:zU||BI(z,X);var n=ZU,U0=X6;r_(z.type)&&(ZU=z.stateNode,X6=!1),L_(U,X,z),r(z,yY,z.stateNode),ZU=n,X6=U0;break;case 5:zU||BI(z,X);case 6:if(n=ZU,U0=X6,ZU=null,L_(U,X,z),ZU=n,X6=U0,ZU!==null)if(X6)try{r(z,ix,ZU,z.stateNode)}catch(Z0){J1(z,X,Z0)}else try{r(z,dx,ZU,z.stateNode)}catch(Z0){J1(z,X,Z0)}break;case 18:ZU!==null&&(X6?(U=ZU,GS(U.nodeType===9?U.body:U.nodeName==="HTML"?U.ownerDocument.body:U,z.stateNode),AX(U)):GS(ZU,z.stateNode));break;case 4:n=ZU,U0=X6,ZU=z.stateNode.containerInfo,X6=!0,L_(U,X,z),ZU=n,X6=U0;break;case 0:case 11:case 14:case 15:LX(lU,z,X),zU||T9(z,X,v6),L_(U,X,z);break;case 1:zU||(BI(z,X),n=z.stateNode,typeof n.componentWillUnmount==="function"&&oP(z,X,n)),L_(U,X,z);break;case 21:L_(U,X,z);break;case 22:zU=(n=zU)||z.memoizedState!==null,L_(U,X,z),zU=n;break;default:L_(U,X,z)}(z.mode&h$)!==j$&&0<=v$&&0<=N$&&(m1||0.05<y1)&&EI(z,v$,N$,y1,g1),F6(D),VI(V),g1=C,m1=f}function _V(U,X){if(X.memoizedState===null&&(U=X.alternate,U!==null&&(U=U.memoizedState,U!==null))){U=U.dehydrated;try{r(X,Xf,U)}catch(z){J1(X,X.return,z)}}}function XV(U,X){if(X.memoizedState===null&&(U=X.alternate,U!==null&&(U=U.memoizedState,U!==null&&(U=U.dehydrated,U!==null))))try{r(X,Gf,U)}catch(z){J1(X,X.return,z)}}function Ex(U){switch(U.tag){case 31:case 13:case 19:var X=U.stateNode;return X===null&&(X=U.stateNode=new NC),X;case 22:return U=U.stateNode,X=U._retryCache,X===null&&(X=U._retryCache=new NC),X;default:throw Error("Unexpected Suspense handler tag ("+U.tag+"). This is a bug in React.")}}function ez(U,X){var z=Ex(U);X.forEach(function(D){if(!z.has(D)){if(z.add(D),hI)if(tX!==null&&rX!==null)kY(rX,tX);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var V=Bx.bind(null,U,D);D.then(V,V)}})}function I6(U,X){var z=X.deletions;if(z!==null)for(var D=0;D<z.length;D++){var V=U,C=X,f=z[D],n=H6(),U0=C;$:for(;U0!==null;){switch(U0.tag){case 27:if(r_(U0.type)){ZU=U0.stateNode,X6=!1;break $}break;case 5:ZU=U0.stateNode,X6=!1;break $;case 3:case 4:ZU=U0.stateNode.containerInfo,X6=!0;break $}U0=U0.return}if(ZU===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");IV(V,C,f),ZU=null,X6=!1,(f.mode&h$)!==j$&&0<=v$&&0<=N$&&0.05<N$-v$&&AI(f,v$,N$,"Unmount"),F6(n),V=f,C=V.alternate,C!==null&&(C.return=null),V.return=null}if(X.subtreeFlags&13886)for(X=X.child;X!==null;)GV(X,U),X=X.sibling}function GV(U,X){var z=H6(),D=PI(),V=SI(),C=vI(),f=U.alternate,n=U.flags;switch(U.tag){case 0:case 11:case 14:case 15:I6(X,U),_6(U),n&4&&(LX(lU|o6,U,U.return),CY(lU|o6,U),T9(U,U.return,v6|o6));break;case 1:if(I6(X,U),_6(U),n&512&&(zU||f===null||BI(f,f.return)),n&64&&S_&&(n=U.updateQueue,n!==null&&(f=n.callbacks,f!==null))){var U0=n.shared.hiddenCallbacks;n.shared.hiddenCallbacks=U0===null?f:U0.concat(f)}break;case 26:if(U0=LI,I6(X,U),_6(U),n&512&&(zU||f===null||BI(f,f.return)),n&4){var Z0=f!==null?f.memoizedState:null;if(n=U.memoizedState,f===null)if(n===null)if(U.stateNode===null){$:{n=U.type,f=U.memoizedProps,U0=U0.ownerDocument||U0;U:switch(n){case"title":if(Z0=U0.getElementsByTagName("title")[0],!Z0||Z0[lY]||Z0[NU]||Z0.namespaceURI===vX||Z0.hasAttribute("itemprop"))Z0=U0.createElement(n),U0.head.insertBefore(Z0,U0.querySelector("head > title"));qU(Z0,n,f),Z0[NU]=U,X0(Z0),n=Z0;break $;case"link":var h0=HS("link","href",U0).get(n+(f.href||""));if(h0){for(var u0=0;u0<h0.length;u0++)if(Z0=h0[u0],Z0.getAttribute("href")===(f.href==null||f.href===""?null:f.href)&&Z0.getAttribute("rel")===(f.rel==null?null:f.rel)&&Z0.getAttribute("title")===(f.title==null?null:f.title)&&Z0.getAttribute("crossorigin")===(f.crossOrigin==null?null:f.crossOrigin)){h0.splice(u0,1);break U}}Z0=U0.createElement(n),qU(Z0,n,f),U0.head.appendChild(Z0);break;case"meta":if(h0=HS("meta","content",U0).get(n+(f.content||""))){for(u0=0;u0<h0.length;u0++)if(Z0=h0[u0],s(f.content,"content"),Z0.getAttribute("content")===(f.content==null?null:""+f.content)&&Z0.getAttribute("name")===(f.name==null?null:f.name)&&Z0.getAttribute("property")===(f.property==null?null:f.property)&&Z0.getAttribute("http-equiv")===(f.httpEquiv==null?null:f.httpEquiv)&&Z0.getAttribute("charset")===(f.charSet==null?null:f.charSet)){h0.splice(u0,1);break U}}Z0=U0.createElement(n),qU(Z0,n,f),U0.head.appendChild(Z0);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+n+'". This is a bug in React.')}Z0[NU]=U,X0(Z0),n=Z0}U.stateNode=n}else FS(U0,U.type,U.stateNode);else U.stateNode=WS(U0,n,U.memoizedProps);else Z0!==n?(Z0===null?f.stateNode!==null&&(f=f.stateNode,f.parentNode.removeChild(f)):Z0.count--,n===null?FS(U0,U.type,U.stateNode):WS(U0,n,U.memoizedProps)):n===null&&U.stateNode!==null&&A9(U,U.memoizedProps,f.memoizedProps)}break;case 27:I6(X,U),_6(U),n&512&&(zU||f===null||BI(f,f.return)),f!==null&&n&4&&A9(U,U.memoizedProps,f.memoizedProps);break;case 5:if(I6(X,U),_6(U),n&512&&(zU||f===null||BI(f,f.return)),U.flags&32){U0=U.stateNode;try{r(U,_S,U0)}catch(E$){J1(U,U.return,E$)}}n&4&&U.stateNode!=null&&(U0=U.memoizedProps,A9(U,U0,f!==null?f.memoizedProps:U0)),n&1024&&(ID=!0,U.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(I6(X,U),_6(U),n&4){if(U.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");n=U.memoizedProps,f=f!==null?f.memoizedProps:n,U0=U.stateNode;try{r(U,mx,U0,f,n)}catch(E$){J1(U,U.return,E$)}}break;case 3:if(U0=z_(),WZ=null,Z0=LI,LI=J8(X.containerInfo),I6(X,U),LI=Z0,_6(U),n&4&&f!==null&&f.memoizedState.isDehydrated)try{r(U,_f,X.containerInfo)}catch(E$){J1(U,U.return,E$)}ID&&(ID=!1,YV(U)),X.effectDuration+=Sz(U0);break;case 4:n=LI,LI=J8(U.stateNode.containerInfo),I6(X,U),_6(U),LI=n;break;case 12:n=z_(),I6(X,U),_6(U),U.stateNode.effectDuration+=HY(n);break;case 31:I6(X,U),_6(U),n&4&&(n=U.updateQueue,n!==null&&(U.updateQueue=null,ez(U,n)));break;case 13:I6(X,U),_6(U),U.child.flags&8192&&U.memoizedState!==null!==(f!==null&&f.memoizedState!==null)&&($Z=AU()),n&4&&(n=U.updateQueue,n!==null&&(U.updateQueue=null,ez(U,n)));break;case 22:U0=U.memoizedState!==null;var g0=f!==null&&f.memoizedState!==null,o0=S_,F$=zU;if(S_=o0||U0,zU=F$||g0,I6(X,U),zU=F$,S_=o0,g0&&!U0&&!o0&&!F$&&(U.mode&h$)!==j$&&0<=v$&&0<=N$&&0.05<N$-v$&&Wz(U,v$,N$),_6(U),n&8192)$:for(X=U.stateNode,X._visibility=U0?X._visibility&~eY:X._visibility|eY,!U0||f===null||g0||S_||zU||(I4(U),(U.mode&h$)!==j$&&0<=v$&&0<=N$&&0.05<N$-v$&&AI(U,v$,N$,"Disconnect")),f=null,X=U;;){if(X.tag===5||X.tag===26){if(f===null){g0=f=X;try{Z0=g0.stateNode,U0?r(g0,tx,Z0):r(g0,sx,g0.stateNode,g0.memoizedProps)}catch(E$){J1(g0,g0.return,E$)}}}else if(X.tag===6){if(f===null){g0=X;try{h0=g0.stateNode,U0?r(g0,rx,h0):r(g0,ex,h0,g0.memoizedProps)}catch(E$){J1(g0,g0.return,E$)}}}else if(X.tag===18){if(f===null){g0=X;try{u0=g0.stateNode,U0?r(g0,ox,u0):r(g0,ax,g0.stateNode)}catch(E$){J1(g0,g0.return,E$)}}}else if((X.tag!==22&&X.tag!==23||X.memoizedState===null||X===U)&&X.child!==null){X.child.return=X,X=X.child;continue}if(X===U)break $;for(;X.sibling===null;){if(X.return===null||X.return===U)break $;f===X&&(f=null),X=X.return}f===X&&(f=null),X.sibling.return=X.return,X=X.sibling}n&4&&(n=U.updateQueue,n!==null&&(f=n.retryQueue,f!==null&&(n.retryQueue=null,ez(U,f))));break;case 19:I6(X,U),_6(U),n&4&&(n=U.updateQueue,n!==null&&(U.updateQueue=null,ez(U,n)));break;case 30:break;case 21:break;default:I6(X,U),_6(U)}(U.mode&h$)!==j$&&0<=v$&&0<=N$&&((m1||0.05<y1)&&EI(U,v$,N$,y1,g1),U.alternate===null&&U.return!==null&&U.return.alternate!==null&&0.05<N$-v$&&(eP(U.return.alternate,U.return)||AI(U,v$,N$,"Mount"))),F6(z),VI(D),g1=V,m1=C}function _6(U){var X=U.flags;if(X&2){try{r(U,Mx,U)}catch(z){J1(U,U.return,z)}U.flags&=-3}X&4096&&(U.flags&=-4097)}function YV(U){if(U.subtreeFlags&1024)for(U=U.child;U!==null;){var X=U;YV(X),X.tag===5&&X.flags&1024&&X.stateNode.reset(),U=U.sibling}}function jI(U,X){if(X.subtreeFlags&8772)for(X=X.child;X!==null;)$V(U,X.alternate,X),X=X.sibling}function JV(U){var X=H6(),z=PI(),D=SI(),V=vI();switch(U.tag){case 0:case 11:case 14:case 15:T9(U,U.return,v6),I4(U);break;case 1:BI(U,U.return);var C=U.stateNode;typeof C.componentWillUnmount==="function"&&oP(U,U.return,C),I4(U);break;case 27:r(U,yY,U.stateNode);case 26:case 5:BI(U,U.return),I4(U);break;case 22:U.memoizedState===null&&I4(U);break;case 30:I4(U);break;default:I4(U)}(U.mode&h$)!==j$&&0<=v$&&0<=N$&&(m1||0.05<y1)&&EI(U,v$,N$,y1,g1),F6(X),VI(z),g1=D,m1=V}function I4(U){for(U=U.child;U!==null;)JV(U),U=U.sibling}function QV(U,X,z,D){var V=H6(),C=PI(),f=SI(),n=vI(),U0=z.flags;switch(z.tag){case 0:case 11:case 15:kI(U,z,D),mP(z,v6);break;case 1:if(kI(U,z,D),X=z.stateNode,typeof X.componentDidMount==="function"&&r(z,cK,z,X),X=z.updateQueue,X!==null){U=z.stateNode;try{r(z,_x,X,U)}catch(Z0){J1(z,z.return,Z0)}}D&&U0&64&&iP(z),qY(z,z.return);break;case 27:sP(z);case 26:case 5:kI(U,z,D),D&&X===null&&U0&4&&rP(z),qY(z,z.return);break;case 12:if(D&&U0&4){U0=z_(),kI(U,z,D),D=z.stateNode,D.effectDuration+=HY(U0);try{r(z,tP,z,X,Y2,D.effectDuration)}catch(Z0){J1(z,z.return,Z0)}}else kI(U,z,D);break;case 31:kI(U,z,D),D&&U0&4&&_V(U,z);break;case 13:kI(U,z,D),D&&U0&4&&XV(U,z);break;case 22:z.memoizedState===null&&kI(U,z,D),qY(z,z.return);break;case 30:break;default:kI(U,z,D)}(z.mode&h$)!==j$&&0<=v$&&0<=N$&&(m1||0.05<y1)&&EI(z,v$,N$,y1,g1),F6(V),VI(C),g1=f,m1=n}function kI(U,X,z){z=z&&(X.subtreeFlags&8772)!==0;for(X=X.child;X!==null;)QV(U,X.alternate,X,z),X=X.sibling}function P9(U,X){var z=null;U!==null&&U.memoizedState!==null&&U.memoizedState.cachePool!==null&&(z=U.memoizedState.cachePool.pool),U=null,X.memoizedState!==null&&X.memoizedState.cachePool!==null&&(U=X.memoizedState.cachePool.pool),U!==z&&(U!=null&&a2(U),z!=null&&WY(z))}function V9(U,X){U=null,X.alternate!==null&&(U=X.alternate.memoizedState.cache),X=X.memoizedState.cache,X!==U&&(a2(X),U!=null&&WY(U))}function YI(U,X,z,D,V){if(X.subtreeFlags&10256||X.actualDuration!==0&&(X.alternate===null||X.alternate.child!==X.child))for(X=X.child;X!==null;){var C=X.sibling;zV(U,X,z,D,C!==null?C.actualStartTime:V),X=C}}function zV(U,X,z,D,V){var C=H6(),f=PI(),n=SI(),U0=vI(),Z0=I2,h0=X.flags;switch(X.tag){case 0:case 11:case 15:(X.mode&h$)!==j$&&0<X.actualStartTime&&(X.flags&1)!==0&&Hz(X,X.actualStartTime,V,WU,z),YI(U,X,z,D,V),h0&2048&&dP(X,mU|o6);break;case 1:(X.mode&h$)!==j$&&0<X.actualStartTime&&((X.flags&128)!==0?JL(X,X.actualStartTime,V,[]):(X.flags&1)!==0&&Hz(X,X.actualStartTime,V,WU,z)),YI(U,X,z,D,V);break;case 3:var u0=z_(),g0=WU;WU=X.alternate!==null&&X.alternate.memoizedState.isDehydrated&&(X.flags&256)===0,YI(U,X,z,D,V),WU=g0,h0&2048&&(z=null,X.alternate!==null&&(z=X.alternate.memoizedState.cache),D=X.memoizedState.cache,D!==z&&(a2(D),z!=null&&WY(z))),U.passiveEffectDuration+=Sz(u0);break;case 12:if(h0&2048){h0=z_(),YI(U,X,z,D,V),U=X.stateNode,U.passiveEffectDuration+=HY(h0);try{r(X,Tx,X,X.alternate,Y2,U.passiveEffectDuration)}catch(o0){J1(X,X.return,o0)}}else YI(U,X,z,D,V);break;case 31:h0=WU,u0=X.alternate!==null?X.alternate.memoizedState:null,g0=X.memoizedState,u0!==null&&g0===null?(g0=X.deletions,g0!==null&&0<g0.length&&g0[0].tag===18?(WU=!1,u0=u0.hydrationErrors,u0!==null&&JL(X,X.actualStartTime,V,u0)):WU=!0):WU=!1,YI(U,X,z,D,V),WU=h0;break;case 13:h0=WU,u0=X.alternate!==null?X.alternate.memoizedState:null,g0=X.memoizedState,u0===null||u0.dehydrated===null||g0!==null&&g0.dehydrated!==null?WU=!1:(g0=X.deletions,g0!==null&&0<g0.length&&g0[0].tag===18?(WU=!1,u0=u0.hydrationErrors,u0!==null&&JL(X,X.actualStartTime,V,u0)):WU=!0),YI(U,X,z,D,V),WU=h0;break;case 23:break;case 22:g0=X.stateNode,u0=X.alternate,X.memoizedState!==null?g0._visibility&W_?YI(U,X,z,D,V):NY(U,X,z,D,V):g0._visibility&W_?YI(U,X,z,D,V):(g0._visibility|=W_,KX(U,X,z,D,(X.subtreeFlags&10256)!==0||X.actualDuration!==0&&(X.alternate===null||X.alternate.child!==X.child),V),(X.mode&h$)===j$||WU||(U=X.actualStartTime,0<=U&&0.05<V-U&&Wz(X,U,V),0<=v$&&0<=N$&&0.05<N$-v$&&Wz(X,v$,N$))),h0&2048&&P9(u0,X);break;case 24:YI(U,X,z,D,V),h0&2048&&V9(X.alternate,X);break;default:YI(U,X,z,D,V)}if((X.mode&h$)!==j$){if(U=!WU&&X.alternate===null&&X.return!==null&&X.return.alternate!==null)z=X.actualStartTime,0<=z&&0.05<V-z&&AI(X,z,V,"Mount");0<=v$&&0<=N$&&((m1||0.05<y1)&&EI(X,v$,N$,y1,g1),U&&0.05<N$-v$&&AI(X,v$,N$,"Mount"))}F6(C),VI(f),g1=n,m1=U0,I2=Z0}function KX(U,X,z,D,V,C){V=V&&((X.subtreeFlags&10256)!==0||X.actualDuration!==0&&(X.alternate===null||X.alternate.child!==X.child));for(X=X.child;X!==null;){var f=X.sibling;ZV(U,X,z,D,V,f!==null?f.actualStartTime:C),X=f}}function ZV(U,X,z,D,V,C){var f=H6(),n=PI(),U0=SI(),Z0=vI(),h0=I2;V&&(X.mode&h$)!==j$&&0<X.actualStartTime&&(X.flags&1)!==0&&Hz(X,X.actualStartTime,C,WU,z);var u0=X.flags;switch(X.tag){case 0:case 11:case 15:KX(U,X,z,D,V,C),dP(X,mU);break;case 23:break;case 22:var g0=X.stateNode;X.memoizedState!==null?g0._visibility&W_?KX(U,X,z,D,V,C):NY(U,X,z,D,C):(g0._visibility|=W_,KX(U,X,z,D,V,C)),V&&u0&2048&&P9(X.alternate,X);break;case 24:KX(U,X,z,D,V,C),V&&u0&2048&&V9(X.alternate,X);break;default:KX(U,X,z,D,V,C)}(X.mode&h$)!==j$&&0<=v$&&0<=N$&&(m1||0.05<y1)&&EI(X,v$,N$,y1,g1),F6(f),VI(n),g1=U0,m1=Z0,I2=h0}function NY(U,X,z,D,V){if(X.subtreeFlags&10256||X.actualDuration!==0&&(X.alternate===null||X.alternate.child!==X.child))for(var C=X.child;C!==null;){X=C.sibling;var f=U,n=z,U0=D,Z0=X!==null?X.actualStartTime:V,h0=I2;(C.mode&h$)!==j$&&0<C.actualStartTime&&(C.flags&1)!==0&&Hz(C,C.actualStartTime,Z0,WU,n);var u0=C.flags;switch(C.tag){case 22:NY(f,C,n,U0,Z0),u0&2048&&P9(C.alternate,C);break;case 24:NY(f,C,n,U0,Z0),u0&2048&&V9(C.alternate,C);break;default:NY(f,C,n,U0,Z0)}I2=h0,C=X}}function DX(U,X,z){if(U.subtreeFlags&MJ)for(U=U.child;U!==null;)OV(U,X,z),U=U.sibling}function OV(U,X,z){switch(U.tag){case 26:DX(U,X,z),U.flags&MJ&&U.memoizedState!==null&&zf(z,LI,U.memoizedState,U.memoizedProps);break;case 5:DX(U,X,z);break;case 3:case 4:var D=LI;LI=J8(U.stateNode.containerInfo),DX(U,X,z),LI=D;break;case 22:U.memoizedState===null&&(D=U.alternate,D!==null&&D.memoizedState!==null?(D=MJ,MJ=16777216,DX(U,X,z),MJ=D):DX(U,X,z));break;default:DX(U,X,z)}}function LV(U){var X=U.alternate;if(X!==null&&(U=X.child,U!==null)){X.child=null;do X=U.sibling,U.sibling=null,U=X;while(U!==null)}}function BY(U){var X=U.deletions;if((U.flags&16)!==0){if(X!==null)for(var z=0;z<X.length;z++){var D=X[z],V=H6();RU=D,WV(D,U),(D.mode&h$)!==j$&&0<=v$&&0<=N$&&0.05<N$-v$&&AI(D,v$,N$,"Unmount"),F6(V)}LV(U)}if(U.subtreeFlags&10256)for(U=U.child;U!==null;)KV(U),U=U.sibling}function KV(U){var X=H6(),z=PI(),D=SI(),V=vI();switch(U.tag){case 0:case 11:case 15:BY(U),U.flags&2048&&M9(U,U.return,mU|o6);break;case 3:var C=z_();BY(U),U.stateNode.passiveEffectDuration+=Sz(C);break;case 12:C=z_(),BY(U),U.stateNode.passiveEffectDuration+=HY(C);break;case 22:C=U.stateNode,U.memoizedState!==null&&C._visibility&W_&&(U.return===null||U.return.tag!==13)?(C._visibility&=~W_,$8(U),(U.mode&h$)!==j$&&0<=v$&&0<=N$&&0.05<N$-v$&&AI(U,v$,N$,"Disconnect")):BY(U);break;default:BY(U)}(U.mode&h$)!==j$&&0<=v$&&0<=N$&&(m1||0.05<y1)&&EI(U,v$,N$,y1,g1),F6(X),VI(z),m1=V,g1=D}function $8(U){var X=U.deletions;if((U.flags&16)!==0){if(X!==null)for(var z=0;z<X.length;z++){var D=X[z],V=H6();RU=D,WV(D,U),(D.mode&h$)!==j$&&0<=v$&&0<=N$&&0.05<N$-v$&&AI(D,v$,N$,"Unmount"),F6(V)}LV(U)}for(U=U.child;U!==null;)DV(U),U=U.sibling}function DV(U){var X=H6(),z=PI(),D=SI(),V=vI();switch(U.tag){case 0:case 11:case 15:M9(U,U.return,mU),$8(U);break;case 22:var C=U.stateNode;C._visibility&W_&&(C._visibility&=~W_,$8(U));break;default:$8(U)}(U.mode&h$)!==j$&&0<=v$&&0<=N$&&(m1||0.05<y1)&&EI(U,v$,N$,y1,g1),F6(X),VI(z),m1=V,g1=D}function WV(U,X){for(;RU!==null;){var z=RU,D=z,V=X,C=H6(),f=PI(),n=SI(),U0=vI();switch(D.tag){case 0:case 11:case 15:M9(D,V,mU);break;case 23:case 22:D.memoizedState!==null&&D.memoizedState.cachePool!==null&&(V=D.memoizedState.cachePool.pool,V!=null&&a2(V));break;case 24:WY(D.memoizedState.cache)}if((D.mode&h$)!==j$&&0<=v$&&0<=N$&&(m1||0.05<y1)&&EI(D,v$,N$,y1,g1),F6(C),VI(f),m1=U0,g1=n,D=z.child,D!==null)D.return=z,RU=D;else $:for(z=U;RU!==null;){if(D=RU,C=D.sibling,f=D.return,UV(D),D===z){RU=null;break $}if(C!==null){C.return=f,RU=C;break $}RU=f}}}function Rx(){ly.forEach(function(U){return U()})}function HV(){var U=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return U||e0.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),U}function M6(U){if((_1&HU)!==PU&&n$!==0)return n$&-n$;var X=e0.T;return X!==null?(X._updatedFibers||(X._updatedFibers=new Set),X._updatedFibers.add(U),k9()):_0()}function FV(){if(Y6===0)if((n$&536870912)===0||a$){var U=M8;M8<<=1,(M8&3932160)===0&&(M8=262144),Y6=U}else Y6=536870912;return U=S6.current,U!==null&&(U.flags|=32),Y6}function l1(U,X,z){if(eX&&console.error("useInsertionEffect must not schedule updates."),KD&&(XZ=!0),U===M1&&(O1===F4||O1===T4)||U.cancelPendingCommit!==null)HX(U,0),o_(U,n$,Y6,!1);if(V0(U,z),(_1&HU)!==PU&&U===M1){if(yI)switch(X.tag){case 0:case 11:case 15:U=l$&&t(l$)||"Unknown",lC.has(U)||(lC.add(U),X=t(X)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",X,U,U));break;case 1:cC||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),cC=!0)}}else hI&&B0(U,X,z),kx(X),U===M1&&((_1&HU)===PU&&(W2|=z),b1===L2&&o_(U,n$,Y6,!1)),gI(U)}function TV(U,X,z){if((_1&(HU|C6))!==PU)throw Error("Should not already be working.");if(n$!==0&&l$!==null){var D=l$,V=AU();switch(fv){case RJ:case F4:var C=GJ;C1&&((D=D._debugTask)?D.run(console.timeStamp.bind(console,"Suspended",C,V,u6,void 0,"primary-light")):console.timeStamp("Suspended",C,V,u6,void 0,"primary-light"));break;case T4:C=GJ,C1&&((D=D._debugTask)?D.run(console.timeStamp.bind(console,"Action",C,V,u6,void 0,"primary-light")):console.timeStamp("Action",C,V,u6,void 0,"primary-light"));break;default:C1&&(D=V-GJ,3>D||console.timeStamp("Blocked",GJ,V,u6,void 0,5>D?"primary-light":10>D?"primary":100>D?"primary-dark":"error"))}}C=(z=!z&&(X&127)===0&&(X&U.expiredLanes)===0||k0(U,X))?Vx(U,X):v9(U,X,!0);var f=z;do{if(C===v_){aX&&!z&&o_(U,X,0,!1),X=O1,GJ=YU(),fv=X;break}else{if(D=AU(),V=U.current.alternate,f&&!Px(V)){D6(X),V=EU,C=D,!C1||C<=V||(UU?UU.run(console.timeStamp.bind(console,"Teared Render",V,C,t$,o$,"error")):console.timeStamp("Teared Render",V,C,t$,o$,"error")),_4(X,D),C=v9(U,X,!1),f=!1;continue}if(C===H4){if(f=X,U.errorRecoveryDisabledLanes&f)var n=0;else n=U.pendingLanes&-536870913,n=n!==0?n:n&536870912?536870912:0;if(n!==0){D6(X),QL(EU,D,X,UU),_4(X,D),X=n;$:{D=U,C=f,f=VJ;var U0=D.current.memoizedState.isDehydrated;if(U0&&(HX(D,n).flags|=256),n=v9(D,n,!1),n!==H4){if(GD&&!U0){D.errorRecoveryDisabledLanes|=C,W2|=C,C=L2;break $}D=dU,dU=f,D!==null&&(dU===null?dU=D:dU.push.apply(dU,D))}C=n}if(f=!1,C!==H4)continue;else D=AU()}}if(C===EJ){D6(X),QL(EU,D,X,UU),_4(X,D),HX(U,0),o_(U,X,0,!0);break}$:{switch(z=U,C){case v_:case EJ:throw Error("Root did not complete. This is a bug in React.");case L2:if((X&4194048)!==X)break;case r8:D6(X),TR(EU,D,X,UU),_4(X,D),V=X,(V&127)!==0?x8=D:(V&4194048)!==0&&(f8=D),o_(z,X,Y6,!K2);break $;case H4:dU=null;break;case t8:case BC:break;default:throw Error("Unknown root exit status.")}if(e0.actQueue!==null)C9(z,V,X,dU,SJ,e8,Y6,W2,M4,C,null,null,EU,D);else{if((X&62914560)===X&&(f=$Z+gC-AU(),10<f)){if(o_(z,X,Y6,!K2),s0(z,0,!0)!==0)break $;KI=X,z.timeoutHandle=sC(MV.bind(null,z,V,dU,SJ,e8,X,Y6,W2,M4,K2,C,"Throttled",EU,D),f);break $}MV(z,V,dU,SJ,e8,X,Y6,W2,M4,K2,C,null,EU,D)}}}break}while(1);gI(U)}function MV(U,X,z,D,V,C,f,n,U0,Z0,h0,u0,g0,o0){U.timeoutHandle=V4;var F$=X.subtreeFlags,E$=null;if(F$&8192||(F$&16785408)===16785408){if(E$={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:G_},OV(X,C,E$),F$=(C&62914560)===C?$Z-AU():(C&4194048)===C?kC-AU():0,F$=Zf(E$,F$),F$!==null){KI=C,U.cancelPendingCommit=F$(C9.bind(null,U,X,C,z,D,V,f,n,U0,h0,E$,E$.waitingForViewTransition?"Waiting for the previous Animation":0<E$.count?0<E$.imgCount?"Suspended on CSS and Images":"Suspended on CSS":E$.imgCount===1?"Suspended on an Image":0<E$.imgCount?"Suspended on Images":null,g0,o0)),o_(U,C,f,!Z0);return}}C9(U,X,C,z,D,V,f,n,U0,h0,E$,u0,g0,o0)}function Px(U){for(var X=U;;){var z=X.tag;if((z===0||z===11||z===15)&&X.flags&16384&&(z=X.updateQueue,z!==null&&(z=z.stores,z!==null)))for(var D=0;D<z.length;D++){var V=z[D],C=V.getSnapshot;V=V.value;try{if(!pU(C(),V))return!1}catch(f){return!1}}if(z=X.child,X.subtreeFlags&16384&&z!==null)z.return=X,X=z;else{if(X===U)break;for(;X.sibling===null;){if(X.return===null||X.return===U)return!0;X=X.return}X.sibling.return=X.return,X=X.sibling}}return!0}function o_(U,X,z,D){X&=~YD,X&=~W2,U.suspendedLanes|=X,U.pingedLanes&=~X,D&&(U.warmLanes|=X),D=U.expirationTimes;for(var V=X;0<V;){var C=31-hU(V),f=1<<C;D[C]=-1,V&=~f}z!==0&&p0(U,z,X)}function WX(){return(_1&(HU|C6))===PU?(gY(0,!1),!1):!0}function S9(){if(l$!==null){if(O1===G6)var U=l$.return;else U=l$,Rz(),fL(U),pX=null,DJ=0,U=l$;for(;U!==null;)lP(U.alternate,U),U=U.return;l$=null}}function _4(U,X){(U&127)!==0&&(J2=X),(U&4194048)!==0&&(lI=X),(U&62914560)!==0&&(wv=X),(U&2080374784)!==0&&(xv=X)}function HX(U,X){C1&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",o$,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",o$,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",o$,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",o$,"primary-light"));var z=EU;if(EU=YU(),n$!==0&&0<z){if(D6(n$),b1===t8||b1===L2)TR(z,EU,X,UU);else{var D=EU,V=UU;if(C1&&!(D<=z)){var C=(X&738197653)===X?"tertiary-dark":"primary-dark",f=(X&536870912)===X?"Prewarm":(X&201326741)===X?"Interrupted Hydration":"Interrupted Render";V?V.run(console.timeStamp.bind(console,f,z,D,t$,o$,C)):console.timeStamp(f,z,D,t$,o$,C)}}_4(n$,EU)}if(z=UU,UU=null,(X&127)!==0){UU=IJ,V=0<=cI&&cI<J2?J2:cI,D=0<=Q4&&Q4<J2?J2:Q4,C=0<=D?D:0<=V?V:EU,0<=x8?(D6(2),MR(x8,C,X,z)):(y8&127)!==0&&(D6(2),KY(J2,C,E_)),z=V;var n=D,U0=_J,Z0=0<hX,h0=Q2===UJ,u0=Q2===w8;if(V=EU,D=IJ,C=bK,f=hK,C1){if(t$="Blocking",0<z?z>V&&(z=V):z=V,0<n?n>z&&(n=z):n=z,U0!==null&&z>n){var g0=Z0?"secondary-light":"warning";D?D.run(console.timeStamp.bind(console,Z0?"Consecutive":"Event: "+U0,n,z,t$,o$,g0)):console.timeStamp(Z0?"Consecutive":"Event: "+U0,n,z,t$,o$,g0)}V>z&&(n=h0?"error":(X&738197653)===X?"tertiary-light":"primary-light",h0=u0?"Promise Resolved":h0?"Cascading Update":5<V-z?"Update Blocked":"Update",u0=[],f!=null&&u0.push(["Component name",f]),C!=null&&u0.push(["Method name",C]),z={start:z,end:V,detail:{devtools:{properties:u0,track:t$,trackGroup:o$,color:n}}},D?D.run(performance.measure.bind(performance,h0,z)):performance.measure(h0,z))}cI=-1.1,Q2=0,hK=bK=null,x8=-1.1,hX=Q4,Q4=-1.1,J2=YU()}if((X&4194048)!==0&&(UU=XJ,V=0<=A_&&A_<lI?lI:A_,z=0<=d6&&d6<lI?lI:d6,D=0<=z2&&z2<lI?lI:z2,C=0<=D?D:0<=z?z:EU,0<=f8?(D6(256),MR(f8,C,X,UU)):(y8&4194048)!==0&&(D6(256),KY(lI,C,E_)),u0=D,n=z4,U0=0<Z2,Z0=uK===w8,C=EU,D=XJ,f=kv,h0=gv,C1&&(t$="Transition",0<z?z>C&&(z=C):z=C,0<V?V>z&&(V=z):V=z,0<u0?u0>V&&(u0=V):u0=V,V>u0&&n!==null&&(g0=U0?"secondary-light":"warning",D?D.run(console.timeStamp.bind(console,U0?"Consecutive":"Event: "+n,u0,V,t$,o$,g0)):console.timeStamp(U0?"Consecutive":"Event: "+n,u0,V,t$,o$,g0)),z>V&&(D?D.run(console.timeStamp.bind(console,"Action",V,z,t$,o$,"primary-dark")):console.timeStamp("Action",V,z,t$,o$,"primary-dark")),C>z&&(V=Z0?"Promise Resolved":5<C-z?"Update Blocked":"Update",u0=[],h0!=null&&u0.push(["Component name",h0]),f!=null&&u0.push(["Method name",f]),z={start:z,end:C,detail:{devtools:{properties:u0,track:t$,trackGroup:o$,color:"primary-light"}}},D?D.run(performance.measure.bind(performance,V,z)):performance.measure(V,z))),d6=A_=-1.1,uK=0,f8=-1.1,Z2=z2,z2=-1.1,lI=YU()),(X&62914560)!==0&&(y8&62914560)!==0&&(D6(4194304),KY(wv,EU,E_)),(X&2080374784)!==0&&(y8&2080374784)!==0&&(D6(268435456),KY(xv,EU,E_)),z=U.timeoutHandle,z!==V4&&(U.timeoutHandle=V4,_b(z)),z=U.cancelPendingCommit,z!==null&&(U.cancelPendingCommit=null,z()),KI=0,S9(),M1=U,l$=z=Y_(U.current,null),n$=X,O1=G6,q6=null,K2=!1,aX=k0(U,X),GD=!1,b1=v_,M4=Y6=YD=W2=D2=0,dU=VJ=null,e8=!1,(X&8)!==0&&(X|=X&32),D=U.entangledLanes,D!==0)for(U=U.entanglements,D&=X;0<D;)V=31-hU(D),C=1<<V,X|=U[V],D&=~C;return dI=X,Fz(),U=vv(),1000<U-Sv&&(e0.recentlyCreatedOwnerStacks=0,Sv=U),ZI.discardPendingWarnings(),z}function AV(U,X){w$=null,e0.H=TJ,e0.getCurrentStack=null,yI=!1,R6=null,X===nX||X===n8?(X=nR(),O1=RJ):X===lK?(X=nR(),O1=jC):O1=X===$D?XD:X!==null&&typeof X==="object"&&typeof X.then==="function"?PJ:a8,q6=X;var z=l$;z===null?(b1=EJ,iz(U,W6(X,U.current))):z.mode&h$&&PL(z)}function EV(){var U=S6.current;return U===null?!0:(n$&4194048)===n$?i6===null?!0:!1:(n$&62914560)===n$||(n$&536870912)!==0?U===i6:!1}function RV(){var U=e0.H;return e0.H=TJ,U===null?TJ:U}function PV(){var U=e0.A;return e0.A=cy,U}function U8(U){UU===null&&(UU=U._debugTask==null?null:U._debugTask)}function I8(){b1=L2,K2||(n$&4194048)!==n$&&S6.current!==null||(aX=!0),(D2&134217727)===0&&(W2&134217727)===0||M1===null||o_(M1,n$,Y6,!1)}function v9(U,X,z){var D=_1;_1|=HU;var V=RV(),C=PV();if(M1!==U||n$!==X){if(hI){var f=U.memoizedUpdaters;0<f.size&&(kY(U,n$),f.clear()),Y$(U,X)}SJ=null,HX(U,X)}X=!1,f=b1;$:do try{if(O1!==G6&&l$!==null){var n=l$,U0=q6;switch(O1){case XD:S9(),f=r8;break $;case RJ:case F4:case T4:case PJ:S6.current===null&&(X=!0);var Z0=O1;if(O1=G6,q6=null,FX(U,n,U0,Z0),z&&aX){f=v_;break $}break;default:Z0=O1,O1=G6,q6=null,FX(U,n,U0,Z0)}}VV(),f=b1;break}catch(h0){AV(U,h0)}while(1);return X&&U.shellSuspendCounter++,Rz(),_1=D,e0.H=V,e0.A=C,l$===null&&(M1=null,n$=0,Fz()),f}function VV(){for(;l$!==null;)SV(l$)}function Vx(U,X){var z=_1;_1|=HU;var D=RV(),V=PV();if(M1!==U||n$!==X){if(hI){var C=U.memoizedUpdaters;0<C.size&&(kY(U,n$),C.clear()),Y$(U,X)}SJ=null,UZ=AU()+wC,HX(U,X)}else aX=k0(U,X);$:do try{if(O1!==G6&&l$!==null)U:switch(X=l$,C=q6,O1){case a8:O1=G6,q6=null,FX(U,X,C,a8);break;case F4:case T4:if(hR(C)){O1=G6,q6=null,vV(X);break}X=function(){O1!==F4&&O1!==T4||M1!==U||(O1=s8),gI(U)},C.then(X,X);break $;case RJ:O1=s8;break $;case jC:O1=_D;break $;case s8:hR(C)?(O1=G6,q6=null,vV(X)):(O1=G6,q6=null,FX(U,X,C,s8));break;case _D:var f=null;switch(l$.tag){case 26:f=l$.memoizedState;case 5:case 27:var n=l$;if(f?TS(f):n.stateNode.complete){O1=G6,q6=null;var U0=n.sibling;if(U0!==null)l$=U0;else{var Z0=n.return;Z0!==null?(l$=Z0,_8(Z0)):l$=null}break U}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}O1=G6,q6=null,FX(U,X,C,_D);break;case PJ:O1=G6,q6=null,FX(U,X,C,PJ);break;case XD:S9(),b1=r8;break $;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}e0.actQueue!==null?VV():Sx();break}catch(h0){AV(U,h0)}while(1);if(Rz(),e0.H=D,e0.A=V,_1=z,l$!==null)return v_;return M1=null,n$=0,Fz(),b1}function Sx(){for(;l$!==null&&!Pf();)SV(l$)}function SV(U){var X=U.alternate;(U.mode&h$)!==j$?(RL(U),X=r(U,H9,X,U,dI),PL(U)):X=r(U,H9,X,U,dI),U.memoizedProps=U.pendingProps,X===null?_8(U):l$=X}function vV(U){var X=r(U,vx,U);U.memoizedProps=U.pendingProps,X===null?_8(U):l$=X}function vx(U){var X=U.alternate,z=(U.mode&h$)!==j$;switch(z&&RL(U),U.tag){case 15:case 0:X=yP(X,U,U.pendingProps,U.type,void 0,n$);break;case 11:X=yP(X,U,U.pendingProps,U.type.render,U.ref,n$);break;case 5:fL(U);default:lP(X,U),U=l$=SR(U,dI),X=H9(X,U,dI)}return z&&PL(U),X}function FX(U,X,z,D){Rz(),fL(X),pX=null,DJ=0;var V=X.return;try{if(Zx(U,V,X,z,n$)){b1=EJ,iz(U,W6(z,U.current)),l$=null;return}}catch(C){if(V!==null)throw l$=V,C;b1=EJ,iz(U,W6(z,U.current)),l$=null;return}if(X.flags&32768){if(a$||D===a8)U=!0;else if(aX||(n$&536870912)!==0)U=!1;else if(K2=U=!0,D===F4||D===T4||D===RJ||D===PJ)D=S6.current,D!==null&&D.tag===13&&(D.flags|=16384);CV(X,U)}else _8(X)}function _8(U){var X=U;do{if((X.flags&32768)!==0){CV(X,K2);return}var z=X.alternate;if(U=X.return,RL(X),z=r(X,Kx,z,X,dI),(X.mode&h$)!==j$&&wR(X),z!==null){l$=z;return}if(X=X.sibling,X!==null){l$=X;return}l$=X=U}while(X!==null);b1===v_&&(b1=BC)}function CV(U,X){do{var z=Dx(U.alternate,U);if(z!==null){z.flags&=32767,l$=z;return}if((U.mode&h$)!==j$){wR(U),z=U.actualDuration;for(var D=U.child;D!==null;)z+=D.actualDuration,D=D.sibling;U.actualDuration=z}if(z=U.return,z!==null&&(z.flags|=32768,z.subtreeFlags=0,z.deletions=null),!X&&(U=U.sibling,U!==null)){l$=U;return}l$=U=z}while(U!==null);b1=r8,l$=null}function C9(U,X,z,D,V,C,f,n,U0,Z0,h0,u0,g0,o0){U.cancelPendingCommit=null;do jY();while(OU!==F2);if(ZI.flushLegacyContextWarning(),ZI.flushPendingUnsafeLifecycleWarnings(),(_1&(HU|C6))!==PU)throw Error("Should not already be working.");if(D6(z),Z0===H4?QL(g0,o0,z,UU):D!==null?aw(g0,o0,z,D,X!==null&&X.alternate!==null&&X.alternate.memoizedState.isDehydrated&&(X.flags&256)!==0,UU):rw(g0,o0,z,UU),X!==null){if(z===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),X===U.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(C=X.lanes|X.childLanes,C|=gK,X$(U,z,C,f,n,U0),U===M1&&(l$=M1=null,n$=0),sX=X,T2=U,KI=z,zD=C,OD=V,uC=D,ZD=o0,nC=u0,DI=IZ,pC=null,X.actualDuration!==0||(X.subtreeFlags&10256)!==0||(X.flags&10256)!==0?(U.callbackNode=null,U.callbackPriority=0,jx(PX,function(){return jJ=window.event,DI===IZ&&(DI=QD),kV(),null})):(U.callbackNode=null,U.callbackPriority=0),M_=null,Y2=YU(),u0!==null&&sw(o0,Y2,u0,UU),D=(X.flags&13878)!==0,(X.subtreeFlags&13878)!==0||D){D=e0.T,e0.T=null,V=Q1.p,Q1.p=P6,f=_1,_1|=C6;try{Ax(U,X,z)}finally{_1=f,Q1.p=V,e0.T=D}}OU=fC,qV(),NV(),BV()}}function qV(){if(OU===fC){OU=F2;var U=T2,X=sX,z=KI,D=(X.flags&13878)!==0;if((X.subtreeFlags&13878)!==0||D){D=e0.T,e0.T=null;var V=Q1.p;Q1.p=P6;var C=_1;_1|=C6;try{tX=z,rX=U,vz(),GV(X,U),rX=tX=null,z=RD;var f=WR(U.containerInfo),n=z.focusedElem,U0=z.selectionRange;if(f!==n&&n&&n.ownerDocument&&DR(n.ownerDocument.documentElement,n)){if(U0!==null&&GL(n)){var{start:Z0,end:h0}=U0;if(h0===void 0&&(h0=Z0),"selectionStart"in n)n.selectionStart=Z0,n.selectionEnd=Math.min(h0,n.value.length);else{var u0=n.ownerDocument||document,g0=u0&&u0.defaultView||window;if(g0.getSelection){var o0=g0.getSelection(),F$=n.textContent.length,E$=Math.min(U0.start,F$),V1=U0.end===void 0?E$:Math.min(U0.end,F$);!o0.extend&&E$>V1&&(f=V1,V1=E$,E$=f);var e$=KR(n,E$),j0=KR(n,V1);if(e$&&j0&&(o0.rangeCount!==1||o0.anchorNode!==e$.node||o0.anchorOffset!==e$.offset||o0.focusNode!==j0.node||o0.focusOffset!==j0.offset)){var w0=u0.createRange();w0.setStart(e$.node,e$.offset),o0.removeAllRanges(),E$>V1?(o0.addRange(w0),o0.extend(j0.node,j0.offset)):(w0.setEnd(j0.node,j0.offset),o0.addRange(w0))}}}}u0=[];for(o0=n;o0=o0.parentNode;)o0.nodeType===1&&u0.push({element:o0,left:o0.scrollLeft,top:o0.scrollTop});typeof n.focus==="function"&&n.focus();for(n=0;n<u0.length;n++){var y0=u0[n];y0.element.scrollLeft=y0.left,y0.element.scrollTop=y0.top}}TZ=!!ED,RD=ED=null}finally{_1=C,Q1.p=V,e0.T=D}}U.current=X,OU=yC}}function NV(){if(OU===yC){OU=F2;var U=pC;if(U!==null){Y2=YU();var X=T_,z=Y2;!C1||z<=X||(E_?E_.run(console.timeStamp.bind(console,U,X,z,t$,o$,"secondary-light")):console.timeStamp(U,X,z,t$,o$,"secondary-light"))}U=T2,X=sX,z=KI;var D=(X.flags&8772)!==0;if((X.subtreeFlags&8772)!==0||D){D=e0.T,e0.T=null;var V=Q1.p;Q1.p=P6;var C=_1;_1|=C6;try{tX=z,rX=U,vz(),$V(U,X.alternate,X),rX=tX=null}finally{_1=C,Q1.p=V,e0.T=D}}U=ZD,X=nC,T_=YU(),U=X===null?U:Y2,X=T_,z=DI===JD,D=UU,M_!==null?AR(U,X,M_,!1,D):!C1||X<=U||(D?D.run(console.timeStamp.bind(console,z?"Commit Interrupted View Transition":"Commit",U,X,t$,o$,z?"error":"secondary-dark")):console.timeStamp(z?"Commit Interrupted View Transition":"Commit",U,X,t$,o$,z?"error":"secondary-dark")),OU=bC}}function BV(){if(OU===hC||OU===bC){if(OU===hC){var U=T_;T_=YU();var X=T_,z=DI===JD;!C1||X<=U||(E_?E_.run(console.timeStamp.bind(console,z?"Interrupted View Transition":"Starting Animation",U,X,t$,o$,z?"error":"secondary-light")):console.timeStamp(z?"Interrupted View Transition":"Starting Animation",U,X,t$,o$,z?" error":"secondary-light")),DI!==JD&&(DI=xC)}OU=F2,Vf(),U=T2;var D=sX;X=KI,z=uC;var V=D.actualDuration!==0||(D.subtreeFlags&10256)!==0||(D.flags&10256)!==0;V?OU=_Z:(OU=F2,sX=T2=null,jV(U,U.pendingLanes),A4=0,CJ=null);var C=U.pendingLanes;if(C===0&&(H2=null),V||fV(U),C=u(X),D=D.stateNode,xU&&typeof xU.onCommitFiberRoot==="function")try{var f=(D.current.flags&128)===128;switch(C){case P6:var n=OK;break;case QI:n=LK;break;case uI:n=PX;break;case E8:n=KK;break;default:n=PX}xU.onCommitFiberRoot(VX,D,n,f)}catch(u0){bI||(bI=!0,console.error("React instrumentation encountered an error: %o",u0))}if(hI&&U.memoizedUpdaters.clear(),Rx(),z!==null){f=e0.T,n=Q1.p,Q1.p=P6,e0.T=null;try{var U0=U.onRecoverableError;for(D=0;D<z.length;D++){var Z0=z[D],h0=Cx(Z0.stack);r(Z0.source,U0,Z0.value,h0)}}finally{e0.T=f,Q1.p=n}}(KI&3)!==0&&jY(),gI(U),C=U.pendingLanes,(X&261930)!==0&&(C&42)!==0?(h8=!0,U===LD?vJ++:(vJ=0,LD=U)):vJ=0,V||_4(X,T_),gY(0,!1)}}function Cx(U){return U={componentStack:U},Object.defineProperty(U,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),U}function jV(U,X){(U.pooledCacheLanes&=X)===0&&(X=U.pooledCache,X!=null&&(U.pooledCache=null,WY(X)))}function jY(){return qV(),NV(),BV(),kV()}function kV(){if(OU!==_Z)return!1;var U=T2,X=zD;zD=0;var z=u(KI),D=uI===0||uI>z?uI:z;z=e0.T;var V=Q1.p;try{Q1.p=D,e0.T=null;var C=OD;OD=null,D=T2;var f=KI;if(OU=F2,sX=T2=null,KI=0,(_1&(HU|C6))!==PU)throw Error("Cannot flush passive effects while already rendering.");D6(f),KD=!0,XZ=!1;var n=0;if(M_=null,n=AU(),DI===xC)KY(T_,n,E_);else{var U0=T_,Z0=n,h0=DI===QD;!C1||Z0<=U0||(UU?UU.run(console.timeStamp.bind(console,h0?"Waiting for Paint":"Waiting",U0,Z0,t$,o$,"secondary-light")):console.timeStamp(h0?"Waiting for Paint":"Waiting",U0,Z0,t$,o$,"secondary-light"))}U0=_1,_1|=C6;var u0=D.current;vz(),KV(u0);var g0=D.current;u0=ZD,vz(),zV(D,g0,f,C,u0),fV(D),_1=U0;var o0=AU();if(g0=n,u0=UU,M_!==null?AR(g0,o0,M_,!0,u0):!C1||o0<=g0||(u0?u0.run(console.timeStamp.bind(console,"Remaining Effects",g0,o0,t$,o$,"secondary-dark")):console.timeStamp("Remaining Effects",g0,o0,t$,o$,"secondary-dark")),_4(f,o0),gY(0,!1),XZ?D===CJ?A4++:(A4=0,CJ=D):A4=0,XZ=KD=!1,xU&&typeof xU.onPostCommitFiberRoot==="function")try{xU.onPostCommitFiberRoot(VX,D)}catch(E$){bI||(bI=!0,console.error("React instrumentation encountered an error: %o",E$))}var F$=D.current.stateNode;return F$.effectDuration=0,F$.passiveEffectDuration=0,!0}finally{Q1.p=V,e0.T=z,jV(U,X)}}function gV(U,X,z){X=W6(z,X),xR(X),X=G9(U.stateNode,X,2),U=l_(U,X,2),U!==null&&(V0(U,2),gI(U))}function J1(U,X,z){if(eX=!1,U.tag===3)gV(U,U,z);else{for(;X!==null;){if(X.tag===3){gV(X,U,z);return}if(X.tag===1){var D=X.stateNode;if(typeof X.type.getDerivedStateFromError==="function"||typeof D.componentDidCatch==="function"&&(H2===null||!H2.has(D))){U=W6(z,U),xR(U),z=Y9(2),D=l_(X,z,2),D!==null&&(J9(z,D,X,U),V0(D,2),gI(D));return}}X=X.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
154
|
-
|
|
155
|
-
Error message:
|
|
156
|
-
|
|
157
|
-
%s`,z)}}function q9(U,X,z){var D=U.pingCache;if(D===null){D=U.pingCache=new my;var V=new Set;D.set(X,V)}else V=D.get(X),V===void 0&&(V=new Set,D.set(X,V));V.has(z)||(GD=!0,V.add(z),D=qx.bind(null,U,X,z),hI&&kY(U,z),X.then(D,D))}function qx(U,X,z){var D=U.pingCache;D!==null&&D.delete(X),U.pingedLanes|=U.suspendedLanes&z,U.warmLanes&=~z,(z&127)!==0?0>cI&&(J2=cI=YU(),IJ=g8("Promise Resolved"),Q2=w8):(z&4194048)!==0&&0>d6&&(lI=d6=YU(),XJ=g8("Promise Resolved"),uK=w8),HV()&&e0.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
158
|
-
|
|
159
|
-
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
160
|
-
|
|
161
|
-
act(() => {
|
|
162
|
-
/* finish loading suspended data */
|
|
163
|
-
});
|
|
164
|
-
/* assert on the output */
|
|
165
|
-
|
|
166
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),M1===U&&(n$&z)===z&&(b1===L2||b1===t8&&(n$&62914560)===n$&&AU()-$Z<gC?(_1&HU)===PU&&HX(U,0):YD|=z,M4===n$&&(M4=0)),gI(U)}function wV(U,X){X===0&&(X=M$()),U=wU(U,X),U!==null&&(V0(U,X),gI(U))}function Nx(U){var X=U.memoizedState,z=0;X!==null&&(z=X.retryLane),wV(U,z)}function Bx(U,X){var z=0;switch(U.tag){case 31:case 13:var{stateNode:D,memoizedState:V}=U;V!==null&&(z=V.retryLane);break;case 19:D=U.stateNode;break;case 22:D=U.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}D!==null&&D.delete(X),wV(U,z)}function N9(U,X,z){if((X.subtreeFlags&67117056)!==0)for(X=X.child;X!==null;){var D=U,V=X,C=V.type===W8;C=z||C,V.tag!==22?V.flags&67108864?C&&r(V,xV,D,V):N9(D,V,C):V.memoizedState===null&&(C&&V.flags&8192?r(V,xV,D,V):V.subtreeFlags&67108864&&r(V,N9,D,V,C)),X=X.sibling}}function xV(U,X){c0(!0);try{JV(X),DV(X),QV(U,X.alternate,X,!1),ZV(U,X,0,null,!1,0)}finally{c0(!1)}}function fV(U){var X=!0;U.current.mode&(fU|zI)||(X=!1),N9(U,U.current,X)}function yV(U){if((_1&HU)===PU){var X=U.tag;if(X===3||X===1||X===0||X===11||X===14||X===15){if(X=t(U)||"ReactComponent",GZ!==null){if(GZ.has(X))return;GZ.add(X)}else GZ=new Set([X]);r(U,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function kY(U,X){hI&&U.memoizedUpdaters.forEach(function(z){B0(U,z,X)})}function jx(U,X){var z=e0.actQueue;return z!==null?(z.push(X),oy):ZK(U,X)}function kx(U){HV()&&e0.actQueue===null&&r(U,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
167
|
-
|
|
168
|
-
When testing, code that causes React state updates should be wrapped into act(...):
|
|
169
|
-
|
|
170
|
-
act(() => {
|
|
171
|
-
/* fire events that update state */
|
|
172
|
-
});
|
|
173
|
-
/* assert on the output */
|
|
174
|
-
|
|
175
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,t(U))})}function gI(U){U!==$G&&U.next===null&&($G===null?YZ=$G=U:$G=$G.next=U),JZ=!0,e0.actQueue!==null?WD||(WD=!0,nV()):DD||(DD=!0,nV())}function gY(U,X){if(!HD&&JZ){HD=!0;do{var z=!1;for(var D=YZ;D!==null;){if(!X)if(U!==0){var V=D.pendingLanes;if(V===0)var C=0;else{var{suspendedLanes:f,pingedLanes:n}=D;C=(1<<31-hU(42|U)+1)-1,C&=V&~(f&~n),C=C&201326741?C&201326741|1:C?C|2:0}C!==0&&(z=!0,uV(D,C))}else C=n$,C=s0(D,D===M1?C:0,D.cancelPendingCommit!==null||D.timeoutHandle!==V4),(C&3)===0||k0(D,C)||(z=!0,uV(D,C));D=D.next}}while(z);HD=!1}}function gx(){jJ=window.event,B9()}function B9(){JZ=WD=DD=!1;var U=0;M2!==0&&ux()&&(U=M2);for(var X=AU(),z=null,D=YZ;D!==null;){var V=D.next,C=bV(D,X);if(C===0)D.next=null,z===null?YZ=V:z.next=V,V===null&&($G=z);else if(z=D,U!==0||(C&3)!==0)JZ=!0;D=V}OU!==F2&&OU!==_Z||gY(U,!1),M2!==0&&(M2=0)}function bV(U,X){for(var{suspendedLanes:z,pingedLanes:D,expirationTimes:V}=U,C=U.pendingLanes&-62914561;0<C;){var f=31-hU(C),n=1<<f,U0=V[f];if(U0===-1){if((n&z)===0||(n&D)!==0)V[f]=n0(n,X)}else U0<=X&&(U.expiredLanes|=n);C&=~n}if(X=M1,z=n$,z=s0(U,U===X?z:0,U.cancelPendingCommit!==null||U.timeoutHandle!==V4),D=U.callbackNode,z===0||U===X&&(O1===F4||O1===T4)||U.cancelPendingCommit!==null)return D!==null&&j9(D),U.callbackNode=null,U.callbackPriority=0;if((z&3)===0||k0(U,z)){if(X=z&-z,X!==U.callbackPriority||e0.actQueue!==null&&D!==FD)j9(D);else return X;switch(u(z)){case P6:case QI:z=LK;break;case uI:z=PX;break;case E8:z=KK;break;default:z=PX}return D=hV.bind(null,U),e0.actQueue!==null?(e0.actQueue.push(D),z=FD):z=ZK(z,D),U.callbackPriority=X,U.callbackNode=z,X}return D!==null&&j9(D),U.callbackPriority=2,U.callbackNode=null,2}function hV(U,X){if(h8=b8=!1,jJ=window.event,OU!==F2&&OU!==_Z)return U.callbackNode=null,U.callbackPriority=0,null;var z=U.callbackNode;if(DI===IZ&&(DI=QD),jY()&&U.callbackNode!==z)return null;var D=n$;if(D=s0(U,U===M1?D:0,U.cancelPendingCommit!==null||U.timeoutHandle!==V4),D===0)return null;return TV(U,D,X),bV(U,AU()),U.callbackNode!=null&&U.callbackNode===z?hV.bind(null,U):null}function uV(U,X){if(jY())return null;b8=h8,h8=!1,TV(U,X,!0)}function j9(U){U!==FD&&U!==null&&Rf(U)}function nV(){e0.actQueue!==null&&e0.actQueue.push(function(){return B9(),null}),Xb(function(){(_1&(HU|C6))!==PU?ZK(OK,gx):B9()})}function k9(){if(M2===0){var U=Z4;U===0&&(U=T8,T8<<=1,(T8&261888)===0&&(T8=256)),M2=U}return M2}function pV(U){if(U==null||typeof U==="symbol"||typeof U==="boolean")return null;if(typeof U==="function")return U;return s(U,"action"),ZY(""+U)}function cV(U,X){var z=X.ownerDocument.createElement("input");return z.name=X.name,z.value=X.value,U.id&&z.setAttribute("form",U.id),X.parentNode.insertBefore(z,X),U=new FormData(U),z.parentNode.removeChild(z),U}function wx(U,X,z,D,V){if(X==="submit"&&z&&z.stateNode===V){var C=pV((V[uU]||null).action),f=D.submitter;f&&(X=(X=f[uU]||null)?pV(X.formAction):f.getAttribute("formAction"),X!==null&&(C=X,f=null));var n=new v8("action","action",null,D,V);U.push({event:n,listeners:[{instance:null,listener:function(){if(D.defaultPrevented){if(M2!==0){var U0=f?cV(V,f):new FormData(V),Z0={pending:!0,data:U0,method:V.method,action:C};Object.freeze(Z0),sL(z,Z0,null,U0)}}else typeof C==="function"&&(n.preventDefault(),U0=f?cV(V,f):new FormData(V),Z0={pending:!0,data:U0,method:V.method,action:C},Object.freeze(Z0),sL(z,Z0,C,U0))},currentTarget:V}]})}}function X8(U,X,z){U.currentTarget=z;try{X(U)}catch(D){NK(D)}U.currentTarget=null}function lV(U,X){X=(X&4)!==0;for(var z=0;z<U.length;z++){var D=U[z];$:{var V=void 0,C=D.event;if(D=D.listeners,X)for(var f=D.length-1;0<=f;f--){var n=D[f],U0=n.instance,Z0=n.currentTarget;if(n=n.listener,U0!==V&&C.isPropagationStopped())break $;U0!==null?r(U0,X8,C,n,Z0):X8(C,n,Z0),V=U0}else for(f=0;f<D.length;f++){if(n=D[f],U0=n.instance,Z0=n.currentTarget,n=n.listener,U0!==V&&C.isPropagationStopped())break $;U0!==null?r(U0,X8,C,n,Z0):X8(C,n,Z0),V=U0}}}}function s$(U,X){TD.has(U)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',U);var z=X[DK];z===void 0&&(z=X[DK]=new Set);var D=U+"__bubble";z.has(D)||(mV(X,U,2,!1),z.add(D))}function g9(U,X,z){TD.has(U)&&!X&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',U);var D=0;X&&(D|=4),mV(z,U,D,X)}function w9(U){if(!U[QZ]){U[QZ]=!0,nS.forEach(function(z){z!=="selectionchange"&&(TD.has(z)||g9(z,!1,U),g9(z,!0,U))});var X=U.nodeType===9?U:U.ownerDocument;X===null||X[QZ]||(X[QZ]=!0,g9("selectionchange",!1,X))}}function mV(U,X,z,D){switch(VS(X)){case P6:var V=Df;break;case QI:V=Wf;break;default:V=r9}z=V.bind(null,X,z,U),V=void 0,!MK||X!=="touchstart"&&X!=="touchmove"&&X!=="wheel"||(V=!0),D?V!==void 0?U.addEventListener(X,z,{capture:!0,passive:V}):U.addEventListener(X,z,!0):V!==void 0?U.addEventListener(X,z,{passive:V}):U.addEventListener(X,z,!1)}function x9(U,X,z,D,V){var C=D;if((X&1)===0&&(X&2)===0&&D!==null)$:for(;;){if(D===null)return;var f=D.tag;if(f===3||f===4){var n=D.stateNode.containerInfo;if(n===V)break;if(f===4)for(f=D.return;f!==null;){var U0=f.tag;if((U0===3||U0===4)&&f.stateNode.containerInfo===V)return;f=f.return}for(;n!==null;){if(f=x0(n),f===null)return;if(U0=f.tag,U0===5||U0===6||U0===26||U0===27){D=C=f;continue $}n=n.parentNode}}D=D.return}IR(function(){var Z0=C,h0=_L(z),u0=[];$:{var g0=Vv.get(U);if(g0!==void 0){var o0=v8,F$=U;switch(U){case"keypress":if(Lz(z)===0)break $;case"keydown":case"keyup":o0=Zy;break;case"focusin":F$="focus",o0=PK;break;case"focusout":F$="blur",o0=PK;break;case"beforeblur":case"afterblur":o0=PK;break;case"click":if(z.button===2)break $;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":o0=Zv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":o0=sf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":o0=Ky;break;case Av:case Ev:case Rv:o0=Uy;break;case Pv:o0=Wy;break;case"scroll":case"scrollend":o0=rf;break;case"wheel":o0=Fy;break;case"copy":case"cut":case"paste":o0=_y;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":o0=Lv;break;case"toggle":case"beforetoggle":o0=My}var E$=(X&4)!==0,V1=!E$&&(U==="scroll"||U==="scrollend"),e$=E$?g0!==null?g0+"Capture":null:g0;E$=[];for(var j0=Z0,w0;j0!==null;){var y0=j0;if(w0=y0.stateNode,y0=y0.tag,y0!==5&&y0!==26&&y0!==27||w0===null||e$===null||(y0=OY(j0,e$),y0!=null&&E$.push(wY(j0,y0,w0))),V1)break;j0=j0.return}0<E$.length&&(g0=new o0(g0,F$,null,z,h0),u0.push({event:g0,listeners:E$}))}}if((X&7)===0){$:{if(g0=U==="mouseover"||U==="pointerover",o0=U==="mouseout"||U==="pointerout",g0&&z!==mY&&(F$=z.relatedTarget||z.fromElement)&&(x0(F$)||F$[$2]))break $;if(o0||g0){if(g0=h0.window===h0?h0:(g0=h0.ownerDocument)?g0.defaultView||g0.parentWindow:window,o0){if(F$=z.relatedTarget||z.toElement,o0=Z0,F$=F$?x0(F$):null,F$!==null&&(V1=y(F$),E$=F$.tag,F$!==V1||E$!==5&&E$!==27&&E$!==6))F$=null}else o0=null,F$=Z0;if(o0!==F$){if(E$=Zv,y0="onMouseLeave",e$="onMouseEnter",j0="mouse",U==="pointerout"||U==="pointerover")E$=Lv,y0="onPointerLeave",e$="onPointerEnter",j0="pointer";if(V1=o0==null?g0:A0(o0),w0=F$==null?g0:A0(F$),g0=new E$(y0,j0+"leave",o0,z,h0),g0.target=V1,g0.relatedTarget=w0,y0=null,x0(h0)===Z0&&(E$=new E$(e$,j0+"enter",F$,z,h0),E$.target=w0,E$.relatedTarget=V1,y0=E$),V1=y0,o0&&F$)U:{E$=xx,e$=o0,j0=F$,w0=0;for(y0=e$;y0;y0=E$(y0))w0++;y0=0;for(var _$=j0;_$;_$=E$(_$))y0++;for(;0<w0-y0;)e$=E$(e$),w0--;for(;0<y0-w0;)j0=E$(j0),y0--;for(;w0--;){if(e$===j0||j0!==null&&e$===j0.alternate){E$=e$;break U}e$=E$(e$),j0=E$(j0)}E$=null}else E$=null;o0!==null&&dV(u0,g0,o0,E$,!1),F$!==null&&V1!==null&&dV(u0,V1,F$,E$,!0)}}}$:{if(g0=Z0?A0(Z0):window,o0=g0.nodeName&&g0.nodeName.toLowerCase(),o0==="select"||o0==="input"&&g0.type==="file")var T$=zR;else if(JR(g0))if(Tv)T$=iw;else{T$=mw;var x$=lw}else o0=g0.nodeName,!o0||o0.toLowerCase()!=="input"||g0.type!=="checkbox"&&g0.type!=="radio"?Z0&&zY(Z0.elementType)&&(T$=zR):T$=dw;if(T$&&(T$=T$(U,Z0))){QR(u0,T$,z,h0);break $}x$&&x$(U,g0,Z0),U==="focusout"&&Z0&&g0.type==="number"&&Z0.memoizedProps.value!=null&&C$(g0,"number",g0.value)}switch(x$=Z0?A0(Z0):window,U){case"focusin":if(JR(x$)||x$.contentEditable==="true")jX=x$,SK=Z0,sY=null;break;case"focusout":sY=SK=jX=null;break;case"mousedown":vK=!0;break;case"contextmenu":case"mouseup":case"dragend":vK=!1,HR(u0,z,h0);break;case"selectionchange":if(Py)break;case"keydown":case"keyup":HR(u0,z,h0)}var S$;if(VK)$:{switch(U){case"compositionstart":var P$="onCompositionStart";break $;case"compositionend":P$="onCompositionEnd";break $;case"compositionupdate":P$="onCompositionUpdate";break $}P$=void 0}else BX?GR(U,z)&&(P$="onCompositionEnd"):U==="keydown"&&z.keyCode===Kv&&(P$="onCompositionStart");if(P$&&(Dv&&z.locale!=="ko"&&(BX||P$!=="onCompositionStart"?P$==="onCompositionEnd"&&BX&&(S$=_R()):(U2=h0,AK=("value"in U2)?U2.value:U2.textContent,BX=!0)),x$=G8(Z0,P$),0<x$.length&&(P$=new Ov(P$,U,null,z,h0),u0.push({event:P$,listeners:x$}),S$?P$.data=S$:(S$=YR(z),S$!==null&&(P$.data=S$)))),S$=Ey?uw(U,z):nw(U,z))P$=G8(Z0,"onBeforeInput"),0<P$.length&&(x$=new Gy("onBeforeInput","beforeinput",null,z,h0),u0.push({event:x$,listeners:P$}),x$.data=S$);wx(u0,U,Z0,z,h0)}lV(u0,X)})}function wY(U,X,z){return{instance:U,listener:X,currentTarget:z}}function G8(U,X){for(var z=X+"Capture",D=[];U!==null;){var V=U,C=V.stateNode;if(V=V.tag,V!==5&&V!==26&&V!==27||C===null||(V=OY(U,z),V!=null&&D.unshift(wY(U,V,C)),V=OY(U,X),V!=null&&D.push(wY(U,V,C))),U.tag===3)return D;U=U.return}return[]}function xx(U){if(U===null)return null;do U=U.return;while(U&&U.tag!==5&&U.tag!==27);return U?U:null}function dV(U,X,z,D,V){for(var C=X._reactName,f=[];z!==null&&z!==D;){var n=z,U0=n.alternate,Z0=n.stateNode;if(n=n.tag,U0!==null&&U0===D)break;n!==5&&n!==26&&n!==27||Z0===null||(U0=Z0,V?(Z0=OY(z,C),Z0!=null&&f.unshift(wY(z,Z0,U0))):V||(Z0=OY(z,C),Z0!=null&&f.push(wY(z,Z0,U0)))),z=z.return}f.length!==0&&U.push({event:X,listeners:f})}function f9(U,X){fw(U,X),U!=="input"&&U!=="textarea"&&U!=="select"||X==null||X.value!==null||Qv||(Qv=!0,U==="select"&&X.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",U):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",U));var z={registrationNameDependencies:X4,possibleRegistrationNames:WK};zY(U)||typeof X.is==="string"||bw(U,X,z),X.contentEditable&&!X.suppressContentEditableWarning&&X.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function MU(U,X,z,D){X!==z&&(z=t_(z),t_(X)!==z&&(D[U]=X))}function fx(U,X,z){X.forEach(function(D){z[tV(D)]=D==="style"?b9(U):U.getAttribute(D)})}function wI(U,X){X===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",U,U,U):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",U,typeof X)}function iV(U,X){return U=U.namespaceURI===P8||U.namespaceURI===vX?U.ownerDocument.createElementNS(U.namespaceURI,U.tagName):U.ownerDocument.createElement(U.tagName),U.innerHTML=X,U.innerHTML}function t_(U){return I0(U)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",W0(U)),c(U)),(typeof U==="string"?U:""+U).replace(ty,`
|
|
176
|
-
`).replace(ry,"")}function oV(U,X){return X=t_(X),t_(U)===X?!0:!1}function F1(U,X,z,D,V,C){switch(z){case"children":if(typeof D==="string")Oz(D,X,!1),X==="body"||X==="textarea"&&D===""||QY(U,D);else if(typeof D==="number"||typeof D==="bigint")Oz(""+D,X,!1),X!=="body"&&QY(U,""+D);break;case"className":b0(U,"class",D);break;case"tabIndex":b0(U,"tabindex",D);break;case"dir":case"role":case"viewBox":case"width":case"height":b0(U,z,D);break;case"style":eE(U,D,C);break;case"data":if(X!=="object"){b0(U,"data",D);break}case"src":case"href":if(D===""&&(X!=="a"||z!=="href")){z==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',z,z):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',z,z),U.removeAttribute(z);break}if(D==null||typeof D==="function"||typeof D==="symbol"||typeof D==="boolean"){U.removeAttribute(z);break}s(D,z),D=ZY(""+D),U.setAttribute(z,D);break;case"action":case"formAction":if(D!=null&&(X==="form"?z==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof D==="function"&&(V.encType==null&&V.method==null||OZ||(OZ=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),V.target==null||ZZ||(ZZ=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):X==="input"||X==="button"?z==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):X!=="input"||V.type==="submit"||V.type==="image"||zZ?X!=="button"||V.type==null||V.type==="submit"||zZ?typeof D==="function"&&(V.name==null||iC||(iC=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),V.formEncType==null&&V.formMethod==null||OZ||(OZ=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),V.formTarget==null||ZZ||(ZZ=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(zZ=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(zZ=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):z==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof D==="function"){U.setAttribute(z,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof C==="function"&&(z==="formAction"?(X!=="input"&&F1(U,X,"name",V.name,V,null),F1(U,X,"formEncType",V.formEncType,V,null),F1(U,X,"formMethod",V.formMethod,V,null),F1(U,X,"formTarget",V.formTarget,V,null)):(F1(U,X,"encType",V.encType,V,null),F1(U,X,"method",V.method,V,null),F1(U,X,"target",V.target,V,null)));if(D==null||typeof D==="symbol"||typeof D==="boolean"){U.removeAttribute(z);break}s(D,z),D=ZY(""+D),U.setAttribute(z,D);break;case"onClick":D!=null&&(typeof D!=="function"&&wI(z,D),U.onclick=G_);break;case"onScroll":D!=null&&(typeof D!=="function"&&wI(z,D),s$("scroll",U));break;case"onScrollEnd":D!=null&&(typeof D!=="function"&&wI(z,D),s$("scrollend",U));break;case"dangerouslySetInnerHTML":if(D!=null){if(typeof D!=="object"||!("__html"in D))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(z=D.__html,z!=null){if(V.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");U.innerHTML=z}}break;case"multiple":U.multiple=D&&typeof D!=="function"&&typeof D!=="symbol";break;case"muted":U.muted=D&&typeof D!=="function"&&typeof D!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(D==null||typeof D==="function"||typeof D==="boolean"||typeof D==="symbol"){U.removeAttribute("xlink:href");break}s(D,z),z=ZY(""+D),U.setAttributeNS(E4,"xlink:href",z);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":D!=null&&typeof D!=="function"&&typeof D!=="symbol"?(s(D,z),U.setAttribute(z,""+D)):U.removeAttribute(z);break;case"inert":D!==""||LZ[z]||(LZ[z]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",z));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":D&&typeof D!=="function"&&typeof D!=="symbol"?U.setAttribute(z,""):U.removeAttribute(z);break;case"capture":case"download":D===!0?U.setAttribute(z,""):D!==!1&&D!=null&&typeof D!=="function"&&typeof D!=="symbol"?(s(D,z),U.setAttribute(z,D)):U.removeAttribute(z);break;case"cols":case"rows":case"size":case"span":D!=null&&typeof D!=="function"&&typeof D!=="symbol"&&!isNaN(D)&&1<=D?(s(D,z),U.setAttribute(z,D)):U.removeAttribute(z);break;case"rowSpan":case"start":D==null||typeof D==="function"||typeof D==="symbol"||isNaN(D)?U.removeAttribute(z):(s(D,z),U.setAttribute(z,D));break;case"popover":s$("beforetoggle",U),s$("toggle",U),E0(U,"popover",D);break;case"xlinkActuate":f0(U,E4,"xlink:actuate",D);break;case"xlinkArcrole":f0(U,E4,"xlink:arcrole",D);break;case"xlinkRole":f0(U,E4,"xlink:role",D);break;case"xlinkShow":f0(U,E4,"xlink:show",D);break;case"xlinkTitle":f0(U,E4,"xlink:title",D);break;case"xlinkType":f0(U,E4,"xlink:type",D);break;case"xmlBase":f0(U,MD,"xml:base",D);break;case"xmlLang":f0(U,MD,"xml:lang",D);break;case"xmlSpace":f0(U,MD,"xml:space",D);break;case"is":C!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),E0(U,"is",D);break;case"innerText":case"textContent":break;case"popoverTarget":oC||D==null||typeof D!=="object"||(oC=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",D));default:!(2<z.length)||z[0]!=="o"&&z[0]!=="O"||z[1]!=="n"&&z[1]!=="N"?(z=$R(z),E0(U,z,D)):X4.hasOwnProperty(z)&&D!=null&&typeof D!=="function"&&wI(z,D)}}function y9(U,X,z,D,V,C){switch(z){case"style":eE(U,D,C);break;case"dangerouslySetInnerHTML":if(D!=null){if(typeof D!=="object"||!("__html"in D))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(z=D.__html,z!=null){if(V.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");U.innerHTML=z}}break;case"children":typeof D==="string"?QY(U,D):(typeof D==="number"||typeof D==="bigint")&&QY(U,""+D);break;case"onScroll":D!=null&&(typeof D!=="function"&&wI(z,D),s$("scroll",U));break;case"onScrollEnd":D!=null&&(typeof D!=="function"&&wI(z,D),s$("scrollend",U));break;case"onClick":D!=null&&(typeof D!=="function"&&wI(z,D),U.onclick=G_);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(X4.hasOwnProperty(z))D!=null&&typeof D!=="function"&&wI(z,D);else $:{if(z[0]==="o"&&z[1]==="n"&&(V=z.endsWith("Capture"),X=z.slice(2,V?z.length-7:void 0),C=U[uU]||null,C=C!=null?C[z]:null,typeof C==="function"&&U.removeEventListener(X,C,V),typeof D==="function")){typeof C!=="function"&&C!==null&&(z in U?U[z]=null:U.hasAttribute(z)&&U.removeAttribute(z)),U.addEventListener(X,D,V);break $}z in U?U[z]=D:D===!0?U.setAttribute(z,""):E0(U,z,D)}}}function qU(U,X,z){switch(f9(X,z),X){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":s$("error",U),s$("load",U);var D=!1,V=!1,C;for(C in z)if(z.hasOwnProperty(C)){var f=z[C];if(f!=null)switch(C){case"src":D=!0;break;case"srcSet":V=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(X+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:F1(U,X,C,f,z,null)}}V&&F1(U,X,"srcSet",z.srcSet,z,null),D&&F1(U,X,"src",z.src,z,null);return;case"input":H$("input",z),s$("invalid",U);var n=C=f=V=null,U0=null,Z0=null;for(D in z)if(z.hasOwnProperty(D)){var h0=z[D];if(h0!=null)switch(D){case"name":V=h0;break;case"type":f=h0;break;case"checked":U0=h0;break;case"defaultChecked":Z0=h0;break;case"value":C=h0;break;case"defaultValue":n=h0;break;case"children":case"dangerouslySetInnerHTML":if(h0!=null)throw Error(X+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:F1(U,X,D,h0,z,null)}}Z$(U,z),I1(U,C,n,U0,Z0,f,V,!1);return;case"select":H$("select",z),s$("invalid",U),D=f=C=null;for(V in z)if(z.hasOwnProperty(V)&&(n=z[V],n!=null))switch(V){case"value":C=n;break;case"defaultValue":f=n;break;case"multiple":D=n;default:F1(U,X,V,n,z,null)}o1(U,z),X=C,z=f,U.multiple=!!D,X!=null?U1(U,!!D,X,!1):z!=null&&U1(U,!!D,z,!0);return;case"textarea":H$("textarea",z),s$("invalid",U),C=V=D=null;for(f in z)if(z.hasOwnProperty(f)&&(n=z[f],n!=null))switch(f){case"value":D=n;break;case"defaultValue":V=n;break;case"children":C=n;break;case"dangerouslySetInnerHTML":if(n!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:F1(U,X,f,n,z,null)}t1(U,z),a1(U,D,V,C);return;case"option":g$(U,z);for(U0 in z)if(z.hasOwnProperty(U0)&&(D=z[U0],D!=null))switch(U0){case"selected":U.selected=D&&typeof D!=="function"&&typeof D!=="symbol";break;default:F1(U,X,U0,D,z,null)}return;case"dialog":s$("beforetoggle",U),s$("toggle",U),s$("cancel",U),s$("close",U);break;case"iframe":case"object":s$("load",U);break;case"video":case"audio":for(D=0;D<qJ.length;D++)s$(qJ[D],U);break;case"image":s$("error",U),s$("load",U);break;case"details":s$("toggle",U);break;case"embed":case"source":case"link":s$("error",U),s$("load",U);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Z0 in z)if(z.hasOwnProperty(Z0)&&(D=z[Z0],D!=null))switch(Z0){case"children":case"dangerouslySetInnerHTML":throw Error(X+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:F1(U,X,Z0,D,z,null)}return;default:if(zY(X)){for(h0 in z)z.hasOwnProperty(h0)&&(D=z[h0],D!==void 0&&y9(U,X,h0,D,z,void 0));return}}for(n in z)z.hasOwnProperty(n)&&(D=z[n],D!=null&&F1(U,X,n,D,z,null))}function yx(U,X,z,D){switch(f9(X,D),X){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var V=null,C=null,f=null,n=null,U0=null,Z0=null,h0=null;for(o0 in z){var u0=z[o0];if(z.hasOwnProperty(o0)&&u0!=null)switch(o0){case"checked":break;case"value":break;case"defaultValue":U0=u0;default:D.hasOwnProperty(o0)||F1(U,X,o0,null,D,u0)}}for(var g0 in D){var o0=D[g0];if(u0=z[g0],D.hasOwnProperty(g0)&&(o0!=null||u0!=null))switch(g0){case"type":C=o0;break;case"name":V=o0;break;case"checked":Z0=o0;break;case"defaultChecked":h0=o0;break;case"value":f=o0;break;case"defaultValue":n=o0;break;case"children":case"dangerouslySetInnerHTML":if(o0!=null)throw Error(X+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:o0!==u0&&F1(U,X,g0,o0,D,u0)}}X=z.type==="checkbox"||z.type==="radio"?z.checked!=null:z.value!=null,D=D.type==="checkbox"||D.type==="radio"?D.checked!=null:D.value!=null,X||!D||dC||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),dC=!0),!X||D||mC||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),mC=!0),I$(U,f,n,U0,Z0,h0,C,V);return;case"select":o0=f=n=g0=null;for(C in z)if(U0=z[C],z.hasOwnProperty(C)&&U0!=null)switch(C){case"value":break;case"multiple":o0=U0;default:D.hasOwnProperty(C)||F1(U,X,C,null,D,U0)}for(V in D)if(C=D[V],U0=z[V],D.hasOwnProperty(V)&&(C!=null||U0!=null))switch(V){case"value":g0=C;break;case"defaultValue":n=C;break;case"multiple":f=C;default:C!==U0&&F1(U,X,V,C,D,U0)}D=n,X=f,z=o0,g0!=null?U1(U,!!X,g0,!1):!!z!==!!X&&(D!=null?U1(U,!!X,D,!0):U1(U,!!X,X?[]:"",!1));return;case"textarea":o0=g0=null;for(n in z)if(V=z[n],z.hasOwnProperty(n)&&V!=null&&!D.hasOwnProperty(n))switch(n){case"value":break;case"children":break;default:F1(U,X,n,null,D,V)}for(f in D)if(V=D[f],C=z[f],D.hasOwnProperty(f)&&(V!=null||C!=null))switch(f){case"value":g0=V;break;case"defaultValue":o0=V;break;case"children":break;case"dangerouslySetInnerHTML":if(V!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:V!==C&&F1(U,X,f,V,D,C)}r1(U,g0,o0);return;case"option":for(var F$ in z)if(g0=z[F$],z.hasOwnProperty(F$)&&g0!=null&&!D.hasOwnProperty(F$))switch(F$){case"selected":U.selected=!1;break;default:F1(U,X,F$,null,D,g0)}for(U0 in D)if(g0=D[U0],o0=z[U0],D.hasOwnProperty(U0)&&g0!==o0&&(g0!=null||o0!=null))switch(U0){case"selected":U.selected=g0&&typeof g0!=="function"&&typeof g0!=="symbol";break;default:F1(U,X,U0,g0,D,o0)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var E$ in z)g0=z[E$],z.hasOwnProperty(E$)&&g0!=null&&!D.hasOwnProperty(E$)&&F1(U,X,E$,null,D,g0);for(Z0 in D)if(g0=D[Z0],o0=z[Z0],D.hasOwnProperty(Z0)&&g0!==o0&&(g0!=null||o0!=null))switch(Z0){case"children":case"dangerouslySetInnerHTML":if(g0!=null)throw Error(X+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:F1(U,X,Z0,g0,D,o0)}return;default:if(zY(X)){for(var V1 in z)g0=z[V1],z.hasOwnProperty(V1)&&g0!==void 0&&!D.hasOwnProperty(V1)&&y9(U,X,V1,void 0,D,g0);for(h0 in D)g0=D[h0],o0=z[h0],!D.hasOwnProperty(h0)||g0===o0||g0===void 0&&o0===void 0||y9(U,X,h0,g0,D,o0);return}}for(var e$ in z)g0=z[e$],z.hasOwnProperty(e$)&&g0!=null&&!D.hasOwnProperty(e$)&&F1(U,X,e$,null,D,g0);for(u0 in D)g0=D[u0],o0=z[u0],!D.hasOwnProperty(u0)||g0===o0||g0==null&&o0==null||F1(U,X,u0,g0,D,o0)}function tV(U){switch(U){case"class":return"className";case"for":return"htmlFor";default:return U}}function b9(U){var X={};U=U.style;for(var z=0;z<U.length;z++){var D=U[z];X[D]=U.getPropertyValue(D)}return X}function rV(U,X,z){if(X!=null&&typeof X!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var D,V=D="",C;for(C in X)if(X.hasOwnProperty(C)){var f=X[C];f!=null&&typeof f!=="boolean"&&f!==""&&(C.indexOf("--")===0?(S0(f,C),D+=V+C+":"+(""+f).trim()):typeof f!=="number"||f===0||Yv.has(C)?(S0(f,C),D+=V+C.replace(Uv,"-$1").toLowerCase().replace(Iv,"-ms-")+":"+(""+f).trim()):D+=V+C.replace(Uv,"-$1").toLowerCase().replace(Iv,"-ms-")+":"+f+"px",V=";")}D=D||null,X=U.getAttribute("style"),X!==D&&(D=t_(D),t_(X)!==D&&(z.style=b9(U)))}}function h6(U,X,z,D,V,C){if(V.delete(z),U=U.getAttribute(z),U===null)switch(typeof D){case"undefined":case"function":case"symbol":case"boolean":return}else if(D!=null)switch(typeof D){case"function":case"symbol":case"boolean":break;default:if(s(D,X),U===""+D)return}MU(X,U,D,C)}function aV(U,X,z,D,V,C){if(V.delete(z),U=U.getAttribute(z),U===null){switch(typeof D){case"function":case"symbol":return}if(!D)return}else switch(typeof D){case"function":case"symbol":break;default:if(D)return}MU(X,U,D,C)}function h9(U,X,z,D,V,C){if(V.delete(z),U=U.getAttribute(z),U===null)switch(typeof D){case"undefined":case"function":case"symbol":return}else if(D!=null)switch(typeof D){case"function":case"symbol":break;default:if(s(D,z),U===""+D)return}MU(X,U,D,C)}function sV(U,X,z,D,V,C){if(V.delete(z),U=U.getAttribute(z),U===null)switch(typeof D){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(D))return}else if(D!=null)switch(typeof D){case"function":case"symbol":case"boolean":break;default:if(!isNaN(D)&&(s(D,X),U===""+D))return}MU(X,U,D,C)}function u9(U,X,z,D,V,C){if(V.delete(z),U=U.getAttribute(z),U===null)switch(typeof D){case"undefined":case"function":case"symbol":case"boolean":return}else if(D!=null)switch(typeof D){case"function":case"symbol":case"boolean":break;default:if(s(D,X),z=ZY(""+D),U===z)return}MU(X,U,D,C)}function eV(U,X,z,D){for(var V={},C=new Set,f=U.attributes,n=0;n<f.length;n++)switch(f[n].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:C.add(f[n].name)}if(zY(X)){for(var U0 in z)if(z.hasOwnProperty(U0)){var Z0=z[U0];if(Z0!=null){if(X4.hasOwnProperty(U0))typeof Z0!=="function"&&wI(U0,Z0);else if(z.suppressHydrationWarning!==!0)switch(U0){case"children":typeof Z0!=="string"&&typeof Z0!=="number"||MU("children",U.textContent,Z0,V);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":f=U.innerHTML,Z0=Z0?Z0.__html:void 0,Z0!=null&&(Z0=iV(U,Z0),MU(U0,f,Z0,V));continue;case"style":C.delete(U0),rV(U,Z0,V);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":C.delete(U0.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",U0);continue;case"className":C.delete("class"),f=e(U,"class",Z0),MU("className",f,Z0,V);continue;default:D.context===C_&&X!=="svg"&&X!=="math"?C.delete(U0.toLowerCase()):C.delete(U0),f=e(U,U0,Z0),MU(U0,f,Z0,V)}}}}else for(Z0 in z)if(z.hasOwnProperty(Z0)&&(U0=z[Z0],U0!=null)){if(X4.hasOwnProperty(Z0))typeof U0!=="function"&&wI(Z0,U0);else if(z.suppressHydrationWarning!==!0)switch(Z0){case"children":typeof U0!=="string"&&typeof U0!=="number"||MU("children",U.textContent,U0,V);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":f=U.innerHTML,U0=U0?U0.__html:void 0,U0!=null&&(U0=iV(U,U0),f!==U0&&(V[Z0]={__html:f}));continue;case"className":h6(U,Z0,"class",U0,C,V);continue;case"tabIndex":h6(U,Z0,"tabindex",U0,C,V);continue;case"style":C.delete(Z0),rV(U,U0,V);continue;case"multiple":C.delete(Z0),MU(Z0,U.multiple,U0,V);continue;case"muted":C.delete(Z0),MU(Z0,U.muted,U0,V);continue;case"autoFocus":C.delete("autofocus"),MU(Z0,U.autofocus,U0,V);continue;case"data":if(X!=="object"){C.delete(Z0),f=U.getAttribute("data"),MU(Z0,f,U0,V);continue}case"src":case"href":if(!(U0!==""||X==="a"&&Z0==="href"||X==="object"&&Z0==="data")){Z0==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',Z0,Z0):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',Z0,Z0);continue}u9(U,Z0,Z0,U0,C,V);continue;case"action":case"formAction":if(f=U.getAttribute(Z0),typeof U0==="function"){C.delete(Z0.toLowerCase()),Z0==="formAction"?(C.delete("name"),C.delete("formenctype"),C.delete("formmethod"),C.delete("formtarget")):(C.delete("enctype"),C.delete("method"),C.delete("target"));continue}else if(f===ay){C.delete(Z0.toLowerCase()),MU(Z0,"function",U0,V);continue}u9(U,Z0,Z0.toLowerCase(),U0,C,V);continue;case"xlinkHref":u9(U,Z0,"xlink:href",U0,C,V);continue;case"contentEditable":h9(U,Z0,"contenteditable",U0,C,V);continue;case"spellCheck":h9(U,Z0,"spellcheck",U0,C,V);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h9(U,Z0,Z0,U0,C,V);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":aV(U,Z0,Z0.toLowerCase(),U0,C,V);continue;case"capture":case"download":$:{n=U;var h0=f=Z0,u0=V;if(C.delete(h0),n=n.getAttribute(h0),n===null)switch(typeof U0){case"undefined":case"function":case"symbol":break $;default:if(U0===!1)break $}else if(U0!=null)switch(typeof U0){case"function":case"symbol":break;case"boolean":if(U0===!0&&n==="")break $;break;default:if(s(U0,f),n===""+U0)break $}MU(f,n,U0,u0)}continue;case"cols":case"rows":case"size":case"span":$:{if(n=U,h0=f=Z0,u0=V,C.delete(h0),n=n.getAttribute(h0),n===null)switch(typeof U0){case"undefined":case"function":case"symbol":case"boolean":break $;default:if(isNaN(U0)||1>U0)break $}else if(U0!=null)switch(typeof U0){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(U0)||1>U0)&&(s(U0,f),n===""+U0))break $}MU(f,n,U0,u0)}continue;case"rowSpan":sV(U,Z0,"rowspan",U0,C,V);continue;case"start":sV(U,Z0,Z0,U0,C,V);continue;case"xHeight":h6(U,Z0,"x-height",U0,C,V);continue;case"xlinkActuate":h6(U,Z0,"xlink:actuate",U0,C,V);continue;case"xlinkArcrole":h6(U,Z0,"xlink:arcrole",U0,C,V);continue;case"xlinkRole":h6(U,Z0,"xlink:role",U0,C,V);continue;case"xlinkShow":h6(U,Z0,"xlink:show",U0,C,V);continue;case"xlinkTitle":h6(U,Z0,"xlink:title",U0,C,V);continue;case"xlinkType":h6(U,Z0,"xlink:type",U0,C,V);continue;case"xmlBase":h6(U,Z0,"xml:base",U0,C,V);continue;case"xmlLang":h6(U,Z0,"xml:lang",U0,C,V);continue;case"xmlSpace":h6(U,Z0,"xml:space",U0,C,V);continue;case"inert":U0!==""||LZ[Z0]||(LZ[Z0]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",Z0)),aV(U,Z0,Z0,U0,C,V);continue;default:if(!(2<Z0.length)||Z0[0]!=="o"&&Z0[0]!=="O"||Z0[1]!=="n"&&Z0[1]!=="N"){n=$R(Z0),f=!1,D.context===C_&&X!=="svg"&&X!=="math"?C.delete(n.toLowerCase()):(h0=Z0.toLowerCase(),h0=V8.hasOwnProperty(h0)?V8[h0]||null:null,h0!==null&&h0!==Z0&&(f=!0,C.delete(h0)),C.delete(n));$:if(h0=U,u0=n,n=U0,d0(u0))if(h0.hasAttribute(u0))h0=h0.getAttribute(u0),s(n,u0),n=h0===""+n?n:h0;else{switch(typeof n){case"function":case"symbol":break $;case"boolean":if(h0=u0.toLowerCase().slice(0,5),h0!=="data-"&&h0!=="aria-")break $}n=n===void 0?void 0:null}else n=void 0;f||MU(Z0,n,U0,V)}}}return 0<C.size&&z.suppressHydrationWarning!==!0&&fx(U,C,V),Object.keys(V).length===0?null:V}function bx(U,X){switch(U.length){case 0:return"";case 1:return U[0];case 2:return U[0]+" "+X+" "+U[1];default:return U.slice(0,-1).join(", ")+", "+X+" "+U[U.length-1]}}function $S(U){switch(U){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function hx(){if(typeof performance.getEntriesByType==="function"){for(var U=0,X=0,z=performance.getEntriesByType("resource"),D=0;D<z.length;D++){var V=z[D],C=V.transferSize,f=V.initiatorType,n=V.duration;if(C&&n&&$S(f)){f=0,n=V.responseEnd;for(D+=1;D<z.length;D++){var U0=z[D],Z0=U0.startTime;if(Z0>n)break;var{transferSize:h0,initiatorType:u0}=U0;h0&&$S(u0)&&(U0=U0.responseEnd,f+=h0*(U0<n?1:(n-Z0)/(U0-Z0)))}if(--D,X+=8*(C+f)/(V.duration/1000),U++,10<U)break}}if(0<U)return X/U/1e6}return navigator.connection&&(U=navigator.connection.downlink,typeof U==="number")?U:5}function Y8(U){return U.nodeType===9?U:U.ownerDocument}function US(U){switch(U){case vX:return IG;case P8:return DZ;default:return C_}}function IS(U,X){if(U===C_)switch(X){case"svg":return IG;case"math":return DZ;default:return C_}return U===IG&&X==="foreignObject"?C_:U}function n9(U,X){return U==="textarea"||U==="noscript"||typeof X.children==="string"||typeof X.children==="number"||typeof X.children==="bigint"||typeof X.dangerouslySetInnerHTML==="object"&&X.dangerouslySetInnerHTML!==null&&X.dangerouslySetInnerHTML.__html!=null}function ux(){var U=window.event;if(U&&U.type==="popstate"){if(U===PD)return!1;return PD=U,!0}return PD=null,!1}function xY(){var U=window.event;return U&&U!==jJ?U.type:null}function fY(){var U=window.event;return U&&U!==jJ?U.timeStamp:-1.1}function nx(U){setTimeout(function(){throw U})}function px(U,X,z){switch(X){case"button":case"input":case"select":case"textarea":z.autoFocus&&U.focus();break;case"img":z.src?U.src=z.src:z.srcSet&&(U.srcset=z.srcSet)}}function cx(){}function lx(U,X,z,D){yx(U,X,z,D),U[uU]=D}function _S(U){QY(U,"")}function mx(U,X,z){U.nodeValue=z}function XS(U){if(!U.__reactWarnedAboutChildrenConflict){var X=U[uU]||null;if(X!==null){var z=p(U);z!==null&&(typeof X.children==="string"||typeof X.children==="number"?(U.__reactWarnedAboutChildrenConflict=!0,r(z,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):X.dangerouslySetInnerHTML!=null&&(U.__reactWarnedAboutChildrenConflict=!0,r(z,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function r_(U){return U==="head"}function dx(U,X){U.removeChild(X)}function ix(U,X){(U.nodeType===9?U.body:U.nodeName==="HTML"?U.ownerDocument.body:U).removeChild(X)}function GS(U,X){var z=X,D=0;do{var V=z.nextSibling;if(U.removeChild(z),V&&V.nodeType===8)if(z=V.data,z===BJ||z===KZ){if(D===0){U.removeChild(V),AX(X);return}D--}else if(z===NJ||z===A2||z===P4||z===UG||z===R4)D++;else if(z===ey)yY(U.ownerDocument.documentElement);else if(z===Ub){z=U.ownerDocument.head,yY(z);for(var C=z.firstChild;C;){var{nextSibling:f,nodeName:n}=C;C[lY]||n==="SCRIPT"||n==="STYLE"||n==="LINK"&&C.rel.toLowerCase()==="stylesheet"||z.removeChild(C),C=f}}else z===$b&&yY(U.ownerDocument.body);z=V}while(z);AX(X)}function YS(U,X){var z=U;U=0;do{var D=z.nextSibling;if(z.nodeType===1?X?(z._stashedDisplay=z.style.display,z.style.display="none"):(z.style.display=z._stashedDisplay||"",z.getAttribute("style")===""&&z.removeAttribute("style")):z.nodeType===3&&(X?(z._stashedText=z.nodeValue,z.nodeValue=""):z.nodeValue=z._stashedText||""),D&&D.nodeType===8)if(z=D.data,z===BJ)if(U===0)break;else U--;else z!==NJ&&z!==A2&&z!==P4&&z!==UG||U++;z=D}while(z)}function ox(U){YS(U,!0)}function tx(U){U=U.style,typeof U.setProperty==="function"?U.setProperty("display","none","important"):U.display="none"}function rx(U){U.nodeValue=""}function ax(U){YS(U,!1)}function sx(U,X){X=X[Ib],X=X!==void 0&&X!==null&&X.hasOwnProperty("display")?X.display:null,U.style.display=X==null||typeof X==="boolean"?"":(""+X).trim()}function ex(U,X){U.nodeValue=X}function p9(U){var X=U.firstChild;X&&X.nodeType===10&&(X=X.nextSibling);for(;X;){var z=X;switch(X=X.nextSibling,z.nodeName){case"HTML":case"HEAD":case"BODY":p9(z),R0(z);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(z.rel.toLowerCase()==="stylesheet")continue}U.removeChild(z)}}function $f(U,X,z,D){for(;U.nodeType===1;){var V=z;if(U.nodeName.toLowerCase()!==X.toLowerCase()){if(!D&&(U.nodeName!=="INPUT"||U.type!=="hidden"))break}else if(!D)if(X==="input"&&U.type==="hidden"){s(V.name,"name");var C=V.name==null?null:""+V.name;if(V.type==="hidden"&&U.getAttribute("name")===C)return U}else return U;else if(!U[lY])switch(X){case"meta":if(!U.hasAttribute("itemprop"))break;return U;case"link":if(C=U.getAttribute("rel"),C==="stylesheet"&&U.hasAttribute("data-precedence"))break;else if(C!==V.rel||U.getAttribute("href")!==(V.href==null||V.href===""?null:V.href)||U.getAttribute("crossorigin")!==(V.crossOrigin==null?null:V.crossOrigin)||U.getAttribute("title")!==(V.title==null?null:V.title))break;return U;case"style":if(U.hasAttribute("data-precedence"))break;return U;case"script":if(C=U.getAttribute("src"),(C!==(V.src==null?null:V.src)||U.getAttribute("type")!==(V.type==null?null:V.type)||U.getAttribute("crossorigin")!==(V.crossOrigin==null?null:V.crossOrigin))&&C&&U.hasAttribute("async")&&!U.hasAttribute("itemprop"))break;return U;default:return U}if(U=A6(U.nextSibling),U===null)break}return null}function Uf(U,X,z){if(X==="")return null;for(;U.nodeType!==3;){if((U.nodeType!==1||U.nodeName!=="INPUT"||U.type!=="hidden")&&!z)return null;if(U=A6(U.nextSibling),U===null)return null}return U}function JS(U,X){for(;U.nodeType!==8;){if((U.nodeType!==1||U.nodeName!=="INPUT"||U.type!=="hidden")&&!X)return null;if(U=A6(U.nextSibling),U===null)return null}return U}function c9(U){return U.data===A2||U.data===P4}function l9(U){return U.data===UG||U.data===A2&&U.ownerDocument.readyState!==rC}function If(U,X){var z=U.ownerDocument;if(U.data===P4)U._reactRetry=X;else if(U.data!==A2||z.readyState!==rC)X();else{var D=function(){X(),z.removeEventListener("DOMContentLoaded",D)};z.addEventListener("DOMContentLoaded",D),U._reactRetry=D}}function A6(U){for(;U!=null;U=U.nextSibling){var X=U.nodeType;if(X===1||X===3)break;if(X===8){if(X=U.data,X===NJ||X===UG||X===A2||X===P4||X===R4||X===AD||X===tC)break;if(X===BJ||X===KZ)return null}}return U}function QS(U){if(U.nodeType===1){for(var X=U.nodeName.toLowerCase(),z={},D=U.attributes,V=0;V<D.length;V++){var C=D[V];z[tV(C.name)]=C.name.toLowerCase()==="style"?b9(U):C.value}return{type:X,props:z}}return U.nodeType===8?U.data===R4?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:U.nodeValue}function zS(U,X,z){return z===null||z[sy]!==!0?(U.nodeValue===X?U=null:(X=t_(X),U=t_(U.nodeValue)===X?null:U.nodeValue),U):null}function m9(U){U=U.nextSibling;for(var X=0;U;){if(U.nodeType===8){var z=U.data;if(z===BJ||z===KZ){if(X===0)return A6(U.nextSibling);X--}else z!==NJ&&z!==UG&&z!==A2&&z!==P4&&z!==R4||X++}U=U.nextSibling}return null}function ZS(U){U=U.previousSibling;for(var X=0;U;){if(U.nodeType===8){var z=U.data;if(z===NJ||z===UG||z===A2||z===P4||z===R4){if(X===0)return U;X--}else z!==BJ&&z!==KZ||X++}U=U.previousSibling}return null}function _f(U){AX(U)}function Xf(U){AX(U)}function Gf(U){AX(U)}function OS(U,X,z,D,V){switch(V&&IL(U,D.ancestorInfo),X=Y8(z),U){case"html":if(U=X.documentElement,!U)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return U;case"head":if(U=X.head,!U)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return U;case"body":if(U=X.body,!U)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return U;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function Yf(U,X,z,D){if(!z[$2]&&p(z)){var V=z.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",V,V,V)}switch(U){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(V=z.attributes;V.length;)z.removeAttributeNode(V[0]);qU(z,U,X),z[NU]=D,z[uU]=X}function yY(U){for(var X=U.attributes;X.length;)U.removeAttributeNode(X[0]);R0(U)}function J8(U){return typeof U.getRootNode==="function"?U.getRootNode():U.nodeType===9?U:U.ownerDocument}function LS(U,X,z){var D=_G;if(D&&typeof X==="string"&&X){var V=B$(X);V='link[rel="'+U+'"][href="'+V+'"]',typeof z==="string"&&(V+='[crossorigin="'+z+'"]'),Iq.has(V)||(Iq.add(V),U={rel:U,crossOrigin:z,href:X},D.querySelector(V)===null&&(X=D.createElement("link"),qU(X,"link",U),X0(X),D.head.appendChild(X)))}}function KS(U,X,z,D){var V=(V=s_.current)?J8(V):null;if(!V)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(U){case"meta":case"title":return null;case"style":return typeof z.precedence==="string"&&typeof z.href==="string"?(z=TX(z.href),X=v0(V).hoistableStyles,D=X.get(z),D||(D={type:"style",instance:null,count:0,state:null},X.set(z,D)),D):{type:"void",instance:null,count:0,state:null};case"link":if(z.rel==="stylesheet"&&typeof z.href==="string"&&typeof z.precedence==="string"){U=TX(z.href);var C=v0(V).hoistableStyles,f=C.get(U);if(!f&&(V=V.ownerDocument||V,f={type:"stylesheet",instance:null,count:0,state:{loading:S4,preload:null}},C.set(U,f),(C=V.querySelector(bY(U)))&&!C._p&&(f.instance=C,f.state.loading=kJ|r6),!a6.has(U))){var n={rel:"preload",as:"style",href:z.href,crossOrigin:z.crossOrigin,integrity:z.integrity,media:z.media,hrefLang:z.hrefLang,referrerPolicy:z.referrerPolicy};a6.set(U,n),C||Jf(V,U,n,f.state)}if(X&&D===null)throw z=`
|
|
177
|
-
|
|
178
|
-
- `+Q8(X)+`
|
|
179
|
-
+ `+Q8(z),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+z);return f}if(X&&D!==null)throw z=`
|
|
180
|
-
|
|
181
|
-
- `+Q8(X)+`
|
|
182
|
-
+ `+Q8(z),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+z);return null;case"script":return X=z.async,z=z.src,typeof z==="string"&&X&&typeof X!=="function"&&typeof X!=="symbol"?(z=MX(z),X=v0(V).hoistableScripts,D=X.get(z),D||(D={type:"script",instance:null,count:0,state:null},X.set(z,D)),D):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+U+'". this is a bug in React.')}}function Q8(U){var X=0,z="<link";return typeof U.rel==="string"?(X++,z+=' rel="'+U.rel+'"'):JI.call(U,"rel")&&(X++,z+=' rel="'+(U.rel===null?"null":"invalid type "+typeof U.rel)+'"'),typeof U.href==="string"?(X++,z+=' href="'+U.href+'"'):JI.call(U,"href")&&(X++,z+=' href="'+(U.href===null?"null":"invalid type "+typeof U.href)+'"'),typeof U.precedence==="string"?(X++,z+=' precedence="'+U.precedence+'"'):JI.call(U,"precedence")&&(X++,z+=" precedence={"+(U.precedence===null?"null":"invalid type "+typeof U.precedence)+"}"),Object.getOwnPropertyNames(U).length>X&&(z+=" ..."),z+" />"}function TX(U){return'href="'+B$(U)+'"'}function bY(U){return'link[rel="stylesheet"]['+U+"]"}function DS(U){return i$({},U,{"data-precedence":U.precedence,precedence:null})}function Jf(U,X,z,D){U.querySelector('link[rel="preload"][as="style"]['+X+"]")?D.loading=kJ:(X=U.createElement("link"),D.preload=X,X.addEventListener("load",function(){return D.loading|=kJ}),X.addEventListener("error",function(){return D.loading|=$q}),qU(X,"link",z),X0(X),U.head.appendChild(X))}function MX(U){return'[src="'+B$(U)+'"]'}function hY(U){return"script[async]"+U}function WS(U,X,z){if(X.count++,X.instance===null)switch(X.type){case"style":var D=U.querySelector('style[data-href~="'+B$(z.href)+'"]');if(D)return X.instance=D,X0(D),D;var V=i$({},z,{"data-href":z.href,"data-precedence":z.precedence,href:null,precedence:null});return D=(U.ownerDocument||U).createElement("style"),X0(D),qU(D,"style",V),z8(D,z.precedence,U),X.instance=D;case"stylesheet":V=TX(z.href);var C=U.querySelector(bY(V));if(C)return X.state.loading|=r6,X.instance=C,X0(C),C;D=DS(z),(V=a6.get(V))&&d9(D,V),C=(U.ownerDocument||U).createElement("link"),X0(C);var f=C;return f._p=new Promise(function(n,U0){f.onload=n,f.onerror=U0}),qU(C,"link",D),X.state.loading|=r6,z8(C,z.precedence,U),X.instance=C;case"script":if(C=MX(z.src),V=U.querySelector(hY(C)))return X.instance=V,X0(V),V;if(D=z,V=a6.get(C))D=i$({},z),i9(D,V);return U=U.ownerDocument||U,V=U.createElement("script"),X0(V),qU(V,"link",D),U.head.appendChild(V),X.instance=V;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+X.type+'". this is a bug in React.')}else X.type==="stylesheet"&&(X.state.loading&r6)===S4&&(D=X.instance,X.state.loading|=r6,z8(D,z.precedence,U));return X.instance}function z8(U,X,z){for(var D=z.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),V=D.length?D[D.length-1]:null,C=V,f=0;f<D.length;f++){var n=D[f];if(n.dataset.precedence===X)C=n;else if(C!==V)break}C?C.parentNode.insertBefore(U,C.nextSibling):(X=z.nodeType===9?z.head:z,X.insertBefore(U,X.firstChild))}function d9(U,X){U.crossOrigin==null&&(U.crossOrigin=X.crossOrigin),U.referrerPolicy==null&&(U.referrerPolicy=X.referrerPolicy),U.title==null&&(U.title=X.title)}function i9(U,X){U.crossOrigin==null&&(U.crossOrigin=X.crossOrigin),U.referrerPolicy==null&&(U.referrerPolicy=X.referrerPolicy),U.integrity==null&&(U.integrity=X.integrity)}function HS(U,X,z){if(WZ===null){var D=new Map,V=WZ=new Map;V.set(z,D)}else V=WZ,D=V.get(z),D||(D=new Map,V.set(z,D));if(D.has(U))return D;D.set(U,null),z=z.getElementsByTagName(U);for(V=0;V<z.length;V++){var C=z[V];if(!(C[lY]||C[NU]||U==="link"&&C.getAttribute("rel")==="stylesheet")&&C.namespaceURI!==vX){var f=C.getAttribute(X)||"";f=U+f;var n=D.get(f);n?n.push(C):D.set(f,[C])}}return D}function FS(U,X,z){U=U.ownerDocument||U,U.head.insertBefore(z,X==="title"?U.querySelector("head > title"):null)}function Qf(U,X,z){var D=!z.ancestorInfo.containerTagInScope;if(z.context===IG||X.itemProp!=null)return!D||X.itemProp==null||U!=="meta"&&U!=="title"&&U!=="style"&&U!=="link"&&U!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",U,U),!1;switch(U){case"meta":case"title":return!0;case"style":if(typeof X.precedence!=="string"||typeof X.href!=="string"||X.href===""){D&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof X.rel!=="string"||typeof X.href!=="string"||X.href===""||X.onLoad||X.onError){if(X.rel==="stylesheet"&&typeof X.precedence==="string"){U=X.href;var{onError:V,disabled:C}=X;z=[],X.onLoad&&z.push("`onLoad`"),V&&z.push("`onError`"),C!=null&&z.push("`disabled`"),V=bx(z,"and"),V+=z.length===1?" prop":" props",C=z.length===1?"an "+V:"the "+V,z.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',U,C,V)}D&&(typeof X.rel!=="string"||typeof X.href!=="string"||X.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(X.onError||X.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(X.rel){case"stylesheet":return U=X.precedence,X=X.disabled,typeof U!=="string"&&D&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof U==="string"&&X==null;default:return!0}case"script":if(U=X.async&&typeof X.async!=="function"&&typeof X.async!=="symbol",!U||X.onLoad||X.onError||!X.src||typeof X.src!=="string"){D&&(U?X.onLoad||X.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":D&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",U)}return!1}function TS(U){return U.type==="stylesheet"&&(U.state.loading&Uq)===S4?!1:!0}function zf(U,X,z,D){if(z.type==="stylesheet"&&(typeof D.media!=="string"||matchMedia(D.media).matches!==!1)&&(z.state.loading&r6)===S4){if(z.instance===null){var V=TX(D.href),C=X.querySelector(bY(V));if(C){X=C._p,X!==null&&typeof X==="object"&&typeof X.then==="function"&&(U.count++,U=Z8.bind(U),X.then(U,U)),z.state.loading|=r6,z.instance=C,X0(C);return}C=X.ownerDocument||X,D=DS(D),(V=a6.get(V))&&d9(D,V),C=C.createElement("link"),X0(C);var f=C;f._p=new Promise(function(n,U0){f.onload=n,f.onerror=U0}),qU(C,"link",D),z.instance=C}U.stylesheets===null&&(U.stylesheets=new Map),U.stylesheets.set(z,X),(X=z.state.preload)&&(z.state.loading&Uq)===S4&&(U.count++,z=Z8.bind(U),X.addEventListener("load",z),X.addEventListener("error",z))}}function Zf(U,X){return U.stylesheets&&U.count===0&&O8(U,U.stylesheets),0<U.count||0<U.imgCount?function(z){var D=setTimeout(function(){if(U.stylesheets&&O8(U,U.stylesheets),U.unsuspend){var C=U.unsuspend;U.unsuspend=null,C()}},Gb+X);0<U.imgBytes&&SD===0&&(SD=125*hx()*Jb);var V=setTimeout(function(){if(U.waitingForImages=!1,U.count===0&&(U.stylesheets&&O8(U,U.stylesheets),U.unsuspend)){var C=U.unsuspend;U.unsuspend=null,C()}},(U.imgBytes>SD?50:Yb)+X);return U.unsuspend=z,function(){U.unsuspend=null,clearTimeout(D),clearTimeout(V)}}:null}function Z8(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)O8(this,this.stylesheets);else if(this.unsuspend){var U=this.unsuspend;this.unsuspend=null,U()}}}function O8(U,X){U.stylesheets=null,U.unsuspend!==null&&(U.count++,HZ=new Map,X.forEach(Of,U),HZ=null,Z8.call(U))}function Of(U,X){if(!(X.state.loading&r6)){var z=HZ.get(U);if(z)var D=z.get(vD);else{z=new Map,HZ.set(U,z);for(var V=U.querySelectorAll("link[data-precedence],style[data-precedence]"),C=0;C<V.length;C++){var f=V[C];if(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")z.set(f.dataset.precedence,f),D=f}D&&z.set(vD,D)}V=X.instance,f=V.getAttribute("data-precedence"),C=z.get(f)||D,C===D&&z.set(vD,V),z.set(f,V),this.count++,D=Z8.bind(this),V.addEventListener("load",D),V.addEventListener("error",D),C?C.parentNode.insertBefore(V,C.nextSibling):(U=U.nodeType===9?U.head:U,U.insertBefore(V,U.firstChild)),X.state.loading|=r6}}function Lf(U,X,z,D,V,C,f,n,U0){this.tag=1,this.containerInfo=U,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=V4,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=T0(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=T0(0),this.hiddenUpdates=T0(null),this.identifierPrefix=D,this.onUncaughtError=V,this.onCaughtError=C,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U0,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,U=this.pendingUpdatersLaneMap=[];for(X=0;31>X;X++)U.push(new Set);this._debugRootType=z?"hydrateRoot()":"createRoot()"}function MS(U,X,z,D,V,C,f,n,U0,Z0,h0,u0){return U=new Lf(U,X,z,f,U0,Z0,h0,u0,n),X=ky,C===!0&&(X|=fU|zI),X|=h$,C=S(3,null,null,X),U.current=C,C.stateNode=U,X=EL(),a2(X),U.pooledCache=X,a2(X),C.memoizedState={element:D,isDehydrated:z,cache:X},vL(C),U}function AS(U){if(!U)return X2;return U=X2,U}function o9(U,X,z,D,V,C){if(xU&&typeof xU.onScheduleFiberRoot==="function")try{xU.onScheduleFiberRoot(VX,D,z)}catch(f){bI||(bI=!0,console.error("React instrumentation encountered an error: %o",f))}V=AS(V),D.context===null?D.context=V:D.pendingContext=V,yI&&R6!==null&&!Yq&&(Yq=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
183
|
-
|
|
184
|
-
Check the render method of %s.`,t(R6)||"Unknown")),D=c_(X),D.payload={element:z},C=C===void 0?null:C,C!==null&&(typeof C!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",C),D.callback=C),z=l_(U,D,X),z!==null&&(RI(X,"root.render()",null),l1(z,U,X),MY(z,U,X))}function ES(U,X){if(U=U.memoizedState,U!==null&&U.dehydrated!==null){var z=U.retryLane;U.retryLane=z!==0&&z<X?z:X}}function t9(U,X){ES(U,X),(U=U.alternate)&&ES(U,X)}function RS(U){if(U.tag===13||U.tag===31){var X=wU(U,67108864);X!==null&&l1(X,U,67108864),t9(U,67108864)}}function PS(U){if(U.tag===13||U.tag===31){var X=M6(U);X=N0(X);var z=wU(U,X);z!==null&&l1(z,U,X),t9(U,X)}}function Kf(){return R6}function Df(U,X,z,D){var V=e0.T;e0.T=null;var C=Q1.p;try{Q1.p=P6,r9(U,X,z,D)}finally{Q1.p=C,e0.T=V}}function Wf(U,X,z,D){var V=e0.T;e0.T=null;var C=Q1.p;try{Q1.p=QI,r9(U,X,z,D)}finally{Q1.p=C,e0.T=V}}function r9(U,X,z,D){if(TZ){var V=a9(D);if(V===null)x9(U,X,D,MZ,z),SS(U,D);else if(Hf(V,U,X,z,D))D.stopPropagation();else if(SS(U,D),X&4&&-1<zb.indexOf(U)){for(;V!==null;){var C=p(V);if(C!==null)switch(C.tag){case 3:if(C=C.stateNode,C.current.memoizedState.isDehydrated){var f=q0(C.pendingLanes);if(f!==0){var n=C;n.pendingLanes|=2;for(n.entangledLanes|=2;f;){var U0=1<<31-hU(f);n.entanglements[1]|=U0,f&=~U0}gI(C),(_1&(HU|C6))===PU&&(UZ=AU()+wC,gY(0,!1))}}break;case 31:case 13:n=wU(C,2),n!==null&&l1(n,C,2),WX(),t9(C,2)}if(C=a9(D),C===null&&x9(U,X,D,MZ,z),C===V)break;V=C}V!==null&&D.stopPropagation()}else x9(U,X,D,null,z)}}function a9(U){return U=_L(U),s9(U)}function s9(U){if(MZ=null,U=x0(U),U!==null){var X=y(U);if(X===null)U=null;else{var z=X.tag;if(z===13){if(U=g(X),U!==null)return U;U=null}else if(z===31){if(U=b(X),U!==null)return U;U=null}else if(z===3){if(X.stateNode.current.memoizedState.isDehydrated)return X.tag===3?X.stateNode.containerInfo:null;U=null}else X!==U&&(U=null)}}return MZ=U,null}function VS(U){switch(U){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return P6;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return QI;case"message":switch(Sf()){case OK:return P6;case LK:return QI;case PX:case vf:return uI;case KK:return E8;default:return uI}default:return uI}}function SS(U,X){switch(U){case"focusin":case"focusout":E2=null;break;case"dragenter":case"dragleave":R2=null;break;case"mouseover":case"mouseout":P2=null;break;case"pointerover":case"pointerout":wJ.delete(X.pointerId);break;case"gotpointercapture":case"lostpointercapture":xJ.delete(X.pointerId)}}function uY(U,X,z,D,V,C){if(U===null||U.nativeEvent!==C)return U={blockedOn:X,domEventName:z,eventSystemFlags:D,nativeEvent:C,targetContainers:[V]},X!==null&&(X=p(X),X!==null&&RS(X)),U;return U.eventSystemFlags|=D,X=U.targetContainers,V!==null&&X.indexOf(V)===-1&&X.push(V),U}function Hf(U,X,z,D,V){switch(X){case"focusin":return E2=uY(E2,U,X,z,D,V),!0;case"dragenter":return R2=uY(R2,U,X,z,D,V),!0;case"mouseover":return P2=uY(P2,U,X,z,D,V),!0;case"pointerover":var C=V.pointerId;return wJ.set(C,uY(wJ.get(C)||null,U,X,z,D,V)),!0;case"gotpointercapture":return C=V.pointerId,xJ.set(C,uY(xJ.get(C)||null,U,X,z,D,V)),!0}return!1}function vS(U){var X=x0(U.target);if(X!==null){var z=y(X);if(z!==null){if(X=z.tag,X===13){if(X=g(z),X!==null){U.blockedOn=X,o(U.priority,function(){PS(z)});return}}else if(X===31){if(X=b(z),X!==null){U.blockedOn=X,o(U.priority,function(){PS(z)});return}}else if(X===3&&z.stateNode.current.memoizedState.isDehydrated){U.blockedOn=z.tag===3?z.stateNode.containerInfo:null;return}}}U.blockedOn=null}function L8(U){if(U.blockedOn!==null)return!1;for(var X=U.targetContainers;0<X.length;){var z=a9(U.nativeEvent);if(z===null){z=U.nativeEvent;var D=new z.constructor(z.type,z),V=D;mY!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),mY=V,z.target.dispatchEvent(D),mY===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),mY=null}else return X=p(z),X!==null&&RS(X),U.blockedOn=z,!1;X.shift()}return!0}function CS(U,X,z){L8(U)&&z.delete(X)}function Ff(){CD=!1,E2!==null&&L8(E2)&&(E2=null),R2!==null&&L8(R2)&&(R2=null),P2!==null&&L8(P2)&&(P2=null),wJ.forEach(CS),xJ.forEach(CS)}function K8(U,X){U.blockedOn===X&&(U.blockedOn=null,CD||(CD=!0,X1.unstable_scheduleCallback(X1.unstable_NormalPriority,Ff)))}function qS(U){AZ!==U&&(AZ=U,X1.unstable_scheduleCallback(X1.unstable_NormalPriority,function(){AZ===U&&(AZ=null);for(var X=0;X<U.length;X+=3){var z=U[X],D=U[X+1],V=U[X+2];if(typeof D!=="function")if(s9(D||z)===null)continue;else break;var C=p(z);C!==null&&(U.splice(X,3),X-=3,z={pending:!0,data:V,method:z.method,action:D},Object.freeze(z),sL(C,z,D,V))}}))}function AX(U){function X(U0){return K8(U0,U)}E2!==null&&K8(E2,U),R2!==null&&K8(R2,U),P2!==null&&K8(P2,U),wJ.forEach(X),xJ.forEach(X);for(var z=0;z<V2.length;z++){var D=V2[z];D.blockedOn===U&&(D.blockedOn=null)}for(;0<V2.length&&(z=V2[0],z.blockedOn===null);)vS(z),z.blockedOn===null&&V2.shift();if(z=(U.ownerDocument||U).$$reactFormReplay,z!=null)for(D=0;D<z.length;D+=3){var V=z[D],C=z[D+1],f=V[uU]||null;if(typeof C==="function")f||qS(z);else if(f){var n=null;if(C&&C.hasAttribute("formAction")){if(V=C,f=C[uU]||null)n=f.formAction;else if(s9(V)!==null)continue}else n=f.action;typeof n==="function"?z[D+1]=n:(z.splice(D,3),D-=3),qS(z)}}}function NS(){function U(C){C.canIntercept&&C.info==="react-transition"&&C.intercept({handler:function(){return new Promise(function(f){return V=f})},focusReset:"manual",scroll:"manual"})}function X(){V!==null&&(V(),V=null),D||setTimeout(z,20)}function z(){if(!D&&!navigation.transition){var C=navigation.currentEntry;C&&C.url!=null&&navigation.navigate(C.url,{state:C.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var D=!1,V=null;return navigation.addEventListener("navigate",U),navigation.addEventListener("navigatesuccess",X),navigation.addEventListener("navigateerror",X),setTimeout(z,100),function(){D=!0,navigation.removeEventListener("navigate",U),navigation.removeEventListener("navigatesuccess",X),navigation.removeEventListener("navigateerror",X),V!==null&&(V(),V=null)}}}function e9(U){this._internalRoot=U}function D8(U){this._internalRoot=U}function BS(U){U[$2]&&(U._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i$=Object.assign,Tf=Symbol.for("react.element"),xI=Symbol.for("react.transitional.element"),EX=Symbol.for("react.portal"),RX=Symbol.for("react.fragment"),W8=Symbol.for("react.strict_mode"),$K=Symbol.for("react.profiler"),UK=Symbol.for("react.consumer"),fI=Symbol.for("react.context"),nY=Symbol.for("react.forward_ref"),IK=Symbol.for("react.suspense"),_K=Symbol.for("react.suspense_list"),H8=Symbol.for("react.memo"),E6=Symbol.for("react.lazy"),XK=Symbol.for("react.activity"),Mf=Symbol.for("react.memo_cache_sentinel"),jS=Symbol.iterator,Af=Symbol.for("react.client.reference"),DU=Array.isArray,e0=XG.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q1=BD.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ef=Object.freeze({pending:!1,data:null,method:null,action:null}),GK=[],YK=[],K_=-1,a_=P0(null),pY=P0(null),s_=P0(null),F8=P0(null),cY=0,kS,gS,wS,xS,fS,yS,bS;O.__reactDisabledLog=!0;var JK,hS,QK=!1,zK=new(typeof WeakMap==="function"?WeakMap:Map),R6=null,yI=!1,JI=Object.prototype.hasOwnProperty,ZK=X1.unstable_scheduleCallback,Rf=X1.unstable_cancelCallback,Pf=X1.unstable_shouldYield,Vf=X1.unstable_requestPaint,AU=X1.unstable_now,Sf=X1.unstable_getCurrentPriorityLevel,OK=X1.unstable_ImmediatePriority,LK=X1.unstable_UserBlockingPriority,PX=X1.unstable_NormalPriority,vf=X1.unstable_LowPriority,KK=X1.unstable_IdlePriority,Cf=X1.log,qf=X1.unstable_setDisableYieldValue,VX=null,xU=null,bI=!1,hI=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",hU=Math.clz32?Math.clz32:F0,Nf=Math.log,Bf=Math.LN2,T8=256,M8=262144,A8=4194304,P6=2,QI=8,uI=32,E8=268435456,e_=Math.random().toString(36).slice(2),NU="__reactFiber$"+e_,uU="__reactProps$"+e_,$2="__reactContainer$"+e_,DK="__reactEvents$"+e_,jf="__reactListeners$"+e_,kf="__reactHandles$"+e_,uS="__reactResources$"+e_,lY="__reactMarker$"+e_,nS=new Set,X4={},WK={},gf={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},wf=RegExp("^[: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]*$"),pS={},cS={},xf=/[\n"\\]/g,lS=!1,mS=!1,dS=!1,iS=!1,oS=!1,tS=!1,rS=["value","defaultValue"],aS=!1,sS=/["'&<>\n\t]|^\s|\s$/,ff="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),eS="applet caption html table td th marquee object template foreignObject desc title".split(" "),yf=eS.concat(["button"]),bf="dd dt li option optgroup p rp rt".split(" "),$v={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},R8={},HK={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},Uv=/([A-Z])/g,Iv=/^ms-/,hf=/^(?:webkit|moz|o)[A-Z]/,uf=/^-ms-/,nf=/-(.)/g,_v=/;\s*$/,SX={},FK={},Xv=!1,Gv=!1,Yv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),P8="http://www.w3.org/1998/Math/MathML",vX="http://www.w3.org/2000/svg",pf=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),V8={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Jv={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},CX={},cf=RegExp("^(aria)-[: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]*$"),lf=RegExp("^(aria)[A-Z][: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]*$"),Qv=!1,nU={},zv=/^on./,mf=/^on[^A-Z]/,df=RegExp("^(aria)-[: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]*$"),of=RegExp("^(aria)[A-Z][: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]*$"),tf=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,mY=null,qX=null,NX=null,TK=!1,nI=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),MK=!1;if(nI)try{var dY={};Object.defineProperty(dY,"passive",{get:function(){MK=!0}}),window.addEventListener("test",dY,dY),window.removeEventListener("test",dY,dY)}catch(U){MK=!1}var U2=null,AK=null,S8=null,G4={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(U){return U.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},v8=$6(G4),iY=i$({},G4,{view:0,detail:0}),rf=$6(iY),EK,RK,oY,C8=i$({},iY,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:XL,button:0,buttons:0,relatedTarget:function(U){return U.relatedTarget===void 0?U.fromElement===U.srcElement?U.toElement:U.fromElement:U.relatedTarget},movementX:function(U){if("movementX"in U)return U.movementX;return U!==oY&&(oY&&U.type==="mousemove"?(EK=U.screenX-oY.screenX,RK=U.screenY-oY.screenY):RK=EK=0,oY=U),EK},movementY:function(U){return"movementY"in U?U.movementY:RK}}),Zv=$6(C8),af=i$({},C8,{dataTransfer:0}),sf=$6(af),ef=i$({},iY,{relatedTarget:0}),PK=$6(ef),$y=i$({},G4,{animationName:0,elapsedTime:0,pseudoElement:0}),Uy=$6($y),Iy=i$({},G4,{clipboardData:function(U){return"clipboardData"in U?U.clipboardData:window.clipboardData}}),_y=$6(Iy),Xy=i$({},G4,{data:0}),Ov=$6(Xy),Gy=Ov,Yy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jy={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Qy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},zy=i$({},iY,{key:function(U){if(U.key){var X=Yy[U.key]||U.key;if(X!=="Unidentified")return X}return U.type==="keypress"?(U=Lz(U),U===13?"Enter":String.fromCharCode(U)):U.type==="keydown"||U.type==="keyup"?Jy[U.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:XL,charCode:function(U){return U.type==="keypress"?Lz(U):0},keyCode:function(U){return U.type==="keydown"||U.type==="keyup"?U.keyCode:0},which:function(U){return U.type==="keypress"?Lz(U):U.type==="keydown"||U.type==="keyup"?U.keyCode:0}}),Zy=$6(zy),Oy=i$({},C8,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lv=$6(Oy),Ly=i$({},iY,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:XL}),Ky=$6(Ly),Dy=i$({},G4,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wy=$6(Dy),Hy=i$({},C8,{deltaX:function(U){return"deltaX"in U?U.deltaX:("wheelDeltaX"in U)?-U.wheelDeltaX:0},deltaY:function(U){return"deltaY"in U?U.deltaY:("wheelDeltaY"in U)?-U.wheelDeltaY:("wheelDelta"in U)?-U.wheelDelta:0},deltaZ:0,deltaMode:0}),Fy=$6(Hy),Ty=i$({},G4,{newState:0,oldState:0}),My=$6(Ty),Ay=[9,13,27,32],Kv=229,VK=nI&&"CompositionEvent"in window,tY=null;nI&&"documentMode"in document&&(tY=document.documentMode);var Ey=nI&&"TextEvent"in window&&!tY,Dv=nI&&(!VK||tY&&8<tY&&11>=tY),Wv=32,Hv=String.fromCharCode(Wv),Fv=!1,BX=!1,Ry={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},rY=null,aY=null,Tv=!1;nI&&(Tv=pw("input")&&(!document.documentMode||9<document.documentMode));var pU=typeof Object.is==="function"?Object.is:ow,Py=nI&&"documentMode"in document&&11>=document.documentMode,jX=null,SK=null,sY=null,vK=!1,kX={animationend:l2("Animation","AnimationEnd"),animationiteration:l2("Animation","AnimationIteration"),animationstart:l2("Animation","AnimationStart"),transitionrun:l2("Transition","TransitionRun"),transitionstart:l2("Transition","TransitionStart"),transitioncancel:l2("Transition","TransitionCancel"),transitionend:l2("Transition","TransitionEnd")},CK={},Mv={};nI&&(Mv=document.createElement("div").style,("AnimationEvent"in window)||(delete kX.animationend.animation,delete kX.animationiteration.animation,delete kX.animationstart.animation),("TransitionEvent"in window)||delete kX.transitionend.transition);var Av=m2("animationend"),Ev=m2("animationiteration"),Rv=m2("animationstart"),Vy=m2("transitionrun"),Sy=m2("transitionstart"),vy=m2("transitioncancel"),Pv=m2("transitionend"),Vv=new Map,qK="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");qK.push("scrollEnd");var Sv=0;if(typeof performance==="object"&&typeof performance.now==="function")var Cy=performance,vv=function(){return Cy.now()};else{var qy=Date;vv=function(){return qy.now()}}var NK=typeof reportError==="function"?reportError:function(U){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof U==="object"&&U!==null&&typeof U.message==="string"?String(U.message):String(U),error:U});if(!window.dispatchEvent(X))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",U);return}console.error(U)},Ny="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",q8=0,BK=1,jK=2,kK=3,N8="– ",B8="+ ",Cv=" ",C1=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",u6="Components ⚛",o$="Scheduler ⚛",t$="Blocking",I2=!1,D_={color:"primary",properties:null,tooltipText:"",track:u6},_2={start:-0,end:-0,detail:{devtools:D_}},By=["Changed Props",""],qv="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",jy=["Changed Props",qv],eY=1,W_=2,n6=[],gX=0,gK=0,X2={};Object.freeze(X2);var p6=null,wX=null,j$=0,ky=1,h$=2,fU=8,zI=16,gy=32,Nv=!1;try{var Bv=Object.preventExtensions({})}catch(U){Nv=!0}var wK=new WeakMap,xX=[],fX=0,j8=null,$J=0,c6=[],l6=0,Y4=null,H_=1,F_="",BU=null,q1=null,a$=!1,pI=!1,V6=null,G2=null,m6=!1,xK=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),fK=P0(null),yK=P0(null),jv={},k8=null,yX=null,bX=!1,wy=typeof AbortController<"u"?AbortController:function(){var U=[],X=this.signal={aborted:!1,addEventListener:function(z,D){U.push(D)}};this.abort=function(){X.aborted=!0,U.forEach(function(z){return z()})}},xy=X1.unstable_scheduleCallback,fy=X1.unstable_NormalPriority,GU={$$typeof:fI,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},YU=X1.unstable_now,g8=console.createTask?console.createTask:function(){return null},UJ=1,w8=2,EU=-0,Y2=-0,T_=-0,M_=null,cU=-1.1,J4=-0,y1=-0,v$=-1.1,N$=-1.1,g1=null,m1=!1,J2=-0,cI=-1.1,IJ=null,Q2=0,bK=null,hK=null,Q4=-1.1,_J=null,hX=-1.1,x8=-1.1,lI=-0,A_=-1.1,d6=-1.1,uK=0,XJ=null,kv=null,gv=null,z2=-1.1,z4=null,Z2=-1.1,f8=-1.1,wv=-0,xv=-0,y8=0,E_=null,fv=0,GJ=-1.1,b8=!1,h8=!1,YJ=null,nK=0,Z4=0,uX=null,yv=e0.S;e0.S=function(U,X){if(kC=AU(),typeof X==="object"&&X!==null&&typeof X.then==="function"){if(0>A_&&0>d6){A_=YU();var z=fY(),D=xY();if(z!==Z2||D!==z4)Z2=-1.1;z2=z,z4=D}Ux(U,X)}yv!==null&&yv(U,X)};var O4=P0(null),ZI={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},JJ=[],QJ=[],zJ=[],ZJ=[],OJ=[],LJ=[],L4=new Set;ZI.recordUnsafeLifecycleWarnings=function(U,X){L4.has(U.type)||(typeof X.componentWillMount==="function"&&X.componentWillMount.__suppressDeprecationWarning!==!0&&JJ.push(U),U.mode&fU&&typeof X.UNSAFE_componentWillMount==="function"&&QJ.push(U),typeof X.componentWillReceiveProps==="function"&&X.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&zJ.push(U),U.mode&fU&&typeof X.UNSAFE_componentWillReceiveProps==="function"&&ZJ.push(U),typeof X.componentWillUpdate==="function"&&X.componentWillUpdate.__suppressDeprecationWarning!==!0&&OJ.push(U),U.mode&fU&&typeof X.UNSAFE_componentWillUpdate==="function"&&LJ.push(U))},ZI.flushPendingUnsafeLifecycleWarnings=function(){var U=new Set;0<JJ.length&&(JJ.forEach(function(n){U.add(t(n)||"Component"),L4.add(n.type)}),JJ=[]);var X=new Set;0<QJ.length&&(QJ.forEach(function(n){X.add(t(n)||"Component"),L4.add(n.type)}),QJ=[]);var z=new Set;0<zJ.length&&(zJ.forEach(function(n){z.add(t(n)||"Component"),L4.add(n.type)}),zJ=[]);var D=new Set;0<ZJ.length&&(ZJ.forEach(function(n){D.add(t(n)||"Component"),L4.add(n.type)}),ZJ=[]);var V=new Set;0<OJ.length&&(OJ.forEach(function(n){V.add(t(n)||"Component"),L4.add(n.type)}),OJ=[]);var C=new Set;if(0<LJ.length&&(LJ.forEach(function(n){C.add(t(n)||"Component"),L4.add(n.type)}),LJ=[]),0<X.size){var f=T(X);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
185
|
-
|
|
186
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
187
|
-
|
|
188
|
-
Please update the following components: %s`,f)}0<D.size&&(f=T(D),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
189
|
-
|
|
190
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
191
|
-
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
192
|
-
|
|
193
|
-
Please update the following components: %s`,f)),0<C.size&&(f=T(C),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
194
|
-
|
|
195
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
196
|
-
|
|
197
|
-
Please update the following components: %s`,f)),0<U.size&&(f=T(U),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
198
|
-
|
|
199
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
200
|
-
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
201
|
-
|
|
202
|
-
Please update the following components: %s`,f)),0<z.size&&(f=T(z),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
203
|
-
|
|
204
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
205
|
-
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
206
|
-
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
207
|
-
|
|
208
|
-
Please update the following components: %s`,f)),0<V.size&&(f=T(V),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
209
|
-
|
|
210
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
211
|
-
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
212
|
-
|
|
213
|
-
Please update the following components: %s`,f))};var u8=new Map,bv=new Set;ZI.recordLegacyContextWarning=function(U,X){var z=null;for(var D=U;D!==null;)D.mode&fU&&(z=D),D=D.return;z===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!bv.has(U.type)&&(D=u8.get(z),U.type.contextTypes!=null||U.type.childContextTypes!=null||X!==null&&typeof X.getChildContext==="function")&&(D===void 0&&(D=[],u8.set(z,D)),D.push(U))},ZI.flushLegacyContextWarning=function(){u8.forEach(function(U){if(U.length!==0){var X=U[0],z=new Set;U.forEach(function(V){z.add(t(V)||"Component"),bv.add(V.type)});var D=T(z);r(X,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
214
|
-
|
|
215
|
-
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
216
|
-
|
|
217
|
-
Please update the following components: %s
|
|
218
|
-
|
|
219
|
-
Learn more about this warning here: https://react.dev/link/legacy-context`,D)})}})},ZI.discardPendingWarnings=function(){JJ=[],QJ=[],zJ=[],ZJ=[],OJ=[],LJ=[],u8=new Map};var hv={react_stack_bottom_frame:function(U,X,z){var D=yI;yI=!0;try{return U(X,z)}finally{yI=D}}},pK=hv.react_stack_bottom_frame.bind(hv),uv={react_stack_bottom_frame:function(U){var X=yI;yI=!0;try{return U.render()}finally{yI=X}}},nv=uv.react_stack_bottom_frame.bind(uv),pv={react_stack_bottom_frame:function(U,X){try{X.componentDidMount()}catch(z){J1(U,U.return,z)}}},cK=pv.react_stack_bottom_frame.bind(pv),cv={react_stack_bottom_frame:function(U,X,z,D,V){try{X.componentDidUpdate(z,D,V)}catch(C){J1(U,U.return,C)}}},lv=cv.react_stack_bottom_frame.bind(cv),mv={react_stack_bottom_frame:function(U,X){var z=X.stack;U.componentDidCatch(X.value,{componentStack:z!==null?z:""})}},yy=mv.react_stack_bottom_frame.bind(mv),dv={react_stack_bottom_frame:function(U,X,z){try{z.componentWillUnmount()}catch(D){J1(U,X,D)}}},iv=dv.react_stack_bottom_frame.bind(dv),ov={react_stack_bottom_frame:function(U){var X=U.create;return U=U.inst,X=X(),U.destroy=X}},by=ov.react_stack_bottom_frame.bind(ov),tv={react_stack_bottom_frame:function(U,X,z){try{z()}catch(D){J1(U,X,D)}}},hy=tv.react_stack_bottom_frame.bind(tv),rv={react_stack_bottom_frame:function(U){var X=U._init;return X(U._payload)}},uy=rv.react_stack_bottom_frame.bind(rv),nX=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),lK=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),n8=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),p8={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},K4=null,KJ=!1,pX=null,DJ=0,u$=null,mK,av=mK=!1,sv={},ev={},$C={};E=function(U,X,z){if(z!==null&&typeof z==="object"&&z._store&&(!z._store.validated&&z.key==null||z._store.validated===2)){if(typeof z._store!=="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");z._store.validated=1;var D=t(U),V=D||"null";if(!sv[V]){sv[V]=!0,z=z._owner,U=U._debugOwner;var C="";U&&typeof U.tag==="number"&&(V=t(U))&&(C=`
|
|
220
|
-
|
|
221
|
-
Check the render method of \``+V+"`."),C||D&&(C=`
|
|
222
|
-
|
|
223
|
-
Check the top-level render call using <`+D+">.");var f="";z!=null&&U!==z&&(D=null,typeof z.tag==="number"?D=t(z):typeof z.name==="string"&&(D=z.name),D&&(f=" It was passed a child from "+D+".")),r(X,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',C,f)})}}};var D4=dR(!0),UC=dR(!1),IC=0,_C=1,XC=2,dK=3,O2=!1,GC=!1,iK=null,oK=!1,cX=P0(null),c8=P0(0),S6=P0(null),i6=null,lX=1,WJ=2,_U=P0(0),l8=0,o6=1,lU=2,v6=4,mU=8,mX,YC=new Set,JC=new Set,tK=new Set,QC=new Set,R_=0,w$=null,T1=null,JU=null,m8=!1,dX=!1,W4=!1,d8=0,HJ=0,P_=null,ny=0,py=25,t0=null,t6=null,V_=-1,FJ=!1,TJ={readContext:k1,use:i_,useCallback:$U,useContext:$U,useEffect:$U,useImperativeHandle:$U,useLayoutEffect:$U,useInsertionEffect:$U,useMemo:$U,useReducer:$U,useRef:$U,useState:$U,useDebugValue:$U,useDeferredValue:$U,useTransition:$U,useSyncExternalStore:$U,useId:$U,useHostTransitionStatus:$U,useFormState:$U,useActionState:$U,useOptimistic:$U,useMemoCache:$U,useCacheRefresh:$U};TJ.useEffectEvent=$U;var rK=null,zC=null,aK=null,ZC=null,mI=null,OI=null,i8=null;rK={readContext:function(U){return k1(U)},use:i_,useCallback:function(U,X){return t0="useCallback",d$(),QX(X),oL(U,X)},useContext:function(U){return t0="useContext",d$(),k1(U)},useEffect:function(U,X){return t0="useEffect",d$(),QX(X),uz(U,X)},useImperativeHandle:function(U,X,z){return t0="useImperativeHandle",d$(),QX(z),iL(U,X,z)},useInsertionEffect:function(U,X){t0="useInsertionEffect",d$(),QX(X),e2(4,lU,U,X)},useLayoutEffect:function(U,X){return t0="useLayoutEffect",d$(),QX(X),dL(U,X)},useMemo:function(U,X){t0="useMemo",d$(),QX(X);var z=e0.H;e0.H=mI;try{return tL(U,X)}finally{e0.H=z}},useReducer:function(U,X,z){t0="useReducer",d$();var D=e0.H;e0.H=mI;try{return yL(U,X,z)}finally{e0.H=D}},useRef:function(U){return t0="useRef",d$(),lL(U)},useState:function(U){t0="useState",d$();var X=e0.H;e0.H=mI;try{return nL(U)}finally{e0.H=X}},useDebugValue:function(){t0="useDebugValue",d$()},useDeferredValue:function(U,X){return t0="useDeferredValue",d$(),rL(U,X)},useTransition:function(){return t0="useTransition",d$(),eL()},useSyncExternalStore:function(U,X,z){return t0="useSyncExternalStore",d$(),hL(U,X,z)},useId:function(){return t0="useId",d$(),$9()},useFormState:function(U,X){return t0="useFormState",d$(),xz(),ZX(U,X)},useActionState:function(U,X){return t0="useActionState",d$(),ZX(U,X)},useOptimistic:function(U){return t0="useOptimistic",d$(),pL(U)},useHostTransitionStatus:$4,useMemoCache:s2,useCacheRefresh:function(){return t0="useCacheRefresh",d$(),U9()},useEffectEvent:function(U){return t0="useEffectEvent",d$(),mL(U)}},zC={readContext:function(U){return k1(U)},use:i_,useCallback:function(U,X){return t0="useCallback",D$(),oL(U,X)},useContext:function(U){return t0="useContext",D$(),k1(U)},useEffect:function(U,X){return t0="useEffect",D$(),uz(U,X)},useImperativeHandle:function(U,X,z){return t0="useImperativeHandle",D$(),iL(U,X,z)},useInsertionEffect:function(U,X){t0="useInsertionEffect",D$(),e2(4,lU,U,X)},useLayoutEffect:function(U,X){return t0="useLayoutEffect",D$(),dL(U,X)},useMemo:function(U,X){t0="useMemo",D$();var z=e0.H;e0.H=mI;try{return tL(U,X)}finally{e0.H=z}},useReducer:function(U,X,z){t0="useReducer",D$();var D=e0.H;e0.H=mI;try{return yL(U,X,z)}finally{e0.H=D}},useRef:function(U){return t0="useRef",D$(),lL(U)},useState:function(U){t0="useState",D$();var X=e0.H;e0.H=mI;try{return nL(U)}finally{e0.H=X}},useDebugValue:function(){t0="useDebugValue",D$()},useDeferredValue:function(U,X){return t0="useDeferredValue",D$(),rL(U,X)},useTransition:function(){return t0="useTransition",D$(),eL()},useSyncExternalStore:function(U,X,z){return t0="useSyncExternalStore",D$(),hL(U,X,z)},useId:function(){return t0="useId",D$(),$9()},useActionState:function(U,X){return t0="useActionState",D$(),ZX(U,X)},useFormState:function(U,X){return t0="useFormState",D$(),xz(),ZX(U,X)},useOptimistic:function(U){return t0="useOptimistic",D$(),pL(U)},useHostTransitionStatus:$4,useMemoCache:s2,useCacheRefresh:function(){return t0="useCacheRefresh",D$(),U9()},useEffectEvent:function(U){return t0="useEffectEvent",D$(),mL(U)}},aK={readContext:function(U){return k1(U)},use:i_,useCallback:function(U,X){return t0="useCallback",D$(),cz(U,X)},useContext:function(U){return t0="useContext",D$(),k1(U)},useEffect:function(U,X){t0="useEffect",D$(),U6(2048,mU,U,X)},useImperativeHandle:function(U,X,z){return t0="useImperativeHandle",D$(),pz(U,X,z)},useInsertionEffect:function(U,X){return t0="useInsertionEffect",D$(),U6(4,lU,U,X)},useLayoutEffect:function(U,X){return t0="useLayoutEffect",D$(),U6(4,v6,U,X)},useMemo:function(U,X){t0="useMemo",D$();var z=e0.H;e0.H=OI;try{return lz(U,X)}finally{e0.H=z}},useReducer:function(U,X,z){t0="useReducer",D$();var D=e0.H;e0.H=OI;try{return zX(U,X,z)}finally{e0.H=D}},useRef:function(){return t0="useRef",D$(),Z1().memoizedState},useState:function(){t0="useState",D$();var U=e0.H;e0.H=OI;try{return zX(GI)}finally{e0.H=U}},useDebugValue:function(){t0="useDebugValue",D$()},useDeferredValue:function(U,X){return t0="useDeferredValue",D$(),DP(U,X)},useTransition:function(){return t0="useTransition",D$(),AP()},useSyncExternalStore:function(U,X,z){return t0="useSyncExternalStore",D$(),yz(U,X,z)},useId:function(){return t0="useId",D$(),Z1().memoizedState},useFormState:function(U){return t0="useFormState",D$(),xz(),bz(U)},useActionState:function(U){return t0="useActionState",D$(),bz(U)},useOptimistic:function(U,X){return t0="useOptimistic",D$(),XP(U,X)},useHostTransitionStatus:$4,useMemoCache:s2,useCacheRefresh:function(){return t0="useCacheRefresh",D$(),Z1().memoizedState},useEffectEvent:function(U){return t0="useEffectEvent",D$(),nz(U)}},ZC={readContext:function(U){return k1(U)},use:i_,useCallback:function(U,X){return t0="useCallback",D$(),cz(U,X)},useContext:function(U){return t0="useContext",D$(),k1(U)},useEffect:function(U,X){t0="useEffect",D$(),U6(2048,mU,U,X)},useImperativeHandle:function(U,X,z){return t0="useImperativeHandle",D$(),pz(U,X,z)},useInsertionEffect:function(U,X){return t0="useInsertionEffect",D$(),U6(4,lU,U,X)},useLayoutEffect:function(U,X){return t0="useLayoutEffect",D$(),U6(4,v6,U,X)},useMemo:function(U,X){t0="useMemo",D$();var z=e0.H;e0.H=i8;try{return lz(U,X)}finally{e0.H=z}},useReducer:function(U,X,z){t0="useReducer",D$();var D=e0.H;e0.H=i8;try{return PY(U,X,z)}finally{e0.H=D}},useRef:function(){return t0="useRef",D$(),Z1().memoizedState},useState:function(){t0="useState",D$();var U=e0.H;e0.H=i8;try{return PY(GI)}finally{e0.H=U}},useDebugValue:function(){t0="useDebugValue",D$()},useDeferredValue:function(U,X){return t0="useDeferredValue",D$(),WP(U,X)},useTransition:function(){return t0="useTransition",D$(),EP()},useSyncExternalStore:function(U,X,z){return t0="useSyncExternalStore",D$(),yz(U,X,z)},useId:function(){return t0="useId",D$(),Z1().memoizedState},useFormState:function(U){return t0="useFormState",D$(),xz(),hz(U)},useActionState:function(U){return t0="useActionState",D$(),hz(U)},useOptimistic:function(U,X){return t0="useOptimistic",D$(),YP(U,X)},useHostTransitionStatus:$4,useMemoCache:s2,useCacheRefresh:function(){return t0="useCacheRefresh",D$(),Z1().memoizedState},useEffectEvent:function(U){return t0="useEffectEvent",D$(),nz(U)}},mI={readContext:function(U){return R(),k1(U)},use:function(U){return W(),i_(U)},useCallback:function(U,X){return t0="useCallback",W(),d$(),oL(U,X)},useContext:function(U){return t0="useContext",W(),d$(),k1(U)},useEffect:function(U,X){return t0="useEffect",W(),d$(),uz(U,X)},useImperativeHandle:function(U,X,z){return t0="useImperativeHandle",W(),d$(),iL(U,X,z)},useInsertionEffect:function(U,X){t0="useInsertionEffect",W(),d$(),e2(4,lU,U,X)},useLayoutEffect:function(U,X){return t0="useLayoutEffect",W(),d$(),dL(U,X)},useMemo:function(U,X){t0="useMemo",W(),d$();var z=e0.H;e0.H=mI;try{return tL(U,X)}finally{e0.H=z}},useReducer:function(U,X,z){t0="useReducer",W(),d$();var D=e0.H;e0.H=mI;try{return yL(U,X,z)}finally{e0.H=D}},useRef:function(U){return t0="useRef",W(),d$(),lL(U)},useState:function(U){t0="useState",W(),d$();var X=e0.H;e0.H=mI;try{return nL(U)}finally{e0.H=X}},useDebugValue:function(){t0="useDebugValue",W(),d$()},useDeferredValue:function(U,X){return t0="useDeferredValue",W(),d$(),rL(U,X)},useTransition:function(){return t0="useTransition",W(),d$(),eL()},useSyncExternalStore:function(U,X,z){return t0="useSyncExternalStore",W(),d$(),hL(U,X,z)},useId:function(){return t0="useId",W(),d$(),$9()},useFormState:function(U,X){return t0="useFormState",W(),d$(),ZX(U,X)},useActionState:function(U,X){return t0="useActionState",W(),d$(),ZX(U,X)},useOptimistic:function(U){return t0="useOptimistic",W(),d$(),pL(U)},useMemoCache:function(U){return W(),s2(U)},useHostTransitionStatus:$4,useCacheRefresh:function(){return t0="useCacheRefresh",d$(),U9()},useEffectEvent:function(U){return t0="useEffectEvent",W(),d$(),mL(U)}},OI={readContext:function(U){return R(),k1(U)},use:function(U){return W(),i_(U)},useCallback:function(U,X){return t0="useCallback",W(),D$(),cz(U,X)},useContext:function(U){return t0="useContext",W(),D$(),k1(U)},useEffect:function(U,X){t0="useEffect",W(),D$(),U6(2048,mU,U,X)},useImperativeHandle:function(U,X,z){return t0="useImperativeHandle",W(),D$(),pz(U,X,z)},useInsertionEffect:function(U,X){return t0="useInsertionEffect",W(),D$(),U6(4,lU,U,X)},useLayoutEffect:function(U,X){return t0="useLayoutEffect",W(),D$(),U6(4,v6,U,X)},useMemo:function(U,X){t0="useMemo",W(),D$();var z=e0.H;e0.H=OI;try{return lz(U,X)}finally{e0.H=z}},useReducer:function(U,X,z){t0="useReducer",W(),D$();var D=e0.H;e0.H=OI;try{return zX(U,X,z)}finally{e0.H=D}},useRef:function(){return t0="useRef",W(),D$(),Z1().memoizedState},useState:function(){t0="useState",W(),D$();var U=e0.H;e0.H=OI;try{return zX(GI)}finally{e0.H=U}},useDebugValue:function(){t0="useDebugValue",W(),D$()},useDeferredValue:function(U,X){return t0="useDeferredValue",W(),D$(),DP(U,X)},useTransition:function(){return t0="useTransition",W(),D$(),AP()},useSyncExternalStore:function(U,X,z){return t0="useSyncExternalStore",W(),D$(),yz(U,X,z)},useId:function(){return t0="useId",W(),D$(),Z1().memoizedState},useFormState:function(U){return t0="useFormState",W(),D$(),bz(U)},useActionState:function(U){return t0="useActionState",W(),D$(),bz(U)},useOptimistic:function(U,X){return t0="useOptimistic",W(),D$(),XP(U,X)},useMemoCache:function(U){return W(),s2(U)},useHostTransitionStatus:$4,useCacheRefresh:function(){return t0="useCacheRefresh",D$(),Z1().memoizedState},useEffectEvent:function(U){return t0="useEffectEvent",W(),D$(),nz(U)}},i8={readContext:function(U){return R(),k1(U)},use:function(U){return W(),i_(U)},useCallback:function(U,X){return t0="useCallback",W(),D$(),cz(U,X)},useContext:function(U){return t0="useContext",W(),D$(),k1(U)},useEffect:function(U,X){t0="useEffect",W(),D$(),U6(2048,mU,U,X)},useImperativeHandle:function(U,X,z){return t0="useImperativeHandle",W(),D$(),pz(U,X,z)},useInsertionEffect:function(U,X){return t0="useInsertionEffect",W(),D$(),U6(4,lU,U,X)},useLayoutEffect:function(U,X){return t0="useLayoutEffect",W(),D$(),U6(4,v6,U,X)},useMemo:function(U,X){t0="useMemo",W(),D$();var z=e0.H;e0.H=OI;try{return lz(U,X)}finally{e0.H=z}},useReducer:function(U,X,z){t0="useReducer",W(),D$();var D=e0.H;e0.H=OI;try{return PY(U,X,z)}finally{e0.H=D}},useRef:function(){return t0="useRef",W(),D$(),Z1().memoizedState},useState:function(){t0="useState",W(),D$();var U=e0.H;e0.H=OI;try{return PY(GI)}finally{e0.H=U}},useDebugValue:function(){t0="useDebugValue",W(),D$()},useDeferredValue:function(U,X){return t0="useDeferredValue",W(),D$(),WP(U,X)},useTransition:function(){return t0="useTransition",W(),D$(),EP()},useSyncExternalStore:function(U,X,z){return t0="useSyncExternalStore",W(),D$(),yz(U,X,z)},useId:function(){return t0="useId",W(),D$(),Z1().memoizedState},useFormState:function(U){return t0="useFormState",W(),D$(),hz(U)},useActionState:function(U){return t0="useActionState",W(),D$(),hz(U)},useOptimistic:function(U,X){return t0="useOptimistic",W(),D$(),YP(U,X)},useMemoCache:function(U){return W(),s2(U)},useHostTransitionStatus:$4,useCacheRefresh:function(){return t0="useCacheRefresh",D$(),Z1().memoizedState},useEffectEvent:function(U){return t0="useEffectEvent",W(),D$(),nz(U)}};var OC={},LC=new Set,KC=new Set,DC=new Set,WC=new Set,HC=new Set,FC=new Set,TC=new Set,MC=new Set,AC=new Set,EC=new Set;Object.freeze(OC);var sK={enqueueSetState:function(U,X,z){U=U._reactInternals;var D=M6(U),V=c_(D);V.payload=X,z!==void 0&&z!==null&&(_9(z),V.callback=z),X=l_(U,V,D),X!==null&&(RI(D,"this.setState()",U),l1(X,U,D),MY(X,U,D))},enqueueReplaceState:function(U,X,z){U=U._reactInternals;var D=M6(U),V=c_(D);V.tag=_C,V.payload=X,z!==void 0&&z!==null&&(_9(z),V.callback=z),X=l_(U,V,D),X!==null&&(RI(D,"this.replaceState()",U),l1(X,U,D),MY(X,U,D))},enqueueForceUpdate:function(U,X){U=U._reactInternals;var z=M6(U),D=c_(z);D.tag=XC,X!==void 0&&X!==null&&(_9(X),D.callback=X),X=l_(U,D,z),X!==null&&(RI(z,"this.forceUpdate()",U),l1(X,U,z),MY(X,U,z))}},iX=null,eK=null,$D=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),QU=!1,RC={},PC={},VC={},SC={},oX=!1,vC={},o8={},UD={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},CC=!1,qC=null;qC=new Set;var S_=!1,zU=!1,ID=!1,NC=typeof WeakSet==="function"?WeakSet:Set,RU=null,tX=null,rX=null,ZU=null,X6=!1,LI=null,WU=!1,MJ=8192,cy={getCacheForType:function(U){var X=k1(GU),z=X.data.get(U);return z===void 0&&(z=U(),X.data.set(U,z)),z},cacheSignal:function(){return k1(GU).controller.signal},getOwner:function(){return R6}};if(typeof Symbol==="function"&&Symbol.for){var AJ=Symbol.for;AJ("selector.component"),AJ("selector.has_pseudo_class"),AJ("selector.role"),AJ("selector.test_id"),AJ("selector.text")}var ly=[],my=typeof WeakMap==="function"?WeakMap:Map,PU=0,HU=2,C6=4,v_=0,EJ=1,H4=2,t8=3,L2=4,r8=6,BC=5,_1=PU,M1=null,l$=null,n$=0,G6=0,a8=1,F4=2,RJ=3,jC=4,_D=5,PJ=6,s8=7,XD=8,T4=9,O1=G6,q6=null,K2=!1,aX=!1,GD=!1,dI=0,b1=v_,D2=0,W2=0,YD=0,Y6=0,M4=0,VJ=null,dU=null,e8=!1,$Z=0,kC=0,gC=300,UZ=1/0,wC=500,SJ=null,UU=null,H2=null,IZ=0,JD=1,QD=2,xC=3,F2=0,fC=1,yC=2,bC=3,hC=4,_Z=5,OU=0,T2=null,sX=null,KI=0,zD=0,ZD=-0,OD=null,uC=null,nC=null,DI=IZ,pC=null,dy=50,vJ=0,LD=null,KD=!1,XZ=!1,iy=50,A4=0,CJ=null,eX=!1,GZ=null,cC=!1,lC=new Set,oy={},YZ=null,$G=null,DD=!1,WD=!1,JZ=!1,HD=!1,M2=0,FD={};(function(){for(var U=0;U<qK.length;U++){var X=qK[U],z=X.toLowerCase();X=X[0].toUpperCase()+X.slice(1),XI(z,"on"+X)}XI(Av,"onAnimationEnd"),XI(Ev,"onAnimationIteration"),XI(Rv,"onAnimationStart"),XI("dblclick","onDoubleClick"),XI("focusin","onFocus"),XI("focusout","onBlur"),XI(Vy,"onTransitionRun"),XI(Sy,"onTransitionStart"),XI(vy,"onTransitionCancel"),XI(Pv,"onTransitionEnd")})(),C0("onMouseEnter",["mouseout","mouseover"]),C0("onMouseLeave",["mouseout","mouseover"]),C0("onPointerEnter",["pointerout","pointerover"]),C0("onPointerLeave",["pointerout","pointerover"]),H0("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),H0("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),H0("onBeforeInput",["compositionend","keypress","textInput","paste"]),H0("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),H0("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),H0("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qJ="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),TD=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(qJ)),QZ="_reactListening"+Math.random().toString(36).slice(2),mC=!1,dC=!1,zZ=!1,iC=!1,ZZ=!1,OZ=!1,oC=!1,LZ={},ty=/\r\n?/g,ry=/\u0000|\uFFFD/g,E4="http://www.w3.org/1999/xlink",MD="http://www.w3.org/XML/1998/namespace",ay="javascript:throw new Error('React form unexpectedly submitted.')",sy="suppressHydrationWarning",R4="&",KZ="/&",NJ="$",BJ="/$",A2="$?",P4="$~",UG="$!",ey="html",$b="body",Ub="head",AD="F!",tC="F",rC="loading",Ib="style",C_=0,IG=1,DZ=2,ED=null,RD=null,aC={dialog:!0,webview:!0},PD=null,jJ=void 0,sC=typeof setTimeout==="function"?setTimeout:void 0,_b=typeof clearTimeout==="function"?clearTimeout:void 0,V4=-1,eC=typeof Promise==="function"?Promise:void 0,Xb=typeof queueMicrotask==="function"?queueMicrotask:typeof eC<"u"?function(U){return eC.resolve(null).then(U).catch(nx)}:sC,VD=null,S4=0,kJ=1,$q=2,Uq=3,r6=4,a6=new Map,Iq=new Set,q_=Q1.d;Q1.d={f:function(){var U=q_.f(),X=WX();return U||X},r:function(U){var X=p(U);X!==null&&X.tag===5&&X.type==="form"?MP(X):q_.r(U)},D:function(U){q_.D(U),LS("dns-prefetch",U,null)},C:function(U,X){q_.C(U,X),LS("preconnect",U,X)},L:function(U,X,z){q_.L(U,X,z);var D=_G;if(D&&U&&X){var V='link[rel="preload"][as="'+B$(X)+'"]';X==="image"?z&&z.imageSrcSet?(V+='[imagesrcset="'+B$(z.imageSrcSet)+'"]',typeof z.imageSizes==="string"&&(V+='[imagesizes="'+B$(z.imageSizes)+'"]')):V+='[href="'+B$(U)+'"]':V+='[href="'+B$(U)+'"]';var C=V;switch(X){case"style":C=TX(U);break;case"script":C=MX(U)}a6.has(C)||(U=i$({rel:"preload",href:X==="image"&&z&&z.imageSrcSet?void 0:U,as:X},z),a6.set(C,U),D.querySelector(V)!==null||X==="style"&&D.querySelector(bY(C))||X==="script"&&D.querySelector(hY(C))||(X=D.createElement("link"),qU(X,"link",U),X0(X),D.head.appendChild(X)))}},m:function(U,X){q_.m(U,X);var z=_G;if(z&&U){var D=X&&typeof X.as==="string"?X.as:"script",V='link[rel="modulepreload"][as="'+B$(D)+'"][href="'+B$(U)+'"]',C=V;switch(D){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":C=MX(U)}if(!a6.has(C)&&(U=i$({rel:"modulepreload",href:U},X),a6.set(C,U),z.querySelector(V)===null)){switch(D){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(z.querySelector(hY(C)))return}D=z.createElement("link"),qU(D,"link",U),X0(D),z.head.appendChild(D)}}},X:function(U,X){q_.X(U,X);var z=_G;if(z&&U){var D=v0(z).hoistableScripts,V=MX(U),C=D.get(V);C||(C=z.querySelector(hY(V)),C||(U=i$({src:U,async:!0},X),(X=a6.get(V))&&i9(U,X),C=z.createElement("script"),X0(C),qU(C,"link",U),z.head.appendChild(C)),C={type:"script",instance:C,count:1,state:null},D.set(V,C))}},S:function(U,X,z){q_.S(U,X,z);var D=_G;if(D&&U){var V=v0(D).hoistableStyles,C=TX(U);X=X||"default";var f=V.get(C);if(!f){var n={loading:S4,preload:null};if(f=D.querySelector(bY(C)))n.loading=kJ|r6;else{U=i$({rel:"stylesheet",href:U,"data-precedence":X},z),(z=a6.get(C))&&d9(U,z);var U0=f=D.createElement("link");X0(U0),qU(U0,"link",U),U0._p=new Promise(function(Z0,h0){U0.onload=Z0,U0.onerror=h0}),U0.addEventListener("load",function(){n.loading|=kJ}),U0.addEventListener("error",function(){n.loading|=$q}),n.loading|=r6,z8(f,X,D)}f={type:"stylesheet",instance:f,count:1,state:n},V.set(C,f)}}},M:function(U,X){q_.M(U,X);var z=_G;if(z&&U){var D=v0(z).hoistableScripts,V=MX(U),C=D.get(V);C||(C=z.querySelector(hY(V)),C||(U=i$({src:U,async:!0,type:"module"},X),(X=a6.get(V))&&i9(U,X),C=z.createElement("script"),X0(C),qU(C,"link",U),z.head.appendChild(C)),C={type:"script",instance:C,count:1,state:null},D.set(V,C))}}};var _G=typeof document>"u"?null:document,WZ=null,Gb=60000,Yb=800,Jb=500,SD=0,vD=null,HZ=null,v4=Ef,gJ={$$typeof:fI,Provider:null,Consumer:null,_currentValue:v4,_currentValue2:v4,_threadCount:0},_q="%c%s%c",Xq="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",Gq="",FZ=" ",Qb=Function.prototype.bind,Yq=!1,Jq=null,Qq=null,zq=null,Zq=null,Oq=null,Lq=null,Kq=null,Dq=null,Wq=null,Hq=null;Jq=function(U,X,z,D){X=$(U,X),X!==null&&(z=I(X.memoizedState,z,0,D),X.memoizedState=z,X.baseState=z,U.memoizedProps=i$({},U.memoizedProps),z=wU(U,2),z!==null&&l1(z,U,2))},Qq=function(U,X,z){X=$(U,X),X!==null&&(z=_(X.memoizedState,z,0),X.memoizedState=z,X.baseState=z,U.memoizedProps=i$({},U.memoizedProps),z=wU(U,2),z!==null&&l1(z,U,2))},zq=function(U,X,z,D){X=$(U,X),X!==null&&(z=G(X.memoizedState,z,D),X.memoizedState=z,X.baseState=z,U.memoizedProps=i$({},U.memoizedProps),z=wU(U,2),z!==null&&l1(z,U,2))},Zq=function(U,X,z){U.pendingProps=I(U.memoizedProps,X,0,z),U.alternate&&(U.alternate.pendingProps=U.pendingProps),X=wU(U,2),X!==null&&l1(X,U,2)},Oq=function(U,X){U.pendingProps=_(U.memoizedProps,X,0),U.alternate&&(U.alternate.pendingProps=U.pendingProps),X=wU(U,2),X!==null&&l1(X,U,2)},Lq=function(U,X,z){U.pendingProps=G(U.memoizedProps,X,z),U.alternate&&(U.alternate.pendingProps=U.pendingProps),X=wU(U,2),X!==null&&l1(X,U,2)},Kq=function(U){var X=wU(U,2);X!==null&&l1(X,U,2)},Dq=function(U){var X=M$(),z=wU(U,X);z!==null&&l1(z,U,X)},Wq=function(U){Y=U},Hq=function(U){J=U};var TZ=!0,MZ=null,CD=!1,E2=null,R2=null,P2=null,wJ=new Map,xJ=new Map,V2=[],zb="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".split(" "),AZ=null;if(D8.prototype.render=e9.prototype.render=function(U){var X=this._internalRoot;if(X===null)throw Error("Cannot update an unmounted root.");var z=arguments;typeof z[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):w(z[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof z[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),z=U;var D=X.current,V=M6(D);o9(D,V,z,X,null,null)},D8.prototype.unmount=e9.prototype.unmount=function(){var U=arguments;if(typeof U[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),U=this._internalRoot,U!==null){this._internalRoot=null;var X=U.containerInfo;(_1&(HU|C6))!==PU&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),o9(U.current,2,null,U,null,null),WX(),X[$2]=null}},D8.prototype.unstable_scheduleHydration=function(U){if(U){var X=_0();U={blockedOn:null,target:U,priority:X};for(var z=0;z<V2.length&&X!==0&&X<V2[z].priority;z++);V2.splice(z,0,U),z===0&&vS(U)}},function(){var U=XG.version;if(U!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
224
|
-
- react: `+(U+`
|
|
225
|
-
- react-dom: 19.2.7
|
|
226
|
-
Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Q1.findDOMNode=function(U){var X=U._reactInternals;if(X===void 0){if(typeof U.render==="function")throw Error("Unable to find node on an unmounted component.");throw U=Object.keys(U).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+U)}return U=i(X),U=U!==null?$0(U):null,U=U===null?null:U.stateNode,U},!function(){var U={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:e0,reconcilerVersion:"19.2.7"};return U.overrideHookState=Jq,U.overrideHookStateDeletePath=Qq,U.overrideHookStateRenamePath=zq,U.overrideProps=Zq,U.overridePropsDeletePath=Oq,U.overridePropsRenamePath=Lq,U.scheduleUpdate=Kq,U.scheduleRetry=Dq,U.setErrorHandler=Wq,U.setSuspenseHandler=Hq,U.scheduleRefresh=B,U.scheduleRoot=N,U.setRefreshHandler=x,U.getCurrentFiber=Kf,z0(U)}()&&nI&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var Fq=window.location.protocol;/^(https?|file):$/.test(Fq)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(Fq==="file:"?`
|
|
227
|
-
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Rb.createRoot=function(U,X){if(!w(U))throw Error("Target container is not a DOM element.");BS(U);var z=!1,D="",V=CP,C=qP,f=NP;return X!==null&&X!==void 0&&(X.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof X==="object"&&X!==null&&X.$$typeof===xI&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
228
|
-
|
|
229
|
-
let root = createRoot(domContainer);
|
|
230
|
-
root.render(<App />);`),X.unstable_strictMode===!0&&(z=!0),X.identifierPrefix!==void 0&&(D=X.identifierPrefix),X.onUncaughtError!==void 0&&(V=X.onUncaughtError),X.onCaughtError!==void 0&&(C=X.onCaughtError),X.onRecoverableError!==void 0&&(f=X.onRecoverableError)),X=MS(U,1,!1,null,null,z,D,null,V,C,f,NS),U[$2]=X.current,w9(U),new e9(X)},Rb.hydrateRoot=function(U,X,z){if(!w(U))throw Error("Target container is not a DOM element.");BS(U),X===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var D=!1,V="",C=CP,f=qP,n=NP,U0=null;return z!==null&&z!==void 0&&(z.unstable_strictMode===!0&&(D=!0),z.identifierPrefix!==void 0&&(V=z.identifierPrefix),z.onUncaughtError!==void 0&&(C=z.onUncaughtError),z.onCaughtError!==void 0&&(f=z.onCaughtError),z.onRecoverableError!==void 0&&(n=z.onRecoverableError),z.formState!==void 0&&(U0=z.formState)),X=MS(U,1,!0,X,z!=null?z:null,D,V,U0,C,f,n,NS),X.context=AS(null),z=X.current,D=M6(z),D=N0(D),V=c_(D),V.callback=null,l_(z,V,D),RI(D,"hydrateRoot()",null),z=D,X.current.lanes=z,V0(X,z),gI(X),U[$2]=X.current,w9(U),new D8(X)},Rb.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var qq=N6((Z00,Cq)=>{var Pb=J6(vq());Cq.exports=Pb});var h1={};LU(h1,{transcode:()=>Qh,resolveObjectURL:()=>Gh,kStringMaxLength:()=>yq,kMaxLength:()=>bJ,isUtf8:()=>Yh,isAscii:()=>Jh,default:()=>zh,constants:()=>gb,btoa:()=>Nb,atob:()=>Bb,INSPECT_MAX_BYTES:()=>fq,File:()=>jb,Buffer:()=>J$,Blob:()=>kb});function Vb($){var I=$.length;if(I%4>0)throw Error("Invalid string. Length must be a multiple of 4");var G=$.indexOf("=");if(G===-1)G=I;var Z=G===I?0:4-G%4;return[G,Z]}function Sb($,I){return($+I)*3/4-I}function vb($){var I,G=Vb($),Z=G[0],_=G[1],J=new Uint8Array(Sb(Z,_)),Y=0,W=_>0?Z-4:Z,R;for(R=0;R<W;R+=4)I=s6[$.charCodeAt(R)]<<18|s6[$.charCodeAt(R+1)]<<12|s6[$.charCodeAt(R+2)]<<6|s6[$.charCodeAt(R+3)],J[Y++]=I>>16&255,J[Y++]=I>>8&255,J[Y++]=I&255;if(_===2)I=s6[$.charCodeAt(R)]<<2|s6[$.charCodeAt(R+1)]>>4,J[Y++]=I&255;if(_===1)I=s6[$.charCodeAt(R)]<<10|s6[$.charCodeAt(R+1)]<<4|s6[$.charCodeAt(R+2)]>>2,J[Y++]=I>>8&255,J[Y++]=I&255;return J}function Cb($){return iI[$>>18&63]+iI[$>>12&63]+iI[$>>6&63]+iI[$&63]}function qb($,I,G){var Z,_=[];for(var J=I;J<G;J+=3)Z=($[J]<<16&16711680)+($[J+1]<<8&65280)+($[J+2]&255),_.push(Cb(Z));return _.join("")}function Bq($){var I,G=$.length,Z=G%3,_=[],J=16383;for(var Y=0,W=G-Z;Y<W;Y+=J)_.push(qb($,Y,Y+J>W?W:Y+J));if(Z===1)I=$[G-1],_.push(iI[I>>2]+iI[I<<4&63]+"==");else if(Z===2)I=($[G-2]<<8)+$[G-1],_.push(iI[I>>10]+iI[I>>4&63]+iI[I<<2&63]+"=");return _.join("")}function RZ($,I,G,Z,_){var J,Y,W=_*8-Z-1,R=(1<<W)-1,M=R>>1,E=-7,T=G?_-1:0,S=G?-1:1,N=$[I+T];T+=S,J=N&(1<<-E)-1,N>>=-E,E+=W;for(;E>0;J=J*256+$[I+T],T+=S,E-=8);Y=J&(1<<-E)-1,J>>=-E,E+=Z;for(;E>0;Y=Y*256+$[I+T],T+=S,E-=8);if(J===0)J=1-M;else if(J===R)return Y?NaN:(N?-1:1)*(1/0);else Y=Y+Math.pow(2,Z),J=J-M;return(N?-1:1)*Y*Math.pow(2,J-Z)}function xq($,I,G,Z,_,J){var Y,W,R,M=J*8-_-1,E=(1<<M)-1,T=E>>1,S=_===23?Math.pow(2,-24)-Math.pow(2,-77):0,N=Z?0:J-1,B=Z?1:-1,x=I<0||I===0&&1/I<0?1:0;if(I=Math.abs(I),isNaN(I)||I===1/0)W=isNaN(I)?1:0,Y=E;else{if(Y=Math.floor(Math.log(I)/Math.LN2),I*(R=Math.pow(2,-Y))<1)Y--,R*=2;if(Y+T>=1)I+=S/R;else I+=S*Math.pow(2,1-T);if(I*R>=2)Y++,R/=2;if(Y+T>=E)W=0,Y=E;else if(Y+T>=1)W=(I*R-1)*Math.pow(2,_),Y=Y+T;else W=I*Math.pow(2,T-1)*Math.pow(2,_),Y=0}for(;_>=8;$[G+N]=W&255,N+=B,W/=256,_-=8);Y=Y<<_|W,M+=_;for(;M>0;$[G+N]=Y&255,N+=B,Y/=256,M-=8);$[G+N-B]|=x*128}function B_($){if($>bJ)throw RangeError('The value "'+$+'" is invalid for option "size"');let I=new Uint8Array($);return Object.setPrototypeOf(I,J$.prototype),I}function fD($,I,G){return class extends G{constructor(){super();Object.defineProperty(this,"message",{value:I.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${$}]`,this.stack,delete this.name}get code(){return $}set code(Z){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Z,writable:!0})}toString(){return`${this.name} [${$}]: ${this.message}`}}}function J$($,I,G){if(typeof $==="number"){if(typeof I==="string")throw TypeError('The "string" argument must be of type string. Received type number');return yD($)}return bq($,I,G)}function bq($,I,G){if(typeof $==="string")return yb($,I);if(ArrayBuffer.isView($))return bb($);if($==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof $);if(oI($,ArrayBuffer)||$&&oI($.buffer,ArrayBuffer))return wD($,I,G);if(typeof SharedArrayBuffer<"u"&&(oI($,SharedArrayBuffer)||$&&oI($.buffer,SharedArrayBuffer)))return wD($,I,G);if(typeof $==="number")throw TypeError('The "value" argument must not be of type number. Received type number');let Z=$.valueOf&&$.valueOf();if(Z!=null&&Z!==$)return J$.from(Z,I,G);let _=hb($);if(_)return _;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof $[Symbol.toPrimitive]==="function")return J$.from($[Symbol.toPrimitive]("string"),I,G);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof $)}function hq($){if(typeof $!=="number")throw TypeError('"size" argument must be of type number');else if($<0)throw RangeError('The value "'+$+'" is invalid for option "size"')}function fb($,I,G){if(hq($),$<=0)return B_($);if(I!==void 0)return typeof G==="string"?B_($).fill(I,G):B_($).fill(I);return B_($)}function yD($){return hq($),B_($<0?0:bD($)|0)}function yb($,I){if(typeof I!=="string"||I==="")I="utf8";if(!J$.isEncoding(I))throw TypeError("Unknown encoding: "+I);let G=uq($,I)|0,Z=B_(G),_=Z.write($,I);if(_!==G)Z=Z.slice(0,_);return Z}function gD($){let I=$.length<0?0:bD($.length)|0,G=B_(I);for(let Z=0;Z<I;Z+=1)G[Z]=$[Z]&255;return G}function bb($){if(oI($,Uint8Array)){let I=new Uint8Array($);return wD(I.buffer,I.byteOffset,I.byteLength)}return gD($)}function wD($,I,G){if(I<0||$.byteLength<I)throw RangeError('"offset" is outside of buffer bounds');if($.byteLength<I+(G||0))throw RangeError('"length" is outside of buffer bounds');let Z;if(I===void 0&&G===void 0)Z=new Uint8Array($);else if(G===void 0)Z=new Uint8Array($,I);else Z=new Uint8Array($,I,G);return Object.setPrototypeOf(Z,J$.prototype),Z}function hb($){if(J$.isBuffer($)){let I=bD($.length)|0,G=B_(I);if(G.length===0)return G;return $.copy(G,0,0,I),G}if($.length!==void 0){if(typeof $.length!=="number"||Number.isNaN($.length))return B_(0);return gD($)}if($.type==="Buffer"&&Array.isArray($.data))return gD($.data)}function bD($){if($>=bJ)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+bJ.toString(16)+" bytes");return $|0}function uq($,I){if(J$.isBuffer($))return $.length;if(ArrayBuffer.isView($)||oI($,ArrayBuffer))return $.byteLength;if(typeof $!=="string")throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof $);let G=$.length,Z=arguments.length>2&&arguments[2]===!0;if(!Z&&G===0)return 0;let _=!1;for(;;)switch(I){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":return xD($).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G*2;case"hex":return G>>>1;case"base64":return tq($).length;default:if(_)return Z?-1:xD($).length;I=(""+I).toLowerCase(),_=!0}}function ub($,I,G){let Z=!1;if(I===void 0||I<0)I=0;if(I>this.length)return"";if(G===void 0||G>this.length)G=this.length;if(G<=0)return"";if(G>>>=0,I>>>=0,G<=I)return"";if(!$)$="utf8";while(!0)switch($){case"hex":return rb(this,I,G);case"utf8":case"utf-8":return pq(this,I,G);case"ascii":return ob(this,I,G);case"latin1":case"binary":return tb(this,I,G);case"base64":return db(this,I,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ab(this,I,G);default:if(Z)throw TypeError("Unknown encoding: "+$);$=($+"").toLowerCase(),Z=!0}}function N4($,I,G){let Z=$[I];$[I]=$[G],$[G]=Z}function nq($,I,G,Z,_){if($.length===0)return-1;if(typeof G==="string")Z=G,G=0;else if(G>2147483647)G=2147483647;else if(G<-2147483648)G=-2147483648;if(G=+G,Number.isNaN(G))G=_?0:$.length-1;if(G<0)G=$.length+G;if(G>=$.length)if(_)return-1;else G=$.length-1;else if(G<0)if(_)G=0;else return-1;if(typeof I==="string")I=J$.from(I,Z);if(J$.isBuffer(I)){if(I.length===0)return-1;return kq($,I,G,Z,_)}else if(typeof I==="number"){if(I=I&255,typeof Uint8Array.prototype.indexOf==="function")if(_)return Uint8Array.prototype.indexOf.call($,I,G);else return Uint8Array.prototype.lastIndexOf.call($,I,G);return kq($,[I],G,Z,_)}throw TypeError("val must be string, number or Buffer")}function kq($,I,G,Z,_){let J=1,Y=$.length,W=I.length;if(Z!==void 0){if(Z=String(Z).toLowerCase(),Z==="ucs2"||Z==="ucs-2"||Z==="utf16le"||Z==="utf-16le"){if($.length<2||I.length<2)return-1;J=2,Y/=2,W/=2,G/=2}}function R(E,T){if(J===1)return E[T];else return E.readUInt16BE(T*J)}let M;if(_){let E=-1;for(M=G;M<Y;M++)if(R($,M)===R(I,E===-1?0:M-E)){if(E===-1)E=M;if(M-E+1===W)return E*J}else{if(E!==-1)M-=M-E;E=-1}}else{if(G+W>Y)G=Y-W;for(M=G;M>=0;M--){let E=!0;for(let T=0;T<W;T++)if(R($,M+T)!==R(I,T)){E=!1;break}if(E)return M}}return-1}function nb($,I,G,Z){G=Number(G)||0;let _=$.length-G;if(!Z)Z=_;else if(Z=Number(Z),Z>_)Z=_;let J=I.length;if(Z>J/2)Z=J/2;let Y;for(Y=0;Y<Z;++Y){let W=parseInt(I.substr(Y*2,2),16);if(Number.isNaN(W))return Y;$[G+Y]=W}return Y}function pb($,I,G,Z){return PZ(xD(I,$.length-G),$,G,Z)}function cb($,I,G,Z){return PZ(Uh(I),$,G,Z)}function lb($,I,G,Z){return PZ(tq(I),$,G,Z)}function mb($,I,G,Z){return PZ(Ih(I,$.length-G),$,G,Z)}function db($,I,G){if(I===0&&G===$.length)return Bq($);else return Bq($.slice(I,G))}function pq($,I,G){G=Math.min($.length,G);let Z=[],_=I;while(_<G){let J=$[_],Y=null,W=J>239?4:J>223?3:J>191?2:1;if(_+W<=G){let R,M,E,T;switch(W){case 1:if(J<128)Y=J;break;case 2:if(R=$[_+1],(R&192)===128){if(T=(J&31)<<6|R&63,T>127)Y=T}break;case 3:if(R=$[_+1],M=$[_+2],(R&192)===128&&(M&192)===128){if(T=(J&15)<<12|(R&63)<<6|M&63,T>2047&&(T<55296||T>57343))Y=T}break;case 4:if(R=$[_+1],M=$[_+2],E=$[_+3],(R&192)===128&&(M&192)===128&&(E&192)===128){if(T=(J&15)<<18|(R&63)<<12|(M&63)<<6|E&63,T>65535&&T<1114112)Y=T}}}if(Y===null)Y=65533,W=1;else if(Y>65535)Y-=65536,Z.push(Y>>>10&1023|55296),Y=56320|Y&1023;Z.push(Y),_+=W}return ib(Z)}function ib($){let I=$.length;if(I<=gq)return String.fromCharCode.apply(String,$);let G="",Z=0;while(Z<I)G+=String.fromCharCode.apply(String,$.slice(Z,Z+=gq));return G}function ob($,I,G){let Z="";G=Math.min($.length,G);for(let _=I;_<G;++_)Z+=String.fromCharCode($[_]&127);return Z}function tb($,I,G){let Z="";G=Math.min($.length,G);for(let _=I;_<G;++_)Z+=String.fromCharCode($[_]);return Z}function rb($,I,G){let Z=$.length;if(!I||I<0)I=0;if(!G||G<0||G>Z)G=Z;let _="";for(let J=I;J<G;++J)_+=_h[$[J]];return _}function ab($,I,G){let Z=$.slice(I,G),_="";for(let J=0;J<Z.length-1;J+=2)_+=String.fromCharCode(Z[J]+Z[J+1]*256);return _}function VU($,I,G){if($%1!==0||$<0)throw RangeError("offset is not uint");if($+I>G)throw RangeError("Trying to access beyond buffer length")}function Q6($,I,G,Z,_,J){if(!J$.isBuffer($))throw TypeError('"buffer" argument must be a Buffer instance');if(I>_||I<J)throw RangeError('"value" argument is out of bounds');if(G+Z>$.length)throw RangeError("Index out of range")}function cq($,I,G,Z,_){oq(I,Z,_,$,G,7);let J=Number(I&BigInt(4294967295));$[G++]=J,J=J>>8,$[G++]=J,J=J>>8,$[G++]=J,J=J>>8,$[G++]=J;let Y=Number(I>>BigInt(32)&BigInt(4294967295));return $[G++]=Y,Y=Y>>8,$[G++]=Y,Y=Y>>8,$[G++]=Y,Y=Y>>8,$[G++]=Y,G}function lq($,I,G,Z,_){oq(I,Z,_,$,G,7);let J=Number(I&BigInt(4294967295));$[G+7]=J,J=J>>8,$[G+6]=J,J=J>>8,$[G+5]=J,J=J>>8,$[G+4]=J;let Y=Number(I>>BigInt(32)&BigInt(4294967295));return $[G+3]=Y,Y=Y>>8,$[G+2]=Y,Y=Y>>8,$[G+1]=Y,Y=Y>>8,$[G]=Y,G+8}function mq($,I,G,Z,_,J){if(G+Z>$.length)throw RangeError("Index out of range");if(G<0)throw RangeError("Index out of range")}function dq($,I,G,Z,_){if(I=+I,G=G>>>0,!_)mq($,I,G,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000);return xq($,I,G,Z,23,4),G+4}function iq($,I,G,Z,_){if(I=+I,G=G>>>0,!_)mq($,I,G,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);return xq($,I,G,Z,52,8),G+8}function wq($){let I="",G=$.length,Z=$[0]==="-"?1:0;for(;G>=Z+4;G-=3)I=`_${$.slice(G-3,G)}${I}`;return`${$.slice(0,G)}${I}`}function sb($,I,G){if(GG(I,"offset"),$[I]===void 0||$[I+G]===void 0)hJ(I,$.length-(G+1))}function oq($,I,G,Z,_,J){if($>G||$<I){let Y=typeof I==="bigint"?"n":"",W;if(J>3)if(I===0||I===BigInt(0))W=`>= 0${Y} and < 2${Y} ** ${(J+1)*8}${Y}`;else W=`>= -(2${Y} ** ${(J+1)*8-1}${Y}) and < 2 ** ${(J+1)*8-1}${Y}`;else W=`>= ${I}${Y} and <= ${G}${Y}`;throw new kD("value",W,$)}sb(Z,_,J)}function GG($,I){if(typeof $!=="number")throw new xb(I,"number",$)}function hJ($,I,G){if(Math.floor($)!==$)throw GG($,G),new kD(G||"offset","an integer",$);if(I<0)throw new wb;throw new kD(G||"offset",`>= ${G?1:0} and <= ${I}`,$)}function $h($){if($=$.split("=")[0],$=$.trim().replace(eb,""),$.length<2)return"";while($.length%4!==0)$=$+"=";return $}function xD($,I){I=I||1/0;let G,Z=$.length,_=null,J=[];for(let Y=0;Y<Z;++Y){if(G=$.charCodeAt(Y),G>55295&&G<57344){if(!_){if(G>56319){if((I-=3)>-1)J.push(239,191,189);continue}else if(Y+1===Z){if((I-=3)>-1)J.push(239,191,189);continue}_=G;continue}if(G<56320){if((I-=3)>-1)J.push(239,191,189);_=G;continue}G=(_-55296<<10|G-56320)+65536}else if(_){if((I-=3)>-1)J.push(239,191,189)}if(_=null,G<128){if((I-=1)<0)break;J.push(G)}else if(G<2048){if((I-=2)<0)break;J.push(G>>6|192,G&63|128)}else if(G<65536){if((I-=3)<0)break;J.push(G>>12|224,G>>6&63|128,G&63|128)}else if(G<1114112){if((I-=4)<0)break;J.push(G>>18|240,G>>12&63|128,G>>6&63|128,G&63|128)}else throw Error("Invalid code point")}return J}function Uh($){let I=[];for(let G=0;G<$.length;++G)I.push($.charCodeAt(G)&255);return I}function Ih($,I){let G,Z,_,J=[];for(let Y=0;Y<$.length;++Y){if((I-=2)<0)break;G=$.charCodeAt(Y),Z=G>>8,_=G%256,J.push(_),J.push(Z)}return J}function tq($){return vb($h($))}function PZ($,I,G,Z){let _;for(_=0;_<Z;++_){if(_+G>=I.length||_>=$.length)break;I[_+G]=$[_]}return _}function oI($,I){return $ instanceof I||$!=null&&$.constructor!=null&&$.constructor.name!=null&&$.constructor.name===I.name}function S2($){return typeof BigInt>"u"?Xh:$}function Xh(){throw Error("BigInt not supported")}function hD($){return()=>{throw Error($+" is not implemented for node:buffer browser polyfill")}}var iI,s6,jD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",q4,Nq,jq,fq=50,bJ=2147483647,yq=536870888,Nb,Bb,jb,kb,gb,wb,xb,kD,gq=4096,eb,_h,Gh,Yh,Jh=($)=>{for(let I of $)if(I.charCodeAt(0)>127)return!1;return!0},Qh,zh;var u1=WI(()=>{iI=[],s6=[];for(q4=0,Nq=jD.length;q4<Nq;++q4)iI[q4]=jD[q4],s6[jD.charCodeAt(q4)]=q4;s6[45]=62;s6[95]=63;jq=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):null,Nb=globalThis.btoa,Bb=globalThis.atob,jb=globalThis.File,kb=globalThis.Blob,gb={MAX_LENGTH:bJ,MAX_STRING_LENGTH:yq};wb=fD("ERR_BUFFER_OUT_OF_BOUNDS",function($){if($)return`${$} is outside of buffer bounds`;return"Attempt to access memory outside buffer bounds"},RangeError),xb=fD("ERR_INVALID_ARG_TYPE",function($,I){return`The "${$}" argument must be of type number. Received type ${typeof I}`},TypeError),kD=fD("ERR_OUT_OF_RANGE",function($,I,G){let Z=`The value of "${$}" is out of range.`,_=G;if(Number.isInteger(G)&&Math.abs(G)>4294967296)_=wq(String(G));else if(typeof G==="bigint"){if(_=String(G),G>BigInt(2)**BigInt(32)||G<-(BigInt(2)**BigInt(32)))_=wq(_);_+="n"}return Z+=` It must be ${I}. Received ${_}`,Z},RangeError);Object.defineProperty(J$.prototype,"parent",{enumerable:!0,get:function(){if(!J$.isBuffer(this))return;return this.buffer}});Object.defineProperty(J$.prototype,"offset",{enumerable:!0,get:function(){if(!J$.isBuffer(this))return;return this.byteOffset}});J$.poolSize=8192;J$.from=function($,I,G){return bq($,I,G)};Object.setPrototypeOf(J$.prototype,Uint8Array.prototype);Object.setPrototypeOf(J$,Uint8Array);J$.alloc=function($,I,G){return fb($,I,G)};J$.allocUnsafe=function($){return yD($)};J$.allocUnsafeSlow=function($){return yD($)};J$.isBuffer=function($){return $!=null&&$._isBuffer===!0&&$!==J$.prototype};J$.compare=function($,I){if(oI($,Uint8Array))$=J$.from($,$.offset,$.byteLength);if(oI(I,Uint8Array))I=J$.from(I,I.offset,I.byteLength);if(!J$.isBuffer($)||!J$.isBuffer(I))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if($===I)return 0;let G=$.length,Z=I.length;for(let _=0,J=Math.min(G,Z);_<J;++_)if($[_]!==I[_]){G=$[_],Z=I[_];break}if(G<Z)return-1;if(Z<G)return 1;return 0};J$.isEncoding=function($){switch(String($).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};J$.concat=function($,I){if(!Array.isArray($))throw TypeError('"list" argument must be an Array of Buffers');if($.length===0)return J$.alloc(0);let G;if(I===void 0){I=0;for(G=0;G<$.length;++G)I+=$[G].length}let Z=J$.allocUnsafe(I),_=0;for(G=0;G<$.length;++G){let J=$[G];if(oI(J,Uint8Array))if(_+J.length>Z.length){if(!J$.isBuffer(J))J=J$.from(J);J.copy(Z,_)}else Uint8Array.prototype.set.call(Z,J,_);else if(!J$.isBuffer(J))throw TypeError('"list" argument must be an Array of Buffers');else J.copy(Z,_);_+=J.length}return Z};J$.byteLength=uq;J$.prototype._isBuffer=!0;J$.prototype.swap16=function(){let $=this.length;if($%2!==0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let I=0;I<$;I+=2)N4(this,I,I+1);return this};J$.prototype.swap32=function(){let $=this.length;if($%4!==0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let I=0;I<$;I+=4)N4(this,I,I+3),N4(this,I+1,I+2);return this};J$.prototype.swap64=function(){let $=this.length;if($%8!==0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let I=0;I<$;I+=8)N4(this,I,I+7),N4(this,I+1,I+6),N4(this,I+2,I+5),N4(this,I+3,I+4);return this};J$.prototype.toString=function(){let $=this.length;if($===0)return"";if(arguments.length===0)return pq(this,0,$);return ub.apply(this,arguments)};J$.prototype.toLocaleString=J$.prototype.toString;J$.prototype.equals=function($){if(!J$.isBuffer($))throw TypeError("Argument must be a Buffer");if(this===$)return!0;return J$.compare(this,$)===0};J$.prototype.inspect=function(){let $="",I=fq;if($=this.toString("hex",0,I).replace(/(.{2})/g,"$1 ").trim(),this.length>I)$+=" ... ";return"<Buffer "+$+">"};if(jq)J$.prototype[jq]=J$.prototype.inspect;J$.prototype.compare=function($,I,G,Z,_){if(oI($,Uint8Array))$=J$.from($,$.offset,$.byteLength);if(!J$.isBuffer($))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof $);if(I===void 0)I=0;if(G===void 0)G=$?$.length:0;if(Z===void 0)Z=0;if(_===void 0)_=this.length;if(I<0||G>$.length||Z<0||_>this.length)throw RangeError("out of range index");if(Z>=_&&I>=G)return 0;if(Z>=_)return-1;if(I>=G)return 1;if(I>>>=0,G>>>=0,Z>>>=0,_>>>=0,this===$)return 0;let J=_-Z,Y=G-I,W=Math.min(J,Y),R=this.slice(Z,_),M=$.slice(I,G);for(let E=0;E<W;++E)if(R[E]!==M[E]){J=R[E],Y=M[E];break}if(J<Y)return-1;if(Y<J)return 1;return 0};J$.prototype.includes=function($,I,G){return this.indexOf($,I,G)!==-1};J$.prototype.indexOf=function($,I,G){return nq(this,$,I,G,!0)};J$.prototype.lastIndexOf=function($,I,G){return nq(this,$,I,G,!1)};J$.prototype.write=function($,I,G,Z){if(I===void 0)Z="utf8",G=this.length,I=0;else if(G===void 0&&typeof I==="string")Z=I,G=this.length,I=0;else if(isFinite(I))if(I=I>>>0,isFinite(G)){if(G=G>>>0,Z===void 0)Z="utf8"}else Z=G,G=void 0;else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let _=this.length-I;if(G===void 0||G>_)G=_;if($.length>0&&(G<0||I<0)||I>this.length)throw RangeError("Attempt to write outside buffer bounds");if(!Z)Z="utf8";let J=!1;for(;;)switch(Z){case"hex":return nb(this,$,I,G);case"utf8":case"utf-8":return pb(this,$,I,G);case"ascii":case"latin1":case"binary":return cb(this,$,I,G);case"base64":return lb(this,$,I,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mb(this,$,I,G);default:if(J)throw TypeError("Unknown encoding: "+Z);Z=(""+Z).toLowerCase(),J=!0}};J$.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};J$.prototype.slice=function($,I){let G=this.length;if($=~~$,I=I===void 0?G:~~I,$<0){if($+=G,$<0)$=0}else if($>G)$=G;if(I<0){if(I+=G,I<0)I=0}else if(I>G)I=G;if(I<$)I=$;let Z=this.subarray($,I);return Object.setPrototypeOf(Z,J$.prototype),Z};J$.prototype.readUintLE=J$.prototype.readUIntLE=function($,I,G){if($=$>>>0,I=I>>>0,!G)VU($,I,this.length);let Z=this[$],_=1,J=0;while(++J<I&&(_*=256))Z+=this[$+J]*_;return Z};J$.prototype.readUintBE=J$.prototype.readUIntBE=function($,I,G){if($=$>>>0,I=I>>>0,!G)VU($,I,this.length);let Z=this[$+--I],_=1;while(I>0&&(_*=256))Z+=this[$+--I]*_;return Z};J$.prototype.readUint8=J$.prototype.readUInt8=function($,I){if($=$>>>0,!I)VU($,1,this.length);return this[$]};J$.prototype.readUint16LE=J$.prototype.readUInt16LE=function($,I){if($=$>>>0,!I)VU($,2,this.length);return this[$]|this[$+1]<<8};J$.prototype.readUint16BE=J$.prototype.readUInt16BE=function($,I){if($=$>>>0,!I)VU($,2,this.length);return this[$]<<8|this[$+1]};J$.prototype.readUint32LE=J$.prototype.readUInt32LE=function($,I){if($=$>>>0,!I)VU($,4,this.length);return(this[$]|this[$+1]<<8|this[$+2]<<16)+this[$+3]*16777216};J$.prototype.readUint32BE=J$.prototype.readUInt32BE=function($,I){if($=$>>>0,!I)VU($,4,this.length);return this[$]*16777216+(this[$+1]<<16|this[$+2]<<8|this[$+3])};J$.prototype.readBigUInt64LE=S2(function($){$=$>>>0,GG($,"offset");let I=this[$],G=this[$+7];if(I===void 0||G===void 0)hJ($,this.length-8);let Z=I+this[++$]*256+this[++$]*65536+this[++$]*16777216,_=this[++$]+this[++$]*256+this[++$]*65536+G*16777216;return BigInt(Z)+(BigInt(_)<<BigInt(32))});J$.prototype.readBigUInt64BE=S2(function($){$=$>>>0,GG($,"offset");let I=this[$],G=this[$+7];if(I===void 0||G===void 0)hJ($,this.length-8);let Z=I*16777216+this[++$]*65536+this[++$]*256+this[++$],_=this[++$]*16777216+this[++$]*65536+this[++$]*256+G;return(BigInt(Z)<<BigInt(32))+BigInt(_)});J$.prototype.readIntLE=function($,I,G){if($=$>>>0,I=I>>>0,!G)VU($,I,this.length);let Z=this[$],_=1,J=0;while(++J<I&&(_*=256))Z+=this[$+J]*_;if(_*=128,Z>=_)Z-=Math.pow(2,8*I);return Z};J$.prototype.readIntBE=function($,I,G){if($=$>>>0,I=I>>>0,!G)VU($,I,this.length);let Z=I,_=1,J=this[$+--Z];while(Z>0&&(_*=256))J+=this[$+--Z]*_;if(_*=128,J>=_)J-=Math.pow(2,8*I);return J};J$.prototype.readInt8=function($,I){if($=$>>>0,!I)VU($,1,this.length);if(!(this[$]&128))return this[$];return(255-this[$]+1)*-1};J$.prototype.readInt16LE=function($,I){if($=$>>>0,!I)VU($,2,this.length);let G=this[$]|this[$+1]<<8;return G&32768?G|4294901760:G};J$.prototype.readInt16BE=function($,I){if($=$>>>0,!I)VU($,2,this.length);let G=this[$+1]|this[$]<<8;return G&32768?G|4294901760:G};J$.prototype.readInt32LE=function($,I){if($=$>>>0,!I)VU($,4,this.length);return this[$]|this[$+1]<<8|this[$+2]<<16|this[$+3]<<24};J$.prototype.readInt32BE=function($,I){if($=$>>>0,!I)VU($,4,this.length);return this[$]<<24|this[$+1]<<16|this[$+2]<<8|this[$+3]};J$.prototype.readBigInt64LE=S2(function($){$=$>>>0,GG($,"offset");let I=this[$],G=this[$+7];if(I===void 0||G===void 0)hJ($,this.length-8);let Z=this[$+4]+this[$+5]*256+this[$+6]*65536+(G<<24);return(BigInt(Z)<<BigInt(32))+BigInt(I+this[++$]*256+this[++$]*65536+this[++$]*16777216)});J$.prototype.readBigInt64BE=S2(function($){$=$>>>0,GG($,"offset");let I=this[$],G=this[$+7];if(I===void 0||G===void 0)hJ($,this.length-8);let Z=(I<<24)+this[++$]*65536+this[++$]*256+this[++$];return(BigInt(Z)<<BigInt(32))+BigInt(this[++$]*16777216+this[++$]*65536+this[++$]*256+G)});J$.prototype.readFloatLE=function($,I){if($=$>>>0,!I)VU($,4,this.length);return RZ(this,$,!0,23,4)};J$.prototype.readFloatBE=function($,I){if($=$>>>0,!I)VU($,4,this.length);return RZ(this,$,!1,23,4)};J$.prototype.readDoubleLE=function($,I){if($=$>>>0,!I)VU($,8,this.length);return RZ(this,$,!0,52,8)};J$.prototype.readDoubleBE=function($,I){if($=$>>>0,!I)VU($,8,this.length);return RZ(this,$,!1,52,8)};J$.prototype.writeUintLE=J$.prototype.writeUIntLE=function($,I,G,Z){if($=+$,I=I>>>0,G=G>>>0,!Z){let Y=Math.pow(2,8*G)-1;Q6(this,$,I,G,Y,0)}let _=1,J=0;this[I]=$&255;while(++J<G&&(_*=256))this[I+J]=$/_&255;return I+G};J$.prototype.writeUintBE=J$.prototype.writeUIntBE=function($,I,G,Z){if($=+$,I=I>>>0,G=G>>>0,!Z){let Y=Math.pow(2,8*G)-1;Q6(this,$,I,G,Y,0)}let _=G-1,J=1;this[I+_]=$&255;while(--_>=0&&(J*=256))this[I+_]=$/J&255;return I+G};J$.prototype.writeUint8=J$.prototype.writeUInt8=function($,I,G){if($=+$,I=I>>>0,!G)Q6(this,$,I,1,255,0);return this[I]=$&255,I+1};J$.prototype.writeUint16LE=J$.prototype.writeUInt16LE=function($,I,G){if($=+$,I=I>>>0,!G)Q6(this,$,I,2,65535,0);return this[I]=$&255,this[I+1]=$>>>8,I+2};J$.prototype.writeUint16BE=J$.prototype.writeUInt16BE=function($,I,G){if($=+$,I=I>>>0,!G)Q6(this,$,I,2,65535,0);return this[I]=$>>>8,this[I+1]=$&255,I+2};J$.prototype.writeUint32LE=J$.prototype.writeUInt32LE=function($,I,G){if($=+$,I=I>>>0,!G)Q6(this,$,I,4,4294967295,0);return this[I+3]=$>>>24,this[I+2]=$>>>16,this[I+1]=$>>>8,this[I]=$&255,I+4};J$.prototype.writeUint32BE=J$.prototype.writeUInt32BE=function($,I,G){if($=+$,I=I>>>0,!G)Q6(this,$,I,4,4294967295,0);return this[I]=$>>>24,this[I+1]=$>>>16,this[I+2]=$>>>8,this[I+3]=$&255,I+4};J$.prototype.writeBigUInt64LE=S2(function($,I=0){return cq(this,$,I,BigInt(0),BigInt("0xffffffffffffffff"))});J$.prototype.writeBigUInt64BE=S2(function($,I=0){return lq(this,$,I,BigInt(0),BigInt("0xffffffffffffffff"))});J$.prototype.writeIntLE=function($,I,G,Z){if($=+$,I=I>>>0,!Z){let W=Math.pow(2,8*G-1);Q6(this,$,I,G,W-1,-W)}let _=0,J=1,Y=0;this[I]=$&255;while(++_<G&&(J*=256)){if($<0&&Y===0&&this[I+_-1]!==0)Y=1;this[I+_]=($/J>>0)-Y&255}return I+G};J$.prototype.writeIntBE=function($,I,G,Z){if($=+$,I=I>>>0,!Z){let W=Math.pow(2,8*G-1);Q6(this,$,I,G,W-1,-W)}let _=G-1,J=1,Y=0;this[I+_]=$&255;while(--_>=0&&(J*=256)){if($<0&&Y===0&&this[I+_+1]!==0)Y=1;this[I+_]=($/J>>0)-Y&255}return I+G};J$.prototype.writeInt8=function($,I,G){if($=+$,I=I>>>0,!G)Q6(this,$,I,1,127,-128);if($<0)$=255+$+1;return this[I]=$&255,I+1};J$.prototype.writeInt16LE=function($,I,G){if($=+$,I=I>>>0,!G)Q6(this,$,I,2,32767,-32768);return this[I]=$&255,this[I+1]=$>>>8,I+2};J$.prototype.writeInt16BE=function($,I,G){if($=+$,I=I>>>0,!G)Q6(this,$,I,2,32767,-32768);return this[I]=$>>>8,this[I+1]=$&255,I+2};J$.prototype.writeInt32LE=function($,I,G){if($=+$,I=I>>>0,!G)Q6(this,$,I,4,2147483647,-2147483648);return this[I]=$&255,this[I+1]=$>>>8,this[I+2]=$>>>16,this[I+3]=$>>>24,I+4};J$.prototype.writeInt32BE=function($,I,G){if($=+$,I=I>>>0,!G)Q6(this,$,I,4,2147483647,-2147483648);if($<0)$=4294967295+$+1;return this[I]=$>>>24,this[I+1]=$>>>16,this[I+2]=$>>>8,this[I+3]=$&255,I+4};J$.prototype.writeBigInt64LE=S2(function($,I=0){return cq(this,$,I,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});J$.prototype.writeBigInt64BE=S2(function($,I=0){return lq(this,$,I,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});J$.prototype.writeFloatLE=function($,I,G){return dq(this,$,I,!0,G)};J$.prototype.writeFloatBE=function($,I,G){return dq(this,$,I,!1,G)};J$.prototype.writeDoubleLE=function($,I,G){return iq(this,$,I,!0,G)};J$.prototype.writeDoubleBE=function($,I,G){return iq(this,$,I,!1,G)};J$.prototype.copy=function($,I,G,Z){if(!J$.isBuffer($))throw TypeError("argument should be a Buffer");if(!G)G=0;if(!Z&&Z!==0)Z=this.length;if(I>=$.length)I=$.length;if(!I)I=0;if(Z>0&&Z<G)Z=G;if(Z===G)return 0;if($.length===0||this.length===0)return 0;if(I<0)throw RangeError("targetStart out of bounds");if(G<0||G>=this.length)throw RangeError("Index out of range");if(Z<0)throw RangeError("sourceEnd out of bounds");if(Z>this.length)Z=this.length;if($.length-I<Z-G)Z=$.length-I+G;let _=Z-G;if(this===$&&typeof Uint8Array.prototype.copyWithin==="function")this.copyWithin(I,G,Z);else Uint8Array.prototype.set.call($,this.subarray(G,Z),I);return _};J$.prototype.fill=function($,I,G,Z){if(typeof $==="string"){if(typeof I==="string")Z=I,I=0,G=this.length;else if(typeof G==="string")Z=G,G=this.length;if(Z!==void 0&&typeof Z!=="string")throw TypeError("encoding must be a string");if(typeof Z==="string"&&!J$.isEncoding(Z))throw TypeError("Unknown encoding: "+Z);if($.length===1){let J=$.charCodeAt(0);if(Z==="utf8"&&J<128||Z==="latin1")$=J}}else if(typeof $==="number")$=$&255;else if(typeof $==="boolean")$=Number($);if(I<0||this.length<I||this.length<G)throw RangeError("Out of range index");if(G<=I)return this;if(I=I>>>0,G=G===void 0?this.length:G>>>0,!$)$=0;let _;if(typeof $==="number")for(_=I;_<G;++_)this[_]=$;else{let J=J$.isBuffer($)?$:J$.from($,Z),Y=J.length;if(Y===0)throw TypeError('The value "'+$+'" is invalid for argument "value"');for(_=0;_<G-I;++_)this[_+I]=J[_%Y]}return this};eb=/[^+/0-9A-Za-z-_]/g;_h=function(){let $=Array(256);for(let I=0;I<16;++I){let G=I*16;for(let Z=0;Z<16;++Z)$[G+Z]="0123456789abcdef"[I]+"0123456789abcdef"[Z]}return $}();Gh=hD("resolveObjectURL"),Yh=hD("isUtf8"),Qh=hD("transcode"),zh=J$});var v2={};LU(v2,{types:()=>Mh,promisify:()=>UN,log:()=>sq,isUndefined:()=>YG,isSymbol:()=>Eh,isString:()=>NZ,isRegExp:()=>VZ,isPrimitive:()=>Rh,isObject:()=>JG,isNumber:()=>aq,isNullOrUndefined:()=>Ah,isNull:()=>qZ,isFunction:()=>vZ,isError:()=>SZ,isDate:()=>cD,isBuffer:()=>Ph,isBoolean:()=>mD,isArray:()=>rq,inspect:()=>B4,inherits:()=>eq,format:()=>lD,deprecate:()=>Oh,default:()=>vh,debuglog:()=>Lh,callbackifyOnRejected:()=>oD,callbackify:()=>IN,_extend:()=>iD,TextEncoder:()=>_N,TextDecoder:()=>XN});function lD($,...I){if(!NZ($)){var G=[$];for(var Z=0;Z<I.length;Z++)G.push(B4(I[Z]));return G.join(" ")}var Z=0,_=I.length,J=String($).replace(Zh,function(W){if(W==="%%")return"%";if(Z>=_)return W;switch(W){case"%s":return String(I[Z++]);case"%d":return Number(I[Z++]);case"%j":try{return JSON.stringify(I[Z++])}catch(R){return"[Circular]"}default:return W}});for(var Y=I[Z];Z<_;Y=I[++Z])if(qZ(Y)||!JG(Y))J+=" "+Y;else J+=" "+B4(Y);return J}function Oh($,I){if(typeof process>"u"||process?.noDeprecation===!0)return $;var G=!1;function Z(..._){if(!G){if(process.throwDeprecation)throw Error(I);else if(process.traceDeprecation)console.trace(I);else console.error(I);G=!0}return $.apply(this,..._)}return Z}function Kh($,I){var G=B4.styles[I];if(G)return"\x1B["+B4.colors[G][0]+"m"+$+"\x1B["+B4.colors[G][1]+"m";else return $}function Dh($,I){return $}function Wh($){var I={};return $.forEach(function(G,Z){I[G]=!0}),I}function CZ($,I,G){if($.customInspect&&I&&vZ(I.inspect)&&I.inspect!==B4&&!(I.constructor&&I.constructor.prototype===I)){var Z=I.inspect(G,$);if(!NZ(Z))Z=CZ($,Z,G);return Z}var _=Hh($,I);if(_)return _;var J=Object.keys(I),Y=Wh(J);if($.showHidden)J=Object.getOwnPropertyNames(I);if(SZ(I)&&(J.indexOf("message")>=0||J.indexOf("description")>=0))return uD(I);if(J.length===0){if(vZ(I)){var W=I.name?": "+I.name:"";return $.stylize("[Function"+W+"]","special")}if(VZ(I))return $.stylize(RegExp.prototype.toString.call(I),"regexp");if(cD(I))return $.stylize(Date.prototype.toString.call(I),"date");if(SZ(I))return uD(I)}var R="",M=!1,E=["{","}"];if(rq(I))M=!0,E=["[","]"];if(vZ(I)){var T=I.name?": "+I.name:"";R=" [Function"+T+"]"}if(VZ(I))R=" "+RegExp.prototype.toString.call(I);if(cD(I))R=" "+Date.prototype.toUTCString.call(I);if(SZ(I))R=" "+uD(I);if(J.length===0&&(!M||I.length==0))return E[0]+R+E[1];if(G<0)if(VZ(I))return $.stylize(RegExp.prototype.toString.call(I),"regexp");else return $.stylize("[Object]","special");$.seen.push(I);var S;if(M)S=Fh($,I,G,Y,J);else S=J.map(function(N){return pD($,I,G,Y,N,M)});return $.seen.pop(),Th(S,R,E)}function Hh($,I){if(YG(I))return $.stylize("undefined","undefined");if(NZ(I)){var G="'"+JSON.stringify(I).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return $.stylize(G,"string")}if(aq(I))return $.stylize(""+I,"number");if(mD(I))return $.stylize(""+I,"boolean");if(qZ(I))return $.stylize("null","null")}function uD($){return"["+Error.prototype.toString.call($)+"]"}function Fh($,I,G,Z,_){var J=[];for(var Y=0,W=I.length;Y<W;++Y)if($N(I,String(Y)))J.push(pD($,I,G,Z,String(Y),!0));else J.push("");return _.forEach(function(R){if(!R.match(/^\d+$/))J.push(pD($,I,G,Z,R,!0))}),J}function pD($,I,G,Z,_,J){var Y,W,R;if(R=Object.getOwnPropertyDescriptor(I,_)||{value:I[_]},R.get)if(R.set)W=$.stylize("[Getter/Setter]","special");else W=$.stylize("[Getter]","special");else if(R.set)W=$.stylize("[Setter]","special");if(!$N(Z,_))Y="["+_+"]";if(!W)if($.seen.indexOf(R.value)<0){if(qZ(G))W=CZ($,R.value,null);else W=CZ($,R.value,G-1);if(W.indexOf(`
|
|
231
|
-
`)>-1)if(J)W=W.split(`
|
|
232
|
-
`).map(function(M){return" "+M}).join(`
|
|
233
|
-
`).slice(2);else W=`
|
|
234
|
-
`+W.split(`
|
|
235
|
-
`).map(function(M){return" "+M}).join(`
|
|
236
|
-
`)}else W=$.stylize("[Circular]","special");if(YG(Y)){if(J&&_.match(/^\d+$/))return W;if(Y=JSON.stringify(""+_),Y.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/))Y=Y.slice(1,-1),Y=$.stylize(Y,"name");else Y=Y.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Y=$.stylize(Y,"string")}return Y+": "+W}function Th($,I,G){var Z=0,_=$.reduce(function(J,Y){if(Z++,Y.indexOf(`
|
|
237
|
-
`)>=0)Z++;return J+Y.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(_>60)return G[0]+(I===""?"":I+`
|
|
238
|
-
`)+" "+$.join(`,
|
|
239
|
-
`)+" "+G[1];return G[0]+I+" "+$.join(", ")+" "+G[1]}function rq($){return Array.isArray($)}function mD($){return typeof $==="boolean"}function qZ($){return $===null}function Ah($){return $==null}function aq($){return typeof $==="number"}function NZ($){return typeof $==="string"}function Eh($){return typeof $==="symbol"}function YG($){return $===void 0}function VZ($){return JG($)&&dD($)==="[object RegExp]"}function JG($){return typeof $==="object"&&$!==null}function cD($){return JG($)&&dD($)==="[object Date]"}function SZ($){return JG($)&&(dD($)==="[object Error]"||$ instanceof Error)}function vZ($){return typeof $==="function"}function Rh($){return $===null||typeof $==="boolean"||typeof $==="number"||typeof $==="string"||typeof $==="symbol"||typeof $>"u"}function Ph($){return $ instanceof Buffer}function dD($){return Object.prototype.toString.call($)}function nD($){return $<10?"0"+$.toString(10):$.toString(10)}function Sh(){var $=new Date,I=[nD($.getHours()),nD($.getMinutes()),nD($.getSeconds())].join(":");return[$.getDate(),Vh[$.getMonth()],I].join(" ")}function sq(...$){console.log("%s - %s",Sh(),lD.apply(null,$))}function eq($,I){if(I)$.super_=I,$.prototype=Object.create(I.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}})}function iD($,I){if(!I||!JG(I))return $;var G=Object.keys(I),Z=G.length;while(Z--)$[G[Z]]=I[G[Z]];return $}function $N($,I){return Object.prototype.hasOwnProperty.call($,I)}function oD($,I){if(!$){var G=Error("Promise was rejected with a falsy value");G.reason=$,$=G}return I($)}function IN($){if(typeof $!=="function")throw TypeError('The "original" argument must be of type Function');function I(...G){var Z=G.pop();if(typeof Z!=="function")throw TypeError("The last argument must be of type Function");var _=this,J=function(...Y){return Z.apply(_,...Y)};$.apply(this,G).then(function(Y){process.nextTick(J.bind(null,null,Y))},function(Y){process.nextTick(oD.bind(null,Y,J))})}return Object.setPrototypeOf(I,Object.getPrototypeOf($)),Object.defineProperties(I,Object.getOwnPropertyDescriptors($)),I}var Zh,Lh,B4,Mh=()=>{},Vh,UN,_N,XN,vh;var C2=WI(()=>{Zh=/%[sdj%]/g;Lh=(($={},I={},G)=>((G=typeof process<"u"&&!1)&&(G=G.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase()),I=new RegExp("^"+G+"$","i"),(Z)=>{if(Z=Z.toUpperCase(),!$[Z])if(I.test(Z))$[Z]=function(..._){console.error("%s: %s",Z,pid,lD.apply(null,..._))};else $[Z]=function(){};return $[Z]}))(),B4=(($)=>($.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},$.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},$.custom=Symbol.for("nodejs.util.inspect.custom"),$))(function($,I,...G){var Z={seen:[],stylize:Dh};if(G.length>=1)Z.depth=G[0];if(G.length>=2)Z.colors=G[1];if(mD(I))Z.showHidden=I;else if(I)iD(Z,I);if(YG(Z.showHidden))Z.showHidden=!1;if(YG(Z.depth))Z.depth=2;if(YG(Z.colors))Z.colors=!1;if(Z.colors)Z.stylize=Kh;return CZ(Z,$,Z.depth)});Vh=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];UN=(($)=>($.custom=Symbol.for("nodejs.util.promisify.custom"),$))(function($){if(typeof $!=="function")throw TypeError('The "original" argument must be of type Function');if(kCustomPromisifiedSymbol&&$[kCustomPromisifiedSymbol]){var I=$[kCustomPromisifiedSymbol];if(typeof I!=="function")throw TypeError('The "nodejs.util.promisify.custom" argument must be of type Function');return Object.defineProperty(I,kCustomPromisifiedSymbol,{value:I,enumerable:!1,writable:!1,configurable:!0}),I}function I(...G){var Z,_,J=new Promise(function(Y,W){Z=Y,_=W});G.push(function(Y,W){if(Y)_(Y);else Z(W)});try{$.apply(this,G)}catch(Y){_(Y)}return J}if(Object.setPrototypeOf(I,Object.getPrototypeOf($)),kCustomPromisifiedSymbol)Object.defineProperty(I,kCustomPromisifiedSymbol,{value:I,enumerable:!1,writable:!1,configurable:!0});return Object.defineProperties(I,Object.getOwnPropertyDescriptors($))});({TextEncoder:_N,TextDecoder:XN}=globalThis),vh={TextEncoder:_N,TextDecoder:XN,promisify:UN,log:sq,inherits:eq,_extend:iD,callbackifyOnRejected:oD,callbackify:IN}});var zG={};LU(zG,{setMaxListeners:()=>WN,once:()=>KN,listenerCount:()=>HN,init:()=>q2,getMaxListeners:()=>TN,getEventListeners:()=>DN,default:()=>xh,captureRejectionSymbol:()=>zN,addAbortListener:()=>MN,EventEmitter:()=>q2});function ZN($,I){var{_events:G}=$;if(I[0]??=Error("Unhandled error."),!G)throw I[0];var Z=G[QN];if(Z)for(var _ of YN.call(Z))_.apply($,I);var J=G.error;if(!J)throw I[0];for(var _ of YN.call(J))_.apply($,I);return!0}function Nh($,I,G,Z){I.then(void 0,function(_){queueMicrotask(()=>Bh($,_,G,Z))})}function Bh($,I,G,Z){if(typeof $[GN]==="function")$[GN](I,G,...Z);else try{$[j4]=!1,$.emit("error",I)}finally{$[j4]=!0}}function ON($,I,G){G.warned=!0;let Z=Error(`Possible EventEmitter memory leak detected. ${G.length} ${String(I)} listeners added to [${$.constructor.name}]. Use emitter.setMaxListeners() to increase limit`);Z.name="MaxListenersExceededWarning",Z.emitter=$,Z.type=I,Z.count=G.length,console.warn(Z)}function LN($,I,...G){this.removeListener($,I),I.apply(this,G)}function KN($,I,G){var Z=G?.signal;if(FN(Z,"options.signal"),Z?.aborted)throw new tD(void 0,{cause:Z?.reason});let{resolve:_,reject:J,promise:Y}=$newPromiseCapability(Promise),W=(E)=>{if($.removeListener(I,R),Z!=null)BZ(Z,"abort",M);J(E)},R=(...E)=>{if(typeof $.removeListener==="function")$.removeListener("error",W);if(Z!=null)BZ(Z,"abort",M);_(E)};if(JN($,I,R,{once:!0}),I!=="error"&&typeof $.once==="function")$.once("error",W);function M(){BZ($,I,R),BZ($,"error",W),J(new tD(void 0,{cause:Z?.reason}))}if(Z!=null)JN(Z,"abort",M,{once:!0});return Y}function DN($,I){return $.listeners(I)}function WN($,...I){aD($,"setMaxListeners",0);var G;if(I&&(G=I.length))for(let Z=0;Z<G;Z++)I[Z].setMaxListeners($);else k4=$}function HN($,I){return $.listenerCount(I)}function BZ($,I,G,Z){if(typeof $.removeListener==="function")$.removeListener(I,G);else $.removeEventListener(I,G,Z)}function JN($,I,G,Z){if(typeof $.on==="function")if(Z.once)$.once(I,G);else $.on(I,G);else $.addEventListener(I,G,Z)}function QG($,I,G){let Z=TypeError(`The "${$}" argument must be of type ${I}. Received ${G}`);return Z.code="ERR_INVALID_ARG_TYPE",Z}function gh($,I,G){let Z=RangeError(`The "${$}" argument is out of range. It must be ${I}. Received ${G}`);return Z.code="ERR_OUT_OF_RANGE",Z}function FN($,I){if($!==void 0&&($===null||typeof $!=="object"||!("aborted"in $)))throw QG(I,"AbortSignal",$)}function aD($,I,G,Z){if(typeof $!=="number")throw QG(I,"number",$);if(G!=null&&$<G||Z!=null&&$>Z||(G!=null||Z!=null)&&Number.isNaN($))throw gh(I,`${G!=null?`>= ${G}`:""}${G!=null&&Z!=null?" && ":""}${Z!=null?`<= ${Z}`:""}`,$)}function uJ($){if(typeof $!=="function")throw TypeError("The listener must be a function")}function wh($,I){if(typeof $!=="boolean")throw QG(I,"boolean",$)}function TN($){return $?._maxListeners??k4}function MN($,I){if($===void 0)throw QG("signal","AbortSignal",$);if(FN($,"signal"),typeof I!=="function")throw QG("listener","function",I);let G;if($.aborted)queueMicrotask(()=>I());else $.addEventListener("abort",I,{__proto__:null,once:!0}),G=()=>{$.removeEventListener("abort",I)};return{__proto__:null,[Symbol.dispose](){G?.()}}}var rD,j4,QN,Ch,qh,GN,zN,YN,k4=10,q2=function($){if(this._events===void 0||this._events===this.__proto__._events)this._events={__proto__:null},this._eventsCount=0;if(this._maxListeners??=void 0,this[j4]=$?.captureRejections?Boolean($?.captureRejections):w1[j4])this.emit=kh},w1,jh=function($,...I){if($==="error")return ZN(this,I);var{_events:G}=this;if(G===void 0)return!1;var Z=G[$];if(Z===void 0)return!1;let _=Z.length>1?Z.slice():Z;for(let J=0,{length:Y}=_;J<Y;J++){let W=_[J];switch(I.length){case 0:W.call(this);break;case 1:W.call(this,I[0]);break;case 2:W.call(this,I[0],I[1]);break;case 3:W.call(this,I[0],I[1],I[2]);break;default:W.apply(this,I);break}}return!0},kh=function($,...I){if($==="error")return ZN(this,I);var{_events:G}=this;if(G===void 0)return!1;var Z=G[$];if(Z===void 0)return!1;let _=Z.length>1?Z.slice():Z;for(let J=0,{length:Y}=_;J<Y;J++){let W=_[J],R;switch(I.length){case 0:R=W.call(this);break;case 1:R=W.call(this,I[0]);break;case 2:R=W.call(this,I[0],I[1]);break;case 3:R=W.call(this,I[0],I[1],I[2]);break;default:R=W.apply(this,I);break}if(R!==void 0&&typeof R?.then==="function"&&R.then===Promise.prototype.then)Nh(this,R,$,I)}return!0},tD,xh;var ZG=WI(()=>{rD=Symbol.for,j4=Symbol("kCapture"),QN=rD("events.errorMonitor"),Ch=Symbol("events.maxEventTargetListeners"),qh=Symbol("events.maxEventTargetListenersWarned"),GN=rD("nodejs.rejection"),zN=rD("nodejs.rejection"),YN=Array.prototype.slice,w1=q2.prototype={};w1._events=void 0;w1._eventsCount=0;w1._maxListeners=void 0;w1.setMaxListeners=function($){return aD($,"setMaxListeners",0),this._maxListeners=$,this};w1.constructor=q2;w1.getMaxListeners=function(){return this?._maxListeners??k4};w1.emit=jh;w1.addListener=function($,I){uJ(I);var G=this._events;if(!G)G=this._events={__proto__:null},this._eventsCount=0;else if(G.newListener)this.emit("newListener",$,I.listener??I);var Z=G[$];if(!Z)G[$]=[I],this._eventsCount++;else{Z.push(I);var _=this._maxListeners??k4;if(_>0&&Z.length>_&&!Z.warned)ON(this,$,Z)}return this};w1.on=w1.addListener;w1.prependListener=function($,I){uJ(I);var G=this._events;if(!G)G=this._events={__proto__:null},this._eventsCount=0;else if(G.newListener)this.emit("newListener",$,I.listener??I);var Z=G[$];if(!Z)G[$]=[I],this._eventsCount++;else{Z.unshift(I);var _=this._maxListeners??k4;if(_>0&&Z.length>_&&!Z.warned)ON(this,$,Z)}return this};w1.once=function($,I){uJ(I);let G=LN.bind(this,$,I);return G.listener=I,this.addListener($,G),this};w1.prependOnceListener=function($,I){uJ(I);let G=LN.bind(this,$,I);return G.listener=I,this.prependListener($,G),this};w1.removeListener=function($,I){uJ(I);var{_events:G}=this;if(!G)return this;var Z=G[$];if(!Z)return this;var _=Z.length;let J=-1;for(let Y=_-1;Y>=0;Y--)if(Z[Y]===I||Z[Y].listener===I){J=Y;break}if(J<0)return this;if(J===0)Z.shift();else Z.splice(J,1);if(Z.length===0)delete G[$],this._eventsCount--;return this};w1.off=w1.removeListener;w1.removeAllListeners=function($){var{_events:I}=this;if($&&I){if(I[$])delete I[$],this._eventsCount--}else this._events={__proto__:null};return this};w1.listeners=function($){var{_events:I}=this;if(!I)return[];var G=I[$];if(!G)return[];return G.map((Z)=>Z.listener??Z)};w1.rawListeners=function($){var{_events:I}=this;if(!I)return[];var G=I[$];if(!G)return[];return G.slice()};w1.listenerCount=function($){var{_events:I}=this;if(!I)return 0;return I[$]?.length??0};w1.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};w1[j4]=!1;tD=class tD extends Error{constructor($="The operation was aborted",I=void 0){if(I!==void 0&&typeof I!=="object")throw QG("options","Object",I);super($,I);this.code="ABORT_ERR",this.name="AbortError"}};Object.defineProperties(q2,{captureRejections:{get(){return w1[j4]},set($){wh($,"EventEmitter.captureRejections"),w1[j4]=$},enumerable:!0},defaultMaxListeners:{enumerable:!0,get:()=>{return k4},set:($)=>{aD($,"defaultMaxListeners",0),k4=$}},kMaxEventTargetListeners:{value:Ch,enumerable:!1,configurable:!1,writable:!1},kMaxEventTargetListenersWarned:{value:qh,enumerable:!1,configurable:!1,writable:!1}});Object.assign(q2,{once:KN,getEventListeners:DN,getMaxListeners:TN,setMaxListeners:WN,EventEmitter:q2,usingDomains:!1,captureRejectionSymbol:zN,errorMonitor:QN,addAbortListener:MN,init:q2,listenerCount:HN});xh=q2});var w4=N6((L00,CN)=>{var L1=($,I)=>()=>(I||$((I={exports:{}}).exports,I),I.exports),d1=L1(($,I)=>{class G extends Error{constructor(Z){if(!Array.isArray(Z))throw TypeError(`Expected input to be an Array, got ${typeof Z}`);let _="";for(let J=0;J<Z.length;J++)_+=` ${Z[J].stack}
|
|
240
|
-
`;super(_);this.name="AggregateError",this.errors=Z}}I.exports={AggregateError:G,ArrayIsArray(Z){return Array.isArray(Z)},ArrayPrototypeIncludes(Z,_){return Z.includes(_)},ArrayPrototypeIndexOf(Z,_){return Z.indexOf(_)},ArrayPrototypeJoin(Z,_){return Z.join(_)},ArrayPrototypeMap(Z,_){return Z.map(_)},ArrayPrototypePop(Z,_){return Z.pop(_)},ArrayPrototypePush(Z,_){return Z.push(_)},ArrayPrototypeSlice(Z,_,J){return Z.slice(_,J)},Error,FunctionPrototypeCall(Z,_,...J){return Z.call(_,...J)},FunctionPrototypeSymbolHasInstance(Z,_){return Function.prototype[Symbol.hasInstance].call(Z,_)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(Z,_){return Object.defineProperties(Z,_)},ObjectDefineProperty(Z,_,J){return Object.defineProperty(Z,_,J)},ObjectGetOwnPropertyDescriptor(Z,_){return Object.getOwnPropertyDescriptor(Z,_)},ObjectKeys(Z){return Object.keys(Z)},ObjectSetPrototypeOf(Z,_){return Object.setPrototypeOf(Z,_)},Promise,PromisePrototypeCatch(Z,_){return Z.catch(_)},PromisePrototypeThen(Z,_,J){return Z.then(_,J)},PromiseReject(Z){return Promise.reject(Z)},PromiseResolve(Z){return Promise.resolve(Z)},ReflectApply:Reflect.apply,RegExpPrototypeTest(Z,_){return Z.test(_)},SafeSet:Set,String,StringPrototypeSlice(Z,_,J){return Z.slice(_,J)},StringPrototypeToLowerCase(Z){return Z.toLowerCase()},StringPrototypeToUpperCase(Z){return Z.toUpperCase()},StringPrototypeTrim(Z){return Z.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(Z,_,J){return Z.set(_,J)},Boolean,Uint8Array}}),AN=L1(($,I)=>{I.exports={format(G,...Z){return G.replace(/%([sdifj])/g,function(...[_,J]){let Y=Z.shift();if(J==="f")return Y.toFixed(6);else if(J==="j")return JSON.stringify(Y);else if(J==="s"&&typeof Y==="object")return`${Y.constructor!==Object?Y.constructor.name:""} {}`.trim();else return Y.toString()})},inspect(G){switch(typeof G){case"string":if(G.includes("'")){if(!G.includes('"'))return`"${G}"`;else if(!G.includes("`")&&!G.includes("${"))return`\`${G}\``}return`'${G}'`;case"number":if(isNaN(G))return"NaN";else if(Object.is(G,-0))return String(G);return G;case"bigint":return`${String(G)}n`;case"boolean":case"undefined":return String(G);case"object":return"{}"}}}}),iU=L1(($,I)=>{var{format:G,inspect:Z}=AN(),{AggregateError:_}=d1(),J=globalThis.AggregateError||_,Y=Symbol("kIsNodeError"),W=["string","function","number","object","Function","Object","boolean","bigint","symbol"],R=/^([A-Z][a-z0-9]*)+$/,M={};function E(y,g){if(!y)throw new M.ERR_INTERNAL_ASSERTION(g)}function T(y){let g="",b=y.length,l=y[0]==="-"?1:0;for(;b>=l+4;b-=3)g=`_${y.slice(b-3,b)}${g}`;return`${y.slice(0,b)}${g}`}function S(y,g,b){if(typeof g==="function")return E(g.length<=b.length,`Code: ${y}; The provided arguments length (${b.length}) does not match the required ones (${g.length}).`),g(...b);let l=(g.match(/%[dfijoOs]/g)||[]).length;if(E(l===b.length,`Code: ${y}; The provided arguments length (${b.length}) does not match the required ones (${l}).`),b.length===0)return g;return G(g,...b)}function N(y,g,b){if(!b)b=Error;class l extends b{constructor(...i){super(S(y,g,i))}toString(){return`${this.name} [${y}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:b.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${y}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=y,l.prototype[Y]=!0,M[y]=l}function B(y){let g="__node_internal_"+y.name;return Object.defineProperty(y,"name",{value:g}),y}function x(y,g){if(y&&g&&y!==g){if(Array.isArray(g.errors))return g.errors.push(y),g;let b=new J([g,y],g.message);return b.code=g.code,b}return y||g}class w extends Error{constructor(y="The operation was aborted",g=void 0){if(g!==void 0&&typeof g!=="object")throw new M.ERR_INVALID_ARG_TYPE("options","Object",g);super(y,g);this.code="ABORT_ERR",this.name="AbortError"}}N("ERR_ASSERTION","%s",Error),N("ERR_INVALID_ARG_TYPE",(y,g,b)=>{if(E(typeof y==="string","'name' must be a string"),!Array.isArray(g))g=[g];let l="The ";if(y.endsWith(" argument"))l+=`${y} `;else l+=`"${y}" ${y.includes(".")?"property":"argument"} `;l+="must be ";let i=[],$0=[],Q0=[];for(let K0 of g)if(E(typeof K0==="string","All expected entries have to be of type string"),W.includes(K0))i.push(K0.toLowerCase());else if(R.test(K0))$0.push(K0);else E(K0!=="object",'The value "object" should be written as "Object"'),Q0.push(K0);if($0.length>0){let K0=i.indexOf("object");if(K0!==-1)i.splice(i,K0,1),$0.push("Object")}if(i.length>0){switch(i.length){case 1:l+=`of type ${i[0]}`;break;case 2:l+=`one of type ${i[0]} or ${i[1]}`;break;default:{let K0=i.pop();l+=`one of type ${i.join(", ")}, or ${K0}`}}if($0.length>0||Q0.length>0)l+=" or "}if($0.length>0){switch($0.length){case 1:l+=`an instance of ${$0[0]}`;break;case 2:l+=`an instance of ${$0[0]} or ${$0[1]}`;break;default:{let K0=$0.pop();l+=`an instance of ${$0.join(", ")}, or ${K0}`}}if(Q0.length>0)l+=" or "}switch(Q0.length){case 0:break;case 1:if(Q0[0].toLowerCase()!==Q0[0])l+="an ";l+=`${Q0[0]}`;break;case 2:l+=`one of ${Q0[0]} or ${Q0[1]}`;break;default:{let K0=Q0.pop();l+=`one of ${Q0.join(", ")}, or ${K0}`}}if(b==null)l+=`. Received ${b}`;else if(typeof b==="function"&&b.name)l+=`. Received function ${b.name}`;else if(typeof b==="object"){var G0;if((G0=b.constructor)!==null&&G0!==void 0&&G0.name)l+=`. Received an instance of ${b.constructor.name}`;else{let K0=Z(b,{depth:-1});l+=`. Received ${K0}`}}else{let K0=Z(b,{colors:!1});if(K0.length>25)K0=`${K0.slice(0,25)}...`;l+=`. Received type ${typeof b} (${K0})`}return l},TypeError),N("ERR_INVALID_ARG_VALUE",(y,g,b="is invalid")=>{let l=Z(g);if(l.length>128)l=l.slice(0,128)+"...";return`The ${y.includes(".")?"property":"argument"} '${y}' ${b}. Received ${l}`},TypeError),N("ERR_INVALID_RETURN_VALUE",(y,g,b)=>{var l;let i=b!==null&&b!==void 0&&(l=b.constructor)!==null&&l!==void 0&&l.name?`instance of ${b.constructor.name}`:`type ${typeof b}`;return`Expected ${y} to be returned from the "${g}" function but got ${i}.`},TypeError),N("ERR_MISSING_ARGS",(...y)=>{E(y.length>0,"At least one arg needs to be specified");let g,b=y.length;switch(y=(Array.isArray(y)?y:[y]).map((l)=>`"${l}"`).join(" or "),b){case 1:g+=`The ${y[0]} argument`;break;case 2:g+=`The ${y[0]} and ${y[1]} arguments`;break;default:{let l=y.pop();g+=`The ${y.join(", ")}, and ${l} arguments`}break}return`${g} must be specified`},TypeError),N("ERR_OUT_OF_RANGE",(y,g,b)=>{E(g,'Missing "range" argument');let l;if(Number.isInteger(b)&&Math.abs(b)>4294967296)l=T(String(b));else if(typeof b==="bigint"){l=String(b);let i=BigInt(2)**BigInt(32);if(b>i||b<-i)l=T(l);l+="n"}else l=Z(b);return`The value of "${y}" is out of range. It must be ${g}. Received ${l}`},RangeError),N("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),N("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),N("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),N("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),N("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),N("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),N("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),N("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),N("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),N("ERR_STREAM_WRITE_AFTER_END","write after end",Error),N("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),I.exports={AbortError:w,aggregateTwoErrors:B(x),hideStackFrames:B,codes:M}}),fh=L1(($,I)=>{Object.defineProperty($,"__esModule",{value:!0});var G=new WeakMap,Z=new WeakMap;function _(t){let P0=G.get(t);return console.assert(P0!=null,"'this' is expected an Event object, but got",t),P0}function J(t){if(t.passiveListener!=null){if(typeof console<"u"&&typeof console.error==="function")console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener);return}if(!t.event.cancelable)return;if(t.canceled=!0,typeof t.event.preventDefault==="function")t.event.preventDefault()}function Y(t,P0){G.set(this,{eventTarget:t,event:P0,eventPhase:2,currentTarget:t,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:P0.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let Q=Object.keys(P0);for(let K=0;K<Q.length;++K){let F=Q[K];if(!(F in this))Object.defineProperty(this,F,W(F))}}if(Y.prototype={get type(){return _(this).event.type},get target(){return _(this).eventTarget},get currentTarget(){return _(this).currentTarget},composedPath(){let t=_(this).currentTarget;if(t==null)return[];return[t]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return _(this).eventPhase},stopPropagation(){let t=_(this);if(t.stopped=!0,typeof t.event.stopPropagation==="function")t.event.stopPropagation()},stopImmediatePropagation(){let t=_(this);if(t.stopped=!0,t.immediateStopped=!0,typeof t.event.stopImmediatePropagation==="function")t.event.stopImmediatePropagation()},get bubbles(){return Boolean(_(this).event.bubbles)},get cancelable(){return Boolean(_(this).event.cancelable)},preventDefault(){J(_(this))},get defaultPrevented(){return _(this).canceled},get composed(){return Boolean(_(this).event.composed)},get timeStamp(){return _(this).timeStamp},get srcElement(){return _(this).eventTarget},get cancelBubble(){return _(this).stopped},set cancelBubble(t){if(!t)return;let P0=_(this);if(P0.stopped=!0,typeof P0.event.cancelBubble==="boolean")P0.event.cancelBubble=!0},get returnValue(){return!_(this).canceled},set returnValue(t){if(!t)J(_(this))},initEvent(){}},Object.defineProperty(Y.prototype,"constructor",{value:Y,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.Event<"u")Object.setPrototypeOf(Y.prototype,window.Event.prototype),Z.set(window.Event.prototype,Y);function W(t){return{get(){return _(this).event[t]},set(P0){_(this).event[t]=P0},configurable:!0,enumerable:!0}}function R(t){return{value(){let P0=_(this).event;return P0[t].apply(P0,arguments)},configurable:!0,enumerable:!0}}function M(t,P0){let Q=Object.keys(P0);if(Q.length===0)return t;function K(F,L){t.call(this,F,L)}K.prototype=Object.create(t.prototype,{constructor:{value:K,configurable:!0,writable:!0}});for(let F=0;F<Q.length;++F){let L=Q[F];if(!(L in t.prototype)){let H=typeof Object.getOwnPropertyDescriptor(P0,L).value==="function";Object.defineProperty(K.prototype,L,H?R(L):W(L))}}return K}function E(t){if(t==null||t===Object.prototype)return Y;let P0=Z.get(t);if(P0==null)P0=M(E(Object.getPrototypeOf(t)),t),Z.set(t,P0);return P0}function T(t,P0){return new(E(Object.getPrototypeOf(P0)))(t,P0)}function S(t){return _(t).immediateStopped}function N(t,P0){_(t).eventPhase=P0}function B(t,P0){_(t).currentTarget=P0}function x(t,P0){_(t).passiveListener=P0}var w=new WeakMap,y=1,g=2,b=3;function l(t){return t!==null&&typeof t==="object"}function i(t){let P0=w.get(t);if(P0==null)throw TypeError("'this' is expected an EventTarget object, but got another value.");return P0}function $0(t){return{get(){let P0=i(this).get(t);while(P0!=null){if(P0.listenerType===b)return P0.listener;P0=P0.next}return null},set(P0){if(typeof P0!=="function"&&!l(P0))P0=null;let Q=i(this),K=null,F=Q.get(t);while(F!=null){if(F.listenerType===b)if(K!==null)K.next=F.next;else if(F.next!==null)Q.set(t,F.next);else Q.delete(t);else K=F;F=F.next}if(P0!==null){let L={listener:P0,listenerType:b,passive:!1,once:!1,next:null};if(K===null)Q.set(t,L);else K.next=L}},configurable:!0,enumerable:!0}}function Q0(t,P0){Object.defineProperty(t,`on${P0}`,$0(P0))}function G0(t){function P0(){K0.call(this)}P0.prototype=Object.create(K0.prototype,{constructor:{value:P0,configurable:!0,writable:!0}});for(let Q=0;Q<t.length;++Q)Q0(P0.prototype,t[Q]);return P0}function K0(){if(this instanceof K0){w.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return G0(arguments[0]);if(arguments.length>0){let t=Array(arguments.length);for(let P0=0;P0<arguments.length;++P0)t[P0]=arguments[P0];return G0(t)}throw TypeError("Cannot call a class as a function")}if(K0.prototype={addEventListener(t,P0,Q){if(P0==null)return;if(typeof P0!=="function"&&!l(P0))throw TypeError("'listener' should be a function or an object.");let K=i(this),F=l(Q),L=(F?Boolean(Q.capture):Boolean(Q))?y:g,H={listener:P0,listenerType:L,passive:F&&Boolean(Q.passive),once:F&&Boolean(Q.once),next:null},v=K.get(t);if(v===void 0){K.set(t,H);return}let q=null;while(v!=null){if(v.listener===P0&&v.listenerType===L)return;q=v,v=v.next}q.next=H},removeEventListener(t,P0,Q){if(P0==null)return;let K=i(this),F=(l(Q)?Boolean(Q.capture):Boolean(Q))?y:g,L=null,H=K.get(t);while(H!=null){if(H.listener===P0&&H.listenerType===F){if(L!==null)L.next=H.next;else if(H.next!==null)K.set(t,H.next);else K.delete(t);return}L=H,H=H.next}},dispatchEvent(t){if(t==null||typeof t.type!=="string")throw TypeError('"event.type" should be a string.');let P0=i(this),Q=t.type,K=P0.get(Q);if(K==null)return!0;let F=T(this,t),L=null;while(K!=null){if(K.once)if(L!==null)L.next=K.next;else if(K.next!==null)P0.set(Q,K.next);else P0.delete(Q);else L=K;if(x(F,K.passive?K.listener:null),typeof K.listener==="function")try{K.listener.call(this,F)}catch(H){if(typeof console<"u"&&typeof console.error==="function")console.error(H)}else if(K.listenerType!==b&&typeof K.listener.handleEvent==="function")K.listener.handleEvent(F);if(S(F))break;K=K.next}return x(F,null),N(F,0),B(F,null),!F.defaultPrevented}},Object.defineProperty(K0.prototype,"constructor",{value:K0,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.EventTarget<"u")Object.setPrototypeOf(K0.prototype,window.EventTarget.prototype);$.defineEventAttribute=Q0,$.EventTarget=K0,$.default=K0,I.exports=K0,I.exports.EventTarget=I.exports.default=K0,I.exports.defineEventAttribute=Q0}),nJ=L1(($,I)=>{Object.defineProperty($,"__esModule",{value:!0});var G=fh();class Z extends G.EventTarget{constructor(){super();throw TypeError("AbortSignal cannot be constructed directly")}get aborted(){let E=Y.get(this);if(typeof E!=="boolean")throw TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return E}}G.defineEventAttribute(Z.prototype,"abort");function _(){let E=Object.create(Z.prototype);return G.EventTarget.call(E),Y.set(E,!1),E}function J(E){if(Y.get(E)!==!1)return;Y.set(E,!0),E.dispatchEvent({type:"abort"})}var Y=new WeakMap;if(Object.defineProperties(Z.prototype,{aborted:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(Z.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});class W{constructor(){R.set(this,_())}get signal(){return M(this)}abort(){J(M(this))}}var R=new WeakMap;function M(E){let T=R.get(E);if(T==null)throw TypeError(`Expected 'this' to be an 'AbortController' object, but got ${E===null?"null":typeof E}`);return T}if(Object.defineProperties(W.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(W.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});$.AbortController=W,$.AbortSignal=Z,$.default=W,I.exports=W,I.exports.AbortController=I.exports.default=W,I.exports.AbortSignal=Z}),z6=L1(($,I)=>{var G=(u1(),V$(h1)),{format:Z,inspect:_}=AN(),{codes:{ERR_INVALID_ARG_TYPE:J}}=iU(),{kResistStopPropagation:Y,AggregateError:W,SymbolDispose:R}=d1(),M=globalThis.AbortSignal||nJ().AbortSignal,E=globalThis.AbortController||nJ().AbortController,T=Object.getPrototypeOf(async function(){}).constructor,S=globalThis.Blob||G.Blob,N=typeof S<"u"?function(w){return w instanceof S}:function(w){return!1},B=(w,y)=>{if(w!==void 0&&(w===null||typeof w!=="object"||!("aborted"in w)))throw new J(y,"AbortSignal",w)},x=(w,y)=>{if(typeof w!=="function")throw new J(y,"Function",w)};I.exports={AggregateError:W,kEmptyObject:Object.freeze({}),once(w){let y=!1;return function(...g){if(y)return;y=!0,w.apply(this,g)}},createDeferredPromise:function(){let w,y;return{promise:new Promise((g,b)=>{w=g,y=b}),resolve:w,reject:y}},promisify(w){return new Promise((y,g)=>{w((b,...l)=>{if(b)return g(b);return y(...l)})})},debuglog(){return function(){}},format:Z,inspect:_,types:{isAsyncFunction(w){return w instanceof T},isArrayBufferView(w){return ArrayBuffer.isView(w)}},isBlob:N,deprecate(w,y){return w},addAbortListener:(ZG(),V$(zG)).addAbortListener||function(w,y){if(w===void 0)throw new J("signal","AbortSignal",w);B(w,"signal"),x(y,"listener");let g;if(w.aborted)queueMicrotask(()=>y());else w.addEventListener("abort",y,{__proto__:null,once:!0,[Y]:!0}),g=()=>{w.removeEventListener("abort",y)};return{__proto__:null,[R](){var b;(b=g)===null||b===void 0||b()}}},AbortSignalAny:M.any||function(w){if(w.length===1)return w[0];let y=new E,g=()=>y.abort();return w.forEach((b)=>{B(b,"signals"),b.addEventListener("abort",g,{once:!0})}),y.signal.addEventListener("abort",()=>{w.forEach((b)=>b.removeEventListener("abort",g))},{once:!0}),y.signal}},I.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),pJ=L1(($,I)=>{var{ArrayIsArray:G,ArrayPrototypeIncludes:Z,ArrayPrototypeJoin:_,ArrayPrototypeMap:J,NumberIsInteger:Y,NumberIsNaN:W,NumberMAX_SAFE_INTEGER:R,NumberMIN_SAFE_INTEGER:M,NumberParseInt:E,ObjectPrototypeHasOwnProperty:T,RegExpPrototypeExec:S,String:N,StringPrototypeToUpperCase:B,StringPrototypeTrim:x}=d1(),{hideStackFrames:w,codes:{ERR_SOCKET_BAD_PORT:y,ERR_INVALID_ARG_TYPE:g,ERR_INVALID_ARG_VALUE:b,ERR_OUT_OF_RANGE:l,ERR_UNKNOWN_SIGNAL:i}}=iU(),{normalizeEncoding:$0}=z6(),{isAsyncFunction:Q0,isArrayBufferView:G0}=z6().types,K0={};function t(F0){return F0===(F0|0)}function P0(F0){return F0===F0>>>0}var Q=/^[0-7]+$/,K="must be a 32-bit unsigned integer or an octal string";function F(F0,q0,s0){if(typeof F0>"u")F0=s0;if(typeof F0==="string"){if(S(Q,F0)===null)throw new b(q0,F0,K);F0=E(F0,8)}return v(F0,q0),F0}var L=w((F0,q0,s0=M,k0=R)=>{if(typeof F0!=="number")throw new g(q0,"number",F0);if(!Y(F0))throw new l(q0,"an integer",F0);if(F0<s0||F0>k0)throw new l(q0,`>= ${s0} && <= ${k0}`,F0)}),H=w((F0,q0,s0=-2147483648,k0=2147483647)=>{if(typeof F0!=="number")throw new g(q0,"number",F0);if(!Y(F0))throw new l(q0,"an integer",F0);if(F0<s0||F0>k0)throw new l(q0,`>= ${s0} && <= ${k0}`,F0)}),v=w((F0,q0,s0=!1)=>{if(typeof F0!=="number")throw new g(q0,"number",F0);if(!Y(F0))throw new l(q0,"an integer",F0);let k0=s0?1:0,n0=4294967295;if(F0<k0||F0>n0)throw new l(q0,`>= ${k0} && <= ${n0}`,F0)});function q(F0,q0){if(typeof F0!=="string")throw new g(q0,"string",F0)}function P(F0,q0,s0=void 0,k0){if(typeof F0!=="number")throw new g(q0,"number",F0);if(s0!=null&&F0<s0||k0!=null&&F0>k0||(s0!=null||k0!=null)&&W(F0))throw new l(q0,`${s0!=null?`>= ${s0}`:""}${s0!=null&&k0!=null?" && ":""}${k0!=null?`<= ${k0}`:""}`,F0)}var O=w((F0,q0,s0)=>{if(!Z(s0,F0)){let k0="must be one of: "+_(J(s0,(n0)=>typeof n0==="string"?`'${n0}'`:N(n0)),", ");throw new b(q0,F0,k0)}});function A(F0,q0){if(typeof F0!=="boolean")throw new g(q0,"boolean",F0)}function k(F0,q0,s0){return F0==null||!T(F0,q0)?s0:F0[q0]}var j=w((F0,q0,s0=null)=>{let k0=k(s0,"allowArray",!1),n0=k(s0,"allowFunction",!1);if(!k(s0,"nullable",!1)&&F0===null||!k0&&G(F0)||typeof F0!=="object"&&(!n0||typeof F0!=="function"))throw new g(q0,"Object",F0)}),h=w((F0,q0)=>{if(F0!=null&&typeof F0!=="object"&&typeof F0!=="function")throw new g(q0,"a dictionary",F0)}),a=w((F0,q0,s0=0)=>{if(!G(F0))throw new g(q0,"Array",F0);if(F0.length<s0){let k0=`must be longer than ${s0}`;throw new b(q0,F0,k0)}});function J0(F0,q0){a(F0,q0);for(let s0=0;s0<F0.length;s0++)q(F0[s0],`${q0}[${s0}]`)}function D0(F0,q0){a(F0,q0);for(let s0=0;s0<F0.length;s0++)A(F0[s0],`${q0}[${s0}]`)}function O0(F0,q0){a(F0,q0);for(let s0=0;s0<F0.length;s0++){let k0=F0[s0],n0=`${q0}[${s0}]`;if(k0==null)throw new g(n0,"AbortSignal",k0);W0(k0,n0)}}function d(F0,q0="signal"){if(q(F0,q0),K0[F0]===void 0){if(K0[B(F0)]!==void 0)throw new i(F0+" (signals must use all capital letters)");throw new i(F0)}}var m=w((F0,q0="buffer")=>{if(!G0(F0))throw new g(q0,["Buffer","TypedArray","DataView"],F0)});function r(F0,q0){let s0=$0(q0),k0=F0.length;if(s0==="hex"&&k0%2!==0)throw new b("encoding",q0,`is invalid for data of length ${k0}`)}function Y0(F0,q0="Port",s0=!0){if(typeof F0!=="number"&&typeof F0!=="string"||typeof F0==="string"&&x(F0).length===0||+F0!==+F0>>>0||F0>65535||F0===0&&!s0)throw new y(q0,F0,s0);return F0|0}var W0=w((F0,q0)=>{if(F0!==void 0&&(F0===null||typeof F0!=="object"||!("aborted"in F0)))throw new g(q0,"AbortSignal",F0)}),I0=w((F0,q0)=>{if(typeof F0!=="function")throw new g(q0,"Function",F0)}),c=w((F0,q0)=>{if(typeof F0!=="function"||Q0(F0))throw new g(q0,"Function",F0)}),s=w((F0,q0)=>{if(F0!==void 0)throw new g(q0,"undefined",F0)});function S0(F0,q0,s0){if(!Z(s0,F0))throw new g(q0,`('${_(s0,"|")}')`,F0)}var M0=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function z0(F0,q0){if(typeof F0>"u"||!S(M0,F0))throw new b(q0,F0,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function c0(F0){if(typeof F0==="string")return z0(F0,"hints"),F0;else if(G(F0)){let q0=F0.length,s0="";if(q0===0)return s0;for(let k0=0;k0<q0;k0++){let n0=F0[k0];if(z0(n0,"hints"),s0+=n0,k0!==q0-1)s0+=", "}return s0}throw new b("hints",F0,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}I.exports={isInt32:t,isUint32:P0,parseFileMode:F,validateArray:a,validateStringArray:J0,validateBooleanArray:D0,validateAbortSignalArray:O0,validateBoolean:A,validateBuffer:m,validateDictionary:h,validateEncoding:r,validateFunction:I0,validateInt32:H,validateInteger:L,validateNumber:P,validateObject:j,validateOneOf:O,validatePlainFunction:c,validatePort:Y0,validateSignalName:d,validateString:q,validateUint32:v,validateUndefined:s,validateUnion:S0,validateAbortSignal:W0,validateLinkHeaderValue:c0}}),g4=L1(($,I)=>{I.exports=globalThis.process}),k_=L1(($,I)=>{var{SymbolAsyncIterator:G,SymbolIterator:Z,SymbolFor:_}=d1(),J=_("nodejs.stream.destroyed"),Y=_("nodejs.stream.errored"),W=_("nodejs.stream.readable"),R=_("nodejs.stream.writable"),M=_("nodejs.stream.disturbed"),E=_("nodejs.webstream.isClosedPromise"),T=_("nodejs.webstream.controllerErrorFunction");function S(k,j=!1){var h;return!!(k&&typeof k.pipe==="function"&&typeof k.on==="function"&&(!j||typeof k.pause==="function"&&typeof k.resume==="function")&&(!k._writableState||((h=k._readableState)===null||h===void 0?void 0:h.readable)!==!1)&&(!k._writableState||k._readableState))}function N(k){var j;return!!(k&&typeof k.write==="function"&&typeof k.on==="function"&&(!k._readableState||((j=k._writableState)===null||j===void 0?void 0:j.writable)!==!1))}function B(k){return!!(k&&typeof k.pipe==="function"&&k._readableState&&typeof k.on==="function"&&typeof k.write==="function")}function x(k){return k&&(k._readableState||k._writableState||typeof k.write==="function"&&typeof k.on==="function"||typeof k.pipe==="function"&&typeof k.on==="function")}function w(k){return!!(k&&!x(k)&&typeof k.pipeThrough==="function"&&typeof k.getReader==="function"&&typeof k.cancel==="function")}function y(k){return!!(k&&!x(k)&&typeof k.getWriter==="function"&&typeof k.abort==="function")}function g(k){return!!(k&&!x(k)&&typeof k.readable==="object"&&typeof k.writable==="object")}function b(k){return w(k)||y(k)||g(k)}function l(k,j){if(k==null)return!1;if(j===!0)return typeof k[G]==="function";if(j===!1)return typeof k[Z]==="function";return typeof k[G]==="function"||typeof k[Z]==="function"}function i(k){if(!x(k))return null;let{_writableState:j,_readableState:h}=k,a=j||h;return!!(k.destroyed||k[J]||a!==null&&a!==void 0&&a.destroyed)}function $0(k){if(!N(k))return null;if(k.writableEnded===!0)return!0;let j=k._writableState;if(j!==null&&j!==void 0&&j.errored)return!1;if(typeof(j===null||j===void 0?void 0:j.ended)!=="boolean")return null;return j.ended}function Q0(k,j){if(!N(k))return null;if(k.writableFinished===!0)return!0;let h=k._writableState;if(h!==null&&h!==void 0&&h.errored)return!1;if(typeof(h===null||h===void 0?void 0:h.finished)!=="boolean")return null;return!!(h.finished||j===!1&&h.ended===!0&&h.length===0)}function G0(k){if(!S(k))return null;if(k.readableEnded===!0)return!0;let j=k._readableState;if(!j||j.errored)return!1;if(typeof(j===null||j===void 0?void 0:j.ended)!=="boolean")return null;return j.ended}function K0(k,j){if(!S(k))return null;let h=k._readableState;if(h!==null&&h!==void 0&&h.errored)return!1;if(typeof(h===null||h===void 0?void 0:h.endEmitted)!=="boolean")return null;return!!(h.endEmitted||j===!1&&h.ended===!0&&h.length===0)}function t(k){if(k&&k[W]!=null)return k[W];if(typeof(k===null||k===void 0?void 0:k.readable)!=="boolean")return null;if(i(k))return!1;return S(k)&&k.readable&&!K0(k)}function P0(k){if(k&&k[R]!=null)return k[R];if(typeof(k===null||k===void 0?void 0:k.writable)!=="boolean")return null;if(i(k))return!1;return N(k)&&k.writable&&!$0(k)}function Q(k,j){if(!x(k))return null;if(i(k))return!0;if((j===null||j===void 0?void 0:j.readable)!==!1&&t(k))return!1;if((j===null||j===void 0?void 0:j.writable)!==!1&&P0(k))return!1;return!0}function K(k){var j,h;if(!x(k))return null;if(k.writableErrored)return k.writableErrored;return(j=(h=k._writableState)===null||h===void 0?void 0:h.errored)!==null&&j!==void 0?j:null}function F(k){var j,h;if(!x(k))return null;if(k.readableErrored)return k.readableErrored;return(j=(h=k._readableState)===null||h===void 0?void 0:h.errored)!==null&&j!==void 0?j:null}function L(k){if(!x(k))return null;if(typeof k.closed==="boolean")return k.closed;let{_writableState:j,_readableState:h}=k;if(typeof(j===null||j===void 0?void 0:j.closed)==="boolean"||typeof(h===null||h===void 0?void 0:h.closed)==="boolean")return(j===null||j===void 0?void 0:j.closed)||(h===null||h===void 0?void 0:h.closed);if(typeof k._closed==="boolean"&&H(k))return k._closed;return null}function H(k){return typeof k._closed==="boolean"&&typeof k._defaultKeepAlive==="boolean"&&typeof k._removedConnection==="boolean"&&typeof k._removedContLen==="boolean"}function v(k){return typeof k._sent100==="boolean"&&H(k)}function q(k){var j;return typeof k._consuming==="boolean"&&typeof k._dumped==="boolean"&&((j=k.req)===null||j===void 0?void 0:j.upgradeOrConnect)===void 0}function P(k){if(!x(k))return null;let{_writableState:j,_readableState:h}=k,a=j||h;return!a&&v(k)||!!(a&&a.autoDestroy&&a.emitClose&&a.closed===!1)}function O(k){var j;return!!(k&&((j=k[M])!==null&&j!==void 0?j:k.readableDidRead||k.readableAborted))}function A(k){var j,h,a,J0,D0,O0,d,m,r,Y0;return!!(k&&((j=(h=(a=(J0=(D0=(O0=k[Y])!==null&&O0!==void 0?O0:k.readableErrored)!==null&&D0!==void 0?D0:k.writableErrored)!==null&&J0!==void 0?J0:(d=k._readableState)===null||d===void 0?void 0:d.errorEmitted)!==null&&a!==void 0?a:(m=k._writableState)===null||m===void 0?void 0:m.errorEmitted)!==null&&h!==void 0?h:(r=k._readableState)===null||r===void 0?void 0:r.errored)!==null&&j!==void 0?j:(Y0=k._writableState)===null||Y0===void 0?void 0:Y0.errored))}I.exports={isDestroyed:i,kIsDestroyed:J,isDisturbed:O,kIsDisturbed:M,isErrored:A,kIsErrored:Y,isReadable:t,kIsReadable:W,kIsClosedPromise:E,kControllerErrorFunction:T,kIsWritable:R,isClosed:L,isDuplexNodeStream:B,isFinished:Q,isIterable:l,isReadableNodeStream:S,isReadableStream:w,isReadableEnded:G0,isReadableFinished:K0,isReadableErrored:F,isNodeStream:x,isWebStream:b,isWritable:P0,isWritableNodeStream:N,isWritableStream:y,isWritableEnded:$0,isWritableFinished:Q0,isWritableErrored:K,isServerRequest:q,isServerResponse:v,willEmitClose:P,isTransformStream:g}}),N2=L1(($,I)=>{var G=g4(),{AbortError:Z,codes:_}=iU(),{ERR_INVALID_ARG_TYPE:J,ERR_STREAM_PREMATURE_CLOSE:Y}=_,{kEmptyObject:W,once:R}=z6(),{validateAbortSignal:M,validateFunction:E,validateObject:T,validateBoolean:S}=pJ(),{Promise:N,PromisePrototypeThen:B,SymbolDispose:x}=d1(),{isClosed:w,isReadable:y,isReadableNodeStream:g,isReadableStream:b,isReadableFinished:l,isReadableErrored:i,isWritable:$0,isWritableNodeStream:Q0,isWritableStream:G0,isWritableFinished:K0,isWritableErrored:t,isNodeStream:P0,willEmitClose:Q,kIsClosedPromise:K}=k_(),F;function L(O){return O.setHeader&&typeof O.abort==="function"}var H=()=>{};function v(O,A,k){var j,h;if(arguments.length===2)k=A,A=W;else if(A==null)A=W;else T(A,"options");if(E(k,"callback"),M(A.signal,"options.signal"),k=R(k),b(O)||G0(O))return q(O,A,k);if(!P0(O))throw new J("stream",["ReadableStream","WritableStream","Stream"],O);let a=(j=A.readable)!==null&&j!==void 0?j:g(O),J0=(h=A.writable)!==null&&h!==void 0?h:Q0(O),D0=O._writableState,O0=O._readableState,d=()=>{if(!O.writable)Y0()},m=Q(O)&&g(O)===a&&Q0(O)===J0,r=K0(O,!1),Y0=()=>{if(r=!0,O.destroyed)m=!1;if(m&&(!O.readable||a))return;if(!a||W0)k.call(O)},W0=l(O,!1),I0=()=>{if(W0=!0,O.destroyed)m=!1;if(m&&(!O.writable||J0))return;if(!J0||r)k.call(O)},c=(F0)=>{k.call(O,F0)},s=w(O),S0=()=>{s=!0;let F0=t(O)||i(O);if(F0&&typeof F0!=="boolean")return k.call(O,F0);if(a&&!W0&&g(O,!0)){if(!l(O,!1))return k.call(O,new Y)}if(J0&&!r){if(!K0(O,!1))return k.call(O,new Y)}k.call(O)},M0=()=>{s=!0;let F0=t(O)||i(O);if(F0&&typeof F0!=="boolean")return k.call(O,F0);k.call(O)},z0=()=>{O.req.on("finish",Y0)};if(L(O)){if(O.on("complete",Y0),!m)O.on("abort",S0);if(O.req)z0();else O.on("request",z0)}else if(J0&&!D0)O.on("end",d),O.on("close",d);if(!m&&typeof O.aborted==="boolean")O.on("aborted",S0);if(O.on("end",I0),O.on("finish",Y0),A.error!==!1)O.on("error",c);if(O.on("close",S0),s)G.nextTick(S0);else if(D0!==null&&D0!==void 0&&D0.errorEmitted||O0!==null&&O0!==void 0&&O0.errorEmitted){if(!m)G.nextTick(M0)}else if(!a&&(!m||y(O))&&(r||$0(O)===!1))G.nextTick(M0);else if(!J0&&(!m||$0(O))&&(W0||y(O)===!1))G.nextTick(M0);else if(O0&&O.req&&O.aborted)G.nextTick(M0);let c0=()=>{if(k=H,O.removeListener("aborted",S0),O.removeListener("complete",Y0),O.removeListener("abort",S0),O.removeListener("request",z0),O.req)O.req.removeListener("finish",Y0);O.removeListener("end",d),O.removeListener("close",d),O.removeListener("finish",Y0),O.removeListener("end",I0),O.removeListener("error",c),O.removeListener("close",S0)};if(A.signal&&!s){let F0=()=>{let q0=k;c0(),q0.call(O,new Z(void 0,{cause:A.signal.reason}))};if(A.signal.aborted)G.nextTick(F0);else{F=F||z6().addAbortListener;let q0=F(A.signal,F0),s0=k;k=R((...k0)=>{q0[x](),s0.apply(O,k0)})}}return c0}function q(O,A,k){let j=!1,h=H;if(A.signal)if(h=()=>{j=!0,k.call(O,new Z(void 0,{cause:A.signal.reason}))},A.signal.aborted)G.nextTick(h);else{F=F||z6().addAbortListener;let J0=F(A.signal,h),D0=k;k=R((...O0)=>{J0[x](),D0.apply(O,O0)})}let a=(...J0)=>{if(!j)G.nextTick(()=>k.apply(O,J0))};return B(O[K].promise,a,a),H}function P(O,A){var k;let j=!1;if(A===null)A=W;if((k=A)!==null&&k!==void 0&&k.cleanup)S(A.cleanup,"cleanup"),j=A.cleanup;return new N((h,a)=>{let J0=v(O,A,(D0)=>{if(j)J0();if(D0)a(D0);else h()})})}I.exports=v,I.exports.finished=P}),OG=L1(($,I)=>{var G=g4(),{aggregateTwoErrors:Z,codes:{ERR_MULTIPLE_CALLBACK:_},AbortError:J}=iU(),{Symbol:Y}=d1(),{kIsDestroyed:W,isDestroyed:R,isFinished:M,isServerRequest:E}=k_(),T=Y("kDestroy"),S=Y("kConstruct");function N(Q,K,F){if(Q){if(Q.stack,K&&!K.errored)K.errored=Q;if(F&&!F.errored)F.errored=Q}}function B(Q,K){let F=this._readableState,L=this._writableState,H=L||F;if(L!==null&&L!==void 0&&L.destroyed||F!==null&&F!==void 0&&F.destroyed){if(typeof K==="function")K();return this}if(N(Q,L,F),L)L.destroyed=!0;if(F)F.destroyed=!0;if(!H.constructed)this.once(T,function(v){x(this,Z(v,Q),K)});else x(this,Q,K);return this}function x(Q,K,F){let L=!1;function H(v){if(L)return;L=!0;let{_readableState:q,_writableState:P}=Q;if(N(v,P,q),P)P.closed=!0;if(q)q.closed=!0;if(typeof F==="function")F(v);if(v)G.nextTick(w,Q,v);else G.nextTick(y,Q)}try{Q._destroy(K||null,H)}catch(v){H(v)}}function w(Q,K){g(Q,K),y(Q)}function y(Q){let{_readableState:K,_writableState:F}=Q;if(F)F.closeEmitted=!0;if(K)K.closeEmitted=!0;if(F!==null&&F!==void 0&&F.emitClose||K!==null&&K!==void 0&&K.emitClose)Q.emit("close")}function g(Q,K){let{_readableState:F,_writableState:L}=Q;if(L!==null&&L!==void 0&&L.errorEmitted||F!==null&&F!==void 0&&F.errorEmitted)return;if(L)L.errorEmitted=!0;if(F)F.errorEmitted=!0;Q.emit("error",K)}function b(){let Q=this._readableState,K=this._writableState;if(Q)Q.constructed=!0,Q.closed=!1,Q.closeEmitted=!1,Q.destroyed=!1,Q.errored=null,Q.errorEmitted=!1,Q.reading=!1,Q.ended=Q.readable===!1,Q.endEmitted=Q.readable===!1;if(K)K.constructed=!0,K.destroyed=!1,K.closed=!1,K.closeEmitted=!1,K.errored=null,K.errorEmitted=!1,K.finalCalled=!1,K.prefinished=!1,K.ended=K.writable===!1,K.ending=K.writable===!1,K.finished=K.writable===!1}function l(Q,K,F){let{_readableState:L,_writableState:H}=Q;if(H!==null&&H!==void 0&&H.destroyed||L!==null&&L!==void 0&&L.destroyed)return this;if(L!==null&&L!==void 0&&L.autoDestroy||H!==null&&H!==void 0&&H.autoDestroy)Q.destroy(K);else if(K){if(K.stack,H&&!H.errored)H.errored=K;if(L&&!L.errored)L.errored=K;if(F)G.nextTick(g,Q,K);else g(Q,K)}}function i(Q,K){if(typeof Q._construct!=="function")return;let{_readableState:F,_writableState:L}=Q;if(F)F.constructed=!1;if(L)L.constructed=!1;if(Q.once(S,K),Q.listenerCount(S)>1)return;G.nextTick($0,Q)}function $0(Q){let K=!1;function F(L){if(K){l(Q,L!==null&&L!==void 0?L:new _);return}K=!0;let{_readableState:H,_writableState:v}=Q,q=v||H;if(H)H.constructed=!0;if(v)v.constructed=!0;if(q.destroyed)Q.emit(T,L);else if(L)l(Q,L,!0);else G.nextTick(Q0,Q)}try{Q._construct((L)=>{G.nextTick(F,L)})}catch(L){G.nextTick(F,L)}}function Q0(Q){Q.emit(S)}function G0(Q){return(Q===null||Q===void 0?void 0:Q.setHeader)&&typeof Q.abort==="function"}function K0(Q){Q.emit("close")}function t(Q,K){Q.emit("error",K),G.nextTick(K0,Q)}function P0(Q,K){if(!Q||R(Q))return;if(!K&&!M(Q))K=new J;if(E(Q))Q.socket=null,Q.destroy(K);else if(G0(Q))Q.abort();else if(G0(Q.req))Q.req.abort();else if(typeof Q.destroy==="function")Q.destroy(K);else if(typeof Q.close==="function")Q.close();else if(K)G.nextTick(t,Q,K);else G.nextTick(K0,Q);if(!Q.destroyed)Q[W]=!0}I.exports={construct:i,destroyer:P0,destroy:B,undestroy:b,errorOrDestroy:l}}),sD=L1(($,I)=>{var{ArrayIsArray:G,ObjectSetPrototypeOf:Z}=d1(),{EventEmitter:_}=(ZG(),V$(zG));function J(W){_.call(this,W)}Z(J.prototype,_.prototype),Z(J,_),J.prototype.pipe=function(W,R){let M=this;function E(y){if(W.writable&&W.write(y)===!1&&M.pause)M.pause()}M.on("data",E);function T(){if(M.readable&&M.resume)M.resume()}if(W.on("drain",T),!W._isStdio&&(!R||R.end!==!1))M.on("end",N),M.on("close",B);let S=!1;function N(){if(S)return;S=!0,W.end()}function B(){if(S)return;if(S=!0,typeof W.destroy==="function")W.destroy()}function x(y){if(w(),_.listenerCount(this,"error")===0)this.emit("error",y)}Y(M,"error",x),Y(W,"error",x);function w(){M.removeListener("data",E),W.removeListener("drain",T),M.removeListener("end",N),M.removeListener("close",B),M.removeListener("error",x),W.removeListener("error",x),M.removeListener("end",w),M.removeListener("close",w),W.removeListener("close",w)}return M.on("end",w),M.on("close",w),W.on("close",w),W.emit("pipe",M),W};function Y(W,R,M){if(typeof W.prependListener==="function")return W.prependListener(R,M);if(!W._events||!W._events[R])W.on(R,M);else if(G(W._events[R]))W._events[R].unshift(M);else W._events[R]=[M,W._events[R]]}I.exports={Stream:J,prependListener:Y}}),jZ=L1(($,I)=>{var{SymbolDispose:G}=d1(),{AbortError:Z,codes:_}=iU(),{isNodeStream:J,isWebStream:Y,kControllerErrorFunction:W}=k_(),R=N2(),{ERR_INVALID_ARG_TYPE:M}=_,E,T=(S,N)=>{if(typeof S!=="object"||!("aborted"in S))throw new M(N,"AbortSignal",S)};I.exports.addAbortSignal=function(S,N){if(T(S,"signal"),!J(N)&&!Y(N))throw new M("stream",["ReadableStream","WritableStream","Stream"],N);return I.exports.addAbortSignalNoValidate(S,N)},I.exports.addAbortSignalNoValidate=function(S,N){if(typeof S!=="object"||!("aborted"in S))return N;let B=J(N)?()=>{N.destroy(new Z(void 0,{cause:S.reason}))}:()=>{N[W](new Z(void 0,{cause:S.reason}))};if(S.aborted)B();else{E=E||z6().addAbortListener;let x=E(S,B);R(N,x[G])}return N}}),yh=L1(($,I)=>{var{StringPrototypeSlice:G,SymbolIterator:Z,TypedArrayPrototypeSet:_,Uint8Array:J}=d1(),{Buffer:Y}=(u1(),V$(h1)),{inspect:W}=z6();I.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(R){let M={data:R,next:null};if(this.length>0)this.tail.next=M;else this.head=M;this.tail=M,++this.length}unshift(R){let M={data:R,next:this.head};if(this.length===0)this.tail=M;this.head=M,++this.length}shift(){if(this.length===0)return;let R=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,R}clear(){this.head=this.tail=null,this.length=0}join(R){if(this.length===0)return"";let M=this.head,E=""+M.data;while((M=M.next)!==null)E+=R+M.data;return E}concat(R){if(this.length===0)return Y.alloc(0);let M=Y.allocUnsafe(R>>>0),E=this.head,T=0;while(E)_(M,E.data,T),T+=E.data.length,E=E.next;return M}consume(R,M){let E=this.head.data;if(R<E.length){let T=E.slice(0,R);return this.head.data=E.slice(R),T}if(R===E.length)return this.shift();return M?this._getString(R):this._getBuffer(R)}first(){return this.head.data}*[Z](){for(let R=this.head;R;R=R.next)yield R.data}_getString(R){let M="",E=this.head,T=0;do{let S=E.data;if(R>S.length)M+=S,R-=S.length;else{if(R===S.length)if(M+=S,++T,E.next)this.head=E.next;else this.head=this.tail=null;else M+=G(S,0,R),this.head=E,E.data=G(S,R);break}++T}while((E=E.next)!==null);return this.length-=T,M}_getBuffer(R){let M=Y.allocUnsafe(R),E=R,T=this.head,S=0;do{let N=T.data;if(R>N.length)_(M,N,E-R),R-=N.length;else{if(R===N.length)if(_(M,N,E-R),++S,T.next)this.head=T.next;else this.head=this.tail=null;else _(M,new J(N.buffer,N.byteOffset,R),E-R),this.head=T,T.data=N.slice(R);break}++S}while((T=T.next)!==null);return this.length-=S,M}[Symbol.for("nodejs.util.inspect.custom")](R,M){return W(this,{...M,depth:0,customInspect:!1})}}}),kZ=L1(($,I)=>{var{MathFloor:G,NumberIsInteger:Z}=d1(),{validateInteger:_}=pJ(),{ERR_INVALID_ARG_VALUE:J}=iU().codes,Y=16384,W=16;function R(S,N,B){return S.highWaterMark!=null?S.highWaterMark:N?S[B]:null}function M(S){return S?W:Y}function E(S,N){if(_(N,"value",0),S)W=N;else Y=N}function T(S,N,B,x){let w=R(N,x,B);if(w!=null){if(!Z(w)||w<0){let y=x?`options.${B}`:"options.highWaterMark";throw new J(y,w)}return G(w)}return M(S.objectMode)}I.exports={getHighWaterMark:T,getDefaultHighWaterMark:M,setDefaultHighWaterMark:E}}),bh=L1(($,I)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var G=(u1(),V$(h1)),Z=G.Buffer;function _(Y,W){for(var R in Y)W[R]=Y[R]}if(Z.from&&Z.alloc&&Z.allocUnsafe&&Z.allocUnsafeSlow)I.exports=G;else _(G,$),$.Buffer=J;function J(Y,W,R){return Z(Y,W,R)}J.prototype=Object.create(Z.prototype),_(Z,J),J.from=function(Y,W,R){if(typeof Y==="number")throw TypeError("Argument must not be a number");return Z(Y,W,R)},J.alloc=function(Y,W,R){if(typeof Y!=="number")throw TypeError("Argument must be a number");var M=Z(Y);if(W!==void 0)if(typeof R==="string")M.fill(W,R);else M.fill(W);else M.fill(0);return M},J.allocUnsafe=function(Y){if(typeof Y!=="number")throw TypeError("Argument must be a number");return Z(Y)},J.allocUnsafeSlow=function(Y){if(typeof Y!=="number")throw TypeError("Argument must be a number");return G.SlowBuffer(Y)}}),hh=L1(($)=>{var I=bh().Buffer,G=I.isEncoding||function(g){switch(g=""+g,g&&g.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Z(g){if(!g)return"utf8";var b;while(!0)switch(g){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return g;default:if(b)return;g=(""+g).toLowerCase(),b=!0}}function _(g){var b=Z(g);if(typeof b!=="string"&&(I.isEncoding===G||!G(g)))throw Error("Unknown encoding: "+g);return b||g}$.StringDecoder=J;function J(g){this.encoding=_(g);var b;switch(this.encoding){case"utf16le":this.text=S,this.end=N,b=4;break;case"utf8":this.fillLast=M,b=4;break;case"base64":this.text=B,this.end=x,b=3;break;default:this.write=w,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=I.allocUnsafe(b)}J.prototype.write=function(g){if(g.length===0)return"";var b,l;if(this.lastNeed){if(b=this.fillLast(g),b===void 0)return"";l=this.lastNeed,this.lastNeed=0}else l=0;if(l<g.length)return b?b+this.text(g,l):this.text(g,l);return b||""},J.prototype.end=T,J.prototype.text=E,J.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length};function Y(g){if(g<=127)return 0;else if(g>>5===6)return 2;else if(g>>4===14)return 3;else if(g>>3===30)return 4;return g>>6===2?-1:-2}function W(g,b,l){var i=b.length-1;if(i<l)return 0;var $0=Y(b[i]);if($0>=0){if($0>0)g.lastNeed=$0-1;return $0}if(--i<l||$0===-2)return 0;if($0=Y(b[i]),$0>=0){if($0>0)g.lastNeed=$0-2;return $0}if(--i<l||$0===-2)return 0;if($0=Y(b[i]),$0>=0){if($0>0)if($0===2)$0=0;else g.lastNeed=$0-3;return $0}return 0}function R(g,b,l){if((b[0]&192)!==128)return g.lastNeed=0,"�";if(g.lastNeed>1&&b.length>1){if((b[1]&192)!==128)return g.lastNeed=1,"�";if(g.lastNeed>2&&b.length>2){if((b[2]&192)!==128)return g.lastNeed=2,"�"}}}function M(g){var b=this.lastTotal-this.lastNeed,l=R(this,g,b);if(l!==void 0)return l;if(this.lastNeed<=g.length)return g.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,b,0,g.length),this.lastNeed-=g.length}function E(g,b){var l=W(this,g,b);if(!this.lastNeed)return g.toString("utf8",b);this.lastTotal=l;var i=g.length-(l-this.lastNeed);return g.copy(this.lastChar,0,i),g.toString("utf8",b,i)}function T(g){var b=g&&g.length?this.write(g):"";if(this.lastNeed)return b+"�";return b}function S(g,b){if((g.length-b)%2===0){var l=g.toString("utf16le",b);if(l){var i=l.charCodeAt(l.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],l.slice(0,-1)}return l}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",b,g.length-1)}function N(g){var b=g&&g.length?this.write(g):"";if(this.lastNeed){var l=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,l)}return b}function B(g,b){var l=(g.length-b)%3;if(l===0)return g.toString("base64",b);if(this.lastNeed=3-l,this.lastTotal=3,l===1)this.lastChar[0]=g[g.length-1];else this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1];return g.toString("base64",b,g.length-l)}function x(g){var b=g&&g.length?this.write(g):"";if(this.lastNeed)return b+this.lastChar.toString("base64",0,3-this.lastNeed);return b}function w(g){return g.toString(this.encoding)}function y(g){return g&&g.length?this.write(g):""}}),EN=L1(($,I)=>{var G=g4(),{PromisePrototypeThen:Z,SymbolAsyncIterator:_,SymbolIterator:J}=d1(),{Buffer:Y}=(u1(),V$(h1)),{ERR_INVALID_ARG_TYPE:W,ERR_STREAM_NULL_VALUES:R}=iU().codes;function M(E,T,S){let N;if(typeof T==="string"||T instanceof Y)return new E({objectMode:!0,...S,read(){this.push(T),this.push(null)}});let B;if(T&&T[_])B=!0,N=T[_]();else if(T&&T[J])B=!1,N=T[J]();else throw new W("iterable",["Iterable"],T);let x=new E({objectMode:!0,highWaterMark:1,...S}),w=!1;x._read=function(){if(!w)w=!0,g()},x._destroy=function(b,l){Z(y(b),()=>G.nextTick(l,b),(i)=>G.nextTick(l,i||b))};async function y(b){let l=b!==void 0&&b!==null,i=typeof N.throw==="function";if(l&&i){let{value:$0,done:Q0}=await N.throw(b);if(await $0,Q0)return}if(typeof N.return==="function"){let{value:$0}=await N.return();await $0}}async function g(){for(;;){try{let{value:b,done:l}=B?await N.next():N.next();if(l)x.push(null);else{let i=b&&typeof b.then==="function"?await b:b;if(i===null)throw w=!1,new R;else if(x.push(i))continue;else w=!1}}catch(b){x.destroy(b)}break}}return x}I.exports=M}),gZ=L1(($,I)=>{var G=g4(),{ArrayPrototypeIndexOf:Z,NumberIsInteger:_,NumberIsNaN:J,NumberParseInt:Y,ObjectDefineProperties:W,ObjectKeys:R,ObjectSetPrototypeOf:M,Promise:E,SafeSet:T,SymbolAsyncDispose:S,SymbolAsyncIterator:N,Symbol:B}=d1();I.exports=k0,k0.ReadableState=s0;var{EventEmitter:x}=(ZG(),V$(zG)),{Stream:w,prependListener:y}=sD(),{Buffer:g}=(u1(),V$(h1)),{addAbortSignal:b}=jZ(),l=N2(),i=z6().debuglog("stream",(e)=>{i=e}),$0=yh(),Q0=OG(),{getHighWaterMark:G0,getDefaultHighWaterMark:K0}=kZ(),{aggregateTwoErrors:t,codes:{ERR_INVALID_ARG_TYPE:P0,ERR_METHOD_NOT_IMPLEMENTED:Q,ERR_OUT_OF_RANGE:K,ERR_STREAM_PUSH_AFTER_EOF:F,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:L},AbortError:H}=iU(),{validateObject:v}=pJ(),q=B("kPaused"),{StringDecoder:P}=hh(),O=EN();M(k0.prototype,w.prototype),M(k0,w);var A=()=>{},{errorOrDestroy:k}=Q0,j=1,h=2,a=4,J0=8,D0=16,O0=32,d=64,m=128,r=256,Y0=512,W0=1024,I0=2048,c=4096,s=8192,S0=16384,M0=32768,z0=65536,c0=131072,F0=262144;function q0(e){return{enumerable:!1,get(){return(this.state&e)!==0},set(E0){if(E0)this.state|=e;else this.state&=~e}}}W(s0.prototype,{objectMode:q0(j),ended:q0(h),endEmitted:q0(a),reading:q0(J0),constructed:q0(D0),sync:q0(O0),needReadable:q0(d),emittedReadable:q0(m),readableListening:q0(r),resumeScheduled:q0(Y0),errorEmitted:q0(W0),emitClose:q0(I0),autoDestroy:q0(c),destroyed:q0(s),closed:q0(S0),closeEmitted:q0(M0),multiAwaitDrain:q0(z0),readingMore:q0(c0),dataEmitted:q0(F0)});function s0(e,E0,b0){if(typeof b0!=="boolean")b0=E0 instanceof j_();if(this.state=I0|c|D0|O0,e&&e.objectMode)this.state|=j;if(b0&&e&&e.readableObjectMode)this.state|=j;if(this.highWaterMark=e?G0(this,e,"readableHighWaterMark",b0):K0(!1),this.buffer=new $0,this.length=0,this.pipes=[],this.flowing=null,this[q]=null,e&&e.emitClose===!1)this.state&=~I0;if(e&&e.autoDestroy===!1)this.state&=~c;if(this.errored=null,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,e&&e.encoding)this.decoder=new P(e.encoding),this.encoding=e.encoding}function k0(e){if(!(this instanceof k0))return new k0(e);let E0=this instanceof j_();if(this._readableState=new s0(e,this,E0),e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.construct==="function")this._construct=e.construct;if(e.signal&&!E0)b(e.signal,this)}w.call(this,e),Q0.construct(this,()=>{if(this._readableState.needReadable)N0(this,this._readableState)})}k0.prototype.destroy=Q0.destroy,k0.prototype._undestroy=Q0.undestroy,k0.prototype._destroy=function(e,E0){E0(e)},k0.prototype[x.captureRejectionSymbol]=function(e){this.destroy(e)},k0.prototype[S]=function(){let e;if(!this.destroyed)e=this.readableEnded?null:new H,this.destroy(e);return new E((E0,b0)=>l(this,(f0)=>f0&&f0!==e?b0(f0):E0(null)))},k0.prototype.push=function(e,E0){return n0(this,e,E0,!1)},k0.prototype.unshift=function(e,E0){return n0(this,e,E0,!0)};function n0(e,E0,b0,f0){i("readableAddChunk",E0);let z$=e._readableState,a0;if((z$.state&j)===0){if(typeof E0==="string"){if(b0=b0||z$.defaultEncoding,z$.encoding!==b0)if(f0&&z$.encoding)E0=g.from(E0,b0).toString(z$.encoding);else E0=g.from(E0,b0),b0=""}else if(E0 instanceof g)b0="";else if(w._isUint8Array(E0))E0=w._uint8ArrayToBuffer(E0),b0="";else if(E0!=null)a0=new P0("chunk",["string","Buffer","Uint8Array"],E0)}if(a0)k(e,a0);else if(E0===null)z$.state&=~J0,p0(e,z$);else if((z$.state&j)!==0||E0&&E0.length>0)if(f0)if((z$.state&a)!==0)k(e,new L);else if(z$.destroyed||z$.errored)return!1;else M$(e,z$,E0,!0);else if(z$.ended)k(e,new F);else if(z$.destroyed||z$.errored)return!1;else if(z$.state&=~J0,z$.decoder&&!b0)if(E0=z$.decoder.write(E0),z$.objectMode||E0.length!==0)M$(e,z$,E0,!1);else N0(e,z$);else M$(e,z$,E0,!1);else if(!f0)z$.state&=~J0,N0(e,z$);return!z$.ended&&(z$.length<z$.highWaterMark||z$.length===0)}function M$(e,E0,b0,f0){if(E0.flowing&&E0.length===0&&!E0.sync&&e.listenerCount("data")>0){if((E0.state&z0)!==0)E0.awaitDrainWriters.clear();else E0.awaitDrainWriters=null;E0.dataEmitted=!0,e.emit("data",b0)}else{if(E0.length+=E0.objectMode?1:b0.length,f0)E0.buffer.unshift(b0);else E0.buffer.push(b0);if((E0.state&d)!==0)l0(e)}N0(e,E0)}k0.prototype.isPaused=function(){let e=this._readableState;return e[q]===!0||e.flowing===!1},k0.prototype.setEncoding=function(e){let E0=new P(e);this._readableState.decoder=E0,this._readableState.encoding=this._readableState.decoder.encoding;let b0=this._readableState.buffer,f0="";for(let z$ of b0)f0+=E0.write(z$);if(b0.clear(),f0!=="")b0.push(f0);return this._readableState.length=f0.length,this};var T0=1073741824;function V0(e){if(e>T0)throw new K("size","<= 1GiB",e);else e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++;return e}function X$(e,E0){if(e<=0||E0.length===0&&E0.ended)return 0;if((E0.state&j)!==0)return 1;if(J(e)){if(E0.flowing&&E0.length)return E0.buffer.first().length;return E0.length}if(e<=E0.length)return e;return E0.ended?E0.length:0}k0.prototype.read=function(e){if(i("read",e),e===void 0)e=NaN;else if(!_(e))e=Y(e,10);let E0=this._readableState,b0=e;if(e>E0.highWaterMark)E0.highWaterMark=V0(e);if(e!==0)E0.state&=~m;if(e===0&&E0.needReadable&&((E0.highWaterMark!==0?E0.length>=E0.highWaterMark:E0.length>0)||E0.ended)){if(i("read: emitReadable",E0.length,E0.ended),E0.length===0&&E0.ended)X0(this);else l0(this);return null}if(e=X$(e,E0),e===0&&E0.ended){if(E0.length===0)X0(this);return null}let f0=(E0.state&d)!==0;if(i("need readable",f0),E0.length===0||E0.length-e<E0.highWaterMark)f0=!0,i("length less than watermark",f0);if(E0.ended||E0.reading||E0.destroyed||E0.errored||!E0.constructed)f0=!1,i("reading, ended or constructing",f0);else if(f0){if(i("do read"),E0.state|=J0|O0,E0.length===0)E0.state|=d;try{this._read(E0.highWaterMark)}catch(a0){k(this,a0)}if(E0.state&=~O0,!E0.reading)e=X$(b0,E0)}let z$;if(e>0)z$=v0(e,E0);else z$=null;if(z$===null)E0.needReadable=E0.length<=E0.highWaterMark,e=0;else if(E0.length-=e,E0.multiAwaitDrain)E0.awaitDrainWriters.clear();else E0.awaitDrainWriters=null;if(E0.length===0){if(!E0.ended)E0.needReadable=!0;if(b0!==e&&E0.ended)X0(this)}if(z$!==null&&!E0.errorEmitted&&!E0.closeEmitted)E0.dataEmitted=!0,this.emit("data",z$);return z$};function p0(e,E0){if(i("onEofChunk"),E0.ended)return;if(E0.decoder){let b0=E0.decoder.end();if(b0&&b0.length)E0.buffer.push(b0),E0.length+=E0.objectMode?1:b0.length}if(E0.ended=!0,E0.sync)l0(e);else E0.needReadable=!1,E0.emittedReadable=!0,L0(e)}function l0(e){let E0=e._readableState;if(i("emitReadable",E0.needReadable,E0.emittedReadable),E0.needReadable=!1,!E0.emittedReadable)i("emitReadable",E0.flowing),E0.emittedReadable=!0,G.nextTick(L0,e)}function L0(e){let E0=e._readableState;if(i("emitReadable_",E0.destroyed,E0.length,E0.ended),!E0.destroyed&&!E0.errored&&(E0.length||E0.ended))e.emit("readable"),E0.emittedReadable=!1;E0.needReadable=!E0.flowing&&!E0.ended&&E0.length<=E0.highWaterMark,x0(e)}function N0(e,E0){if(!E0.readingMore&&E0.constructed)E0.readingMore=!0,G.nextTick(B0,e,E0)}function B0(e,E0){while(!E0.reading&&!E0.ended&&(E0.length<E0.highWaterMark||E0.flowing&&E0.length===0)){let b0=E0.length;if(i("maybeReadMore read 0"),e.read(0),b0===E0.length)break}E0.readingMore=!1}k0.prototype._read=function(e){throw new Q("_read()")},k0.prototype.pipe=function(e,E0){let b0=this,f0=this._readableState;if(f0.pipes.length===1){if(!f0.multiAwaitDrain)f0.multiAwaitDrain=!0,f0.awaitDrainWriters=new T(f0.awaitDrainWriters?[f0.awaitDrainWriters]:[])}f0.pipes.push(e),i("pipe count=%d opts=%j",f0.pipes.length,E0);let z$=(!E0||E0.end!==!1)&&e!==G.stdout&&e!==G.stderr?U$:g$;if(f0.endEmitted)G.nextTick(z$);else b0.once("end",z$);e.on("unpipe",a0);function a0(z1,U1){if(i("onunpipe"),z1===b0){if(U1&&U1.hasUnpiped===!1)U1.hasUnpiped=!0,L$()}}function U$(){i("onend"),e.end()}let c$,K$=!1;function L$(){if(i("cleanup"),e.removeListener("close",I1),e.removeListener("finish",C$),c$)e.removeListener("drain",c$);if(e.removeListener("error",I$),e.removeListener("unpipe",a0),b0.removeListener("end",U$),b0.removeListener("end",g$),b0.removeListener("data",Z$),K$=!0,c$&&f0.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain))c$()}function B$(){if(!K$){if(f0.pipes.length===1&&f0.pipes[0]===e)i("false write response, pause",0),f0.awaitDrainWriters=e,f0.multiAwaitDrain=!1;else if(f0.pipes.length>1&&f0.pipes.includes(e))i("false write response, pause",f0.awaitDrainWriters.size),f0.awaitDrainWriters.add(e);b0.pause()}if(!c$)c$=Y$(b0,e),e.on("drain",c$)}b0.on("data",Z$);function Z$(z1){i("ondata");let U1=e.write(z1);if(i("dest.write",U1),U1===!1)B$()}function I$(z1){if(i("onerror",z1),g$(),e.removeListener("error",I$),e.listenerCount("error")===0){let U1=e._writableState||e._readableState;if(U1&&!U1.errorEmitted)k(e,z1);else e.emit("error",z1)}}y(e,"error",I$);function I1(){e.removeListener("finish",C$),g$()}e.once("close",I1);function C$(){i("onfinish"),e.removeListener("close",I1),g$()}e.once("finish",C$);function g$(){i("unpipe"),b0.unpipe(e)}if(e.emit("pipe",b0),e.writableNeedDrain===!0)B$();else if(!f0.flowing)i("pipe resume"),b0.resume();return e};function Y$(e,E0){return function(){let b0=e._readableState;if(b0.awaitDrainWriters===E0)i("pipeOnDrain",1),b0.awaitDrainWriters=null;else if(b0.multiAwaitDrain)i("pipeOnDrain",b0.awaitDrainWriters.size),b0.awaitDrainWriters.delete(E0);if((!b0.awaitDrainWriters||b0.awaitDrainWriters.size===0)&&e.listenerCount("data"))e.resume()}}k0.prototype.unpipe=function(e){let E0=this._readableState,b0={hasUnpiped:!1};if(E0.pipes.length===0)return this;if(!e){let z$=E0.pipes;E0.pipes=[],this.pause();for(let a0=0;a0<z$.length;a0++)z$[a0].emit("unpipe",this,{hasUnpiped:!1});return this}let f0=Z(E0.pipes,e);if(f0===-1)return this;if(E0.pipes.splice(f0,1),E0.pipes.length===0)this.pause();return e.emit("unpipe",this,b0),this},k0.prototype.on=function(e,E0){let b0=w.prototype.on.call(this,e,E0),f0=this._readableState;if(e==="data"){if(f0.readableListening=this.listenerCount("readable")>0,f0.flowing!==!1)this.resume()}else if(e==="readable"){if(!f0.endEmitted&&!f0.readableListening){if(f0.readableListening=f0.needReadable=!0,f0.flowing=!1,f0.emittedReadable=!1,i("on readable",f0.length,f0.reading),f0.length)l0(this);else if(!f0.reading)G.nextTick(_0,this)}}return b0},k0.prototype.addListener=k0.prototype.on,k0.prototype.removeListener=function(e,E0){let b0=w.prototype.removeListener.call(this,e,E0);if(e==="readable")G.nextTick(u,this);return b0},k0.prototype.off=k0.prototype.removeListener,k0.prototype.removeAllListeners=function(e){let E0=w.prototype.removeAllListeners.apply(this,arguments);if(e==="readable"||e===void 0)G.nextTick(u,this);return E0};function u(e){let E0=e._readableState;if(E0.readableListening=e.listenerCount("readable")>0,E0.resumeScheduled&&E0[q]===!1)E0.flowing=!0;else if(e.listenerCount("data")>0)e.resume();else if(!E0.readableListening)E0.flowing=null}function _0(e){i("readable nexttick read 0"),e.read(0)}k0.prototype.resume=function(){let e=this._readableState;if(!e.flowing)i("resume"),e.flowing=!e.readableListening,o(this,e);return e[q]=!1,this};function o(e,E0){if(!E0.resumeScheduled)E0.resumeScheduled=!0,G.nextTick(R0,e,E0)}function R0(e,E0){if(i("resume",E0.reading),!E0.reading)e.read(0);if(E0.resumeScheduled=!1,e.emit("resume"),x0(e),E0.flowing&&!E0.reading)e.read(0)}k0.prototype.pause=function(){if(i("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)i("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState[q]=!0,this};function x0(e){let E0=e._readableState;i("flow",E0.flowing);while(E0.flowing&&e.read()!==null);}k0.prototype.wrap=function(e){let E0=!1;e.on("data",(f0)=>{if(!this.push(f0)&&e.pause)E0=!0,e.pause()}),e.on("end",()=>{this.push(null)}),e.on("error",(f0)=>{k(this,f0)}),e.on("close",()=>{this.destroy()}),e.on("destroy",()=>{this.destroy()}),this._read=()=>{if(E0&&e.resume)E0=!1,e.resume()};let b0=R(e);for(let f0=1;f0<b0.length;f0++){let z$=b0[f0];if(this[z$]===void 0&&typeof e[z$]==="function")this[z$]=e[z$].bind(e)}return this},k0.prototype[N]=function(){return p(this)},k0.prototype.iterator=function(e){if(e!==void 0)v(e,"options");return p(this,e)};function p(e,E0){if(typeof e.read!=="function")e=k0.wrap(e,{objectMode:!0});let b0=A0(e,E0);return b0.stream=e,b0}async function*A0(e,E0){let b0=A;function f0(U$){if(this===e)b0(),b0=A;else b0=U$}e.on("readable",f0);let z$,a0=l(e,{writable:!1},(U$)=>{z$=U$?t(z$,U$):null,b0(),b0=A});try{while(!0){let U$=e.destroyed?null:e.read();if(U$!==null)yield U$;else if(z$)throw z$;else if(z$===null)return;else await new E(f0)}}catch(U$){throw z$=t(z$,U$),z$}finally{if((z$||(E0===null||E0===void 0?void 0:E0.destroyOnReturn)!==!1)&&(z$===void 0||e._readableState.autoDestroy))Q0.destroyer(e,null);else e.off("readable",f0),a0()}}W(k0.prototype,{readable:{__proto__:null,get(){let e=this._readableState;return!!e&&e.readable!==!1&&!e.destroyed&&!e.errorEmitted&&!e.endEmitted},set(e){if(this._readableState)this._readableState.readable=!!e}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){if(this._readableState)this._readableState.flowing=e}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(e){if(!this._readableState)return;this._readableState.destroyed=e}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),W(s0.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[q]!==!1},set(e){this[q]=!!e}}}),k0._fromList=v0;function v0(e,E0){if(E0.length===0)return null;let b0;if(E0.objectMode)b0=E0.buffer.shift();else if(!e||e>=E0.length){if(E0.decoder)b0=E0.buffer.join("");else if(E0.buffer.length===1)b0=E0.buffer.first();else b0=E0.buffer.concat(E0.length);E0.buffer.clear()}else b0=E0.buffer.consume(e,E0.decoder);return b0}function X0(e){let E0=e._readableState;if(i("endReadable",E0.endEmitted),!E0.endEmitted)E0.ended=!0,G.nextTick(H0,E0,e)}function H0(e,E0){if(i("endReadableNT",e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&e.length===0){if(e.endEmitted=!0,E0.emit("end"),E0.writable&&E0.allowHalfOpen===!1)G.nextTick(C0,E0);else if(e.autoDestroy){let b0=E0._writableState;if(!b0||b0.autoDestroy&&(b0.finished||b0.writable===!1))E0.destroy()}}}function C0(e){if(e.writable&&!e.writableEnded&&!e.destroyed)e.end()}k0.from=function(e,E0){return O(k0,e,E0)};var H$;function d0(){if(H$===void 0)H$={};return H$}k0.fromWeb=function(e,E0){return d0().newStreamReadableFromReadableStream(e,E0)},k0.toWeb=function(e,E0){return d0().newReadableStreamFromStreamReadable(e,E0)},k0.wrap=function(e,E0){var b0,f0;return new k0({objectMode:(b0=(f0=e.readableObjectMode)!==null&&f0!==void 0?f0:e.objectMode)!==null&&b0!==void 0?b0:!0,...E0,destroy(z$,a0){Q0.destroyer(e,z$),a0(z$)}}).wrap(e)}}),eD=L1(($,I)=>{var G=g4(),{ArrayPrototypeSlice:Z,Error:_,FunctionPrototypeSymbolHasInstance:J,ObjectDefineProperty:Y,ObjectDefineProperties:W,ObjectSetPrototypeOf:R,StringPrototypeToLowerCase:M,Symbol:E,SymbolHasInstance:T}=d1();I.exports=v,v.WritableState=L;var{EventEmitter:S}=(ZG(),V$(zG)),N=sD().Stream,{Buffer:B}=(u1(),V$(h1)),x=OG(),{addAbortSignal:w}=jZ(),{getHighWaterMark:y,getDefaultHighWaterMark:g}=kZ(),{ERR_INVALID_ARG_TYPE:b,ERR_METHOD_NOT_IMPLEMENTED:l,ERR_MULTIPLE_CALLBACK:i,ERR_STREAM_CANNOT_PIPE:$0,ERR_STREAM_DESTROYED:Q0,ERR_STREAM_ALREADY_FINISHED:G0,ERR_STREAM_NULL_VALUES:K0,ERR_STREAM_WRITE_AFTER_END:t,ERR_UNKNOWN_ENCODING:P0}=iU().codes,{errorOrDestroy:Q}=x;R(v.prototype,N.prototype),R(v,N);function K(){}var F=E("kOnFinished");function L(c,s,S0){if(typeof S0!=="boolean")S0=s instanceof j_();if(this.objectMode=!!(c&&c.objectMode),S0)this.objectMode=this.objectMode||!!(c&&c.writableObjectMode);this.highWaterMark=c?y(this,c,"writableHighWaterMark",S0):g(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let M0=!!(c&&c.decodeStrings===!1);this.decodeStrings=!M0,this.defaultEncoding=c&&c.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=k.bind(void 0,s),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,H(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!c||c.emitClose!==!1,this.autoDestroy=!c||c.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[F]=[]}function H(c){c.buffered=[],c.bufferedIndex=0,c.allBuffers=!0,c.allNoop=!0}L.prototype.getBuffer=function(){return Z(this.buffered,this.bufferedIndex)},Y(L.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function v(c){let s=this instanceof j_();if(!s&&!J(v,this))return new v(c);if(this._writableState=new L(c,this,s),c){if(typeof c.write==="function")this._write=c.write;if(typeof c.writev==="function")this._writev=c.writev;if(typeof c.destroy==="function")this._destroy=c.destroy;if(typeof c.final==="function")this._final=c.final;if(typeof c.construct==="function")this._construct=c.construct;if(c.signal)w(c.signal,this)}N.call(this,c),x.construct(this,()=>{let S0=this._writableState;if(!S0.writing)J0(this,S0);m(this,S0)})}Y(v,T,{__proto__:null,value:function(c){if(J(this,c))return!0;if(this!==v)return!1;return c&&c._writableState instanceof L}}),v.prototype.pipe=function(){Q(this,new $0)};function q(c,s,S0,M0){let z0=c._writableState;if(typeof S0==="function")M0=S0,S0=z0.defaultEncoding;else{if(!S0)S0=z0.defaultEncoding;else if(S0!=="buffer"&&!B.isEncoding(S0))throw new P0(S0);if(typeof M0!=="function")M0=K}if(s===null)throw new K0;else if(!z0.objectMode)if(typeof s==="string"){if(z0.decodeStrings!==!1)s=B.from(s,S0),S0="buffer"}else if(s instanceof B)S0="buffer";else if(N._isUint8Array(s))s=N._uint8ArrayToBuffer(s),S0="buffer";else throw new b("chunk",["string","Buffer","Uint8Array"],s);let c0;if(z0.ending)c0=new t;else if(z0.destroyed)c0=new Q0("write");if(c0)return G.nextTick(M0,c0),Q(c,c0,!0),c0;return z0.pendingcb++,P(c,z0,s,S0,M0)}v.prototype.write=function(c,s,S0){return q(this,c,s,S0)===!0},v.prototype.cork=function(){this._writableState.corked++},v.prototype.uncork=function(){let c=this._writableState;if(c.corked){if(c.corked--,!c.writing)J0(this,c)}},v.prototype.setDefaultEncoding=function(c){if(typeof c==="string")c=M(c);if(!B.isEncoding(c))throw new P0(c);return this._writableState.defaultEncoding=c,this};function P(c,s,S0,M0,z0){let c0=s.objectMode?1:S0.length;s.length+=c0;let F0=s.length<s.highWaterMark;if(!F0)s.needDrain=!0;if(s.writing||s.corked||s.errored||!s.constructed){if(s.buffered.push({chunk:S0,encoding:M0,callback:z0}),s.allBuffers&&M0!=="buffer")s.allBuffers=!1;if(s.allNoop&&z0!==K)s.allNoop=!1}else s.writelen=c0,s.writecb=z0,s.writing=!0,s.sync=!0,c._write(S0,M0,s.onwrite),s.sync=!1;return F0&&!s.errored&&!s.destroyed}function O(c,s,S0,M0,z0,c0,F0){if(s.writelen=M0,s.writecb=F0,s.writing=!0,s.sync=!0,s.destroyed)s.onwrite(new Q0("write"));else if(S0)c._writev(z0,s.onwrite);else c._write(z0,c0,s.onwrite);s.sync=!1}function A(c,s,S0,M0){--s.pendingcb,M0(S0),a(s),Q(c,S0)}function k(c,s){let S0=c._writableState,M0=S0.sync,z0=S0.writecb;if(typeof z0!=="function"){Q(c,new i);return}if(S0.writing=!1,S0.writecb=null,S0.length-=S0.writelen,S0.writelen=0,s){if(s.stack,!S0.errored)S0.errored=s;if(c._readableState&&!c._readableState.errored)c._readableState.errored=s;if(M0)G.nextTick(A,c,S0,s,z0);else A(c,S0,s,z0)}else{if(S0.buffered.length>S0.bufferedIndex)J0(c,S0);if(M0)if(S0.afterWriteTickInfo!==null&&S0.afterWriteTickInfo.cb===z0)S0.afterWriteTickInfo.count++;else S0.afterWriteTickInfo={count:1,cb:z0,stream:c,state:S0},G.nextTick(j,S0.afterWriteTickInfo);else h(c,S0,1,z0)}}function j({stream:c,state:s,count:S0,cb:M0}){return s.afterWriteTickInfo=null,h(c,s,S0,M0)}function h(c,s,S0,M0){if(!s.ending&&!c.destroyed&&s.length===0&&s.needDrain)s.needDrain=!1,c.emit("drain");while(S0-- >0)s.pendingcb--,M0();if(s.destroyed)a(s);m(c,s)}function a(c){if(c.writing)return;for(let z0=c.bufferedIndex;z0<c.buffered.length;++z0){var s;let{chunk:c0,callback:F0}=c.buffered[z0],q0=c.objectMode?1:c0.length;c.length-=q0,F0((s=c.errored)!==null&&s!==void 0?s:new Q0("write"))}let S0=c[F].splice(0);for(let z0=0;z0<S0.length;z0++){var M0;S0[z0]((M0=c.errored)!==null&&M0!==void 0?M0:new Q0("end"))}H(c)}function J0(c,s){if(s.corked||s.bufferProcessing||s.destroyed||!s.constructed)return;let{buffered:S0,bufferedIndex:M0,objectMode:z0}=s,c0=S0.length-M0;if(!c0)return;let F0=M0;if(s.bufferProcessing=!0,c0>1&&c._writev){s.pendingcb-=c0-1;let q0=s.allNoop?K:(k0)=>{for(let n0=F0;n0<S0.length;++n0)S0[n0].callback(k0)},s0=s.allNoop&&F0===0?S0:Z(S0,F0);s0.allBuffers=s.allBuffers,O(c,s,!0,s.length,s0,"",q0),H(s)}else{do{let{chunk:q0,encoding:s0,callback:k0}=S0[F0];S0[F0++]=null;let n0=z0?1:q0.length;O(c,s,!1,n0,q0,s0,k0)}while(F0<S0.length&&!s.writing);if(F0===S0.length)H(s);else if(F0>256)S0.splice(0,F0),s.bufferedIndex=0;else s.bufferedIndex=F0}s.bufferProcessing=!1}v.prototype._write=function(c,s,S0){if(this._writev)this._writev([{chunk:c,encoding:s}],S0);else throw new l("_write()")},v.prototype._writev=null,v.prototype.end=function(c,s,S0){let M0=this._writableState;if(typeof c==="function")S0=c,c=null,s=null;else if(typeof s==="function")S0=s,s=null;let z0;if(c!==null&&c!==void 0){let c0=q(this,c,s);if(c0 instanceof _)z0=c0}if(M0.corked)M0.corked=1,this.uncork();if(z0);else if(!M0.errored&&!M0.ending)M0.ending=!0,m(this,M0,!0),M0.ended=!0;else if(M0.finished)z0=new G0("end");else if(M0.destroyed)z0=new Q0("end");if(typeof S0==="function")if(z0||M0.finished)G.nextTick(S0,z0);else M0[F].push(S0);return this};function D0(c){return c.ending&&!c.destroyed&&c.constructed&&c.length===0&&!c.errored&&c.buffered.length===0&&!c.finished&&!c.writing&&!c.errorEmitted&&!c.closeEmitted}function O0(c,s){let S0=!1;function M0(z0){if(S0){Q(c,z0!==null&&z0!==void 0?z0:i());return}if(S0=!0,s.pendingcb--,z0){let c0=s[F].splice(0);for(let F0=0;F0<c0.length;F0++)c0[F0](z0);Q(c,z0,s.sync)}else if(D0(s))s.prefinished=!0,c.emit("prefinish"),s.pendingcb++,G.nextTick(r,c,s)}s.sync=!0,s.pendingcb++;try{c._final(M0)}catch(z0){M0(z0)}s.sync=!1}function d(c,s){if(!s.prefinished&&!s.finalCalled)if(typeof c._final==="function"&&!s.destroyed)s.finalCalled=!0,O0(c,s);else s.prefinished=!0,c.emit("prefinish")}function m(c,s,S0){if(D0(s)){if(d(c,s),s.pendingcb===0){if(S0)s.pendingcb++,G.nextTick((M0,z0)=>{if(D0(z0))r(M0,z0);else z0.pendingcb--},c,s);else if(D0(s))s.pendingcb++,r(c,s)}}}function r(c,s){s.pendingcb--,s.finished=!0;let S0=s[F].splice(0);for(let M0=0;M0<S0.length;M0++)S0[M0]();if(c.emit("finish"),s.autoDestroy){let M0=c._readableState;if(!M0||M0.autoDestroy&&(M0.endEmitted||M0.readable===!1))c.destroy()}}W(v.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(c){if(this._writableState)this._writableState.destroyed=c}},writable:{__proto__:null,get(){let c=this._writableState;return!!c&&c.writable!==!1&&!c.destroyed&&!c.errored&&!c.ending&&!c.ended},set(c){if(this._writableState)this._writableState.writable=!!c}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let c=this._writableState;if(!c)return!1;return!c.destroyed&&!c.ending&&c.needDrain}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var Y0=x.destroy;v.prototype.destroy=function(c,s){let S0=this._writableState;if(!S0.destroyed&&(S0.bufferedIndex<S0.buffered.length||S0[F].length))G.nextTick(a,S0);return Y0.call(this,c,s),this},v.prototype._undestroy=x.undestroy,v.prototype._destroy=function(c,s){s(c)},v.prototype[S.captureRejectionSymbol]=function(c){this.destroy(c)};var W0;function I0(){if(W0===void 0)W0={};return W0}v.fromWeb=function(c,s){return I0().newStreamWritableFromWritableStream(c,s)},v.toWeb=function(c){return I0().newWritableStreamFromStreamWritable(c)}}),uh=L1(($,I)=>{var G=g4(),Z=(u1(),V$(h1)),{isReadable:_,isWritable:J,isIterable:Y,isNodeStream:W,isReadableNodeStream:R,isWritableNodeStream:M,isDuplexNodeStream:E,isReadableStream:T,isWritableStream:S}=k_(),N=N2(),{AbortError:B,codes:{ERR_INVALID_ARG_TYPE:x,ERR_INVALID_RETURN_VALUE:w}}=iU(),{destroyer:y}=OG(),g=j_(),b=gZ(),l=eD(),{createDeferredPromise:i}=z6(),$0=EN(),Q0=globalThis.Blob||Z.Blob,G0=typeof Q0<"u"?function(F){return F instanceof Q0}:function(F){return!1},K0=globalThis.AbortController||nJ().AbortController,{FunctionPrototypeCall:t}=d1();class P0 extends g{constructor(F){super(F);if((F===null||F===void 0?void 0:F.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((F===null||F===void 0?void 0:F.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}I.exports=function F(L,H){if(E(L))return L;if(R(L))return K({readable:L});if(M(L))return K({writable:L});if(W(L))return K({writable:!1,readable:!1});if(T(L))return K({readable:b.fromWeb(L)});if(S(L))return K({writable:l.fromWeb(L)});if(typeof L==="function"){let{value:q,write:P,final:O,destroy:A}=Q(L);if(Y(q))return $0(P0,q,{objectMode:!0,write:P,final:O,destroy:A});let k=q===null||q===void 0?void 0:q.then;if(typeof k==="function"){let j,h=t(k,q,(a)=>{if(a!=null)throw new w("nully","body",a)},(a)=>{y(j,a)});return j=new P0({objectMode:!0,readable:!1,write:P,final(a){O(async()=>{try{await h,G.nextTick(a,null)}catch(J0){G.nextTick(a,J0)}})},destroy:A})}throw new w("Iterable, AsyncIterable or AsyncFunction",H,q)}if(G0(L))return F(L.arrayBuffer());if(Y(L))return $0(P0,L,{objectMode:!0,writable:!1});if(T(L===null||L===void 0?void 0:L.readable)&&S(L===null||L===void 0?void 0:L.writable))return P0.fromWeb(L);if(typeof(L===null||L===void 0?void 0:L.writable)==="object"||typeof(L===null||L===void 0?void 0:L.readable)==="object"){let q=L!==null&&L!==void 0&&L.readable?R(L===null||L===void 0?void 0:L.readable)?L===null||L===void 0?void 0:L.readable:F(L.readable):void 0,P=L!==null&&L!==void 0&&L.writable?M(L===null||L===void 0?void 0:L.writable)?L===null||L===void 0?void 0:L.writable:F(L.writable):void 0;return K({readable:q,writable:P})}let v=L===null||L===void 0?void 0:L.then;if(typeof v==="function"){let q;return t(v,L,(P)=>{if(P!=null)q.push(P);q.push(null)},(P)=>{y(q,P)}),q=new P0({objectMode:!0,writable:!1,read(){}})}throw new x(H,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],L)};function Q(F){let{promise:L,resolve:H}=i(),v=new K0,q=v.signal;return{value:F(async function*(){while(!0){let P=L;L=null;let{chunk:O,done:A,cb:k}=await P;if(G.nextTick(k),A)return;if(q.aborted)throw new B(void 0,{cause:q.reason});({promise:L,resolve:H}=i()),yield O}}(),{signal:q}),write(P,O,A){let k=H;H=null,k({chunk:P,done:!1,cb:A})},final(P){let O=H;H=null,O({done:!0,cb:P})},destroy(P,O){v.abort(),O(P)}}}function K(F){let L=F.readable&&typeof F.readable.read!=="function"?b.wrap(F.readable):F.readable,H=F.writable,v=!!_(L),q=!!J(H),P,O,A,k,j;function h(a){let J0=k;if(k=null,J0)J0(a);else if(a)j.destroy(a)}if(j=new P0({readableObjectMode:!!(L!==null&&L!==void 0&&L.readableObjectMode),writableObjectMode:!!(H!==null&&H!==void 0&&H.writableObjectMode),readable:v,writable:q}),q)N(H,(a)=>{if(q=!1,a)y(L,a);h(a)}),j._write=function(a,J0,D0){if(H.write(a,J0))D0();else P=D0},j._final=function(a){H.end(),O=a},H.on("drain",function(){if(P){let a=P;P=null,a()}}),H.on("finish",function(){if(O){let a=O;O=null,a()}});if(v)N(L,(a)=>{if(v=!1,a)y(L,a);h(a)}),L.on("readable",function(){if(A){let a=A;A=null,a()}}),L.on("end",function(){j.push(null)}),j._read=function(){while(!0){let a=L.read();if(a===null){A=j._read;return}if(!j.push(a))return}};return j._destroy=function(a,J0){if(!a&&k!==null)a=new B;if(A=null,P=null,O=null,k===null)J0(a);else k=J0,y(H,a),y(L,a)},j}}),j_=L1(($,I)=>{var{ObjectDefineProperties:G,ObjectGetOwnPropertyDescriptor:Z,ObjectKeys:_,ObjectSetPrototypeOf:J}=d1();I.exports=R;var Y=gZ(),W=eD();J(R.prototype,Y.prototype),J(R,Y);{let S=_(W.prototype);for(let N=0;N<S.length;N++){let B=S[N];if(!R.prototype[B])R.prototype[B]=W.prototype[B]}}function R(S){if(!(this instanceof R))return new R(S);if(Y.call(this,S),W.call(this,S),S){if(this.allowHalfOpen=S.allowHalfOpen!==!1,S.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(S.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}G(R.prototype,{writable:{__proto__:null,...Z(W.prototype,"writable")},writableHighWaterMark:{__proto__:null,...Z(W.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...Z(W.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...Z(W.prototype,"writableBuffer")},writableLength:{__proto__:null,...Z(W.prototype,"writableLength")},writableFinished:{__proto__:null,...Z(W.prototype,"writableFinished")},writableCorked:{__proto__:null,...Z(W.prototype,"writableCorked")},writableEnded:{__proto__:null,...Z(W.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...Z(W.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set(S){if(this._readableState&&this._writableState)this._readableState.destroyed=S,this._writableState.destroyed=S}}});var M;function E(){if(M===void 0)M={};return M}R.fromWeb=function(S,N){return E().newStreamDuplexFromReadableWritablePair(S,N)},R.toWeb=function(S){return E().newReadableWritablePairFromDuplex(S)};var T;R.from=function(S){if(!T)T=uh();return T(S,"body")}}),RN=L1(($,I)=>{var{ObjectSetPrototypeOf:G,Symbol:Z}=d1();I.exports=R;var{ERR_METHOD_NOT_IMPLEMENTED:_}=iU().codes,J=j_(),{getHighWaterMark:Y}=kZ();G(R.prototype,J.prototype),G(R,J);var W=Z("kCallback");function R(T){if(!(this instanceof R))return new R(T);let S=T?Y(this,T,"readableHighWaterMark",!0):null;if(S===0)T={...T,highWaterMark:null,readableHighWaterMark:S,writableHighWaterMark:T.writableHighWaterMark||0};if(J.call(this,T),this._readableState.sync=!1,this[W]=null,T){if(typeof T.transform==="function")this._transform=T.transform;if(typeof T.flush==="function")this._flush=T.flush}this.on("prefinish",E)}function M(T){if(typeof this._flush==="function"&&!this.destroyed)this._flush((S,N)=>{if(S){if(T)T(S);else this.destroy(S);return}if(N!=null)this.push(N);if(this.push(null),T)T()});else if(this.push(null),T)T()}function E(){if(this._final!==M)M.call(this)}R.prototype._final=M,R.prototype._transform=function(T,S,N){throw new _("_transform()")},R.prototype._write=function(T,S,N){let B=this._readableState,x=this._writableState,w=B.length;this._transform(T,S,(y,g)=>{if(y){N(y);return}if(g!=null)this.push(g);if(x.ended||w===B.length||B.length<B.highWaterMark)N();else this[W]=N})},R.prototype._read=function(){if(this[W]){let T=this[W];this[W]=null,T()}}}),PN=L1(($,I)=>{var{ObjectSetPrototypeOf:G}=d1();I.exports=_;var Z=RN();G(_.prototype,Z.prototype),G(_,Z);function _(J){if(!(this instanceof _))return new _(J);Z.call(this,J)}_.prototype._transform=function(J,Y,W){W(null,J)}}),$W=L1(($,I)=>{var G=g4(),{ArrayIsArray:Z,Promise:_,SymbolAsyncIterator:J,SymbolDispose:Y}=d1(),W=N2(),{once:R}=z6(),M=OG(),E=j_(),{aggregateTwoErrors:T,codes:{ERR_INVALID_ARG_TYPE:S,ERR_INVALID_RETURN_VALUE:N,ERR_MISSING_ARGS:B,ERR_STREAM_DESTROYED:x,ERR_STREAM_PREMATURE_CLOSE:w},AbortError:y}=iU(),{validateFunction:g,validateAbortSignal:b}=pJ(),{isIterable:l,isReadable:i,isReadableNodeStream:$0,isNodeStream:Q0,isTransformStream:G0,isWebStream:K0,isReadableStream:t,isReadableFinished:P0}=k_(),Q=globalThis.AbortController||nJ().AbortController,K,F,L;function H(a,J0,D0){let O0=!1;a.on("close",()=>{O0=!0});let d=W(a,{readable:J0,writable:D0},(m)=>{O0=!m});return{destroy:(m)=>{if(O0)return;O0=!0,M.destroyer(a,m||new x("pipe"))},cleanup:d}}function v(a){return g(a[a.length-1],"streams[stream.length - 1]"),a.pop()}function q(a){if(l(a))return a;else if($0(a))return P(a);throw new S("val",["Readable","Iterable","AsyncIterable"],a)}async function*P(a){if(!F)F=gZ();yield*F.prototype[J].call(a)}async function O(a,J0,D0,{end:O0}){let d,m=null,r=(I0)=>{if(I0)d=I0;if(m){let c=m;m=null,c()}},Y0=()=>new _((I0,c)=>{if(d)c(d);else m=()=>{if(d)c(d);else I0()}});J0.on("drain",r);let W0=W(J0,{readable:!1},r);try{if(J0.writableNeedDrain)await Y0();for await(let I0 of a)if(!J0.write(I0))await Y0();if(O0)J0.end(),await Y0();D0()}catch(I0){D0(d!==I0?T(d,I0):I0)}finally{W0(),J0.off("drain",r)}}async function A(a,J0,D0,{end:O0}){if(G0(J0))J0=J0.writable;let d=J0.getWriter();try{for await(let m of a)await d.ready,d.write(m).catch(()=>{});if(await d.ready,O0)await d.close();D0()}catch(m){try{await d.abort(m),D0(m)}catch(r){D0(r)}}}function k(...a){return j(a,R(v(a)))}function j(a,J0,D0){if(a.length===1&&Z(a[0]))a=a[0];if(a.length<2)throw new B("streams");let O0=new Q,d=O0.signal,m=D0===null||D0===void 0?void 0:D0.signal,r=[];b(m,"options.signal");function Y0(){z0(new y)}L=L||z6().addAbortListener;let W0;if(m)W0=L(m,Y0);let I0,c,s=[],S0=0;function M0(k0){z0(k0,--S0===0)}function z0(k0,n0){var M$;if(k0&&(!I0||I0.code==="ERR_STREAM_PREMATURE_CLOSE"))I0=k0;if(!I0&&!n0)return;while(s.length)s.shift()(I0);if((M$=W0)===null||M$===void 0||M$[Y](),O0.abort(),n0){if(!I0)r.forEach((T0)=>T0());G.nextTick(J0,I0,c)}}let c0;for(let k0=0;k0<a.length;k0++){let n0=a[k0],M$=k0<a.length-1,T0=k0>0,V0=M$||(D0===null||D0===void 0?void 0:D0.end)!==!1,X$=k0===a.length-1;if(Q0(n0)){let p0=function(l0){if(l0&&l0.name!=="AbortError"&&l0.code!=="ERR_STREAM_PREMATURE_CLOSE")M0(l0)};var F0=p0;if(V0){let{destroy:l0,cleanup:L0}=H(n0,M$,T0);if(s.push(l0),i(n0)&&X$)r.push(L0)}if(n0.on("error",p0),i(n0)&&X$)r.push(()=>{n0.removeListener("error",p0)})}if(k0===0)if(typeof n0==="function"){if(c0=n0({signal:d}),!l(c0))throw new N("Iterable, AsyncIterable or Stream","source",c0)}else if(l(n0)||$0(n0)||G0(n0))c0=n0;else c0=E.from(n0);else if(typeof n0==="function"){if(G0(c0)){var q0;c0=q((q0=c0)===null||q0===void 0?void 0:q0.readable)}else c0=q(c0);if(c0=n0(c0,{signal:d}),M$){if(!l(c0,!0))throw new N("AsyncIterable",`transform[${k0-1}]`,c0)}else{var s0;if(!K)K=PN();let p0=new K({objectMode:!0}),l0=(s0=c0)===null||s0===void 0?void 0:s0.then;if(typeof l0==="function")S0++,l0.call(c0,(B0)=>{if(c=B0,B0!=null)p0.write(B0);if(V0)p0.end();G.nextTick(M0)},(B0)=>{p0.destroy(B0),G.nextTick(M0,B0)});else if(l(c0,!0))S0++,O(c0,p0,M0,{end:V0});else if(t(c0)||G0(c0)){let B0=c0.readable||c0;S0++,O(B0,p0,M0,{end:V0})}else throw new N("AsyncIterable or Promise","destination",c0);c0=p0;let{destroy:L0,cleanup:N0}=H(c0,!1,!0);if(s.push(L0),X$)r.push(N0)}}else if(Q0(n0)){if($0(c0)){S0+=2;let p0=h(c0,n0,M0,{end:V0});if(i(n0)&&X$)r.push(p0)}else if(G0(c0)||t(c0)){let p0=c0.readable||c0;S0++,O(p0,n0,M0,{end:V0})}else if(l(c0))S0++,O(c0,n0,M0,{end:V0});else throw new S("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],c0);c0=n0}else if(K0(n0)){if($0(c0))S0++,A(q(c0),n0,M0,{end:V0});else if(t(c0)||l(c0))S0++,A(c0,n0,M0,{end:V0});else if(G0(c0))S0++,A(c0.readable,n0,M0,{end:V0});else throw new S("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],c0);c0=n0}else c0=E.from(n0)}if(d!==null&&d!==void 0&&d.aborted||m!==null&&m!==void 0&&m.aborted)G.nextTick(Y0);return c0}function h(a,J0,D0,{end:O0}){let d=!1;if(J0.on("close",()=>{if(!d)D0(new w)}),a.pipe(J0,{end:!1}),O0){let r=function(){d=!0,J0.end()};var m=r;if(P0(a))G.nextTick(r);else a.once("end",r)}else D0();return W(a,{readable:!0,writable:!1},(r)=>{let Y0=a._readableState;if(r&&r.code==="ERR_STREAM_PREMATURE_CLOSE"&&Y0&&Y0.ended&&!Y0.errored&&!Y0.errorEmitted)a.once("end",D0).once("error",D0);else D0(r)}),W(J0,{readable:!1,writable:!0},D0)}I.exports={pipelineImpl:j,pipeline:k}}),VN=L1(($,I)=>{var{pipeline:G}=$W(),Z=j_(),{destroyer:_}=OG(),{isNodeStream:J,isReadable:Y,isWritable:W,isWebStream:R,isTransformStream:M,isWritableStream:E,isReadableStream:T}=k_(),{AbortError:S,codes:{ERR_INVALID_ARG_VALUE:N,ERR_MISSING_ARGS:B}}=iU(),x=N2();I.exports=function(...w){if(w.length===0)throw new B("streams");if(w.length===1)return Z.from(w[0]);let y=[...w];if(typeof w[0]==="function")w[0]=Z.from(w[0]);if(typeof w[w.length-1]==="function"){let Q=w.length-1;w[Q]=Z.from(w[Q])}for(let Q=0;Q<w.length;++Q){if(!J(w[Q])&&!R(w[Q]))continue;if(Q<w.length-1&&!(Y(w[Q])||T(w[Q])||M(w[Q])))throw new N(`streams[${Q}]`,y[Q],"must be readable");if(Q>0&&!(W(w[Q])||E(w[Q])||M(w[Q])))throw new N(`streams[${Q}]`,y[Q],"must be writable")}let g,b,l,i,$0;function Q0(Q){let K=i;if(i=null,K)K(Q);else if(Q)$0.destroy(Q);else if(!P0&&!t)$0.destroy()}let G0=w[0],K0=G(w,Q0),t=!!(W(G0)||E(G0)||M(G0)),P0=!!(Y(K0)||T(K0)||M(K0));if($0=new Z({writableObjectMode:!!(G0!==null&&G0!==void 0&&G0.writableObjectMode),readableObjectMode:!!(K0!==null&&K0!==void 0&&K0.readableObjectMode),writable:t,readable:P0}),t){if(J(G0))$0._write=function(K,F,L){if(G0.write(K,F))L();else g=L},$0._final=function(K){G0.end(),b=K},G0.on("drain",function(){if(g){let K=g;g=null,K()}});else if(R(G0)){let K=(M(G0)?G0.writable:G0).getWriter();$0._write=async function(F,L,H){try{await K.ready,K.write(F).catch(()=>{}),H()}catch(v){H(v)}},$0._final=async function(F){try{await K.ready,K.close().catch(()=>{}),b=F}catch(L){F(L)}}}let Q=M(K0)?K0.readable:K0;x(Q,()=>{if(b){let K=b;b=null,K()}})}if(P0){if(J(K0))K0.on("readable",function(){if(l){let Q=l;l=null,Q()}}),K0.on("end",function(){$0.push(null)}),$0._read=function(){while(!0){let Q=K0.read();if(Q===null){l=$0._read;return}if(!$0.push(Q))return}};else if(R(K0)){let Q=(M(K0)?K0.readable:K0).getReader();$0._read=async function(){while(!0)try{let{value:K,done:F}=await Q.read();if(!$0.push(K))return;if(F){$0.push(null);return}}catch{return}}}}return $0._destroy=function(Q,K){if(!Q&&i!==null)Q=new S;if(l=null,g=null,b=null,i===null)K(Q);else if(i=K,J(K0))_(K0,Q)},$0}}),nh=L1(($,I)=>{var G=globalThis.AbortController||nJ().AbortController,{codes:{ERR_INVALID_ARG_VALUE:Z,ERR_INVALID_ARG_TYPE:_,ERR_MISSING_ARGS:J,ERR_OUT_OF_RANGE:Y},AbortError:W}=iU(),{validateAbortSignal:R,validateInteger:M,validateObject:E}=pJ(),T=d1().Symbol("kWeak"),S=d1().Symbol("kResistStopPropagation"),{finished:N}=N2(),B=VN(),{addAbortSignalNoValidate:x}=jZ(),{isWritable:w,isNodeStream:y}=k_(),{deprecate:g}=z6(),{ArrayPrototypePush:b,Boolean:l,MathFloor:i,Number:$0,NumberIsNaN:Q0,Promise:G0,PromiseReject:K0,PromiseResolve:t,PromisePrototypeThen:P0,Symbol:Q}=d1(),K=Q("kEmpty"),F=Q("kEof");function L(m,r){if(r!=null)E(r,"options");if((r===null||r===void 0?void 0:r.signal)!=null)R(r.signal,"options.signal");if(y(m)&&!w(m))throw new Z("stream",m,"must be writable");let Y0=B(this,m);if(r!==null&&r!==void 0&&r.signal)x(r.signal,Y0);return Y0}function H(m,r){if(typeof m!=="function")throw new _("fn",["Function","AsyncFunction"],m);if(r!=null)E(r,"options");if((r===null||r===void 0?void 0:r.signal)!=null)R(r.signal,"options.signal");let Y0=1;if((r===null||r===void 0?void 0:r.concurrency)!=null)Y0=i(r.concurrency);let W0=Y0-1;if((r===null||r===void 0?void 0:r.highWaterMark)!=null)W0=i(r.highWaterMark);return M(Y0,"options.concurrency",1),M(W0,"options.highWaterMark",0),W0+=Y0,async function*(){let I0=z6().AbortSignalAny([r===null||r===void 0?void 0:r.signal].filter(l)),c=this,s=[],S0={signal:I0},M0,z0,c0=!1,F0=0;function q0(){c0=!0,s0()}function s0(){F0-=1,k0()}function k0(){if(z0&&!c0&&F0<Y0&&s.length<W0)z0(),z0=null}async function n0(){try{for await(let M$ of c){if(c0)return;if(I0.aborted)throw new W;try{if(M$=m(M$,S0),M$===K)continue;M$=t(M$)}catch(T0){M$=K0(T0)}if(F0+=1,P0(M$,s0,q0),s.push(M$),M0)M0(),M0=null;if(!c0&&(s.length>=W0||F0>=Y0))await new G0((T0)=>{z0=T0})}s.push(F)}catch(M$){let T0=K0(M$);P0(T0,s0,q0),s.push(T0)}finally{if(c0=!0,M0)M0(),M0=null}}n0();try{while(!0){while(s.length>0){let M$=await s[0];if(M$===F)return;if(I0.aborted)throw new W;if(M$!==K)yield M$;s.shift(),k0()}await new G0((M$)=>{M0=M$})}}finally{if(c0=!0,z0)z0(),z0=null}}.call(this)}function v(m=void 0){if(m!=null)E(m,"options");if((m===null||m===void 0?void 0:m.signal)!=null)R(m.signal,"options.signal");return async function*(){let r=0;for await(let W0 of this){var Y0;if(m!==null&&m!==void 0&&(Y0=m.signal)!==null&&Y0!==void 0&&Y0.aborted)throw new W({cause:m.signal.reason});yield[r++,W0]}}.call(this)}async function q(m,r=void 0){for await(let Y0 of k.call(this,m,r))return!0;return!1}async function P(m,r=void 0){if(typeof m!=="function")throw new _("fn",["Function","AsyncFunction"],m);return!await q.call(this,async(...Y0)=>{return!await m(...Y0)},r)}async function O(m,r){for await(let Y0 of k.call(this,m,r))return Y0;return}async function A(m,r){if(typeof m!=="function")throw new _("fn",["Function","AsyncFunction"],m);async function Y0(W0,I0){return await m(W0,I0),K}for await(let W0 of H.call(this,Y0,r));}function k(m,r){if(typeof m!=="function")throw new _("fn",["Function","AsyncFunction"],m);async function Y0(W0,I0){if(await m(W0,I0))return W0;return K}return H.call(this,Y0,r)}class j extends J{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function h(m,r,Y0){var W0;if(typeof m!=="function")throw new _("reducer",["Function","AsyncFunction"],m);if(Y0!=null)E(Y0,"options");if((Y0===null||Y0===void 0?void 0:Y0.signal)!=null)R(Y0.signal,"options.signal");let I0=arguments.length>1;if(Y0!==null&&Y0!==void 0&&(W0=Y0.signal)!==null&&W0!==void 0&&W0.aborted){let z0=new W(void 0,{cause:Y0.signal.reason});throw this.once("error",()=>{}),await N(this.destroy(z0)),z0}let c=new G,s=c.signal;if(Y0!==null&&Y0!==void 0&&Y0.signal){let z0={once:!0,[T]:this,[S]:!0};Y0.signal.addEventListener("abort",()=>c.abort(),z0)}let S0=!1;try{for await(let z0 of this){var M0;if(S0=!0,Y0!==null&&Y0!==void 0&&(M0=Y0.signal)!==null&&M0!==void 0&&M0.aborted)throw new W;if(!I0)r=z0,I0=!0;else r=await m(r,z0,{signal:s})}if(!S0&&!I0)throw new j}finally{c.abort()}return r}async function a(m){if(m!=null)E(m,"options");if((m===null||m===void 0?void 0:m.signal)!=null)R(m.signal,"options.signal");let r=[];for await(let W0 of this){var Y0;if(m!==null&&m!==void 0&&(Y0=m.signal)!==null&&Y0!==void 0&&Y0.aborted)throw new W(void 0,{cause:m.signal.reason});b(r,W0)}return r}function J0(m,r){let Y0=H.call(this,m,r);return async function*(){for await(let W0 of Y0)yield*W0}.call(this)}function D0(m){if(m=$0(m),Q0(m))return 0;if(m<0)throw new Y("number",">= 0",m);return m}function O0(m,r=void 0){if(r!=null)E(r,"options");if((r===null||r===void 0?void 0:r.signal)!=null)R(r.signal,"options.signal");return m=D0(m),async function*(){var Y0;if(r!==null&&r!==void 0&&(Y0=r.signal)!==null&&Y0!==void 0&&Y0.aborted)throw new W;for await(let I0 of this){var W0;if(r!==null&&r!==void 0&&(W0=r.signal)!==null&&W0!==void 0&&W0.aborted)throw new W;if(m--<=0)yield I0}}.call(this)}function d(m,r=void 0){if(r!=null)E(r,"options");if((r===null||r===void 0?void 0:r.signal)!=null)R(r.signal,"options.signal");return m=D0(m),async function*(){var Y0;if(r!==null&&r!==void 0&&(Y0=r.signal)!==null&&Y0!==void 0&&Y0.aborted)throw new W;for await(let I0 of this){var W0;if(r!==null&&r!==void 0&&(W0=r.signal)!==null&&W0!==void 0&&W0.aborted)throw new W;if(m-- >0)yield I0;if(m<=0)return}}.call(this)}I.exports.streamReturningOperators={asIndexedPairs:g(v,"readable.asIndexedPairs will be removed in a future version."),drop:O0,filter:k,flatMap:J0,map:H,take:d,compose:L},I.exports.promiseReturningOperators={every:P,forEach:A,reduce:h,toArray:a,some:q,find:O}}),SN=L1(($,I)=>{var{ArrayPrototypePop:G,Promise:Z}=d1(),{isIterable:_,isNodeStream:J,isWebStream:Y}=k_(),{pipelineImpl:W}=$W(),{finished:R}=N2();vN();function M(...E){return new Z((T,S)=>{let N,B,x=E[E.length-1];if(x&&typeof x==="object"&&!J(x)&&!_(x)&&!Y(x)){let w=G(E);N=w.signal,B=w.end}W(E,(w,y)=>{if(w)S(w);else T(y)},{signal:N,end:B})})}I.exports={finished:R,pipeline:M}}),vN=L1(($,I)=>{var{Buffer:G}=(u1(),V$(h1)),{ObjectDefineProperty:Z,ObjectKeys:_,ReflectApply:J}=d1(),{promisify:{custom:Y}}=z6(),{streamReturningOperators:W,promiseReturningOperators:R}=nh(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:M}}=iU(),E=VN(),{setDefaultHighWaterMark:T,getDefaultHighWaterMark:S}=kZ(),{pipeline:N}=$W(),{destroyer:B}=OG(),x=N2(),w=SN(),y=k_(),g=I.exports=sD().Stream;g.isDestroyed=y.isDestroyed,g.isDisturbed=y.isDisturbed,g.isErrored=y.isErrored,g.isReadable=y.isReadable,g.isWritable=y.isWritable,g.Readable=gZ();for(let l of _(W)){let i=function(...Q0){if(new.target)throw M();return g.Readable.from(J($0,this,Q0))},$0=W[l];Z(i,"name",{__proto__:null,value:$0.name}),Z(i,"length",{__proto__:null,value:$0.length}),Z(g.Readable.prototype,l,{__proto__:null,value:i,enumerable:!1,configurable:!0,writable:!0})}for(let l of _(R)){let i=function(...Q0){if(new.target)throw M();return J($0,this,Q0)},$0=R[l];Z(i,"name",{__proto__:null,value:$0.name}),Z(i,"length",{__proto__:null,value:$0.length}),Z(g.Readable.prototype,l,{__proto__:null,value:i,enumerable:!1,configurable:!0,writable:!0})}g.Writable=eD(),g.Duplex=j_(),g.Transform=RN(),g.PassThrough=PN(),g.pipeline=N;var{addAbortSignal:b}=jZ();g.addAbortSignal=b,g.finished=x,g.destroy=B,g.compose=E,g.setDefaultHighWaterMark=T,g.getDefaultHighWaterMark=S,Z(g,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return w}}),Z(N,Y,{__proto__:null,enumerable:!0,get(){return w.pipeline}}),Z(x,Y,{__proto__:null,enumerable:!0,get(){return w.finished}}),g.Stream=g,g._isUint8Array=function(l){return l instanceof Uint8Array},g._uint8ArrayToBuffer=function(l){return G.from(l.buffer,l.byteOffset,l.byteLength)}}),ph=L1(($,I)=>{var G=w4();{let Z=vN(),_=SN(),J=Z.Readable.destroy;I.exports=Z.Readable,I.exports._uint8ArrayToBuffer=Z._uint8ArrayToBuffer,I.exports._isUint8Array=Z._isUint8Array,I.exports.isDisturbed=Z.isDisturbed,I.exports.isErrored=Z.isErrored,I.exports.isReadable=Z.isReadable,I.exports.Readable=Z.Readable,I.exports.Writable=Z.Writable,I.exports.Duplex=Z.Duplex,I.exports.Transform=Z.Transform,I.exports.PassThrough=Z.PassThrough,I.exports.addAbortSignal=Z.addAbortSignal,I.exports.finished=Z.finished,I.exports.destroy=Z.destroy,I.exports.destroy=J,I.exports.pipeline=Z.pipeline,I.exports.compose=Z.compose,Object.defineProperty(Z,"promises",{configurable:!0,enumerable:!0,get(){return _}}),I.exports.Stream=Z.Stream}I.exports.default=I.exports});CN.exports=ph()});var k6={};LU(k6,{webcrypto:()=>Dp,rng:()=>Cn,randomUUID:()=>LG,randomFillSync:()=>Jp,randomFill:()=>Yp,randomBytes:()=>qn,publicEncrypt:()=>Ip,publicDecrypt:()=>Xp,pseudoRandomBytes:()=>vn,prng:()=>Sn,privateEncrypt:()=>_p,privateDecrypt:()=>Gp,pbkdf2Sync:()=>wn,pbkdf2:()=>gn,listCiphers:()=>ln,getRandomValues:()=>Op,getHashes:()=>kn,getDiffieHellman:()=>on,getCurves:()=>Kp,getCiphers:()=>cn,default:()=>Wp,createVerify:()=>en,createSign:()=>an,createHmac:()=>jn,createHash:()=>j6,createECDH:()=>Up,createDiffieHellmanGroup:()=>dn,createDiffieHellman:()=>tn,createDecipheriv:()=>pn,createDecipher:()=>un,createCredentials:()=>Qp,createCipheriv:()=>bn,createCipher:()=>fn,constants:()=>zp,Verify:()=>$p,Sign:()=>sn,Hmac:()=>Bn,Hash:()=>Nn,DiffieHellmanGroup:()=>mn,DiffieHellman:()=>rn,Decipheriv:()=>nn,Decipher:()=>hn,DEFAULT_ENCODING:()=>Zp,Cipheriv:()=>yn,Cipher:()=>xn});function Kp(){return Lp}var ch,lh,qN,mh,dh,ih=($,I,G)=>{G=$!=null?ch(lh($)):{};let Z=I||!$||!$.__esModule?qN(G,"default",{value:$,enumerable:!0}):G;for(let _ of mh($))if(!dh.call(Z,_))qN(Z,_,{get:()=>$[_],enumerable:!0});return Z},$$=($,I)=>()=>(I||$((I={exports:{}}).exports,I),I.exports),wZ,xZ,BN,oh,IW,_W,oU,th,lJ,jN,rh,ah,sh,eh,kN,$u,Uu,Iu,_u,Xu,Gu,Yu,Ju,Qu,zu,mJ,fZ,gN,Zu,wN,xN,Ou,dJ,XW,GW,Lu,fN,YW,Ku,yN,Du,bN,hN,Wu,Hu,Fu,Tu,Mu,Au,Eu,Ru,Pu,Vu,Su,vu,Cu,qu,JW,uN,Nu,nN,Bu,ju,ku,gu,g_,B2,pN,e6,cN,yZ,wu,B6,xu,fu,yu,lN,tI,iJ,mN,bu,dN,hu,iN,uu,nu,pu,cu,QW,lu,zW,mu,du,iu,ou,tu,ru,au,su,eu,$n,Un,In,_n,Xn,NN,Gn,cJ,Yn,oN,tN,Jn,Qn,rN,zn,Zn,oJ,On,Ln,Kn,Dn,Wn,Hn,aN,Fn,sN,eN,$B,ZW,UB,Tn,IB,Mn,An,UW,En,Rn,Pn,Vn,r$,Sn,vn,Cn,qn,Nn,j6,Bn,jn,kn,gn,wn,xn,fn,yn,bn,hn,un,nn,pn,cn,ln,mn,dn,on,tn,rn,an,sn,en,$p,Up,Ip,_p,Xp,Gp,Yp,Jp,Qp,zp,Zp="buffer",Op=($)=>{return crypto.getRandomValues($)},LG=()=>{return crypto.randomUUID()},Lp,Dp,Wp;var i1=WI(()=>{ch=Object.create,{getPrototypeOf:lh,defineProperty:qN,getOwnPropertyNames:mh}=Object,dh=Object.prototype.hasOwnProperty,wZ=$$(($,I)=>{I.exports=(i1(),V$(k6)).randomBytes}),xZ=$$(($,I)=>{I.exports=(i1(),V$(k6)).createHash}),BN=$$(($,I)=>{I.exports=(i1(),V$(k6)).createHmac}),oh=$$(($,I)=>{I.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}}),IW=$$(($,I)=>{var G=isFinite,Z=Math.pow(2,30)-1;I.exports=function(_,J){if(typeof _!=="number")throw TypeError("Iterations not a number");if(_<0||!G(_))throw TypeError("Bad iterations");if(typeof J!=="number")throw TypeError("Key length not a number");if(J<0||J>Z||J!==J)throw TypeError("Bad key length")}}),_W=$$(($,I)=>{var G;if(globalThis.process&&globalThis.process.browser)G="utf-8";else if(globalThis.process&&globalThis.process.version)Z=parseInt(process.version.split(".")[0].slice(1),10),G=Z>=6?"utf-8":"binary";else G="utf-8";var Z;I.exports=G}),oU=$$(($,I)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var G=(u1(),V$(h1)),Z=G.Buffer;function _(Y,W){for(var R in Y)W[R]=Y[R]}if(Z.from&&Z.alloc&&Z.allocUnsafe&&Z.allocUnsafeSlow)I.exports=G;else _(G,$),$.Buffer=J;function J(Y,W,R){return Z(Y,W,R)}J.prototype=Object.create(Z.prototype),_(Z,J),J.from=function(Y,W,R){if(typeof Y==="number")throw TypeError("Argument must not be a number");return Z(Y,W,R)},J.alloc=function(Y,W,R){if(typeof Y!=="number")throw TypeError("Argument must be a number");var M=Z(Y);if(W!==void 0)if(typeof R==="string")M.fill(W,R);else M.fill(W);else M.fill(0);return M},J.allocUnsafe=function(Y){if(typeof Y!=="number")throw TypeError("Argument must be a number");return Z(Y)},J.allocUnsafeSlow=function(Y){if(typeof Y!=="number")throw TypeError("Argument must be a number");return G.SlowBuffer(Y)}}),th=$$(($,I)=>{var G={}.toString;I.exports=Array.isArray||function(Z){return G.call(Z)=="[object Array]"}}),lJ=$$(($,I)=>{I.exports=TypeError}),jN=$$(($,I)=>{I.exports=Object}),rh=$$(($,I)=>{I.exports=Error}),ah=$$(($,I)=>{I.exports=EvalError}),sh=$$(($,I)=>{I.exports=RangeError}),eh=$$(($,I)=>{I.exports=ReferenceError}),kN=$$(($,I)=>{I.exports=SyntaxError}),$u=$$(($,I)=>{I.exports=URIError}),Uu=$$(($,I)=>{I.exports=Math.abs}),Iu=$$(($,I)=>{I.exports=Math.floor}),_u=$$(($,I)=>{I.exports=Math.max}),Xu=$$(($,I)=>{I.exports=Math.min}),Gu=$$(($,I)=>{I.exports=Math.pow}),Yu=$$(($,I)=>{I.exports=Math.round}),Ju=$$(($,I)=>{I.exports=Number.isNaN||function(G){return G!==G}}),Qu=$$(($,I)=>{var G=Ju();I.exports=function(Z){if(G(Z)||Z===0)return Z;return Z<0?-1:1}}),zu=$$(($,I)=>{I.exports=Object.getOwnPropertyDescriptor}),mJ=$$(($,I)=>{var G=zu();if(G)try{G([],"length")}catch(Z){G=null}I.exports=G}),fZ=$$(($,I)=>{var G=Object.defineProperty||!1;if(G)try{G({},"a",{value:1})}catch(Z){G=!1}I.exports=G}),gN=$$(($,I)=>{I.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var G={},Z=Symbol("test"),_=Object(Z);if(typeof Z==="string")return!1;if(Object.prototype.toString.call(Z)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(_)!=="[object Symbol]")return!1;var J=42;G[Z]=J;for(var Y in G)return!1;if(typeof Object.keys==="function"&&Object.keys(G).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(G).length!==0)return!1;var W=Object.getOwnPropertySymbols(G);if(W.length!==1||W[0]!==Z)return!1;if(!Object.prototype.propertyIsEnumerable.call(G,Z))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var R=Object.getOwnPropertyDescriptor(G,Z);if(R.value!==J||R.enumerable!==!0)return!1}return!0}}),Zu=$$(($,I)=>{var G=typeof Symbol<"u"&&Symbol,Z=gN();I.exports=function(){if(typeof G!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof G("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return Z()}}),wN=$$(($,I)=>{I.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}),xN=$$(($,I)=>{var G=jN();I.exports=G.getPrototypeOf||null}),Ou=$$(($,I)=>{var G="Function.prototype.bind called on incompatible ",Z=Object.prototype.toString,_=Math.max,J="[object Function]",Y=function(M,E){var T=[];for(var S=0;S<M.length;S+=1)T[S]=M[S];for(var N=0;N<E.length;N+=1)T[N+M.length]=E[N];return T},W=function(M,E){var T=[];for(var S=E||0,N=0;S<M.length;S+=1,N+=1)T[N]=M[S];return T},R=function(M,E){var T="";for(var S=0;S<M.length;S+=1)if(T+=M[S],S+1<M.length)T+=E;return T};I.exports=function(M){var E=this;if(typeof E!=="function"||Z.apply(E)!==J)throw TypeError(G+E);var T=W(arguments,1),S,N=function(){if(this instanceof S){var g=E.apply(this,Y(T,arguments));if(Object(g)===g)return g;return this}return E.apply(M,Y(T,arguments))},B=_(0,E.length-T.length),x=[];for(var w=0;w<B;w++)x[w]="$"+w;if(S=Function("binder","return function ("+R(x,",")+"){ return binder.apply(this,arguments); }")(N),E.prototype){var y=function(){};y.prototype=E.prototype,S.prototype=new y,y.prototype=null}return S}}),dJ=$$(($,I)=>{var G=Ou();I.exports=Function.prototype.bind||G}),XW=$$(($,I)=>{I.exports=Function.prototype.call}),GW=$$(($,I)=>{I.exports=Function.prototype.apply}),Lu=$$(($,I)=>{I.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}),fN=$$(($,I)=>{var G=dJ(),Z=GW(),_=XW(),J=Lu();I.exports=J||G.call(_,Z)}),YW=$$(($,I)=>{var G=dJ(),Z=lJ(),_=XW(),J=fN();I.exports=function(Y){if(Y.length<1||typeof Y[0]!=="function")throw new Z("a function is required");return J(G,_,Y)}}),Ku=$$(($,I)=>{var G=YW(),Z=mJ(),_;try{_=[].__proto__===Array.prototype}catch(R){if(!R||typeof R!=="object"||!("code"in R)||R.code!=="ERR_PROTO_ACCESS")throw R}var J=!!_&&Z&&Z(Object.prototype,"__proto__"),Y=Object,W=Y.getPrototypeOf;I.exports=J&&typeof J.get==="function"?G([J.get]):typeof W==="function"?function(R){return W(R==null?R:Y(R))}:!1}),yN=$$(($,I)=>{var G=wN(),Z=xN(),_=Ku();I.exports=G?function(J){return G(J)}:Z?function(J){if(!J||typeof J!=="object"&&typeof J!=="function")throw TypeError("getProto: not an object");return Z(J)}:_?function(J){return _(J)}:null}),Du=$$(($,I)=>{var G=Function.prototype.call,Z=Object.prototype.hasOwnProperty,_=dJ();I.exports=_.call(G,Z)}),bN=$$(($,I)=>{var G,Z=jN(),_=rh(),J=ah(),Y=sh(),W=eh(),R=kN(),M=lJ(),E=$u(),T=Uu(),S=Iu(),N=_u(),B=Xu(),x=Gu(),w=Yu(),y=Qu(),g=Function,b=function(r){try{return g('"use strict"; return ('+r+").constructor;")()}catch(Y0){}},l=mJ(),i=fZ(),$0=function(){throw new M},Q0=l?function(){try{return arguments.callee,$0}catch(r){try{return l(arguments,"callee").get}catch(Y0){return $0}}}():$0,G0=Zu()(),K0=yN(),t=xN(),P0=wN(),Q=GW(),K=XW(),F={},L=typeof Uint8Array>"u"||!K0?G:K0(Uint8Array),H={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?G:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?G:ArrayBuffer,"%ArrayIteratorPrototype%":G0&&K0?K0([][Symbol.iterator]()):G,"%AsyncFromSyncIteratorPrototype%":G,"%AsyncFunction%":F,"%AsyncGenerator%":F,"%AsyncGeneratorFunction%":F,"%AsyncIteratorPrototype%":F,"%Atomics%":typeof Atomics>"u"?G:Atomics,"%BigInt%":typeof BigInt>"u"?G:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?G:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?G:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?G:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":_,"%eval%":eval,"%EvalError%":J,"%Float16Array%":typeof Float16Array>"u"?G:Float16Array,"%Float32Array%":typeof Float32Array>"u"?G:Float32Array,"%Float64Array%":typeof Float64Array>"u"?G:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?G:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":F,"%Int8Array%":typeof Int8Array>"u"?G:Int8Array,"%Int16Array%":typeof Int16Array>"u"?G:Int16Array,"%Int32Array%":typeof Int32Array>"u"?G:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":G0&&K0?K0(K0([][Symbol.iterator]())):G,"%JSON%":typeof JSON==="object"?JSON:G,"%Map%":typeof Map>"u"?G:Map,"%MapIteratorPrototype%":typeof Map>"u"||!G0||!K0?G:K0(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Z,"%Object.getOwnPropertyDescriptor%":l,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?G:Promise,"%Proxy%":typeof Proxy>"u"?G:Proxy,"%RangeError%":Y,"%ReferenceError%":W,"%Reflect%":typeof Reflect>"u"?G:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?G:Set,"%SetIteratorPrototype%":typeof Set>"u"||!G0||!K0?G:K0(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?G:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":G0&&K0?K0(""[Symbol.iterator]()):G,"%Symbol%":G0?Symbol:G,"%SyntaxError%":R,"%ThrowTypeError%":Q0,"%TypedArray%":L,"%TypeError%":M,"%Uint8Array%":typeof Uint8Array>"u"?G:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?G:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?G:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?G:Uint32Array,"%URIError%":E,"%WeakMap%":typeof WeakMap>"u"?G:WeakMap,"%WeakRef%":typeof WeakRef>"u"?G:WeakRef,"%WeakSet%":typeof WeakSet>"u"?G:WeakSet,"%Function.prototype.call%":K,"%Function.prototype.apply%":Q,"%Object.defineProperty%":i,"%Object.getPrototypeOf%":t,"%Math.abs%":T,"%Math.floor%":S,"%Math.max%":N,"%Math.min%":B,"%Math.pow%":x,"%Math.round%":w,"%Math.sign%":y,"%Reflect.getPrototypeOf%":P0};if(K0)try{null.error}catch(r){v=K0(K0(r)),H["%Error.prototype%"]=v}var v,q=function r(Y0){var W0;if(Y0==="%AsyncFunction%")W0=b("async function () {}");else if(Y0==="%GeneratorFunction%")W0=b("function* () {}");else if(Y0==="%AsyncGeneratorFunction%")W0=b("async function* () {}");else if(Y0==="%AsyncGenerator%"){var I0=r("%AsyncGeneratorFunction%");if(I0)W0=I0.prototype}else if(Y0==="%AsyncIteratorPrototype%"){var c=r("%AsyncGenerator%");if(c&&K0)W0=K0(c.prototype)}return H[Y0]=W0,W0},P={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=dJ(),A=Du(),k=O.call(K,Array.prototype.concat),j=O.call(Q,Array.prototype.splice),h=O.call(K,String.prototype.replace),a=O.call(K,String.prototype.slice),J0=O.call(K,RegExp.prototype.exec),D0=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O0=/\\(\\)?/g,d=function(r){var Y0=a(r,0,1),W0=a(r,-1);if(Y0==="%"&&W0!=="%")throw new R("invalid intrinsic syntax, expected closing `%`");else if(W0==="%"&&Y0!=="%")throw new R("invalid intrinsic syntax, expected opening `%`");var I0=[];return h(r,D0,function(c,s,S0,M0){I0[I0.length]=S0?h(M0,O0,"$1"):s||c}),I0},m=function(r,Y0){var W0=r,I0;if(A(P,W0))I0=P[W0],W0="%"+I0[0]+"%";if(A(H,W0)){var c=H[W0];if(c===F)c=q(W0);if(typeof c>"u"&&!Y0)throw new M("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:I0,name:W0,value:c}}throw new R("intrinsic "+r+" does not exist!")};I.exports=function(r,Y0){if(typeof r!=="string"||r.length===0)throw new M("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Y0!=="boolean")throw new M('"allowMissing" argument must be a boolean');if(J0(/^%?[^%]*%?$/,r)===null)throw new R("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var W0=d(r),I0=W0.length>0?W0[0]:"",c=m("%"+I0+"%",Y0),s=c.name,S0=c.value,M0=!1,z0=c.alias;if(z0)I0=z0[0],j(W0,k([0,1],z0));for(var c0=1,F0=!0;c0<W0.length;c0+=1){var q0=W0[c0],s0=a(q0,0,1),k0=a(q0,-1);if((s0==='"'||s0==="'"||s0==="`"||(k0==='"'||k0==="'"||k0==="`"))&&s0!==k0)throw new R("property names with quotes must have matching quotes");if(q0==="constructor"||!F0)M0=!0;if(I0+="."+q0,s="%"+I0+"%",A(H,s))S0=H[s];else if(S0!=null){if(!(q0 in S0)){if(!Y0)throw new M("base intrinsic for "+r+" exists, but the property is not available.");return}if(l&&c0+1>=W0.length){var n0=l(S0,q0);if(F0=!!n0,F0&&"get"in n0&&!("originalValue"in n0.get))S0=n0.get;else S0=S0[q0]}else F0=A(S0,q0),S0=S0[q0];if(F0&&!M0)H[s]=S0}}return S0}}),hN=$$(($,I)=>{var G=bN(),Z=YW(),_=Z([G("%String.prototype.indexOf%")]);I.exports=function(J,Y){var W=G(J,!!Y);if(typeof W==="function"&&_(J,".prototype.")>-1)return Z([W]);return W}}),Wu=$$(($,I)=>{var G=Function.prototype.toString,Z=typeof Reflect==="object"&&Reflect!==null&&Reflect.apply,_,J;if(typeof Z==="function"&&typeof Object.defineProperty==="function")try{_=Object.defineProperty({},"length",{get:function(){throw J}}),J={},Z(function(){throw 42},null,_)}catch(l){if(l!==J)Z=null}else Z=null;var Y=/^\s*class\b/,W=function(l){try{var i=G.call(l);return Y.test(i)}catch($0){return!1}},R=function(l){try{if(W(l))return!1;return G.call(l),!0}catch(i){return!1}},M=Object.prototype.toString,E="[object Object]",T="[object Function]",S="[object GeneratorFunction]",N="[object HTMLAllCollection]",B="[object HTML document.all class]",x="[object HTMLCollection]",w=typeof Symbol==="function"&&!!Symbol.toStringTag,y=!(0 in[,]),g=function(){return!1};if(typeof document==="object"){if(b=document.all,M.call(b)===M.call(document.all))g=function(l){if((y||!l)&&(typeof l>"u"||typeof l==="object"))try{var i=M.call(l);return(i===N||i===B||i===x||i===E)&&l("")==null}catch($0){}return!1}}var b;I.exports=Z?function(l){if(g(l))return!0;if(!l)return!1;if(typeof l!=="function"&&typeof l!=="object")return!1;try{Z(l,null,_)}catch(i){if(i!==J)return!1}return!W(l)&&R(l)}:function(l){if(g(l))return!0;if(!l)return!1;if(typeof l!=="function"&&typeof l!=="object")return!1;if(w)return R(l);if(W(l))return!1;var i=M.call(l);if(i!==T&&i!==S&&!/^\[object HTML/.test(i))return!1;return R(l)}}),Hu=$$(($,I)=>{var G=Wu(),Z=Object.prototype.toString,_=Object.prototype.hasOwnProperty,J=function(M,E,T){for(var S=0,N=M.length;S<N;S++)if(_.call(M,S))if(T==null)E(M[S],S,M);else E.call(T,M[S],S,M)},Y=function(M,E,T){for(var S=0,N=M.length;S<N;S++)if(T==null)E(M.charAt(S),S,M);else E.call(T,M.charAt(S),S,M)},W=function(M,E,T){for(var S in M)if(_.call(M,S))if(T==null)E(M[S],S,M);else E.call(T,M[S],S,M)};function R(M){return Z.call(M)==="[object Array]"}I.exports=function(M,E,T){if(!G(E))throw TypeError("iterator must be a function");var S;if(arguments.length>=3)S=T;if(R(M))J(M,E,S);else if(typeof M==="string")Y(M,E,S);else W(M,E,S)}}),Fu=$$(($,I)=>{I.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]}),Tu=$$(($,I)=>{var G=Fu(),Z=typeof globalThis>"u"?globalThis:globalThis;I.exports=function(){var _=[];for(var J=0;J<G.length;J++)if(typeof Z[G[J]]==="function")_[_.length]=G[J];return _}}),Mu=$$(($,I)=>{var G=fZ(),Z=kN(),_=lJ(),J=mJ();I.exports=function(Y,W,R){if(!Y||typeof Y!=="object"&&typeof Y!=="function")throw new _("`obj` must be an object or a function`");if(typeof W!=="string"&&typeof W!=="symbol")throw new _("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=="boolean"&&arguments[3]!==null)throw new _("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=="boolean"&&arguments[4]!==null)throw new _("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=="boolean"&&arguments[5]!==null)throw new _("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=="boolean")throw new _("`loose`, if provided, must be a boolean");var M=arguments.length>3?arguments[3]:null,E=arguments.length>4?arguments[4]:null,T=arguments.length>5?arguments[5]:null,S=arguments.length>6?arguments[6]:!1,N=!!J&&J(Y,W);if(G)G(Y,W,{configurable:T===null&&N?N.configurable:!T,enumerable:M===null&&N?N.enumerable:!M,value:R,writable:E===null&&N?N.writable:!E});else if(S||!M&&!E&&!T)Y[W]=R;else throw new Z("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}),Au=$$(($,I)=>{var G=fZ(),Z=function(){return!!G};Z.hasArrayLengthDefineBug=function(){if(!G)return null;try{return G([],"length",{value:1}).length!==1}catch(_){return!0}},I.exports=Z}),Eu=$$(($,I)=>{var G=bN(),Z=Mu(),_=Au()(),J=mJ(),Y=lJ(),W=G("%Math.floor%");I.exports=function(R,M){if(typeof R!=="function")throw new Y("`fn` is not a function");if(typeof M!=="number"||M<0||M>4294967295||W(M)!==M)throw new Y("`length` must be a positive 32-bit integer");var E=arguments.length>2&&!!arguments[2],T=!0,S=!0;if("length"in R&&J){var N=J(R,"length");if(N&&!N.configurable)T=!1;if(N&&!N.writable)S=!1}if(T||S||!E)if(_)Z(R,"length",M,!0,!0);else Z(R,"length",M);return R}}),Ru=$$(($,I)=>{var G=dJ(),Z=GW(),_=fN();I.exports=function(){return _(G,Z,arguments)}}),Pu=$$(($,I)=>{var G=Eu(),Z=fZ(),_=YW(),J=Ru();if(I.exports=function(Y){var W=_(arguments),R=Y.length-(arguments.length-1);return G(W,1+(R>0?R:0),!0)},Z)Z(I.exports,"apply",{value:J});else I.exports.apply=J}),Vu=$$(($,I)=>{var G=gN();I.exports=function(){return G()&&!!Symbol.toStringTag}}),Su=$$(($,I)=>{var G=Hu(),Z=Tu(),_=Pu(),J=hN(),Y=mJ(),W=yN(),R=J("Object.prototype.toString"),M=Vu()(),E=typeof globalThis>"u"?globalThis:globalThis,T=Z(),S=J("String.prototype.slice"),N=J("Array.prototype.indexOf",!0)||function(y,g){for(var b=0;b<y.length;b+=1)if(y[b]===g)return b;return-1},B={__proto__:null};if(M&&Y&&W)G(T,function(y){var g=new E[y];if(Symbol.toStringTag in g&&W){var b=W(g),l=Y(b,Symbol.toStringTag);if(!l&&b){var i=W(b);l=Y(i,Symbol.toStringTag)}B["$"+y]=_(l.get)}});else G(T,function(y){var g=new E[y],b=g.slice||g.set;if(b)B["$"+y]=_(b)});var x=function(y){var g=!1;return G(B,function(b,l){if(!g)try{if("$"+b(y)===l)g=S(l,1)}catch(i){}}),g},w=function(y){var g=!1;return G(B,function(b,l){if(!g)try{b(y),g=S(l,1)}catch(i){}}),g};I.exports=function(y){if(!y||typeof y!=="object")return!1;if(!M){var g=S(R(y),8,-1);if(N(T,g)>-1)return g;if(g!=="Object")return!1;return w(y)}if(!Y)return null;return x(y)}}),vu=$$(($,I)=>{var G=Su();I.exports=function(Z){return!!G(Z)}}),Cu=$$(($,I)=>{var G=lJ(),Z=hN(),_=Z("TypedArray.prototype.buffer",!0),J=vu();I.exports=_||function(Y){if(!J(Y))throw new G("Not a Typed Array");return Y.buffer}}),qu=$$(($,I)=>{var G=oU().Buffer,Z=th(),_=Cu(),J=ArrayBuffer.isView||function(M){try{return _(M),!0}catch(E){return!1}},Y=typeof Uint8Array<"u",W=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",R=W&&(G.prototype instanceof Uint8Array||G.TYPED_ARRAY_SUPPORT);I.exports=function(M,E){if(G.isBuffer(M)){if(M.constructor&&!("isBuffer"in M))return G.from(M);return M}if(typeof M==="string")return G.from(M,E);if(W&&J(M)){if(M.byteLength===0)return G.alloc(0);if(R){var T=G.from(M.buffer,M.byteOffset,M.byteLength);if(T.byteLength===M.byteLength)return T}var S=M instanceof Uint8Array?M:new Uint8Array(M.buffer,M.byteOffset,M.byteLength),N=G.from(S);if(N.length===M.byteLength)return N}if(Y&&M instanceof Uint8Array)return G.from(M);var B=Z(M);if(B)for(var x=0;x<M.length;x+=1){var w=M[x];if(typeof w!=="number"||w<0||w>255||~~w!==w)throw RangeError("Array items must be numbers in the range 0-255.")}if(B||G.isBuffer(M)&&M.constructor&&typeof M.constructor.isBuffer==="function"&&M.constructor.isBuffer(M))return G.from(M);throw TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}}),JW=$$(($,I)=>{var G=oU().Buffer,Z=qu(),_=typeof Uint8Array<"u",J=_&&typeof ArrayBuffer<"u",Y=J&&ArrayBuffer.isView;I.exports=function(W,R,M){if(typeof W==="string"||G.isBuffer(W)||_&&W instanceof Uint8Array||Y&&Y(W))return Z(W,R);throw TypeError(M+" must be a string, a Buffer, a Uint8Array, or a DataView")}}),uN=$$(($,I)=>{var G={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,rmd160:20,ripemd160:20},Z={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"},_=BN(),J=oU().Buffer,Y=IW(),W=_W(),R=JW();function M(E,T,S,N,B){Y(S,N),E=R(E,W,"Password"),T=R(T,W,"Salt");var x=(B||"sha1").toLowerCase(),w=Z[x]||x,y=G[w];if(typeof y!=="number"||!y)throw TypeError("Digest algorithm not supported: "+B);var g=J.allocUnsafe(N),b=J.allocUnsafe(T.length+4);T.copy(b,0,0,T.length);var l=0,i=y,$0=Math.ceil(N/i);for(var Q0=1;Q0<=$0;Q0++){b.writeUInt32BE(Q0,T.length);var G0=_(w,E).update(b).digest(),K0=G0;for(var t=1;t<S;t++){K0=_(w,E).update(K0).digest();for(var P0=0;P0<i;P0++)G0[P0]^=K0[P0]}G0.copy(g,l),l+=i}return g}I.exports=M}),Nu=$$(($,I)=>{var G=oU().Buffer,Z=IW(),_=_W(),J=uN(),Y=JW(),W,R=globalThis.crypto&&globalThis.crypto.subtle,M={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},E=[],T;function S(){if(T)return T;if(globalThis.process&&globalThis.process.nextTick)T=globalThis.process.nextTick;else if(globalThis.queueMicrotask)T=globalThis.queueMicrotask;else if(globalThis.setImmediate)T=globalThis.setImmediate;else T=globalThis.setTimeout;return T}function N(w,y,g,b,l){return R.importKey("raw",w,{name:"PBKDF2"},!1,["deriveBits"]).then(function(i){return R.deriveBits({name:"PBKDF2",salt:y,iterations:g,hash:{name:l}},i,b<<3)}).then(function(i){return G.from(i)})}function B(w){if(globalThis.process&&!globalThis.process.browser)return Promise.resolve(!1);if(!R||!R.importKey||!R.deriveBits)return Promise.resolve(!1);if(E[w]!==void 0)return E[w];W=W||G.alloc(8);var y=N(W,W,10,128,w).then(function(){return!0},function(){return!1});return E[w]=y,y}function x(w,y){w.then(function(g){S()(function(){y(null,g)})},function(g){S()(function(){y(g)})})}I.exports=function(w,y,g,b,l,i){if(typeof l==="function")i=l,l=void 0;if(Z(g,b),w=Y(w,_,"Password"),y=Y(y,_,"Salt"),typeof i!=="function")throw Error("No callback provided to pbkdf2");l=l||"sha1";var $0=M[l.toLowerCase()];if(!$0||typeof globalThis.Promise!=="function"){S()(function(){var Q0;try{Q0=J(w,y,g,b,l)}catch(G0){i(G0);return}i(null,Q0)});return}x(B($0).then(function(Q0){if(Q0)return N(w,y,g,b,$0);return J(w,y,g,b,l)}),i)}}),nN=$$(($)=>{var I=(i1(),V$(k6)),G=IW(),Z=_W(),_=JW();function J(W,R,M,E,T,S){if(G(M,E),W=_(W,Z,"Password"),R=_(R,Z,"Salt"),typeof T==="function")S=T,T="sha1";if(typeof S!=="function")throw Error("No callback provided to pbkdf2");return I.pbkdf2(W,R,M,E,T,S)}function Y(W,R,M,E,T){return G(M,E),W=_(W,Z,"Password"),R=_(R,Z,"Salt"),T=T||"sha1",I.pbkdf2Sync(W,R,M,E,T)}if(!I.pbkdf2Sync||I.pbkdf2Sync.toString().indexOf("keylen, digest")===-1)$.pbkdf2Sync=uN(),$.pbkdf2=Nu();else $.pbkdf2Sync=Y,$.pbkdf2=J}),Bu=$$(($)=>{var I=(i1(),V$(k6));$.createCipher=$.Cipher=I.createCipher,$.createCipheriv=$.Cipheriv=I.createCipheriv,$.createDecipher=$.Decipher=I.createDecipher,$.createDecipheriv=$.Decipheriv=I.createDecipheriv,$.listCiphers=$.getCiphers=I.getCiphers}),ju=$$(($)=>{var I=(i1(),V$(k6));$.DiffieHellmanGroup=I.DiffieHellmanGroup,$.createDiffieHellmanGroup=I.createDiffieHellmanGroup,$.getDiffieHellman=I.getDiffieHellman,$.createDiffieHellman=I.createDiffieHellman,$.DiffieHellman=I.DiffieHellman}),ku=$$(($)=>{var I=(i1(),V$(k6));$.createSign=I.createSign,$.Sign=I.Sign,$.createVerify=I.createVerify,$.Verify=I.Verify}),gu=$$(($,I)=>{I.exports={name:"elliptic",version:"6.6.1",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}}),g_=$$(($,I)=>{(function(G,Z){function _(Q,K){if(!Q)throw Error(K||"Assertion failed")}function J(Q,K){Q.super_=K;var F=function(){};F.prototype=K.prototype,Q.prototype=new F,Q.prototype.constructor=Q}function Y(Q,K,F){if(Y.isBN(Q))return Q;if(this.negative=0,this.words=null,this.length=0,this.red=null,Q!==null){if(K==="le"||K==="be")F=K,K=10;this._init(Q||0,K||10,F||"be")}}if(typeof G==="object")G.exports=Y;else Z.BN=Y;Y.BN=Y,Y.wordSize=26;var W;try{if(typeof window<"u"&&typeof window.Buffer<"u")W=window.Buffer;else W=(u1(),V$(h1)).Buffer}catch(Q){}Y.isBN=function(Q){if(Q instanceof Y)return!0;return Q!==null&&typeof Q==="object"&&Q.constructor.wordSize===Y.wordSize&&Array.isArray(Q.words)},Y.max=function(Q,K){if(Q.cmp(K)>0)return Q;return K},Y.min=function(Q,K){if(Q.cmp(K)<0)return Q;return K},Y.prototype._init=function(Q,K,F){if(typeof Q==="number")return this._initNumber(Q,K,F);if(typeof Q==="object")return this._initArray(Q,K,F);if(K==="hex")K=16;_(K===(K|0)&&K>=2&&K<=36),Q=Q.toString().replace(/\s+/g,"");var L=0;if(Q[0]==="-")L++,this.negative=1;if(L<Q.length){if(K===16)this._parseHex(Q,L,F);else if(this._parseBase(Q,K,L),F==="le")this._initArray(this.toArray(),K,F)}},Y.prototype._initNumber=function(Q,K,F){if(Q<0)this.negative=1,Q=-Q;if(Q<67108864)this.words=[Q&67108863],this.length=1;else if(Q<4503599627370496)this.words=[Q&67108863,Q/67108864&67108863],this.length=2;else _(Q<9007199254740992),this.words=[Q&67108863,Q/67108864&67108863,1],this.length=3;if(F!=="le")return;this._initArray(this.toArray(),K,F)},Y.prototype._initArray=function(Q,K,F){if(_(typeof Q.length==="number"),Q.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(Q.length/3),this.words=Array(this.length);for(var L=0;L<this.length;L++)this.words[L]=0;var H,v,q=0;if(F==="be"){for(L=Q.length-1,H=0;L>=0;L-=3)if(v=Q[L]|Q[L-1]<<8|Q[L-2]<<16,this.words[H]|=v<<q&67108863,this.words[H+1]=v>>>26-q&67108863,q+=24,q>=26)q-=26,H++}else if(F==="le"){for(L=0,H=0;L<Q.length;L+=3)if(v=Q[L]|Q[L+1]<<8|Q[L+2]<<16,this.words[H]|=v<<q&67108863,this.words[H+1]=v>>>26-q&67108863,q+=24,q>=26)q-=26,H++}return this.strip()};function R(Q,K){var F=Q.charCodeAt(K);if(F>=65&&F<=70)return F-55;else if(F>=97&&F<=102)return F-87;else return F-48&15}function M(Q,K,F){var L=R(Q,F);if(F-1>=K)L|=R(Q,F-1)<<4;return L}Y.prototype._parseHex=function(Q,K,F){this.length=Math.ceil((Q.length-K)/6),this.words=Array(this.length);for(var L=0;L<this.length;L++)this.words[L]=0;var H=0,v=0,q;if(F==="be")for(L=Q.length-1;L>=K;L-=2)if(q=M(Q,K,L)<<H,this.words[v]|=q&67108863,H>=18)H-=18,v+=1,this.words[v]|=q>>>26;else H+=8;else{var P=Q.length-K;for(L=P%2===0?K+1:K;L<Q.length;L+=2)if(q=M(Q,K,L)<<H,this.words[v]|=q&67108863,H>=18)H-=18,v+=1,this.words[v]|=q>>>26;else H+=8}this.strip()};function E(Q,K,F,L){var H=0,v=Math.min(Q.length,F);for(var q=K;q<v;q++){var P=Q.charCodeAt(q)-48;if(H*=L,P>=49)H+=P-49+10;else if(P>=17)H+=P-17+10;else H+=P}return H}Y.prototype._parseBase=function(Q,K,F){this.words=[0],this.length=1;for(var L=0,H=1;H<=67108863;H*=K)L++;L--,H=H/K|0;var v=Q.length-F,q=v%L,P=Math.min(v,v-q)+F,O=0;for(var A=F;A<P;A+=L)if(O=E(Q,A,A+L,K),this.imuln(H),this.words[0]+O<67108864)this.words[0]+=O;else this._iaddn(O);if(q!==0){var k=1;O=E(Q,A,Q.length,K);for(A=0;A<q;A++)k*=K;if(this.imuln(k),this.words[0]+O<67108864)this.words[0]+=O;else this._iaddn(O)}this.strip()},Y.prototype.copy=function(Q){Q.words=Array(this.length);for(var K=0;K<this.length;K++)Q.words[K]=this.words[K];Q.length=this.length,Q.negative=this.negative,Q.red=this.red},Y.prototype.clone=function(){var Q=new Y(null);return this.copy(Q),Q},Y.prototype._expand=function(Q){while(this.length<Q)this.words[this.length++]=0;return this},Y.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},Y.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},Y.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],S=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(Y.prototype.toString=function(Q,K){Q=Q||10,K=K|0||1;var F;if(Q===16||Q==="hex"){F="";var L=0,H=0;for(var v=0;v<this.length;v++){var q=this.words[v],P=((q<<L|H)&16777215).toString(16);if(H=q>>>24-L&16777215,L+=2,L>=26)L-=26,v--;if(H!==0||v!==this.length-1)F=T[6-P.length]+P+F;else F=P+F}if(H!==0)F=H.toString(16)+F;while(F.length%K!==0)F="0"+F;if(this.negative!==0)F="-"+F;return F}if(Q===(Q|0)&&Q>=2&&Q<=36){var O=S[Q],A=N[Q];F="";var k=this.clone();k.negative=0;while(!k.isZero()){var j=k.modn(A).toString(Q);if(k=k.idivn(A),!k.isZero())F=T[O-j.length]+j+F;else F=j+F}if(this.isZero())F="0"+F;while(F.length%K!==0)F="0"+F;if(this.negative!==0)F="-"+F;return F}_(!1,"Base should be between 2 and 36")},Y.prototype.toNumber=function(){var Q=this.words[0];if(this.length===2)Q+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)Q+=4503599627370496+this.words[1]*67108864;else if(this.length>2)_(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-Q:Q},Y.prototype.toJSON=function(){return this.toString(16)},Y.prototype.toBuffer=function(Q,K){return _(typeof W<"u"),this.toArrayLike(W,Q,K)},Y.prototype.toArray=function(Q,K){return this.toArrayLike(Array,Q,K)},Y.prototype.toArrayLike=function(Q,K,F){var L=this.byteLength(),H=F||Math.max(1,L);_(L<=H,"byte array longer than desired length"),_(H>0,"Requested array length <= 0"),this.strip();var v=K==="le",q=new Q(H),P,O,A=this.clone();if(!v){for(O=0;O<H-L;O++)q[O]=0;for(O=0;!A.isZero();O++)P=A.andln(255),A.iushrn(8),q[H-O-1]=P}else{for(O=0;!A.isZero();O++)P=A.andln(255),A.iushrn(8),q[O]=P;for(;O<H;O++)q[O]=0}return q},Math.clz32)Y.prototype._countBits=function(Q){return 32-Math.clz32(Q)};else Y.prototype._countBits=function(Q){var K=Q,F=0;if(K>=4096)F+=13,K>>>=13;if(K>=64)F+=7,K>>>=7;if(K>=8)F+=4,K>>>=4;if(K>=2)F+=2,K>>>=2;return F+K};Y.prototype._zeroBits=function(Q){if(Q===0)return 26;var K=Q,F=0;if((K&8191)===0)F+=13,K>>>=13;if((K&127)===0)F+=7,K>>>=7;if((K&15)===0)F+=4,K>>>=4;if((K&3)===0)F+=2,K>>>=2;if((K&1)===0)F++;return F},Y.prototype.bitLength=function(){var Q=this.words[this.length-1],K=this._countBits(Q);return(this.length-1)*26+K};function B(Q){var K=Array(Q.bitLength());for(var F=0;F<K.length;F++){var L=F/26|0,H=F%26;K[F]=(Q.words[L]&1<<H)>>>H}return K}Y.prototype.zeroBits=function(){if(this.isZero())return 0;var Q=0;for(var K=0;K<this.length;K++){var F=this._zeroBits(this.words[K]);if(Q+=F,F!==26)break}return Q},Y.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},Y.prototype.toTwos=function(Q){if(this.negative!==0)return this.abs().inotn(Q).iaddn(1);return this.clone()},Y.prototype.fromTwos=function(Q){if(this.testn(Q-1))return this.notn(Q).iaddn(1).ineg();return this.clone()},Y.prototype.isNeg=function(){return this.negative!==0},Y.prototype.neg=function(){return this.clone().ineg()},Y.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},Y.prototype.iuor=function(Q){while(this.length<Q.length)this.words[this.length++]=0;for(var K=0;K<Q.length;K++)this.words[K]=this.words[K]|Q.words[K];return this.strip()},Y.prototype.ior=function(Q){return _((this.negative|Q.negative)===0),this.iuor(Q)},Y.prototype.or=function(Q){if(this.length>Q.length)return this.clone().ior(Q);return Q.clone().ior(this)},Y.prototype.uor=function(Q){if(this.length>Q.length)return this.clone().iuor(Q);return Q.clone().iuor(this)},Y.prototype.iuand=function(Q){var K;if(this.length>Q.length)K=Q;else K=this;for(var F=0;F<K.length;F++)this.words[F]=this.words[F]&Q.words[F];return this.length=K.length,this.strip()},Y.prototype.iand=function(Q){return _((this.negative|Q.negative)===0),this.iuand(Q)},Y.prototype.and=function(Q){if(this.length>Q.length)return this.clone().iand(Q);return Q.clone().iand(this)},Y.prototype.uand=function(Q){if(this.length>Q.length)return this.clone().iuand(Q);return Q.clone().iuand(this)},Y.prototype.iuxor=function(Q){var K,F;if(this.length>Q.length)K=this,F=Q;else K=Q,F=this;for(var L=0;L<F.length;L++)this.words[L]=K.words[L]^F.words[L];if(this!==K)for(;L<K.length;L++)this.words[L]=K.words[L];return this.length=K.length,this.strip()},Y.prototype.ixor=function(Q){return _((this.negative|Q.negative)===0),this.iuxor(Q)},Y.prototype.xor=function(Q){if(this.length>Q.length)return this.clone().ixor(Q);return Q.clone().ixor(this)},Y.prototype.uxor=function(Q){if(this.length>Q.length)return this.clone().iuxor(Q);return Q.clone().iuxor(this)},Y.prototype.inotn=function(Q){_(typeof Q==="number"&&Q>=0);var K=Math.ceil(Q/26)|0,F=Q%26;if(this._expand(K),F>0)K--;for(var L=0;L<K;L++)this.words[L]=~this.words[L]&67108863;if(F>0)this.words[L]=~this.words[L]&67108863>>26-F;return this.strip()},Y.prototype.notn=function(Q){return this.clone().inotn(Q)},Y.prototype.setn=function(Q,K){_(typeof Q==="number"&&Q>=0);var F=Q/26|0,L=Q%26;if(this._expand(F+1),K)this.words[F]=this.words[F]|1<<L;else this.words[F]=this.words[F]&~(1<<L);return this.strip()},Y.prototype.iadd=function(Q){var K;if(this.negative!==0&&Q.negative===0)return this.negative=0,K=this.isub(Q),this.negative^=1,this._normSign();else if(this.negative===0&&Q.negative!==0)return Q.negative=0,K=this.isub(Q),Q.negative=1,K._normSign();var F,L;if(this.length>Q.length)F=this,L=Q;else F=Q,L=this;var H=0;for(var v=0;v<L.length;v++)K=(F.words[v]|0)+(L.words[v]|0)+H,this.words[v]=K&67108863,H=K>>>26;for(;H!==0&&v<F.length;v++)K=(F.words[v]|0)+H,this.words[v]=K&67108863,H=K>>>26;if(this.length=F.length,H!==0)this.words[this.length]=H,this.length++;else if(F!==this)for(;v<F.length;v++)this.words[v]=F.words[v];return this},Y.prototype.add=function(Q){var K;if(Q.negative!==0&&this.negative===0)return Q.negative=0,K=this.sub(Q),Q.negative^=1,K;else if(Q.negative===0&&this.negative!==0)return this.negative=0,K=Q.sub(this),this.negative=1,K;if(this.length>Q.length)return this.clone().iadd(Q);return Q.clone().iadd(this)},Y.prototype.isub=function(Q){if(Q.negative!==0){Q.negative=0;var K=this.iadd(Q);return Q.negative=1,K._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Q),this.negative=1,this._normSign();var F=this.cmp(Q);if(F===0)return this.negative=0,this.length=1,this.words[0]=0,this;var L,H;if(F>0)L=this,H=Q;else L=Q,H=this;var v=0;for(var q=0;q<H.length;q++)K=(L.words[q]|0)-(H.words[q]|0)+v,v=K>>26,this.words[q]=K&67108863;for(;v!==0&&q<L.length;q++)K=(L.words[q]|0)+v,v=K>>26,this.words[q]=K&67108863;if(v===0&&q<L.length&&L!==this)for(;q<L.length;q++)this.words[q]=L.words[q];if(this.length=Math.max(this.length,q),L!==this)this.negative=1;return this.strip()},Y.prototype.sub=function(Q){return this.clone().isub(Q)};function x(Q,K,F){F.negative=K.negative^Q.negative;var L=Q.length+K.length|0;F.length=L,L=L-1|0;var H=Q.words[0]|0,v=K.words[0]|0,q=H*v,P=q&67108863,O=q/67108864|0;F.words[0]=P;for(var A=1;A<L;A++){var k=O>>>26,j=O&67108863,h=Math.min(A,K.length-1);for(var a=Math.max(0,A-Q.length+1);a<=h;a++){var J0=A-a|0;H=Q.words[J0]|0,v=K.words[a]|0,q=H*v+j,k+=q/67108864|0,j=q&67108863}F.words[A]=j|0,O=k|0}if(O!==0)F.words[A]=O|0;else F.length--;return F.strip()}var w=function(Q,K,F){var L=Q.words,H=K.words,v=F.words,q=0,P,O,A,k=L[0]|0,j=k&8191,h=k>>>13,a=L[1]|0,J0=a&8191,D0=a>>>13,O0=L[2]|0,d=O0&8191,m=O0>>>13,r=L[3]|0,Y0=r&8191,W0=r>>>13,I0=L[4]|0,c=I0&8191,s=I0>>>13,S0=L[5]|0,M0=S0&8191,z0=S0>>>13,c0=L[6]|0,F0=c0&8191,q0=c0>>>13,s0=L[7]|0,k0=s0&8191,n0=s0>>>13,M$=L[8]|0,T0=M$&8191,V0=M$>>>13,X$=L[9]|0,p0=X$&8191,l0=X$>>>13,L0=H[0]|0,N0=L0&8191,B0=L0>>>13,Y$=H[1]|0,u=Y$&8191,_0=Y$>>>13,o=H[2]|0,R0=o&8191,x0=o>>>13,p=H[3]|0,A0=p&8191,v0=p>>>13,X0=H[4]|0,H0=X0&8191,C0=X0>>>13,H$=H[5]|0,d0=H$&8191,e=H$>>>13,E0=H[6]|0,b0=E0&8191,f0=E0>>>13,z$=H[7]|0,a0=z$&8191,U$=z$>>>13,c$=H[8]|0,K$=c$&8191,L$=c$>>>13,B$=H[9]|0,Z$=B$&8191,I$=B$>>>13;F.negative=Q.negative^K.negative,F.length=19,P=Math.imul(j,N0),O=Math.imul(j,B0),O=O+Math.imul(h,N0)|0,A=Math.imul(h,B0);var I1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(I1>>>26)|0,I1&=67108863,P=Math.imul(J0,N0),O=Math.imul(J0,B0),O=O+Math.imul(D0,N0)|0,A=Math.imul(D0,B0),P=P+Math.imul(j,u)|0,O=O+Math.imul(j,_0)|0,O=O+Math.imul(h,u)|0,A=A+Math.imul(h,_0)|0;var C$=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(C$>>>26)|0,C$&=67108863,P=Math.imul(d,N0),O=Math.imul(d,B0),O=O+Math.imul(m,N0)|0,A=Math.imul(m,B0),P=P+Math.imul(J0,u)|0,O=O+Math.imul(J0,_0)|0,O=O+Math.imul(D0,u)|0,A=A+Math.imul(D0,_0)|0,P=P+Math.imul(j,R0)|0,O=O+Math.imul(j,x0)|0,O=O+Math.imul(h,R0)|0,A=A+Math.imul(h,x0)|0;var g$=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(g$>>>26)|0,g$&=67108863,P=Math.imul(Y0,N0),O=Math.imul(Y0,B0),O=O+Math.imul(W0,N0)|0,A=Math.imul(W0,B0),P=P+Math.imul(d,u)|0,O=O+Math.imul(d,_0)|0,O=O+Math.imul(m,u)|0,A=A+Math.imul(m,_0)|0,P=P+Math.imul(J0,R0)|0,O=O+Math.imul(J0,x0)|0,O=O+Math.imul(D0,R0)|0,A=A+Math.imul(D0,x0)|0,P=P+Math.imul(j,A0)|0,O=O+Math.imul(j,v0)|0,O=O+Math.imul(h,A0)|0,A=A+Math.imul(h,v0)|0;var z1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(z1>>>26)|0,z1&=67108863,P=Math.imul(c,N0),O=Math.imul(c,B0),O=O+Math.imul(s,N0)|0,A=Math.imul(s,B0),P=P+Math.imul(Y0,u)|0,O=O+Math.imul(Y0,_0)|0,O=O+Math.imul(W0,u)|0,A=A+Math.imul(W0,_0)|0,P=P+Math.imul(d,R0)|0,O=O+Math.imul(d,x0)|0,O=O+Math.imul(m,R0)|0,A=A+Math.imul(m,x0)|0,P=P+Math.imul(J0,A0)|0,O=O+Math.imul(J0,v0)|0,O=O+Math.imul(D0,A0)|0,A=A+Math.imul(D0,v0)|0,P=P+Math.imul(j,H0)|0,O=O+Math.imul(j,C0)|0,O=O+Math.imul(h,H0)|0,A=A+Math.imul(h,C0)|0;var U1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(U1>>>26)|0,U1&=67108863,P=Math.imul(M0,N0),O=Math.imul(M0,B0),O=O+Math.imul(z0,N0)|0,A=Math.imul(z0,B0),P=P+Math.imul(c,u)|0,O=O+Math.imul(c,_0)|0,O=O+Math.imul(s,u)|0,A=A+Math.imul(s,_0)|0,P=P+Math.imul(Y0,R0)|0,O=O+Math.imul(Y0,x0)|0,O=O+Math.imul(W0,R0)|0,A=A+Math.imul(W0,x0)|0,P=P+Math.imul(d,A0)|0,O=O+Math.imul(d,v0)|0,O=O+Math.imul(m,A0)|0,A=A+Math.imul(m,v0)|0,P=P+Math.imul(J0,H0)|0,O=O+Math.imul(J0,C0)|0,O=O+Math.imul(D0,H0)|0,A=A+Math.imul(D0,C0)|0,P=P+Math.imul(j,d0)|0,O=O+Math.imul(j,e)|0,O=O+Math.imul(h,d0)|0,A=A+Math.imul(h,e)|0;var o1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(o1>>>26)|0,o1&=67108863,P=Math.imul(F0,N0),O=Math.imul(F0,B0),O=O+Math.imul(q0,N0)|0,A=Math.imul(q0,B0),P=P+Math.imul(M0,u)|0,O=O+Math.imul(M0,_0)|0,O=O+Math.imul(z0,u)|0,A=A+Math.imul(z0,_0)|0,P=P+Math.imul(c,R0)|0,O=O+Math.imul(c,x0)|0,O=O+Math.imul(s,R0)|0,A=A+Math.imul(s,x0)|0,P=P+Math.imul(Y0,A0)|0,O=O+Math.imul(Y0,v0)|0,O=O+Math.imul(W0,A0)|0,A=A+Math.imul(W0,v0)|0,P=P+Math.imul(d,H0)|0,O=O+Math.imul(d,C0)|0,O=O+Math.imul(m,H0)|0,A=A+Math.imul(m,C0)|0,P=P+Math.imul(J0,d0)|0,O=O+Math.imul(J0,e)|0,O=O+Math.imul(D0,d0)|0,A=A+Math.imul(D0,e)|0,P=P+Math.imul(j,b0)|0,O=O+Math.imul(j,f0)|0,O=O+Math.imul(h,b0)|0,A=A+Math.imul(h,f0)|0;var t1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(t1>>>26)|0,t1&=67108863,P=Math.imul(k0,N0),O=Math.imul(k0,B0),O=O+Math.imul(n0,N0)|0,A=Math.imul(n0,B0),P=P+Math.imul(F0,u)|0,O=O+Math.imul(F0,_0)|0,O=O+Math.imul(q0,u)|0,A=A+Math.imul(q0,_0)|0,P=P+Math.imul(M0,R0)|0,O=O+Math.imul(M0,x0)|0,O=O+Math.imul(z0,R0)|0,A=A+Math.imul(z0,x0)|0,P=P+Math.imul(c,A0)|0,O=O+Math.imul(c,v0)|0,O=O+Math.imul(s,A0)|0,A=A+Math.imul(s,v0)|0,P=P+Math.imul(Y0,H0)|0,O=O+Math.imul(Y0,C0)|0,O=O+Math.imul(W0,H0)|0,A=A+Math.imul(W0,C0)|0,P=P+Math.imul(d,d0)|0,O=O+Math.imul(d,e)|0,O=O+Math.imul(m,d0)|0,A=A+Math.imul(m,e)|0,P=P+Math.imul(J0,b0)|0,O=O+Math.imul(J0,f0)|0,O=O+Math.imul(D0,b0)|0,A=A+Math.imul(D0,f0)|0,P=P+Math.imul(j,a0)|0,O=O+Math.imul(j,U$)|0,O=O+Math.imul(h,a0)|0,A=A+Math.imul(h,U$)|0;var r1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(r1>>>26)|0,r1&=67108863,P=Math.imul(T0,N0),O=Math.imul(T0,B0),O=O+Math.imul(V0,N0)|0,A=Math.imul(V0,B0),P=P+Math.imul(k0,u)|0,O=O+Math.imul(k0,_0)|0,O=O+Math.imul(n0,u)|0,A=A+Math.imul(n0,_0)|0,P=P+Math.imul(F0,R0)|0,O=O+Math.imul(F0,x0)|0,O=O+Math.imul(q0,R0)|0,A=A+Math.imul(q0,x0)|0,P=P+Math.imul(M0,A0)|0,O=O+Math.imul(M0,v0)|0,O=O+Math.imul(z0,A0)|0,A=A+Math.imul(z0,v0)|0,P=P+Math.imul(c,H0)|0,O=O+Math.imul(c,C0)|0,O=O+Math.imul(s,H0)|0,A=A+Math.imul(s,C0)|0,P=P+Math.imul(Y0,d0)|0,O=O+Math.imul(Y0,e)|0,O=O+Math.imul(W0,d0)|0,A=A+Math.imul(W0,e)|0,P=P+Math.imul(d,b0)|0,O=O+Math.imul(d,f0)|0,O=O+Math.imul(m,b0)|0,A=A+Math.imul(m,f0)|0,P=P+Math.imul(J0,a0)|0,O=O+Math.imul(J0,U$)|0,O=O+Math.imul(D0,a0)|0,A=A+Math.imul(D0,U$)|0,P=P+Math.imul(j,K$)|0,O=O+Math.imul(j,L$)|0,O=O+Math.imul(h,K$)|0,A=A+Math.imul(h,L$)|0;var a1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(a1>>>26)|0,a1&=67108863,P=Math.imul(p0,N0),O=Math.imul(p0,B0),O=O+Math.imul(l0,N0)|0,A=Math.imul(l0,B0),P=P+Math.imul(T0,u)|0,O=O+Math.imul(T0,_0)|0,O=O+Math.imul(V0,u)|0,A=A+Math.imul(V0,_0)|0,P=P+Math.imul(k0,R0)|0,O=O+Math.imul(k0,x0)|0,O=O+Math.imul(n0,R0)|0,A=A+Math.imul(n0,x0)|0,P=P+Math.imul(F0,A0)|0,O=O+Math.imul(F0,v0)|0,O=O+Math.imul(q0,A0)|0,A=A+Math.imul(q0,v0)|0,P=P+Math.imul(M0,H0)|0,O=O+Math.imul(M0,C0)|0,O=O+Math.imul(z0,H0)|0,A=A+Math.imul(z0,C0)|0,P=P+Math.imul(c,d0)|0,O=O+Math.imul(c,e)|0,O=O+Math.imul(s,d0)|0,A=A+Math.imul(s,e)|0,P=P+Math.imul(Y0,b0)|0,O=O+Math.imul(Y0,f0)|0,O=O+Math.imul(W0,b0)|0,A=A+Math.imul(W0,f0)|0,P=P+Math.imul(d,a0)|0,O=O+Math.imul(d,U$)|0,O=O+Math.imul(m,a0)|0,A=A+Math.imul(m,U$)|0,P=P+Math.imul(J0,K$)|0,O=O+Math.imul(J0,L$)|0,O=O+Math.imul(D0,K$)|0,A=A+Math.imul(D0,L$)|0,P=P+Math.imul(j,Z$)|0,O=O+Math.imul(j,I$)|0,O=O+Math.imul(h,Z$)|0,A=A+Math.imul(h,I$)|0;var s1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(s1>>>26)|0,s1&=67108863,P=Math.imul(p0,u),O=Math.imul(p0,_0),O=O+Math.imul(l0,u)|0,A=Math.imul(l0,_0),P=P+Math.imul(T0,R0)|0,O=O+Math.imul(T0,x0)|0,O=O+Math.imul(V0,R0)|0,A=A+Math.imul(V0,x0)|0,P=P+Math.imul(k0,A0)|0,O=O+Math.imul(k0,v0)|0,O=O+Math.imul(n0,A0)|0,A=A+Math.imul(n0,v0)|0,P=P+Math.imul(F0,H0)|0,O=O+Math.imul(F0,C0)|0,O=O+Math.imul(q0,H0)|0,A=A+Math.imul(q0,C0)|0,P=P+Math.imul(M0,d0)|0,O=O+Math.imul(M0,e)|0,O=O+Math.imul(z0,d0)|0,A=A+Math.imul(z0,e)|0,P=P+Math.imul(c,b0)|0,O=O+Math.imul(c,f0)|0,O=O+Math.imul(s,b0)|0,A=A+Math.imul(s,f0)|0,P=P+Math.imul(Y0,a0)|0,O=O+Math.imul(Y0,U$)|0,O=O+Math.imul(W0,a0)|0,A=A+Math.imul(W0,U$)|0,P=P+Math.imul(d,K$)|0,O=O+Math.imul(d,L$)|0,O=O+Math.imul(m,K$)|0,A=A+Math.imul(m,L$)|0,P=P+Math.imul(J0,Z$)|0,O=O+Math.imul(J0,I$)|0,O=O+Math.imul(D0,Z$)|0,A=A+Math.imul(D0,I$)|0;var Y1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(Y1>>>26)|0,Y1&=67108863,P=Math.imul(p0,R0),O=Math.imul(p0,x0),O=O+Math.imul(l0,R0)|0,A=Math.imul(l0,x0),P=P+Math.imul(T0,A0)|0,O=O+Math.imul(T0,v0)|0,O=O+Math.imul(V0,A0)|0,A=A+Math.imul(V0,v0)|0,P=P+Math.imul(k0,H0)|0,O=O+Math.imul(k0,C0)|0,O=O+Math.imul(n0,H0)|0,A=A+Math.imul(n0,C0)|0,P=P+Math.imul(F0,d0)|0,O=O+Math.imul(F0,e)|0,O=O+Math.imul(q0,d0)|0,A=A+Math.imul(q0,e)|0,P=P+Math.imul(M0,b0)|0,O=O+Math.imul(M0,f0)|0,O=O+Math.imul(z0,b0)|0,A=A+Math.imul(z0,f0)|0,P=P+Math.imul(c,a0)|0,O=O+Math.imul(c,U$)|0,O=O+Math.imul(s,a0)|0,A=A+Math.imul(s,U$)|0,P=P+Math.imul(Y0,K$)|0,O=O+Math.imul(Y0,L$)|0,O=O+Math.imul(W0,K$)|0,A=A+Math.imul(W0,L$)|0,P=P+Math.imul(d,Z$)|0,O=O+Math.imul(d,I$)|0,O=O+Math.imul(m,Z$)|0,A=A+Math.imul(m,I$)|0;var S1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(S1>>>26)|0,S1&=67108863,P=Math.imul(p0,A0),O=Math.imul(p0,v0),O=O+Math.imul(l0,A0)|0,A=Math.imul(l0,v0),P=P+Math.imul(T0,H0)|0,O=O+Math.imul(T0,C0)|0,O=O+Math.imul(V0,H0)|0,A=A+Math.imul(V0,C0)|0,P=P+Math.imul(k0,d0)|0,O=O+Math.imul(k0,e)|0,O=O+Math.imul(n0,d0)|0,A=A+Math.imul(n0,e)|0,P=P+Math.imul(F0,b0)|0,O=O+Math.imul(F0,f0)|0,O=O+Math.imul(q0,b0)|0,A=A+Math.imul(q0,f0)|0,P=P+Math.imul(M0,a0)|0,O=O+Math.imul(M0,U$)|0,O=O+Math.imul(z0,a0)|0,A=A+Math.imul(z0,U$)|0,P=P+Math.imul(c,K$)|0,O=O+Math.imul(c,L$)|0,O=O+Math.imul(s,K$)|0,A=A+Math.imul(s,L$)|0,P=P+Math.imul(Y0,Z$)|0,O=O+Math.imul(Y0,I$)|0,O=O+Math.imul(W0,Z$)|0,A=A+Math.imul(W0,I$)|0;var R1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(R1>>>26)|0,R1&=67108863,P=Math.imul(p0,H0),O=Math.imul(p0,C0),O=O+Math.imul(l0,H0)|0,A=Math.imul(l0,C0),P=P+Math.imul(T0,d0)|0,O=O+Math.imul(T0,e)|0,O=O+Math.imul(V0,d0)|0,A=A+Math.imul(V0,e)|0,P=P+Math.imul(k0,b0)|0,O=O+Math.imul(k0,f0)|0,O=O+Math.imul(n0,b0)|0,A=A+Math.imul(n0,f0)|0,P=P+Math.imul(F0,a0)|0,O=O+Math.imul(F0,U$)|0,O=O+Math.imul(q0,a0)|0,A=A+Math.imul(q0,U$)|0,P=P+Math.imul(M0,K$)|0,O=O+Math.imul(M0,L$)|0,O=O+Math.imul(z0,K$)|0,A=A+Math.imul(z0,L$)|0,P=P+Math.imul(c,Z$)|0,O=O+Math.imul(c,I$)|0,O=O+Math.imul(s,Z$)|0,A=A+Math.imul(s,I$)|0;var e1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(e1>>>26)|0,e1&=67108863,P=Math.imul(p0,d0),O=Math.imul(p0,e),O=O+Math.imul(l0,d0)|0,A=Math.imul(l0,e),P=P+Math.imul(T0,b0)|0,O=O+Math.imul(T0,f0)|0,O=O+Math.imul(V0,b0)|0,A=A+Math.imul(V0,f0)|0,P=P+Math.imul(k0,a0)|0,O=O+Math.imul(k0,U$)|0,O=O+Math.imul(n0,a0)|0,A=A+Math.imul(n0,U$)|0,P=P+Math.imul(F0,K$)|0,O=O+Math.imul(F0,L$)|0,O=O+Math.imul(q0,K$)|0,A=A+Math.imul(q0,L$)|0,P=P+Math.imul(M0,Z$)|0,O=O+Math.imul(M0,I$)|0,O=O+Math.imul(z0,Z$)|0,A=A+Math.imul(z0,I$)|0;var B1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(B1>>>26)|0,B1&=67108863,P=Math.imul(p0,b0),O=Math.imul(p0,f0),O=O+Math.imul(l0,b0)|0,A=Math.imul(l0,f0),P=P+Math.imul(T0,a0)|0,O=O+Math.imul(T0,U$)|0,O=O+Math.imul(V0,a0)|0,A=A+Math.imul(V0,U$)|0,P=P+Math.imul(k0,K$)|0,O=O+Math.imul(k0,L$)|0,O=O+Math.imul(n0,K$)|0,A=A+Math.imul(n0,L$)|0,P=P+Math.imul(F0,Z$)|0,O=O+Math.imul(F0,I$)|0,O=O+Math.imul(q0,Z$)|0,A=A+Math.imul(q0,I$)|0;var f1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(f1>>>26)|0,f1&=67108863,P=Math.imul(p0,a0),O=Math.imul(p0,U$),O=O+Math.imul(l0,a0)|0,A=Math.imul(l0,U$),P=P+Math.imul(T0,K$)|0,O=O+Math.imul(T0,L$)|0,O=O+Math.imul(V0,K$)|0,A=A+Math.imul(V0,L$)|0,P=P+Math.imul(k0,Z$)|0,O=O+Math.imul(k0,I$)|0,O=O+Math.imul(n0,Z$)|0,A=A+Math.imul(n0,I$)|0;var c1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(c1>>>26)|0,c1&=67108863,P=Math.imul(p0,K$),O=Math.imul(p0,L$),O=O+Math.imul(l0,K$)|0,A=Math.imul(l0,L$),P=P+Math.imul(T0,Z$)|0,O=O+Math.imul(T0,I$)|0,O=O+Math.imul(V0,Z$)|0,A=A+Math.imul(V0,I$)|0;var j1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(j1>>>26)|0,j1&=67108863,P=Math.imul(p0,Z$),O=Math.imul(p0,I$),O=O+Math.imul(l0,Z$)|0,A=Math.imul(l0,I$);var v1=(q+P|0)+((O&8191)<<13)|0;if(q=(A+(O>>>13)|0)+(v1>>>26)|0,v1&=67108863,v[0]=I1,v[1]=C$,v[2]=g$,v[3]=z1,v[4]=U1,v[5]=o1,v[6]=t1,v[7]=r1,v[8]=a1,v[9]=s1,v[10]=Y1,v[11]=S1,v[12]=R1,v[13]=e1,v[14]=B1,v[15]=f1,v[16]=c1,v[17]=j1,v[18]=v1,q!==0)v[19]=q,F.length++;return F};if(!Math.imul)w=x;function y(Q,K,F){F.negative=K.negative^Q.negative,F.length=Q.length+K.length;var L=0,H=0;for(var v=0;v<F.length-1;v++){var q=H;H=0;var P=L&67108863,O=Math.min(v,K.length-1);for(var A=Math.max(0,v-Q.length+1);A<=O;A++){var k=v-A,j=Q.words[k]|0,h=K.words[A]|0,a=j*h,J0=a&67108863;q=q+(a/67108864|0)|0,J0=J0+P|0,P=J0&67108863,q=q+(J0>>>26)|0,H+=q>>>26,q&=67108863}F.words[v]=P,L=q,q=H}if(L!==0)F.words[v]=L;else F.length--;return F.strip()}function g(Q,K,F){var L=new b;return L.mulp(Q,K,F)}Y.prototype.mulTo=function(Q,K){var F,L=this.length+Q.length;if(this.length===10&&Q.length===10)F=w(this,Q,K);else if(L<63)F=x(this,Q,K);else if(L<1024)F=y(this,Q,K);else F=g(this,Q,K);return F};function b(Q,K){this.x=Q,this.y=K}b.prototype.makeRBT=function(Q){var K=Array(Q),F=Y.prototype._countBits(Q)-1;for(var L=0;L<Q;L++)K[L]=this.revBin(L,F,Q);return K},b.prototype.revBin=function(Q,K,F){if(Q===0||Q===F-1)return Q;var L=0;for(var H=0;H<K;H++)L|=(Q&1)<<K-H-1,Q>>=1;return L},b.prototype.permute=function(Q,K,F,L,H,v){for(var q=0;q<v;q++)L[q]=K[Q[q]],H[q]=F[Q[q]]},b.prototype.transform=function(Q,K,F,L,H,v){this.permute(v,Q,K,F,L,H);for(var q=1;q<H;q<<=1){var P=q<<1,O=Math.cos(2*Math.PI/P),A=Math.sin(2*Math.PI/P);for(var k=0;k<H;k+=P){var j=O,h=A;for(var a=0;a<q;a++){var J0=F[k+a],D0=L[k+a],O0=F[k+a+q],d=L[k+a+q],m=j*O0-h*d;if(d=j*d+h*O0,O0=m,F[k+a]=J0+O0,L[k+a]=D0+d,F[k+a+q]=J0-O0,L[k+a+q]=D0-d,a!==P)m=O*j-A*h,h=O*h+A*j,j=m}}}},b.prototype.guessLen13b=function(Q,K){var F=Math.max(K,Q)|1,L=F&1,H=0;for(F=F/2|0;F;F=F>>>1)H++;return 1<<H+1+L},b.prototype.conjugate=function(Q,K,F){if(F<=1)return;for(var L=0;L<F/2;L++){var H=Q[L];Q[L]=Q[F-L-1],Q[F-L-1]=H,H=K[L],K[L]=-K[F-L-1],K[F-L-1]=-H}},b.prototype.normalize13b=function(Q,K){var F=0;for(var L=0;L<K/2;L++){var H=Math.round(Q[2*L+1]/K)*8192+Math.round(Q[2*L]/K)+F;if(Q[L]=H&67108863,H<67108864)F=0;else F=H/67108864|0}return Q},b.prototype.convert13b=function(Q,K,F,L){var H=0;for(var v=0;v<K;v++)H=H+(Q[v]|0),F[2*v]=H&8191,H=H>>>13,F[2*v+1]=H&8191,H=H>>>13;for(v=2*K;v<L;++v)F[v]=0;_(H===0),_((H&-8192)===0)},b.prototype.stub=function(Q){var K=Array(Q);for(var F=0;F<Q;F++)K[F]=0;return K},b.prototype.mulp=function(Q,K,F){var L=2*this.guessLen13b(Q.length,K.length),H=this.makeRBT(L),v=this.stub(L),q=Array(L),P=Array(L),O=Array(L),A=Array(L),k=Array(L),j=Array(L),h=F.words;h.length=L,this.convert13b(Q.words,Q.length,q,L),this.convert13b(K.words,K.length,A,L),this.transform(q,v,P,O,L,H),this.transform(A,v,k,j,L,H);for(var a=0;a<L;a++){var J0=P[a]*k[a]-O[a]*j[a];O[a]=P[a]*j[a]+O[a]*k[a],P[a]=J0}return this.conjugate(P,O,L),this.transform(P,O,h,v,L,H),this.conjugate(h,v,L),this.normalize13b(h,L),F.negative=Q.negative^K.negative,F.length=Q.length+K.length,F.strip()},Y.prototype.mul=function(Q){var K=new Y(null);return K.words=Array(this.length+Q.length),this.mulTo(Q,K)},Y.prototype.mulf=function(Q){var K=new Y(null);return K.words=Array(this.length+Q.length),g(this,Q,K)},Y.prototype.imul=function(Q){return this.clone().mulTo(Q,this)},Y.prototype.imuln=function(Q){_(typeof Q==="number"),_(Q<67108864);var K=0;for(var F=0;F<this.length;F++){var L=(this.words[F]|0)*Q,H=(L&67108863)+(K&67108863);K>>=26,K+=L/67108864|0,K+=H>>>26,this.words[F]=H&67108863}if(K!==0)this.words[F]=K,this.length++;return this.length=Q===0?1:this.length,this},Y.prototype.muln=function(Q){return this.clone().imuln(Q)},Y.prototype.sqr=function(){return this.mul(this)},Y.prototype.isqr=function(){return this.imul(this.clone())},Y.prototype.pow=function(Q){var K=B(Q);if(K.length===0)return new Y(1);var F=this;for(var L=0;L<K.length;L++,F=F.sqr())if(K[L]!==0)break;if(++L<K.length)for(var H=F.sqr();L<K.length;L++,H=H.sqr()){if(K[L]===0)continue;F=F.mul(H)}return F},Y.prototype.iushln=function(Q){_(typeof Q==="number"&&Q>=0);var K=Q%26,F=(Q-K)/26,L=67108863>>>26-K<<26-K,H;if(K!==0){var v=0;for(H=0;H<this.length;H++){var q=this.words[H]&L,P=(this.words[H]|0)-q<<K;this.words[H]=P|v,v=q>>>26-K}if(v)this.words[H]=v,this.length++}if(F!==0){for(H=this.length-1;H>=0;H--)this.words[H+F]=this.words[H];for(H=0;H<F;H++)this.words[H]=0;this.length+=F}return this.strip()},Y.prototype.ishln=function(Q){return _(this.negative===0),this.iushln(Q)},Y.prototype.iushrn=function(Q,K,F){_(typeof Q==="number"&&Q>=0);var L;if(K)L=(K-K%26)/26;else L=0;var H=Q%26,v=Math.min((Q-H)/26,this.length),q=67108863^67108863>>>H<<H,P=F;if(L-=v,L=Math.max(0,L),P){for(var O=0;O<v;O++)P.words[O]=this.words[O];P.length=v}if(v===0);else if(this.length>v){this.length-=v;for(O=0;O<this.length;O++)this.words[O]=this.words[O+v]}else this.words[0]=0,this.length=1;var A=0;for(O=this.length-1;O>=0&&(A!==0||O>=L);O--){var k=this.words[O]|0;this.words[O]=A<<26-H|k>>>H,A=k&q}if(P&&A!==0)P.words[P.length++]=A;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},Y.prototype.ishrn=function(Q,K,F){return _(this.negative===0),this.iushrn(Q,K,F)},Y.prototype.shln=function(Q){return this.clone().ishln(Q)},Y.prototype.ushln=function(Q){return this.clone().iushln(Q)},Y.prototype.shrn=function(Q){return this.clone().ishrn(Q)},Y.prototype.ushrn=function(Q){return this.clone().iushrn(Q)},Y.prototype.testn=function(Q){_(typeof Q==="number"&&Q>=0);var K=Q%26,F=(Q-K)/26,L=1<<K;if(this.length<=F)return!1;var H=this.words[F];return!!(H&L)},Y.prototype.imaskn=function(Q){_(typeof Q==="number"&&Q>=0);var K=Q%26,F=(Q-K)/26;if(_(this.negative===0,"imaskn works only with positive numbers"),this.length<=F)return this;if(K!==0)F++;if(this.length=Math.min(F,this.length),K!==0){var L=67108863^67108863>>>K<<K;this.words[this.length-1]&=L}return this.strip()},Y.prototype.maskn=function(Q){return this.clone().imaskn(Q)},Y.prototype.iaddn=function(Q){if(_(typeof Q==="number"),_(Q<67108864),Q<0)return this.isubn(-Q);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<Q)return this.words[0]=Q-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(Q),this.negative=1,this}return this._iaddn(Q)},Y.prototype._iaddn=function(Q){this.words[0]+=Q;for(var K=0;K<this.length&&this.words[K]>=67108864;K++)if(this.words[K]-=67108864,K===this.length-1)this.words[K+1]=1;else this.words[K+1]++;return this.length=Math.max(this.length,K+1),this},Y.prototype.isubn=function(Q){if(_(typeof Q==="number"),_(Q<67108864),Q<0)return this.iaddn(-Q);if(this.negative!==0)return this.negative=0,this.iaddn(Q),this.negative=1,this;if(this.words[0]-=Q,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var K=0;K<this.length&&this.words[K]<0;K++)this.words[K]+=67108864,this.words[K+1]-=1;return this.strip()},Y.prototype.addn=function(Q){return this.clone().iaddn(Q)},Y.prototype.subn=function(Q){return this.clone().isubn(Q)},Y.prototype.iabs=function(){return this.negative=0,this},Y.prototype.abs=function(){return this.clone().iabs()},Y.prototype._ishlnsubmul=function(Q,K,F){var L=Q.length+F,H;this._expand(L);var v,q=0;for(H=0;H<Q.length;H++){v=(this.words[H+F]|0)+q;var P=(Q.words[H]|0)*K;v-=P&67108863,q=(v>>26)-(P/67108864|0),this.words[H+F]=v&67108863}for(;H<this.length-F;H++)v=(this.words[H+F]|0)+q,q=v>>26,this.words[H+F]=v&67108863;if(q===0)return this.strip();_(q===-1),q=0;for(H=0;H<this.length;H++)v=-(this.words[H]|0)+q,q=v>>26,this.words[H]=v&67108863;return this.negative=1,this.strip()},Y.prototype._wordDiv=function(Q,K){var F=this.length-Q.length,L=this.clone(),H=Q,v=H.words[H.length-1]|0,q=this._countBits(v);if(F=26-q,F!==0)H=H.ushln(F),L.iushln(F),v=H.words[H.length-1]|0;var P=L.length-H.length,O;if(K!=="mod"){O=new Y(null),O.length=P+1,O.words=Array(O.length);for(var A=0;A<O.length;A++)O.words[A]=0}var k=L.clone()._ishlnsubmul(H,1,P);if(k.negative===0){if(L=k,O)O.words[P]=1}for(var j=P-1;j>=0;j--){var h=(L.words[H.length+j]|0)*67108864+(L.words[H.length+j-1]|0);h=Math.min(h/v|0,67108863),L._ishlnsubmul(H,h,j);while(L.negative!==0)if(h--,L.negative=0,L._ishlnsubmul(H,1,j),!L.isZero())L.negative^=1;if(O)O.words[j]=h}if(O)O.strip();if(L.strip(),K!=="div"&&F!==0)L.iushrn(F);return{div:O||null,mod:L}},Y.prototype.divmod=function(Q,K,F){if(_(!Q.isZero()),this.isZero())return{div:new Y(0),mod:new Y(0)};var L,H,v;if(this.negative!==0&&Q.negative===0){if(v=this.neg().divmod(Q,K),K!=="mod")L=v.div.neg();if(K!=="div"){if(H=v.mod.neg(),F&&H.negative!==0)H.iadd(Q)}return{div:L,mod:H}}if(this.negative===0&&Q.negative!==0){if(v=this.divmod(Q.neg(),K),K!=="mod")L=v.div.neg();return{div:L,mod:v.mod}}if((this.negative&Q.negative)!==0){if(v=this.neg().divmod(Q.neg(),K),K!=="div"){if(H=v.mod.neg(),F&&H.negative!==0)H.isub(Q)}return{div:v.div,mod:H}}if(Q.length>this.length||this.cmp(Q)<0)return{div:new Y(0),mod:this};if(Q.length===1){if(K==="div")return{div:this.divn(Q.words[0]),mod:null};if(K==="mod")return{div:null,mod:new Y(this.modn(Q.words[0]))};return{div:this.divn(Q.words[0]),mod:new Y(this.modn(Q.words[0]))}}return this._wordDiv(Q,K)},Y.prototype.div=function(Q){return this.divmod(Q,"div",!1).div},Y.prototype.mod=function(Q){return this.divmod(Q,"mod",!1).mod},Y.prototype.umod=function(Q){return this.divmod(Q,"mod",!0).mod},Y.prototype.divRound=function(Q){var K=this.divmod(Q);if(K.mod.isZero())return K.div;var F=K.div.negative!==0?K.mod.isub(Q):K.mod,L=Q.ushrn(1),H=Q.andln(1),v=F.cmp(L);if(v<0||H===1&&v===0)return K.div;return K.div.negative!==0?K.div.isubn(1):K.div.iaddn(1)},Y.prototype.modn=function(Q){_(Q<=67108863);var K=67108864%Q,F=0;for(var L=this.length-1;L>=0;L--)F=(K*F+(this.words[L]|0))%Q;return F},Y.prototype.idivn=function(Q){_(Q<=67108863);var K=0;for(var F=this.length-1;F>=0;F--){var L=(this.words[F]|0)+K*67108864;this.words[F]=L/Q|0,K=L%Q}return this.strip()},Y.prototype.divn=function(Q){return this.clone().idivn(Q)},Y.prototype.egcd=function(Q){_(Q.negative===0),_(!Q.isZero());var K=this,F=Q.clone();if(K.negative!==0)K=K.umod(Q);else K=K.clone();var L=new Y(1),H=new Y(0),v=new Y(0),q=new Y(1),P=0;while(K.isEven()&&F.isEven())K.iushrn(1),F.iushrn(1),++P;var O=F.clone(),A=K.clone();while(!K.isZero()){for(var k=0,j=1;(K.words[0]&j)===0&&k<26;++k,j<<=1);if(k>0){K.iushrn(k);while(k-- >0){if(L.isOdd()||H.isOdd())L.iadd(O),H.isub(A);L.iushrn(1),H.iushrn(1)}}for(var h=0,a=1;(F.words[0]&a)===0&&h<26;++h,a<<=1);if(h>0){F.iushrn(h);while(h-- >0){if(v.isOdd()||q.isOdd())v.iadd(O),q.isub(A);v.iushrn(1),q.iushrn(1)}}if(K.cmp(F)>=0)K.isub(F),L.isub(v),H.isub(q);else F.isub(K),v.isub(L),q.isub(H)}return{a:v,b:q,gcd:F.iushln(P)}},Y.prototype._invmp=function(Q){_(Q.negative===0),_(!Q.isZero());var K=this,F=Q.clone();if(K.negative!==0)K=K.umod(Q);else K=K.clone();var L=new Y(1),H=new Y(0),v=F.clone();while(K.cmpn(1)>0&&F.cmpn(1)>0){for(var q=0,P=1;(K.words[0]&P)===0&&q<26;++q,P<<=1);if(q>0){K.iushrn(q);while(q-- >0){if(L.isOdd())L.iadd(v);L.iushrn(1)}}for(var O=0,A=1;(F.words[0]&A)===0&&O<26;++O,A<<=1);if(O>0){F.iushrn(O);while(O-- >0){if(H.isOdd())H.iadd(v);H.iushrn(1)}}if(K.cmp(F)>=0)K.isub(F),L.isub(H);else F.isub(K),H.isub(L)}var k;if(K.cmpn(1)===0)k=L;else k=H;if(k.cmpn(0)<0)k.iadd(Q);return k},Y.prototype.gcd=function(Q){if(this.isZero())return Q.abs();if(Q.isZero())return this.abs();var K=this.clone(),F=Q.clone();K.negative=0,F.negative=0;for(var L=0;K.isEven()&&F.isEven();L++)K.iushrn(1),F.iushrn(1);do{while(K.isEven())K.iushrn(1);while(F.isEven())F.iushrn(1);var H=K.cmp(F);if(H<0){var v=K;K=F,F=v}else if(H===0||F.cmpn(1)===0)break;K.isub(F)}while(!0);return F.iushln(L)},Y.prototype.invm=function(Q){return this.egcd(Q).a.umod(Q)},Y.prototype.isEven=function(){return(this.words[0]&1)===0},Y.prototype.isOdd=function(){return(this.words[0]&1)===1},Y.prototype.andln=function(Q){return this.words[0]&Q},Y.prototype.bincn=function(Q){_(typeof Q==="number");var K=Q%26,F=(Q-K)/26,L=1<<K;if(this.length<=F)return this._expand(F+1),this.words[F]|=L,this;var H=L;for(var v=F;H!==0&&v<this.length;v++){var q=this.words[v]|0;q+=H,H=q>>>26,q&=67108863,this.words[v]=q}if(H!==0)this.words[v]=H,this.length++;return this},Y.prototype.isZero=function(){return this.length===1&&this.words[0]===0},Y.prototype.cmpn=function(Q){var K=Q<0;if(this.negative!==0&&!K)return-1;if(this.negative===0&&K)return 1;this.strip();var F;if(this.length>1)F=1;else{if(K)Q=-Q;_(Q<=67108863,"Number is too big");var L=this.words[0]|0;F=L===Q?0:L<Q?-1:1}if(this.negative!==0)return-F|0;return F},Y.prototype.cmp=function(Q){if(this.negative!==0&&Q.negative===0)return-1;if(this.negative===0&&Q.negative!==0)return 1;var K=this.ucmp(Q);if(this.negative!==0)return-K|0;return K},Y.prototype.ucmp=function(Q){if(this.length>Q.length)return 1;if(this.length<Q.length)return-1;var K=0;for(var F=this.length-1;F>=0;F--){var L=this.words[F]|0,H=Q.words[F]|0;if(L===H)continue;if(L<H)K=-1;else if(L>H)K=1;break}return K},Y.prototype.gtn=function(Q){return this.cmpn(Q)===1},Y.prototype.gt=function(Q){return this.cmp(Q)===1},Y.prototype.gten=function(Q){return this.cmpn(Q)>=0},Y.prototype.gte=function(Q){return this.cmp(Q)>=0},Y.prototype.ltn=function(Q){return this.cmpn(Q)===-1},Y.prototype.lt=function(Q){return this.cmp(Q)===-1},Y.prototype.lten=function(Q){return this.cmpn(Q)<=0},Y.prototype.lte=function(Q){return this.cmp(Q)<=0},Y.prototype.eqn=function(Q){return this.cmpn(Q)===0},Y.prototype.eq=function(Q){return this.cmp(Q)===0},Y.red=function(Q){return new t(Q)},Y.prototype.toRed=function(Q){return _(!this.red,"Already a number in reduction context"),_(this.negative===0,"red works only with positives"),Q.convertTo(this)._forceRed(Q)},Y.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},Y.prototype._forceRed=function(Q){return this.red=Q,this},Y.prototype.forceRed=function(Q){return _(!this.red,"Already a number in reduction context"),this._forceRed(Q)},Y.prototype.redAdd=function(Q){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,Q)},Y.prototype.redIAdd=function(Q){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Q)},Y.prototype.redSub=function(Q){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,Q)},Y.prototype.redISub=function(Q){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,Q)},Y.prototype.redShl=function(Q){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,Q)},Y.prototype.redMul=function(Q){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,Q),this.red.mul(this,Q)},Y.prototype.redIMul=function(Q){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,Q),this.red.imul(this,Q)},Y.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},Y.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},Y.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},Y.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},Y.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},Y.prototype.redPow=function(Q){return _(this.red&&!Q.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Q)};var l={k256:null,p224:null,p192:null,p25519:null};function i(Q,K){this.name=Q,this.p=new Y(K,16),this.n=this.p.bitLength(),this.k=new Y(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}i.prototype._tmp=function(){var Q=new Y(null);return Q.words=Array(Math.ceil(this.n/13)),Q},i.prototype.ireduce=function(Q){var K=Q,F;do this.split(K,this.tmp),K=this.imulK(K),K=K.iadd(this.tmp),F=K.bitLength();while(F>this.n);var L=F<this.n?-1:K.ucmp(this.p);if(L===0)K.words[0]=0,K.length=1;else if(L>0)K.isub(this.p);else if(K.strip!==void 0)K.strip();else K._strip();return K},i.prototype.split=function(Q,K){Q.iushrn(this.n,0,K)},i.prototype.imulK=function(Q){return Q.imul(this.k)};function $0(){i.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}J($0,i),$0.prototype.split=function(Q,K){var F=4194303,L=Math.min(Q.length,9);for(var H=0;H<L;H++)K.words[H]=Q.words[H];if(K.length=L,Q.length<=9){Q.words[0]=0,Q.length=1;return}var v=Q.words[9];K.words[K.length++]=v&F;for(H=10;H<Q.length;H++){var q=Q.words[H]|0;Q.words[H-10]=(q&F)<<4|v>>>22,v=q}if(v>>>=22,Q.words[H-10]=v,v===0&&Q.length>10)Q.length-=10;else Q.length-=9},$0.prototype.imulK=function(Q){Q.words[Q.length]=0,Q.words[Q.length+1]=0,Q.length+=2;var K=0;for(var F=0;F<Q.length;F++){var L=Q.words[F]|0;K+=L*977,Q.words[F]=K&67108863,K=L*64+(K/67108864|0)}if(Q.words[Q.length-1]===0){if(Q.length--,Q.words[Q.length-1]===0)Q.length--}return Q};function Q0(){i.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}J(Q0,i);function G0(){i.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}J(G0,i);function K0(){i.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}J(K0,i),K0.prototype.imulK=function(Q){var K=0;for(var F=0;F<Q.length;F++){var L=(Q.words[F]|0)*19+K,H=L&67108863;L>>>=26,Q.words[F]=H,K=L}if(K!==0)Q.words[Q.length++]=K;return Q},Y._prime=function(Q){if(l[Q])return l[Q];var K;if(Q==="k256")K=new $0;else if(Q==="p224")K=new Q0;else if(Q==="p192")K=new G0;else if(Q==="p25519")K=new K0;else throw Error("Unknown prime "+Q);return l[Q]=K,K};function t(Q){if(typeof Q==="string"){var K=Y._prime(Q);this.m=K.p,this.prime=K}else _(Q.gtn(1),"modulus must be greater than 1"),this.m=Q,this.prime=null}t.prototype._verify1=function(Q){_(Q.negative===0,"red works only with positives"),_(Q.red,"red works only with red numbers")},t.prototype._verify2=function(Q,K){_((Q.negative|K.negative)===0,"red works only with positives"),_(Q.red&&Q.red===K.red,"red works only with red numbers")},t.prototype.imod=function(Q){if(this.prime)return this.prime.ireduce(Q)._forceRed(this);return Q.umod(this.m)._forceRed(this)},t.prototype.neg=function(Q){if(Q.isZero())return Q.clone();return this.m.sub(Q)._forceRed(this)},t.prototype.add=function(Q,K){this._verify2(Q,K);var F=Q.add(K);if(F.cmp(this.m)>=0)F.isub(this.m);return F._forceRed(this)},t.prototype.iadd=function(Q,K){this._verify2(Q,K);var F=Q.iadd(K);if(F.cmp(this.m)>=0)F.isub(this.m);return F},t.prototype.sub=function(Q,K){this._verify2(Q,K);var F=Q.sub(K);if(F.cmpn(0)<0)F.iadd(this.m);return F._forceRed(this)},t.prototype.isub=function(Q,K){this._verify2(Q,K);var F=Q.isub(K);if(F.cmpn(0)<0)F.iadd(this.m);return F},t.prototype.shl=function(Q,K){return this._verify1(Q),this.imod(Q.ushln(K))},t.prototype.imul=function(Q,K){return this._verify2(Q,K),this.imod(Q.imul(K))},t.prototype.mul=function(Q,K){return this._verify2(Q,K),this.imod(Q.mul(K))},t.prototype.isqr=function(Q){return this.imul(Q,Q.clone())},t.prototype.sqr=function(Q){return this.mul(Q,Q)},t.prototype.sqrt=function(Q){if(Q.isZero())return Q.clone();var K=this.m.andln(3);if(_(K%2===1),K===3){var F=this.m.add(new Y(1)).iushrn(2);return this.pow(Q,F)}var L=this.m.subn(1),H=0;while(!L.isZero()&&L.andln(1)===0)H++,L.iushrn(1);_(!L.isZero());var v=new Y(1).toRed(this),q=v.redNeg(),P=this.m.subn(1).iushrn(1),O=this.m.bitLength();O=new Y(2*O*O).toRed(this);while(this.pow(O,P).cmp(q)!==0)O.redIAdd(q);var A=this.pow(O,L),k=this.pow(Q,L.addn(1).iushrn(1)),j=this.pow(Q,L),h=H;while(j.cmp(v)!==0){var a=j;for(var J0=0;a.cmp(v)!==0;J0++)a=a.redSqr();_(J0<h);var D0=this.pow(A,new Y(1).iushln(h-J0-1));k=k.redMul(D0),A=D0.redSqr(),j=j.redMul(A),h=J0}return k},t.prototype.invm=function(Q){var K=Q._invmp(this.m);if(K.negative!==0)return K.negative=0,this.imod(K).redNeg();else return this.imod(K)},t.prototype.pow=function(Q,K){if(K.isZero())return new Y(1).toRed(this);if(K.cmpn(1)===0)return Q.clone();var F=4,L=Array(1<<F);L[0]=new Y(1).toRed(this),L[1]=Q;for(var H=2;H<L.length;H++)L[H]=this.mul(L[H-1],Q);var v=L[0],q=0,P=0,O=K.bitLength()%26;if(O===0)O=26;for(H=K.length-1;H>=0;H--){var A=K.words[H];for(var k=O-1;k>=0;k--){var j=A>>k&1;if(v!==L[0])v=this.sqr(v);if(j===0&&q===0){P=0;continue}if(q<<=1,q|=j,P++,P!==F&&(H!==0||k!==0))continue;v=this.mul(v,L[q]),P=0,q=0}O=26}return v},t.prototype.convertTo=function(Q){var K=Q.umod(this.m);return K===Q?K.clone():K},t.prototype.convertFrom=function(Q){var K=Q.clone();return K.red=null,K},Y.mont=function(Q){return new P0(Q)};function P0(Q){if(t.call(this,Q),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new Y(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}J(P0,t),P0.prototype.convertTo=function(Q){return this.imod(Q.ushln(this.shift))},P0.prototype.convertFrom=function(Q){var K=this.imod(Q.mul(this.rinv));return K.red=null,K},P0.prototype.imul=function(Q,K){if(Q.isZero()||K.isZero())return Q.words[0]=0,Q.length=1,Q;var F=Q.imul(K),L=F.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),H=F.isub(L).iushrn(this.shift),v=H;if(H.cmp(this.m)>=0)v=H.isub(this.m);else if(H.cmpn(0)<0)v=H.iadd(this.m);return v._forceRed(this)},P0.prototype.mul=function(Q,K){if(Q.isZero()||K.isZero())return new Y(0)._forceRed(this);var F=Q.mul(K),L=F.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),H=F.isub(L).iushrn(this.shift),v=H;if(H.cmp(this.m)>=0)v=H.isub(this.m);else if(H.cmpn(0)<0)v=H.iadd(this.m);return v._forceRed(this)},P0.prototype.invm=function(Q){var K=this.imod(Q._invmp(this.m).mul(this.r2));return K._forceRed(this)}})(typeof I>"u"||I,$)}),B2=$$(($,I)=>{I.exports=G;function G(Z,_){if(!Z)throw Error(_||"Assertion failed")}G.equal=function(Z,_,J){if(Z!=_)throw Error(J||"Assertion failed: "+Z+" != "+_)}}),pN=$$(($)=>{var I=$;function G(J,Y){if(Array.isArray(J))return J.slice();if(!J)return[];var W=[];if(typeof J!=="string"){for(var R=0;R<J.length;R++)W[R]=J[R]|0;return W}if(Y==="hex"){if(J=J.replace(/[^a-z0-9]+/ig,""),J.length%2!==0)J="0"+J;for(var R=0;R<J.length;R+=2)W.push(parseInt(J[R]+J[R+1],16))}else for(var R=0;R<J.length;R++){var M=J.charCodeAt(R),E=M>>8,T=M&255;if(E)W.push(E,T);else W.push(T)}return W}I.toArray=G;function Z(J){if(J.length===1)return"0"+J;else return J}I.zero2=Z;function _(J){var Y="";for(var W=0;W<J.length;W++)Y+=Z(J[W].toString(16));return Y}I.toHex=_,I.encode=function(J,Y){if(Y==="hex")return _(J);else return J}}),e6=$$(($)=>{var I=$,G=g_(),Z=B2(),_=pN();I.assert=Z,I.toArray=_.toArray,I.zero2=_.zero2,I.toHex=_.toHex,I.encode=_.encode;function J(E,T,S){var N=Array(Math.max(E.bitLength(),S)+1),B;for(B=0;B<N.length;B+=1)N[B]=0;var x=1<<T+1,w=E.clone();for(B=0;B<N.length;B++){var y,g=w.andln(x-1);if(w.isOdd()){if(g>(x>>1)-1)y=(x>>1)-g;else y=g;w.isubn(y)}else y=0;N[B]=y,w.iushrn(1)}return N}I.getNAF=J;function Y(E,T){var S=[[],[]];E=E.clone(),T=T.clone();var N=0,B=0,x;while(E.cmpn(-N)>0||T.cmpn(-B)>0){var w=E.andln(3)+N&3,y=T.andln(3)+B&3;if(w===3)w=-1;if(y===3)y=-1;var g;if((w&1)===0)g=0;else if(x=E.andln(7)+N&7,(x===3||x===5)&&y===2)g=-w;else g=w;S[0].push(g);var b;if((y&1)===0)b=0;else if(x=T.andln(7)+B&7,(x===3||x===5)&&w===2)b=-y;else b=y;if(S[1].push(b),2*N===g+1)N=1-N;if(2*B===b+1)B=1-B;E.iushrn(1),T.iushrn(1)}return S}I.getJSF=Y;function W(E,T,S){var N="_"+T;E.prototype[T]=function(){return this[N]!==void 0?this[N]:this[N]=S.call(this)}}I.cachedProperty=W;function R(E){return typeof E==="string"?I.toArray(E,"hex"):E}I.parseBytes=R;function M(E){return new G(E,"hex","le")}I.intFromLE=M}),cN=$$(($,I)=>{var G;I.exports=function(J){if(!G)G=new Z(null);return G.generate(J)};function Z(J){this.rand=J}if(I.exports.Rand=Z,Z.prototype.generate=function(J){return this._rand(J)},Z.prototype._rand=function(J){if(this.rand.getBytes)return this.rand.getBytes(J);var Y=new Uint8Array(J);for(var W=0;W<Y.length;W++)Y[W]=this.rand.getByte();return Y},typeof self==="object"){if(self.crypto&&self.crypto.getRandomValues)Z.prototype._rand=function(J){var Y=new Uint8Array(J);return self.crypto.getRandomValues(Y),Y};else if(self.msCrypto&&self.msCrypto.getRandomValues)Z.prototype._rand=function(J){var Y=new Uint8Array(J);return self.msCrypto.getRandomValues(Y),Y};else if(typeof window==="object")Z.prototype._rand=function(){throw Error("Not implemented yet")}}else try{if(_=(i1(),V$(k6)),typeof _.randomBytes!=="function")throw Error("Not supported");Z.prototype._rand=function(J){return _.randomBytes(J)}}catch(J){}var _}),yZ=$$(($,I)=>{var G=g_(),Z=e6(),_=Z.getNAF,J=Z.getJSF,Y=Z.assert;function W(M,E){this.type=M,this.p=new G(E.p,16),this.red=E.prime?G.red(E.prime):G.mont(this.p),this.zero=new G(0).toRed(this.red),this.one=new G(1).toRed(this.red),this.two=new G(2).toRed(this.red),this.n=E.n&&new G(E.n,16),this.g=E.g&&this.pointFromJSON(E.g,E.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var T=this.n&&this.p.div(this.n);if(!T||T.cmpn(100)>0)this.redN=null;else this._maxwellTrick=!0,this.redN=this.n.toRed(this.red)}I.exports=W,W.prototype.point=function(){throw Error("Not implemented")},W.prototype.validate=function(){throw Error("Not implemented")},W.prototype._fixedNafMul=function(M,E){Y(M.precomputed);var T=M._getDoubles(),S=_(E,1,this._bitLength),N=(1<<T.step+1)-(T.step%2===0?2:1);N/=3;var B=[],x,w;for(x=0;x<S.length;x+=T.step){w=0;for(var y=x+T.step-1;y>=x;y--)w=(w<<1)+S[y];B.push(w)}var g=this.jpoint(null,null,null),b=this.jpoint(null,null,null);for(var l=N;l>0;l--){for(x=0;x<B.length;x++)if(w=B[x],w===l)b=b.mixedAdd(T.points[x]);else if(w===-l)b=b.mixedAdd(T.points[x].neg());g=g.add(b)}return g.toP()},W.prototype._wnafMul=function(M,E){var T=4,S=M._getNAFPoints(T);T=S.wnd;var N=S.points,B=_(E,T,this._bitLength),x=this.jpoint(null,null,null);for(var w=B.length-1;w>=0;w--){for(var y=0;w>=0&&B[w]===0;w--)y++;if(w>=0)y++;if(x=x.dblp(y),w<0)break;var g=B[w];if(Y(g!==0),M.type==="affine")if(g>0)x=x.mixedAdd(N[g-1>>1]);else x=x.mixedAdd(N[-g-1>>1].neg());else if(g>0)x=x.add(N[g-1>>1]);else x=x.add(N[-g-1>>1].neg())}return M.type==="affine"?x.toP():x},W.prototype._wnafMulAdd=function(M,E,T,S,N){var B=this._wnafT1,x=this._wnafT2,w=this._wnafT3,y=0,g,b,l;for(g=0;g<S;g++){l=E[g];var i=l._getNAFPoints(M);B[g]=i.wnd,x[g]=i.points}for(g=S-1;g>=1;g-=2){var $0=g-1,Q0=g;if(B[$0]!==1||B[Q0]!==1){w[$0]=_(T[$0],B[$0],this._bitLength),w[Q0]=_(T[Q0],B[Q0],this._bitLength),y=Math.max(w[$0].length,y),y=Math.max(w[Q0].length,y);continue}var G0=[E[$0],null,null,E[Q0]];if(E[$0].y.cmp(E[Q0].y)===0)G0[1]=E[$0].add(E[Q0]),G0[2]=E[$0].toJ().mixedAdd(E[Q0].neg());else if(E[$0].y.cmp(E[Q0].y.redNeg())===0)G0[1]=E[$0].toJ().mixedAdd(E[Q0]),G0[2]=E[$0].add(E[Q0].neg());else G0[1]=E[$0].toJ().mixedAdd(E[Q0]),G0[2]=E[$0].toJ().mixedAdd(E[Q0].neg());var K0=[-3,-1,-5,-7,0,7,5,1,3],t=J(T[$0],T[Q0]);y=Math.max(t[0].length,y),w[$0]=Array(y),w[Q0]=Array(y);for(b=0;b<y;b++){var P0=t[0][b]|0,Q=t[1][b]|0;w[$0][b]=K0[(P0+1)*3+(Q+1)],w[Q0][b]=0,x[$0]=G0}}var K=this.jpoint(null,null,null),F=this._wnafT4;for(g=y;g>=0;g--){var L=0;while(g>=0){var H=!0;for(b=0;b<S;b++)if(F[b]=w[b][g]|0,F[b]!==0)H=!1;if(!H)break;L++,g--}if(g>=0)L++;if(K=K.dblp(L),g<0)break;for(b=0;b<S;b++){var v=F[b];if(v===0)continue;else if(v>0)l=x[b][v-1>>1];else if(v<0)l=x[b][-v-1>>1].neg();if(l.type==="affine")K=K.mixedAdd(l);else K=K.add(l)}}for(g=0;g<S;g++)x[g]=null;if(N)return K;else return K.toP()};function R(M,E){this.curve=M,this.type=E,this.precomputed=null}W.BasePoint=R,R.prototype.eq=function(){throw Error("Not implemented")},R.prototype.validate=function(){return this.curve.validate(this)},W.prototype.decodePoint=function(M,E){M=Z.toArray(M,E);var T=this.p.byteLength();if((M[0]===4||M[0]===6||M[0]===7)&&M.length-1===2*T){if(M[0]===6)Y(M[M.length-1]%2===0);else if(M[0]===7)Y(M[M.length-1]%2===1);var S=this.point(M.slice(1,1+T),M.slice(1+T,1+2*T));return S}else if((M[0]===2||M[0]===3)&&M.length-1===T)return this.pointFromX(M.slice(1,1+T),M[0]===3);throw Error("Unknown point format")},R.prototype.encodeCompressed=function(M){return this.encode(M,!0)},R.prototype._encode=function(M){var E=this.curve.p.byteLength(),T=this.getX().toArray("be",E);if(M)return[this.getY().isEven()?2:3].concat(T);return[4].concat(T,this.getY().toArray("be",E))},R.prototype.encode=function(M,E){return Z.encode(this._encode(E),M)},R.prototype.precompute=function(M){if(this.precomputed)return this;var E={doubles:null,naf:null,beta:null};return E.naf=this._getNAFPoints(8),E.doubles=this._getDoubles(4,M),E.beta=this._getBeta(),this.precomputed=E,this},R.prototype._hasDoubles=function(M){if(!this.precomputed)return!1;var E=this.precomputed.doubles;if(!E)return!1;return E.points.length>=Math.ceil((M.bitLength()+1)/E.step)},R.prototype._getDoubles=function(M,E){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;var T=[this],S=this;for(var N=0;N<E;N+=M){for(var B=0;B<M;B++)S=S.dbl();T.push(S)}return{step:M,points:T}},R.prototype._getNAFPoints=function(M){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;var E=[this],T=(1<<M)-1,S=T===1?null:this.dbl();for(var N=1;N<T;N++)E[N]=E[N-1].add(S);return{wnd:M,points:E}},R.prototype._getBeta=function(){return null},R.prototype.dblp=function(M){var E=this;for(var T=0;T<M;T++)E=E.dbl();return E}}),wu=$$(($,I)=>{if(typeof Object.create==="function")I.exports=function(G,Z){if(Z)G.super_=Z,G.prototype=Object.create(Z.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}})};else I.exports=function(G,Z){if(Z){G.super_=Z;var _=function(){};_.prototype=Z.prototype,G.prototype=new _,G.prototype.constructor=G}}}),B6=$$(($,I)=>{try{if(G=(C2(),V$(v2)),typeof G.inherits!=="function")throw"";I.exports=G.inherits}catch(Z){I.exports=wu()}var G}),xu=$$(($,I)=>{var G=e6(),Z=g_(),_=B6(),J=yZ(),Y=G.assert;function W(E){J.call(this,"short",E),this.a=new Z(E.a,16).toRed(this.red),this.b=new Z(E.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(E),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}_(W,J),I.exports=W,W.prototype._getEndomorphism=function(E){if(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)return;var T,S;if(E.beta)T=new Z(E.beta,16).toRed(this.red);else{var N=this._getEndoRoots(this.p);T=N[0].cmp(N[1])<0?N[0]:N[1],T=T.toRed(this.red)}if(E.lambda)S=new Z(E.lambda,16);else{var B=this._getEndoRoots(this.n);if(this.g.mul(B[0]).x.cmp(this.g.x.redMul(T))===0)S=B[0];else S=B[1],Y(this.g.mul(S).x.cmp(this.g.x.redMul(T))===0)}var x;if(E.basis)x=E.basis.map(function(w){return{a:new Z(w.a,16),b:new Z(w.b,16)}});else x=this._getEndoBasis(S);return{beta:T,lambda:S,basis:x}},W.prototype._getEndoRoots=function(E){var T=E===this.p?this.red:Z.mont(E),S=new Z(2).toRed(T).redInvm(),N=S.redNeg(),B=new Z(3).toRed(T).redNeg().redSqrt().redMul(S),x=N.redAdd(B).fromRed(),w=N.redSub(B).fromRed();return[x,w]},W.prototype._getEndoBasis=function(E){var T=this.n.ushrn(Math.floor(this.n.bitLength()/2)),S=E,N=this.n.clone(),B=new Z(1),x=new Z(0),w=new Z(0),y=new Z(1),g,b,l,i,$0,Q0,G0,K0=0,t,P0;while(S.cmpn(0)!==0){var Q=N.div(S);t=N.sub(Q.mul(S)),P0=w.sub(Q.mul(B));var K=y.sub(Q.mul(x));if(!l&&t.cmp(T)<0)g=G0.neg(),b=B,l=t.neg(),i=P0;else if(l&&++K0===2)break;G0=t,N=S,S=t,w=B,B=P0,y=x,x=K}$0=t.neg(),Q0=P0;var F=l.sqr().add(i.sqr()),L=$0.sqr().add(Q0.sqr());if(L.cmp(F)>=0)$0=g,Q0=b;if(l.negative)l=l.neg(),i=i.neg();if($0.negative)$0=$0.neg(),Q0=Q0.neg();return[{a:l,b:i},{a:$0,b:Q0}]},W.prototype._endoSplit=function(E){var T=this.endo.basis,S=T[0],N=T[1],B=N.b.mul(E).divRound(this.n),x=S.b.neg().mul(E).divRound(this.n),w=B.mul(S.a),y=x.mul(N.a),g=B.mul(S.b),b=x.mul(N.b),l=E.sub(w).sub(y),i=g.add(b).neg();return{k1:l,k2:i}},W.prototype.pointFromX=function(E,T){if(E=new Z(E,16),!E.red)E=E.toRed(this.red);var S=E.redSqr().redMul(E).redIAdd(E.redMul(this.a)).redIAdd(this.b),N=S.redSqrt();if(N.redSqr().redSub(S).cmp(this.zero)!==0)throw Error("invalid point");var B=N.fromRed().isOdd();if(T&&!B||!T&&B)N=N.redNeg();return this.point(E,N)},W.prototype.validate=function(E){if(E.inf)return!0;var{x:T,y:S}=E,N=this.a.redMul(T),B=T.redSqr().redMul(T).redIAdd(N).redIAdd(this.b);return S.redSqr().redISub(B).cmpn(0)===0},W.prototype._endoWnafMulAdd=function(E,T,S){var N=this._endoWnafT1,B=this._endoWnafT2;for(var x=0;x<E.length;x++){var w=this._endoSplit(T[x]),y=E[x],g=y._getBeta();if(w.k1.negative)w.k1.ineg(),y=y.neg(!0);if(w.k2.negative)w.k2.ineg(),g=g.neg(!0);N[x*2]=y,N[x*2+1]=g,B[x*2]=w.k1,B[x*2+1]=w.k2}var b=this._wnafMulAdd(1,N,B,x*2,S);for(var l=0;l<x*2;l++)N[l]=null,B[l]=null;return b};function R(E,T,S,N){if(J.BasePoint.call(this,E,"affine"),T===null&&S===null)this.x=null,this.y=null,this.inf=!0;else{if(this.x=new Z(T,16),this.y=new Z(S,16),N)this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red);if(!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);this.inf=!1}}_(R,J.BasePoint),W.prototype.point=function(E,T,S){return new R(this,E,T,S)},W.prototype.pointFromJSON=function(E,T){return R.fromJSON(this,E,T)},R.prototype._getBeta=function(){if(!this.curve.endo)return;var E=this.precomputed;if(E&&E.beta)return E.beta;var T=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(E){var S=this.curve,N=function(B){return S.point(B.x.redMul(S.endo.beta),B.y)};E.beta=T,T.precomputed={beta:null,naf:E.naf&&{wnd:E.naf.wnd,points:E.naf.points.map(N)},doubles:E.doubles&&{step:E.doubles.step,points:E.doubles.points.map(N)}}}return T},R.prototype.toJSON=function(){if(!this.precomputed)return[this.x,this.y];return[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]},R.fromJSON=function(E,T,S){if(typeof T==="string")T=JSON.parse(T);var N=E.point(T[0],T[1],S);if(!T[2])return N;function B(w){return E.point(w[0],w[1],S)}var x=T[2];return N.precomputed={beta:null,doubles:x.doubles&&{step:x.doubles.step,points:[N].concat(x.doubles.points.map(B))},naf:x.naf&&{wnd:x.naf.wnd,points:[N].concat(x.naf.points.map(B))}},N},R.prototype.inspect=function(){if(this.isInfinity())return"<EC Point Infinity>";return"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},R.prototype.isInfinity=function(){return this.inf},R.prototype.add=function(E){if(this.inf)return E;if(E.inf)return this;if(this.eq(E))return this.dbl();if(this.neg().eq(E))return this.curve.point(null,null);if(this.x.cmp(E.x)===0)return this.curve.point(null,null);var T=this.y.redSub(E.y);if(T.cmpn(0)!==0)T=T.redMul(this.x.redSub(E.x).redInvm());var S=T.redSqr().redISub(this.x).redISub(E.x),N=T.redMul(this.x.redSub(S)).redISub(this.y);return this.curve.point(S,N)},R.prototype.dbl=function(){if(this.inf)return this;var E=this.y.redAdd(this.y);if(E.cmpn(0)===0)return this.curve.point(null,null);var T=this.curve.a,S=this.x.redSqr(),N=E.redInvm(),B=S.redAdd(S).redIAdd(S).redIAdd(T).redMul(N),x=B.redSqr().redISub(this.x.redAdd(this.x)),w=B.redMul(this.x.redSub(x)).redISub(this.y);return this.curve.point(x,w)},R.prototype.getX=function(){return this.x.fromRed()},R.prototype.getY=function(){return this.y.fromRed()},R.prototype.mul=function(E){if(E=new Z(E,16),this.isInfinity())return this;else if(this._hasDoubles(E))return this.curve._fixedNafMul(this,E);else if(this.curve.endo)return this.curve._endoWnafMulAdd([this],[E]);else return this.curve._wnafMul(this,E)},R.prototype.mulAdd=function(E,T,S){var N=[this,T],B=[E,S];if(this.curve.endo)return this.curve._endoWnafMulAdd(N,B);else return this.curve._wnafMulAdd(1,N,B,2)},R.prototype.jmulAdd=function(E,T,S){var N=[this,T],B=[E,S];if(this.curve.endo)return this.curve._endoWnafMulAdd(N,B,!0);else return this.curve._wnafMulAdd(1,N,B,2,!0)},R.prototype.eq=function(E){return this===E||this.inf===E.inf&&(this.inf||this.x.cmp(E.x)===0&&this.y.cmp(E.y)===0)},R.prototype.neg=function(E){if(this.inf)return this;var T=this.curve.point(this.x,this.y.redNeg());if(E&&this.precomputed){var S=this.precomputed,N=function(B){return B.neg()};T.precomputed={naf:S.naf&&{wnd:S.naf.wnd,points:S.naf.points.map(N)},doubles:S.doubles&&{step:S.doubles.step,points:S.doubles.points.map(N)}}}return T},R.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var E=this.curve.jpoint(this.x,this.y,this.curve.one);return E};function M(E,T,S,N){if(J.BasePoint.call(this,E,"jacobian"),T===null&&S===null&&N===null)this.x=this.curve.one,this.y=this.curve.one,this.z=new Z(0);else this.x=new Z(T,16),this.y=new Z(S,16),this.z=new Z(N,16);if(!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red);this.zOne=this.z===this.curve.one}_(M,J.BasePoint),W.prototype.jpoint=function(E,T,S){return new M(this,E,T,S)},M.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var E=this.z.redInvm(),T=E.redSqr(),S=this.x.redMul(T),N=this.y.redMul(T).redMul(E);return this.curve.point(S,N)},M.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},M.prototype.add=function(E){if(this.isInfinity())return E;if(E.isInfinity())return this;var T=E.z.redSqr(),S=this.z.redSqr(),N=this.x.redMul(T),B=E.x.redMul(S),x=this.y.redMul(T.redMul(E.z)),w=E.y.redMul(S.redMul(this.z)),y=N.redSub(B),g=x.redSub(w);if(y.cmpn(0)===0)if(g.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl();var b=y.redSqr(),l=b.redMul(y),i=N.redMul(b),$0=g.redSqr().redIAdd(l).redISub(i).redISub(i),Q0=g.redMul(i.redISub($0)).redISub(x.redMul(l)),G0=this.z.redMul(E.z).redMul(y);return this.curve.jpoint($0,Q0,G0)},M.prototype.mixedAdd=function(E){if(this.isInfinity())return E.toJ();if(E.isInfinity())return this;var T=this.z.redSqr(),S=this.x,N=E.x.redMul(T),B=this.y,x=E.y.redMul(T).redMul(this.z),w=S.redSub(N),y=B.redSub(x);if(w.cmpn(0)===0)if(y.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl();var g=w.redSqr(),b=g.redMul(w),l=S.redMul(g),i=y.redSqr().redIAdd(b).redISub(l).redISub(l),$0=y.redMul(l.redISub(i)).redISub(B.redMul(b)),Q0=this.z.redMul(w);return this.curve.jpoint(i,$0,Q0)},M.prototype.dblp=function(E){if(E===0)return this;if(this.isInfinity())return this;if(!E)return this.dbl();var T;if(this.curve.zeroA||this.curve.threeA){var S=this;for(T=0;T<E;T++)S=S.dbl();return S}var N=this.curve.a,B=this.curve.tinv,x=this.x,w=this.y,y=this.z,g=y.redSqr().redSqr(),b=w.redAdd(w);for(T=0;T<E;T++){var l=x.redSqr(),i=b.redSqr(),$0=i.redSqr(),Q0=l.redAdd(l).redIAdd(l).redIAdd(N.redMul(g)),G0=x.redMul(i),K0=Q0.redSqr().redISub(G0.redAdd(G0)),t=G0.redISub(K0),P0=Q0.redMul(t);P0=P0.redIAdd(P0).redISub($0);var Q=b.redMul(y);if(T+1<E)g=g.redMul($0);x=K0,y=Q,b=P0}return this.curve.jpoint(x,b.redMul(B),y)},M.prototype.dbl=function(){if(this.isInfinity())return this;if(this.curve.zeroA)return this._zeroDbl();else if(this.curve.threeA)return this._threeDbl();else return this._dbl()},M.prototype._zeroDbl=function(){var E,T,S;if(this.zOne){var N=this.x.redSqr(),B=this.y.redSqr(),x=B.redSqr(),w=this.x.redAdd(B).redSqr().redISub(N).redISub(x);w=w.redIAdd(w);var y=N.redAdd(N).redIAdd(N),g=y.redSqr().redISub(w).redISub(w),b=x.redIAdd(x);b=b.redIAdd(b),b=b.redIAdd(b),E=g,T=y.redMul(w.redISub(g)).redISub(b),S=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),i=this.y.redSqr(),$0=i.redSqr(),Q0=this.x.redAdd(i).redSqr().redISub(l).redISub($0);Q0=Q0.redIAdd(Q0);var G0=l.redAdd(l).redIAdd(l),K0=G0.redSqr(),t=$0.redIAdd($0);t=t.redIAdd(t),t=t.redIAdd(t),E=K0.redISub(Q0).redISub(Q0),T=G0.redMul(Q0.redISub(E)).redISub(t),S=this.y.redMul(this.z),S=S.redIAdd(S)}return this.curve.jpoint(E,T,S)},M.prototype._threeDbl=function(){var E,T,S;if(this.zOne){var N=this.x.redSqr(),B=this.y.redSqr(),x=B.redSqr(),w=this.x.redAdd(B).redSqr().redISub(N).redISub(x);w=w.redIAdd(w);var y=N.redAdd(N).redIAdd(N).redIAdd(this.curve.a),g=y.redSqr().redISub(w).redISub(w);E=g;var b=x.redIAdd(x);b=b.redIAdd(b),b=b.redIAdd(b),T=y.redMul(w.redISub(g)).redISub(b),S=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),i=this.y.redSqr(),$0=this.x.redMul(i),Q0=this.x.redSub(l).redMul(this.x.redAdd(l));Q0=Q0.redAdd(Q0).redIAdd(Q0);var G0=$0.redIAdd($0);G0=G0.redIAdd(G0);var K0=G0.redAdd(G0);E=Q0.redSqr().redISub(K0),S=this.y.redAdd(this.z).redSqr().redISub(i).redISub(l);var t=i.redSqr();t=t.redIAdd(t),t=t.redIAdd(t),t=t.redIAdd(t),T=Q0.redMul(G0.redISub(E)).redISub(t)}return this.curve.jpoint(E,T,S)},M.prototype._dbl=function(){var E=this.curve.a,T=this.x,S=this.y,N=this.z,B=N.redSqr().redSqr(),x=T.redSqr(),w=S.redSqr(),y=x.redAdd(x).redIAdd(x).redIAdd(E.redMul(B)),g=T.redAdd(T);g=g.redIAdd(g);var b=g.redMul(w),l=y.redSqr().redISub(b.redAdd(b)),i=b.redISub(l),$0=w.redSqr();$0=$0.redIAdd($0),$0=$0.redIAdd($0),$0=$0.redIAdd($0);var Q0=y.redMul(i).redISub($0),G0=S.redAdd(S).redMul(N);return this.curve.jpoint(l,Q0,G0)},M.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var E=this.x.redSqr(),T=this.y.redSqr(),S=this.z.redSqr(),N=T.redSqr(),B=E.redAdd(E).redIAdd(E),x=B.redSqr(),w=this.x.redAdd(T).redSqr().redISub(E).redISub(N);w=w.redIAdd(w),w=w.redAdd(w).redIAdd(w),w=w.redISub(x);var y=w.redSqr(),g=N.redIAdd(N);g=g.redIAdd(g),g=g.redIAdd(g),g=g.redIAdd(g);var b=B.redIAdd(w).redSqr().redISub(x).redISub(y).redISub(g),l=T.redMul(b);l=l.redIAdd(l),l=l.redIAdd(l);var i=this.x.redMul(y).redISub(l);i=i.redIAdd(i),i=i.redIAdd(i);var $0=this.y.redMul(b.redMul(g.redISub(b)).redISub(w.redMul(y)));$0=$0.redIAdd($0),$0=$0.redIAdd($0),$0=$0.redIAdd($0);var Q0=this.z.redAdd(w).redSqr().redISub(S).redISub(y);return this.curve.jpoint(i,$0,Q0)},M.prototype.mul=function(E,T){return E=new Z(E,T),this.curve._wnafMul(this,E)},M.prototype.eq=function(E){if(E.type==="affine")return this.eq(E.toJ());if(this===E)return!0;var T=this.z.redSqr(),S=E.z.redSqr();if(this.x.redMul(S).redISub(E.x.redMul(T)).cmpn(0)!==0)return!1;var N=T.redMul(this.z),B=S.redMul(E.z);return this.y.redMul(B).redISub(E.y.redMul(N)).cmpn(0)===0},M.prototype.eqXToP=function(E){var T=this.z.redSqr(),S=E.toRed(this.curve.red).redMul(T);if(this.x.cmp(S)===0)return!0;var N=E.clone(),B=this.curve.redN.redMul(T);for(;;){if(N.iadd(this.curve.n),N.cmp(this.curve.p)>=0)return!1;if(S.redIAdd(B),this.x.cmp(S)===0)return!0}},M.prototype.inspect=function(){if(this.isInfinity())return"<EC JPoint Infinity>";return"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},M.prototype.isInfinity=function(){return this.z.cmpn(0)===0}}),fu=$$(($,I)=>{var G=g_(),Z=B6(),_=yZ(),J=e6();function Y(R){_.call(this,"mont",R),this.a=new G(R.a,16).toRed(this.red),this.b=new G(R.b,16).toRed(this.red),this.i4=new G(4).toRed(this.red).redInvm(),this.two=new G(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}Z(Y,_),I.exports=Y,Y.prototype.validate=function(R){var M=R.normalize().x,E=M.redSqr(),T=E.redMul(M).redAdd(E.redMul(this.a)).redAdd(M),S=T.redSqrt();return S.redSqr().cmp(T)===0};function W(R,M,E){if(_.BasePoint.call(this,R,"projective"),M===null&&E===null)this.x=this.curve.one,this.z=this.curve.zero;else{if(this.x=new G(M,16),this.z=new G(E,16),!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red)}}Z(W,_.BasePoint),Y.prototype.decodePoint=function(R,M){return this.point(J.toArray(R,M),1)},Y.prototype.point=function(R,M){return new W(this,R,M)},Y.prototype.pointFromJSON=function(R){return W.fromJSON(this,R)},W.prototype.precompute=function(){},W.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},W.fromJSON=function(R,M){return new W(R,M[0],M[1]||R.one)},W.prototype.inspect=function(){if(this.isInfinity())return"<EC Point Infinity>";return"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},W.prototype.isInfinity=function(){return this.z.cmpn(0)===0},W.prototype.dbl=function(){var R=this.x.redAdd(this.z),M=R.redSqr(),E=this.x.redSub(this.z),T=E.redSqr(),S=M.redSub(T),N=M.redMul(T),B=S.redMul(T.redAdd(this.curve.a24.redMul(S)));return this.curve.point(N,B)},W.prototype.add=function(){throw Error("Not supported on Montgomery curve")},W.prototype.diffAdd=function(R,M){var E=this.x.redAdd(this.z),T=this.x.redSub(this.z),S=R.x.redAdd(R.z),N=R.x.redSub(R.z),B=N.redMul(E),x=S.redMul(T),w=M.z.redMul(B.redAdd(x).redSqr()),y=M.x.redMul(B.redISub(x).redSqr());return this.curve.point(w,y)},W.prototype.mul=function(R){var M=R.clone(),E=this,T=this.curve.point(null,null),S=this;for(var N=[];M.cmpn(0)!==0;M.iushrn(1))N.push(M.andln(1));for(var B=N.length-1;B>=0;B--)if(N[B]===0)E=E.diffAdd(T,S),T=T.dbl();else T=E.diffAdd(T,S),E=E.dbl();return T},W.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},W.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},W.prototype.eq=function(R){return this.getX().cmp(R.getX())===0},W.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},W.prototype.getX=function(){return this.normalize(),this.x.fromRed()}}),yu=$$(($,I)=>{var G=e6(),Z=g_(),_=B6(),J=yZ(),Y=G.assert;function W(M){this.twisted=(M.a|0)!==1,this.mOneA=this.twisted&&(M.a|0)===-1,this.extended=this.mOneA,J.call(this,"edwards",M),this.a=new Z(M.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new Z(M.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new Z(M.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),Y(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(M.c|0)===1}_(W,J),I.exports=W,W.prototype._mulA=function(M){if(this.mOneA)return M.redNeg();else return this.a.redMul(M)},W.prototype._mulC=function(M){if(this.oneC)return M;else return this.c.redMul(M)},W.prototype.jpoint=function(M,E,T,S){return this.point(M,E,T,S)},W.prototype.pointFromX=function(M,E){if(M=new Z(M,16),!M.red)M=M.toRed(this.red);var T=M.redSqr(),S=this.c2.redSub(this.a.redMul(T)),N=this.one.redSub(this.c2.redMul(this.d).redMul(T)),B=S.redMul(N.redInvm()),x=B.redSqrt();if(x.redSqr().redSub(B).cmp(this.zero)!==0)throw Error("invalid point");var w=x.fromRed().isOdd();if(E&&!w||!E&&w)x=x.redNeg();return this.point(M,x)},W.prototype.pointFromY=function(M,E){if(M=new Z(M,16),!M.red)M=M.toRed(this.red);var T=M.redSqr(),S=T.redSub(this.c2),N=T.redMul(this.d).redMul(this.c2).redSub(this.a),B=S.redMul(N.redInvm());if(B.cmp(this.zero)===0)if(E)throw Error("invalid point");else return this.point(this.zero,M);var x=B.redSqrt();if(x.redSqr().redSub(B).cmp(this.zero)!==0)throw Error("invalid point");if(x.fromRed().isOdd()!==E)x=x.redNeg();return this.point(x,M)},W.prototype.validate=function(M){if(M.isInfinity())return!0;M.normalize();var E=M.x.redSqr(),T=M.y.redSqr(),S=E.redMul(this.a).redAdd(T),N=this.c2.redMul(this.one.redAdd(this.d.redMul(E).redMul(T)));return S.cmp(N)===0};function R(M,E,T,S,N){if(J.BasePoint.call(this,M,"projective"),E===null&&T===null&&S===null)this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0;else{if(this.x=new Z(E,16),this.y=new Z(T,16),this.z=S?new Z(S,16):this.curve.one,this.t=N&&new Z(N,16),!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red);if(this.t&&!this.t.red)this.t=this.t.toRed(this.curve.red);if(this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t){if(this.t=this.x.redMul(this.y),!this.zOne)this.t=this.t.redMul(this.z.redInvm())}}}_(R,J.BasePoint),W.prototype.pointFromJSON=function(M){return R.fromJSON(this,M)},W.prototype.point=function(M,E,T,S){return new R(this,M,E,T,S)},R.fromJSON=function(M,E){return new R(M,E[0],E[1],E[2])},R.prototype.inspect=function(){if(this.isInfinity())return"<EC Point Infinity>";return"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},R.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},R.prototype._extDbl=function(){var M=this.x.redSqr(),E=this.y.redSqr(),T=this.z.redSqr();T=T.redIAdd(T);var S=this.curve._mulA(M),N=this.x.redAdd(this.y).redSqr().redISub(M).redISub(E),B=S.redAdd(E),x=B.redSub(T),w=S.redSub(E),y=N.redMul(x),g=B.redMul(w),b=N.redMul(w),l=x.redMul(B);return this.curve.point(y,g,l,b)},R.prototype._projDbl=function(){var M=this.x.redAdd(this.y).redSqr(),E=this.x.redSqr(),T=this.y.redSqr(),S,N,B,x,w,y;if(this.curve.twisted){x=this.curve._mulA(E);var g=x.redAdd(T);if(this.zOne)S=M.redSub(E).redSub(T).redMul(g.redSub(this.curve.two)),N=g.redMul(x.redSub(T)),B=g.redSqr().redSub(g).redSub(g);else w=this.z.redSqr(),y=g.redSub(w).redISub(w),S=M.redSub(E).redISub(T).redMul(y),N=g.redMul(x.redSub(T)),B=g.redMul(y)}else x=E.redAdd(T),w=this.curve._mulC(this.z).redSqr(),y=x.redSub(w).redSub(w),S=this.curve._mulC(M.redISub(x)).redMul(y),N=this.curve._mulC(x).redMul(E.redISub(T)),B=x.redMul(y);return this.curve.point(S,N,B)},R.prototype.dbl=function(){if(this.isInfinity())return this;if(this.curve.extended)return this._extDbl();else return this._projDbl()},R.prototype._extAdd=function(M){var E=this.y.redSub(this.x).redMul(M.y.redSub(M.x)),T=this.y.redAdd(this.x).redMul(M.y.redAdd(M.x)),S=this.t.redMul(this.curve.dd).redMul(M.t),N=this.z.redMul(M.z.redAdd(M.z)),B=T.redSub(E),x=N.redSub(S),w=N.redAdd(S),y=T.redAdd(E),g=B.redMul(x),b=w.redMul(y),l=B.redMul(y),i=x.redMul(w);return this.curve.point(g,b,i,l)},R.prototype._projAdd=function(M){var E=this.z.redMul(M.z),T=E.redSqr(),S=this.x.redMul(M.x),N=this.y.redMul(M.y),B=this.curve.d.redMul(S).redMul(N),x=T.redSub(B),w=T.redAdd(B),y=this.x.redAdd(this.y).redMul(M.x.redAdd(M.y)).redISub(S).redISub(N),g=E.redMul(x).redMul(y),b,l;if(this.curve.twisted)b=E.redMul(w).redMul(N.redSub(this.curve._mulA(S))),l=x.redMul(w);else b=E.redMul(w).redMul(N.redSub(S)),l=this.curve._mulC(x).redMul(w);return this.curve.point(g,b,l)},R.prototype.add=function(M){if(this.isInfinity())return M;if(M.isInfinity())return this;if(this.curve.extended)return this._extAdd(M);else return this._projAdd(M)},R.prototype.mul=function(M){if(this._hasDoubles(M))return this.curve._fixedNafMul(this,M);else return this.curve._wnafMul(this,M)},R.prototype.mulAdd=function(M,E,T){return this.curve._wnafMulAdd(1,[this,E],[M,T],2,!1)},R.prototype.jmulAdd=function(M,E,T){return this.curve._wnafMulAdd(1,[this,E],[M,T],2,!0)},R.prototype.normalize=function(){if(this.zOne)return this;var M=this.z.redInvm();if(this.x=this.x.redMul(M),this.y=this.y.redMul(M),this.t)this.t=this.t.redMul(M);return this.z=this.curve.one,this.zOne=!0,this},R.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},R.prototype.getX=function(){return this.normalize(),this.x.fromRed()},R.prototype.getY=function(){return this.normalize(),this.y.fromRed()},R.prototype.eq=function(M){return this===M||this.getX().cmp(M.getX())===0&&this.getY().cmp(M.getY())===0},R.prototype.eqXToP=function(M){var E=M.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(E)===0)return!0;var T=M.clone(),S=this.curve.redN.redMul(this.z);for(;;){if(T.iadd(this.curve.n),T.cmp(this.curve.p)>=0)return!1;if(E.redIAdd(S),this.x.cmp(E)===0)return!0}},R.prototype.toP=R.prototype.normalize,R.prototype.mixedAdd=R.prototype.add}),lN=$$(($)=>{var I=$;I.base=yZ(),I.short=xu(),I.mont=fu(),I.edwards=yu()}),tI=$$(($)=>{var I=B2(),G=B6();$.inherits=G;function Z(K,F){if((K.charCodeAt(F)&64512)!==55296)return!1;if(F<0||F+1>=K.length)return!1;return(K.charCodeAt(F+1)&64512)===56320}function _(K,F){if(Array.isArray(K))return K.slice();if(!K)return[];var L=[];if(typeof K==="string"){if(!F){var H=0;for(var v=0;v<K.length;v++){var q=K.charCodeAt(v);if(q<128)L[H++]=q;else if(q<2048)L[H++]=q>>6|192,L[H++]=q&63|128;else if(Z(K,v))q=65536+((q&1023)<<10)+(K.charCodeAt(++v)&1023),L[H++]=q>>18|240,L[H++]=q>>12&63|128,L[H++]=q>>6&63|128,L[H++]=q&63|128;else L[H++]=q>>12|224,L[H++]=q>>6&63|128,L[H++]=q&63|128}}else if(F==="hex"){if(K=K.replace(/[^a-z0-9]+/ig,""),K.length%2!==0)K="0"+K;for(v=0;v<K.length;v+=2)L.push(parseInt(K[v]+K[v+1],16))}}else for(v=0;v<K.length;v++)L[v]=K[v]|0;return L}$.toArray=_;function J(K){var F="";for(var L=0;L<K.length;L++)F+=R(K[L].toString(16));return F}$.toHex=J;function Y(K){var F=K>>>24|K>>>8&65280|K<<8&16711680|(K&255)<<24;return F>>>0}$.htonl=Y;function W(K,F){var L="";for(var H=0;H<K.length;H++){var v=K[H];if(F==="little")v=Y(v);L+=M(v.toString(16))}return L}$.toHex32=W;function R(K){if(K.length===1)return"0"+K;else return K}$.zero2=R;function M(K){if(K.length===7)return"0"+K;else if(K.length===6)return"00"+K;else if(K.length===5)return"000"+K;else if(K.length===4)return"0000"+K;else if(K.length===3)return"00000"+K;else if(K.length===2)return"000000"+K;else if(K.length===1)return"0000000"+K;else return K}$.zero8=M;function E(K,F,L,H){var v=L-F;I(v%4===0);var q=Array(v/4);for(var P=0,O=F;P<q.length;P++,O+=4){var A;if(H==="big")A=K[O]<<24|K[O+1]<<16|K[O+2]<<8|K[O+3];else A=K[O+3]<<24|K[O+2]<<16|K[O+1]<<8|K[O];q[P]=A>>>0}return q}$.join32=E;function T(K,F){var L=Array(K.length*4);for(var H=0,v=0;H<K.length;H++,v+=4){var q=K[H];if(F==="big")L[v]=q>>>24,L[v+1]=q>>>16&255,L[v+2]=q>>>8&255,L[v+3]=q&255;else L[v+3]=q>>>24,L[v+2]=q>>>16&255,L[v+1]=q>>>8&255,L[v]=q&255}return L}$.split32=T;function S(K,F){return K>>>F|K<<32-F}$.rotr32=S;function N(K,F){return K<<F|K>>>32-F}$.rotl32=N;function B(K,F){return K+F>>>0}$.sum32=B;function x(K,F,L){return K+F+L>>>0}$.sum32_3=x;function w(K,F,L,H){return K+F+L+H>>>0}$.sum32_4=w;function y(K,F,L,H,v){return K+F+L+H+v>>>0}$.sum32_5=y;function g(K,F,L,H){var v=K[F],q=K[F+1],P=H+q>>>0,O=(P<H?1:0)+L+v;K[F]=O>>>0,K[F+1]=P}$.sum64=g;function b(K,F,L,H){var v=F+H>>>0,q=(v<F?1:0)+K+L;return q>>>0}$.sum64_hi=b;function l(K,F,L,H){var v=F+H;return v>>>0}$.sum64_lo=l;function i(K,F,L,H,v,q,P,O){var A=0,k=F;k=k+H>>>0,A+=k<F?1:0,k=k+q>>>0,A+=k<q?1:0,k=k+O>>>0,A+=k<O?1:0;var j=K+L+v+P+A;return j>>>0}$.sum64_4_hi=i;function $0(K,F,L,H,v,q,P,O){var A=F+H+q+O;return A>>>0}$.sum64_4_lo=$0;function Q0(K,F,L,H,v,q,P,O,A,k){var j=0,h=F;h=h+H>>>0,j+=h<F?1:0,h=h+q>>>0,j+=h<q?1:0,h=h+O>>>0,j+=h<O?1:0,h=h+k>>>0,j+=h<k?1:0;var a=K+L+v+P+A+j;return a>>>0}$.sum64_5_hi=Q0;function G0(K,F,L,H,v,q,P,O,A,k){var j=F+H+q+O+k;return j>>>0}$.sum64_5_lo=G0;function K0(K,F,L){var H=F<<32-L|K>>>L;return H>>>0}$.rotr64_hi=K0;function t(K,F,L){var H=K<<32-L|F>>>L;return H>>>0}$.rotr64_lo=t;function P0(K,F,L){return K>>>L}$.shr64_hi=P0;function Q(K,F,L){var H=K<<32-L|F>>>L;return H>>>0}$.shr64_lo=Q}),iJ=$$(($)=>{var I=tI(),G=B2();function Z(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}$.BlockHash=Z,Z.prototype.update=function(_,J){if(_=I.toArray(_,J),!this.pending)this.pending=_;else this.pending=this.pending.concat(_);if(this.pendingTotal+=_.length,this.pending.length>=this._delta8){_=this.pending;var Y=_.length%this._delta8;if(this.pending=_.slice(_.length-Y,_.length),this.pending.length===0)this.pending=null;_=I.join32(_,0,_.length-Y,this.endian);for(var W=0;W<_.length;W+=this._delta32)this._update(_,W,W+this._delta32)}return this},Z.prototype.digest=function(_){return this.update(this._pad()),G(this.pending===null),this._digest(_)},Z.prototype._pad=function(){var _=this.pendingTotal,J=this._delta8,Y=J-(_+this.padLength)%J,W=Array(Y+this.padLength);W[0]=128;for(var R=1;R<Y;R++)W[R]=0;if(_<<=3,this.endian==="big"){for(var M=8;M<this.padLength;M++)W[R++]=0;W[R++]=0,W[R++]=0,W[R++]=0,W[R++]=0,W[R++]=_>>>24&255,W[R++]=_>>>16&255,W[R++]=_>>>8&255,W[R++]=_&255}else{W[R++]=_&255,W[R++]=_>>>8&255,W[R++]=_>>>16&255,W[R++]=_>>>24&255,W[R++]=0,W[R++]=0,W[R++]=0,W[R++]=0;for(M=8;M<this.padLength;M++)W[R++]=0}return W}}),mN=$$(($)=>{var I=tI(),G=I.rotr32;function Z(T,S,N,B){if(T===0)return _(S,N,B);if(T===1||T===3)return Y(S,N,B);if(T===2)return J(S,N,B)}$.ft_1=Z;function _(T,S,N){return T&S^~T&N}$.ch32=_;function J(T,S,N){return T&S^T&N^S&N}$.maj32=J;function Y(T,S,N){return T^S^N}$.p32=Y;function W(T){return G(T,2)^G(T,13)^G(T,22)}$.s0_256=W;function R(T){return G(T,6)^G(T,11)^G(T,25)}$.s1_256=R;function M(T){return G(T,7)^G(T,18)^T>>>3}$.g0_256=M;function E(T){return G(T,17)^G(T,19)^T>>>10}$.g1_256=E}),bu=$$(($,I)=>{var G=tI(),Z=iJ(),_=mN(),J=G.rotl32,Y=G.sum32,W=G.sum32_5,R=_.ft_1,M=Z.BlockHash,E=[1518500249,1859775393,2400959708,3395469782];function T(){if(!(this instanceof T))return new T;M.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}G.inherits(T,M),I.exports=T,T.blockSize=512,T.outSize=160,T.hmacStrength=80,T.padLength=64,T.prototype._update=function(S,N){var B=this.W;for(var x=0;x<16;x++)B[x]=S[N+x];for(;x<B.length;x++)B[x]=J(B[x-3]^B[x-8]^B[x-14]^B[x-16],1);var w=this.h[0],y=this.h[1],g=this.h[2],b=this.h[3],l=this.h[4];for(x=0;x<B.length;x++){var i=~~(x/20),$0=W(J(w,5),R(i,y,g,b),l,B[x],E[i]);l=b,b=g,g=J(y,30),y=w,w=$0}this.h[0]=Y(this.h[0],w),this.h[1]=Y(this.h[1],y),this.h[2]=Y(this.h[2],g),this.h[3]=Y(this.h[3],b),this.h[4]=Y(this.h[4],l)},T.prototype._digest=function(S){if(S==="hex")return G.toHex32(this.h,"big");else return G.split32(this.h,"big")}}),dN=$$(($,I)=>{var G=tI(),Z=iJ(),_=mN(),J=B2(),Y=G.sum32,W=G.sum32_4,R=G.sum32_5,M=_.ch32,E=_.maj32,T=_.s0_256,S=_.s1_256,N=_.g0_256,B=_.g1_256,x=Z.BlockHash,w=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;x.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=w,this.W=Array(64)}G.inherits(y,x),I.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(g,b){var l=this.W;for(var i=0;i<16;i++)l[i]=g[b+i];for(;i<l.length;i++)l[i]=W(B(l[i-2]),l[i-7],N(l[i-15]),l[i-16]);var $0=this.h[0],Q0=this.h[1],G0=this.h[2],K0=this.h[3],t=this.h[4],P0=this.h[5],Q=this.h[6],K=this.h[7];J(this.k.length===l.length);for(i=0;i<l.length;i++){var F=R(K,S(t),M(t,P0,Q),this.k[i],l[i]),L=Y(T($0),E($0,Q0,G0));K=Q,Q=P0,P0=t,t=Y(K0,F),K0=G0,G0=Q0,Q0=$0,$0=Y(F,L)}this.h[0]=Y(this.h[0],$0),this.h[1]=Y(this.h[1],Q0),this.h[2]=Y(this.h[2],G0),this.h[3]=Y(this.h[3],K0),this.h[4]=Y(this.h[4],t),this.h[5]=Y(this.h[5],P0),this.h[6]=Y(this.h[6],Q),this.h[7]=Y(this.h[7],K)},y.prototype._digest=function(g){if(g==="hex")return G.toHex32(this.h,"big");else return G.split32(this.h,"big")}}),hu=$$(($,I)=>{var G=tI(),Z=dN();function _(){if(!(this instanceof _))return new _;Z.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}G.inherits(_,Z),I.exports=_,_.blockSize=512,_.outSize=224,_.hmacStrength=192,_.padLength=64,_.prototype._digest=function(J){if(J==="hex")return G.toHex32(this.h.slice(0,7),"big");else return G.split32(this.h.slice(0,7),"big")}}),iN=$$(($,I)=>{var G=tI(),Z=iJ(),_=B2(),J=G.rotr64_hi,Y=G.rotr64_lo,W=G.shr64_hi,R=G.shr64_lo,M=G.sum64,E=G.sum64_hi,T=G.sum64_lo,S=G.sum64_4_hi,N=G.sum64_4_lo,B=G.sum64_5_hi,x=G.sum64_5_lo,w=Z.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function g(){if(!(this instanceof g))return new g;w.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=Array(160)}G.inherits(g,w),I.exports=g,g.blockSize=1024,g.outSize=512,g.hmacStrength=192,g.padLength=128,g.prototype._prepareBlock=function(L,H){var v=this.W;for(var q=0;q<32;q++)v[q]=L[H+q];for(;q<v.length;q+=2){var P=K(v[q-4],v[q-3]),O=F(v[q-4],v[q-3]),A=v[q-14],k=v[q-13],j=P0(v[q-30],v[q-29]),h=Q(v[q-30],v[q-29]),a=v[q-32],J0=v[q-31];v[q]=S(P,O,A,k,j,h,a,J0),v[q+1]=N(P,O,A,k,j,h,a,J0)}},g.prototype._update=function(L,H){this._prepareBlock(L,H);var v=this.W,q=this.h[0],P=this.h[1],O=this.h[2],A=this.h[3],k=this.h[4],j=this.h[5],h=this.h[6],a=this.h[7],J0=this.h[8],D0=this.h[9],O0=this.h[10],d=this.h[11],m=this.h[12],r=this.h[13],Y0=this.h[14],W0=this.h[15];_(this.k.length===v.length);for(var I0=0;I0<v.length;I0+=2){var c=Y0,s=W0,S0=K0(J0,D0),M0=t(J0,D0),z0=b(J0,D0,O0,d,m,r),c0=l(J0,D0,O0,d,m,r),F0=this.k[I0],q0=this.k[I0+1],s0=v[I0],k0=v[I0+1],n0=B(c,s,S0,M0,z0,c0,F0,q0,s0,k0),M$=x(c,s,S0,M0,z0,c0,F0,q0,s0,k0);c=Q0(q,P),s=G0(q,P),S0=i(q,P,O,A,k,j),M0=$0(q,P,O,A,k,j);var T0=E(c,s,S0,M0),V0=T(c,s,S0,M0);Y0=m,W0=r,m=O0,r=d,O0=J0,d=D0,J0=E(h,a,n0,M$),D0=T(a,a,n0,M$),h=k,a=j,k=O,j=A,O=q,A=P,q=E(n0,M$,T0,V0),P=T(n0,M$,T0,V0)}M(this.h,0,q,P),M(this.h,2,O,A),M(this.h,4,k,j),M(this.h,6,h,a),M(this.h,8,J0,D0),M(this.h,10,O0,d),M(this.h,12,m,r),M(this.h,14,Y0,W0)},g.prototype._digest=function(L){if(L==="hex")return G.toHex32(this.h,"big");else return G.split32(this.h,"big")};function b(L,H,v,q,P){var O=L&v^~L&P;if(O<0)O+=4294967296;return O}function l(L,H,v,q,P,O){var A=H&q^~H&O;if(A<0)A+=4294967296;return A}function i(L,H,v,q,P){var O=L&v^L&P^v&P;if(O<0)O+=4294967296;return O}function $0(L,H,v,q,P,O){var A=H&q^H&O^q&O;if(A<0)A+=4294967296;return A}function Q0(L,H){var v=J(L,H,28),q=J(H,L,2),P=J(H,L,7),O=v^q^P;if(O<0)O+=4294967296;return O}function G0(L,H){var v=Y(L,H,28),q=Y(H,L,2),P=Y(H,L,7),O=v^q^P;if(O<0)O+=4294967296;return O}function K0(L,H){var v=J(L,H,14),q=J(L,H,18),P=J(H,L,9),O=v^q^P;if(O<0)O+=4294967296;return O}function t(L,H){var v=Y(L,H,14),q=Y(L,H,18),P=Y(H,L,9),O=v^q^P;if(O<0)O+=4294967296;return O}function P0(L,H){var v=J(L,H,1),q=J(L,H,8),P=W(L,H,7),O=v^q^P;if(O<0)O+=4294967296;return O}function Q(L,H){var v=Y(L,H,1),q=Y(L,H,8),P=R(L,H,7),O=v^q^P;if(O<0)O+=4294967296;return O}function K(L,H){var v=J(L,H,19),q=J(H,L,29),P=W(L,H,6),O=v^q^P;if(O<0)O+=4294967296;return O}function F(L,H){var v=Y(L,H,19),q=Y(H,L,29),P=R(L,H,6),O=v^q^P;if(O<0)O+=4294967296;return O}}),uu=$$(($,I)=>{var G=tI(),Z=iN();function _(){if(!(this instanceof _))return new _;Z.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}G.inherits(_,Z),I.exports=_,_.blockSize=1024,_.outSize=384,_.hmacStrength=192,_.padLength=128,_.prototype._digest=function(J){if(J==="hex")return G.toHex32(this.h.slice(0,12),"big");else return G.split32(this.h.slice(0,12),"big")}}),nu=$$(($)=>{$.sha1=bu(),$.sha224=hu(),$.sha256=dN(),$.sha384=uu(),$.sha512=iN()}),pu=$$(($)=>{var I=tI(),G=iJ(),Z=I.rotl32,_=I.sum32,J=I.sum32_3,Y=I.sum32_4,W=G.BlockHash;function R(){if(!(this instanceof R))return new R;W.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}I.inherits(R,W),$.ripemd160=R,R.blockSize=512,R.outSize=160,R.hmacStrength=192,R.padLength=64,R.prototype._update=function(w,y){var g=this.h[0],b=this.h[1],l=this.h[2],i=this.h[3],$0=this.h[4],Q0=g,G0=b,K0=l,t=i,P0=$0;for(var Q=0;Q<80;Q++){var K=_(Z(Y(g,M(Q,b,l,i),w[S[Q]+y],E(Q)),B[Q]),$0);g=$0,$0=i,i=Z(l,10),l=b,b=K,K=_(Z(Y(Q0,M(79-Q,G0,K0,t),w[N[Q]+y],T(Q)),x[Q]),P0),Q0=P0,P0=t,t=Z(K0,10),K0=G0,G0=K}K=J(this.h[1],l,t),this.h[1]=J(this.h[2],i,P0),this.h[2]=J(this.h[3],$0,Q0),this.h[3]=J(this.h[4],g,G0),this.h[4]=J(this.h[0],b,K0),this.h[0]=K},R.prototype._digest=function(w){if(w==="hex")return I.toHex32(this.h,"little");else return I.split32(this.h,"little")};function M(w,y,g,b){if(w<=15)return y^g^b;else if(w<=31)return y&g|~y&b;else if(w<=47)return(y|~g)^b;else if(w<=63)return y&b|g&~b;else return y^(g|~b)}function E(w){if(w<=15)return 0;else if(w<=31)return 1518500249;else if(w<=47)return 1859775393;else if(w<=63)return 2400959708;else return 2840853838}function T(w){if(w<=15)return 1352829926;else if(w<=31)return 1548603684;else if(w<=47)return 1836072691;else if(w<=63)return 2053994217;else return 0}var S=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],N=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],B=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],x=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]}),cu=$$(($,I)=>{var G=tI(),Z=B2();function _(J,Y,W){if(!(this instanceof _))return new _(J,Y,W);this.Hash=J,this.blockSize=J.blockSize/8,this.outSize=J.outSize/8,this.inner=null,this.outer=null,this._init(G.toArray(Y,W))}I.exports=_,_.prototype._init=function(J){if(J.length>this.blockSize)J=new this.Hash().update(J).digest();Z(J.length<=this.blockSize);for(var Y=J.length;Y<this.blockSize;Y++)J.push(0);for(Y=0;Y<J.length;Y++)J[Y]^=54;this.inner=new this.Hash().update(J);for(Y=0;Y<J.length;Y++)J[Y]^=106;this.outer=new this.Hash().update(J)},_.prototype.update=function(J,Y){return this.inner.update(J,Y),this},_.prototype.digest=function(J){return this.outer.update(this.inner.digest()),this.outer.digest(J)}}),QW=$$(($)=>{var I=$;I.utils=tI(),I.common=iJ(),I.sha=nu(),I.ripemd=pu(),I.hmac=cu(),I.sha1=I.sha.sha1,I.sha256=I.sha.sha256,I.sha224=I.sha.sha224,I.sha384=I.sha.sha384,I.sha512=I.sha.sha512,I.ripemd160=I.ripemd.ripemd160}),lu=$$(($,I)=>{I.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}}),zW=$$(($)=>{var I=$,G=QW(),Z=lN(),_=e6(),J=_.assert;function Y(M){if(M.type==="short")this.curve=new Z.short(M);else if(M.type==="edwards")this.curve=new Z.edwards(M);else this.curve=new Z.mont(M);this.g=this.curve.g,this.n=this.curve.n,this.hash=M.hash,J(this.g.validate(),"Invalid curve"),J(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}I.PresetCurve=Y;function W(M,E){Object.defineProperty(I,M,{configurable:!0,enumerable:!0,get:function(){var T=new Y(E);return Object.defineProperty(I,M,{configurable:!0,enumerable:!0,value:T}),T}})}W("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:G.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),W("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:G.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),W("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:G.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),W("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:G.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),W("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:G.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),W("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:G.sha256,gRed:!1,g:["9"]}),W("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:G.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var R;try{R=lu()}catch(M){R=void 0}W("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:G.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",R]})}),mu=$$(($,I)=>{var G=QW(),Z=pN(),_=B2();function J(Y){if(!(this instanceof J))return new J(Y);this.hash=Y.hash,this.predResist=!!Y.predResist,this.outLen=this.hash.outSize,this.minEntropy=Y.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var W=Z.toArray(Y.entropy,Y.entropyEnc||"hex"),R=Z.toArray(Y.nonce,Y.nonceEnc||"hex"),M=Z.toArray(Y.pers,Y.persEnc||"hex");_(W.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(W,R,M)}I.exports=J,J.prototype._init=function(Y,W,R){var M=Y.concat(W).concat(R);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var E=0;E<this.V.length;E++)this.K[E]=0,this.V[E]=1;this._update(M),this._reseed=1,this.reseedInterval=281474976710656},J.prototype._hmac=function(){return new G.hmac(this.hash,this.K)},J.prototype._update=function(Y){var W=this._hmac().update(this.V).update([0]);if(Y)W=W.update(Y);if(this.K=W.digest(),this.V=this._hmac().update(this.V).digest(),!Y)return;this.K=this._hmac().update(this.V).update([1]).update(Y).digest(),this.V=this._hmac().update(this.V).digest()},J.prototype.reseed=function(Y,W,R,M){if(typeof W!=="string")M=R,R=W,W=null;Y=Z.toArray(Y,W),R=Z.toArray(R,M),_(Y.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(Y.concat(R||[])),this._reseed=1},J.prototype.generate=function(Y,W,R,M){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");if(typeof W!=="string")M=R,R=W,W=null;if(R)R=Z.toArray(R,M||"hex"),this._update(R);var E=[];while(E.length<Y)this.V=this._hmac().update(this.V).digest(),E=E.concat(this.V);var T=E.slice(0,Y);return this._update(R),this._reseed++,Z.encode(T,W)}}),du=$$(($,I)=>{var G=g_(),Z=e6(),_=Z.assert;function J(Y,W){if(this.ec=Y,this.priv=null,this.pub=null,W.priv)this._importPrivate(W.priv,W.privEnc);if(W.pub)this._importPublic(W.pub,W.pubEnc)}I.exports=J,J.fromPublic=function(Y,W,R){if(W instanceof J)return W;return new J(Y,{pub:W,pubEnc:R})},J.fromPrivate=function(Y,W,R){if(W instanceof J)return W;return new J(Y,{priv:W,privEnc:R})},J.prototype.validate=function(){var Y=this.getPublic();if(Y.isInfinity())return{result:!1,reason:"Invalid public key"};if(!Y.validate())return{result:!1,reason:"Public key is not a point"};if(!Y.mul(this.ec.curve.n).isInfinity())return{result:!1,reason:"Public key * N != O"};return{result:!0,reason:null}},J.prototype.getPublic=function(Y,W){if(typeof Y==="string")W=Y,Y=null;if(!this.pub)this.pub=this.ec.g.mul(this.priv);if(!W)return this.pub;return this.pub.encode(W,Y)},J.prototype.getPrivate=function(Y){if(Y==="hex")return this.priv.toString(16,2);else return this.priv},J.prototype._importPrivate=function(Y,W){this.priv=new G(Y,W||16),this.priv=this.priv.umod(this.ec.curve.n)},J.prototype._importPublic=function(Y,W){if(Y.x||Y.y){if(this.ec.curve.type==="mont")_(Y.x,"Need x coordinate");else if(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")_(Y.x&&Y.y,"Need both x and y coordinate");this.pub=this.ec.curve.point(Y.x,Y.y);return}this.pub=this.ec.curve.decodePoint(Y,W)},J.prototype.derive=function(Y){if(!Y.validate())_(Y.validate(),"public point not validated");return Y.mul(this.priv).getX()},J.prototype.sign=function(Y,W,R){return this.ec.sign(Y,this,W,R)},J.prototype.verify=function(Y,W,R){return this.ec.verify(Y,W,this,void 0,R)},J.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}}),iu=$$(($,I)=>{var G=g_(),Z=e6(),_=Z.assert;function J(E,T){if(E instanceof J)return E;if(this._importDER(E,T))return;if(_(E.r&&E.s,"Signature without r or s"),this.r=new G(E.r,16),this.s=new G(E.s,16),E.recoveryParam===void 0)this.recoveryParam=null;else this.recoveryParam=E.recoveryParam}I.exports=J;function Y(){this.place=0}function W(E,T){var S=E[T.place++];if(!(S&128))return S;var N=S&15;if(N===0||N>4)return!1;if(E[T.place]===0)return!1;var B=0;for(var x=0,w=T.place;x<N;x++,w++)B<<=8,B|=E[w],B>>>=0;if(B<=127)return!1;return T.place=w,B}function R(E){var T=0,S=E.length-1;while(!E[T]&&!(E[T+1]&128)&&T<S)T++;if(T===0)return E;return E.slice(T)}J.prototype._importDER=function(E,T){E=Z.toArray(E,T);var S=new Y;if(E[S.place++]!==48)return!1;var N=W(E,S);if(N===!1)return!1;if(N+S.place!==E.length)return!1;if(E[S.place++]!==2)return!1;var B=W(E,S);if(B===!1)return!1;if((E[S.place]&128)!==0)return!1;var x=E.slice(S.place,B+S.place);if(S.place+=B,E[S.place++]!==2)return!1;var w=W(E,S);if(w===!1)return!1;if(E.length!==w+S.place)return!1;if((E[S.place]&128)!==0)return!1;var y=E.slice(S.place,w+S.place);if(x[0]===0)if(x[1]&128)x=x.slice(1);else return!1;if(y[0]===0)if(y[1]&128)y=y.slice(1);else return!1;return this.r=new G(x),this.s=new G(y),this.recoveryParam=null,!0};function M(E,T){if(T<128){E.push(T);return}var S=1+(Math.log(T)/Math.LN2>>>3);E.push(S|128);while(--S)E.push(T>>>(S<<3)&255);E.push(T)}J.prototype.toDER=function(E){var T=this.r.toArray(),S=this.s.toArray();if(T[0]&128)T=[0].concat(T);if(S[0]&128)S=[0].concat(S);T=R(T),S=R(S);while(!S[0]&&!(S[1]&128))S=S.slice(1);var N=[2];M(N,T.length),N=N.concat(T),N.push(2),M(N,S.length);var B=N.concat(S),x=[48];return M(x,B.length),x=x.concat(B),Z.encode(x,E)}}),ou=$$(($,I)=>{var G=g_(),Z=mu(),_=e6(),J=zW(),Y=cN(),W=_.assert,R=du(),M=iu();function E(T){if(!(this instanceof E))return new E(T);if(typeof T==="string")W(Object.prototype.hasOwnProperty.call(J,T),"Unknown curve "+T),T=J[T];if(T instanceof J.PresetCurve)T={curve:T};this.curve=T.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=T.curve.g,this.g.precompute(T.curve.n.bitLength()+1),this.hash=T.hash||T.curve.hash}I.exports=E,E.prototype.keyPair=function(T){return new R(this,T)},E.prototype.keyFromPrivate=function(T,S){return R.fromPrivate(this,T,S)},E.prototype.keyFromPublic=function(T,S){return R.fromPublic(this,T,S)},E.prototype.genKeyPair=function(T){if(!T)T={};var S=new Z({hash:this.hash,pers:T.pers,persEnc:T.persEnc||"utf8",entropy:T.entropy||Y(this.hash.hmacStrength),entropyEnc:T.entropy&&T.entropyEnc||"utf8",nonce:this.n.toArray()}),N=this.n.byteLength(),B=this.n.sub(new G(2));for(;;){var x=new G(S.generate(N));if(x.cmp(B)>0)continue;return x.iaddn(1),this.keyFromPrivate(x)}},E.prototype._truncateToN=function(T,S,N){var B;if(G.isBN(T)||typeof T==="number")T=new G(T,16),B=T.byteLength();else if(typeof T==="object")B=T.length,T=new G(T,16);else{var x=T.toString();B=x.length+1>>>1,T=new G(x,16)}if(typeof N!=="number")N=B*8;var w=N-this.n.bitLength();if(w>0)T=T.ushrn(w);if(!S&&T.cmp(this.n)>=0)return T.sub(this.n);else return T},E.prototype.sign=function(T,S,N,B){if(typeof N==="object")B=N,N=null;if(!B)B={};if(typeof T!=="string"&&typeof T!=="number"&&!G.isBN(T)){W(typeof T==="object"&&T&&typeof T.length==="number","Expected message to be an array-like, a hex string, or a BN instance"),W(T.length>>>0===T.length);for(var x=0;x<T.length;x++)W((T[x]&255)===T[x])}S=this.keyFromPrivate(S,N),T=this._truncateToN(T,!1,B.msgBitLength),W(!T.isNeg(),"Can not sign a negative message");var w=this.n.byteLength(),y=S.getPrivate().toArray("be",w),g=T.toArray("be",w);W(new G(g).eq(T),"Can not sign message");var b=new Z({hash:this.hash,entropy:y,nonce:g,pers:B.pers,persEnc:B.persEnc||"utf8"}),l=this.n.sub(new G(1));for(var i=0;;i++){var $0=B.k?B.k(i):new G(b.generate(this.n.byteLength()));if($0=this._truncateToN($0,!0),$0.cmpn(1)<=0||$0.cmp(l)>=0)continue;var Q0=this.g.mul($0);if(Q0.isInfinity())continue;var G0=Q0.getX(),K0=G0.umod(this.n);if(K0.cmpn(0)===0)continue;var t=$0.invm(this.n).mul(K0.mul(S.getPrivate()).iadd(T));if(t=t.umod(this.n),t.cmpn(0)===0)continue;var P0=(Q0.getY().isOdd()?1:0)|(G0.cmp(K0)!==0?2:0);if(B.canonical&&t.cmp(this.nh)>0)t=this.n.sub(t),P0^=1;return new M({r:K0,s:t,recoveryParam:P0})}},E.prototype.verify=function(T,S,N,B,x){if(!x)x={};T=this._truncateToN(T,!1,x.msgBitLength),N=this.keyFromPublic(N,B),S=new M(S,"hex");var{r:w,s:y}=S;if(w.cmpn(1)<0||w.cmp(this.n)>=0)return!1;if(y.cmpn(1)<0||y.cmp(this.n)>=0)return!1;var g=y.invm(this.n),b=g.mul(T).umod(this.n),l=g.mul(w).umod(this.n),i;if(!this.curve._maxwellTrick){if(i=this.g.mulAdd(b,N.getPublic(),l),i.isInfinity())return!1;return i.getX().umod(this.n).cmp(w)===0}if(i=this.g.jmulAdd(b,N.getPublic(),l),i.isInfinity())return!1;return i.eqXToP(w)},E.prototype.recoverPubKey=function(T,S,N,B){W((3&N)===N,"The recovery param is more than two bits"),S=new M(S,B);var x=this.n,w=new G(T),y=S.r,g=S.s,b=N&1,l=N>>1;if(y.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw Error("Unable to find sencond key candinate");if(l)y=this.curve.pointFromX(y.add(this.curve.n),b);else y=this.curve.pointFromX(y,b);var i=S.r.invm(x),$0=x.sub(w).mul(i).umod(x),Q0=g.mul(i).umod(x);return this.g.mulAdd($0,y,Q0)},E.prototype.getKeyRecoveryParam=function(T,S,N,B){if(S=new M(S,B),S.recoveryParam!==null)return S.recoveryParam;for(var x=0;x<4;x++){var w;try{w=this.recoverPubKey(T,S,x)}catch(y){continue}if(w.eq(N))return x}throw Error("Unable to find valid recovery factor")}}),tu=$$(($,I)=>{var G=e6(),Z=G.assert,_=G.parseBytes,J=G.cachedProperty;function Y(W,R){if(this.eddsa=W,this._secret=_(R.secret),W.isPoint(R.pub))this._pub=R.pub;else this._pubBytes=_(R.pub)}Y.fromPublic=function(W,R){if(R instanceof Y)return R;return new Y(W,{pub:R})},Y.fromSecret=function(W,R){if(R instanceof Y)return R;return new Y(W,{secret:R})},Y.prototype.secret=function(){return this._secret},J(Y,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),J(Y,"pub",function(){if(this._pubBytes)return this.eddsa.decodePoint(this._pubBytes);return this.eddsa.g.mul(this.priv())}),J(Y,"privBytes",function(){var W=this.eddsa,R=this.hash(),M=W.encodingLength-1,E=R.slice(0,W.encodingLength);return E[0]&=248,E[M]&=127,E[M]|=64,E}),J(Y,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),J(Y,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),J(Y,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),Y.prototype.sign=function(W){return Z(this._secret,"KeyPair can only verify"),this.eddsa.sign(W,this)},Y.prototype.verify=function(W,R){return this.eddsa.verify(W,R,this)},Y.prototype.getSecret=function(W){return Z(this._secret,"KeyPair is public only"),G.encode(this.secret(),W)},Y.prototype.getPublic=function(W){return G.encode(this.pubBytes(),W)},I.exports=Y}),ru=$$(($,I)=>{var G=g_(),Z=e6(),_=Z.assert,J=Z.cachedProperty,Y=Z.parseBytes;function W(R,M){if(this.eddsa=R,typeof M!=="object")M=Y(M);if(Array.isArray(M))_(M.length===R.encodingLength*2,"Signature has invalid size"),M={R:M.slice(0,R.encodingLength),S:M.slice(R.encodingLength)};if(_(M.R&&M.S,"Signature without R or S"),R.isPoint(M.R))this._R=M.R;if(M.S instanceof G)this._S=M.S;this._Rencoded=Array.isArray(M.R)?M.R:M.Rencoded,this._Sencoded=Array.isArray(M.S)?M.S:M.Sencoded}J(W,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),J(W,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),J(W,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),J(W,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),W.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},W.prototype.toHex=function(){return Z.encode(this.toBytes(),"hex").toUpperCase()},I.exports=W}),au=$$(($,I)=>{var G=QW(),Z=zW(),_=e6(),J=_.assert,Y=_.parseBytes,W=tu(),R=ru();function M(E){if(J(E==="ed25519","only tested with ed25519 so far"),!(this instanceof M))return new M(E);E=Z[E].curve,this.curve=E,this.g=E.g,this.g.precompute(E.n.bitLength()+1),this.pointClass=E.point().constructor,this.encodingLength=Math.ceil(E.n.bitLength()/8),this.hash=G.sha512}I.exports=M,M.prototype.sign=function(E,T){E=Y(E);var S=this.keyFromSecret(T),N=this.hashInt(S.messagePrefix(),E),B=this.g.mul(N),x=this.encodePoint(B),w=this.hashInt(x,S.pubBytes(),E).mul(S.priv()),y=N.add(w).umod(this.curve.n);return this.makeSignature({R:B,S:y,Rencoded:x})},M.prototype.verify=function(E,T,S){if(E=Y(E),T=this.makeSignature(T),T.S().gte(T.eddsa.curve.n)||T.S().isNeg())return!1;var N=this.keyFromPublic(S),B=this.hashInt(T.Rencoded(),N.pubBytes(),E),x=this.g.mul(T.S()),w=T.R().add(N.pub().mul(B));return w.eq(x)},M.prototype.hashInt=function(){var E=this.hash();for(var T=0;T<arguments.length;T++)E.update(arguments[T]);return _.intFromLE(E.digest()).umod(this.curve.n)},M.prototype.keyFromPublic=function(E){return W.fromPublic(this,E)},M.prototype.keyFromSecret=function(E){return W.fromSecret(this,E)},M.prototype.makeSignature=function(E){if(E instanceof R)return E;return new R(this,E)},M.prototype.encodePoint=function(E){var T=E.getY().toArray("le",this.encodingLength);return T[this.encodingLength-1]|=E.getX().isOdd()?128:0,T},M.prototype.decodePoint=function(E){E=_.parseBytes(E);var T=E.length-1,S=E.slice(0,T).concat(E[T]&-129),N=(E[T]&128)!==0,B=_.intFromLE(S);return this.curve.pointFromY(B,N)},M.prototype.encodeInt=function(E){return E.toArray("le",this.encodingLength)},M.prototype.decodeInt=function(E){return _.intFromLE(E)},M.prototype.isPoint=function(E){return E instanceof this.pointClass}}),su=$$(($)=>{var I=$;I.version=gu().version,I.utils=e6(),I.rand=cN(),I.curve=lN(),I.curves=zW(),I.ec=ou(),I.eddsa=au()}),eu=$$(($,I)=>{(function(G,Z){function _(Q,K){if(!Q)throw Error(K||"Assertion failed")}function J(Q,K){Q.super_=K;var F=function(){};F.prototype=K.prototype,Q.prototype=new F,Q.prototype.constructor=Q}function Y(Q,K,F){if(Y.isBN(Q))return Q;if(this.negative=0,this.words=null,this.length=0,this.red=null,Q!==null){if(K==="le"||K==="be")F=K,K=10;this._init(Q||0,K||10,F||"be")}}if(typeof G==="object")G.exports=Y;else Z.BN=Y;Y.BN=Y,Y.wordSize=26;var W;try{if(typeof window<"u"&&typeof window.Buffer<"u")W=window.Buffer;else W=(u1(),V$(h1)).Buffer}catch(Q){}Y.isBN=function(Q){if(Q instanceof Y)return!0;return Q!==null&&typeof Q==="object"&&Q.constructor.wordSize===Y.wordSize&&Array.isArray(Q.words)},Y.max=function(Q,K){if(Q.cmp(K)>0)return Q;return K},Y.min=function(Q,K){if(Q.cmp(K)<0)return Q;return K},Y.prototype._init=function(Q,K,F){if(typeof Q==="number")return this._initNumber(Q,K,F);if(typeof Q==="object")return this._initArray(Q,K,F);if(K==="hex")K=16;_(K===(K|0)&&K>=2&&K<=36),Q=Q.toString().replace(/\s+/g,"");var L=0;if(Q[0]==="-")L++,this.negative=1;if(L<Q.length){if(K===16)this._parseHex(Q,L,F);else if(this._parseBase(Q,K,L),F==="le")this._initArray(this.toArray(),K,F)}},Y.prototype._initNumber=function(Q,K,F){if(Q<0)this.negative=1,Q=-Q;if(Q<67108864)this.words=[Q&67108863],this.length=1;else if(Q<4503599627370496)this.words=[Q&67108863,Q/67108864&67108863],this.length=2;else _(Q<9007199254740992),this.words=[Q&67108863,Q/67108864&67108863,1],this.length=3;if(F!=="le")return;this._initArray(this.toArray(),K,F)},Y.prototype._initArray=function(Q,K,F){if(_(typeof Q.length==="number"),Q.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(Q.length/3),this.words=Array(this.length);for(var L=0;L<this.length;L++)this.words[L]=0;var H,v,q=0;if(F==="be"){for(L=Q.length-1,H=0;L>=0;L-=3)if(v=Q[L]|Q[L-1]<<8|Q[L-2]<<16,this.words[H]|=v<<q&67108863,this.words[H+1]=v>>>26-q&67108863,q+=24,q>=26)q-=26,H++}else if(F==="le"){for(L=0,H=0;L<Q.length;L+=3)if(v=Q[L]|Q[L+1]<<8|Q[L+2]<<16,this.words[H]|=v<<q&67108863,this.words[H+1]=v>>>26-q&67108863,q+=24,q>=26)q-=26,H++}return this.strip()};function R(Q,K){var F=Q.charCodeAt(K);if(F>=65&&F<=70)return F-55;else if(F>=97&&F<=102)return F-87;else return F-48&15}function M(Q,K,F){var L=R(Q,F);if(F-1>=K)L|=R(Q,F-1)<<4;return L}Y.prototype._parseHex=function(Q,K,F){this.length=Math.ceil((Q.length-K)/6),this.words=Array(this.length);for(var L=0;L<this.length;L++)this.words[L]=0;var H=0,v=0,q;if(F==="be")for(L=Q.length-1;L>=K;L-=2)if(q=M(Q,K,L)<<H,this.words[v]|=q&67108863,H>=18)H-=18,v+=1,this.words[v]|=q>>>26;else H+=8;else{var P=Q.length-K;for(L=P%2===0?K+1:K;L<Q.length;L+=2)if(q=M(Q,K,L)<<H,this.words[v]|=q&67108863,H>=18)H-=18,v+=1,this.words[v]|=q>>>26;else H+=8}this.strip()};function E(Q,K,F,L){var H=0,v=Math.min(Q.length,F);for(var q=K;q<v;q++){var P=Q.charCodeAt(q)-48;if(H*=L,P>=49)H+=P-49+10;else if(P>=17)H+=P-17+10;else H+=P}return H}Y.prototype._parseBase=function(Q,K,F){this.words=[0],this.length=1;for(var L=0,H=1;H<=67108863;H*=K)L++;L--,H=H/K|0;var v=Q.length-F,q=v%L,P=Math.min(v,v-q)+F,O=0;for(var A=F;A<P;A+=L)if(O=E(Q,A,A+L,K),this.imuln(H),this.words[0]+O<67108864)this.words[0]+=O;else this._iaddn(O);if(q!==0){var k=1;O=E(Q,A,Q.length,K);for(A=0;A<q;A++)k*=K;if(this.imuln(k),this.words[0]+O<67108864)this.words[0]+=O;else this._iaddn(O)}this.strip()},Y.prototype.copy=function(Q){Q.words=Array(this.length);for(var K=0;K<this.length;K++)Q.words[K]=this.words[K];Q.length=this.length,Q.negative=this.negative,Q.red=this.red},Y.prototype.clone=function(){var Q=new Y(null);return this.copy(Q),Q},Y.prototype._expand=function(Q){while(this.length<Q)this.words[this.length++]=0;return this},Y.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},Y.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},Y.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],S=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(Y.prototype.toString=function(Q,K){Q=Q||10,K=K|0||1;var F;if(Q===16||Q==="hex"){F="";var L=0,H=0;for(var v=0;v<this.length;v++){var q=this.words[v],P=((q<<L|H)&16777215).toString(16);if(H=q>>>24-L&16777215,L+=2,L>=26)L-=26,v--;if(H!==0||v!==this.length-1)F=T[6-P.length]+P+F;else F=P+F}if(H!==0)F=H.toString(16)+F;while(F.length%K!==0)F="0"+F;if(this.negative!==0)F="-"+F;return F}if(Q===(Q|0)&&Q>=2&&Q<=36){var O=S[Q],A=N[Q];F="";var k=this.clone();k.negative=0;while(!k.isZero()){var j=k.modn(A).toString(Q);if(k=k.idivn(A),!k.isZero())F=T[O-j.length]+j+F;else F=j+F}if(this.isZero())F="0"+F;while(F.length%K!==0)F="0"+F;if(this.negative!==0)F="-"+F;return F}_(!1,"Base should be between 2 and 36")},Y.prototype.toNumber=function(){var Q=this.words[0];if(this.length===2)Q+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)Q+=4503599627370496+this.words[1]*67108864;else if(this.length>2)_(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-Q:Q},Y.prototype.toJSON=function(){return this.toString(16)},Y.prototype.toBuffer=function(Q,K){return _(typeof W<"u"),this.toArrayLike(W,Q,K)},Y.prototype.toArray=function(Q,K){return this.toArrayLike(Array,Q,K)},Y.prototype.toArrayLike=function(Q,K,F){var L=this.byteLength(),H=F||Math.max(1,L);_(L<=H,"byte array longer than desired length"),_(H>0,"Requested array length <= 0"),this.strip();var v=K==="le",q=new Q(H),P,O,A=this.clone();if(!v){for(O=0;O<H-L;O++)q[O]=0;for(O=0;!A.isZero();O++)P=A.andln(255),A.iushrn(8),q[H-O-1]=P}else{for(O=0;!A.isZero();O++)P=A.andln(255),A.iushrn(8),q[O]=P;for(;O<H;O++)q[O]=0}return q},Math.clz32)Y.prototype._countBits=function(Q){return 32-Math.clz32(Q)};else Y.prototype._countBits=function(Q){var K=Q,F=0;if(K>=4096)F+=13,K>>>=13;if(K>=64)F+=7,K>>>=7;if(K>=8)F+=4,K>>>=4;if(K>=2)F+=2,K>>>=2;return F+K};Y.prototype._zeroBits=function(Q){if(Q===0)return 26;var K=Q,F=0;if((K&8191)===0)F+=13,K>>>=13;if((K&127)===0)F+=7,K>>>=7;if((K&15)===0)F+=4,K>>>=4;if((K&3)===0)F+=2,K>>>=2;if((K&1)===0)F++;return F},Y.prototype.bitLength=function(){var Q=this.words[this.length-1],K=this._countBits(Q);return(this.length-1)*26+K};function B(Q){var K=Array(Q.bitLength());for(var F=0;F<K.length;F++){var L=F/26|0,H=F%26;K[F]=(Q.words[L]&1<<H)>>>H}return K}Y.prototype.zeroBits=function(){if(this.isZero())return 0;var Q=0;for(var K=0;K<this.length;K++){var F=this._zeroBits(this.words[K]);if(Q+=F,F!==26)break}return Q},Y.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},Y.prototype.toTwos=function(Q){if(this.negative!==0)return this.abs().inotn(Q).iaddn(1);return this.clone()},Y.prototype.fromTwos=function(Q){if(this.testn(Q-1))return this.notn(Q).iaddn(1).ineg();return this.clone()},Y.prototype.isNeg=function(){return this.negative!==0},Y.prototype.neg=function(){return this.clone().ineg()},Y.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},Y.prototype.iuor=function(Q){while(this.length<Q.length)this.words[this.length++]=0;for(var K=0;K<Q.length;K++)this.words[K]=this.words[K]|Q.words[K];return this.strip()},Y.prototype.ior=function(Q){return _((this.negative|Q.negative)===0),this.iuor(Q)},Y.prototype.or=function(Q){if(this.length>Q.length)return this.clone().ior(Q);return Q.clone().ior(this)},Y.prototype.uor=function(Q){if(this.length>Q.length)return this.clone().iuor(Q);return Q.clone().iuor(this)},Y.prototype.iuand=function(Q){var K;if(this.length>Q.length)K=Q;else K=this;for(var F=0;F<K.length;F++)this.words[F]=this.words[F]&Q.words[F];return this.length=K.length,this.strip()},Y.prototype.iand=function(Q){return _((this.negative|Q.negative)===0),this.iuand(Q)},Y.prototype.and=function(Q){if(this.length>Q.length)return this.clone().iand(Q);return Q.clone().iand(this)},Y.prototype.uand=function(Q){if(this.length>Q.length)return this.clone().iuand(Q);return Q.clone().iuand(this)},Y.prototype.iuxor=function(Q){var K,F;if(this.length>Q.length)K=this,F=Q;else K=Q,F=this;for(var L=0;L<F.length;L++)this.words[L]=K.words[L]^F.words[L];if(this!==K)for(;L<K.length;L++)this.words[L]=K.words[L];return this.length=K.length,this.strip()},Y.prototype.ixor=function(Q){return _((this.negative|Q.negative)===0),this.iuxor(Q)},Y.prototype.xor=function(Q){if(this.length>Q.length)return this.clone().ixor(Q);return Q.clone().ixor(this)},Y.prototype.uxor=function(Q){if(this.length>Q.length)return this.clone().iuxor(Q);return Q.clone().iuxor(this)},Y.prototype.inotn=function(Q){_(typeof Q==="number"&&Q>=0);var K=Math.ceil(Q/26)|0,F=Q%26;if(this._expand(K),F>0)K--;for(var L=0;L<K;L++)this.words[L]=~this.words[L]&67108863;if(F>0)this.words[L]=~this.words[L]&67108863>>26-F;return this.strip()},Y.prototype.notn=function(Q){return this.clone().inotn(Q)},Y.prototype.setn=function(Q,K){_(typeof Q==="number"&&Q>=0);var F=Q/26|0,L=Q%26;if(this._expand(F+1),K)this.words[F]=this.words[F]|1<<L;else this.words[F]=this.words[F]&~(1<<L);return this.strip()},Y.prototype.iadd=function(Q){var K;if(this.negative!==0&&Q.negative===0)return this.negative=0,K=this.isub(Q),this.negative^=1,this._normSign();else if(this.negative===0&&Q.negative!==0)return Q.negative=0,K=this.isub(Q),Q.negative=1,K._normSign();var F,L;if(this.length>Q.length)F=this,L=Q;else F=Q,L=this;var H=0;for(var v=0;v<L.length;v++)K=(F.words[v]|0)+(L.words[v]|0)+H,this.words[v]=K&67108863,H=K>>>26;for(;H!==0&&v<F.length;v++)K=(F.words[v]|0)+H,this.words[v]=K&67108863,H=K>>>26;if(this.length=F.length,H!==0)this.words[this.length]=H,this.length++;else if(F!==this)for(;v<F.length;v++)this.words[v]=F.words[v];return this},Y.prototype.add=function(Q){var K;if(Q.negative!==0&&this.negative===0)return Q.negative=0,K=this.sub(Q),Q.negative^=1,K;else if(Q.negative===0&&this.negative!==0)return this.negative=0,K=Q.sub(this),this.negative=1,K;if(this.length>Q.length)return this.clone().iadd(Q);return Q.clone().iadd(this)},Y.prototype.isub=function(Q){if(Q.negative!==0){Q.negative=0;var K=this.iadd(Q);return Q.negative=1,K._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Q),this.negative=1,this._normSign();var F=this.cmp(Q);if(F===0)return this.negative=0,this.length=1,this.words[0]=0,this;var L,H;if(F>0)L=this,H=Q;else L=Q,H=this;var v=0;for(var q=0;q<H.length;q++)K=(L.words[q]|0)-(H.words[q]|0)+v,v=K>>26,this.words[q]=K&67108863;for(;v!==0&&q<L.length;q++)K=(L.words[q]|0)+v,v=K>>26,this.words[q]=K&67108863;if(v===0&&q<L.length&&L!==this)for(;q<L.length;q++)this.words[q]=L.words[q];if(this.length=Math.max(this.length,q),L!==this)this.negative=1;return this.strip()},Y.prototype.sub=function(Q){return this.clone().isub(Q)};function x(Q,K,F){F.negative=K.negative^Q.negative;var L=Q.length+K.length|0;F.length=L,L=L-1|0;var H=Q.words[0]|0,v=K.words[0]|0,q=H*v,P=q&67108863,O=q/67108864|0;F.words[0]=P;for(var A=1;A<L;A++){var k=O>>>26,j=O&67108863,h=Math.min(A,K.length-1);for(var a=Math.max(0,A-Q.length+1);a<=h;a++){var J0=A-a|0;H=Q.words[J0]|0,v=K.words[a]|0,q=H*v+j,k+=q/67108864|0,j=q&67108863}F.words[A]=j|0,O=k|0}if(O!==0)F.words[A]=O|0;else F.length--;return F.strip()}var w=function(Q,K,F){var L=Q.words,H=K.words,v=F.words,q=0,P,O,A,k=L[0]|0,j=k&8191,h=k>>>13,a=L[1]|0,J0=a&8191,D0=a>>>13,O0=L[2]|0,d=O0&8191,m=O0>>>13,r=L[3]|0,Y0=r&8191,W0=r>>>13,I0=L[4]|0,c=I0&8191,s=I0>>>13,S0=L[5]|0,M0=S0&8191,z0=S0>>>13,c0=L[6]|0,F0=c0&8191,q0=c0>>>13,s0=L[7]|0,k0=s0&8191,n0=s0>>>13,M$=L[8]|0,T0=M$&8191,V0=M$>>>13,X$=L[9]|0,p0=X$&8191,l0=X$>>>13,L0=H[0]|0,N0=L0&8191,B0=L0>>>13,Y$=H[1]|0,u=Y$&8191,_0=Y$>>>13,o=H[2]|0,R0=o&8191,x0=o>>>13,p=H[3]|0,A0=p&8191,v0=p>>>13,X0=H[4]|0,H0=X0&8191,C0=X0>>>13,H$=H[5]|0,d0=H$&8191,e=H$>>>13,E0=H[6]|0,b0=E0&8191,f0=E0>>>13,z$=H[7]|0,a0=z$&8191,U$=z$>>>13,c$=H[8]|0,K$=c$&8191,L$=c$>>>13,B$=H[9]|0,Z$=B$&8191,I$=B$>>>13;F.negative=Q.negative^K.negative,F.length=19,P=Math.imul(j,N0),O=Math.imul(j,B0),O=O+Math.imul(h,N0)|0,A=Math.imul(h,B0);var I1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(I1>>>26)|0,I1&=67108863,P=Math.imul(J0,N0),O=Math.imul(J0,B0),O=O+Math.imul(D0,N0)|0,A=Math.imul(D0,B0),P=P+Math.imul(j,u)|0,O=O+Math.imul(j,_0)|0,O=O+Math.imul(h,u)|0,A=A+Math.imul(h,_0)|0;var C$=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(C$>>>26)|0,C$&=67108863,P=Math.imul(d,N0),O=Math.imul(d,B0),O=O+Math.imul(m,N0)|0,A=Math.imul(m,B0),P=P+Math.imul(J0,u)|0,O=O+Math.imul(J0,_0)|0,O=O+Math.imul(D0,u)|0,A=A+Math.imul(D0,_0)|0,P=P+Math.imul(j,R0)|0,O=O+Math.imul(j,x0)|0,O=O+Math.imul(h,R0)|0,A=A+Math.imul(h,x0)|0;var g$=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(g$>>>26)|0,g$&=67108863,P=Math.imul(Y0,N0),O=Math.imul(Y0,B0),O=O+Math.imul(W0,N0)|0,A=Math.imul(W0,B0),P=P+Math.imul(d,u)|0,O=O+Math.imul(d,_0)|0,O=O+Math.imul(m,u)|0,A=A+Math.imul(m,_0)|0,P=P+Math.imul(J0,R0)|0,O=O+Math.imul(J0,x0)|0,O=O+Math.imul(D0,R0)|0,A=A+Math.imul(D0,x0)|0,P=P+Math.imul(j,A0)|0,O=O+Math.imul(j,v0)|0,O=O+Math.imul(h,A0)|0,A=A+Math.imul(h,v0)|0;var z1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(z1>>>26)|0,z1&=67108863,P=Math.imul(c,N0),O=Math.imul(c,B0),O=O+Math.imul(s,N0)|0,A=Math.imul(s,B0),P=P+Math.imul(Y0,u)|0,O=O+Math.imul(Y0,_0)|0,O=O+Math.imul(W0,u)|0,A=A+Math.imul(W0,_0)|0,P=P+Math.imul(d,R0)|0,O=O+Math.imul(d,x0)|0,O=O+Math.imul(m,R0)|0,A=A+Math.imul(m,x0)|0,P=P+Math.imul(J0,A0)|0,O=O+Math.imul(J0,v0)|0,O=O+Math.imul(D0,A0)|0,A=A+Math.imul(D0,v0)|0,P=P+Math.imul(j,H0)|0,O=O+Math.imul(j,C0)|0,O=O+Math.imul(h,H0)|0,A=A+Math.imul(h,C0)|0;var U1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(U1>>>26)|0,U1&=67108863,P=Math.imul(M0,N0),O=Math.imul(M0,B0),O=O+Math.imul(z0,N0)|0,A=Math.imul(z0,B0),P=P+Math.imul(c,u)|0,O=O+Math.imul(c,_0)|0,O=O+Math.imul(s,u)|0,A=A+Math.imul(s,_0)|0,P=P+Math.imul(Y0,R0)|0,O=O+Math.imul(Y0,x0)|0,O=O+Math.imul(W0,R0)|0,A=A+Math.imul(W0,x0)|0,P=P+Math.imul(d,A0)|0,O=O+Math.imul(d,v0)|0,O=O+Math.imul(m,A0)|0,A=A+Math.imul(m,v0)|0,P=P+Math.imul(J0,H0)|0,O=O+Math.imul(J0,C0)|0,O=O+Math.imul(D0,H0)|0,A=A+Math.imul(D0,C0)|0,P=P+Math.imul(j,d0)|0,O=O+Math.imul(j,e)|0,O=O+Math.imul(h,d0)|0,A=A+Math.imul(h,e)|0;var o1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(o1>>>26)|0,o1&=67108863,P=Math.imul(F0,N0),O=Math.imul(F0,B0),O=O+Math.imul(q0,N0)|0,A=Math.imul(q0,B0),P=P+Math.imul(M0,u)|0,O=O+Math.imul(M0,_0)|0,O=O+Math.imul(z0,u)|0,A=A+Math.imul(z0,_0)|0,P=P+Math.imul(c,R0)|0,O=O+Math.imul(c,x0)|0,O=O+Math.imul(s,R0)|0,A=A+Math.imul(s,x0)|0,P=P+Math.imul(Y0,A0)|0,O=O+Math.imul(Y0,v0)|0,O=O+Math.imul(W0,A0)|0,A=A+Math.imul(W0,v0)|0,P=P+Math.imul(d,H0)|0,O=O+Math.imul(d,C0)|0,O=O+Math.imul(m,H0)|0,A=A+Math.imul(m,C0)|0,P=P+Math.imul(J0,d0)|0,O=O+Math.imul(J0,e)|0,O=O+Math.imul(D0,d0)|0,A=A+Math.imul(D0,e)|0,P=P+Math.imul(j,b0)|0,O=O+Math.imul(j,f0)|0,O=O+Math.imul(h,b0)|0,A=A+Math.imul(h,f0)|0;var t1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(t1>>>26)|0,t1&=67108863,P=Math.imul(k0,N0),O=Math.imul(k0,B0),O=O+Math.imul(n0,N0)|0,A=Math.imul(n0,B0),P=P+Math.imul(F0,u)|0,O=O+Math.imul(F0,_0)|0,O=O+Math.imul(q0,u)|0,A=A+Math.imul(q0,_0)|0,P=P+Math.imul(M0,R0)|0,O=O+Math.imul(M0,x0)|0,O=O+Math.imul(z0,R0)|0,A=A+Math.imul(z0,x0)|0,P=P+Math.imul(c,A0)|0,O=O+Math.imul(c,v0)|0,O=O+Math.imul(s,A0)|0,A=A+Math.imul(s,v0)|0,P=P+Math.imul(Y0,H0)|0,O=O+Math.imul(Y0,C0)|0,O=O+Math.imul(W0,H0)|0,A=A+Math.imul(W0,C0)|0,P=P+Math.imul(d,d0)|0,O=O+Math.imul(d,e)|0,O=O+Math.imul(m,d0)|0,A=A+Math.imul(m,e)|0,P=P+Math.imul(J0,b0)|0,O=O+Math.imul(J0,f0)|0,O=O+Math.imul(D0,b0)|0,A=A+Math.imul(D0,f0)|0,P=P+Math.imul(j,a0)|0,O=O+Math.imul(j,U$)|0,O=O+Math.imul(h,a0)|0,A=A+Math.imul(h,U$)|0;var r1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(r1>>>26)|0,r1&=67108863,P=Math.imul(T0,N0),O=Math.imul(T0,B0),O=O+Math.imul(V0,N0)|0,A=Math.imul(V0,B0),P=P+Math.imul(k0,u)|0,O=O+Math.imul(k0,_0)|0,O=O+Math.imul(n0,u)|0,A=A+Math.imul(n0,_0)|0,P=P+Math.imul(F0,R0)|0,O=O+Math.imul(F0,x0)|0,O=O+Math.imul(q0,R0)|0,A=A+Math.imul(q0,x0)|0,P=P+Math.imul(M0,A0)|0,O=O+Math.imul(M0,v0)|0,O=O+Math.imul(z0,A0)|0,A=A+Math.imul(z0,v0)|0,P=P+Math.imul(c,H0)|0,O=O+Math.imul(c,C0)|0,O=O+Math.imul(s,H0)|0,A=A+Math.imul(s,C0)|0,P=P+Math.imul(Y0,d0)|0,O=O+Math.imul(Y0,e)|0,O=O+Math.imul(W0,d0)|0,A=A+Math.imul(W0,e)|0,P=P+Math.imul(d,b0)|0,O=O+Math.imul(d,f0)|0,O=O+Math.imul(m,b0)|0,A=A+Math.imul(m,f0)|0,P=P+Math.imul(J0,a0)|0,O=O+Math.imul(J0,U$)|0,O=O+Math.imul(D0,a0)|0,A=A+Math.imul(D0,U$)|0,P=P+Math.imul(j,K$)|0,O=O+Math.imul(j,L$)|0,O=O+Math.imul(h,K$)|0,A=A+Math.imul(h,L$)|0;var a1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(a1>>>26)|0,a1&=67108863,P=Math.imul(p0,N0),O=Math.imul(p0,B0),O=O+Math.imul(l0,N0)|0,A=Math.imul(l0,B0),P=P+Math.imul(T0,u)|0,O=O+Math.imul(T0,_0)|0,O=O+Math.imul(V0,u)|0,A=A+Math.imul(V0,_0)|0,P=P+Math.imul(k0,R0)|0,O=O+Math.imul(k0,x0)|0,O=O+Math.imul(n0,R0)|0,A=A+Math.imul(n0,x0)|0,P=P+Math.imul(F0,A0)|0,O=O+Math.imul(F0,v0)|0,O=O+Math.imul(q0,A0)|0,A=A+Math.imul(q0,v0)|0,P=P+Math.imul(M0,H0)|0,O=O+Math.imul(M0,C0)|0,O=O+Math.imul(z0,H0)|0,A=A+Math.imul(z0,C0)|0,P=P+Math.imul(c,d0)|0,O=O+Math.imul(c,e)|0,O=O+Math.imul(s,d0)|0,A=A+Math.imul(s,e)|0,P=P+Math.imul(Y0,b0)|0,O=O+Math.imul(Y0,f0)|0,O=O+Math.imul(W0,b0)|0,A=A+Math.imul(W0,f0)|0,P=P+Math.imul(d,a0)|0,O=O+Math.imul(d,U$)|0,O=O+Math.imul(m,a0)|0,A=A+Math.imul(m,U$)|0,P=P+Math.imul(J0,K$)|0,O=O+Math.imul(J0,L$)|0,O=O+Math.imul(D0,K$)|0,A=A+Math.imul(D0,L$)|0,P=P+Math.imul(j,Z$)|0,O=O+Math.imul(j,I$)|0,O=O+Math.imul(h,Z$)|0,A=A+Math.imul(h,I$)|0;var s1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(s1>>>26)|0,s1&=67108863,P=Math.imul(p0,u),O=Math.imul(p0,_0),O=O+Math.imul(l0,u)|0,A=Math.imul(l0,_0),P=P+Math.imul(T0,R0)|0,O=O+Math.imul(T0,x0)|0,O=O+Math.imul(V0,R0)|0,A=A+Math.imul(V0,x0)|0,P=P+Math.imul(k0,A0)|0,O=O+Math.imul(k0,v0)|0,O=O+Math.imul(n0,A0)|0,A=A+Math.imul(n0,v0)|0,P=P+Math.imul(F0,H0)|0,O=O+Math.imul(F0,C0)|0,O=O+Math.imul(q0,H0)|0,A=A+Math.imul(q0,C0)|0,P=P+Math.imul(M0,d0)|0,O=O+Math.imul(M0,e)|0,O=O+Math.imul(z0,d0)|0,A=A+Math.imul(z0,e)|0,P=P+Math.imul(c,b0)|0,O=O+Math.imul(c,f0)|0,O=O+Math.imul(s,b0)|0,A=A+Math.imul(s,f0)|0,P=P+Math.imul(Y0,a0)|0,O=O+Math.imul(Y0,U$)|0,O=O+Math.imul(W0,a0)|0,A=A+Math.imul(W0,U$)|0,P=P+Math.imul(d,K$)|0,O=O+Math.imul(d,L$)|0,O=O+Math.imul(m,K$)|0,A=A+Math.imul(m,L$)|0,P=P+Math.imul(J0,Z$)|0,O=O+Math.imul(J0,I$)|0,O=O+Math.imul(D0,Z$)|0,A=A+Math.imul(D0,I$)|0;var Y1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(Y1>>>26)|0,Y1&=67108863,P=Math.imul(p0,R0),O=Math.imul(p0,x0),O=O+Math.imul(l0,R0)|0,A=Math.imul(l0,x0),P=P+Math.imul(T0,A0)|0,O=O+Math.imul(T0,v0)|0,O=O+Math.imul(V0,A0)|0,A=A+Math.imul(V0,v0)|0,P=P+Math.imul(k0,H0)|0,O=O+Math.imul(k0,C0)|0,O=O+Math.imul(n0,H0)|0,A=A+Math.imul(n0,C0)|0,P=P+Math.imul(F0,d0)|0,O=O+Math.imul(F0,e)|0,O=O+Math.imul(q0,d0)|0,A=A+Math.imul(q0,e)|0,P=P+Math.imul(M0,b0)|0,O=O+Math.imul(M0,f0)|0,O=O+Math.imul(z0,b0)|0,A=A+Math.imul(z0,f0)|0,P=P+Math.imul(c,a0)|0,O=O+Math.imul(c,U$)|0,O=O+Math.imul(s,a0)|0,A=A+Math.imul(s,U$)|0,P=P+Math.imul(Y0,K$)|0,O=O+Math.imul(Y0,L$)|0,O=O+Math.imul(W0,K$)|0,A=A+Math.imul(W0,L$)|0,P=P+Math.imul(d,Z$)|0,O=O+Math.imul(d,I$)|0,O=O+Math.imul(m,Z$)|0,A=A+Math.imul(m,I$)|0;var S1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(S1>>>26)|0,S1&=67108863,P=Math.imul(p0,A0),O=Math.imul(p0,v0),O=O+Math.imul(l0,A0)|0,A=Math.imul(l0,v0),P=P+Math.imul(T0,H0)|0,O=O+Math.imul(T0,C0)|0,O=O+Math.imul(V0,H0)|0,A=A+Math.imul(V0,C0)|0,P=P+Math.imul(k0,d0)|0,O=O+Math.imul(k0,e)|0,O=O+Math.imul(n0,d0)|0,A=A+Math.imul(n0,e)|0,P=P+Math.imul(F0,b0)|0,O=O+Math.imul(F0,f0)|0,O=O+Math.imul(q0,b0)|0,A=A+Math.imul(q0,f0)|0,P=P+Math.imul(M0,a0)|0,O=O+Math.imul(M0,U$)|0,O=O+Math.imul(z0,a0)|0,A=A+Math.imul(z0,U$)|0,P=P+Math.imul(c,K$)|0,O=O+Math.imul(c,L$)|0,O=O+Math.imul(s,K$)|0,A=A+Math.imul(s,L$)|0,P=P+Math.imul(Y0,Z$)|0,O=O+Math.imul(Y0,I$)|0,O=O+Math.imul(W0,Z$)|0,A=A+Math.imul(W0,I$)|0;var R1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(R1>>>26)|0,R1&=67108863,P=Math.imul(p0,H0),O=Math.imul(p0,C0),O=O+Math.imul(l0,H0)|0,A=Math.imul(l0,C0),P=P+Math.imul(T0,d0)|0,O=O+Math.imul(T0,e)|0,O=O+Math.imul(V0,d0)|0,A=A+Math.imul(V0,e)|0,P=P+Math.imul(k0,b0)|0,O=O+Math.imul(k0,f0)|0,O=O+Math.imul(n0,b0)|0,A=A+Math.imul(n0,f0)|0,P=P+Math.imul(F0,a0)|0,O=O+Math.imul(F0,U$)|0,O=O+Math.imul(q0,a0)|0,A=A+Math.imul(q0,U$)|0,P=P+Math.imul(M0,K$)|0,O=O+Math.imul(M0,L$)|0,O=O+Math.imul(z0,K$)|0,A=A+Math.imul(z0,L$)|0,P=P+Math.imul(c,Z$)|0,O=O+Math.imul(c,I$)|0,O=O+Math.imul(s,Z$)|0,A=A+Math.imul(s,I$)|0;var e1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(e1>>>26)|0,e1&=67108863,P=Math.imul(p0,d0),O=Math.imul(p0,e),O=O+Math.imul(l0,d0)|0,A=Math.imul(l0,e),P=P+Math.imul(T0,b0)|0,O=O+Math.imul(T0,f0)|0,O=O+Math.imul(V0,b0)|0,A=A+Math.imul(V0,f0)|0,P=P+Math.imul(k0,a0)|0,O=O+Math.imul(k0,U$)|0,O=O+Math.imul(n0,a0)|0,A=A+Math.imul(n0,U$)|0,P=P+Math.imul(F0,K$)|0,O=O+Math.imul(F0,L$)|0,O=O+Math.imul(q0,K$)|0,A=A+Math.imul(q0,L$)|0,P=P+Math.imul(M0,Z$)|0,O=O+Math.imul(M0,I$)|0,O=O+Math.imul(z0,Z$)|0,A=A+Math.imul(z0,I$)|0;var B1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(B1>>>26)|0,B1&=67108863,P=Math.imul(p0,b0),O=Math.imul(p0,f0),O=O+Math.imul(l0,b0)|0,A=Math.imul(l0,f0),P=P+Math.imul(T0,a0)|0,O=O+Math.imul(T0,U$)|0,O=O+Math.imul(V0,a0)|0,A=A+Math.imul(V0,U$)|0,P=P+Math.imul(k0,K$)|0,O=O+Math.imul(k0,L$)|0,O=O+Math.imul(n0,K$)|0,A=A+Math.imul(n0,L$)|0,P=P+Math.imul(F0,Z$)|0,O=O+Math.imul(F0,I$)|0,O=O+Math.imul(q0,Z$)|0,A=A+Math.imul(q0,I$)|0;var f1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(f1>>>26)|0,f1&=67108863,P=Math.imul(p0,a0),O=Math.imul(p0,U$),O=O+Math.imul(l0,a0)|0,A=Math.imul(l0,U$),P=P+Math.imul(T0,K$)|0,O=O+Math.imul(T0,L$)|0,O=O+Math.imul(V0,K$)|0,A=A+Math.imul(V0,L$)|0,P=P+Math.imul(k0,Z$)|0,O=O+Math.imul(k0,I$)|0,O=O+Math.imul(n0,Z$)|0,A=A+Math.imul(n0,I$)|0;var c1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(c1>>>26)|0,c1&=67108863,P=Math.imul(p0,K$),O=Math.imul(p0,L$),O=O+Math.imul(l0,K$)|0,A=Math.imul(l0,L$),P=P+Math.imul(T0,Z$)|0,O=O+Math.imul(T0,I$)|0,O=O+Math.imul(V0,Z$)|0,A=A+Math.imul(V0,I$)|0;var j1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(j1>>>26)|0,j1&=67108863,P=Math.imul(p0,Z$),O=Math.imul(p0,I$),O=O+Math.imul(l0,Z$)|0,A=Math.imul(l0,I$);var v1=(q+P|0)+((O&8191)<<13)|0;if(q=(A+(O>>>13)|0)+(v1>>>26)|0,v1&=67108863,v[0]=I1,v[1]=C$,v[2]=g$,v[3]=z1,v[4]=U1,v[5]=o1,v[6]=t1,v[7]=r1,v[8]=a1,v[9]=s1,v[10]=Y1,v[11]=S1,v[12]=R1,v[13]=e1,v[14]=B1,v[15]=f1,v[16]=c1,v[17]=j1,v[18]=v1,q!==0)v[19]=q,F.length++;return F};if(!Math.imul)w=x;function y(Q,K,F){F.negative=K.negative^Q.negative,F.length=Q.length+K.length;var L=0,H=0;for(var v=0;v<F.length-1;v++){var q=H;H=0;var P=L&67108863,O=Math.min(v,K.length-1);for(var A=Math.max(0,v-Q.length+1);A<=O;A++){var k=v-A,j=Q.words[k]|0,h=K.words[A]|0,a=j*h,J0=a&67108863;q=q+(a/67108864|0)|0,J0=J0+P|0,P=J0&67108863,q=q+(J0>>>26)|0,H+=q>>>26,q&=67108863}F.words[v]=P,L=q,q=H}if(L!==0)F.words[v]=L;else F.length--;return F.strip()}function g(Q,K,F){var L=new b;return L.mulp(Q,K,F)}Y.prototype.mulTo=function(Q,K){var F,L=this.length+Q.length;if(this.length===10&&Q.length===10)F=w(this,Q,K);else if(L<63)F=x(this,Q,K);else if(L<1024)F=y(this,Q,K);else F=g(this,Q,K);return F};function b(Q,K){this.x=Q,this.y=K}b.prototype.makeRBT=function(Q){var K=Array(Q),F=Y.prototype._countBits(Q)-1;for(var L=0;L<Q;L++)K[L]=this.revBin(L,F,Q);return K},b.prototype.revBin=function(Q,K,F){if(Q===0||Q===F-1)return Q;var L=0;for(var H=0;H<K;H++)L|=(Q&1)<<K-H-1,Q>>=1;return L},b.prototype.permute=function(Q,K,F,L,H,v){for(var q=0;q<v;q++)L[q]=K[Q[q]],H[q]=F[Q[q]]},b.prototype.transform=function(Q,K,F,L,H,v){this.permute(v,Q,K,F,L,H);for(var q=1;q<H;q<<=1){var P=q<<1,O=Math.cos(2*Math.PI/P),A=Math.sin(2*Math.PI/P);for(var k=0;k<H;k+=P){var j=O,h=A;for(var a=0;a<q;a++){var J0=F[k+a],D0=L[k+a],O0=F[k+a+q],d=L[k+a+q],m=j*O0-h*d;if(d=j*d+h*O0,O0=m,F[k+a]=J0+O0,L[k+a]=D0+d,F[k+a+q]=J0-O0,L[k+a+q]=D0-d,a!==P)m=O*j-A*h,h=O*h+A*j,j=m}}}},b.prototype.guessLen13b=function(Q,K){var F=Math.max(K,Q)|1,L=F&1,H=0;for(F=F/2|0;F;F=F>>>1)H++;return 1<<H+1+L},b.prototype.conjugate=function(Q,K,F){if(F<=1)return;for(var L=0;L<F/2;L++){var H=Q[L];Q[L]=Q[F-L-1],Q[F-L-1]=H,H=K[L],K[L]=-K[F-L-1],K[F-L-1]=-H}},b.prototype.normalize13b=function(Q,K){var F=0;for(var L=0;L<K/2;L++){var H=Math.round(Q[2*L+1]/K)*8192+Math.round(Q[2*L]/K)+F;if(Q[L]=H&67108863,H<67108864)F=0;else F=H/67108864|0}return Q},b.prototype.convert13b=function(Q,K,F,L){var H=0;for(var v=0;v<K;v++)H=H+(Q[v]|0),F[2*v]=H&8191,H=H>>>13,F[2*v+1]=H&8191,H=H>>>13;for(v=2*K;v<L;++v)F[v]=0;_(H===0),_((H&-8192)===0)},b.prototype.stub=function(Q){var K=Array(Q);for(var F=0;F<Q;F++)K[F]=0;return K},b.prototype.mulp=function(Q,K,F){var L=2*this.guessLen13b(Q.length,K.length),H=this.makeRBT(L),v=this.stub(L),q=Array(L),P=Array(L),O=Array(L),A=Array(L),k=Array(L),j=Array(L),h=F.words;h.length=L,this.convert13b(Q.words,Q.length,q,L),this.convert13b(K.words,K.length,A,L),this.transform(q,v,P,O,L,H),this.transform(A,v,k,j,L,H);for(var a=0;a<L;a++){var J0=P[a]*k[a]-O[a]*j[a];O[a]=P[a]*j[a]+O[a]*k[a],P[a]=J0}return this.conjugate(P,O,L),this.transform(P,O,h,v,L,H),this.conjugate(h,v,L),this.normalize13b(h,L),F.negative=Q.negative^K.negative,F.length=Q.length+K.length,F.strip()},Y.prototype.mul=function(Q){var K=new Y(null);return K.words=Array(this.length+Q.length),this.mulTo(Q,K)},Y.prototype.mulf=function(Q){var K=new Y(null);return K.words=Array(this.length+Q.length),g(this,Q,K)},Y.prototype.imul=function(Q){return this.clone().mulTo(Q,this)},Y.prototype.imuln=function(Q){_(typeof Q==="number"),_(Q<67108864);var K=0;for(var F=0;F<this.length;F++){var L=(this.words[F]|0)*Q,H=(L&67108863)+(K&67108863);K>>=26,K+=L/67108864|0,K+=H>>>26,this.words[F]=H&67108863}if(K!==0)this.words[F]=K,this.length++;return this.length=Q===0?1:this.length,this},Y.prototype.muln=function(Q){return this.clone().imuln(Q)},Y.prototype.sqr=function(){return this.mul(this)},Y.prototype.isqr=function(){return this.imul(this.clone())},Y.prototype.pow=function(Q){var K=B(Q);if(K.length===0)return new Y(1);var F=this;for(var L=0;L<K.length;L++,F=F.sqr())if(K[L]!==0)break;if(++L<K.length)for(var H=F.sqr();L<K.length;L++,H=H.sqr()){if(K[L]===0)continue;F=F.mul(H)}return F},Y.prototype.iushln=function(Q){_(typeof Q==="number"&&Q>=0);var K=Q%26,F=(Q-K)/26,L=67108863>>>26-K<<26-K,H;if(K!==0){var v=0;for(H=0;H<this.length;H++){var q=this.words[H]&L,P=(this.words[H]|0)-q<<K;this.words[H]=P|v,v=q>>>26-K}if(v)this.words[H]=v,this.length++}if(F!==0){for(H=this.length-1;H>=0;H--)this.words[H+F]=this.words[H];for(H=0;H<F;H++)this.words[H]=0;this.length+=F}return this.strip()},Y.prototype.ishln=function(Q){return _(this.negative===0),this.iushln(Q)},Y.prototype.iushrn=function(Q,K,F){_(typeof Q==="number"&&Q>=0);var L;if(K)L=(K-K%26)/26;else L=0;var H=Q%26,v=Math.min((Q-H)/26,this.length),q=67108863^67108863>>>H<<H,P=F;if(L-=v,L=Math.max(0,L),P){for(var O=0;O<v;O++)P.words[O]=this.words[O];P.length=v}if(v===0);else if(this.length>v){this.length-=v;for(O=0;O<this.length;O++)this.words[O]=this.words[O+v]}else this.words[0]=0,this.length=1;var A=0;for(O=this.length-1;O>=0&&(A!==0||O>=L);O--){var k=this.words[O]|0;this.words[O]=A<<26-H|k>>>H,A=k&q}if(P&&A!==0)P.words[P.length++]=A;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},Y.prototype.ishrn=function(Q,K,F){return _(this.negative===0),this.iushrn(Q,K,F)},Y.prototype.shln=function(Q){return this.clone().ishln(Q)},Y.prototype.ushln=function(Q){return this.clone().iushln(Q)},Y.prototype.shrn=function(Q){return this.clone().ishrn(Q)},Y.prototype.ushrn=function(Q){return this.clone().iushrn(Q)},Y.prototype.testn=function(Q){_(typeof Q==="number"&&Q>=0);var K=Q%26,F=(Q-K)/26,L=1<<K;if(this.length<=F)return!1;var H=this.words[F];return!!(H&L)},Y.prototype.imaskn=function(Q){_(typeof Q==="number"&&Q>=0);var K=Q%26,F=(Q-K)/26;if(_(this.negative===0,"imaskn works only with positive numbers"),this.length<=F)return this;if(K!==0)F++;if(this.length=Math.min(F,this.length),K!==0){var L=67108863^67108863>>>K<<K;this.words[this.length-1]&=L}return this.strip()},Y.prototype.maskn=function(Q){return this.clone().imaskn(Q)},Y.prototype.iaddn=function(Q){if(_(typeof Q==="number"),_(Q<67108864),Q<0)return this.isubn(-Q);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<Q)return this.words[0]=Q-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(Q),this.negative=1,this}return this._iaddn(Q)},Y.prototype._iaddn=function(Q){this.words[0]+=Q;for(var K=0;K<this.length&&this.words[K]>=67108864;K++)if(this.words[K]-=67108864,K===this.length-1)this.words[K+1]=1;else this.words[K+1]++;return this.length=Math.max(this.length,K+1),this},Y.prototype.isubn=function(Q){if(_(typeof Q==="number"),_(Q<67108864),Q<0)return this.iaddn(-Q);if(this.negative!==0)return this.negative=0,this.iaddn(Q),this.negative=1,this;if(this.words[0]-=Q,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var K=0;K<this.length&&this.words[K]<0;K++)this.words[K]+=67108864,this.words[K+1]-=1;return this.strip()},Y.prototype.addn=function(Q){return this.clone().iaddn(Q)},Y.prototype.subn=function(Q){return this.clone().isubn(Q)},Y.prototype.iabs=function(){return this.negative=0,this},Y.prototype.abs=function(){return this.clone().iabs()},Y.prototype._ishlnsubmul=function(Q,K,F){var L=Q.length+F,H;this._expand(L);var v,q=0;for(H=0;H<Q.length;H++){v=(this.words[H+F]|0)+q;var P=(Q.words[H]|0)*K;v-=P&67108863,q=(v>>26)-(P/67108864|0),this.words[H+F]=v&67108863}for(;H<this.length-F;H++)v=(this.words[H+F]|0)+q,q=v>>26,this.words[H+F]=v&67108863;if(q===0)return this.strip();_(q===-1),q=0;for(H=0;H<this.length;H++)v=-(this.words[H]|0)+q,q=v>>26,this.words[H]=v&67108863;return this.negative=1,this.strip()},Y.prototype._wordDiv=function(Q,K){var F=this.length-Q.length,L=this.clone(),H=Q,v=H.words[H.length-1]|0,q=this._countBits(v);if(F=26-q,F!==0)H=H.ushln(F),L.iushln(F),v=H.words[H.length-1]|0;var P=L.length-H.length,O;if(K!=="mod"){O=new Y(null),O.length=P+1,O.words=Array(O.length);for(var A=0;A<O.length;A++)O.words[A]=0}var k=L.clone()._ishlnsubmul(H,1,P);if(k.negative===0){if(L=k,O)O.words[P]=1}for(var j=P-1;j>=0;j--){var h=(L.words[H.length+j]|0)*67108864+(L.words[H.length+j-1]|0);h=Math.min(h/v|0,67108863),L._ishlnsubmul(H,h,j);while(L.negative!==0)if(h--,L.negative=0,L._ishlnsubmul(H,1,j),!L.isZero())L.negative^=1;if(O)O.words[j]=h}if(O)O.strip();if(L.strip(),K!=="div"&&F!==0)L.iushrn(F);return{div:O||null,mod:L}},Y.prototype.divmod=function(Q,K,F){if(_(!Q.isZero()),this.isZero())return{div:new Y(0),mod:new Y(0)};var L,H,v;if(this.negative!==0&&Q.negative===0){if(v=this.neg().divmod(Q,K),K!=="mod")L=v.div.neg();if(K!=="div"){if(H=v.mod.neg(),F&&H.negative!==0)H.iadd(Q)}return{div:L,mod:H}}if(this.negative===0&&Q.negative!==0){if(v=this.divmod(Q.neg(),K),K!=="mod")L=v.div.neg();return{div:L,mod:v.mod}}if((this.negative&Q.negative)!==0){if(v=this.neg().divmod(Q.neg(),K),K!=="div"){if(H=v.mod.neg(),F&&H.negative!==0)H.isub(Q)}return{div:v.div,mod:H}}if(Q.length>this.length||this.cmp(Q)<0)return{div:new Y(0),mod:this};if(Q.length===1){if(K==="div")return{div:this.divn(Q.words[0]),mod:null};if(K==="mod")return{div:null,mod:new Y(this.modn(Q.words[0]))};return{div:this.divn(Q.words[0]),mod:new Y(this.modn(Q.words[0]))}}return this._wordDiv(Q,K)},Y.prototype.div=function(Q){return this.divmod(Q,"div",!1).div},Y.prototype.mod=function(Q){return this.divmod(Q,"mod",!1).mod},Y.prototype.umod=function(Q){return this.divmod(Q,"mod",!0).mod},Y.prototype.divRound=function(Q){var K=this.divmod(Q);if(K.mod.isZero())return K.div;var F=K.div.negative!==0?K.mod.isub(Q):K.mod,L=Q.ushrn(1),H=Q.andln(1),v=F.cmp(L);if(v<0||H===1&&v===0)return K.div;return K.div.negative!==0?K.div.isubn(1):K.div.iaddn(1)},Y.prototype.modn=function(Q){_(Q<=67108863);var K=67108864%Q,F=0;for(var L=this.length-1;L>=0;L--)F=(K*F+(this.words[L]|0))%Q;return F},Y.prototype.idivn=function(Q){_(Q<=67108863);var K=0;for(var F=this.length-1;F>=0;F--){var L=(this.words[F]|0)+K*67108864;this.words[F]=L/Q|0,K=L%Q}return this.strip()},Y.prototype.divn=function(Q){return this.clone().idivn(Q)},Y.prototype.egcd=function(Q){_(Q.negative===0),_(!Q.isZero());var K=this,F=Q.clone();if(K.negative!==0)K=K.umod(Q);else K=K.clone();var L=new Y(1),H=new Y(0),v=new Y(0),q=new Y(1),P=0;while(K.isEven()&&F.isEven())K.iushrn(1),F.iushrn(1),++P;var O=F.clone(),A=K.clone();while(!K.isZero()){for(var k=0,j=1;(K.words[0]&j)===0&&k<26;++k,j<<=1);if(k>0){K.iushrn(k);while(k-- >0){if(L.isOdd()||H.isOdd())L.iadd(O),H.isub(A);L.iushrn(1),H.iushrn(1)}}for(var h=0,a=1;(F.words[0]&a)===0&&h<26;++h,a<<=1);if(h>0){F.iushrn(h);while(h-- >0){if(v.isOdd()||q.isOdd())v.iadd(O),q.isub(A);v.iushrn(1),q.iushrn(1)}}if(K.cmp(F)>=0)K.isub(F),L.isub(v),H.isub(q);else F.isub(K),v.isub(L),q.isub(H)}return{a:v,b:q,gcd:F.iushln(P)}},Y.prototype._invmp=function(Q){_(Q.negative===0),_(!Q.isZero());var K=this,F=Q.clone();if(K.negative!==0)K=K.umod(Q);else K=K.clone();var L=new Y(1),H=new Y(0),v=F.clone();while(K.cmpn(1)>0&&F.cmpn(1)>0){for(var q=0,P=1;(K.words[0]&P)===0&&q<26;++q,P<<=1);if(q>0){K.iushrn(q);while(q-- >0){if(L.isOdd())L.iadd(v);L.iushrn(1)}}for(var O=0,A=1;(F.words[0]&A)===0&&O<26;++O,A<<=1);if(O>0){F.iushrn(O);while(O-- >0){if(H.isOdd())H.iadd(v);H.iushrn(1)}}if(K.cmp(F)>=0)K.isub(F),L.isub(H);else F.isub(K),H.isub(L)}var k;if(K.cmpn(1)===0)k=L;else k=H;if(k.cmpn(0)<0)k.iadd(Q);return k},Y.prototype.gcd=function(Q){if(this.isZero())return Q.abs();if(Q.isZero())return this.abs();var K=this.clone(),F=Q.clone();K.negative=0,F.negative=0;for(var L=0;K.isEven()&&F.isEven();L++)K.iushrn(1),F.iushrn(1);do{while(K.isEven())K.iushrn(1);while(F.isEven())F.iushrn(1);var H=K.cmp(F);if(H<0){var v=K;K=F,F=v}else if(H===0||F.cmpn(1)===0)break;K.isub(F)}while(!0);return F.iushln(L)},Y.prototype.invm=function(Q){return this.egcd(Q).a.umod(Q)},Y.prototype.isEven=function(){return(this.words[0]&1)===0},Y.prototype.isOdd=function(){return(this.words[0]&1)===1},Y.prototype.andln=function(Q){return this.words[0]&Q},Y.prototype.bincn=function(Q){_(typeof Q==="number");var K=Q%26,F=(Q-K)/26,L=1<<K;if(this.length<=F)return this._expand(F+1),this.words[F]|=L,this;var H=L;for(var v=F;H!==0&&v<this.length;v++){var q=this.words[v]|0;q+=H,H=q>>>26,q&=67108863,this.words[v]=q}if(H!==0)this.words[v]=H,this.length++;return this},Y.prototype.isZero=function(){return this.length===1&&this.words[0]===0},Y.prototype.cmpn=function(Q){var K=Q<0;if(this.negative!==0&&!K)return-1;if(this.negative===0&&K)return 1;this.strip();var F;if(this.length>1)F=1;else{if(K)Q=-Q;_(Q<=67108863,"Number is too big");var L=this.words[0]|0;F=L===Q?0:L<Q?-1:1}if(this.negative!==0)return-F|0;return F},Y.prototype.cmp=function(Q){if(this.negative!==0&&Q.negative===0)return-1;if(this.negative===0&&Q.negative!==0)return 1;var K=this.ucmp(Q);if(this.negative!==0)return-K|0;return K},Y.prototype.ucmp=function(Q){if(this.length>Q.length)return 1;if(this.length<Q.length)return-1;var K=0;for(var F=this.length-1;F>=0;F--){var L=this.words[F]|0,H=Q.words[F]|0;if(L===H)continue;if(L<H)K=-1;else if(L>H)K=1;break}return K},Y.prototype.gtn=function(Q){return this.cmpn(Q)===1},Y.prototype.gt=function(Q){return this.cmp(Q)===1},Y.prototype.gten=function(Q){return this.cmpn(Q)>=0},Y.prototype.gte=function(Q){return this.cmp(Q)>=0},Y.prototype.ltn=function(Q){return this.cmpn(Q)===-1},Y.prototype.lt=function(Q){return this.cmp(Q)===-1},Y.prototype.lten=function(Q){return this.cmpn(Q)<=0},Y.prototype.lte=function(Q){return this.cmp(Q)<=0},Y.prototype.eqn=function(Q){return this.cmpn(Q)===0},Y.prototype.eq=function(Q){return this.cmp(Q)===0},Y.red=function(Q){return new t(Q)},Y.prototype.toRed=function(Q){return _(!this.red,"Already a number in reduction context"),_(this.negative===0,"red works only with positives"),Q.convertTo(this)._forceRed(Q)},Y.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},Y.prototype._forceRed=function(Q){return this.red=Q,this},Y.prototype.forceRed=function(Q){return _(!this.red,"Already a number in reduction context"),this._forceRed(Q)},Y.prototype.redAdd=function(Q){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,Q)},Y.prototype.redIAdd=function(Q){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Q)},Y.prototype.redSub=function(Q){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,Q)},Y.prototype.redISub=function(Q){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,Q)},Y.prototype.redShl=function(Q){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,Q)},Y.prototype.redMul=function(Q){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,Q),this.red.mul(this,Q)},Y.prototype.redIMul=function(Q){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,Q),this.red.imul(this,Q)},Y.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},Y.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},Y.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},Y.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},Y.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},Y.prototype.redPow=function(Q){return _(this.red&&!Q.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Q)};var l={k256:null,p224:null,p192:null,p25519:null};function i(Q,K){this.name=Q,this.p=new Y(K,16),this.n=this.p.bitLength(),this.k=new Y(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}i.prototype._tmp=function(){var Q=new Y(null);return Q.words=Array(Math.ceil(this.n/13)),Q},i.prototype.ireduce=function(Q){var K=Q,F;do this.split(K,this.tmp),K=this.imulK(K),K=K.iadd(this.tmp),F=K.bitLength();while(F>this.n);var L=F<this.n?-1:K.ucmp(this.p);if(L===0)K.words[0]=0,K.length=1;else if(L>0)K.isub(this.p);else if(K.strip!==void 0)K.strip();else K._strip();return K},i.prototype.split=function(Q,K){Q.iushrn(this.n,0,K)},i.prototype.imulK=function(Q){return Q.imul(this.k)};function $0(){i.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}J($0,i),$0.prototype.split=function(Q,K){var F=4194303,L=Math.min(Q.length,9);for(var H=0;H<L;H++)K.words[H]=Q.words[H];if(K.length=L,Q.length<=9){Q.words[0]=0,Q.length=1;return}var v=Q.words[9];K.words[K.length++]=v&F;for(H=10;H<Q.length;H++){var q=Q.words[H]|0;Q.words[H-10]=(q&F)<<4|v>>>22,v=q}if(v>>>=22,Q.words[H-10]=v,v===0&&Q.length>10)Q.length-=10;else Q.length-=9},$0.prototype.imulK=function(Q){Q.words[Q.length]=0,Q.words[Q.length+1]=0,Q.length+=2;var K=0;for(var F=0;F<Q.length;F++){var L=Q.words[F]|0;K+=L*977,Q.words[F]=K&67108863,K=L*64+(K/67108864|0)}if(Q.words[Q.length-1]===0){if(Q.length--,Q.words[Q.length-1]===0)Q.length--}return Q};function Q0(){i.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}J(Q0,i);function G0(){i.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}J(G0,i);function K0(){i.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}J(K0,i),K0.prototype.imulK=function(Q){var K=0;for(var F=0;F<Q.length;F++){var L=(Q.words[F]|0)*19+K,H=L&67108863;L>>>=26,Q.words[F]=H,K=L}if(K!==0)Q.words[Q.length++]=K;return Q},Y._prime=function(Q){if(l[Q])return l[Q];var K;if(Q==="k256")K=new $0;else if(Q==="p224")K=new Q0;else if(Q==="p192")K=new G0;else if(Q==="p25519")K=new K0;else throw Error("Unknown prime "+Q);return l[Q]=K,K};function t(Q){if(typeof Q==="string"){var K=Y._prime(Q);this.m=K.p,this.prime=K}else _(Q.gtn(1),"modulus must be greater than 1"),this.m=Q,this.prime=null}t.prototype._verify1=function(Q){_(Q.negative===0,"red works only with positives"),_(Q.red,"red works only with red numbers")},t.prototype._verify2=function(Q,K){_((Q.negative|K.negative)===0,"red works only with positives"),_(Q.red&&Q.red===K.red,"red works only with red numbers")},t.prototype.imod=function(Q){if(this.prime)return this.prime.ireduce(Q)._forceRed(this);return Q.umod(this.m)._forceRed(this)},t.prototype.neg=function(Q){if(Q.isZero())return Q.clone();return this.m.sub(Q)._forceRed(this)},t.prototype.add=function(Q,K){this._verify2(Q,K);var F=Q.add(K);if(F.cmp(this.m)>=0)F.isub(this.m);return F._forceRed(this)},t.prototype.iadd=function(Q,K){this._verify2(Q,K);var F=Q.iadd(K);if(F.cmp(this.m)>=0)F.isub(this.m);return F},t.prototype.sub=function(Q,K){this._verify2(Q,K);var F=Q.sub(K);if(F.cmpn(0)<0)F.iadd(this.m);return F._forceRed(this)},t.prototype.isub=function(Q,K){this._verify2(Q,K);var F=Q.isub(K);if(F.cmpn(0)<0)F.iadd(this.m);return F},t.prototype.shl=function(Q,K){return this._verify1(Q),this.imod(Q.ushln(K))},t.prototype.imul=function(Q,K){return this._verify2(Q,K),this.imod(Q.imul(K))},t.prototype.mul=function(Q,K){return this._verify2(Q,K),this.imod(Q.mul(K))},t.prototype.isqr=function(Q){return this.imul(Q,Q.clone())},t.prototype.sqr=function(Q){return this.mul(Q,Q)},t.prototype.sqrt=function(Q){if(Q.isZero())return Q.clone();var K=this.m.andln(3);if(_(K%2===1),K===3){var F=this.m.add(new Y(1)).iushrn(2);return this.pow(Q,F)}var L=this.m.subn(1),H=0;while(!L.isZero()&&L.andln(1)===0)H++,L.iushrn(1);_(!L.isZero());var v=new Y(1).toRed(this),q=v.redNeg(),P=this.m.subn(1).iushrn(1),O=this.m.bitLength();O=new Y(2*O*O).toRed(this);while(this.pow(O,P).cmp(q)!==0)O.redIAdd(q);var A=this.pow(O,L),k=this.pow(Q,L.addn(1).iushrn(1)),j=this.pow(Q,L),h=H;while(j.cmp(v)!==0){var a=j;for(var J0=0;a.cmp(v)!==0;J0++)a=a.redSqr();_(J0<h);var D0=this.pow(A,new Y(1).iushln(h-J0-1));k=k.redMul(D0),A=D0.redSqr(),j=j.redMul(A),h=J0}return k},t.prototype.invm=function(Q){var K=Q._invmp(this.m);if(K.negative!==0)return K.negative=0,this.imod(K).redNeg();else return this.imod(K)},t.prototype.pow=function(Q,K){if(K.isZero())return new Y(1).toRed(this);if(K.cmpn(1)===0)return Q.clone();var F=4,L=Array(1<<F);L[0]=new Y(1).toRed(this),L[1]=Q;for(var H=2;H<L.length;H++)L[H]=this.mul(L[H-1],Q);var v=L[0],q=0,P=0,O=K.bitLength()%26;if(O===0)O=26;for(H=K.length-1;H>=0;H--){var A=K.words[H];for(var k=O-1;k>=0;k--){var j=A>>k&1;if(v!==L[0])v=this.sqr(v);if(j===0&&q===0){P=0;continue}if(q<<=1,q|=j,P++,P!==F&&(H!==0||k!==0))continue;v=this.mul(v,L[q]),P=0,q=0}O=26}return v},t.prototype.convertTo=function(Q){var K=Q.umod(this.m);return K===Q?K.clone():K},t.prototype.convertFrom=function(Q){var K=Q.clone();return K.red=null,K},Y.mont=function(Q){return new P0(Q)};function P0(Q){if(t.call(this,Q),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new Y(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}J(P0,t),P0.prototype.convertTo=function(Q){return this.imod(Q.ushln(this.shift))},P0.prototype.convertFrom=function(Q){var K=this.imod(Q.mul(this.rinv));return K.red=null,K},P0.prototype.imul=function(Q,K){if(Q.isZero()||K.isZero())return Q.words[0]=0,Q.length=1,Q;var F=Q.imul(K),L=F.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),H=F.isub(L).iushrn(this.shift),v=H;if(H.cmp(this.m)>=0)v=H.isub(this.m);else if(H.cmpn(0)<0)v=H.iadd(this.m);return v._forceRed(this)},P0.prototype.mul=function(Q,K){if(Q.isZero()||K.isZero())return new Y(0)._forceRed(this);var F=Q.mul(K),L=F.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),H=F.isub(L).iushrn(this.shift),v=H;if(H.cmp(this.m)>=0)v=H.isub(this.m);else if(H.cmpn(0)<0)v=H.iadd(this.m);return v._forceRed(this)},P0.prototype.invm=function(Q){var K=this.imod(Q._invmp(this.m).mul(this.r2));return K._forceRed(this)}})(typeof I>"u"||I,$)}),$n=$$(($,I)=>{var G=su(),Z=eu();I.exports=function(W){return new J(W)};var _={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};_.p224=_.secp224r1,_.p256=_.secp256r1=_.prime256v1,_.p192=_.secp192r1=_.prime192v1,_.p384=_.secp384r1,_.p521=_.secp521r1;function J(W){if(this.curveType=_[W],!this.curveType)this.curveType={name:W};this.curve=new G.ec(this.curveType.name),this.keys=void 0}J.prototype.generateKeys=function(W,R){return this.keys=this.curve.genKeyPair(),this.getPublicKey(W,R)},J.prototype.computeSecret=function(W,R,M){if(R=R||"utf8",!Buffer.isBuffer(W))W=new Buffer(W,R);var E=this.curve.keyFromPublic(W).getPublic(),T=E.mul(this.keys.getPrivate()).getX();return Y(T,M,this.curveType.byteLength)},J.prototype.getPublicKey=function(W,R){var M=this.keys.getPublic(R==="compressed",!0);if(R==="hybrid")if(M[M.length-1]%2)M[0]=7;else M[0]=6;return Y(M,W)},J.prototype.getPrivateKey=function(W){return Y(this.keys.getPrivate(),W)},J.prototype.setPublicKey=function(W,R){if(R=R||"utf8",!Buffer.isBuffer(W))W=new Buffer(W,R);return this.keys._importPublic(W),this},J.prototype.setPrivateKey=function(W,R){if(R=R||"utf8",!Buffer.isBuffer(W))W=new Buffer(W,R);var M=new Z(W);return M=M.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(M),this};function Y(W,R,M){if(!Array.isArray(W))W=W.toArray();var E=new Buffer(W);if(M&&E.length<M){var T=new Buffer(M-E.length);T.fill(0),E=Buffer.concat([T,E])}if(!R)return E;else return E.toString(R)}}),Un=$$(($,I)=>{var G=(i1(),V$(k6)).createECDH;I.exports=G||$n()}),In=$$(($,I)=>{(function(G,Z){function _(Q,K){if(!Q)throw Error(K||"Assertion failed")}function J(Q,K){Q.super_=K;var F=function(){};F.prototype=K.prototype,Q.prototype=new F,Q.prototype.constructor=Q}function Y(Q,K,F){if(Y.isBN(Q))return Q;if(this.negative=0,this.words=null,this.length=0,this.red=null,Q!==null){if(K==="le"||K==="be")F=K,K=10;this._init(Q||0,K||10,F||"be")}}if(typeof G==="object")G.exports=Y;else Z.BN=Y;Y.BN=Y,Y.wordSize=26;var W;try{if(typeof window<"u"&&typeof window.Buffer<"u")W=window.Buffer;else W=(u1(),V$(h1)).Buffer}catch(Q){}Y.isBN=function(Q){if(Q instanceof Y)return!0;return Q!==null&&typeof Q==="object"&&Q.constructor.wordSize===Y.wordSize&&Array.isArray(Q.words)},Y.max=function(Q,K){if(Q.cmp(K)>0)return Q;return K},Y.min=function(Q,K){if(Q.cmp(K)<0)return Q;return K},Y.prototype._init=function(Q,K,F){if(typeof Q==="number")return this._initNumber(Q,K,F);if(typeof Q==="object")return this._initArray(Q,K,F);if(K==="hex")K=16;_(K===(K|0)&&K>=2&&K<=36),Q=Q.toString().replace(/\s+/g,"");var L=0;if(Q[0]==="-")L++,this.negative=1;if(L<Q.length){if(K===16)this._parseHex(Q,L,F);else if(this._parseBase(Q,K,L),F==="le")this._initArray(this.toArray(),K,F)}},Y.prototype._initNumber=function(Q,K,F){if(Q<0)this.negative=1,Q=-Q;if(Q<67108864)this.words=[Q&67108863],this.length=1;else if(Q<4503599627370496)this.words=[Q&67108863,Q/67108864&67108863],this.length=2;else _(Q<9007199254740992),this.words=[Q&67108863,Q/67108864&67108863,1],this.length=3;if(F!=="le")return;this._initArray(this.toArray(),K,F)},Y.prototype._initArray=function(Q,K,F){if(_(typeof Q.length==="number"),Q.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(Q.length/3),this.words=Array(this.length);for(var L=0;L<this.length;L++)this.words[L]=0;var H,v,q=0;if(F==="be"){for(L=Q.length-1,H=0;L>=0;L-=3)if(v=Q[L]|Q[L-1]<<8|Q[L-2]<<16,this.words[H]|=v<<q&67108863,this.words[H+1]=v>>>26-q&67108863,q+=24,q>=26)q-=26,H++}else if(F==="le"){for(L=0,H=0;L<Q.length;L+=3)if(v=Q[L]|Q[L+1]<<8|Q[L+2]<<16,this.words[H]|=v<<q&67108863,this.words[H+1]=v>>>26-q&67108863,q+=24,q>=26)q-=26,H++}return this.strip()};function R(Q,K){var F=Q.charCodeAt(K);if(F>=65&&F<=70)return F-55;else if(F>=97&&F<=102)return F-87;else return F-48&15}function M(Q,K,F){var L=R(Q,F);if(F-1>=K)L|=R(Q,F-1)<<4;return L}Y.prototype._parseHex=function(Q,K,F){this.length=Math.ceil((Q.length-K)/6),this.words=Array(this.length);for(var L=0;L<this.length;L++)this.words[L]=0;var H=0,v=0,q;if(F==="be")for(L=Q.length-1;L>=K;L-=2)if(q=M(Q,K,L)<<H,this.words[v]|=q&67108863,H>=18)H-=18,v+=1,this.words[v]|=q>>>26;else H+=8;else{var P=Q.length-K;for(L=P%2===0?K+1:K;L<Q.length;L+=2)if(q=M(Q,K,L)<<H,this.words[v]|=q&67108863,H>=18)H-=18,v+=1,this.words[v]|=q>>>26;else H+=8}this.strip()};function E(Q,K,F,L){var H=0,v=Math.min(Q.length,F);for(var q=K;q<v;q++){var P=Q.charCodeAt(q)-48;if(H*=L,P>=49)H+=P-49+10;else if(P>=17)H+=P-17+10;else H+=P}return H}Y.prototype._parseBase=function(Q,K,F){this.words=[0],this.length=1;for(var L=0,H=1;H<=67108863;H*=K)L++;L--,H=H/K|0;var v=Q.length-F,q=v%L,P=Math.min(v,v-q)+F,O=0;for(var A=F;A<P;A+=L)if(O=E(Q,A,A+L,K),this.imuln(H),this.words[0]+O<67108864)this.words[0]+=O;else this._iaddn(O);if(q!==0){var k=1;O=E(Q,A,Q.length,K);for(A=0;A<q;A++)k*=K;if(this.imuln(k),this.words[0]+O<67108864)this.words[0]+=O;else this._iaddn(O)}this.strip()},Y.prototype.copy=function(Q){Q.words=Array(this.length);for(var K=0;K<this.length;K++)Q.words[K]=this.words[K];Q.length=this.length,Q.negative=this.negative,Q.red=this.red},Y.prototype.clone=function(){var Q=new Y(null);return this.copy(Q),Q},Y.prototype._expand=function(Q){while(this.length<Q)this.words[this.length++]=0;return this},Y.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},Y.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},Y.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],S=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(Y.prototype.toString=function(Q,K){Q=Q||10,K=K|0||1;var F;if(Q===16||Q==="hex"){F="";var L=0,H=0;for(var v=0;v<this.length;v++){var q=this.words[v],P=((q<<L|H)&16777215).toString(16);if(H=q>>>24-L&16777215,L+=2,L>=26)L-=26,v--;if(H!==0||v!==this.length-1)F=T[6-P.length]+P+F;else F=P+F}if(H!==0)F=H.toString(16)+F;while(F.length%K!==0)F="0"+F;if(this.negative!==0)F="-"+F;return F}if(Q===(Q|0)&&Q>=2&&Q<=36){var O=S[Q],A=N[Q];F="";var k=this.clone();k.negative=0;while(!k.isZero()){var j=k.modn(A).toString(Q);if(k=k.idivn(A),!k.isZero())F=T[O-j.length]+j+F;else F=j+F}if(this.isZero())F="0"+F;while(F.length%K!==0)F="0"+F;if(this.negative!==0)F="-"+F;return F}_(!1,"Base should be between 2 and 36")},Y.prototype.toNumber=function(){var Q=this.words[0];if(this.length===2)Q+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)Q+=4503599627370496+this.words[1]*67108864;else if(this.length>2)_(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-Q:Q},Y.prototype.toJSON=function(){return this.toString(16)},Y.prototype.toBuffer=function(Q,K){return _(typeof W<"u"),this.toArrayLike(W,Q,K)},Y.prototype.toArray=function(Q,K){return this.toArrayLike(Array,Q,K)},Y.prototype.toArrayLike=function(Q,K,F){var L=this.byteLength(),H=F||Math.max(1,L);_(L<=H,"byte array longer than desired length"),_(H>0,"Requested array length <= 0"),this.strip();var v=K==="le",q=new Q(H),P,O,A=this.clone();if(!v){for(O=0;O<H-L;O++)q[O]=0;for(O=0;!A.isZero();O++)P=A.andln(255),A.iushrn(8),q[H-O-1]=P}else{for(O=0;!A.isZero();O++)P=A.andln(255),A.iushrn(8),q[O]=P;for(;O<H;O++)q[O]=0}return q},Math.clz32)Y.prototype._countBits=function(Q){return 32-Math.clz32(Q)};else Y.prototype._countBits=function(Q){var K=Q,F=0;if(K>=4096)F+=13,K>>>=13;if(K>=64)F+=7,K>>>=7;if(K>=8)F+=4,K>>>=4;if(K>=2)F+=2,K>>>=2;return F+K};Y.prototype._zeroBits=function(Q){if(Q===0)return 26;var K=Q,F=0;if((K&8191)===0)F+=13,K>>>=13;if((K&127)===0)F+=7,K>>>=7;if((K&15)===0)F+=4,K>>>=4;if((K&3)===0)F+=2,K>>>=2;if((K&1)===0)F++;return F},Y.prototype.bitLength=function(){var Q=this.words[this.length-1],K=this._countBits(Q);return(this.length-1)*26+K};function B(Q){var K=Array(Q.bitLength());for(var F=0;F<K.length;F++){var L=F/26|0,H=F%26;K[F]=(Q.words[L]&1<<H)>>>H}return K}Y.prototype.zeroBits=function(){if(this.isZero())return 0;var Q=0;for(var K=0;K<this.length;K++){var F=this._zeroBits(this.words[K]);if(Q+=F,F!==26)break}return Q},Y.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},Y.prototype.toTwos=function(Q){if(this.negative!==0)return this.abs().inotn(Q).iaddn(1);return this.clone()},Y.prototype.fromTwos=function(Q){if(this.testn(Q-1))return this.notn(Q).iaddn(1).ineg();return this.clone()},Y.prototype.isNeg=function(){return this.negative!==0},Y.prototype.neg=function(){return this.clone().ineg()},Y.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},Y.prototype.iuor=function(Q){while(this.length<Q.length)this.words[this.length++]=0;for(var K=0;K<Q.length;K++)this.words[K]=this.words[K]|Q.words[K];return this.strip()},Y.prototype.ior=function(Q){return _((this.negative|Q.negative)===0),this.iuor(Q)},Y.prototype.or=function(Q){if(this.length>Q.length)return this.clone().ior(Q);return Q.clone().ior(this)},Y.prototype.uor=function(Q){if(this.length>Q.length)return this.clone().iuor(Q);return Q.clone().iuor(this)},Y.prototype.iuand=function(Q){var K;if(this.length>Q.length)K=Q;else K=this;for(var F=0;F<K.length;F++)this.words[F]=this.words[F]&Q.words[F];return this.length=K.length,this.strip()},Y.prototype.iand=function(Q){return _((this.negative|Q.negative)===0),this.iuand(Q)},Y.prototype.and=function(Q){if(this.length>Q.length)return this.clone().iand(Q);return Q.clone().iand(this)},Y.prototype.uand=function(Q){if(this.length>Q.length)return this.clone().iuand(Q);return Q.clone().iuand(this)},Y.prototype.iuxor=function(Q){var K,F;if(this.length>Q.length)K=this,F=Q;else K=Q,F=this;for(var L=0;L<F.length;L++)this.words[L]=K.words[L]^F.words[L];if(this!==K)for(;L<K.length;L++)this.words[L]=K.words[L];return this.length=K.length,this.strip()},Y.prototype.ixor=function(Q){return _((this.negative|Q.negative)===0),this.iuxor(Q)},Y.prototype.xor=function(Q){if(this.length>Q.length)return this.clone().ixor(Q);return Q.clone().ixor(this)},Y.prototype.uxor=function(Q){if(this.length>Q.length)return this.clone().iuxor(Q);return Q.clone().iuxor(this)},Y.prototype.inotn=function(Q){_(typeof Q==="number"&&Q>=0);var K=Math.ceil(Q/26)|0,F=Q%26;if(this._expand(K),F>0)K--;for(var L=0;L<K;L++)this.words[L]=~this.words[L]&67108863;if(F>0)this.words[L]=~this.words[L]&67108863>>26-F;return this.strip()},Y.prototype.notn=function(Q){return this.clone().inotn(Q)},Y.prototype.setn=function(Q,K){_(typeof Q==="number"&&Q>=0);var F=Q/26|0,L=Q%26;if(this._expand(F+1),K)this.words[F]=this.words[F]|1<<L;else this.words[F]=this.words[F]&~(1<<L);return this.strip()},Y.prototype.iadd=function(Q){var K;if(this.negative!==0&&Q.negative===0)return this.negative=0,K=this.isub(Q),this.negative^=1,this._normSign();else if(this.negative===0&&Q.negative!==0)return Q.negative=0,K=this.isub(Q),Q.negative=1,K._normSign();var F,L;if(this.length>Q.length)F=this,L=Q;else F=Q,L=this;var H=0;for(var v=0;v<L.length;v++)K=(F.words[v]|0)+(L.words[v]|0)+H,this.words[v]=K&67108863,H=K>>>26;for(;H!==0&&v<F.length;v++)K=(F.words[v]|0)+H,this.words[v]=K&67108863,H=K>>>26;if(this.length=F.length,H!==0)this.words[this.length]=H,this.length++;else if(F!==this)for(;v<F.length;v++)this.words[v]=F.words[v];return this},Y.prototype.add=function(Q){var K;if(Q.negative!==0&&this.negative===0)return Q.negative=0,K=this.sub(Q),Q.negative^=1,K;else if(Q.negative===0&&this.negative!==0)return this.negative=0,K=Q.sub(this),this.negative=1,K;if(this.length>Q.length)return this.clone().iadd(Q);return Q.clone().iadd(this)},Y.prototype.isub=function(Q){if(Q.negative!==0){Q.negative=0;var K=this.iadd(Q);return Q.negative=1,K._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Q),this.negative=1,this._normSign();var F=this.cmp(Q);if(F===0)return this.negative=0,this.length=1,this.words[0]=0,this;var L,H;if(F>0)L=this,H=Q;else L=Q,H=this;var v=0;for(var q=0;q<H.length;q++)K=(L.words[q]|0)-(H.words[q]|0)+v,v=K>>26,this.words[q]=K&67108863;for(;v!==0&&q<L.length;q++)K=(L.words[q]|0)+v,v=K>>26,this.words[q]=K&67108863;if(v===0&&q<L.length&&L!==this)for(;q<L.length;q++)this.words[q]=L.words[q];if(this.length=Math.max(this.length,q),L!==this)this.negative=1;return this.strip()},Y.prototype.sub=function(Q){return this.clone().isub(Q)};function x(Q,K,F){F.negative=K.negative^Q.negative;var L=Q.length+K.length|0;F.length=L,L=L-1|0;var H=Q.words[0]|0,v=K.words[0]|0,q=H*v,P=q&67108863,O=q/67108864|0;F.words[0]=P;for(var A=1;A<L;A++){var k=O>>>26,j=O&67108863,h=Math.min(A,K.length-1);for(var a=Math.max(0,A-Q.length+1);a<=h;a++){var J0=A-a|0;H=Q.words[J0]|0,v=K.words[a]|0,q=H*v+j,k+=q/67108864|0,j=q&67108863}F.words[A]=j|0,O=k|0}if(O!==0)F.words[A]=O|0;else F.length--;return F.strip()}var w=function(Q,K,F){var L=Q.words,H=K.words,v=F.words,q=0,P,O,A,k=L[0]|0,j=k&8191,h=k>>>13,a=L[1]|0,J0=a&8191,D0=a>>>13,O0=L[2]|0,d=O0&8191,m=O0>>>13,r=L[3]|0,Y0=r&8191,W0=r>>>13,I0=L[4]|0,c=I0&8191,s=I0>>>13,S0=L[5]|0,M0=S0&8191,z0=S0>>>13,c0=L[6]|0,F0=c0&8191,q0=c0>>>13,s0=L[7]|0,k0=s0&8191,n0=s0>>>13,M$=L[8]|0,T0=M$&8191,V0=M$>>>13,X$=L[9]|0,p0=X$&8191,l0=X$>>>13,L0=H[0]|0,N0=L0&8191,B0=L0>>>13,Y$=H[1]|0,u=Y$&8191,_0=Y$>>>13,o=H[2]|0,R0=o&8191,x0=o>>>13,p=H[3]|0,A0=p&8191,v0=p>>>13,X0=H[4]|0,H0=X0&8191,C0=X0>>>13,H$=H[5]|0,d0=H$&8191,e=H$>>>13,E0=H[6]|0,b0=E0&8191,f0=E0>>>13,z$=H[7]|0,a0=z$&8191,U$=z$>>>13,c$=H[8]|0,K$=c$&8191,L$=c$>>>13,B$=H[9]|0,Z$=B$&8191,I$=B$>>>13;F.negative=Q.negative^K.negative,F.length=19,P=Math.imul(j,N0),O=Math.imul(j,B0),O=O+Math.imul(h,N0)|0,A=Math.imul(h,B0);var I1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(I1>>>26)|0,I1&=67108863,P=Math.imul(J0,N0),O=Math.imul(J0,B0),O=O+Math.imul(D0,N0)|0,A=Math.imul(D0,B0),P=P+Math.imul(j,u)|0,O=O+Math.imul(j,_0)|0,O=O+Math.imul(h,u)|0,A=A+Math.imul(h,_0)|0;var C$=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(C$>>>26)|0,C$&=67108863,P=Math.imul(d,N0),O=Math.imul(d,B0),O=O+Math.imul(m,N0)|0,A=Math.imul(m,B0),P=P+Math.imul(J0,u)|0,O=O+Math.imul(J0,_0)|0,O=O+Math.imul(D0,u)|0,A=A+Math.imul(D0,_0)|0,P=P+Math.imul(j,R0)|0,O=O+Math.imul(j,x0)|0,O=O+Math.imul(h,R0)|0,A=A+Math.imul(h,x0)|0;var g$=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(g$>>>26)|0,g$&=67108863,P=Math.imul(Y0,N0),O=Math.imul(Y0,B0),O=O+Math.imul(W0,N0)|0,A=Math.imul(W0,B0),P=P+Math.imul(d,u)|0,O=O+Math.imul(d,_0)|0,O=O+Math.imul(m,u)|0,A=A+Math.imul(m,_0)|0,P=P+Math.imul(J0,R0)|0,O=O+Math.imul(J0,x0)|0,O=O+Math.imul(D0,R0)|0,A=A+Math.imul(D0,x0)|0,P=P+Math.imul(j,A0)|0,O=O+Math.imul(j,v0)|0,O=O+Math.imul(h,A0)|0,A=A+Math.imul(h,v0)|0;var z1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(z1>>>26)|0,z1&=67108863,P=Math.imul(c,N0),O=Math.imul(c,B0),O=O+Math.imul(s,N0)|0,A=Math.imul(s,B0),P=P+Math.imul(Y0,u)|0,O=O+Math.imul(Y0,_0)|0,O=O+Math.imul(W0,u)|0,A=A+Math.imul(W0,_0)|0,P=P+Math.imul(d,R0)|0,O=O+Math.imul(d,x0)|0,O=O+Math.imul(m,R0)|0,A=A+Math.imul(m,x0)|0,P=P+Math.imul(J0,A0)|0,O=O+Math.imul(J0,v0)|0,O=O+Math.imul(D0,A0)|0,A=A+Math.imul(D0,v0)|0,P=P+Math.imul(j,H0)|0,O=O+Math.imul(j,C0)|0,O=O+Math.imul(h,H0)|0,A=A+Math.imul(h,C0)|0;var U1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(U1>>>26)|0,U1&=67108863,P=Math.imul(M0,N0),O=Math.imul(M0,B0),O=O+Math.imul(z0,N0)|0,A=Math.imul(z0,B0),P=P+Math.imul(c,u)|0,O=O+Math.imul(c,_0)|0,O=O+Math.imul(s,u)|0,A=A+Math.imul(s,_0)|0,P=P+Math.imul(Y0,R0)|0,O=O+Math.imul(Y0,x0)|0,O=O+Math.imul(W0,R0)|0,A=A+Math.imul(W0,x0)|0,P=P+Math.imul(d,A0)|0,O=O+Math.imul(d,v0)|0,O=O+Math.imul(m,A0)|0,A=A+Math.imul(m,v0)|0,P=P+Math.imul(J0,H0)|0,O=O+Math.imul(J0,C0)|0,O=O+Math.imul(D0,H0)|0,A=A+Math.imul(D0,C0)|0,P=P+Math.imul(j,d0)|0,O=O+Math.imul(j,e)|0,O=O+Math.imul(h,d0)|0,A=A+Math.imul(h,e)|0;var o1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(o1>>>26)|0,o1&=67108863,P=Math.imul(F0,N0),O=Math.imul(F0,B0),O=O+Math.imul(q0,N0)|0,A=Math.imul(q0,B0),P=P+Math.imul(M0,u)|0,O=O+Math.imul(M0,_0)|0,O=O+Math.imul(z0,u)|0,A=A+Math.imul(z0,_0)|0,P=P+Math.imul(c,R0)|0,O=O+Math.imul(c,x0)|0,O=O+Math.imul(s,R0)|0,A=A+Math.imul(s,x0)|0,P=P+Math.imul(Y0,A0)|0,O=O+Math.imul(Y0,v0)|0,O=O+Math.imul(W0,A0)|0,A=A+Math.imul(W0,v0)|0,P=P+Math.imul(d,H0)|0,O=O+Math.imul(d,C0)|0,O=O+Math.imul(m,H0)|0,A=A+Math.imul(m,C0)|0,P=P+Math.imul(J0,d0)|0,O=O+Math.imul(J0,e)|0,O=O+Math.imul(D0,d0)|0,A=A+Math.imul(D0,e)|0,P=P+Math.imul(j,b0)|0,O=O+Math.imul(j,f0)|0,O=O+Math.imul(h,b0)|0,A=A+Math.imul(h,f0)|0;var t1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(t1>>>26)|0,t1&=67108863,P=Math.imul(k0,N0),O=Math.imul(k0,B0),O=O+Math.imul(n0,N0)|0,A=Math.imul(n0,B0),P=P+Math.imul(F0,u)|0,O=O+Math.imul(F0,_0)|0,O=O+Math.imul(q0,u)|0,A=A+Math.imul(q0,_0)|0,P=P+Math.imul(M0,R0)|0,O=O+Math.imul(M0,x0)|0,O=O+Math.imul(z0,R0)|0,A=A+Math.imul(z0,x0)|0,P=P+Math.imul(c,A0)|0,O=O+Math.imul(c,v0)|0,O=O+Math.imul(s,A0)|0,A=A+Math.imul(s,v0)|0,P=P+Math.imul(Y0,H0)|0,O=O+Math.imul(Y0,C0)|0,O=O+Math.imul(W0,H0)|0,A=A+Math.imul(W0,C0)|0,P=P+Math.imul(d,d0)|0,O=O+Math.imul(d,e)|0,O=O+Math.imul(m,d0)|0,A=A+Math.imul(m,e)|0,P=P+Math.imul(J0,b0)|0,O=O+Math.imul(J0,f0)|0,O=O+Math.imul(D0,b0)|0,A=A+Math.imul(D0,f0)|0,P=P+Math.imul(j,a0)|0,O=O+Math.imul(j,U$)|0,O=O+Math.imul(h,a0)|0,A=A+Math.imul(h,U$)|0;var r1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(r1>>>26)|0,r1&=67108863,P=Math.imul(T0,N0),O=Math.imul(T0,B0),O=O+Math.imul(V0,N0)|0,A=Math.imul(V0,B0),P=P+Math.imul(k0,u)|0,O=O+Math.imul(k0,_0)|0,O=O+Math.imul(n0,u)|0,A=A+Math.imul(n0,_0)|0,P=P+Math.imul(F0,R0)|0,O=O+Math.imul(F0,x0)|0,O=O+Math.imul(q0,R0)|0,A=A+Math.imul(q0,x0)|0,P=P+Math.imul(M0,A0)|0,O=O+Math.imul(M0,v0)|0,O=O+Math.imul(z0,A0)|0,A=A+Math.imul(z0,v0)|0,P=P+Math.imul(c,H0)|0,O=O+Math.imul(c,C0)|0,O=O+Math.imul(s,H0)|0,A=A+Math.imul(s,C0)|0,P=P+Math.imul(Y0,d0)|0,O=O+Math.imul(Y0,e)|0,O=O+Math.imul(W0,d0)|0,A=A+Math.imul(W0,e)|0,P=P+Math.imul(d,b0)|0,O=O+Math.imul(d,f0)|0,O=O+Math.imul(m,b0)|0,A=A+Math.imul(m,f0)|0,P=P+Math.imul(J0,a0)|0,O=O+Math.imul(J0,U$)|0,O=O+Math.imul(D0,a0)|0,A=A+Math.imul(D0,U$)|0,P=P+Math.imul(j,K$)|0,O=O+Math.imul(j,L$)|0,O=O+Math.imul(h,K$)|0,A=A+Math.imul(h,L$)|0;var a1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(a1>>>26)|0,a1&=67108863,P=Math.imul(p0,N0),O=Math.imul(p0,B0),O=O+Math.imul(l0,N0)|0,A=Math.imul(l0,B0),P=P+Math.imul(T0,u)|0,O=O+Math.imul(T0,_0)|0,O=O+Math.imul(V0,u)|0,A=A+Math.imul(V0,_0)|0,P=P+Math.imul(k0,R0)|0,O=O+Math.imul(k0,x0)|0,O=O+Math.imul(n0,R0)|0,A=A+Math.imul(n0,x0)|0,P=P+Math.imul(F0,A0)|0,O=O+Math.imul(F0,v0)|0,O=O+Math.imul(q0,A0)|0,A=A+Math.imul(q0,v0)|0,P=P+Math.imul(M0,H0)|0,O=O+Math.imul(M0,C0)|0,O=O+Math.imul(z0,H0)|0,A=A+Math.imul(z0,C0)|0,P=P+Math.imul(c,d0)|0,O=O+Math.imul(c,e)|0,O=O+Math.imul(s,d0)|0,A=A+Math.imul(s,e)|0,P=P+Math.imul(Y0,b0)|0,O=O+Math.imul(Y0,f0)|0,O=O+Math.imul(W0,b0)|0,A=A+Math.imul(W0,f0)|0,P=P+Math.imul(d,a0)|0,O=O+Math.imul(d,U$)|0,O=O+Math.imul(m,a0)|0,A=A+Math.imul(m,U$)|0,P=P+Math.imul(J0,K$)|0,O=O+Math.imul(J0,L$)|0,O=O+Math.imul(D0,K$)|0,A=A+Math.imul(D0,L$)|0,P=P+Math.imul(j,Z$)|0,O=O+Math.imul(j,I$)|0,O=O+Math.imul(h,Z$)|0,A=A+Math.imul(h,I$)|0;var s1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(s1>>>26)|0,s1&=67108863,P=Math.imul(p0,u),O=Math.imul(p0,_0),O=O+Math.imul(l0,u)|0,A=Math.imul(l0,_0),P=P+Math.imul(T0,R0)|0,O=O+Math.imul(T0,x0)|0,O=O+Math.imul(V0,R0)|0,A=A+Math.imul(V0,x0)|0,P=P+Math.imul(k0,A0)|0,O=O+Math.imul(k0,v0)|0,O=O+Math.imul(n0,A0)|0,A=A+Math.imul(n0,v0)|0,P=P+Math.imul(F0,H0)|0,O=O+Math.imul(F0,C0)|0,O=O+Math.imul(q0,H0)|0,A=A+Math.imul(q0,C0)|0,P=P+Math.imul(M0,d0)|0,O=O+Math.imul(M0,e)|0,O=O+Math.imul(z0,d0)|0,A=A+Math.imul(z0,e)|0,P=P+Math.imul(c,b0)|0,O=O+Math.imul(c,f0)|0,O=O+Math.imul(s,b0)|0,A=A+Math.imul(s,f0)|0,P=P+Math.imul(Y0,a0)|0,O=O+Math.imul(Y0,U$)|0,O=O+Math.imul(W0,a0)|0,A=A+Math.imul(W0,U$)|0,P=P+Math.imul(d,K$)|0,O=O+Math.imul(d,L$)|0,O=O+Math.imul(m,K$)|0,A=A+Math.imul(m,L$)|0,P=P+Math.imul(J0,Z$)|0,O=O+Math.imul(J0,I$)|0,O=O+Math.imul(D0,Z$)|0,A=A+Math.imul(D0,I$)|0;var Y1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(Y1>>>26)|0,Y1&=67108863,P=Math.imul(p0,R0),O=Math.imul(p0,x0),O=O+Math.imul(l0,R0)|0,A=Math.imul(l0,x0),P=P+Math.imul(T0,A0)|0,O=O+Math.imul(T0,v0)|0,O=O+Math.imul(V0,A0)|0,A=A+Math.imul(V0,v0)|0,P=P+Math.imul(k0,H0)|0,O=O+Math.imul(k0,C0)|0,O=O+Math.imul(n0,H0)|0,A=A+Math.imul(n0,C0)|0,P=P+Math.imul(F0,d0)|0,O=O+Math.imul(F0,e)|0,O=O+Math.imul(q0,d0)|0,A=A+Math.imul(q0,e)|0,P=P+Math.imul(M0,b0)|0,O=O+Math.imul(M0,f0)|0,O=O+Math.imul(z0,b0)|0,A=A+Math.imul(z0,f0)|0,P=P+Math.imul(c,a0)|0,O=O+Math.imul(c,U$)|0,O=O+Math.imul(s,a0)|0,A=A+Math.imul(s,U$)|0,P=P+Math.imul(Y0,K$)|0,O=O+Math.imul(Y0,L$)|0,O=O+Math.imul(W0,K$)|0,A=A+Math.imul(W0,L$)|0,P=P+Math.imul(d,Z$)|0,O=O+Math.imul(d,I$)|0,O=O+Math.imul(m,Z$)|0,A=A+Math.imul(m,I$)|0;var S1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(S1>>>26)|0,S1&=67108863,P=Math.imul(p0,A0),O=Math.imul(p0,v0),O=O+Math.imul(l0,A0)|0,A=Math.imul(l0,v0),P=P+Math.imul(T0,H0)|0,O=O+Math.imul(T0,C0)|0,O=O+Math.imul(V0,H0)|0,A=A+Math.imul(V0,C0)|0,P=P+Math.imul(k0,d0)|0,O=O+Math.imul(k0,e)|0,O=O+Math.imul(n0,d0)|0,A=A+Math.imul(n0,e)|0,P=P+Math.imul(F0,b0)|0,O=O+Math.imul(F0,f0)|0,O=O+Math.imul(q0,b0)|0,A=A+Math.imul(q0,f0)|0,P=P+Math.imul(M0,a0)|0,O=O+Math.imul(M0,U$)|0,O=O+Math.imul(z0,a0)|0,A=A+Math.imul(z0,U$)|0,P=P+Math.imul(c,K$)|0,O=O+Math.imul(c,L$)|0,O=O+Math.imul(s,K$)|0,A=A+Math.imul(s,L$)|0,P=P+Math.imul(Y0,Z$)|0,O=O+Math.imul(Y0,I$)|0,O=O+Math.imul(W0,Z$)|0,A=A+Math.imul(W0,I$)|0;var R1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(R1>>>26)|0,R1&=67108863,P=Math.imul(p0,H0),O=Math.imul(p0,C0),O=O+Math.imul(l0,H0)|0,A=Math.imul(l0,C0),P=P+Math.imul(T0,d0)|0,O=O+Math.imul(T0,e)|0,O=O+Math.imul(V0,d0)|0,A=A+Math.imul(V0,e)|0,P=P+Math.imul(k0,b0)|0,O=O+Math.imul(k0,f0)|0,O=O+Math.imul(n0,b0)|0,A=A+Math.imul(n0,f0)|0,P=P+Math.imul(F0,a0)|0,O=O+Math.imul(F0,U$)|0,O=O+Math.imul(q0,a0)|0,A=A+Math.imul(q0,U$)|0,P=P+Math.imul(M0,K$)|0,O=O+Math.imul(M0,L$)|0,O=O+Math.imul(z0,K$)|0,A=A+Math.imul(z0,L$)|0,P=P+Math.imul(c,Z$)|0,O=O+Math.imul(c,I$)|0,O=O+Math.imul(s,Z$)|0,A=A+Math.imul(s,I$)|0;var e1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(e1>>>26)|0,e1&=67108863,P=Math.imul(p0,d0),O=Math.imul(p0,e),O=O+Math.imul(l0,d0)|0,A=Math.imul(l0,e),P=P+Math.imul(T0,b0)|0,O=O+Math.imul(T0,f0)|0,O=O+Math.imul(V0,b0)|0,A=A+Math.imul(V0,f0)|0,P=P+Math.imul(k0,a0)|0,O=O+Math.imul(k0,U$)|0,O=O+Math.imul(n0,a0)|0,A=A+Math.imul(n0,U$)|0,P=P+Math.imul(F0,K$)|0,O=O+Math.imul(F0,L$)|0,O=O+Math.imul(q0,K$)|0,A=A+Math.imul(q0,L$)|0,P=P+Math.imul(M0,Z$)|0,O=O+Math.imul(M0,I$)|0,O=O+Math.imul(z0,Z$)|0,A=A+Math.imul(z0,I$)|0;var B1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(B1>>>26)|0,B1&=67108863,P=Math.imul(p0,b0),O=Math.imul(p0,f0),O=O+Math.imul(l0,b0)|0,A=Math.imul(l0,f0),P=P+Math.imul(T0,a0)|0,O=O+Math.imul(T0,U$)|0,O=O+Math.imul(V0,a0)|0,A=A+Math.imul(V0,U$)|0,P=P+Math.imul(k0,K$)|0,O=O+Math.imul(k0,L$)|0,O=O+Math.imul(n0,K$)|0,A=A+Math.imul(n0,L$)|0,P=P+Math.imul(F0,Z$)|0,O=O+Math.imul(F0,I$)|0,O=O+Math.imul(q0,Z$)|0,A=A+Math.imul(q0,I$)|0;var f1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(f1>>>26)|0,f1&=67108863,P=Math.imul(p0,a0),O=Math.imul(p0,U$),O=O+Math.imul(l0,a0)|0,A=Math.imul(l0,U$),P=P+Math.imul(T0,K$)|0,O=O+Math.imul(T0,L$)|0,O=O+Math.imul(V0,K$)|0,A=A+Math.imul(V0,L$)|0,P=P+Math.imul(k0,Z$)|0,O=O+Math.imul(k0,I$)|0,O=O+Math.imul(n0,Z$)|0,A=A+Math.imul(n0,I$)|0;var c1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(c1>>>26)|0,c1&=67108863,P=Math.imul(p0,K$),O=Math.imul(p0,L$),O=O+Math.imul(l0,K$)|0,A=Math.imul(l0,L$),P=P+Math.imul(T0,Z$)|0,O=O+Math.imul(T0,I$)|0,O=O+Math.imul(V0,Z$)|0,A=A+Math.imul(V0,I$)|0;var j1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(j1>>>26)|0,j1&=67108863,P=Math.imul(p0,Z$),O=Math.imul(p0,I$),O=O+Math.imul(l0,Z$)|0,A=Math.imul(l0,I$);var v1=(q+P|0)+((O&8191)<<13)|0;if(q=(A+(O>>>13)|0)+(v1>>>26)|0,v1&=67108863,v[0]=I1,v[1]=C$,v[2]=g$,v[3]=z1,v[4]=U1,v[5]=o1,v[6]=t1,v[7]=r1,v[8]=a1,v[9]=s1,v[10]=Y1,v[11]=S1,v[12]=R1,v[13]=e1,v[14]=B1,v[15]=f1,v[16]=c1,v[17]=j1,v[18]=v1,q!==0)v[19]=q,F.length++;return F};if(!Math.imul)w=x;function y(Q,K,F){F.negative=K.negative^Q.negative,F.length=Q.length+K.length;var L=0,H=0;for(var v=0;v<F.length-1;v++){var q=H;H=0;var P=L&67108863,O=Math.min(v,K.length-1);for(var A=Math.max(0,v-Q.length+1);A<=O;A++){var k=v-A,j=Q.words[k]|0,h=K.words[A]|0,a=j*h,J0=a&67108863;q=q+(a/67108864|0)|0,J0=J0+P|0,P=J0&67108863,q=q+(J0>>>26)|0,H+=q>>>26,q&=67108863}F.words[v]=P,L=q,q=H}if(L!==0)F.words[v]=L;else F.length--;return F.strip()}function g(Q,K,F){var L=new b;return L.mulp(Q,K,F)}Y.prototype.mulTo=function(Q,K){var F,L=this.length+Q.length;if(this.length===10&&Q.length===10)F=w(this,Q,K);else if(L<63)F=x(this,Q,K);else if(L<1024)F=y(this,Q,K);else F=g(this,Q,K);return F};function b(Q,K){this.x=Q,this.y=K}b.prototype.makeRBT=function(Q){var K=Array(Q),F=Y.prototype._countBits(Q)-1;for(var L=0;L<Q;L++)K[L]=this.revBin(L,F,Q);return K},b.prototype.revBin=function(Q,K,F){if(Q===0||Q===F-1)return Q;var L=0;for(var H=0;H<K;H++)L|=(Q&1)<<K-H-1,Q>>=1;return L},b.prototype.permute=function(Q,K,F,L,H,v){for(var q=0;q<v;q++)L[q]=K[Q[q]],H[q]=F[Q[q]]},b.prototype.transform=function(Q,K,F,L,H,v){this.permute(v,Q,K,F,L,H);for(var q=1;q<H;q<<=1){var P=q<<1,O=Math.cos(2*Math.PI/P),A=Math.sin(2*Math.PI/P);for(var k=0;k<H;k+=P){var j=O,h=A;for(var a=0;a<q;a++){var J0=F[k+a],D0=L[k+a],O0=F[k+a+q],d=L[k+a+q],m=j*O0-h*d;if(d=j*d+h*O0,O0=m,F[k+a]=J0+O0,L[k+a]=D0+d,F[k+a+q]=J0-O0,L[k+a+q]=D0-d,a!==P)m=O*j-A*h,h=O*h+A*j,j=m}}}},b.prototype.guessLen13b=function(Q,K){var F=Math.max(K,Q)|1,L=F&1,H=0;for(F=F/2|0;F;F=F>>>1)H++;return 1<<H+1+L},b.prototype.conjugate=function(Q,K,F){if(F<=1)return;for(var L=0;L<F/2;L++){var H=Q[L];Q[L]=Q[F-L-1],Q[F-L-1]=H,H=K[L],K[L]=-K[F-L-1],K[F-L-1]=-H}},b.prototype.normalize13b=function(Q,K){var F=0;for(var L=0;L<K/2;L++){var H=Math.round(Q[2*L+1]/K)*8192+Math.round(Q[2*L]/K)+F;if(Q[L]=H&67108863,H<67108864)F=0;else F=H/67108864|0}return Q},b.prototype.convert13b=function(Q,K,F,L){var H=0;for(var v=0;v<K;v++)H=H+(Q[v]|0),F[2*v]=H&8191,H=H>>>13,F[2*v+1]=H&8191,H=H>>>13;for(v=2*K;v<L;++v)F[v]=0;_(H===0),_((H&-8192)===0)},b.prototype.stub=function(Q){var K=Array(Q);for(var F=0;F<Q;F++)K[F]=0;return K},b.prototype.mulp=function(Q,K,F){var L=2*this.guessLen13b(Q.length,K.length),H=this.makeRBT(L),v=this.stub(L),q=Array(L),P=Array(L),O=Array(L),A=Array(L),k=Array(L),j=Array(L),h=F.words;h.length=L,this.convert13b(Q.words,Q.length,q,L),this.convert13b(K.words,K.length,A,L),this.transform(q,v,P,O,L,H),this.transform(A,v,k,j,L,H);for(var a=0;a<L;a++){var J0=P[a]*k[a]-O[a]*j[a];O[a]=P[a]*j[a]+O[a]*k[a],P[a]=J0}return this.conjugate(P,O,L),this.transform(P,O,h,v,L,H),this.conjugate(h,v,L),this.normalize13b(h,L),F.negative=Q.negative^K.negative,F.length=Q.length+K.length,F.strip()},Y.prototype.mul=function(Q){var K=new Y(null);return K.words=Array(this.length+Q.length),this.mulTo(Q,K)},Y.prototype.mulf=function(Q){var K=new Y(null);return K.words=Array(this.length+Q.length),g(this,Q,K)},Y.prototype.imul=function(Q){return this.clone().mulTo(Q,this)},Y.prototype.imuln=function(Q){_(typeof Q==="number"),_(Q<67108864);var K=0;for(var F=0;F<this.length;F++){var L=(this.words[F]|0)*Q,H=(L&67108863)+(K&67108863);K>>=26,K+=L/67108864|0,K+=H>>>26,this.words[F]=H&67108863}if(K!==0)this.words[F]=K,this.length++;return this.length=Q===0?1:this.length,this},Y.prototype.muln=function(Q){return this.clone().imuln(Q)},Y.prototype.sqr=function(){return this.mul(this)},Y.prototype.isqr=function(){return this.imul(this.clone())},Y.prototype.pow=function(Q){var K=B(Q);if(K.length===0)return new Y(1);var F=this;for(var L=0;L<K.length;L++,F=F.sqr())if(K[L]!==0)break;if(++L<K.length)for(var H=F.sqr();L<K.length;L++,H=H.sqr()){if(K[L]===0)continue;F=F.mul(H)}return F},Y.prototype.iushln=function(Q){_(typeof Q==="number"&&Q>=0);var K=Q%26,F=(Q-K)/26,L=67108863>>>26-K<<26-K,H;if(K!==0){var v=0;for(H=0;H<this.length;H++){var q=this.words[H]&L,P=(this.words[H]|0)-q<<K;this.words[H]=P|v,v=q>>>26-K}if(v)this.words[H]=v,this.length++}if(F!==0){for(H=this.length-1;H>=0;H--)this.words[H+F]=this.words[H];for(H=0;H<F;H++)this.words[H]=0;this.length+=F}return this.strip()},Y.prototype.ishln=function(Q){return _(this.negative===0),this.iushln(Q)},Y.prototype.iushrn=function(Q,K,F){_(typeof Q==="number"&&Q>=0);var L;if(K)L=(K-K%26)/26;else L=0;var H=Q%26,v=Math.min((Q-H)/26,this.length),q=67108863^67108863>>>H<<H,P=F;if(L-=v,L=Math.max(0,L),P){for(var O=0;O<v;O++)P.words[O]=this.words[O];P.length=v}if(v===0);else if(this.length>v){this.length-=v;for(O=0;O<this.length;O++)this.words[O]=this.words[O+v]}else this.words[0]=0,this.length=1;var A=0;for(O=this.length-1;O>=0&&(A!==0||O>=L);O--){var k=this.words[O]|0;this.words[O]=A<<26-H|k>>>H,A=k&q}if(P&&A!==0)P.words[P.length++]=A;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},Y.prototype.ishrn=function(Q,K,F){return _(this.negative===0),this.iushrn(Q,K,F)},Y.prototype.shln=function(Q){return this.clone().ishln(Q)},Y.prototype.ushln=function(Q){return this.clone().iushln(Q)},Y.prototype.shrn=function(Q){return this.clone().ishrn(Q)},Y.prototype.ushrn=function(Q){return this.clone().iushrn(Q)},Y.prototype.testn=function(Q){_(typeof Q==="number"&&Q>=0);var K=Q%26,F=(Q-K)/26,L=1<<K;if(this.length<=F)return!1;var H=this.words[F];return!!(H&L)},Y.prototype.imaskn=function(Q){_(typeof Q==="number"&&Q>=0);var K=Q%26,F=(Q-K)/26;if(_(this.negative===0,"imaskn works only with positive numbers"),this.length<=F)return this;if(K!==0)F++;if(this.length=Math.min(F,this.length),K!==0){var L=67108863^67108863>>>K<<K;this.words[this.length-1]&=L}return this.strip()},Y.prototype.maskn=function(Q){return this.clone().imaskn(Q)},Y.prototype.iaddn=function(Q){if(_(typeof Q==="number"),_(Q<67108864),Q<0)return this.isubn(-Q);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<Q)return this.words[0]=Q-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(Q),this.negative=1,this}return this._iaddn(Q)},Y.prototype._iaddn=function(Q){this.words[0]+=Q;for(var K=0;K<this.length&&this.words[K]>=67108864;K++)if(this.words[K]-=67108864,K===this.length-1)this.words[K+1]=1;else this.words[K+1]++;return this.length=Math.max(this.length,K+1),this},Y.prototype.isubn=function(Q){if(_(typeof Q==="number"),_(Q<67108864),Q<0)return this.iaddn(-Q);if(this.negative!==0)return this.negative=0,this.iaddn(Q),this.negative=1,this;if(this.words[0]-=Q,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var K=0;K<this.length&&this.words[K]<0;K++)this.words[K]+=67108864,this.words[K+1]-=1;return this.strip()},Y.prototype.addn=function(Q){return this.clone().iaddn(Q)},Y.prototype.subn=function(Q){return this.clone().isubn(Q)},Y.prototype.iabs=function(){return this.negative=0,this},Y.prototype.abs=function(){return this.clone().iabs()},Y.prototype._ishlnsubmul=function(Q,K,F){var L=Q.length+F,H;this._expand(L);var v,q=0;for(H=0;H<Q.length;H++){v=(this.words[H+F]|0)+q;var P=(Q.words[H]|0)*K;v-=P&67108863,q=(v>>26)-(P/67108864|0),this.words[H+F]=v&67108863}for(;H<this.length-F;H++)v=(this.words[H+F]|0)+q,q=v>>26,this.words[H+F]=v&67108863;if(q===0)return this.strip();_(q===-1),q=0;for(H=0;H<this.length;H++)v=-(this.words[H]|0)+q,q=v>>26,this.words[H]=v&67108863;return this.negative=1,this.strip()},Y.prototype._wordDiv=function(Q,K){var F=this.length-Q.length,L=this.clone(),H=Q,v=H.words[H.length-1]|0,q=this._countBits(v);if(F=26-q,F!==0)H=H.ushln(F),L.iushln(F),v=H.words[H.length-1]|0;var P=L.length-H.length,O;if(K!=="mod"){O=new Y(null),O.length=P+1,O.words=Array(O.length);for(var A=0;A<O.length;A++)O.words[A]=0}var k=L.clone()._ishlnsubmul(H,1,P);if(k.negative===0){if(L=k,O)O.words[P]=1}for(var j=P-1;j>=0;j--){var h=(L.words[H.length+j]|0)*67108864+(L.words[H.length+j-1]|0);h=Math.min(h/v|0,67108863),L._ishlnsubmul(H,h,j);while(L.negative!==0)if(h--,L.negative=0,L._ishlnsubmul(H,1,j),!L.isZero())L.negative^=1;if(O)O.words[j]=h}if(O)O.strip();if(L.strip(),K!=="div"&&F!==0)L.iushrn(F);return{div:O||null,mod:L}},Y.prototype.divmod=function(Q,K,F){if(_(!Q.isZero()),this.isZero())return{div:new Y(0),mod:new Y(0)};var L,H,v;if(this.negative!==0&&Q.negative===0){if(v=this.neg().divmod(Q,K),K!=="mod")L=v.div.neg();if(K!=="div"){if(H=v.mod.neg(),F&&H.negative!==0)H.iadd(Q)}return{div:L,mod:H}}if(this.negative===0&&Q.negative!==0){if(v=this.divmod(Q.neg(),K),K!=="mod")L=v.div.neg();return{div:L,mod:v.mod}}if((this.negative&Q.negative)!==0){if(v=this.neg().divmod(Q.neg(),K),K!=="div"){if(H=v.mod.neg(),F&&H.negative!==0)H.isub(Q)}return{div:v.div,mod:H}}if(Q.length>this.length||this.cmp(Q)<0)return{div:new Y(0),mod:this};if(Q.length===1){if(K==="div")return{div:this.divn(Q.words[0]),mod:null};if(K==="mod")return{div:null,mod:new Y(this.modn(Q.words[0]))};return{div:this.divn(Q.words[0]),mod:new Y(this.modn(Q.words[0]))}}return this._wordDiv(Q,K)},Y.prototype.div=function(Q){return this.divmod(Q,"div",!1).div},Y.prototype.mod=function(Q){return this.divmod(Q,"mod",!1).mod},Y.prototype.umod=function(Q){return this.divmod(Q,"mod",!0).mod},Y.prototype.divRound=function(Q){var K=this.divmod(Q);if(K.mod.isZero())return K.div;var F=K.div.negative!==0?K.mod.isub(Q):K.mod,L=Q.ushrn(1),H=Q.andln(1),v=F.cmp(L);if(v<0||H===1&&v===0)return K.div;return K.div.negative!==0?K.div.isubn(1):K.div.iaddn(1)},Y.prototype.modn=function(Q){_(Q<=67108863);var K=67108864%Q,F=0;for(var L=this.length-1;L>=0;L--)F=(K*F+(this.words[L]|0))%Q;return F},Y.prototype.idivn=function(Q){_(Q<=67108863);var K=0;for(var F=this.length-1;F>=0;F--){var L=(this.words[F]|0)+K*67108864;this.words[F]=L/Q|0,K=L%Q}return this.strip()},Y.prototype.divn=function(Q){return this.clone().idivn(Q)},Y.prototype.egcd=function(Q){_(Q.negative===0),_(!Q.isZero());var K=this,F=Q.clone();if(K.negative!==0)K=K.umod(Q);else K=K.clone();var L=new Y(1),H=new Y(0),v=new Y(0),q=new Y(1),P=0;while(K.isEven()&&F.isEven())K.iushrn(1),F.iushrn(1),++P;var O=F.clone(),A=K.clone();while(!K.isZero()){for(var k=0,j=1;(K.words[0]&j)===0&&k<26;++k,j<<=1);if(k>0){K.iushrn(k);while(k-- >0){if(L.isOdd()||H.isOdd())L.iadd(O),H.isub(A);L.iushrn(1),H.iushrn(1)}}for(var h=0,a=1;(F.words[0]&a)===0&&h<26;++h,a<<=1);if(h>0){F.iushrn(h);while(h-- >0){if(v.isOdd()||q.isOdd())v.iadd(O),q.isub(A);v.iushrn(1),q.iushrn(1)}}if(K.cmp(F)>=0)K.isub(F),L.isub(v),H.isub(q);else F.isub(K),v.isub(L),q.isub(H)}return{a:v,b:q,gcd:F.iushln(P)}},Y.prototype._invmp=function(Q){_(Q.negative===0),_(!Q.isZero());var K=this,F=Q.clone();if(K.negative!==0)K=K.umod(Q);else K=K.clone();var L=new Y(1),H=new Y(0),v=F.clone();while(K.cmpn(1)>0&&F.cmpn(1)>0){for(var q=0,P=1;(K.words[0]&P)===0&&q<26;++q,P<<=1);if(q>0){K.iushrn(q);while(q-- >0){if(L.isOdd())L.iadd(v);L.iushrn(1)}}for(var O=0,A=1;(F.words[0]&A)===0&&O<26;++O,A<<=1);if(O>0){F.iushrn(O);while(O-- >0){if(H.isOdd())H.iadd(v);H.iushrn(1)}}if(K.cmp(F)>=0)K.isub(F),L.isub(H);else F.isub(K),H.isub(L)}var k;if(K.cmpn(1)===0)k=L;else k=H;if(k.cmpn(0)<0)k.iadd(Q);return k},Y.prototype.gcd=function(Q){if(this.isZero())return Q.abs();if(Q.isZero())return this.abs();var K=this.clone(),F=Q.clone();K.negative=0,F.negative=0;for(var L=0;K.isEven()&&F.isEven();L++)K.iushrn(1),F.iushrn(1);do{while(K.isEven())K.iushrn(1);while(F.isEven())F.iushrn(1);var H=K.cmp(F);if(H<0){var v=K;K=F,F=v}else if(H===0||F.cmpn(1)===0)break;K.isub(F)}while(!0);return F.iushln(L)},Y.prototype.invm=function(Q){return this.egcd(Q).a.umod(Q)},Y.prototype.isEven=function(){return(this.words[0]&1)===0},Y.prototype.isOdd=function(){return(this.words[0]&1)===1},Y.prototype.andln=function(Q){return this.words[0]&Q},Y.prototype.bincn=function(Q){_(typeof Q==="number");var K=Q%26,F=(Q-K)/26,L=1<<K;if(this.length<=F)return this._expand(F+1),this.words[F]|=L,this;var H=L;for(var v=F;H!==0&&v<this.length;v++){var q=this.words[v]|0;q+=H,H=q>>>26,q&=67108863,this.words[v]=q}if(H!==0)this.words[v]=H,this.length++;return this},Y.prototype.isZero=function(){return this.length===1&&this.words[0]===0},Y.prototype.cmpn=function(Q){var K=Q<0;if(this.negative!==0&&!K)return-1;if(this.negative===0&&K)return 1;this.strip();var F;if(this.length>1)F=1;else{if(K)Q=-Q;_(Q<=67108863,"Number is too big");var L=this.words[0]|0;F=L===Q?0:L<Q?-1:1}if(this.negative!==0)return-F|0;return F},Y.prototype.cmp=function(Q){if(this.negative!==0&&Q.negative===0)return-1;if(this.negative===0&&Q.negative!==0)return 1;var K=this.ucmp(Q);if(this.negative!==0)return-K|0;return K},Y.prototype.ucmp=function(Q){if(this.length>Q.length)return 1;if(this.length<Q.length)return-1;var K=0;for(var F=this.length-1;F>=0;F--){var L=this.words[F]|0,H=Q.words[F]|0;if(L===H)continue;if(L<H)K=-1;else if(L>H)K=1;break}return K},Y.prototype.gtn=function(Q){return this.cmpn(Q)===1},Y.prototype.gt=function(Q){return this.cmp(Q)===1},Y.prototype.gten=function(Q){return this.cmpn(Q)>=0},Y.prototype.gte=function(Q){return this.cmp(Q)>=0},Y.prototype.ltn=function(Q){return this.cmpn(Q)===-1},Y.prototype.lt=function(Q){return this.cmp(Q)===-1},Y.prototype.lten=function(Q){return this.cmpn(Q)<=0},Y.prototype.lte=function(Q){return this.cmp(Q)<=0},Y.prototype.eqn=function(Q){return this.cmpn(Q)===0},Y.prototype.eq=function(Q){return this.cmp(Q)===0},Y.red=function(Q){return new t(Q)},Y.prototype.toRed=function(Q){return _(!this.red,"Already a number in reduction context"),_(this.negative===0,"red works only with positives"),Q.convertTo(this)._forceRed(Q)},Y.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},Y.prototype._forceRed=function(Q){return this.red=Q,this},Y.prototype.forceRed=function(Q){return _(!this.red,"Already a number in reduction context"),this._forceRed(Q)},Y.prototype.redAdd=function(Q){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,Q)},Y.prototype.redIAdd=function(Q){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Q)},Y.prototype.redSub=function(Q){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,Q)},Y.prototype.redISub=function(Q){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,Q)},Y.prototype.redShl=function(Q){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,Q)},Y.prototype.redMul=function(Q){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,Q),this.red.mul(this,Q)},Y.prototype.redIMul=function(Q){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,Q),this.red.imul(this,Q)},Y.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},Y.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},Y.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},Y.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},Y.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},Y.prototype.redPow=function(Q){return _(this.red&&!Q.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Q)};var l={k256:null,p224:null,p192:null,p25519:null};function i(Q,K){this.name=Q,this.p=new Y(K,16),this.n=this.p.bitLength(),this.k=new Y(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}i.prototype._tmp=function(){var Q=new Y(null);return Q.words=Array(Math.ceil(this.n/13)),Q},i.prototype.ireduce=function(Q){var K=Q,F;do this.split(K,this.tmp),K=this.imulK(K),K=K.iadd(this.tmp),F=K.bitLength();while(F>this.n);var L=F<this.n?-1:K.ucmp(this.p);if(L===0)K.words[0]=0,K.length=1;else if(L>0)K.isub(this.p);else if(K.strip!==void 0)K.strip();else K._strip();return K},i.prototype.split=function(Q,K){Q.iushrn(this.n,0,K)},i.prototype.imulK=function(Q){return Q.imul(this.k)};function $0(){i.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}J($0,i),$0.prototype.split=function(Q,K){var F=4194303,L=Math.min(Q.length,9);for(var H=0;H<L;H++)K.words[H]=Q.words[H];if(K.length=L,Q.length<=9){Q.words[0]=0,Q.length=1;return}var v=Q.words[9];K.words[K.length++]=v&F;for(H=10;H<Q.length;H++){var q=Q.words[H]|0;Q.words[H-10]=(q&F)<<4|v>>>22,v=q}if(v>>>=22,Q.words[H-10]=v,v===0&&Q.length>10)Q.length-=10;else Q.length-=9},$0.prototype.imulK=function(Q){Q.words[Q.length]=0,Q.words[Q.length+1]=0,Q.length+=2;var K=0;for(var F=0;F<Q.length;F++){var L=Q.words[F]|0;K+=L*977,Q.words[F]=K&67108863,K=L*64+(K/67108864|0)}if(Q.words[Q.length-1]===0){if(Q.length--,Q.words[Q.length-1]===0)Q.length--}return Q};function Q0(){i.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}J(Q0,i);function G0(){i.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}J(G0,i);function K0(){i.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}J(K0,i),K0.prototype.imulK=function(Q){var K=0;for(var F=0;F<Q.length;F++){var L=(Q.words[F]|0)*19+K,H=L&67108863;L>>>=26,Q.words[F]=H,K=L}if(K!==0)Q.words[Q.length++]=K;return Q},Y._prime=function(Q){if(l[Q])return l[Q];var K;if(Q==="k256")K=new $0;else if(Q==="p224")K=new Q0;else if(Q==="p192")K=new G0;else if(Q==="p25519")K=new K0;else throw Error("Unknown prime "+Q);return l[Q]=K,K};function t(Q){if(typeof Q==="string"){var K=Y._prime(Q);this.m=K.p,this.prime=K}else _(Q.gtn(1),"modulus must be greater than 1"),this.m=Q,this.prime=null}t.prototype._verify1=function(Q){_(Q.negative===0,"red works only with positives"),_(Q.red,"red works only with red numbers")},t.prototype._verify2=function(Q,K){_((Q.negative|K.negative)===0,"red works only with positives"),_(Q.red&&Q.red===K.red,"red works only with red numbers")},t.prototype.imod=function(Q){if(this.prime)return this.prime.ireduce(Q)._forceRed(this);return Q.umod(this.m)._forceRed(this)},t.prototype.neg=function(Q){if(Q.isZero())return Q.clone();return this.m.sub(Q)._forceRed(this)},t.prototype.add=function(Q,K){this._verify2(Q,K);var F=Q.add(K);if(F.cmp(this.m)>=0)F.isub(this.m);return F._forceRed(this)},t.prototype.iadd=function(Q,K){this._verify2(Q,K);var F=Q.iadd(K);if(F.cmp(this.m)>=0)F.isub(this.m);return F},t.prototype.sub=function(Q,K){this._verify2(Q,K);var F=Q.sub(K);if(F.cmpn(0)<0)F.iadd(this.m);return F._forceRed(this)},t.prototype.isub=function(Q,K){this._verify2(Q,K);var F=Q.isub(K);if(F.cmpn(0)<0)F.iadd(this.m);return F},t.prototype.shl=function(Q,K){return this._verify1(Q),this.imod(Q.ushln(K))},t.prototype.imul=function(Q,K){return this._verify2(Q,K),this.imod(Q.imul(K))},t.prototype.mul=function(Q,K){return this._verify2(Q,K),this.imod(Q.mul(K))},t.prototype.isqr=function(Q){return this.imul(Q,Q.clone())},t.prototype.sqr=function(Q){return this.mul(Q,Q)},t.prototype.sqrt=function(Q){if(Q.isZero())return Q.clone();var K=this.m.andln(3);if(_(K%2===1),K===3){var F=this.m.add(new Y(1)).iushrn(2);return this.pow(Q,F)}var L=this.m.subn(1),H=0;while(!L.isZero()&&L.andln(1)===0)H++,L.iushrn(1);_(!L.isZero());var v=new Y(1).toRed(this),q=v.redNeg(),P=this.m.subn(1).iushrn(1),O=this.m.bitLength();O=new Y(2*O*O).toRed(this);while(this.pow(O,P).cmp(q)!==0)O.redIAdd(q);var A=this.pow(O,L),k=this.pow(Q,L.addn(1).iushrn(1)),j=this.pow(Q,L),h=H;while(j.cmp(v)!==0){var a=j;for(var J0=0;a.cmp(v)!==0;J0++)a=a.redSqr();_(J0<h);var D0=this.pow(A,new Y(1).iushln(h-J0-1));k=k.redMul(D0),A=D0.redSqr(),j=j.redMul(A),h=J0}return k},t.prototype.invm=function(Q){var K=Q._invmp(this.m);if(K.negative!==0)return K.negative=0,this.imod(K).redNeg();else return this.imod(K)},t.prototype.pow=function(Q,K){if(K.isZero())return new Y(1).toRed(this);if(K.cmpn(1)===0)return Q.clone();var F=4,L=Array(1<<F);L[0]=new Y(1).toRed(this),L[1]=Q;for(var H=2;H<L.length;H++)L[H]=this.mul(L[H-1],Q);var v=L[0],q=0,P=0,O=K.bitLength()%26;if(O===0)O=26;for(H=K.length-1;H>=0;H--){var A=K.words[H];for(var k=O-1;k>=0;k--){var j=A>>k&1;if(v!==L[0])v=this.sqr(v);if(j===0&&q===0){P=0;continue}if(q<<=1,q|=j,P++,P!==F&&(H!==0||k!==0))continue;v=this.mul(v,L[q]),P=0,q=0}O=26}return v},t.prototype.convertTo=function(Q){var K=Q.umod(this.m);return K===Q?K.clone():K},t.prototype.convertFrom=function(Q){var K=Q.clone();return K.red=null,K},Y.mont=function(Q){return new P0(Q)};function P0(Q){if(t.call(this,Q),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new Y(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}J(P0,t),P0.prototype.convertTo=function(Q){return this.imod(Q.ushln(this.shift))},P0.prototype.convertFrom=function(Q){var K=this.imod(Q.mul(this.rinv));return K.red=null,K},P0.prototype.imul=function(Q,K){if(Q.isZero()||K.isZero())return Q.words[0]=0,Q.length=1,Q;var F=Q.imul(K),L=F.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),H=F.isub(L).iushrn(this.shift),v=H;if(H.cmp(this.m)>=0)v=H.isub(this.m);else if(H.cmpn(0)<0)v=H.iadd(this.m);return v._forceRed(this)},P0.prototype.mul=function(Q,K){if(Q.isZero()||K.isZero())return new Y(0)._forceRed(this);var F=Q.mul(K),L=F.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),H=F.isub(L).iushrn(this.shift),v=H;if(H.cmp(this.m)>=0)v=H.isub(this.m);else if(H.cmpn(0)<0)v=H.iadd(this.m);return v._forceRed(this)},P0.prototype.invm=function(Q){var K=this.imod(Q._invmp(this.m).mul(this.r2));return K._forceRed(this)}})(typeof I>"u"||I,$)}),_n=$$(($)=>{var I=oJ(),G=B6(),Z=$;Z.define=function(J,Y){return new _(J,Y)};function _(J,Y){this.name=J,this.body=Y,this.decoders={},this.encoders={}}_.prototype._createNamed=function(J){var Y;try{Y=(()=>{throw new Error("Cannot require module "+"vm");})().runInThisContext("(function "+this.name+`(entity) {
|
|
241
|
-
this._initNamed(entity);
|
|
242
|
-
})`)}catch(W){Y=function(R){this._initNamed(R)}}return G(Y,J),Y.prototype._initNamed=function(W){J.call(this,W)},new Y(this)},_.prototype._getDecoder=function(J){if(J=J||"der",!this.decoders.hasOwnProperty(J))this.decoders[J]=this._createNamed(I.decoders[J]);return this.decoders[J]},_.prototype.decode=function(J,Y,W){return this._getDecoder(Y).decode(J,W)},_.prototype._getEncoder=function(J){if(J=J||"der",!this.encoders.hasOwnProperty(J))this.encoders[J]=this._createNamed(I.encoders[J]);return this.encoders[J]},_.prototype.encode=function(J,Y,W){return this._getEncoder(Y).encode(J,W)}}),Xn=$$(($)=>{var I=B6();function G(_){this._reporterState={obj:null,path:[],options:_||{},errors:[]}}$.Reporter=G,G.prototype.isError=function(_){return _ instanceof Z},G.prototype.save=function(){var _=this._reporterState;return{obj:_.obj,pathLen:_.path.length}},G.prototype.restore=function(_){var J=this._reporterState;J.obj=_.obj,J.path=J.path.slice(0,_.pathLen)},G.prototype.enterKey=function(_){return this._reporterState.path.push(_)},G.prototype.exitKey=function(_){var J=this._reporterState;J.path=J.path.slice(0,_-1)},G.prototype.leaveKey=function(_,J,Y){var W=this._reporterState;if(this.exitKey(_),W.obj!==null)W.obj[J]=Y},G.prototype.path=function(){return this._reporterState.path.join("/")},G.prototype.enterObject=function(){var _=this._reporterState,J=_.obj;return _.obj={},J},G.prototype.leaveObject=function(_){var J=this._reporterState,Y=J.obj;return J.obj=_,Y},G.prototype.error=function(_){var J,Y=this._reporterState,W=_ instanceof Z;if(W)J=_;else J=new Z(Y.path.map(function(R){return"["+JSON.stringify(R)+"]"}).join(""),_.message||_,_.stack);if(!Y.options.partial)throw J;if(!W)Y.errors.push(J);return J},G.prototype.wrapResult=function(_){var J=this._reporterState;if(!J.options.partial)return _;return{result:this.isError(_)?null:_,errors:J.errors}};function Z(_,J){this.path=_,this.rethrow(J)}I(Z,Error),Z.prototype.rethrow=function(_){if(this.message=_+" at: "+(this.path||"(shallow)"),Error.captureStackTrace)Error.captureStackTrace(this,Z);if(!this.stack)try{throw Error(this.message)}catch(J){this.stack=J.stack}return this}}),NN=$$(($)=>{var I=B6(),G=cJ().Reporter,Z=(u1(),V$(h1)).Buffer;function _(Y,W){if(G.call(this,W),!Z.isBuffer(Y)){this.error("Input not Buffer");return}this.base=Y,this.offset=0,this.length=Y.length}I(_,G),$.DecoderBuffer=_,_.prototype.save=function(){return{offset:this.offset,reporter:G.prototype.save.call(this)}},_.prototype.restore=function(Y){var W=new _(this.base);return W.offset=Y.offset,W.length=this.offset,this.offset=Y.offset,G.prototype.restore.call(this,Y.reporter),W},_.prototype.isEmpty=function(){return this.offset===this.length},_.prototype.readUInt8=function(Y){if(this.offset+1<=this.length)return this.base.readUInt8(this.offset++,!0);else return this.error(Y||"DecoderBuffer overrun")},_.prototype.skip=function(Y,W){if(!(this.offset+Y<=this.length))return this.error(W||"DecoderBuffer overrun");var R=new _(this.base);return R._reporterState=this._reporterState,R.offset=this.offset,R.length=this.offset+Y,this.offset+=Y,R},_.prototype.raw=function(Y){return this.base.slice(Y?Y.offset:this.offset,this.length)};function J(Y,W){if(Array.isArray(Y))this.length=0,this.value=Y.map(function(R){if(!(R instanceof J))R=new J(R,W);return this.length+=R.length,R},this);else if(typeof Y==="number"){if(!(0<=Y&&Y<=255))return W.error("non-byte EncoderBuffer value");this.value=Y,this.length=1}else if(typeof Y==="string")this.value=Y,this.length=Z.byteLength(Y);else if(Z.isBuffer(Y))this.value=Y,this.length=Y.length;else return W.error("Unsupported type: "+typeof Y)}$.EncoderBuffer=J,J.prototype.join=function(Y,W){if(!Y)Y=new Z(this.length);if(!W)W=0;if(this.length===0)return Y;if(Array.isArray(this.value))this.value.forEach(function(R){R.join(Y,W),W+=R.length});else{if(typeof this.value==="number")Y[W]=this.value;else if(typeof this.value==="string")Y.write(this.value,W);else if(Z.isBuffer(this.value))this.value.copy(Y,W);W+=this.length}return Y}}),Gn=$$(($,I)=>{var G=cJ().Reporter,Z=cJ().EncoderBuffer,_=cJ().DecoderBuffer,J=B2(),Y=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],W=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(Y),R=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function M(T,S){var N={};if(this._baseState=N,N.enc=T,N.parent=S||null,N.children=null,N.tag=null,N.args=null,N.reverseArgs=null,N.choice=null,N.optional=!1,N.any=!1,N.obj=!1,N.use=null,N.useDecoder=null,N.key=null,N.default=null,N.explicit=null,N.implicit=null,N.contains=null,!N.parent)N.children=[],this._wrap()}I.exports=M;var E=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];M.prototype.clone=function(){var T=this._baseState,S={};E.forEach(function(B){S[B]=T[B]});var N=new this.constructor(S.parent);return N._baseState=S,N},M.prototype._wrap=function(){var T=this._baseState;W.forEach(function(S){this[S]=function(){var N=new this.constructor(this);return T.children.push(N),N[S].apply(N,arguments)}},this)},M.prototype._init=function(T){var S=this._baseState;J(S.parent===null),T.call(this),S.children=S.children.filter(function(N){return N._baseState.parent===this},this),J.equal(S.children.length,1,"Root node can have only one child")},M.prototype._useArgs=function(T){var S=this._baseState,N=T.filter(function(B){return B instanceof this.constructor},this);if(T=T.filter(function(B){return!(B instanceof this.constructor)},this),N.length!==0)J(S.children===null),S.children=N,N.forEach(function(B){B._baseState.parent=this},this);if(T.length!==0)J(S.args===null),S.args=T,S.reverseArgs=T.map(function(B){if(typeof B!=="object"||B.constructor!==Object)return B;var x={};return Object.keys(B).forEach(function(w){if(w==(w|0))w|=0;var y=B[w];x[y]=w}),x})},R.forEach(function(T){M.prototype[T]=function(){var S=this._baseState;throw Error(T+" not implemented for encoding: "+S.enc)}}),Y.forEach(function(T){M.prototype[T]=function(){var S=this._baseState,N=Array.prototype.slice.call(arguments);return J(S.tag===null),S.tag=T,this._useArgs(N),this}}),M.prototype.use=function(T){J(T);var S=this._baseState;return J(S.use===null),S.use=T,this},M.prototype.optional=function(){var T=this._baseState;return T.optional=!0,this},M.prototype.def=function(T){var S=this._baseState;return J(S.default===null),S.default=T,S.optional=!0,this},M.prototype.explicit=function(T){var S=this._baseState;return J(S.explicit===null&&S.implicit===null),S.explicit=T,this},M.prototype.implicit=function(T){var S=this._baseState;return J(S.explicit===null&&S.implicit===null),S.implicit=T,this},M.prototype.obj=function(){var T=this._baseState,S=Array.prototype.slice.call(arguments);if(T.obj=!0,S.length!==0)this._useArgs(S);return this},M.prototype.key=function(T){var S=this._baseState;return J(S.key===null),S.key=T,this},M.prototype.any=function(){var T=this._baseState;return T.any=!0,this},M.prototype.choice=function(T){var S=this._baseState;return J(S.choice===null),S.choice=T,this._useArgs(Object.keys(T).map(function(N){return T[N]})),this},M.prototype.contains=function(T){var S=this._baseState;return J(S.use===null),S.contains=T,this},M.prototype._decode=function(T,S){var N=this._baseState;if(N.parent===null)return T.wrapResult(N.children[0]._decode(T,S));var B=N.default,x=!0,w=null;if(N.key!==null)w=T.enterKey(N.key);if(N.optional){var y=null;if(N.explicit!==null)y=N.explicit;else if(N.implicit!==null)y=N.implicit;else if(N.tag!==null)y=N.tag;if(y===null&&!N.any){var g=T.save();try{if(N.choice===null)this._decodeGeneric(N.tag,T,S);else this._decodeChoice(T,S);x=!0}catch(G0){x=!1}T.restore(g)}else if(x=this._peekTag(T,y,N.any),T.isError(x))return x}var b;if(N.obj&&x)b=T.enterObject();if(x){if(N.explicit!==null){var l=this._decodeTag(T,N.explicit);if(T.isError(l))return l;T=l}var i=T.offset;if(N.use===null&&N.choice===null){if(N.any)var g=T.save();var $0=this._decodeTag(T,N.implicit!==null?N.implicit:N.tag,N.any);if(T.isError($0))return $0;if(N.any)B=T.raw(g);else T=$0}if(S&&S.track&&N.tag!==null)S.track(T.path(),i,T.length,"tagged");if(S&&S.track&&N.tag!==null)S.track(T.path(),T.offset,T.length,"content");if(N.any)B=B;else if(N.choice===null)B=this._decodeGeneric(N.tag,T,S);else B=this._decodeChoice(T,S);if(T.isError(B))return B;if(!N.any&&N.choice===null&&N.children!==null)N.children.forEach(function(G0){G0._decode(T,S)});if(N.contains&&(N.tag==="octstr"||N.tag==="bitstr")){var Q0=new _(B);B=this._getUse(N.contains,T._reporterState.obj)._decode(Q0,S)}}if(N.obj&&x)B=T.leaveObject(b);if(N.key!==null&&(B!==null||x===!0))T.leaveKey(w,N.key,B);else if(w!==null)T.exitKey(w);return B},M.prototype._decodeGeneric=function(T,S,N){var B=this._baseState;if(T==="seq"||T==="set")return null;if(T==="seqof"||T==="setof")return this._decodeList(S,T,B.args[0],N);else if(/str$/.test(T))return this._decodeStr(S,T,N);else if(T==="objid"&&B.args)return this._decodeObjid(S,B.args[0],B.args[1],N);else if(T==="objid")return this._decodeObjid(S,null,null,N);else if(T==="gentime"||T==="utctime")return this._decodeTime(S,T,N);else if(T==="null_")return this._decodeNull(S,N);else if(T==="bool")return this._decodeBool(S,N);else if(T==="objDesc")return this._decodeStr(S,T,N);else if(T==="int"||T==="enum")return this._decodeInt(S,B.args&&B.args[0],N);if(B.use!==null)return this._getUse(B.use,S._reporterState.obj)._decode(S,N);else return S.error("unknown tag: "+T)},M.prototype._getUse=function(T,S){var N=this._baseState;if(N.useDecoder=this._use(T,S),J(N.useDecoder._baseState.parent===null),N.useDecoder=N.useDecoder._baseState.children[0],N.implicit!==N.useDecoder._baseState.implicit)N.useDecoder=N.useDecoder.clone(),N.useDecoder._baseState.implicit=N.implicit;return N.useDecoder},M.prototype._decodeChoice=function(T,S){var N=this._baseState,B=null,x=!1;if(Object.keys(N.choice).some(function(w){var y=T.save(),g=N.choice[w];try{var b=g._decode(T,S);if(T.isError(b))return!1;B={type:w,value:b},x=!0}catch(l){return T.restore(y),!1}return!0},this),!x)return T.error("Choice not matched");return B},M.prototype._createEncoderBuffer=function(T){return new Z(T,this.reporter)},M.prototype._encode=function(T,S,N){var B=this._baseState;if(B.default!==null&&B.default===T)return;var x=this._encodeValue(T,S,N);if(x===void 0)return;if(this._skipDefault(x,S,N))return;return x},M.prototype._encodeValue=function(T,S,N){var B=this._baseState;if(B.parent===null)return B.children[0]._encode(T,S||new G);var g=null;if(this.reporter=S,B.optional&&T===void 0)if(B.default!==null)T=B.default;else return;var x=null,w=!1;if(B.any)g=this._createEncoderBuffer(T);else if(B.choice)g=this._encodeChoice(T,S);else if(B.contains)x=this._getUse(B.contains,N)._encode(T,S),w=!0;else if(B.children)x=B.children.map(function(i){if(i._baseState.tag==="null_")return i._encode(null,S,T);if(i._baseState.key===null)return S.error("Child should have a key");var $0=S.enterKey(i._baseState.key);if(typeof T!=="object")return S.error("Child expected, but input is not object");var Q0=i._encode(T[i._baseState.key],S,T);return S.leaveKey($0),Q0},this).filter(function(i){return i}),x=this._createEncoderBuffer(x);else if(B.tag==="seqof"||B.tag==="setof"){if(!(B.args&&B.args.length===1))return S.error("Too many args for : "+B.tag);if(!Array.isArray(T))return S.error("seqof/setof, but data is not Array");var y=this.clone();y._baseState.implicit=null,x=this._createEncoderBuffer(T.map(function(i){var $0=this._baseState;return this._getUse($0.args[0],T)._encode(i,S)},y))}else if(B.use!==null)g=this._getUse(B.use,N)._encode(T,S);else x=this._encodePrimitive(B.tag,T),w=!0;var g;if(!B.any&&B.choice===null){var b=B.implicit!==null?B.implicit:B.tag,l=B.implicit===null?"universal":"context";if(b===null){if(B.use===null)S.error("Tag could be omitted only for .use()")}else if(B.use===null)g=this._encodeComposite(b,w,l,x)}if(B.explicit!==null)g=this._encodeComposite(B.explicit,!1,"context",g);return g},M.prototype._encodeChoice=function(T,S){var N=this._baseState,B=N.choice[T.type];if(!B)J(!1,T.type+" not found in "+JSON.stringify(Object.keys(N.choice)));return B._encode(T.value,S)},M.prototype._encodePrimitive=function(T,S){var N=this._baseState;if(/str$/.test(T))return this._encodeStr(S,T);else if(T==="objid"&&N.args)return this._encodeObjid(S,N.reverseArgs[0],N.args[1]);else if(T==="objid")return this._encodeObjid(S,null,null);else if(T==="gentime"||T==="utctime")return this._encodeTime(S,T);else if(T==="null_")return this._encodeNull();else if(T==="int"||T==="enum")return this._encodeInt(S,N.args&&N.reverseArgs[0]);else if(T==="bool")return this._encodeBool(S);else if(T==="objDesc")return this._encodeStr(S,T);else throw Error("Unsupported tag: "+T)},M.prototype._isNumstr=function(T){return/^[0-9 ]*$/.test(T)},M.prototype._isPrintstr=function(T){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(T)}}),cJ=$$(($)=>{var I=$;I.Reporter=Xn().Reporter,I.DecoderBuffer=NN().DecoderBuffer,I.EncoderBuffer=NN().EncoderBuffer,I.Node=Gn()}),Yn=$$(($)=>{var I=oN();$.tagClass={0:"universal",1:"application",2:"context",3:"private"},$.tagClassByName=I._reverse($.tagClass),$.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},$.tagByName=I._reverse($.tag)}),oN=$$(($)=>{var I=$;I._reverse=function(G){var Z={};return Object.keys(G).forEach(function(_){if((_|0)==_)_=_|0;var J=G[_];Z[J]=_}),Z},I.der=Yn()}),tN=$$(($,I)=>{var G=B6(),Z=oJ(),_=Z.base,J=Z.bignum,Y=Z.constants.der;function W(T){this.enc="der",this.name=T.name,this.entity=T,this.tree=new R,this.tree._init(T.body)}I.exports=W,W.prototype.decode=function(T,S){if(!(T instanceof _.DecoderBuffer))T=new _.DecoderBuffer(T,S);return this.tree._decode(T,S)};function R(T){_.Node.call(this,"der",T)}G(R,_.Node),R.prototype._peekTag=function(T,S,N){if(T.isEmpty())return!1;var B=T.save(),x=M(T,'Failed to peek tag: "'+S+'"');if(T.isError(x))return x;return T.restore(B),x.tag===S||x.tagStr===S||x.tagStr+"of"===S||N},R.prototype._decodeTag=function(T,S,N){var B=M(T,'Failed to decode tag of "'+S+'"');if(T.isError(B))return B;var x=E(T,B.primitive,'Failed to get length of "'+S+'"');if(T.isError(x))return x;if(!N&&B.tag!==S&&B.tagStr!==S&&B.tagStr+"of"!==S)return T.error('Failed to match tag: "'+S+'"');if(B.primitive||x!==null)return T.skip(x,'Failed to match body of: "'+S+'"');var w=T.save(),y=this._skipUntilEnd(T,'Failed to skip indefinite length body: "'+this.tag+'"');if(T.isError(y))return y;return x=T.offset-w.offset,T.restore(w),T.skip(x,'Failed to match body of: "'+S+'"')},R.prototype._skipUntilEnd=function(T,S){while(!0){var N=M(T,S);if(T.isError(N))return N;var B=E(T,N.primitive,S);if(T.isError(B))return B;var x;if(N.primitive||B!==null)x=T.skip(B);else x=this._skipUntilEnd(T,S);if(T.isError(x))return x;if(N.tagStr==="end")break}},R.prototype._decodeList=function(T,S,N,B){var x=[];while(!T.isEmpty()){var w=this._peekTag(T,"end");if(T.isError(w))return w;var y=N.decode(T,"der",B);if(T.isError(y)&&w)break;x.push(y)}return x},R.prototype._decodeStr=function(T,S){if(S==="bitstr"){var N=T.readUInt8();if(T.isError(N))return N;return{unused:N,data:T.raw()}}else if(S==="bmpstr"){var B=T.raw();if(B.length%2===1)return T.error("Decoding of string type: bmpstr length mismatch");var x="";for(var w=0;w<B.length/2;w++)x+=String.fromCharCode(B.readUInt16BE(w*2));return x}else if(S==="numstr"){var y=T.raw().toString("ascii");if(!this._isNumstr(y))return T.error("Decoding of string type: numstr unsupported characters");return y}else if(S==="octstr")return T.raw();else if(S==="objDesc")return T.raw();else if(S==="printstr"){var g=T.raw().toString("ascii");if(!this._isPrintstr(g))return T.error("Decoding of string type: printstr unsupported characters");return g}else if(/str$/.test(S))return T.raw().toString();else return T.error("Decoding of string type: "+S+" unsupported")},R.prototype._decodeObjid=function(T,S,N){var B,x=[],w=0;while(!T.isEmpty()){var y=T.readUInt8();if(w<<=7,w|=y&127,(y&128)===0)x.push(w),w=0}if(y&128)x.push(w);var g=x[0]/40|0,b=x[0]%40;if(N)B=x;else B=[g,b].concat(x.slice(1));if(S){var l=S[B.join(" ")];if(l===void 0)l=S[B.join(".")];if(l!==void 0)B=l}return B},R.prototype._decodeTime=function(T,S){var N=T.raw().toString();if(S==="gentime")var B=N.slice(0,4)|0,x=N.slice(4,6)|0,w=N.slice(6,8)|0,y=N.slice(8,10)|0,g=N.slice(10,12)|0,b=N.slice(12,14)|0;else if(S==="utctime"){var B=N.slice(0,2)|0,x=N.slice(2,4)|0,w=N.slice(4,6)|0,y=N.slice(6,8)|0,g=N.slice(8,10)|0,b=N.slice(10,12)|0;if(B<70)B=2000+B;else B=1900+B}else return T.error("Decoding "+S+" time is not supported yet");return Date.UTC(B,x-1,w,y,g,b,0)},R.prototype._decodeNull=function(T){return null},R.prototype._decodeBool=function(T){var S=T.readUInt8();if(T.isError(S))return S;else return S!==0},R.prototype._decodeInt=function(T,S){var N=T.raw(),B=new J(N);if(S)B=S[B.toString(10)]||B;return B},R.prototype._use=function(T,S){if(typeof T==="function")T=T(S);return T._getDecoder("der").tree};function M(T,S){var N=T.readUInt8(S);if(T.isError(N))return N;var B=Y.tagClass[N>>6],x=(N&32)===0;if((N&31)===31){var w=N;N=0;while((w&128)===128){if(w=T.readUInt8(S),T.isError(w))return w;N<<=7,N|=w&127}}else N&=31;var y=Y.tag[N];return{cls:B,primitive:x,tag:N,tagStr:y}}function E(T,S,N){var B=T.readUInt8(N);if(T.isError(B))return B;if(!S&&B===128)return null;if((B&128)===0)return B;var x=B&127;if(x>4)return T.error("length octect is too long");B=0;for(var w=0;w<x;w++){B<<=8;var y=T.readUInt8(N);if(T.isError(y))return y;B|=y}return B}}),Jn=$$(($,I)=>{var G=B6(),Z=(u1(),V$(h1)).Buffer,_=tN();function J(Y){_.call(this,Y),this.enc="pem"}G(J,_),I.exports=J,J.prototype.decode=function(Y,W){var R=Y.toString().split(/[\r\n]+/g),M=W.label.toUpperCase(),E=/^-----(BEGIN|END) ([^-]+)-----$/,T=-1,S=-1;for(var N=0;N<R.length;N++){var B=R[N].match(E);if(B===null)continue;if(B[2]!==M)continue;if(T===-1){if(B[1]!=="BEGIN")break;T=N}else{if(B[1]!=="END")break;S=N;break}}if(T===-1||S===-1)throw Error("PEM section not found for: "+M);var x=R.slice(T+1,S).join("");x.replace(/[^a-z0-9\+\/=]+/gi,"");var w=new Z(x,"base64");return _.prototype.decode.call(this,w,W)}}),Qn=$$(($)=>{var I=$;I.der=tN(),I.pem=Jn()}),rN=$$(($,I)=>{var G=B6(),Z=(u1(),V$(h1)).Buffer,_=oJ(),J=_.base,Y=_.constants.der;function W(T){this.enc="der",this.name=T.name,this.entity=T,this.tree=new R,this.tree._init(T.body)}I.exports=W,W.prototype.encode=function(T,S){return this.tree._encode(T,S).join()};function R(T){J.Node.call(this,"der",T)}G(R,J.Node),R.prototype._encodeComposite=function(T,S,N,B){var x=E(T,S,N,this.reporter);if(B.length<128){var g=new Z(2);return g[0]=x,g[1]=B.length,this._createEncoderBuffer([g,B])}var w=1;for(var y=B.length;y>=256;y>>=8)w++;var g=new Z(2+w);g[0]=x,g[1]=128|w;for(var y=1+w,b=B.length;b>0;y--,b>>=8)g[y]=b&255;return this._createEncoderBuffer([g,B])},R.prototype._encodeStr=function(T,S){if(S==="bitstr")return this._createEncoderBuffer([T.unused|0,T.data]);else if(S==="bmpstr"){var N=new Z(T.length*2);for(var B=0;B<T.length;B++)N.writeUInt16BE(T.charCodeAt(B),B*2);return this._createEncoderBuffer(N)}else if(S==="numstr"){if(!this._isNumstr(T))return this.reporter.error("Encoding of string type: numstr supports only digits and space");return this._createEncoderBuffer(T)}else if(S==="printstr"){if(!this._isPrintstr(T))return this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark");return this._createEncoderBuffer(T)}else if(/str$/.test(S))return this._createEncoderBuffer(T);else if(S==="objDesc")return this._createEncoderBuffer(T);else return this.reporter.error("Encoding of string type: "+S+" unsupported")},R.prototype._encodeObjid=function(T,S,N){if(typeof T==="string"){if(!S)return this.reporter.error("string objid given, but no values map found");if(!S.hasOwnProperty(T))return this.reporter.error("objid not found in values map");T=S[T].split(/[\s\.]+/g);for(var B=0;B<T.length;B++)T[B]|=0}else if(Array.isArray(T)){T=T.slice();for(var B=0;B<T.length;B++)T[B]|=0}if(!Array.isArray(T))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(T));if(!N){if(T[1]>=40)return this.reporter.error("Second objid identifier OOB");T.splice(0,2,T[0]*40+T[1])}var x=0;for(var B=0;B<T.length;B++){var w=T[B];for(x++;w>=128;w>>=7)x++}var y=new Z(x),g=y.length-1;for(var B=T.length-1;B>=0;B--){var w=T[B];y[g--]=w&127;while((w>>=7)>0)y[g--]=128|w&127}return this._createEncoderBuffer(y)};function M(T){if(T<10)return"0"+T;else return T}R.prototype._encodeTime=function(T,S){var N,B=new Date(T);if(S==="gentime")N=[M(B.getFullYear()),M(B.getUTCMonth()+1),M(B.getUTCDate()),M(B.getUTCHours()),M(B.getUTCMinutes()),M(B.getUTCSeconds()),"Z"].join("");else if(S==="utctime")N=[M(B.getFullYear()%100),M(B.getUTCMonth()+1),M(B.getUTCDate()),M(B.getUTCHours()),M(B.getUTCMinutes()),M(B.getUTCSeconds()),"Z"].join("");else this.reporter.error("Encoding "+S+" time is not supported yet");return this._encodeStr(N,"octstr")},R.prototype._encodeNull=function(){return this._createEncoderBuffer("")},R.prototype._encodeInt=function(T,S){if(typeof T==="string"){if(!S)return this.reporter.error("String int or enum given, but no values map");if(!S.hasOwnProperty(T))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(T));T=S[T]}if(typeof T!=="number"&&!Z.isBuffer(T)){var N=T.toArray();if(!T.sign&&N[0]&128)N.unshift(0);T=new Z(N)}if(Z.isBuffer(T)){var B=T.length;if(T.length===0)B++;var w=new Z(B);if(T.copy(w),T.length===0)w[0]=0;return this._createEncoderBuffer(w)}if(T<128)return this._createEncoderBuffer(T);if(T<256)return this._createEncoderBuffer([0,T]);var B=1;for(var x=T;x>=256;x>>=8)B++;var w=Array(B);for(var x=w.length-1;x>=0;x--)w[x]=T&255,T>>=8;if(w[0]&128)w.unshift(0);return this._createEncoderBuffer(new Z(w))},R.prototype._encodeBool=function(T){return this._createEncoderBuffer(T?255:0)},R.prototype._use=function(T,S){if(typeof T==="function")T=T(S);return T._getEncoder("der").tree},R.prototype._skipDefault=function(T,S,N){var B=this._baseState,x;if(B.default===null)return!1;var w=T.join();if(B.defaultBuffer===void 0)B.defaultBuffer=this._encodeValue(B.default,S,N).join();if(w.length!==B.defaultBuffer.length)return!1;for(x=0;x<w.length;x++)if(w[x]!==B.defaultBuffer[x])return!1;return!0};function E(T,S,N,B){var x;if(T==="seqof")T="seq";else if(T==="setof")T="set";if(Y.tagByName.hasOwnProperty(T))x=Y.tagByName[T];else if(typeof T==="number"&&(T|0)===T)x=T;else return B.error("Unknown tag: "+T);if(x>=31)return B.error("Multi-octet tag encoding unsupported");if(!S)x|=32;return x|=Y.tagClassByName[N||"universal"]<<6,x}}),zn=$$(($,I)=>{var G=B6(),Z=rN();function _(J){Z.call(this,J),this.enc="pem"}G(_,Z),I.exports=_,_.prototype.encode=function(J,Y){var W=Z.prototype.encode.call(this,J),R=W.toString("base64"),M=["-----BEGIN "+Y.label+"-----"];for(var E=0;E<R.length;E+=64)M.push(R.slice(E,E+64));return M.push("-----END "+Y.label+"-----"),M.join(`
|
|
243
|
-
`)}}),Zn=$$(($)=>{var I=$;I.der=rN(),I.pem=zn()}),oJ=$$(($)=>{var I=$;I.bignum=In(),I.define=_n().define,I.base=cJ(),I.constants=oN(),I.decoders=Qn(),I.encoders=Zn()}),On=$$(($,I)=>{var G=oJ(),Z=G.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),_=G.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),J=G.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),Y=G.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(J),this.key("subjectPublicKey").bitstr())}),W=G.define("RelativeDistinguishedName",function(){this.setof(_)}),R=G.define("RDNSequence",function(){this.seqof(W)}),M=G.define("Name",function(){this.choice({rdnSequence:this.use(R)})}),E=G.define("Validity",function(){this.seq().obj(this.key("notBefore").use(Z),this.key("notAfter").use(Z))}),T=G.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),S=G.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(J),this.key("issuer").use(M),this.key("validity").use(E),this.key("subject").use(M),this.key("subjectPublicKeyInfo").use(Y),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(T).optional())}),N=G.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(S),this.key("signatureAlgorithm").use(J),this.key("signatureValue").bitstr())});I.exports=N}),Ln=$$(($)=>{var I=oJ();$.certificate=On();var G=I.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});$.RSAPrivateKey=G;var Z=I.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});$.RSAPublicKey=Z;var _=I.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),J=I.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(_),this.key("subjectPublicKey").bitstr())});$.PublicKey=J;var Y=I.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(_),this.key("subjectPrivateKey").octstr())});$.PrivateKey=Y;var W=I.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});$.EncryptedPrivateKey=W;var R=I.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});$.DSAPrivateKey=R,$.DSAparam=I.define("DSAparam",function(){this.int()});var M=I.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),E=I.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(M),this.key("publicKey").optional().explicit(1).bitstr())});$.ECPrivateKey=E,$.signature=I.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})}),Kn=$$(($,I)=>{I.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}}),Dn=$$(($,I)=>{var G=oU().Buffer,Z=w4().Transform,_=B6();function J(M){Z.call(this),this._block=G.allocUnsafe(M),this._blockSize=M,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}_(J,Z),J.prototype._transform=function(M,E,T){var S=null;try{this.update(M,E)}catch(N){S=N}T(S)},J.prototype._flush=function(M){var E=null;try{this.push(this.digest())}catch(T){E=T}M(E)};var Y=typeof Uint8Array<"u",W=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(G.prototype instanceof Uint8Array||G.TYPED_ARRAY_SUPPORT);function R(M,E){if(M instanceof G)return M;if(typeof M==="string")return G.from(M,E);if(W&&ArrayBuffer.isView(M)){if(M.byteLength===0)return G.alloc(0);var T=G.from(M.buffer,M.byteOffset,M.byteLength);if(T.byteLength===M.byteLength)return T}if(Y&&M instanceof Uint8Array)return G.from(M);if(G.isBuffer(M)&&M.constructor&&typeof M.constructor.isBuffer==="function"&&M.constructor.isBuffer(M))return G.from(M);throw TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}J.prototype.update=function(M,E){if(this._finalized)throw Error("Digest already called");M=R(M,E);var T=this._block,S=0;while(this._blockOffset+M.length-S>=this._blockSize){for(var N=this._blockOffset;N<this._blockSize;)T[N++]=M[S++];this._update(),this._blockOffset=0}while(S<M.length)T[this._blockOffset++]=M[S++];for(var B=0,x=M.length*8;x>0;++B)if(this._length[B]+=x,x=this._length[B]/4294967296|0,x>0)this._length[B]-=4294967296*x;return this},J.prototype._update=function(){throw Error("_update is not implemented")},J.prototype.digest=function(M){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var E=this._digest();if(M!==void 0)E=E.toString(M);this._block.fill(0),this._blockOffset=0;for(var T=0;T<4;++T)this._length[T]=0;return E},J.prototype._digest=function(){throw Error("_digest is not implemented")},I.exports=J}),Wn=$$(($,I)=>{var G=B6(),Z=Dn(),_=oU().Buffer,J=Array(16);function Y(){Z.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}G(Y,Z),Y.prototype._update=function(){var S=J;for(var N=0;N<16;++N)S[N]=this._block.readInt32LE(N*4);var B=this._a,x=this._b,w=this._c,y=this._d;B=R(B,x,w,y,S[0],3614090360,7),y=R(y,B,x,w,S[1],3905402710,12),w=R(w,y,B,x,S[2],606105819,17),x=R(x,w,y,B,S[3],3250441966,22),B=R(B,x,w,y,S[4],4118548399,7),y=R(y,B,x,w,S[5],1200080426,12),w=R(w,y,B,x,S[6],2821735955,17),x=R(x,w,y,B,S[7],4249261313,22),B=R(B,x,w,y,S[8],1770035416,7),y=R(y,B,x,w,S[9],2336552879,12),w=R(w,y,B,x,S[10],4294925233,17),x=R(x,w,y,B,S[11],2304563134,22),B=R(B,x,w,y,S[12],1804603682,7),y=R(y,B,x,w,S[13],4254626195,12),w=R(w,y,B,x,S[14],2792965006,17),x=R(x,w,y,B,S[15],1236535329,22),B=M(B,x,w,y,S[1],4129170786,5),y=M(y,B,x,w,S[6],3225465664,9),w=M(w,y,B,x,S[11],643717713,14),x=M(x,w,y,B,S[0],3921069994,20),B=M(B,x,w,y,S[5],3593408605,5),y=M(y,B,x,w,S[10],38016083,9),w=M(w,y,B,x,S[15],3634488961,14),x=M(x,w,y,B,S[4],3889429448,20),B=M(B,x,w,y,S[9],568446438,5),y=M(y,B,x,w,S[14],3275163606,9),w=M(w,y,B,x,S[3],4107603335,14),x=M(x,w,y,B,S[8],1163531501,20),B=M(B,x,w,y,S[13],2850285829,5),y=M(y,B,x,w,S[2],4243563512,9),w=M(w,y,B,x,S[7],1735328473,14),x=M(x,w,y,B,S[12],2368359562,20),B=E(B,x,w,y,S[5],4294588738,4),y=E(y,B,x,w,S[8],2272392833,11),w=E(w,y,B,x,S[11],1839030562,16),x=E(x,w,y,B,S[14],4259657740,23),B=E(B,x,w,y,S[1],2763975236,4),y=E(y,B,x,w,S[4],1272893353,11),w=E(w,y,B,x,S[7],4139469664,16),x=E(x,w,y,B,S[10],3200236656,23),B=E(B,x,w,y,S[13],681279174,4),y=E(y,B,x,w,S[0],3936430074,11),w=E(w,y,B,x,S[3],3572445317,16),x=E(x,w,y,B,S[6],76029189,23),B=E(B,x,w,y,S[9],3654602809,4),y=E(y,B,x,w,S[12],3873151461,11),w=E(w,y,B,x,S[15],530742520,16),x=E(x,w,y,B,S[2],3299628645,23),B=T(B,x,w,y,S[0],4096336452,6),y=T(y,B,x,w,S[7],1126891415,10),w=T(w,y,B,x,S[14],2878612391,15),x=T(x,w,y,B,S[5],4237533241,21),B=T(B,x,w,y,S[12],1700485571,6),y=T(y,B,x,w,S[3],2399980690,10),w=T(w,y,B,x,S[10],4293915773,15),x=T(x,w,y,B,S[1],2240044497,21),B=T(B,x,w,y,S[8],1873313359,6),y=T(y,B,x,w,S[15],4264355552,10),w=T(w,y,B,x,S[6],2734768916,15),x=T(x,w,y,B,S[13],1309151649,21),B=T(B,x,w,y,S[4],4149444226,6),y=T(y,B,x,w,S[11],3174756917,10),w=T(w,y,B,x,S[2],718787259,15),x=T(x,w,y,B,S[9],3951481745,21),this._a=this._a+B|0,this._b=this._b+x|0,this._c=this._c+w|0,this._d=this._d+y|0},Y.prototype._digest=function(){if(this._block[this._blockOffset++]=128,this._blockOffset>56)this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0;this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var S=_.allocUnsafe(16);return S.writeInt32LE(this._a,0),S.writeInt32LE(this._b,4),S.writeInt32LE(this._c,8),S.writeInt32LE(this._d,12),S};function W(S,N){return S<<N|S>>>32-N}function R(S,N,B,x,w,y,g){return W(S+(N&B|~N&x)+w+y|0,g)+N|0}function M(S,N,B,x,w,y,g){return W(S+(N&x|B&~x)+w+y|0,g)+N|0}function E(S,N,B,x,w,y,g){return W(S+(N^B^x)+w+y|0,g)+N|0}function T(S,N,B,x,w,y,g){return W(S+(B^(N|~x))+w+y|0,g)+N|0}I.exports=Y}),Hn=$$(($,I)=>{var G=oU().Buffer,Z=Wn();function _(J,Y,W,R){if(!G.isBuffer(J))J=G.from(J,"binary");if(Y){if(!G.isBuffer(Y))Y=G.from(Y,"binary");if(Y.length!==8)throw RangeError("salt should be Buffer with 8 byte length")}var M=W/8,E=G.alloc(M),T=G.alloc(R||0),S=G.alloc(0);while(M>0||R>0){var N=new Z;if(N.update(S),N.update(J),Y)N.update(Y);S=N.digest();var B=0;if(M>0){var x=E.length-M;B=Math.min(M,S.length),S.copy(E,x,0,B),M-=B}if(B<S.length&&R>0){var w=T.length-R,y=Math.min(R,S.length-B);S.copy(T,w,B,B+y),R-=y}}return S.fill(0),{key:E,iv:T}}I.exports=_}),aN=$$(($)=>{var I=(i1(),V$(k6));$.createCipher=$.Cipher=I.createCipher,$.createCipheriv=$.Cipheriv=I.createCipheriv,$.createDecipher=$.Decipher=I.createDecipher,$.createDecipheriv=$.Decipheriv=I.createDecipheriv,$.listCiphers=$.getCiphers=I.getCiphers}),Fn=$$(($,I)=>{var G=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,Z=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,_=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,J=Hn(),Y=aN(),W=oU().Buffer;I.exports=function(R,M){var E=R.toString(),T=E.match(G),S;if(!T){var N=E.match(_);S=W.from(N[2].replace(/[\r\n]/g,""),"base64")}else{var B="aes"+T[1],x=W.from(T[2],"hex"),w=W.from(T[3].replace(/[\r\n]/g,""),"base64"),y=J(M,x.slice(0,8),parseInt(T[1],10)).key,g=[],b=Y.createDecipheriv(B,y,x);g.push(b.update(w)),g.push(b.final()),S=W.concat(g)}var l=E.match(Z)[1];return{tag:l,data:S}}}),sN=$$(($,I)=>{var G=Ln(),Z=Kn(),_=Fn(),J=aN(),Y=nN().pbkdf2Sync,W=oU().Buffer;function R(E,T){var S=E.algorithm.decrypt.kde.kdeparams.salt,N=parseInt(E.algorithm.decrypt.kde.kdeparams.iters.toString(),10),B=Z[E.algorithm.decrypt.cipher.algo.join(".")],x=E.algorithm.decrypt.cipher.iv,w=E.subjectPrivateKey,y=parseInt(B.split("-")[1],10)/8,g=Y(T,S,N,y,"sha1"),b=J.createDecipheriv(B,g,x),l=[];return l.push(b.update(w)),l.push(b.final()),W.concat(l)}function M(E){var T;if(typeof E==="object"&&!W.isBuffer(E))T=E.passphrase,E=E.key;if(typeof E==="string")E=W.from(E);var S=_(E,T),N=S.tag,B=S.data,x,w;switch(N){case"CERTIFICATE":w=G.certificate.decode(B,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":if(!w)w=G.PublicKey.decode(B,"der");switch(x=w.algorithm.algorithm.join("."),x){case"1.2.840.113549.1.1.1":return G.RSAPublicKey.decode(w.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return w.subjectPrivateKey=w.subjectPublicKey,{type:"ec",data:w};case"1.2.840.10040.4.1":return w.algorithm.params.pub_key=G.DSAparam.decode(w.subjectPublicKey.data,"der"),{type:"dsa",data:w.algorithm.params};default:throw Error("unknown key id "+x)}case"ENCRYPTED PRIVATE KEY":B=G.EncryptedPrivateKey.decode(B,"der"),B=R(B,T);case"PRIVATE KEY":switch(w=G.PrivateKey.decode(B,"der"),x=w.algorithm.algorithm.join("."),x){case"1.2.840.113549.1.1.1":return G.RSAPrivateKey.decode(w.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:w.algorithm.curve,privateKey:G.ECPrivateKey.decode(w.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return w.algorithm.params.priv_key=G.DSAparam.decode(w.subjectPrivateKey,"der"),{type:"dsa",params:w.algorithm.params};default:throw Error("unknown key id "+x)}case"RSA PUBLIC KEY":return G.RSAPublicKey.decode(B,"der");case"RSA PRIVATE KEY":return G.RSAPrivateKey.decode(B,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:G.DSAPrivateKey.decode(B,"der")};case"EC PRIVATE KEY":return B=G.ECPrivateKey.decode(B,"der"),{curve:B.parameters.value,privateKey:B.privateKey};default:throw Error("unknown key type "+N)}}M.signature=G.signature,I.exports=M}),eN=$$(($,I)=>{var G=xZ(),Z=oU().Buffer;I.exports=function(J,Y){var W=Z.alloc(0),R=0,M;while(W.length<Y)M=_(R++),W=Z.concat([W,G("sha1").update(J).update(M).digest()]);return W.slice(0,Y)};function _(J){var Y=Z.allocUnsafe(4);return Y.writeUInt32BE(J,0),Y}}),$B=$$(($,I)=>{I.exports=function(G,Z){var _=G.length,J=-1;while(++J<_)G[J]^=Z[J];return G}}),ZW=$$(($,I)=>{(function(G,Z){function _(Q,K){if(!Q)throw Error(K||"Assertion failed")}function J(Q,K){Q.super_=K;var F=function(){};F.prototype=K.prototype,Q.prototype=new F,Q.prototype.constructor=Q}function Y(Q,K,F){if(Y.isBN(Q))return Q;if(this.negative=0,this.words=null,this.length=0,this.red=null,Q!==null){if(K==="le"||K==="be")F=K,K=10;this._init(Q||0,K||10,F||"be")}}if(typeof G==="object")G.exports=Y;else Z.BN=Y;Y.BN=Y,Y.wordSize=26;var W;try{if(typeof window<"u"&&typeof window.Buffer<"u")W=window.Buffer;else W=(u1(),V$(h1)).Buffer}catch(Q){}Y.isBN=function(Q){if(Q instanceof Y)return!0;return Q!==null&&typeof Q==="object"&&Q.constructor.wordSize===Y.wordSize&&Array.isArray(Q.words)},Y.max=function(Q,K){if(Q.cmp(K)>0)return Q;return K},Y.min=function(Q,K){if(Q.cmp(K)<0)return Q;return K},Y.prototype._init=function(Q,K,F){if(typeof Q==="number")return this._initNumber(Q,K,F);if(typeof Q==="object")return this._initArray(Q,K,F);if(K==="hex")K=16;_(K===(K|0)&&K>=2&&K<=36),Q=Q.toString().replace(/\s+/g,"");var L=0;if(Q[0]==="-")L++,this.negative=1;if(L<Q.length){if(K===16)this._parseHex(Q,L,F);else if(this._parseBase(Q,K,L),F==="le")this._initArray(this.toArray(),K,F)}},Y.prototype._initNumber=function(Q,K,F){if(Q<0)this.negative=1,Q=-Q;if(Q<67108864)this.words=[Q&67108863],this.length=1;else if(Q<4503599627370496)this.words=[Q&67108863,Q/67108864&67108863],this.length=2;else _(Q<9007199254740992),this.words=[Q&67108863,Q/67108864&67108863,1],this.length=3;if(F!=="le")return;this._initArray(this.toArray(),K,F)},Y.prototype._initArray=function(Q,K,F){if(_(typeof Q.length==="number"),Q.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(Q.length/3),this.words=Array(this.length);for(var L=0;L<this.length;L++)this.words[L]=0;var H,v,q=0;if(F==="be"){for(L=Q.length-1,H=0;L>=0;L-=3)if(v=Q[L]|Q[L-1]<<8|Q[L-2]<<16,this.words[H]|=v<<q&67108863,this.words[H+1]=v>>>26-q&67108863,q+=24,q>=26)q-=26,H++}else if(F==="le"){for(L=0,H=0;L<Q.length;L+=3)if(v=Q[L]|Q[L+1]<<8|Q[L+2]<<16,this.words[H]|=v<<q&67108863,this.words[H+1]=v>>>26-q&67108863,q+=24,q>=26)q-=26,H++}return this.strip()};function R(Q,K){var F=Q.charCodeAt(K);if(F>=65&&F<=70)return F-55;else if(F>=97&&F<=102)return F-87;else return F-48&15}function M(Q,K,F){var L=R(Q,F);if(F-1>=K)L|=R(Q,F-1)<<4;return L}Y.prototype._parseHex=function(Q,K,F){this.length=Math.ceil((Q.length-K)/6),this.words=Array(this.length);for(var L=0;L<this.length;L++)this.words[L]=0;var H=0,v=0,q;if(F==="be")for(L=Q.length-1;L>=K;L-=2)if(q=M(Q,K,L)<<H,this.words[v]|=q&67108863,H>=18)H-=18,v+=1,this.words[v]|=q>>>26;else H+=8;else{var P=Q.length-K;for(L=P%2===0?K+1:K;L<Q.length;L+=2)if(q=M(Q,K,L)<<H,this.words[v]|=q&67108863,H>=18)H-=18,v+=1,this.words[v]|=q>>>26;else H+=8}this.strip()};function E(Q,K,F,L){var H=0,v=Math.min(Q.length,F);for(var q=K;q<v;q++){var P=Q.charCodeAt(q)-48;if(H*=L,P>=49)H+=P-49+10;else if(P>=17)H+=P-17+10;else H+=P}return H}Y.prototype._parseBase=function(Q,K,F){this.words=[0],this.length=1;for(var L=0,H=1;H<=67108863;H*=K)L++;L--,H=H/K|0;var v=Q.length-F,q=v%L,P=Math.min(v,v-q)+F,O=0;for(var A=F;A<P;A+=L)if(O=E(Q,A,A+L,K),this.imuln(H),this.words[0]+O<67108864)this.words[0]+=O;else this._iaddn(O);if(q!==0){var k=1;O=E(Q,A,Q.length,K);for(A=0;A<q;A++)k*=K;if(this.imuln(k),this.words[0]+O<67108864)this.words[0]+=O;else this._iaddn(O)}this.strip()},Y.prototype.copy=function(Q){Q.words=Array(this.length);for(var K=0;K<this.length;K++)Q.words[K]=this.words[K];Q.length=this.length,Q.negative=this.negative,Q.red=this.red},Y.prototype.clone=function(){var Q=new Y(null);return this.copy(Q),Q},Y.prototype._expand=function(Q){while(this.length<Q)this.words[this.length++]=0;return this},Y.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},Y.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},Y.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],S=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(Y.prototype.toString=function(Q,K){Q=Q||10,K=K|0||1;var F;if(Q===16||Q==="hex"){F="";var L=0,H=0;for(var v=0;v<this.length;v++){var q=this.words[v],P=((q<<L|H)&16777215).toString(16);if(H=q>>>24-L&16777215,L+=2,L>=26)L-=26,v--;if(H!==0||v!==this.length-1)F=T[6-P.length]+P+F;else F=P+F}if(H!==0)F=H.toString(16)+F;while(F.length%K!==0)F="0"+F;if(this.negative!==0)F="-"+F;return F}if(Q===(Q|0)&&Q>=2&&Q<=36){var O=S[Q],A=N[Q];F="";var k=this.clone();k.negative=0;while(!k.isZero()){var j=k.modn(A).toString(Q);if(k=k.idivn(A),!k.isZero())F=T[O-j.length]+j+F;else F=j+F}if(this.isZero())F="0"+F;while(F.length%K!==0)F="0"+F;if(this.negative!==0)F="-"+F;return F}_(!1,"Base should be between 2 and 36")},Y.prototype.toNumber=function(){var Q=this.words[0];if(this.length===2)Q+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)Q+=4503599627370496+this.words[1]*67108864;else if(this.length>2)_(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-Q:Q},Y.prototype.toJSON=function(){return this.toString(16)},Y.prototype.toBuffer=function(Q,K){return _(typeof W<"u"),this.toArrayLike(W,Q,K)},Y.prototype.toArray=function(Q,K){return this.toArrayLike(Array,Q,K)},Y.prototype.toArrayLike=function(Q,K,F){var L=this.byteLength(),H=F||Math.max(1,L);_(L<=H,"byte array longer than desired length"),_(H>0,"Requested array length <= 0"),this.strip();var v=K==="le",q=new Q(H),P,O,A=this.clone();if(!v){for(O=0;O<H-L;O++)q[O]=0;for(O=0;!A.isZero();O++)P=A.andln(255),A.iushrn(8),q[H-O-1]=P}else{for(O=0;!A.isZero();O++)P=A.andln(255),A.iushrn(8),q[O]=P;for(;O<H;O++)q[O]=0}return q},Math.clz32)Y.prototype._countBits=function(Q){return 32-Math.clz32(Q)};else Y.prototype._countBits=function(Q){var K=Q,F=0;if(K>=4096)F+=13,K>>>=13;if(K>=64)F+=7,K>>>=7;if(K>=8)F+=4,K>>>=4;if(K>=2)F+=2,K>>>=2;return F+K};Y.prototype._zeroBits=function(Q){if(Q===0)return 26;var K=Q,F=0;if((K&8191)===0)F+=13,K>>>=13;if((K&127)===0)F+=7,K>>>=7;if((K&15)===0)F+=4,K>>>=4;if((K&3)===0)F+=2,K>>>=2;if((K&1)===0)F++;return F},Y.prototype.bitLength=function(){var Q=this.words[this.length-1],K=this._countBits(Q);return(this.length-1)*26+K};function B(Q){var K=Array(Q.bitLength());for(var F=0;F<K.length;F++){var L=F/26|0,H=F%26;K[F]=(Q.words[L]&1<<H)>>>H}return K}Y.prototype.zeroBits=function(){if(this.isZero())return 0;var Q=0;for(var K=0;K<this.length;K++){var F=this._zeroBits(this.words[K]);if(Q+=F,F!==26)break}return Q},Y.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},Y.prototype.toTwos=function(Q){if(this.negative!==0)return this.abs().inotn(Q).iaddn(1);return this.clone()},Y.prototype.fromTwos=function(Q){if(this.testn(Q-1))return this.notn(Q).iaddn(1).ineg();return this.clone()},Y.prototype.isNeg=function(){return this.negative!==0},Y.prototype.neg=function(){return this.clone().ineg()},Y.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},Y.prototype.iuor=function(Q){while(this.length<Q.length)this.words[this.length++]=0;for(var K=0;K<Q.length;K++)this.words[K]=this.words[K]|Q.words[K];return this.strip()},Y.prototype.ior=function(Q){return _((this.negative|Q.negative)===0),this.iuor(Q)},Y.prototype.or=function(Q){if(this.length>Q.length)return this.clone().ior(Q);return Q.clone().ior(this)},Y.prototype.uor=function(Q){if(this.length>Q.length)return this.clone().iuor(Q);return Q.clone().iuor(this)},Y.prototype.iuand=function(Q){var K;if(this.length>Q.length)K=Q;else K=this;for(var F=0;F<K.length;F++)this.words[F]=this.words[F]&Q.words[F];return this.length=K.length,this.strip()},Y.prototype.iand=function(Q){return _((this.negative|Q.negative)===0),this.iuand(Q)},Y.prototype.and=function(Q){if(this.length>Q.length)return this.clone().iand(Q);return Q.clone().iand(this)},Y.prototype.uand=function(Q){if(this.length>Q.length)return this.clone().iuand(Q);return Q.clone().iuand(this)},Y.prototype.iuxor=function(Q){var K,F;if(this.length>Q.length)K=this,F=Q;else K=Q,F=this;for(var L=0;L<F.length;L++)this.words[L]=K.words[L]^F.words[L];if(this!==K)for(;L<K.length;L++)this.words[L]=K.words[L];return this.length=K.length,this.strip()},Y.prototype.ixor=function(Q){return _((this.negative|Q.negative)===0),this.iuxor(Q)},Y.prototype.xor=function(Q){if(this.length>Q.length)return this.clone().ixor(Q);return Q.clone().ixor(this)},Y.prototype.uxor=function(Q){if(this.length>Q.length)return this.clone().iuxor(Q);return Q.clone().iuxor(this)},Y.prototype.inotn=function(Q){_(typeof Q==="number"&&Q>=0);var K=Math.ceil(Q/26)|0,F=Q%26;if(this._expand(K),F>0)K--;for(var L=0;L<K;L++)this.words[L]=~this.words[L]&67108863;if(F>0)this.words[L]=~this.words[L]&67108863>>26-F;return this.strip()},Y.prototype.notn=function(Q){return this.clone().inotn(Q)},Y.prototype.setn=function(Q,K){_(typeof Q==="number"&&Q>=0);var F=Q/26|0,L=Q%26;if(this._expand(F+1),K)this.words[F]=this.words[F]|1<<L;else this.words[F]=this.words[F]&~(1<<L);return this.strip()},Y.prototype.iadd=function(Q){var K;if(this.negative!==0&&Q.negative===0)return this.negative=0,K=this.isub(Q),this.negative^=1,this._normSign();else if(this.negative===0&&Q.negative!==0)return Q.negative=0,K=this.isub(Q),Q.negative=1,K._normSign();var F,L;if(this.length>Q.length)F=this,L=Q;else F=Q,L=this;var H=0;for(var v=0;v<L.length;v++)K=(F.words[v]|0)+(L.words[v]|0)+H,this.words[v]=K&67108863,H=K>>>26;for(;H!==0&&v<F.length;v++)K=(F.words[v]|0)+H,this.words[v]=K&67108863,H=K>>>26;if(this.length=F.length,H!==0)this.words[this.length]=H,this.length++;else if(F!==this)for(;v<F.length;v++)this.words[v]=F.words[v];return this},Y.prototype.add=function(Q){var K;if(Q.negative!==0&&this.negative===0)return Q.negative=0,K=this.sub(Q),Q.negative^=1,K;else if(Q.negative===0&&this.negative!==0)return this.negative=0,K=Q.sub(this),this.negative=1,K;if(this.length>Q.length)return this.clone().iadd(Q);return Q.clone().iadd(this)},Y.prototype.isub=function(Q){if(Q.negative!==0){Q.negative=0;var K=this.iadd(Q);return Q.negative=1,K._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Q),this.negative=1,this._normSign();var F=this.cmp(Q);if(F===0)return this.negative=0,this.length=1,this.words[0]=0,this;var L,H;if(F>0)L=this,H=Q;else L=Q,H=this;var v=0;for(var q=0;q<H.length;q++)K=(L.words[q]|0)-(H.words[q]|0)+v,v=K>>26,this.words[q]=K&67108863;for(;v!==0&&q<L.length;q++)K=(L.words[q]|0)+v,v=K>>26,this.words[q]=K&67108863;if(v===0&&q<L.length&&L!==this)for(;q<L.length;q++)this.words[q]=L.words[q];if(this.length=Math.max(this.length,q),L!==this)this.negative=1;return this.strip()},Y.prototype.sub=function(Q){return this.clone().isub(Q)};function x(Q,K,F){F.negative=K.negative^Q.negative;var L=Q.length+K.length|0;F.length=L,L=L-1|0;var H=Q.words[0]|0,v=K.words[0]|0,q=H*v,P=q&67108863,O=q/67108864|0;F.words[0]=P;for(var A=1;A<L;A++){var k=O>>>26,j=O&67108863,h=Math.min(A,K.length-1);for(var a=Math.max(0,A-Q.length+1);a<=h;a++){var J0=A-a|0;H=Q.words[J0]|0,v=K.words[a]|0,q=H*v+j,k+=q/67108864|0,j=q&67108863}F.words[A]=j|0,O=k|0}if(O!==0)F.words[A]=O|0;else F.length--;return F.strip()}var w=function(Q,K,F){var L=Q.words,H=K.words,v=F.words,q=0,P,O,A,k=L[0]|0,j=k&8191,h=k>>>13,a=L[1]|0,J0=a&8191,D0=a>>>13,O0=L[2]|0,d=O0&8191,m=O0>>>13,r=L[3]|0,Y0=r&8191,W0=r>>>13,I0=L[4]|0,c=I0&8191,s=I0>>>13,S0=L[5]|0,M0=S0&8191,z0=S0>>>13,c0=L[6]|0,F0=c0&8191,q0=c0>>>13,s0=L[7]|0,k0=s0&8191,n0=s0>>>13,M$=L[8]|0,T0=M$&8191,V0=M$>>>13,X$=L[9]|0,p0=X$&8191,l0=X$>>>13,L0=H[0]|0,N0=L0&8191,B0=L0>>>13,Y$=H[1]|0,u=Y$&8191,_0=Y$>>>13,o=H[2]|0,R0=o&8191,x0=o>>>13,p=H[3]|0,A0=p&8191,v0=p>>>13,X0=H[4]|0,H0=X0&8191,C0=X0>>>13,H$=H[5]|0,d0=H$&8191,e=H$>>>13,E0=H[6]|0,b0=E0&8191,f0=E0>>>13,z$=H[7]|0,a0=z$&8191,U$=z$>>>13,c$=H[8]|0,K$=c$&8191,L$=c$>>>13,B$=H[9]|0,Z$=B$&8191,I$=B$>>>13;F.negative=Q.negative^K.negative,F.length=19,P=Math.imul(j,N0),O=Math.imul(j,B0),O=O+Math.imul(h,N0)|0,A=Math.imul(h,B0);var I1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(I1>>>26)|0,I1&=67108863,P=Math.imul(J0,N0),O=Math.imul(J0,B0),O=O+Math.imul(D0,N0)|0,A=Math.imul(D0,B0),P=P+Math.imul(j,u)|0,O=O+Math.imul(j,_0)|0,O=O+Math.imul(h,u)|0,A=A+Math.imul(h,_0)|0;var C$=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(C$>>>26)|0,C$&=67108863,P=Math.imul(d,N0),O=Math.imul(d,B0),O=O+Math.imul(m,N0)|0,A=Math.imul(m,B0),P=P+Math.imul(J0,u)|0,O=O+Math.imul(J0,_0)|0,O=O+Math.imul(D0,u)|0,A=A+Math.imul(D0,_0)|0,P=P+Math.imul(j,R0)|0,O=O+Math.imul(j,x0)|0,O=O+Math.imul(h,R0)|0,A=A+Math.imul(h,x0)|0;var g$=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(g$>>>26)|0,g$&=67108863,P=Math.imul(Y0,N0),O=Math.imul(Y0,B0),O=O+Math.imul(W0,N0)|0,A=Math.imul(W0,B0),P=P+Math.imul(d,u)|0,O=O+Math.imul(d,_0)|0,O=O+Math.imul(m,u)|0,A=A+Math.imul(m,_0)|0,P=P+Math.imul(J0,R0)|0,O=O+Math.imul(J0,x0)|0,O=O+Math.imul(D0,R0)|0,A=A+Math.imul(D0,x0)|0,P=P+Math.imul(j,A0)|0,O=O+Math.imul(j,v0)|0,O=O+Math.imul(h,A0)|0,A=A+Math.imul(h,v0)|0;var z1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(z1>>>26)|0,z1&=67108863,P=Math.imul(c,N0),O=Math.imul(c,B0),O=O+Math.imul(s,N0)|0,A=Math.imul(s,B0),P=P+Math.imul(Y0,u)|0,O=O+Math.imul(Y0,_0)|0,O=O+Math.imul(W0,u)|0,A=A+Math.imul(W0,_0)|0,P=P+Math.imul(d,R0)|0,O=O+Math.imul(d,x0)|0,O=O+Math.imul(m,R0)|0,A=A+Math.imul(m,x0)|0,P=P+Math.imul(J0,A0)|0,O=O+Math.imul(J0,v0)|0,O=O+Math.imul(D0,A0)|0,A=A+Math.imul(D0,v0)|0,P=P+Math.imul(j,H0)|0,O=O+Math.imul(j,C0)|0,O=O+Math.imul(h,H0)|0,A=A+Math.imul(h,C0)|0;var U1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(U1>>>26)|0,U1&=67108863,P=Math.imul(M0,N0),O=Math.imul(M0,B0),O=O+Math.imul(z0,N0)|0,A=Math.imul(z0,B0),P=P+Math.imul(c,u)|0,O=O+Math.imul(c,_0)|0,O=O+Math.imul(s,u)|0,A=A+Math.imul(s,_0)|0,P=P+Math.imul(Y0,R0)|0,O=O+Math.imul(Y0,x0)|0,O=O+Math.imul(W0,R0)|0,A=A+Math.imul(W0,x0)|0,P=P+Math.imul(d,A0)|0,O=O+Math.imul(d,v0)|0,O=O+Math.imul(m,A0)|0,A=A+Math.imul(m,v0)|0,P=P+Math.imul(J0,H0)|0,O=O+Math.imul(J0,C0)|0,O=O+Math.imul(D0,H0)|0,A=A+Math.imul(D0,C0)|0,P=P+Math.imul(j,d0)|0,O=O+Math.imul(j,e)|0,O=O+Math.imul(h,d0)|0,A=A+Math.imul(h,e)|0;var o1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(o1>>>26)|0,o1&=67108863,P=Math.imul(F0,N0),O=Math.imul(F0,B0),O=O+Math.imul(q0,N0)|0,A=Math.imul(q0,B0),P=P+Math.imul(M0,u)|0,O=O+Math.imul(M0,_0)|0,O=O+Math.imul(z0,u)|0,A=A+Math.imul(z0,_0)|0,P=P+Math.imul(c,R0)|0,O=O+Math.imul(c,x0)|0,O=O+Math.imul(s,R0)|0,A=A+Math.imul(s,x0)|0,P=P+Math.imul(Y0,A0)|0,O=O+Math.imul(Y0,v0)|0,O=O+Math.imul(W0,A0)|0,A=A+Math.imul(W0,v0)|0,P=P+Math.imul(d,H0)|0,O=O+Math.imul(d,C0)|0,O=O+Math.imul(m,H0)|0,A=A+Math.imul(m,C0)|0,P=P+Math.imul(J0,d0)|0,O=O+Math.imul(J0,e)|0,O=O+Math.imul(D0,d0)|0,A=A+Math.imul(D0,e)|0,P=P+Math.imul(j,b0)|0,O=O+Math.imul(j,f0)|0,O=O+Math.imul(h,b0)|0,A=A+Math.imul(h,f0)|0;var t1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(t1>>>26)|0,t1&=67108863,P=Math.imul(k0,N0),O=Math.imul(k0,B0),O=O+Math.imul(n0,N0)|0,A=Math.imul(n0,B0),P=P+Math.imul(F0,u)|0,O=O+Math.imul(F0,_0)|0,O=O+Math.imul(q0,u)|0,A=A+Math.imul(q0,_0)|0,P=P+Math.imul(M0,R0)|0,O=O+Math.imul(M0,x0)|0,O=O+Math.imul(z0,R0)|0,A=A+Math.imul(z0,x0)|0,P=P+Math.imul(c,A0)|0,O=O+Math.imul(c,v0)|0,O=O+Math.imul(s,A0)|0,A=A+Math.imul(s,v0)|0,P=P+Math.imul(Y0,H0)|0,O=O+Math.imul(Y0,C0)|0,O=O+Math.imul(W0,H0)|0,A=A+Math.imul(W0,C0)|0,P=P+Math.imul(d,d0)|0,O=O+Math.imul(d,e)|0,O=O+Math.imul(m,d0)|0,A=A+Math.imul(m,e)|0,P=P+Math.imul(J0,b0)|0,O=O+Math.imul(J0,f0)|0,O=O+Math.imul(D0,b0)|0,A=A+Math.imul(D0,f0)|0,P=P+Math.imul(j,a0)|0,O=O+Math.imul(j,U$)|0,O=O+Math.imul(h,a0)|0,A=A+Math.imul(h,U$)|0;var r1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(r1>>>26)|0,r1&=67108863,P=Math.imul(T0,N0),O=Math.imul(T0,B0),O=O+Math.imul(V0,N0)|0,A=Math.imul(V0,B0),P=P+Math.imul(k0,u)|0,O=O+Math.imul(k0,_0)|0,O=O+Math.imul(n0,u)|0,A=A+Math.imul(n0,_0)|0,P=P+Math.imul(F0,R0)|0,O=O+Math.imul(F0,x0)|0,O=O+Math.imul(q0,R0)|0,A=A+Math.imul(q0,x0)|0,P=P+Math.imul(M0,A0)|0,O=O+Math.imul(M0,v0)|0,O=O+Math.imul(z0,A0)|0,A=A+Math.imul(z0,v0)|0,P=P+Math.imul(c,H0)|0,O=O+Math.imul(c,C0)|0,O=O+Math.imul(s,H0)|0,A=A+Math.imul(s,C0)|0,P=P+Math.imul(Y0,d0)|0,O=O+Math.imul(Y0,e)|0,O=O+Math.imul(W0,d0)|0,A=A+Math.imul(W0,e)|0,P=P+Math.imul(d,b0)|0,O=O+Math.imul(d,f0)|0,O=O+Math.imul(m,b0)|0,A=A+Math.imul(m,f0)|0,P=P+Math.imul(J0,a0)|0,O=O+Math.imul(J0,U$)|0,O=O+Math.imul(D0,a0)|0,A=A+Math.imul(D0,U$)|0,P=P+Math.imul(j,K$)|0,O=O+Math.imul(j,L$)|0,O=O+Math.imul(h,K$)|0,A=A+Math.imul(h,L$)|0;var a1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(a1>>>26)|0,a1&=67108863,P=Math.imul(p0,N0),O=Math.imul(p0,B0),O=O+Math.imul(l0,N0)|0,A=Math.imul(l0,B0),P=P+Math.imul(T0,u)|0,O=O+Math.imul(T0,_0)|0,O=O+Math.imul(V0,u)|0,A=A+Math.imul(V0,_0)|0,P=P+Math.imul(k0,R0)|0,O=O+Math.imul(k0,x0)|0,O=O+Math.imul(n0,R0)|0,A=A+Math.imul(n0,x0)|0,P=P+Math.imul(F0,A0)|0,O=O+Math.imul(F0,v0)|0,O=O+Math.imul(q0,A0)|0,A=A+Math.imul(q0,v0)|0,P=P+Math.imul(M0,H0)|0,O=O+Math.imul(M0,C0)|0,O=O+Math.imul(z0,H0)|0,A=A+Math.imul(z0,C0)|0,P=P+Math.imul(c,d0)|0,O=O+Math.imul(c,e)|0,O=O+Math.imul(s,d0)|0,A=A+Math.imul(s,e)|0,P=P+Math.imul(Y0,b0)|0,O=O+Math.imul(Y0,f0)|0,O=O+Math.imul(W0,b0)|0,A=A+Math.imul(W0,f0)|0,P=P+Math.imul(d,a0)|0,O=O+Math.imul(d,U$)|0,O=O+Math.imul(m,a0)|0,A=A+Math.imul(m,U$)|0,P=P+Math.imul(J0,K$)|0,O=O+Math.imul(J0,L$)|0,O=O+Math.imul(D0,K$)|0,A=A+Math.imul(D0,L$)|0,P=P+Math.imul(j,Z$)|0,O=O+Math.imul(j,I$)|0,O=O+Math.imul(h,Z$)|0,A=A+Math.imul(h,I$)|0;var s1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(s1>>>26)|0,s1&=67108863,P=Math.imul(p0,u),O=Math.imul(p0,_0),O=O+Math.imul(l0,u)|0,A=Math.imul(l0,_0),P=P+Math.imul(T0,R0)|0,O=O+Math.imul(T0,x0)|0,O=O+Math.imul(V0,R0)|0,A=A+Math.imul(V0,x0)|0,P=P+Math.imul(k0,A0)|0,O=O+Math.imul(k0,v0)|0,O=O+Math.imul(n0,A0)|0,A=A+Math.imul(n0,v0)|0,P=P+Math.imul(F0,H0)|0,O=O+Math.imul(F0,C0)|0,O=O+Math.imul(q0,H0)|0,A=A+Math.imul(q0,C0)|0,P=P+Math.imul(M0,d0)|0,O=O+Math.imul(M0,e)|0,O=O+Math.imul(z0,d0)|0,A=A+Math.imul(z0,e)|0,P=P+Math.imul(c,b0)|0,O=O+Math.imul(c,f0)|0,O=O+Math.imul(s,b0)|0,A=A+Math.imul(s,f0)|0,P=P+Math.imul(Y0,a0)|0,O=O+Math.imul(Y0,U$)|0,O=O+Math.imul(W0,a0)|0,A=A+Math.imul(W0,U$)|0,P=P+Math.imul(d,K$)|0,O=O+Math.imul(d,L$)|0,O=O+Math.imul(m,K$)|0,A=A+Math.imul(m,L$)|0,P=P+Math.imul(J0,Z$)|0,O=O+Math.imul(J0,I$)|0,O=O+Math.imul(D0,Z$)|0,A=A+Math.imul(D0,I$)|0;var Y1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(Y1>>>26)|0,Y1&=67108863,P=Math.imul(p0,R0),O=Math.imul(p0,x0),O=O+Math.imul(l0,R0)|0,A=Math.imul(l0,x0),P=P+Math.imul(T0,A0)|0,O=O+Math.imul(T0,v0)|0,O=O+Math.imul(V0,A0)|0,A=A+Math.imul(V0,v0)|0,P=P+Math.imul(k0,H0)|0,O=O+Math.imul(k0,C0)|0,O=O+Math.imul(n0,H0)|0,A=A+Math.imul(n0,C0)|0,P=P+Math.imul(F0,d0)|0,O=O+Math.imul(F0,e)|0,O=O+Math.imul(q0,d0)|0,A=A+Math.imul(q0,e)|0,P=P+Math.imul(M0,b0)|0,O=O+Math.imul(M0,f0)|0,O=O+Math.imul(z0,b0)|0,A=A+Math.imul(z0,f0)|0,P=P+Math.imul(c,a0)|0,O=O+Math.imul(c,U$)|0,O=O+Math.imul(s,a0)|0,A=A+Math.imul(s,U$)|0,P=P+Math.imul(Y0,K$)|0,O=O+Math.imul(Y0,L$)|0,O=O+Math.imul(W0,K$)|0,A=A+Math.imul(W0,L$)|0,P=P+Math.imul(d,Z$)|0,O=O+Math.imul(d,I$)|0,O=O+Math.imul(m,Z$)|0,A=A+Math.imul(m,I$)|0;var S1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(S1>>>26)|0,S1&=67108863,P=Math.imul(p0,A0),O=Math.imul(p0,v0),O=O+Math.imul(l0,A0)|0,A=Math.imul(l0,v0),P=P+Math.imul(T0,H0)|0,O=O+Math.imul(T0,C0)|0,O=O+Math.imul(V0,H0)|0,A=A+Math.imul(V0,C0)|0,P=P+Math.imul(k0,d0)|0,O=O+Math.imul(k0,e)|0,O=O+Math.imul(n0,d0)|0,A=A+Math.imul(n0,e)|0,P=P+Math.imul(F0,b0)|0,O=O+Math.imul(F0,f0)|0,O=O+Math.imul(q0,b0)|0,A=A+Math.imul(q0,f0)|0,P=P+Math.imul(M0,a0)|0,O=O+Math.imul(M0,U$)|0,O=O+Math.imul(z0,a0)|0,A=A+Math.imul(z0,U$)|0,P=P+Math.imul(c,K$)|0,O=O+Math.imul(c,L$)|0,O=O+Math.imul(s,K$)|0,A=A+Math.imul(s,L$)|0,P=P+Math.imul(Y0,Z$)|0,O=O+Math.imul(Y0,I$)|0,O=O+Math.imul(W0,Z$)|0,A=A+Math.imul(W0,I$)|0;var R1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(R1>>>26)|0,R1&=67108863,P=Math.imul(p0,H0),O=Math.imul(p0,C0),O=O+Math.imul(l0,H0)|0,A=Math.imul(l0,C0),P=P+Math.imul(T0,d0)|0,O=O+Math.imul(T0,e)|0,O=O+Math.imul(V0,d0)|0,A=A+Math.imul(V0,e)|0,P=P+Math.imul(k0,b0)|0,O=O+Math.imul(k0,f0)|0,O=O+Math.imul(n0,b0)|0,A=A+Math.imul(n0,f0)|0,P=P+Math.imul(F0,a0)|0,O=O+Math.imul(F0,U$)|0,O=O+Math.imul(q0,a0)|0,A=A+Math.imul(q0,U$)|0,P=P+Math.imul(M0,K$)|0,O=O+Math.imul(M0,L$)|0,O=O+Math.imul(z0,K$)|0,A=A+Math.imul(z0,L$)|0,P=P+Math.imul(c,Z$)|0,O=O+Math.imul(c,I$)|0,O=O+Math.imul(s,Z$)|0,A=A+Math.imul(s,I$)|0;var e1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(e1>>>26)|0,e1&=67108863,P=Math.imul(p0,d0),O=Math.imul(p0,e),O=O+Math.imul(l0,d0)|0,A=Math.imul(l0,e),P=P+Math.imul(T0,b0)|0,O=O+Math.imul(T0,f0)|0,O=O+Math.imul(V0,b0)|0,A=A+Math.imul(V0,f0)|0,P=P+Math.imul(k0,a0)|0,O=O+Math.imul(k0,U$)|0,O=O+Math.imul(n0,a0)|0,A=A+Math.imul(n0,U$)|0,P=P+Math.imul(F0,K$)|0,O=O+Math.imul(F0,L$)|0,O=O+Math.imul(q0,K$)|0,A=A+Math.imul(q0,L$)|0,P=P+Math.imul(M0,Z$)|0,O=O+Math.imul(M0,I$)|0,O=O+Math.imul(z0,Z$)|0,A=A+Math.imul(z0,I$)|0;var B1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(B1>>>26)|0,B1&=67108863,P=Math.imul(p0,b0),O=Math.imul(p0,f0),O=O+Math.imul(l0,b0)|0,A=Math.imul(l0,f0),P=P+Math.imul(T0,a0)|0,O=O+Math.imul(T0,U$)|0,O=O+Math.imul(V0,a0)|0,A=A+Math.imul(V0,U$)|0,P=P+Math.imul(k0,K$)|0,O=O+Math.imul(k0,L$)|0,O=O+Math.imul(n0,K$)|0,A=A+Math.imul(n0,L$)|0,P=P+Math.imul(F0,Z$)|0,O=O+Math.imul(F0,I$)|0,O=O+Math.imul(q0,Z$)|0,A=A+Math.imul(q0,I$)|0;var f1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(f1>>>26)|0,f1&=67108863,P=Math.imul(p0,a0),O=Math.imul(p0,U$),O=O+Math.imul(l0,a0)|0,A=Math.imul(l0,U$),P=P+Math.imul(T0,K$)|0,O=O+Math.imul(T0,L$)|0,O=O+Math.imul(V0,K$)|0,A=A+Math.imul(V0,L$)|0,P=P+Math.imul(k0,Z$)|0,O=O+Math.imul(k0,I$)|0,O=O+Math.imul(n0,Z$)|0,A=A+Math.imul(n0,I$)|0;var c1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(c1>>>26)|0,c1&=67108863,P=Math.imul(p0,K$),O=Math.imul(p0,L$),O=O+Math.imul(l0,K$)|0,A=Math.imul(l0,L$),P=P+Math.imul(T0,Z$)|0,O=O+Math.imul(T0,I$)|0,O=O+Math.imul(V0,Z$)|0,A=A+Math.imul(V0,I$)|0;var j1=(q+P|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(j1>>>26)|0,j1&=67108863,P=Math.imul(p0,Z$),O=Math.imul(p0,I$),O=O+Math.imul(l0,Z$)|0,A=Math.imul(l0,I$);var v1=(q+P|0)+((O&8191)<<13)|0;if(q=(A+(O>>>13)|0)+(v1>>>26)|0,v1&=67108863,v[0]=I1,v[1]=C$,v[2]=g$,v[3]=z1,v[4]=U1,v[5]=o1,v[6]=t1,v[7]=r1,v[8]=a1,v[9]=s1,v[10]=Y1,v[11]=S1,v[12]=R1,v[13]=e1,v[14]=B1,v[15]=f1,v[16]=c1,v[17]=j1,v[18]=v1,q!==0)v[19]=q,F.length++;return F};if(!Math.imul)w=x;function y(Q,K,F){F.negative=K.negative^Q.negative,F.length=Q.length+K.length;var L=0,H=0;for(var v=0;v<F.length-1;v++){var q=H;H=0;var P=L&67108863,O=Math.min(v,K.length-1);for(var A=Math.max(0,v-Q.length+1);A<=O;A++){var k=v-A,j=Q.words[k]|0,h=K.words[A]|0,a=j*h,J0=a&67108863;q=q+(a/67108864|0)|0,J0=J0+P|0,P=J0&67108863,q=q+(J0>>>26)|0,H+=q>>>26,q&=67108863}F.words[v]=P,L=q,q=H}if(L!==0)F.words[v]=L;else F.length--;return F.strip()}function g(Q,K,F){var L=new b;return L.mulp(Q,K,F)}Y.prototype.mulTo=function(Q,K){var F,L=this.length+Q.length;if(this.length===10&&Q.length===10)F=w(this,Q,K);else if(L<63)F=x(this,Q,K);else if(L<1024)F=y(this,Q,K);else F=g(this,Q,K);return F};function b(Q,K){this.x=Q,this.y=K}b.prototype.makeRBT=function(Q){var K=Array(Q),F=Y.prototype._countBits(Q)-1;for(var L=0;L<Q;L++)K[L]=this.revBin(L,F,Q);return K},b.prototype.revBin=function(Q,K,F){if(Q===0||Q===F-1)return Q;var L=0;for(var H=0;H<K;H++)L|=(Q&1)<<K-H-1,Q>>=1;return L},b.prototype.permute=function(Q,K,F,L,H,v){for(var q=0;q<v;q++)L[q]=K[Q[q]],H[q]=F[Q[q]]},b.prototype.transform=function(Q,K,F,L,H,v){this.permute(v,Q,K,F,L,H);for(var q=1;q<H;q<<=1){var P=q<<1,O=Math.cos(2*Math.PI/P),A=Math.sin(2*Math.PI/P);for(var k=0;k<H;k+=P){var j=O,h=A;for(var a=0;a<q;a++){var J0=F[k+a],D0=L[k+a],O0=F[k+a+q],d=L[k+a+q],m=j*O0-h*d;if(d=j*d+h*O0,O0=m,F[k+a]=J0+O0,L[k+a]=D0+d,F[k+a+q]=J0-O0,L[k+a+q]=D0-d,a!==P)m=O*j-A*h,h=O*h+A*j,j=m}}}},b.prototype.guessLen13b=function(Q,K){var F=Math.max(K,Q)|1,L=F&1,H=0;for(F=F/2|0;F;F=F>>>1)H++;return 1<<H+1+L},b.prototype.conjugate=function(Q,K,F){if(F<=1)return;for(var L=0;L<F/2;L++){var H=Q[L];Q[L]=Q[F-L-1],Q[F-L-1]=H,H=K[L],K[L]=-K[F-L-1],K[F-L-1]=-H}},b.prototype.normalize13b=function(Q,K){var F=0;for(var L=0;L<K/2;L++){var H=Math.round(Q[2*L+1]/K)*8192+Math.round(Q[2*L]/K)+F;if(Q[L]=H&67108863,H<67108864)F=0;else F=H/67108864|0}return Q},b.prototype.convert13b=function(Q,K,F,L){var H=0;for(var v=0;v<K;v++)H=H+(Q[v]|0),F[2*v]=H&8191,H=H>>>13,F[2*v+1]=H&8191,H=H>>>13;for(v=2*K;v<L;++v)F[v]=0;_(H===0),_((H&-8192)===0)},b.prototype.stub=function(Q){var K=Array(Q);for(var F=0;F<Q;F++)K[F]=0;return K},b.prototype.mulp=function(Q,K,F){var L=2*this.guessLen13b(Q.length,K.length),H=this.makeRBT(L),v=this.stub(L),q=Array(L),P=Array(L),O=Array(L),A=Array(L),k=Array(L),j=Array(L),h=F.words;h.length=L,this.convert13b(Q.words,Q.length,q,L),this.convert13b(K.words,K.length,A,L),this.transform(q,v,P,O,L,H),this.transform(A,v,k,j,L,H);for(var a=0;a<L;a++){var J0=P[a]*k[a]-O[a]*j[a];O[a]=P[a]*j[a]+O[a]*k[a],P[a]=J0}return this.conjugate(P,O,L),this.transform(P,O,h,v,L,H),this.conjugate(h,v,L),this.normalize13b(h,L),F.negative=Q.negative^K.negative,F.length=Q.length+K.length,F.strip()},Y.prototype.mul=function(Q){var K=new Y(null);return K.words=Array(this.length+Q.length),this.mulTo(Q,K)},Y.prototype.mulf=function(Q){var K=new Y(null);return K.words=Array(this.length+Q.length),g(this,Q,K)},Y.prototype.imul=function(Q){return this.clone().mulTo(Q,this)},Y.prototype.imuln=function(Q){_(typeof Q==="number"),_(Q<67108864);var K=0;for(var F=0;F<this.length;F++){var L=(this.words[F]|0)*Q,H=(L&67108863)+(K&67108863);K>>=26,K+=L/67108864|0,K+=H>>>26,this.words[F]=H&67108863}if(K!==0)this.words[F]=K,this.length++;return this.length=Q===0?1:this.length,this},Y.prototype.muln=function(Q){return this.clone().imuln(Q)},Y.prototype.sqr=function(){return this.mul(this)},Y.prototype.isqr=function(){return this.imul(this.clone())},Y.prototype.pow=function(Q){var K=B(Q);if(K.length===0)return new Y(1);var F=this;for(var L=0;L<K.length;L++,F=F.sqr())if(K[L]!==0)break;if(++L<K.length)for(var H=F.sqr();L<K.length;L++,H=H.sqr()){if(K[L]===0)continue;F=F.mul(H)}return F},Y.prototype.iushln=function(Q){_(typeof Q==="number"&&Q>=0);var K=Q%26,F=(Q-K)/26,L=67108863>>>26-K<<26-K,H;if(K!==0){var v=0;for(H=0;H<this.length;H++){var q=this.words[H]&L,P=(this.words[H]|0)-q<<K;this.words[H]=P|v,v=q>>>26-K}if(v)this.words[H]=v,this.length++}if(F!==0){for(H=this.length-1;H>=0;H--)this.words[H+F]=this.words[H];for(H=0;H<F;H++)this.words[H]=0;this.length+=F}return this.strip()},Y.prototype.ishln=function(Q){return _(this.negative===0),this.iushln(Q)},Y.prototype.iushrn=function(Q,K,F){_(typeof Q==="number"&&Q>=0);var L;if(K)L=(K-K%26)/26;else L=0;var H=Q%26,v=Math.min((Q-H)/26,this.length),q=67108863^67108863>>>H<<H,P=F;if(L-=v,L=Math.max(0,L),P){for(var O=0;O<v;O++)P.words[O]=this.words[O];P.length=v}if(v===0);else if(this.length>v){this.length-=v;for(O=0;O<this.length;O++)this.words[O]=this.words[O+v]}else this.words[0]=0,this.length=1;var A=0;for(O=this.length-1;O>=0&&(A!==0||O>=L);O--){var k=this.words[O]|0;this.words[O]=A<<26-H|k>>>H,A=k&q}if(P&&A!==0)P.words[P.length++]=A;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},Y.prototype.ishrn=function(Q,K,F){return _(this.negative===0),this.iushrn(Q,K,F)},Y.prototype.shln=function(Q){return this.clone().ishln(Q)},Y.prototype.ushln=function(Q){return this.clone().iushln(Q)},Y.prototype.shrn=function(Q){return this.clone().ishrn(Q)},Y.prototype.ushrn=function(Q){return this.clone().iushrn(Q)},Y.prototype.testn=function(Q){_(typeof Q==="number"&&Q>=0);var K=Q%26,F=(Q-K)/26,L=1<<K;if(this.length<=F)return!1;var H=this.words[F];return!!(H&L)},Y.prototype.imaskn=function(Q){_(typeof Q==="number"&&Q>=0);var K=Q%26,F=(Q-K)/26;if(_(this.negative===0,"imaskn works only with positive numbers"),this.length<=F)return this;if(K!==0)F++;if(this.length=Math.min(F,this.length),K!==0){var L=67108863^67108863>>>K<<K;this.words[this.length-1]&=L}return this.strip()},Y.prototype.maskn=function(Q){return this.clone().imaskn(Q)},Y.prototype.iaddn=function(Q){if(_(typeof Q==="number"),_(Q<67108864),Q<0)return this.isubn(-Q);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<Q)return this.words[0]=Q-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(Q),this.negative=1,this}return this._iaddn(Q)},Y.prototype._iaddn=function(Q){this.words[0]+=Q;for(var K=0;K<this.length&&this.words[K]>=67108864;K++)if(this.words[K]-=67108864,K===this.length-1)this.words[K+1]=1;else this.words[K+1]++;return this.length=Math.max(this.length,K+1),this},Y.prototype.isubn=function(Q){if(_(typeof Q==="number"),_(Q<67108864),Q<0)return this.iaddn(-Q);if(this.negative!==0)return this.negative=0,this.iaddn(Q),this.negative=1,this;if(this.words[0]-=Q,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var K=0;K<this.length&&this.words[K]<0;K++)this.words[K]+=67108864,this.words[K+1]-=1;return this.strip()},Y.prototype.addn=function(Q){return this.clone().iaddn(Q)},Y.prototype.subn=function(Q){return this.clone().isubn(Q)},Y.prototype.iabs=function(){return this.negative=0,this},Y.prototype.abs=function(){return this.clone().iabs()},Y.prototype._ishlnsubmul=function(Q,K,F){var L=Q.length+F,H;this._expand(L);var v,q=0;for(H=0;H<Q.length;H++){v=(this.words[H+F]|0)+q;var P=(Q.words[H]|0)*K;v-=P&67108863,q=(v>>26)-(P/67108864|0),this.words[H+F]=v&67108863}for(;H<this.length-F;H++)v=(this.words[H+F]|0)+q,q=v>>26,this.words[H+F]=v&67108863;if(q===0)return this.strip();_(q===-1),q=0;for(H=0;H<this.length;H++)v=-(this.words[H]|0)+q,q=v>>26,this.words[H]=v&67108863;return this.negative=1,this.strip()},Y.prototype._wordDiv=function(Q,K){var F=this.length-Q.length,L=this.clone(),H=Q,v=H.words[H.length-1]|0,q=this._countBits(v);if(F=26-q,F!==0)H=H.ushln(F),L.iushln(F),v=H.words[H.length-1]|0;var P=L.length-H.length,O;if(K!=="mod"){O=new Y(null),O.length=P+1,O.words=Array(O.length);for(var A=0;A<O.length;A++)O.words[A]=0}var k=L.clone()._ishlnsubmul(H,1,P);if(k.negative===0){if(L=k,O)O.words[P]=1}for(var j=P-1;j>=0;j--){var h=(L.words[H.length+j]|0)*67108864+(L.words[H.length+j-1]|0);h=Math.min(h/v|0,67108863),L._ishlnsubmul(H,h,j);while(L.negative!==0)if(h--,L.negative=0,L._ishlnsubmul(H,1,j),!L.isZero())L.negative^=1;if(O)O.words[j]=h}if(O)O.strip();if(L.strip(),K!=="div"&&F!==0)L.iushrn(F);return{div:O||null,mod:L}},Y.prototype.divmod=function(Q,K,F){if(_(!Q.isZero()),this.isZero())return{div:new Y(0),mod:new Y(0)};var L,H,v;if(this.negative!==0&&Q.negative===0){if(v=this.neg().divmod(Q,K),K!=="mod")L=v.div.neg();if(K!=="div"){if(H=v.mod.neg(),F&&H.negative!==0)H.iadd(Q)}return{div:L,mod:H}}if(this.negative===0&&Q.negative!==0){if(v=this.divmod(Q.neg(),K),K!=="mod")L=v.div.neg();return{div:L,mod:v.mod}}if((this.negative&Q.negative)!==0){if(v=this.neg().divmod(Q.neg(),K),K!=="div"){if(H=v.mod.neg(),F&&H.negative!==0)H.isub(Q)}return{div:v.div,mod:H}}if(Q.length>this.length||this.cmp(Q)<0)return{div:new Y(0),mod:this};if(Q.length===1){if(K==="div")return{div:this.divn(Q.words[0]),mod:null};if(K==="mod")return{div:null,mod:new Y(this.modn(Q.words[0]))};return{div:this.divn(Q.words[0]),mod:new Y(this.modn(Q.words[0]))}}return this._wordDiv(Q,K)},Y.prototype.div=function(Q){return this.divmod(Q,"div",!1).div},Y.prototype.mod=function(Q){return this.divmod(Q,"mod",!1).mod},Y.prototype.umod=function(Q){return this.divmod(Q,"mod",!0).mod},Y.prototype.divRound=function(Q){var K=this.divmod(Q);if(K.mod.isZero())return K.div;var F=K.div.negative!==0?K.mod.isub(Q):K.mod,L=Q.ushrn(1),H=Q.andln(1),v=F.cmp(L);if(v<0||H===1&&v===0)return K.div;return K.div.negative!==0?K.div.isubn(1):K.div.iaddn(1)},Y.prototype.modn=function(Q){_(Q<=67108863);var K=67108864%Q,F=0;for(var L=this.length-1;L>=0;L--)F=(K*F+(this.words[L]|0))%Q;return F},Y.prototype.idivn=function(Q){_(Q<=67108863);var K=0;for(var F=this.length-1;F>=0;F--){var L=(this.words[F]|0)+K*67108864;this.words[F]=L/Q|0,K=L%Q}return this.strip()},Y.prototype.divn=function(Q){return this.clone().idivn(Q)},Y.prototype.egcd=function(Q){_(Q.negative===0),_(!Q.isZero());var K=this,F=Q.clone();if(K.negative!==0)K=K.umod(Q);else K=K.clone();var L=new Y(1),H=new Y(0),v=new Y(0),q=new Y(1),P=0;while(K.isEven()&&F.isEven())K.iushrn(1),F.iushrn(1),++P;var O=F.clone(),A=K.clone();while(!K.isZero()){for(var k=0,j=1;(K.words[0]&j)===0&&k<26;++k,j<<=1);if(k>0){K.iushrn(k);while(k-- >0){if(L.isOdd()||H.isOdd())L.iadd(O),H.isub(A);L.iushrn(1),H.iushrn(1)}}for(var h=0,a=1;(F.words[0]&a)===0&&h<26;++h,a<<=1);if(h>0){F.iushrn(h);while(h-- >0){if(v.isOdd()||q.isOdd())v.iadd(O),q.isub(A);v.iushrn(1),q.iushrn(1)}}if(K.cmp(F)>=0)K.isub(F),L.isub(v),H.isub(q);else F.isub(K),v.isub(L),q.isub(H)}return{a:v,b:q,gcd:F.iushln(P)}},Y.prototype._invmp=function(Q){_(Q.negative===0),_(!Q.isZero());var K=this,F=Q.clone();if(K.negative!==0)K=K.umod(Q);else K=K.clone();var L=new Y(1),H=new Y(0),v=F.clone();while(K.cmpn(1)>0&&F.cmpn(1)>0){for(var q=0,P=1;(K.words[0]&P)===0&&q<26;++q,P<<=1);if(q>0){K.iushrn(q);while(q-- >0){if(L.isOdd())L.iadd(v);L.iushrn(1)}}for(var O=0,A=1;(F.words[0]&A)===0&&O<26;++O,A<<=1);if(O>0){F.iushrn(O);while(O-- >0){if(H.isOdd())H.iadd(v);H.iushrn(1)}}if(K.cmp(F)>=0)K.isub(F),L.isub(H);else F.isub(K),H.isub(L)}var k;if(K.cmpn(1)===0)k=L;else k=H;if(k.cmpn(0)<0)k.iadd(Q);return k},Y.prototype.gcd=function(Q){if(this.isZero())return Q.abs();if(Q.isZero())return this.abs();var K=this.clone(),F=Q.clone();K.negative=0,F.negative=0;for(var L=0;K.isEven()&&F.isEven();L++)K.iushrn(1),F.iushrn(1);do{while(K.isEven())K.iushrn(1);while(F.isEven())F.iushrn(1);var H=K.cmp(F);if(H<0){var v=K;K=F,F=v}else if(H===0||F.cmpn(1)===0)break;K.isub(F)}while(!0);return F.iushln(L)},Y.prototype.invm=function(Q){return this.egcd(Q).a.umod(Q)},Y.prototype.isEven=function(){return(this.words[0]&1)===0},Y.prototype.isOdd=function(){return(this.words[0]&1)===1},Y.prototype.andln=function(Q){return this.words[0]&Q},Y.prototype.bincn=function(Q){_(typeof Q==="number");var K=Q%26,F=(Q-K)/26,L=1<<K;if(this.length<=F)return this._expand(F+1),this.words[F]|=L,this;var H=L;for(var v=F;H!==0&&v<this.length;v++){var q=this.words[v]|0;q+=H,H=q>>>26,q&=67108863,this.words[v]=q}if(H!==0)this.words[v]=H,this.length++;return this},Y.prototype.isZero=function(){return this.length===1&&this.words[0]===0},Y.prototype.cmpn=function(Q){var K=Q<0;if(this.negative!==0&&!K)return-1;if(this.negative===0&&K)return 1;this.strip();var F;if(this.length>1)F=1;else{if(K)Q=-Q;_(Q<=67108863,"Number is too big");var L=this.words[0]|0;F=L===Q?0:L<Q?-1:1}if(this.negative!==0)return-F|0;return F},Y.prototype.cmp=function(Q){if(this.negative!==0&&Q.negative===0)return-1;if(this.negative===0&&Q.negative!==0)return 1;var K=this.ucmp(Q);if(this.negative!==0)return-K|0;return K},Y.prototype.ucmp=function(Q){if(this.length>Q.length)return 1;if(this.length<Q.length)return-1;var K=0;for(var F=this.length-1;F>=0;F--){var L=this.words[F]|0,H=Q.words[F]|0;if(L===H)continue;if(L<H)K=-1;else if(L>H)K=1;break}return K},Y.prototype.gtn=function(Q){return this.cmpn(Q)===1},Y.prototype.gt=function(Q){return this.cmp(Q)===1},Y.prototype.gten=function(Q){return this.cmpn(Q)>=0},Y.prototype.gte=function(Q){return this.cmp(Q)>=0},Y.prototype.ltn=function(Q){return this.cmpn(Q)===-1},Y.prototype.lt=function(Q){return this.cmp(Q)===-1},Y.prototype.lten=function(Q){return this.cmpn(Q)<=0},Y.prototype.lte=function(Q){return this.cmp(Q)<=0},Y.prototype.eqn=function(Q){return this.cmpn(Q)===0},Y.prototype.eq=function(Q){return this.cmp(Q)===0},Y.red=function(Q){return new t(Q)},Y.prototype.toRed=function(Q){return _(!this.red,"Already a number in reduction context"),_(this.negative===0,"red works only with positives"),Q.convertTo(this)._forceRed(Q)},Y.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},Y.prototype._forceRed=function(Q){return this.red=Q,this},Y.prototype.forceRed=function(Q){return _(!this.red,"Already a number in reduction context"),this._forceRed(Q)},Y.prototype.redAdd=function(Q){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,Q)},Y.prototype.redIAdd=function(Q){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Q)},Y.prototype.redSub=function(Q){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,Q)},Y.prototype.redISub=function(Q){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,Q)},Y.prototype.redShl=function(Q){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,Q)},Y.prototype.redMul=function(Q){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,Q),this.red.mul(this,Q)},Y.prototype.redIMul=function(Q){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,Q),this.red.imul(this,Q)},Y.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},Y.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},Y.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},Y.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},Y.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},Y.prototype.redPow=function(Q){return _(this.red&&!Q.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Q)};var l={k256:null,p224:null,p192:null,p25519:null};function i(Q,K){this.name=Q,this.p=new Y(K,16),this.n=this.p.bitLength(),this.k=new Y(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}i.prototype._tmp=function(){var Q=new Y(null);return Q.words=Array(Math.ceil(this.n/13)),Q},i.prototype.ireduce=function(Q){var K=Q,F;do this.split(K,this.tmp),K=this.imulK(K),K=K.iadd(this.tmp),F=K.bitLength();while(F>this.n);var L=F<this.n?-1:K.ucmp(this.p);if(L===0)K.words[0]=0,K.length=1;else if(L>0)K.isub(this.p);else if(K.strip!==void 0)K.strip();else K._strip();return K},i.prototype.split=function(Q,K){Q.iushrn(this.n,0,K)},i.prototype.imulK=function(Q){return Q.imul(this.k)};function $0(){i.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}J($0,i),$0.prototype.split=function(Q,K){var F=4194303,L=Math.min(Q.length,9);for(var H=0;H<L;H++)K.words[H]=Q.words[H];if(K.length=L,Q.length<=9){Q.words[0]=0,Q.length=1;return}var v=Q.words[9];K.words[K.length++]=v&F;for(H=10;H<Q.length;H++){var q=Q.words[H]|0;Q.words[H-10]=(q&F)<<4|v>>>22,v=q}if(v>>>=22,Q.words[H-10]=v,v===0&&Q.length>10)Q.length-=10;else Q.length-=9},$0.prototype.imulK=function(Q){Q.words[Q.length]=0,Q.words[Q.length+1]=0,Q.length+=2;var K=0;for(var F=0;F<Q.length;F++){var L=Q.words[F]|0;K+=L*977,Q.words[F]=K&67108863,K=L*64+(K/67108864|0)}if(Q.words[Q.length-1]===0){if(Q.length--,Q.words[Q.length-1]===0)Q.length--}return Q};function Q0(){i.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}J(Q0,i);function G0(){i.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}J(G0,i);function K0(){i.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}J(K0,i),K0.prototype.imulK=function(Q){var K=0;for(var F=0;F<Q.length;F++){var L=(Q.words[F]|0)*19+K,H=L&67108863;L>>>=26,Q.words[F]=H,K=L}if(K!==0)Q.words[Q.length++]=K;return Q},Y._prime=function(Q){if(l[Q])return l[Q];var K;if(Q==="k256")K=new $0;else if(Q==="p224")K=new Q0;else if(Q==="p192")K=new G0;else if(Q==="p25519")K=new K0;else throw Error("Unknown prime "+Q);return l[Q]=K,K};function t(Q){if(typeof Q==="string"){var K=Y._prime(Q);this.m=K.p,this.prime=K}else _(Q.gtn(1),"modulus must be greater than 1"),this.m=Q,this.prime=null}t.prototype._verify1=function(Q){_(Q.negative===0,"red works only with positives"),_(Q.red,"red works only with red numbers")},t.prototype._verify2=function(Q,K){_((Q.negative|K.negative)===0,"red works only with positives"),_(Q.red&&Q.red===K.red,"red works only with red numbers")},t.prototype.imod=function(Q){if(this.prime)return this.prime.ireduce(Q)._forceRed(this);return Q.umod(this.m)._forceRed(this)},t.prototype.neg=function(Q){if(Q.isZero())return Q.clone();return this.m.sub(Q)._forceRed(this)},t.prototype.add=function(Q,K){this._verify2(Q,K);var F=Q.add(K);if(F.cmp(this.m)>=0)F.isub(this.m);return F._forceRed(this)},t.prototype.iadd=function(Q,K){this._verify2(Q,K);var F=Q.iadd(K);if(F.cmp(this.m)>=0)F.isub(this.m);return F},t.prototype.sub=function(Q,K){this._verify2(Q,K);var F=Q.sub(K);if(F.cmpn(0)<0)F.iadd(this.m);return F._forceRed(this)},t.prototype.isub=function(Q,K){this._verify2(Q,K);var F=Q.isub(K);if(F.cmpn(0)<0)F.iadd(this.m);return F},t.prototype.shl=function(Q,K){return this._verify1(Q),this.imod(Q.ushln(K))},t.prototype.imul=function(Q,K){return this._verify2(Q,K),this.imod(Q.imul(K))},t.prototype.mul=function(Q,K){return this._verify2(Q,K),this.imod(Q.mul(K))},t.prototype.isqr=function(Q){return this.imul(Q,Q.clone())},t.prototype.sqr=function(Q){return this.mul(Q,Q)},t.prototype.sqrt=function(Q){if(Q.isZero())return Q.clone();var K=this.m.andln(3);if(_(K%2===1),K===3){var F=this.m.add(new Y(1)).iushrn(2);return this.pow(Q,F)}var L=this.m.subn(1),H=0;while(!L.isZero()&&L.andln(1)===0)H++,L.iushrn(1);_(!L.isZero());var v=new Y(1).toRed(this),q=v.redNeg(),P=this.m.subn(1).iushrn(1),O=this.m.bitLength();O=new Y(2*O*O).toRed(this);while(this.pow(O,P).cmp(q)!==0)O.redIAdd(q);var A=this.pow(O,L),k=this.pow(Q,L.addn(1).iushrn(1)),j=this.pow(Q,L),h=H;while(j.cmp(v)!==0){var a=j;for(var J0=0;a.cmp(v)!==0;J0++)a=a.redSqr();_(J0<h);var D0=this.pow(A,new Y(1).iushln(h-J0-1));k=k.redMul(D0),A=D0.redSqr(),j=j.redMul(A),h=J0}return k},t.prototype.invm=function(Q){var K=Q._invmp(this.m);if(K.negative!==0)return K.negative=0,this.imod(K).redNeg();else return this.imod(K)},t.prototype.pow=function(Q,K){if(K.isZero())return new Y(1).toRed(this);if(K.cmpn(1)===0)return Q.clone();var F=4,L=Array(1<<F);L[0]=new Y(1).toRed(this),L[1]=Q;for(var H=2;H<L.length;H++)L[H]=this.mul(L[H-1],Q);var v=L[0],q=0,P=0,O=K.bitLength()%26;if(O===0)O=26;for(H=K.length-1;H>=0;H--){var A=K.words[H];for(var k=O-1;k>=0;k--){var j=A>>k&1;if(v!==L[0])v=this.sqr(v);if(j===0&&q===0){P=0;continue}if(q<<=1,q|=j,P++,P!==F&&(H!==0||k!==0))continue;v=this.mul(v,L[q]),P=0,q=0}O=26}return v},t.prototype.convertTo=function(Q){var K=Q.umod(this.m);return K===Q?K.clone():K},t.prototype.convertFrom=function(Q){var K=Q.clone();return K.red=null,K},Y.mont=function(Q){return new P0(Q)};function P0(Q){if(t.call(this,Q),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new Y(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}J(P0,t),P0.prototype.convertTo=function(Q){return this.imod(Q.ushln(this.shift))},P0.prototype.convertFrom=function(Q){var K=this.imod(Q.mul(this.rinv));return K.red=null,K},P0.prototype.imul=function(Q,K){if(Q.isZero()||K.isZero())return Q.words[0]=0,Q.length=1,Q;var F=Q.imul(K),L=F.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),H=F.isub(L).iushrn(this.shift),v=H;if(H.cmp(this.m)>=0)v=H.isub(this.m);else if(H.cmpn(0)<0)v=H.iadd(this.m);return v._forceRed(this)},P0.prototype.mul=function(Q,K){if(Q.isZero()||K.isZero())return new Y(0)._forceRed(this);var F=Q.mul(K),L=F.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),H=F.isub(L).iushrn(this.shift),v=H;if(H.cmp(this.m)>=0)v=H.isub(this.m);else if(H.cmpn(0)<0)v=H.iadd(this.m);return v._forceRed(this)},P0.prototype.invm=function(Q){var K=this.imod(Q._invmp(this.m).mul(this.r2));return K._forceRed(this)}})(typeof I>"u"||I,$)}),UB=$$(($,I)=>{var G=ZW(),Z=oU().Buffer;function _(J,Y){return Z.from(J.toRed(G.mont(Y.modulus)).redPow(new G(Y.publicExponent)).fromRed().toArray())}I.exports=_}),Tn=$$(($,I)=>{(function(G,Z){function _(L,H){if(!L)throw Error(H||"Assertion failed")}function J(L,H){L.super_=H;var v=function(){};v.prototype=H.prototype,L.prototype=new v,L.prototype.constructor=L}function Y(L,H,v){if(Y.isBN(L))return L;if(this.negative=0,this.words=null,this.length=0,this.red=null,L!==null){if(H==="le"||H==="be")v=H,H=10;this._init(L||0,H||10,v||"be")}}if(typeof G==="object")G.exports=Y;else Z.BN=Y;Y.BN=Y,Y.wordSize=26;var W;try{if(typeof window<"u"&&typeof window.Buffer<"u")W=window.Buffer;else W=(u1(),V$(h1)).Buffer}catch(L){}Y.isBN=function(L){if(L instanceof Y)return!0;return L!==null&&typeof L==="object"&&L.constructor.wordSize===Y.wordSize&&Array.isArray(L.words)},Y.max=function(L,H){if(L.cmp(H)>0)return L;return H},Y.min=function(L,H){if(L.cmp(H)<0)return L;return H},Y.prototype._init=function(L,H,v){if(typeof L==="number")return this._initNumber(L,H,v);if(typeof L==="object")return this._initArray(L,H,v);if(H==="hex")H=16;_(H===(H|0)&&H>=2&&H<=36),L=L.toString().replace(/\s+/g,"");var q=0;if(L[0]==="-")q++,this.negative=1;if(q<L.length){if(H===16)this._parseHex(L,q,v);else if(this._parseBase(L,H,q),v==="le")this._initArray(this.toArray(),H,v)}},Y.prototype._initNumber=function(L,H,v){if(L<0)this.negative=1,L=-L;if(L<67108864)this.words=[L&67108863],this.length=1;else if(L<4503599627370496)this.words=[L&67108863,L/67108864&67108863],this.length=2;else _(L<9007199254740992),this.words=[L&67108863,L/67108864&67108863,1],this.length=3;if(v!=="le")return;this._initArray(this.toArray(),H,v)},Y.prototype._initArray=function(L,H,v){if(_(typeof L.length==="number"),L.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(L.length/3),this.words=Array(this.length);for(var q=0;q<this.length;q++)this.words[q]=0;var P,O,A=0;if(v==="be"){for(q=L.length-1,P=0;q>=0;q-=3)if(O=L[q]|L[q-1]<<8|L[q-2]<<16,this.words[P]|=O<<A&67108863,this.words[P+1]=O>>>26-A&67108863,A+=24,A>=26)A-=26,P++}else if(v==="le"){for(q=0,P=0;q<L.length;q+=3)if(O=L[q]|L[q+1]<<8|L[q+2]<<16,this.words[P]|=O<<A&67108863,this.words[P+1]=O>>>26-A&67108863,A+=24,A>=26)A-=26,P++}return this._strip()};function R(L,H){var v=L.charCodeAt(H);if(v>=48&&v<=57)return v-48;else if(v>=65&&v<=70)return v-55;else if(v>=97&&v<=102)return v-87;else _(!1,"Invalid character in "+L)}function M(L,H,v){var q=R(L,v);if(v-1>=H)q|=R(L,v-1)<<4;return q}Y.prototype._parseHex=function(L,H,v){this.length=Math.ceil((L.length-H)/6),this.words=Array(this.length);for(var q=0;q<this.length;q++)this.words[q]=0;var P=0,O=0,A;if(v==="be")for(q=L.length-1;q>=H;q-=2)if(A=M(L,H,q)<<P,this.words[O]|=A&67108863,P>=18)P-=18,O+=1,this.words[O]|=A>>>26;else P+=8;else{var k=L.length-H;for(q=k%2===0?H+1:H;q<L.length;q+=2)if(A=M(L,H,q)<<P,this.words[O]|=A&67108863,P>=18)P-=18,O+=1,this.words[O]|=A>>>26;else P+=8}this._strip()};function E(L,H,v,q){var P=0,O=0,A=Math.min(L.length,v);for(var k=H;k<A;k++){var j=L.charCodeAt(k)-48;if(P*=q,j>=49)O=j-49+10;else if(j>=17)O=j-17+10;else O=j;_(j>=0&&O<q,"Invalid character"),P+=O}return P}Y.prototype._parseBase=function(L,H,v){this.words=[0],this.length=1;for(var q=0,P=1;P<=67108863;P*=H)q++;q--,P=P/H|0;var O=L.length-v,A=O%q,k=Math.min(O,O-A)+v,j=0;for(var h=v;h<k;h+=q)if(j=E(L,h,h+q,H),this.imuln(P),this.words[0]+j<67108864)this.words[0]+=j;else this._iaddn(j);if(A!==0){var a=1;j=E(L,h,L.length,H);for(h=0;h<A;h++)a*=H;if(this.imuln(a),this.words[0]+j<67108864)this.words[0]+=j;else this._iaddn(j)}this._strip()},Y.prototype.copy=function(L){L.words=Array(this.length);for(var H=0;H<this.length;H++)L.words[H]=this.words[H];L.length=this.length,L.negative=this.negative,L.red=this.red};function T(L,H){L.words=H.words,L.length=H.length,L.negative=H.negative,L.red=H.red}if(Y.prototype._move=function(L){T(L,this)},Y.prototype.clone=function(){var L=new Y(null);return this.copy(L),L},Y.prototype._expand=function(L){while(this.length<L)this.words[this.length++]=0;return this},Y.prototype._strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},Y.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},typeof Symbol<"u"&&typeof Symbol.for==="function")try{Y.prototype[Symbol.for("nodejs.util.inspect.custom")]=S}catch(L){Y.prototype.inspect=S}else Y.prototype.inspect=S;function S(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var N=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],B=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],x=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(Y.prototype.toString=function(L,H){L=L||10,H=H|0||1;var v;if(L===16||L==="hex"){v="";var q=0,P=0;for(var O=0;O<this.length;O++){var A=this.words[O],k=((A<<q|P)&16777215).toString(16);if(P=A>>>24-q&16777215,q+=2,q>=26)q-=26,O--;if(P!==0||O!==this.length-1)v=N[6-k.length]+k+v;else v=k+v}if(P!==0)v=P.toString(16)+v;while(v.length%H!==0)v="0"+v;if(this.negative!==0)v="-"+v;return v}if(L===(L|0)&&L>=2&&L<=36){var j=B[L],h=x[L];v="";var a=this.clone();a.negative=0;while(!a.isZero()){var J0=a.modrn(h).toString(L);if(a=a.idivn(h),!a.isZero())v=N[j-J0.length]+J0+v;else v=J0+v}if(this.isZero())v="0"+v;while(v.length%H!==0)v="0"+v;if(this.negative!==0)v="-"+v;return v}_(!1,"Base should be between 2 and 36")},Y.prototype.toNumber=function(){var L=this.words[0];if(this.length===2)L+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)L+=4503599627370496+this.words[1]*67108864;else if(this.length>2)_(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-L:L},Y.prototype.toJSON=function(){return this.toString(16,2)},W)Y.prototype.toBuffer=function(L,H){return this.toArrayLike(W,L,H)};Y.prototype.toArray=function(L,H){return this.toArrayLike(Array,L,H)};var w=function(L,H){if(L.allocUnsafe)return L.allocUnsafe(H);return new L(H)};if(Y.prototype.toArrayLike=function(L,H,v){this._strip();var q=this.byteLength(),P=v||Math.max(1,q);_(q<=P,"byte array longer than desired length"),_(P>0,"Requested array length <= 0");var O=w(L,P),A=H==="le"?"LE":"BE";return this["_toArrayLike"+A](O,q),O},Y.prototype._toArrayLikeLE=function(L,H){var v=0,q=0;for(var P=0,O=0;P<this.length;P++){var A=this.words[P]<<O|q;if(L[v++]=A&255,v<L.length)L[v++]=A>>8&255;if(v<L.length)L[v++]=A>>16&255;if(O===6){if(v<L.length)L[v++]=A>>24&255;q=0,O=0}else q=A>>>24,O+=2}if(v<L.length){L[v++]=q;while(v<L.length)L[v++]=0}},Y.prototype._toArrayLikeBE=function(L,H){var v=L.length-1,q=0;for(var P=0,O=0;P<this.length;P++){var A=this.words[P]<<O|q;if(L[v--]=A&255,v>=0)L[v--]=A>>8&255;if(v>=0)L[v--]=A>>16&255;if(O===6){if(v>=0)L[v--]=A>>24&255;q=0,O=0}else q=A>>>24,O+=2}if(v>=0){L[v--]=q;while(v>=0)L[v--]=0}},Math.clz32)Y.prototype._countBits=function(L){return 32-Math.clz32(L)};else Y.prototype._countBits=function(L){var H=L,v=0;if(H>=4096)v+=13,H>>>=13;if(H>=64)v+=7,H>>>=7;if(H>=8)v+=4,H>>>=4;if(H>=2)v+=2,H>>>=2;return v+H};Y.prototype._zeroBits=function(L){if(L===0)return 26;var H=L,v=0;if((H&8191)===0)v+=13,H>>>=13;if((H&127)===0)v+=7,H>>>=7;if((H&15)===0)v+=4,H>>>=4;if((H&3)===0)v+=2,H>>>=2;if((H&1)===0)v++;return v},Y.prototype.bitLength=function(){var L=this.words[this.length-1],H=this._countBits(L);return(this.length-1)*26+H};function y(L){var H=Array(L.bitLength());for(var v=0;v<H.length;v++){var q=v/26|0,P=v%26;H[v]=L.words[q]>>>P&1}return H}Y.prototype.zeroBits=function(){if(this.isZero())return 0;var L=0;for(var H=0;H<this.length;H++){var v=this._zeroBits(this.words[H]);if(L+=v,v!==26)break}return L},Y.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},Y.prototype.toTwos=function(L){if(this.negative!==0)return this.abs().inotn(L).iaddn(1);return this.clone()},Y.prototype.fromTwos=function(L){if(this.testn(L-1))return this.notn(L).iaddn(1).ineg();return this.clone()},Y.prototype.isNeg=function(){return this.negative!==0},Y.prototype.neg=function(){return this.clone().ineg()},Y.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},Y.prototype.iuor=function(L){while(this.length<L.length)this.words[this.length++]=0;for(var H=0;H<L.length;H++)this.words[H]=this.words[H]|L.words[H];return this._strip()},Y.prototype.ior=function(L){return _((this.negative|L.negative)===0),this.iuor(L)},Y.prototype.or=function(L){if(this.length>L.length)return this.clone().ior(L);return L.clone().ior(this)},Y.prototype.uor=function(L){if(this.length>L.length)return this.clone().iuor(L);return L.clone().iuor(this)},Y.prototype.iuand=function(L){var H;if(this.length>L.length)H=L;else H=this;for(var v=0;v<H.length;v++)this.words[v]=this.words[v]&L.words[v];return this.length=H.length,this._strip()},Y.prototype.iand=function(L){return _((this.negative|L.negative)===0),this.iuand(L)},Y.prototype.and=function(L){if(this.length>L.length)return this.clone().iand(L);return L.clone().iand(this)},Y.prototype.uand=function(L){if(this.length>L.length)return this.clone().iuand(L);return L.clone().iuand(this)},Y.prototype.iuxor=function(L){var H,v;if(this.length>L.length)H=this,v=L;else H=L,v=this;for(var q=0;q<v.length;q++)this.words[q]=H.words[q]^v.words[q];if(this!==H)for(;q<H.length;q++)this.words[q]=H.words[q];return this.length=H.length,this._strip()},Y.prototype.ixor=function(L){return _((this.negative|L.negative)===0),this.iuxor(L)},Y.prototype.xor=function(L){if(this.length>L.length)return this.clone().ixor(L);return L.clone().ixor(this)},Y.prototype.uxor=function(L){if(this.length>L.length)return this.clone().iuxor(L);return L.clone().iuxor(this)},Y.prototype.inotn=function(L){_(typeof L==="number"&&L>=0);var H=Math.ceil(L/26)|0,v=L%26;if(this._expand(H),v>0)H--;for(var q=0;q<H;q++)this.words[q]=~this.words[q]&67108863;if(v>0)this.words[q]=~this.words[q]&67108863>>26-v;return this._strip()},Y.prototype.notn=function(L){return this.clone().inotn(L)},Y.prototype.setn=function(L,H){_(typeof L==="number"&&L>=0);var v=L/26|0,q=L%26;if(this._expand(v+1),H)this.words[v]=this.words[v]|1<<q;else this.words[v]=this.words[v]&~(1<<q);return this._strip()},Y.prototype.iadd=function(L){var H;if(this.negative!==0&&L.negative===0)return this.negative=0,H=this.isub(L),this.negative^=1,this._normSign();else if(this.negative===0&&L.negative!==0)return L.negative=0,H=this.isub(L),L.negative=1,H._normSign();var v,q;if(this.length>L.length)v=this,q=L;else v=L,q=this;var P=0;for(var O=0;O<q.length;O++)H=(v.words[O]|0)+(q.words[O]|0)+P,this.words[O]=H&67108863,P=H>>>26;for(;P!==0&&O<v.length;O++)H=(v.words[O]|0)+P,this.words[O]=H&67108863,P=H>>>26;if(this.length=v.length,P!==0)this.words[this.length]=P,this.length++;else if(v!==this)for(;O<v.length;O++)this.words[O]=v.words[O];return this},Y.prototype.add=function(L){var H;if(L.negative!==0&&this.negative===0)return L.negative=0,H=this.sub(L),L.negative^=1,H;else if(L.negative===0&&this.negative!==0)return this.negative=0,H=L.sub(this),this.negative=1,H;if(this.length>L.length)return this.clone().iadd(L);return L.clone().iadd(this)},Y.prototype.isub=function(L){if(L.negative!==0){L.negative=0;var H=this.iadd(L);return L.negative=1,H._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(L),this.negative=1,this._normSign();var v=this.cmp(L);if(v===0)return this.negative=0,this.length=1,this.words[0]=0,this;var q,P;if(v>0)q=this,P=L;else q=L,P=this;var O=0;for(var A=0;A<P.length;A++)H=(q.words[A]|0)-(P.words[A]|0)+O,O=H>>26,this.words[A]=H&67108863;for(;O!==0&&A<q.length;A++)H=(q.words[A]|0)+O,O=H>>26,this.words[A]=H&67108863;if(O===0&&A<q.length&&q!==this)for(;A<q.length;A++)this.words[A]=q.words[A];if(this.length=Math.max(this.length,A),q!==this)this.negative=1;return this._strip()},Y.prototype.sub=function(L){return this.clone().isub(L)};function g(L,H,v){v.negative=H.negative^L.negative;var q=L.length+H.length|0;v.length=q,q=q-1|0;var P=L.words[0]|0,O=H.words[0]|0,A=P*O,k=A&67108863,j=A/67108864|0;v.words[0]=k;for(var h=1;h<q;h++){var a=j>>>26,J0=j&67108863,D0=Math.min(h,H.length-1);for(var O0=Math.max(0,h-L.length+1);O0<=D0;O0++){var d=h-O0|0;P=L.words[d]|0,O=H.words[O0]|0,A=P*O+J0,a+=A/67108864|0,J0=A&67108863}v.words[h]=J0|0,j=a|0}if(j!==0)v.words[h]=j|0;else v.length--;return v._strip()}var b=function(L,H,v){var q=L.words,P=H.words,O=v.words,A=0,k,j,h,a=q[0]|0,J0=a&8191,D0=a>>>13,O0=q[1]|0,d=O0&8191,m=O0>>>13,r=q[2]|0,Y0=r&8191,W0=r>>>13,I0=q[3]|0,c=I0&8191,s=I0>>>13,S0=q[4]|0,M0=S0&8191,z0=S0>>>13,c0=q[5]|0,F0=c0&8191,q0=c0>>>13,s0=q[6]|0,k0=s0&8191,n0=s0>>>13,M$=q[7]|0,T0=M$&8191,V0=M$>>>13,X$=q[8]|0,p0=X$&8191,l0=X$>>>13,L0=q[9]|0,N0=L0&8191,B0=L0>>>13,Y$=P[0]|0,u=Y$&8191,_0=Y$>>>13,o=P[1]|0,R0=o&8191,x0=o>>>13,p=P[2]|0,A0=p&8191,v0=p>>>13,X0=P[3]|0,H0=X0&8191,C0=X0>>>13,H$=P[4]|0,d0=H$&8191,e=H$>>>13,E0=P[5]|0,b0=E0&8191,f0=E0>>>13,z$=P[6]|0,a0=z$&8191,U$=z$>>>13,c$=P[7]|0,K$=c$&8191,L$=c$>>>13,B$=P[8]|0,Z$=B$&8191,I$=B$>>>13,I1=P[9]|0,C$=I1&8191,g$=I1>>>13;v.negative=L.negative^H.negative,v.length=19,k=Math.imul(J0,u),j=Math.imul(J0,_0),j=j+Math.imul(D0,u)|0,h=Math.imul(D0,_0);var z1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(z1>>>26)|0,z1&=67108863,k=Math.imul(d,u),j=Math.imul(d,_0),j=j+Math.imul(m,u)|0,h=Math.imul(m,_0),k=k+Math.imul(J0,R0)|0,j=j+Math.imul(J0,x0)|0,j=j+Math.imul(D0,R0)|0,h=h+Math.imul(D0,x0)|0;var U1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(U1>>>26)|0,U1&=67108863,k=Math.imul(Y0,u),j=Math.imul(Y0,_0),j=j+Math.imul(W0,u)|0,h=Math.imul(W0,_0),k=k+Math.imul(d,R0)|0,j=j+Math.imul(d,x0)|0,j=j+Math.imul(m,R0)|0,h=h+Math.imul(m,x0)|0,k=k+Math.imul(J0,A0)|0,j=j+Math.imul(J0,v0)|0,j=j+Math.imul(D0,A0)|0,h=h+Math.imul(D0,v0)|0;var o1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(o1>>>26)|0,o1&=67108863,k=Math.imul(c,u),j=Math.imul(c,_0),j=j+Math.imul(s,u)|0,h=Math.imul(s,_0),k=k+Math.imul(Y0,R0)|0,j=j+Math.imul(Y0,x0)|0,j=j+Math.imul(W0,R0)|0,h=h+Math.imul(W0,x0)|0,k=k+Math.imul(d,A0)|0,j=j+Math.imul(d,v0)|0,j=j+Math.imul(m,A0)|0,h=h+Math.imul(m,v0)|0,k=k+Math.imul(J0,H0)|0,j=j+Math.imul(J0,C0)|0,j=j+Math.imul(D0,H0)|0,h=h+Math.imul(D0,C0)|0;var t1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(t1>>>26)|0,t1&=67108863,k=Math.imul(M0,u),j=Math.imul(M0,_0),j=j+Math.imul(z0,u)|0,h=Math.imul(z0,_0),k=k+Math.imul(c,R0)|0,j=j+Math.imul(c,x0)|0,j=j+Math.imul(s,R0)|0,h=h+Math.imul(s,x0)|0,k=k+Math.imul(Y0,A0)|0,j=j+Math.imul(Y0,v0)|0,j=j+Math.imul(W0,A0)|0,h=h+Math.imul(W0,v0)|0,k=k+Math.imul(d,H0)|0,j=j+Math.imul(d,C0)|0,j=j+Math.imul(m,H0)|0,h=h+Math.imul(m,C0)|0,k=k+Math.imul(J0,d0)|0,j=j+Math.imul(J0,e)|0,j=j+Math.imul(D0,d0)|0,h=h+Math.imul(D0,e)|0;var r1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(r1>>>26)|0,r1&=67108863,k=Math.imul(F0,u),j=Math.imul(F0,_0),j=j+Math.imul(q0,u)|0,h=Math.imul(q0,_0),k=k+Math.imul(M0,R0)|0,j=j+Math.imul(M0,x0)|0,j=j+Math.imul(z0,R0)|0,h=h+Math.imul(z0,x0)|0,k=k+Math.imul(c,A0)|0,j=j+Math.imul(c,v0)|0,j=j+Math.imul(s,A0)|0,h=h+Math.imul(s,v0)|0,k=k+Math.imul(Y0,H0)|0,j=j+Math.imul(Y0,C0)|0,j=j+Math.imul(W0,H0)|0,h=h+Math.imul(W0,C0)|0,k=k+Math.imul(d,d0)|0,j=j+Math.imul(d,e)|0,j=j+Math.imul(m,d0)|0,h=h+Math.imul(m,e)|0,k=k+Math.imul(J0,b0)|0,j=j+Math.imul(J0,f0)|0,j=j+Math.imul(D0,b0)|0,h=h+Math.imul(D0,f0)|0;var a1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(a1>>>26)|0,a1&=67108863,k=Math.imul(k0,u),j=Math.imul(k0,_0),j=j+Math.imul(n0,u)|0,h=Math.imul(n0,_0),k=k+Math.imul(F0,R0)|0,j=j+Math.imul(F0,x0)|0,j=j+Math.imul(q0,R0)|0,h=h+Math.imul(q0,x0)|0,k=k+Math.imul(M0,A0)|0,j=j+Math.imul(M0,v0)|0,j=j+Math.imul(z0,A0)|0,h=h+Math.imul(z0,v0)|0,k=k+Math.imul(c,H0)|0,j=j+Math.imul(c,C0)|0,j=j+Math.imul(s,H0)|0,h=h+Math.imul(s,C0)|0,k=k+Math.imul(Y0,d0)|0,j=j+Math.imul(Y0,e)|0,j=j+Math.imul(W0,d0)|0,h=h+Math.imul(W0,e)|0,k=k+Math.imul(d,b0)|0,j=j+Math.imul(d,f0)|0,j=j+Math.imul(m,b0)|0,h=h+Math.imul(m,f0)|0,k=k+Math.imul(J0,a0)|0,j=j+Math.imul(J0,U$)|0,j=j+Math.imul(D0,a0)|0,h=h+Math.imul(D0,U$)|0;var s1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(s1>>>26)|0,s1&=67108863,k=Math.imul(T0,u),j=Math.imul(T0,_0),j=j+Math.imul(V0,u)|0,h=Math.imul(V0,_0),k=k+Math.imul(k0,R0)|0,j=j+Math.imul(k0,x0)|0,j=j+Math.imul(n0,R0)|0,h=h+Math.imul(n0,x0)|0,k=k+Math.imul(F0,A0)|0,j=j+Math.imul(F0,v0)|0,j=j+Math.imul(q0,A0)|0,h=h+Math.imul(q0,v0)|0,k=k+Math.imul(M0,H0)|0,j=j+Math.imul(M0,C0)|0,j=j+Math.imul(z0,H0)|0,h=h+Math.imul(z0,C0)|0,k=k+Math.imul(c,d0)|0,j=j+Math.imul(c,e)|0,j=j+Math.imul(s,d0)|0,h=h+Math.imul(s,e)|0,k=k+Math.imul(Y0,b0)|0,j=j+Math.imul(Y0,f0)|0,j=j+Math.imul(W0,b0)|0,h=h+Math.imul(W0,f0)|0,k=k+Math.imul(d,a0)|0,j=j+Math.imul(d,U$)|0,j=j+Math.imul(m,a0)|0,h=h+Math.imul(m,U$)|0,k=k+Math.imul(J0,K$)|0,j=j+Math.imul(J0,L$)|0,j=j+Math.imul(D0,K$)|0,h=h+Math.imul(D0,L$)|0;var Y1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(Y1>>>26)|0,Y1&=67108863,k=Math.imul(p0,u),j=Math.imul(p0,_0),j=j+Math.imul(l0,u)|0,h=Math.imul(l0,_0),k=k+Math.imul(T0,R0)|0,j=j+Math.imul(T0,x0)|0,j=j+Math.imul(V0,R0)|0,h=h+Math.imul(V0,x0)|0,k=k+Math.imul(k0,A0)|0,j=j+Math.imul(k0,v0)|0,j=j+Math.imul(n0,A0)|0,h=h+Math.imul(n0,v0)|0,k=k+Math.imul(F0,H0)|0,j=j+Math.imul(F0,C0)|0,j=j+Math.imul(q0,H0)|0,h=h+Math.imul(q0,C0)|0,k=k+Math.imul(M0,d0)|0,j=j+Math.imul(M0,e)|0,j=j+Math.imul(z0,d0)|0,h=h+Math.imul(z0,e)|0,k=k+Math.imul(c,b0)|0,j=j+Math.imul(c,f0)|0,j=j+Math.imul(s,b0)|0,h=h+Math.imul(s,f0)|0,k=k+Math.imul(Y0,a0)|0,j=j+Math.imul(Y0,U$)|0,j=j+Math.imul(W0,a0)|0,h=h+Math.imul(W0,U$)|0,k=k+Math.imul(d,K$)|0,j=j+Math.imul(d,L$)|0,j=j+Math.imul(m,K$)|0,h=h+Math.imul(m,L$)|0,k=k+Math.imul(J0,Z$)|0,j=j+Math.imul(J0,I$)|0,j=j+Math.imul(D0,Z$)|0,h=h+Math.imul(D0,I$)|0;var S1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(S1>>>26)|0,S1&=67108863,k=Math.imul(N0,u),j=Math.imul(N0,_0),j=j+Math.imul(B0,u)|0,h=Math.imul(B0,_0),k=k+Math.imul(p0,R0)|0,j=j+Math.imul(p0,x0)|0,j=j+Math.imul(l0,R0)|0,h=h+Math.imul(l0,x0)|0,k=k+Math.imul(T0,A0)|0,j=j+Math.imul(T0,v0)|0,j=j+Math.imul(V0,A0)|0,h=h+Math.imul(V0,v0)|0,k=k+Math.imul(k0,H0)|0,j=j+Math.imul(k0,C0)|0,j=j+Math.imul(n0,H0)|0,h=h+Math.imul(n0,C0)|0,k=k+Math.imul(F0,d0)|0,j=j+Math.imul(F0,e)|0,j=j+Math.imul(q0,d0)|0,h=h+Math.imul(q0,e)|0,k=k+Math.imul(M0,b0)|0,j=j+Math.imul(M0,f0)|0,j=j+Math.imul(z0,b0)|0,h=h+Math.imul(z0,f0)|0,k=k+Math.imul(c,a0)|0,j=j+Math.imul(c,U$)|0,j=j+Math.imul(s,a0)|0,h=h+Math.imul(s,U$)|0,k=k+Math.imul(Y0,K$)|0,j=j+Math.imul(Y0,L$)|0,j=j+Math.imul(W0,K$)|0,h=h+Math.imul(W0,L$)|0,k=k+Math.imul(d,Z$)|0,j=j+Math.imul(d,I$)|0,j=j+Math.imul(m,Z$)|0,h=h+Math.imul(m,I$)|0,k=k+Math.imul(J0,C$)|0,j=j+Math.imul(J0,g$)|0,j=j+Math.imul(D0,C$)|0,h=h+Math.imul(D0,g$)|0;var R1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(R1>>>26)|0,R1&=67108863,k=Math.imul(N0,R0),j=Math.imul(N0,x0),j=j+Math.imul(B0,R0)|0,h=Math.imul(B0,x0),k=k+Math.imul(p0,A0)|0,j=j+Math.imul(p0,v0)|0,j=j+Math.imul(l0,A0)|0,h=h+Math.imul(l0,v0)|0,k=k+Math.imul(T0,H0)|0,j=j+Math.imul(T0,C0)|0,j=j+Math.imul(V0,H0)|0,h=h+Math.imul(V0,C0)|0,k=k+Math.imul(k0,d0)|0,j=j+Math.imul(k0,e)|0,j=j+Math.imul(n0,d0)|0,h=h+Math.imul(n0,e)|0,k=k+Math.imul(F0,b0)|0,j=j+Math.imul(F0,f0)|0,j=j+Math.imul(q0,b0)|0,h=h+Math.imul(q0,f0)|0,k=k+Math.imul(M0,a0)|0,j=j+Math.imul(M0,U$)|0,j=j+Math.imul(z0,a0)|0,h=h+Math.imul(z0,U$)|0,k=k+Math.imul(c,K$)|0,j=j+Math.imul(c,L$)|0,j=j+Math.imul(s,K$)|0,h=h+Math.imul(s,L$)|0,k=k+Math.imul(Y0,Z$)|0,j=j+Math.imul(Y0,I$)|0,j=j+Math.imul(W0,Z$)|0,h=h+Math.imul(W0,I$)|0,k=k+Math.imul(d,C$)|0,j=j+Math.imul(d,g$)|0,j=j+Math.imul(m,C$)|0,h=h+Math.imul(m,g$)|0;var e1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(e1>>>26)|0,e1&=67108863,k=Math.imul(N0,A0),j=Math.imul(N0,v0),j=j+Math.imul(B0,A0)|0,h=Math.imul(B0,v0),k=k+Math.imul(p0,H0)|0,j=j+Math.imul(p0,C0)|0,j=j+Math.imul(l0,H0)|0,h=h+Math.imul(l0,C0)|0,k=k+Math.imul(T0,d0)|0,j=j+Math.imul(T0,e)|0,j=j+Math.imul(V0,d0)|0,h=h+Math.imul(V0,e)|0,k=k+Math.imul(k0,b0)|0,j=j+Math.imul(k0,f0)|0,j=j+Math.imul(n0,b0)|0,h=h+Math.imul(n0,f0)|0,k=k+Math.imul(F0,a0)|0,j=j+Math.imul(F0,U$)|0,j=j+Math.imul(q0,a0)|0,h=h+Math.imul(q0,U$)|0,k=k+Math.imul(M0,K$)|0,j=j+Math.imul(M0,L$)|0,j=j+Math.imul(z0,K$)|0,h=h+Math.imul(z0,L$)|0,k=k+Math.imul(c,Z$)|0,j=j+Math.imul(c,I$)|0,j=j+Math.imul(s,Z$)|0,h=h+Math.imul(s,I$)|0,k=k+Math.imul(Y0,C$)|0,j=j+Math.imul(Y0,g$)|0,j=j+Math.imul(W0,C$)|0,h=h+Math.imul(W0,g$)|0;var B1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(B1>>>26)|0,B1&=67108863,k=Math.imul(N0,H0),j=Math.imul(N0,C0),j=j+Math.imul(B0,H0)|0,h=Math.imul(B0,C0),k=k+Math.imul(p0,d0)|0,j=j+Math.imul(p0,e)|0,j=j+Math.imul(l0,d0)|0,h=h+Math.imul(l0,e)|0,k=k+Math.imul(T0,b0)|0,j=j+Math.imul(T0,f0)|0,j=j+Math.imul(V0,b0)|0,h=h+Math.imul(V0,f0)|0,k=k+Math.imul(k0,a0)|0,j=j+Math.imul(k0,U$)|0,j=j+Math.imul(n0,a0)|0,h=h+Math.imul(n0,U$)|0,k=k+Math.imul(F0,K$)|0,j=j+Math.imul(F0,L$)|0,j=j+Math.imul(q0,K$)|0,h=h+Math.imul(q0,L$)|0,k=k+Math.imul(M0,Z$)|0,j=j+Math.imul(M0,I$)|0,j=j+Math.imul(z0,Z$)|0,h=h+Math.imul(z0,I$)|0,k=k+Math.imul(c,C$)|0,j=j+Math.imul(c,g$)|0,j=j+Math.imul(s,C$)|0,h=h+Math.imul(s,g$)|0;var f1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(f1>>>26)|0,f1&=67108863,k=Math.imul(N0,d0),j=Math.imul(N0,e),j=j+Math.imul(B0,d0)|0,h=Math.imul(B0,e),k=k+Math.imul(p0,b0)|0,j=j+Math.imul(p0,f0)|0,j=j+Math.imul(l0,b0)|0,h=h+Math.imul(l0,f0)|0,k=k+Math.imul(T0,a0)|0,j=j+Math.imul(T0,U$)|0,j=j+Math.imul(V0,a0)|0,h=h+Math.imul(V0,U$)|0,k=k+Math.imul(k0,K$)|0,j=j+Math.imul(k0,L$)|0,j=j+Math.imul(n0,K$)|0,h=h+Math.imul(n0,L$)|0,k=k+Math.imul(F0,Z$)|0,j=j+Math.imul(F0,I$)|0,j=j+Math.imul(q0,Z$)|0,h=h+Math.imul(q0,I$)|0,k=k+Math.imul(M0,C$)|0,j=j+Math.imul(M0,g$)|0,j=j+Math.imul(z0,C$)|0,h=h+Math.imul(z0,g$)|0;var c1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(c1>>>26)|0,c1&=67108863,k=Math.imul(N0,b0),j=Math.imul(N0,f0),j=j+Math.imul(B0,b0)|0,h=Math.imul(B0,f0),k=k+Math.imul(p0,a0)|0,j=j+Math.imul(p0,U$)|0,j=j+Math.imul(l0,a0)|0,h=h+Math.imul(l0,U$)|0,k=k+Math.imul(T0,K$)|0,j=j+Math.imul(T0,L$)|0,j=j+Math.imul(V0,K$)|0,h=h+Math.imul(V0,L$)|0,k=k+Math.imul(k0,Z$)|0,j=j+Math.imul(k0,I$)|0,j=j+Math.imul(n0,Z$)|0,h=h+Math.imul(n0,I$)|0,k=k+Math.imul(F0,C$)|0,j=j+Math.imul(F0,g$)|0,j=j+Math.imul(q0,C$)|0,h=h+Math.imul(q0,g$)|0;var j1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(j1>>>26)|0,j1&=67108863,k=Math.imul(N0,a0),j=Math.imul(N0,U$),j=j+Math.imul(B0,a0)|0,h=Math.imul(B0,U$),k=k+Math.imul(p0,K$)|0,j=j+Math.imul(p0,L$)|0,j=j+Math.imul(l0,K$)|0,h=h+Math.imul(l0,L$)|0,k=k+Math.imul(T0,Z$)|0,j=j+Math.imul(T0,I$)|0,j=j+Math.imul(V0,Z$)|0,h=h+Math.imul(V0,I$)|0,k=k+Math.imul(k0,C$)|0,j=j+Math.imul(k0,g$)|0,j=j+Math.imul(n0,C$)|0,h=h+Math.imul(n0,g$)|0;var v1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(v1>>>26)|0,v1&=67108863,k=Math.imul(N0,K$),j=Math.imul(N0,L$),j=j+Math.imul(B0,K$)|0,h=Math.imul(B0,L$),k=k+Math.imul(p0,Z$)|0,j=j+Math.imul(p0,I$)|0,j=j+Math.imul(l0,Z$)|0,h=h+Math.imul(l0,I$)|0,k=k+Math.imul(T0,C$)|0,j=j+Math.imul(T0,g$)|0,j=j+Math.imul(V0,C$)|0,h=h+Math.imul(V0,g$)|0;var c2=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(c2>>>26)|0,c2&=67108863,k=Math.imul(N0,Z$),j=Math.imul(N0,I$),j=j+Math.imul(B0,Z$)|0,h=Math.imul(B0,I$),k=k+Math.imul(p0,C$)|0,j=j+Math.imul(p0,g$)|0,j=j+Math.imul(l0,C$)|0,h=h+Math.imul(l0,g$)|0;var YY=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(YY>>>26)|0,YY&=67108863,k=Math.imul(N0,C$),j=Math.imul(N0,g$),j=j+Math.imul(B0,C$)|0,h=Math.imul(B0,g$);var JY=(A+k|0)+((j&8191)<<13)|0;if(A=(h+(j>>>13)|0)+(JY>>>26)|0,JY&=67108863,O[0]=z1,O[1]=U1,O[2]=o1,O[3]=t1,O[4]=r1,O[5]=a1,O[6]=s1,O[7]=Y1,O[8]=S1,O[9]=R1,O[10]=e1,O[11]=B1,O[12]=f1,O[13]=c1,O[14]=j1,O[15]=v1,O[16]=c2,O[17]=YY,O[18]=JY,A!==0)O[19]=A,v.length++;return v};if(!Math.imul)b=g;function l(L,H,v){v.negative=H.negative^L.negative,v.length=L.length+H.length;var q=0,P=0;for(var O=0;O<v.length-1;O++){var A=P;P=0;var k=q&67108863,j=Math.min(O,H.length-1);for(var h=Math.max(0,O-L.length+1);h<=j;h++){var a=O-h,J0=L.words[a]|0,D0=H.words[h]|0,O0=J0*D0,d=O0&67108863;A=A+(O0/67108864|0)|0,d=d+k|0,k=d&67108863,A=A+(d>>>26)|0,P+=A>>>26,A&=67108863}v.words[O]=k,q=A,A=P}if(q!==0)v.words[O]=q;else v.length--;return v._strip()}function i(L,H,v){return l(L,H,v)}Y.prototype.mulTo=function(L,H){var v,q=this.length+L.length;if(this.length===10&&L.length===10)v=b(this,L,H);else if(q<63)v=g(this,L,H);else if(q<1024)v=l(this,L,H);else v=i(this,L,H);return v};function $0(L,H){this.x=L,this.y=H}$0.prototype.makeRBT=function(L){var H=Array(L),v=Y.prototype._countBits(L)-1;for(var q=0;q<L;q++)H[q]=this.revBin(q,v,L);return H},$0.prototype.revBin=function(L,H,v){if(L===0||L===v-1)return L;var q=0;for(var P=0;P<H;P++)q|=(L&1)<<H-P-1,L>>=1;return q},$0.prototype.permute=function(L,H,v,q,P,O){for(var A=0;A<O;A++)q[A]=H[L[A]],P[A]=v[L[A]]},$0.prototype.transform=function(L,H,v,q,P,O){this.permute(O,L,H,v,q,P);for(var A=1;A<P;A<<=1){var k=A<<1,j=Math.cos(2*Math.PI/k),h=Math.sin(2*Math.PI/k);for(var a=0;a<P;a+=k){var J0=j,D0=h;for(var O0=0;O0<A;O0++){var d=v[a+O0],m=q[a+O0],r=v[a+O0+A],Y0=q[a+O0+A],W0=J0*r-D0*Y0;if(Y0=J0*Y0+D0*r,r=W0,v[a+O0]=d+r,q[a+O0]=m+Y0,v[a+O0+A]=d-r,q[a+O0+A]=m-Y0,O0!==k)W0=j*J0-h*D0,D0=j*D0+h*J0,J0=W0}}}},$0.prototype.guessLen13b=function(L,H){var v=Math.max(H,L)|1,q=v&1,P=0;for(v=v/2|0;v;v=v>>>1)P++;return 1<<P+1+q},$0.prototype.conjugate=function(L,H,v){if(v<=1)return;for(var q=0;q<v/2;q++){var P=L[q];L[q]=L[v-q-1],L[v-q-1]=P,P=H[q],H[q]=-H[v-q-1],H[v-q-1]=-P}},$0.prototype.normalize13b=function(L,H){var v=0;for(var q=0;q<H/2;q++){var P=Math.round(L[2*q+1]/H)*8192+Math.round(L[2*q]/H)+v;if(L[q]=P&67108863,P<67108864)v=0;else v=P/67108864|0}return L},$0.prototype.convert13b=function(L,H,v,q){var P=0;for(var O=0;O<H;O++)P=P+(L[O]|0),v[2*O]=P&8191,P=P>>>13,v[2*O+1]=P&8191,P=P>>>13;for(O=2*H;O<q;++O)v[O]=0;_(P===0),_((P&-8192)===0)},$0.prototype.stub=function(L){var H=Array(L);for(var v=0;v<L;v++)H[v]=0;return H},$0.prototype.mulp=function(L,H,v){var q=2*this.guessLen13b(L.length,H.length),P=this.makeRBT(q),O=this.stub(q),A=Array(q),k=Array(q),j=Array(q),h=Array(q),a=Array(q),J0=Array(q),D0=v.words;D0.length=q,this.convert13b(L.words,L.length,A,q),this.convert13b(H.words,H.length,h,q),this.transform(A,O,k,j,q,P),this.transform(h,O,a,J0,q,P);for(var O0=0;O0<q;O0++){var d=k[O0]*a[O0]-j[O0]*J0[O0];j[O0]=k[O0]*J0[O0]+j[O0]*a[O0],k[O0]=d}return this.conjugate(k,j,q),this.transform(k,j,D0,O,q,P),this.conjugate(D0,O,q),this.normalize13b(D0,q),v.negative=L.negative^H.negative,v.length=L.length+H.length,v._strip()},Y.prototype.mul=function(L){var H=new Y(null);return H.words=Array(this.length+L.length),this.mulTo(L,H)},Y.prototype.mulf=function(L){var H=new Y(null);return H.words=Array(this.length+L.length),i(this,L,H)},Y.prototype.imul=function(L){return this.clone().mulTo(L,this)},Y.prototype.imuln=function(L){var H=L<0;if(H)L=-L;_(typeof L==="number"),_(L<67108864);var v=0;for(var q=0;q<this.length;q++){var P=(this.words[q]|0)*L,O=(P&67108863)+(v&67108863);v>>=26,v+=P/67108864|0,v+=O>>>26,this.words[q]=O&67108863}if(v!==0)this.words[q]=v,this.length++;return this.length=L===0?1:this.length,H?this.ineg():this},Y.prototype.muln=function(L){return this.clone().imuln(L)},Y.prototype.sqr=function(){return this.mul(this)},Y.prototype.isqr=function(){return this.imul(this.clone())},Y.prototype.pow=function(L){var H=y(L);if(H.length===0)return new Y(1);var v=this;for(var q=0;q<H.length;q++,v=v.sqr())if(H[q]!==0)break;if(++q<H.length)for(var P=v.sqr();q<H.length;q++,P=P.sqr()){if(H[q]===0)continue;v=v.mul(P)}return v},Y.prototype.iushln=function(L){_(typeof L==="number"&&L>=0);var H=L%26,v=(L-H)/26,q=67108863>>>26-H<<26-H,P;if(H!==0){var O=0;for(P=0;P<this.length;P++){var A=this.words[P]&q,k=(this.words[P]|0)-A<<H;this.words[P]=k|O,O=A>>>26-H}if(O)this.words[P]=O,this.length++}if(v!==0){for(P=this.length-1;P>=0;P--)this.words[P+v]=this.words[P];for(P=0;P<v;P++)this.words[P]=0;this.length+=v}return this._strip()},Y.prototype.ishln=function(L){return _(this.negative===0),this.iushln(L)},Y.prototype.iushrn=function(L,H,v){_(typeof L==="number"&&L>=0);var q;if(H)q=(H-H%26)/26;else q=0;var P=L%26,O=Math.min((L-P)/26,this.length),A=67108863^67108863>>>P<<P,k=v;if(q-=O,q=Math.max(0,q),k){for(var j=0;j<O;j++)k.words[j]=this.words[j];k.length=O}if(O===0);else if(this.length>O){this.length-=O;for(j=0;j<this.length;j++)this.words[j]=this.words[j+O]}else this.words[0]=0,this.length=1;var h=0;for(j=this.length-1;j>=0&&(h!==0||j>=q);j--){var a=this.words[j]|0;this.words[j]=h<<26-P|a>>>P,h=a&A}if(k&&h!==0)k.words[k.length++]=h;if(this.length===0)this.words[0]=0,this.length=1;return this._strip()},Y.prototype.ishrn=function(L,H,v){return _(this.negative===0),this.iushrn(L,H,v)},Y.prototype.shln=function(L){return this.clone().ishln(L)},Y.prototype.ushln=function(L){return this.clone().iushln(L)},Y.prototype.shrn=function(L){return this.clone().ishrn(L)},Y.prototype.ushrn=function(L){return this.clone().iushrn(L)},Y.prototype.testn=function(L){_(typeof L==="number"&&L>=0);var H=L%26,v=(L-H)/26,q=1<<H;if(this.length<=v)return!1;var P=this.words[v];return!!(P&q)},Y.prototype.imaskn=function(L){_(typeof L==="number"&&L>=0);var H=L%26,v=(L-H)/26;if(_(this.negative===0,"imaskn works only with positive numbers"),this.length<=v)return this;if(H!==0)v++;if(this.length=Math.min(v,this.length),H!==0){var q=67108863^67108863>>>H<<H;this.words[this.length-1]&=q}return this._strip()},Y.prototype.maskn=function(L){return this.clone().imaskn(L)},Y.prototype.iaddn=function(L){if(_(typeof L==="number"),_(L<67108864),L<0)return this.isubn(-L);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<=L)return this.words[0]=L-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(L),this.negative=1,this}return this._iaddn(L)},Y.prototype._iaddn=function(L){this.words[0]+=L;for(var H=0;H<this.length&&this.words[H]>=67108864;H++)if(this.words[H]-=67108864,H===this.length-1)this.words[H+1]=1;else this.words[H+1]++;return this.length=Math.max(this.length,H+1),this},Y.prototype.isubn=function(L){if(_(typeof L==="number"),_(L<67108864),L<0)return this.iaddn(-L);if(this.negative!==0)return this.negative=0,this.iaddn(L),this.negative=1,this;if(this.words[0]-=L,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var H=0;H<this.length&&this.words[H]<0;H++)this.words[H]+=67108864,this.words[H+1]-=1;return this._strip()},Y.prototype.addn=function(L){return this.clone().iaddn(L)},Y.prototype.subn=function(L){return this.clone().isubn(L)},Y.prototype.iabs=function(){return this.negative=0,this},Y.prototype.abs=function(){return this.clone().iabs()},Y.prototype._ishlnsubmul=function(L,H,v){var q=L.length+v,P;this._expand(q);var O,A=0;for(P=0;P<L.length;P++){O=(this.words[P+v]|0)+A;var k=(L.words[P]|0)*H;O-=k&67108863,A=(O>>26)-(k/67108864|0),this.words[P+v]=O&67108863}for(;P<this.length-v;P++)O=(this.words[P+v]|0)+A,A=O>>26,this.words[P+v]=O&67108863;if(A===0)return this._strip();_(A===-1),A=0;for(P=0;P<this.length;P++)O=-(this.words[P]|0)+A,A=O>>26,this.words[P]=O&67108863;return this.negative=1,this._strip()},Y.prototype._wordDiv=function(L,H){var v=this.length-L.length,q=this.clone(),P=L,O=P.words[P.length-1]|0,A=this._countBits(O);if(v=26-A,v!==0)P=P.ushln(v),q.iushln(v),O=P.words[P.length-1]|0;var k=q.length-P.length,j;if(H!=="mod"){j=new Y(null),j.length=k+1,j.words=Array(j.length);for(var h=0;h<j.length;h++)j.words[h]=0}var a=q.clone()._ishlnsubmul(P,1,k);if(a.negative===0){if(q=a,j)j.words[k]=1}for(var J0=k-1;J0>=0;J0--){var D0=(q.words[P.length+J0]|0)*67108864+(q.words[P.length+J0-1]|0);D0=Math.min(D0/O|0,67108863),q._ishlnsubmul(P,D0,J0);while(q.negative!==0)if(D0--,q.negative=0,q._ishlnsubmul(P,1,J0),!q.isZero())q.negative^=1;if(j)j.words[J0]=D0}if(j)j._strip();if(q._strip(),H!=="div"&&v!==0)q.iushrn(v);return{div:j||null,mod:q}},Y.prototype.divmod=function(L,H,v){if(_(!L.isZero()),this.isZero())return{div:new Y(0),mod:new Y(0)};var q,P,O;if(this.negative!==0&&L.negative===0){if(O=this.neg().divmod(L,H),H!=="mod")q=O.div.neg();if(H!=="div"){if(P=O.mod.neg(),v&&P.negative!==0)P.iadd(L)}return{div:q,mod:P}}if(this.negative===0&&L.negative!==0){if(O=this.divmod(L.neg(),H),H!=="mod")q=O.div.neg();return{div:q,mod:O.mod}}if((this.negative&L.negative)!==0){if(O=this.neg().divmod(L.neg(),H),H!=="div"){if(P=O.mod.neg(),v&&P.negative!==0)P.isub(L)}return{div:O.div,mod:P}}if(L.length>this.length||this.cmp(L)<0)return{div:new Y(0),mod:this};if(L.length===1){if(H==="div")return{div:this.divn(L.words[0]),mod:null};if(H==="mod")return{div:null,mod:new Y(this.modrn(L.words[0]))};return{div:this.divn(L.words[0]),mod:new Y(this.modrn(L.words[0]))}}return this._wordDiv(L,H)},Y.prototype.div=function(L){return this.divmod(L,"div",!1).div},Y.prototype.mod=function(L){return this.divmod(L,"mod",!1).mod},Y.prototype.umod=function(L){return this.divmod(L,"mod",!0).mod},Y.prototype.divRound=function(L){var H=this.divmod(L);if(H.mod.isZero())return H.div;var v=H.div.negative!==0?H.mod.isub(L):H.mod,q=L.ushrn(1),P=L.andln(1),O=v.cmp(q);if(O<0||P===1&&O===0)return H.div;return H.div.negative!==0?H.div.isubn(1):H.div.iaddn(1)},Y.prototype.modrn=function(L){var H=L<0;if(H)L=-L;_(L<=67108863);var v=67108864%L,q=0;for(var P=this.length-1;P>=0;P--)q=(v*q+(this.words[P]|0))%L;return H?-q:q},Y.prototype.modn=function(L){return this.modrn(L)},Y.prototype.idivn=function(L){var H=L<0;if(H)L=-L;_(L<=67108863);var v=0;for(var q=this.length-1;q>=0;q--){var P=(this.words[q]|0)+v*67108864;this.words[q]=P/L|0,v=P%L}return this._strip(),H?this.ineg():this},Y.prototype.divn=function(L){return this.clone().idivn(L)},Y.prototype.egcd=function(L){_(L.negative===0),_(!L.isZero());var H=this,v=L.clone();if(H.negative!==0)H=H.umod(L);else H=H.clone();var q=new Y(1),P=new Y(0),O=new Y(0),A=new Y(1),k=0;while(H.isEven()&&v.isEven())H.iushrn(1),v.iushrn(1),++k;var j=v.clone(),h=H.clone();while(!H.isZero()){for(var a=0,J0=1;(H.words[0]&J0)===0&&a<26;++a,J0<<=1);if(a>0){H.iushrn(a);while(a-- >0){if(q.isOdd()||P.isOdd())q.iadd(j),P.isub(h);q.iushrn(1),P.iushrn(1)}}for(var D0=0,O0=1;(v.words[0]&O0)===0&&D0<26;++D0,O0<<=1);if(D0>0){v.iushrn(D0);while(D0-- >0){if(O.isOdd()||A.isOdd())O.iadd(j),A.isub(h);O.iushrn(1),A.iushrn(1)}}if(H.cmp(v)>=0)H.isub(v),q.isub(O),P.isub(A);else v.isub(H),O.isub(q),A.isub(P)}return{a:O,b:A,gcd:v.iushln(k)}},Y.prototype._invmp=function(L){_(L.negative===0),_(!L.isZero());var H=this,v=L.clone();if(H.negative!==0)H=H.umod(L);else H=H.clone();var q=new Y(1),P=new Y(0),O=v.clone();while(H.cmpn(1)>0&&v.cmpn(1)>0){for(var A=0,k=1;(H.words[0]&k)===0&&A<26;++A,k<<=1);if(A>0){H.iushrn(A);while(A-- >0){if(q.isOdd())q.iadd(O);q.iushrn(1)}}for(var j=0,h=1;(v.words[0]&h)===0&&j<26;++j,h<<=1);if(j>0){v.iushrn(j);while(j-- >0){if(P.isOdd())P.iadd(O);P.iushrn(1)}}if(H.cmp(v)>=0)H.isub(v),q.isub(P);else v.isub(H),P.isub(q)}var a;if(H.cmpn(1)===0)a=q;else a=P;if(a.cmpn(0)<0)a.iadd(L);return a},Y.prototype.gcd=function(L){if(this.isZero())return L.abs();if(L.isZero())return this.abs();var H=this.clone(),v=L.clone();H.negative=0,v.negative=0;for(var q=0;H.isEven()&&v.isEven();q++)H.iushrn(1),v.iushrn(1);do{while(H.isEven())H.iushrn(1);while(v.isEven())v.iushrn(1);var P=H.cmp(v);if(P<0){var O=H;H=v,v=O}else if(P===0||v.cmpn(1)===0)break;H.isub(v)}while(!0);return v.iushln(q)},Y.prototype.invm=function(L){return this.egcd(L).a.umod(L)},Y.prototype.isEven=function(){return(this.words[0]&1)===0},Y.prototype.isOdd=function(){return(this.words[0]&1)===1},Y.prototype.andln=function(L){return this.words[0]&L},Y.prototype.bincn=function(L){_(typeof L==="number");var H=L%26,v=(L-H)/26,q=1<<H;if(this.length<=v)return this._expand(v+1),this.words[v]|=q,this;var P=q;for(var O=v;P!==0&&O<this.length;O++){var A=this.words[O]|0;A+=P,P=A>>>26,A&=67108863,this.words[O]=A}if(P!==0)this.words[O]=P,this.length++;return this},Y.prototype.isZero=function(){return this.length===1&&this.words[0]===0},Y.prototype.cmpn=function(L){var H=L<0;if(this.negative!==0&&!H)return-1;if(this.negative===0&&H)return 1;this._strip();var v;if(this.length>1)v=1;else{if(H)L=-L;_(L<=67108863,"Number is too big");var q=this.words[0]|0;v=q===L?0:q<L?-1:1}if(this.negative!==0)return-v|0;return v},Y.prototype.cmp=function(L){if(this.negative!==0&&L.negative===0)return-1;if(this.negative===0&&L.negative!==0)return 1;var H=this.ucmp(L);if(this.negative!==0)return-H|0;return H},Y.prototype.ucmp=function(L){if(this.length>L.length)return 1;if(this.length<L.length)return-1;var H=0;for(var v=this.length-1;v>=0;v--){var q=this.words[v]|0,P=L.words[v]|0;if(q===P)continue;if(q<P)H=-1;else if(q>P)H=1;break}return H},Y.prototype.gtn=function(L){return this.cmpn(L)===1},Y.prototype.gt=function(L){return this.cmp(L)===1},Y.prototype.gten=function(L){return this.cmpn(L)>=0},Y.prototype.gte=function(L){return this.cmp(L)>=0},Y.prototype.ltn=function(L){return this.cmpn(L)===-1},Y.prototype.lt=function(L){return this.cmp(L)===-1},Y.prototype.lten=function(L){return this.cmpn(L)<=0},Y.prototype.lte=function(L){return this.cmp(L)<=0},Y.prototype.eqn=function(L){return this.cmpn(L)===0},Y.prototype.eq=function(L){return this.cmp(L)===0},Y.red=function(L){return new K(L)},Y.prototype.toRed=function(L){return _(!this.red,"Already a number in reduction context"),_(this.negative===0,"red works only with positives"),L.convertTo(this)._forceRed(L)},Y.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},Y.prototype._forceRed=function(L){return this.red=L,this},Y.prototype.forceRed=function(L){return _(!this.red,"Already a number in reduction context"),this._forceRed(L)},Y.prototype.redAdd=function(L){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,L)},Y.prototype.redIAdd=function(L){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,L)},Y.prototype.redSub=function(L){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,L)},Y.prototype.redISub=function(L){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,L)},Y.prototype.redShl=function(L){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,L)},Y.prototype.redMul=function(L){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.mul(this,L)},Y.prototype.redIMul=function(L){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.imul(this,L)},Y.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},Y.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},Y.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},Y.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},Y.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},Y.prototype.redPow=function(L){return _(this.red&&!L.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,L)};var Q0={k256:null,p224:null,p192:null,p25519:null};function G0(L,H){this.name=L,this.p=new Y(H,16),this.n=this.p.bitLength(),this.k=new Y(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}G0.prototype._tmp=function(){var L=new Y(null);return L.words=Array(Math.ceil(this.n/13)),L},G0.prototype.ireduce=function(L){var H=L,v;do this.split(H,this.tmp),H=this.imulK(H),H=H.iadd(this.tmp),v=H.bitLength();while(v>this.n);var q=v<this.n?-1:H.ucmp(this.p);if(q===0)H.words[0]=0,H.length=1;else if(q>0)H.isub(this.p);else if(H.strip!==void 0)H.strip();else H._strip();return H},G0.prototype.split=function(L,H){L.iushrn(this.n,0,H)},G0.prototype.imulK=function(L){return L.imul(this.k)};function K0(){G0.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}J(K0,G0),K0.prototype.split=function(L,H){var v=4194303,q=Math.min(L.length,9);for(var P=0;P<q;P++)H.words[P]=L.words[P];if(H.length=q,L.length<=9){L.words[0]=0,L.length=1;return}var O=L.words[9];H.words[H.length++]=O&v;for(P=10;P<L.length;P++){var A=L.words[P]|0;L.words[P-10]=(A&v)<<4|O>>>22,O=A}if(O>>>=22,L.words[P-10]=O,O===0&&L.length>10)L.length-=10;else L.length-=9},K0.prototype.imulK=function(L){L.words[L.length]=0,L.words[L.length+1]=0,L.length+=2;var H=0;for(var v=0;v<L.length;v++){var q=L.words[v]|0;H+=q*977,L.words[v]=H&67108863,H=q*64+(H/67108864|0)}if(L.words[L.length-1]===0){if(L.length--,L.words[L.length-1]===0)L.length--}return L};function t(){G0.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}J(t,G0);function P0(){G0.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}J(P0,G0);function Q(){G0.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}J(Q,G0),Q.prototype.imulK=function(L){var H=0;for(var v=0;v<L.length;v++){var q=(L.words[v]|0)*19+H,P=q&67108863;q>>>=26,L.words[v]=P,H=q}if(H!==0)L.words[L.length++]=H;return L},Y._prime=function(L){if(Q0[L])return Q0[L];var H;if(L==="k256")H=new K0;else if(L==="p224")H=new t;else if(L==="p192")H=new P0;else if(L==="p25519")H=new Q;else throw Error("Unknown prime "+L);return Q0[L]=H,H};function K(L){if(typeof L==="string"){var H=Y._prime(L);this.m=H.p,this.prime=H}else _(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}K.prototype._verify1=function(L){_(L.negative===0,"red works only with positives"),_(L.red,"red works only with red numbers")},K.prototype._verify2=function(L,H){_((L.negative|H.negative)===0,"red works only with positives"),_(L.red&&L.red===H.red,"red works only with red numbers")},K.prototype.imod=function(L){if(this.prime)return this.prime.ireduce(L)._forceRed(this);return T(L,L.umod(this.m)._forceRed(this)),L},K.prototype.neg=function(L){if(L.isZero())return L.clone();return this.m.sub(L)._forceRed(this)},K.prototype.add=function(L,H){this._verify2(L,H);var v=L.add(H);if(v.cmp(this.m)>=0)v.isub(this.m);return v._forceRed(this)},K.prototype.iadd=function(L,H){this._verify2(L,H);var v=L.iadd(H);if(v.cmp(this.m)>=0)v.isub(this.m);return v},K.prototype.sub=function(L,H){this._verify2(L,H);var v=L.sub(H);if(v.cmpn(0)<0)v.iadd(this.m);return v._forceRed(this)},K.prototype.isub=function(L,H){this._verify2(L,H);var v=L.isub(H);if(v.cmpn(0)<0)v.iadd(this.m);return v},K.prototype.shl=function(L,H){return this._verify1(L),this.imod(L.ushln(H))},K.prototype.imul=function(L,H){return this._verify2(L,H),this.imod(L.imul(H))},K.prototype.mul=function(L,H){return this._verify2(L,H),this.imod(L.mul(H))},K.prototype.isqr=function(L){return this.imul(L,L.clone())},K.prototype.sqr=function(L){return this.mul(L,L)},K.prototype.sqrt=function(L){if(L.isZero())return L.clone();var H=this.m.andln(3);if(_(H%2===1),H===3){var v=this.m.add(new Y(1)).iushrn(2);return this.pow(L,v)}var q=this.m.subn(1),P=0;while(!q.isZero()&&q.andln(1)===0)P++,q.iushrn(1);_(!q.isZero());var O=new Y(1).toRed(this),A=O.redNeg(),k=this.m.subn(1).iushrn(1),j=this.m.bitLength();j=new Y(2*j*j).toRed(this);while(this.pow(j,k).cmp(A)!==0)j.redIAdd(A);var h=this.pow(j,q),a=this.pow(L,q.addn(1).iushrn(1)),J0=this.pow(L,q),D0=P;while(J0.cmp(O)!==0){var O0=J0;for(var d=0;O0.cmp(O)!==0;d++)O0=O0.redSqr();_(d<D0);var m=this.pow(h,new Y(1).iushln(D0-d-1));a=a.redMul(m),h=m.redSqr(),J0=J0.redMul(h),D0=d}return a},K.prototype.invm=function(L){var H=L._invmp(this.m);if(H.negative!==0)return H.negative=0,this.imod(H).redNeg();else return this.imod(H)},K.prototype.pow=function(L,H){if(H.isZero())return new Y(1).toRed(this);if(H.cmpn(1)===0)return L.clone();var v=4,q=Array(1<<v);q[0]=new Y(1).toRed(this),q[1]=L;for(var P=2;P<q.length;P++)q[P]=this.mul(q[P-1],L);var O=q[0],A=0,k=0,j=H.bitLength()%26;if(j===0)j=26;for(P=H.length-1;P>=0;P--){var h=H.words[P];for(var a=j-1;a>=0;a--){var J0=h>>a&1;if(O!==q[0])O=this.sqr(O);if(J0===0&&A===0){k=0;continue}if(A<<=1,A|=J0,k++,k!==v&&(P!==0||a!==0))continue;O=this.mul(O,q[A]),k=0,A=0}j=26}return O},K.prototype.convertTo=function(L){var H=L.umod(this.m);return H===L?H.clone():H},K.prototype.convertFrom=function(L){var H=L.clone();return H.red=null,H},Y.mont=function(L){return new F(L)};function F(L){if(K.call(this,L),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new Y(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}J(F,K),F.prototype.convertTo=function(L){return this.imod(L.ushln(this.shift))},F.prototype.convertFrom=function(L){var H=this.imod(L.mul(this.rinv));return H.red=null,H},F.prototype.imul=function(L,H){if(L.isZero()||H.isZero())return L.words[0]=0,L.length=1,L;var v=L.imul(H),q=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),P=v.isub(q).iushrn(this.shift),O=P;if(P.cmp(this.m)>=0)O=P.isub(this.m);else if(P.cmpn(0)<0)O=P.iadd(this.m);return O._forceRed(this)},F.prototype.mul=function(L,H){if(L.isZero()||H.isZero())return new Y(0)._forceRed(this);var v=L.mul(H),q=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),P=v.isub(q).iushrn(this.shift),O=P;if(P.cmp(this.m)>=0)O=P.isub(this.m);else if(P.cmpn(0)<0)O=P.iadd(this.m);return O._forceRed(this)},F.prototype.invm=function(L){var H=this.imod(L._invmp(this.m).mul(this.r2));return H._forceRed(this)}})(typeof I>"u"||I,$)}),IB=$$(($,I)=>{var G=Tn(),Z=wZ(),_=oU().Buffer;function J(R){var M=R.modulus.byteLength(),E;do E=new G(Z(M));while(E.cmp(R.modulus)>=0||!E.umod(R.prime1)||!E.umod(R.prime2));return E}function Y(R){var M=J(R),E=M.toRed(G.mont(R.modulus)).redPow(new G(R.publicExponent)).fromRed();return{blinder:E,unblinder:M.invm(R.modulus)}}function W(R,M){var E=Y(M),T=M.modulus.byteLength(),S=new G(R).mul(E.blinder).umod(M.modulus),N=S.toRed(G.mont(M.prime1)),B=S.toRed(G.mont(M.prime2)),x=M.coefficient,w=M.prime1,y=M.prime2,g=N.redPow(M.exponent1).fromRed(),b=B.redPow(M.exponent2).fromRed(),l=g.isub(b).imul(x).umod(w).imul(y);return b.iadd(l).imul(E.unblinder).umod(M.modulus).toArrayLike(_,"be",T)}W.getr=J,I.exports=W}),Mn=$$(($,I)=>{var G=sN(),Z=wZ(),_=xZ(),J=eN(),Y=$B(),W=ZW(),R=UB(),M=IB(),E=oU().Buffer;I.exports=function(B,x,w){var y;if(B.padding)y=B.padding;else if(w)y=1;else y=4;var g=G(B),b;if(y===4)b=T(g,x);else if(y===1)b=S(g,x,w);else if(y===3){if(b=new W(x),b.cmp(g.modulus)>=0)throw Error("data too long for modulus")}else throw Error("unknown padding");if(w)return M(b,g);else return R(b,g)};function T(B,x){var w=B.modulus.byteLength(),y=x.length,g=_("sha1").update(E.alloc(0)).digest(),b=g.length,l=2*b;if(y>w-l-2)throw Error("message too long");var i=E.alloc(w-y-l-2),$0=w-b-1,Q0=Z(b),G0=Y(E.concat([g,i,E.alloc(1,1),x],$0),J(Q0,$0)),K0=Y(Q0,J(G0,b));return new W(E.concat([E.alloc(1),K0,G0],w))}function S(B,x,w){var y=x.length,g=B.modulus.byteLength();if(y>g-11)throw Error("message too long");var b;if(w)b=E.alloc(g-y-3,255);else b=N(g-y-3);return new W(E.concat([E.from([0,w?1:2]),b,E.alloc(1),x],g))}function N(B){var x=E.allocUnsafe(B),w=0,y=Z(B*2),g=0,b;while(w<B){if(g===y.length)y=Z(B*2),g=0;if(b=y[g++],b)x[w++]=b}return x}}),An=$$(($,I)=>{var G=sN(),Z=eN(),_=$B(),J=ZW(),Y=IB(),W=xZ(),R=UB(),M=oU().Buffer;I.exports=function(N,B,x){var w;if(N.padding)w=N.padding;else if(x)w=1;else w=4;var y=G(N),g=y.modulus.byteLength();if(B.length>g||new J(B).cmp(y.modulus)>=0)throw Error("decryption error");var b;if(x)b=R(new J(B),y);else b=Y(B,y);var l=M.alloc(g-b.length);if(b=M.concat([l,b],g),w===4)return E(y,b);else if(w===1)return T(y,b,x);else if(w===3)return b;else throw Error("unknown padding")};function E(N,B){var x=N.modulus.byteLength(),w=W("sha1").update(M.alloc(0)).digest(),y=w.length;if(B[0]!==0)throw Error("decryption error");var g=B.slice(1,y+1),b=B.slice(y+1),l=_(g,Z(b,y)),i=_(b,Z(l,x-y-1));if(S(w,i.slice(0,y)))throw Error("decryption error");var $0=y;while(i[$0]===0)$0++;if(i[$0++]!==1)throw Error("decryption error");return i.slice($0)}function T(N,B,x){var w=B.slice(0,2),y=2,g=0;while(B[y++]!==0)if(y>=B.length){g++;break}var b=B.slice(2,y-1);if(w.toString("hex")!=="0002"&&!x||w.toString("hex")!=="0001"&&x)g++;if(b.length<8)g++;if(g)throw Error("decryption error");return B.slice(y)}function S(N,B){N=M.from(N),B=M.from(B);var x=0,w=N.length;if(N.length!==B.length)x++,w=Math.min(N.length,B.length);var y=-1;while(++y<w)x+=N[y]^B[y];return x}}),UW=$$(($)=>{$.publicEncrypt=Mn(),$.privateDecrypt=An(),$.privateEncrypt=function(I,G){return $.publicEncrypt(I,G,!0)},$.publicDecrypt=function(I,G){return $.privateDecrypt(I,G,!0)}}),En=$$(($)=>{var I=(i1(),V$(k6));if(typeof I.publicEncrypt!=="function")I=UW();if($.publicEncrypt=I.publicEncrypt,$.privateDecrypt=I.privateDecrypt,typeof I.privateEncrypt!=="function")$.privateEncrypt=UW().privateEncrypt;else $.privateEncrypt=I.privateEncrypt;if(typeof I.publicDecrypt!=="function")$.publicDecrypt=UW().publicDecrypt;else $.publicDecrypt=I.publicDecrypt}),Rn=$$(($)=>{var I=oU(),G=wZ(),Z=I.Buffer,_=I.kMaxLength,J=globalThis.crypto||globalThis.msCrypto,Y=Math.pow(2,32)-1;function W(S,N){if(typeof S!=="number"||S!==S)throw TypeError("offset must be a number");if(S>Y||S<0)throw TypeError("offset must be a uint32");if(S>_||S>N)throw RangeError("offset out of range")}function R(S,N,B){if(typeof S!=="number"||S!==S)throw TypeError("size must be a number");if(S>Y||S<0)throw TypeError("size must be a uint32");if(S+N>B||S>_)throw RangeError("buffer too small")}J&&J.getRandomValues,$.randomFill=M,$.randomFillSync=T;function M(S,N,B,x){if(!Z.isBuffer(S)&&!(S instanceof globalThis.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof N==="function")x=N,N=0,B=S.length;else if(typeof B==="function")x=B,B=S.length-N;else if(typeof x!=="function")throw TypeError('"cb" argument must be a function');return W(N,S.length),R(B,N,S.length),E(S,N,B,x)}function E(S,N,B,x){if(!1)var w,y;if(x){G(B,function(b,l){if(b)return x(b);l.copy(S,N),x(null,S)});return}var g=G(B);return g.copy(S,N),S}function T(S,N,B){if(typeof N>"u")N=0;if(!Z.isBuffer(S)&&!(S instanceof globalThis.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if(W(N,S.length),B===void 0)B=S.length-N;return R(B,N,S.length),E(S,N,B)}}),Pn=$$(($,I)=>{var G=(i1(),V$(k6));if(typeof G.randomFill==="function"&&typeof G.randomFillSync==="function")$.randomFill=G.randomFill,$.randomFillSync=G.randomFillSync;else I.exports=Rn()}),Vn=$$(($)=>{$.randomBytes=$.rng=$.pseudoRandomBytes=$.prng=wZ(),$.createHash=$.Hash=xZ(),$.createHmac=$.Hmac=BN();var I=oh(),G=Object.keys(I),Z=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(G);$.getHashes=function(){return Z};var _=nN();$.pbkdf2=_.pbkdf2,$.pbkdf2Sync=_.pbkdf2Sync;var J=Bu();$.Cipher=J.Cipher,$.createCipher=J.createCipher,$.Cipheriv=J.Cipheriv,$.createCipheriv=J.createCipheriv,$.Decipher=J.Decipher,$.createDecipher=J.createDecipher,$.Decipheriv=J.Decipheriv,$.createDecipheriv=J.createDecipheriv,$.getCiphers=J.getCiphers,$.listCiphers=J.listCiphers;var Y=ju();$.DiffieHellmanGroup=Y.DiffieHellmanGroup,$.createDiffieHellmanGroup=Y.createDiffieHellmanGroup,$.getDiffieHellman=Y.getDiffieHellman,$.createDiffieHellman=Y.createDiffieHellman,$.DiffieHellman=Y.DiffieHellman;var W=ku();$.createSign=W.createSign,$.Sign=W.Sign,$.createVerify=W.createVerify,$.Verify=W.Verify,$.createECDH=Un();var R=En();$.publicEncrypt=R.publicEncrypt,$.privateEncrypt=R.privateEncrypt,$.publicDecrypt=R.publicDecrypt,$.privateDecrypt=R.privateDecrypt;var M=Pn();$.randomFill=M.randomFill,$.randomFillSync=M.randomFillSync,$.createCredentials=function(){throw Error(`sorry, createCredentials is not implemented yet
|
|
244
|
-
we accept pull requests
|
|
245
|
-
https://github.com/browserify/crypto-browserify`)},$.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}),r$=ih(Vn(),1),Sn=r$.prng,vn=r$.pseudoRandomBytes,Cn=r$.rng,qn=r$.randomBytes,Nn=r$.Hash,j6=r$.createHash,Bn=r$.Hmac,jn=r$.createHmac,kn=r$.getHashes,gn=r$.pbkdf2,wn=r$.pbkdf2Sync,xn=r$.Cipher,fn=r$.createCipher,yn=r$.Cipheriv,bn=r$.createCipheriv,hn=r$.Decipher,un=r$.createDecipher,nn=r$.Decipheriv,pn=r$.createDecipheriv,cn=r$.getCiphers,ln=r$.listCiphers,mn=r$.DiffieHellmanGroup,dn=r$.createDiffieHellmanGroup,on=r$.getDiffieHellman,tn=r$.createDiffieHellman,rn=r$.DiffieHellman,an=r$.createSign,sn=r$.Sign,en=r$.createVerify,$p=r$.Verify,Up=r$.createECDH,Ip=r$.publicEncrypt,_p=r$.privateEncrypt,Xp=r$.publicDecrypt,Gp=r$.privateDecrypt,Yp=r$.randomFill,Jp=r$.randomFillSync,Qp=r$.createCredentials,zp=r$.constants,Lp=["p192","p224","p256","p384","p521","curve25519","ed25519","secp256k1","secp224r1","prime256v1","prime192v1","ed25519","secp384r1","secp521r1"];Dp=crypto,Wp=crypto});var ZB={};LU(ZB,{sep:()=>DW,resolve:()=>$I,relative:()=>KW,posix:()=>zB,parse:()=>JB,normalize:()=>LW,join:()=>G1,isAbsolute:()=>j2,format:()=>YB,extname:()=>GB,dirname:()=>n1,delimiter:()=>QB,default:()=>Fp,basename:()=>KG,_makeLong:()=>XB});function rI($){if(typeof $!=="string")throw TypeError("Path must be a string. Received "+JSON.stringify($))}function _B($,I){var G="",Z=0,_=-1,J=0,Y;for(var W=0;W<=$.length;++W){if(W<$.length)Y=$.charCodeAt(W);else if(Y===47)break;else Y=47;if(Y===47){if(_===W-1||J===1);else if(_!==W-1&&J===2){if(G.length<2||Z!==2||G.charCodeAt(G.length-1)!==46||G.charCodeAt(G.length-2)!==46){if(G.length>2){var R=G.lastIndexOf("/");if(R!==G.length-1){if(R===-1)G="",Z=0;else G=G.slice(0,R),Z=G.length-1-G.lastIndexOf("/");_=W,J=0;continue}}else if(G.length===2||G.length===1){G="",Z=0,_=W,J=0;continue}}if(I){if(G.length>0)G+="/..";else G="..";Z=2}}else{if(G.length>0)G+="/"+$.slice(_+1,W);else G=$.slice(_+1,W);Z=W-_-1}_=W,J=0}else if(Y===46&&J!==-1)++J;else J=-1}return G}function Hp($,I){var G=I.dir||I.root,Z=I.base||(I.name||"")+(I.ext||"");if(!G)return Z;if(G===I.root)return G+Z;return G+$+Z}function $I(){var $="",I=!1,G;for(var Z=arguments.length-1;Z>=-1&&!I;Z--){var _;if(Z>=0)_=arguments[Z];else{if(G===void 0)G=process.cwd();_=G}if(rI(_),_.length===0)continue;$=_+"/"+$,I=_.charCodeAt(0)===47}if($=_B($,!I),I)if($.length>0)return"/"+$;else return"/";else if($.length>0)return $;else return"."}function LW($){if(rI($),$.length===0)return".";var I=$.charCodeAt(0)===47,G=$.charCodeAt($.length-1)===47;if($=_B($,!I),$.length===0&&!I)$=".";if($.length>0&&G)$+="/";if(I)return"/"+$;return $}function j2($){return rI($),$.length>0&&$.charCodeAt(0)===47}function G1(){if(arguments.length===0)return".";var $;for(var I=0;I<arguments.length;++I){var G=arguments[I];if(rI(G),G.length>0)if($===void 0)$=G;else $+="/"+G}if($===void 0)return".";return LW($)}function KW($,I){if(rI($),rI(I),$===I)return"";if($=$I($),I=$I(I),$===I)return"";var G=1;for(;G<$.length;++G)if($.charCodeAt(G)!==47)break;var Z=$.length,_=Z-G,J=1;for(;J<I.length;++J)if(I.charCodeAt(J)!==47)break;var Y=I.length,W=Y-J,R=_<W?_:W,M=-1,E=0;for(;E<=R;++E){if(E===R){if(W>R){if(I.charCodeAt(J+E)===47)return I.slice(J+E+1);else if(E===0)return I.slice(J+E)}else if(_>R){if($.charCodeAt(G+E)===47)M=E;else if(E===0)M=0}break}var T=$.charCodeAt(G+E),S=I.charCodeAt(J+E);if(T!==S)break;else if(T===47)M=E}var N="";for(E=G+M+1;E<=Z;++E)if(E===Z||$.charCodeAt(E)===47)if(N.length===0)N+="..";else N+="/..";if(N.length>0)return N+I.slice(J+M);else{if(J+=M,I.charCodeAt(J)===47)++J;return I.slice(J)}}function XB($){return $}function n1($){if(rI($),$.length===0)return".";var I=$.charCodeAt(0),G=I===47,Z=-1,_=!0;for(var J=$.length-1;J>=1;--J)if(I=$.charCodeAt(J),I===47){if(!_){Z=J;break}}else _=!1;if(Z===-1)return G?"/":".";if(G&&Z===1)return"//";return $.slice(0,Z)}function KG($,I){if(I!==void 0&&typeof I!=="string")throw TypeError('"ext" argument must be a string');rI($);var G=0,Z=-1,_=!0,J;if(I!==void 0&&I.length>0&&I.length<=$.length){if(I.length===$.length&&I===$)return"";var Y=I.length-1,W=-1;for(J=$.length-1;J>=0;--J){var R=$.charCodeAt(J);if(R===47){if(!_){G=J+1;break}}else{if(W===-1)_=!1,W=J+1;if(Y>=0)if(R===I.charCodeAt(Y)){if(--Y===-1)Z=J}else Y=-1,Z=W}}if(G===Z)Z=W;else if(Z===-1)Z=$.length;return $.slice(G,Z)}else{for(J=$.length-1;J>=0;--J)if($.charCodeAt(J)===47){if(!_){G=J+1;break}}else if(Z===-1)_=!1,Z=J+1;if(Z===-1)return"";return $.slice(G,Z)}}function GB($){rI($);var I=-1,G=0,Z=-1,_=!0,J=0;for(var Y=$.length-1;Y>=0;--Y){var W=$.charCodeAt(Y);if(W===47){if(!_){G=Y+1;break}continue}if(Z===-1)_=!1,Z=Y+1;if(W===46){if(I===-1)I=Y;else if(J!==1)J=1}else if(I!==-1)J=-1}if(I===-1||Z===-1||J===0||J===1&&I===Z-1&&I===G+1)return"";return $.slice(I,Z)}function YB($){if($===null||typeof $!=="object")throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof $);return Hp("/",$)}function JB($){rI($);var I={root:"",dir:"",base:"",ext:"",name:""};if($.length===0)return I;var G=$.charCodeAt(0),Z=G===47,_;if(Z)I.root="/",_=1;else _=0;var J=-1,Y=0,W=-1,R=!0,M=$.length-1,E=0;for(;M>=_;--M){if(G=$.charCodeAt(M),G===47){if(!R){Y=M+1;break}continue}if(W===-1)R=!1,W=M+1;if(G===46){if(J===-1)J=M;else if(E!==1)E=1}else if(J!==-1)E=-1}if(J===-1||W===-1||E===0||E===1&&J===W-1&&J===Y+1){if(W!==-1)if(Y===0&&Z)I.base=I.name=$.slice(1,W);else I.base=I.name=$.slice(Y,W)}else{if(Y===0&&Z)I.name=$.slice(1,J),I.base=$.slice(1,W);else I.name=$.slice(Y,J),I.base=$.slice(Y,W);I.ext=$.slice(J,W)}if(Y>0)I.dir=$.slice(0,Y-1);else if(Z)I.dir="/";return I}var DW="/",QB=":",zB,Fp;var KU=WI(()=>{zB=(($)=>($.posix=$,$))({resolve:$I,normalize:LW,isAbsolute:j2,join:G1,relative:KW,_makeLong:XB,dirname:n1,basename:KG,extname:GB,format:YB,parse:JB,sep:DW,delimiter:QB,win32:null,posix:null}),Fp=zB});var Nk=N6((gI0,qk)=>{function yi($){let I=String($??"").trim(),G=/^(\S+)\s+from\s+(\S+)$/.exec(I);if(G){let Z=Date.parse(G[1]),_=Date.parse(G[2]);if(!Number.isNaN(Z)&&!Number.isNaN(_))return{kind:"running",at:Z,since:_}}else{let Z=Date.parse(I);if(!Number.isNaN(Z))return{kind:"frozen",at:Z}}throw Error(`world clock: expected an ISO-8601 instant, or "<instant> from <instant>", got ${JSON.stringify(I.slice(0,60))}`)}function bi($,I){return $.kind==="running"?$.at+(I-$.since):$.at}function hi($){return $.kind==="running"?`${new Date($.at).toISOString()} from ${new Date($.since).toISOString()}`:new Date($.at).toISOString()}qk.exports={parseClock:yi,clockNowMs:bi,formatClock:hi}});var VE={};LU(VE,{resolveObject:()=>Kg,resolve:()=>Lg,parse:()=>IY,format:()=>Og,default:()=>Xt,Url:()=>y6,URLSearchParams:()=>zg,URL:()=>RE});function PE($){return typeof $==="string"}function Zg($){return typeof $==="object"&&$!==null}function m5($){return $===null}function to($){return $==null}function y6(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function IY($,I,G){if($&&Zg($)&&$ instanceof y6)return $;var Z=new y6;return Z.parse($,I,G),Z}function Og($){if(PE($))$=IY($);if(!($ instanceof y6))return y6.prototype.format.call($);return $.format()}function Lg($,I){return IY($,!1,!0).resolve(I)}function Kg($,I){if(!$)return I;return IY($,!1,!0).resolveObject(I)}var RE,zg,ro,ao,so,eo,$t,ME,Yg,Jg,Ut=255,Qg,It,_t,AE,UY,EE,Xt;var SE=WI(()=>{({URL:RE,URLSearchParams:zg}=globalThis);ro=/^([a-z0-9.+-]+:)/i,ao=/:[0-9]*$/,so=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,eo=["<",">",'"',"`"," ","\r",`
|
|
246
|
-
`,"\t"],$t=["{","}","|","\\","^","`"].concat(eo),ME=["'"].concat($t),Yg=["%","/","?",";","#"].concat(ME),Jg=["/","?","#"],Qg=/^[+a-z0-9A-Z_-]{0,63}$/,It=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_t={javascript:!0,"javascript:":!0},AE={javascript:!0,"javascript:":!0},UY={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},EE={parse($){var I=decodeURIComponent;return($+"").replace(/\+/g," ").split("&").filter(Boolean).reduce(function(G,Z,_){var J=Z.split("="),Y=I(J[0]||""),W=I(J[1]||""),R=G[Y];return G[Y]=R===void 0?W:[].concat(R,W),G},{})},stringify($){var I=encodeURIComponent;return Object.keys($||{}).reduce(function(G,Z){return[].concat($[Z]).forEach(function(_){G.push(I(Z)+"="+I(_))}),G},[]).join("&").replace(/\s/g,"+")}};y6.prototype.parse=function($,I,G){if(!PE($))throw TypeError("Parameter 'url' must be a string, not "+typeof $);var Z=$.indexOf("?"),_=Z!==-1&&Z<$.indexOf("#")?"?":"#",J=$.split(_),Y=/\\/g;J[0]=J[0].replace(Y,"/"),$=J.join(_);var W=$;if(W=W.trim(),!G&&$.split("#").length===1){var R=so.exec(W);if(R){if(this.path=W,this.href=W,this.pathname=R[1],R[2])if(this.search=R[2],I)this.query=EE.parse(this.search.substr(1));else this.query=this.search.substr(1);else if(I)this.search="",this.query={};return this}}var M=ro.exec(W);if(M){M=M[0];var E=M.toLowerCase();this.protocol=E,W=W.substr(M.length)}if(G||M||W.match(/^\/\/[^@\/]+@[^@\/]+/)){var T=W.substr(0,2)==="//";if(T&&!(M&&AE[M]))W=W.substr(2),this.slashes=!0}if(!AE[M]&&(T||M&&!UY[M])){var S=-1;for(var N=0;N<Jg.length;N++){var B=W.indexOf(Jg[N]);if(B!==-1&&(S===-1||B<S))S=B}var x,w;if(S===-1)w=W.lastIndexOf("@");else w=W.lastIndexOf("@",S);if(w!==-1)x=W.slice(0,w),W=W.slice(w+1),this.auth=decodeURIComponent(x);S=-1;for(var N=0;N<Yg.length;N++){var B=W.indexOf(Yg[N]);if(B!==-1&&(S===-1||B<S))S=B}if(S===-1)S=W.length;this.host=W.slice(0,S),W=W.slice(S),this.parseHost(),this.hostname=this.hostname||"";var y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y){var g=this.hostname.split(/\./);for(var N=0,b=g.length;N<b;N++){var l=g[N];if(!l)continue;if(!l.match(Qg)){var i="";for(var $0=0,Q0=l.length;$0<Q0;$0++)if(l.charCodeAt($0)>127)i+="x";else i+=l[$0];if(!i.match(Qg)){var G0=g.slice(0,N),K0=g.slice(N+1),t=l.match(It);if(t)G0.push(t[1]),K0.unshift(t[2]);if(K0.length)W="/"+K0.join(".")+W;this.hostname=G0.join(".");break}}}}if(this.hostname.length>Ut)this.hostname="";else this.hostname=this.hostname.toLowerCase();if(!y)this.hostname=new RE(`https://${this.hostname}`).hostname;var P0=this.port?":"+this.port:"",Q=this.hostname||"";if(this.host=Q+P0,this.href+=this.host,y){if(this.hostname=this.hostname.substr(1,this.hostname.length-2),W[0]!=="/")W="/"+W}}if(!_t[E])for(var N=0,b=ME.length;N<b;N++){var K=ME[N];if(W.indexOf(K)===-1)continue;var F=encodeURIComponent(K);if(F===K)F=escape(K);W=W.split(K).join(F)}var L=W.indexOf("#");if(L!==-1)this.hash=W.substr(L),W=W.slice(0,L);var H=W.indexOf("?");if(H!==-1){if(this.search=W.substr(H),this.query=W.substr(H+1),I)this.query=EE.parse(this.query);W=W.slice(0,H)}else if(I)this.search="",this.query={};if(W)this.pathname=W;if(UY[E]&&this.hostname&&!this.pathname)this.pathname="/";if(this.pathname||this.search){var P0=this.pathname||"",v=this.search||"";this.path=P0+v}return this.href=this.format(),this};y6.prototype.format=function(){var $=this.auth||"";if($)$=encodeURIComponent($),$=$.replace(/%3A/i,":"),$+="@";var I=this.protocol||"",G=this.pathname||"",Z=this.hash||"",_=!1,J="";if(this.host)_=$+this.host;else if(this.hostname){if(_=$+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port)_+=":"+this.port}if(this.query&&Zg(this.query)&&Object.keys(this.query).length)J=EE.stringify(this.query);var Y=this.search||J&&"?"+J||"";if(I&&I.substr(-1)!==":")I+=":";if(this.slashes||(!I||UY[I])&&_!==!1){if(_="//"+(_||""),G&&G.charAt(0)!=="/")G="/"+G}else if(!_)_="";if(Z&&Z.charAt(0)!=="#")Z="#"+Z;if(Y&&Y.charAt(0)!=="?")Y="?"+Y;return G=G.replace(/[?#]/g,function(W){return encodeURIComponent(W)}),Y=Y.replace("#","%23"),I+_+G+Y+Z};y6.prototype.resolve=function($){return this.resolveObject(IY($,!1,!0)).format()};y6.prototype.resolveObject=function($){if(PE($)){var I=new y6;I.parse($,!1,!0),$=I}var G=new y6,Z=Object.keys(this);for(var _=0;_<Z.length;_++){var J=Z[_];G[J]=this[J]}if(G.hash=$.hash,$.href==="")return G.href=G.format(),G;if($.slashes&&!$.protocol){var Y=Object.keys($);for(var W=0;W<Y.length;W++){var R=Y[W];if(R!=="protocol")G[R]=$[R]}if(UY[G.protocol]&&G.hostname&&!G.pathname)G.path=G.pathname="/";return G.href=G.format(),G}if($.protocol&&$.protocol!==G.protocol){if(!UY[$.protocol]){var M=Object.keys($);for(var E=0;E<M.length;E++){var T=M[E];G[T]=$[T]}return G.href=G.format(),G}if(G.protocol=$.protocol,!$.host&&!AE[$.protocol]){var b=($.pathname||"").split("/");while(b.length&&!($.host=b.shift()));if(!$.host)$.host="";if(!$.hostname)$.hostname="";if(b[0]!=="")b.unshift("");if(b.length<2)b.unshift("");G.pathname=b.join("/")}else G.pathname=$.pathname;if(G.search=$.search,G.query=$.query,G.host=$.host||"",G.auth=$.auth,G.hostname=$.hostname||$.host,G.port=$.port,G.pathname||G.search){var S=G.pathname||"",N=G.search||"";G.path=S+N}return G.slashes=G.slashes||$.slashes,G.href=G.format(),G}var B=G.pathname&&G.pathname.charAt(0)==="/",x=$.host||$.pathname&&$.pathname.charAt(0)==="/",w=x||B||G.host&&$.pathname,y=w,g=G.pathname&&G.pathname.split("/")||[],b=$.pathname&&$.pathname.split("/")||[],l=G.protocol&&!UY[G.protocol];if(l){if(G.hostname="",G.port=null,G.host)if(g[0]==="")g[0]=G.host;else g.unshift(G.host);if(G.host="",$.protocol){if($.hostname=null,$.port=null,$.host)if(b[0]==="")b[0]=$.host;else b.unshift($.host);$.host=null}w=w&&(b[0]===""||g[0]==="")}if(x)G.host=$.host||$.host===""?$.host:G.host,G.hostname=$.hostname||$.hostname===""?$.hostname:G.hostname,G.search=$.search,G.query=$.query,g=b;else if(b.length){if(!g)g=[];g.pop(),g=g.concat(b),G.search=$.search,G.query=$.query}else if(!to($.search)){if(l){G.hostname=G.host=g.shift();var i=G.host&&G.host.indexOf("@")>0?G.host.split("@"):!1;if(i)G.auth=i.shift(),G.host=G.hostname=i.shift()}if(G.search=$.search,G.query=$.query,!m5(G.pathname)||!m5(G.search))G.path=(G.pathname?G.pathname:"")+(G.search?G.search:"");return G.href=G.format(),G}if(!g.length){if(G.pathname=null,G.search)G.path="/"+G.search;else G.path=null;return G.href=G.format(),G}var $0=g.slice(-1)[0],Q0=(G.host||$.host||g.length>1)&&($0==="."||$0==="..")||$0==="",G0=0;for(var K0=g.length;K0>=0;K0--)if($0=g[K0],$0===".")g.splice(K0,1);else if($0==="..")g.splice(K0,1),G0++;else if(G0)g.splice(K0,1),G0--;if(!w&&!y)for(;G0--;G0)g.unshift("..");if(w&&g[0]!==""&&(!g[0]||g[0].charAt(0)!=="/"))g.unshift("");if(Q0&&g.join("/").substr(-1)!=="/")g.push("");var t=g[0]===""||g[0]&&g[0].charAt(0)==="/";if(l){G.hostname=G.host=t?"":g.length?g.shift():"";var i=G.host&&G.host.indexOf("@")>0?G.host.split("@"):!1;if(i)G.auth=i.shift(),G.host=G.hostname=i.shift()}if(w=w||G.host&&g.length,w&&!t)g.unshift("");if(!g.length)G.pathname=null,G.path=null;else G.pathname=g.join("/");if(!m5(G.pathname)||!m5(G.search))G.path=(G.pathname?G.pathname:"")+(G.search?G.search:"");return G.auth=$.auth||G.auth,G.slashes=G.slashes||$.slashes,G.href=G.format(),G};y6.prototype.parseHost=function(){var $=this.host,I=ao.exec($);if(I){if(I=I[0],I!==":")this.port=I.substr(1);$=$.substr(0,$.length-I.length)}if($)this.hostname=$};Xt={parse:IY,resolve:Lg,resolveObject:Kg,format:Og,Url:y6,URL:RE,URLSearchParams:zg}});var d5={};LU(d5,{request:()=>Rt,globalAgent:()=>Ct,get:()=>Pt,default:()=>Sg,STATUS_CODES:()=>qt,METHODS:()=>Nt,IncomingMessage:()=>St,ClientRequest:()=>Vt,Agent:()=>vt});var Gt,Yt,Dg,Jt,Qt,zt=($,I,G)=>{G=$!=null?Gt(Yt($)):{};let Z=I||!$||!$.__esModule?Dg(G,"default",{value:$,enumerable:!0}):G;for(let _ of Jt($))if(!Qt.call(Z,_))Dg(Z,_,{get:()=>$[_],enumerable:!0});return Z},x1=($,I)=>()=>(I||$((I={exports:{}}).exports,I),I.exports),Hg,Zt,IX,Ot,Fg,_X,Tg,Lt,Mg,_Y,Kt,Wg,vE,Dt,Wt,Ag,Eg,Ht,Ft,Rg,Pg,Tt,Mt,At,Et,Vg,Rt,Pt,Vt,St,vt,Ct,qt,Nt,Sg;var Xz=WI(()=>{Gt=Object.create,{getPrototypeOf:Yt,defineProperty:Dg,getOwnPropertyNames:Jt}=Object,Qt=Object.prototype.hasOwnProperty,Hg=x1(($)=>{$.fetch=_(globalThis.fetch)&&_(globalThis.ReadableStream),$.writableStream=_(globalThis.WritableStream),$.abortController=_(globalThis.AbortController);var I;function G(){if(I!==void 0)return I;if(globalThis.XMLHttpRequest){I=new globalThis.XMLHttpRequest;try{I.open("GET",globalThis.XDomainRequest?"/":"https://example.com")}catch(J){I=null}}else I=null;return I}function Z(J){var Y=G();if(!Y)return!1;try{return Y.responseType=J,Y.responseType===J}catch(W){}return!1}$.arraybuffer=$.fetch||Z("arraybuffer"),$.msstream=!$.fetch&&Z("ms-stream"),$.mozchunkedarraybuffer=!$.fetch&&Z("moz-chunked-arraybuffer"),$.overrideMimeType=$.fetch||(G()?_(G().overrideMimeType):!1);function _(J){return typeof J==="function"}I=null}),Zt=x1(($,I)=>{if(typeof Object.create==="function")I.exports=function(G,Z){if(Z)G.super_=Z,G.prototype=Object.create(Z.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}})};else I.exports=function(G,Z){if(Z){G.super_=Z;var _=function(){};_.prototype=Z.prototype,G.prototype=new _,G.prototype.constructor=G}}}),IX=x1(($,I)=>{try{if(G=(C2(),V$(v2)),typeof G.inherits!=="function")throw"";I.exports=G.inherits}catch(Z){I.exports=Zt()}var G}),Ot=x1(($,I)=>{function G(w,y){var g=Object.keys(w);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(w);y&&(b=b.filter(function(l){return Object.getOwnPropertyDescriptor(w,l).enumerable})),g.push.apply(g,b)}return g}function Z(w){for(var y=1;y<arguments.length;y++){var g=arguments[y]!=null?arguments[y]:{};y%2?G(Object(g),!0).forEach(function(b){_(w,b,g[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(g)):G(Object(g)).forEach(function(b){Object.defineProperty(w,b,Object.getOwnPropertyDescriptor(g,b))})}return w}function _(w,y,g){if(y=R(y),y in w)Object.defineProperty(w,y,{value:g,enumerable:!0,configurable:!0,writable:!0});else w[y]=g;return w}function J(w,y){if(!(w instanceof y))throw TypeError("Cannot call a class as a function")}function Y(w,y){for(var g=0;g<y.length;g++){var b=y[g];if(b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b)b.writable=!0;Object.defineProperty(w,R(b.key),b)}}function W(w,y,g){if(y)Y(w.prototype,y);if(g)Y(w,g);return Object.defineProperty(w,"prototype",{writable:!1}),w}function R(w){var y=M(w,"string");return typeof y==="symbol"?y:String(y)}function M(w,y){if(typeof w!=="object"||w===null)return w;var g=w[Symbol.toPrimitive];if(g!==void 0){var b=g.call(w,y||"default");if(typeof b!=="object")return b;throw TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(w)}var E=(u1(),V$(h1)),T=E.Buffer,S=(C2(),V$(v2)),N=S.inspect,B=N&&N.custom||"inspect";function x(w,y,g){T.prototype.copy.call(w,y,g)}I.exports=function(){function w(){J(this,w),this.head=null,this.tail=null,this.length=0}return W(w,[{key:"push",value:function(y){var g={data:y,next:null};if(this.length>0)this.tail.next=g;else this.head=g;this.tail=g,++this.length}},{key:"unshift",value:function(y){var g={data:y,next:this.head};if(this.length===0)this.tail=g;this.head=g,++this.length}},{key:"shift",value:function(){if(this.length===0)return;var y=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,y}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(y){if(this.length===0)return"";var g=this.head,b=""+g.data;while(g=g.next)b+=y+g.data;return b}},{key:"concat",value:function(y){if(this.length===0)return T.alloc(0);var g=T.allocUnsafe(y>>>0),b=this.head,l=0;while(b)x(b.data,g,l),l+=b.data.length,b=b.next;return g}},{key:"consume",value:function(y,g){var b;if(y<this.head.data.length)b=this.head.data.slice(0,y),this.head.data=this.head.data.slice(y);else if(y===this.head.data.length)b=this.shift();else b=g?this._getString(y):this._getBuffer(y);return b}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(y){var g=this.head,b=1,l=g.data;y-=l.length;while(g=g.next){var i=g.data,$0=y>i.length?i.length:y;if($0===i.length)l+=i;else l+=i.slice(0,y);if(y-=$0,y===0){if($0===i.length)if(++b,g.next)this.head=g.next;else this.head=this.tail=null;else this.head=g,g.data=i.slice($0);break}++b}return this.length-=b,l}},{key:"_getBuffer",value:function(y){var g=T.allocUnsafe(y),b=this.head,l=1;b.data.copy(g),y-=b.data.length;while(b=b.next){var i=b.data,$0=y>i.length?i.length:y;if(i.copy(g,g.length-y,0,$0),y-=$0,y===0){if($0===i.length)if(++l,b.next)this.head=b.next;else this.head=this.tail=null;else this.head=b,b.data=i.slice($0);break}++l}return this.length-=l,g}},{key:B,value:function(y,g){return N(this,Z(Z({},g),{},{depth:0,customInspect:!1}))}}]),w}()}),Fg=x1(($,I)=>{function G(R,M){var E=this,T=this._readableState&&this._readableState.destroyed,S=this._writableState&&this._writableState.destroyed;if(T||S){if(M)M(R);else if(R){if(!this._writableState)process.nextTick(Y,this,R);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,process.nextTick(Y,this,R)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy(R||null,function(N){if(!M&&N)if(!E._writableState)process.nextTick(Z,E,N);else if(!E._writableState.errorEmitted)E._writableState.errorEmitted=!0,process.nextTick(Z,E,N);else process.nextTick(_,E);else if(M)process.nextTick(_,E),M(N);else process.nextTick(_,E)}),this}function Z(R,M){Y(R,M),_(R)}function _(R){if(R._writableState&&!R._writableState.emitClose)return;if(R._readableState&&!R._readableState.emitClose)return;R.emit("close")}function J(){if(this._readableState)this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1;if(this._writableState)this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1}function Y(R,M){R.emit("error",M)}function W(R,M){var{_readableState:E,_writableState:T}=R;if(E&&E.autoDestroy||T&&T.autoDestroy)R.destroy(M);else R.emit("error",M)}I.exports={destroy:G,undestroy:J,errorOrDestroy:W}}),_X=x1(($,I)=>{var G={};function Z(R,M,E){if(!E)E=Error;function T(N,B,x){if(typeof M==="string")return M;else return M(N,B,x)}class S extends E{constructor(N,B,x){super(T(N,B,x))}}S.prototype.name=E.name,S.prototype.code=R,G[R]=S}function _(R,M){if(Array.isArray(R)){let E=R.length;if(R=R.map((T)=>String(T)),E>2)return`one of ${M} ${R.slice(0,E-1).join(", ")}, or `+R[E-1];else if(E===2)return`one of ${M} ${R[0]} or ${R[1]}`;else return`of ${M} ${R[0]}`}else return`of ${M} ${String(R)}`}function J(R,M,E){return R.substr(!E||E<0?0:+E,M.length)===M}function Y(R,M,E){if(E===void 0||E>R.length)E=R.length;return R.substring(E-M.length,E)===M}function W(R,M,E){if(typeof E!=="number")E=0;if(E+M.length>R.length)return!1;else return R.indexOf(M,E)!==-1}Z("ERR_INVALID_OPT_VALUE",function(R,M){return'The value "'+M+'" is invalid for option "'+R+'"'},TypeError),Z("ERR_INVALID_ARG_TYPE",function(R,M,E){let T;if(typeof M==="string"&&J(M,"not "))T="must not be",M=M.replace(/^not /,"");else T="must be";let S;if(Y(R," argument"))S=`The ${R} ${T} ${_(M,"type")}`;else{let N=W(R,".")?"property":"argument";S=`The "${R}" ${N} ${T} ${_(M,"type")}`}return S+=`. Received type ${typeof E}`,S},TypeError),Z("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),Z("ERR_METHOD_NOT_IMPLEMENTED",function(R){return"The "+R+" method is not implemented"}),Z("ERR_STREAM_PREMATURE_CLOSE","Premature close"),Z("ERR_STREAM_DESTROYED",function(R){return"Cannot call "+R+" after a stream was destroyed"}),Z("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),Z("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),Z("ERR_STREAM_WRITE_AFTER_END","write after end"),Z("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),Z("ERR_UNKNOWN_ENCODING",function(R){return"Unknown encoding: "+R},TypeError),Z("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),$.codes=G}),Tg=x1(($,I)=>{var G=_X().codes.ERR_INVALID_OPT_VALUE;function Z(J,Y,W){return J.highWaterMark!=null?J.highWaterMark:Y?J[W]:null}function _(J,Y,W,R){var M=Z(Y,R,W);if(M!=null){if(!(isFinite(M)&&Math.floor(M)===M)||M<0){var E=R?W:"highWaterMark";throw new G(E,M)}return Math.floor(M)}return J.objectMode?16:16384}I.exports={getHighWaterMark:_}}),Lt=x1(($,I)=>{I.exports=(C2(),V$(v2)).deprecate}),Mg=x1(($,I)=>{I.exports=t;function G(O0){var d=this;this.next=null,this.entry=null,this.finish=function(){D0(d,O0)}}var Z;t.WritableState=G0;var _={deprecate:Lt()},J=w4(),Y=(u1(),V$(h1)).Buffer,W=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function R(O0){return Y.from(O0)}function M(O0){return Y.isBuffer(O0)||O0 instanceof W}var E=Fg(),T=Tg(),S=T.getHighWaterMark,N=_X().codes,B=N.ERR_INVALID_ARG_TYPE,x=N.ERR_METHOD_NOT_IMPLEMENTED,w=N.ERR_MULTIPLE_CALLBACK,y=N.ERR_STREAM_CANNOT_PIPE,g=N.ERR_STREAM_DESTROYED,b=N.ERR_STREAM_NULL_VALUES,l=N.ERR_STREAM_WRITE_AFTER_END,i=N.ERR_UNKNOWN_ENCODING,$0=E.errorOrDestroy;IX()(t,J);function Q0(){}function G0(O0,d,m){if(Z=Z||_Y(),O0=O0||{},typeof m!=="boolean")m=d instanceof Z;if(this.objectMode=!!O0.objectMode,m)this.objectMode=this.objectMode||!!O0.writableObjectMode;this.highWaterMark=S(this,O0,"writableHighWaterMark",m),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var r=O0.decodeStrings===!1;this.decodeStrings=!r,this.defaultEncoding=O0.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Y0){q(d,Y0)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=O0.emitClose!==!1,this.autoDestroy=!!O0.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new G(this)}G0.prototype.getBuffer=function(){var O0=this.bufferedRequest,d=[];while(O0)d.push(O0),O0=O0.next;return d},function(){try{Object.defineProperty(G0.prototype,"buffer",{get:_.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(O0){}}();var K0;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")K0=Function.prototype[Symbol.hasInstance],Object.defineProperty(t,Symbol.hasInstance,{value:function(O0){if(K0.call(this,O0))return!0;if(this!==t)return!1;return O0&&O0._writableState instanceof G0}});else K0=function(O0){return O0 instanceof this};function t(O0){Z=Z||_Y();var d=this instanceof Z;if(!d&&!K0.call(t,this))return new t(O0);if(this._writableState=new G0(O0,this,d),this.writable=!0,O0){if(typeof O0.write==="function")this._write=O0.write;if(typeof O0.writev==="function")this._writev=O0.writev;if(typeof O0.destroy==="function")this._destroy=O0.destroy;if(typeof O0.final==="function")this._final=O0.final}J.call(this)}t.prototype.pipe=function(){$0(this,new y)};function P0(O0,d){var m=new l;$0(O0,m),process.nextTick(d,m)}function Q(O0,d,m,r){var Y0;if(m===null)Y0=new b;else if(typeof m!=="string"&&!d.objectMode)Y0=new B("chunk",["string","Buffer"],m);if(Y0)return $0(O0,Y0),process.nextTick(r,Y0),!1;return!0}t.prototype.write=function(O0,d,m){var r=this._writableState,Y0=!1,W0=!r.objectMode&&M(O0);if(W0&&!Y.isBuffer(O0))O0=R(O0);if(typeof d==="function")m=d,d=null;if(W0)d="buffer";else if(!d)d=r.defaultEncoding;if(typeof m!=="function")m=Q0;if(r.ending)P0(this,m);else if(W0||Q(this,r,O0,m))r.pendingcb++,Y0=F(this,r,W0,O0,d,m);return Y0},t.prototype.cork=function(){this._writableState.corked++},t.prototype.uncork=function(){var O0=this._writableState;if(O0.corked){if(O0.corked--,!O0.writing&&!O0.corked&&!O0.bufferProcessing&&O0.bufferedRequest)A(this,O0)}},t.prototype.setDefaultEncoding=function(O0){if(typeof O0==="string")O0=O0.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((O0+"").toLowerCase())>-1))throw new i(O0);return this._writableState.defaultEncoding=O0,this},Object.defineProperty(t.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function K(O0,d,m){if(!O0.objectMode&&O0.decodeStrings!==!1&&typeof d==="string")d=Y.from(d,m);return d}Object.defineProperty(t.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function F(O0,d,m,r,Y0,W0){if(!m){var I0=K(d,r,Y0);if(r!==I0)m=!0,Y0="buffer",r=I0}var c=d.objectMode?1:r.length;d.length+=c;var s=d.length<d.highWaterMark;if(!s)d.needDrain=!0;if(d.writing||d.corked){var S0=d.lastBufferedRequest;if(d.lastBufferedRequest={chunk:r,encoding:Y0,isBuf:m,callback:W0,next:null},S0)S0.next=d.lastBufferedRequest;else d.bufferedRequest=d.lastBufferedRequest;d.bufferedRequestCount+=1}else L(O0,d,!1,c,r,Y0,W0);return s}function L(O0,d,m,r,Y0,W0,I0){if(d.writelen=r,d.writecb=I0,d.writing=!0,d.sync=!0,d.destroyed)d.onwrite(new g("write"));else if(m)O0._writev(Y0,d.onwrite);else O0._write(Y0,W0,d.onwrite);d.sync=!1}function H(O0,d,m,r,Y0){if(--d.pendingcb,m)process.nextTick(Y0,r),process.nextTick(a,O0,d),O0._writableState.errorEmitted=!0,$0(O0,r);else Y0(r),O0._writableState.errorEmitted=!0,$0(O0,r),a(O0,d)}function v(O0){O0.writing=!1,O0.writecb=null,O0.length-=O0.writelen,O0.writelen=0}function q(O0,d){var m=O0._writableState,r=m.sync,Y0=m.writecb;if(typeof Y0!=="function")throw new w;if(v(m),d)H(O0,m,r,d,Y0);else{var W0=k(m)||O0.destroyed;if(!W0&&!m.corked&&!m.bufferProcessing&&m.bufferedRequest)A(O0,m);if(r)process.nextTick(P,O0,m,W0,Y0);else P(O0,m,W0,Y0)}}function P(O0,d,m,r){if(!m)O(O0,d);d.pendingcb--,r(),a(O0,d)}function O(O0,d){if(d.length===0&&d.needDrain)d.needDrain=!1,O0.emit("drain")}function A(O0,d){d.bufferProcessing=!0;var m=d.bufferedRequest;if(O0._writev&&m&&m.next){var r=d.bufferedRequestCount,Y0=Array(r),W0=d.corkedRequestsFree;W0.entry=m;var I0=0,c=!0;while(m){if(Y0[I0]=m,!m.isBuf)c=!1;m=m.next,I0+=1}if(Y0.allBuffers=c,L(O0,d,!0,d.length,Y0,"",W0.finish),d.pendingcb++,d.lastBufferedRequest=null,W0.next)d.corkedRequestsFree=W0.next,W0.next=null;else d.corkedRequestsFree=new G(d);d.bufferedRequestCount=0}else{while(m){var{chunk:s,encoding:S0,callback:M0}=m,z0=d.objectMode?1:s.length;if(L(O0,d,!1,z0,s,S0,M0),m=m.next,d.bufferedRequestCount--,d.writing)break}if(m===null)d.lastBufferedRequest=null}d.bufferedRequest=m,d.bufferProcessing=!1}t.prototype._write=function(O0,d,m){m(new x("_write()"))},t.prototype._writev=null,t.prototype.end=function(O0,d,m){var r=this._writableState;if(typeof O0==="function")m=O0,O0=null,d=null;else if(typeof d==="function")m=d,d=null;if(O0!==null&&O0!==void 0)this.write(O0,d);if(r.corked)r.corked=1,this.uncork();if(!r.ending)J0(this,r,m);return this},Object.defineProperty(t.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function k(O0){return O0.ending&&O0.length===0&&O0.bufferedRequest===null&&!O0.finished&&!O0.writing}function j(O0,d){O0._final(function(m){if(d.pendingcb--,m)$0(O0,m);d.prefinished=!0,O0.emit("prefinish"),a(O0,d)})}function h(O0,d){if(!d.prefinished&&!d.finalCalled)if(typeof O0._final==="function"&&!d.destroyed)d.pendingcb++,d.finalCalled=!0,process.nextTick(j,O0,d);else d.prefinished=!0,O0.emit("prefinish")}function a(O0,d){var m=k(d);if(m){if(h(O0,d),d.pendingcb===0){if(d.finished=!0,O0.emit("finish"),d.autoDestroy){var r=O0._readableState;if(!r||r.autoDestroy&&r.endEmitted)O0.destroy()}}}return m}function J0(O0,d,m){if(d.ending=!0,a(O0,d),m)if(d.finished)process.nextTick(m);else O0.once("finish",m);d.ended=!0,O0.writable=!1}function D0(O0,d,m){var r=O0.entry;O0.entry=null;while(r){var Y0=r.callback;d.pendingcb--,Y0(m),r=r.next}d.corkedRequestsFree.next=O0}Object.defineProperty(t.prototype,"destroyed",{enumerable:!1,get:function(){if(this._writableState===void 0)return!1;return this._writableState.destroyed},set:function(O0){if(!this._writableState)return;this._writableState.destroyed=O0}}),t.prototype.destroy=E.destroy,t.prototype._undestroy=E.undestroy,t.prototype._destroy=function(O0,d){d(O0)}}),_Y=x1(($,I)=>{var G=Object.keys||function(T){var S=[];for(var N in T)S.push(N);return S};I.exports=R;var Z=Ag(),_=Mg();IX()(R,Z);{J=G(_.prototype);for(W=0;W<J.length;W++)if(Y=J[W],!R.prototype[Y])R.prototype[Y]=_.prototype[Y]}var J,Y,W;function R(T){if(!(this instanceof R))return new R(T);if(Z.call(this,T),_.call(this,T),this.allowHalfOpen=!0,T){if(T.readable===!1)this.readable=!1;if(T.writable===!1)this.writable=!1;if(T.allowHalfOpen===!1)this.allowHalfOpen=!1,this.once("end",M)}}Object.defineProperty(R.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(R.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(R.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function M(){if(this._writableState.ended)return;process.nextTick(E,this)}function E(T){T.end()}Object.defineProperty(R.prototype,"destroyed",{enumerable:!1,get:function(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set:function(T){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=T,this._writableState.destroyed=T}})}),Kt=x1(($,I)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var G=(u1(),V$(h1)),Z=G.Buffer;function _(Y,W){for(var R in Y)W[R]=Y[R]}if(Z.from&&Z.alloc&&Z.allocUnsafe&&Z.allocUnsafeSlow)I.exports=G;else _(G,$),$.Buffer=J;function J(Y,W,R){return Z(Y,W,R)}J.prototype=Object.create(Z.prototype),_(Z,J),J.from=function(Y,W,R){if(typeof Y==="number")throw TypeError("Argument must not be a number");return Z(Y,W,R)},J.alloc=function(Y,W,R){if(typeof Y!=="number")throw TypeError("Argument must be a number");var M=Z(Y);if(W!==void 0)if(typeof R==="string")M.fill(W,R);else M.fill(W);else M.fill(0);return M},J.allocUnsafe=function(Y){if(typeof Y!=="number")throw TypeError("Argument must be a number");return Z(Y)},J.allocUnsafeSlow=function(Y){if(typeof Y!=="number")throw TypeError("Argument must be a number");return G.SlowBuffer(Y)}}),Wg=x1(($)=>{var I=Kt().Buffer,G=I.isEncoding||function(g){switch(g=""+g,g&&g.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Z(g){if(!g)return"utf8";var b;while(!0)switch(g){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return g;default:if(b)return;g=(""+g).toLowerCase(),b=!0}}function _(g){var b=Z(g);if(typeof b!=="string"&&(I.isEncoding===G||!G(g)))throw Error("Unknown encoding: "+g);return b||g}$.StringDecoder=J;function J(g){this.encoding=_(g);var b;switch(this.encoding){case"utf16le":this.text=S,this.end=N,b=4;break;case"utf8":this.fillLast=M,b=4;break;case"base64":this.text=B,this.end=x,b=3;break;default:this.write=w,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=I.allocUnsafe(b)}J.prototype.write=function(g){if(g.length===0)return"";var b,l;if(this.lastNeed){if(b=this.fillLast(g),b===void 0)return"";l=this.lastNeed,this.lastNeed=0}else l=0;if(l<g.length)return b?b+this.text(g,l):this.text(g,l);return b||""},J.prototype.end=T,J.prototype.text=E,J.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length};function Y(g){if(g<=127)return 0;else if(g>>5===6)return 2;else if(g>>4===14)return 3;else if(g>>3===30)return 4;return g>>6===2?-1:-2}function W(g,b,l){var i=b.length-1;if(i<l)return 0;var $0=Y(b[i]);if($0>=0){if($0>0)g.lastNeed=$0-1;return $0}if(--i<l||$0===-2)return 0;if($0=Y(b[i]),$0>=0){if($0>0)g.lastNeed=$0-2;return $0}if(--i<l||$0===-2)return 0;if($0=Y(b[i]),$0>=0){if($0>0)if($0===2)$0=0;else g.lastNeed=$0-3;return $0}return 0}function R(g,b,l){if((b[0]&192)!==128)return g.lastNeed=0,"�";if(g.lastNeed>1&&b.length>1){if((b[1]&192)!==128)return g.lastNeed=1,"�";if(g.lastNeed>2&&b.length>2){if((b[2]&192)!==128)return g.lastNeed=2,"�"}}}function M(g){var b=this.lastTotal-this.lastNeed,l=R(this,g,b);if(l!==void 0)return l;if(this.lastNeed<=g.length)return g.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,b,0,g.length),this.lastNeed-=g.length}function E(g,b){var l=W(this,g,b);if(!this.lastNeed)return g.toString("utf8",b);this.lastTotal=l;var i=g.length-(l-this.lastNeed);return g.copy(this.lastChar,0,i),g.toString("utf8",b,i)}function T(g){var b=g&&g.length?this.write(g):"";if(this.lastNeed)return b+"�";return b}function S(g,b){if((g.length-b)%2===0){var l=g.toString("utf16le",b);if(l){var i=l.charCodeAt(l.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],l.slice(0,-1)}return l}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",b,g.length-1)}function N(g){var b=g&&g.length?this.write(g):"";if(this.lastNeed){var l=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,l)}return b}function B(g,b){var l=(g.length-b)%3;if(l===0)return g.toString("base64",b);if(this.lastNeed=3-l,this.lastTotal=3,l===1)this.lastChar[0]=g[g.length-1];else this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1];return g.toString("base64",b,g.length-l)}function x(g){var b=g&&g.length?this.write(g):"";if(this.lastNeed)return b+this.lastChar.toString("base64",0,3-this.lastNeed);return b}function w(g){return g.toString(this.encoding)}function y(g){return g&&g.length?this.write(g):""}}),vE=x1(($,I)=>{var G=_X().codes.ERR_STREAM_PREMATURE_CLOSE;function Z(W){var R=!1;return function(){if(R)return;R=!0;for(var M=arguments.length,E=Array(M),T=0;T<M;T++)E[T]=arguments[T];W.apply(this,E)}}function _(){}function J(W){return W.setHeader&&typeof W.abort==="function"}function Y(W,R,M){if(typeof R==="function")return Y(W,null,R);if(!R)R={};M=Z(M||_);var E=R.readable||R.readable!==!1&&W.readable,T=R.writable||R.writable!==!1&&W.writable,S=function(){if(!W.writable)B()},N=W._writableState&&W._writableState.finished,B=function(){if(T=!1,N=!0,!E)M.call(W)},x=W._readableState&&W._readableState.endEmitted,w=function(){if(E=!1,x=!0,!T)M.call(W)},y=function(l){M.call(W,l)},g=function(){var l;if(E&&!x){if(!W._readableState||!W._readableState.ended)l=new G;return M.call(W,l)}if(T&&!N){if(!W._writableState||!W._writableState.ended)l=new G;return M.call(W,l)}},b=function(){W.req.on("finish",B)};if(J(W))if(W.on("complete",B),W.on("abort",g),W.req)b();else W.on("request",b);else if(T&&!W._writableState)W.on("end",S),W.on("close",S);if(W.on("end",w),W.on("finish",B),R.error!==!1)W.on("error",y);return W.on("close",g),function(){if(W.removeListener("complete",B),W.removeListener("abort",g),W.removeListener("request",b),W.req)W.req.removeListener("finish",B);W.removeListener("end",S),W.removeListener("close",S),W.removeListener("finish",B),W.removeListener("end",w),W.removeListener("error",y),W.removeListener("close",g)}}I.exports=Y}),Dt=x1(($,I)=>{var G;function Z(i,$0,Q0){if($0=_($0),$0 in i)Object.defineProperty(i,$0,{value:Q0,enumerable:!0,configurable:!0,writable:!0});else i[$0]=Q0;return i}function _(i){var $0=J(i,"string");return typeof $0==="symbol"?$0:String($0)}function J(i,$0){if(typeof i!=="object"||i===null)return i;var Q0=i[Symbol.toPrimitive];if(Q0!==void 0){var G0=Q0.call(i,$0||"default");if(typeof G0!=="object")return G0;throw TypeError("@@toPrimitive must return a primitive value.")}return($0==="string"?String:Number)(i)}var Y=vE(),W=Symbol("lastResolve"),R=Symbol("lastReject"),M=Symbol("error"),E=Symbol("ended"),T=Symbol("lastPromise"),S=Symbol("handlePromise"),N=Symbol("stream");function B(i,$0){return{value:i,done:$0}}function x(i){var $0=i[W];if($0!==null){var Q0=i[N].read();if(Q0!==null)i[T]=null,i[W]=null,i[R]=null,$0(B(Q0,!1))}}function w(i){process.nextTick(x,i)}function y(i,$0){return function(Q0,G0){i.then(function(){if($0[E]){Q0(B(void 0,!0));return}$0[S](Q0,G0)},G0)}}var g=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((G={get stream(){return this[N]},next:function(){var i=this,$0=this[M];if($0!==null)return Promise.reject($0);if(this[E])return Promise.resolve(B(void 0,!0));if(this[N].destroyed)return new Promise(function(t,P0){process.nextTick(function(){if(i[M])P0(i[M]);else t(B(void 0,!0))})});var Q0=this[T],G0;if(Q0)G0=new Promise(y(Q0,this));else{var K0=this[N].read();if(K0!==null)return Promise.resolve(B(K0,!1));G0=new Promise(this[S])}return this[T]=G0,G0}},Z(G,Symbol.asyncIterator,function(){return this}),Z(G,"return",function(){var i=this;return new Promise(function($0,Q0){i[N].destroy(null,function(G0){if(G0){Q0(G0);return}$0(B(void 0,!0))})})}),G),g),l=function(i){var $0,Q0=Object.create(b,($0={},Z($0,N,{value:i,writable:!0}),Z($0,W,{value:null,writable:!0}),Z($0,R,{value:null,writable:!0}),Z($0,M,{value:null,writable:!0}),Z($0,E,{value:i._readableState.endEmitted,writable:!0}),Z($0,S,{value:function(G0,K0){var t=Q0[N].read();if(t)Q0[T]=null,Q0[W]=null,Q0[R]=null,G0(B(t,!1));else Q0[W]=G0,Q0[R]=K0},writable:!0}),$0));return Q0[T]=null,Y(i,function(G0){if(G0&&G0.code!=="ERR_STREAM_PREMATURE_CLOSE"){var K0=Q0[R];if(K0!==null)Q0[T]=null,Q0[W]=null,Q0[R]=null,K0(G0);Q0[M]=G0;return}var t=Q0[W];if(t!==null)Q0[T]=null,Q0[W]=null,Q0[R]=null,t(B(void 0,!0));Q0[E]=!0}),i.on("readable",w.bind(null,Q0)),Q0};I.exports=l}),Wt=x1(($,I)=>{function G(T,S,N,B,x,w,y){try{var g=T[w](y),b=g.value}catch(l){N(l);return}if(g.done)S(b);else Promise.resolve(b).then(B,x)}function Z(T){return function(){var S=this,N=arguments;return new Promise(function(B,x){var w=T.apply(S,N);function y(b){G(w,B,x,y,g,"next",b)}function g(b){G(w,B,x,y,g,"throw",b)}y(void 0)})}}function _(T,S){var N=Object.keys(T);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(T);S&&(B=B.filter(function(x){return Object.getOwnPropertyDescriptor(T,x).enumerable})),N.push.apply(N,B)}return N}function J(T){for(var S=1;S<arguments.length;S++){var N=arguments[S]!=null?arguments[S]:{};S%2?_(Object(N),!0).forEach(function(B){Y(T,B,N[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(N)):_(Object(N)).forEach(function(B){Object.defineProperty(T,B,Object.getOwnPropertyDescriptor(N,B))})}return T}function Y(T,S,N){if(S=W(S),S in T)Object.defineProperty(T,S,{value:N,enumerable:!0,configurable:!0,writable:!0});else T[S]=N;return T}function W(T){var S=R(T,"string");return typeof S==="symbol"?S:String(S)}function R(T,S){if(typeof T!=="object"||T===null)return T;var N=T[Symbol.toPrimitive];if(N!==void 0){var B=N.call(T,S||"default");if(typeof B!=="object")return B;throw TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(T)}var M=_X().codes.ERR_INVALID_ARG_TYPE;function E(T,S,N){var B;if(S&&typeof S.next==="function")B=S;else if(S&&S[Symbol.asyncIterator])B=S[Symbol.asyncIterator]();else if(S&&S[Symbol.iterator])B=S[Symbol.iterator]();else throw new M("iterable",["Iterable"],S);var x=new T(J({objectMode:!0},N)),w=!1;x._read=function(){if(!w)w=!0,y()};function y(){return g.apply(this,arguments)}function g(){return g=Z(function*(){try{var b=yield B.next(),l=b.value,i=b.done;if(i)x.push(null);else if(x.push(yield l))y();else w=!1}catch($0){x.destroy($0)}}),g.apply(this,arguments)}return x}I.exports=E}),Ag=x1(($,I)=>{I.exports=Q;var G;Q.ReadableState=P0;var Z=(ZG(),V$(zG)).EventEmitter,_=function(I0,c){return I0.listeners(c).length},J=w4(),Y=(u1(),V$(h1)).Buffer,W=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function R(I0){return Y.from(I0)}function M(I0){return Y.isBuffer(I0)||I0 instanceof W}var E=(C2(),V$(v2)),T;if(E&&E.debuglog)T=E.debuglog("stream");else T=function(){};var S=Ot(),N=Fg(),B=Tg(),x=B.getHighWaterMark,w=_X().codes,y=w.ERR_INVALID_ARG_TYPE,g=w.ERR_STREAM_PUSH_AFTER_EOF,b=w.ERR_METHOD_NOT_IMPLEMENTED,l=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,i,$0,Q0;IX()(Q,J);var G0=N.errorOrDestroy,K0=["error","close","destroy","pause","resume"];function t(I0,c,s){if(typeof I0.prependListener==="function")return I0.prependListener(c,s);if(!I0._events||!I0._events[c])I0.on(c,s);else if(Array.isArray(I0._events[c]))I0._events[c].unshift(s);else I0._events[c]=[s,I0._events[c]]}function P0(I0,c,s){if(G=G||_Y(),I0=I0||{},typeof s!=="boolean")s=c instanceof G;if(this.objectMode=!!I0.objectMode,s)this.objectMode=this.objectMode||!!I0.readableObjectMode;if(this.highWaterMark=x(this,I0,"readableHighWaterMark",s),this.buffer=new S,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=I0.emitClose!==!1,this.autoDestroy=!!I0.autoDestroy,this.destroyed=!1,this.defaultEncoding=I0.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,I0.encoding){if(!i)i=Wg().StringDecoder;this.decoder=new i(I0.encoding),this.encoding=I0.encoding}}function Q(I0){if(G=G||_Y(),!(this instanceof Q))return new Q(I0);var c=this instanceof G;if(this._readableState=new P0(I0,this,c),this.readable=!0,I0){if(typeof I0.read==="function")this._read=I0.read;if(typeof I0.destroy==="function")this._destroy=I0.destroy}J.call(this)}Object.defineProperty(Q.prototype,"destroyed",{enumerable:!1,get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function(I0){if(!this._readableState)return;this._readableState.destroyed=I0}}),Q.prototype.destroy=N.destroy,Q.prototype._undestroy=N.undestroy,Q.prototype._destroy=function(I0,c){c(I0)},Q.prototype.push=function(I0,c){var s=this._readableState,S0;if(!s.objectMode){if(typeof I0==="string"){if(c=c||s.defaultEncoding,c!==s.encoding)I0=Y.from(I0,c),c="";S0=!0}}else S0=!0;return K(this,I0,c,!1,S0)},Q.prototype.unshift=function(I0){return K(this,I0,null,!0,!1)};function K(I0,c,s,S0,M0){T("readableAddChunk",c);var z0=I0._readableState;if(c===null)z0.reading=!1,P(I0,z0);else{var c0;if(!M0)c0=L(z0,c);if(c0)G0(I0,c0);else if(z0.objectMode||c&&c.length>0){if(typeof c!=="string"&&!z0.objectMode&&Object.getPrototypeOf(c)!==Y.prototype)c=R(c);if(S0)if(z0.endEmitted)G0(I0,new l);else F(I0,z0,c,!0);else if(z0.ended)G0(I0,new g);else if(z0.destroyed)return!1;else if(z0.reading=!1,z0.decoder&&!s)if(c=z0.decoder.write(c),z0.objectMode||c.length!==0)F(I0,z0,c,!1);else k(I0,z0);else F(I0,z0,c,!1)}else if(!S0)z0.reading=!1,k(I0,z0)}return!z0.ended&&(z0.length<z0.highWaterMark||z0.length===0)}function F(I0,c,s,S0){if(c.flowing&&c.length===0&&!c.sync)c.awaitDrain=0,I0.emit("data",s);else{if(c.length+=c.objectMode?1:s.length,S0)c.buffer.unshift(s);else c.buffer.push(s);if(c.needReadable)O(I0)}k(I0,c)}function L(I0,c){var s;if(!M(c)&&typeof c!=="string"&&c!==void 0&&!I0.objectMode)s=new y("chunk",["string","Buffer","Uint8Array"],c);return s}Q.prototype.isPaused=function(){return this._readableState.flowing===!1},Q.prototype.setEncoding=function(I0){if(!i)i=Wg().StringDecoder;var c=new i(I0);this._readableState.decoder=c,this._readableState.encoding=this._readableState.decoder.encoding;var s=this._readableState.buffer.head,S0="";while(s!==null)S0+=c.write(s.data),s=s.next;if(this._readableState.buffer.clear(),S0!=="")this._readableState.buffer.push(S0);return this._readableState.length=S0.length,this};var H=1073741824;function v(I0){if(I0>=H)I0=H;else I0--,I0|=I0>>>1,I0|=I0>>>2,I0|=I0>>>4,I0|=I0>>>8,I0|=I0>>>16,I0++;return I0}function q(I0,c){if(I0<=0||c.length===0&&c.ended)return 0;if(c.objectMode)return 1;if(I0!==I0)if(c.flowing&&c.length)return c.buffer.head.data.length;else return c.length;if(I0>c.highWaterMark)c.highWaterMark=v(I0);if(I0<=c.length)return I0;if(!c.ended)return c.needReadable=!0,0;return c.length}Q.prototype.read=function(I0){T("read",I0),I0=parseInt(I0,10);var c=this._readableState,s=I0;if(I0!==0)c.emittedReadable=!1;if(I0===0&&c.needReadable&&((c.highWaterMark!==0?c.length>=c.highWaterMark:c.length>0)||c.ended)){if(T("read: emitReadable",c.length,c.ended),c.length===0&&c.ended)r(this);else O(this);return null}if(I0=q(I0,c),I0===0&&c.ended){if(c.length===0)r(this);return null}var S0=c.needReadable;if(T("need readable",S0),c.length===0||c.length-I0<c.highWaterMark)S0=!0,T("length less than watermark",S0);if(c.ended||c.reading)S0=!1,T("reading or ended",S0);else if(S0){if(T("do read"),c.reading=!0,c.sync=!0,c.length===0)c.needReadable=!0;if(this._read(c.highWaterMark),c.sync=!1,!c.reading)I0=q(s,c)}var M0;if(I0>0)M0=m(I0,c);else M0=null;if(M0===null)c.needReadable=c.length<=c.highWaterMark,I0=0;else c.length-=I0,c.awaitDrain=0;if(c.length===0){if(!c.ended)c.needReadable=!0;if(s!==I0&&c.ended)r(this)}if(M0!==null)this.emit("data",M0);return M0};function P(I0,c){if(T("onEofChunk"),c.ended)return;if(c.decoder){var s=c.decoder.end();if(s&&s.length)c.buffer.push(s),c.length+=c.objectMode?1:s.length}if(c.ended=!0,c.sync)O(I0);else if(c.needReadable=!1,!c.emittedReadable)c.emittedReadable=!0,A(I0)}function O(I0){var c=I0._readableState;if(T("emitReadable",c.needReadable,c.emittedReadable),c.needReadable=!1,!c.emittedReadable)T("emitReadable",c.flowing),c.emittedReadable=!0,process.nextTick(A,I0)}function A(I0){var c=I0._readableState;if(T("emitReadable_",c.destroyed,c.length,c.ended),!c.destroyed&&(c.length||c.ended))I0.emit("readable"),c.emittedReadable=!1;c.needReadable=!c.flowing&&!c.ended&&c.length<=c.highWaterMark,d(I0)}function k(I0,c){if(!c.readingMore)c.readingMore=!0,process.nextTick(j,I0,c)}function j(I0,c){while(!c.reading&&!c.ended&&(c.length<c.highWaterMark||c.flowing&&c.length===0)){var s=c.length;if(T("maybeReadMore read 0"),I0.read(0),s===c.length)break}c.readingMore=!1}Q.prototype._read=function(I0){G0(this,new b("_read()"))},Q.prototype.pipe=function(I0,c){var s=this,S0=this._readableState;switch(S0.pipesCount){case 0:S0.pipes=I0;break;case 1:S0.pipes=[S0.pipes,I0];break;default:S0.pipes.push(I0);break}S0.pipesCount+=1,T("pipe count=%d opts=%j",S0.pipesCount,c);var M0=(!c||c.end!==!1)&&I0!==process.stdout&&I0!==process.stderr,z0=M0?F0:X$;if(S0.endEmitted)process.nextTick(z0);else s.once("end",z0);I0.on("unpipe",c0);function c0(p0,l0){if(T("onunpipe"),p0===s){if(l0&&l0.hasUnpiped===!1)l0.hasUnpiped=!0,k0()}}function F0(){T("onend"),I0.end()}var q0=h(s);I0.on("drain",q0);var s0=!1;function k0(){if(T("cleanup"),I0.removeListener("close",T0),I0.removeListener("finish",V0),I0.removeListener("drain",q0),I0.removeListener("error",M$),I0.removeListener("unpipe",c0),s.removeListener("end",F0),s.removeListener("end",X$),s.removeListener("data",n0),s0=!0,S0.awaitDrain&&(!I0._writableState||I0._writableState.needDrain))q0()}s.on("data",n0);function n0(p0){T("ondata");var l0=I0.write(p0);if(T("dest.write",l0),l0===!1){if((S0.pipesCount===1&&S0.pipes===I0||S0.pipesCount>1&&W0(S0.pipes,I0)!==-1)&&!s0)T("false write response, pause",S0.awaitDrain),S0.awaitDrain++;s.pause()}}function M$(p0){if(T("onerror",p0),X$(),I0.removeListener("error",M$),_(I0,"error")===0)G0(I0,p0)}t(I0,"error",M$);function T0(){I0.removeListener("finish",V0),X$()}I0.once("close",T0);function V0(){T("onfinish"),I0.removeListener("close",T0),X$()}I0.once("finish",V0);function X$(){T("unpipe"),s.unpipe(I0)}if(I0.emit("pipe",s),!S0.flowing)T("pipe resume"),s.resume();return I0};function h(I0){return function(){var c=I0._readableState;if(T("pipeOnDrain",c.awaitDrain),c.awaitDrain)c.awaitDrain--;if(c.awaitDrain===0&&_(I0,"data"))c.flowing=!0,d(I0)}}Q.prototype.unpipe=function(I0){var c=this._readableState,s={hasUnpiped:!1};if(c.pipesCount===0)return this;if(c.pipesCount===1){if(I0&&I0!==c.pipes)return this;if(!I0)I0=c.pipes;if(c.pipes=null,c.pipesCount=0,c.flowing=!1,I0)I0.emit("unpipe",this,s);return this}if(!I0){var{pipes:S0,pipesCount:M0}=c;c.pipes=null,c.pipesCount=0,c.flowing=!1;for(var z0=0;z0<M0;z0++)S0[z0].emit("unpipe",this,{hasUnpiped:!1});return this}var c0=W0(c.pipes,I0);if(c0===-1)return this;if(c.pipes.splice(c0,1),c.pipesCount-=1,c.pipesCount===1)c.pipes=c.pipes[0];return I0.emit("unpipe",this,s),this},Q.prototype.on=function(I0,c){var s=J.prototype.on.call(this,I0,c),S0=this._readableState;if(I0==="data"){if(S0.readableListening=this.listenerCount("readable")>0,S0.flowing!==!1)this.resume()}else if(I0==="readable"){if(!S0.endEmitted&&!S0.readableListening){if(S0.readableListening=S0.needReadable=!0,S0.flowing=!1,S0.emittedReadable=!1,T("on readable",S0.length,S0.reading),S0.length)O(this);else if(!S0.reading)process.nextTick(J0,this)}}return s},Q.prototype.addListener=Q.prototype.on,Q.prototype.removeListener=function(I0,c){var s=J.prototype.removeListener.call(this,I0,c);if(I0==="readable")process.nextTick(a,this);return s},Q.prototype.removeAllListeners=function(I0){var c=J.prototype.removeAllListeners.apply(this,arguments);if(I0==="readable"||I0===void 0)process.nextTick(a,this);return c};function a(I0){var c=I0._readableState;if(c.readableListening=I0.listenerCount("readable")>0,c.resumeScheduled&&!c.paused)c.flowing=!0;else if(I0.listenerCount("data")>0)I0.resume()}function J0(I0){T("readable nexttick read 0"),I0.read(0)}Q.prototype.resume=function(){var I0=this._readableState;if(!I0.flowing)T("resume"),I0.flowing=!I0.readableListening,D0(this,I0);return I0.paused=!1,this};function D0(I0,c){if(!c.resumeScheduled)c.resumeScheduled=!0,process.nextTick(O0,I0,c)}function O0(I0,c){if(T("resume",c.reading),!c.reading)I0.read(0);if(c.resumeScheduled=!1,I0.emit("resume"),d(I0),c.flowing&&!c.reading)I0.read(0)}Q.prototype.pause=function(){if(T("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)T("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState.paused=!0,this};function d(I0){var c=I0._readableState;T("flow",c.flowing);while(c.flowing&&I0.read()!==null);}if(Q.prototype.wrap=function(I0){var c=this,s=this._readableState,S0=!1;I0.on("end",function(){if(T("wrapped end"),s.decoder&&!s.ended){var c0=s.decoder.end();if(c0&&c0.length)c.push(c0)}c.push(null)}),I0.on("data",function(c0){if(T("wrapped data"),s.decoder)c0=s.decoder.write(c0);if(s.objectMode&&(c0===null||c0===void 0))return;else if(!s.objectMode&&(!c0||!c0.length))return;var F0=c.push(c0);if(!F0)S0=!0,I0.pause()});for(var M0 in I0)if(this[M0]===void 0&&typeof I0[M0]==="function")this[M0]=function(c0){return function(){return I0[c0].apply(I0,arguments)}}(M0);for(var z0=0;z0<K0.length;z0++)I0.on(K0[z0],this.emit.bind(this,K0[z0]));return this._read=function(c0){if(T("wrapped _read",c0),S0)S0=!1,I0.resume()},this},typeof Symbol==="function")Q.prototype[Symbol.asyncIterator]=function(){if($0===void 0)$0=Dt();return $0(this)};Object.defineProperty(Q.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Q.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Q.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(I0){if(this._readableState)this._readableState.flowing=I0}}),Q._fromList=m,Object.defineProperty(Q.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function m(I0,c){if(c.length===0)return null;var s;if(c.objectMode)s=c.buffer.shift();else if(!I0||I0>=c.length){if(c.decoder)s=c.buffer.join("");else if(c.buffer.length===1)s=c.buffer.first();else s=c.buffer.concat(c.length);c.buffer.clear()}else s=c.buffer.consume(I0,c.decoder);return s}function r(I0){var c=I0._readableState;if(T("endReadable",c.endEmitted),!c.endEmitted)c.ended=!0,process.nextTick(Y0,c,I0)}function Y0(I0,c){if(T("endReadableNT",I0.endEmitted,I0.length),!I0.endEmitted&&I0.length===0){if(I0.endEmitted=!0,c.readable=!1,c.emit("end"),I0.autoDestroy){var s=c._writableState;if(!s||s.autoDestroy&&s.finished)c.destroy()}}}if(typeof Symbol==="function")Q.from=function(I0,c){if(Q0===void 0)Q0=Wt();return Q0(Q,I0,c)};function W0(I0,c){for(var s=0,S0=I0.length;s<S0;s++)if(I0[s]===c)return s;return-1}}),Eg=x1(($,I)=>{I.exports=M;var G=_X().codes,Z=G.ERR_METHOD_NOT_IMPLEMENTED,_=G.ERR_MULTIPLE_CALLBACK,J=G.ERR_TRANSFORM_ALREADY_TRANSFORMING,Y=G.ERR_TRANSFORM_WITH_LENGTH_0,W=_Y();IX()(M,W);function R(S,N){var B=this._transformState;B.transforming=!1;var x=B.writecb;if(x===null)return this.emit("error",new _);if(B.writechunk=null,B.writecb=null,N!=null)this.push(N);x(S);var w=this._readableState;if(w.reading=!1,w.needReadable||w.length<w.highWaterMark)this._read(w.highWaterMark)}function M(S){if(!(this instanceof M))return new M(S);if(W.call(this,S),this._transformState={afterTransform:R.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,S){if(typeof S.transform==="function")this._transform=S.transform;if(typeof S.flush==="function")this._flush=S.flush}this.on("prefinish",E)}function E(){var S=this;if(typeof this._flush==="function"&&!this._readableState.destroyed)this._flush(function(N,B){T(S,N,B)});else T(this,null,null)}M.prototype.push=function(S,N){return this._transformState.needTransform=!1,W.prototype.push.call(this,S,N)},M.prototype._transform=function(S,N,B){B(new Z("_transform()"))},M.prototype._write=function(S,N,B){var x=this._transformState;if(x.writecb=B,x.writechunk=S,x.writeencoding=N,!x.transforming){var w=this._readableState;if(x.needTransform||w.needReadable||w.length<w.highWaterMark)this._read(w.highWaterMark)}},M.prototype._read=function(S){var N=this._transformState;if(N.writechunk!==null&&!N.transforming)N.transforming=!0,this._transform(N.writechunk,N.writeencoding,N.afterTransform);else N.needTransform=!0},M.prototype._destroy=function(S,N){W.prototype._destroy.call(this,S,function(B){N(B)})};function T(S,N,B){if(N)return S.emit("error",N);if(B!=null)S.push(B);if(S._writableState.length)throw new Y;if(S._transformState.transforming)throw new J;return S.push(null)}}),Ht=x1(($,I)=>{I.exports=Z;var G=Eg();IX()(Z,G);function Z(_){if(!(this instanceof Z))return new Z(_);G.call(this,_)}Z.prototype._transform=function(_,J,Y){Y(null,_)}}),Ft=x1(($,I)=>{var G;function Z(B){var x=!1;return function(){if(x)return;x=!0,B.apply(void 0,arguments)}}var _=_X().codes,J=_.ERR_MISSING_ARGS,Y=_.ERR_STREAM_DESTROYED;function W(B){if(B)throw B}function R(B){return B.setHeader&&typeof B.abort==="function"}function M(B,x,w,y){y=Z(y);var g=!1;if(B.on("close",function(){g=!0}),G===void 0)G=vE();G(B,{readable:x,writable:w},function(l){if(l)return y(l);g=!0,y()});var b=!1;return function(l){if(g)return;if(b)return;if(b=!0,R(B))return B.abort();if(typeof B.destroy==="function")return B.destroy();y(l||new Y("pipe"))}}function E(B){B()}function T(B,x){return B.pipe(x)}function S(B){if(!B.length)return W;if(typeof B[B.length-1]!=="function")return W;return B.pop()}function N(){for(var B=arguments.length,x=Array(B),w=0;w<B;w++)x[w]=arguments[w];var y=S(x);if(Array.isArray(x[0]))x=x[0];if(x.length<2)throw new J("streams");var g,b=x.map(function(l,i){var $0=i<x.length-1,Q0=i>0;return M(l,$0,Q0,function(G0){if(!g)g=G0;if(G0)b.forEach(E);if($0)return;b.forEach(E),y(g)})});return x.reduce(T)}I.exports=N}),Rg=x1(($,I)=>{var G=w4();$=I.exports=Ag(),$.Stream=G||$,$.Readable=$,$.Writable=Mg(),$.Duplex=_Y(),$.Transform=Eg(),$.PassThrough=Ht(),$.finished=vE(),$.pipeline=Ft()}),Pg=x1(($)=>{var I=Hg(),G=IX(),Z=Rg(),_=$.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},J=$.IncomingMessage=function(Y,W,R,M){var E=this;if(Z.Readable.call(E),E._mode=R,E.headers={},E.rawHeaders=[],E.trailers={},E.rawTrailers=[],E.on("end",function(){process.nextTick(function(){E.emit("close")})}),R==="fetch"){let y=function(){N.read().then(function(g){if(E._destroyed)return;if(M(g.done),g.done){E.push(null);return}E.push(Buffer.from(g.value)),y()}).catch(function(g){if(M(!0),!E._destroyed)E.emit("error",g)})};var T=y;if(E._fetchResponse=W,E.url=W.url,E.statusCode=W.status,E.statusMessage=W.statusText,W.headers.forEach(function(g,b){E.headers[b.toLowerCase()]=g,E.rawHeaders.push(b,g)}),I.writableStream){var S=new WritableStream({write:function(g){return M(!1),new Promise(function(b,l){if(E._destroyed)l();else if(E.push(Buffer.from(g)))b();else E._resumeFetch=b})},close:function(){if(M(!0),!E._destroyed)E.push(null)},abort:function(g){if(M(!0),!E._destroyed)E.emit("error",g)}});try{W.body.pipeTo(S).catch(function(g){if(M(!0),!E._destroyed)E.emit("error",g)});return}catch(g){}}var N=W.body.getReader();y()}else{E._xhr=Y,E._pos=0,E.url=Y.responseURL,E.statusCode=Y.status,E.statusMessage=Y.statusText;var B=Y.getAllResponseHeaders().split(/\r?\n/);if(B.forEach(function(y){var g=y.match(/^([^:]+):\s*(.*)/);if(g){var b=g[1].toLowerCase();if(b==="set-cookie"){if(E.headers[b]===void 0)E.headers[b]=[];E.headers[b].push(g[2])}else if(E.headers[b]!==void 0)E.headers[b]+=", "+g[2];else E.headers[b]=g[2];E.rawHeaders.push(g[1],g[2])}}),E._charset="x-user-defined",!I.overrideMimeType){var x=E.rawHeaders["mime-type"];if(x){var w=x.match(/;\s*charset=([^;])(;|$)/);if(w)E._charset=w[1].toLowerCase()}if(!E._charset)E._charset="utf-8"}}};G(J,Z.Readable),J.prototype._read=function(){var Y=this,W=Y._resumeFetch;if(W)Y._resumeFetch=null,W()},J.prototype._onXHRProgress=function(Y){var W=this,R=W._xhr,M=null;switch(W._mode){case"text":if(M=R.responseText,M.length>W._pos){var E=M.substr(W._pos);if(W._charset==="x-user-defined"){var T=Buffer.alloc(E.length);for(var S=0;S<E.length;S++)T[S]=E.charCodeAt(S)&255;W.push(T)}else W.push(E,W._charset);W._pos=M.length}break;case"arraybuffer":if(R.readyState!==_.DONE||!R.response)break;M=R.response,W.push(Buffer.from(new Uint8Array(M)));break;case"moz-chunked-arraybuffer":if(M=R.response,R.readyState!==_.LOADING||!M)break;W.push(Buffer.from(new Uint8Array(M)));break;case"ms-stream":if(M=R.response,R.readyState!==_.LOADING)break;var N=new globalThis.MSStreamReader;N.onprogress=function(){if(N.result.byteLength>W._pos)W.push(Buffer.from(new Uint8Array(N.result.slice(W._pos)))),W._pos=N.result.byteLength},N.onload=function(){Y(!0),W.push(null)},N.readAsArrayBuffer(M);break}if(W._xhr.readyState===_.DONE&&W._mode!=="ms-stream")Y(!0),W.push(null)}}),Tt=x1(($,I)=>{var G=Hg(),Z=IX(),_=Pg(),J=Rg(),Y=_.IncomingMessage,W=_.readyStates;function R(S,N){if(G.fetch&&N)return"fetch";else if(G.mozchunkedarraybuffer)return"moz-chunked-arraybuffer";else if(G.msstream)return"ms-stream";else if(G.arraybuffer&&S)return"arraybuffer";else return"text"}var M=I.exports=function(S){var N=this;if(J.Writable.call(N),N._opts=S,N._body=[],N._headers={},S.auth)N.setHeader("Authorization","Basic "+Buffer.from(S.auth).toString("base64"));Object.keys(S.headers).forEach(function(w){N.setHeader(w,S.headers[w])});var B,x=!0;if(S.mode==="disable-fetch"||"requestTimeout"in S&&!G.abortController)x=!1,B=!0;else if(S.mode==="prefer-streaming")B=!1;else if(S.mode==="allow-wrong-content-type")B=!G.overrideMimeType;else if(!S.mode||S.mode==="default"||S.mode==="prefer-fast")B=!0;else throw Error("Invalid value for opts.mode");N._mode=R(B,x),N._fetchTimer=null,N._socketTimeout=null,N._socketTimer=null,N.on("finish",function(){N._onFinish()})};Z(M,J.Writable),M.prototype.setHeader=function(S,N){var B=this,x=S.toLowerCase();if(T.indexOf(x)!==-1)return;B._headers[x]={name:S,value:N}},M.prototype.getHeader=function(S){var N=this._headers[S.toLowerCase()];if(N)return N.value;return null},M.prototype.removeHeader=function(S){var N=this;delete N._headers[S.toLowerCase()]},M.prototype._onFinish=function(){var S=this;if(S._destroyed)return;var N=S._opts;if("timeout"in N&&N.timeout!==0)S.setTimeout(N.timeout);var B=S._headers,x=null;if(N.method!=="GET"&&N.method!=="HEAD")x=new Blob(S._body,{type:(B["content-type"]||{}).value||""});var w=[];if(Object.keys(B).forEach(function(l){var i=B[l].name,$0=B[l].value;if(Array.isArray($0))$0.forEach(function(Q0){w.push([i,Q0])});else w.push([i,$0])}),S._mode==="fetch"){var y=null;if(G.abortController){var g=new AbortController;if(y=g.signal,S._fetchAbortController=g,"requestTimeout"in N&&N.requestTimeout!==0)S._fetchTimer=globalThis.setTimeout(function(){if(S.emit("requestTimeout"),S._fetchAbortController)S._fetchAbortController.abort()},N.requestTimeout)}globalThis.fetch(S._opts.url,{method:S._opts.method,headers:w,body:x||void 0,mode:"cors",credentials:N.withCredentials?"include":"same-origin",signal:y}).then(function(l){S._fetchResponse=l,S._resetTimers(!1),S._connect()},function(l){if(S._resetTimers(!0),!S._destroyed)S.emit("error",l)})}else{var b=S._xhr=new globalThis.XMLHttpRequest;try{b.open(S._opts.method,S._opts.url,!0)}catch(l){process.nextTick(function(){S.emit("error",l)});return}if("responseType"in b)b.responseType=S._mode;if("withCredentials"in b)b.withCredentials=!!N.withCredentials;if(S._mode==="text"&&"overrideMimeType"in b)b.overrideMimeType("text/plain; charset=x-user-defined");if("requestTimeout"in N)b.timeout=N.requestTimeout,b.ontimeout=function(){S.emit("requestTimeout")};if(w.forEach(function(l){b.setRequestHeader(l[0],l[1])}),S._response=null,b.onreadystatechange=function(){switch(b.readyState){case W.LOADING:case W.DONE:S._onXHRProgress();break}},S._mode==="moz-chunked-arraybuffer")b.onprogress=function(){S._onXHRProgress()};b.onerror=function(){if(S._destroyed)return;S._resetTimers(!0),S.emit("error",Error("XHR error"))};try{b.send(x)}catch(l){process.nextTick(function(){S.emit("error",l)});return}}};function E(S){try{var N=S.status;return N!==null&&N!==0}catch(B){return!1}}M.prototype._onXHRProgress=function(){var S=this;if(S._resetTimers(!1),!E(S._xhr)||S._destroyed)return;if(!S._response)S._connect();S._response._onXHRProgress(S._resetTimers.bind(S))},M.prototype._connect=function(){var S=this;if(S._destroyed)return;S._response=new Y(S._xhr,S._fetchResponse,S._mode,S._resetTimers.bind(S)),S._response.on("error",function(N){S.emit("error",N)}),S.emit("response",S._response)},M.prototype._write=function(S,N,B){var x=this;x._body.push(S),B()},M.prototype._resetTimers=function(S){var N=this;if(globalThis.clearTimeout(N._socketTimer),N._socketTimer=null,S)globalThis.clearTimeout(N._fetchTimer),N._fetchTimer=null;else if(N._socketTimeout)N._socketTimer=globalThis.setTimeout(function(){N.emit("timeout")},N._socketTimeout)},M.prototype.abort=M.prototype.destroy=function(S){var N=this;if(N._destroyed=!0,N._resetTimers(!0),N._response)N._response._destroyed=!0;if(N._xhr)N._xhr.abort();else if(N._fetchAbortController)N._fetchAbortController.abort();if(S)N.emit("error",S)},M.prototype.end=function(S,N,B){var x=this;if(typeof S==="function")B=S,S=void 0;J.Writable.prototype.end.call(x,S,N,B)},M.prototype.setTimeout=function(S,N){var B=this;if(N)B.once("timeout",N);B._socketTimeout=S,B._resetTimers(!1)},M.prototype.flushHeaders=function(){},M.prototype.setNoDelay=function(){},M.prototype.setSocketKeepAlive=function(){};var T=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}),Mt=x1(($,I)=>{I.exports=Z;var G=Object.prototype.hasOwnProperty;function Z(){var _={};for(var J=0;J<arguments.length;J++){var Y=arguments[J];for(var W in Y)if(G.call(Y,W))_[W]=Y[W]}return _}}),At=x1(($,I)=>{I.exports=(Xz(),V$(d5)).STATUS_CODES}),Et=x1(($)=>{var I=Tt(),G=Pg(),Z=Mt(),_=At(),J=(SE(),V$(VE)),Y=$;Y.request=function(W,R){if(typeof W==="string")W=J.parse(W);else W=Z(W);var M=globalThis.location.protocol.search(/^https?:$/)===-1?"http:":"",E=W.protocol||M,T=W.hostname||W.host,S=W.port,N=W.path||"/";if(T&&T.indexOf(":")!==-1)T="["+T+"]";W.url=(T?E+"//"+T:"")+(S?":"+S:"")+N,W.method=(W.method||"GET").toUpperCase(),W.headers=W.headers||{};var B=new I(W);if(R)B.on("response",R);return B},Y.get=function(W,R){var M=Y.request(W,R);return M.end(),M},Y.ClientRequest=I,Y.IncomingMessage=G.IncomingMessage,Y.Agent=function(){},Y.Agent.defaultMaxSockets=4,Y.globalAgent=new Y.Agent,Y.STATUS_CODES=_,Y.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}),Vg=zt(Et(),1),{request:Rt,get:Pt,ClientRequest:Vt,IncomingMessage:St,Agent:vt,globalAgent:Ct,STATUS_CODES:qt,METHODS:Nt}=Vg.default,Sg=Vg.default});var qg={};LU(qg,{isIPv6:()=>qE,isIPv4:()=>CE,isIP:()=>vg,default:()=>Cg});function CE($){return Bt.test($)}function qE($){return jt.test($)}function vg($){if(CE($))return 4;if(qE($))return 6;return 0}var Bt,jt,Cg;var NE=WI(()=>{Bt=new RegExp("^(?:(?: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])$"),jt=new RegExp("^(?:(?:(?:[0-9a-fA-F]{1,4}):){7}(?:(?:[0-9a-fA-F]{1,4})|:)|(?:(?:[0-9a-fA-F]{1,4}):){6}(?:(?:(?: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])|:(?:[0-9a-fA-F]{1,4})|:)|(?:(?:[0-9a-fA-F]{1,4}):){5}(?::(?:(?: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])|(?::(?:[0-9a-fA-F]{1,4})){1,2}|:)|(?:(?:[0-9a-fA-F]{1,4}):){4}(?:(?::(?:[0-9a-fA-F]{1,4})){0,1}:(?:(?: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])|(?::(?:[0-9a-fA-F]{1,4})){1,3}|:)|(?:(?:[0-9a-fA-F]{1,4}):){3}(?:(?::(?:[0-9a-fA-F]{1,4})){0,2}:(?:(?: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])|(?::(?:[0-9a-fA-F]{1,4})){1,4}|:)|(?:(?:[0-9a-fA-F]{1,4}):){2}(?:(?::(?:[0-9a-fA-F]{1,4})){0,3}:(?:(?: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])|(?::(?:[0-9a-fA-F]{1,4})){1,5}|:)|(?:(?:[0-9a-fA-F]{1,4}):){1}(?:(?::(?:[0-9a-fA-F]{1,4})){0,4}:(?:(?: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])|(?::(?:[0-9a-fA-F]{1,4})){1,6}|:)|(?::(?:(?::(?:[0-9a-fA-F]{1,4})){0,5}:(?:(?: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])|(?::(?:[0-9a-fA-F]{1,4})){1,7}|:)))(?:%[0-9a-zA-Z-.:]{1,})?$");Cg={isIPv4:CE,isIPv6:qE,isIP:vg}});var kg=N6((zz0,at)=>{at.exports={"//":"GENERATED by scripts/pack-facts.ts — do not hand-edit. Compiled from each pack's `pack: TwinPack` descriptor; pack-facts.test.ts fails on drift.",packs:{ahrefs:{adoption:{pypi:[],sdks:["@ahrefs/mcp"],scopes:["@ahrefs/"],envStems:["AHREFS"]},hosts:[{host:"api.ahrefs.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["target","usage","cache","audit"],serveExport:"createAhrefsTwinServer"},"ai-gateway":{adoption:{pypi:[],sdks:["@ai-sdk/gateway"],envStems:["AIGATEWAY"]},hostsNone:"SDK is base-URL-configured (@ai-sdk/gateway baseURL / AI_GATEWAY_BASE_URL) — worlds wire the twin through explicit endpoint config; no injector entry grounded yet",archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["generation"],serveExport:"createAiGatewayTwinServer"},airtable:{adoption:{pypi:["pyairtable","airtable-python-wrapper"],sdks:["airtable"],envStems:["AIRTABLE"]},hosts:[{host:"api.airtable.com"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["base","table","record","comment"],endpointEnvNone:"the injector intercepts api.airtable.com (see `hosts`), which covers every client with no env at all; AIRTABLE_ENDPOINT_URL is real (Airtable.default_config(), airtable@0.12.2) but injecting it alongside interception is the strictly narrower answer — one wiring, not two.",serveExport:"createAirtableTwinServer"},algolia:{adoption:{pypi:["algoliasearch"],sdks:["algoliasearch"],envStems:["ALGOLIA","ALGOLIAWRITE"]},hostsNone:"per-app-ID host scheme ({appId}.algolia.net / {appId}-dsn.algolia.net / {appId}-N.algolianet.com, see the pack README §Host tolerance) — no fixed host list to match; the host-tolerant twin is wired by explicit client host config",archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["index","record","synonym","settings"],serveExport:"createAlgoliaTwinServer"},anthropic:{adoption:{pypi:["anthropic","claude-agent-sdk","claude-code-sdk"],sdks:["@anthropic-ai/sdk","@ai-sdk/anthropic","@anthropic-ai/vertex-sdk","@anthropic-ai/bedrock-sdk","@anthropic-ai/claude-agent-sdk"],scopes:["@anthropic-ai/"],envStems:["ANTHROPIC","CLAUDE"]},hosts:[{host:"api.anthropic.com"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["message_batch","file","agent","environment","session","vault","vault_credential","memory_store","memory","memory_version","deployment","deployment_run","skill","webhook_secret"],serveExport:"createAnthropicTwinServer"},assemblyai:{adoption:{pypi:["assemblyai"],sdks:["assemblyai"],envStems:["ASSEMBLYAI"]},hosts:[{host:"api.assemblyai.com"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["transcript","upload"],serveExport:"createAssemblyAITwinServer"},aws:{adoption:{pypi:["boto3","botocore","aioboto3","aiobotocore"],sdks:["@aws-sdk/client-s3","@aws-sdk/s3-request-presigner","@aws-sdk/lib-storage","@aws-sdk/client-dynamodb","@aws-sdk/lib-dynamodb","@aws-sdk/client-timestream-write","@aws-sdk/client-timestream-query","aws-sdk","@aws-sdk/client-sesv2","@aws-sdk/client-secrets-manager","@aws-sdk/client-bedrock-runtime","@aws-sdk/client-bedrock","@ai-sdk/amazon-bedrock"],envStems:["AWS","S3","LANGFUSELLMCONNECTIONBEDROCK"],worldIds:["s3","dynamodb","timestream","timestreamwrite","timestreamquery","sesv2","secretsmanager","bedrock"]},hosts:[{key:"s3",host:"s3.amazonaws.com"},{key:"s3",suffix:".s3.amazonaws.com"},{key:"s3",hostPattern:"^s3[.-][a-z0-9-]+\\.amazonaws\\.com$"},{key:"s3",hostPattern:"\\.s3[.-][a-z0-9-]+\\.amazonaws\\.com$"},{key:"s3",hostPattern:"^s3\\.dualstack\\.[a-z0-9-]+\\.amazonaws\\.com$"},{key:"s3",hostPattern:"\\.s3\\.dualstack\\.[a-z0-9-]+\\.amazonaws\\.com$"},{key:"s3",suffix:".s3-accelerate.amazonaws.com"},{key:"s3",suffix:".s3-accelerate.dualstack.amazonaws.com"},{key:"dynamodb",hostPattern:"^dynamodb\\.[a-z0-9-]+\\.amazonaws\\.com$"},{key:"timestream",hostPattern:"(^|\\.)(ingest|query)\\.timestream\\.[a-z0-9-]+\\.amazonaws\\.com$"},{key:"sesv2",hostPattern:"^email\\.[a-z0-9-]+\\.amazonaws\\.com$"},{key:"secretsmanager",hostPattern:"^secretsmanager(-fips)?\\.[a-z0-9-]+\\.amazonaws\\.com$"},{key:"bedrock",hostPattern:"^bedrock(-runtime)?(-fips)?\\.[a-z0-9-]+\\.(amazonaws\\.com|api\\.aws)$"}],archetype:"signed-protocol",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{foundation_model:"the account catalog: pulled from ListFoundationModels, never created by a caller"},resources:["bucket","object","multipart_upload","table","item","database","record","message","secret","invocation","foundation_model","identity"],serveExport:"createAwsTwinServer"},axiom:{adoption:{sdks:["@axiomhq/js","@axiomhq/logging","@axiomhq/nextjs"],pypi:["axiom-py"],envStems:["AXIOM"]},hosts:[{host:"api.axiom.co"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["dataset","event"],endpointEnvNone:"no env var: @axiomhq/js reads its base URL only from the `url` constructor option (httpClient.ts:33,45) and Dub constructs `new Axiom({ token })` with none, so interception is the hosts entry above; an AXIOM_URL no client reads would be invented surface.",serveExport:"createAxiomTwinServer"},azure:{adoption:{pypi:["azure-storage-blob","azure-ai-inference"],sdks:["@azure/storage-blob","@azure/openai","@azure-rest/ai-inference","@ai-sdk/azure"],envStems:["AZURE","AZUREOPENAI","AZUREGPT4OMINI","AZUREGPT5","AZUREGPT5MINI","AZUREGPT5NANO"]},hosts:[{suffix:".blob.core.windows.net"},{suffix:".openai.azure.com"},{suffix:".cognitiveservices.azure.com",pathPattern:"^/openai/"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["container","blob","block","deployment"],endpointEnvNone:"Host-based interception only. @azure/storage-blob is configured with a blob endpoint URL or a connection string (both resolving to <account>.blob.core.windows.net, which the injector rewrites), and reads no base-URL environment variable of its own — the same reason the aws pack declares none.",serveExport:"createAzureTwinServer"},azureformrecognizer:{adoption:{pypi:["azure-ai-documentintelligence","azure-ai-formrecognizer"],sdks:["@azure-rest/ai-document-intelligence","@azure/ai-form-recognizer"],envStems:["AZUREFORMRECOGNIZER","AZUREDOCUMENTINTELLIGENCE"]},hosts:[{suffix:".cognitiveservices.azure.com",pathPattern:"^/(documentintelligence|formrecognizer)/"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{model:"prebuilt models are the vendor's catalog; a custom model is born of a training job this twin does not run"},resources:["analysis","model"],serveExport:"createAzureFormRecognizerTwinServer"},bitly:{adoption:{pypi:[],envStems:["BITLY"]},hosts:[{host:"api-ssl.bitly.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["bitlink","group","organization","user","qr_code","campaign","channel","webhook","custom_bitlink","click"],endpointEnvNone:"no injector-free path: Bitly integrations hardcode https://api-ssl.bitly.com and the vendor documents no base-URL override, so interception is the hosts entry above; a BITLY_BASE_URL would be invented surface no app reads.",serveExport:"createBitlyTwinServer"},bluesky:{adoption:{sdks:["@atproto/api"],pypi:[],envStems:["BLUESKY","BSKY"]},hosts:[{host:"bsky.social",pathPattern:"^/xrpc/(com\\.atproto|app\\.bsky)\\."},{hostPattern:"^[a-z0-9-]+\\.[a-z0-9-]+\\.host\\.bsky\\.network$",pathPattern:"^/xrpc/(com\\.atproto|app\\.bsky)\\."},{host:"api.bsky.app",pathPattern:"^/xrpc/app\\.bsky\\.(actor|feed)\\."},{host:"public.api.bsky.app",pathPattern:"^/xrpc/app\\.bsky\\.(actor|feed)\\."},{host:"video.bsky.app",pathPattern:"^/(xrpc/app\\.bsky\\.video\\.|watch/)"},{host:"cdn.bsky.app",pathPattern:"^/img/"},{host:"bsky.app",pathPattern:"^/profile/[^/]+/?$|^/profile/[^/]+/post/[A-Za-z0-9._:~-]{1,512}/?$"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["account","post","follow","profile"],endpointEnvNone:"@atproto/api reads no base-URL environment variable (an AtpAgent takes its `service` URL in code, and the video service's is the social-app's constant), so a World reaches it through the hosts above; inventing a BLUESKY_BASE_URL the app never reads would report coverage the app does not have.",serveExport:"createBlueskyTwinServer"},calcom:{adoption:{pypi:[],envStems:["CALCOM","CAL"]},hosts:[{host:"api.cal.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["booking","event_type","schedule","team","membership","webhook","slot"],serveExport:"createCalcomTwinServer"},cerebras:{adoption:{sdks:["@cerebras/cerebras_cloud_sdk","@ai-sdk/cerebras"],envStems:["CEREBRAS"]},hosts:[{host:"api.cerebras.ai"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"The injector intercepts api.cerebras.ai (see `hosts`), so a world wires this pack through CEREBRAS_TWIN_URL rather than an app-read base-URL var. The SDK would honour CEREBRAS_BASE_URL, but the injector covers all of that traffic with zero app edits while an app-read env covers only clients constructed after the env lands — emitting both would quietly forgo interception.",serveExport:"createCerebrasTwinServer"},clerk:{adoption:{pypi:["clerk-backend-api"],sdks:["@clerk/backend","@clerk/clerk-sdk-node","@clerk/nextjs","@clerk/fastify","@clerk/express"],scopes:["@clerk/"],envStems:["CLERK"]},hosts:[{host:"api.clerk.com"},{suffix:".clerk.accounts.dev"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",assets:["client/clerk-js-dist","client/clerk.browser.js"],resources:["user","session","organization","organization_membership","organization_invitation","invitation","allowlist_identifier","blocklist_identifier","jwt_template","sign_in_token"],serveExport:"createClerkTwinServer"},cloudflare:{adoption:{pypi:["cloudflare"],tools:[{package:"wrangler",usage:"deployment"}],sdks:["cloudflare","aws4fetch"],envStems:["CLOUDFLARE"]},hosts:[{host:"api.cloudflare.com"},{host:"dash.cloudflare.com",pathPattern:"^/(login|_twin/users/|[0-9a-f]{32}/r2/|$)"},{suffix:".r2.cloudflarestorage.com"}],hostsClaimed:{door:"/twin/hosts",note:"the custom domains connected to R2 buckets"},archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["account","zone","cloudflare_tunnel","tunnel_configuration","dns_record","worker_script","worker_route","worker_domain","workers_subdomain","durable_object_namespace","r2_bucket","r2_custom_domain","hyperdrive_config","queue","queue_consumer","worker_version","worker_asset","worker_asset_upload_session"],serveExport:"createCloudflareTwinServer"},cohere:{adoption:{pypi:["cohere"],sdks:["cohere-ai","@ai-sdk/cohere"],envStems:["COHERE","CO"]},hosts:[{host:"api.cohere.com"},{host:"api.cohere.ai"}],archetype:"generative",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["dataset","connector","embed_job","token"],endpointEnvNone:"neither official SDK reads a base-URL env var: cohere-ai@8.1.0 takes the override as the `baseUrl`/`environment` CONSTRUCTOR option and reads only CO_API_KEY from the environment (auth/BearerAuthProvider.js), and @ai-sdk/cohere@4.0.35 takes `options.baseURL` and reads only COHERE_API_KEY. Interception is host-based on api.cohere.com and api.cohere.ai; inventing a COHERE_BASE_URL nothing reads would make `covers` claim a world it does not cover.",serveExport:"createCohereTwinServer"},currencyapi:{adoption:{sdks:["@everapi/currencyapi-js"],pypi:["currencyapicom"],envStems:["CURRENCYAPI"]},hosts:[{host:"api.currencyapi.com"},{host:"app.currencyapi.com",pathPattern:"^/(register|login|dashboard|subscription)(/|$)"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["_account","_api_key","_usage","_web_session"],endpointEnvNone:"currencyapi's clients hardcode https://api.currencyapi.com/v3 (@everapi/currencyapi-js index.js `baseUrl`, dubinc/dub apps/web/lib/currencyapi/client.ts `baseUrl`) and read no base-URL env; interception is the hosts above.",serveExport:"createCurrencyapiTwinServer"},daily:{adoption:{envStems:["DAILY"]},hosts:[{host:"api.daily.co"},{hostPattern:"^[a-z0-9][a-z0-9-]*\\.daily\\.co$"},{host:"c.daily.co",exclude:!0},{host:"gs.daily.co",exclude:!0},{host:"www.daily.co",exclude:!0},{host:"dashboard.daily.co",exclude:!0},{host:"docs.daily.co",exclude:!0},{host:"help.daily.co",exclude:!0},{host:"status.daily.co",exclude:!0},{host:"blog.daily.co",exclude:!0},{host:"pipecat.daily.co",exclude:!0},{host:"reference-python.daily.co",exclude:!0},{host:"reference-ios.daily.co",exclude:!0},{host:"reference-android.daily.co",exclude:!0}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["Room","Meeting","Recording","Transcript","BatchJob","Webhook","_domain","_delivery","_receiver"],endpointEnvNone:"Daily's REST clients hardcode https://api.daily.co/v1 (Cal.com packages/app-store/dailyvideo/lib/dailyApiFetcher.ts) and read no base-URL env; interception is the hosts above.",serveExport:"createDailyTwinServer"},datadog:{adoption:{pypi:["datadog","datadog-api-client","ddtrace"],sdks:["@datadog/datadog-api-client","@datadog/browser-rum","@datadog/browser-logs","dd-trace"],scopes:["@datadog/"],envStems:["DATADOG","DD"]},hosts:[{host:"datadoghq.com"},{suffix:".datadoghq.com"},{host:"datadoghq.eu"},{suffix:".datadoghq.eu"},{host:"ddog-gov.com"},{suffix:".ddog-gov.com"},{hostPattern:"^([a-z0-9-]+\\.)?browser-intake-(?:[a-z0-9]+-)?(?:datadoghq\\.(?:com|eu)|ddog-gov\\.com)$"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["org","rum_application","rum_event","log","metric_series","metric_def","service_check","event","monitor","dashboard","host","slo","downtime","api_key","user"],serveExport:"createDatadogTwinServer"},deepgram:{adoption:{pypi:["deepgram-sdk"],sdks:["@deepgram/sdk"],envStems:["DEEPGRAM"]},hosts:[{host:"api.deepgram.com"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{project:"the tenant itself: born with the account, never created through the API"},resources:["project","key","request"],serveExport:"createDeepgramTwinServer"},deepinfra:{adoption:{sdks:["deepinfra","@ai-sdk/deepinfra"],envStems:["DEEPINFRA"]},hosts:[{host:"api.deepinfra.com"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{model:"the vendor catalog",rate_limit:"the account ledger the vendor keeps; read-only"},resources:["model","file","batch","rate_limit"],endpointEnvNone:"the deepinfra SDK exposes no base-URL env: DeepInfraClient takes the endpoint URL as a constructor argument (the modelName IS the full URL) and reads only DEEPINFRA_API_KEY; interception is the hosts above.",serveExport:"createDeepinfraTwinServer"},deepseek:{adoption:{pypi:[],sdks:["@ai-sdk/deepseek"],envStems:["DEEPSEEK"]},hosts:[{host:"api.deepseek.com"}],archetype:"generative",protocol:{major:1,standing:"deprecated"},transport:"rest",resourcesUnreachable:{model:"the vendor catalog",balance:"the account ledger the vendor keeps; read-only"},resources:["model","file","balance","cache_prefix"],endpointEnvNone:"no app-read endpoint env: @ai-sdk/deepseek — the only first-party npm client of this surface — reads exactly one environment variable (DEEPSEEK_API_KEY, via loadApiKey in src/deepseek-provider.ts) and takes baseURL as a constructor option, so there is no vendor-documented base-URL var to inject. The injector covers api.deepseek.com instead (see `hosts`). NextChat's DEEPSEEK_URL is one application's own convention, not vendor surface, and claiming it would report a world covered while the SDK-based majority still reached the real vendor.",serveExport:"createDeepSeekTwinServer"},discord:{adoption:{sdks:["discord.js","@discordjs/rest","@discordjs/core","@discordjs/builders","discord-api-types"],pypi:["discord.py","discord"],envStems:["DISCORD"]},hosts:[{host:"discord.com",pathPattern:"^/api/"},{host:"discord.com",pathPattern:"^/(oauth2/authorize|login)/?$"},{host:"gateway.discord.gg"},{host:"discordapp.com",pathPattern:"^/api/"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["application","application_command","ban","channel","guild","interaction_response","invite","member","message","oauth_grant","role","user","webhook"],endpointEnvNone:"no Discord client reads a base-URL env var — discord.js takes `api` as a REST constructor option and discord.py hardcodes its Route base, so interception is the `hosts` entries above. Inventing a DISCORD_BASE_URL would report coverage the app could not use.",serveExport:"createDiscordTwinServer"},dynadot:{adoption:{pypi:[],envStems:["DYNADOT"]},hosts:[{host:"api.dynadot.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["domain","account"],serveExport:"createDynadotTwinServer"},elevenlabs:{adoption:{pypi:["elevenlabs"],sdks:["elevenlabs","@elevenlabs/elevenlabs-js"],scopes:["@elevenlabs/"],envStems:["ELEVENLABS"]},hosts:[{host:"api.elevenlabs.io"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["voice","generated_voice","pronunciation_dictionary","dubbing","history_item"],serveExport:"createElevenLabsTwinServer"},expo:{adoption:{sdks:["expo-server-sdk"],pypi:["exponent-server-sdk"],envStems:["EXPO"]},hosts:[{host:"exp.host"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["push_device","push_ticket"],endpointEnvNone:"expo-server-sdk-node DOES read EXPO_BASE_URL (src/ExpoClientValues.ts builds both push URLs from process.env['EXPO_BASE_URL'] || 'https://exp.host'), but this pack claims exp.host in `hosts`, so interception is host-based and zero-edit; emitting the var would forgo that. Point EXPO_BASE_URL at the twin by hand only when running outside an injected world.",serveExport:"createExpoTwinServer"},fal:{adoption:{pypi:["fal-client","fal"],sdks:["@fal-ai/client","@fal-ai/serverless-client"],scopes:["@fal-ai/"],envStems:["FAL"]},hostsNone:"host-split surface (fal.run / queue.fal.run) with no injector entry grounded yet — worlds wire the twin via the client's explicit endpoint config; a visible gap until its hosts are grounded here",archetype:"generative",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["request","signing_key"],serveExport:"createFalTwinServer"},figma:{adoption:{pypi:[],sdks:["figma-api","@figma/rest-api-spec"],scopes:["@figma/"],envStems:["FIGMA"]},hostsNone:'no injector entry grounded yet — the pack README wires clients at the twin by base URL ("nothing changed but the base URL"); zero-edit interception of api.figma.com is a visible gap until grounded here',archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["file","comment","version","project","team","user","credential"],serveExport:"createFigmaTwinServer"},firecrawl:{adoption:{pypi:["firecrawl-py","firecrawl"],sdks:["@mendable/firecrawl-js","firecrawl"],scopes:["@mendable/"],envStems:["FIRECRAWL","S2SFIRECRAWLINTEGRATIONSTOFIRECRAWL"]},hosts:[{host:"api.firecrawl.dev"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["document","crawl","audit"],serveExport:"createFirecrawlTwinServer"},fireworks:{adoption:{pypi:["fireworks-ai"],sdks:["@ai-sdk/fireworks"],envStems:["FIREWORKS"]},hosts:[{host:"api.fireworks.ai"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{account:"the vendor’s own account row (one per credential, not creatable through the API)",quota:"vendor-assigned limits (read-only in the API; the twin derives them from the account)",serverlessModel:"the vendor catalog (serverless models are curated by Fireworks, not created by callers)"},resources:["deployment","dataset","batchInferenceJob","supervisedFineTuningJob","user","apiKey","secret","model"],endpointEnvNone:"The injector intercepts api.fireworks.ai (see `hosts`), so a world wires this pack through FIREWORKS_TWIN_URL rather than an app-read base-URL var. The `fireworks` Python client would honour FIREWORKS_BASE_URL, but @ai-sdk/fireworks — the dominant client in this repo’s demand census — takes its baseURL as a constructor option and reads no such env, so an app-read var would cover only half the traffic while disabling the interception that covers all of it.",serveExport:"createFireworksTwinServer"},fly:{adoption:{pypi:[],sdks:["fly-admin"],envStems:["FLY"]},hosts:[{host:"api.machines.dev"},{host:"_api.internal"}],archetype:"engine-control",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["app","machine","volume","secret"],serveExport:"createFlyTwinServer"},gcs:{adoption:{pypi:["google-cloud-storage"],sdks:["@google-cloud/storage"],envStems:["GCS","GOOGLECLOUDSTORAGE"]},hosts:[{host:"storage.googleapis.com"},{suffix:".storage.googleapis.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["bucket","object","upload"],serveExport:"createGcsTwinServer"},gemini:{adoption:{pypi:["google-genai","google-generativeai"],sdks:["@ai-sdk/google","@ai-sdk/google-vertex","@google/genai","@google/generative-ai","@google-cloud/vertexai"],envStems:["GEMINI","GOOGLEGENAI","GOOGLEGENERATIVEAI","GOOGLEGEMINI","GOOGLEVERTEX"],worldIds:["googlegenai","googleauth"]},hosts:[{host:"generativelanguage.googleapis.com"},{host:"aiplatform.googleapis.com"},{suffix:"-aiplatform.googleapis.com"},{key:"googleauth",host:"oauth2.googleapis.com"},{key:"googleauth",host:"www.googleapis.com",pathPattern:"^/(token|oauth2/v4/token)/?$"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["file","cached_content"],serveExport:"createGeminiTwinServer"},github:{adoption:{pypi:["pygithub"],sdks:["@octokit/rest","@octokit/core","octokit","@octokit/auth-app","@octokit/auth-oauth-app","@octokit/auth-oauth-device","@octokit/graphql","@octokit/webhooks"],scopes:["@octokit/"],envStems:["GITHUB","GH","BACKENDGITHUB","INFAPPCONNECTIONGITHUBAPP","INFAPPCONNECTIONGITHUBOAUTH","INFAPPCONNECTIONGITHUBRADARAPP","APPSMITHOAUTH2GITHUB"]},hosts:[{host:"api.github.com"},{host:"uploads.github.com",pathPattern:"^/repos/[^/]+/[^/]+/releases/\\d+/assets$"},{host:"github.com",pathPattern:"^/[^/]+/[^/]+/(info/refs|git-upload-pack|git-receive-pack)$"},{host:"github.com",pathPattern:"^/login/oauth/(authorize|access_token)$"},{host:"github.com",pathPattern:"^/(login|session|sessions/two-factor(/app)?)$"},{host:"github.com",pathPattern:"^/apps/[^/]+/installations/new$"},{host:"github.com",pathPattern:"^/(organizations/[^/]+/)?settings/apps/new$"},{host:"npm.pkg.github.com",pathPattern:"^/@"}],archetype:"engine-control",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["pull_request","pull_request_review","pull_request_review_comment","issue","issue_comment","repository","branch","git_ref"],serveExport:"createGithubTwinServer"},googleads:{adoption:{sdks:["google-ads-api","google-ads-node"],pypi:["google-ads"],envStems:["GOOGLEADS","GOOGLEADSDEVELOPER"]},hosts:[{host:"googleads.googleapis.com"},{host:"datamanager.googleapis.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["customer","customer_client_link","conversion_action","click_conversion","ingest_request"],endpointEnvNone:"no Google Ads client exposes an HTTP base-URL override: google-ads-api builds the host into the request literally, google-ads-python's `endpoint` is a gRPC host:port for its transport channel, and Dub hardcodes the host in a raw fetch. Interception is host-based.",serveExport:"createGoogleAdsTwinServer"},googlecalendar:{adoption:{sdks:["@googleapis/calendar"],pypi:[],envStems:["GOOGLECALENDAR"]},hosts:[{host:"www.googleapis.com",pathPattern:"^/(batch/)?calendar/v3(/|$)"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["Calendar","CalendarListEntry","Event"],endpointEnvNone:"@googleapis/calendar and googleapis read no base-URL variable: the root URL is the Discovery document's `https://www.googleapis.com/` unless the caller passes `rootUrl` (Inbox Zero reads its own GOOGLE_BASE_URL for that); interception is the host rule above.",serveExport:"createGooglecalendarTwinServer"},googlemaps:{adoption:{pypi:["googlemaps"],sdks:["@googlemaps/google-maps-services-js"],scopes:["@googlemaps/"],envStems:["GOOGLEMAPS"]},hosts:[{host:"maps.googleapis.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["geocode","audit"],serveExport:"createGoogleMapsTwinServer"},googleoauth:{adoption:{pypi:["google-auth","google-auth-oauthlib"],sdks:["google-auth-library","@googleapis/oauth2"],envStems:["GOOGLE","GOOGLEOAUTH","GOOGLEOIDC","AUTHGOOGLE","AUTHGOOGLEOAUTH2","BACKENDGOOGLE","GOOGLEIOS","GOOGLELOGIN","GOOGLEWEB","NEXTPRIVATEGOOGLE","SSOGOOGLEOAUTH2","APPSMITHOAUTH2GOOGLE"]},archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["oauth_client","account","auth_request","authorization_code","access_token","refresh_token","grant"],serveExport:"createGoogleOAuthTwinServer"},groq:{adoption:{pypi:["groq"],sdks:["groq-sdk","@ai-sdk/groq"],envStems:["GROQ"]},hosts:[{host:"api.groq.com"}],archetype:"generative",protocol:{major:1,standing:"deprecated"},transport:"rest",resourcesUnreachable:{model:"the vendor catalog"},resources:["file","batch","model"],endpointEnvNone:"The injector intercepts api.groq.com (see `hosts`), so a world wires this pack through GROQ_TWIN_URL rather than an app-read base-URL var. groq-sdk would honour GROQ_BASE_URL, but @ai-sdk/groq — the dominant client in this repo's demand census — takes its baseURL as a constructor option and reads no such env, so an app-read var would cover only half the traffic while disabling the interception that covers all of it.",serveExport:"createGroqTwinServer"},hubspot:{adoption:{pypi:["hubspot-api-client"],sdks:["@hubspot/api-client"],envStems:["HUBSPOT","HUBSPOTPRIVATEAPP"]},hosts:[{host:"api.hubapi.com"},{host:"app.hubspot.com"},{host:"api.hsforms.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{owner:"a portal user provisioned in HubSpot's admin, never through the CRM API"},resources:["crm_object","property","property_group","pipeline","association","owner"],endpointEnvNone:"the @hubspot/api-client SDK takes its base URL from the `basePath` CONSTRUCTOR option (IConfiguration.basePath → ApiClientConfigurator.getBaseServer), not from any environment variable — it reads no process.env at all, and HubSpot documents no base-URL env var. Interception is the api.hubapi.com host entry; inventing a HUBSPOT_BASE_URL the app does not read would report a world covered while its traffic still left the machine.",serveExport:"createHubspotTwinServer"},inngest:{adoption:{pypi:["inngest"],sdks:["inngest"],envStems:["INNGEST"]},hostsNone:"SDK is base-URL-configured by design (options.baseUrl / INNGEST_BASE_URL / INNGEST_EVENT_API_BASE_URL, verified in the pack README) — worlds wire the twin through those vars",archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["event","function","run","step","signing_key"],endpointEnv:{name:"INNGEST_BASE_URL",templates:{INNGEST_EVENT_API_BASE_URL:"${url}"},note:"no injector entry: the inngest SDK is base-URL-configured through INNGEST_BASE_URL / INNGEST_EVENT_API_BASE_URL."},serveExport:"createInngestTwinServer"},instagram:{adoption:{envStems:["INSTAGRAM"]},hosts:[{host:"graph.facebook.com",pathPattern:"^(?:/v\\d+\\.\\d+)?/(?:me|\\d{1,25})(?:/(?:media|media_publish|content_publishing_limit))?/?$|^/_twin/"},{host:"graph.instagram.com",pathPattern:"^(?:/v\\d+\\.\\d+)?/(?:me|\\d{1,25})(?:/(?:media|media_publish|content_publishing_limit))?/?$|^/_twin/"},{host:"rupload.facebook.com",pathPattern:"^/ig-api-upload/"},{host:"scontent.cdninstagram.com",pathPattern:"^/(?:o1/v/t16/f2/m86/|v/t51\\.(?:71878-15|2885-19)/)"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["ig_user","media"],endpointEnvNone:"Meta ships no Instagram Platform client that reads a base-URL environment variable: apps call https://graph.facebook.com/<version>/… and the rupload host by constant, so a World reaches them through the hosts above; inventing an INSTAGRAM_BASE_URL the app never reads would report coverage the app does not have.",serveExport:"createInstagramTwinServer"},intercom:{adoption:{pypi:["python-intercom"],sdks:["intercom-client"],envStems:["INTERCOM"]},hosts:[{host:"api.intercom.io"},{host:"api.eu.intercom.io"},{host:"api.au.intercom.io"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["contact","conversation","message","event","data_attribute","admin","tag","note","company","segment"],serveExport:"createIntercomTwinServer"},jira:{adoption:{pypi:["jira"],sdks:["jira.js"],envStems:["JIRA","ATLASSIAN"]},hosts:[{host:"atlassian.net"},{suffix:".atlassian.net"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{oauthtoken:"issued by Atlassian's OAuth authorization server, outside the REST API"},resources:["person","issue","comment","issuelink","attachment","worklog","watcher","vote","project","component","version","sprint","filter","dashboard","gadget","webhook","oauthtoken"],serveExport:"createJiraTwinServer"},langfuse:{adoption:{pypi:["langfuse"],sdks:["langfuse","langfuse-node"],envStems:["LANGFUSE"]},hosts:[{host:"cloud.langfuse.com"},{host:"us.cloud.langfuse.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["project","api_key","trace","observation","session","score","score_config","prompt","dataset","dataset_item","dataset_run","dataset_run_item","model","comment","annotation_queue","annotation_queue_item","media","llm_connection","ingestion_event"],serveExport:"createLangfuseTwinServer"},linear:{adoption:{pypi:[],sdks:["@linear/sdk"],scopes:["@linear/"],envStems:["LINEAR"]},hosts:[{host:"api.linear.app"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"graphql",resourcesUnreachable:{project:"born of the vendor's projectCreate mutation, which this twin does not model yet — pulled only",cycle:"born of the vendor's cycleCreate mutation, which this twin does not model yet — pulled only",user:"a workspace member, born of an invite flow outside the API",workflowState:"born with the team's workflow; the API reads them"},resources:["issue","team","project","cycle","user","label","workflowState","comment","notification"],serveExport:"createDerivedLinearTwinServer"},linkedin:{adoption:{sdks:["linkedin-api-client"],pypi:["linkedin-api-client"],envStems:["LINKEDIN"]},hosts:[{host:"api.linkedin.com",pathPattern:"^(?:/rest/(?:posts|images|videos|organizationAcls|organizations|organizationsLookup|networkSizes)(?:/[^/]+)?/?|/v2/userinfo/?)$|^/_twin/"},{host:"www.linkedin.com",pathPattern:"^/dms-uploads/"},{host:"media.licdn.com",pathPattern:"^/dms/image/"},{host:"dms.licdn.com",pathPattern:"^/playlist/"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["organization","member","organization_acl","token","post"],endpointEnvNone:"linkedin-api-client takes no base-URL environment variable (its RestliClient builds https://api.linkedin.com/rest URLs from a constant), so a World reaches it through the hosts above; inventing a LINKEDIN_BASE_URL the app never reads would report coverage the app does not have.",serveExport:"createLinkedinTwinServer"},livekit:{adoption:{pypi:["livekit-api","livekit","livekit-agents"],sdks:["livekit-server-sdk","@livekit/rtc-node"],scopes:["@livekit/"],envStems:["LIVEKIT"]},hostsNone:"real local media plane (livekit-server) exposed via app-read env (LIVEKIT_URL is ws:// — WebSocket media is outside the HTTP injector's reach)",archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["room","participant","egress","ingress","sip_inbound_trunk","sip_outbound_trunk","sip_dispatch_rule","sip_participant","agent_dispatch"],serveExport:"createLiveKitTwinServer"},mailgun:{adoption:{pypi:["mailgun"],sdks:["mailgun.js"],envStems:["MAILGUN"]},hosts:[{host:"api.mailgun.net"},{host:"api.eu.mailgun.net"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["domain","message","event","bounce","complaint","unsubscribe","whitelist","webhook","route","mailing_list","list_member","template","template_version","api_key","tag","account"],endpointEnvNone:"the mailgun.js SDK reads no environment variable of its own — verified in the shipped v14.0.0 bundle: `MAILGUN` occurs zero times, and every `process.env` hit belongs to bundled axios (proxy vars) or `debug` (DEBUG). The base URL is the constructor `url` option, so no app-read endpoint env exists to inject; redirection is via the `hosts` injector entries.",serveExport:"createMailgunTwinServer"},mapbox:{adoption:{pypi:["mapbox"],sdks:["@mapbox/mapbox-sdk"],scopes:["@mapbox/"],envStems:["MAPBOX"]},hosts:[{host:"api.mapbox.com"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["geocode","dataset","dsfeature","style","token","tileset","upload"],serveExport:"createMapboxTwinServer"},mistral:{adoption:{pypi:["mistralai"],sdks:["@mistralai/mistralai","@ai-sdk/mistral"],envStems:["MISTRAL"]},hosts:[{host:"api.mistral.ai"},{host:"api.eu.mistral.ai"},{host:"api.us.mistral.ai"}],archetype:"generative",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["file","batch_job","agent","conversation","conversation_entry"],serveExport:"createMistralTwinServer"},mixpanel:{adoption:{pypi:["mixpanel"],sdks:["mixpanel","mixpanel-browser"]},hosts:[{host:"api.mixpanel.com"},{host:"api-eu.mixpanel.com"},{host:"api-in.mixpanel.com"},{host:"api-js.mixpanel.com"},{host:"data.mixpanel.com"},{host:"data-eu.mixpanel.com"},{host:"data-in.mixpanel.com"},{host:"mixpanel.com"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["event","profile","identity","alias"],serveExport:"createMixpanelTwinServer"},mongodb:{adoption:{pypi:[],sdks:[]},hostsNone:"RAW-PROTOCOL pack — there is no host to map. MongoDB clients speak the wire protocol over a raw TCP socket to whatever host the connection string names, which the injector (http/fetch patching) cannot see; a World reaches this twin through the connection string itself (MONGO_URI and its kin), which World-managed infrastructure injects.",archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"raw-tcp",resources:["collection","index","document"],endpointEnvNone:"no vendor base-URL variable: the application reads its own connection-string variable (MONGO_URI, MONGODB_URL, DATABASE_URL, …), and World-managed infrastructure (`volter-world init` → `volter-world-infra`) injects that variable pointing at this twin's listener.",serveExport:"createMongodbTwinServer"},moonshot:{adoption:{pypi:[],sdks:[],envStems:["MOONSHOT"]},hosts:[{host:"api.moonshot.ai"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{model:"the vendor catalog",balance:"the account ledger the vendor keeps; read-only"},resources:["file","batch","balance","model"],endpointEnvNone:"Moonshot ships no SDK of its own; its documented clients (the standard openai/anthropic SDKs) take their base URL as a constructor option and read no MOONSHOT_BASE_URL env, so an app-read var would cover only env-configured callers while disabling the api.moonshot.ai interception that covers all traffic.",serveExport:"createMoonshotTwinServer"},notion:{adoption:{pypi:["notion-client"],sdks:["@notionhq/client"],scopes:["@notionhq/"],envStems:["NOTION"]},hostsNone:"no injector entry grounded yet — worlds point @notionhq/client at the twin via its baseUrl option; zero-edit interception of api.notion.com is a visible gap until grounded here",archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resourcesUnreachable:{user:"a workspace member, born of the workspace admin, read-only through the API"},resources:["page","block","database","comment","user","webhook"],serveExport:"createNotionTwinServer"},"npm-registry":{adoption:{pypi:[],envStems:["NPM"]},hosts:[{host:"registry.npmjs.org"},{host:"npm.pkg.github.com"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["package","tarball","advisory"],serveExport:"createNpmRegistryTwinServer"},"oa-treasury":{adoption:{pypi:[],envStems:["MODELPROXY","MODELPROXYADMIN","AGENTPROXY","AGENTPROXYADMIN","AGENTPROXYHMAC"]},hosts:[{hostPattern:"^volter-agent-model-proxy\\.[a-z0-9.-]+\\.workers\\.dev$"},{host:"open-autonomy.org"},{host:"www.open-autonomy.org"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["account","supplier","coupon","reserve","run","rail"],serveExport:"createOaTreasuryTwinServer"},openai:{adoption:{pypi:["openai","openai-agents"],sdks:["openai","@ai-sdk/openai"],envStems:["OPENAI","APOPENAI","OPENAIMODERATION","REWORKDPLATFORMOPENAI"]},hosts:[{host:"api.openai.com"},{host:"platform.openai.com",pathPattern:"^/(settings/proj[-_][^/]+/api-keys|login$)"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["file","batch","fine_tuning_job","vector_store","vector_store_file","response","chat_completion"],serveExport:"createOpenAITwinServer"},openrouter:{adoption:{pypi:["openrouter"],sdks:["@openrouter/ai-sdk-provider"],scopes:["@openrouter/"],envStems:["OPENROUTER","OR"]},hosts:[{host:"openrouter.ai"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["generation","api_key","byok","preset"],serveExport:"createOpenRouterTwinServer"},openweather:{adoption:{pypi:["pyowm"],sdks:["openweather-api-node"],envStems:["OPENWEATHER","OPENWEATHERMAP"]},hosts:[{host:"api.openweathermap.org"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["observation","audit"],serveExport:"createOpenWeatherTwinServer"},paypal:{adoption:{sdks:["paypal-rest-sdk"],pypi:["paypalrestsdk"],envStems:["PAYPAL"]},hosts:[{host:"api.paypal.com",pathPattern:"^/v1/(?:oauth2/token/?$|identity/openidconnect/|payments/payouts(?:-item)?(?:/|$)|notifications/)|^/_twin/"},{host:"api-m.paypal.com",pathPattern:"^/v1/(?:oauth2/token/?$|identity/openidconnect/|payments/payouts(?:-item)?(?:/|$)|notifications/)|^/_twin/"},{host:"api.sandbox.paypal.com",pathPattern:"^/v1/(?:oauth2/token/?$|identity/openidconnect/|payments/payouts(?:-item)?(?:/|$)|notifications/)|^/_twin/"},{host:"api-m.sandbox.paypal.com",pathPattern:"^/v1/(?:oauth2/token/?$|identity/openidconnect/|payments/payouts(?:-item)?(?:/|$)|notifications/)|^/_twin/"},{host:"www.paypal.com",pathPattern:"^/signin/authorize/?$|^/connect/?$|^/webapps/auth/protocol/openidconnect/|^/_twin/"},{host:"www.sandbox.paypal.com",pathPattern:"^/signin/authorize/?$|^/connect/?$|^/webapps/auth/protocol/openidconnect/|^/_twin/"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["oauth_client","account","session","auth_request","authorization_code","access_token","refresh_token","payout_batch","payout_item","webhook","webhook_event"],endpointEnvNone:"no PayPal client reads a base-URL env var — paypal-rest-sdk takes mode: sandbox|live, the current @paypal server SDK takes an Environment enum, and the motivating app computes its host from NODE_ENV — so interception is the host entries above.",serveExport:"createPaypalTwinServer"},perplexity:{adoption:{pypi:["perplexityai"],sdks:["@ai-sdk/perplexity"],envStems:["PERPLEXITY"]},hosts:[{host:"api.perplexity.ai"}],archetype:"generative",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["async_request"],endpointEnvNone:"@ai-sdk/perplexity — the dominant client in the 2026-08-31-b demand census — takes its baseURL as a constructor option and reads NO base-URL environment variable (perplexity-provider.ts: `withoutTrailingSlash(options.baseURL ?? 'https://api.perplexity.ai')`, and `loadApiKey` reads only PERPLEXITY_API_KEY). Perplexity documents no base-URL env var for any client, so there is nothing to inject; a fabricated PERPLEXITY_BASE_URL would let `covers` call a world covered while the app kept calling api.perplexity.ai. The injector intercepts that host (see `hosts`) instead.",serveExport:"createPerplexityTwinServer"},pinecone:{adoption:{pypi:["pinecone","pinecone-client"],sdks:["@pinecone-database/pinecone"],scopes:["@pinecone-database/"],envStems:["PINECONE"]},hostsNone:"control/data host split with per-index data-plane hostnames ({index}-{project}.svc.{env}.pinecone.io, see the pack README) — SDK is pointed at the twin by explicit host config",archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["index","collection","vector"],serveExport:"createPineconeTwinServer"},plain:{adoption:{pypi:[],sdks:["@team-plain/typescript-sdk"],scopes:["@team-plain/"],envStems:["PLAIN","NEXTPRIVATEPLAIN"]},hosts:[{host:"core-api.uk.plain.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"graphql",resourcesUnreachable:{company:"born of the vendor's createCompany mutation, which this twin does not model (no manifest entry) — pulled only",customerGroup:"born of createCustomerGroup, filed as todo plain.customergroups.op_create — pulled only",customerGroupMembership:"born of addCustomerToCustomerGroups over a group the twin cannot create yet — pulled only",workspace:"the tenant itself",user:"a workspace member, born of an invite",machineUser:"born in the workspace settings UI"},resources:["workspace","user","machineUser","customer","company","tenant","customerGroup","customerGroupMembership","thread","label","labelType","threadField","timelineEntry","note","customerEvent","webhookTarget","attachment"],serveExport:"createPlainTwinServer"},planetscale:{adoption:{pypi:[],sdks:["@planetscale/database"],envStems:["PLANETSCALE"]},hosts:[{suffix:".psdb.cloud"},{host:"api.planetscale.com",pathPattern:"^/v1/organizations(/|$)"},{host:"app.planetscale.com",pathPattern:"^/(sign-in|[^/]+/settings/service-tokens)(/|$)"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",nativeTransport:{protocol:"mysql",flag:"--mysql",upstreamEnv:"PLANETSCALE_TWIN_URL"},resources:["table","row","_session","_backup"],endpointEnv:{name:"PLANETSCALE_TWIN_URL",templates:{PLANETSCALE_DATABASE_URL:"http://twin:twin@${host}:${port}"},note:"the @planetscale/database client reads PLANETSCALE_DATABASE_URL and honours http:; the injector also redirects *.psdb.cloud."},prismaAdapter:{adapter:"@prisma/adapter-planetscale",export:"PrismaPlanetScale",urlEnv:"PLANETSCALE_DATABASE_URL"},serveExport:"createPlanetscaleTwinServer"},polar:{adoption:{pypi:["polar-sdk"],sdks:["@polar-sh/sdk"],scopes:["@polar-sh/"],envStems:["POLAR"]},hosts:[{host:"api.polar.sh"},{host:"sandbox-api.polar.sh"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["customer","product","subscription","order","checkout","benefit","discount","meter","event","customer_session","webhook_endpoint"],serveExport:"createPolarTwinServer"},posthog:{adoption:{pypi:["posthog"],sdks:["posthog-node","posthog-js","@posthog/api-client","@posthog/react"],envStems:["POSTHOG","POSTHOGANALYTICS","POSTHOGPERSONAL","POSTHOGPROJECT","POSTHOGPUBLIC"]},hosts:[{host:"app.posthog.com"},{host:"us.posthog.com"},{host:"eu.posthog.com"},{suffix:".i.posthog.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["project","event","person","feature_flag","insight","cohort","experiment","annotation","dashboard","action","group","org_member","early_access_feature","event_definition","property_definition"],serveExport:"createPosthogTwinServer"},postmark:{adoption:{pypi:["postmarker"],sdks:["postmark"],envStems:["POSTMARK"]},hosts:[{host:"api.postmarkapp.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["message","bounce","template","message_stream","webhook","suppression","server","domain","sender_signature","inbound_rule"],serveExport:"createPostmarkTwinServer"},reddit:{adoption:{sdks:["snoowrap"],pypi:[],envStems:["REDDIT"]},hosts:[{host:"oauth.reddit.com",pathPattern:"^/(?:api/v1/me|api/submit|api/del|api/comment|api/info|api/media/asset|by_id/[^/]+|r/[^/]+/(?:about|new|api/info)|user/[^/]+/(?:about|submitted)|subreddits/mine/(?:moderator|contributor)|(?:r/[^/]+/)?comments/[a-z0-9]+(?:/[^/]*)?)(?:\\.json)?/?$|^/_twin/"},{host:"www.reddit.com",pathPattern:"^/api/v1/access_token$"},{host:"reddit-uploaded-media.s3-accelerate.amazonaws.com"},{host:"v.redd.it",pathPattern:"^/[a-z0-9]{13}/DASH_\\d{2,4}\\.mp4$"},{host:"preview.redd.it",pathPattern:"^/[a-z0-9]{13}\\.(?:png|jpg|gif)$"},{host:"i.redd.it",pathPattern:"^/[a-z0-9]{13}\\.(?:png|jpg|gif)$"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["user","subreddit","link","comment"],endpointEnvNone:"reddit clients take no base-URL environment variable (snoowrap and PRAW build https://oauth.reddit.com and https://www.reddit.com URLs from constants or explicit constructor options), so a World reaches them through the hosts above; inventing a REDDIT_BASE_URL the app never reads would report coverage the app does not have.",serveExport:"createRedditTwinServer"},redis:{adoption:{},hostsNone:"RAW-PROTOCOL pack — there is no host to map. Redis's protocol runs over a TCP socket the injector (which patches http/fetch) never sees, and a Redis has no vendor hostname: it is wherever the app's REDIS_URL points. The World points it here: init classifies REDIS_URL as managed infrastructure and the managed redis service is this twin.",archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"raw-tcp",resources:["key","field","member","scored","entry","script"],endpointEnvNone:"Redis clients read no base-URL env of their own: the app passes its REDIS_URL (or host/port) to ioredis or node-redis itself, and init emits that REDIS_URL for the managed redis service (world-runtime/src/init.ts), not as a twin endpoint env.",serveExport:"createRedisTwinServer"},replicate:{adoption:{pypi:["replicate"],sdks:["replicate","@ai-sdk/replicate"],envStems:["REPLICATE","REWORKDPLATFORMREPLICATE"]},hostsNone:"no injector entry grounded yet — worlds wire the twin via the SDK's explicit baseUrl config; zero-edit interception of api.replicate.com is a visible gap until its hosts are grounded here",archetype:"generative",protocol:{major:1,standing:"deprecated"},transport:"rest",resourcesUnreachable:{model_version:"born of `cog push`, never of the HTTP API; pulled"},resources:["prediction","model","model_version","webhook_secret"],serveExport:"createReplicateTwinServer"},resend:{adoption:{pypi:["resend"],sdks:["resend"],envStems:["RESEND","NEXTPRIVATERESEND"]},hosts:[{host:"api.resend.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["email","audience","contact","domain","api_key"],serveExport:"createResendTwinServer"},runhuman:{adoption:{sdks:["runhuman"]},hosts:[{host:"runhuman.com",pathPattern:"^/api/"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["organization","project","api_key","user","tester_profile","job","pipeline_run"],endpointEnv:{name:"RUNHUMAN_API_URL",note:"grounded in volter-ai/runhuman packages/cli/src/lib/config.ts, which overrides the CLI apiUrl from RUNHUMAN_API_URL; RH2 reads its human-marketplace base URL from the provider row spec.url instead, which a rehearsal World sets to this same twin URL."},serveExport:"createRunhumanTwinServer"},scrapecreators:{adoption:{pypi:[],sdks:["@scrapecreators/cli"],envStems:["SCRAPECREATORS"]},hosts:[{host:"api.scrapecreators.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["profile","content","cache","account","usage"],serveExport:"createScrapeCreatorsTwinServer"},segment:{adoption:{pypi:["segment-analytics-python","analytics-python"],sdks:["@segment/analytics-node"],envStems:["SEGMENT"]},hosts:[{host:"api.segment.io"},{host:"events.eu1.segmentapis.com"},{host:"oauth2.segment.io"},{host:"oauth2.eu1.segmentapis.com"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["event","identity","group","dropped"],serveExport:"createSegmentTwinServer"},sendblue:{adoption:{pypi:["sendblue"],sdks:["sendblue"],envStems:["SENDBLUE"]},hostsNone:"no injector entry grounded yet — worlds wire the twin via explicit client endpoint config; a visible gap until its host is grounded here",archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["message","credential"],serveExport:"createSendblueTwinServer"},sendgrid:{adoption:{pypi:["sendgrid"],sdks:["@sendgrid/mail","@sendgrid/client"],envStems:["SENDGRID","SENDGRIDSYNC"]},hosts:[{host:"api.sendgrid.com"},{host:"api.eu.sendgrid.com"},{host:"email.twilio.com"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["message"],serveExport:"createSendgridTwinServer"},sentry:{adoption:{pypi:["sentry-sdk"],sdks:["@sentry/node","@sentry/browser","@sentry/react","@sentry/nextjs","@sentry/vue","@sentry/sveltekit","@sentry/astro","@sentry/remix","@sentry/electron","@sentry/react-native"],scopes:["@sentry/"],envStems:["SENTRY","APPSMITHSENTRY"]},hosts:[{host:"sentry.io"},{suffix:".ingest.sentry.io"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["organization","team","project","project_key","issue","event","event_attachment","session","project_ownership","codeowners","project_filter","release","release_file","deploy","alert_rule","metric_alert","org_integration"],serveExport:"createSentryTwinServer"},slack:{adoption:{worldIds:["slackapp"],pypi:["slack-sdk","slack-bolt","slackclient"],sdks:["@slack/web-api","@slack/bolt","@slack/webhook","@slack/oauth"],scopes:["@slack/"],envStems:["SLACK","SLACKBOTUSER"]},hosts:[{key:"slackapp",host:"slack.com",pathPattern:"^/api/apps\\.connections\\.open/?$"},{host:"slack.com"},{host:"www.slack.com"},{host:"api.slack.com"},{host:"hooks.slack.com",pathPattern:"^/services/"},{host:"avatars.slack-edge.com",pathPattern:"^/T[A-Za-z0-9-]+/(([UWA][A-Za-z0-9-]+|icon)_[0-9]{1,4}\\.png|[UW][A-Za-z0-9-]+-[0-9a-f]{12}_([0-9]{1,4}|original)\\.(png|gif))$"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"web-api",resources:["channel","user","message","file","audit"],serveExport:"createSlackTwinServer"},smtp:{adoption:{pypi:["aiosmtplib"],sdks:["nodemailer","nodemailer-smtp-transport","emailjs"],envStems:["NEXTPRIVATESMTP"]},hostsNone:"RAW-PROTOCOL pack — there is no host to map. SMTP is a line protocol over a raw TCP socket, so the injector (which patches http/fetch) cannot see the traffic at all, and there is no vendor hostname either: the relay is whatever the operator names (smtp.gmail.com, email-smtp.us-east-1.amazonaws.com, localhost:1025 …). Interception is app-read env instead — the world injects SMTP_HOST/SMTP_PORT + EMAIL_SERVER/EMAIL_SERVER_HOST/EMAIL_SERVER_PORT at the twin's listener (APP_READ_ENDPOINT_ENV in world-runtime/src/init.ts), which is the ONLY thing every SMTP client is configured with. Same class as livekit's ws:// media plane, one layer further down.",archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"raw-tcp",resources:["message","relay"],serveExport:"createSmtpTwinServer"},snowflake:{adoption:{pypi:["snowflake-connector-python","snowflake","snowflake-snowpark-python","snowflake-sqlalchemy"],sdks:["snowflake-sdk"],envStems:["SNOWFLAKE"]},hosts:[{suffix:".snowflakecomputing.com"},{suffix:".snowflakecomputing.cn"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["database","schema","table","view","warehouse","session","query"],endpointEnvNone:"the snowflake-sdk takes its endpoint through createConnection()'s own account/host/accessUrl/protocol/port options or a connections.toml under SNOWFLAKE_HOME; it reads NO base-URL environment variable (verified against the packed snowflake-sdk@3.2.0 tarball, whose lib/ reads SNOWFLAKE_HOME, SNOWFLAKE_DEFAULT_CONNECTION_NAME, the SNOWFLAKE_DISABLE_*/SNOWFLAKE_CRL_*/SNOWFLAKE_RUNNING_INSIDE_SPCS switches, the SF_OCSP_*/SF_TELEMETRY_*/SF_CLIENT_CONFIG_FILE/SF_TEMPORARY_CREDENTIAL_CACHE_DIR debug and cache switches, the standard http_proxy family, and some non-Snowflake names like AWS_REGION/HOME - no base-URL variable of any kind). Interception is host-based via the .snowflakecomputing.com and .snowflakecomputing.cn suffix entries; a SNOWFLAKE_BASE_URL would be a var no app reads.",serveExport:"createSnowflakeTwinServer"},stigg:{adoption:{sdks:["@stigg/node-server-sdk","@stigg/react-sdk","@stigg/js-client-sdk","@stigg/api-client-js"],pypi:["stigg-api-client","stigg"],scopes:["@stigg/"],envStems:["STIGG","STIGGCLIENT"]},hosts:[{host:"api.stigg.io"},{host:"edge.api.stigg.io"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"graphql",resources:["product","plan","feature","packageEntitlement","price","customer","subscription","usageMeasurement","promotionalEntitlement","coupon","integration","hook"],endpointEnvNone:"the Stigg SDKs take their base URL as a constructor option (Stigg.initialize({ baseUri, baseEdgeUri })) and read NO env var for it. Verified by grep for process.env across the SDK dists: @stigg/node-server-sdk 4.55.0 (the version this pack pins and installs) and, in the consumer tree that motivated the pack, @stigg/node-server-sdk 4.2.0 and @stigg/js-client-sdk 3.67.0 — every one of them references only process.env.NODE_ENV. (The browser SDKs are NOT installed in this repo; that half of the evidence comes from ~/Code/Ponder and is therefore not re-checkable here, which is why both trees are named rather than one. §9 round 1 flagged the original citation for naming versions this repo does not carry.) Interception is by the api.stigg.io / edge.api.stigg.io host entries above.",serveExport:"createStiggTwinServer"},stream:{adoption:{pypi:["stream-chat"],sdks:["stream-chat"],envStems:["STREAM","GETSTREAM"]},hosts:[{host:"chat.stream-io-api.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["user","channel","message","channeltype","device","ban","mute","flag"],serveExport:"createStreamTwinServer"},stripe:{adoption:{pypi:["stripe"],sdks:["stripe"],envStems:["STRIPE","NEXTPRIVATESTRIPE"]},hosts:[{host:"api.stripe.com"},{host:"checkout.stripe.com",pathPattern:"^/c/pay/"},{host:"billing.stripe.com",pathPattern:"^/p/session/"},{host:"connect.stripe.com",pathPattern:"^/setup/|^/oauth/(authorize|token|deauthorize)/?$"},{host:"dashboard.stripe.com",pathPattern:"^/settings/public/?$|^/(test/)?settings/connect(/onboarding-options/oauth)?/?$"},{host:"verify.stripe.com",pathPattern:"^/start/"},{host:"js.stripe.com",pathPattern:"^/v3/financial-connections/|^/v3/?$|^/(v3|[a-z]+)/stripe\\.js$"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["charge","customer","payment_intent","setup_intent","payment_method","subscription","price","product","invoice","invoiceitem","refund","event"],serveExport:"createStripeTwinServer"},supabase:{adoption:{pypi:["supabase","gotrue","supabase-auth","postgrest","storage3","supafunc","realtime"],sdks:["@supabase/supabase-js"],scopes:["@supabase/"],envStems:["SUPABASE"],worldIds:["supabasemgmt"]},hosts:[{host:"api.supabase.com"},{suffix:".supabase.co",pathPattern:"^/(rest|storage|auth)/v1(/|$)"}],archetype:"engine-control",protocol:{major:1,standing:"deprecated"},transport:"rest",resourcesUnreachable:{access_token:"a personal access token minted in the dashboard; the twin only reads it as seeded state",network_ban:"born of the vendor's abuse detector",backup:"born of the vendor's scheduler"},resources:["organization","org_member","access_token","project","branch","config","secret","function","network_restrictions","network_ban","custom_hostname","read_replica","backup"],managedDatabase:{kind:"postgres",arg:"--database",note:"PostgREST, Storage and Auth are served over the application's own database: the World's managed postgres, the database its migrations and direct queries use"},serveExport:"createSupabaseTwinServer"},supermemory:{adoption:{pypi:["supermemory"],sdks:["supermemory"],envStems:["SUPERMEMORY"]},hosts:[{host:"api.supermemory.ai"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["document","setting"],serveExport:"createSupermemoryTwinServer"},svix:{adoption:{pypi:["svix"],sdks:["svix"],envStems:["SVIX"]},hosts:[{host:"api.svix.com"},{host:"api.us.svix.com"},{host:"api.eu.svix.com"},{host:"api.in.svix.com"},{host:"api.ca.svix.com"},{host:"api.au.svix.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["application","endpoint","message","message_attempt","event_type"],serveExport:"createSvixTwinServer"},tavily:{adoption:{sdks:["@tavily/core"],pypi:["tavily-python"],envStems:["TAVILY"]},hosts:[{host:"api.tavily.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["page","usage","log","research","keyless"],endpointEnvNone:"the @tavily/core SDK exposes no base-URL env var — it reads only TAVILY_API_KEY/TAVILY_HTTP(S)_PROXY/TAVILY_ORG_ID/TAVILY_PROJECT from process.env; base-URL override is the constructor option apiBaseURL (dist/index.mjs post()/get(): `apiBaseURL || BASE_URL`), so interception is the hosts entry above.",serveExport:"createTavilyTwinServer"},temporal:{adoption:{sdks:["@temporalio/client","@temporalio/worker","@temporalio/workflow","@temporalio/activity"],scopes:["@temporalio/"],pypi:["temporalio"],envStems:["TEMPORAL"]},hostsNone:"RAW-PROTOCOL pack — there is no host to map. The Temporal SDKs dial the frontend address they are configured with (Connection.connect / NativeConnection.connect `address`, conventionally TEMPORAL_ADDRESS) over gRPC, which the http/fetch injector never sees. Interception is the app-read address: the World injects TEMPORAL_ADDRESS=<host>:<port> at this twin (APP_READ_ENDPOINT_ENV in world-runtime/src/init.ts).",archetype:"engine-control",protocol:{declared:"2",major:2,standing:"current"},transport:"raw-tcp",resources:["workflow-execution","namespace"],serveExport:"createTemporalTwinServer"},tiktok:{adoption:{sdks:[],pypi:[],envStems:["TIKTOK"]},hosts:[{host:"www.tiktok.com",pathPattern:"^/v2/auth/authorize/?$|^/_twin/"},{host:"open.tiktokapis.com",pathPattern:"^/v2/(?:oauth/(?:token|revoke)|user/info|video/(?:list|query)|post/publish/(?:creator_info/query|video/init|inbox/video/init|status/fetch))/?$|^/_twin/"},{host:"open-upload.tiktokapis.com",pathPattern:"^/video/?$"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["oauth_client","account","session","auth_request","grant","video","publish"],endpointEnvNone:"no app-read base-URL env exists: TikTok publishes no official SDK with a base-URL option and integrations (Dub included) hardcode www.tiktok.com and open.tiktokapis.com, so interception is the path-scoped hosts entries above.",serveExport:"createTikTokTwinServer"},tinybird:{adoption:{pypi:["tinybird-python-sdk","tinybird-cli"],sdks:["@chronark/zod-bird"],scopes:["@chronark/zod-bird"],envStems:["TINYBIRD"]},hosts:[{host:"api.tinybird.co"},{hostPattern:"^api\\.[a-z0-9.-]+\\.tinybird\\.co$"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["datasource","pipe","event","token","job","tag"],serveExport:"createTinybirdTwinServer"},togetherai:{adoption:{sdks:["together-ai"],envStems:["TOGETHER"]},hosts:[{host:"api.together.ai"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{model:"the vendor catalog"},resources:["file","batch","finetune","model"],endpointEnv:{name:"TOGETHER_TWIN_URL",templates:{TOGETHER_API_BASE_URL:"${url}/v1"},note:"the injector covers api.together.ai, but together-ai's files.upload() reads TOGETHER_API_BASE_URL at module load and ignores client.baseURL (lib/upload.js:12) — the template points it at the twin's /v1 so the SDK upload flow does not egress to the real vendor."},serveExport:"createTogetheraiTwinServer"},tremendous:{adoption:{pypi:[],sdks:["tremendous"],envStems:["TREMENDOUS"]},hosts:[{host:"api.tremendous.com"},{host:"testflight.tremendous.com"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["order","reward","campaign","product","funding_source","invoice","topup","balance_txn","member","field","webhook","organization","settings"],serveExport:"createTremendousTwinServer"},tunnel:{adoption:{pypi:[],sdks:["@volter/tunnel"],envStems:["TUNNEL","VOLTERTUNNEL"]},hostsNone:"no injector entry by design: native cloudflared is an external binary, while @volter/tunnel opens a configurable WebSocket control channel and the CLI reads TUNNEL_SERVER_URL. Worlds wire that app-read endpoint directly; claiming api.trycloudflare.com in the Node injector would not redirect cloudflared and would falsely imply the Cloudflare edge data plane was twinned",archetype:"proxy",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["quick_tunnel","relay_tunnel","relay"],serveExport:"createTunnelTwinServer"},turbopuffer:{adoption:{sdks:["@turbopuffer/turbopuffer"],pypi:["turbopuffer"],scopes:["@turbopuffer/"],envStems:["TURBOPUFFER"]},hosts:[{hostPattern:"^(?:aws|gcp|azure)-[a-z0-9-]+\\.turbopuffer\\.com$"},{host:"turbopuffer.com",pathPattern:"^/(login|dashboard|_twin/users)(/|$)"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["namespace","document"],endpointEnv:{name:"TURBOPUFFER_TWIN_URL",templates:{TURBOPUFFER_BASE_URL:"${url}/{region}"},note:"grounded in @turbopuffer/turbopuffer@2.8.0 src/client.ts:253-288 (TURBOPUFFER_BASE_URL, {region} placeholder substitution) and internal/custom/fetch-node.ts (undici Agent.request under node, outside the injector); the injector also claims the regional *.turbopuffer.com hosts for fetch-based runtimes."},serveExport:"createTurbopufferTwinServer"},twelvelabs:{adoption:{pypi:["twelvelabs"],sdks:["twelvelabs-js"],envStems:["TWELVELABS"]},hosts:[{host:"api.twelvelabs.io"}],archetype:"generative",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["index","task","video"],serveExport:"createTwelvelabsTwinServer"},twilio:{adoption:{pypi:["twilio"],sdks:["twilio"],envStems:["TWILIO"]},hostsNone:"no injector entry grounded yet — worlds point the twilio SDK at the twin via explicit client config; zero-edit interception of the three real Twilio hosts (pack README §Coverage) is a visible gap until grounded here",archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["message","verification","phone_number","signing_key"],serveExport:"createTwilioTwinServer"},upstash:{adoption:{pypi:["upstash-redis","upstash-ratelimit","qstash","upstash-workflow"],sdks:["@upstash/redis","@upstash/ratelimit","@upstash/qstash","@upstash/workflow"],scopes:["@upstash/redis","@upstash/ratelimit","@upstash/qstash","@upstash/workflow"],envStems:["UPSTASHREDIS","KVREST","QSTASH"]},hosts:[{suffix:".upstash.io"},{suffix:"-vector.upstash.io",exclude:!0},{host:"api.upstash.com",pathPattern:"^/v2/(redis|team|teams)(/|$)"},{host:"console.upstash.com",pathPattern:"^/(login|account/(api|teams)|qstash|invite)(/|$)"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["key"],endpointEnv:{name:"UPSTASH_TWIN_URL",templates:{QSTASH_URL:"${url}"},note:"@upstash/qstash and @upstash/workflow read QSTASH_URL; the injector also redirects *.upstash.io (Redis databases, QStash) to this twin."},serveExport:"createUpstashRedisTwinServer"},upstashvector:{adoption:{pypi:["upstash-vector"],sdks:["@upstash/vector"],scopes:["@upstash/vector"],envStems:["UPSTASHVECTOR"]},hosts:[{suffix:"-vector.upstash.io"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["vector","namespace","config"],serveExport:"createUpstashVectorTwinServer"},vercel:{adoption:{pypi:["vercel"],sdks:["@vercel/sdk","@vercel/edge-config"],envStems:["VERCEL"]},hosts:[{host:"api.vercel.com"},{host:"edge-config.vercel.com"},{host:"avatar.vercel.sh"},{host:"vercel.com",pathPattern:"^/(login|account/tokens)(/|$)"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["team","project","project_domain","domain","dns_record","env_var","edge_config","deployment","alias","auth_token"],serveExport:"createVercelTwinServer"},veriff:{adoption:{pypi:[],sdks:["@veriff/js-sdk"],scopes:["@veriff/"],envStems:["VERIFF"]},hosts:[{host:"stationapi.veriff.com"},{host:"api.veriff.me"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["session","attempt","media","delivery"],serveExport:"createVeriffTwinServer"},vital:{adoption:{pypi:["vital"],sdks:["@tryvital/vital-node"],scopes:["@tryvital/"],envStems:["VITAL"]},hosts:[{host:"api.tryvital.io"},{host:"api.sandbox.tryvital.io"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["user","order","appointment","webhook"],serveExport:"createVitalTwinServer"},volteridentity:{adoption:{sdks:["@volter/identity"],pypi:[],envStems:[]},hosts:[{host:"id.volter.ai"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["person","session","oauth_client","oauth_resource","client_resource","consent","authorization_code","access_token","refresh_token","device_code","organization","member","invitation"],endpointEnv:{name:"VOLTER_ISSUER",note:'grounded in the consumers: browser-substrate services/gateway/cloudflare/volter.ts (`VOLTER_ISSUER`, "the identity service, https://id.volter.ai") discovers the issuer from it, and Volter Teams is configured with `VOLTER_ISSUER` (volter-ai/identity ROADMAP I4); the twin is its own issuer, so discovery, tokens and redirects all name the injected URL.'},serveExport:"createVolterIdentityTwinServer"},webrisk:{adoption:{pypi:["google-cloud-webrisk"],sdks:["@google-cloud/web-risk"],envStems:["WEBRISK"]},hosts:[{host:"webrisk.googleapis.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["verdict","submission","operation","audit","iam_policy"],serveExport:"createWebRiskTwinServer"},x:{adoption:{pypi:["tweepy"],sdks:["twitter-api-v2"]},hosts:[{host:"api.x.com",pathPattern:"^/2/(?!(?:oauth2/(?:token|revoke)|users/me)/?$)|^/_twin/(?!assets/consent\\.(?:js|css)$)"},{host:"api.twitter.com",pathPattern:"^/2/(?!(?:oauth2/(?:token|revoke)|users/me)/?$)|^/_twin/(?!assets/consent\\.(?:js|css)$)"},{host:"x.com",pathPattern:"^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$"},{host:"twitter.com",pathPattern:"^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$"},{host:"www.x.com",pathPattern:"^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$"},{host:"www.twitter.com",pathPattern:"^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$"},{host:"mobile.twitter.com",pathPattern:"^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$"},{host:"mobile.x.com",pathPattern:"^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$"},{host:"pbs.twimg.com",pathPattern:"^/media/[0-9a-f]{64}\\.(?:jpg|png|gif|webp)$|^/ext_tw_video_thumb/[0-9]{1,19}/pu/img/[0-9a-f]{64}\\.svg$"},{host:"video.twimg.com",pathPattern:"^/ext_tw_video/[0-9]{1,19}/pu/vid/avc1/[0-9]+x[0-9]+/[0-9a-f]{64}\\.mp4$"},{host:"abs.twimg.com",pathPattern:"^/sticky/default_profile_images/default_profile_(?:normal|bigger|200x200|400x400)\\.png$"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["account","post","follow","rate_limit","_token"],serveExport:"createXTwinServer"},xai:{adoption:{pypi:["xai-sdk"],sdks:["@ai-sdk/xai"],envStems:["XAI","GROK"]},hosts:[{host:"api.x.ai"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{language_model:"the vendor catalog",model:"the vendor catalog"},resources:["deferred_completion","language_model","model","oauth_account","oauth_device_authorization","oauth_usage"],serveExport:"createXaiTwinServer"},xidentity:{adoption:{pypi:[],sdks:["@xdevplatform/xdk","twitter-api-sdk"],scopes:["@xdevplatform/"],envStems:["X","TWITTER"]},hosts:[{host:"x.com",pathPattern:"^/i/oauth2/authorize/?$|^/_twin/"},{host:"twitter.com",pathPattern:"^/i/oauth2/authorize/?$|^/_twin/"},{host:"api.x.com",pathPattern:"^/2/(?:oauth2/(?:token|revoke)|users/me)/?$|^/oauth/(?:request_token|authorize|authenticate|access_token)/?$|^/1\\.1/oauth/invalidate_token(?:\\.json)?/?$|^/_twin/assets/consent\\.(?:js|css)$"},{host:"api.twitter.com",pathPattern:"^/2/(?:oauth2/(?:token|revoke)|users/me)/?$|^/oauth/(?:request_token|authorize|authenticate|access_token)/?$|^/1\\.1/oauth/invalidate_token(?:\\.json)?/?$|^/_twin/assets/consent\\.(?:js|css)$"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["oauth_client","account","session","auth_request","grant","rate_window","oauth1_app","oauth1_token","oauth1_grant","_authorization_code","_access_token","_refresh_token","_oauth1_request_token","_client_secret","_code_challenge"],serveExport:"createXIdentityTwinServer"},youtube:{adoption:{pypi:[],sdks:["@googleapis/youtube"],envStems:["YOUTUBE"]},hosts:[{host:"youtube.googleapis.com"},{host:"www.googleapis.com",pathPattern:"^/(upload/)?youtube/v3(/|$)"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["channel","video","playlist","playlistItem"],serveExport:"createYouTubeTwinServer"}},undeclared:[]}});var i5=N6((Zz0,wg)=>{var st=($)=>typeof $==="string"&&(/^\/(o\/oauth2\/v2\/auth(\/oauthchooseaccount)?|o\/oauth2\/auth|o\/oauth2\/token|signin\/oauth\/error|\.well-known\/openid-configuration)\/?$/.test($)||/^\/_twin\//.test($)),et=($)=>typeof $==="string"&&/^\/(token|oauth2\/v4\/token|revoke|tokeninfo|device\/code)\/?$/.test($),$r=($)=>typeof $==="string"&&/^\/(oauth2\/(v1\/certs|v3\/(certs|userinfo)|v2\/userinfo)|userinfo\/v2\/me)\/?$/.test($),__={googleoauth:($,I)=>$==="accounts.google.com"&&(I===void 0||st(I))||$==="oauth2.googleapis.com"&&(I===void 0||et(I))||$==="www.googleapis.com"&&(I===void 0||$r(I))||$==="openidconnect.googleapis.com",googlefavicon:($)=>$==="www.google.com"||$==="google.com"||$==="t2.gstatic.com",browserassets:($)=>$==="cdnjs.cloudflare.com"||$==="www.googletagmanager.com"||$==="www.google-analytics.com"||$==="connect.facebook.net"||$==="snap.licdn.com"||$==="px.ads.linkedin.com"||$==="static.hotjar.com"||$==="fonts.googleapis.com"||$==="fonts.gstatic.com"||$==="api.fontshare.com"||$==="images.subscribe.dev"||$==="www.youtube.com"||$==="www.youtube-nocookie.com"||$==="i.ytimg.com"};{let{packs:$}=kg();for(let I of Object.keys($)){let G=$[I].hosts;if(!G||G.length===0)continue;if(__[I])throw Error(`inject: vendor "${I}" declares hosts on its pack descriptor AND in the hand VENDOR_HOSTS table — one home per fact; delete the hand entry.`);let Z=new Map;for(let _ of G){let J=_.key===void 0?I:_.key;if(!Z.has(J))Z.set(J,[]);Z.get(J).push(_)}for(let[_,J]of Z){if(__[_])throw Error(`inject: key "${_}" (pack ${I}) is declared twice — on this descriptor and in the hand VENDOR_HOSTS table or another pack's descriptor; a key has one home.`);let Y=(M)=>{if(["host","suffix","hostPattern"].filter((N)=>M[N]!==void 0).length!==1)throw Error(`inject: key "${_}" (pack ${I}) rule ${JSON.stringify(M)} — exactly one of host | suffix | hostPattern (pack-facts.json is hand-edited or stale)`);let T=M.hostPattern===void 0?null:new RegExp(M.hostPattern),S=M.pathPattern===void 0?null:new RegExp(M.pathPattern);return(N,B)=>(M.host!==void 0?N===M.host:M.suffix!==void 0?N.endsWith(M.suffix):T.test(N))&&(S===null||B===void 0||S.test(B))},W=J.filter((M)=>M.exclude!==!0).map(Y),R=J.filter((M)=>M.exclude===!0).map(Y);__[_]=(M,E)=>W.some((T)=>T(M,E))&&!R.some((T)=>T(M,E))}}}function Ur($){let I=String($||"").toLowerCase().replace(/\.$/,"");return Object.keys(__).some((G)=>__[G](I))}function Ir($){let I=String($||"").toLowerCase().replace(/\.$/,"");return Object.keys(__).filter((G)=>__[G](I))}function gg($){return String($).toUpperCase().replace(/[^A-Z0-9]/g,"_")}function _r($){let I={};for(let G of Object.keys(__)){let Z=$[`${gg(G)}_TWIN_URL`];if(Z)I[G]=Z.replace(/\/$/,"")}if($.TWIN_INJECT)for(let G of String($.TWIN_INJECT).split(",")){let Z=G.indexOf("=");if(Z<=0)continue;let _=G.slice(0,Z).trim(),J=G.slice(Z+1).trim();if(_&&J&&Object.hasOwn(__,_))I[_]=J.replace(/\/$/,"")}return I}wg.exports={VENDOR_HOSTS:__,isVendorHost:Ur,vendorsOfHost:Ir,twinEnvStem:gg,twinOrigins:_r}});var yg={};LU(yg,{validateHeaderValue:()=>vr,validateHeaderName:()=>Sr,setMaxIdleHTTPParsers:()=>Vr,request:()=>Pr,maxHeaderSize:()=>Rr,globalAgent:()=>Er,get:()=>Ar,default:()=>Cr,createServer:()=>Mr,ServerResponse:()=>Tr,Server:()=>Fr,STATUS_CODES:()=>Hr,OutgoingMessage:()=>Wr,METHODS:()=>Dr,IncomingMessage:()=>Kr,ClientRequest:()=>Lr,Agent:()=>Or});var Xr,Gr,xg,Yr,Jr,Qr=($,I,G)=>{G=$!=null?Xr(Gr($)):{};let Z=I||!$||!$.__esModule?xg(G,"default",{value:$,enumerable:!0}):G;for(let _ of Yr($))if(!Jr.call(Z,_))xg(Z,_,{get:()=>$[_],enumerable:!0});return Z},zr=($,I)=>()=>(I||$((I={exports:{}}).exports,I),I.exports),Zr,fg,Or,Lr,Kr,Dr,Wr,Hr,Fr,Tr,Mr,Ar,Er,Rr,Pr,Vr,Sr,vr,Cr;var bg=WI(()=>{Xr=Object.create,{getPrototypeOf:Gr,defineProperty:xg,getOwnPropertyNames:Yr}=Object,Jr=Object.prototype.hasOwnProperty,Zr=zr(($,I)=>{var G=(Xz(),V$(d5)),Z=(SE(),V$(VE)),_=$;for(J in G)if(G.hasOwnProperty(J))_[J]=G[J];var J;_.request=function(W,R){return W=Y(W),G.request.call(this,W,R)},_.get=function(W,R){return W=Y(W),G.get.call(this,W,R)};function Y(W){if(typeof W==="string")W=Z.parse(W);if(!W.protocol)W.protocol="https:";if(W.protocol!=="https:")throw Error('Protocol "'+W.protocol+'" not supported. Expected "https:"');return W}}),fg=Qr(Zr(),1),{Agent:Or,ClientRequest:Lr,IncomingMessage:Kr,METHODS:Dr,OutgoingMessage:Wr,STATUS_CODES:Hr,Server:Fr,ServerResponse:Tr,createServer:Mr,get:Ar,globalAgent:Er,maxHeaderSize:Rr,request:Pr,setMaxIdleHTTPParsers:Vr,validateHeaderName:Sr,validateHeaderValue:vr}=fg,Cr=fg});var hE={};LU(hE,{throws:()=>pa,strictEqual:()=>na,strict:()=>ua,rejects:()=>ha,ok:()=>ba,notStrictEqual:()=>ya,notEqual:()=>fa,notDeepStrictEqual:()=>xa,notDeepEqual:()=>wa,match:()=>ga,ifError:()=>ka,fail:()=>ja,equal:()=>Ba,doesNotThrow:()=>Na,doesNotReject:()=>qa,doesNotMatch:()=>Ca,default:()=>ca,deepStrictEqual:()=>va,deepEqual:()=>Sa,CallTracker:()=>Va,AssertionError:()=>Pa});var qr,Nr,hg,Br,jr,kr=($,I,G)=>{G=$!=null?qr(Nr($)):{};let Z=I||!$||!$.__esModule?hg(G,"default",{value:$,enumerable:!0}):G;for(let _ of Br($))if(!jr.call(Z,_))hg(Z,_,{get:()=>$[_],enumerable:!0});return Z},A$=($,I)=>()=>(I||$((I={exports:{}}).exports,I),I.exports),jE,o5,kE,gr,wr,xr,fr,ug,Yz,yr,br,hr,ur,nr,pr,cr,lr,mr,dr,XY,t5,ir,ng,pg,or,Jz,gE,wE,tr,cg,xE,rr,fE,lg,yE,GY,ar,sr,er,$a,Ua,Ia,_a,Xa,Ga,mg,dg,Ya,Ja,r5,ig,Qa,za,Za,Oa,La,Gz,og,Ka,tg,Da,rg,Wa,Ha,ag,bE,Fa,a5,Ta,Ma,sg,eg,Aa,Ea,Ra,BE,$w,Pa,Va,Sa,va,Ca,qa,Na,Ba,ja,ka,ga,wa,xa,fa,ya,ba,ha,ua,na,pa,ca;var uE=WI(()=>{qr=Object.create,{getPrototypeOf:Nr,defineProperty:hg,getOwnPropertyNames:Br}=Object,jr=Object.prototype.hasOwnProperty,jE=A$(($,I)=>{I.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var G={},Z=Symbol("test"),_=Object(Z);if(typeof Z==="string")return!1;if(Object.prototype.toString.call(Z)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(_)!=="[object Symbol]")return!1;var J=42;G[Z]=J;for(var Y in G)return!1;if(typeof Object.keys==="function"&&Object.keys(G).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(G).length!==0)return!1;var W=Object.getOwnPropertySymbols(G);if(W.length!==1||W[0]!==Z)return!1;if(!Object.prototype.propertyIsEnumerable.call(G,Z))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var R=Object.getOwnPropertyDescriptor(G,Z);if(R.value!==J||R.enumerable!==!0)return!1}return!0}}),o5=A$(($,I)=>{var G=jE();I.exports=function(){return G()&&!!Symbol.toStringTag}}),kE=A$(($,I)=>{I.exports=Object}),gr=A$(($,I)=>{I.exports=Error}),wr=A$(($,I)=>{I.exports=EvalError}),xr=A$(($,I)=>{I.exports=RangeError}),fr=A$(($,I)=>{I.exports=ReferenceError}),ug=A$(($,I)=>{I.exports=SyntaxError}),Yz=A$(($,I)=>{I.exports=TypeError}),yr=A$(($,I)=>{I.exports=URIError}),br=A$(($,I)=>{I.exports=Math.abs}),hr=A$(($,I)=>{I.exports=Math.floor}),ur=A$(($,I)=>{I.exports=Math.max}),nr=A$(($,I)=>{I.exports=Math.min}),pr=A$(($,I)=>{I.exports=Math.pow}),cr=A$(($,I)=>{I.exports=Math.round}),lr=A$(($,I)=>{I.exports=Number.isNaN||function(G){return G!==G}}),mr=A$(($,I)=>{var G=lr();I.exports=function(Z){if(G(Z)||Z===0)return Z;return Z<0?-1:1}}),dr=A$(($,I)=>{I.exports=Object.getOwnPropertyDescriptor}),XY=A$(($,I)=>{var G=dr();if(G)try{G([],"length")}catch(Z){G=null}I.exports=G}),t5=A$(($,I)=>{var G=Object.defineProperty||!1;if(G)try{G({},"a",{value:1})}catch(Z){G=!1}I.exports=G}),ir=A$(($,I)=>{var G=typeof Symbol<"u"&&Symbol,Z=jE();I.exports=function(){if(typeof G!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof G("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return Z()}}),ng=A$(($,I)=>{I.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}),pg=A$(($,I)=>{var G=kE();I.exports=G.getPrototypeOf||null}),or=A$(($,I)=>{var G="Function.prototype.bind called on incompatible ",Z=Object.prototype.toString,_=Math.max,J="[object Function]",Y=function(M,E){var T=[];for(var S=0;S<M.length;S+=1)T[S]=M[S];for(var N=0;N<E.length;N+=1)T[N+M.length]=E[N];return T},W=function(M,E){var T=[];for(var S=E||0,N=0;S<M.length;S+=1,N+=1)T[N]=M[S];return T},R=function(M,E){var T="";for(var S=0;S<M.length;S+=1)if(T+=M[S],S+1<M.length)T+=E;return T};I.exports=function(M){var E=this;if(typeof E!=="function"||Z.apply(E)!==J)throw TypeError(G+E);var T=W(arguments,1),S,N=function(){if(this instanceof S){var g=E.apply(this,Y(T,arguments));if(Object(g)===g)return g;return this}return E.apply(M,Y(T,arguments))},B=_(0,E.length-T.length),x=[];for(var w=0;w<B;w++)x[w]="$"+w;if(S=Function("binder","return function ("+R(x,",")+"){ return binder.apply(this,arguments); }")(N),E.prototype){var y=function(){};y.prototype=E.prototype,S.prototype=new y,y.prototype=null}return S}}),Jz=A$(($,I)=>{var G=or();I.exports=Function.prototype.bind||G}),gE=A$(($,I)=>{I.exports=Function.prototype.call}),wE=A$(($,I)=>{I.exports=Function.prototype.apply}),tr=A$(($,I)=>{I.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}),cg=A$(($,I)=>{var G=Jz(),Z=wE(),_=gE(),J=tr();I.exports=J||G.call(_,Z)}),xE=A$(($,I)=>{var G=Jz(),Z=Yz(),_=gE(),J=cg();I.exports=function(Y){if(Y.length<1||typeof Y[0]!=="function")throw new Z("a function is required");return J(G,_,Y)}}),rr=A$(($,I)=>{var G=xE(),Z=XY(),_;try{_=[].__proto__===Array.prototype}catch(R){if(!R||typeof R!=="object"||!("code"in R)||R.code!=="ERR_PROTO_ACCESS")throw R}var J=!!_&&Z&&Z(Object.prototype,"__proto__"),Y=Object,W=Y.getPrototypeOf;I.exports=J&&typeof J.get==="function"?G([J.get]):typeof W==="function"?function(R){return W(R==null?R:Y(R))}:!1}),fE=A$(($,I)=>{var G=ng(),Z=pg(),_=rr();I.exports=G?function(J){return G(J)}:Z?function(J){if(!J||typeof J!=="object"&&typeof J!=="function")throw TypeError("getProto: not an object");return Z(J)}:_?function(J){return _(J)}:null}),lg=A$(($,I)=>{var G=Function.prototype.call,Z=Object.prototype.hasOwnProperty,_=Jz();I.exports=_.call(G,Z)}),yE=A$(($,I)=>{var G,Z=kE(),_=gr(),J=wr(),Y=xr(),W=fr(),R=ug(),M=Yz(),E=yr(),T=br(),S=hr(),N=ur(),B=nr(),x=pr(),w=cr(),y=mr(),g=Function,b=function(r){try{return g('"use strict"; return ('+r+").constructor;")()}catch(Y0){}},l=XY(),i=t5(),$0=function(){throw new M},Q0=l?function(){try{return arguments.callee,$0}catch(r){try{return l(arguments,"callee").get}catch(Y0){return $0}}}():$0,G0=ir()(),K0=fE(),t=pg(),P0=ng(),Q=wE(),K=gE(),F={},L=typeof Uint8Array>"u"||!K0?G:K0(Uint8Array),H={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?G:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?G:ArrayBuffer,"%ArrayIteratorPrototype%":G0&&K0?K0([][Symbol.iterator]()):G,"%AsyncFromSyncIteratorPrototype%":G,"%AsyncFunction%":F,"%AsyncGenerator%":F,"%AsyncGeneratorFunction%":F,"%AsyncIteratorPrototype%":F,"%Atomics%":typeof Atomics>"u"?G:Atomics,"%BigInt%":typeof BigInt>"u"?G:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?G:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?G:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?G:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":_,"%eval%":eval,"%EvalError%":J,"%Float16Array%":typeof Float16Array>"u"?G:Float16Array,"%Float32Array%":typeof Float32Array>"u"?G:Float32Array,"%Float64Array%":typeof Float64Array>"u"?G:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?G:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":F,"%Int8Array%":typeof Int8Array>"u"?G:Int8Array,"%Int16Array%":typeof Int16Array>"u"?G:Int16Array,"%Int32Array%":typeof Int32Array>"u"?G:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":G0&&K0?K0(K0([][Symbol.iterator]())):G,"%JSON%":typeof JSON==="object"?JSON:G,"%Map%":typeof Map>"u"?G:Map,"%MapIteratorPrototype%":typeof Map>"u"||!G0||!K0?G:K0(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Z,"%Object.getOwnPropertyDescriptor%":l,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?G:Promise,"%Proxy%":typeof Proxy>"u"?G:Proxy,"%RangeError%":Y,"%ReferenceError%":W,"%Reflect%":typeof Reflect>"u"?G:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?G:Set,"%SetIteratorPrototype%":typeof Set>"u"||!G0||!K0?G:K0(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?G:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":G0&&K0?K0(""[Symbol.iterator]()):G,"%Symbol%":G0?Symbol:G,"%SyntaxError%":R,"%ThrowTypeError%":Q0,"%TypedArray%":L,"%TypeError%":M,"%Uint8Array%":typeof Uint8Array>"u"?G:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?G:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?G:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?G:Uint32Array,"%URIError%":E,"%WeakMap%":typeof WeakMap>"u"?G:WeakMap,"%WeakRef%":typeof WeakRef>"u"?G:WeakRef,"%WeakSet%":typeof WeakSet>"u"?G:WeakSet,"%Function.prototype.call%":K,"%Function.prototype.apply%":Q,"%Object.defineProperty%":i,"%Object.getPrototypeOf%":t,"%Math.abs%":T,"%Math.floor%":S,"%Math.max%":N,"%Math.min%":B,"%Math.pow%":x,"%Math.round%":w,"%Math.sign%":y,"%Reflect.getPrototypeOf%":P0};if(K0)try{null.error}catch(r){v=K0(K0(r)),H["%Error.prototype%"]=v}var v,q=function r(Y0){var W0;if(Y0==="%AsyncFunction%")W0=b("async function () {}");else if(Y0==="%GeneratorFunction%")W0=b("function* () {}");else if(Y0==="%AsyncGeneratorFunction%")W0=b("async function* () {}");else if(Y0==="%AsyncGenerator%"){var I0=r("%AsyncGeneratorFunction%");if(I0)W0=I0.prototype}else if(Y0==="%AsyncIteratorPrototype%"){var c=r("%AsyncGenerator%");if(c&&K0)W0=K0(c.prototype)}return H[Y0]=W0,W0},P={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=Jz(),A=lg(),k=O.call(K,Array.prototype.concat),j=O.call(Q,Array.prototype.splice),h=O.call(K,String.prototype.replace),a=O.call(K,String.prototype.slice),J0=O.call(K,RegExp.prototype.exec),D0=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O0=/\\(\\)?/g,d=function(r){var Y0=a(r,0,1),W0=a(r,-1);if(Y0==="%"&&W0!=="%")throw new R("invalid intrinsic syntax, expected closing `%`");else if(W0==="%"&&Y0!=="%")throw new R("invalid intrinsic syntax, expected opening `%`");var I0=[];return h(r,D0,function(c,s,S0,M0){I0[I0.length]=S0?h(M0,O0,"$1"):s||c}),I0},m=function(r,Y0){var W0=r,I0;if(A(P,W0))I0=P[W0],W0="%"+I0[0]+"%";if(A(H,W0)){var c=H[W0];if(c===F)c=q(W0);if(typeof c>"u"&&!Y0)throw new M("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:I0,name:W0,value:c}}throw new R("intrinsic "+r+" does not exist!")};I.exports=function(r,Y0){if(typeof r!=="string"||r.length===0)throw new M("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Y0!=="boolean")throw new M('"allowMissing" argument must be a boolean');if(J0(/^%?[^%]*%?$/,r)===null)throw new R("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var W0=d(r),I0=W0.length>0?W0[0]:"",c=m("%"+I0+"%",Y0),s=c.name,S0=c.value,M0=!1,z0=c.alias;if(z0)I0=z0[0],j(W0,k([0,1],z0));for(var c0=1,F0=!0;c0<W0.length;c0+=1){var q0=W0[c0],s0=a(q0,0,1),k0=a(q0,-1);if((s0==='"'||s0==="'"||s0==="`"||(k0==='"'||k0==="'"||k0==="`"))&&s0!==k0)throw new R("property names with quotes must have matching quotes");if(q0==="constructor"||!F0)M0=!0;if(I0+="."+q0,s="%"+I0+"%",A(H,s))S0=H[s];else if(S0!=null){if(!(q0 in S0)){if(!Y0)throw new M("base intrinsic for "+r+" exists, but the property is not available.");return}if(l&&c0+1>=W0.length){var n0=l(S0,q0);if(F0=!!n0,F0&&"get"in n0&&!("originalValue"in n0.get))S0=n0.get;else S0=S0[q0]}else F0=A(S0,q0),S0=S0[q0];if(F0&&!M0)H[s]=S0}}return S0}}),GY=A$(($,I)=>{var G=yE(),Z=xE(),_=Z([G("%String.prototype.indexOf%")]);I.exports=function(J,Y){var W=G(J,!!Y);if(typeof W==="function"&&_(J,".prototype.")>-1)return Z([W]);return W}}),ar=A$(($,I)=>{var G=o5()(),Z=GY(),_=Z("Object.prototype.toString"),J=function(R){if(G&&R&&typeof R==="object"&&Symbol.toStringTag in R)return!1;return _(R)==="[object Arguments]"},Y=function(R){if(J(R))return!0;return R!==null&&typeof R==="object"&&"length"in R&&typeof R.length==="number"&&R.length>=0&&_(R)!=="[object Array]"&&"callee"in R&&_(R.callee)==="[object Function]"},W=function(){return J(arguments)}();J.isLegacyArguments=Y,I.exports=W?J:Y}),sr=A$(($,I)=>{var G=GY(),Z=o5()(),_=lg(),J=XY(),Y;if(Z){if(W=G("RegExp.prototype.exec"),R={},M=function(){throw R},E={toString:M,valueOf:M},typeof Symbol.toPrimitive==="symbol")E[Symbol.toPrimitive]=M;Y=function(N){if(!N||typeof N!=="object")return!1;var B=J(N,"lastIndex"),x=B&&_(B,"value");if(!x)return!1;try{W(N,E)}catch(w){return w===R}}}else T=G("Object.prototype.toString"),S="[object RegExp]",Y=function(N){if(!N||typeof N!=="object"&&typeof N!=="function")return!1;return T(N)===S};var W,R,M,E,T,S;I.exports=Y}),er=A$(($,I)=>{var G=GY(),Z=sr(),_=G("RegExp.prototype.exec"),J=Yz();I.exports=function(Y){if(!Z(Y))throw new J("`regex` must be a RegExp");return function(W){return _(Y,W)!==null}}}),$a=A$(($,I)=>{var G=function*(){}.constructor;I.exports=()=>G}),Ua=A$(($,I)=>{var G=GY(),Z=er(),_=Z(/^\s*(?:function)?\*/),J=o5()(),Y=fE(),W=G("Object.prototype.toString"),R=G("Function.prototype.toString"),M=$a();I.exports=function(E){if(typeof E!=="function")return!1;if(_(R(E)))return!0;if(!J){var T=W(E);return T==="[object GeneratorFunction]"}if(!Y)return!1;var S=M();return S&&Y(E)===S.prototype}}),Ia=A$(($,I)=>{var G=Function.prototype.toString,Z=typeof Reflect==="object"&&Reflect!==null&&Reflect.apply,_,J;if(typeof Z==="function"&&typeof Object.defineProperty==="function")try{_=Object.defineProperty({},"length",{get:function(){throw J}}),J={},Z(function(){throw 42},null,_)}catch(l){if(l!==J)Z=null}else Z=null;var Y=/^\s*class\b/,W=function(l){try{var i=G.call(l);return Y.test(i)}catch($0){return!1}},R=function(l){try{if(W(l))return!1;return G.call(l),!0}catch(i){return!1}},M=Object.prototype.toString,E="[object Object]",T="[object Function]",S="[object GeneratorFunction]",N="[object HTMLAllCollection]",B="[object HTML document.all class]",x="[object HTMLCollection]",w=typeof Symbol==="function"&&!!Symbol.toStringTag,y=!(0 in[,]),g=function(){return!1};if(typeof document==="object"){if(b=document.all,M.call(b)===M.call(document.all))g=function(l){if((y||!l)&&(typeof l>"u"||typeof l==="object"))try{var i=M.call(l);return(i===N||i===B||i===x||i===E)&&l("")==null}catch($0){}return!1}}var b;I.exports=Z?function(l){if(g(l))return!0;if(!l)return!1;if(typeof l!=="function"&&typeof l!=="object")return!1;try{Z(l,null,_)}catch(i){if(i!==J)return!1}return!W(l)&&R(l)}:function(l){if(g(l))return!0;if(!l)return!1;if(typeof l!=="function"&&typeof l!=="object")return!1;if(w)return R(l);if(W(l))return!1;var i=M.call(l);if(i!==T&&i!==S&&!/^\[object HTML/.test(i))return!1;return R(l)}}),_a=A$(($,I)=>{var G=Ia(),Z=Object.prototype.toString,_=Object.prototype.hasOwnProperty,J=function(M,E,T){for(var S=0,N=M.length;S<N;S++)if(_.call(M,S))if(T==null)E(M[S],S,M);else E.call(T,M[S],S,M)},Y=function(M,E,T){for(var S=0,N=M.length;S<N;S++)if(T==null)E(M.charAt(S),S,M);else E.call(T,M.charAt(S),S,M)},W=function(M,E,T){for(var S in M)if(_.call(M,S))if(T==null)E(M[S],S,M);else E.call(T,M[S],S,M)};function R(M){return Z.call(M)==="[object Array]"}I.exports=function(M,E,T){if(!G(E))throw TypeError("iterator must be a function");var S;if(arguments.length>=3)S=T;if(R(M))J(M,E,S);else if(typeof M==="string")Y(M,E,S);else W(M,E,S)}}),Xa=A$(($,I)=>{I.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]}),Ga=A$(($,I)=>{var G=Xa(),Z=typeof globalThis>"u"?globalThis:globalThis;I.exports=function(){var _=[];for(var J=0;J<G.length;J++)if(typeof Z[G[J]]==="function")_[_.length]=G[J];return _}}),mg=A$(($,I)=>{var G=t5(),Z=ug(),_=Yz(),J=XY();I.exports=function(Y,W,R){if(!Y||typeof Y!=="object"&&typeof Y!=="function")throw new _("`obj` must be an object or a function`");if(typeof W!=="string"&&typeof W!=="symbol")throw new _("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=="boolean"&&arguments[3]!==null)throw new _("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=="boolean"&&arguments[4]!==null)throw new _("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=="boolean"&&arguments[5]!==null)throw new _("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=="boolean")throw new _("`loose`, if provided, must be a boolean");var M=arguments.length>3?arguments[3]:null,E=arguments.length>4?arguments[4]:null,T=arguments.length>5?arguments[5]:null,S=arguments.length>6?arguments[6]:!1,N=!!J&&J(Y,W);if(G)G(Y,W,{configurable:T===null&&N?N.configurable:!T,enumerable:M===null&&N?N.enumerable:!M,value:R,writable:E===null&&N?N.writable:!E});else if(S||!M&&!E&&!T)Y[W]=R;else throw new Z("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}),dg=A$(($,I)=>{var G=t5(),Z=function(){return!!G};Z.hasArrayLengthDefineBug=function(){if(!G)return null;try{return G([],"length",{value:1}).length!==1}catch(_){return!0}},I.exports=Z}),Ya=A$(($,I)=>{var G=yE(),Z=mg(),_=dg()(),J=XY(),Y=Yz(),W=G("%Math.floor%");I.exports=function(R,M){if(typeof R!=="function")throw new Y("`fn` is not a function");if(typeof M!=="number"||M<0||M>4294967295||W(M)!==M)throw new Y("`length` must be a positive 32-bit integer");var E=arguments.length>2&&!!arguments[2],T=!0,S=!0;if("length"in R&&J){var N=J(R,"length");if(N&&!N.configurable)T=!1;if(N&&!N.writable)S=!1}if(T||S||!E)if(_)Z(R,"length",M,!0,!0);else Z(R,"length",M);return R}}),Ja=A$(($,I)=>{var G=Jz(),Z=wE(),_=cg();I.exports=function(){return _(G,Z,arguments)}}),r5=A$(($,I)=>{var G=Ya(),Z=t5(),_=xE(),J=Ja();if(I.exports=function(Y){var W=_(arguments),R=Y.length-(arguments.length-1);return G(W,1+(R>0?R:0),!0)},Z)Z(I.exports,"apply",{value:J});else I.exports.apply=J}),ig=A$(($,I)=>{var G=_a(),Z=Ga(),_=r5(),J=GY(),Y=XY(),W=fE(),R=J("Object.prototype.toString"),M=o5()(),E=typeof globalThis>"u"?globalThis:globalThis,T=Z(),S=J("String.prototype.slice"),N=J("Array.prototype.indexOf",!0)||function(y,g){for(var b=0;b<y.length;b+=1)if(y[b]===g)return b;return-1},B={__proto__:null};if(M&&Y&&W)G(T,function(y){var g=new E[y];if(Symbol.toStringTag in g&&W){var b=W(g),l=Y(b,Symbol.toStringTag);if(!l&&b){var i=W(b);l=Y(i,Symbol.toStringTag)}B["$"+y]=_(l.get)}});else G(T,function(y){var g=new E[y],b=g.slice||g.set;if(b)B["$"+y]=_(b)});var x=function(y){var g=!1;return G(B,function(b,l){if(!g)try{if("$"+b(y)===l)g=S(l,1)}catch(i){}}),g},w=function(y){var g=!1;return G(B,function(b,l){if(!g)try{b(y),g=S(l,1)}catch(i){}}),g};I.exports=function(y){if(!y||typeof y!=="object")return!1;if(!M){var g=S(R(y),8,-1);if(N(T,g)>-1)return g;if(g!=="Object")return!1;return w(y)}if(!Y)return null;return x(y)}}),Qa=A$(($,I)=>{var G=ig();I.exports=function(Z){return!!G(Z)}}),za=A$(($)=>{var I=ar(),G=Ua(),Z=ig(),_=Qa();function J(z0){return z0.call.bind(z0)}var Y=typeof BigInt<"u",W=typeof Symbol<"u",R=J(Object.prototype.toString),M=J(Number.prototype.valueOf),E=J(String.prototype.valueOf),T=J(Boolean.prototype.valueOf);if(Y)S=J(BigInt.prototype.valueOf);var S;if(W)N=J(Symbol.prototype.valueOf);var N;function B(z0,c0){if(typeof z0!=="object")return!1;try{return c0(z0),!0}catch(F0){return!1}}$.isArgumentsObject=I,$.isGeneratorFunction=G,$.isTypedArray=_;function x(z0){return typeof Promise<"u"&&z0 instanceof Promise||z0!==null&&typeof z0==="object"&&typeof z0.then==="function"&&typeof z0.catch==="function"}$.isPromise=x;function w(z0){if(typeof ArrayBuffer<"u"&&ArrayBuffer.isView)return ArrayBuffer.isView(z0);return _(z0)||j(z0)}$.isArrayBufferView=w;function y(z0){return Z(z0)==="Uint8Array"}$.isUint8Array=y;function g(z0){return Z(z0)==="Uint8ClampedArray"}$.isUint8ClampedArray=g;function b(z0){return Z(z0)==="Uint16Array"}$.isUint16Array=b;function l(z0){return Z(z0)==="Uint32Array"}$.isUint32Array=l;function i(z0){return Z(z0)==="Int8Array"}$.isInt8Array=i;function $0(z0){return Z(z0)==="Int16Array"}$.isInt16Array=$0;function Q0(z0){return Z(z0)==="Int32Array"}$.isInt32Array=Q0;function G0(z0){return Z(z0)==="Float32Array"}$.isFloat32Array=G0;function K0(z0){return Z(z0)==="Float64Array"}$.isFloat64Array=K0;function t(z0){return Z(z0)==="BigInt64Array"}$.isBigInt64Array=t;function P0(z0){return Z(z0)==="BigUint64Array"}$.isBigUint64Array=P0;function Q(z0){return R(z0)==="[object Map]"}Q.working=typeof Map<"u"&&Q(new Map);function K(z0){if(typeof Map>"u")return!1;return Q.working?Q(z0):z0 instanceof Map}$.isMap=K;function F(z0){return R(z0)==="[object Set]"}F.working=typeof Set<"u"&&F(new Set);function L(z0){if(typeof Set>"u")return!1;return F.working?F(z0):z0 instanceof Set}$.isSet=L;function H(z0){return R(z0)==="[object WeakMap]"}H.working=typeof WeakMap<"u"&&H(new WeakMap);function v(z0){if(typeof WeakMap>"u")return!1;return H.working?H(z0):z0 instanceof WeakMap}$.isWeakMap=v;function q(z0){return R(z0)==="[object WeakSet]"}q.working=typeof WeakSet<"u"&&q(new WeakSet);function P(z0){return q(z0)}$.isWeakSet=P;function O(z0){return R(z0)==="[object ArrayBuffer]"}O.working=typeof ArrayBuffer<"u"&&O(new ArrayBuffer);function A(z0){if(typeof ArrayBuffer>"u")return!1;return O.working?O(z0):z0 instanceof ArrayBuffer}$.isArrayBuffer=A;function k(z0){return R(z0)==="[object DataView]"}k.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&k(new DataView(new ArrayBuffer(1),0,1));function j(z0){if(typeof DataView>"u")return!1;return k.working?k(z0):z0 instanceof DataView}$.isDataView=j;var h=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function a(z0){return R(z0)==="[object SharedArrayBuffer]"}function J0(z0){if(typeof h>"u")return!1;if(typeof a.working>"u")a.working=a(new h);return a.working?a(z0):z0 instanceof h}$.isSharedArrayBuffer=J0;function D0(z0){return R(z0)==="[object AsyncFunction]"}$.isAsyncFunction=D0;function O0(z0){return R(z0)==="[object Map Iterator]"}$.isMapIterator=O0;function d(z0){return R(z0)==="[object Set Iterator]"}$.isSetIterator=d;function m(z0){return R(z0)==="[object Generator]"}$.isGeneratorObject=m;function r(z0){return R(z0)==="[object WebAssembly.Module]"}$.isWebAssemblyCompiledModule=r;function Y0(z0){return B(z0,M)}$.isNumberObject=Y0;function W0(z0){return B(z0,E)}$.isStringObject=W0;function I0(z0){return B(z0,T)}$.isBooleanObject=I0;function c(z0){return Y&&B(z0,S)}$.isBigIntObject=c;function s(z0){return W&&B(z0,N)}$.isSymbolObject=s;function S0(z0){return Y0(z0)||W0(z0)||I0(z0)||c(z0)||s(z0)}$.isBoxedPrimitive=S0;function M0(z0){return typeof Uint8Array<"u"&&(A(z0)||J0(z0))}$.isAnyArrayBuffer=M0,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(z0){Object.defineProperty($,z0,{enumerable:!1,value:function(){throw Error(z0+" is not supported in userland")}})})}),Za=A$(($,I)=>{I.exports=function(G){return G instanceof Buffer}}),Oa=A$(($,I)=>{if(typeof Object.create==="function")I.exports=function(G,Z){if(Z)G.super_=Z,G.prototype=Object.create(Z.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}})};else I.exports=function(G,Z){if(Z){G.super_=Z;var _=function(){};_.prototype=Z.prototype,G.prototype=new _,G.prototype.constructor=G}}}),La=A$(($,I)=>{try{if(G=(C2(),V$(v2)),typeof G.inherits!=="function")throw"";I.exports=G.inherits}catch(Z){I.exports=Oa()}var G}),Gz=A$(($)=>{var I=Object.getOwnPropertyDescriptors||function(A){var k=Object.keys(A),j={};for(var h=0;h<k.length;h++)j[k[h]]=Object.getOwnPropertyDescriptor(A,k[h]);return j},G=/%[sdj%]/g;$.format=function(A){if(!l(A)){var k=[];for(var j=0;j<arguments.length;j++)k.push(J(arguments[j]));return k.join(" ")}var j=1,h=arguments,a=h.length,J0=String(A).replace(G,function(O0){if(O0==="%%")return"%";if(j>=a)return O0;switch(O0){case"%s":return String(h[j++]);case"%d":return Number(h[j++]);case"%j":try{return JSON.stringify(h[j++])}catch(d){return"[Circular]"}default:return O0}});for(var D0=h[j];j<a;D0=h[++j])if(y(D0)||!G0(D0))J0+=" "+D0;else J0+=" "+J(D0);return J0},$.deprecate=function(A,k){if(typeof process<"u"&&process.noDeprecation===!0)return A;if(typeof process>"u")return function(){return $.deprecate(A,k).apply(this,arguments)};var j=!1;function h(){if(!j){if(process.throwDeprecation)throw Error(k);else if(process.traceDeprecation)console.trace(k);else console.error(k);j=!0}return A.apply(this,arguments)}return h};var Z={},_=/^$/;$.debuglog=function(A){if(A=A.toUpperCase(),!Z[A])if(_.test(A)){var k=process.pid;Z[A]=function(){var j=$.format.apply($,arguments);console.error("%s %d: %s",A,k,j)}}else Z[A]=function(){};return Z[A]};function J(A,k){var j={seen:[],stylize:W};if(arguments.length>=3)j.depth=arguments[2];if(arguments.length>=4)j.colors=arguments[3];if(w(k))j.showHidden=k;else if(k)$._extend(j,k);if($0(j.showHidden))j.showHidden=!1;if($0(j.depth))j.depth=2;if($0(j.colors))j.colors=!1;if($0(j.customInspect))j.customInspect=!0;if(j.colors)j.stylize=Y;return M(j,A,j.depth)}$.inspect=J,J.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},J.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function Y(A,k){var j=J.styles[k];if(j)return"\x1B["+J.colors[j][0]+"m"+A+"\x1B["+J.colors[j][1]+"m";else return A}function W(A,k){return A}function R(A){var k={};return A.forEach(function(j,h){k[j]=!0}),k}function M(A,k,j){if(A.customInspect&&k&&P0(k.inspect)&&k.inspect!==$.inspect&&!(k.constructor&&k.constructor.prototype===k)){var h=k.inspect(j,A);if(!l(h))h=M(A,h,j);return h}var a=E(A,k);if(a)return a;var J0=Object.keys(k),D0=R(J0);if(A.showHidden)J0=Object.getOwnPropertyNames(k);if(t(k)&&(J0.indexOf("message")>=0||J0.indexOf("description")>=0))return T(k);if(J0.length===0){if(P0(k)){var O0=k.name?": "+k.name:"";return A.stylize("[Function"+O0+"]","special")}if(Q0(k))return A.stylize(RegExp.prototype.toString.call(k),"regexp");if(K0(k))return A.stylize(Date.prototype.toString.call(k),"date");if(t(k))return T(k)}var d="",m=!1,r=["{","}"];if(x(k))m=!0,r=["[","]"];if(P0(k)){var Y0=k.name?": "+k.name:"";d=" [Function"+Y0+"]"}if(Q0(k))d=" "+RegExp.prototype.toString.call(k);if(K0(k))d=" "+Date.prototype.toUTCString.call(k);if(t(k))d=" "+T(k);if(J0.length===0&&(!m||k.length==0))return r[0]+d+r[1];if(j<0)if(Q0(k))return A.stylize(RegExp.prototype.toString.call(k),"regexp");else return A.stylize("[Object]","special");A.seen.push(k);var W0;if(m)W0=S(A,k,j,D0,J0);else W0=J0.map(function(I0){return N(A,k,j,D0,I0,m)});return A.seen.pop(),B(W0,d,r)}function E(A,k){if($0(k))return A.stylize("undefined","undefined");if(l(k)){var j="'"+JSON.stringify(k).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return A.stylize(j,"string")}if(b(k))return A.stylize(""+k,"number");if(w(k))return A.stylize(""+k,"boolean");if(y(k))return A.stylize("null","null")}function T(A){return"["+Error.prototype.toString.call(A)+"]"}function S(A,k,j,h,a){var J0=[];for(var D0=0,O0=k.length;D0<O0;++D0)if(v(k,String(D0)))J0.push(N(A,k,j,h,String(D0),!0));else J0.push("");return a.forEach(function(d){if(!d.match(/^\d+$/))J0.push(N(A,k,j,h,d,!0))}),J0}function N(A,k,j,h,a,J0){var D0,O0,d;if(d=Object.getOwnPropertyDescriptor(k,a)||{value:k[a]},d.get)if(d.set)O0=A.stylize("[Getter/Setter]","special");else O0=A.stylize("[Getter]","special");else if(d.set)O0=A.stylize("[Setter]","special");if(!v(h,a))D0="["+a+"]";if(!O0)if(A.seen.indexOf(d.value)<0){if(y(j))O0=M(A,d.value,null);else O0=M(A,d.value,j-1);if(O0.indexOf(`
|
|
247
|
-
`)>-1)if(J0)O0=O0.split(`
|
|
248
|
-
`).map(function(m){return" "+m}).join(`
|
|
249
|
-
`).slice(2);else O0=`
|
|
250
|
-
`+O0.split(`
|
|
251
|
-
`).map(function(m){return" "+m}).join(`
|
|
252
|
-
`)}else O0=A.stylize("[Circular]","special");if($0(D0)){if(J0&&a.match(/^\d+$/))return O0;if(D0=JSON.stringify(""+a),D0.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/))D0=D0.slice(1,-1),D0=A.stylize(D0,"name");else D0=D0.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),D0=A.stylize(D0,"string")}return D0+": "+O0}function B(A,k,j){var h=0,a=A.reduce(function(J0,D0){if(h++,D0.indexOf(`
|
|
253
|
-
`)>=0)h++;return J0+D0.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(a>60)return j[0]+(k===""?"":k+`
|
|
254
|
-
`)+" "+A.join(`,
|
|
255
|
-
`)+" "+j[1];return j[0]+k+" "+A.join(", ")+" "+j[1]}$.types=za();function x(A){return Array.isArray(A)}$.isArray=x;function w(A){return typeof A==="boolean"}$.isBoolean=w;function y(A){return A===null}$.isNull=y;function g(A){return A==null}$.isNullOrUndefined=g;function b(A){return typeof A==="number"}$.isNumber=b;function l(A){return typeof A==="string"}$.isString=l;function i(A){return typeof A==="symbol"}$.isSymbol=i;function $0(A){return A===void 0}$.isUndefined=$0;function Q0(A){return G0(A)&&K(A)==="[object RegExp]"}$.isRegExp=Q0,$.types.isRegExp=Q0;function G0(A){return typeof A==="object"&&A!==null}$.isObject=G0;function K0(A){return G0(A)&&K(A)==="[object Date]"}$.isDate=K0,$.types.isDate=K0;function t(A){return G0(A)&&(K(A)==="[object Error]"||A instanceof Error)}$.isError=t,$.types.isNativeError=t;function P0(A){return typeof A==="function"}$.isFunction=P0;function Q(A){return A===null||typeof A==="boolean"||typeof A==="number"||typeof A==="string"||typeof A==="symbol"||typeof A>"u"}$.isPrimitive=Q,$.isBuffer=Za();function K(A){return Object.prototype.toString.call(A)}function F(A){return A<10?"0"+A.toString(10):A.toString(10)}var L=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function H(){var A=new Date,k=[F(A.getHours()),F(A.getMinutes()),F(A.getSeconds())].join(":");return[A.getDate(),L[A.getMonth()],k].join(" ")}$.log=function(){console.log("%s - %s",H(),$.format.apply($,arguments))},$.inherits=La(),$._extend=function(A,k){if(!k||!G0(k))return A;var j=Object.keys(k),h=j.length;while(h--)A[j[h]]=k[j[h]];return A};function v(A,k){return Object.prototype.hasOwnProperty.call(A,k)}var q=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;$.promisify=function(A){if(typeof A!=="function")throw TypeError('The "original" argument must be of type Function');if(q&&A[q]){var k=A[q];if(typeof k!=="function")throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(k,q,{value:k,enumerable:!1,writable:!1,configurable:!0}),k}function k(){var j,h,a=new Promise(function(O0,d){j=O0,h=d}),J0=[];for(var D0=0;D0<arguments.length;D0++)J0.push(arguments[D0]);J0.push(function(O0,d){if(O0)h(O0);else j(d)});try{A.apply(this,J0)}catch(O0){h(O0)}return a}if(Object.setPrototypeOf(k,Object.getPrototypeOf(A)),q)Object.defineProperty(k,q,{value:k,enumerable:!1,writable:!1,configurable:!0});return Object.defineProperties(k,I(A))},$.promisify.custom=q;function P(A,k){if(!A){var j=Error("Promise was rejected with a falsy value");j.reason=A,A=j}return k(A)}function O(A){if(typeof A!=="function")throw TypeError('The "original" argument must be of type Function');function k(){var j=[];for(var h=0;h<arguments.length;h++)j.push(arguments[h]);var a=j.pop();if(typeof a!=="function")throw TypeError("The last argument must be of type Function");var J0=this,D0=function(){return a.apply(J0,arguments)};A.apply(this,j).then(function(O0){process.nextTick(D0.bind(null,null,O0))},function(O0){process.nextTick(P.bind(null,O0,D0))})}return Object.setPrototypeOf(k,Object.getPrototypeOf(A)),Object.defineProperties(k,I(A)),k}$.callbackify=O}),og=A$(($,I)=>{function G(Q0){return G=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G0){return typeof G0}:function(G0){return G0&&typeof Symbol=="function"&&G0.constructor===Symbol&&G0!==Symbol.prototype?"symbol":typeof G0},G(Q0)}function Z(Q0,G0){for(var K0=0;K0<G0.length;K0++){var t=G0[K0];if(t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t)t.writable=!0;Object.defineProperty(Q0,J(t.key),t)}}function _(Q0,G0,K0){if(G0)Z(Q0.prototype,G0);if(K0)Z(Q0,K0);return Object.defineProperty(Q0,"prototype",{writable:!1}),Q0}function J(Q0){var G0=Y(Q0,"string");return G(G0)==="symbol"?G0:String(G0)}function Y(Q0,G0){if(G(Q0)!=="object"||Q0===null)return Q0;var K0=Q0[Symbol.toPrimitive];if(K0!==void 0){var t=K0.call(Q0,G0||"default");if(G(t)!=="object")return t;throw TypeError("@@toPrimitive must return a primitive value.")}return(G0==="string"?String:Number)(Q0)}function W(Q0,G0){if(!(Q0 instanceof G0))throw TypeError("Cannot call a class as a function")}function R(Q0,G0){if(typeof G0!=="function"&&G0!==null)throw TypeError("Super expression must either be null or a function");if(Q0.prototype=Object.create(G0&&G0.prototype,{constructor:{value:Q0,writable:!0,configurable:!0}}),Object.defineProperty(Q0,"prototype",{writable:!1}),G0)M(Q0,G0)}function M(Q0,G0){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K0,t){return K0.__proto__=t,K0},M(Q0,G0)}function E(Q0){var G0=N();return function(){var K0=B(Q0),t;if(G0){var P0=B(this).constructor;t=Reflect.construct(K0,arguments,P0)}else t=K0.apply(this,arguments);return T(this,t)}}function T(Q0,G0){if(G0&&(G(G0)==="object"||typeof G0==="function"))return G0;else if(G0!==void 0)throw TypeError("Derived constructors may only return object or undefined");return S(Q0)}function S(Q0){if(Q0===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return Q0}function N(){if(typeof Reflect>"u"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy==="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(Q0){return!1}}function B(Q0){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(G0){return G0.__proto__||Object.getPrototypeOf(G0)},B(Q0)}var x={},w,y;function g(Q0,G0,K0){if(!K0)K0=Error;function t(Q,K,F){if(typeof G0==="string")return G0;else return G0(Q,K,F)}var P0=function(Q){R(F,Q);var K=E(F);function F(L,H,v){var q;return W(this,F),q=K.call(this,t(L,H,v)),q.code=Q0,q}return _(F)}(K0);x[Q0]=P0}function b(Q0,G0){if(Array.isArray(Q0)){var K0=Q0.length;if(Q0=Q0.map(function(t){return String(t)}),K0>2)return"one of ".concat(G0," ").concat(Q0.slice(0,K0-1).join(", "),", or ")+Q0[K0-1];else if(K0===2)return"one of ".concat(G0," ").concat(Q0[0]," or ").concat(Q0[1]);else return"of ".concat(G0," ").concat(Q0[0])}else return"of ".concat(G0," ").concat(String(Q0))}function l(Q0,G0,K0){return Q0.substr(!K0||K0<0?0:+K0,G0.length)===G0}function i(Q0,G0,K0){if(K0===void 0||K0>Q0.length)K0=Q0.length;return Q0.substring(K0-G0.length,K0)===G0}function $0(Q0,G0,K0){if(typeof K0!=="number")K0=0;if(K0+G0.length>Q0.length)return!1;else return Q0.indexOf(G0,K0)!==-1}g("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),g("ERR_INVALID_ARG_TYPE",function(Q0,G0,K0){if(w===void 0)w=BE();w(typeof Q0==="string","'name' must be a string");var t;if(typeof G0==="string"&&l(G0,"not "))t="must not be",G0=G0.replace(/^not /,"");else t="must be";var P0;if(i(Q0," argument"))P0="The ".concat(Q0," ").concat(t," ").concat(b(G0,"type"));else{var Q=$0(Q0,".")?"property":"argument";P0='The "'.concat(Q0,'" ').concat(Q," ").concat(t," ").concat(b(G0,"type"))}return P0+=". Received type ".concat(G(K0)),P0},TypeError),g("ERR_INVALID_ARG_VALUE",function(Q0,G0){var K0=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";if(y===void 0)y=Gz();var t=y.inspect(G0);if(t.length>128)t="".concat(t.slice(0,128),"...");return"The argument '".concat(Q0,"' ").concat(K0,". Received ").concat(t)},TypeError,RangeError),g("ERR_INVALID_RETURN_VALUE",function(Q0,G0,K0){var t;if(K0&&K0.constructor&&K0.constructor.name)t="instance of ".concat(K0.constructor.name);else t="type ".concat(G(K0));return"Expected ".concat(Q0,' to be returned from the "').concat(G0,'"')+" function but got ".concat(t,".")},TypeError),g("ERR_MISSING_ARGS",function(){for(var Q0=arguments.length,G0=Array(Q0),K0=0;K0<Q0;K0++)G0[K0]=arguments[K0];if(w===void 0)w=BE();w(G0.length>0,"At least one arg needs to be specified");var t="The ",P0=G0.length;switch(G0=G0.map(function(Q){return'"'.concat(Q,'"')}),P0){case 1:t+="".concat(G0[0]," argument");break;case 2:t+="".concat(G0[0]," and ").concat(G0[1]," arguments");break;default:t+=G0.slice(0,P0-1).join(", "),t+=", and ".concat(G0[P0-1]," arguments");break}return"".concat(t," must be specified")},TypeError),$.codes=x}),Ka=A$(($,I)=>{function G(A,k){var j=Object.keys(A);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(A);k&&(h=h.filter(function(a){return Object.getOwnPropertyDescriptor(A,a).enumerable})),j.push.apply(j,h)}return j}function Z(A){for(var k=1;k<arguments.length;k++){var j=arguments[k]!=null?arguments[k]:{};k%2?G(Object(j),!0).forEach(function(h){_(A,h,j[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(j)):G(Object(j)).forEach(function(h){Object.defineProperty(A,h,Object.getOwnPropertyDescriptor(j,h))})}return A}function _(A,k,j){if(k=R(k),k in A)Object.defineProperty(A,k,{value:j,enumerable:!0,configurable:!0,writable:!0});else A[k]=j;return A}function J(A,k){if(!(A instanceof k))throw TypeError("Cannot call a class as a function")}function Y(A,k){for(var j=0;j<k.length;j++){var h=k[j];if(h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h)h.writable=!0;Object.defineProperty(A,R(h.key),h)}}function W(A,k,j){if(k)Y(A.prototype,k);if(j)Y(A,j);return Object.defineProperty(A,"prototype",{writable:!1}),A}function R(A){var k=M(A,"string");return l(k)==="symbol"?k:String(k)}function M(A,k){if(l(A)!=="object"||A===null)return A;var j=A[Symbol.toPrimitive];if(j!==void 0){var h=j.call(A,k||"default");if(l(h)!=="object")return h;throw TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(A)}function E(A,k){if(typeof k!=="function"&&k!==null)throw TypeError("Super expression must either be null or a function");if(A.prototype=Object.create(k&&k.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),k)g(A,k)}function T(A){var k=w();return function(){var j=b(A),h;if(k){var a=b(this).constructor;h=Reflect.construct(j,arguments,a)}else h=j.apply(this,arguments);return S(this,h)}}function S(A,k){if(k&&(l(k)==="object"||typeof k==="function"))return k;else if(k!==void 0)throw TypeError("Derived constructors may only return object or undefined");return N(A)}function N(A){if(A===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function B(A){var k=typeof Map==="function"?new Map:void 0;return B=function(j){if(j===null||!y(j))return j;if(typeof j!=="function")throw TypeError("Super expression must either be null or a function");if(typeof k<"u"){if(k.has(j))return k.get(j);k.set(j,h)}function h(){return x(j,arguments,b(this).constructor)}return h.prototype=Object.create(j.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),g(h,j)},B(A)}function x(A,k,j){if(w())x=Reflect.construct.bind();else x=function(h,a,J0){var D0=[null];D0.push.apply(D0,a);var O0=Function.bind.apply(h,D0),d=new O0;if(J0)g(d,J0.prototype);return d};return x.apply(null,arguments)}function w(){if(typeof Reflect>"u"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy==="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(A){return!1}}function y(A){return Function.toString.call(A).indexOf("[native code]")!==-1}function g(A,k){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(j,h){return j.__proto__=h,j},g(A,k)}function b(A){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(k){return k.__proto__||Object.getPrototypeOf(k)},b(A)}function l(A){return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},l(A)}var i=Gz(),$0=i.inspect,Q0=og(),G0=Q0.codes.ERR_INVALID_ARG_TYPE;function K0(A,k,j){if(j===void 0||j>A.length)j=A.length;return A.substring(j-k.length,j)===k}function t(A,k){if(k=Math.floor(k),A.length==0||k==0)return"";var j=A.length*k;k=Math.floor(Math.log(k)/Math.log(2));while(k)A+=A,k--;return A+=A.substring(0,j-A.length),A}var P0="",Q="",K="",F="",L={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},H=10;function v(A){var k=Object.keys(A),j=Object.create(Object.getPrototypeOf(A));return k.forEach(function(h){j[h]=A[h]}),Object.defineProperty(j,"message",{value:A.message}),j}function q(A){return $0(A,{compact:!1,customInspect:!1,depth:1000,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function P(A,k,j){var h="",a="",J0=0,D0="",O0=!1,d=q(A),m=d.split(`
|
|
256
|
-
`),r=q(k).split(`
|
|
257
|
-
`),Y0=0,W0="";if(j==="strictEqual"&&l(A)==="object"&&l(k)==="object"&&A!==null&&k!==null)j="strictEqualObject";if(m.length===1&&r.length===1&&m[0]!==r[0]){var I0=m[0].length+r[0].length;if(I0<=H){if((l(A)!=="object"||A===null)&&(l(k)!=="object"||k===null)&&(A!==0||k!==0))return"".concat(L[j],`
|
|
258
|
-
|
|
259
|
-
`)+"".concat(m[0]," !== ").concat(r[0],`
|
|
260
|
-
`)}else if(j!=="strictEqualObject"){var c=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(I0<c){while(m[0][Y0]===r[0][Y0])Y0++;if(Y0>2)W0=`
|
|
261
|
-
`.concat(t(" ",Y0),"^"),Y0=0}}}var s=m[m.length-1],S0=r[r.length-1];while(s===S0){if(Y0++<2)D0=`
|
|
262
|
-
`.concat(s).concat(D0);else h=s;if(m.pop(),r.pop(),m.length===0||r.length===0)break;s=m[m.length-1],S0=r[r.length-1]}var M0=Math.max(m.length,r.length);if(M0===0){var z0=d.split(`
|
|
263
|
-
`);if(z0.length>30){z0[26]="".concat(P0,"...").concat(F);while(z0.length>27)z0.pop()}return"".concat(L.notIdentical,`
|
|
264
|
-
|
|
265
|
-
`).concat(z0.join(`
|
|
266
|
-
`),`
|
|
267
|
-
`)}if(Y0>3)D0=`
|
|
268
|
-
`.concat(P0,"...").concat(F).concat(D0),O0=!0;if(h!=="")D0=`
|
|
269
|
-
`.concat(h).concat(D0),h="";var c0=0,F0=L[j]+`
|
|
270
|
-
`.concat(Q,"+ actual").concat(F," ").concat(K,"- expected").concat(F),q0=" ".concat(P0,"...").concat(F," Lines skipped");for(Y0=0;Y0<M0;Y0++){var s0=Y0-J0;if(m.length<Y0+1){if(s0>1&&Y0>2){if(s0>4)a+=`
|
|
271
|
-
`.concat(P0,"...").concat(F),O0=!0;else if(s0>3)a+=`
|
|
272
|
-
`.concat(r[Y0-2]),c0++;a+=`
|
|
273
|
-
`.concat(r[Y0-1]),c0++}J0=Y0,h+=`
|
|
274
|
-
`.concat(K,"-").concat(F," ").concat(r[Y0]),c0++}else if(r.length<Y0+1){if(s0>1&&Y0>2){if(s0>4)a+=`
|
|
275
|
-
`.concat(P0,"...").concat(F),O0=!0;else if(s0>3)a+=`
|
|
276
|
-
`.concat(m[Y0-2]),c0++;a+=`
|
|
277
|
-
`.concat(m[Y0-1]),c0++}J0=Y0,a+=`
|
|
278
|
-
`.concat(Q,"+").concat(F," ").concat(m[Y0]),c0++}else{var k0=r[Y0],n0=m[Y0],M$=n0!==k0&&(!K0(n0,",")||n0.slice(0,-1)!==k0);if(M$&&K0(k0,",")&&k0.slice(0,-1)===n0)M$=!1,n0+=",";if(M$){if(s0>1&&Y0>2){if(s0>4)a+=`
|
|
279
|
-
`.concat(P0,"...").concat(F),O0=!0;else if(s0>3)a+=`
|
|
280
|
-
`.concat(m[Y0-2]),c0++;a+=`
|
|
281
|
-
`.concat(m[Y0-1]),c0++}J0=Y0,a+=`
|
|
282
|
-
`.concat(Q,"+").concat(F," ").concat(n0),h+=`
|
|
283
|
-
`.concat(K,"-").concat(F," ").concat(k0),c0+=2}else if(a+=h,h="",s0===1||Y0===0)a+=`
|
|
284
|
-
`.concat(n0),c0++}if(c0>20&&Y0<M0-2)return"".concat(F0).concat(q0,`
|
|
285
|
-
`).concat(a,`
|
|
286
|
-
`).concat(P0,"...").concat(F).concat(h,`
|
|
287
|
-
`)+"".concat(P0,"...").concat(F)}return"".concat(F0).concat(O0?q0:"",`
|
|
288
|
-
`).concat(a).concat(h).concat(D0).concat(W0)}var O=function(A,k){E(h,A);var j=T(h);function h(a){var J0;if(J(this,h),l(a)!=="object"||a===null)throw new G0("options","Object",a);var{message:D0,operator:O0,stackStartFn:d,actual:m,expected:r}=a,Y0=Error.stackTraceLimit;if(Error.stackTraceLimit=0,D0!=null)J0=j.call(this,String(D0));else{if(process.stderr&&process.stderr.isTTY)if(process.stderr&&process.stderr.getColorDepth&&process.stderr.getColorDepth()!==1)P0="\x1B[34m",Q="\x1B[32m",F="\x1B[39m",K="\x1B[31m";else P0="",Q="",F="",K="";if(l(m)==="object"&&m!==null&&l(r)==="object"&&r!==null&&"stack"in m&&m instanceof Error&&"stack"in r&&r instanceof Error)m=v(m),r=v(r);if(O0==="deepStrictEqual"||O0==="strictEqual")J0=j.call(this,P(m,r,O0));else if(O0==="notDeepStrictEqual"||O0==="notStrictEqual"){var W0=L[O0],I0=q(m).split(`
|
|
289
|
-
`);if(O0==="notStrictEqual"&&l(m)==="object"&&m!==null)W0=L.notStrictEqualObject;if(I0.length>30){I0[26]="".concat(P0,"...").concat(F);while(I0.length>27)I0.pop()}if(I0.length===1)J0=j.call(this,"".concat(W0," ").concat(I0[0]));else J0=j.call(this,"".concat(W0,`
|
|
290
|
-
|
|
291
|
-
`).concat(I0.join(`
|
|
292
|
-
`),`
|
|
293
|
-
`))}else{var c=q(m),s="",S0=L[O0];if(O0==="notDeepEqual"||O0==="notEqual"){if(c="".concat(L[O0],`
|
|
294
|
-
|
|
295
|
-
`).concat(c),c.length>1024)c="".concat(c.slice(0,1021),"...")}else{if(s="".concat(q(r)),c.length>512)c="".concat(c.slice(0,509),"...");if(s.length>512)s="".concat(s.slice(0,509),"...");if(O0==="deepEqual"||O0==="equal")c="".concat(S0,`
|
|
296
|
-
|
|
297
|
-
`).concat(c,`
|
|
298
|
-
|
|
299
|
-
should equal
|
|
300
|
-
|
|
301
|
-
`);else s=" ".concat(O0," ").concat(s)}J0=j.call(this,"".concat(c).concat(s))}}if(Error.stackTraceLimit=Y0,J0.generatedMessage=!D0,Object.defineProperty(N(J0),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),J0.code="ERR_ASSERTION",J0.actual=m,J0.expected=r,J0.operator=O0,Error.captureStackTrace)Error.captureStackTrace(N(J0),d);return J0.stack,J0.name="AssertionError",S(J0)}return W(h,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:k,value:function(a,J0){return $0(this,Z(Z({},J0),{},{customInspect:!1,depth:0}))}}]),h}(B(Error),$0.custom);I.exports=O}),tg=A$(($,I)=>{var G=Object.prototype.toString;I.exports=function(Z){var _=G.call(Z),J=_==="[object Arguments]";if(!J)J=_!=="[object Array]"&&Z!==null&&typeof Z==="object"&&typeof Z.length==="number"&&Z.length>=0&&G.call(Z.callee)==="[object Function]";return J}}),Da=A$(($,I)=>{var G;if(!Object.keys)Z=Object.prototype.hasOwnProperty,_=Object.prototype.toString,J=tg(),Y=Object.prototype.propertyIsEnumerable,W=!Y.call({toString:null},"toString"),R=Y.call(function(){},"prototype"),M=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],E=function(B){var x=B.constructor;return x&&x.prototype===B},T={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},S=function(){if(typeof window>"u")return!1;for(var B in window)try{if(!T["$"+B]&&Z.call(window,B)&&window[B]!==null&&typeof window[B]==="object")try{E(window[B])}catch(x){return!0}}catch(x){return!0}return!1}(),N=function(B){if(typeof window>"u"||!S)return E(B);try{return E(B)}catch(x){return!1}},G=function(B){var x=B!==null&&typeof B==="object",w=_.call(B)==="[object Function]",y=J(B),g=x&&_.call(B)==="[object String]",b=[];if(!x&&!w&&!y)throw TypeError("Object.keys called on a non-object");var l=R&&w;if(g&&B.length>0&&!Z.call(B,0))for(var i=0;i<B.length;++i)b.push(String(i));if(y&&B.length>0)for(var $0=0;$0<B.length;++$0)b.push(String($0));else for(var Q0 in B)if(!(l&&Q0==="prototype")&&Z.call(B,Q0))b.push(String(Q0));if(W){var G0=N(B);for(var K0=0;K0<M.length;++K0)if(!(G0&&M[K0]==="constructor")&&Z.call(B,M[K0]))b.push(M[K0])}return b};var Z,_,J,Y,W,R,M,E,T,S,N;I.exports=G}),rg=A$(($,I)=>{var G=Array.prototype.slice,Z=tg(),_=Object.keys,J=_?function(W){return _(W)}:Da(),Y=Object.keys;J.shim=function(){if(Object.keys){var W=function(){var R=Object.keys(arguments);return R&&R.length===arguments.length}(1,2);if(!W)Object.keys=function(R){if(Z(R))return Y(G.call(R));return Y(R)}}else Object.keys=J;return Object.keys||J},I.exports=J}),Wa=A$(($,I)=>{var G=rg(),Z=jE()(),_=GY(),J=kE(),Y=_("Array.prototype.push"),W=_("Object.prototype.propertyIsEnumerable"),R=Z?J.getOwnPropertySymbols:null;I.exports=function(M,E){if(M==null)throw TypeError("target must be an object");var T=J(M);if(arguments.length===1)return T;for(var S=1;S<arguments.length;++S){var N=J(arguments[S]),B=G(N),x=Z&&(J.getOwnPropertySymbols||R);if(x){var w=x(N);for(var y=0;y<w.length;++y){var g=w[y];if(W(N,g))Y(B,g)}}for(var b=0;b<B.length;++b){var l=B[b];if(W(N,l)){var i=N[l];T[l]=i}}}return T}}),Ha=A$(($,I)=>{var G=Wa(),Z=function(){if(!Object.assign)return!1;var J="abcdefghijklmnopqrst",Y=J.split(""),W={};for(var R=0;R<Y.length;++R)W[Y[R]]=Y[R];var M=Object.assign({},W),E="";for(var T in M)E+=T;return J!==E},_=function(){if(!Object.assign||!Object.preventExtensions)return!1;var J=Object.preventExtensions({1:2});try{Object.assign(J,"xy")}catch(Y){return J[1]==="y"}return!1};I.exports=function(){if(!Object.assign)return G;if(Z())return G;if(_())return G;return Object.assign}}),ag=A$(($,I)=>{var G=function(Z){return Z!==Z};I.exports=function(Z,_){if(Z===0&&_===0)return 1/Z===1/_;if(Z===_)return!0;if(G(Z)&&G(_))return!0;return!1}}),bE=A$(($,I)=>{var G=ag();I.exports=function(){return typeof Object.is==="function"?Object.is:G}}),Fa=A$(($,I)=>{var G=yE(),Z=r5(),_=Z(G("String.prototype.indexOf"));I.exports=function(J,Y){var W=G(J,!!Y);if(typeof W==="function"&&_(J,".prototype.")>-1)return Z(W);return W}}),a5=A$(($,I)=>{var G=rg(),Z=typeof Symbol==="function"&&typeof Symbol("foo")==="symbol",_=Object.prototype.toString,J=Array.prototype.concat,Y=mg(),W=function(T){return typeof T==="function"&&_.call(T)==="[object Function]"},R=dg()(),M=function(T,S,N,B){if(S in T){if(B===!0){if(T[S]===N)return}else if(!W(B)||!B())return}if(R)Y(T,S,N,!0);else Y(T,S,N)},E=function(T,S){var N=arguments.length>2?arguments[2]:{},B=G(S);if(Z)B=J.call(B,Object.getOwnPropertySymbols(S));for(var x=0;x<B.length;x+=1)M(T,B[x],S[B[x]],N[B[x]])};E.supportsDescriptors=!!R,I.exports=E}),Ta=A$(($,I)=>{var G=bE(),Z=a5();I.exports=function(){var _=G();return Z(Object,{is:_},{is:function(){return Object.is!==_}}),_}}),Ma=A$(($,I)=>{var G=a5(),Z=r5(),_=ag(),J=bE(),Y=Ta(),W=Z(J(),Object);G(W,{getPolyfill:J,implementation:_,shim:Y}),I.exports=W}),sg=A$(($,I)=>{I.exports=function(G){return G!==G}}),eg=A$(($,I)=>{var G=sg();I.exports=function(){if(Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a"))return Number.isNaN;return G}}),Aa=A$(($,I)=>{var G=a5(),Z=eg();I.exports=function(){var _=Z();return G(Number,{isNaN:_},{isNaN:function(){return Number.isNaN!==_}}),_}}),Ea=A$(($,I)=>{var G=r5(),Z=a5(),_=sg(),J=eg(),Y=Aa(),W=G(J(),Number);Z(W,{getPolyfill:J,implementation:_,shim:Y}),I.exports=W}),Ra=A$(($,I)=>{function G(T0,V0){return W(T0)||Y(T0,V0)||_(T0,V0)||Z()}function Z(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
302
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _(T0,V0){if(!T0)return;if(typeof T0==="string")return J(T0,V0);var X$=Object.prototype.toString.call(T0).slice(8,-1);if(X$==="Object"&&T0.constructor)X$=T0.constructor.name;if(X$==="Map"||X$==="Set")return Array.from(T0);if(X$==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(X$))return J(T0,V0)}function J(T0,V0){if(V0==null||V0>T0.length)V0=T0.length;for(var X$=0,p0=Array(V0);X$<V0;X$++)p0[X$]=T0[X$];return p0}function Y(T0,V0){var X$=T0==null?null:typeof Symbol<"u"&&T0[Symbol.iterator]||T0["@@iterator"];if(X$!=null){var p0,l0,L0,N0,B0=[],Y$=!0,u=!1;try{if(L0=(X$=X$.call(T0)).next,V0===0){if(Object(X$)!==X$)return;Y$=!1}else for(;!(Y$=(p0=L0.call(X$)).done)&&(B0.push(p0.value),B0.length!==V0);Y$=!0);}catch(_0){u=!0,l0=_0}finally{try{if(!Y$&&X$.return!=null&&(N0=X$.return(),Object(N0)!==N0))return}finally{if(u)throw l0}}return B0}}function W(T0){if(Array.isArray(T0))return T0}function R(T0){return R=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V0){return typeof V0}:function(V0){return V0&&typeof Symbol=="function"&&V0.constructor===Symbol&&V0!==Symbol.prototype?"symbol":typeof V0},R(T0)}var M=/a/g.flags!==void 0,E=function(T0){var V0=[];return T0.forEach(function(X$){return V0.push(X$)}),V0},T=function(T0){var V0=[];return T0.forEach(function(X$,p0){return V0.push([p0,X$])}),V0},S=Object.is?Object.is:Ma(),N=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},B=Number.isNaN?Number.isNaN:Ea();function x(T0){return T0.call.bind(T0)}var w=x(Object.prototype.hasOwnProperty),y=x(Object.prototype.propertyIsEnumerable),g=x(Object.prototype.toString),b=Gz().types,l=b.isAnyArrayBuffer,i=b.isArrayBufferView,$0=b.isDate,Q0=b.isMap,G0=b.isRegExp,K0=b.isSet,t=b.isNativeError,P0=b.isBoxedPrimitive,Q=b.isNumberObject,K=b.isStringObject,F=b.isBooleanObject,L=b.isBigIntObject,H=b.isSymbolObject,v=b.isFloat32Array,q=b.isFloat64Array;function P(T0){if(T0.length===0||T0.length>10)return!0;for(var V0=0;V0<T0.length;V0++){var X$=T0.charCodeAt(V0);if(X$<48||X$>57)return!0}return T0.length===10&&T0>=Math.pow(2,32)}function O(T0){return Object.keys(T0).filter(P).concat(N(T0).filter(Object.prototype.propertyIsEnumerable.bind(T0)))}/*!
|
|
303
|
-
* The buffer module from node.js, for the browser.
|
|
304
|
-
*
|
|
305
|
-
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
306
|
-
* @license MIT
|
|
307
|
-
*/function A(T0,V0){if(T0===V0)return 0;var X$=T0.length,p0=V0.length;for(var l0=0,L0=Math.min(X$,p0);l0<L0;++l0)if(T0[l0]!==V0[l0]){X$=T0[l0],p0=V0[l0];break}if(X$<p0)return-1;if(p0<X$)return 1;return 0}var k=void 0,j=!0,h=!1,a=0,J0=1,D0=2,O0=3;function d(T0,V0){return M?T0.source===V0.source&&T0.flags===V0.flags:RegExp.prototype.toString.call(T0)===RegExp.prototype.toString.call(V0)}function m(T0,V0){if(T0.byteLength!==V0.byteLength)return!1;for(var X$=0;X$<T0.byteLength;X$++)if(T0[X$]!==V0[X$])return!1;return!0}function r(T0,V0){if(T0.byteLength!==V0.byteLength)return!1;return A(new Uint8Array(T0.buffer,T0.byteOffset,T0.byteLength),new Uint8Array(V0.buffer,V0.byteOffset,V0.byteLength))===0}function Y0(T0,V0){return T0.byteLength===V0.byteLength&&A(new Uint8Array(T0),new Uint8Array(V0))===0}function W0(T0,V0){if(Q(T0))return Q(V0)&&S(Number.prototype.valueOf.call(T0),Number.prototype.valueOf.call(V0));if(K(T0))return K(V0)&&String.prototype.valueOf.call(T0)===String.prototype.valueOf.call(V0);if(F(T0))return F(V0)&&Boolean.prototype.valueOf.call(T0)===Boolean.prototype.valueOf.call(V0);if(L(T0))return L(V0)&&BigInt.prototype.valueOf.call(T0)===BigInt.prototype.valueOf.call(V0);return H(V0)&&Symbol.prototype.valueOf.call(T0)===Symbol.prototype.valueOf.call(V0)}function I0(T0,V0,X$,p0){if(T0===V0){if(T0!==0)return!0;return X$?S(T0,V0):!0}if(X$){if(R(T0)!=="object")return typeof T0==="number"&&B(T0)&&B(V0);if(R(V0)!=="object"||T0===null||V0===null)return!1;if(Object.getPrototypeOf(T0)!==Object.getPrototypeOf(V0))return!1}else{if(T0===null||R(T0)!=="object"){if(V0===null||R(V0)!=="object")return T0==V0;return!1}if(V0===null||R(V0)!=="object")return!1}var l0=g(T0),L0=g(V0);if(l0!==L0)return!1;if(Array.isArray(T0)){if(T0.length!==V0.length)return!1;var N0=O(T0,k),B0=O(V0,k);if(N0.length!==B0.length)return!1;return s(T0,V0,X$,p0,J0,N0)}if(l0==="[object Object]"){if(!Q0(T0)&&Q0(V0)||!K0(T0)&&K0(V0))return!1}if($0(T0)){if(!$0(V0)||Date.prototype.getTime.call(T0)!==Date.prototype.getTime.call(V0))return!1}else if(G0(T0)){if(!G0(V0)||!d(T0,V0))return!1}else if(t(T0)||T0 instanceof Error){if(T0.message!==V0.message||T0.name!==V0.name)return!1}else if(i(T0)){if(!X$&&(v(T0)||q(T0))){if(!m(T0,V0))return!1}else if(!r(T0,V0))return!1;var Y$=O(T0,k),u=O(V0,k);if(Y$.length!==u.length)return!1;return s(T0,V0,X$,p0,a,Y$)}else if(K0(T0)){if(!K0(V0)||T0.size!==V0.size)return!1;return s(T0,V0,X$,p0,D0)}else if(Q0(T0)){if(!Q0(V0)||T0.size!==V0.size)return!1;return s(T0,V0,X$,p0,O0)}else if(l(T0)){if(!Y0(T0,V0))return!1}else if(P0(T0)&&!W0(T0,V0))return!1;return s(T0,V0,X$,p0,a)}function c(T0,V0){return V0.filter(function(X$){return y(T0,X$)})}function s(T0,V0,X$,p0,l0,L0){if(arguments.length===5){L0=Object.keys(T0);var N0=Object.keys(V0);if(L0.length!==N0.length)return!1}var B0=0;for(;B0<L0.length;B0++)if(!w(V0,L0[B0]))return!1;if(X$&&arguments.length===5){var Y$=N(T0);if(Y$.length!==0){var u=0;for(B0=0;B0<Y$.length;B0++){var _0=Y$[B0];if(y(T0,_0)){if(!y(V0,_0))return!1;L0.push(_0),u++}else if(y(V0,_0))return!1}var o=N(V0);if(Y$.length!==o.length&&c(V0,o).length!==u)return!1}else{var R0=N(V0);if(R0.length!==0&&c(V0,R0).length!==0)return!1}}if(L0.length===0&&(l0===a||l0===J0&&T0.length===0||T0.size===0))return!0;if(p0===void 0)p0={val1:new Map,val2:new Map,position:0};else{var x0=p0.val1.get(T0);if(x0!==void 0){var p=p0.val2.get(V0);if(p!==void 0)return x0===p}p0.position++}p0.val1.set(T0,p0.position),p0.val2.set(V0,p0.position);var A0=k0(T0,V0,X$,L0,p0,l0);return p0.val1.delete(T0),p0.val2.delete(V0),A0}function S0(T0,V0,X$,p0){var l0=E(T0);for(var L0=0;L0<l0.length;L0++){var N0=l0[L0];if(I0(V0,N0,X$,p0))return T0.delete(N0),!0}return!1}function M0(T0){switch(R(T0)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":T0=+T0;case"number":if(B(T0))return!1}return!0}function z0(T0,V0,X$){var p0=M0(X$);if(p0!=null)return p0;return V0.has(p0)&&!T0.has(p0)}function c0(T0,V0,X$,p0,l0){var L0=M0(X$);if(L0!=null)return L0;var N0=V0.get(L0);if(N0===void 0&&!V0.has(L0)||!I0(p0,N0,!1,l0))return!1;return!T0.has(L0)&&I0(p0,N0,!1,l0)}function F0(T0,V0,X$,p0){var l0=null,L0=E(T0);for(var N0=0;N0<L0.length;N0++){var B0=L0[N0];if(R(B0)==="object"&&B0!==null){if(l0===null)l0=new Set;l0.add(B0)}else if(!V0.has(B0)){if(X$)return!1;if(!z0(T0,V0,B0))return!1;if(l0===null)l0=new Set;l0.add(B0)}}if(l0!==null){var Y$=E(V0);for(var u=0;u<Y$.length;u++){var _0=Y$[u];if(R(_0)==="object"&&_0!==null){if(!S0(l0,_0,X$,p0))return!1}else if(!X$&&!T0.has(_0)&&!S0(l0,_0,X$,p0))return!1}return l0.size===0}return!0}function q0(T0,V0,X$,p0,l0,L0){var N0=E(T0);for(var B0=0;B0<N0.length;B0++){var Y$=N0[B0];if(I0(X$,Y$,l0,L0)&&I0(p0,V0.get(Y$),l0,L0))return T0.delete(Y$),!0}return!1}function s0(T0,V0,X$,p0){var l0=null,L0=T(T0);for(var N0=0;N0<L0.length;N0++){var B0=G(L0[N0],2),Y$=B0[0],u=B0[1];if(R(Y$)==="object"&&Y$!==null){if(l0===null)l0=new Set;l0.add(Y$)}else{var _0=V0.get(Y$);if(_0===void 0&&!V0.has(Y$)||!I0(u,_0,X$,p0)){if(X$)return!1;if(!c0(T0,V0,Y$,u,p0))return!1;if(l0===null)l0=new Set;l0.add(Y$)}}}if(l0!==null){var o=T(V0);for(var R0=0;R0<o.length;R0++){var x0=G(o[R0],2),p=x0[0],A0=x0[1];if(R(p)==="object"&&p!==null){if(!q0(l0,T0,p,A0,X$,p0))return!1}else if(!X$&&(!T0.has(p)||!I0(T0.get(p),A0,!1,p0))&&!q0(l0,T0,p,A0,!1,p0))return!1}return l0.size===0}return!0}function k0(T0,V0,X$,p0,l0,L0){var N0=0;if(L0===D0){if(!F0(T0,V0,X$,l0))return!1}else if(L0===O0){if(!s0(T0,V0,X$,l0))return!1}else if(L0===J0)for(;N0<T0.length;N0++)if(w(T0,N0)){if(!w(V0,N0)||!I0(T0[N0],V0[N0],X$,l0))return!1}else if(w(V0,N0))return!1;else{var B0=Object.keys(T0);for(;N0<B0.length;N0++){var Y$=B0[N0];if(!w(V0,Y$)||!I0(T0[Y$],V0[Y$],X$,l0))return!1}if(B0.length!==Object.keys(V0).length)return!1;return!0}for(N0=0;N0<p0.length;N0++){var u=p0[N0];if(!I0(T0[u],V0[u],X$,l0))return!1}return!0}function n0(T0,V0){return I0(T0,V0,h)}function M$(T0,V0){return I0(T0,V0,j)}I.exports={isDeepEqual:n0,isDeepStrictEqual:M$}}),BE=A$(($,I)=>{function G(d){return G=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},G(d)}function Z(d,m){for(var r=0;r<m.length;r++){var Y0=m[r];if(Y0.enumerable=Y0.enumerable||!1,Y0.configurable=!0,"value"in Y0)Y0.writable=!0;Object.defineProperty(d,J(Y0.key),Y0)}}function _(d,m,r){if(m)Z(d.prototype,m);if(r)Z(d,r);return Object.defineProperty(d,"prototype",{writable:!1}),d}function J(d){var m=Y(d,"string");return G(m)==="symbol"?m:String(m)}function Y(d,m){if(G(d)!=="object"||d===null)return d;var r=d[Symbol.toPrimitive];if(r!==void 0){var Y0=r.call(d,m||"default");if(G(Y0)!=="object")return Y0;throw TypeError("@@toPrimitive must return a primitive value.")}return(m==="string"?String:Number)(d)}function W(d,m){if(!(d instanceof m))throw TypeError("Cannot call a class as a function")}var R=og(),M=R.codes,E=M.ERR_AMBIGUOUS_ARGUMENT,T=M.ERR_INVALID_ARG_TYPE,S=M.ERR_INVALID_ARG_VALUE,N=M.ERR_INVALID_RETURN_VALUE,B=M.ERR_MISSING_ARGS,x=Ka(),w=Gz(),y=w.inspect,g=Gz().types,b=g.isPromise,l=g.isRegExp,i=Ha()(),$0=bE()(),Q0=Fa()("RegExp.prototype.test"),G0,K0;function t(){var d=Ra();G0=d.isDeepEqual,K0=d.isDeepStrictEqual}var P0=!1,Q=I.exports=v,K={};function F(d){if(d.message instanceof Error)throw d.message;throw new x(d)}function L(d,m,r,Y0,W0){var I0=arguments.length,c;if(I0===0)c="Failed";else if(I0===1)r=d,d=void 0;else{if(P0===!1){P0=!0;var s=process.emitWarning?process.emitWarning:console.warn.bind(console);s("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}if(I0===2)Y0="!="}if(r instanceof Error)throw r;var S0={actual:d,expected:m,operator:Y0===void 0?"fail":Y0,stackStartFn:W0||L};if(r!==void 0)S0.message=r;var M0=new x(S0);if(c)M0.message=c,M0.generatedMessage=!0;throw M0}Q.fail=L,Q.AssertionError=x;function H(d,m,r,Y0){if(!r){var W0=!1;if(m===0)W0=!0,Y0="No value argument passed to `assert.ok()`";else if(Y0 instanceof Error)throw Y0;var I0=new x({actual:r,expected:!0,message:Y0,operator:"==",stackStartFn:d});throw I0.generatedMessage=W0,I0}}function v(){for(var d=arguments.length,m=Array(d),r=0;r<d;r++)m[r]=arguments[r];H.apply(void 0,[v,m.length].concat(m))}Q.ok=v,Q.equal=function d(m,r,Y0){if(arguments.length<2)throw new B("actual","expected");if(m!=r)F({actual:m,expected:r,message:Y0,operator:"==",stackStartFn:d})},Q.notEqual=function d(m,r,Y0){if(arguments.length<2)throw new B("actual","expected");if(m==r)F({actual:m,expected:r,message:Y0,operator:"!=",stackStartFn:d})},Q.deepEqual=function d(m,r,Y0){if(arguments.length<2)throw new B("actual","expected");if(G0===void 0)t();if(!G0(m,r))F({actual:m,expected:r,message:Y0,operator:"deepEqual",stackStartFn:d})},Q.notDeepEqual=function d(m,r,Y0){if(arguments.length<2)throw new B("actual","expected");if(G0===void 0)t();if(G0(m,r))F({actual:m,expected:r,message:Y0,operator:"notDeepEqual",stackStartFn:d})},Q.deepStrictEqual=function d(m,r,Y0){if(arguments.length<2)throw new B("actual","expected");if(G0===void 0)t();if(!K0(m,r))F({actual:m,expected:r,message:Y0,operator:"deepStrictEqual",stackStartFn:d})},Q.notDeepStrictEqual=q;function q(d,m,r){if(arguments.length<2)throw new B("actual","expected");if(G0===void 0)t();if(K0(d,m))F({actual:d,expected:m,message:r,operator:"notDeepStrictEqual",stackStartFn:q})}Q.strictEqual=function d(m,r,Y0){if(arguments.length<2)throw new B("actual","expected");if(!$0(m,r))F({actual:m,expected:r,message:Y0,operator:"strictEqual",stackStartFn:d})},Q.notStrictEqual=function d(m,r,Y0){if(arguments.length<2)throw new B("actual","expected");if($0(m,r))F({actual:m,expected:r,message:Y0,operator:"notStrictEqual",stackStartFn:d})};var P=_(function d(m,r,Y0){var W0=this;W(this,d),r.forEach(function(I0){if(I0 in m)if(Y0!==void 0&&typeof Y0[I0]==="string"&&l(m[I0])&&Q0(m[I0],Y0[I0]))W0[I0]=Y0[I0];else W0[I0]=m[I0]})});function O(d,m,r,Y0,W0,I0){if(!(r in d)||!K0(d[r],m[r])){if(!Y0){var c=new P(d,W0),s=new P(m,W0,d),S0=new x({actual:c,expected:s,operator:"deepStrictEqual",stackStartFn:I0});throw S0.actual=d,S0.expected=m,S0.operator=I0.name,S0}F({actual:d,expected:m,message:Y0,operator:I0.name,stackStartFn:I0})}}function A(d,m,r,Y0){if(typeof m!=="function"){if(l(m))return Q0(m,d);if(arguments.length===2)throw new T("expected",["Function","RegExp"],m);if(G(d)!=="object"||d===null){var W0=new x({actual:d,expected:m,message:r,operator:"deepStrictEqual",stackStartFn:Y0});throw W0.operator=Y0.name,W0}var I0=Object.keys(m);if(m instanceof Error)I0.push("name","message");else if(I0.length===0)throw new S("error",m,"may not be an empty object");if(G0===void 0)t();return I0.forEach(function(c){if(typeof d[c]==="string"&&l(m[c])&&Q0(m[c],d[c]))return;O(d,m,c,r,I0,Y0)}),!0}if(m.prototype!==void 0&&d instanceof m)return!0;if(Error.isPrototypeOf(m))return!1;return m.call({},d)===!0}function k(d){if(typeof d!=="function")throw new T("fn","Function",d);try{d()}catch(m){return m}return K}function j(d){return b(d)||d!==null&&G(d)==="object"&&typeof d.then==="function"&&typeof d.catch==="function"}function h(d){return Promise.resolve().then(function(){var m;if(typeof d==="function"){if(m=d(),!j(m))throw new N("instance of Promise","promiseFn",m)}else if(j(d))m=d;else throw new T("promiseFn",["Function","Promise"],d);return Promise.resolve().then(function(){return m}).then(function(){return K}).catch(function(r){return r})})}function a(d,m,r,Y0){if(typeof r==="string"){if(arguments.length===4)throw new T("error",["Object","Error","Function","RegExp"],r);if(G(m)==="object"&&m!==null){if(m.message===r)throw new E("error/message",'The error message "'.concat(m.message,'" is identical to the message.'))}else if(m===r)throw new E("error/message",'The error "'.concat(m,'" is identical to the message.'));Y0=r,r=void 0}else if(r!=null&&G(r)!=="object"&&typeof r!=="function")throw new T("error",["Object","Error","Function","RegExp"],r);if(m===K){var W0="";if(r&&r.name)W0+=" (".concat(r.name,")");W0+=Y0?": ".concat(Y0):".";var I0=d.name==="rejects"?"rejection":"exception";F({actual:void 0,expected:r,operator:d.name,message:"Missing expected ".concat(I0).concat(W0),stackStartFn:d})}if(r&&!A(m,r,Y0,d))throw m}function J0(d,m,r,Y0){if(m===K)return;if(typeof r==="string")Y0=r,r=void 0;if(!r||A(m,r)){var W0=Y0?": ".concat(Y0):".",I0=d.name==="doesNotReject"?"rejection":"exception";F({actual:m,expected:r,operator:d.name,message:"Got unwanted ".concat(I0).concat(W0,`
|
|
308
|
-
`)+'Actual message: "'.concat(m&&m.message,'"'),stackStartFn:d})}throw m}Q.throws=function d(m){for(var r=arguments.length,Y0=Array(r>1?r-1:0),W0=1;W0<r;W0++)Y0[W0-1]=arguments[W0];a.apply(void 0,[d,k(m)].concat(Y0))},Q.rejects=function d(m){for(var r=arguments.length,Y0=Array(r>1?r-1:0),W0=1;W0<r;W0++)Y0[W0-1]=arguments[W0];return h(m).then(function(I0){return a.apply(void 0,[d,I0].concat(Y0))})},Q.doesNotThrow=function d(m){for(var r=arguments.length,Y0=Array(r>1?r-1:0),W0=1;W0<r;W0++)Y0[W0-1]=arguments[W0];J0.apply(void 0,[d,k(m)].concat(Y0))},Q.doesNotReject=function d(m){for(var r=arguments.length,Y0=Array(r>1?r-1:0),W0=1;W0<r;W0++)Y0[W0-1]=arguments[W0];return h(m).then(function(I0){return J0.apply(void 0,[d,I0].concat(Y0))})},Q.ifError=function d(m){if(m!==null&&m!==void 0){var r="ifError got unwanted exception: ";if(G(m)==="object"&&typeof m.message==="string")if(m.message.length===0&&m.constructor)r+=m.constructor.name;else r+=m.message;else r+=y(m);var Y0=new x({actual:m,expected:null,operator:"ifError",message:r,stackStartFn:d}),W0=m.stack;if(typeof W0==="string"){var I0=W0.split(`
|
|
309
|
-
`);I0.shift();var c=Y0.stack.split(`
|
|
310
|
-
`);for(var s=0;s<I0.length;s++){var S0=c.indexOf(I0[s]);if(S0!==-1){c=c.slice(0,S0);break}}Y0.stack="".concat(c.join(`
|
|
311
|
-
`),`
|
|
312
|
-
`).concat(I0.join(`
|
|
313
|
-
`))}throw Y0}};function D0(d,m,r,Y0,W0){if(!l(m))throw new T("regexp","RegExp",m);var I0=W0==="match";if(typeof d!=="string"||Q0(m,d)!==I0){if(r instanceof Error)throw r;var c=!r;r=r||(typeof d!=="string"?'The "string" argument must be of type string. Received type '+"".concat(G(d)," (").concat(y(d),")"):(I0?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(y(m),`. Input:
|
|
314
|
-
|
|
315
|
-
`).concat(y(d),`
|
|
316
|
-
`));var s=new x({actual:d,expected:m,message:r,operator:W0,stackStartFn:Y0});throw s.generatedMessage=c,s}}Q.match=function d(m,r,Y0){D0(m,r,Y0,d,"match")},Q.doesNotMatch=function d(m,r,Y0){D0(m,r,Y0,d,"doesNotMatch")};function O0(){for(var d=arguments.length,m=Array(d),r=0;r<d;r++)m[r]=arguments[r];H.apply(void 0,[O0,m.length].concat(m))}Q.strict=i(O0,Q,{equal:Q.strictEqual,deepEqual:Q.deepStrictEqual,notEqual:Q.notStrictEqual,notDeepEqual:Q.notDeepStrictEqual}),Q.strict.strict=Q.strict}),$w=kr(BE(),1),{AssertionError:Pa,CallTracker:Va,deepEqual:Sa,deepStrictEqual:va,doesNotMatch:Ca,doesNotReject:qa,doesNotThrow:Na,equal:Ba,fail:ja,ifError:ka,match:ga,notDeepEqual:wa,notDeepStrictEqual:xa,notEqual:fa,notStrictEqual:ya,ok:ba,rejects:ha,strict:ua,strictEqual:na,throws:pa}=$w,ca=$w});var Jw={};LU(Jw,{default:()=>_s});var la,ma,Qz,nE,pE,da=($,I,G)=>{for(let Z of nE(I))if(!pE.call($,Z)&&Z!=="default")Qz($,Z,{get:()=>I[Z],enumerable:!0});if(G){for(let Z of nE(I))if(!pE.call(G,Z)&&Z!=="default")Qz(G,Z,{get:()=>I[Z],enumerable:!0});return G}},Uw=($,I,G)=>{G=$!=null?la(ma($)):{};let Z=I||!$||!$.__esModule?Qz(G,"default",{value:$,enumerable:!0}):G;for(let _ of nE($))if(!pE.call(Z,_))Qz(Z,_,{get:()=>$[_],enumerable:!0});return Z},b6=($,I)=>()=>(I||$((I={exports:{}}).exports,I),I.exports),ia=($,I)=>{for(var G in I)Qz($,G,{get:I[G],enumerable:!0,configurable:!0,set:(Z)=>I[G]=()=>Z})},oa,s5,ta,Iw,_w,ra,aa,sa,ea,$s,Us,Is,Xw,Gw,Yw,_s;var Qw=WI(()=>{la=Object.create,{getPrototypeOf:ma,defineProperty:Qz,getOwnPropertyNames:nE}=Object,pE=Object.prototype.hasOwnProperty,oa=b6(($,I)=>{function G(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}I.exports=G}),s5=b6(($)=>{var I=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function G(J,Y){return Object.prototype.hasOwnProperty.call(J,Y)}$.assign=function(J){var Y=Array.prototype.slice.call(arguments,1);while(Y.length){var W=Y.shift();if(!W)continue;if(typeof W!=="object")throw TypeError(W+"must be non-object");for(var R in W)if(G(W,R))J[R]=W[R]}return J},$.shrinkBuf=function(J,Y){if(J.length===Y)return J;if(J.subarray)return J.subarray(0,Y);return J.length=Y,J};var Z={arraySet:function(J,Y,W,R,M){if(Y.subarray&&J.subarray){J.set(Y.subarray(W,W+R),M);return}for(var E=0;E<R;E++)J[M+E]=Y[W+E]},flattenChunks:function(J){var Y,W,R,M,E,T;R=0;for(Y=0,W=J.length;Y<W;Y++)R+=J[Y].length;T=new Uint8Array(R),M=0;for(Y=0,W=J.length;Y<W;Y++)E=J[Y],T.set(E,M),M+=E.length;return T}},_={arraySet:function(J,Y,W,R,M){for(var E=0;E<R;E++)J[M+E]=Y[W+E]},flattenChunks:function(J){return[].concat.apply([],J)}};$.setTyped=function(J){if(J)$.Buf8=Uint8Array,$.Buf16=Uint16Array,$.Buf32=Int32Array,$.assign($,Z);else $.Buf8=Array,$.Buf16=Array,$.Buf32=Array,$.assign($,_)},$.setTyped(I)}),ta=b6(($)=>{var I=s5(),G=4,Z=0,_=1,J=2;function Y(L0){var N0=L0.length;while(--N0>=0)L0[N0]=0}var W=0,R=1,M=2,E=3,T=258,S=29,N=256,B=N+1+S,x=30,w=19,y=2*B+1,g=15,b=16,l=7,i=256,$0=16,Q0=17,G0=18,K0=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],t=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],P0=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],K=512,F=Array((B+2)*2);Y(F);var L=Array(x*2);Y(L);var H=Array(K);Y(H);var v=Array(T-E+1);Y(v);var q=Array(S);Y(q);var P=Array(x);Y(P);function O(L0,N0,B0,Y$,u){this.static_tree=L0,this.extra_bits=N0,this.extra_base=B0,this.elems=Y$,this.max_length=u,this.has_stree=L0&&L0.length}var A,k,j;function h(L0,N0){this.dyn_tree=L0,this.max_code=0,this.stat_desc=N0}function a(L0){return L0<256?H[L0]:H[256+(L0>>>7)]}function J0(L0,N0){L0.pending_buf[L0.pending++]=N0&255,L0.pending_buf[L0.pending++]=N0>>>8&255}function D0(L0,N0,B0){if(L0.bi_valid>b-B0)L0.bi_buf|=N0<<L0.bi_valid&65535,J0(L0,L0.bi_buf),L0.bi_buf=N0>>b-L0.bi_valid,L0.bi_valid+=B0-b;else L0.bi_buf|=N0<<L0.bi_valid&65535,L0.bi_valid+=B0}function O0(L0,N0,B0){D0(L0,B0[N0*2],B0[N0*2+1])}function d(L0,N0){var B0=0;do B0|=L0&1,L0>>>=1,B0<<=1;while(--N0>0);return B0>>>1}function m(L0){if(L0.bi_valid===16)J0(L0,L0.bi_buf),L0.bi_buf=0,L0.bi_valid=0;else if(L0.bi_valid>=8)L0.pending_buf[L0.pending++]=L0.bi_buf&255,L0.bi_buf>>=8,L0.bi_valid-=8}function r(L0,N0){var{dyn_tree:B0,max_code:Y$}=N0,u=N0.stat_desc.static_tree,_0=N0.stat_desc.has_stree,o=N0.stat_desc.extra_bits,R0=N0.stat_desc.extra_base,x0=N0.stat_desc.max_length,p,A0,v0,X0,H0,C0,H$=0;for(X0=0;X0<=g;X0++)L0.bl_count[X0]=0;B0[L0.heap[L0.heap_max]*2+1]=0;for(p=L0.heap_max+1;p<y;p++){if(A0=L0.heap[p],X0=B0[B0[A0*2+1]*2+1]+1,X0>x0)X0=x0,H$++;if(B0[A0*2+1]=X0,A0>Y$)continue;if(L0.bl_count[X0]++,H0=0,A0>=R0)H0=o[A0-R0];if(C0=B0[A0*2],L0.opt_len+=C0*(X0+H0),_0)L0.static_len+=C0*(u[A0*2+1]+H0)}if(H$===0)return;do{X0=x0-1;while(L0.bl_count[X0]===0)X0--;L0.bl_count[X0]--,L0.bl_count[X0+1]+=2,L0.bl_count[x0]--,H$-=2}while(H$>0);for(X0=x0;X0!==0;X0--){A0=L0.bl_count[X0];while(A0!==0){if(v0=L0.heap[--p],v0>Y$)continue;if(B0[v0*2+1]!==X0)L0.opt_len+=(X0-B0[v0*2+1])*B0[v0*2],B0[v0*2+1]=X0;A0--}}}function Y0(L0,N0,B0){var Y$=Array(g+1),u=0,_0,o;for(_0=1;_0<=g;_0++)Y$[_0]=u=u+B0[_0-1]<<1;for(o=0;o<=N0;o++){var R0=L0[o*2+1];if(R0===0)continue;L0[o*2]=d(Y$[R0]++,R0)}}function W0(){var L0,N0,B0,Y$,u,_0=Array(g+1);B0=0;for(Y$=0;Y$<S-1;Y$++){q[Y$]=B0;for(L0=0;L0<1<<K0[Y$];L0++)v[B0++]=Y$}v[B0-1]=Y$,u=0;for(Y$=0;Y$<16;Y$++){P[Y$]=u;for(L0=0;L0<1<<t[Y$];L0++)H[u++]=Y$}u>>=7;for(;Y$<x;Y$++){P[Y$]=u<<7;for(L0=0;L0<1<<t[Y$]-7;L0++)H[256+u++]=Y$}for(N0=0;N0<=g;N0++)_0[N0]=0;L0=0;while(L0<=143)F[L0*2+1]=8,L0++,_0[8]++;while(L0<=255)F[L0*2+1]=9,L0++,_0[9]++;while(L0<=279)F[L0*2+1]=7,L0++,_0[7]++;while(L0<=287)F[L0*2+1]=8,L0++,_0[8]++;Y0(F,B+1,_0);for(L0=0;L0<x;L0++)L[L0*2+1]=5,L[L0*2]=d(L0,5);A=new O(F,K0,N+1,B,g),k=new O(L,t,0,x,g),j=new O([],P0,0,w,l)}function I0(L0){var N0;for(N0=0;N0<B;N0++)L0.dyn_ltree[N0*2]=0;for(N0=0;N0<x;N0++)L0.dyn_dtree[N0*2]=0;for(N0=0;N0<w;N0++)L0.bl_tree[N0*2]=0;L0.dyn_ltree[i*2]=1,L0.opt_len=L0.static_len=0,L0.last_lit=L0.matches=0}function c(L0){if(L0.bi_valid>8)J0(L0,L0.bi_buf);else if(L0.bi_valid>0)L0.pending_buf[L0.pending++]=L0.bi_buf;L0.bi_buf=0,L0.bi_valid=0}function s(L0,N0,B0,Y$){if(c(L0),Y$)J0(L0,B0),J0(L0,~B0);I.arraySet(L0.pending_buf,L0.window,N0,B0,L0.pending),L0.pending+=B0}function S0(L0,N0,B0,Y$){var u=N0*2,_0=B0*2;return L0[u]<L0[_0]||L0[u]===L0[_0]&&Y$[N0]<=Y$[B0]}function M0(L0,N0,B0){var Y$=L0.heap[B0],u=B0<<1;while(u<=L0.heap_len){if(u<L0.heap_len&&S0(N0,L0.heap[u+1],L0.heap[u],L0.depth))u++;if(S0(N0,Y$,L0.heap[u],L0.depth))break;L0.heap[B0]=L0.heap[u],B0=u,u<<=1}L0.heap[B0]=Y$}function z0(L0,N0,B0){var Y$,u,_0=0,o,R0;if(L0.last_lit!==0)do if(Y$=L0.pending_buf[L0.d_buf+_0*2]<<8|L0.pending_buf[L0.d_buf+_0*2+1],u=L0.pending_buf[L0.l_buf+_0],_0++,Y$===0)O0(L0,u,N0);else{if(o=v[u],O0(L0,o+N+1,N0),R0=K0[o],R0!==0)u-=q[o],D0(L0,u,R0);if(Y$--,o=a(Y$),O0(L0,o,B0),R0=t[o],R0!==0)Y$-=P[o],D0(L0,Y$,R0)}while(_0<L0.last_lit);O0(L0,i,N0)}function c0(L0,N0){var B0=N0.dyn_tree,Y$=N0.stat_desc.static_tree,u=N0.stat_desc.has_stree,_0=N0.stat_desc.elems,o,R0,x0=-1,p;L0.heap_len=0,L0.heap_max=y;for(o=0;o<_0;o++)if(B0[o*2]!==0)L0.heap[++L0.heap_len]=x0=o,L0.depth[o]=0;else B0[o*2+1]=0;while(L0.heap_len<2)if(p=L0.heap[++L0.heap_len]=x0<2?++x0:0,B0[p*2]=1,L0.depth[p]=0,L0.opt_len--,u)L0.static_len-=Y$[p*2+1];N0.max_code=x0;for(o=L0.heap_len>>1;o>=1;o--)M0(L0,B0,o);p=_0;do o=L0.heap[1],L0.heap[1]=L0.heap[L0.heap_len--],M0(L0,B0,1),R0=L0.heap[1],L0.heap[--L0.heap_max]=o,L0.heap[--L0.heap_max]=R0,B0[p*2]=B0[o*2]+B0[R0*2],L0.depth[p]=(L0.depth[o]>=L0.depth[R0]?L0.depth[o]:L0.depth[R0])+1,B0[o*2+1]=B0[R0*2+1]=p,L0.heap[1]=p++,M0(L0,B0,1);while(L0.heap_len>=2);L0.heap[--L0.heap_max]=L0.heap[1],r(L0,N0),Y0(B0,x0,L0.bl_count)}function F0(L0,N0,B0){var Y$,u=-1,_0,o=N0[1],R0=0,x0=7,p=4;if(o===0)x0=138,p=3;N0[(B0+1)*2+1]=65535;for(Y$=0;Y$<=B0;Y$++){if(_0=o,o=N0[(Y$+1)*2+1],++R0<x0&&_0===o)continue;else if(R0<p)L0.bl_tree[_0*2]+=R0;else if(_0!==0){if(_0!==u)L0.bl_tree[_0*2]++;L0.bl_tree[$0*2]++}else if(R0<=10)L0.bl_tree[Q0*2]++;else L0.bl_tree[G0*2]++;if(R0=0,u=_0,o===0)x0=138,p=3;else if(_0===o)x0=6,p=3;else x0=7,p=4}}function q0(L0,N0,B0){var Y$,u=-1,_0,o=N0[1],R0=0,x0=7,p=4;if(o===0)x0=138,p=3;for(Y$=0;Y$<=B0;Y$++){if(_0=o,o=N0[(Y$+1)*2+1],++R0<x0&&_0===o)continue;else if(R0<p)do O0(L0,_0,L0.bl_tree);while(--R0!==0);else if(_0!==0){if(_0!==u)O0(L0,_0,L0.bl_tree),R0--;O0(L0,$0,L0.bl_tree),D0(L0,R0-3,2)}else if(R0<=10)O0(L0,Q0,L0.bl_tree),D0(L0,R0-3,3);else O0(L0,G0,L0.bl_tree),D0(L0,R0-11,7);if(R0=0,u=_0,o===0)x0=138,p=3;else if(_0===o)x0=6,p=3;else x0=7,p=4}}function s0(L0){var N0;F0(L0,L0.dyn_ltree,L0.l_desc.max_code),F0(L0,L0.dyn_dtree,L0.d_desc.max_code),c0(L0,L0.bl_desc);for(N0=w-1;N0>=3;N0--)if(L0.bl_tree[Q[N0]*2+1]!==0)break;return L0.opt_len+=3*(N0+1)+5+5+4,N0}function k0(L0,N0,B0,Y$){var u;D0(L0,N0-257,5),D0(L0,B0-1,5),D0(L0,Y$-4,4);for(u=0;u<Y$;u++)D0(L0,L0.bl_tree[Q[u]*2+1],3);q0(L0,L0.dyn_ltree,N0-1),q0(L0,L0.dyn_dtree,B0-1)}function n0(L0){var N0=4093624447,B0;for(B0=0;B0<=31;B0++,N0>>>=1)if(N0&1&&L0.dyn_ltree[B0*2]!==0)return Z;if(L0.dyn_ltree[18]!==0||L0.dyn_ltree[20]!==0||L0.dyn_ltree[26]!==0)return _;for(B0=32;B0<N;B0++)if(L0.dyn_ltree[B0*2]!==0)return _;return Z}var M$=!1;function T0(L0){if(!M$)W0(),M$=!0;L0.l_desc=new h(L0.dyn_ltree,A),L0.d_desc=new h(L0.dyn_dtree,k),L0.bl_desc=new h(L0.bl_tree,j),L0.bi_buf=0,L0.bi_valid=0,I0(L0)}function V0(L0,N0,B0,Y$){D0(L0,(W<<1)+(Y$?1:0),3),s(L0,N0,B0,!0)}function X$(L0){D0(L0,R<<1,3),O0(L0,i,F),m(L0)}function p0(L0,N0,B0,Y$){var u,_0,o=0;if(L0.level>0){if(L0.strm.data_type===J)L0.strm.data_type=n0(L0);if(c0(L0,L0.l_desc),c0(L0,L0.d_desc),o=s0(L0),u=L0.opt_len+3+7>>>3,_0=L0.static_len+3+7>>>3,_0<=u)u=_0}else u=_0=B0+5;if(B0+4<=u&&N0!==-1)V0(L0,N0,B0,Y$);else if(L0.strategy===G||_0===u)D0(L0,(R<<1)+(Y$?1:0),3),z0(L0,F,L);else D0(L0,(M<<1)+(Y$?1:0),3),k0(L0,L0.l_desc.max_code+1,L0.d_desc.max_code+1,o+1),z0(L0,L0.dyn_ltree,L0.dyn_dtree);if(I0(L0),Y$)c(L0)}function l0(L0,N0,B0){if(L0.pending_buf[L0.d_buf+L0.last_lit*2]=N0>>>8&255,L0.pending_buf[L0.d_buf+L0.last_lit*2+1]=N0&255,L0.pending_buf[L0.l_buf+L0.last_lit]=B0&255,L0.last_lit++,N0===0)L0.dyn_ltree[B0*2]++;else L0.matches++,N0--,L0.dyn_ltree[(v[B0]+N+1)*2]++,L0.dyn_dtree[a(N0)*2]++;return L0.last_lit===L0.lit_bufsize-1}$._tr_init=T0,$._tr_stored_block=V0,$._tr_flush_block=p0,$._tr_tally=l0,$._tr_align=X$}),Iw=b6(($,I)=>{function G(Z,_,J,Y){var W=Z&65535|0,R=Z>>>16&65535|0,M=0;while(J!==0){M=J>2000?2000:J,J-=M;do W=W+_[Y++]|0,R=R+W|0;while(--M);W%=65521,R%=65521}return W|R<<16|0}I.exports=G}),_w=b6(($,I)=>{function G(){var J,Y=[];for(var W=0;W<256;W++){J=W;for(var R=0;R<8;R++)J=J&1?3988292384^J>>>1:J>>>1;Y[W]=J}return Y}var Z=G();function _(J,Y,W,R){var M=Z,E=R+W;J^=-1;for(var T=R;T<E;T++)J=J>>>8^M[(J^Y[T])&255];return J^-1}I.exports=_}),ra=b6(($,I)=>{I.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}}),aa=b6(($)=>{var I=s5(),G=ta(),Z=Iw(),_=_w(),J=ra(),Y=0,W=1,R=3,M=4,E=5,T=0,S=1,N=-2,B=-3,x=-5,w=-1,y=1,g=2,b=3,l=4,i=0,$0=2,Q0=8,G0=9,K0=15,t=8,P0=29,Q=256,K=Q+1+P0,F=30,L=19,H=2*K+1,v=15,q=3,P=258,O=P+q+1,A=32,k=42,j=69,h=73,a=91,J0=103,D0=113,O0=666,d=1,m=2,r=3,Y0=4,W0=3;function I0(p,A0){return p.msg=J[A0],A0}function c(p){return(p<<1)-(p>4?9:0)}function s(p){var A0=p.length;while(--A0>=0)p[A0]=0}function S0(p){var A0=p.state,v0=A0.pending;if(v0>p.avail_out)v0=p.avail_out;if(v0===0)return;if(I.arraySet(p.output,A0.pending_buf,A0.pending_out,v0,p.next_out),p.next_out+=v0,A0.pending_out+=v0,p.total_out+=v0,p.avail_out-=v0,A0.pending-=v0,A0.pending===0)A0.pending_out=0}function M0(p,A0){G._tr_flush_block(p,p.block_start>=0?p.block_start:-1,p.strstart-p.block_start,A0),p.block_start=p.strstart,S0(p.strm)}function z0(p,A0){p.pending_buf[p.pending++]=A0}function c0(p,A0){p.pending_buf[p.pending++]=A0>>>8&255,p.pending_buf[p.pending++]=A0&255}function F0(p,A0,v0,X0){var H0=p.avail_in;if(H0>X0)H0=X0;if(H0===0)return 0;if(p.avail_in-=H0,I.arraySet(A0,p.input,p.next_in,H0,v0),p.state.wrap===1)p.adler=Z(p.adler,A0,H0,v0);else if(p.state.wrap===2)p.adler=_(p.adler,A0,H0,v0);return p.next_in+=H0,p.total_in+=H0,H0}function q0(p,A0){var{max_chain_length:v0,strstart:X0}=p,H0,C0,H$=p.prev_length,d0=p.nice_match,e=p.strstart>p.w_size-O?p.strstart-(p.w_size-O):0,E0=p.window,b0=p.w_mask,f0=p.prev,z$=p.strstart+P,a0=E0[X0+H$-1],U$=E0[X0+H$];if(p.prev_length>=p.good_match)v0>>=2;if(d0>p.lookahead)d0=p.lookahead;do{if(H0=A0,E0[H0+H$]!==U$||E0[H0+H$-1]!==a0||E0[H0]!==E0[X0]||E0[++H0]!==E0[X0+1])continue;X0+=2,H0++;do;while(E0[++X0]===E0[++H0]&&E0[++X0]===E0[++H0]&&E0[++X0]===E0[++H0]&&E0[++X0]===E0[++H0]&&E0[++X0]===E0[++H0]&&E0[++X0]===E0[++H0]&&E0[++X0]===E0[++H0]&&E0[++X0]===E0[++H0]&&X0<z$);if(C0=P-(z$-X0),X0=z$-P,C0>H$){if(p.match_start=A0,H$=C0,C0>=d0)break;a0=E0[X0+H$-1],U$=E0[X0+H$]}}while((A0=f0[A0&b0])>e&&--v0!==0);if(H$<=p.lookahead)return H$;return p.lookahead}function s0(p){var A0=p.w_size,v0,X0,H0,C0,H$;do{if(C0=p.window_size-p.lookahead-p.strstart,p.strstart>=A0+(A0-O)){I.arraySet(p.window,p.window,A0,A0,0),p.match_start-=A0,p.strstart-=A0,p.block_start-=A0,X0=p.hash_size,v0=X0;do H0=p.head[--v0],p.head[v0]=H0>=A0?H0-A0:0;while(--X0);X0=A0,v0=X0;do H0=p.prev[--v0],p.prev[v0]=H0>=A0?H0-A0:0;while(--X0);C0+=A0}if(p.strm.avail_in===0)break;if(X0=F0(p.strm,p.window,p.strstart+p.lookahead,C0),p.lookahead+=X0,p.lookahead+p.insert>=q){H$=p.strstart-p.insert,p.ins_h=p.window[H$],p.ins_h=(p.ins_h<<p.hash_shift^p.window[H$+1])&p.hash_mask;while(p.insert)if(p.ins_h=(p.ins_h<<p.hash_shift^p.window[H$+q-1])&p.hash_mask,p.prev[H$&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=H$,H$++,p.insert--,p.lookahead+p.insert<q)break}}while(p.lookahead<O&&p.strm.avail_in!==0)}function k0(p,A0){var v0=65535;if(v0>p.pending_buf_size-5)v0=p.pending_buf_size-5;for(;;){if(p.lookahead<=1){if(s0(p),p.lookahead===0&&A0===Y)return d;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;var X0=p.block_start+v0;if(p.strstart===0||p.strstart>=X0){if(p.lookahead=p.strstart-X0,p.strstart=X0,M0(p,!1),p.strm.avail_out===0)return d}if(p.strstart-p.block_start>=p.w_size-O){if(M0(p,!1),p.strm.avail_out===0)return d}}if(p.insert=0,A0===M){if(M0(p,!0),p.strm.avail_out===0)return r;return Y0}if(p.strstart>p.block_start){if(M0(p,!1),p.strm.avail_out===0)return d}return d}function n0(p,A0){var v0,X0;for(;;){if(p.lookahead<O){if(s0(p),p.lookahead<O&&A0===Y)return d;if(p.lookahead===0)break}if(v0=0,p.lookahead>=q)p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+q-1])&p.hash_mask,v0=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;if(v0!==0&&p.strstart-v0<=p.w_size-O)p.match_length=q0(p,v0);if(p.match_length>=q)if(X0=G._tr_tally(p,p.strstart-p.match_start,p.match_length-q),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=q){p.match_length--;do p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+q-1])&p.hash_mask,v0=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;while(--p.match_length!==0);p.strstart++}else p.strstart+=p.match_length,p.match_length=0,p.ins_h=p.window[p.strstart],p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+1])&p.hash_mask;else X0=G._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(X0){if(M0(p,!1),p.strm.avail_out===0)return d}}if(p.insert=p.strstart<q-1?p.strstart:q-1,A0===M){if(M0(p,!0),p.strm.avail_out===0)return r;return Y0}if(p.last_lit){if(M0(p,!1),p.strm.avail_out===0)return d}return m}function M$(p,A0){var v0,X0,H0;for(;;){if(p.lookahead<O){if(s0(p),p.lookahead<O&&A0===Y)return d;if(p.lookahead===0)break}if(v0=0,p.lookahead>=q)p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+q-1])&p.hash_mask,v0=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;if(p.prev_length=p.match_length,p.prev_match=p.match_start,p.match_length=q-1,v0!==0&&p.prev_length<p.max_lazy_match&&p.strstart-v0<=p.w_size-O){if(p.match_length=q0(p,v0),p.match_length<=5&&(p.strategy===y||p.match_length===q&&p.strstart-p.match_start>4096))p.match_length=q-1}if(p.prev_length>=q&&p.match_length<=p.prev_length){H0=p.strstart+p.lookahead-q,X0=G._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-q),p.lookahead-=p.prev_length-1,p.prev_length-=2;do if(++p.strstart<=H0)p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+q-1])&p.hash_mask,v0=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;while(--p.prev_length!==0);if(p.match_available=0,p.match_length=q-1,p.strstart++,X0){if(M0(p,!1),p.strm.avail_out===0)return d}}else if(p.match_available){if(X0=G._tr_tally(p,0,p.window[p.strstart-1]),X0)M0(p,!1);if(p.strstart++,p.lookahead--,p.strm.avail_out===0)return d}else p.match_available=1,p.strstart++,p.lookahead--}if(p.match_available)X0=G._tr_tally(p,0,p.window[p.strstart-1]),p.match_available=0;if(p.insert=p.strstart<q-1?p.strstart:q-1,A0===M){if(M0(p,!0),p.strm.avail_out===0)return r;return Y0}if(p.last_lit){if(M0(p,!1),p.strm.avail_out===0)return d}return m}function T0(p,A0){var v0,X0,H0,C0,H$=p.window;for(;;){if(p.lookahead<=P){if(s0(p),p.lookahead<=P&&A0===Y)return d;if(p.lookahead===0)break}if(p.match_length=0,p.lookahead>=q&&p.strstart>0){if(H0=p.strstart-1,X0=H$[H0],X0===H$[++H0]&&X0===H$[++H0]&&X0===H$[++H0]){C0=p.strstart+P;do;while(X0===H$[++H0]&&X0===H$[++H0]&&X0===H$[++H0]&&X0===H$[++H0]&&X0===H$[++H0]&&X0===H$[++H0]&&X0===H$[++H0]&&X0===H$[++H0]&&H0<C0);if(p.match_length=P-(C0-H0),p.match_length>p.lookahead)p.match_length=p.lookahead}}if(p.match_length>=q)v0=G._tr_tally(p,1,p.match_length-q),p.lookahead-=p.match_length,p.strstart+=p.match_length,p.match_length=0;else v0=G._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(v0){if(M0(p,!1),p.strm.avail_out===0)return d}}if(p.insert=0,A0===M){if(M0(p,!0),p.strm.avail_out===0)return r;return Y0}if(p.last_lit){if(M0(p,!1),p.strm.avail_out===0)return d}return m}function V0(p,A0){var v0;for(;;){if(p.lookahead===0){if(s0(p),p.lookahead===0){if(A0===Y)return d;break}}if(p.match_length=0,v0=G._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++,v0){if(M0(p,!1),p.strm.avail_out===0)return d}}if(p.insert=0,A0===M){if(M0(p,!0),p.strm.avail_out===0)return r;return Y0}if(p.last_lit){if(M0(p,!1),p.strm.avail_out===0)return d}return m}function X$(p,A0,v0,X0,H0){this.good_length=p,this.max_lazy=A0,this.nice_length=v0,this.max_chain=X0,this.func=H0}var p0=[new X$(0,0,0,0,k0),new X$(4,4,8,4,n0),new X$(4,5,16,8,n0),new X$(4,6,32,32,n0),new X$(4,4,16,16,M$),new X$(8,16,32,32,M$),new X$(8,16,128,128,M$),new X$(8,32,128,256,M$),new X$(32,128,258,1024,M$),new X$(32,258,258,4096,M$)];function l0(p){p.window_size=2*p.w_size,s(p.head),p.max_lazy_match=p0[p.level].max_lazy,p.good_match=p0[p.level].good_length,p.nice_match=p0[p.level].nice_length,p.max_chain_length=p0[p.level].max_chain,p.strstart=0,p.block_start=0,p.lookahead=0,p.insert=0,p.match_length=p.prev_length=q-1,p.match_available=0,p.ins_h=0}function L0(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Q0,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new I.Buf16(H*2),this.dyn_dtree=new I.Buf16((2*F+1)*2),this.bl_tree=new I.Buf16((2*L+1)*2),s(this.dyn_ltree),s(this.dyn_dtree),s(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new I.Buf16(v+1),this.heap=new I.Buf16(2*K+1),s(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new I.Buf16(2*K+1),s(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function N0(p){var A0;if(!p||!p.state)return I0(p,N);if(p.total_in=p.total_out=0,p.data_type=$0,A0=p.state,A0.pending=0,A0.pending_out=0,A0.wrap<0)A0.wrap=-A0.wrap;return A0.status=A0.wrap?k:D0,p.adler=A0.wrap===2?0:1,A0.last_flush=Y,G._tr_init(A0),T}function B0(p){var A0=N0(p);if(A0===T)l0(p.state);return A0}function Y$(p,A0){if(!p||!p.state)return N;if(p.state.wrap!==2)return N;return p.state.gzhead=A0,T}function u(p,A0,v0,X0,H0,C0){if(!p)return N;var H$=1;if(A0===w)A0=6;if(X0<0)H$=0,X0=-X0;else if(X0>15)H$=2,X0-=16;if(H0<1||H0>G0||v0!==Q0||X0<8||X0>15||A0<0||A0>9||C0<0||C0>l)return I0(p,N);if(X0===8)X0=9;var d0=new L0;return p.state=d0,d0.strm=p,d0.wrap=H$,d0.gzhead=null,d0.w_bits=X0,d0.w_size=1<<d0.w_bits,d0.w_mask=d0.w_size-1,d0.hash_bits=H0+7,d0.hash_size=1<<d0.hash_bits,d0.hash_mask=d0.hash_size-1,d0.hash_shift=~~((d0.hash_bits+q-1)/q),d0.window=new I.Buf8(d0.w_size*2),d0.head=new I.Buf16(d0.hash_size),d0.prev=new I.Buf16(d0.w_size),d0.lit_bufsize=1<<H0+6,d0.pending_buf_size=d0.lit_bufsize*4,d0.pending_buf=new I.Buf8(d0.pending_buf_size),d0.d_buf=1*d0.lit_bufsize,d0.l_buf=3*d0.lit_bufsize,d0.level=A0,d0.strategy=C0,d0.method=v0,B0(p)}function _0(p,A0){return u(p,A0,Q0,K0,t,i)}function o(p,A0){var v0,X0,H0,C0;if(!p||!p.state||A0>E||A0<0)return p?I0(p,N):N;if(X0=p.state,!p.output||!p.input&&p.avail_in!==0||X0.status===O0&&A0!==M)return I0(p,p.avail_out===0?x:N);if(X0.strm=p,v0=X0.last_flush,X0.last_flush=A0,X0.status===k)if(X0.wrap===2)if(p.adler=0,z0(X0,31),z0(X0,139),z0(X0,8),!X0.gzhead)z0(X0,0),z0(X0,0),z0(X0,0),z0(X0,0),z0(X0,0),z0(X0,X0.level===9?2:X0.strategy>=g||X0.level<2?4:0),z0(X0,W0),X0.status=D0;else{if(z0(X0,(X0.gzhead.text?1:0)+(X0.gzhead.hcrc?2:0)+(!X0.gzhead.extra?0:4)+(!X0.gzhead.name?0:8)+(!X0.gzhead.comment?0:16)),z0(X0,X0.gzhead.time&255),z0(X0,X0.gzhead.time>>8&255),z0(X0,X0.gzhead.time>>16&255),z0(X0,X0.gzhead.time>>24&255),z0(X0,X0.level===9?2:X0.strategy>=g||X0.level<2?4:0),z0(X0,X0.gzhead.os&255),X0.gzhead.extra&&X0.gzhead.extra.length)z0(X0,X0.gzhead.extra.length&255),z0(X0,X0.gzhead.extra.length>>8&255);if(X0.gzhead.hcrc)p.adler=_(p.adler,X0.pending_buf,X0.pending,0);X0.gzindex=0,X0.status=j}else{var H$=Q0+(X0.w_bits-8<<4)<<8,d0=-1;if(X0.strategy>=g||X0.level<2)d0=0;else if(X0.level<6)d0=1;else if(X0.level===6)d0=2;else d0=3;if(H$|=d0<<6,X0.strstart!==0)H$|=A;if(H$+=31-H$%31,X0.status=D0,c0(X0,H$),X0.strstart!==0)c0(X0,p.adler>>>16),c0(X0,p.adler&65535);p.adler=1}if(X0.status===j)if(X0.gzhead.extra){H0=X0.pending;while(X0.gzindex<(X0.gzhead.extra.length&65535)){if(X0.pending===X0.pending_buf_size){if(X0.gzhead.hcrc&&X0.pending>H0)p.adler=_(p.adler,X0.pending_buf,X0.pending-H0,H0);if(S0(p),H0=X0.pending,X0.pending===X0.pending_buf_size)break}z0(X0,X0.gzhead.extra[X0.gzindex]&255),X0.gzindex++}if(X0.gzhead.hcrc&&X0.pending>H0)p.adler=_(p.adler,X0.pending_buf,X0.pending-H0,H0);if(X0.gzindex===X0.gzhead.extra.length)X0.gzindex=0,X0.status=h}else X0.status=h;if(X0.status===h)if(X0.gzhead.name){H0=X0.pending;do{if(X0.pending===X0.pending_buf_size){if(X0.gzhead.hcrc&&X0.pending>H0)p.adler=_(p.adler,X0.pending_buf,X0.pending-H0,H0);if(S0(p),H0=X0.pending,X0.pending===X0.pending_buf_size){C0=1;break}}if(X0.gzindex<X0.gzhead.name.length)C0=X0.gzhead.name.charCodeAt(X0.gzindex++)&255;else C0=0;z0(X0,C0)}while(C0!==0);if(X0.gzhead.hcrc&&X0.pending>H0)p.adler=_(p.adler,X0.pending_buf,X0.pending-H0,H0);if(C0===0)X0.gzindex=0,X0.status=a}else X0.status=a;if(X0.status===a)if(X0.gzhead.comment){H0=X0.pending;do{if(X0.pending===X0.pending_buf_size){if(X0.gzhead.hcrc&&X0.pending>H0)p.adler=_(p.adler,X0.pending_buf,X0.pending-H0,H0);if(S0(p),H0=X0.pending,X0.pending===X0.pending_buf_size){C0=1;break}}if(X0.gzindex<X0.gzhead.comment.length)C0=X0.gzhead.comment.charCodeAt(X0.gzindex++)&255;else C0=0;z0(X0,C0)}while(C0!==0);if(X0.gzhead.hcrc&&X0.pending>H0)p.adler=_(p.adler,X0.pending_buf,X0.pending-H0,H0);if(C0===0)X0.status=J0}else X0.status=J0;if(X0.status===J0)if(X0.gzhead.hcrc){if(X0.pending+2>X0.pending_buf_size)S0(p);if(X0.pending+2<=X0.pending_buf_size)z0(X0,p.adler&255),z0(X0,p.adler>>8&255),p.adler=0,X0.status=D0}else X0.status=D0;if(X0.pending!==0){if(S0(p),p.avail_out===0)return X0.last_flush=-1,T}else if(p.avail_in===0&&c(A0)<=c(v0)&&A0!==M)return I0(p,x);if(X0.status===O0&&p.avail_in!==0)return I0(p,x);if(p.avail_in!==0||X0.lookahead!==0||A0!==Y&&X0.status!==O0){var e=X0.strategy===g?V0(X0,A0):X0.strategy===b?T0(X0,A0):p0[X0.level].func(X0,A0);if(e===r||e===Y0)X0.status=O0;if(e===d||e===r){if(p.avail_out===0)X0.last_flush=-1;return T}if(e===m){if(A0===W)G._tr_align(X0);else if(A0!==E){if(G._tr_stored_block(X0,0,0,!1),A0===R){if(s(X0.head),X0.lookahead===0)X0.strstart=0,X0.block_start=0,X0.insert=0}}if(S0(p),p.avail_out===0)return X0.last_flush=-1,T}}if(A0!==M)return T;if(X0.wrap<=0)return S;if(X0.wrap===2)z0(X0,p.adler&255),z0(X0,p.adler>>8&255),z0(X0,p.adler>>16&255),z0(X0,p.adler>>24&255),z0(X0,p.total_in&255),z0(X0,p.total_in>>8&255),z0(X0,p.total_in>>16&255),z0(X0,p.total_in>>24&255);else c0(X0,p.adler>>>16),c0(X0,p.adler&65535);if(S0(p),X0.wrap>0)X0.wrap=-X0.wrap;return X0.pending!==0?T:S}function R0(p){var A0;if(!p||!p.state)return N;if(A0=p.state.status,A0!==k&&A0!==j&&A0!==h&&A0!==a&&A0!==J0&&A0!==D0&&A0!==O0)return I0(p,N);return p.state=null,A0===D0?I0(p,B):T}function x0(p,A0){var v0=A0.length,X0,H0,C0,H$,d0,e,E0,b0;if(!p||!p.state)return N;if(X0=p.state,H$=X0.wrap,H$===2||H$===1&&X0.status!==k||X0.lookahead)return N;if(H$===1)p.adler=Z(p.adler,A0,v0,0);if(X0.wrap=0,v0>=X0.w_size){if(H$===0)s(X0.head),X0.strstart=0,X0.block_start=0,X0.insert=0;b0=new I.Buf8(X0.w_size),I.arraySet(b0,A0,v0-X0.w_size,X0.w_size,0),A0=b0,v0=X0.w_size}d0=p.avail_in,e=p.next_in,E0=p.input,p.avail_in=v0,p.next_in=0,p.input=A0,s0(X0);while(X0.lookahead>=q){H0=X0.strstart,C0=X0.lookahead-(q-1);do X0.ins_h=(X0.ins_h<<X0.hash_shift^X0.window[H0+q-1])&X0.hash_mask,X0.prev[H0&X0.w_mask]=X0.head[X0.ins_h],X0.head[X0.ins_h]=H0,H0++;while(--C0);X0.strstart=H0,X0.lookahead=q-1,s0(X0)}return X0.strstart+=X0.lookahead,X0.block_start=X0.strstart,X0.insert=X0.lookahead,X0.lookahead=0,X0.match_length=X0.prev_length=q-1,X0.match_available=0,p.next_in=e,p.input=E0,p.avail_in=d0,X0.wrap=H$,T}$.deflateInit=_0,$.deflateInit2=u,$.deflateReset=B0,$.deflateResetKeep=N0,$.deflateSetHeader=Y$,$.deflate=o,$.deflateEnd=R0,$.deflateSetDictionary=x0,$.deflateInfo="pako deflate (from Nodeca project)"}),sa=b6(($,I)=>{var G=30,Z=12;I.exports=function(_,J){var Y,W,R,M,E,T,S,N,B,x,w,y,g,b,l,i,$0,Q0,G0,K0,t,P0,Q,K,F;Y=_.state,W=_.next_in,K=_.input,R=W+(_.avail_in-5),M=_.next_out,F=_.output,E=M-(J-_.avail_out),T=M+(_.avail_out-257),S=Y.dmax,N=Y.wsize,B=Y.whave,x=Y.wnext,w=Y.window,y=Y.hold,g=Y.bits,b=Y.lencode,l=Y.distcode,i=(1<<Y.lenbits)-1,$0=(1<<Y.distbits)-1;$:do{if(g<15)y+=K[W++]<<g,g+=8,y+=K[W++]<<g,g+=8;Q0=b[y&i];U:for(;;){if(G0=Q0>>>24,y>>>=G0,g-=G0,G0=Q0>>>16&255,G0===0)F[M++]=Q0&65535;else if(G0&16){if(K0=Q0&65535,G0&=15,G0){if(g<G0)y+=K[W++]<<g,g+=8;K0+=y&(1<<G0)-1,y>>>=G0,g-=G0}if(g<15)y+=K[W++]<<g,g+=8,y+=K[W++]<<g,g+=8;Q0=l[y&$0];I:for(;;){if(G0=Q0>>>24,y>>>=G0,g-=G0,G0=Q0>>>16&255,G0&16){if(t=Q0&65535,G0&=15,g<G0){if(y+=K[W++]<<g,g+=8,g<G0)y+=K[W++]<<g,g+=8}if(t+=y&(1<<G0)-1,t>S){_.msg="invalid distance too far back",Y.mode=G;break $}if(y>>>=G0,g-=G0,G0=M-E,t>G0){if(G0=t-G0,G0>B){if(Y.sane){_.msg="invalid distance too far back",Y.mode=G;break $}}if(P0=0,Q=w,x===0){if(P0+=N-G0,G0<K0){K0-=G0;do F[M++]=w[P0++];while(--G0);P0=M-t,Q=F}}else if(x<G0){if(P0+=N+x-G0,G0-=x,G0<K0){K0-=G0;do F[M++]=w[P0++];while(--G0);if(P0=0,x<K0){G0=x,K0-=G0;do F[M++]=w[P0++];while(--G0);P0=M-t,Q=F}}}else if(P0+=x-G0,G0<K0){K0-=G0;do F[M++]=w[P0++];while(--G0);P0=M-t,Q=F}while(K0>2)F[M++]=Q[P0++],F[M++]=Q[P0++],F[M++]=Q[P0++],K0-=3;if(K0){if(F[M++]=Q[P0++],K0>1)F[M++]=Q[P0++]}}else{P0=M-t;do F[M++]=F[P0++],F[M++]=F[P0++],F[M++]=F[P0++],K0-=3;while(K0>2);if(K0){if(F[M++]=F[P0++],K0>1)F[M++]=F[P0++]}}}else if((G0&64)===0){Q0=l[(Q0&65535)+(y&(1<<G0)-1)];continue I}else{_.msg="invalid distance code",Y.mode=G;break $}break}}else if((G0&64)===0){Q0=b[(Q0&65535)+(y&(1<<G0)-1)];continue U}else if(G0&32){Y.mode=Z;break $}else{_.msg="invalid literal/length code",Y.mode=G;break $}break}}while(W<R&&M<T);K0=g>>3,W-=K0,g-=K0<<3,y&=(1<<g)-1,_.next_in=W,_.next_out=M,_.avail_in=W<R?5+(R-W):5-(W-R),_.avail_out=M<T?257+(T-M):257-(M-T),Y.hold=y,Y.bits=g;return}}),ea=b6(($,I)=>{var G=s5(),Z=15,_=852,J=592,Y=0,W=1,R=2,M=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],E=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],T=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],S=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];I.exports=function(N,B,x,w,y,g,b,l){var i=l.bits,$0=0,Q0=0,G0=0,K0=0,t=0,P0=0,Q=0,K=0,F=0,L=0,H,v,q,P,O,A=null,k=0,j,h=new G.Buf16(Z+1),a=new G.Buf16(Z+1),J0=null,D0=0,O0,d,m;for($0=0;$0<=Z;$0++)h[$0]=0;for(Q0=0;Q0<w;Q0++)h[B[x+Q0]]++;t=i;for(K0=Z;K0>=1;K0--)if(h[K0]!==0)break;if(t>K0)t=K0;if(K0===0)return y[g++]=20971520,y[g++]=20971520,l.bits=1,0;for(G0=1;G0<K0;G0++)if(h[G0]!==0)break;if(t<G0)t=G0;K=1;for($0=1;$0<=Z;$0++)if(K<<=1,K-=h[$0],K<0)return-1;if(K>0&&(N===Y||K0!==1))return-1;a[1]=0;for($0=1;$0<Z;$0++)a[$0+1]=a[$0]+h[$0];for(Q0=0;Q0<w;Q0++)if(B[x+Q0]!==0)b[a[B[x+Q0]]++]=Q0;if(N===Y)A=J0=b,j=19;else if(N===W)A=M,k-=257,J0=E,D0-=257,j=256;else A=T,J0=S,j=-1;if(L=0,Q0=0,$0=G0,O=g,P0=t,Q=0,q=-1,F=1<<t,P=F-1,N===W&&F>_||N===R&&F>J)return 1;for(;;){if(O0=$0-Q,b[Q0]<j)d=0,m=b[Q0];else if(b[Q0]>j)d=J0[D0+b[Q0]],m=A[k+b[Q0]];else d=96,m=0;H=1<<$0-Q,v=1<<P0,G0=v;do v-=H,y[O+(L>>Q)+v]=O0<<24|d<<16|m|0;while(v!==0);H=1<<$0-1;while(L&H)H>>=1;if(H!==0)L&=H-1,L+=H;else L=0;if(Q0++,--h[$0]===0){if($0===K0)break;$0=B[x+b[Q0]]}if($0>t&&(L&P)!==q){if(Q===0)Q=t;O+=G0,P0=$0-Q,K=1<<P0;while(P0+Q<K0){if(K-=h[P0+Q],K<=0)break;P0++,K<<=1}if(F+=1<<P0,N===W&&F>_||N===R&&F>J)return 1;q=L&P,y[q]=t<<24|P0<<16|O-g|0}}if(L!==0)y[O+L]=$0-Q<<24|4194304|0;return l.bits=t,0}}),$s=b6(($)=>{var I=s5(),G=Iw(),Z=_w(),_=sa(),J=ea(),Y=0,W=1,R=2,M=4,E=5,T=6,S=0,N=1,B=2,x=-2,w=-3,y=-4,g=-5,b=8,l=1,i=2,$0=3,Q0=4,G0=5,K0=6,t=7,P0=8,Q=9,K=10,F=11,L=12,H=13,v=14,q=15,P=16,O=17,A=18,k=19,j=20,h=21,a=22,J0=23,D0=24,O0=25,d=26,m=27,r=28,Y0=29,W0=30,I0=31,c=32,s=852,S0=592,M0=15,z0=M0;function c0(u){return(u>>>24&255)+(u>>>8&65280)+((u&65280)<<8)+((u&255)<<24)}function F0(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new I.Buf16(320),this.work=new I.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function q0(u){var _0;if(!u||!u.state)return x;if(_0=u.state,u.total_in=u.total_out=_0.total=0,u.msg="",_0.wrap)u.adler=_0.wrap&1;return _0.mode=l,_0.last=0,_0.havedict=0,_0.dmax=32768,_0.head=null,_0.hold=0,_0.bits=0,_0.lencode=_0.lendyn=new I.Buf32(s),_0.distcode=_0.distdyn=new I.Buf32(S0),_0.sane=1,_0.back=-1,S}function s0(u){var _0;if(!u||!u.state)return x;return _0=u.state,_0.wsize=0,_0.whave=0,_0.wnext=0,q0(u)}function k0(u,_0){var o,R0;if(!u||!u.state)return x;if(R0=u.state,_0<0)o=0,_0=-_0;else if(o=(_0>>4)+1,_0<48)_0&=15;if(_0&&(_0<8||_0>15))return x;if(R0.window!==null&&R0.wbits!==_0)R0.window=null;return R0.wrap=o,R0.wbits=_0,s0(u)}function n0(u,_0){var o,R0;if(!u)return x;if(R0=new F0,u.state=R0,R0.window=null,o=k0(u,_0),o!==S)u.state=null;return o}function M$(u){return n0(u,z0)}var T0=!0,V0,X$;function p0(u){if(T0){var _0;V0=new I.Buf32(512),X$=new I.Buf32(32),_0=0;while(_0<144)u.lens[_0++]=8;while(_0<256)u.lens[_0++]=9;while(_0<280)u.lens[_0++]=7;while(_0<288)u.lens[_0++]=8;J(W,u.lens,0,288,V0,0,u.work,{bits:9}),_0=0;while(_0<32)u.lens[_0++]=5;J(R,u.lens,0,32,X$,0,u.work,{bits:5}),T0=!1}u.lencode=V0,u.lenbits=9,u.distcode=X$,u.distbits=5}function l0(u,_0,o,R0){var x0,p=u.state;if(p.window===null)p.wsize=1<<p.wbits,p.wnext=0,p.whave=0,p.window=new I.Buf8(p.wsize);if(R0>=p.wsize)I.arraySet(p.window,_0,o-p.wsize,p.wsize,0),p.wnext=0,p.whave=p.wsize;else{if(x0=p.wsize-p.wnext,x0>R0)x0=R0;if(I.arraySet(p.window,_0,o-R0,x0,p.wnext),R0-=x0,R0)I.arraySet(p.window,_0,o-R0,R0,0),p.wnext=R0,p.whave=p.wsize;else{if(p.wnext+=x0,p.wnext===p.wsize)p.wnext=0;if(p.whave<p.wsize)p.whave+=x0}}return 0}function L0(u,_0){var o,R0,x0,p,A0,v0,X0,H0,C0,H$,d0,e,E0,b0,f0=0,z$,a0,U$,c$,K$,L$,B$,Z$,I$=new I.Buf8(4),I1,C$,g$=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!u||!u.state||!u.output||!u.input&&u.avail_in!==0)return x;if(o=u.state,o.mode===L)o.mode=H;A0=u.next_out,x0=u.output,X0=u.avail_out,p=u.next_in,R0=u.input,v0=u.avail_in,H0=o.hold,C0=o.bits,H$=v0,d0=X0,Z$=S;$:for(;;)switch(o.mode){case l:if(o.wrap===0){o.mode=H;break}while(C0<16){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(o.wrap&2&&H0===35615){o.check=0,I$[0]=H0&255,I$[1]=H0>>>8&255,o.check=Z(o.check,I$,2,0),H0=0,C0=0,o.mode=i;break}if(o.flags=0,o.head)o.head.done=!1;if(!(o.wrap&1)||(((H0&255)<<8)+(H0>>8))%31){u.msg="incorrect header check",o.mode=W0;break}if((H0&15)!==b){u.msg="unknown compression method",o.mode=W0;break}if(H0>>>=4,C0-=4,B$=(H0&15)+8,o.wbits===0)o.wbits=B$;else if(B$>o.wbits){u.msg="invalid window size",o.mode=W0;break}o.dmax=1<<B$,u.adler=o.check=1,o.mode=H0&512?K:L,H0=0,C0=0;break;case i:while(C0<16){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(o.flags=H0,(o.flags&255)!==b){u.msg="unknown compression method",o.mode=W0;break}if(o.flags&57344){u.msg="unknown header flags set",o.mode=W0;break}if(o.head)o.head.text=H0>>8&1;if(o.flags&512)I$[0]=H0&255,I$[1]=H0>>>8&255,o.check=Z(o.check,I$,2,0);H0=0,C0=0,o.mode=$0;case $0:while(C0<32){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(o.head)o.head.time=H0;if(o.flags&512)I$[0]=H0&255,I$[1]=H0>>>8&255,I$[2]=H0>>>16&255,I$[3]=H0>>>24&255,o.check=Z(o.check,I$,4,0);H0=0,C0=0,o.mode=Q0;case Q0:while(C0<16){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(o.head)o.head.xflags=H0&255,o.head.os=H0>>8;if(o.flags&512)I$[0]=H0&255,I$[1]=H0>>>8&255,o.check=Z(o.check,I$,2,0);H0=0,C0=0,o.mode=G0;case G0:if(o.flags&1024){while(C0<16){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(o.length=H0,o.head)o.head.extra_len=H0;if(o.flags&512)I$[0]=H0&255,I$[1]=H0>>>8&255,o.check=Z(o.check,I$,2,0);H0=0,C0=0}else if(o.head)o.head.extra=null;o.mode=K0;case K0:if(o.flags&1024){if(e=o.length,e>v0)e=v0;if(e){if(o.head){if(B$=o.head.extra_len-o.length,!o.head.extra)o.head.extra=Array(o.head.extra_len);I.arraySet(o.head.extra,R0,p,e,B$)}if(o.flags&512)o.check=Z(o.check,R0,e,p);v0-=e,p+=e,o.length-=e}if(o.length)break $}o.length=0,o.mode=t;case t:if(o.flags&2048){if(v0===0)break $;e=0;do if(B$=R0[p+e++],o.head&&B$&&o.length<65536)o.head.name+=String.fromCharCode(B$);while(B$&&e<v0);if(o.flags&512)o.check=Z(o.check,R0,e,p);if(v0-=e,p+=e,B$)break $}else if(o.head)o.head.name=null;o.length=0,o.mode=P0;case P0:if(o.flags&4096){if(v0===0)break $;e=0;do if(B$=R0[p+e++],o.head&&B$&&o.length<65536)o.head.comment+=String.fromCharCode(B$);while(B$&&e<v0);if(o.flags&512)o.check=Z(o.check,R0,e,p);if(v0-=e,p+=e,B$)break $}else if(o.head)o.head.comment=null;o.mode=Q;case Q:if(o.flags&512){while(C0<16){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(H0!==(o.check&65535)){u.msg="header crc mismatch",o.mode=W0;break}H0=0,C0=0}if(o.head)o.head.hcrc=o.flags>>9&1,o.head.done=!0;u.adler=o.check=0,o.mode=L;break;case K:while(C0<32){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}u.adler=o.check=c0(H0),H0=0,C0=0,o.mode=F;case F:if(o.havedict===0)return u.next_out=A0,u.avail_out=X0,u.next_in=p,u.avail_in=v0,o.hold=H0,o.bits=C0,B;u.adler=o.check=1,o.mode=L;case L:if(_0===E||_0===T)break $;case H:if(o.last){H0>>>=C0&7,C0-=C0&7,o.mode=m;break}while(C0<3){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}switch(o.last=H0&1,H0>>>=1,C0-=1,H0&3){case 0:o.mode=v;break;case 1:if(p0(o),o.mode=j,_0===T){H0>>>=2,C0-=2;break $}break;case 2:o.mode=O;break;case 3:u.msg="invalid block type",o.mode=W0}H0>>>=2,C0-=2;break;case v:H0>>>=C0&7,C0-=C0&7;while(C0<32){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if((H0&65535)!==(H0>>>16^65535)){u.msg="invalid stored block lengths",o.mode=W0;break}if(o.length=H0&65535,H0=0,C0=0,o.mode=q,_0===T)break $;case q:o.mode=P;case P:if(e=o.length,e){if(e>v0)e=v0;if(e>X0)e=X0;if(e===0)break $;I.arraySet(x0,R0,p,e,A0),v0-=e,p+=e,X0-=e,A0+=e,o.length-=e;break}o.mode=L;break;case O:while(C0<14){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(o.nlen=(H0&31)+257,H0>>>=5,C0-=5,o.ndist=(H0&31)+1,H0>>>=5,C0-=5,o.ncode=(H0&15)+4,H0>>>=4,C0-=4,o.nlen>286||o.ndist>30){u.msg="too many length or distance symbols",o.mode=W0;break}o.have=0,o.mode=A;case A:while(o.have<o.ncode){while(C0<3){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}o.lens[g$[o.have++]]=H0&7,H0>>>=3,C0-=3}while(o.have<19)o.lens[g$[o.have++]]=0;if(o.lencode=o.lendyn,o.lenbits=7,I1={bits:o.lenbits},Z$=J(Y,o.lens,0,19,o.lencode,0,o.work,I1),o.lenbits=I1.bits,Z$){u.msg="invalid code lengths set",o.mode=W0;break}o.have=0,o.mode=k;case k:while(o.have<o.nlen+o.ndist){for(;;){if(f0=o.lencode[H0&(1<<o.lenbits)-1],z$=f0>>>24,a0=f0>>>16&255,U$=f0&65535,z$<=C0)break;if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(U$<16)H0>>>=z$,C0-=z$,o.lens[o.have++]=U$;else{if(U$===16){C$=z$+2;while(C0<C$){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(H0>>>=z$,C0-=z$,o.have===0){u.msg="invalid bit length repeat",o.mode=W0;break}B$=o.lens[o.have-1],e=3+(H0&3),H0>>>=2,C0-=2}else if(U$===17){C$=z$+3;while(C0<C$){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}H0>>>=z$,C0-=z$,B$=0,e=3+(H0&7),H0>>>=3,C0-=3}else{C$=z$+7;while(C0<C$){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}H0>>>=z$,C0-=z$,B$=0,e=11+(H0&127),H0>>>=7,C0-=7}if(o.have+e>o.nlen+o.ndist){u.msg="invalid bit length repeat",o.mode=W0;break}while(e--)o.lens[o.have++]=B$}}if(o.mode===W0)break;if(o.lens[256]===0){u.msg="invalid code -- missing end-of-block",o.mode=W0;break}if(o.lenbits=9,I1={bits:o.lenbits},Z$=J(W,o.lens,0,o.nlen,o.lencode,0,o.work,I1),o.lenbits=I1.bits,Z$){u.msg="invalid literal/lengths set",o.mode=W0;break}if(o.distbits=6,o.distcode=o.distdyn,I1={bits:o.distbits},Z$=J(R,o.lens,o.nlen,o.ndist,o.distcode,0,o.work,I1),o.distbits=I1.bits,Z$){u.msg="invalid distances set",o.mode=W0;break}if(o.mode=j,_0===T)break $;case j:o.mode=h;case h:if(v0>=6&&X0>=258){if(u.next_out=A0,u.avail_out=X0,u.next_in=p,u.avail_in=v0,o.hold=H0,o.bits=C0,_(u,d0),A0=u.next_out,x0=u.output,X0=u.avail_out,p=u.next_in,R0=u.input,v0=u.avail_in,H0=o.hold,C0=o.bits,o.mode===L)o.back=-1;break}o.back=0;for(;;){if(f0=o.lencode[H0&(1<<o.lenbits)-1],z$=f0>>>24,a0=f0>>>16&255,U$=f0&65535,z$<=C0)break;if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(a0&&(a0&240)===0){c$=z$,K$=a0,L$=U$;for(;;){if(f0=o.lencode[L$+((H0&(1<<c$+K$)-1)>>c$)],z$=f0>>>24,a0=f0>>>16&255,U$=f0&65535,c$+z$<=C0)break;if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}H0>>>=c$,C0-=c$,o.back+=c$}if(H0>>>=z$,C0-=z$,o.back+=z$,o.length=U$,a0===0){o.mode=d;break}if(a0&32){o.back=-1,o.mode=L;break}if(a0&64){u.msg="invalid literal/length code",o.mode=W0;break}o.extra=a0&15,o.mode=a;case a:if(o.extra){C$=o.extra;while(C0<C$){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}o.length+=H0&(1<<o.extra)-1,H0>>>=o.extra,C0-=o.extra,o.back+=o.extra}o.was=o.length,o.mode=J0;case J0:for(;;){if(f0=o.distcode[H0&(1<<o.distbits)-1],z$=f0>>>24,a0=f0>>>16&255,U$=f0&65535,z$<=C0)break;if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if((a0&240)===0){c$=z$,K$=a0,L$=U$;for(;;){if(f0=o.distcode[L$+((H0&(1<<c$+K$)-1)>>c$)],z$=f0>>>24,a0=f0>>>16&255,U$=f0&65535,c$+z$<=C0)break;if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}H0>>>=c$,C0-=c$,o.back+=c$}if(H0>>>=z$,C0-=z$,o.back+=z$,a0&64){u.msg="invalid distance code",o.mode=W0;break}o.offset=U$,o.extra=a0&15,o.mode=D0;case D0:if(o.extra){C$=o.extra;while(C0<C$){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}o.offset+=H0&(1<<o.extra)-1,H0>>>=o.extra,C0-=o.extra,o.back+=o.extra}if(o.offset>o.dmax){u.msg="invalid distance too far back",o.mode=W0;break}o.mode=O0;case O0:if(X0===0)break $;if(e=d0-X0,o.offset>e){if(e=o.offset-e,e>o.whave){if(o.sane){u.msg="invalid distance too far back",o.mode=W0;break}}if(e>o.wnext)e-=o.wnext,E0=o.wsize-e;else E0=o.wnext-e;if(e>o.length)e=o.length;b0=o.window}else b0=x0,E0=A0-o.offset,e=o.length;if(e>X0)e=X0;X0-=e,o.length-=e;do x0[A0++]=b0[E0++];while(--e);if(o.length===0)o.mode=h;break;case d:if(X0===0)break $;x0[A0++]=o.length,X0--,o.mode=h;break;case m:if(o.wrap){while(C0<32){if(v0===0)break $;v0--,H0|=R0[p++]<<C0,C0+=8}if(d0-=X0,u.total_out+=d0,o.total+=d0,d0)u.adler=o.check=o.flags?Z(o.check,x0,d0,A0-d0):G(o.check,x0,d0,A0-d0);if(d0=X0,(o.flags?H0:c0(H0))!==o.check){u.msg="incorrect data check",o.mode=W0;break}H0=0,C0=0}o.mode=r;case r:if(o.wrap&&o.flags){while(C0<32){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(H0!==(o.total&4294967295)){u.msg="incorrect length check",o.mode=W0;break}H0=0,C0=0}o.mode=Y0;case Y0:Z$=N;break $;case W0:Z$=w;break $;case I0:return y;case c:default:return x}if(u.next_out=A0,u.avail_out=X0,u.next_in=p,u.avail_in=v0,o.hold=H0,o.bits=C0,o.wsize||d0!==u.avail_out&&o.mode<W0&&(o.mode<m||_0!==M)){if(l0(u,u.output,u.next_out,d0-u.avail_out))return o.mode=I0,y}if(H$-=u.avail_in,d0-=u.avail_out,u.total_in+=H$,u.total_out+=d0,o.total+=d0,o.wrap&&d0)u.adler=o.check=o.flags?Z(o.check,x0,d0,u.next_out-d0):G(o.check,x0,d0,u.next_out-d0);if(u.data_type=o.bits+(o.last?64:0)+(o.mode===L?128:0)+(o.mode===j||o.mode===q?256:0),(H$===0&&d0===0||_0===M)&&Z$===S)Z$=g;return Z$}function N0(u){if(!u||!u.state)return x;var _0=u.state;if(_0.window)_0.window=null;return u.state=null,S}function B0(u,_0){var o;if(!u||!u.state)return x;if(o=u.state,(o.wrap&2)===0)return x;return o.head=_0,_0.done=!1,S}function Y$(u,_0){var o=_0.length,R0,x0,p;if(!u||!u.state)return x;if(R0=u.state,R0.wrap!==0&&R0.mode!==F)return x;if(R0.mode===F){if(x0=1,x0=G(x0,_0,o,0),x0!==R0.check)return w}if(p=l0(u,_0,o,o),p)return R0.mode=I0,y;return R0.havedict=1,S}$.inflateReset=s0,$.inflateReset2=k0,$.inflateResetKeep=q0,$.inflateInit=M$,$.inflateInit2=n0,$.inflate=L0,$.inflateEnd=N0,$.inflateGetHeader=B0,$.inflateSetDictionary=Y$,$.inflateInfo="pako inflate (from Nodeca project)"}),Us=b6(($,I)=>{I.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}}),Is=b6(($)=>{var I=(uE(),V$(hE)),G=oa(),Z=aa(),_=$s(),J=Us();for(Y in J)$[Y]=J[Y];var Y;$.NONE=0,$.DEFLATE=1,$.INFLATE=2,$.GZIP=3,$.GUNZIP=4,$.DEFLATERAW=5,$.INFLATERAW=6,$.UNZIP=7;var W=31,R=139;function M(E){if(typeof E!=="number"||E<$.DEFLATE||E>$.UNZIP)throw TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=E,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}M.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}if(this.pending_close=!1,I(this.init_done,"close before init"),I(this.mode<=$.UNZIP),this.mode===$.DEFLATE||this.mode===$.GZIP||this.mode===$.DEFLATERAW)Z.deflateEnd(this.strm);else if(this.mode===$.INFLATE||this.mode===$.GUNZIP||this.mode===$.INFLATERAW||this.mode===$.UNZIP)_.inflateEnd(this.strm);this.mode=$.NONE,this.dictionary=null},M.prototype.write=function(E,T,S,N,B,x,w){return this._write(!0,E,T,S,N,B,x,w)},M.prototype.writeSync=function(E,T,S,N,B,x,w){return this._write(!1,E,T,S,N,B,x,w)},M.prototype._write=function(E,T,S,N,B,x,w,y){if(I.equal(arguments.length,8),I(this.init_done,"write before init"),I(this.mode!==$.NONE,"already finalized"),I.equal(!1,this.write_in_progress,"write already in progress"),I.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,I.equal(!1,T===void 0,"must provide flush value"),this.write_in_progress=!0,T!==$.Z_NO_FLUSH&&T!==$.Z_PARTIAL_FLUSH&&T!==$.Z_SYNC_FLUSH&&T!==$.Z_FULL_FLUSH&&T!==$.Z_FINISH&&T!==$.Z_BLOCK)throw Error("Invalid flush value");if(S==null)S=Buffer.alloc(0),B=0,N=0;if(this.strm.avail_in=B,this.strm.input=S,this.strm.next_in=N,this.strm.avail_out=y,this.strm.output=x,this.strm.next_out=w,this.flush=T,!E){if(this._process(),this._checkError())return this._afterSync();return}var g=this;return process.nextTick(function(){g._process(),g._after()}),this},M.prototype._afterSync=function(){var E=this.strm.avail_out,T=this.strm.avail_in;return this.write_in_progress=!1,[T,E]},M.prototype._process=function(){var E=null;switch(this.mode){case $.DEFLATE:case $.GZIP:case $.DEFLATERAW:this.err=Z.deflate(this.strm,this.flush);break;case $.UNZIP:if(this.strm.avail_in>0)E=this.strm.next_in;switch(this.gzip_id_bytes_read){case 0:if(E===null)break;if(this.strm.input[E]===W){if(this.gzip_id_bytes_read=1,E++,this.strm.avail_in===1)break}else{this.mode=$.INFLATE;break}case 1:if(E===null)break;if(this.strm.input[E]===R)this.gzip_id_bytes_read=2,this.mode=$.GUNZIP;else this.mode=$.INFLATE;break;default:throw Error("invalid number of gzip magic number bytes read")}case $.INFLATE:case $.GUNZIP:case $.INFLATERAW:if(this.err=_.inflate(this.strm,this.flush),this.err===$.Z_NEED_DICT&&this.dictionary){if(this.err=_.inflateSetDictionary(this.strm,this.dictionary),this.err===$.Z_OK)this.err=_.inflate(this.strm,this.flush);else if(this.err===$.Z_DATA_ERROR)this.err=$.Z_NEED_DICT}while(this.strm.avail_in>0&&this.mode===$.GUNZIP&&this.err===$.Z_STREAM_END&&this.strm.next_in[0]!==0)this.reset(),this.err=_.inflate(this.strm,this.flush);break;default:throw Error("Unknown mode "+this.mode)}},M.prototype._checkError=function(){switch(this.err){case $.Z_OK:case $.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===$.Z_FINISH)return this._error("unexpected end of file"),!1;break;case $.Z_STREAM_END:break;case $.Z_NEED_DICT:if(this.dictionary==null)this._error("Missing dictionary");else this._error("Bad dictionary");return!1;default:return this._error("Zlib error"),!1}return!0},M.prototype._after=function(){if(!this._checkError())return;var E=this.strm.avail_out,T=this.strm.avail_in;if(this.write_in_progress=!1,this.callback(T,E),this.pending_close)this.close()},M.prototype._error=function(E){if(this.strm.msg)E=this.strm.msg;if(this.onerror(E,this.err),this.write_in_progress=!1,this.pending_close)this.close()},M.prototype.init=function(E,T,S,N,B){I(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),I(E>=8&&E<=15,"invalid windowBits"),I(T>=-1&&T<=9,"invalid compression level"),I(S>=1&&S<=9,"invalid memlevel"),I(N===$.Z_FILTERED||N===$.Z_HUFFMAN_ONLY||N===$.Z_RLE||N===$.Z_FIXED||N===$.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(T,E,S,N,B),this._setDictionary()},M.prototype.params=function(){throw Error("deflateParams Not supported")},M.prototype.reset=function(){this._reset(),this._setDictionary()},M.prototype._init=function(E,T,S,N,B){if(this.level=E,this.windowBits=T,this.memLevel=S,this.strategy=N,this.flush=$.Z_NO_FLUSH,this.err=$.Z_OK,this.mode===$.GZIP||this.mode===$.GUNZIP)this.windowBits+=16;if(this.mode===$.UNZIP)this.windowBits+=32;if(this.mode===$.DEFLATERAW||this.mode===$.INFLATERAW)this.windowBits=-1*this.windowBits;switch(this.strm=new G,this.mode){case $.DEFLATE:case $.GZIP:case $.DEFLATERAW:this.err=Z.deflateInit2(this.strm,this.level,$.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case $.INFLATE:case $.GUNZIP:case $.INFLATERAW:case $.UNZIP:this.err=_.inflateInit2(this.strm,this.windowBits);break;default:throw Error("Unknown mode "+this.mode)}if(this.err!==$.Z_OK)this._error("Init error");this.dictionary=B,this.write_in_progress=!1,this.init_done=!0},M.prototype._setDictionary=function(){if(this.dictionary==null)return;switch(this.err=$.Z_OK,this.mode){case $.DEFLATE:case $.DEFLATERAW:this.err=Z.deflateSetDictionary(this.strm,this.dictionary);break;default:break}if(this.err!==$.Z_OK)this._error("Failed to set dictionary")},M.prototype._reset=function(){switch(this.err=$.Z_OK,this.mode){case $.DEFLATE:case $.DEFLATERAW:case $.GZIP:this.err=Z.deflateReset(this.strm);break;case $.INFLATE:case $.INFLATERAW:case $.GUNZIP:this.err=_.inflateReset(this.strm);break;default:break}if(this.err!==$.Z_OK)this._error("Failed to reset stream")},$.Zlib=M}),Xw=b6(($)=>{var I=(u1(),V$(h1)).Buffer,G=w4().Transform,Z=Is(),_=(C2(),V$(v2)),J=(uE(),V$(hE)).ok,Y=(u1(),V$(h1)).kMaxLength,W="Cannot create final Buffer. It would be larger than 0x"+Y.toString(16)+" bytes";Z.Z_MIN_WINDOWBITS=8,Z.Z_MAX_WINDOWBITS=15,Z.Z_DEFAULT_WINDOWBITS=15,Z.Z_MIN_CHUNK=64,Z.Z_MAX_CHUNK=1/0,Z.Z_DEFAULT_CHUNK=16384,Z.Z_MIN_MEMLEVEL=1,Z.Z_MAX_MEMLEVEL=9,Z.Z_DEFAULT_MEMLEVEL=8,Z.Z_MIN_LEVEL=-1,Z.Z_MAX_LEVEL=9,Z.Z_DEFAULT_LEVEL=Z.Z_DEFAULT_COMPRESSION;var R=Object.keys(Z);for(E=0;E<R.length;E++)if(M=R[E],M.match(/^Z/))Object.defineProperty($,M,{enumerable:!0,value:Z[M],writable:!1});var M,E,T={Z_OK:Z.Z_OK,Z_STREAM_END:Z.Z_STREAM_END,Z_NEED_DICT:Z.Z_NEED_DICT,Z_ERRNO:Z.Z_ERRNO,Z_STREAM_ERROR:Z.Z_STREAM_ERROR,Z_DATA_ERROR:Z.Z_DATA_ERROR,Z_MEM_ERROR:Z.Z_MEM_ERROR,Z_BUF_ERROR:Z.Z_BUF_ERROR,Z_VERSION_ERROR:Z.Z_VERSION_ERROR},S=Object.keys(T);for(B=0;B<S.length;B++)N=S[B],T[T[N]]=N;var N,B;Object.defineProperty($,"codes",{enumerable:!0,value:Object.freeze(T),writable:!1}),$.Deflate=y,$.Inflate=g,$.Gzip=b,$.Gunzip=l,$.DeflateRaw=i,$.InflateRaw=$0,$.Unzip=Q0,$.createDeflate=function(Q){return new y(Q)},$.createInflate=function(Q){return new g(Q)},$.createDeflateRaw=function(Q){return new i(Q)},$.createInflateRaw=function(Q){return new $0(Q)},$.createGzip=function(Q){return new b(Q)},$.createGunzip=function(Q){return new l(Q)},$.createUnzip=function(Q){return new Q0(Q)},$.deflate=function(Q,K,F){if(typeof K==="function")F=K,K={};return x(new y(K),Q,F)},$.deflateSync=function(Q,K){return w(new y(K),Q)},$.gzip=function(Q,K,F){if(typeof K==="function")F=K,K={};return x(new b(K),Q,F)},$.gzipSync=function(Q,K){return w(new b(K),Q)},$.deflateRaw=function(Q,K,F){if(typeof K==="function")F=K,K={};return x(new i(K),Q,F)},$.deflateRawSync=function(Q,K){return w(new i(K),Q)},$.unzip=function(Q,K,F){if(typeof K==="function")F=K,K={};return x(new Q0(K),Q,F)},$.unzipSync=function(Q,K){return w(new Q0(K),Q)},$.inflate=function(Q,K,F){if(typeof K==="function")F=K,K={};return x(new g(K),Q,F)},$.inflateSync=function(Q,K){return w(new g(K),Q)},$.gunzip=function(Q,K,F){if(typeof K==="function")F=K,K={};return x(new l(K),Q,F)},$.gunzipSync=function(Q,K){return w(new l(K),Q)},$.inflateRaw=function(Q,K,F){if(typeof K==="function")F=K,K={};return x(new $0(K),Q,F)},$.inflateRawSync=function(Q,K){return w(new $0(K),Q)};function x(Q,K,F){var L=[],H=0;Q.on("error",q),Q.on("end",P),Q.end(K),v();function v(){var O;while((O=Q.read())!==null)L.push(O),H+=O.length;Q.once("readable",v)}function q(O){Q.removeListener("end",P),Q.removeListener("readable",v),F(O)}function P(){var O,A=null;if(H>=Y)A=RangeError(W);else O=I.concat(L,H);L=[],Q.close(),F(A,O)}}function w(Q,K){if(typeof K==="string")K=I.from(K);if(!I.isBuffer(K))throw TypeError("Not a string or buffer");var F=Q._finishFlushFlag;return Q._processChunk(K,F)}function y(Q){if(!(this instanceof y))return new y(Q);K0.call(this,Q,Z.DEFLATE)}function g(Q){if(!(this instanceof g))return new g(Q);K0.call(this,Q,Z.INFLATE)}function b(Q){if(!(this instanceof b))return new b(Q);K0.call(this,Q,Z.GZIP)}function l(Q){if(!(this instanceof l))return new l(Q);K0.call(this,Q,Z.GUNZIP)}function i(Q){if(!(this instanceof i))return new i(Q);K0.call(this,Q,Z.DEFLATERAW)}function $0(Q){if(!(this instanceof $0))return new $0(Q);K0.call(this,Q,Z.INFLATERAW)}function Q0(Q){if(!(this instanceof Q0))return new Q0(Q);K0.call(this,Q,Z.UNZIP)}function G0(Q){return Q===Z.Z_NO_FLUSH||Q===Z.Z_PARTIAL_FLUSH||Q===Z.Z_SYNC_FLUSH||Q===Z.Z_FULL_FLUSH||Q===Z.Z_FINISH||Q===Z.Z_BLOCK}function K0(Q,K){var F=this;if(this._opts=Q=Q||{},this._chunkSize=Q.chunkSize||$.Z_DEFAULT_CHUNK,G.call(this,Q),Q.flush&&!G0(Q.flush))throw Error("Invalid flush flag: "+Q.flush);if(Q.finishFlush&&!G0(Q.finishFlush))throw Error("Invalid flush flag: "+Q.finishFlush);if(this._flushFlag=Q.flush||Z.Z_NO_FLUSH,this._finishFlushFlag=typeof Q.finishFlush<"u"?Q.finishFlush:Z.Z_FINISH,Q.chunkSize){if(Q.chunkSize<$.Z_MIN_CHUNK||Q.chunkSize>$.Z_MAX_CHUNK)throw Error("Invalid chunk size: "+Q.chunkSize)}if(Q.windowBits){if(Q.windowBits<$.Z_MIN_WINDOWBITS||Q.windowBits>$.Z_MAX_WINDOWBITS)throw Error("Invalid windowBits: "+Q.windowBits)}if(Q.level){if(Q.level<$.Z_MIN_LEVEL||Q.level>$.Z_MAX_LEVEL)throw Error("Invalid compression level: "+Q.level)}if(Q.memLevel){if(Q.memLevel<$.Z_MIN_MEMLEVEL||Q.memLevel>$.Z_MAX_MEMLEVEL)throw Error("Invalid memLevel: "+Q.memLevel)}if(Q.strategy){if(Q.strategy!=$.Z_FILTERED&&Q.strategy!=$.Z_HUFFMAN_ONLY&&Q.strategy!=$.Z_RLE&&Q.strategy!=$.Z_FIXED&&Q.strategy!=$.Z_DEFAULT_STRATEGY)throw Error("Invalid strategy: "+Q.strategy)}if(Q.dictionary){if(!I.isBuffer(Q.dictionary))throw Error("Invalid dictionary: it should be a Buffer instance")}this._handle=new Z.Zlib(K);var L=this;this._hadError=!1,this._handle.onerror=function(q,P){t(L),L._hadError=!0;var O=Error(q);O.errno=P,O.code=$.codes[P],L.emit("error",O)};var H=$.Z_DEFAULT_COMPRESSION;if(typeof Q.level==="number")H=Q.level;var v=$.Z_DEFAULT_STRATEGY;if(typeof Q.strategy==="number")v=Q.strategy;this._handle.init(Q.windowBits||$.Z_DEFAULT_WINDOWBITS,H,Q.memLevel||$.Z_DEFAULT_MEMLEVEL,v,Q.dictionary),this._buffer=I.allocUnsafe(this._chunkSize),this._offset=0,this._level=H,this._strategy=v,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!F._handle},configurable:!0,enumerable:!0})}_.inherits(K0,G),K0.prototype.params=function(Q,K,F){if(Q<$.Z_MIN_LEVEL||Q>$.Z_MAX_LEVEL)throw RangeError("Invalid compression level: "+Q);if(K!=$.Z_FILTERED&&K!=$.Z_HUFFMAN_ONLY&&K!=$.Z_RLE&&K!=$.Z_FIXED&&K!=$.Z_DEFAULT_STRATEGY)throw TypeError("Invalid strategy: "+K);if(this._level!==Q||this._strategy!==K){var L=this;this.flush(Z.Z_SYNC_FLUSH,function(){if(J(L._handle,"zlib binding closed"),L._handle.params(Q,K),!L._hadError){if(L._level=Q,L._strategy=K,F)F()}})}else process.nextTick(F)},K0.prototype.reset=function(){return J(this._handle,"zlib binding closed"),this._handle.reset()},K0.prototype._flush=function(Q){this._transform(I.alloc(0),"",Q)},K0.prototype.flush=function(Q,K){var F=this,L=this._writableState;if(typeof Q==="function"||Q===void 0&&!K)K=Q,Q=Z.Z_FULL_FLUSH;if(L.ended){if(K)process.nextTick(K)}else if(L.ending){if(K)this.once("end",K)}else if(L.needDrain){if(K)this.once("drain",function(){return F.flush(Q,K)})}else this._flushFlag=Q,this.write(I.alloc(0),"",K)},K0.prototype.close=function(Q){t(this,Q),process.nextTick(P0,this)};function t(Q,K){if(K)process.nextTick(K);if(!Q._handle)return;Q._handle.close(),Q._handle=null}function P0(Q){Q.emit("close")}K0.prototype._transform=function(Q,K,F){var L,H=this._writableState,v=H.ending||H.ended,q=v&&(!Q||H.length===Q.length);if(Q!==null&&!I.isBuffer(Q))return F(Error("invalid input"));if(!this._handle)return F(Error("zlib binding closed"));if(q)L=this._finishFlushFlag;else if(L=this._flushFlag,Q.length>=H.length)this._flushFlag=this._opts.flush||Z.Z_NO_FLUSH;this._processChunk(Q,L,F)},K0.prototype._processChunk=function(Q,K,F){var L=Q&&Q.length,H=this._chunkSize-this._offset,v=0,q=this,P=typeof F==="function";if(!P){var O=[],A=0,k;this.on("error",function(D0){k=D0}),J(this._handle,"zlib binding closed");do var j=this._handle.writeSync(K,Q,v,L,this._buffer,this._offset,H);while(!this._hadError&&J0(j[0],j[1]));if(this._hadError)throw k;if(A>=Y)throw t(this),RangeError(W);var h=I.concat(O,A);return t(this),h}J(this._handle,"zlib binding closed");var a=this._handle.write(K,Q,v,L,this._buffer,this._offset,H);a.buffer=Q,a.callback=J0;function J0(D0,O0){if(this)this.buffer=null,this.callback=null;if(q._hadError)return;var d=H-O0;if(J(d>=0,"have should not go down"),d>0){var m=q._buffer.slice(q._offset,q._offset+d);if(q._offset+=d,P)q.push(m);else O.push(m),A+=m.length}if(O0===0||q._offset>=q._chunkSize)H=q._chunkSize,q._offset=0,q._buffer=I.allocUnsafe(q._chunkSize);if(O0===0){if(v+=L-D0,L=D0,!P)return!0;var r=q._handle.write(K,Q,v,L,q._buffer,q._offset,q._chunkSize);r.callback=J0,r.buffer=Q;return}if(!P)return!1;F()}},_.inherits(y,K0),_.inherits(g,K0),_.inherits(b,K0),_.inherits(l,K0),_.inherits(i,K0),_.inherits($0,K0),_.inherits(Q0,K0)}),Gw={};ia(Gw,{default:()=>Yw.default});da(Gw,Uw(Xw(),1));Yw=Uw(Xw(),1),_s=Yw.default});var zz=N6((Oz0,Hw)=>{function zw($,I,G){if(!$||typeof $!=="object"||Array.isArray($)||Object.keys($).some((Z)=>!I.includes(Z)))throw Error(`${G} has an invalid shape`);return $}function Xs($){if(!Array.isArray($)||$.length>256)throw Error("World network egress must be an array of at most 256 exact HTTPS origins");let I=$.map((G)=>{if(typeof G!=="string"||G.length>2048)throw Error("World network egress origins must be strings");let Z;try{Z=new URL(G)}catch{throw Error(`Invalid World network origin: ${G}`)}if(Z.protocol!=="https:"||Z.origin!==G||Z.username||Z.password||!/^[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?$/.test(Z.hostname)||Z.hostname.split(".").some((_)=>!_||_.length>63||_.startsWith("-")||_.endsWith("-"))||/^[\d.]+$/.test(Z.hostname)||Z.hostname==="localhost"||Z.hostname.endsWith(".localhost"))throw Error(`World network requires an exact canonical HTTPS origin: ${G}`);return G});return Object.freeze([...new Set(I)].sort())}function Zw($){let I=zw($,["egress"],"World network");return Object.freeze({egress:Xs(I.egress)})}function Ow($,I){if(typeof $!=="string"||!$||$.length>256)throw Error("World network policy requires its World identity");return Object.freeze({version:1,world:$,egress:Zw(I).egress})}function Lw($){let I=zw($,["version","world","egress"],"World network policy");if(I.version!==1)throw Error("Unsupported World network policy version");return Ow(I.world,{egress:I.egress})}function Kw($){let I=$.VOLTER_WORLD_NETWORK_POLICY;if(I===void 0)return;if(typeof I!=="string"||I.length>65536)throw Error("Invalid published World network policy");let G=Lw(JSON.parse(I));if(!$.VOLTER_WORLD||G.world!==$.VOLTER_WORLD)throw Error("World network policy does not belong to the attached World");return G}function Dw($,I){let G;try{G=new URL(String(I))}catch{return!1}return G.protocol==="https:"&&!G.username&&!G.password&&$.egress.includes(G.origin)}function Ww($){let I=String($||"").toLowerCase().replace(/^\[|\]$/g,"");if(!I)return!0;if(I==="localhost"||I.endsWith(".localhost")||I.endsWith(".test")||I==="0.0.0.0"||I==="::1")return!0;let G=/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/.exec(I);if(G){let Z=Number(G[1]),_=Number(G[2]);return Z===127||Z===10||Z===172&&_>=16&&_<=31||Z===192&&_===168}return I.includes(":")&&(I.startsWith("fc")||I.startsWith("fd"))&&I!=="fd00:ec2::254"}function Gs($,I=process.env){let G;try{G=new URL(String($))}catch{return`unparseable destination ${String($)}`}if(Ww(G.hostname))return null;if(I.VOLTER_TWIN_STRICT_EGRESS==="1"||I.VOLTER_TWIN_STRICT_EGRESS==="true")return`sealed World refuses untwinned host ${G.hostname}`;let Z;try{Z=Kw(I)}catch(_){return`World network policy unreadable (${_.message}); refusing ${G.hostname}`}if(Z!==void 0&&!Dw(Z,G))return`World network policy does not allow ${G.origin}`;return null}Hw.exports={isWorldInternalHost:Ww,worldEgressRefusal:Gs,WORLD_NETWORK_POLICY_ENV:"VOLTER_WORLD_NETWORK_POLICY",normalizeWorldNetwork:Zw,createWorldNetworkPolicy:Ow,parseWorldNetworkPolicy:Lw,worldNetworkPolicyFromEnv:Kw,allowsWorldNetworkEgress:Dw}});var Sw=N6((Lz0,Vw)=>{var Fw=new Map;function Tw($,I){if(!I||!Array.isArray(I.hosts)||!I.hosts.length)return null;return{name:$,url:typeof I.url==="string"?I.url:null,hosts:new Set(I.hosts.map((G)=>String(G).toLowerCase()))}}function Ys($){if(!$)return{routes:[],twins:{}};let I=Date.now(),G=Fw.get($);if(G&&I-G.checkedAt<1000)return G;if(!G)G={checkedAt:0,mtimeMs:-1,routes:[],services:{},twins:{}},Fw.set($,G);G.checkedAt=I;let Z=(()=>({})),_=(KU(),V$(ZB)),J=_.join(_.dirname($),"app-url.json");try{let Y=JSON.parse(Z.readFileSync($,"utf8"));G.services=Y.services||{},G.twins=i5().twinOrigins(Y.env||{})}catch{}try{let Y=Z.statSync(J).mtimeMs;if(Y!==G.mtimeMs){G.mtimeMs=Y;let R=JSON.parse(Z.readFileSync(J,"utf8")),M=R.apps&&typeof R.apps==="object"?Object.entries(R.apps):[];G.routes=[Tw("app",R),...M.map(([E,T])=>Tw(E,T))].filter(Boolean)}let W=G.services;for(let R of G.routes){let M=R.url??W[R.name]?.url;R.origin=typeof M==="string"?M.replace(/\/$/,""):null}}catch(Y){if(G.mtimeMs=-1,Y&&Y.code==="ENOENT")G.routes=[]}return G}function Mw($,I,G={}){let Z=String(I||"").toLowerCase().replace(/\.$/,""),_=Ys($),J=_.routes.find((W)=>W.origin&&Aw(W.hosts,Z));if(!J)return null;let Y=(W)=>Object.hasOwn(_.twins,W)||Object.hasOwn(G,W);return i5().vendorsOfHost(Z).some(Y)?null:J}function Aw($,I){if($.has(I))return!0;for(let G=I.indexOf(".");G>0;G=I.indexOf(".",G+1))if($.has(`*${I.slice(G)}`))return!0;return!1}function Ew($){return{"x-forwarded-host":$.host,"x-forwarded-proto":$.protocol==="https:"?"https":"http"}}function cE($,I=process.env){let G;try{G=new URL(String($))}catch{return null}if(G.protocol!=="http:"&&G.protocol!=="https:")return null;return Mw(I.VOLTER_WORLD_INSTANCE,G.hostname,i5().twinOrigins(I))}var e5=void 0;function lE(){if(e5===void 0){let $=process.env.NODE_EXTRA_CA_CERTS;try{e5=$?(()=>{throw new Error("Cannot require module "+"fs");})().readFileSync($):null}catch{e5=null}}return e5}var Js=["accept-encoding","x-twins-key","x-volter-twin-original-host","proxy-connection","host","x-forwarded-host","x-forwarded-proto"];function Rw($,I,G,Z,_){let{isIP:J}=(NE(),V$(qg)),Y=new URL($.origin),W={};for(let[R,M]of Object.entries(Z||{}))if(M!==void 0&&!Js.includes(R.toLowerCase()))W[R]=M;if(Object.assign(W,Ew(I),{host:I.host}),(I.username||I.password)&&!Object.keys(W).some((R)=>R.toLowerCase()==="authorization"))W.authorization=`Basic ${Buffer.from(`${decodeURIComponent(I.username)}:${decodeURIComponent(I.password)}`).toString("base64")}`;return{protocol:Y.protocol,hostname:Y.hostname,port:Y.port||(Y.protocol==="https:"?443:80),method:G,path:`${Y.pathname.replace(/\/$/,"")}${I.pathname}${I.search}`,headers:W,..._&&_.signal?{signal:_.signal}:{},..._&&_.timeout!==void 0?{timeout:_.timeout}:{},...Y.protocol==="https:"&&lE()?{ca:lE()}:{},...Y.protocol==="https:"?{servername:J(Y.hostname)?"":Y.hostname}:{}}}function Pw($,I,{method:G="POST",headers:Z={},body:_,timeoutMs:J=30000,signal:Y}={}){let W=new URL(String(I));if(Y&&Y.aborted)return Promise.reject(Y.reason);let R=Rw($,W,G,Z),M=(R.protocol==="https:"?(bg(),V$(yg)):(Xz(),V$(d5))).request;return new Promise((E,T)=>{let S=!1,N=()=>x(Y.reason),B=()=>{if(S=!0,clearTimeout(y),Y)Y.removeEventListener("abort",N)},x=(g)=>{if(!S)B(),w.destroy(),T(g)},w=M(R,(g)=>{g.on("error",x),g.on("aborted",()=>x(Error(`the application's answer to ${W.origin}${W.pathname} was cut off`)));let b=String(g.headers["content-encoding"]||"").toLowerCase(),l=(Qw(),V$(Jw)),i=b==="gzip"||b==="x-gzip"?l.createGunzip():b==="deflate"?l.createInflate():b==="br"?l.createBrotliDecompress():null,$0=i?g.pipe(i):g,Q0=[];$0.on("data",(G0)=>Q0.push(G0)),$0.on("error",x),$0.on("end",()=>{if(S)return;B();let G0={};for(let[K0,t]of Object.entries(g.headers))if(t!==void 0&&!(i&&(K0==="content-encoding"||K0==="content-length")))G0[K0.toLowerCase()]=Array.isArray(t)?t.join(", "):String(t);E({status:g.statusCode,headers:G0,body:Buffer.concat(Q0).toString("utf8")})})}),y=Number.isFinite(J)?setTimeout(()=>x(Error(`the application did not answer ${W.origin}${W.pathname} within ${J} ms`)),J):void 0;if(w.on("error",x),Y)Y.addEventListener("abort",N,{once:!0});if(_!=null&&G!=="GET"&&G!=="HEAD")w.write(_);w.end()})}var Qs=[301,302,303,307,308],zs=[204,205,304],Zs=["authorization","cookie","proxy-authorization"];function Os($,I){if($==null)return null;if(typeof $==="string")return $;if($ instanceof URLSearchParams){if(!Object.keys(I).some((G)=>G.toLowerCase()==="content-type"))I["content-type"]="application/x-www-form-urlencoded;charset=UTF-8";return $.toString()}if($ instanceof ArrayBuffer)return Buffer.from($);if(ArrayBuffer.isView($))return Buffer.from($.buffer,$.byteOffset,$.byteLength);throw TypeError("appFetch sends a string, URLSearchParams or bytes body")}async function Ls($,I={}){if(!cE($)){let R=zz().worldEgressRefusal($);if(R!==null)throw TypeError(R);return fetch($,I)}let G=I.redirect||"follow",Z=I.signal||void 0,_=new URL(String($)),J=String(I.method||"GET").toUpperCase(),Y={};new Headers(I.headers||{}).forEach((R,M)=>{Y[M]=R});let W=Os(I.body,Y);for(let R=0;;R++){let M=cE(_),E;if(M){let N=zz().worldEgressRefusal(M.origin);if(N!==null)throw TypeError(N);let B=await Pw(M,_,{method:J,headers:Y,body:W,signal:Z,timeoutMs:300000}),x=zs.includes(B.status)||J==="HEAD",w=B.status>=200&&B.status<=599;if(E=new Response(x?null:B.body,{status:w?B.status:200,headers:B.headers}),!w)Object.defineProperties(E,{status:{value:B.status},ok:{value:!1}});Object.defineProperty(E,"url",{value:_.toString()})}else{let N=zz().worldEgressRefusal(_);if(N!==null)throw TypeError(N);for(let B of Object.keys(Y))if(["x-twins-key","x-volter-twin-original-host"].includes(B.toLowerCase()))delete Y[B];E=await fetch(_,{method:J,headers:Y,...W!=null&&J!=="GET"&&J!=="HEAD"?{body:W}:{},redirect:"manual",signal:Z})}if(R>0)Object.defineProperty(E,"redirected",{value:!0});let T=E.headers.get("location");if(!Qs.includes(E.status)||T===null||G==="manual")return E;if(G==="error")throw TypeError(`${_.origin}${_.pathname} redirected, and the request's redirect mode is error`);if(R>=20)throw TypeError("redirect count exceeded");if(E.body)await E.body.cancel();let S=new URL(T,_);if(S.protocol!=="http:"&&S.protocol!=="https:")throw TypeError(`redirect to ${S.protocol} is not followed`);if(E.status===303&&J!=="GET"&&J!=="HEAD"||(E.status===301||E.status===302)&&J==="POST"){J="GET",W=null;for(let N of Object.keys(Y))if(/^content-/i.test(N))delete Y[N]}if(S.origin!==_.origin){for(let N of Object.keys(Y))if(Zs.includes(N.toLowerCase()))delete Y[N]}_=S}}Vw.exports={appRouteFor:Mw,appHostMatch:Aw,appForwardHeaders:Ew,appDestination:cE,appRequestOptions:Rw,deliverToApp:Pw,appFetch:Ls,sessionCa:lE}});var dE=N6((Ds)=>{var GX=J6(yJ());(function(){function $(O){if(O==null)return null;if(typeof O==="function")return O.$$typeof===t?null:O.displayName||O.name||null;if(typeof O==="string")return O;switch(O){case x:return"Fragment";case y:return"Profiler";case w:return"StrictMode";case i:return"Suspense";case $0:return"SuspenseList";case K0:return"Activity"}if(typeof O==="object")switch(typeof O.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),O.$$typeof){case B:return"Portal";case b:return O.displayName||"Context";case g:return(O._context.displayName||"Context")+".Consumer";case l:var A=O.render;return O=O.displayName,O||(O=A.displayName||A.name||"",O=O!==""?"ForwardRef("+O+")":"ForwardRef"),O;case Q0:return A=O.displayName||null,A!==null?A:$(O.type)||"Memo";case G0:A=O._payload,O=O._init;try{return $(O(A))}catch(k){}}return null}function I(O){return""+O}function G(O){try{I(O);var A=!1}catch(h){A=!0}if(A){A=console;var k=A.error,j=typeof Symbol==="function"&&Symbol.toStringTag&&O[Symbol.toStringTag]||O.constructor.name||"Object";return k.call(A,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",j),I(O)}}function Z(O){if(O===x)return"<>";if(typeof O==="object"&&O!==null&&O.$$typeof===G0)return"<...>";try{var A=$(O);return A?"<"+A+">":"<...>"}catch(k){return"<...>"}}function _(){var O=P0.A;return O===null?null:O.getOwner()}function J(){return Error("react-stack-top-frame")}function Y(O){if(Q.call(O,"key")){var A=Object.getOwnPropertyDescriptor(O,"key").get;if(A&&A.isReactWarning)return!1}return O.key!==void 0}function W(O,A){function k(){L||(L=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",A))}k.isReactWarning=!0,Object.defineProperty(O,"key",{get:k,configurable:!0})}function R(){var O=$(this.type);return H[O]||(H[O]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),O=this.props.ref,O!==void 0?O:null}function M(O,A,k,j,h,a){var J0=k.ref;return O={$$typeof:N,type:O,key:A,props:k,_owner:j},(J0!==void 0?J0:null)!==null?Object.defineProperty(O,"ref",{enumerable:!1,get:R}):Object.defineProperty(O,"ref",{enumerable:!1,value:null}),O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(O,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(O,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:h}),Object.defineProperty(O,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O}function E(O,A,k,j,h,a){var J0=A.children;if(J0!==void 0)if(j)if(K(J0)){for(j=0;j<J0.length;j++)T(J0[j]);Object.freeze&&Object.freeze(J0)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(J0);if(Q.call(A,"key")){J0=$(O);var D0=Object.keys(A).filter(function(d){return d!=="key"});j=0<D0.length?"{key: someKey, "+D0.join(": ..., ")+": ...}":"{key: someKey}",P[J0+j]||(D0=0<D0.length?"{"+D0.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
317
|
-
let props = %s;
|
|
318
|
-
<%s {...props} />
|
|
319
|
-
React keys must be passed directly to JSX without using spread:
|
|
320
|
-
let props = %s;
|
|
321
|
-
<%s key={someKey} {...props} />`,j,J0,D0,J0),P[J0+j]=!0)}if(J0=null,k!==void 0&&(G(k),J0=""+k),Y(A)&&(G(A.key),J0=""+A.key),"key"in A){k={};for(var O0 in A)O0!=="key"&&(k[O0]=A[O0])}else k=A;return J0&&W(k,typeof O==="function"?O.displayName||O.name||"Unknown":O),M(O,J0,k,_(),h,a)}function T(O){S(O)?O._store&&(O._store.validated=1):typeof O==="object"&&O!==null&&O.$$typeof===G0&&(O._payload.status==="fulfilled"?S(O._payload.value)&&O._payload.value._store&&(O._payload.value._store.validated=1):O._store&&(O._store.validated=1))}function S(O){return typeof O==="object"&&O!==null&&O.$$typeof===N}var N=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),b=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),$0=Symbol.for("react.suspense_list"),Q0=Symbol.for("react.memo"),G0=Symbol.for("react.lazy"),K0=Symbol.for("react.activity"),t=Symbol.for("react.client.reference"),P0=GX.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=Object.prototype.hasOwnProperty,K=Array.isArray,F=console.createTask?console.createTask:function(){return null};GX={react_stack_bottom_frame:function(O){return O()}};var L,H={},v=GX.react_stack_bottom_frame.bind(GX,J)(),q=F(Z(J)),P={};Ds.Fragment=x,Ds.jsxDEV=function(O,A,k,j){var h=1e4>P0.recentlyCreatedOwnerStacks++;return E(O,A,k,j,h?Error("react-stack-top-frame"):v,h?F(Z(O)):q)}})()});var E1=J6(yJ(),1),jw=J6(qq(),1);var{readFile:bz0}=(()=>({}));i1();var{closeSync:JI0,existsSync:QI0,fstatSync:zI0,mkdirSync:ZI0,openSync:OI0,readFileSync:LI0,renameSync:KI0,rmSync:DI0,statSync:WI0,writeFileSync:HI0,writeSync:FI0}=(()=>({}));var bZ=function(){if(typeof location<"u")return location.hostname;else return""};var OW=function(){return"/"};KU();function tJ(){let $=process.env.VOLTER_HOME;return $!==void 0&&$!==""?$:G1(OW(),".volter")}KU();KU();i1();i1();KU();var{appendFileSync:Rp,chmodSync:DB,closeSync:hZ,existsSync:rJ,fsyncSync:Pp,fstatSync:WB,lstatSync:HB,mkdirSync:aJ,openSync:uZ,readdirSync:Vp,readSync:Sp,realpathSync:vp,readFileSync:MW,renameSync:FB,rmSync:TB,statSync:EB,unlinkSync:TW,writeFileSync:sJ}=(()=>({}));var{AsyncLocalStorage:V00}=(()=>({}));var{AsyncLocalStorage:E00}=(()=>({}));var Tp=/^([0-9a-f]{2})-([0-9a-f]{32})-([0-9a-f]{16})-([0-9a-f]{2})$/,Mp="0".repeat(32),Ap="0".repeat(16);function WW($){if(typeof $!=="string")return null;let I=Tp.exec($.trim());if(!I)return null;let[,G,Z,_,J]=I;if(G==="ff"||Z===Mp||_===Ap)return null;return{version:G,traceId:Z,parentId:_,flags:J}}var LB="x-volter-read-only";class HW extends Error{service;constructor($){super(`${$}: this request is read-only (${LB}: 1); it cannot write`);this.service=$;this.name="ReadOnlyRequestError"}}var KB;function FW(){let $=KB?.getStore();return $!==void 0&&$.readOnly&&!$.vendorMove}function w_($){if(!FW())return;let I=new HW($);throw KB.getStore().refusals.push(I),I}KU();var Cp=0,qp=60000;function AW($){try{return JSON.parse(MW($,"utf8"))}catch{return null}}function Np($){try{return process.kill($,0),!0}catch(I){return I.code==="EPERM"}}function MB($,I=!1){let G=AW($);if(G&&G.hostname===bZ()&&Number.isInteger(G.pid)&&!Np(G.pid))return!0;if(I)return!1;let _=G&&typeof G.at==="string"?Date.parse(G.at):NaN;if(!Number.isFinite(_))try{_=EB($).mtimeMs}catch{return!1}return Date.now()-_>qp}function AB($){Atomics.wait(new Int32Array(new SharedArrayBuffer(4)),0,0,$)}class nZ{read($){if(!rJ($))return null;return MW($,"utf8")}readLines($){if(!rJ($))return[];return MW($,"utf8").split(`
|
|
322
|
-
`)}readRange($,I){let G;try{G=uZ($,"r")}catch(Z){if(Z.code==="ENOENT")return null;throw Z}try{let Z=WB(G).size;if(I>=Z)return"";let _=Buffer.allocUnsafe(Z-I),J=0;while(J<_.length){let Y=Sp(G,_,J,_.length-J,I+J);if(Y===0)break;J+=Y}return _.toString("utf8",0,J)}finally{hZ(G)}}append($,I){w_("the World");let G=uZ($,"a");try{if(Rp(G,I),process.env.VOLTER_DURABLE==="1")Pp(G)}finally{hZ(G)}}write($,I,G={}){if(w_("the World"),!G.secret){aJ(n1($),{recursive:!0}),sJ($,I);return}aJ(n1($),{recursive:!0,mode:448}),sJ($,I,{mode:384}),DB($,384)}writeAtomic($,I,G={}){w_("the World"),aJ(n1($),{recursive:!0});let Z=`${$}.${process.pid}.${Date.now()}.${Cp++}.tmp`;try{if(sJ(Z,I,G.secret?{mode:384}:void 0),FB(Z,$),G.secret)DB($,384)}finally{TB(Z,{force:!0})}}exists($){return rJ($)}remove($){w_("the World"),TB($,{recursive:!0,force:!0})}mkdir($){aJ($,{recursive:!0})}list($){if(!rJ($))return[];return Vp($)}canonicalPath($){let I=$I($);try{return vp(I)}catch(G){if(G.code!=="ENOENT"||n1(I)===I)throw G;return G1(this.canonicalPath(n1(I)),KG(I))}}stat($){if(!rJ($))return null;let I=EB($);return{size:I.size,mtimeMs:I.mtimeMs,isDirectory:I.isDirectory(),...HB($).isSymbolicLink()?{isSymbolicLink:!0}:{}}}withLock($,I,G={}){aJ(n1($),{recursive:!0});let Z=Date.now(),_=null;while(_===null)try{_=uZ($,"wx")}catch(Y){if(Y.code!=="EEXIST")throw Y;if(MB($,G.retainLiveOwner)){let R=`${$}.recovery`,M;try{M=uZ(R,"wx")}catch(E){if(E.code!=="EEXIST")throw E;if(Date.now()-Z>1e4)throw Error(`Lock recovery is active or interrupted: ${R}. Inspect its owner before removing the recovery record.`);AB(25);continue}try{if(sJ(M,JSON.stringify({pid:process.pid,hostname:bZ()})),MB($,G.retainLiveOwner)){let E=AW($),T=`${$}.stale.${process.pid}.${Date.now()}`;try{FB($,T),console.warn(`[world] reclaiming stale storage lock ${$} (held by pid ${E?.pid??"?"} on ${E?.hostname??"?"})`),TW(T)}catch(S){if(S.code!=="ENOENT")throw S}}}finally{hZ(M),TW(R)}continue}if(Date.now()-Z>1e4){let R=AW($),M=R&&typeof R.at==="string"?Date.parse(R.at):NaN;throw Error(`Timed out waiting for world storage lock: ${$}${R?` (held by pid ${R.pid} on ${R.hostname}${Number.isFinite(M)?` for ${Date.now()-M}ms`:""})`:""}`)}AB(25)}try{sJ(_,`${JSON.stringify({pid:process.pid,hostname:bZ(),at:new Date().toISOString()})}
|
|
323
|
-
`)}catch{}let J=Date.now();try{return I()}finally{let Y=Date.now()-J;if(Y>2000)console.warn(`[world] held storage lock ${$} for ${Y}ms (pid ${process.pid})
|
|
324
|
-
${Error().stack?.split(`
|
|
325
|
-
`).slice(2,8).join(`
|
|
326
|
-
`)??""}`);let W=WB(_);hZ(_);try{let R=HB($);if(W.dev===R.dev&&W.ino===R.ino)TW($)}catch{}}}}var Bp=new nZ,jp=(()=>{try{let $=globalThis.process?.getBuiltinModule?.("node:async_hooks");return $?.AsyncLocalStorage?new $.AsyncLocalStorage:null}catch{return null}})();function jU(){return jp?.getStore()??Bp}i1();KU();KU();var f$={};LU(f$,{xor:()=>u3,xid:()=>Y3,withParser:()=>yO,void:()=>w3,validateAsync:()=>OQ,validate:()=>ZQ,uuidv7:()=>sj,uuidv6:()=>aj,uuidv4:()=>rj,uuid:()=>tj,util:()=>G$,url:()=>ej,uppercase:()=>gG,unknown:()=>r4,union:()=>eG,undefined:()=>k3,ulid:()=>G3,uint64:()=>B3,uint32:()=>C3,tuple:()=>C7,trim:()=>uG,treeifyError:()=>cW,transform:()=>n5,toZod:()=>eJ,toUpperCase:()=>pG,toLowerCase:()=>nG,toJSONSchema:()=>W5,templateLiteral:()=>$k,symbol:()=>j3,superRefine:()=>$E,success:()=>r3,stringbool:()=>Qk,stringFormat:()=>M3,string:()=>uQ,strictObject:()=>b3,startsWith:()=>xG,slugify:()=>cG,size:()=>d4,setErrorMap:()=>Gi,set:()=>m3,safeParseAsync:()=>eA,safeParse:()=>sA,safeEncodeAsync:()=>Y7,safeEncode:()=>X7,safeDecodeAsync:()=>J7,safeDecode:()=>G7,registry:()=>fO,regexes:()=>_I,regex:()=>jG,refine:()=>e7,record:()=>q7,readonly:()=>i7,property:()=>O5,properties:()=>yG,promise:()=>Uk,prettifyError:()=>lW,preprocess:()=>Zk,prefault:()=>h7,positive:()=>J5,pipe:()=>M5,partialRecord:()=>p3,parseAsync:()=>aA,parse:()=>rA,overwrite:()=>FI,output:()=>Ak,optional:()=>a4,object:()=>y3,number:()=>O7,nullish:()=>t3,nullable:()=>nQ,null:()=>H7,normalize:()=>hG,nonpositive:()=>z5,nonoptional:()=>u7,nonnegative:()=>Z5,never:()=>h5,negative:()=>Q5,nativeEnum:()=>d3,nanoid:()=>I3,nan:()=>a3,multipleOf:()=>w2,minSize:()=>U_,minLength:()=>y_,mime:()=>bG,meta:()=>Yk,memoizer:()=>CQ,maxSize:()=>x2,maxLength:()=>i4,map:()=>l3,mac:()=>z3,lte:()=>x6,lt:()=>eI,lowercase:()=>kG,looseRecord:()=>c3,looseObject:()=>h3,locales:()=>kQ,literal:()=>i3,length:()=>o4,lazy:()=>r7,ksuid:()=>J3,keyof:()=>f3,jwt:()=>T3,json:()=>zk,iso:()=>aQ,ipv6:()=>Z3,ipv4:()=>Q3,invertCodec:()=>e3,intersection:()=>S7,int64:()=>N3,int32:()=>v3,int:()=>T5,instanceof:()=>Jk,input:()=>Mk,includes:()=>wG,iban:()=>F3,httpUrl:()=>$3,hostname:()=>A3,hex:()=>E3,hash:()=>P3,guid:()=>oj,gte:()=>f6,gt:()=>$_,globalRegistry:()=>gU,getErrorMap:()=>Yi,getDiscriminatedOption:()=>yF,function:()=>Ik,fromJSONSchema:()=>Wk,formatError:()=>zQ,float64:()=>S3,float32:()=>V3,flattenError:()=>QQ,file:()=>o3,exactOptional:()=>w7,enum:()=>u5,endsWith:()=>fG,encodeAsync:()=>I7,encode:()=>$7,emoji:()=>U3,email:()=>ij,e164:()=>W3,discriminatedUnion:()=>n3,describe:()=>Gk,deepPartial:()=>Fk,decodeAsync:()=>_7,decode:()=>U7,date:()=>x3,custom:()=>Xk,currencyCode:()=>R3,cuid2:()=>X3,cuid:()=>_3,creditCard:()=>H3,core:()=>b_,config:()=>IU,compile:()=>RM,coerce:()=>XE,codec:()=>s3,clone:()=>K1,cidrv6:()=>L3,cidrv4:()=>O3,check:()=>_k,catch:()=>c7,boolean:()=>L7,bigint:()=>q3,base64url:()=>D3,base64:()=>K3,array:()=>lQ,any:()=>g3,_function:()=>Ik,_default:()=>y7,_ZodString:()=>A5,ZodXor:()=>R7,ZodXID:()=>q5,ZodVoid:()=>A7,ZodUnknown:()=>T7,ZodUnion:()=>dQ,ZodUndefined:()=>D7,ZodUUID:()=>I_,ZodURL:()=>pQ,ZodULID:()=>C5,ZodType:()=>p$,ZodTuple:()=>v7,ZodTransform:()=>g7,ZodTemplateLiteral:()=>o7,ZodSymbol:()=>K7,ZodSuccess:()=>n7,ZodStringFormat:()=>H1,ZodString:()=>tG,ZodSet:()=>B7,ZodRecord:()=>iG,ZodRealError:()=>K6,ZodReadonly:()=>d7,ZodPromise:()=>a7,ZodPreprocess:()=>m7,ZodPrefault:()=>b7,ZodPipe:()=>oQ,ZodOptional:()=>iQ,ZodObject:()=>mQ,ZodNumberFormat:()=>$X,ZodNumber:()=>rG,ZodNullable:()=>x7,ZodNull:()=>W7,ZodNonOptional:()=>c5,ZodNever:()=>M7,ZodNanoID:()=>V5,ZodNaN:()=>l7,ZodMap:()=>N7,ZodMAC:()=>Q7,ZodLiteral:()=>j7,ZodLazy:()=>t7,ZodKSUID:()=>N5,ZodJWT:()=>y5,ZodIssueCode:()=>Xi,ZodIntersection:()=>V7,ZodInstanceOf:()=>UE,ZodISOTime:()=>n2,ZodISODuration:()=>p2,ZodISODateTime:()=>h2,ZodISODate:()=>u2,ZodIPv6:()=>j5,ZodIPv4:()=>B5,ZodIBAN:()=>Z7,ZodGUID:()=>R5,ZodFunction:()=>s7,ZodFirstPartyTypeKind:()=>IE,ZodFile:()=>k7,ZodExactOptional:()=>p5,ZodError:()=>Ui,ZodEnum:()=>oG,ZodEmoji:()=>P5,ZodEmail:()=>E5,ZodE164:()=>f5,ZodDiscriminatedUnion:()=>P7,ZodDefault:()=>f7,ZodDate:()=>cQ,ZodCustomStringFormat:()=>e4,ZodCustom:()=>rQ,ZodCreditCard:()=>z7,ZodCompileUnsupportedError:()=>$1,ZodCompileAsyncError:()=>sI,ZodCodec:()=>tQ,ZodCatch:()=>p7,ZodCUID2:()=>v5,ZodCUID:()=>S5,ZodCIDRv6:()=>g5,ZodCIDRv4:()=>k5,ZodBoolean:()=>aG,ZodBigIntFormat:()=>b5,ZodBigInt:()=>sG,ZodBase64URL:()=>x5,ZodBase64:()=>w5,ZodArray:()=>E7,ZodAny:()=>F7,TimePrecision:()=>NM,NEVER:()=>bW,INVALID:()=>aU,$output:()=>HM,$input:()=>FM,$brand:()=>hW});var b_={};LU(b_,{withParser:()=>yO,version:()=>iH,validateURL:()=>FO,validateAsync:()=>OQ,validate:()=>ZQ,util:()=>G$,urlProtocolOk:()=>MO,urlHostnameOk:()=>TO,treeifyError:()=>cW,toZod:()=>eJ,toJSONSchema:()=>W5,toDotPath:()=>hB,stripTabAndNewline:()=>FQ,standardProps:()=>HO,safeParseAsync:()=>Sc,safeParse:()=>Vc,safeEncodeAsync:()=>xc,safeEncode:()=>gc,safeDecodeAsync:()=>fc,safeDecode:()=>wc,registry:()=>fO,regexes:()=>_I,processSchema:()=>W1,process:()=>W1,prettifyError:()=>lW,parseURLObject:()=>Yj,parseAsync:()=>aZ,parse:()=>rZ,meta:()=>GA,mergeValues:()=>CG,memoizer:()=>CQ,locales:()=>kQ,isValidJWT:()=>SO,isValidIPv6:()=>TQ,isValidIBAN:()=>VO,isValidCreditCard:()=>PO,isValidCIDRv6:()=>AO,isValidBase64URL:()=>RO,isValidBase64:()=>MQ,isRecursiveSchema:()=>wO,isBackEdge:()=>xO,initializeContext:()=>f2,handleUnrepresentable:()=>FU,globalRegistry:()=>gU,globalConfig:()=>SU,getDiscriminatedOption:()=>yF,formatError:()=>zQ,flattenError:()=>QQ,finalize:()=>b2,extractDefs:()=>y2,encodeAsync:()=>jc,encode:()=>Nc,describe:()=>XA,decodeAsync:()=>kc,decode:()=>Bc,createToJSONSchemaMethod:()=>QA,createStandardJSONSchemaMethod:()=>lG,config:()=>IU,compileFn:()=>bO,compile:()=>RM,clone:()=>K1,canParseURL:()=>eH,base64urlCharset:()=>AQ,base64Charset:()=>EO,_xor:()=>Cd,_xid:()=>aO,_void:()=>tM,_uuidv7:()=>mO,_uuidv6:()=>lO,_uuidv4:()=>cO,_uuid:()=>pO,_url:()=>gQ,_uppercase:()=>gG,_unknown:()=>iM,_union:()=>vd,_undefined:()=>lM,_ulid:()=>rO,_uint64:()=>pM,_uint32:()=>fM,_tuple:()=>Bd,_trim:()=>uG,_transform:()=>yd,_toUpperCase:()=>pG,_toLowerCase:()=>nG,_templateLiteral:()=>dd,_symbol:()=>cM,_superRefine:()=>_A,_success:()=>pd,_stringbool:()=>YA,_stringFormat:()=>t4,_string:()=>VM,_startsWith:()=>xG,_slugify:()=>cG,_size:()=>d4,_set:()=>gd,_safeParseAsync:()=>VG,_safeParse:()=>PG,_safeEncodeAsync:()=>XO,_safeEncode:()=>IO,_safeDecodeAsync:()=>GO,_safeDecode:()=>_O,_regex:()=>jG,_refine:()=>IA,_record:()=>jd,_readonly:()=>md,_property:()=>O5,_properties:()=>yG,_promise:()=>od,_positive:()=>J5,_pipe:()=>ld,_parseAsync:()=>RG,_parse:()=>EG,_overwrite:()=>FI,_optional:()=>bd,_number:()=>BM,_nullable:()=>hd,_null:()=>mM,_normalize:()=>hG,_nonpositive:()=>z5,_nonoptional:()=>nd,_nonnegative:()=>Z5,_never:()=>oM,_negative:()=>Q5,_nativeEnum:()=>xd,_nanoid:()=>iO,_nan:()=>sM,_multipleOf:()=>w2,_minSize:()=>U_,_minLength:()=>y_,_min:()=>f6,_mime:()=>bG,_maxSize:()=>x2,_maxLength:()=>i4,_max:()=>x6,_map:()=>kd,_mac:()=>vM,_lte:()=>x6,_lt:()=>eI,_lowercase:()=>kG,_literal:()=>fd,_length:()=>o4,_lazy:()=>id,_ksuid:()=>sO,_jwt:()=>Y5,_isoTime:()=>fQ,_isoDuration:()=>yQ,_isoDateTime:()=>wQ,_isoDate:()=>xQ,_ipv6:()=>$5,_ipv4:()=>eO,_intersection:()=>Nd,_int64:()=>nM,_int32:()=>xM,_int:()=>kM,_includes:()=>wG,_iban:()=>qM,_guid:()=>nO,_gte:()=>f6,_gt:()=>$_,_float64:()=>wM,_float32:()=>gM,_file:()=>$A,_enum:()=>wd,_endsWith:()=>fG,_encodeAsync:()=>$O,_encode:()=>sZ,_emoji:()=>dO,_email:()=>uO,_e164:()=>G5,_discriminatedUnion:()=>qd,_default:()=>ud,_decodeAsync:()=>UO,_decode:()=>eZ,_date:()=>rM,_custom:()=>UA,_cuid2:()=>tO,_cuid:()=>oO,_creditCard:()=>CM,_coercedString:()=>SM,_coercedNumber:()=>jM,_coercedDate:()=>aM,_coercedBoolean:()=>bM,_coercedBigint:()=>uM,_cidrv6:()=>I5,_cidrv4:()=>U5,_check:()=>qj,_catch:()=>cd,_boolean:()=>yM,_bigint:()=>hM,_base64url:()=>X5,_base64:()=>_5,_array:()=>eM,_any:()=>dM,ZodCompileUnsupportedError:()=>$1,ZodCompileAsyncError:()=>sI,URL_UNPARSEABLE:()=>HQ,URL_BAD_FORMAT:()=>sH,TimePrecision:()=>NM,NEVER:()=>bW,JSONSchemaGenerator:()=>tA,JSONSchema:()=>lj,INVALID:()=>aU,Doc:()=>vG,$output:()=>HM,$input:()=>FM,$constructor:()=>m0,$brand:()=>hW,$ZodXor:()=>fF,$ZodXID:()=>YF,$ZodVoid:()=>kF,$ZodUnknown:()=>BF,$ZodUnion:()=>RQ,$ZodUndefined:()=>CF,$ZodUUID:()=>rH,$ZodURL:()=>$F,$ZodULID:()=>GF,$ZodType:()=>y$,$ZodTuple:()=>qO,$ZodTransform:()=>dF,$ZodTemplateLiteral:()=>_T,$ZodSymbol:()=>vF,$ZodSuccess:()=>sF,$ZodStringFormat:()=>D1,$ZodString:()=>n4,$ZodSet:()=>pF,$ZodRegistry:()=>TM,$ZodRecord:()=>uF,$ZodRealError:()=>L6,$ZodReadonly:()=>IT,$ZodPromise:()=>GT,$ZodPreprocess:()=>UT,$ZodPrefault:()=>rF,$ZodPipe:()=>BO,$ZodOptional:()=>NO,$ZodObjectJIT:()=>xF,$ZodObject:()=>zj,$ZodNumberFormat:()=>VF,$ZodNumber:()=>vO,$ZodNullable:()=>oF,$ZodNull:()=>qF,$ZodNonOptional:()=>aF,$ZodNever:()=>jF,$ZodNanoID:()=>IF,$ZodNaN:()=>$T,$ZodMap:()=>nF,$ZodMAC:()=>DF,$ZodLiteral:()=>lF,$ZodLazy:()=>VQ,$ZodKSUID:()=>JF,$ZodJWT:()=>RF,$ZodIntersection:()=>hF,$ZodISOTime:()=>ZF,$ZodISODuration:()=>OF,$ZodISODateTime:()=>QF,$ZodISODate:()=>zF,$ZodIPv6:()=>KF,$ZodIPv4:()=>LF,$ZodIBAN:()=>EF,$ZodGUID:()=>tH,$ZodFunction:()=>XT,$ZodFile:()=>mF,$ZodExactOptional:()=>iF,$ZodError:()=>pW,$ZodEnum:()=>cF,$ZodEncodeError:()=>h4,$ZodEmoji:()=>UF,$ZodEmail:()=>aH,$ZodE164:()=>MF,$ZodDiscriminatedUnion:()=>bF,$ZodDefault:()=>tF,$ZodDate:()=>gF,$ZodCyclicError:()=>zT,$ZodCustomStringFormat:()=>PF,$ZodCustom:()=>YT,$ZodCreditCard:()=>AF,$ZodCodec:()=>PQ,$ZodCheckUpperCase:()=>hH,$ZodCheckStringFormat:()=>SG,$ZodCheckStartsWith:()=>nH,$ZodCheckSizeEquals:()=>gH,$ZodCheckRegex:()=>yH,$ZodCheckProperty:()=>cH,$ZodCheckProperties:()=>lH,$ZodCheckOverwrite:()=>dH,$ZodCheckNumberFormat:()=>NH,$ZodCheckMultipleOf:()=>qH,$ZodCheckMinSize:()=>kH,$ZodCheckMinLength:()=>xH,$ZodCheckMimeType:()=>mH,$ZodCheckMaxSize:()=>jH,$ZodCheckMaxLength:()=>wH,$ZodCheckLowerCase:()=>bH,$ZodCheckLessThan:()=>ZO,$ZodCheckLengthEquals:()=>fH,$ZodCheckIncludes:()=>uH,$ZodCheckGreaterThan:()=>OO,$ZodCheckEndsWith:()=>pH,$ZodCheckBigIntFormat:()=>BH,$ZodCheck:()=>A1,$ZodCatch:()=>eF,$ZodCUID2:()=>XF,$ZodCUID:()=>_F,$ZodCIDRv6:()=>HF,$ZodCIDRv4:()=>WF,$ZodBoolean:()=>EQ,$ZodBigIntFormat:()=>SF,$ZodBigInt:()=>CO,$ZodBase64URL:()=>TF,$ZodBase64:()=>FF,$ZodAsyncError:()=>w6,$ZodArray:()=>wF,$ZodAny:()=>NF});var G$={};LU(G$,{unwrapMessage:()=>WG,uint8ArrayToHex:()=>Lc,uint8ArrayToBase64url:()=>Zc,uint8ArrayToBase64:()=>gB,toZod:()=>eJ,stringifyPrimitive:()=>Q$,slugify:()=>BW,shallowClone:()=>UQ,safeExtend:()=>_c,required:()=>Yc,rawShape:()=>MG,randomString:()=>rp,propertyKeyTypes:()=>IQ,promiseAllObject:()=>tp,primitiveTypes:()=>kW,prefixIssues:()=>Z6,pick:()=>$c,partial:()=>Gc,parsedType:()=>O$,own:()=>g2,optionalKeys:()=>gW,omit:()=>Uc,objectClone:()=>mp,numKeys:()=>ap,nullish:()=>lZ,normalizeParams:()=>W$,mergeDefs:()=>HI,merge:()=>Xc,members:()=>xW,jsonStringifyReplacer:()=>FG,joinValues:()=>i0,issue:()=>AG,isPlainObject:()=>UI,isObject:()=>y4,installLazyProp:()=>Fc,hide:()=>JQ,hexToUint8Array:()=>Oc,getSizableOrigin:()=>GQ,getParsedType:()=>sp,getLengthableOrigin:()=>YQ,getEnumValues:()=>HG,getElementAtPath:()=>op,floatSafeRemainder:()=>$Q,finalizeIssue:()=>O6,extend:()=>Ic,explicitlyAborted:()=>wW,escapeRegex:()=>II,esc:()=>tU,derived:()=>Kc,defineLazyInternal:()=>m$,defineLazy:()=>NW,createTransparentProxy:()=>ep,constantCatch:()=>fW,codePointLength:()=>b4,cloneDef:()=>ip,clone:()=>K1,cleanRegex:()=>f_,cleanEnum:()=>Qc,captureStackTrace:()=>mZ,cached:()=>TG,base64urlToUint8Array:()=>zc,base64ToUint8Array:()=>kB,attachSchema:()=>iZ,assignProp:()=>kU,assertNotEqual:()=>np,assertNever:()=>cp,assertIs:()=>pp,assertEqual:()=>up,assert:()=>lp,allowsEval:()=>jW,aborted:()=>rU,NUMBER_FORMAT_RANGES:()=>_Q,Class:()=>wB,CONSTANT_CATCH:()=>oZ,BIGINT_FORMAT_RANGES:()=>XQ});function up($){return $}function np($){return $}function eJ(){return($)=>$}function pp($){}function cp($){throw Error("Unexpected value in exhaustive check")}function lp($){}function HG($){let I=Object.values($).filter((Z)=>typeof Z==="number");return Object.entries($).filter(([Z,_])=>I.indexOf(+Z)===-1).map(([Z,_])=>_)}function i0($,I="|"){return $.map((G)=>Q$(G)).join(I)}function FG($,I){if(typeof I==="bigint")return I.toString();return I}class qB{constructor($){this._getter=$,this._value=void 0}get value(){let $=this._getter;if($!==void 0)this._value=$(),this._getter=void 0;return this._value}}function TG($){return new qB($)}function lZ($){return $===null||$===void 0}function f_($){let I=$.startsWith("^")?1:0,G=$.endsWith("$")?$.length-1:$.length;return $.slice(I,G)}function $Q($,I){let G=$/I,Z=Math.round(G),_=4*Number.EPSILON*Math.max(Math.abs(G),1);if(Math.abs(G-Z)<_)return 0;return G-Z}var CB=Symbol("evaluating");function NW($,I,G){let Z=void 0;Object.defineProperty($,I,{get(){if(Z===CB)return;if(Z===void 0)Z=CB,Z=G();return Z},set(_){Object.defineProperty($,I,{value:_})},configurable:!0})}function mp($){return Object.create(Object.getPrototypeOf($),Object.getOwnPropertyDescriptors($))}function kU($,I,G){Object.defineProperty($,I,{value:G,writable:!0,enumerable:!0,configurable:!0})}function MG($){let I=Object.getOwnPropertyDescriptor($,"shape");return I?.get?I.get.raw:I?.value}function x_($){return MG($._zod.def)??$._zod.def.shape}function NB($,I,G){Object.defineProperty($,I,{get(){let Z=G();return kU(this,I,Z),Z},enumerable:!0,configurable:!0})}function BB($,I,G){if(I in $)kU($,I,G);else $[I]=G}function f4($,I,G,Z){let _=x_(I);for(let J of G){let Y=Object.getOwnPropertyDescriptor(_,J);if(!Y.enumerable)continue;if(Y.get)NB($,J,()=>{let W=I._zod.def.shape[J];return Z?Z(W,J):W});else BB($,J,Z?Z(Y.value,J):Y.value)}}function dp($,I){for(let G of Reflect.ownKeys(I)){let Z=Object.getOwnPropertyDescriptor(I,G);if(!Z.enumerable)continue;if(Z.get)NB($,G,()=>I[G]);else BB($,G,Z.value)}}function HI(...$){let I={};for(let G of $){let Z=Object.getOwnPropertyDescriptors(G);Object.assign(I,Z)}return Object.defineProperties({},I)}function ip($){return HI($._zod.def)}function op($,I){if(!I)return $;return I.reduce((G,Z)=>G?.[Z],$)}function tp($){let I=Object.keys($),G=I.map((Z)=>$[Z]);return Promise.all(G).then((Z)=>{let _={};for(let J=0;J<I.length;J++)_[I[J]]=Z[J];return _})}function rp($=10){let G="";for(let Z=0;Z<$;Z++)G+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return G}function tU($){return JSON.stringify($)}function BW($){return $.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var mZ="captureStackTrace"in Error?Error.captureStackTrace:(...$)=>{};function y4($){return typeof $==="object"&&$!==null&&!Array.isArray($)}var jW=TG(()=>{if(SU.jitless)return!1;if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch($){return!1}});function UI($){if(y4($)===!1)return!1;let I=$.constructor;if(I===void 0)return!0;if(typeof I!=="function")return!0;let G=I.prototype;if(y4(G)===!1)return!1;if(Object.prototype.hasOwnProperty.call(G,"isPrototypeOf")===!1)return!1;return!0}function UQ($){if(UI($))return{...$};if(Array.isArray($))return[...$];if($ instanceof Map)return new Map($);if($ instanceof Set)return new Set($);return $}function ap($){let I=0;for(let G in $)if(Object.prototype.hasOwnProperty.call($,G))I++;return I}var sp=($)=>{let I=typeof $;switch(I){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN($)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray($))return"array";if($===null)return"null";if($.then&&typeof $.then==="function"&&$.catch&&typeof $.catch==="function")return"promise";if(typeof Map<"u"&&$ instanceof Map)return"map";if(typeof Set<"u"&&$ instanceof Set)return"set";if(typeof Date<"u"&&$ instanceof Date)return"date";if(typeof File<"u"&&$ instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${I}`)}},IQ=new Set(["string","number","symbol"]),kW=new Set(["string","number","bigint","boolean","symbol","undefined"]);function II($){return $.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function K1($,I,G){let Z=new $._zod.constr(I??$._zod.def);if(!I||G?.parent)Z._zod.parent=$;return Z}function W$($){let I=$;if(!I)return{};if(typeof I==="string")return{error:()=>I};if(I?.message!==void 0){if(I?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");I.error=I.message}if(delete I.message,typeof I.error==="string")return{...I,error:()=>I.error};return I}function ep($){let I;return new Proxy({},{get(G,Z,_){return I??(I=$()),Reflect.get(I,Z,_)},set(G,Z,_,J){return I??(I=$()),Reflect.set(I,Z,_,J)},has(G,Z){return I??(I=$()),Reflect.has(I,Z)},deleteProperty(G,Z){return I??(I=$()),Reflect.deleteProperty(I,Z)},ownKeys(G){return I??(I=$()),Reflect.ownKeys(I)},getOwnPropertyDescriptor(G,Z){return I??(I=$()),Reflect.getOwnPropertyDescriptor(I,Z)},defineProperty(G,Z,_){return I??(I=$()),Reflect.defineProperty(I,Z,_)}})}function Q$($){if(typeof $==="bigint")return $.toString()+"n";if(typeof $==="string")return`"${$}"`;return`${$}`}function gW($){return Object.keys($).filter((I)=>{return $[I]._zod.optin!==void 0&&$[I]._zod.optout==="optional"})}var _Q=(()=>({safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]}))(),XQ={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function $c($,I){let G=$._zod.def,Z=G.checks;if(Z&&Z.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let J={};return f4(J,$,dZ($,I)),K1($,HI(G,{shape:J,checks:[]}))}function dZ($,I){let G=x_($),Z=[];for(let _ of Reflect.ownKeys(I)){if(!Object.getOwnPropertyDescriptor(G,_)?.enumerable)throw Error(`Unrecognized key: "${String(_)}"`);if(I[_])Z.push(_)}return Z}function Uc($,I){let G=$._zod.def,Z=G.checks;if(Z&&Z.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let J=new Set(dZ($,I)),Y={};return f4(Y,$,Reflect.ownKeys(x_($)).filter((W)=>!J.has(W))),K1($,HI(G,{shape:Y,checks:[]}))}function Ic($,I){if(!UI(I))throw Error("Invalid input to extend: expected a plain object");let G=$._zod.def.checks;if(G&&G.length>0){let _=x_($);for(let J of Reflect.ownKeys(I))if(Object.getOwnPropertyDescriptor(_,J)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return K1($,HI($._zod.def,{shape:jB($,I)}))}function jB($,I){let G={};return f4(G,$,Reflect.ownKeys(x_($))),dp(G,I),G}function _c($,I){if(!UI(I))throw Error("Invalid input to safeExtend: expected a plain object");return K1($,HI($._zod.def,{shape:jB($,I)}))}function Xc($,I){if(!I?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if($._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let G={};f4(G,$,Reflect.ownKeys(x_($))),f4(G,I,Reflect.ownKeys(x_(I)));let Z=HI($._zod.def,{shape:G,get catchall(){return I._zod.def.catchall},checks:I._zod.def.checks??[]});return K1($,Z)}function Gc($,I,G,Z="partial"){let J=I._zod.def.checks;if(J&&J.length>0)throw Error(`.${Z}() cannot be used on object schemas containing refinements`);let W=G?new Set(dZ(I,G)):void 0,R={};return f4(R,I,Reflect.ownKeys(x_(I)),$&&((M,E)=>W&&!W.has(E)?M:new $({type:"optional",innerType:M}))),K1(I,HI(I._zod.def,{shape:R,checks:[]}))}function Yc($,I,G){let Z=G?new Set(dZ(I,G)):void 0,_={};return f4(_,I,Reflect.ownKeys(x_(I)),(J,Y)=>Z&&!Z.has(Y)?J:new $({type:"nonoptional",innerType:J})),K1(I,HI(I._zod.def,{shape:_}))}function rU($,I=0){if($.aborted===!0)return!0;for(let G=I;G<$.issues.length;G++)if($.issues[G]?.continue!==!0)return!0;return!1}function wW($,I=0){if($.aborted===!0)return!0;for(let G=I;G<$.issues.length;G++)if($.issues[G]?.continue===!1)return!0;return!1}function Z6($,I){return I.map((G)=>{var Z;return(Z=G).path??(Z.path=[]),G.path.unshift($),G})}function WG($){return typeof $==="string"?$:$?.message}function iZ($,I,G){var Z;for(let _=I;_<$.length;_++)(Z=$[_]).schema??(Z.schema=G)}function O6($,I,G){var Z;let _=$.inst?._zod?.traits;if(_?.has("$ZodType"))if(_.has("$ZodCheck"))(Z=$).schema??(Z.schema=$.inst);else $.schema=$.inst;let J=$.schema!==$.inst?$.schema?._zod.def?.error:void 0,Y=$.message?$.message:WG($.inst?._zod.def?.error?.($))??WG(J?.($))??WG(I?.error?.($))??WG(G.customError?.($))??WG(G.localeError?.($))??"Invalid input",W={};for(let R of Object.keys($)){if(R==="inst"||R==="schema"||R==="continue"||R==="input"||R==="__proto__")continue;W[R]=$[R]}if(W.path??(W.path=[]),W.message=Y,I?.reportInput)W.input=$.input;return W}function GQ($){if($ instanceof Set)return"set";if($ instanceof Map)return"map";if($ instanceof File)return"file";return"unknown"}var Jc=/[\uD800-\uDBFF]/;function b4($){let I=$.length;if(!Jc.test($))return I;let G=I;for(let Z=0;Z<I-1;Z++)if(($.charCodeAt(Z)&64512)===55296&&($.charCodeAt(Z+1)&64512)===56320)G--,Z++;return G}function YQ($){if(Array.isArray($))return"array";if(typeof $==="string")return"string";return"unknown"}function O$($){let I=typeof $;switch(I){case"number":return Number.isNaN($)?"nan":"number";case"object":{if($===null)return"null";if(Array.isArray($))return"array";let G=$;if(G&&Object.getPrototypeOf(G)!==Object.prototype&&"constructor"in G&&G.constructor)return G.constructor.name}}return I}function AG(...$){let[I,G,Z]=$;if(typeof I==="string")return{message:I,code:"custom",input:G,inst:Z};return{...I}}function Qc($){return Object.entries($).filter(([I,G])=>{return Number.isNaN(Number.parseInt(I,10))}).map((I)=>I[1])}function kB($){let I=atob($),G=new Uint8Array(I.length);for(let Z=0;Z<I.length;Z++)G[Z]=I.charCodeAt(Z);return G}function gB($){let I="";for(let G=0;G<$.length;G++)I+=String.fromCharCode($[G]);return btoa(I)}function zc($){let I=$.replace(/-/g,"+").replace(/_/g,"/"),G="=".repeat((4-I.length%4)%4);return kB(I+G)}function Zc($){return gB($).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Oc($){let I=$.replace(/^0x/,"");if(I.length%2!==0)throw Error("Invalid hex string length");let G=new Uint8Array(I.length/2);for(let Z=0;Z<I.length;Z+=2)G[Z/2]=Number.parseInt(I.slice(Z,Z+2),16);return G}function Lc($){return Array.from($).map((I)=>I.toString(16).padStart(2,"0")).join("")}class wB{constructor(...$){}}function xW($,I){for(let G in I){let Z=Object.getOwnPropertyDescriptor(I,G);if(Z.get)Object.defineProperty($,G,{...Z,enumerable:!1});else Dc($,G,Z.value)}}function g2($,I,G,Z=!0){return Object.defineProperty($,I,{configurable:!0,writable:!0,enumerable:Z,value:G}),G}function JQ($,I,G){return g2($,I,G,!1)}function Kc($,I){for(let G in $){let Z=$[G];Object.defineProperty(I,G,{configurable:!0,enumerable:!0,get(){return g2(this,G,Z(this))},set(_){g2(this,G,_)}})}return I}function Dc($,I,G){Object.defineProperty($,I,{configurable:!0,get(){return this==null?G:g2(this,I,G.bind(this))},set(Z){g2(this,I,Z)}})}function Wc($,I){let G=Object.getPrototypeOf($);return I in G?void 0:G}var qW,k2=!1,Hc={configurable:!0,get(){k2=!0;return}};function m$($,I,G){let Z=Object.getPrototypeOf($._zod);if(I in Z&&qW!==$._zod){qW=void 0;return}qW=$._zod,Object.defineProperty(Z,I,{configurable:!0,get(){Object.defineProperty(this,I,Hc);let _=k2;k2=!1;try{let J=G(this);if(k2)delete this[I];else Object.defineProperty(this,I,{configurable:!0,writable:!0,value:J});return k2=k2||_,J}catch(J){throw delete this[I],k2=k2||_,J}},set(_){Object.defineProperty(this,I,{configurable:!0,writable:!0,value:_})}})}function Fc($,I,G,Z){let _=Wc($,I);if(!_)return;Object.defineProperty(_,I,{configurable:!0,get(){let J={configurable:!0,writable:!0,enumerable:Z,value:void 0};return Object.defineProperty(this,I,J),J.value=G(this),Object.defineProperty(this,I,J),J.value},set(J){Object.defineProperty(this,I,{configurable:!0,writable:!0,enumerable:Z,value:J})}})}var oZ="~constantCatch";function fW($){let I=()=>$;return I[oZ]=!0,I}var xB,bW=Object.freeze({status:"aborted"}),yW={value:void 0,enumerable:!1},fB="captureStackTrace"in Error?Error:null;function Tc($){let I=fB;if(I){let G=I.stackTraceLimit;if(typeof G==="number"){try{I.stackTraceLimit=0}catch{return fB=null,new $}try{return new $}finally{I.stackTraceLimit=G}}}return new $}function m0($,I,G,Z){let _={};function J(S){this.def=S,this.constr=T,this.traits=new Set}J.prototype=_;let Y=G,W=Y&&new WeakSet;function R(S,N){if(!S._zod){yW.value=new J(N);try{Object.defineProperty(S,"_zod",yW)}finally{yW.value=void 0}}else if(S._zod.traits.has($))return;if(S._zod.traits.add($),I(S,N),W){let x=Object.getPrototypeOf(S),w=S._zod.constr.prototype,y=x;while(y&&y!==w)y=Object.getPrototypeOf(y);let g=y??x;if(!W.has(g))W.add(g),xW(g,Y)}let B=T.prototype;for(let x in B){if(!Object.prototype.hasOwnProperty.call(B,x))continue;if(!(x in S))S[x]=B[x].bind(S)}}let M=Z?.Parent??Object;class E extends M{}Object.defineProperty(E,"name",{value:$});function T(S){let N=Z?.Parent?Tc(E):this;R(N,S);let B=N._zod.deferred;if(B){for(let w of B)w();N._zod.deferred=void 0}let x=globalThis.__zod_globalConfig?.postProcessor;if(x)x(N);return N}return Object.defineProperty(T,"init",{value:R}),Object.defineProperty(T,Symbol.hasInstance,{value:(S)=>{if(Z?.Parent&&S instanceof Z.Parent)return!0;return S?._zod?.traits?.has($)}}),Object.defineProperty(T,"name",{value:$}),T}var hW=Symbol("zod_brand");class w6 extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class h4 extends Error{constructor($){super(`Encountered unidirectional transform during encode: ${$}`);this.name="ZodEncodeError"}}(xB=globalThis).__zod_globalConfig??(xB.__zod_globalConfig={});var SU=globalThis.__zod_globalConfig;function IU($){if($)Object.assign(SU,$);return SU}function Mc(){let $=this._zod;return $.message??($.message=JSON.stringify($.def,FG,2)),$.message}function Ac($){this._zod.message=$}var Ec={get:Mc,set:Ac,enumerable:!0,configurable:!0},nW={value:void 0,enumerable:!1},yB=new WeakSet([Object.prototype,Error.prototype]),bB=($,I)=>{$.name="$ZodError",nW.value=I,Object.defineProperty($,"issues",nW),nW.value=void 0,Object.defineProperty($,"message",Ec);let G=Object.getPrototypeOf($);if(!yB.has(G))yB.add(G),Object.defineProperty(G,"toString",{configurable:!0,enumerable:!1,get(){let Z=()=>this.message;return Object.defineProperty(this,"toString",{value:Z,configurable:!0,writable:!0}),Z},set(Z){Object.defineProperty(this,"toString",{value:Z,configurable:!0,writable:!0})}})},pW=m0("$ZodError",bB),L6=m0("$ZodError",bB,void 0,{Parent:Error});function Rc($,I,G){if(!Object.prototype.hasOwnProperty.call($,I))if(I==="__proto__")Object.defineProperty($,I,{value:G(),writable:!0,enumerable:!0,configurable:!0});else $[I]=G();return $[I]}function QQ($,I=(G)=>G.message){let G={},Z=[];for(let _ of $.issues)if(_.path.length>0)Rc(G,_.path[0],()=>[]).push(I(_));else Z.push(I(_));return{formErrors:Z,fieldErrors:G}}function zQ($,I=(G)=>G.message){let G={_errors:[]},Z=(_,J=[])=>{for(let Y of _.issues)if(Y.code==="invalid_union"&&Y.errors.length)Y.errors.map((W)=>Z({issues:W},[...J,...Y.path]));else if(Y.code==="invalid_key")Z({issues:Y.issues},[...J,...Y.path]);else if(Y.code==="invalid_element")Z({issues:Y.issues},[...J,...Y.path]);else{let W=[...J,...Y.path];if(W.length===0)G._errors.push(I(Y));else{let R=G,M=0;while(M<W.length){let E=W[M],T=M===W.length-1;if(E==="_errors"){if(T)R._errors.push(I(Y));M++;continue}if(!Object.prototype.hasOwnProperty.call(R,E))Object.defineProperty(R,E,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let S=R[E];if(T)S._errors.push(I(Y));R=S,M++}}}};return Z($),G}function cW($,I=(G)=>G.message){let G={errors:[]},Z=(_,J=[])=>{var Y;for(let W of _.issues)if(W.code==="invalid_union"&&W.errors.length)W.errors.map((R)=>Z({issues:R},[...J,...W.path]));else if(W.code==="invalid_key")Z({issues:W.issues},[...J,...W.path]);else if(W.code==="invalid_element")Z({issues:W.issues},[...J,...W.path]);else{let R=[...J,...W.path];if(R.length===0){G.errors.push(I(W));continue}let M=G,E=0;while(E<R.length){let T=R[E],S=E===R.length-1;if(typeof T==="string"){if(M.properties??(M.properties={}),!Object.prototype.hasOwnProperty.call(M.properties,T))Object.defineProperty(M.properties,T,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0});M=M.properties[T]}else M.items??(M.items=[]),(Y=M.items)[T]??(Y[T]={errors:[]}),M=M.items[T];if(S)M.errors.push(I(W));E++}}};return Z($),G}function hB($){let I=[],G=$.map((Z)=>typeof Z==="object"?Z.key:Z);for(let Z of G)if(typeof Z==="number")I.push(`[${Z}]`);else if(typeof Z==="symbol")I.push(`[${JSON.stringify(String(Z))}]`);else if(/[^\w$]/.test(Z))I.push(`[${JSON.stringify(Z)}]`);else{if(I.length)I.push(".");I.push(Z)}return I.join("")}function lW($){let I=[],G=[...$.issues].sort((Z,_)=>(Z.path??[]).length-(_.path??[]).length);for(let Z of G)if(I.push(`✖ ${Z.message}`),Z.path?.length)I.push(` → at ${hB(Z.path)}`);return I.join(`
|
|
327
|
-
`)}function tZ($,I){return{callee:I?.callee??$,Err:I?.Err}}var EG=($)=>{let I=(G,Z,_,J)=>{let Y=_?{..._,async:!1}:{async:!1},W=G._zod.run({value:Z,issues:[]},Y);if(W instanceof Promise)throw new w6;if(W.issues.length){let R=new(J?.Err??$)(W.issues.map((M)=>O6(M,Y,IU())));throw mZ(R,J?.callee??I),R}return W.value};return I},rZ=EG(L6),RG=($)=>{let I=async(G,Z,_,J)=>{let Y=_?{..._,async:!0}:{async:!0},W=G._zod.run({value:Z,issues:[]},Y);if(W instanceof Promise)W=await W;if(W.issues.length){let R=new(J?.Err??$)(W.issues.map((M)=>O6(M,Y,IU())));throw mZ(R,J?.callee??I),R}return W.value};return I},aZ=RG(L6),PG=($)=>(I,G,Z)=>{let _=Z?{...Z,async:!1}:{async:!1},J=I._zod.run({value:G,issues:[]},_);if(J instanceof Promise)throw new w6;return J.issues.length?uB($,J.issues,_):{success:!0,data:J.value}},Vc=PG(L6);function uB($,I,G){let Z;return{success:!1,get error(){if(!Z)Z=new $(I.map((_)=>O6(_,G,IU()))),I=void 0,G=void 0;return Z},set error(_){Z=_,I=void 0,G=void 0}}}var VG=($)=>async(I,G,Z)=>{let _=Z?{...Z,async:!0}:{async:!0},J=I._zod.run({value:G,issues:[]},_);if(J instanceof Promise)J=await J;return J.issues.length?uB($,J.issues,_):{success:!0,data:J.value}},Sc=VG(L6),vc=Symbol.for("zod.compile.invalid"),Cc=Symbol.for("zod.compile.fallback"),ZQ=($,I,G)=>{let Z=$._zod.bag.validator;if(Z!==void 0){if(Z(I)!==vc)return!0;if(Z.definite===!0&&G===void 0)return!1}return qc($,I,G)};function qc($,I,G){let Z=G?{...G,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},_=$._zod.bag.fallbackRun,J;if(_)Z[Cc]=!0,J=_({value:I,issues:[]},Z);else J=$._zod.run({value:I,issues:[]},Z);if(J instanceof Promise)throw new w6;return J.issues.length===0}var OQ=async($,I,G)=>{let Z=G?{...G,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},_=$._zod.run({value:I,issues:[]},Z);if(_ instanceof Promise)_=await _;return _.issues.length===0},sZ=($)=>{let I=EG($),G=(Z,_,J,Y)=>{let W=J?{...J,direction:"backward"}:{direction:"backward"};return I(Z,_,W,tZ(G,Y))};return G},Nc=sZ(L6),eZ=($)=>{let I=EG($),G=(Z,_,J,Y)=>{return I(Z,_,J,tZ(G,Y))};return G},Bc=eZ(L6),$O=($)=>{let I=RG($),G=async(Z,_,J,Y)=>{let W=J?{...J,direction:"backward"}:{direction:"backward"};return await I(Z,_,W,tZ(G,Y))};return G},jc=$O(L6),UO=($)=>{let I=RG($),G=async(Z,_,J,Y)=>{return await I(Z,_,J,tZ(G,Y))};return G},kc=UO(L6),IO=($)=>(I,G,Z)=>{let _=Z?{...Z,direction:"backward"}:{direction:"backward"};return PG($)(I,G,_)},gc=IO(L6),_O=($)=>(I,G,Z)=>{return PG($)(I,G,Z)},wc=_O(L6),XO=($)=>async(I,G,Z)=>{let _=Z?{...Z,direction:"backward"}:{direction:"backward"};return VG($)(I,G,_)},xc=XO(L6),GO=($)=>async(I,G,Z)=>{return VG($)(I,G,Z)},fc=GO(L6);var _I={};LU(_I,{xid:()=>tW,uuid7:()=>uc,uuid6:()=>hc,uuid4:()=>bc,uuid:()=>u4,uppercase:()=>VH,unicodeEmail:()=>nB,undefined:()=>RH,ulid:()=>oW,time:()=>WH,string:()=>TH,sha512_hex:()=>Gl,sha512_base64url:()=>Jl,sha512_base64:()=>Yl,sha384_hex:()=>Il,sha384_base64url:()=>Xl,sha384_base64:()=>_l,sha256_hex:()=>ec,sha256_base64url:()=>Ul,sha256_base64:()=>$l,sha1_hex:()=>rc,sha1_base64url:()=>sc,sha1_base64:()=>ac,rfc5322Email:()=>pc,number:()=>aI,null:()=>EH,nanoidOfLength:()=>sW,nanoid:()=>aW,md5_hex:()=>ic,md5_base64url:()=>tc,md5_base64:()=>oc,mac:()=>GH,lowercase:()=>PH,ksuid:()=>rW,ipv6:()=>XH,ipv4:()=>_H,integer:()=>KQ,idnEmail:()=>cc,iban:()=>JO,httpProtocol:()=>LQ,html5Email:()=>nc,hostname:()=>ZH,hex:()=>SH,guid:()=>$H,extendedDuration:()=>yc,emoji:()=>IH,email:()=>UH,e164:()=>LH,duration:()=>eW,domain:()=>OH,datetime:()=>HH,date:()=>DH,currencyCode:()=>KH,cuid2:()=>iW,cuid:()=>dW,creditCard:()=>YO,cidrv6:()=>JH,cidrv4:()=>YH,browserEmail:()=>lc,boolean:()=>AH,bigint:()=>MH,base64url:()=>zH,base64:()=>QH,anyString:()=>FH});var dW=/^[cC][0-9a-z]{6,}$/,iW=/^[0-9a-z]+$/,oW=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,tW=/^[0-9a-vA-V]{20}$/,rW=/^[A-Za-z0-9]{27}$/,aW=/^[a-zA-Z0-9_-]{21}$/;function sW($){return new RegExp(`^[a-zA-Z0-9_-]{${$}}$`)}var eW=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,yc=/^[-+]?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)?)??$/,$H=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,u4=($)=>{if(!$)return/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${$}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)},bc=u4(4),hc=u4(6),uc=u4(7),UH=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,nc=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,pc=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,nB=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,cc=nB,lc=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,mc="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function IH(){return new RegExp(mc,"u")}var _H=/^(?:(?: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])$/,XH=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,GH=($)=>{let I=II($??":");return new RegExp(`^(?:[0-9A-F]{2}${I}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${I}){5}[0-9a-f]{2}$`)},YH=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,JH=/^(([0-9a-fA-F]{1,4}:){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}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,QH=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,zH=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,ZH=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,OH=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,LQ=/^https?$/,LH=/^\+[1-9]\d{6,14}$/,YO=/^\d(?:[ -]?\d){11,18}$/,KH=/^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/,JO=/^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/,pB="(?:(?:\\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])))";function dc($){return new RegExp(`^${$}$`)}var DH=dc(pB);function mW($){return typeof $.precision==="number"?$.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":$.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${$.precision}}`:$.seconds?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?":"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function WH($){return new RegExp(`^${mW($)}$`)}function HH($){let I=["Z"];if($.offset)I.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let G=`${mW({precision:$.precision,seconds:!0})}(?:${I.join("|")})`,Z=$.local?`${G}|${mW({precision:$.precision})}`:G;return new RegExp(`^${pB}T(?:${Z})$`)}var FH=/^[\s\S]{0,}$/,TH=($)=>{let I=$?`[\\s\\S]{${$?.minimum??0},${$?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${I}$`)},MH=/^-?\d+n?$/,KQ=/^-?\d+$/,aI=/^-?\d+(?:\.\d+)?$/,AH=/^(?:true|false)$/i,EH=/^null$/i;var RH=/^undefined$/i;var PH=/^[^A-Z]*$/,VH=/^[^a-z]*$/,SH=/^[0-9a-fA-F]*$/;function DQ($,I){return new RegExp(`^[A-Za-z0-9+/]{${$}}${I}$`)}function WQ($){return new RegExp(`^[A-Za-z0-9_-]{${$}}$`)}var ic=/^[0-9a-fA-F]{32}$/,oc=DQ(22,"=="),tc=WQ(22),rc=/^[0-9a-fA-F]{40}$/,ac=DQ(27,"="),sc=WQ(27),ec=/^[0-9a-fA-F]{64}$/,$l=DQ(43,"="),Ul=WQ(43),Il=/^[0-9a-fA-F]{96}$/,_l=DQ(64,""),Xl=WQ(64),Gl=/^[0-9a-fA-F]{128}$/,Yl=DQ(86,"=="),Jl=WQ(86);var A1=m0("$ZodCheck",($,I)=>{var G;$._zod??($._zod={}),$._zod.def=I,(G=$._zod).onattach??(G.onattach=[])}),vH=($)=>{let I=$.value;return!lZ(I)&&I.size!==void 0},CH=($)=>{let I=$.value;return!lZ(I)&&I.length!==void 0},QO={number:"number",bigint:"bigint",object:"date"},ZO=m0("$ZodCheckLessThan",($,I)=>{A1.init($,I);let G=QO[typeof I.value];$._zod.check=(Z)=>{if(I.inclusive?Z.value<=I.value:Z.value<I.value)return;Z.issues.push({origin:QO[typeof Z.value]??G,code:"too_big",maximum:typeof I.value==="object"?I.value.getTime():I.value,input:Z.value,inclusive:I.inclusive,inst:$,continue:!I.abort})}}),OO=m0("$ZodCheckGreaterThan",($,I)=>{A1.init($,I);let G=QO[typeof I.value];$._zod.check=(Z)=>{if(I.inclusive?Z.value>=I.value:Z.value>I.value)return;Z.issues.push({origin:QO[typeof Z.value]??G,code:"too_small",minimum:typeof I.value==="object"?I.value.getTime():I.value,input:Z.value,inclusive:I.inclusive,inst:$,continue:!I.abort})}}),qH=m0("$ZodCheckMultipleOf",($,I)=>{A1.init($,I),$._zod.check=(G)=>{if(typeof G.value!==typeof I.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof G.value==="bigint"?I.value!==BigInt(0)&&G.value%I.value===BigInt(0):$Q(G.value,I.value)===0)return;G.issues.push({origin:typeof G.value,code:"not_multiple_of",divisor:I.value,input:G.value,inst:$,continue:!I.abort})}}),NH=m0("$ZodCheckNumberFormat",($,I)=>{A1.init($,I),I.format=I.format||"float64";let G=I.format?.includes("int"),Z=G?"int":"number",[_,J]=_Q[I.format];$._zod.check=(Y)=>{let W=Y.value;if(G){if(!Number.isInteger(W)){Y.issues.push({expected:Z,format:I.format,code:"invalid_type",continue:!1,input:W,inst:$});return}if(!Number.isSafeInteger(W)){if(W>0)Y.issues.push({input:W,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:$,origin:Z,inclusive:!0,continue:!I.abort});else Y.issues.push({input:W,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:$,origin:Z,inclusive:!0,continue:!I.abort});return}}if(W<_)Y.issues.push({origin:"number",input:W,code:"too_small",minimum:_,inclusive:!0,inst:$,continue:!I.abort});if(W>J)Y.issues.push({origin:"number",input:W,code:"too_big",maximum:J,inclusive:!0,inst:$,continue:!I.abort})}}),BH=m0("$ZodCheckBigIntFormat",($,I)=>{A1.init($,I);let[G,Z]=XQ[I.format];$._zod.check=(_)=>{let J=_.value;if(J<G)_.issues.push({origin:"bigint",input:J,code:"too_small",minimum:G,inclusive:!0,inst:$,continue:!I.abort});if(J>Z)_.issues.push({origin:"bigint",input:J,code:"too_big",maximum:Z,inclusive:!0,inst:$,continue:!I.abort})}}),jH=m0("$ZodCheckMaxSize",($,I)=>{var G;A1.init($,I),(G=$._zod.def).when??(G.when=vH),$._zod.check=(Z)=>{let _=Z.value;if(_.size<=I.maximum)return;Z.issues.push({origin:GQ(_),code:"too_big",maximum:I.maximum,inclusive:!0,input:_,inst:$,continue:!I.abort})}}),kH=m0("$ZodCheckMinSize",($,I)=>{var G;A1.init($,I),(G=$._zod.def).when??(G.when=vH),$._zod.check=(Z)=>{let _=Z.value;if(_.size>=I.minimum)return;Z.issues.push({origin:GQ(_),code:"too_small",minimum:I.minimum,inclusive:!0,input:_,inst:$,continue:!I.abort})}}),gH=m0("$ZodCheckSizeEquals",($,I)=>{var G;A1.init($,I),(G=$._zod.def).when??(G.when=vH),$._zod.check=(Z)=>{let _=Z.value,J=_.size;if(J===I.size)return;let Y=J>I.size;Z.issues.push({origin:GQ(_),...Y?{code:"too_big",maximum:I.size}:{code:"too_small",minimum:I.size},inclusive:!0,exact:!0,input:Z.value,inst:$,continue:!I.abort})}}),wH=m0("$ZodCheckMaxLength",($,I)=>{var G;A1.init($,I),(G=$._zod.def).when??(G.when=CH),$._zod.check=(Z)=>{let _=Z.value,J=_.length;if((typeof _==="string"&&J>I.maximum?b4(_):J)<=I.maximum)return;let W=YQ(_);Z.issues.push({origin:W,code:"too_big",maximum:I.maximum,inclusive:!0,input:_,inst:$,continue:!I.abort})}}),xH=m0("$ZodCheckMinLength",($,I)=>{var G;A1.init($,I),(G=$._zod.def).when??(G.when=CH),$._zod.check=(Z)=>{let _=Z.value,J=_.length;if((typeof _==="string"&&J>=I.minimum&&J<I.minimum*2?b4(_):J)>=I.minimum)return;let W=YQ(_);Z.issues.push({origin:W,code:"too_small",minimum:I.minimum,inclusive:!0,input:_,inst:$,continue:!I.abort})}}),fH=m0("$ZodCheckLengthEquals",($,I)=>{var G;A1.init($,I),(G=$._zod.def).when??(G.when=CH),$._zod.check=(Z)=>{let _=Z.value,J=_.length,Y=typeof _==="string"&&J>=I.length&&J<=I.length*2?b4(_):J;if(Y===I.length)return;let W=YQ(_),R=Y>I.length;Z.issues.push({origin:W,...R?{code:"too_big",maximum:I.length}:{code:"too_small",minimum:I.length},inclusive:!0,exact:!0,input:Z.value,inst:$,continue:!I.abort})}}),SG=m0("$ZodCheckStringFormat",($,I)=>{var G,Z;if(A1.init($,I),I.pattern)(G=$._zod).check??(G.check=(_)=>{if(I.pattern.lastIndex=0,I.pattern.test(_.value))return;_.issues.push({origin:"string",code:"invalid_format",format:I.format,input:_.value,...I.pattern?{pattern:I.pattern.toString()}:{},inst:$,continue:!I.abort})});else(Z=$._zod).check??(Z.check=()=>{})}),yH=m0("$ZodCheckRegex",($,I)=>{SG.init($,I),$._zod.check=(G)=>{if(I.pattern.lastIndex=0,I.pattern.test(G.value))return;G.issues.push({origin:"string",code:"invalid_format",format:"regex",input:G.value,pattern:I.pattern.toString(),inst:$,continue:!I.abort})}}),bH=m0("$ZodCheckLowerCase",($,I)=>{I.pattern??(I.pattern=PH),SG.init($,I)}),hH=m0("$ZodCheckUpperCase",($,I)=>{I.pattern??(I.pattern=VH),SG.init($,I)}),uH=m0("$ZodCheckIncludes",($,I)=>{A1.init($,I);let G=II(I.includes),Z=new RegExp(typeof I.position==="number"?`^.{${I.position},}${G}`:G);I.pattern=Z,$._zod.check=(_)=>{if(_.value.includes(I.includes,I.position))return;_.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:I.includes,input:_.value,inst:$,continue:!I.abort})}}),nH=m0("$ZodCheckStartsWith",($,I)=>{A1.init($,I);let G=new RegExp(`^${II(I.prefix)}.*`);I.pattern??(I.pattern=G),$._zod.check=(Z)=>{if(Z.value.startsWith(I.prefix))return;Z.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:I.prefix,input:Z.value,inst:$,continue:!I.abort})}}),pH=m0("$ZodCheckEndsWith",($,I)=>{A1.init($,I);let G=new RegExp(`.*${II(I.suffix)}$`);I.pattern??(I.pattern=G),$._zod.check=(Z)=>{if(Z.value.endsWith(I.suffix))return;Z.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:I.suffix,input:Z.value,inst:$,continue:!I.abort})}});function zO($,I,G){if($.issues.length)I.issues.push(...Z6(G,$.issues))}var cH=m0("$ZodCheckProperty",($,I)=>{A1.init($,I),$._zod.check=(G)=>{let Z=I.schema._zod.run({value:G.value[I.property],issues:[]},{});if(Z instanceof Promise)return Z.then((_)=>zO(_,G,I.property));zO(Z,G,I.property);return}}),lH=m0("$ZodCheckProperties",($,I)=>{A1.init($,I),JQ($,Symbol.iterator,function*(){yield $});let G;$._zod.check=(Z)=>{if(Z.value==null){Z.issues.push({expected:"object",code:"invalid_type",input:Z.value,inst:$});return}G??(G=Reflect.ownKeys(I.shape).map((Y)=>[Y,I.shape[Y]]));let _=Z.value,J;for(let[Y,W]of G){let R=W._zod.run({value:_[Y],issues:[]},{});if(R instanceof Promise)J??(J=[]),J.push(R.then((M)=>zO(M,Z,Y)));else zO(R,Z,Y)}if(J)return Promise.all(J).then(()=>{return});return}}),mH=m0("$ZodCheckMimeType",($,I)=>{A1.init($,I);let G=new Set(I.mime);$._zod.check=(Z)=>{if(G.has(Z.value.type))return;Z.issues.push({code:"invalid_value",values:I.mime,input:Z.value.type,inst:$,continue:!I.abort})}}),dH=m0("$ZodCheckOverwrite",($,I)=>{A1.init($,I),$._zod.check=(G)=>{G.value=I.tx(G.value)}});class vG{constructor($=[],I={}){this.content=[],this.indent=0,this.args=$,this.closed=I}indented($){this.indent+=1;try{$(this)}finally{this.indent-=1}}write($){if(typeof $==="function"){$(this,{execution:"sync"}),$(this,{execution:"async"});return}let G=$.split(`
|
|
328
|
-
`).filter((J)=>J),Z=Math.min(...G.map((J)=>J.length-J.trimStart().length)),_=G.map((J)=>J.slice(Z)).map((J)=>" ".repeat(this.indent*2)+J);for(let J of _)this.content.push(J)}compile(){let $=Function,I=this?.content??[""];return new $(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
|
|
329
|
-
${I.join(`
|
|
330
|
-
`)}
|
|
331
|
-
};`)(...Object.values(this.closed))}}var iH={major:4,minor:6,patch:5};var y$=m0("$ZodType",($,I)=>{var G;$??($={}),$._zod.def=I,$._zod.bag=$._zod.bag||{},$._zod.version=iH;let Z=$._zod.def.checks,_=$._zod.traits.has("$ZodCheck")?[$,...Z??[]]:Z?.length?[...Z]:[];for(let J of _)for(let Y of J._zod.onattach)Y($);if(_.length===0)(G=$._zod).deferred??(G.deferred=[]),$._zod.deferred?.push(()=>{$._zod.run=$._zod.parse});else{let J=(W,R,M)=>{if(W.memo)return W;let E=rU(W),T;for(let S of R){if(S._zod.def.when){if(wW(W))continue;if(!S._zod.def.when(W))continue}else if(E)continue;let N=W.issues.length,B=S._zod.check(W);if(B instanceof Promise&&M?.async===!1)throw new w6;if(T||B instanceof Promise)T=(T??Promise.resolve()).then(async()=>{if(await B,W.issues.length===N)return;if(iZ(W.issues,N,$),!E)E=rU(W,N)});else{if(W.issues.length===N)continue;if(iZ(W.issues,N,$),!E)E=rU(W,N)}}if(T)return T.then(()=>{return W});return W},Y=(W,R,M)=>{if(rU(W))return W.aborted=!0,W;let E=J(R,_,M);if(E instanceof Promise){if(M.async===!1)throw new w6;return E.then((T)=>$._zod.parse(T,M))}return $._zod.parse(E,M)};$._zod.run=(W,R)=>{if(R.skipChecks)return $._zod.parse(W,R);if(R.direction==="backward"){let E=$._zod.parse({value:W.value,issues:[]},{...R,skipChecks:!0});if(E instanceof Promise)return E.then((T)=>{return Y(T,W,R)});return Y(E,W,R)}let M=$._zod.parse(W,R);if(M instanceof Promise){if(R.async===!1)throw new w6;return M.then((E)=>J(E,_,R))}return J(M,_,R)}}},{get "~standard"(){return JQ(this,"~standard",HO(this))},set "~standard"($){g2(this,"~standard",$)}}),Gj=($,I)=>$.issues.length?{issues:$.issues.map((G)=>O6(G,I,IU()))}:{value:$.value};async function Ql($,I){let G={async:!0};return Gj(await $._zod.run({value:I,issues:[]},G),G)}function HO($){return{validate:(I)=>{let G={async:!1};try{let Z=$._zod.run({value:I,issues:[]},G);if(!(Z instanceof Promise))return Gj(Z,G)}catch(Z){}return Ql($,I)},vendor:"zod",version:1}}var n4=m0("$ZodString",($,I)=>{y$.init($,I),$._zod.pattern=I.pattern??FH,$._zod.parse=(G,Z)=>{if(I.coerce)try{G.value=String(G.value)}catch(_){}if(typeof G.value==="string")return G;return G.issues.push({expected:"string",code:"invalid_type",input:G.value,inst:$}),G}}),D1=m0("$ZodStringFormat",($,I)=>{SG.init($,I),n4.init($,I)}),tH=m0("$ZodGUID",($,I)=>{I.pattern??(I.pattern=$H),D1.init($,I)}),rH=m0("$ZodUUID",($,I)=>{if(I.version){let Z={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[I.version];if(Z===void 0)throw Error(`Invalid UUID version: "${I.version}"`);I.pattern??(I.pattern=u4(Z))}else I.pattern??(I.pattern=u4());D1.init($,I)}),aH=m0("$ZodEmail",($,I)=>{I.pattern??(I.pattern=UH),D1.init($,I)}),sH=1,HQ=2;function eH($){try{if(typeof URL<"u"&&typeof URL.canParse==="function")return URL.canParse($);return new URL($),!0}catch{return!1}}function FO($,I){if(!("normalize"in I)&&!("hostname"in I)&&!("protocol"in I))return eH($)||HQ;return Yj($,I)}function Yj($,I){if(!I.normalize&&I.protocol?.source===LQ.source&&!/^https?:\/\//i.test($))return sH;try{if(typeof URL<"u"){let G=URL;if(typeof G.parse==="function")return G.parse($)??HQ}return new URL($)}catch{return HQ}}var zl=/[\t\n\r]/g;function FQ($){return $.replace(zl,"")}function TO($,I){return I.lastIndex=0,I.test($.hostname)}function MO($,I){return I.lastIndex=0,I.test($.protocol.endsWith(":")?$.protocol.slice(0,-1):$.protocol)}var $F=m0("$ZodURL",($,I)=>{D1.init($,I),$._zod.check=(G)=>{try{let Z=G.value.trim(),_=FO(Z,I);if(_===sH){G.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:G.value,inst:$,continue:!I.abort});return}if(_===HQ){G.issues.push({code:"invalid_format",format:"url",input:G.value,inst:$,continue:!I.abort});return}if(_===!0){G.value=FQ(Z);return}if(I.hostname&&!TO(_,I.hostname))G.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:I.hostname.source,input:G.value,inst:$,continue:!I.abort});if(I.protocol&&!MO(_,I.protocol))G.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:I.protocol.source,input:G.value,inst:$,continue:!I.abort});G.value=I.normalize?_.href:FQ(Z);return}catch(Z){G.issues.push({code:"invalid_format",format:"url",input:G.value,inst:$,continue:!I.abort})}}}),UF=m0("$ZodEmoji",($,I)=>{I.pattern??(I.pattern=IH()),D1.init($,I)}),IF=m0("$ZodNanoID",($,I)=>{if(I.length!==void 0&&(!Number.isInteger(I.length)||I.length<1))throw Error(`Invalid nanoid length: ${I.length}`);I.pattern??(I.pattern=I.length===void 0?aW:sW(I.length)),D1.init($,I)}),_F=m0("$ZodCUID",($,I)=>{I.pattern??(I.pattern=dW),D1.init($,I)}),XF=m0("$ZodCUID2",($,I)=>{I.pattern??(I.pattern=iW),D1.init($,I)}),GF=m0("$ZodULID",($,I)=>{I.pattern??(I.pattern=oW),D1.init($,I)}),YF=m0("$ZodXID",($,I)=>{I.pattern??(I.pattern=tW),D1.init($,I)}),JF=m0("$ZodKSUID",($,I)=>{I.pattern??(I.pattern=rW),D1.init($,I)}),QF=m0("$ZodISODateTime",($,I)=>{I.pattern??(I.pattern=HH(I)),D1.init($,I)}),zF=m0("$ZodISODate",($,I)=>{I.pattern??(I.pattern=DH),D1.init($,I)}),ZF=m0("$ZodISOTime",($,I)=>{I.pattern??(I.pattern=WH(I)),D1.init($,I)}),OF=m0("$ZodISODuration",($,I)=>{I.pattern??(I.pattern=eW),D1.init($,I)}),LF=m0("$ZodIPv4",($,I)=>{I.pattern??(I.pattern=_H),D1.init($,I)}),Zl=/^[0-9a-fA-F:.]+$/;function TQ($){if(!Zl.test($))return!1;return eH(`http://[${$}]`)}var KF=m0("$ZodIPv6",($,I)=>{I.pattern??(I.pattern=XH),D1.init($,I),$._zod.check=(G)=>{if(!TQ(G.value))G.issues.push({code:"invalid_format",format:"ipv6",input:G.value,inst:$,continue:!I.abort})}}),DF=m0("$ZodMAC",($,I)=>{I.pattern??(I.pattern=GH(I.delimiter)),D1.init($,I)}),WF=m0("$ZodCIDRv4",($,I)=>{I.pattern??(I.pattern=YH),D1.init($,I)});function AO($){let I=$.split("/");if(I.length!==2)return!1;let[G,Z]=I;if(!Z)return!1;let _=Number(Z);if(`${_}`!==Z)return!1;if(_<0||_>128)return!1;return TQ(G)}var HF=m0("$ZodCIDRv6",($,I)=>{I.pattern??(I.pattern=JH),D1.init($,I),$._zod.check=(G)=>{if(!AO(G.value))G.issues.push({code:"invalid_format",format:"cidrv6",input:G.value,inst:$,continue:!I.abort})}});function MQ($){if($==="")return!0;if(/\s/.test($))return!1;if($.length%4!==0)return!1;try{return atob($),!0}catch{return!1}}var EO=/^[0-9a-zA-Z+/]*={0,2}$/,FF=m0("$ZodBase64",($,I)=>{I.pattern??(I.pattern=EO),D1.init($,I),$._zod.check=(G)=>{if(MQ(G.value))return;G.issues.push({code:"invalid_format",format:"base64",input:G.value,inst:$,continue:!I.abort})}}),AQ=/^[A-Za-z0-9_-]*$/;function RO($){if(!AQ.test($))return!1;let I=$.replace(/[-_]/g,(Z)=>Z==="-"?"+":"/"),G=I.padEnd(Math.ceil(I.length/4)*4,"=");return MQ(G)}var TF=m0("$ZodBase64URL",($,I)=>{I.pattern??(I.pattern=AQ),D1.init($,I),$._zod.check=(G)=>{if(RO(G.value))return;G.issues.push({code:"invalid_format",format:"base64url",input:G.value,inst:$,continue:!I.abort})}}),MF=m0("$ZodE164",($,I)=>{I.pattern??(I.pattern=LH),D1.init($,I)}),Ol=/[- ]/g;function Ll($){let I=$.length,G=1,Z=0;while(I){let _=$.charCodeAt(--I)-48;G^=1,Z+=G?[0,2,4,6,8,1,3,5,7,9][_]:_}return Z%10===0}function PO($){if(!YO.test($))return!1;return Ll($.replace(Ol,""))}var AF=m0("$ZodCreditCard",($,I)=>{I.pattern??(I.pattern=YO),D1.init($,I),$._zod.check=(G)=>{if(PO(G.value))return;G.issues.push({code:"invalid_format",format:"credit_card",input:G.value,inst:$,continue:!I.abort})}});function Kl($){let I=0,G=$.length;for(let Z=4;Z<G;Z++){let _=$.charCodeAt(Z);I=(_>=65?I*100+(_-55):I*10+(_-48))%97}for(let Z=0;Z<4;Z++){let _=$.charCodeAt(Z);I=(_>=65?I*100+(_-55):I*10+(_-48))%97}return I===1}function VO($){if(!JO.test($))return!1;return Kl($)}var EF=m0("$ZodIBAN",($,I)=>{I.pattern??(I.pattern=JO),D1.init($,I),$._zod.check=(G)=>{if(VO(G.value))return;G.issues.push({code:"invalid_format",format:"iban",input:G.value,inst:$,continue:!I.abort})}});function SO($,I=null){try{let G=$.split(".");if(G.length!==3)return!1;let[Z]=G;if(!Z)return!1;let _=JSON.parse(atob(Z));if("typ"in _&&_?.typ!=="JWT")return!1;if(!_.alg)return!1;if(I&&(!("alg"in _)||_.alg!==I))return!1;return!0}catch{return!1}}var RF=m0("$ZodJWT",($,I)=>{D1.init($,I),$._zod.check=(G)=>{if(SO(G.value,I.alg))return;G.issues.push({code:"invalid_format",format:"jwt",input:G.value,inst:$,continue:!I.abort})}}),PF=m0("$ZodCustomStringFormat",($,I)=>{D1.init($,I),$._zod.check=(G)=>{if(I.fn(G.value))return;G.issues.push({code:"invalid_format",format:I.format,input:G.value,inst:$,continue:!I.abort})}}),vO=m0("$ZodNumber",($,I)=>{y$.init($,I),$._zod.pattern=aI,$._zod.parse=(G,Z)=>{if(I.coerce)try{G.value=Number(G.value)}catch(Y){}let _=G.value;if(typeof _==="number"&&!Number.isNaN(_)&&Number.isFinite(_))return G;let J=typeof _==="number"?Number.isNaN(_)?"NaN":!Number.isFinite(_)?String(_):void 0:void 0;return G.issues.push({expected:"number",code:"invalid_type",input:_,inst:$,...J?{received:J}:{}}),G}}),VF=m0("$ZodNumberFormat",($,I)=>{NH.init($,I),vO.init($,I)}),EQ=m0("$ZodBoolean",($,I)=>{y$.init($,I),$._zod.pattern=AH,$._zod.parse=(G,Z)=>{if(I.coerce)try{G.value=Boolean(G.value)}catch(J){}let _=G.value;if(typeof _==="boolean")return G;return G.issues.push({expected:"boolean",code:"invalid_type",input:_,inst:$}),G}}),CO=m0("$ZodBigInt",($,I)=>{y$.init($,I),$._zod.pattern=MH,$._zod.parse=(G,Z)=>{if(I.coerce)try{G.value=BigInt(G.value)}catch(_){}if(typeof G.value==="bigint")return G;return G.issues.push({expected:"bigint",code:"invalid_type",input:G.value,inst:$}),G}}),SF=m0("$ZodBigIntFormat",($,I)=>{BH.init($,I),CO.init($,I)}),vF=m0("$ZodSymbol",($,I)=>{y$.init($,I),$._zod.parse=(G,Z)=>{let _=G.value;if(typeof _==="symbol")return G;return G.issues.push({expected:"symbol",code:"invalid_type",input:_,inst:$}),G}}),CF=m0("$ZodUndefined",($,I)=>{y$.init($,I),$._zod.pattern=RH,$._zod.values=new Set([void 0]),$._zod.parse=(G,Z)=>{let _=G.value;if(typeof _>"u")return G;return G.issues.push({expected:"undefined",code:"invalid_type",input:_,inst:$}),G}}),qF=m0("$ZodNull",($,I)=>{y$.init($,I),$._zod.pattern=EH,$._zod.values=new Set([null]),$._zod.parse=(G,Z)=>{let _=G.value;if(_===null)return G;return G.issues.push({expected:"null",code:"invalid_type",input:_,inst:$}),G}}),NF=m0("$ZodAny",($,I)=>{y$.init($,I),$._zod.parse=(G)=>G}),BF=m0("$ZodUnknown",($,I)=>{y$.init($,I),$._zod.parse=(G)=>G}),jF=m0("$ZodNever",($,I)=>{y$.init($,I),$._zod.parse=(G,Z)=>{return G.issues.push({expected:"never",code:"invalid_type",input:G.value,inst:$}),G}}),kF=m0("$ZodVoid",($,I)=>{y$.init($,I),$._zod.parse=(G,Z)=>{let _=G.value;if(typeof _>"u")return G;return G.issues.push({expected:"void",code:"invalid_type",input:_,inst:$}),G}}),gF=m0("$ZodDate",($,I)=>{y$.init($,I),$._zod.parse=(G,Z)=>{if(I.coerce)try{G.value=new Date(G.value)}catch(W){}let _=G.value,J=_ instanceof Date;if(J&&!Number.isNaN(_.getTime()))return G;return G.issues.push({expected:"date",code:"invalid_type",input:_,...J?{received:"Invalid Date"}:{},inst:$}),G}});function lB($,I,G){if($.issues.length)I.issues.push(...Z6(G,$.issues));I.value[G]=$.value}var wF=m0("$ZodArray",($,I)=>{y$.init($,I);let G=SU.memoizer;G?.attach($),$._zod.parse=(Z,_)=>{let J=Z.value;if(!Array.isArray(J))return Z.issues.push({expected:"array",code:"invalid_type",input:J,inst:$}),Z;Z.value=G?G.alloc($,Z,Array(J.length),_):Array(J.length);let Y=[],W=_?.abortEarly;for(let R=0;R<J.length;R++){let M=J[R],E=I.element._zod.run({value:M,issues:[]},_);if(E instanceof Promise)Y.push(E.then((T)=>lB(T,Z,R)));else if(lB(E,Z,R),W&&E.issues.length!==0&&rU(E))break}if(Y.length)return Promise.all(Y).then(()=>Z);return Z}});function WO($,I,G,Z,_,J){let Y=G in Z,W=J==="optional";if(!Y&&W&&_==="optional")return;if($.issues.length){if(_!==void 0&&W&&!Y)return;I.issues.push(...Z6(G,$.issues))}if(!Y&&_===void 0){if(!$.issues.length)I.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[G]});return}if($.value===void 0){if(Y||_==="defaulted"&&!W)I.value[G]=void 0}else I.value[G]=$.value}var Dl=[];function Jj($){let I=Object.keys($.shape),G=Object.getOwnPropertySymbols($.shape),Z=G.length?G:Dl,_=Z.length?[...I,...Z]:I;for(let Y of _)if(!$.shape?.[Y]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${String(Y)}": expected a Zod schema`);let J=gW($.shape);return{...$,allKeys:_,symbolKeys:Z,keySet:new Set(I),numKeys:I.length,optionalKeys:new Set(J)}}function Qj($,I,G,Z,_,J,Y){let W=[],R=_.keySet,M=_.catchall._zod,E=M.def.type,T=M.optin,S=M.optout,N=0;for(let B in I){if(Y&&G.issues.length!==N){if(rU(G,N))break;N=G.issues.length}if(R.has(B))continue;if(B==="__proto__"){if(E==="never")W.push(B);continue}if(E==="never"){W.push(B);continue}let x=M.run({value:I[B],issues:[]},Z);if(x instanceof Promise)$.push(x.then((w)=>WO(w,G,B,I,T,S)));else WO(x,G,B,I,T,S)}if(W.length)G.issues.push({code:"unrecognized_keys",keys:W,input:I,inst:J,continue:!0});if(!$.length)return G;return Promise.all($).then(()=>{return G})}var zj=m0("$ZodObject",($,I)=>{y$.init($,I);let G=Object.getOwnPropertyDescriptor(I,"shape"),Z=G?.get?G.get.raw:I.shape??{};if(Z){let M=()=>{let E={...Z};return Object.defineProperty(I,"shape",{value:E}),M.raw=E,E};M.raw=Z,Object.defineProperty(I,"shape",{get:M})}let _=TG(()=>Jj(I));m$($,"propValues",(M)=>{let E=M.def.shape,T={};for(let S in E){let N=E[S]._zod;if(N.values){if(!Object.prototype.hasOwnProperty.call(T,S))kU(T,S,new Set);for(let B of N.values)T[S].add(B);if(N.optin!==void 0)T[S].add(void 0)}}return T});let J=y4,Y=I.catchall,W,R=SU.memoizer;R?.attach($),$._zod.parse=(M,E)=>{W??(W=_.value);let T=M.value;if(!J(T))return M.issues.push({expected:"object",code:"invalid_type",input:T,inst:$}),M;M.value=R?R.alloc($,M,{},E):{};let S=[],N=W.shape,B=E?.abortEarly,x=M.issues.length;for(let w of W.allKeys){if(B&&M.issues.length!==x){if(rU(M,x))break;x=M.issues.length}if(w==="__proto__")continue;let y=N[w],g=y._zod.optin,b=y._zod.optout,l=y._zod.run({value:T[w],issues:[]},E);if(l instanceof Promise)S.push(l.then((i)=>WO(i,M,w,T,g,b)));else WO(l,M,w,T,g,b)}if(!Y)return S.length?Promise.all(S).then(()=>M):M;return Qj(S,T,M,E,_.value,$,B===!0)}}),xF=m0("$ZodObjectJIT",($,I)=>{zj.init($,I);let G=$._zod.parse,Z=TG(()=>Jj(I)),_=SU.memoizer,J=(N)=>{let B=Z.value,x=B.symbolKeys,w=new vG(["payload","ctx"],{shape:N,inst:$,memo:_,syms:x}),y=(i)=>`shape[${i}]._zod.run({ value: input[${i}], issues: [] }, ctx)`,g=(i,$0)=>`
|
|
332
|
-
let ${i}_ab = false;
|
|
333
|
-
for (let i = 0; i < ${i}.issues.length; i++) {
|
|
334
|
-
const iss = ${i}.issues[i];
|
|
335
|
-
iss.path = iss.path ? [${$0}, ...iss.path] : [${$0}];
|
|
336
|
-
payload.issues.push(iss);
|
|
337
|
-
if (iss.continue !== true) ${i}_ab = true;
|
|
338
|
-
}
|
|
339
|
-
if (${i}_ab && ctx && ctx.abortEarly) {
|
|
340
|
-
payload.value = newResult;
|
|
341
|
-
return payload;
|
|
342
|
-
}`;w.write("const input = payload.value;");let b=Object.create(null),l=0;for(let i of B.allKeys)b[i]=`key_${l++}`;w.write(_?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let i of B.allKeys){if(i==="__proto__")continue;let $0=b[i],Q0=typeof i==="symbol"?`syms[${x.indexOf(i)}]`:tU(i),G0=`${Q0} in input`,K0=N[i],t=K0?._zod?.optin,P0=t!==void 0,Q=K0?._zod?.optout==="optional";if(w.write(`const ${$0} = ${y(Q0)};`),P0&&Q){let K=t==="optional"?`${$0}_present`:`${$0}.value !== undefined || ${$0}_present`;w.write(`
|
|
343
|
-
const ${$0}_present = ${G0};
|
|
344
|
-
if (!${$0}.issues.length || ${$0}_present) {
|
|
345
|
-
if (${$0}.issues.length) {${g($0,Q0)}
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
if (${K}) {
|
|
349
|
-
newResult[${Q0}] = ${$0}.value;
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
`)}else if(!P0)w.write(`
|
|
354
|
-
const ${$0}_present = ${G0};
|
|
355
|
-
if (${$0}.issues.length) {${g($0,Q0)}
|
|
356
|
-
}
|
|
357
|
-
if (!${$0}_present && !${$0}.issues.length) {
|
|
358
|
-
payload.issues.push({
|
|
359
|
-
code: "invalid_type",
|
|
360
|
-
expected: "nonoptional",
|
|
361
|
-
input: undefined,
|
|
362
|
-
path: [${Q0}]
|
|
363
|
-
});
|
|
364
|
-
if (ctx && ctx.abortEarly) {
|
|
365
|
-
payload.value = newResult;
|
|
366
|
-
return payload;
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
if (${$0}_present) {
|
|
371
|
-
newResult[${Q0}] = ${$0}.value;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
`);else if(w.write(`
|
|
375
|
-
if (${$0}.issues.length) {${g($0,Q0)}
|
|
376
|
-
}
|
|
377
|
-
`),t==="defaulted")w.write(`newResult[${Q0}] = ${$0}.value;`);else w.write(`
|
|
378
|
-
if (${$0}.value !== undefined || ${G0}) {
|
|
379
|
-
newResult[${Q0}] = ${$0}.value;
|
|
380
|
-
}
|
|
381
|
-
`)}return w.write("payload.value = newResult;"),w.write("return payload;"),w.compile()},Y,W=y4,R=!SU.jitless,E=R&&jW.value,T=I.catchall,S;$._zod.parse=(N,B)=>{S??(S=Z.value);let x=N.value;if(!W(x))return N.issues.push({expected:"object",code:"invalid_type",input:x,inst:$}),N;if(R&&E&&B?.async===!1&&B.jitless!==!0){if(!Y)Y=J(I.shape);if(N=Y(N,B),!T)return N;return Qj([],x,N,B,S,$,B?.abortEarly===!0)}return G(N,B)}});function mB($,I,G,Z){for(let J of $)if(J.issues.length===0)return I.value=J.value,I;let _=$.filter((J)=>!rU(J));if(_.length===1)return I.value=_[0].value,_[0];return I.issues.push({code:"invalid_union",input:I.value,inst:G,errors:$.map((J)=>J.issues.map((Y)=>O6(Y,Z,IU())))}),I}var RQ=m0("$ZodUnion",($,I)=>{y$.init($,I),m$($,"optin",(Z)=>Z.def.options.some((_)=>_._zod.optin==="defaulted")?"defaulted":Z.def.options.some((_)=>_._zod.optin!==void 0)?"optional":void 0),m$($,"optout",(Z)=>Z.def.options.some((_)=>_._zod.optout==="optional")?"optional":void 0),m$($,"values",(Z)=>{if(Z.def.options.every((_)=>_._zod.values))return new Set(Z.def.options.flatMap((_)=>Array.from(_._zod.values)));return}),m$($,"pattern",(Z)=>{if(Z.def.options.every((_)=>_._zod.pattern)){let _=Z.def.options.map((J)=>J._zod.pattern);return new RegExp(`^(${_.map((J)=>f_(J.source)).join("|")})$`)}return});let G=I.options.length===1?I.options[0]._zod.run:null;$._zod.parse=(Z,_)=>{if(G)return G(Z,_);let J=!1,Y=[];for(let W of I.options){let R=W._zod.run({value:Z.value,issues:[]},_);if(R instanceof Promise)Y.push(R),J=!0;else{if(R.issues.length===0)return R;Y.push(R)}}if(!J)return mB(Y,Z,$,_);return Promise.all(Y).then((W)=>{return mB(W,Z,$,_)})}});function dB($,I,G,Z){let _=[];for(let J=0;J<$.length;J++)if($[J].issues.length===0)_.push(J);if(_.length===1)return I.value=$[_[0]].value,I;if(_.length===0)I.issues.push({code:"invalid_union",input:I.value,inst:G,errors:$.map((J)=>J.issues.map((Y)=>O6(Y,Z,IU())))});else I.issues.push({code:"invalid_union",input:I.value,inst:G,errors:[],inclusive:!1,matches:_});return I}var fF=m0("$ZodXor",($,I)=>{RQ.init($,I),I.inclusive=!1;let G=I.options.length===1?I.options[0]._zod.run:null;$._zod.parse=(Z,_)=>{if(G)return G(Z,_);let J=!1,Y=[];for(let W of I.options){let R=W._zod.run({value:Z.value,issues:[]},_);if(R instanceof Promise)Y.push(R),J=!0;else Y.push(R)}if(!J)return dB(Y,Z,$,_);return Promise.all(Y).then((W)=>{return dB(W,Z,$,_)})}});function yF($,I){let G=$._zod,Z=G.bag.optionsMap;if(!Z)Z=Zj(G.def),G.bag.optionsMap=Z;let _=Z.get(I);if(_===null)throw Error(`Ambiguous discriminator value "${String(I)}"`);return _}function Zj($){let I=new Map;for(let G of $.options){let Z=G._zod.propValues?.[$.discriminator];if(!Z||Z.size===0)throw Error(`Invalid discriminated union option at index "${$.options.indexOf(G)}"`);for(let _ of Z)if(I.has(_)){if(_!==void 0)throw Error(`Duplicate discriminator value "${String(_)}"`);I.set(_,null)}else I.set(_,G)}return I}var bF=m0("$ZodDiscriminatedUnion",($,I)=>{I.inclusive=!1,RQ.init($,I);let G=$._zod.parse;m$($,"propValues",(_)=>{let J={},Y=0;for(let W of _.def.options){let R=W._zod.propValues;if(!R||Object.keys(R).length===0)throw Error(`Invalid discriminated union option at index "${_.def.options.indexOf(W)}"`);if(R[_.def.discriminator]?.has(void 0))Y++;for(let[M,E]of Object.entries(R)){if(!Object.prototype.hasOwnProperty.call(J,M))kU(J,M,new Set);for(let T of E)J[M].add(T)}}if(!_.def.unionFallback&&Y>1)J[_.def.discriminator]?.delete(void 0);return J}),I.options.forEach((_,J)=>{let Y=MG(_._zod.def);if(Y&&!Object.prototype.hasOwnProperty.call(Y,I.discriminator))throw Error(`Invalid discriminated union option at index "${J}"`)});let Z=TG(()=>Zj(I));$._zod.parse=(_,J)=>{let Y=_.value;if(!y4(Y))return _.issues.push({code:"invalid_type",expected:"object",input:Y,inst:$}),_;let W=Y?.[I.discriminator],R=Z.value.get(W);if(R&&(W!==void 0||J.direction!=="backward"))return R._zod.run(_,J);if(I.unionFallback||J.direction==="backward")return G(_,J);return _.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:I.discriminator,options:Array.from(Z.value.keys()).filter((M)=>Z.value.get(M)!==null),input:Y,path:[I.discriminator],inst:$}),_}}),hF=m0("$ZodIntersection",($,I)=>{y$.init($,I),$._zod.parse=(G,Z)=>{let _=G.value,J=I.left._zod.run({value:_,issues:[]},Z),Y=I.right._zod.run({value:_,issues:[]},Z);if(J instanceof Promise||Y instanceof Promise)return Promise.all([J,Y]).then(([R,M])=>{return iB(G,R,M)});return iB(G,J,Y)}});function CG($,I){if($===I)return{valid:!0,data:$};if($ instanceof Date&&I instanceof Date&&+$===+I)return{valid:!0,data:$};if(UI($)&&UI(I)){let G=Object.keys(I),Z=Object.keys($).filter((J)=>G.indexOf(J)!==-1),_={...$,...I};if(Object.prototype.hasOwnProperty.call(_,"__proto__"))delete _.__proto__;for(let J of Z){if(J==="__proto__")continue;let Y=CG($[J],I[J]);if(!Y.valid)return{valid:!1,mergeErrorPath:[J,...Y.mergeErrorPath]};_[J]=Y.data}return{valid:!0,data:_}}if(Array.isArray($)&&Array.isArray(I)){if($.length!==I.length)return{valid:!1,mergeErrorPath:[]};let G=[];for(let Z=0;Z<$.length;Z++){let _=$[Z],J=I[Z],Y=CG(_,J);if(!Y.valid)return{valid:!1,mergeErrorPath:[Z,...Y.mergeErrorPath]};G.push(Y.data)}return{valid:!0,data:G}}return{valid:!1,mergeErrorPath:[]}}function iB($,I,G){let Z=new Map,_,J=new Map,Y=(M,E)=>{let T;if(M.code==="unrecognized_keys"&&!M.path?.length)_??(_=M),T=M.keys;else if(M.code==="invalid_key"&&M.origin==="record"&&M.path?.length===1){let S=String(M.path[0]);if(!J.has(S))J.set(S,M);T=[S]}else return!1;for(let S of T){if(!Z.has(S))Z.set(S,{});Z.get(S)[E]=!0}return!0};for(let M of I.issues)if(!Y(M,"l"))$.issues.push(M);for(let M of G.issues)if(!Y(M,"r"))$.issues.push(M);let W=[...Z].filter(([,M])=>M.l&&M.r).map(([M])=>M);if(W.length){let M=_?W.filter((E)=>_.keys.includes(E)):[];if(M.length)$.issues.push({..._,keys:M});for(let E of W)if(!M.includes(E)&&J.has(E))$.issues.push(J.get(E))}let R=CG(I.value,G.value);if(!R.valid){if(rU($))return $;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(R.mergeErrorPath)}`)}return $.value=R.data,$}var qO=m0("$ZodTuple",($,I)=>{y$.init($,I);let G=I.items,Z=SU.memoizer;Z?.attach($),$._zod.parse=(_,J)=>{let Y=_.value;if(!Array.isArray(Y))return _.issues.push({input:Y,inst:$,expected:"tuple",code:"invalid_type"}),_;_.value=Z?Z.alloc($,_,[],J):[];let W=[],R=oB(G,"optin"),M=oB(G,"optout");if(!I.rest){if(Y.length<R)return _.issues.push({code:"too_small",minimum:R,inclusive:!0,input:Y,inst:$,origin:"array"}),_;if(Y.length>G.length)_.issues.push({code:"too_big",maximum:G.length,inclusive:!0,input:Y,inst:$,origin:"array"})}let E=Array(G.length),T=I.rest?J?.abortEarly:void 0,S=!1;for(let N=0;N<G.length;N++){let B=G[N]._zod.run({value:Y[N],issues:[]},J);if(B instanceof Promise)W.push(B.then((x)=>{E[N]=x}));else if(E[N]=B,T&&!S&&B.issues.length)S=rU(B)}if(I.rest&&!S){let N=G.length-1,B=Y.slice(G.length),x=_.issues.length;for(let w of B){if(T&&_.issues.length!==x){if(rU(_,x))break;x=_.issues.length}N++;let y=I.rest._zod.run({value:w,issues:[]},J);if(y instanceof Promise)W.push(y.then((g)=>tB(g,_,N)));else tB(y,_,N)}}if(W.length)return Promise.all(W).then(()=>rB(E,_,G,Y,M));return rB(E,_,G,Y,M)}});function oB($,I){for(let G=$.length-1;G>=0;G--)if(!(I==="optin"?$[G]._zod.optin!==void 0:$[G]._zod.optout==="optional"))return G+1;return 0}function tB($,I,G){if($.issues.length)I.issues.push(...Z6(G,$.issues));I.value[G]=$.value}function rB($,I,G,Z,_){for(let J=0;J<G.length;J++){let Y=$[J],W=J<Z.length;if(!W&&J>=_&&G[J]._zod.optin==="optional"){I.value.length=J;break}if(Y.issues.length){if(!W&&J>=_){I.value.length=J;break}I.issues.push(...Z6(J,Y.issues))}I.value[J]=Y.value}for(let J=I.value.length-1;J>=Z.length;J--)if(G[J]._zod.optout==="optional"&&I.value[J]===void 0)I.value.length=J;else break;return I}var uF=m0("$ZodRecord",($,I)=>{y$.init($,I);let G=SU.memoizer;G?.attach($),$._zod.parse=(Z,_)=>{let J=Z.value;if(!UI(J))return Z.issues.push({expected:"record",code:"invalid_type",input:J,inst:$}),Z;let Y=[],W=I.keyType._zod.values;if(W&&!I.partial){Z.value=G?G.alloc($,Z,{},_):{};let R=new Set;for(let E of W)if(typeof E==="string"||typeof E==="number"||typeof E==="symbol"){if(R.add(typeof E==="number"?E.toString():E),E==="__proto__")continue;let T=I.keyType._zod.run({value:E,issues:[]},_);if(T instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(T.issues.length){Z.issues.push({code:"invalid_key",origin:"record",issues:T.issues.map((B)=>O6(B,_,IU())),input:E,path:[E],inst:$});continue}let S=T.value;if(S==="__proto__")continue;let N=I.valueType._zod.run({value:J[E],issues:[]},_);if(N instanceof Promise)Y.push(N.then((B)=>{if(B.issues.length)Z.issues.push(...Z6(E,B.issues));Z.value[S]=B.value}));else{if(N.issues.length)Z.issues.push(...Z6(E,N.issues));Z.value[S]=N.value}}let M;for(let E in J)if(!R.has(E))if(I.mode==="loose"){if(E==="__proto__")continue;Z.value[E]=J[E]}else M=M??[],M.push(E);if(M&&M.length>0)Z.issues.push({code:"unrecognized_keys",input:J,inst:$,keys:M,continue:!0})}else{Z.value=G?G.alloc($,Z,{},_):{};let R;for(let M of Reflect.ownKeys(J)){if(M==="__proto__")continue;if(!Object.prototype.propertyIsEnumerable.call(J,M))continue;let E=I.keyType._zod.run({value:M,issues:[]},_);if(E instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(typeof M==="string"&&aI.test(M)&&E.issues.length){let B=I.keyType._zod.run({value:Number(M),issues:[]},_);if(B instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(B.issues.length===0)E=B}if(E.issues.length){if(I.mode==="loose")Z.value[M]=J[M];else if(W)R=R??[],R.push(M);else Z.issues.push({code:"invalid_key",origin:"record",issues:E.issues.map((B)=>O6(B,_,IU())),input:M,path:[M],inst:$});continue}let S=E.value;if(S==="__proto__")continue;let N=I.valueType._zod.run({value:J[M],issues:[]},_);if(N instanceof Promise)Y.push(N.then((B)=>{if(B.issues.length)Z.issues.push(...Z6(M,B.issues));Z.value[S]=B.value}));else{if(N.issues.length)Z.issues.push(...Z6(M,N.issues));Z.value[S]=N.value}}if(R&&R.length>0)Z.issues.push({code:"unrecognized_keys",input:J,inst:$,keys:R,continue:!0})}if(Y.length)return Promise.all(Y).then(()=>Z);return Z}}),nF=m0("$ZodMap",($,I)=>{y$.init($,I);let G=SU.memoizer;G?.attach($),$._zod.parse=(Z,_)=>{let J=Z.value;if(!(J instanceof Map))return Z.issues.push({expected:"map",code:"invalid_type",input:J,inst:$}),Z;let Y=[];Z.value=G?G.alloc($,Z,new Map,_):new Map;let W=_?.abortEarly,R=Z.issues.length;for(let[M,E]of J){if(W&&Z.issues.length!==R){if(rU(Z,R))break;R=Z.issues.length}let T=I.keyType._zod.run({value:M,issues:[]},_),S=I.valueType._zod.run({value:E,issues:[]},_);if(T instanceof Promise||S instanceof Promise)Y.push(Promise.all([T,S]).then(([N,B])=>{aB(N,B,Z,M,J,$,_)}));else aB(T,S,Z,M,J,$,_)}if(Y.length)return Promise.all(Y).then(()=>Z);return Z}});function aB($,I,G,Z,_,J,Y){if($.issues.length)if(IQ.has(typeof Z))G.issues.push(...Z6(Z,$.issues));else G.issues.push({code:"invalid_key",origin:"map",input:_,inst:J,issues:$.issues.map((W)=>O6(W,Y,IU()))});if(I.issues.length)if(IQ.has(typeof Z))G.issues.push(...Z6(Z,I.issues));else G.issues.push({origin:"map",code:"invalid_element",input:_,inst:J,key:Z,issues:I.issues.map((W)=>O6(W,Y,IU()))});G.value.set($.value,I.value)}var pF=m0("$ZodSet",($,I)=>{y$.init($,I);let G=SU.memoizer;G?.attach($),$._zod.parse=(Z,_)=>{let J=Z.value;if(!(J instanceof Set))return Z.issues.push({input:J,inst:$,expected:"set",code:"invalid_type"}),Z;let Y=[];Z.value=G?G.alloc($,Z,new Set,_):new Set;let W=_?.abortEarly,R=Z.issues.length;for(let M of J){if(W&&Z.issues.length!==R){if(rU(Z,R))break;R=Z.issues.length}let E=I.valueType._zod.run({value:M,issues:[]},_);if(E instanceof Promise)Y.push(E.then((T)=>sB(T,Z)));else sB(E,Z)}if(Y.length)return Promise.all(Y).then(()=>Z);return Z}});function sB($,I){if($.issues.length)I.issues.push(...$.issues);I.value.add($.value)}var cF=m0("$ZodEnum",($,I)=>{y$.init($,I);let G=HG(I.entries),Z=new Set(G);$._zod.values=Z,m$($,"pattern",(_)=>{let J=HG(_.def.entries).filter((Y)=>IQ.has(typeof Y));return new RegExp(J.length?`^(${J.map((Y)=>II(Y.toString())).join("|")})$`:"^[^\\s\\S]$")}),$._zod.parse=(_,J)=>{let Y=_.value;if(Z.has(Y))return _;return _.issues.push({code:"invalid_value",values:G,input:Y,inst:$}),_}}),lF=m0("$ZodLiteral",($,I)=>{y$.init($,I);let G=new Set(I.values);$._zod.values=G,m$($,"pattern",(Z)=>{let _=Z.def.values;return new RegExp(_.length?`^(${_.map((J)=>typeof J==="string"?II(J):J?II(J.toString()):String(J)).join("|")})$`:"^[^\\s\\S]$")}),$._zod.parse=(Z,_)=>{let J=Z.value;if(G.has(J))return Z;return Z.issues.push({code:"invalid_value",values:I.values,input:J,inst:$}),Z}}),mF=m0("$ZodFile",($,I)=>{y$.init($,I),$._zod.parse=(G,Z)=>{let _=G.value;if(_ instanceof File)return G;return G.issues.push({expected:"file",code:"invalid_type",input:_,inst:$}),G}}),dF=m0("$ZodTransform",($,I)=>{y$.init($,I),$._zod.optin="optional",SU.memoizer?.guard($),$._zod.parse=(G,Z)=>{if(Z.direction==="backward")throw new h4($.constructor.name);let _=I.transform(G.value,G);if(Z.async)return(_ instanceof Promise?_:Promise.resolve(_)).then((Y)=>{return G.value=Y,G});if(_ instanceof Promise)throw new w6;return G.value=_,G}});function eB($,I){return $.value=I.issues.length?void 0:I.value,$}var NO=m0("$ZodOptional",($,I)=>{y$.init($,I),m$($,"optin",(G)=>G.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),$._zod.optout="optional",m$($,"values",(G)=>{let Z=G.def.innerType._zod.values;return Z?new Set([...Z,void 0]):void 0}),m$($,"pattern",(G)=>{let Z=G.def.innerType._zod.pattern;return Z?new RegExp(`^(${f_(Z.source)})?$`):void 0}),$._zod.parse=(G,Z)=>{if(G.value===void 0){if(I.innerType._zod.optin!=="defaulted")return G;let _=I.innerType._zod.run({value:G.value,issues:[]},Z);if(_ instanceof Promise)return _.then((J)=>eB(G,J));return eB(G,_)}return I.innerType._zod.run(G,Z)}}),iF=m0("$ZodExactOptional",($,I)=>{NO.init($,I),m$($,"values",(G)=>G.def.innerType._zod.values),m$($,"pattern",(G)=>G.def.innerType._zod.pattern),$._zod.parse=(G,Z)=>{return I.innerType._zod.run(G,Z)}}),oF=m0("$ZodNullable",($,I)=>{y$.init($,I),m$($,"optin",(G)=>G.def.innerType._zod.optin),m$($,"optout",(G)=>G.def.innerType._zod.optout),m$($,"pattern",(G)=>{let Z=G.def.innerType._zod.pattern;return Z?new RegExp(`^(${f_(Z.source)}|null)$`):void 0}),m$($,"values",(G)=>{return G.def.innerType._zod.values?new Set([...G.def.innerType._zod.values,null]):void 0}),$._zod.parse=(G,Z)=>{if(G.value===null)return G;return I.innerType._zod.run(G,Z)}}),tF=m0("$ZodDefault",($,I)=>{y$.init($,I),$._zod.optin="defaulted",m$($,"values",(G)=>G.def.innerType._zod.values),$._zod.parse=(G,Z)=>{if(Z.direction==="backward")return I.innerType._zod.run(G,Z);if(G.value===void 0)return G.value=I.defaultValue,G;let _=I.innerType._zod.run(G,Z);if(_ instanceof Promise)return _.then((J)=>$j(J,I));return $j(_,I)}});function $j($,I){if($.value===void 0)$.value=I.defaultValue;return $}var rF=m0("$ZodPrefault",($,I)=>{y$.init($,I),$._zod.optin="defaulted",m$($,"values",(G)=>G.def.innerType._zod.values),$._zod.parse=(G,Z)=>{if(Z.direction==="backward")return I.innerType._zod.run(G,Z);if(G.value===void 0)G.value=I.defaultValue;return I.innerType._zod.run(G,Z)}}),aF=m0("$ZodNonOptional",($,I)=>{y$.init($,I),m$($,"values",(G)=>{let Z=G.def.innerType._zod.values;return Z?new Set([...Z].filter((_)=>_!==void 0)):void 0}),$._zod.parse=(G,Z)=>{let _=I.innerType._zod.run(G,Z);if(_ instanceof Promise)return _.then((J)=>Uj(J,$));return Uj(_,$)}});function Uj($,I){if(!$.issues.length&&$.value===void 0)$.issues.push({code:"invalid_type",expected:"nonoptional",input:$.value,inst:I});return $}var sF=m0("$ZodSuccess",($,I)=>{y$.init($,I),$._zod.parse=(G,Z)=>{if(Z.direction==="backward")throw new h4("ZodSuccess");let _=I.innerType._zod.run(G,Z);if(_ instanceof Promise)return _.then((J)=>{return G.value=J.issues.length===0,G});return G.value=_.issues.length===0,G}});function Ij($,I,G,Z){if(!I.issues.length){if($.value=I.value,I.memo)$.memo=!0;return $}return $.value=G.catchValue({...I,value:$.value,error:{issues:I.issues.map((_)=>O6(_,Z,IU()))},input:$.value}),$}var eF=m0("$ZodCatch",($,I)=>{y$.init($,I),m$($,"optin",(G)=>G.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),m$($,"optout",(G)=>G.def.innerType._zod.optout),m$($,"values",(G)=>G.def.innerType._zod.values),$._zod.parse=(G,Z)=>{if(Z.direction==="backward")return I.innerType._zod.run(G,Z);let _=I.innerType._zod.run({value:G.value,issues:[]},Z);if(_ instanceof Promise)return _.then((J)=>Ij(G,J,I,Z));return Ij(G,_,I,Z)}}),$T=m0("$ZodNaN",($,I)=>{y$.init($,I),$._zod.parse=(G,Z)=>{if(typeof G.value!=="number"||!Number.isNaN(G.value))return G.issues.push({input:G.value,inst:$,expected:"nan",code:"invalid_type"}),G;return G}}),BO=m0("$ZodPipe",($,I)=>{y$.init($,I),m$($,"values",(G)=>G.def.in._zod.values),m$($,"optin",(G)=>G.def.in._zod.optin),m$($,"optout",(G)=>G.def.out._zod.optout),m$($,"propValues",(G)=>G.def.in._zod.propValues),$._zod.parse=(G,Z)=>{if(Z.direction==="backward"){let J=I.out._zod.run(G,Z);if(J instanceof Promise)return J.then((Y)=>LO(Y,I.in,Z));return LO(J,I.in,Z)}let _=I.in._zod.run(G,Z);if(_ instanceof Promise)return _.then((J)=>LO(J,I.out,Z));return LO(_,I.out,Z)}});function LO($,I,G){if($.issues.some((Z)=>Z.code!=="unrecognized_keys"))return $.aborted=!0,$;return I._zod.run({value:$.value,issues:$.issues},G)}var PQ=m0("$ZodCodec",($,I)=>{y$.init($,I),m$($,"values",(G)=>G.def.in._zod.values),m$($,"optin",(G)=>G.def.in._zod.optin),m$($,"optout",(G)=>G.def.out._zod.optout),m$($,"propValues",(G)=>G.def.in._zod.propValues),$._zod.parse=(G,Z)=>{if((Z.direction||"forward")==="forward"){let J=I.in._zod.run(G,Z);if(J instanceof Promise)return J.then((Y)=>KO(Y,I,Z));return KO(J,I,Z)}else{let J=I.out._zod.run(G,Z);if(J instanceof Promise)return J.then((Y)=>KO(Y,I,Z));return KO(J,I,Z)}}});function KO($,I,G){if($.issues.length)return $.aborted=!0,$;if((G.direction||"forward")==="forward"){let _=I.transform($.value,$);if(_ instanceof Promise)return _.then((J)=>DO($,J,I.out,G));return DO($,_,I.out,G)}else{let _=I.reverseTransform($.value,$);if(_ instanceof Promise)return _.then((J)=>DO($,J,I.in,G));return DO($,_,I.in,G)}}function DO($,I,G,Z){if($.issues.length)return $.aborted=!0,$;return G._zod.run({value:I,issues:$.issues},Z)}var UT=m0("$ZodPreprocess",($,I)=>{BO.init($,I)}),IT=m0("$ZodReadonly",($,I)=>{y$.init($,I),m$($,"propValues",(G)=>G.def.innerType._zod.propValues),m$($,"values",(G)=>G.def.innerType._zod.values),m$($,"optin",(G)=>G.def.innerType?._zod?.optin),m$($,"optout",(G)=>G.def.innerType?._zod?.optout),$._zod.parse=(G,Z)=>{if(Z.direction==="backward")return I.innerType._zod.run(G,Z);let _=I.innerType._zod.run(G,Z);if(_ instanceof Promise)return _.then(_j);return _j(_)}});function _j($){if(!$.memo)$.value=Object.freeze($.value);return $}function Wl($){let I=$._zod.def,G=I.pattern,Z=!!I.format?.includes("int"),_,J;for(let W of I.checks??[]){let R=W._zod.def;if(R.pattern)G=R.pattern;Z||(Z=!!R.format?.includes("int"));let M=R.minimum??R.length,E=R.maximum??R.length;if(M!==void 0&&(_===void 0||M>_))_=M;if(E!==void 0&&(J===void 0||E<J))J=E}if(G)return G.source;if(_!==void 0&&J!==void 0&&_>J)return"(?!)";if(_!==void 0||J!==void 0)return TH({minimum:_,maximum:J}).source;let Y=$._zod.pattern;return(Z&&Y===aI?KQ:Y)?.source}function oH($){let I=$._zod.def,G=$._zod.pattern?.source,Z=I.innerType??$._zod.innerType;if(Z){let _=Z._zod.pattern?.source,J=oH(Z);if(G&&_&&J&&J!==_)return G.replace(f_(_),()=>f_(J));return G}if(I.options){let _=I.options.map(oH);if(_.every(Boolean))return`^(${_.map((J)=>f_(J)).join("|")})$`}return Wl($)}var _T=m0("$ZodTemplateLiteral",($,I)=>{y$.init($,I);let G=[];for(let Z of I.parts)if(typeof Z==="object"&&Z!==null){let _=oH(Z);if(!_)throw Error(`Invalid template literal part, no pattern found: ${[...Z._zod.traits].shift()}`);G.push(f_(_))}else if(Z===null||kW.has(typeof Z))G.push(II(`${Z}`));else throw Error(`Invalid template literal part: ${Z}`);$._zod.pattern=new RegExp(`^${G.join("")}$`),$._zod.parse=(Z,_)=>{if(typeof Z.value!=="string")return Z.issues.push({input:Z.value,inst:$,expected:"string",code:"invalid_type"}),Z;if($._zod.pattern.lastIndex=0,!$._zod.pattern.test(Z.value))return Z.issues.push({input:Z.value,inst:$,code:"invalid_format",format:I.format??"template_literal",pattern:$._zod.pattern.source}),Z;return Z}}),XT=m0("$ZodFunction",($,I)=>{return y$.init($,I),Object.defineProperty($,"_def",{value:I}),$._zod.def=I,$.implement=(G)=>{if(typeof G!=="function")throw Error("implement() must be called with a function");return Object.defineProperty(function(...Z){let _=$._def.input?rZ($._def.input,Z):Z,J=Reflect.apply(G,this,_);if($._def.output)return rZ($._def.output,J);return J},"_zod",{value:$._zod,enumerable:!1})},$.implementAsync=(G)=>{if(typeof G!=="function")throw Error("implementAsync() must be called with a function");return Object.defineProperty(async function(...Z){let _=$._def.input?await aZ($._def.input,Z):Z,J=await Reflect.apply(G,this,_);if($._def.output)return await aZ($._def.output,J);return J},"_zod",{value:$._zod,enumerable:!1})},$._zod.parse=(G,Z)=>{if(typeof G.value!=="function")return G.issues.push({code:"invalid_type",expected:"function",input:G.value,inst:$}),G;if($._def.output&&$._def.output._zod.def.type==="promise")G.value=$.implementAsync(G.value);else G.value=$.implement(G.value);return G},$.input=(...G)=>{let Z=$.constructor;if(Array.isArray(G[0]))return new Z({type:"function",input:new qO({type:"tuple",items:G[0],rest:G[1]}),output:$._def.output});return new Z({type:"function",input:G[0],output:$._def.output})},$.output=(G)=>{return new $.constructor({type:"function",input:$._def.input,output:G})},$}),GT=m0("$ZodPromise",($,I)=>{y$.init($,I),$._zod.parse=(G,Z)=>{return Promise.resolve(G.value).then((_)=>I.innerType._zod.run({value:_,issues:[]},Z))}}),VQ=m0("$ZodLazy",($,I)=>{y$.init($,I),NW($._zod,"innerType",()=>{let G=I;if(!G._cachedInner)G._cachedInner=I.getter();return G._cachedInner}),m$($,"pattern",(G)=>G.innerType?._zod?.pattern),m$($,"propValues",(G)=>G.innerType?._zod?.propValues),m$($,"optin",(G)=>G.innerType?._zod?.optin??void 0),m$($,"optout",(G)=>G.innerType?._zod?.optout??void 0),$._zod.parse=(G,Z)=>{return $._zod.innerType._zod.run(G,Z)}}),YT=m0("$ZodCustom",($,I)=>{A1.init($,I),y$.init($,I),$._zod.parse=(G,Z)=>{return G},$._zod.check=(G)=>{let Z=G.value,_=I.fn(Z);if(_ instanceof Promise)return _.then((J)=>Xj(J,G,Z,$));Xj(_,G,Z,$);return}});function Xj($,I,G,Z){if(!$){let _={code:"custom",input:G,inst:Z,path:[...Z._zod.def.path??[]],continue:!Z._zod.def.abort};if(Z._zod.def.params)_.params=Z._zod.def.params;I.issues.push(AG(_))}}class zT extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform");this.name="ZodCyclicError"}}var QT="~memo",Lj=[];function Kj($){return $!==null&&typeof $==="object"}function JT($){return $.map((I)=>I.path?{...I,path:I.path.slice()}:{...I})}var Dj=new WeakMap,qG=0,gO=1,SQ=2;function vQ($,I,G){let Z=Dj.get($);if(Z!==void 0)return Z?SQ:qG;if(I.has($))return SQ;I.add($);let _=qG,J=(E)=>{if(_!==SQ&&E?._zod){let T=vQ(E,I,G);if(T>_)_=T}},Y=(E,T)=>{let S=qG;for(let N of Reflect.ownKeys(E)){let B=Object.getOwnPropertyDescriptor(E,N);if(T&&!B.enumerable)continue;let x=B.get?gO:B.value?._zod?vQ(B.value,I,G):qG;if(x>S)S=x}return S},W=(E)=>{if(E>_)_=E},R=$._zod.def,M=R.type;switch(M){case"object":{let E=MG(R);W(E?Y(E,!0):gO),J(R.catchall);break}case"array":J(R.element);break;case"tuple":for(let E of R.items)J(E);J(R.rest);break;case"record":case"map":J(R.keyType),J(R.valueType);break;case"set":J(R.valueType);break;case"union":for(let E of R.options)J(E);break;case"intersection":J(R.left),J(R.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":J(R.innerType);break;case"pipe":J(R.in),J(R.out);break;case"function":J(R.input),J(R.output);break;case"lazy":{let E=R._cachedInner??(G?$._zod.innerType:void 0);W(E?vQ(E,I,!1):gO);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let E in R){let T=Object.getOwnPropertyDescriptor(R,E);if(!T||T.get)continue;let S=T.value;if(!S||typeof S!=="object")continue;if(S._zod)J(S);else if(Array.isArray(S))for(let N of S)J(N)}}return I.delete($),Hl($,_)}function Hl($,I){if(I!==gO)Dj.set($,I===SQ);return I}function wO($){return vQ($,new Set,!0)!==qG}function Fl($,I){let G=$.buckets.get(I);if(!G)G=new WeakMap,$.buckets.set(I,G);return G}var jO,kO=[],Tl={alloc($,I,G){let Z=jO;if(!Z)return G;jO=void 0;let _={value:G,issues:null};return Z.set(I.value,_),kO.push(_),G},guard($){var I;(I=$._zod).deferred??(I.deferred=[]),$._zod.deferred.push(()=>{let G=$._zod.parse,Z=(_,J)=>{if(J.direction!=="backward"&&xO(J,_.value))throw new zT;return G(_,J)};if($._zod.parse=Z,$._zod.run===G)$._zod.run=Z})},attach($){var I;let G,Z=!1,_,J;(I=$._zod).deferred??(I.deferred=[]),$._zod.deferred.push(()=>{let Y=$._zod.parse,W=(R,M)=>{if(G===void 0){let y=vQ($,new Set,!1);if(y===qG){if($._zod.parse=Y,$._zod.run===W)$._zod.run=Y;return Y(R,M)}if(y===SQ||Z)G=!0;else Z=!0}let E=R.value;if(!Kj(E))return Y(R,M);let T=M[QT];if(!T)T={buckets:new WeakMap,backEdges:void 0},M[QT]=T;let S;if(_===M)S=J;else S=Fl(T,$),_=M,J=S;let N=S.get(E);if(N){if(R.value=N.value,N.issues){if(N.issues.length)R.issues.push(...JT(N.issues))}else R.memo=!0,T.backEdges??(T.backEdges=new WeakSet),T.backEdges.add(N.value);return R}jO=S;let B=kO.length,x=Y(R,M);jO=void 0;let w=kO.length>B?kO.pop():void 0;if(x instanceof Promise)return x.then((y)=>{if(w)w.issues=y.issues.length?JT(y.issues):Lj;return y});if(w)w.issues=x.issues.length?JT(x.issues):Lj;return x};if($._zod.parse=W,$._zod.run===Y)$._zod.run=W})}};function CQ(){return Tl}function xO($,I){let G=$[QT]?.backEdges;return G!==void 0&&Kj(I)&&G.has(I)}var kQ={};LU(kQ,{zhTW:()=>DM,zhCN:()=>KM,yo:()=>WM,vi:()=>LM,uz:()=>OM,ur:()=>ZM,uk:()=>jQ,ua:()=>zM,tr:()=>QM,tk:()=>JM,th:()=>YM,tg:()=>GM,ta:()=>XM,sv:()=>_M,sl:()=>IM,sk:()=>UM,ru:()=>$M,ro:()=>eT,ptBR:()=>sT,pt:()=>aT,ps:()=>tT,pl:()=>rT,ota:()=>oT,no:()=>iT,nn:()=>dT,nl:()=>mT,ne:()=>lT,ms:()=>cT,mk:()=>pT,lt:()=>nT,ko:()=>uT,kn:()=>hT,km:()=>NQ,kh:()=>bT,ka:()=>yT,ja:()=>fT,it:()=>xT,is:()=>wT,id:()=>gT,hy:()=>kT,hu:()=>jT,hr:()=>BT,hi:()=>NT,he:()=>qT,gu:()=>CT,frCA:()=>vT,fr:()=>ST,fi:()=>VT,fa:()=>PT,es:()=>RT,eo:()=>ET,en:()=>qQ,el:()=>AT,de:()=>MT,da:()=>TT,cs:()=>FT,ckb:()=>HT,ca:()=>WT,bn:()=>DT,bg:()=>KT,be:()=>LT,az:()=>OT,ar:()=>ZT});var Ml=()=>{let $={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"},map:{unit:"عنصر",verb:"أن يحوي"}};function I(_){return $[_]??null}let G={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",mac:"عنوان MAC",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",credit_card:"رقم بطاقة الائتمان",currency_code:"رمز العملة",iban:"IBAN",jwt:"JWT",template_literal:"مدخل"},Z={nan:"NaN"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`مدخلات غير مقبولة: يفترض إدخال instanceof ${_.expected}، ولكن تم إدخال ${W}`;return`مدخلات غير مقبولة: يفترض إدخال ${J}، ولكن تم إدخال ${W}`}case"invalid_value":if(_.values.length===1)return`مدخلات غير مقبولة: يفترض إدخال ${Q$(_.values[0])}`;return`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return` أكبر من اللازم: يفترض أن تكون ${_.origin??"القيمة"} ${J} ${_.maximum.toString()} ${Y.unit??"عنصر"}`;return`أكبر من اللازم: يفترض أن تكون ${_.origin??"القيمة"} ${J} ${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`أصغر من اللازم: يفترض لـ ${_.origin} أن يكون ${J} ${_.minimum.toString()} ${Y.unit}`;return`أصغر من اللازم: يفترض لـ ${_.origin} أن يكون ${J} ${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`نَص غير مقبول: يجب أن يبدأ بـ "${_.prefix}"`;if(J.format==="ends_with")return`نَص غير مقبول: يجب أن ينتهي بـ "${J.suffix}"`;if(J.format==="includes")return`نَص غير مقبول: يجب أن يتضمَّن "${J.includes}"`;if(J.format==="regex")return`نَص غير مقبول: يجب أن يطابق النمط ${J.pattern}`;return`${G[J.format]??_.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${_.divisor}`;case"unrecognized_keys":return`معرف${_.keys.length>1?"ات":""} غريب${_.keys.length>1?"ة":""}: ${i0(_.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${_.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${_.origin}`;default:return"مدخل غير مقبول"}}};function ZT(){return{localeError:Ml()}}var Al=()=>{let $={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"},map:{unit:"element",verb:"olmalıdır"}};function I(_){return $[_]??null}let G={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"kredit kartı nömrəsi",currency_code:"valyuta kodu",iban:"IBAN",jwt:"JWT",template_literal:"input"},Z={nan:"NaN"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Yanlış dəyər: gözlənilən instanceof ${_.expected}, daxil olan ${W}`;return`Yanlış dəyər: gözlənilən ${J}, daxil olan ${W}`}case"invalid_value":if(_.values.length===1)return`Yanlış dəyər: gözlənilən ${Q$(_.values[0])}`;return`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`Çox böyük: gözlənilən ${_.origin??"dəyər"} ${J}${_.maximum.toString()} ${Y.unit??"element"}`;return`Çox böyük: gözlənilən ${_.origin??"dəyər"} ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`Çox kiçik: gözlənilən ${_.origin} ${J}${_.minimum.toString()} ${Y.unit}`;return`Çox kiçik: gözlənilən ${_.origin} ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Yanlış mətn: "${J.prefix}" ilə başlamalıdır`;if(J.format==="ends_with")return`Yanlış mətn: "${J.suffix}" ilə bitməlidir`;if(J.format==="includes")return`Yanlış mətn: "${J.includes}" daxil olmalıdır`;if(J.format==="regex")return`Yanlış mətn: ${J.pattern} şablonuna uyğun olmalıdır`;return`Yanlış ${G[J.format]??_.format}`}case"not_multiple_of":return`Yanlış ədəd: ${_.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${_.keys.length>1?"lar":""}: ${i0(_.keys,", ")}`;case"invalid_key":return`${_.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${_.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function OT(){return{localeError:Al()}}function Wj($,I,G,Z){let _=Math.abs($),J=_%10,Y=_%100;if(Y>=11&&Y<=19)return Z;if(J===1)return I;if(J>=2&&J<=4)return G;return Z}var El=()=>{let $={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},map:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function I(_){return $[_]??null}let G={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",mac:"MAC адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",credit_card:"нумар крэдытнай карты",currency_code:"код валюты",iban:"IBAN",jwt:"JWT",template_literal:"увод"},Z={nan:"NaN",number:"лік",array:"масіў"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Няправільны ўвод: чакаўся instanceof ${_.expected}, атрымана ${W}`;return`Няправільны ўвод: чакаўся ${J}, атрымана ${W}`}case"invalid_value":if(_.values.length===1)return`Няправільны ўвод: чакалася ${Q$(_.values[0])}`;return`Няправільны варыянт: чакаўся адзін з ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y){let W=Number(_.maximum),R=Wj(W,Y.unit.one,Y.unit.few,Y.unit.many);return`Занадта вялікі: чакалася, што ${_.origin??"значэнне"} павінна ${Y.verb} ${J}${_.maximum.toString()} ${R}`}return`Занадта вялікі: чакалася, што ${_.origin??"значэнне"} павінна быць ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y){let W=Number(_.minimum),R=Wj(W,Y.unit.one,Y.unit.few,Y.unit.many);return`Занадта малы: чакалася, што ${_.origin} павінна ${Y.verb} ${J}${_.minimum.toString()} ${R}`}return`Занадта малы: чакалася, што ${_.origin} павінна быць ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Няправільны радок: павінен пачынацца з "${J.prefix}"`;if(J.format==="ends_with")return`Няправільны радок: павінен заканчвацца на "${J.suffix}"`;if(J.format==="includes")return`Няправільны радок: павінен змяшчаць "${J.includes}"`;if(J.format==="regex")return`Няправільны радок: павінен адпавядаць шаблону ${J.pattern}`;return`Няправільны ${G[J.format]??_.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${_.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${_.keys.length>1?"ключы":"ключ"}: ${i0(_.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${_.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${_.origin}`;default:return"Няправільны ўвод"}}};function LT(){return{localeError:El()}}var Rl=()=>{let $={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"},map:{unit:"елемента",verb:"да съдържа"}};function I(_){return $[_]??null}let G={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",mac:"MAC адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",credit_card:"номер на кредитна карта",currency_code:"код на валута",iban:"IBAN",jwt:"JWT",template_literal:"вход"},Z={nan:"NaN",number:"число",array:"масив"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Невалиден вход: очакван instanceof ${_.expected}, получен ${W}`;return`Невалиден вход: очакван ${J}, получен ${W}`}case"invalid_value":if(_.values.length===1)return`Невалиден вход: очакван ${Q$(_.values[0])}`;return`Невалидна опция: очаквано едно от ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`Твърде голямо: очаква се ${_.origin??"стойност"} да съдържа ${J}${_.maximum.toString()} ${Y.unit??"елемента"}`;return`Твърде голямо: очаква се ${_.origin??"стойност"} да бъде ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`Твърде малко: очаква се ${_.origin} да съдържа ${J}${_.minimum.toString()} ${Y.unit}`;return`Твърде малко: очаква се ${_.origin} да бъде ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Невалиден низ: трябва да започва с "${J.prefix}"`;if(J.format==="ends_with")return`Невалиден низ: трябва да завършва с "${J.suffix}"`;if(J.format==="includes")return`Невалиден низ: трябва да включва "${J.includes}"`;if(J.format==="regex")return`Невалиден низ: трябва да съвпада с ${J.pattern}`;let Y="Невалиден";if(J.format==="emoji")Y="Невалидно";if(J.format==="datetime")Y="Невалидно";if(J.format==="date")Y="Невалидна";if(J.format==="time")Y="Невалидно";if(J.format==="duration")Y="Невалидна";return`${Y} ${G[J.format]??_.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${_.divisor}`;case"unrecognized_keys":return`Неразпознат${_.keys.length>1?"и":""} ключ${_.keys.length>1?"ове":""}: ${i0(_.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${_.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${_.origin}`;default:return"Невалиден вход"}}};function KT(){return{localeError:Rl()}}var Pl=()=>{let $={string:{unit:"অক্ষর",verb:"থাকতে হবে"},file:{unit:"বাইট",verb:"থাকতে হবে"},array:{unit:"আইটেম",verb:"থাকতে হবে"},set:{unit:"আইটেম",verb:"থাকতে হবে"},map:{unit:"এন্ট্রি",verb:"থাকতে হবে"}};function I(_){return $[_]??null}let G={regex:"ইনপুট",email:"ইমেইল ঠিকানা",url:"URL",emoji:"ইমোজি",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO তারিখ ও সময়",date:"ISO তারিখ",time:"ISO সময়",duration:"ISO সময়কাল",ipv4:"IPv4 ঠিকানা",ipv6:"IPv6 ঠিকানা",mac:"MAC ঠিকানা",cidrv4:"IPv4 রেঞ্জ",cidrv6:"IPv6 রেঞ্জ",base64:"base64-এনকোডেড স্ট্রিং",base64url:"base64url-এনকোডেড স্ট্রিং",json_string:"JSON স্ট্রিং",e164:"E.164 নম্বর",credit_card:"ক্রেডিট কার্ড নম্বর",currency_code:"মুদ্রা কোড",iban:"IBAN",jwt:"JWT",template_literal:"ইনপুট"},Z={nan:"NaN"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;return`অবৈধ ইনপুট: প্রত্যাশিত ${J}, প্রাপ্ত ${W}`}case"invalid_value":if(_.values.length===1)return`অবৈধ ইনপুট: প্রত্যাশিত ${Q$(_.values[0])}`;return`অবৈধ অপশন: ${i0(_.values," | ")} এর মধ্যে একটি প্রত্যাশিত`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`অনেক বড়: ${_.origin??"মান"} ${J}${_.maximum.toString()} ${Y.unit??"এলিমেন্ট"} হতে হবে`;return`অনেক বড়: ${_.origin??"মান"} ${J}${_.maximum.toString()} হতে হবে`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`অনেক ছোট: ${_.origin} ${J}${_.minimum.toString()} ${Y.unit} হতে হবে`;return`অনেক ছোট: ${_.origin} ${J}${_.minimum.toString()} হতে হবে`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`অবৈধ স্ট্রিং: "${J.prefix}" দিয়ে শুরু হতে হবে`;if(J.format==="ends_with")return`অবৈধ স্ট্রিং: "${J.suffix}" দিয়ে শেষ হতে হবে`;if(J.format==="includes")return`অবৈধ স্ট্রিং: "${J.includes}" অন্তর্ভুক্ত থাকতে হবে`;if(J.format==="regex")return`অবৈধ স্ট্রিং: ${J.pattern} প্যাটার্ন মিলতে হবে`;return`অবৈধ ${G[J.format]??_.format}`}case"not_multiple_of":return`অবৈধ নম্বর: ${_.divisor} এর গুণিতক হতে হবে`;case"unrecognized_keys":return`অচেনা কী${_.keys.length>1?"গুলো":""}: ${i0(_.keys,", ")}`;case"invalid_key":return`${_.origin} এ অবৈধ কী`;case"invalid_union":if(_.options&&Array.isArray(_.options)&&_.options.length>0)return`অবৈধ ডিসক্রিমিনেটর মান। প্রত্যাশিত ${_.options.map((Y)=>`'${Y}'`).join(" | ")}`;return"অবৈধ ইনপুট";case"invalid_element":return`${_.origin} এ অবৈধ মান`;default:return"অবৈধ ইনপুট"}}};function DT(){return{localeError:Pl()}}var Vl=()=>{let $={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"},map:{unit:"elements",verb:"contenir"}};function I(_){return $[_]??null}let G={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",mac:"adreça MAC",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",credit_card:"número de targeta de crèdit",currency_code:"codi de moneda",iban:"IBAN",jwt:"JWT",template_literal:"entrada"},Z={nan:"NaN"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Tipus invàlid: s'esperava instanceof ${_.expected}, s'ha rebut ${W}`;return`Tipus invàlid: s'esperava ${J}, s'ha rebut ${W}`}case"invalid_value":if(_.values.length===1)return`Valor invàlid: s'esperava ${Q$(_.values[0])}`;return`Opció invàlida: s'esperava una de ${i0(_.values," o ")}`;case"too_big":{let J=_.inclusive?"com a màxim":"menys de",Y=I(_.origin);if(Y)return`Massa gran: s'esperava que ${_.origin??"el valor"} contingués ${J} ${_.maximum.toString()} ${Y.unit??"elements"}`;return`Massa gran: s'esperava que ${_.origin??"el valor"} fos ${J} ${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?"com a mínim":"més de",Y=I(_.origin);if(Y)return`Massa petit: s'esperava que ${_.origin} contingués ${J} ${_.minimum.toString()} ${Y.unit}`;return`Massa petit: s'esperava que ${_.origin} fos ${J} ${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Format invàlid: ha de començar amb "${J.prefix}"`;if(J.format==="ends_with")return`Format invàlid: ha d'acabar amb "${J.suffix}"`;if(J.format==="includes")return`Format invàlid: ha d'incloure "${J.includes}"`;if(J.format==="regex")return`Format invàlid: ha de coincidir amb el patró ${J.pattern}`;return`Format invàlid per a ${G[J.format]??_.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${_.divisor}`;case"unrecognized_keys":return`Clau${_.keys.length>1?"s":""} no reconeguda${_.keys.length>1?"s":""}: ${i0(_.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${_.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${_.origin}`;default:return"Entrada invàlida"}}};function WT(){return{localeError:Vl()}}var Sl=()=>{let $={string:{unit:"پیت",verb:"بێت"},file:{unit:"بایت",verb:"بێت"},array:{unit:"دانە",verb:"بێت"},set:{unit:"دانە",verb:"بێت"},map:{unit:"دانە",verb:"بێت"}};function I(_){return $[_]??null}let G={regex:"regex",email:"ئیمەیڵ",url:"بەستەر (URL)",emoji:"ئیمۆجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ڕێکەوت و کات",date:"ڕێکەوت",time:"کات",duration:"ماوە",ipv4:"ناونیشانی IPv4",ipv6:"ناونیشانی IPv6",mac:"ناونیشانی MAC",cidrv4:"مەودای IPv4",cidrv6:"مەودای IPv6",base64:"دەقی base64",base64url:"دەقی base64url",json_string:"دەقی JSON",e164:"ژمارەی E.164",credit_card:"ژمارەی کارتی کرێدیت",currency_code:"کۆدی دراو",iban:"IBAN",jwt:"JWT",template_literal:"تێکردە"},Z={nan:"NaN",string:"نووسین",number:"ژمارە",boolean:"boolean",array:"array",object:"object",date:"ڕێکەوت",integer:"ژمارە",float:"ژمارە",null:"null",undefined:"undefined",function:"function",symbol:"symbol",unknown:"unknown",promise:"promise",void:"void",never:"never",map:"map",set:"set"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y,R=["ا","و","ۆ","وو","ە","ی","ێ"].some((E)=>W.endsWith(E))?"یە":"ە",M=/^[a-zA-Z]+$/.test(W);if(Y==="null"||Y==="undefined")return"داواکراوە";return`چاوەڕوانکراوە ${J} بێت، بەڵام ${W}${M?"":R}`}case"invalid_value":if(_.values.length===1)return`بەهاکە نادرووستە: چاوەڕوانکراوە ${Q$(_.values[0])} بێت`;return`هەڵبژاردەی نادروست: چاوەڕوانکراوە یەکێک بێت لە ${i0(_.values,"|")}`;case"too_big":{let J=I(_.origin);if(J)return`پێویستە بە لایەنی زۆرەوە ${_.maximum.toString()} ${J.unit} ${J.verb}`;return`پێویستە بە لایەنی زۆرەوە ${_.maximum.toString()} بێت`}case"too_small":{let J=I(_.origin);if(J)return`پێویستە بە لایەنی کەمەوە ${_.minimum.toString()} ${J.unit} ${J.verb}`;return`پێویستە بە لایەنی کەمەوە ${_.minimum.toString()} بێت`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`دەقی نادروست: پێویستە دەستپێبکات بە "${J.prefix}"`;if(J.format==="ends_with")return`دەقی نادروست: پێویستە کۆتاییبێت بە "${J.suffix}"`;if(J.format==="includes")return`دەقی نادروست: پێویستە "${J.includes}" لەخۆبگرێت`;if(J.format==="regex")return`دەقی نادروست: پێویستە لەگەڵ پاتێرنی ${J.pattern} بگونجێت`;return`بەهای ${G[J.format]??_.format} نادروستە`}case"not_multiple_of":return`ژمارەی نادروست: دەبێت چەند هێندە بێت بۆ ${_.divisor}`;case"unrecognized_keys":return`کلیلی نەناسراو: ${i0(_.keys,", ")}`;case"invalid_key":return`کلیلی نادروست لە ${_.origin}`;case"invalid_union":if(_.options&&Array.isArray(_.options)&&_.options.length>0)return`بەهای نەناسراو هەیە. بەهای چاوەڕوانکراو: ${_.options.map((Y)=>`'${Y}'`).join(" | ")}`;return"یەکگرتنی نادروست";case"invalid_element":return`${_.origin} بەهاکە نادروستە`;default:return"تێکردەی نادروست"}}};function HT(){return{localeError:Sl()}}var vl=()=>{let $={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"},map:{unit:"prvků",verb:"mít"}};function I(_){return $[_]??null}let G={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",credit_card:"číslo kreditní karty",currency_code:"kód měny",iban:"IBAN",jwt:"JWT",template_literal:"vstup"},Z={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Neplatný vstup: očekáváno instanceof ${_.expected}, obdrženo ${W}`;return`Neplatný vstup: očekáváno ${J}, obdrženo ${W}`}case"invalid_value":if(_.values.length===1)return`Neplatný vstup: očekáváno ${Q$(_.values[0])}`;return`Neplatná možnost: očekávána jedna z hodnot ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`Hodnota je příliš velká: ${_.origin??"hodnota"} musí mít ${J}${_.maximum.toString()} ${Y.unit??"prvků"}`;return`Hodnota je příliš velká: ${_.origin??"hodnota"} musí být ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`Hodnota je příliš malá: ${_.origin??"hodnota"} musí mít ${J}${_.minimum.toString()} ${Y.unit??"prvků"}`;return`Hodnota je příliš malá: ${_.origin??"hodnota"} musí být ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Neplatný řetězec: musí začínat na "${J.prefix}"`;if(J.format==="ends_with")return`Neplatný řetězec: musí končit na "${J.suffix}"`;if(J.format==="includes")return`Neplatný řetězec: musí obsahovat "${J.includes}"`;if(J.format==="regex")return`Neplatný řetězec: musí odpovídat vzoru ${J.pattern}`;return`Neplatný formát ${G[J.format]??_.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${_.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${i0(_.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${_.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${_.origin}`;default:return"Neplatný vstup"}}};function FT(){return{localeError:vl()}}var Cl=()=>{let $={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"},map:{unit:"elementer",verb:"indeholdt"}};function I(_){return $[_]??null}let G={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kreditkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},Z={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Ugyldigt input: forventede instanceof ${_.expected}, fik ${W}`;return`Ugyldigt input: forventede ${J}, fik ${W}`}case"invalid_value":if(_.values.length===1)return`Ugyldig værdi: forventede ${Q$(_.values[0])}`;return`Ugyldigt valg: forventede en af følgende ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin),W=Z[_.origin]??_.origin;if(Y)return`For stor: forventede ${W??"value"} ${Y.verb} ${J} ${_.maximum.toString()} ${Y.unit??"elementer"}`;return`For stor: forventede ${W??"value"} havde ${J} ${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin),W=Z[_.origin]??_.origin;if(Y)return`For lille: forventede ${W} ${Y.verb} ${J} ${_.minimum.toString()} ${Y.unit}`;return`For lille: forventede ${W} havde ${J} ${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Ugyldig streng: skal starte med "${J.prefix}"`;if(J.format==="ends_with")return`Ugyldig streng: skal ende med "${J.suffix}"`;if(J.format==="includes")return`Ugyldig streng: skal indeholde "${J.includes}"`;if(J.format==="regex")return`Ugyldig streng: skal matche mønsteret ${J.pattern}`;return`Ugyldig ${G[J.format]??_.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${_.divisor}`;case"unrecognized_keys":return`${_.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${i0(_.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${_.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${_.origin}`;default:return"Ugyldigt input"}}};function TT(){return{localeError:Cl()}}var ql=()=>{let $={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"},map:{unit:"Elemente",verb:"zu haben"}};function I(_){return $[_]??null}let G={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",mac:"MAC-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",credit_card:"Kreditkartennummer",currency_code:"Währungscode",iban:"IBAN",jwt:"JWT",template_literal:"Eingabe"},Z={nan:"NaN",number:"Zahl",array:"Array"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Ungültige Eingabe: erwartet instanceof ${_.expected}, erhalten ${W}`;return`Ungültige Eingabe: erwartet ${J}, erhalten ${W}`}case"invalid_value":if(_.values.length===1)return`Ungültige Eingabe: erwartet ${Q$(_.values[0])}`;return`Ungültige Option: erwartet eine von ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`Zu groß: erwartet, dass ${_.origin??"Wert"} ${J}${_.maximum.toString()} ${Y.unit??"Elemente"} hat`;return`Zu groß: erwartet, dass ${_.origin??"Wert"} ${J}${_.maximum.toString()} ist`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`Zu klein: erwartet, dass ${_.origin} ${J}${_.minimum.toString()} ${Y.unit} hat`;return`Zu klein: erwartet, dass ${_.origin} ${J}${_.minimum.toString()} ist`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Ungültiger String: muss mit "${J.prefix}" beginnen`;if(J.format==="ends_with")return`Ungültiger String: muss mit "${J.suffix}" enden`;if(J.format==="includes")return`Ungültiger String: muss "${J.includes}" enthalten`;if(J.format==="regex")return`Ungültiger String: muss dem Muster ${J.pattern} entsprechen`;return`Ungültig: ${G[J.format]??_.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${_.divisor} sein`;case"unrecognized_keys":return`${_.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${i0(_.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${_.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${_.origin}`;default:return"Ungültige Eingabe"}}};function MT(){return{localeError:ql()}}var Nl=()=>{let $={string:{unit:"χαρακτήρες",verb:"να έχει"},file:{unit:"bytes",verb:"να έχει"},array:{unit:"στοιχεία",verb:"να έχει"},set:{unit:"στοιχεία",verb:"να έχει"},map:{unit:"καταχωρήσεις",verb:"να έχει"}};function I(_){return $[_]??null}let G={regex:"είσοδος",email:"διεύθυνση email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ημερομηνία και ώρα",date:"ISO ημερομηνία",time:"ISO ώρα",duration:"ISO διάρκεια",ipv4:"διεύθυνση IPv4",ipv6:"διεύθυνση IPv6",mac:"διεύθυνση MAC",cidrv4:"εύρος IPv4",cidrv6:"εύρος IPv6",base64:"συμβολοσειρά κωδικοποιημένη σε base64",base64url:"συμβολοσειρά κωδικοποιημένη σε base64url",json_string:"συμβολοσειρά JSON",e164:"αριθμός E.164",credit_card:"αριθμός πιστωτικής κάρτας",currency_code:"κωδικός νομίσματος",iban:"IBAN",jwt:"JWT",template_literal:"είσοδος"},Z={nan:"NaN"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(typeof _.expected==="string"&&/^[A-Z]/.test(_.expected))return`Μη έγκυρη είσοδος: αναμενόταν instanceof ${_.expected}, λήφθηκε ${W}`;return`Μη έγκυρη είσοδος: αναμενόταν ${J}, λήφθηκε ${W}`}case"invalid_value":if(_.values.length===1)return`Μη έγκυρη είσοδος: αναμενόταν ${Q$(_.values[0])}`;return`Μη έγκυρη επιλογή: αναμενόταν ένα από ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`Πολύ μεγάλο: αναμενόταν ${_.origin??"τιμή"} να έχει ${J}${_.maximum.toString()} ${Y.unit??"στοιχεία"}`;return`Πολύ μεγάλο: αναμενόταν ${_.origin??"τιμή"} να είναι ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`Πολύ μικρό: αναμενόταν ${_.origin} να έχει ${J}${_.minimum.toString()} ${Y.unit}`;return`Πολύ μικρό: αναμενόταν ${_.origin} να είναι ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${J.prefix}"`;if(J.format==="ends_with")return`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${J.suffix}"`;if(J.format==="includes")return`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${J.includes}"`;if(J.format==="regex")return`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${J.pattern}`;return`Μη έγκυρο: ${G[J.format]??_.format}`}case"not_multiple_of":return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${_.divisor}`;case"unrecognized_keys":return`Άγνωστ${_.keys.length>1?"α":"ο"} κλειδ${_.keys.length>1?"ιά":"ί"}: ${i0(_.keys,", ")}`;case"invalid_key":return`Μη έγκυρο κλειδί στο ${_.origin}`;case"invalid_union":return"Μη έγκυρη είσοδος";case"invalid_element":return`Μη έγκυρη τιμή στο ${_.origin}`;default:return"Μη έγκυρη είσοδος"}}};function AT(){return{localeError:Nl()}}var Bl=()=>{let $={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function I(J){return $[J]??null}let G={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},Z={nan:"NaN"};function _(J,Y){if(J==="number"&&typeof Y==="number"&&!Number.isFinite(Y))return String(Y);return Z[J]??J}return(J)=>{switch(J.code){case"invalid_type":{let Y=_(J.expected),W=O$(J.input),R=_(W,J.input);return`Invalid input: expected ${Y}, received ${R}`}case"invalid_value":if(J.values.length===1)return`Invalid input: expected ${Q$(J.values[0])}`;return`Invalid option: expected one of ${i0(J.values,"|")}`;case"too_big":{let Y=J.exact?"exactly ":J.inclusive?"<=":"<",W=I(J.origin);if(W)return`Too big: expected ${J.origin??"value"} to have ${Y}${J.maximum.toString()} ${W.unit??"elements"}`;return`Too big: expected ${J.origin??"value"} to be ${Y}${J.maximum.toString()}`}case"too_small":{let Y=J.exact?"exactly ":J.inclusive?">=":">",W=I(J.origin);if(W)return`Too small: expected ${J.origin} to have ${Y}${J.minimum.toString()} ${W.unit}`;return`Too small: expected ${J.origin} to be ${Y}${J.minimum.toString()}`}case"invalid_format":{let Y=J;if(Y.format==="starts_with")return`Invalid string: must start with "${Y.prefix}"`;if(Y.format==="ends_with")return`Invalid string: must end with "${Y.suffix}"`;if(Y.format==="includes")return`Invalid string: must include "${Y.includes}"`;if(Y.format==="regex")return`Invalid string: must match pattern ${Y.pattern}`;return`Invalid ${G[Y.format]??J.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${J.divisor}`;case"unrecognized_keys":return`Unrecognized key${J.keys.length>1?"s":""}: ${i0(J.keys,", ")}`;case"invalid_key":return`Invalid key in ${J.origin}`;case"invalid_union":if(J.options&&Array.isArray(J.options)&&J.options.length>0)return`Invalid discriminator value. Expected ${J.options.map((W)=>`'${W}'`).join(" | ")}`;if(J.inclusive===!1)return"Invalid input: more than one option matched";return"Invalid input";case"invalid_element":return`Invalid value in ${J.origin}`;default:return"Invalid input"}}};function qQ(){return{localeError:Bl()}}var jl=()=>{let $={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"},map:{unit:"elementojn",verb:"havi"}};function I(_){return $[_]??null}let G={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",mac:"MAC-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",credit_card:"kreditkarta numero",currency_code:"valuta kodo",iban:"IBAN",jwt:"JWT",template_literal:"enigo"},Z={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Nevalida enigo: atendiĝis instanceof ${_.expected}, riceviĝis ${W}`;return`Nevalida enigo: atendiĝis ${J}, riceviĝis ${W}`}case"invalid_value":if(_.values.length===1)return`Nevalida enigo: atendiĝis ${Q$(_.values[0])}`;return`Nevalida opcio: atendiĝis unu el ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`Tro granda: atendiĝis ke ${_.origin??"valoro"} havu ${J}${_.maximum.toString()} ${Y.unit??"elementojn"}`;return`Tro granda: atendiĝis ke ${_.origin??"valoro"} havu ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`Tro malgranda: atendiĝis ke ${_.origin} havu ${J}${_.minimum.toString()} ${Y.unit}`;return`Tro malgranda: atendiĝis ke ${_.origin} estu ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Nevalida karaktraro: devas komenciĝi per "${J.prefix}"`;if(J.format==="ends_with")return`Nevalida karaktraro: devas finiĝi per "${J.suffix}"`;if(J.format==="includes")return`Nevalida karaktraro: devas inkluzivi "${J.includes}"`;if(J.format==="regex")return`Nevalida karaktraro: devas kongrui kun la modelo ${J.pattern}`;return`Nevalida ${G[J.format]??_.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${_.divisor}`;case"unrecognized_keys":return`Nekonata${_.keys.length>1?"j":""} ŝlosilo${_.keys.length>1?"j":""}: ${i0(_.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${_.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${_.origin}`;default:return"Nevalida enigo"}}};function ET(){return{localeError:jl()}}var kl=()=>{let $={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function I(_){return $[_]??null}let G={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",mac:"dirección MAC",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",credit_card:"número de tarjeta de crédito",currency_code:"código de moneda",iban:"IBAN",jwt:"JWT",template_literal:"entrada"},Z={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Entrada inválida: se esperaba instanceof ${_.expected}, recibido ${W}`;return`Entrada inválida: se esperaba ${J}, recibido ${W}`}case"invalid_value":if(_.values.length===1)return`Entrada inválida: se esperaba ${Q$(_.values[0])}`;return`Opción inválida: se esperaba una de ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin),W=Z[_.origin]??_.origin;if(Y)return`Demasiado grande: se esperaba que ${W??"valor"} tuviera ${J}${_.maximum.toString()} ${Y.unit??"elementos"}`;return`Demasiado grande: se esperaba que ${W??"valor"} fuera ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin),W=Z[_.origin]??_.origin;if(Y)return`Demasiado pequeño: se esperaba que ${W} tuviera ${J}${_.minimum.toString()} ${Y.unit}`;return`Demasiado pequeño: se esperaba que ${W} fuera ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Cadena inválida: debe comenzar con "${J.prefix}"`;if(J.format==="ends_with")return`Cadena inválida: debe terminar en "${J.suffix}"`;if(J.format==="includes")return`Cadena inválida: debe incluir "${J.includes}"`;if(J.format==="regex")return`Cadena inválida: debe coincidir con el patrón ${J.pattern}`;return`Inválido ${G[J.format]??_.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${_.divisor}`;case"unrecognized_keys":return`Llave${_.keys.length>1?"s":""} desconocida${_.keys.length>1?"s":""}: ${i0(_.keys,", ")}`;case"invalid_key":return`Llave inválida en ${Z[_.origin]??_.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${Z[_.origin]??_.origin}`;default:return"Entrada inválida"}}};function RT(){return{localeError:kl()}}var gl=()=>{let $={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"},map:{unit:"آیتم",verb:"داشته باشد"}};function I(_){return $[_]??null}let G={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",mac:"MAC آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",credit_card:"شماره کارت اعتباری",currency_code:"کد ارز",iban:"IBAN",jwt:"JWT",template_literal:"ورودی"},Z={nan:"NaN",number:"عدد",array:"آرایه"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`ورودی نامعتبر: میبایست instanceof ${_.expected} میبود، ${W} دریافت شد`;return`ورودی نامعتبر: میبایست ${J} میبود، ${W} دریافت شد`}case"invalid_value":if(_.values.length===1)return`ورودی نامعتبر: میبایست ${Q$(_.values[0])} میبود`;return`گزینه نامعتبر: میبایست یکی از ${i0(_.values,"|")} میبود`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`خیلی بزرگ: ${_.origin??"مقدار"} باید ${J}${_.maximum.toString()} ${Y.unit??"عنصر"} باشد`;return`خیلی بزرگ: ${_.origin??"مقدار"} باید ${J}${_.maximum.toString()} باشد`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`خیلی کوچک: ${_.origin} باید ${J}${_.minimum.toString()} ${Y.unit} باشد`;return`خیلی کوچک: ${_.origin} باید ${J}${_.minimum.toString()} باشد`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`رشته نامعتبر: باید با "${J.prefix}" شروع شود`;if(J.format==="ends_with")return`رشته نامعتبر: باید با "${J.suffix}" تمام شود`;if(J.format==="includes")return`رشته نامعتبر: باید شامل "${J.includes}" باشد`;if(J.format==="regex")return`رشته نامعتبر: باید با الگوی ${J.pattern} مطابقت داشته باشد`;return`${G[J.format]??_.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${_.divisor} باشد`;case"unrecognized_keys":return`کلید${_.keys.length>1?"های":""} ناشناس: ${i0(_.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${_.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${_.origin}`;default:return"ورودی نامعتبر"}}};function PT(){return{localeError:gl()}}var wl=()=>{let $={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},map:{unit:"alkiota",subject:"kuvauksen"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function I(_){return $[_]??null}let G={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",mac:"MAC-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",credit_card:"luottokortin numero",currency_code:"valuuttakoodi",iban:"IBAN",jwt:"JWT",template_literal:"templaattimerkkijono"},Z={nan:"NaN"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Virheellinen tyyppi: odotettiin instanceof ${_.expected}, oli ${W}`;return`Virheellinen tyyppi: odotettiin ${J}, oli ${W}`}case"invalid_value":if(_.values.length===1)return`Virheellinen syöte: täytyy olla ${Q$(_.values[0])}`;return`Virheellinen valinta: täytyy olla yksi seuraavista: ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`Liian suuri: ${Y.subject} täytyy olla ${J}${_.maximum.toString()} ${Y.unit}`.trim();return`Liian suuri: arvon täytyy olla ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`Liian pieni: ${Y.subject} täytyy olla ${J}${_.minimum.toString()} ${Y.unit}`.trim();return`Liian pieni: arvon täytyy olla ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Virheellinen syöte: täytyy alkaa "${J.prefix}"`;if(J.format==="ends_with")return`Virheellinen syöte: täytyy loppua "${J.suffix}"`;if(J.format==="includes")return`Virheellinen syöte: täytyy sisältää "${J.includes}"`;if(J.format==="regex")return`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${J.pattern}`;return`Virheellinen ${G[J.format]??_.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${_.divisor} monikerta`;case"unrecognized_keys":return`${_.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${i0(_.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function VT(){return{localeError:wl()}}var xl=()=>{let $={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function I(_){return $[_]??null}let G={regex:"expression régulière",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne de caractères encodée en base64",base64url:"chaîne de caractères encodée en base64url",json_string:"chaîne de caractères JSON",e164:"numéro au format E.164",credit_card:"numéro de carte de crédit",currency_code:"code de devise",iban:"IBAN",jwt:"JWT",template_literal:"entrée"},Z={string:"chaîne de caractères",number:"nombre",int:"entier",boolean:"booléen",bigint:"grand entier",symbol:"symbole",undefined:"indéfini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"record",map:"map",set:"ensemble",file:"fichier",nonoptional:"non optionnel",nan:"NaN",function:"fonction"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Entrée invalide : instance de ${_.expected} attendu, ${W} reçu`;return`Entrée invalide : ${J} attendu, ${W} reçu`}case"invalid_value":if(_.values.length===1)return`Entrée invalide : ${Q$(_.values[0])} attendu`;return`Option invalide : une valeur parmi ${i0(_.values,"|")} attendue`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`Trop grand : ${Z[_.origin]??"valeur"} doit ${Y.verb} ${J}${_.maximum.toString()} ${Y.unit??"élément(s)"}`;return`Trop grand : ${Z[_.origin]??"valeur"} doit être ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`Trop petit : ${Z[_.origin]??"valeur"} doit ${Y.verb} ${J}${_.minimum.toString()} ${Y.unit}`;return`Trop petit : ${Z[_.origin]??"valeur"} doit être ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Chaîne de caractères invalide : doit commencer par "${J.prefix}"`;if(J.format==="ends_with")return`Chaîne de caractères invalide : doit se terminer par "${J.suffix}"`;if(J.format==="includes")return`Chaîne de caractères invalide : doit inclure "${J.includes}"`;if(J.format==="regex")return`Chaîne de caractères invalide : doit correspondre au motif ${J.pattern}`;return`${G[J.format]??_.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${_.divisor}`;case"unrecognized_keys":return`Clé${_.keys.length>1?"s":""} non reconnue${_.keys.length>1?"s":""} : ${i0(_.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${_.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${_.origin}`;default:return"Entrée invalide"}}};function ST(){return{localeError:xl()}}var fl=()=>{let $={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"},map:{unit:"éléments",verb:"avoir"}};function I(_){return $[_]??null}let G={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",credit_card:"numéro de carte de crédit",currency_code:"code de devise",iban:"IBAN",jwt:"JWT",template_literal:"entrée"},Z={nan:"NaN"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Entrée invalide : attendu instanceof ${_.expected}, reçu ${W}`;return`Entrée invalide : attendu ${J}, reçu ${W}`}case"invalid_value":if(_.values.length===1)return`Entrée invalide : attendu ${Q$(_.values[0])}`;return`Option invalide : attendu l'une des valeurs suivantes ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"≤":"<",Y=I(_.origin);if(Y)return`Trop grand : attendu que ${_.origin??"la valeur"} ait ${J}${_.maximum.toString()} ${Y.unit}`;return`Trop grand : attendu que ${_.origin??"la valeur"} soit ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?"≥":">",Y=I(_.origin);if(Y)return`Trop petit : attendu que ${_.origin} ait ${J}${_.minimum.toString()} ${Y.unit}`;return`Trop petit : attendu que ${_.origin} soit ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Chaîne invalide : doit commencer par "${J.prefix}"`;if(J.format==="ends_with")return`Chaîne invalide : doit se terminer par "${J.suffix}"`;if(J.format==="includes")return`Chaîne invalide : doit inclure "${J.includes}"`;if(J.format==="regex")return`Chaîne invalide : doit correspondre au motif ${J.pattern}`;return`${G[J.format]??_.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${_.divisor}`;case"unrecognized_keys":return`Clé${_.keys.length>1?"s":""} non reconnue${_.keys.length>1?"s":""} : ${i0(_.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${_.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${_.origin}`;default:return"Entrée invalide"}}};function vT(){return{localeError:fl()}}var yl=()=>{let $={string:{unit:"અક્ષર",verb:"હોવા જોઈએ"},file:{unit:"બાયટ",verb:"હોવા જોઈએ"},array:{unit:"આઇટમ",verb:"હોવા જોઈએ"},set:{unit:"આઇટમ",verb:"હોવા જોઈએ"},map:{unit:"એન્ટ્રી",verb:"હોવા જોઈએ"}};function I(_){return $[_]??null}let G={regex:"ઇનપુટ",email:"ઈમેઇલ એડ્રેસ",url:"URL",emoji:"ઇમોજી",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO તારીખ અને સમય",date:"ISO તારીખ",time:"ISO સમય",duration:"ISO અવધિ",ipv4:"IPv4 એડ્રેસ",ipv6:"IPv6 એડ્રેસ",mac:"MAC એડ્રેસ",cidrv4:"IPv4 શ્રેણી",cidrv6:"IPv6 શ્રેણી",base64:"base64-એન્કોડેડ સ્ટ્રિંગ",base64url:"base64url-એન્કોડેડ સ્ટ્રિંગ",json_string:"JSON સ્ટ્રિંગ",e164:"E.164 નંબર",credit_card:"ક્રેડિટ કાર્ડ નંબર",currency_code:"ચલણ કોડ",iban:"IBAN",jwt:"JWT",template_literal:"ઇનપુટ"},Z={nan:"NaN"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;return`અમાન્ય ઇનપુટ: અપેક્ષિત ${J}, પ્રાપ્ત ${W}`}case"invalid_value":if(_.values.length===1)return`અમાન્ય ઇનપુટ: અપેક્ષિત ${Q$(_.values[0])}`;return`અમાન્ય વિકલ્પ: ${i0(_.values," | ")} માધ્યમથી એક અપેક્ષિત`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`ખૂબ મોટું: ${_.origin??"મૂલ્ય"} ${J}${_.maximum.toString()} ${Y.unit??"એલિમેન્ટ"} હોવા જોઈએ`;return`ખૂબ મોટું: ${_.origin??"મૂલ્ય"} ${J}${_.maximum.toString()} હોવું જોઈએ`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`ખૂબ નાનું: ${_.origin} ${J}${_.minimum.toString()} ${Y.unit} હોવા જોઈએ`;return`ખૂબ નાનું: ${_.origin} ${J}${_.minimum.toString()} હોવું જોઈએ`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`અમાન્ય સ્ટ્રિંગ: "${J.prefix}" થી શરૂ થવું જોઈએ`;if(J.format==="ends_with")return`અમાન્ય સ્ટ્રિંગ: "${J.suffix}" પર સમાપ્ત થવું જોઈએ`;if(J.format==="includes")return`અમાન્ય સ્ટ્રિંગ: "${J.includes}" શામેલ હોવું જોઈએ`;if(J.format==="regex")return`અમાન્ય સ્ટ્રિંગ: પેટર્ન ${J.pattern} સાથે મેળ ખાવું જોઈએ`;return`અમાન્ય ${G[J.format]??_.format}`}case"not_multiple_of":return`અમાન્ય નંબર: ${_.divisor} નો ગુણાંક હોવો જોઈએ`;case"unrecognized_keys":return`ઓળખી શકાતા નહીં તે કી${_.keys.length>1?"ઓ":""}: ${i0(_.keys,", ")}`;case"invalid_key":return`${_.origin} માં અમાન્ય કી`;case"invalid_union":if(_.options&&Array.isArray(_.options)&&_.options.length>0)return`અમાન્ય ડિસ્ક્રિમિનેટર મૂલ્ય. અપેક્ષિત ${_.options.map((Y)=>`'${Y}'`).join(" | ")}`;return"અમાન્ય ઇનપુટ";case"invalid_element":return`${_.origin} માં અમાન્ય મૂલ્ય`;default:return"અમાન્ય ઇનપુટ"}}};function CT(){return{localeError:yl()}}var bl=()=>{let $={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},I={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},G=(M)=>M?$[M]:void 0,Z=(M)=>{let E=G(M);if(E)return E.label;return M??$.unknown.label},_=(M)=>`ה${Z(M)}`,J=(M)=>{return(G(M)?.gender??"m")==="f"?"צריכה להיות":"צריך להיות"},Y=(M)=>{if(!M)return null;return I[M]??null},W={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},uuidv4:{label:"UUIDv4",gender:"m"},uuidv6:{label:"UUIDv6",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},mac:{label:"כתובת MAC",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},credit_card:{label:"מספר כרטיס אשראי",gender:"m"},currency_code:{label:"קוד מטבע",gender:"m"},iban:{label:"IBAN",gender:"m"},jwt:{label:"JWT",gender:"m"},template_literal:{label:"קלט",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},R={nan:"NaN"};return(M)=>{switch(M.code){case"invalid_type":{let E=M.expected,T=R[E??""]??Z(E),S=O$(M.input),N=R[S]??$[S]?.label??S;if(/^[A-Z]/.test(M.expected))return`קלט לא תקין: צריך להיות instanceof ${M.expected}, התקבל ${N}`;return`קלט לא תקין: צריך להיות ${T}, התקבל ${N}`}case"invalid_value":{if(M.values.length===1)return`ערך לא תקין: הערך חייב להיות ${Q$(M.values[0])}`;let E=M.values.map((N)=>Q$(N));if(M.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${E[0]} או ${E[1]}`;let T=E[E.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${E.slice(0,-1).join(", ")} או ${T}`}case"too_big":{let E=Y(M.origin),T=_(M.origin??"value");if(M.origin==="string")return`${E?.longLabel??"ארוך"} מדי: ${T} צריכה להכיל ${M.maximum.toString()} ${E?.unit??""} ${M.inclusive?"או פחות":"לכל היותר"}`.trim();if(M.origin==="number"){let B=M.inclusive?`קטן או שווה ל-${M.maximum}`:`קטן מ-${M.maximum}`;return`גדול מדי: ${T} צריך להיות ${B}`}if(M.origin==="array"||M.origin==="set"){let B=M.origin==="set"?"צריכה":"צריך",x=M.inclusive?`${M.maximum} ${E?.unit??""} או פחות`:`פחות מ-${M.maximum} ${E?.unit??""}`;return`גדול מדי: ${T} ${B} להכיל ${x}`.trim()}let S=M.inclusive?"<=":"<",N=J(M.origin??"value");if(E?.unit)return`${E.longLabel} מדי: ${T} ${N} ${S}${M.maximum.toString()} ${E.unit}`;return`${E?.longLabel??"גדול"} מדי: ${T} ${N} ${S}${M.maximum.toString()}`}case"too_small":{let E=Y(M.origin),T=_(M.origin??"value");if(M.origin==="string")return`${E?.shortLabel??"קצר"} מדי: ${T} צריכה להכיל ${M.minimum.toString()} ${E?.unit??""} ${M.inclusive?"או יותר":"לפחות"}`.trim();if(M.origin==="number"){let B=M.inclusive?`גדול או שווה ל-${M.minimum}`:`גדול מ-${M.minimum}`;return`קטן מדי: ${T} צריך להיות ${B}`}if(M.origin==="array"||M.origin==="set"){let B=M.origin==="set"?"צריכה":"צריך";if(M.minimum===1&&M.inclusive){let w=M.origin==="set"?"לפחות פריט אחד":"לפחות פריט אחד";return`קטן מדי: ${T} ${B} להכיל ${w}`}let x=M.inclusive?`${M.minimum} ${E?.unit??""} או יותר`:`יותר מ-${M.minimum} ${E?.unit??""}`;return`קטן מדי: ${T} ${B} להכיל ${x}`.trim()}let S=M.inclusive?">=":">",N=J(M.origin??"value");if(E?.unit)return`${E.shortLabel} מדי: ${T} ${N} ${S}${M.minimum.toString()} ${E.unit}`;return`${E?.shortLabel??"קטן"} מדי: ${T} ${N} ${S}${M.minimum.toString()}`}case"invalid_format":{let E=M;if(E.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${E.prefix}"`;if(E.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${E.suffix}"`;if(E.format==="includes")return`המחרוזת חייבת לכלול "${E.includes}"`;if(E.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${E.pattern}`;let T=W[E.format],S=T?.label??E.format,B=(T?.gender??"m")==="f"?"תקינה":"תקין";return`${S} לא ${B}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${M.divisor}`;case"unrecognized_keys":return`מפתח${M.keys.length>1?"ות":""} לא מזוה${M.keys.length>1?"ים":"ה"}: ${i0(M.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${_(M.origin??"array")}`;default:return"קלט לא תקין"}}};function qT(){return{localeError:bl()}}var hl=()=>{let $={string:{unit:"अक्षर",verb:"रखने के लिए"},file:{unit:"बाइट्स",verb:"रखने के लिए"},array:{unit:"तत्व",verb:"रखने के लिए"},set:{unit:"तत्व",verb:"रखने के लिए"},map:{unit:"प्रविष्टियाँ",verb:"रखने के लिए"}};function I(_){return $[_]??null}let G={regex:"इनपुट",email:"ईमेल पता",url:"URL",emoji:"इमोजी",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO तिथि और समय",date:"ISO तिथि",time:"ISO समय",duration:"ISO अवधि",ipv4:"IPv4 पता",ipv6:"IPv6 पता",mac:"MAC पता",cidrv4:"IPv4 श्रेणी",cidrv6:"IPv6 श्रेणी",base64:"Base64-एन्कोडेड स्ट्रिंग",base64url:"Base64URL-एन्कोडेड स्ट्रिंग",json_string:"JSON स्ट्रिंग",e164:"E.164 संख्या",credit_card:"क्रेडिट कार्ड संख्या",currency_code:"मुद्रा कोड",iban:"IBAN",jwt:"JWT",template_literal:"इनपुट"},Z={nan:"NaN"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;return`अमान्य इनपुट: अपेक्षित ${J}, प्राप्त ${W}`}case"invalid_value":if(_.values.length===1)return`अमान्य इनपुट: अपेक्षित ${Q$(_.values[0])}`;return`अमान्य विकल्प: अपेक्षित मानों में से एक ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`बहुत बड़ा: अपेक्षित था कि ${_.origin??"मान"} में ${J}${_.maximum} ${Y.unit} हों`;return`बहुत बड़ा: अपेक्षित था कि ${_.origin??"मान"} ${J}${_.maximum} हो`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`बहुत छोटा: अपेक्षित था कि ${_.origin} में ${J}${_.minimum} ${Y.unit} हों`;return`बहुत छोटा: अपेक्षित था कि ${_.origin} ${J}${_.minimum} हो`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`अमान्य स्ट्रिंग: "${J.prefix}" से शुरू होना चाहिए`;if(J.format==="ends_with")return`अमान्य स्ट्रिंग: "${J.suffix}" पर समाप्त होना चाहिए`;if(J.format==="includes")return`अमान्य स्ट्रिंग: इसमें "${J.includes}" शामिल होना चाहिए`;if(J.format==="regex")return`अमान्य स्ट्रिंग: पैटर्न ${J.pattern} से मेल खाना चाहिए`;return`अमान्य ${G[J.format]??_.format}`}case"not_multiple_of":return`अमान्य संख्या: यह ${_.divisor} का गुणज होना चाहिए`;case"unrecognized_keys":return`अपरिचित कुंजी${_.keys.length>1?"याँ":""}: ${i0(_.keys,", ")}`;case"invalid_key":return`अमान्य कुंजी: ${_.origin} में`;case"invalid_union":if(_.options&&Array.isArray(_.options)&&_.options.length>0)return`अमान्य डिस्क्रिमिनेटर मान: अपेक्षित ${_.options.map((Y)=>`'${Y}'`).join(" | ")}`;return"अमान्य इनपुट";case"invalid_element":return`अमान्य मान: ${_.origin} में`;default:return"अमान्य इनपुट"}}};function NT(){return{localeError:hl()}}var ul=()=>{let $={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function I(_){return $[_]??null}let G={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",credit_card:"broj kreditne kartice",currency_code:"kod valute",iban:"IBAN",jwt:"JWT",template_literal:"unos"},Z={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Neispravan unos: očekuje se instanceof ${_.expected}, a primljeno je ${W}`;return`Neispravan unos: očekuje se ${J}, a primljeno je ${W}`}case"invalid_value":if(_.values.length===1)return`Neispravna vrijednost: očekivano ${Q$(_.values[0])}`;return`Neispravna opcija: očekivano jedno od ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin),W=Z[_.origin]??_.origin;if(Y)return`Preveliko: očekivano da ${W??"vrijednost"} ima ${J}${_.maximum.toString()} ${Y.unit??"elemenata"}`;return`Preveliko: očekivano da ${W??"vrijednost"} bude ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin),W=Z[_.origin]??_.origin;if(Y)return`Premalo: očekivano da ${W} ima ${J}${_.minimum.toString()} ${Y.unit}`;return`Premalo: očekivano da ${W} bude ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Neispravan tekst: mora započinjati s "${J.prefix}"`;if(J.format==="ends_with")return`Neispravan tekst: mora završavati s "${J.suffix}"`;if(J.format==="includes")return`Neispravan tekst: mora sadržavati "${J.includes}"`;if(J.format==="regex")return`Neispravan tekst: mora odgovarati uzorku ${J.pattern}`;return`Neispravna ${G[J.format]??_.format}`}case"not_multiple_of":return`Neispravan broj: mora biti višekratnik od ${_.divisor}`;case"unrecognized_keys":return`Neprepoznat${_.keys.length>1?"i ključevi":" ključ"}: ${i0(_.keys,", ")}`;case"invalid_key":return`Neispravan ključ u ${Z[_.origin]??_.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${Z[_.origin]??_.origin}`;default:return"Neispravan unos"}}};function BT(){return{localeError:ul()}}var nl=()=>{let $={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"},map:{unit:"elem",verb:"legyen"}};function I(_){return $[_]??null}let G={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",mac:"MAC cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",credit_card:"hitelkártyaszám",currency_code:"pénznemkód",iban:"IBAN",jwt:"JWT",template_literal:"bemenet"},Z={nan:"NaN",number:"szám",array:"tömb"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Érvénytelen bemenet: a várt érték instanceof ${_.expected}, a kapott érték ${W}`;return`Érvénytelen bemenet: a várt érték ${J}, a kapott érték ${W}`}case"invalid_value":if(_.values.length===1)return`Érvénytelen bemenet: a várt érték ${Q$(_.values[0])}`;return`Érvénytelen opció: valamelyik érték várt ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`Túl nagy: ${_.origin??"érték"} mérete túl nagy ${J}${_.maximum.toString()} ${Y.unit??"elem"}`;return`Túl nagy: a bemeneti érték ${_.origin??"érték"} túl nagy: ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`Túl kicsi: a bemeneti érték ${_.origin} mérete túl kicsi ${J}${_.minimum.toString()} ${Y.unit}`;return`Túl kicsi: a bemeneti érték ${_.origin} túl kicsi ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Érvénytelen string: "${J.prefix}" értékkel kell kezdődnie`;if(J.format==="ends_with")return`Érvénytelen string: "${J.suffix}" értékkel kell végződnie`;if(J.format==="includes")return`Érvénytelen string: "${J.includes}" értéket kell tartalmaznia`;if(J.format==="regex")return`Érvénytelen string: ${J.pattern} mintának kell megfelelnie`;return`Érvénytelen ${G[J.format]??_.format}`}case"not_multiple_of":return`Érvénytelen szám: ${_.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${_.keys.length>1?"s":""}: ${i0(_.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${_.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${_.origin}`;default:return"Érvénytelen bemenet"}}};function jT(){return{localeError:nl()}}function Hj($,I,G){return Math.abs($)===1?I:G}function NG($){if(!$)return"";let I=["ա","ե","ը","ի","ո","ու","օ"],G=$[$.length-1];return $+(I.includes(G)?"ն":"ը")}var pl=()=>{let $={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},map:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function I(_){return $[_]??null}let G={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",mac:"MAC հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",credit_card:"կրեդիտ քարտի համար",currency_code:"արժույթի կոդ",iban:"IBAN",jwt:"JWT",template_literal:"մուտք"},Z={nan:"NaN",number:"թիվ",array:"զանգված"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Սխալ մուտքագրում․ սպասվում էր instanceof ${_.expected}, ստացվել է ${W}`;return`Սխալ մուտքագրում․ սպասվում էր ${J}, ստացվել է ${W}`}case"invalid_value":if(_.values.length===1)return`Սխալ մուտքագրում․ սպասվում էր ${Q$(_.values[1])}`;return`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y){let W=Number(_.maximum),R=Hj(W,Y.unit.one,Y.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${NG(_.origin??"արժեք")} կունենա ${J}${_.maximum.toString()} ${R}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${NG(_.origin??"արժեք")} լինի ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y){let W=Number(_.minimum),R=Hj(W,Y.unit.one,Y.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${NG(_.origin)} կունենա ${J}${_.minimum.toString()} ${R}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${NG(_.origin)} լինի ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Սխալ տող․ պետք է սկսվի "${J.prefix}"-ով`;if(J.format==="ends_with")return`Սխալ տող․ պետք է ավարտվի "${J.suffix}"-ով`;if(J.format==="includes")return`Սխալ տող․ պետք է պարունակի "${J.includes}"`;if(J.format==="regex")return`Սխալ տող․ պետք է համապատասխանի ${J.pattern} ձևաչափին`;return`Սխալ ${G[J.format]??_.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${_.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${_.keys.length>1?"ներ":""}. ${i0(_.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${NG(_.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${NG(_.origin)}-ում`;default:return"Սխալ մուտքագրում"}}};function kT(){return{localeError:pl()}}var cl=()=>{let $={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"},map:{unit:"item",verb:"memiliki"}};function I(_){return $[_]??null}let G={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",mac:"alamat MAC",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",credit_card:"nomor kartu kredit",currency_code:"kode mata uang",iban:"IBAN",jwt:"JWT",template_literal:"input"},Z={nan:"NaN"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Input tidak valid: diharapkan instanceof ${_.expected}, diterima ${W}`;return`Input tidak valid: diharapkan ${J}, diterima ${W}`}case"invalid_value":if(_.values.length===1)return`Input tidak valid: diharapkan ${Q$(_.values[0])}`;return`Pilihan tidak valid: diharapkan salah satu dari ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`Terlalu besar: diharapkan ${_.origin??"value"} memiliki ${J}${_.maximum.toString()} ${Y.unit??"elemen"}`;return`Terlalu besar: diharapkan ${_.origin??"value"} menjadi ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`Terlalu kecil: diharapkan ${_.origin} memiliki ${J}${_.minimum.toString()} ${Y.unit}`;return`Terlalu kecil: diharapkan ${_.origin} menjadi ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`String tidak valid: harus dimulai dengan "${J.prefix}"`;if(J.format==="ends_with")return`String tidak valid: harus berakhir dengan "${J.suffix}"`;if(J.format==="includes")return`String tidak valid: harus menyertakan "${J.includes}"`;if(J.format==="regex")return`String tidak valid: harus sesuai pola ${J.pattern}`;return`${G[J.format]??_.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${_.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${_.keys.length>1?"s":""}: ${i0(_.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${_.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${_.origin}`;default:return"Input tidak valid"}}};function gT(){return{localeError:cl()}}var ll=()=>{let $={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"},map:{unit:"hluti",verb:"að hafa"}};function I(_){return $[_]??null}let G={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",credit_card:"kreditkortanúmer",currency_code:"gjaldmiðilskóði",iban:"IBAN",jwt:"JWT",template_literal:"gildi"},Z={nan:"NaN",number:"númer",array:"fylki"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Rangt gildi: Þú slóst inn ${W} þar sem á að vera instanceof ${_.expected}`;return`Rangt gildi: Þú slóst inn ${W} þar sem á að vera ${J}`}case"invalid_value":if(_.values.length===1)return`Rangt gildi: gert ráð fyrir ${Q$(_.values[0])}`;return`Ógilt val: má vera eitt af eftirfarandi ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`Of stórt: gert er ráð fyrir að ${_.origin??"gildi"} hafi ${J}${_.maximum.toString()} ${Y.unit??"hluti"}`;return`Of stórt: gert er ráð fyrir að ${_.origin??"gildi"} sé ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`Of lítið: gert er ráð fyrir að ${_.origin} hafi ${J}${_.minimum.toString()} ${Y.unit}`;return`Of lítið: gert er ráð fyrir að ${_.origin} sé ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Ógildur strengur: verður að byrja á "${J.prefix}"`;if(J.format==="ends_with")return`Ógildur strengur: verður að enda á "${J.suffix}"`;if(J.format==="includes")return`Ógildur strengur: verður að innihalda "${J.includes}"`;if(J.format==="regex")return`Ógildur strengur: verður að fylgja mynstri ${J.pattern}`;return`Rangt ${G[J.format]??_.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${_.divisor}`;case"unrecognized_keys":return`Óþekkt ${_.keys.length>1?"ir lyklar":"ur lykill"}: ${i0(_.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${_.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${_.origin}`;default:return"Rangt gildi"}}};function wT(){return{localeError:ll()}}var ml=()=>{let $={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"},map:{unit:"elementi",verb:"avere"}};function I(_){return $[_]??null}let G={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",mac:"indirizzo MAC",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",credit_card:"numero di carta di credito",currency_code:"codice valuta",iban:"IBAN",jwt:"JWT",template_literal:"input"},Z={nan:"NaN",number:"numero",array:"vettore"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Input non valido: atteso instanceof ${_.expected}, ricevuto ${W}`;return`Input non valido: atteso ${J}, ricevuto ${W}`}case"invalid_value":if(_.values.length===1)return`Input non valido: atteso ${Q$(_.values[0])}`;return`Opzione non valida: atteso uno tra ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`Troppo grande: ${_.origin??"valore"} deve avere ${J}${_.maximum.toString()} ${Y.unit??"elementi"}`;return`Troppo grande: ${_.origin??"valore"} deve essere ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`Troppo piccolo: ${_.origin} deve avere ${J}${_.minimum.toString()} ${Y.unit}`;return`Troppo piccolo: ${_.origin} deve essere ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Stringa non valida: deve iniziare con "${J.prefix}"`;if(J.format==="ends_with")return`Stringa non valida: deve terminare con "${J.suffix}"`;if(J.format==="includes")return`Stringa non valida: deve includere "${J.includes}"`;if(J.format==="regex")return`Stringa non valida: deve corrispondere al pattern ${J.pattern}`;return`Input non valido: ${G[J.format]??_.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${_.divisor}`;case"unrecognized_keys":return`Chiav${_.keys.length>1?"i":"e"} non riconosciut${_.keys.length>1?"e":"a"}: ${i0(_.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${_.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${_.origin}`;default:return"Input non valido"}}};function xT(){return{localeError:ml()}}var dl=()=>{let $={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"},map:{unit:"要素",verb:"である"}};function I(_){return $[_]??null}let G={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",mac:"MACアドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",credit_card:"クレジットカード番号",currency_code:"通貨コード",iban:"IBAN",jwt:"JWT",template_literal:"入力値"},Z={nan:"NaN",number:"数値",array:"配列"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`無効な入力: instanceof ${_.expected}が期待されましたが、${W}が入力されました`;return`無効な入力: ${J}が期待されましたが、${W}が入力されました`}case"invalid_value":if(_.values.length===1)return`無効な入力: ${Q$(_.values[0])}が期待されました`;return`無効な選択: ${i0(_.values,"、")}のいずれかである必要があります`;case"too_big":{let J=_.inclusive?"以下である":"より小さい",Y=I(_.origin);if(Y)return`大きすぎる値: ${_.origin??"値"}は${_.maximum.toString()}${Y.unit??"要素"}${J}必要があります`;return`大きすぎる値: ${_.origin??"値"}は${_.maximum.toString()}${J}必要があります`}case"too_small":{let J=_.inclusive?"以上である":"より大きい",Y=I(_.origin);if(Y)return`小さすぎる値: ${_.origin}は${_.minimum.toString()}${Y.unit}${J}必要があります`;return`小さすぎる値: ${_.origin}は${_.minimum.toString()}${J}必要があります`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`無効な文字列: "${J.prefix}"で始まる必要があります`;if(J.format==="ends_with")return`無効な文字列: "${J.suffix}"で終わる必要があります`;if(J.format==="includes")return`無効な文字列: "${J.includes}"を含む必要があります`;if(J.format==="regex")return`無効な文字列: パターン${J.pattern}に一致する必要があります`;return`無効な${G[J.format]??_.format}`}case"not_multiple_of":return`無効な数値: ${_.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${_.keys.length>1?"群":""}: ${i0(_.keys,"、")}`;case"invalid_key":return`${_.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${_.origin}内の無効な値`;default:return"無効な入力"}}};function fT(){return{localeError:dl()}}var il=()=>{let $={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},map:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function I(_){return $[_]??null}let G={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",mac:"MAC მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული ველი",base64url:"base64url-კოდირებული ველი",json_string:"JSON ველი",e164:"E.164 ნომერი",credit_card:"საკრედიტო ბარათის ნომერი",currency_code:"ვალუტის კოდი",iban:"IBAN",jwt:"JWT",template_literal:"შეყვანა"},Z={nan:"NaN",number:"რიცხვი",string:"ველი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`არასწორი შეყვანა: მოსალოდნელი instanceof ${_.expected}, მიღებული ${W}`;return`არასწორი შეყვანა: მოსალოდნელი ${J}, მიღებული ${W}`}case"invalid_value":if(_.values.length===1)return`არასწორი შეყვანა: მოსალოდნელი ${Q$(_.values[0])}`;return`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${i0(_.values,"|")}-დან`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`ზედმეტად დიდი: მოსალოდნელი ${_.origin??"მნიშვნელობა"} ${Y.verb} ${J}${_.maximum.toString()} ${Y.unit}`;return`ზედმეტად დიდი: მოსალოდნელი ${_.origin??"მნიშვნელობა"} იყოს ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`ზედმეტად პატარა: მოსალოდნელი ${_.origin} ${Y.verb} ${J}${_.minimum.toString()} ${Y.unit}`;return`ზედმეტად პატარა: მოსალოდნელი ${_.origin} იყოს ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`არასწორი ველი: უნდა იწყებოდეს "${J.prefix}"-ით`;if(J.format==="ends_with")return`არასწორი ველი: უნდა მთავრდებოდეს "${J.suffix}"-ით`;if(J.format==="includes")return`არასწორი ველი: უნდა შეიცავდეს "${J.includes}"-ს`;if(J.format==="regex")return`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${J.pattern}`;return`არასწორი ${G[J.format]??_.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${_.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${_.keys.length>1?"ები":"ი"}: ${i0(_.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${_.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${_.origin}-ში`;default:return"არასწორი შეყვანა"}}};function yT(){return{localeError:il()}}var ol=()=>{let $={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"},map:{unit:"ធាតុ",verb:"គួរមាន"}};function I(_){return $[_]??null}let G={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",mac:"អាសយដ្ឋាន MAC",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",credit_card:"លេខប័ណ្ណឥណទាន",currency_code:"កូដរូបិយប័ណ្ណ",iban:"IBAN",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},Z={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${_.expected} ប៉ុន្តែទទួលបាន ${W}`;return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${J} ប៉ុន្តែទទួលបាន ${W}`}case"invalid_value":if(_.values.length===1)return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${Q$(_.values[0])}`;return`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`ធំពេក៖ ត្រូវការ ${_.origin??"តម្លៃ"} ${J} ${_.maximum.toString()} ${Y.unit??"ធាតុ"}`;return`ធំពេក៖ ត្រូវការ ${_.origin??"តម្លៃ"} ${J} ${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`តូចពេក៖ ត្រូវការ ${_.origin} ${J} ${_.minimum.toString()} ${Y.unit}`;return`តូចពេក៖ ត្រូវការ ${_.origin} ${J} ${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${J.prefix}"`;if(J.format==="ends_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${J.suffix}"`;if(J.format==="includes")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${J.includes}"`;if(J.format==="regex")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${J.pattern}`;return`មិនត្រឹមត្រូវ៖ ${G[J.format]??_.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${_.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${i0(_.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${_.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${_.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function NQ(){return{localeError:ol()}}function bT(){return NQ()}var tl=()=>{let $={string:{unit:"ಅಕ್ಷರಗಳು",verb:"ಹೊಂದಲು"},file:{unit:"ಬೈಟ್ಗಳು",verb:"ಹೊಂದಲು"},array:{unit:"ವಸ್ತುಗಳು",verb:"ಹೊಂದಲು"},set:{unit:"ವಸ್ತುಗಳು",verb:"ಹೊಂದಲು"},map:{unit:"entries",verb:"ಹೊಂದಲು"}};function I(_){return $[_]??null}let G={regex:"ಇನ್ಪುಟ್",email:"email ವಿಳಾಸ",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ದಿನಾಂಕದ ಸಮಯ",date:"ISO ದಿನಾಂಕ",time:"ISO ಸಮಯ",duration:"ISO ಅವಧಿ",ipv4:"IPv4 ವಿಳಾಸ",ipv6:"IPv6 ವಿಳಾಸ",mac:"MAC ವಿಳಾಸ",cidrv4:"IPv4 ವ್ಯಾಪ್ತಿಯ",cidrv6:"IPv6 ವ್ಯಾಪ್ತಿಯ",base64:"base64-encodedಸ್ಟ್ರಿಂಗ್",base64url:"base64url-encodedಸ್ಟ್ರಿಂಗ್",json_string:"JSONಸ್ಟ್ರಿಂಗ್",e164:"E.164 ಸಂಖ್ಯೆ",credit_card:"ಕ್ರೆಡಿಟ್ ಕಾರ್ಡ್ ಸಂಖ್ಯೆ",currency_code:"ಕರೆನ್ಸಿ ಕೋಡ್",iban:"IBAN",jwt:"JWT",template_literal:"ಇನ್ಪುಟ್"},Z={nan:"NaN"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;return`ಅಮಾನ್ಯ ಇನ್ಪುಟ್: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${J}, ಸ್ವೀಕರಿಸಿದನು ${W}`}case"invalid_value":if(_.values.length===1)return`ಅಮಾನ್ಯ ಇನ್ಪುಟ್: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${Q$(_.values[0])}`;return`ಅಮಾನ್ಯ ಆಯ್ಕೆ: ಇವುಗಳಲ್ಲಿ ಒಂದನ್ನು ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`ತುಂಬಾ ದೊಡ್ಡದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${_.origin??"value"} ಹೊಂದಲು ${J}${_.maximum.toString()} ${Y.unit??"ಅಂಶಗಳು"}`;return`ತುಂಬಾ ದೊಡ್ಡದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${_.origin??"value"} ಎಂದು ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`ತುಂಬಾ ಚಿಕ್ಕದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${_.origin} ಹೊಂದಲು ${J}${_.minimum.toString()} ${Y.unit}`;return`ತುಂಬಾ ಚಿಕ್ಕದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${_.origin} ಎಂದು ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`ಅಮಾನ್ಯವಾದ ಸ್ಟ್ರಿಂಗ್: ಇದರೊಂದಿಗೆ ಪ್ರಾರಂಭಿಸಬೇಕು "${J.prefix}"`;if(J.format==="ends_with")return`ಅಮಾನ್ಯವಾದ ಸ್ಟ್ರಿಂಗ್: ಇದರೊಂದಿಗೆ ಕೊನೆಗೊಳ್ಳಬೇಕು "${J.suffix}"`;if(J.format==="includes")return`ಅಮಾನ್ಯ ಸ್ಟ್ರಿಂಗ್: ಒಳಗೊಂಡಿರಬೇಕು "${J.includes}"`;if(J.format==="regex")return`ಅಮಾನ್ಯವಾದ ಸ್ಟ್ರಿಂಗ್: ಮಾದರಿಗೆ ಹೊಂದಿಕೆಯಾಗಬೇಕು ${J.pattern}`;return`ಅಮಾನ್ಯ ${G[J.format]??_.format}`}case"not_multiple_of":return`ಅಮಾನ್ಯ ಸಂಖ್ಯೆ: ಬಹುಸಂಖ್ಯೆಯಾಗಿರಬೇಕು ${_.divisor}`;case"unrecognized_keys":return`ಗುರುತಿಸಲಾಗದ ಕೀ ${_.keys.length>1?"s":""}: ${i0(_.keys,", ")}`;case"invalid_key":return`ಅಮಾನ್ಯವಾದ ಕೀ ಇನ್ ${_.origin}`;case"invalid_union":if(_.options&&Array.isArray(_.options)&&_.options.length>0)return`ಅಮಾನ್ಯ ತಾರತಮ್ಯ ಮೌಲ್ಯ. ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${_.options.map((Y)=>`'${Y}'`).join(" | ")}`;return"ಅಮಾನ್ಯ ಇನ್ಪುಟ್";case"invalid_element":return`ರಲ್ಲಿ ಅಮಾನ್ಯ ಮೌಲ್ಯ ${_.origin}`;default:return"ಅಮಾನ್ಯ ಇನ್ಪುಟ್"}}};function hT(){return{localeError:tl()}}var rl=()=>{let $={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"},map:{unit:"개",verb:"to have"}};function I(_){return $[_]??null}let G={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",mac:"MAC 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",credit_card:"신용카드 번호",currency_code:"통화 코드",iban:"IBAN",jwt:"JWT",template_literal:"입력"},Z={nan:"NaN"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`잘못된 입력: 예상 타입은 instanceof ${_.expected}, 받은 타입은 ${W}입니다`;return`잘못된 입력: 예상 타입은 ${J}, 받은 타입은 ${W}입니다`}case"invalid_value":if(_.values.length===1)return`잘못된 입력: 값은 ${Q$(_.values[0])} 이어야 합니다`;return`잘못된 옵션: ${i0(_.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{let J=_.inclusive?"이하":"미만",Y=J==="미만"?"이어야 합니다":"여야 합니다",W=I(_.origin),R=W?.unit??"요소";if(W)return`${_.origin??"값"}이 너무 큽니다: ${_.maximum.toString()}${R} ${J}${Y}`;return`${_.origin??"값"}이 너무 큽니다: ${_.maximum.toString()} ${J}${Y}`}case"too_small":{let J=_.inclusive?"이상":"초과",Y=J==="이상"?"이어야 합니다":"여야 합니다",W=I(_.origin),R=W?.unit??"요소";if(W)return`${_.origin??"값"}이 너무 작습니다: ${_.minimum.toString()}${R} ${J}${Y}`;return`${_.origin??"값"}이 너무 작습니다: ${_.minimum.toString()} ${J}${Y}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`잘못된 문자열: "${J.prefix}"(으)로 시작해야 합니다`;if(J.format==="ends_with")return`잘못된 문자열: "${J.suffix}"(으)로 끝나야 합니다`;if(J.format==="includes")return`잘못된 문자열: "${J.includes}"을(를) 포함해야 합니다`;if(J.format==="regex")return`잘못된 문자열: 정규식 ${J.pattern} 패턴과 일치해야 합니다`;return`잘못된 ${G[J.format]??_.format}`}case"not_multiple_of":return`잘못된 숫자: ${_.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${i0(_.keys,", ")}`;case"invalid_key":return`잘못된 키: ${_.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${_.origin}`;default:return"잘못된 입력"}}};function uT(){return{localeError:rl()}}var BQ=($)=>{return $.charAt(0).toUpperCase()+$.slice(1)};function Fj($){let I=Math.abs($),G=I%10,Z=I%100;if(Z>=11&&Z<=19||G===0)return"many";if(G===1)return"one";return"few"}var al=()=>{let $={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function I(_,J,Y,W){let R=$[_]??null;if(R===null)return R;return{unit:R.unit[J],verb:R.verb[W][Y?"inclusive":"notInclusive"]}}let G={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",mac:"MAC adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",credit_card:"kredito kortelės numeris",currency_code:"valiutos kodas",iban:"IBAN",jwt:"JWT",template_literal:"įvestis"},Z={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Gautas tipas ${W}, o tikėtasi - instanceof ${_.expected}`;return`Gautas tipas ${W}, o tikėtasi - ${J}`}case"invalid_value":if(_.values.length===1)return`Privalo būti ${Q$(_.values[0])}`;return`Privalo būti vienas iš ${i0(_.values,"|")} pasirinkimų`;case"too_big":{let J=Z[_.origin]??_.origin,Y=I(_.origin,Fj(Number(_.maximum)),_.inclusive??!1,"smaller");if(Y?.verb)return`${BQ(J??_.origin??"reikšmė")} ${Y.verb} ${_.maximum.toString()} ${Y.unit??"elementų"}`;let W=_.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${BQ(J??_.origin??"reikšmė")} turi būti ${W} ${_.maximum.toString()} ${Y?.unit}`}case"too_small":{let J=Z[_.origin]??_.origin,Y=I(_.origin,Fj(Number(_.minimum)),_.inclusive??!1,"bigger");if(Y?.verb)return`${BQ(J??_.origin??"reikšmė")} ${Y.verb} ${_.minimum.toString()} ${Y.unit??"elementų"}`;let W=_.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${BQ(J??_.origin??"reikšmė")} turi būti ${W} ${_.minimum.toString()} ${Y?.unit}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Eilutė privalo prasidėti "${J.prefix}"`;if(J.format==="ends_with")return`Eilutė privalo pasibaigti "${J.suffix}"`;if(J.format==="includes")return`Eilutė privalo įtraukti "${J.includes}"`;if(J.format==="regex")return`Eilutė privalo atitikti ${J.pattern}`;return`Neteisingas ${G[J.format]??_.format}`}case"not_multiple_of":return`Skaičius privalo būti ${_.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${_.keys.length>1?"i":"as"} rakt${_.keys.length>1?"ai":"as"}: ${i0(_.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{let J=Z[_.origin]??_.origin;return`${BQ(J??_.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function nT(){return{localeError:al()}}var sl=()=>{let $={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"},map:{unit:"ставки",verb:"да имаат"}};function I(_){return $[_]??null}let G={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",mac:"MAC адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",credit_card:"број на кредитна картичка",currency_code:"код на валута",iban:"IBAN",jwt:"JWT",template_literal:"внес"},Z={nan:"NaN",number:"број",array:"низа"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Грешен внес: се очекува instanceof ${_.expected}, примено ${W}`;return`Грешен внес: се очекува ${J}, примено ${W}`}case"invalid_value":if(_.values.length===1)return`Invalid input: expected ${Q$(_.values[0])}`;return`Грешана опција: се очекува една ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`Премногу голем: се очекува ${_.origin??"вредноста"} да има ${J}${_.maximum.toString()} ${Y.unit??"елементи"}`;return`Премногу голем: се очекува ${_.origin??"вредноста"} да биде ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`Премногу мал: се очекува ${_.origin} да има ${J}${_.minimum.toString()} ${Y.unit}`;return`Премногу мал: се очекува ${_.origin} да биде ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Неважечка низа: мора да започнува со "${J.prefix}"`;if(J.format==="ends_with")return`Неважечка низа: мора да завршува со "${J.suffix}"`;if(J.format==="includes")return`Неважечка низа: мора да вклучува "${J.includes}"`;if(J.format==="regex")return`Неважечка низа: мора да одгоара на патернот ${J.pattern}`;return`Invalid ${G[J.format]??_.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${_.divisor}`;case"unrecognized_keys":return`${_.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${i0(_.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${_.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${_.origin}`;default:return"Грешен внес"}}};function pT(){return{localeError:sl()}}var el=()=>{let $={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"},map:{unit:"elemen",verb:"mempunyai"}};function I(_){return $[_]??null}let G={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",mac:"alamat MAC",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",credit_card:"nombor kad kredit",currency_code:"kod mata wang",iban:"IBAN",jwt:"JWT",template_literal:"input"},Z={nan:"NaN",number:"nombor"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Input tidak sah: dijangka instanceof ${_.expected}, diterima ${W}`;return`Input tidak sah: dijangka ${J}, diterima ${W}`}case"invalid_value":if(_.values.length===1)return`Input tidak sah: dijangka ${Q$(_.values[0])}`;return`Pilihan tidak sah: dijangka salah satu daripada ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`Terlalu besar: dijangka ${_.origin??"nilai"} ${Y.verb} ${J}${_.maximum.toString()} ${Y.unit??"elemen"}`;return`Terlalu besar: dijangka ${_.origin??"nilai"} adalah ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`Terlalu kecil: dijangka ${_.origin} ${Y.verb} ${J}${_.minimum.toString()} ${Y.unit}`;return`Terlalu kecil: dijangka ${_.origin} adalah ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`String tidak sah: mesti bermula dengan "${J.prefix}"`;if(J.format==="ends_with")return`String tidak sah: mesti berakhir dengan "${J.suffix}"`;if(J.format==="includes")return`String tidak sah: mesti mengandungi "${J.includes}"`;if(J.format==="regex")return`String tidak sah: mesti sepadan dengan corak ${J.pattern}`;return`${G[J.format]??_.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${_.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${i0(_.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${_.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${_.origin}`;default:return"Input tidak sah"}}};function cT(){return{localeError:el()}}var $m=()=>{let $={string:{unit:"अक्षर",verb:"हुनुपर्छ"},file:{unit:"बाइट",verb:"हुनुपर्छ"},array:{unit:"तत्व",verb:"हुनुपर्छ"},set:{unit:"तत्व",verb:"हुनुपर्छ"},map:{unit:"प्रविष्टि",verb:"हुनुपर्छ"}};function I(_){return $[_]??null}let G={regex:"इनपुट",email:"इमेल ठेगाना",url:"URL",emoji:"इमोजी",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO मिति र समय",date:"ISO मिति",time:"ISO समय",duration:"ISO अवधि",ipv4:"IPv4 ठेगाना",ipv6:"IPv6 ठेगाना",mac:"MAC ठेगाना",cidrv4:"IPv4 दायरा",cidrv6:"IPv6 दायरा",base64:"base64-इन्कोड गरिएको स्ट्रिङ",base64url:"base64url-इन्कोड गरिएको स्ट्रिङ",json_string:"JSON स्ट्रिङ",e164:"E.164 नम्बर",credit_card:"क्रेडिट कार्ड नम्बर",currency_code:"मुद्रा कोड",iban:"IBAN",jwt:"JWT",template_literal:"इनपुट"},Z={nan:"NaN"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;return`अमान्य इनपुट: अपेक्षित ${J}, प्राप्त ${W}`}case"invalid_value":if(_.values.length===1)return`अमान्य इनपुट: अपेक्षित ${Q$(_.values[0])}`;return`अमान्य विकल्प: अपेक्षित मानहरू मध्ये एक ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`धेरै ठूलो: ${_.origin??"मान"} मा ${J}${_.maximum.toString()} ${Y.unit} ${Y.verb}`;return`धेरै ठूलो: ${_.origin??"मान"} ${J}${_.maximum.toString()} हुनुपर्छ`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`धेरै सानो: ${_.origin} मा ${J}${_.minimum.toString()} ${Y.unit} ${Y.verb}`;return`धेरै सानो: ${_.origin} ${J}${_.minimum.toString()} हुनुपर्छ`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`अमान्य स्ट्रिङ: "${J.prefix}" बाट सुरु हुनुपर्छ`;if(J.format==="ends_with")return`अमान्य स्ट्रिङ: "${J.suffix}" मा समाप्त हुनुपर्छ`;if(J.format==="includes")return`अमान्य स्ट्रिङ: "${J.includes}" समावेश हुनुपर्छ`;if(J.format==="regex")return`अमान्य स्ट्रिङ: ढाँचा ${J.pattern} सँग मेल खानुपर्छ`;return`अमान्य ${G[J.format]??_.format}`}case"not_multiple_of":return`अमान्य संख्या: ${_.divisor} को गुणज हुनुपर्छ`;case"unrecognized_keys":return`अपरिचित कुञ्जी${_.keys.length>1?"हरू":""}: ${i0(_.keys,", ")}`;case"invalid_key":return`अमान्य कुञ्जी: ${_.origin} मा`;case"invalid_union":if(_.options&&Array.isArray(_.options)&&_.options.length>0)return`अमान्य डिस्क्रिमिनेटर मान: अपेक्षित ${_.options.map((Y)=>`'${Y}'`).join(" | ")}`;return"अमान्य इनपुट";case"invalid_element":return`अमान्य मान: ${_.origin} मा`;default:return"अमान्य इनपुट"}}};function lT(){return{localeError:$m()}}var Um=()=>{let $={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"},map:{unit:"elementen",verb:"heeft"}};function I(_){return $[_]??null}let G={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",mac:"MAC-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",credit_card:"creditcardnummer",currency_code:"valutacode",iban:"IBAN",jwt:"JWT",template_literal:"invoer"},Z={nan:"NaN",number:"getal"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Ongeldige invoer: verwacht instanceof ${_.expected}, ontving ${W}`;return`Ongeldige invoer: verwacht ${J}, ontving ${W}`}case"invalid_value":if(_.values.length===1)return`Ongeldige invoer: verwacht ${Q$(_.values[0])}`;return`Ongeldige optie: verwacht één van ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin),W=_.origin==="date"?"laat":_.origin==="string"?"lang":"groot";if(Y)return`Te ${W}: verwacht dat ${_.origin??"waarde"} ${J}${_.maximum.toString()} ${Y.unit??"elementen"} ${Y.verb}`;return`Te ${W}: verwacht dat ${_.origin??"waarde"} ${J}${_.maximum.toString()} is`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin),W=_.origin==="date"?"vroeg":_.origin==="string"?"kort":"klein";if(Y)return`Te ${W}: verwacht dat ${_.origin} ${J}${_.minimum.toString()} ${Y.unit} ${Y.verb}`;return`Te ${W}: verwacht dat ${_.origin} ${J}${_.minimum.toString()} is`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Ongeldige tekst: moet met "${J.prefix}" beginnen`;if(J.format==="ends_with")return`Ongeldige tekst: moet op "${J.suffix}" eindigen`;if(J.format==="includes")return`Ongeldige tekst: moet "${J.includes}" bevatten`;if(J.format==="regex")return`Ongeldige tekst: moet overeenkomen met patroon ${J.pattern}`;return`Ongeldig: ${G[J.format]??_.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${_.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${_.keys.length>1?"s":""}: ${i0(_.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${_.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${_.origin}`;default:return"Ongeldige invoer"}}};function mT(){return{localeError:Um()}}var Im=()=>{let $={string:{unit:"teikn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"element",verb:"å innehalde"},set:{unit:"element",verb:"å innehalde"},map:{unit:"element",verb:"å innehalde"}};function I(_){return $[_]??null}let G={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varigheit",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkoda streng",base64url:"base64url-enkoda streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},Z={nan:"NaN",number:"tal",array:"liste"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Ugyldig input: forventa instanceof ${_.expected}, fekk ${W}`;return`Ugyldig input: forventa ${J}, fekk ${W}`}case"invalid_value":if(_.values.length===1)return`Ugyldig verdi: forventa ${Q$(_.values[0])}`;return`Ugyldig val: forventa eitt av ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`For stor(t): forventa ${_.origin??"value"} til å ha ${J}${_.maximum.toString()} ${Y.unit??"element"}`;return`For stor(t): forventa ${_.origin??"value"} til å ha ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`For lite(n): forventa ${_.origin} til å ha ${J}${_.minimum.toString()} ${Y.unit}`;return`For lite(n): forventa ${_.origin} til å ha ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Ugyldig streng: må starte med "${J.prefix}"`;if(J.format==="ends_with")return`Ugyldig streng: må slutte med "${J.suffix}"`;if(J.format==="includes")return`Ugyldig streng: må innehalde "${J.includes}"`;if(J.format==="regex")return`Ugyldig streng: må matche mønsteret ${J.pattern}`;return`Ugyldig ${G[J.format]??_.format}`}case"not_multiple_of":return`Ugyldig tal: må vere eit multiplum av ${_.divisor}`;case"unrecognized_keys":return`${_.keys.length>1?"Ukjende nøklar":"Ukjend nøkkel"}: ${i0(_.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${_.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${_.origin}`;default:return"Ugyldig input"}}};function dT(){return{localeError:Im()}}var _m=()=>{let $={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"},map:{unit:"elementer",verb:"å inneholde"}};function I(_){return $[_]??null}let G={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},Z={nan:"NaN",number:"tall",array:"liste"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Ugyldig input: forventet instanceof ${_.expected}, fikk ${W}`;return`Ugyldig input: forventet ${J}, fikk ${W}`}case"invalid_value":if(_.values.length===1)return`Ugyldig verdi: forventet ${Q$(_.values[0])}`;return`Ugyldig valg: forventet en av ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`For stor(t): forventet ${_.origin??"value"} til å ha ${J}${_.maximum.toString()} ${Y.unit??"elementer"}`;return`For stor(t): forventet ${_.origin??"value"} til å ha ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`For lite(n): forventet ${_.origin} til å ha ${J}${_.minimum.toString()} ${Y.unit}`;return`For lite(n): forventet ${_.origin} til å ha ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Ugyldig streng: må starte med "${J.prefix}"`;if(J.format==="ends_with")return`Ugyldig streng: må ende med "${J.suffix}"`;if(J.format==="includes")return`Ugyldig streng: må inneholde "${J.includes}"`;if(J.format==="regex")return`Ugyldig streng: må matche mønsteret ${J.pattern}`;return`Ugyldig ${G[J.format]??_.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${_.divisor}`;case"unrecognized_keys":return`${_.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${i0(_.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${_.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${_.origin}`;default:return"Ugyldig input"}}};function iT(){return{localeError:_m()}}var Xm=()=>{let $={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"},map:{unit:"unsur",verb:"olmalıdır"}};function I(_){return $[_]??null}let G={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",mac:"MAC nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",credit_card:"i'tibâr kartı numarası",currency_code:"para birimi kodu",iban:"IBAN",jwt:"JWT",template_literal:"giren"},Z={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Fâsit giren: umulan instanceof ${_.expected}, alınan ${W}`;return`Fâsit giren: umulan ${J}, alınan ${W}`}case"invalid_value":if(_.values.length===1)return`Fâsit giren: umulan ${Q$(_.values[0])}`;return`Fâsit tercih: mûteberler ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`Fazla büyük: ${_.origin??"value"}, ${J}${_.maximum.toString()} ${Y.unit??"elements"} sahip olmalıydı.`;return`Fazla büyük: ${_.origin??"value"}, ${J}${_.maximum.toString()} olmalıydı.`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`Fazla küçük: ${_.origin}, ${J}${_.minimum.toString()} ${Y.unit} sahip olmalıydı.`;return`Fazla küçük: ${_.origin}, ${J}${_.minimum.toString()} olmalıydı.`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Fâsit metin: "${J.prefix}" ile başlamalı.`;if(J.format==="ends_with")return`Fâsit metin: "${J.suffix}" ile bitmeli.`;if(J.format==="includes")return`Fâsit metin: "${J.includes}" ihtivâ etmeli.`;if(J.format==="regex")return`Fâsit metin: ${J.pattern} nakşına uymalı.`;return`Fâsit ${G[J.format]??_.format}`}case"not_multiple_of":return`Fâsit sayı: ${_.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${_.keys.length>1?"s":""}: ${i0(_.keys,", ")}`;case"invalid_key":return`${_.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${_.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function oT(){return{localeError:Xm()}}var Gm=()=>{let $={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"},map:{unit:"توکي",verb:"ولري"}};function I(_){return $[_]??null}let G={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",mac:"د MAC پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",credit_card:"د کریډیټ کارت شمیره",currency_code:"د اسعارو کوډ",iban:"IBAN",jwt:"JWT",template_literal:"ورودي"},Z={nan:"NaN",number:"عدد",array:"ارې"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`ناسم ورودي: باید instanceof ${_.expected} وای, مګر ${W} ترلاسه شو`;return`ناسم ورودي: باید ${J} وای, مګر ${W} ترلاسه شو`}case"invalid_value":if(_.values.length===1)return`ناسم ورودي: باید ${Q$(_.values[0])} وای`;return`ناسم انتخاب: باید یو له ${i0(_.values,"|")} څخه وای`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`ډیر لوی: ${_.origin??"ارزښت"} باید ${J}${_.maximum.toString()} ${Y.unit??"عنصرونه"} ولري`;return`ډیر لوی: ${_.origin??"ارزښت"} باید ${J}${_.maximum.toString()} وي`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`ډیر کوچنی: ${_.origin} باید ${J}${_.minimum.toString()} ${Y.unit} ولري`;return`ډیر کوچنی: ${_.origin} باید ${J}${_.minimum.toString()} وي`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`ناسم متن: باید د "${J.prefix}" سره پیل شي`;if(J.format==="ends_with")return`ناسم متن: باید د "${J.suffix}" سره پای ته ورسيږي`;if(J.format==="includes")return`ناسم متن: باید "${J.includes}" ولري`;if(J.format==="regex")return`ناسم متن: باید د ${J.pattern} سره مطابقت ولري`;return`${G[J.format]??_.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${_.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${_.keys.length>1?"کلیډونه":"کلیډ"}: ${i0(_.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${_.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${_.origin} کې`;default:return"ناسمه ورودي"}}};function tT(){return{localeError:Gm()}}var Ym=()=>{let $={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"},map:{unit:"elementów",verb:"mieć"}};function I(_){return $[_]??null}let G={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",mac:"adres MAC",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",credit_card:"numer karty kredytowej",currency_code:"kod waluty",iban:"IBAN",jwt:"JWT",template_literal:"wejście"},Z={nan:"NaN",number:"liczba",array:"tablica"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${_.expected}, otrzymano ${W}`;return`Nieprawidłowe dane wejściowe: oczekiwano ${J}, otrzymano ${W}`}case"invalid_value":if(_.values.length===1)return`Nieprawidłowe dane wejściowe: oczekiwano ${Q$(_.values[0])}`;return`Nieprawidłowa opcja: oczekiwano jednej z wartości ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`Za duża wartość: oczekiwano, że ${_.origin??"wartość"} będzie mieć ${J}${_.maximum.toString()} ${Y.unit??"elementów"}`;return`Zbyt duż(y/a/e): oczekiwano, że ${_.origin??"wartość"} będzie wynosić ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`Za mała wartość: oczekiwano, że ${_.origin??"wartość"} będzie mieć ${J}${_.minimum.toString()} ${Y.unit??"elementów"}`;return`Zbyt mał(y/a/e): oczekiwano, że ${_.origin??"wartość"} będzie wynosić ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Nieprawidłowy ciąg znaków: musi zaczynać się od "${J.prefix}"`;if(J.format==="ends_with")return`Nieprawidłowy ciąg znaków: musi kończyć się na "${J.suffix}"`;if(J.format==="includes")return`Nieprawidłowy ciąg znaków: musi zawierać "${J.includes}"`;if(J.format==="regex")return`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${J.pattern}`;return`Nieprawidłow(y/a/e) ${G[J.format]??_.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${_.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${_.keys.length>1?"s":""}: ${i0(_.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${_.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${_.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function rT(){return{localeError:Ym()}}var Jm=()=>{let $={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function I(Y){return $[Y]??null}let G={regex:"a entrada",email:"o endereço de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a duração ISO",ipv4:"o endereço IPv4",ipv6:"o endereço IPv6",mac:"o endereço MAC",cidrv4:"o intervalo de endereços IPv4",cidrv6:"o intervalo de endereços IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o número E.164",credit_card:"o número de cartão de crédito",currency_code:"o código de moeda",iban:"o IBAN",jwt:"o JWT",template_literal:"a entrada"},Z={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},_={string:{name:"texto",articles:Z.masculine},number:{name:"número",articles:Z.masculine},int:{name:"número inteiro",articles:Z.masculine},boolean:{name:"valor booleano",articles:Z.masculine},bigint:{name:"número bigint",articles:Z.masculine},symbol:{name:"símbolo",articles:Z.masculine},undefined:{name:'valor "undefined"',articles:Z.masculine},null:{name:'valor "nulo"',articles:Z.masculine},never:{name:'valor "never"',articles:Z.masculine},void:{name:'valor "void"',articles:Z.masculine},date:{name:"data",articles:Z.feminine},array:{name:"vetor",articles:Z.masculine},object:{name:"objeto",articles:Z.masculine},tuple:{name:"tuplo",articles:Z.masculine},record:{name:"registo",articles:Z.masculine},map:{name:"mapa",articles:Z.masculine},set:{name:"conjunto",articles:Z.masculine},file:{name:"ficheiro",articles:Z.masculine},nonoptional:{name:"valor não opcional",articles:Z.masculine},nan:{name:'valor "NaN"',articles:Z.masculine},function:{name:"função",articles:Z.feminine}};function J(Y,W){let R=_[Y]??{name:`valor "${Y}"`,articles:Z.masculine};return`${R.articles[W]} ${R.name}`}return(Y)=>{switch(Y.code){case"invalid_type":{let W=J(Y.expected,"indefinite"),R=O$(Y.input),M=J(R,"indefinite");return`Entrada inválida: esperava ${W}, recebeu ${M}`}case"invalid_value":if(Y.values.length===1)return`Entrada inválida: esperava ${Q$(Y.values[0])}`;return`Opção inválida: esperava uma das seguintes opções: ${i0(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",R=I(Y.origin);if(R)return`Demasiado grande: esperava que ${J(Y.origin,"definite")} tivesse ${W} ${Y.maximum.toString()} ${R.unit??"elementos"}`;return`Demasiado grande: esperava que ${J(Y.origin,"definite")} fosse ${W} ${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?">=":">",R=I(Y.origin);if(R)return`Demasiado pequeno: esperava que ${J(Y.origin,"definite")} tivesse ${W} ${Y.minimum.toString()} ${R.unit??"elementos"}`;return`Demasiado pequeno: esperava que ${J(Y.origin,"definite")} fosse ${W} ${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`Texto inválido: deve começar por "${W.prefix}"`;if(W.format==="ends_with")return`Texto inválido: deve terminar em "${W.suffix}"`;if(W.format==="includes")return`Texto inválido: deve incluir "${W.includes}"`;if(W.format==="regex")return`Texto inválido: deve corresponder ao padrão ${W.pattern}`;return`Formato d${G[W.format]??Y.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${Y.divisor}`;case"unrecognized_keys":{let W=Y.keys.length>1?"s":"";return`Chave${W} inválida${W}: ${i0(Y.keys,", ")}`}case"invalid_key":return`Entrada inválida n${J(Y.origin,"definite")}`;case"invalid_union":if(Y.options&&Array.isArray(Y.options)&&Y.options.length>0)return`Valor de discriminação inválido. Esperava ${Y.options.map((R)=>`'${R}'`).join(" | ")}`;return"Entrada inválida";case"invalid_element":return`Entrada inválida n${J(Y.origin,"definite")}`;default:return"Entrada inválida"}}};function aT(){return{localeError:Jm()}}var Qm=()=>{let $={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function I(Y){return $[Y]??null}let G={regex:"a entrada",email:"o endereço de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a duração ISO",ipv4:"o endereço IPv4",ipv6:"o endereço IPv6",mac:"o endereço MAC",cidrv4:"a faixa de endereços IPv4",cidrv6:"a faixa de endereços IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o número E.164",credit_card:"o número de cartão de crédito",currency_code:"o código de moeda",iban:"o IBAN",jwt:"o JWT",template_literal:"a entrada"},Z={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},_={string:{name:"texto",articles:Z.masculine},number:{name:"número",articles:Z.masculine},int:{name:"número inteiro",articles:Z.masculine},boolean:{name:"valor booleano",articles:Z.masculine},bigint:{name:"número bigint",articles:Z.masculine},symbol:{name:"símbolo",articles:Z.masculine},undefined:{name:'valor "undefined"',articles:Z.masculine},null:{name:'valor "nulo"',articles:Z.masculine},never:{name:'valor "never"',articles:Z.masculine},void:{name:'valor "void"',articles:Z.masculine},date:{name:"data",articles:Z.feminine},array:{name:"vetor",articles:Z.masculine},object:{name:"objeto",articles:Z.masculine},tuple:{name:"tupla",articles:Z.feminine},record:{name:"registro",articles:Z.masculine},map:{name:"mapa",articles:Z.masculine},set:{name:"conjunto",articles:Z.masculine},file:{name:"arquivo",articles:Z.masculine},nonoptional:{name:"valor não opcional",articles:Z.masculine},nan:{name:'valor "NaN"',articles:Z.masculine},function:{name:"função",articles:Z.feminine}};function J(Y,W){let R=_[Y]??{name:`valor "${Y}"`,articles:Z.masculine};return`${R.articles[W]} ${R.name}`}return(Y)=>{switch(Y.code){case"invalid_type":{let W=J(Y.expected,"indefinite"),R=O$(Y.input),M=J(R,"indefinite");return`Entrada inválida: esperava ${W}, recebeu ${M}`}case"invalid_value":if(Y.values.length===1)return`Entrada inválida: esperava ${Q$(Y.values[0])}`;return`Opção inválida: esperava uma das seguintes opções: ${i0(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",R=I(Y.origin);if(R)return`Grande demais: esperava que ${J(Y.origin,"definite")} tivesse ${W} ${Y.maximum.toString()} ${R.unit??"elementos"}`;return`Grande demais: esperava que ${J(Y.origin,"definite")} fosse ${W} ${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?">=":">",R=I(Y.origin);if(R)return`Pequeno demais: esperava que ${J(Y.origin,"definite")} tivesse ${W} ${Y.minimum.toString()} ${R.unit??"elementos"}`;return`Pequeno demais: esperava que ${J(Y.origin,"definite")} fosse ${W} ${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`Texto inválido: deve começar com "${W.prefix}"`;if(W.format==="ends_with")return`Texto inválido: deve terminar com "${W.suffix}"`;if(W.format==="includes")return`Texto inválido: deve incluir "${W.includes}"`;if(W.format==="regex")return`Texto inválido: deve corresponder ao padrão ${W.pattern}`;return`Formato d${G[W.format]??Y.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${Y.divisor}`;case"unrecognized_keys":{let W=Y.keys.length>1?"s":"";return`Chave${W} inválida${W}: ${i0(Y.keys,", ")}`}case"invalid_key":return`Entrada inválida n${J(Y.origin,"definite")}`;case"invalid_union":if(Y.options&&Array.isArray(Y.options)&&Y.options.length>0)return`Valor de discriminação inválido. Esperava ${Y.options.map((R)=>`'${R}'`).join(" | ")}`;return"Entrada inválida";case"invalid_element":return`Entrada inválida n${J(Y.origin,"definite")}`;default:return"Entrada inválida"}}};function sT(){return{localeError:Qm()}}var zm=()=>{let $={string:{unit:"caractere",verb:"să aibă"},file:{unit:"octeți",verb:"să aibă"},array:{unit:"elemente",verb:"să aibă"},set:{unit:"elemente",verb:"să aibă"},map:{unit:"intrări",verb:"să aibă"}};function I(_){return $[_]??null}let G={regex:"intrare",email:"adresă de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dată și oră ISO",date:"dată ISO",time:"oră ISO",duration:"durată ISO",ipv4:"adresă IPv4",ipv6:"adresă IPv6",mac:"adresă MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"șir codat base64",base64url:"șir codat base64url",json_string:"șir JSON",e164:"număr E.164",credit_card:"număr de card de credit",currency_code:"cod valutar",iban:"IBAN",jwt:"JWT",template_literal:"intrare"},Z={nan:"NaN",string:"șir",number:"număr",boolean:"boolean",function:"funcție",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"număr mare",void:"void",never:"never",map:"hartă",set:"set"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;return`Intrare invalidă: așteptat ${J}, primit ${W}`}case"invalid_value":if(_.values.length===1)return`Intrare invalidă: așteptat ${Q$(_.values[0])}`;return`Opțiune invalidă: așteptat una dintre ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`Prea mare: așteptat ca ${_.origin??"valoarea"} ${Y.verb} ${J}${_.maximum.toString()} ${Y.unit??"elemente"}`;return`Prea mare: așteptat ca ${_.origin??"valoarea"} să fie ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`Prea mic: așteptat ca ${_.origin} ${Y.verb} ${J}${_.minimum.toString()} ${Y.unit}`;return`Prea mic: așteptat ca ${_.origin} să fie ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Șir invalid: trebuie să înceapă cu "${J.prefix}"`;if(J.format==="ends_with")return`Șir invalid: trebuie să se termine cu "${J.suffix}"`;if(J.format==="includes")return`Șir invalid: trebuie să includă "${J.includes}"`;if(J.format==="regex")return`Șir invalid: trebuie să se potrivească cu modelul ${J.pattern}`;return`Format invalid: ${G[J.format]??_.format}`}case"not_multiple_of":return`Număr invalid: trebuie să fie multiplu de ${_.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${i0(_.keys,", ")}`;case"invalid_key":return`Cheie invalidă în ${_.origin}`;case"invalid_union":return"Intrare invalidă";case"invalid_element":return`Valoare invalidă în ${_.origin}`;default:return"Intrare invalidă"}}};function eT(){return{localeError:zm()}}function Tj($,I,G,Z){let _=Math.abs($),J=_%10,Y=_%100;if(Y>=11&&Y<=19)return Z;if(J===1)return I;if(J>=2&&J<=4)return G;return Z}var Zm=()=>{let $={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},map:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function I(_){return $[_]??null}let G={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",mac:"MAC адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",credit_card:"номер кредитной карты",currency_code:"код валюты",iban:"IBAN",jwt:"JWT",template_literal:"ввод"},Z={nan:"NaN",number:"число",array:"массив"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Неверный ввод: ожидалось instanceof ${_.expected}, получено ${W}`;return`Неверный ввод: ожидалось ${J}, получено ${W}`}case"invalid_value":if(_.values.length===1)return`Неверный ввод: ожидалось ${Q$(_.values[0])}`;return`Неверный вариант: ожидалось одно из ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y){let W=Number(_.maximum),R=Tj(W,Y.unit.one,Y.unit.few,Y.unit.many);return`Слишком большое значение: ожидалось, что ${_.origin??"значение"} будет иметь ${J}${_.maximum.toString()} ${R}`}return`Слишком большое значение: ожидалось, что ${_.origin??"значение"} будет ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y){let W=Number(_.minimum),R=Tj(W,Y.unit.one,Y.unit.few,Y.unit.many);return`Слишком маленькое значение: ожидалось, что ${_.origin} будет иметь ${J}${_.minimum.toString()} ${R}`}return`Слишком маленькое значение: ожидалось, что ${_.origin} будет ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Неверная строка: должна начинаться с "${J.prefix}"`;if(J.format==="ends_with")return`Неверная строка: должна заканчиваться на "${J.suffix}"`;if(J.format==="includes")return`Неверная строка: должна содержать "${J.includes}"`;if(J.format==="regex")return`Неверная строка: должна соответствовать шаблону ${J.pattern}`;return`Неверный ${G[J.format]??_.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${_.divisor}`;case"unrecognized_keys":return`Нераспознанн${_.keys.length>1?"ые":"ый"} ключ${_.keys.length>1?"и":""}: ${i0(_.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${_.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${_.origin}`;default:return"Неверные входные данные"}}};function $M(){return{localeError:Zm()}}var Om=()=>{let $={string:{unit:"znakov",verb:"mať"},file:{unit:"bajtov",verb:"mať"},array:{unit:"prvkov",verb:"mať"},set:{unit:"prvkov",verb:"mať"},map:{unit:"položiek",verb:"mať"}};function I(_){return $[_]??null}let G={regex:"regulárny výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dátum a čas vo formáte ISO",date:"dátum vo formáte ISO",time:"čas vo formáte ISO",duration:"doba trvania ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"reťazec zakódovaný vo formáte base64",base64url:"reťazec zakódovaný vo formáte base64url",json_string:"reťazec vo formáte JSON",e164:"číslo E.164",credit_card:"číslo kreditnej karty",currency_code:"kód meny",iban:"IBAN",jwt:"JWT",template_literal:"vstup"},Z={nan:"NaN",number:"číslo",string:"reťazec",function:"funkcia",array:"pole"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Neplatný vstup: očakávané instanceof ${_.expected}, obdržané ${W}`;return`Neplatný vstup: očakávané ${J}, obdržané ${W}`}case"invalid_value":if(_.values.length===1)return`Neplatný vstup: očakávané ${Q$(_.values[0])}`;return`Neplatný vstup: očakávaná jedna z hodnôt ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`Hodnota je príliš veľká: ${_.origin??"hodnota"} musí mať ${J}${_.maximum.toString()} ${Y.unit??"prvkov"}`;return`Hodnota je príliš veľká: ${_.origin??"hodnota"} musí byť ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`Hodnota je príliš malá: ${_.origin??"hodnota"} musí mať ${J}${_.minimum.toString()} ${Y.unit??"prvkov"}`;return`Hodnota je príliš malá: ${_.origin??"hodnota"} musí byť ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Neplatný reťazec: musí začínať na "${J.prefix}"`;if(J.format==="ends_with")return`Neplatný reťazec: musí končiť na "${J.suffix}"`;if(J.format==="includes")return`Neplatný reťazec: musí obsahovať "${J.includes}"`;if(J.format==="regex")return`Neplatný reťazec: musí zodpovedať vzoru ${J.pattern}`;return`Neplatný formát ${G[J.format]??_.format}`}case"not_multiple_of":return`Neplatné číslo: musí byť násobkom ${_.divisor}`;case"unrecognized_keys":return`Neznáme klúče: ${i0(_.keys,", ")}`;case"invalid_key":return`Neplatný klúč v ${_.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${_.origin}`;default:return"Neplatný vstup"}}};function UM(){return{localeError:Om()}}var Lm=()=>{let $={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"},map:{unit:"elementov",verb:"imeti"}};function I(_){return $[_]??null}let G={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",mac:"MAC naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",credit_card:"številka kreditne kartice",currency_code:"koda valute",iban:"IBAN",jwt:"JWT",template_literal:"vnos"},Z={nan:"NaN",number:"število",array:"tabela"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Neveljaven vnos: pričakovano instanceof ${_.expected}, prejeto ${W}`;return`Neveljaven vnos: pričakovano ${J}, prejeto ${W}`}case"invalid_value":if(_.values.length===1)return`Neveljaven vnos: pričakovano ${Q$(_.values[0])}`;return`Neveljavna možnost: pričakovano eno izmed ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`Preveliko: pričakovano, da bo ${_.origin??"vrednost"} imelo ${J}${_.maximum.toString()} ${Y.unit??"elementov"}`;return`Preveliko: pričakovano, da bo ${_.origin??"vrednost"} ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`Premajhno: pričakovano, da bo ${_.origin} imelo ${J}${_.minimum.toString()} ${Y.unit}`;return`Premajhno: pričakovano, da bo ${_.origin} ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Neveljaven niz: mora se začeti z "${J.prefix}"`;if(J.format==="ends_with")return`Neveljaven niz: mora se končati z "${J.suffix}"`;if(J.format==="includes")return`Neveljaven niz: mora vsebovati "${J.includes}"`;if(J.format==="regex")return`Neveljaven niz: mora ustrezati vzorcu ${J.pattern}`;return`Neveljaven ${G[J.format]??_.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${_.divisor}`;case"unrecognized_keys":return`Neprepoznan${_.keys.length>1?"i ključi":" ključ"}: ${i0(_.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${_.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${_.origin}`;default:return"Neveljaven vnos"}}};function IM(){return{localeError:Lm()}}var Km=()=>{let $={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"},map:{unit:"objekt",verb:"att innehålla"}};function I(_){return $[_]??null}let G={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-adress",ipv6:"IPv6-adress",mac:"MAC-adress",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",credit_card:"kreditkortsnummer",currency_code:"valutakod",iban:"IBAN",jwt:"JWT",template_literal:"mall-literal"},Z={nan:"NaN",number:"antal",array:"lista"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Ogiltig inmatning: förväntat instanceof ${_.expected}, fick ${W}`;return`Ogiltig inmatning: förväntat ${J}, fick ${W}`}case"invalid_value":if(_.values.length===1)return`Ogiltig inmatning: förväntat ${Q$(_.values[0])}`;return`Ogiltigt val: förväntade en av ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`För stor(t): förväntade ${_.origin??"värdet"} att ha ${J}${_.maximum.toString()} ${Y.unit??"element"}`;return`För stor(t): förväntat ${_.origin??"värdet"} att ha ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`För lite(t): förväntade ${_.origin??"värdet"} att ha ${J}${_.minimum.toString()} ${Y.unit}`;return`För lite(t): förväntade ${_.origin??"värdet"} att ha ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Ogiltig sträng: måste börja med "${J.prefix}"`;if(J.format==="ends_with")return`Ogiltig sträng: måste sluta med "${J.suffix}"`;if(J.format==="includes")return`Ogiltig sträng: måste innehålla "${J.includes}"`;if(J.format==="regex")return`Ogiltig sträng: måste matcha mönstret "${J.pattern}"`;return`Ogiltig(t) ${G[J.format]??_.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${_.divisor}`;case"unrecognized_keys":return`${_.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${i0(_.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${_.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${_.origin??"värdet"}`;default:return"Ogiltig input"}}};function _M(){return{localeError:Km()}}var Dm=()=>{let $={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},map:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function I(_){return $[_]??null}let G={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",mac:"MAC முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",credit_card:"கடன் அட்டை எண்",currency_code:"நாணயக் குறியீடு",iban:"IBAN",jwt:"JWT",template_literal:"input"},Z={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${_.expected}, பெறப்பட்டது ${W}`;return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${J}, பெறப்பட்டது ${W}`}case"invalid_value":if(_.values.length===1)return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${Q$(_.values[0])}`;return`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${i0(_.values,"|")} இல் ஒன்று`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${_.origin??"மதிப்பு"} ${J}${_.maximum.toString()} ${Y.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`;return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${_.origin??"மதிப்பு"} ${J}${_.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${_.origin} ${J}${_.minimum.toString()} ${Y.unit} ஆக இருக்க வேண்டும்`;return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${_.origin} ${J}${_.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`தவறான சரம்: "${J.prefix}" இல் தொடங்க வேண்டும்`;if(J.format==="ends_with")return`தவறான சரம்: "${J.suffix}" இல் முடிவடைய வேண்டும்`;if(J.format==="includes")return`தவறான சரம்: "${J.includes}" ஐ உள்ளடக்க வேண்டும்`;if(J.format==="regex")return`தவறான சரம்: ${J.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`;return`தவறான ${G[J.format]??_.format}`}case"not_multiple_of":return`தவறான எண்: ${_.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${_.keys.length>1?"கள்":""}: ${i0(_.keys,", ")}`;case"invalid_key":return`${_.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${_.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function XM(){return{localeError:Dm()}}var Wm=()=>{let $={string:{unit:"аломат",verb:"дошта бошад"},file:{unit:"байт",verb:"дошта бошад"},array:{unit:"унсур",verb:"дошта бошад"},set:{unit:"унсур",verb:"дошта бошад"},map:{unit:"сабт",verb:"дошта бошад"}};function I(_){return $[_]??null}let G={regex:"вуруд",email:"суроғаи email",url:"URL",emoji:"эмоҷи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"санаву вақти ISO",date:"санаи ISO",time:"вақти ISO",duration:"давомнокии ISO",ipv4:"суроғаи IPv4",ipv6:"суроғаи IPv6",mac:"суроғаи MAC",cidrv4:"маҳдудаи IPv4",cidrv6:"маҳдудаи IPv6",base64:"сатри дар формати base64",base64url:"сатри дар формати base64url",json_string:"сатри JSON",e164:"рақами E.164",credit_card:"рақами корти кредитӣ",currency_code:"рамзи асъор",iban:"IBAN",jwt:"JWT",template_literal:"вуруд"},Z={nan:"NaN",number:"рақам",string:"сатр",array:"массив",object:"объект",date:"сана"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;return`Вуруди нодуруст: ${J} интизор мерафт, ${W} гирифта шуд`}case"invalid_value":if(_.values.length===1)return`Вуруди нодуруст: ${Q$(_.values[0])} интизор мерафт`;return`Интихоби нодуруст: яке аз ${i0(_.values,"|")} интизор мерафт`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`Хеле калон: ${_.origin??"қимат"} бояд ${J}${_.maximum.toString()} ${Y.unit} ${Y.verb}`;return`Хеле калон: ${_.origin??"қимат"} бояд ${J}${_.maximum.toString()} бошад`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`Хеле хурд: ${_.origin} бояд ${J}${_.minimum.toString()} ${Y.unit} ${Y.verb}`;return`Хеле хурд: ${_.origin} бояд ${J}${_.minimum.toString()} бошад`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Сатри нодуруст: бояд бо "${J.prefix}" оғоз шавад`;if(J.format==="ends_with")return`Сатри нодуруст: бояд бо "${J.suffix}" анҷом ёбад`;if(J.format==="includes")return`Сатри нодуруст: бояд "${J.includes}"-ро дар бар гирад`;if(J.format==="regex")return`Сатри нодуруст: бояд ба намунаи ${J.pattern} мувофиқат кунад`;return`${G[J.format]??_.format}-и нодуруст`}case"not_multiple_of":return`Рақами нодуруст: бояд ба ${_.divisor} бе бақия тақсим шавад`;case"unrecognized_keys":return`Калид${_.keys.length>1?"ҳои":"и"} номаълум: ${i0(_.keys,", ")}`;case"invalid_key":return`Калиди нодуруст дар ${_.origin}`;case"invalid_union":if(_.options&&Array.isArray(_.options)&&_.options.length>0)return`Қимати нодурусти дискриминатор: ${_.options.map((Y)=>`'${Y}'`).join(" | ")} интизор мерафт`;return"Вуруди нодуруст";case"invalid_element":return`Қимати нодуруст дар ${_.origin}`;default:return"Вуруди нодуруст"}}};function GM(){return{localeError:Wm()}}var Hm=()=>{let $={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"},map:{unit:"รายการ",verb:"ควรมี"}};function I(_){return $[_]??null}let G={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",mac:"ที่อยู่ MAC",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",credit_card:"หมายเลขบัตรเครดิต",currency_code:"รหัสสกุลเงิน",iban:"IBAN",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},Z={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${_.expected} แต่ได้รับ ${W}`;return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${J} แต่ได้รับ ${W}`}case"invalid_value":if(_.values.length===1)return`ค่าไม่ถูกต้อง: ควรเป็น ${Q$(_.values[0])}`;return`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"ไม่เกิน":"น้อยกว่า",Y=I(_.origin);if(Y)return`เกินกำหนด: ${_.origin??"ค่า"} ควรมี${J} ${_.maximum.toString()} ${Y.unit??"รายการ"}`;return`เกินกำหนด: ${_.origin??"ค่า"} ควรมี${J} ${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?"อย่างน้อย":"มากกว่า",Y=I(_.origin);if(Y)return`น้อยกว่ากำหนด: ${_.origin} ควรมี${J} ${_.minimum.toString()} ${Y.unit}`;return`น้อยกว่ากำหนด: ${_.origin} ควรมี${J} ${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${J.prefix}"`;if(J.format==="ends_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${J.suffix}"`;if(J.format==="includes")return`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${J.includes}" อยู่ในข้อความ`;if(J.format==="regex")return`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${J.pattern}`;return`รูปแบบไม่ถูกต้อง: ${G[J.format]??_.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${_.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${i0(_.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${_.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${_.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function YM(){return{localeError:Hm()}}var Fm=()=>{let $={string:{unit:"simwol",verb:"bolmaly"},file:{unit:"baýt",verb:"bolmaly"},array:{unit:"elementler",verb:"bolmaly"},set:{unit:"elementler",verb:"bolmaly"},map:{unit:"elementler",verb:"bolmaly"}};function I(_){return $[_]??null}let G={regex:"giriş",email:"e-poçta salgysy",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sene we wagt",date:"ISO sene",time:"ISO wagt",duration:"ISO wagt aralygy",ipv4:"IPv4 salgysy",ipv6:"IPv6 salgysy",mac:"MAC salgysy",cidrv4:"IPv4 aralygy",cidrv6:"IPv6 aralygy",base64:"base64 bilen şifrlenen setir",base64url:"base64url bilen şifrlenen setir",json_string:"JSON setiri",e164:"E.164 nomeri",credit_card:"kredit kartynyň nomeri",currency_code:"walýuta kody",iban:"IBAN",jwt:"JWT",template_literal:"şablon"},Z={nan:"NaN"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;return`Nädogry baha: garaşylan ${J} ýerine ${W} alyndy`}case"invalid_value":if(_.values.length===1)return`Nädogry baha: ${Q$(_.values[0])} bolmaly`;return`Nädogry saýlaw: aşakdakylardan biri bolmaly: ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`Has uly: garaşylýan ${_.origin??"baha"} ${J} ${_.maximum.toString()} ${Y.unit??"element"}`;return`Has uly: garaşylýan ${_.origin??"baha"} ${J} ${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`Has kiçi: garaşylýan ${_.origin} ${J} ${_.minimum.toString()} ${Y.unit}`;return`Has kiçi: garaşylýan ${_.origin} ${J} ${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Nädogry setir: "${J.prefix}" bilen başlamaly`;if(J.format==="ends_with")return`Nädogry setir: "${J.suffix}" bilen gutarmaly`;if(J.format==="includes")return`Nädogry setir: "${J.includes}" saklamaly`;if(J.format==="regex")return`Nädogry setir: ${J.pattern} nusga laýyk bolmaly`;return`Nädogry ${G[J.format]??_.format}`}case"not_multiple_of":return`Nädogry san: ${_.divisor} bilen galyndysyz bölünmeli`;case"unrecognized_keys":return`Tanalmaýan açar${_.keys.length>1?"lar":""}: ${i0(_.keys,", ")}`;case"invalid_key":return`${_.origin} içinde nädogry açar`;case"invalid_union":return"Nädogry baha";case"invalid_element":return`${_.origin} içinde nädogry baha`;default:return"Nädogry baha"}}};function JM(){return{localeError:Fm()}}var Tm=()=>{let $={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"},map:{unit:"öğe",verb:"olmalı"}};function I(_){return $[_]??null}let G={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",mac:"MAC adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",credit_card:"kredi kartı numarası",currency_code:"para birimi kodu",iban:"IBAN",jwt:"JWT",template_literal:"Şablon dizesi"},Z={nan:"NaN"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Geçersiz değer: beklenen instanceof ${_.expected}, alınan ${W}`;return`Geçersiz değer: beklenen ${J}, alınan ${W}`}case"invalid_value":if(_.values.length===1)return`Geçersiz değer: beklenen ${Q$(_.values[0])}`;return`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`Çok büyük: beklenen ${_.origin??"değer"} ${J}${_.maximum.toString()} ${Y.unit??"öğe"}`;return`Çok büyük: beklenen ${_.origin??"değer"} ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`Çok küçük: beklenen ${_.origin} ${J}${_.minimum.toString()} ${Y.unit}`;return`Çok küçük: beklenen ${_.origin} ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Geçersiz metin: "${J.prefix}" ile başlamalı`;if(J.format==="ends_with")return`Geçersiz metin: "${J.suffix}" ile bitmeli`;if(J.format==="includes")return`Geçersiz metin: "${J.includes}" içermeli`;if(J.format==="regex")return`Geçersiz metin: ${J.pattern} desenine uymalı`;return`Geçersiz ${G[J.format]??_.format}`}case"not_multiple_of":return`Geçersiz sayı: ${_.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${_.keys.length>1?"lar":""}: ${i0(_.keys,", ")}`;case"invalid_key":return`${_.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${_.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function QM(){return{localeError:Tm()}}var Mm=()=>{let $={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"},map:{unit:"елементів",verb:"матиме"}};function I(_){return $[_]??null}let G={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",mac:"адреса MAC",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",credit_card:"номер кредитної картки",currency_code:"код валюти",iban:"IBAN",jwt:"JWT",template_literal:"вхідні дані"},Z={nan:"NaN",number:"число",array:"масив"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Неправильні вхідні дані: очікується instanceof ${_.expected}, отримано ${W}`;return`Неправильні вхідні дані: очікується ${J}, отримано ${W}`}case"invalid_value":if(_.values.length===1)return`Неправильні вхідні дані: очікується ${Q$(_.values[0])}`;return`Неправильна опція: очікується одне з ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`Занадто велике: очікується, що ${_.origin??"значення"} ${Y.verb} ${J}${_.maximum.toString()} ${Y.unit??"елементів"}`;return`Занадто велике: очікується, що ${_.origin??"значення"} буде ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`Занадто мале: очікується, що ${_.origin} ${Y.verb} ${J}${_.minimum.toString()} ${Y.unit}`;return`Занадто мале: очікується, що ${_.origin} буде ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Неправильний рядок: повинен починатися з "${J.prefix}"`;if(J.format==="ends_with")return`Неправильний рядок: повинен закінчуватися на "${J.suffix}"`;if(J.format==="includes")return`Неправильний рядок: повинен містити "${J.includes}"`;if(J.format==="regex")return`Неправильний рядок: повинен відповідати шаблону ${J.pattern}`;return`Неправильний ${G[J.format]??_.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${_.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${_.keys.length>1?"і":""}: ${i0(_.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${_.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${_.origin}`;default:return"Неправильні вхідні дані"}}};function jQ(){return{localeError:Mm()}}function zM(){return jQ()}var Am=()=>{let $={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"},map:{unit:"آئٹمز",verb:"ہونا"}};function I(_){return $[_]??null}let G={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",mac:"ایم اے سی ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",credit_card:"کریڈٹ کارڈ نمبر",currency_code:"کرنسی کوڈ",iban:"IBAN",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},Z={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`غلط ان پٹ: instanceof ${_.expected} متوقع تھا، ${W} موصول ہوا`;return`غلط ان پٹ: ${J} متوقع تھا، ${W} موصول ہوا`}case"invalid_value":if(_.values.length===1)return`غلط ان پٹ: ${Q$(_.values[0])} متوقع تھا`;return`غلط آپشن: ${i0(_.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`بہت بڑا: ${_.origin??"ویلیو"} کے ${J}${_.maximum.toString()} ${Y.unit??"عناصر"} ہونے متوقع تھے`;return`بہت بڑا: ${_.origin??"ویلیو"} کا ${J}${_.maximum.toString()} ہونا متوقع تھا`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`بہت چھوٹا: ${_.origin} کے ${J}${_.minimum.toString()} ${Y.unit} ہونے متوقع تھے`;return`بہت چھوٹا: ${_.origin} کا ${J}${_.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`غلط سٹرنگ: "${J.prefix}" سے شروع ہونا چاہیے`;if(J.format==="ends_with")return`غلط سٹرنگ: "${J.suffix}" پر ختم ہونا چاہیے`;if(J.format==="includes")return`غلط سٹرنگ: "${J.includes}" شامل ہونا چاہیے`;if(J.format==="regex")return`غلط سٹرنگ: پیٹرن ${J.pattern} سے میچ ہونا چاہیے`;return`غلط ${G[J.format]??_.format}`}case"not_multiple_of":return`غلط نمبر: ${_.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${_.keys.length>1?"ز":""}: ${i0(_.keys,"، ")}`;case"invalid_key":return`${_.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${_.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function ZM(){return{localeError:Am()}}var Em=()=>{let $={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"},map:{unit:"yozuv",verb:"bo‘lishi kerak"}};function I(_){return $[_]??null}let G={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",credit_card:"kredit karta raqami",currency_code:"valyuta kodi",iban:"IBAN",jwt:"JWT",template_literal:"kirish"},Z={nan:"NaN",number:"raqam",array:"massiv"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Noto‘g‘ri kirish: kutilgan instanceof ${_.expected}, qabul qilingan ${W}`;return`Noto‘g‘ri kirish: kutilgan ${J}, qabul qilingan ${W}`}case"invalid_value":if(_.values.length===1)return`Noto‘g‘ri kirish: kutilgan ${Q$(_.values[0])}`;return`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`Juda katta: kutilgan ${_.origin??"qiymat"} ${J}${_.maximum.toString()} ${Y.unit} ${Y.verb}`;return`Juda katta: kutilgan ${_.origin??"qiymat"} ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`Juda kichik: kutilgan ${_.origin} ${J}${_.minimum.toString()} ${Y.unit} ${Y.verb}`;return`Juda kichik: kutilgan ${_.origin} ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Noto‘g‘ri satr: "${J.prefix}" bilan boshlanishi kerak`;if(J.format==="ends_with")return`Noto‘g‘ri satr: "${J.suffix}" bilan tugashi kerak`;if(J.format==="includes")return`Noto‘g‘ri satr: "${J.includes}" ni o‘z ichiga olishi kerak`;if(J.format==="regex")return`Noto‘g‘ri satr: ${J.pattern} shabloniga mos kelishi kerak`;return`Noto‘g‘ri ${G[J.format]??_.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${_.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${_.keys.length>1?"lar":""}: ${i0(_.keys,", ")}`;case"invalid_key":return`${_.origin} dagi kalit noto‘g‘ri`;case"invalid_union":return"Noto‘g‘ri kirish";case"invalid_element":return`${_.origin} da noto‘g‘ri qiymat`;default:return"Noto‘g‘ri kirish"}}};function OM(){return{localeError:Em()}}var Rm=()=>{let $={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"},map:{unit:"phần tử",verb:"có"}};function I(_){return $[_]??null}let G={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",mac:"địa chỉ MAC",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",credit_card:"số thẻ tín dụng",currency_code:"mã tiền tệ",iban:"IBAN",jwt:"JWT",template_literal:"đầu vào"},Z={nan:"NaN",number:"số",array:"mảng"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Đầu vào không hợp lệ: mong đợi instanceof ${_.expected}, nhận được ${W}`;return`Đầu vào không hợp lệ: mong đợi ${J}, nhận được ${W}`}case"invalid_value":if(_.values.length===1)return`Đầu vào không hợp lệ: mong đợi ${Q$(_.values[0])}`;return`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`Quá lớn: mong đợi ${_.origin??"giá trị"} ${Y.verb} ${J}${_.maximum.toString()} ${Y.unit??"phần tử"}`;return`Quá lớn: mong đợi ${_.origin??"giá trị"} ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`Quá nhỏ: mong đợi ${_.origin} ${Y.verb} ${J}${_.minimum.toString()} ${Y.unit}`;return`Quá nhỏ: mong đợi ${_.origin} ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Chuỗi không hợp lệ: phải bắt đầu bằng "${J.prefix}"`;if(J.format==="ends_with")return`Chuỗi không hợp lệ: phải kết thúc bằng "${J.suffix}"`;if(J.format==="includes")return`Chuỗi không hợp lệ: phải bao gồm "${J.includes}"`;if(J.format==="regex")return`Chuỗi không hợp lệ: phải khớp với mẫu ${J.pattern}`;return`${G[J.format]??_.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${_.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${i0(_.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${_.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${_.origin}`;default:return"Đầu vào không hợp lệ"}}};function LM(){return{localeError:Rm()}}var Pm=()=>{let $={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"},map:{unit:"项",verb:"包含"}};function I(_){return $[_]??null}let G={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",mac:"MAC地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",credit_card:"信用卡号",currency_code:"货币代码",iban:"IBAN",jwt:"JWT",template_literal:"输入"},Z={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`无效输入:期望 instanceof ${_.expected},实际接收 ${W}`;return`无效输入:期望 ${J},实际接收 ${W}`}case"invalid_value":if(_.values.length===1)return`无效输入:期望 ${Q$(_.values[0])}`;return`无效选项:期望以下之一 ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`数值过大:期望 ${_.origin??"值"} ${J}${_.maximum.toString()} ${Y.unit??"个元素"}`;return`数值过大:期望 ${_.origin??"值"} ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`数值过小:期望 ${_.origin} ${J}${_.minimum.toString()} ${Y.unit}`;return`数值过小:期望 ${_.origin} ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`无效字符串:必须以 "${J.prefix}" 开头`;if(J.format==="ends_with")return`无效字符串:必须以 "${J.suffix}" 结尾`;if(J.format==="includes")return`无效字符串:必须包含 "${J.includes}"`;if(J.format==="regex")return`无效字符串:必须满足正则表达式 ${J.pattern}`;return`无效${G[J.format]??_.format}`}case"not_multiple_of":return`无效数字:必须是 ${_.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${i0(_.keys,", ")}`;case"invalid_key":return`${_.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${_.origin} 中包含无效值(value)`;default:return"无效输入"}}};function KM(){return{localeError:Pm()}}var Vm=()=>{let $={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"},map:{unit:"項目",verb:"擁有"}};function I(_){return $[_]??null}let G={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",mac:"MAC 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",credit_card:"信用卡號",currency_code:"貨幣代碼",iban:"IBAN",jwt:"JWT",template_literal:"輸入"},Z={nan:"NaN"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`無效的輸入值:預期為 instanceof ${_.expected},但收到 ${W}`;return`無效的輸入值:預期為 ${J},但收到 ${W}`}case"invalid_value":if(_.values.length===1)return`無效的輸入值:預期為 ${Q$(_.values[0])}`;return`無效的選項:預期為以下其中之一 ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`數值過大:預期 ${_.origin??"值"} 應為 ${J}${_.maximum.toString()} ${Y.unit??"個元素"}`;return`數值過大:預期 ${_.origin??"值"} 應為 ${J}${_.maximum.toString()}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`數值過小:預期 ${_.origin} 應為 ${J}${_.minimum.toString()} ${Y.unit}`;return`數值過小:預期 ${_.origin} 應為 ${J}${_.minimum.toString()}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`無效的字串:必須以 "${J.prefix}" 開頭`;if(J.format==="ends_with")return`無效的字串:必須以 "${J.suffix}" 結尾`;if(J.format==="includes")return`無效的字串:必須包含 "${J.includes}"`;if(J.format==="regex")return`無效的字串:必須符合格式 ${J.pattern}`;return`無效的 ${G[J.format]??_.format}`}case"not_multiple_of":return`無效的數字:必須為 ${_.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${_.keys.length>1?"們":""}:${i0(_.keys,"、")}`;case"invalid_key":return`${_.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${_.origin} 中有無效的值`;default:return"無效的輸入值"}}};function DM(){return{localeError:Vm()}}var Sm=()=>{let $={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"},map:{unit:"nkan",verb:"ní"}};function I(_){return $[_]??null}let G={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",mac:"àdírẹ́sì MAC",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",credit_card:"nọmba kaadi gbese",currency_code:"koodu owó",iban:"IBAN",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},Z={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return(_)=>{switch(_.code){case"invalid_type":{let J=Z[_.expected]??_.expected,Y=O$(_.input),W=Z[Y]??Y;if(/^[A-Z]/.test(_.expected))return`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${_.expected}, àmọ̀ a rí ${W}`;return`Ìbáwọlé aṣìṣe: a ní láti fi ${J}, àmọ̀ a rí ${W}`}case"invalid_value":if(_.values.length===1)return`Ìbáwọlé aṣìṣe: a ní láti fi ${Q$(_.values[0])}`;return`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${i0(_.values,"|")}`;case"too_big":{let J=_.inclusive?"<=":"<",Y=I(_.origin);if(Y)return`Tó pọ̀ jù: a ní láti jẹ́ pé ${_.origin??"iye"} ${Y.verb} ${J}${_.maximum} ${Y.unit}`;return`Tó pọ̀ jù: a ní láti jẹ́ ${J}${_.maximum}`}case"too_small":{let J=_.inclusive?">=":">",Y=I(_.origin);if(Y)return`Kéré ju: a ní láti jẹ́ pé ${_.origin} ${Y.verb} ${J}${_.minimum} ${Y.unit}`;return`Kéré ju: a ní láti jẹ́ ${J}${_.minimum}`}case"invalid_format":{let J=_;if(J.format==="starts_with")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${J.prefix}"`;if(J.format==="ends_with")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${J.suffix}"`;if(J.format==="includes")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${J.includes}"`;if(J.format==="regex")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${J.pattern}`;return`Aṣìṣe: ${G[J.format]??_.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${_.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${i0(_.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${_.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${_.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function WM(){return{localeError:Sm()}}var Mj,HM=Symbol("ZodOutput"),FM=Symbol("ZodInput");class TM{constructor(){this._map=new WeakMap,this._idmap=new Map}add($,...I){let G=I[0];if(this._map.set($,G),G&&typeof G==="object"&&"id"in G)this._idmap.set(G.id,$);return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove($){let I=this._map.get($);if(I&&typeof I==="object"&&"id"in I)this._idmap.delete(I.id);return this._map.delete($),this}get($){let I=$._zod.parent;if(I){let G={...this.get(I)??{}};delete G.id;let Z={...G,...this._map.get($)};return Object.keys(Z).length?Z:void 0}return this._map.get($)}has($){return this._map.has($)}}function fO(){return new TM}(Mj=globalThis).__zod_globalRegistry??(Mj.__zod_globalRegistry=fO());var gU=globalThis.__zod_globalRegistry;var aU=Symbol.for("zod.compile.invalid"),Aj=Symbol.for("zod.compile.fallback");class sI extends Error{constructor($="z.compile does not support async refinements, transforms, or checks"){super($);this.name="ZodCompileAsyncError"}}class $1 extends Error{constructor($,I=!0){super(`z.compile does not support ${$}; this schema must use the runtime parser`);this.name="ZodCompileUnsupportedError",this.islandable=I}}function Cm($,I){try{return bO($,{assertOnly:!0})}catch{return I}}function RM($,I){try{let G=bO($),Z=yO($,G);return Z._zod.bag.validator=Cm($,G),Z}catch(G){if(I?.strict)throw G;return $}}function yO($,I){if(wO($))throw new $1("a schema whose subtree contains a reference cycle");let G=K1($),Z=$._zod.run,_=Z.__originalRun??Z,J=(Y,W)=>{if(W?.async||W?.direction==="backward"||W?.skipChecks||W?.[Aj])return _(Y,W);if(W&&xO(W,Y.value))return _(Y,W);let R=I(Y.value);if(R!==aU)return Y.value=R,Y;if(W)W[Aj]=!0;return _(Y,W)};if(J.__originalRun=_,G._zod.bag.fallbackRun=_,G._zod.bag.validator=I,G._zod.run=J,!Z.__originalRun)qm(G,$,I);return G}function qm($,I,G){let Z=$,_=I;if(typeof _.safeParse==="function"){let J=_.safeParse;Z.safeParse=(Y,W)=>{let R=G(Y);if(R!==aU)return{success:!0,data:R};return J(Y,W)}}if(typeof _.parse==="function"){let J=_.parse;Z.parse=(Y,W)=>{let R=G(Y);if(R!==aU)return R;return J(Y,W)}}}function bO($,I){let G=!0;try{G=wO($)}catch{}if(G)throw new $1("a schema whose subtree contains a reference cycle");let Z={constants:new Map,constantCounter:0,varCounter:0,definite:!0},_=new vG(["input"]),J=p1(_,Z,$,"input",!I?.assertOnly);_.write(J===null?"return true;":`return ${J};`);let Y=["INVALID",...Z.constants.keys()],W=[aU,...Z.constants.values()],R=_.content.join(`
|
|
382
|
-
`),M=I?.debug?Y.length>0?`// Constants: ${Y.join(", ")}
|
|
383
|
-
${R}`:R:"",E=Function,T=`return (input) => {
|
|
384
|
-
${R}
|
|
385
|
-
}`,S;try{S=new E(...Y,T)(...W)}catch(N){throw new $1(`this schema (generated code failed to evaluate: ${N.message})`)}if(I?.debug)S.code=M;return S.definite=Z.definite,S}function k$($,I){for(let[Z,_]of $.constants)if(_===I)return Z;let G=`c${$.constantCounter++}`;return $.constants.set(G,I),G}function l4($,I){return $.definite=!1,k$($,I)}function q$($){return`v${$.varCounter++}`}function Nm($,I){let G=$._zod.run({value:I,issues:[]},{});if(G&&typeof G.then==="function")return aU;let Z=G;return Z.issues.length===0?Z.value:aU}function yU($,I,G,Z,_=!0){let J=$.content.length,Y=I.constants.size,W=I.constantCounter,R=I.varCounter;try{return p1($,I,G,Z,_)}catch(M){if(!(M instanceof $1)||!M.islandable)throw M;if($.content.length=J,I.constants.size>Y){let E=Array.from(I.constants.keys()).slice(Y);for(let T of E)I.constants.delete(T)}return I.constantCounter=W,I.varCounter=R,Bm($,I,G,Z)}}function Bm($,I,G,Z){I.definite=!1;let _=k$(I,G),J=k$(I,Nm),Y=q$(I);return $.write(`const ${Y} = ${J}(${_}, ${Z});`),$.write(`if (${Y} === INVALID) return INVALID;`),Y}var jm=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);function km($,I,G,Z){let _=G._zod.def.checks;if(!_||_.length===0)return Z;let J=Z;for(let Y of _){let W=Y._zod.def;if(W.when&&!jm.has(W.check))throw new $1('check with a custom "when" condition');switch(W.check){case"greater_than":gm($,I,W,J);break;case"less_than":wm($,I,W,J);break;case"multiple_of":xm($,I,W,J);break;case"number_format":vj($,W,J);break;case"min_length":{let R=p4(W.minimum,"min_length"),M=MM($,I,J,`${J}.length >= ${R} && ${J}.length < ${W.minimum*2}`);$.write(`if (${M} < ${R}) return INVALID;`);break}case"max_length":{let R=p4(W.maximum,"max_length"),M=MM($,I,J,`${J}.length > ${R}`);$.write(`if (${M} > ${R}) return INVALID;`);break}case"length_equals":{let R=p4(W.length,"length_equals"),M=MM($,I,J,`${J}.length >= ${R} && ${J}.length <= ${W.length*2}`);$.write(`if (${M} !== ${R}) return INVALID;`);break}case"min_size":$.write(`if (${J}.size < ${p4(W.minimum,"min_size")}) return INVALID;`);break;case"max_size":$.write(`if (${J}.size > ${p4(W.maximum,"max_size")}) return INVALID;`);break;case"size_equals":$.write(`if (${J}.size !== ${p4(W.size,"size_equals")}) return INVALID;`);break;case"string_format":J=Cj($,I,W,J);break;case"custom":J=nm($,I,Y,J);break;case"bigint_format":fm($,W,J);break;case"mime_type":ym($,I,W,J);break;case"property":hm($,I,W,J);break;case"properties":bm($,I,W,J);break;case"overwrite":{let R=q$(I);um($,I,Y,J,R),J=R;break}default:throw new $1(`check type ${W.check}`)}}return J}function MM($,I,G,Z){let _=k$(I,b4),J=q$(I);return $.write(`const ${J} = typeof ${G} === "string" && ${Z} ? ${_}(${G}) : ${G}.length;`),J}function p4($,I){if(typeof $!=="number"||!Number.isFinite($))throw new $1(`${I} bound of type ${typeof $}`);return`${$}`}function Sj($,I){if(typeof I==="bigint")return`${I}n`;if(typeof I==="number"){if(Number.isNaN(I))throw new $1("comparison check with NaN bound");return`${I}`}if(I instanceof Date){if(Number.isNaN(I.getTime()))throw new $1("comparison check with Invalid Date bound");return k$($,I)}throw new $1(`comparison check bound of type ${typeof I}`)}function gm($,I,G,Z){let _=G.inclusive?"<":"<=";$.write(`if (${Z} ${_} ${Sj(I,G.value)}) return INVALID;`)}function wm($,I,G,Z){let _=G.inclusive?">":">=";$.write(`if (${Z} ${_} ${Sj(I,G.value)}) return INVALID;`)}function xm($,I,G,Z){if(typeof G.value==="bigint"){if(G.value===BigInt(0))throw new $1("multiple_of check with a zero divisor");$.write(`if (${Z} % ${G.value}n !== 0n) return INVALID;`)}else{let _=k$(I,$Q);$.write(`if (${_}(${Z}, ${p4(G.value,"multiple_of")}) !== 0) return INVALID;`)}}function vj($,I,G){let Z=I.format;switch(Z){case"safeint":$.write(`if (!Number.isSafeInteger(${G})) return INVALID;`);break;case"int32":$.write(`if (!Number.isInteger(${G}) || ${G} < -2147483648 || ${G} > 2147483647) return INVALID;`);break;case"uint32":$.write(`if (!Number.isInteger(${G}) || ${G} < 0 || ${G} > 4294967295) return INVALID;`);break;case"float32":$.write(`if (!Number.isFinite(${G}) || ${G} < -3.4028234663852886e38 || ${G} > 3.4028234663852886e38) return INVALID;`);break;case"float64":$.write(`if (!Number.isFinite(${G})) return INVALID;`);break;default:throw new $1(`number format ${Z}`)}}function fm($,I,G){let Z=I.format;if(!Z)return;switch(Z){case"int64":$.write(`if (${G} < -9223372036854775808n || ${G} > 9223372036854775807n) return INVALID;`);break;case"uint64":$.write(`if (${G} < 0n || ${G} > 18446744073709551615n) return INVALID;`);break;default:throw new $1(`bigint format ${Z}`)}}function ym($,I,G,Z){let _=G.mime;if(_&&_.length>0){let J=k$(I,new Set(_));$.write(`if (!${J}.has(${Z}.type)) return INVALID;`)}}function bm($,I,G,Z){if(G.when)throw new $1('check with a custom "when" condition');$.write(`if (${Z} == null) return INVALID;`);let _=G.shape;for(let J of Reflect.ownKeys(_)){let Y=typeof J==="symbol"?k$(I,J):tU(J),W=q$(I);$.write(`const ${W} = ${Z}[${Y}];`),yU($,I,_[J],W,!1)}}function hm($,I,G,Z){let _=`${Z}[${JSON.stringify(G.property)}]`;p1($,I,G.schema,_)}function um($,I,G,Z,_){let J=G._zod.def.tx;if(!J)throw new $1("overwrite check without a transform function");if(m4(J))throw new sI("z.compile: async overwrite transforms are not supported");let Y=k$(I,J);$.write(`const ${_} = ${Y}(${Z});`)}function AM(){throw new w6}function PM($){this.issues.push($)}function nm($,I,G,Z){let _=G._zod.def;if(_.fn){if(m4(_.fn))throw new sI("z.compile: async .refine() predicates are not supported");let J=l4(I,_.fn),Y=k$(I,AM),W=q$(I);return $.write(`const ${W} = ${J}(${Z});`),$.write(`if (${W} instanceof Promise) ${Y}();`),$.write(`if (!${W}) return INVALID;`),Z}if(G._zod.check){if(m4(G._zod.check))throw new sI("z.compile: async .superRefine() / check functions are not supported");let J=G._zod.check,W=l4(I,(M)=>{let E={value:M,issues:[],addIssue:PM};if(J(E)instanceof Promise)AM();return E.issues.length===0?E.value:aU}),R=q$(I);return $.write(`const ${R} = ${W}(${Z});`),$.write(`if (${R} === INVALID) return INVALID;`),R}throw new $1("custom check without a predicate or check function")}var pm=new Set(["cidrv4","cuid","cuid2","date","datetime","duration","e164","email","emoji","ends_with","guid","includes","ipv4","ksuid","lowercase","mac","nanoid","regex","starts_with","time","ulid","uppercase","uuid","xid"]);function Cj($,I,G,Z,_=!0){let J=G.format;if(J==="base64"){let M=k$(I,MQ);return $.write(`if (!${M}(${Z})) return INVALID;`),Z}if(J==="base64url"){let M=k$(I,RO);return $.write(`if (!${M}(${Z})) return INVALID;`),Z}if(J==="jwt"){let M=k$(I,SO),E=k$(I,G.alg??null);return $.write(`if (!${M}(${Z}, ${E})) return INVALID;`),Z}if(J==="ipv6"){let M=k$(I,TQ);return $.write(`if (!${M}(${Z})) return INVALID;`),Z}if(J==="cidrv6"){let M=k$(I,AO);return $.write(`if (!${M}(${Z})) return INVALID;`),Z}if(J==="credit_card"){let M=k$(I,PO);return $.write(`if (!${M}(${Z})) return INVALID;`),Z}if(J==="iban"){let M=k$(I,VO);return $.write(`if (!${M}(${Z})) return INVALID;`),Z}let Y=G;if(J==="url"||J==="httpurl"||Y.normalize||Y.hostname!==void 0||Y.protocol!==void 0){let M=k$(I,FO),E=k$(I,G),T=q$(I),S=q$(I);if($.write(`const ${T} = ${Z}.trim();`),$.write(`const ${S} = ${M}(${T}, ${E});`),$.write(`if (typeof ${S} === "number") return INVALID;`),Y.hostname!==void 0){let x=k$(I,TO);$.write(`if (!${x}(${S}, ${E}.hostname)) return INVALID;`)}if(Y.protocol!==void 0){let x=k$(I,MO);$.write(`if (!${x}(${S}, ${E}.protocol)) return INVALID;`)}if(!_)return null;let N=q$(I),B=Y.normalize?`${S}.href`:`${k$(I,FQ)}(${T})`;return $.write(`const ${N} = ${B};`),N}let W=G.fn;if(W){if(m4(W))throw new $1(`async string format ${J}`);let M=k$(I,W);return $.write(`if (!${M}(${Z})) return INVALID;`),Z}if(pm.has(J)&&G.pattern){let M=k$(I,G.pattern);return $.write(`${M}.lastIndex = 0;`),$.write(`if (!${M}.test(${Z})) return INVALID;`),Z}let R=G.format;switch(R){case"regex":throw new $1("regex format without a pattern");case"lowercase":$.write(`if (${Z} !== ${Z}.toLowerCase()) return INVALID;`);break;case"uppercase":$.write(`if (${Z} !== ${Z}.toUpperCase()) return INVALID;`);break;case"includes":$.write(`if (!${Z}.includes(${tU(G.includes)})) return INVALID;`);break;case"starts_with":{let M=G.prefix;$.write(`if (${Z}.slice(0, ${M.length}) !== ${tU(M)}) return INVALID;`);break}case"ends_with":{let M=G.suffix;$.write(`if (${Z}.slice(-${M.length}) !== ${tU(M)}) return INVALID;`);break}default:throw new $1(`string format ${R}`)}return Z}function p1($,I,G,Z,_=!0){let J=G._zod.def,Y=J.type;if(J.coerce)throw new $1(`coercion (z.coerce.${Y}())`);let W=_||!!J.checks?.length,R;switch(Y){case"string":R=cm($,I,G,Z,W);break;case"number":R=lm($,G,Z);break;case"boolean":R=mm($,Z);break;case"bigint":R=dm($,G,Z);break;case"symbol":R=im($,Z);break;case"undefined":R=om($,Z);break;case"null":R=tm($,Z);break;case"any":case"unknown":R=Z;break;case"never":$.write("return INVALID;"),R=Z;break;case"void":R=rm($,Z);break;case"nan":R=am($,Z);break;case"date":R=sm($,Z);break;case"object":R=em($,I,G,Z,W);break;case"optional":R=$d($,I,G,Z,W);break;case"nullable":R=_d($,I,G,Z,W);break;case"array":R=Xd($,I,G,Z,W);break;case"literal":R=Gd($,I,G,Z);break;case"enum":R=Yd($,I,G,Z);break;case"readonly":{let M=Rj($,I,G,Z),E=q$(I);$.write(`const ${E} = Object.freeze(${M});`),R=E;break}case"success":Rj($,I,G,Z),R="true";break;case"default":case"prefault":R=Jd($,I,G,Z);break;case"nonoptional":R=Qd($,I,G,Z);break;case"tuple":R=zd($,I,G,Z);break;case"union":R=Zd($,I,G,Z);break;case"intersection":R=Kd($,I,G,Z);break;case"record":R=Dd($,I,G,Z);break;case"map":R=Hd($,I,G,Z);break;case"set":R=Fd($,I,G,Z);break;case"file":R=Td($,Z);break;case"template_literal":R=Md($,I,G,Z);break;case"lazy":R=Ad($,I,G,Z);break;case"pipe":R=Ed($,I,G,Z);break;case"custom":R=Rd($,I,G,Z);break;case"transform":R=Sd($,I,G,Z);break;case"catch":R=Vd($,I,G,Z);break;default:throw new $1(`schema type ${Y}`)}if(R===null)return null;return km($,I,G,R)}function cm($,I,G,Z,_=!0){$.write(`if (typeof ${Z} !== "string") return INVALID;`);let J=G._zod.def;if(J.format===void 0)return Z;return Cj($,I,J,Z,_)}function lm($,I,G){$.write(`if (typeof ${G} !== "number" || !Number.isFinite(${G})) return INVALID;`);let Z=I._zod.def;if(Z.check==="number_format"&&Z.format)vj($,{format:Z.format},G);return G}function mm($,I){return $.write(`if (typeof ${I} !== "boolean") return INVALID;`),I}function dm($,I,G){$.write(`if (typeof ${G} !== "bigint") return INVALID;`);let Z=I._zod.def;if(Z.format)switch(Z.format){case"int64":$.write(`if (${G} < -9223372036854775808n || ${G} > 9223372036854775807n) return INVALID;`);break;case"uint64":$.write(`if (${G} < 0n || ${G} > 18446744073709551615n) return INVALID;`);break}return G}function im($,I){return $.write(`if (typeof ${I} !== "symbol") return INVALID;`),I}function om($,I){return $.write(`if (${I} !== undefined) return INVALID;`),I}function tm($,I){return $.write(`if (${I} !== null) return INVALID;`),I}function rm($,I){return $.write(`if (${I} !== undefined) return INVALID;`),I}function am($,I){return $.write(`if (typeof ${I} !== "number" || !Number.isNaN(${I})) return INVALID;`),I}function sm($,I){return $.write(`if (!(${I} instanceof Date) || Number.isNaN(${I}.getTime())) return INVALID;`),I}function em($,I,G,Z,_=!0){let J=G._zod.def;$.write(`if (typeof ${Z} !== "object" || ${Z} === null || Array.isArray(${Z})) return INVALID;`);let Y=J.shape,W=Object.keys(Y),R=Object.getOwnPropertySymbols(Y),M=R.length?[...W,...R]:W,E=(g)=>typeof g==="symbol"?k$(I,g):tU(g),T=(g)=>typeof g==="symbol"?`[${E(g)}]`:tU(g),S=Y;if(W.includes("__proto__"))throw new $1('object shape key "__proto__"');let N=new Map;for(let g of M){let b=S[g],l=E(g),i=q$(I);if($.write(`const ${i} = ${Z}[${l}];`),b._zod.optin!==void 0){let $0=q$(I);if($.write(`let ${$0} = (() => {`),$.indented((Q0)=>{let G0=yU(Q0,I,b,i);Q0.write(`return ${G0};`)}),$.write("})();"),b._zod.optout==="optional")$.write(`if (${$0} === INVALID) {`),$.indented((Q0)=>{Q0.write(`if (${l} in ${Z}) return INVALID;`),Q0.write(`${$0} = undefined;`)}),$.write("}");else $.write(`if (${$0} === INVALID) return INVALID;`);N.set(g,$0)}else{if(Id(b))$.write(`if (!(${l} in ${Z})) return INVALID;`);let $0=yU($,I,b,i,_);if($0!==null)N.set(g,$0)}}let B=J.catchall,x="none";if(B){let g=B._zod.def.type;if(g==="never"){let b=W.map((l)=>`k !== ${tU(l)}`).join(" && ")||"true";$.write(`for (const k in ${Z}) {`),$.indented((l)=>{l.write(`if (${b}) return INVALID;`)}),$.write("}")}else if((g==="unknown"||g==="any")&&!B._zod.def.checks?.length)x="passthrough";else x="schema"}let w=q$(I),y=M.some((g)=>Ej(S[g])||EM(S[g]));if(!_){if(x==="schema"){let g=W.length>0?k$(I,new Set(W)):null;$.write(`for (const k in ${Z}) {`),$.indented((b)=>{if(b.write('if (k === "__proto__") continue;'),g)b.write(`if (${g}.has(k)) continue;`);let l=q$(I);b.write(`const ${l} = ${Z}[k];`),yU(b,I,B,l,!1)}),$.write("}")}return null}if(!y){let g=M.map((b)=>`${T(b)}: ${N.get(b)}`).join(", ");$.write(`const ${w} = { ${g} };`)}else{$.write(`const ${w} = {};`);for(let g of M){let b=E(g),l=N.get(g);if(EM(S[g]))$.write(`if (${b} in ${Z}) ${w}[${b}] = ${l};`);else if(Ej(S[g]))$.write(`if (${l} !== undefined || ${b} in ${Z}) ${w}[${b}] = ${l};`);else $.write(`${w}[${b}] = ${l};`)}}if(x!=="none"){let g=W.length>0?k$(I,new Set(W)):null;$.write(`for (const k in ${Z}) {`),$.indented((b)=>{if(b.write('if (k === "__proto__") continue;'),g)b.write(`if (${g}.has(k)) continue;`);if(x==="passthrough")b.write(`${w}[k] = ${Z}[k];`);else{let l=q$(I);b.write(`const ${l} = ${Z}[k];`);let i=yU(b,I,B,l);b.write(`${w}[k] = ${i};`)}}),$.write("}")}return w}function $d($,I,G,Z,_=!0){let J=G._zod.def;if(Ud(G))return p1($,I,J.innerType,Z,_);if(J.innerType._zod.optin==="defaulted"){let W=q$(I),R=q$(I);return $.write(`let ${W};`),$.write(`if (${Z} === undefined) {`),$.indented((M)=>{M.write(`const ${R} = (() => {`),M.indented((E)=>{let T=p1(E,I,J.innerType,Z);E.write(`return ${T};`)}),M.write("})();"),M.write(`if (${R} !== INVALID) ${W} = ${R};`)}),$.write("} else {"),$.indented((M)=>{let E=p1(M,I,J.innerType,Z);M.write(`${W} = ${E};`)}),$.write("}"),W}let Y=_?q$(I):null;if(Y)$.write(`let ${Y};`);return $.write(`if (${Z} !== undefined) {`),$.indented((W)=>{let R=p1(W,I,J.innerType,Z,_);if(Y&&R!==null)W.write(`${Y} = ${R};`)}),$.write("}"),Y}function Ud($){return $._zod.traits?.has("$ZodExactOptional")===!0}function Id($){return $._zod.optin===void 0&&c4($)}function c4($){if($._zod.def.coerce)return!0;let I=$._zod.def;switch(I.type){case"any":case"unknown":case"undefined":case"void":case"default":case"prefault":case"transform":case"custom":case"lazy":return!0;case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"never":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":return!1;case"nonoptional":return I.innerType?c4(I.innerType):!1;case"literal":return!!I.values?.includes(void 0);case"enum":return!!$._zod.values?.has(void 0);case"optional":case"nullable":case"readonly":case"success":return I.innerType?c4(I.innerType):!0;case"catch":return!0;case"union":return I.options?I.options.some(c4):!0;case"intersection":if(!I.left||!I.right)return!0;return c4(I.left)&&c4(I.right);case"pipe":return I.in?c4(I.in):!0;default:return!0}}function EM($){return $._zod.optin==="optional"&&$._zod.optout==="optional"}function Ej($){return($._zod.optin!=="defaulted"||$._zod.optout==="optional")&&BG($)}function BG($){let I=$._zod.def;switch(I.type){case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":case"never":case"success":return!1;case"literal":return!!I.values?.includes(void 0);case"enum":return!!$._zod.values?.has(void 0);case"optional":return!0;case"nullable":case"readonly":case"nonoptional":return I.innerType?BG(I.innerType):!0;case"union":return I.options?I.options.some(BG):!0;case"intersection":return!I.left||!I.right||BG(I.left)||BG(I.right);case"pipe":return I.out?BG(I.out):!0;default:return!0}}function _d($,I,G,Z,_=!0){let J=G._zod.def,Y=_?q$(I):null;if(Y)$.write(`let ${Y} = null;`);return $.write(`if (${Z} !== null) {`),$.indented((W)=>{let R=p1(W,I,J.innerType,Z,_);if(Y&&R!==null)W.write(`${Y} = ${R};`)}),$.write("}"),Y}function Xd($,I,G,Z,_=!0){let J=G._zod.def;$.write(`if (!Array.isArray(${Z})) return INVALID;`);let Y=_?q$(I):null,W=q$(I),R=q$(I);if(Y)$.write(`const ${Y} = new Array(${Z}.length);`);return $.write(`for (let ${W} = 0; ${W} < ${Z}.length; ${W}++) {`),$.indented((M)=>{M.write(`const ${R} = ${Z}[${W}];`);let E=yU(M,I,J.element,R,_);if(Y&&E!==null)M.write(`${Y}[${W}] = ${E};`)}),$.write("}"),Y}function Gd($,I,G,Z){let J=G._zod.def.values;if(J.length!==1){let W=k$(I,new Set(J));return $.write(`if (!${W}.has(${Z})) return INVALID;`),Z}let Y=J[0];if(typeof Y==="number"&&Number.isNaN(Y)){let W=k$(I,new Set(J));return $.write(`if (!${W}.has(${Z})) return INVALID;`),Z}if(typeof Y==="string")$.write(`if (${Z} !== ${tU(Y)}) return INVALID;`);else if(typeof Y==="number"||typeof Y==="boolean")$.write(`if (${Z} !== ${Y}) return INVALID;`);else if(Y===null)$.write(`if (${Z} !== null) return INVALID;`);else if(Y===void 0)$.write(`if (${Z} !== undefined) return INVALID;`);else if(typeof Y==="bigint")$.write(`if (${Z} !== ${Y}n) return INVALID;`);else throw new $1(`literal type ${typeof Y}`);return Z}function Yd($,I,G,Z){let _=G._zod.values;if(!_)throw new $1("enum schema without enumerated values");let J=k$(I,_);return $.write(`if (!${J}.has(${Z})) return INVALID;`),Z}function Rj($,I,G,Z){let _=G._zod.def;return p1($,I,_.innerType,Z)}function Jd($,I,G,Z){let _=G._zod.def,Y=Object.getOwnPropertyDescriptor(G._zod.def,"defaultValue")?()=>G._zod.def.defaultValue:void 0;if(G._zod.def.type==="prefault"){if(!Y)return p1($,I,_.innerType,Z);let R=k$(I,Y),M=q$(I);return $.write(`let ${M} = ${Z};`),$.write(`if (${Z} === undefined) ${M} = ${R}();`),p1($,I,_.innerType,M)}let W=q$(I);if(Y){let R=k$(I,Y),M=k$(I,UQ);$.write(`let ${W};`),$.write(`if (${Z} === undefined) {`),$.indented((E)=>{E.write(`${W} = ${M}(${R}());`)}),$.write("} else {"),$.indented((E)=>{let T=p1(E,I,_.innerType,Z);E.write(`${W} = ${T} === undefined ? ${M}(${R}()) : ${T};`)}),$.write("}")}else $.write(`let ${W};`),$.write(`if (${Z} !== undefined) {`),$.indented((R)=>{let M=p1(R,I,_.innerType,Z);R.write(`${W} = ${M};`)}),$.write("}");return W}function Qd($,I,G,Z){let _=G._zod.def,J=p1($,I,_.innerType,Z),Y=q$(I);return $.write(`const ${Y} = ${J};`),$.write(`if (${Y} === undefined) return INVALID;`),Y}function zd($,I,G,Z){let _=G._zod.def,J=_.items,Y=_.rest;$.write(`if (!Array.isArray(${Z})) return INVALID;`);let W=Pj(J,"optin"),R=Pj(J,"optout");if(Y)$.write(`if (${Z}.length < ${W}) return INVALID;`);else $.write(`if (${Z}.length < ${W} || ${Z}.length > ${J.length}) return INVALID;`);let M=q$(I);$.write(`const ${M} = [];`);for(let E=0;E<J.length;E++){let T=J[E];if(E>=R)$.write(`if (${M}.length === ${E}) {`),$.indented((S)=>{S.write(`if (${E} < ${Z}.length) {`),S.indented((N)=>{let B=q$(I);N.write(`const ${B} = ${Z}[${E}];`);let x=yU(N,I,T,B);N.write(`${M}[${E}] = ${x};`)}),S.write("} else {"),S.indented((N)=>{if(EM(T)){N.write(`${M}.length = ${E};`);return}let B=q$(I),x=q$(I);N.write(`const ${B} = undefined;`),N.write(`const ${x} = (() => {`),N.indented((w)=>{let y=yU(w,I,T,B);w.write(`return ${y};`)}),N.write("})();"),N.write(`if (${x} === INVALID || ${x} === undefined) ${M}.length = ${E};`),N.write(`else ${M}[${E}] = ${x};`)}),S.write("}")}),$.write("}");else{let S=q$(I);$.write(`const ${S} = ${Z}[${E}];`);let N=yU($,I,T,S);$.write(`${M}[${E}] = ${N};`)}}if(Y){let E=q$(I),T=q$(I);$.write(`for (let ${E} = ${J.length}; ${E} < ${Z}.length; ${E}++) {`),$.indented((S)=>{S.write(`const ${T} = ${Z}[${E}];`);let N=yU(S,I,Y,T);S.write(`${M}[${E}] = ${N};`)}),$.write("}")}return M}function Pj($,I){for(let G=$.length-1;G>=0;G--)if(!(I==="optin"?$[G]._zod.optin!==void 0:$[G]._zod.optout==="optional"))return G+1;return 0}function Zd($,I,G,Z){let _=G._zod.def,J=_.options;if(_.discriminator)return Od($,I,_,Z);if(_.inclusive===!1)throw new $1("exclusive unions (z.xor)");if(J.length===0)return $.write("return INVALID;"),Z;if(J.length===1)return p1($,I,J[0],Z);if(J.every((R)=>R._zod.def.type==="literal"&&!R._zod.def.checks?.length)){let R=new Set(J.flatMap((E)=>E._zod.def.values)),M=k$(I,R);return $.write(`if (!${M}.has(${Z})) return INVALID;`),Z}let W=q$(I);$.write(`let ${W};`);for(let R=0;R<J.length;R++){let M=J[R];if(R===0)$.write(`${W} = (() => {`);else $.write(`if (${W} === INVALID) ${W} = (() => {`);$.indented((E)=>{let T=p1(E,I,M,Z);E.write(`return ${T};`)}),$.write("})();")}return $.write(`if (${W} === INVALID) return INVALID;`),W}function Od($,I,G,Z){if(G.unionFallback)throw new $1("discriminated union with unionFallback");if(G.options.length===0)return $.write("return INVALID;"),Z;let _=q$(I),J=q$(I);$.write(`const ${_} = ${Z}?.[${tU(G.discriminator)}];`),$.write(`let ${J};`);let Y=!0,W=new Set;for(let R of G.options){let M=R._zod.propValues?.[G.discriminator];if(!M||M.size===0)throw new $1("discriminated union option without static discriminator values");for(let S of M){if(W.has(S))throw new $1(`duplicate discriminator value ${String(S)}`);W.add(S)}let E=Array.from(M,(S)=>Ld(I,_,S)),T=Y?"if":"else if";$.write(`${T} (${E.join(" || ")}) {`),$.indented((S)=>{let N=p1(S,I,R,Z);S.write(`${J} = ${N};`)}),$.write("}"),Y=!1}return $.write("else { return INVALID; }"),J}function Ld($,I,G){if(typeof G==="string")return`${I} === ${tU(G)}`;if(typeof G==="number"){if(Number.isNaN(G))return`Number.isNaN(${I})`;return`${I} === ${G}`}if(typeof G==="boolean")return`${I} === ${G}`;if(G===null)return`${I} === null`;if(G===void 0)return`${I} === undefined`;if(typeof G==="bigint")return`${I} === ${G}n`;if(typeof G==="symbol"){let Z=k$($,G);return`${I} === ${Z}`}throw new $1(`literal discriminator value ${String(G)}`)}function Kd($,I,G,Z){let _=G._zod.def;I.definite=!1;let J=yU($,I,_.left,Z),Y=yU($,I,_.right,Z),W=k$(I,CG),R=q$(I);return $.write(`const ${R} = ${W}(${J}, ${Y});`),$.write(`if (!${R}.valid) return INVALID;`),`${R}.data`}function Dd($,I,G,Z){let _=G._zod.def,J=k$(I,UI);$.write(`if (!${J}(${Z})) return INVALID;`);let Y=q$(I),W=q$(I),R=q$(I);$.write(`const ${Y} = {};`);let M=_,E=M.partial?void 0:_.keyType._zod.values;if(E){let N=[];for(let x of E){if(!(typeof x==="string"||typeof x==="number"||typeof x==="symbol"))throw new $1(`record key value ${String(x)}`);let w=typeof x==="number"?x.toString():x;if(w==="__proto__")throw new $1('record key "__proto__"');N.push(w);let y=k$(I,x),g=p1($,I,_.keyType,y),b=q$(I);$.write(`const ${b} = ${Z}[${Wd(I,w)}];`);let l=yU($,I,_.valueType,b);$.write(`${Y}[${g}] = ${l};`)}let B=k$(I,new Set(N));return $.write(`for (const ${W} in ${Z}) {`),$.indented((x)=>{if(x.write(`if (${B}.has(${W})) continue;`),M.mode==="loose")x.write(`if (${W} !== "__proto__") ${Y}[${W}] = ${Z}[${W}];`);else x.write("return INVALID;")}),$.write("}"),Y}let T=_.keyType._zod.def;if(!(T.type==="string"&&T.format===void 0&&!T.coerce&&(T.checks?.length??0)===0)){let N=_.mode==="loose",B=bO(_.keyType);if(B.definite===!1)I.definite=!1;let x=k$(I,B),w=k$(I,aI),y=q$(I);return Vj($,I,Z,W,(g)=>{if(g.write(`let ${y} = ${x}(${W});`),g.write(`if (${y} === INVALID && typeof ${W} === "string" && ${w}.test(${W})) ${y} = ${x}(Number(${W}));`),N)g.write(`if (${y} === INVALID) { ${Y}[${W}] = ${Z}[${W}]; continue; }`);else g.write(`if (${y} === INVALID) return INVALID;`);g.write(`if (${y} === "__proto__") continue;`);let b=q$(I);g.write(`const ${b} = ${Z}[${W}];`);let l=yU(g,I,_.valueType,b);g.write(`${Y}[${y}] = ${l};`)}),Y}return Vj($,I,Z,W,(N)=>{N.write(`const ${R} = ${Z}[${W}];`);let B=yU(N,I,_.valueType,R);N.write(`${Y}[${W}] = ${B};`)},"return INVALID;"),Y}function Vj($,I,G,Z,_,J){let Y=k$(I,Object.prototype.propertyIsEnumerable),W=q$(I),R=q$(I),M=q$(I);$.write(`const ${W} = Object.getOwnPropertySymbols(${G});`),$.write(`const ${R} = Object.getOwnPropertyNames(${G});`),$.write(`for (let ${M} = 0; ${M} < ${R}.length; ${M}++) {`),$.indented((E)=>{E.write(`const ${Z} = ${R}[${M}];`),E.write(`if (${Z} === "__proto__" || !${Y}.call(${G}, ${Z})) continue;`),_(E)}),$.write("}"),$.write(`for (let ${M} = 0; ${M} < ${W}.length; ${M}++) {`),$.indented((E)=>{if(E.write(`const ${Z} = ${W}[${M}];`),E.write(`if (!${Y}.call(${G}, ${Z})) continue;`),J)E.write(J);else _(E)}),$.write("}")}function Wd($,I){if(typeof I==="string")return tU(I);return k$($,I)}function Hd($,I,G,Z){let _=G._zod.def;$.write(`if (!(${Z} instanceof Map)) return INVALID;`);let J=q$(I),Y=q$(I),W=q$(I);return $.write(`const ${J} = new Map();`),$.write(`for (const [${Y}, ${W}] of ${Z}) {`),$.indented((R)=>{let M=p1(R,I,_.keyType,Y),E=p1(R,I,_.valueType,W);R.write(`${J}.set(${M}, ${E});`)}),$.write("}"),J}function Fd($,I,G,Z){let _=G._zod.def;$.write(`if (!(${Z} instanceof Set)) return INVALID;`);let J=q$(I),Y=q$(I);return $.write(`const ${J} = new Set();`),$.write(`for (const ${Y} of ${Z}) {`),$.indented((W)=>{let R=p1(W,I,_.valueType,Y);W.write(`${J}.add(${R});`)}),$.write("}"),J}function Td($,I){return $.write(`if (!(${I} instanceof File)) return INVALID;`),I}function Md($,I,G,Z){$.write(`if (typeof ${Z} !== "string") return INVALID;`);let _=G._zod.pattern;if(_){let J=k$(I,_);$.write(`${J}.lastIndex = 0;`),$.write(`if (!${J}.test(${Z})) return INVALID;`)}return Z}function Ad($,I,G,Z){let _=G._zod.def,J=l4(I,_.getter),Y=k$(I,{parser:null});$.write(`if (!${Y}.parser) {`),$.indented((R)=>{R.write(`const inner = ${J}();`),R.write(`${Y}.parser = function(input) {`),R.indented((M)=>{M.write("const result = inner._zod.run({ value: input, issues: [] }, {});"),M.write("return result.issues.length === 0 ? result.value : INVALID;")}),R.write("};")}),$.write("}");let W=q$(I);return $.write(`const ${W} = ${Y}.parser(${Z});`),$.write(`if (${W} === INVALID) return INVALID;`),W}function Ed($,I,G,Z){let _=G._zod.def,J=p1($,I,_.in,Z);if(_.transform){if(m4(_.transform))throw new sI("z.compile: async transforms in pipes are not supported");let Y=_.transform,R=l4(I,(E)=>{let T={value:E,issues:[],addIssue:PM},S=Y(E,T);if(S instanceof Promise)return aU;return T.issues.length===0?S:aU}),M=q$(I);return $.write(`const ${M} = ${R}(${J});`),$.write(`if (${M} === INVALID) return INVALID;`),p1($,I,_.out,M)}else return p1($,I,_.out,J)}function m4($){return typeof $==="function"&&($.constructor.name==="AsyncFunction"||$[Symbol.toStringTag]==="AsyncFunction")}function Rd($,I,G,Z){let _=G._zod.def;if(_.fn){if(m4(_.fn))throw new sI("z.compile: async custom predicates are not supported");let J=l4(I,_.fn),Y=k$(I,AM),W=q$(I);$.write(`const ${W} = ${J}(${Z});`),$.write(`if (${W} instanceof Promise) ${Y}();`),$.write(`if (!${W}) return INVALID;`)}else throw new $1("custom schema without a predicate function");return Z}function Pd($,I,G){let Z=$._zod.run({value:G,issues:[]},{});if(Z&&typeof Z.then==="function")return aU;let _=Z;if(_.issues.length===0)return _.value;return I()}function Vd($,I,G,Z){let _=G._zod.def;if(!_.catchValue[oZ])throw new $1("catch with a callback (only a constant catch value compiles)",!1);let J=q$(I);$.write(`let ${J} = (() => {`),$.indented((M)=>{let E=yU(M,I,_.innerType,Z);M.write(`return ${E};`)}),$.write("})();");let Y=k$(I,_.innerType),W=l4(I,_.catchValue),R=k$(I,Pd);return $.write(`if (${J} === INVALID) {`),$.indented((M)=>{M.write(`${J} = ${R}(${Y}, ${W}, ${Z});`),M.write(`if (${J} === INVALID) return INVALID;`)}),$.write("}"),J}function Sd($,I,G,Z){let _=G._zod.def;if(_.transform){if(m4(_.transform))throw new sI("z.compile: async transforms are not supported");let J=_.transform,W=l4(I,(M)=>{let E={value:M,issues:[],addIssue:PM},T=J(M,E);if(T instanceof Promise)return aU;return E.issues.length===0?T:aU}),R=q$(I);return $.write(`const ${R} = ${W}(${Z});`),$.write(`if (${R} === INVALID) return INVALID;`),R}return Z}function hO($){if($.checks)$.checks=[...$.checks];return $}function VM($,I){return new $(hO({type:"string",...W$(I)}))}function SM($,I){return new $(hO({type:"string",coerce:!0,...W$(I)}))}function uO($,I){return new $({type:"string",format:"email",check:"string_format",abort:!1,...W$(I)})}function nO($,I){return new $({type:"string",format:"guid",check:"string_format",abort:!1,...W$(I)})}function pO($,I){return new $({type:"string",format:"uuid",check:"string_format",abort:!1,...W$(I)})}function cO($,I){return new $({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...W$(I)})}function lO($,I){return new $({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...W$(I)})}function mO($,I){return new $({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...W$(I)})}function gQ($,I){return new $({type:"string",format:"url",check:"string_format",abort:!1,...W$(I)})}function dO($,I){return new $({type:"string",format:"emoji",check:"string_format",abort:!1,...W$(I)})}function iO($,I){return new $({type:"string",format:"nanoid",check:"string_format",abort:!1,...W$(I)})}function oO($,I){return new $({type:"string",format:"cuid",check:"string_format",abort:!1,...W$(I)})}function tO($,I){return new $({type:"string",format:"cuid2",check:"string_format",abort:!1,...W$(I)})}function rO($,I){return new $({type:"string",format:"ulid",check:"string_format",abort:!1,...W$(I)})}function aO($,I){return new $({type:"string",format:"xid",check:"string_format",abort:!1,...W$(I)})}function sO($,I){return new $({type:"string",format:"ksuid",check:"string_format",abort:!1,...W$(I)})}function eO($,I){return new $({type:"string",format:"ipv4",check:"string_format",abort:!1,...W$(I)})}function $5($,I){return new $({type:"string",format:"ipv6",check:"string_format",abort:!1,...W$(I)})}function vM($,I){return new $({type:"string",format:"mac",check:"string_format",abort:!1,...W$(I)})}function U5($,I){return new $({type:"string",format:"cidrv4",check:"string_format",abort:!1,...W$(I)})}function I5($,I){return new $({type:"string",format:"cidrv6",check:"string_format",abort:!1,...W$(I)})}function _5($,I){return new $({type:"string",format:"base64",check:"string_format",abort:!1,...W$(I)})}function X5($,I){return new $({type:"string",format:"base64url",check:"string_format",abort:!1,...W$(I)})}function G5($,I){return new $({type:"string",format:"e164",check:"string_format",abort:!1,...W$(I)})}function CM($,I){return new $({type:"string",format:"credit_card",check:"string_format",abort:!1,...W$(I)})}function qM($,I){return new $({type:"string",format:"iban",check:"string_format",abort:!1,...W$(I)})}function Y5($,I){return new $({type:"string",format:"jwt",check:"string_format",abort:!1,...W$(I)})}var NM={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function wQ($,I){return new $({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...W$(I)})}function xQ($,I){return new $({type:"string",format:"date",check:"string_format",...W$(I)})}function fQ($,I){return new $({type:"string",format:"time",check:"string_format",precision:null,...W$(I)})}function yQ($,I){return new $({type:"string",format:"duration",check:"string_format",...W$(I)})}function BM($,I){return new $(hO({type:"number",checks:[],...W$(I)}))}function jM($,I){return new $(hO({type:"number",coerce:!0,checks:[],...W$(I)}))}function kM($,I){return new $({type:"number",check:"number_format",abort:!1,format:"safeint",...W$(I)})}function gM($,I){return new $({type:"number",check:"number_format",abort:!1,format:"float32",...W$(I)})}function wM($,I){return new $({type:"number",check:"number_format",abort:!1,format:"float64",...W$(I)})}function xM($,I){return new $({type:"number",check:"number_format",abort:!1,format:"int32",...W$(I)})}function fM($,I){return new $({type:"number",check:"number_format",abort:!1,format:"uint32",...W$(I)})}function yM($,I){return new $({type:"boolean",...W$(I)})}function bM($,I){return new $({type:"boolean",coerce:!0,...W$(I)})}function hM($,I){return new $({type:"bigint",...W$(I)})}function uM($,I){return new $({type:"bigint",coerce:!0,...W$(I)})}function nM($,I){return new $({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...W$(I)})}function pM($,I){return new $({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...W$(I)})}function cM($,I){return new $({type:"symbol",...W$(I)})}function lM($,I){return new $({type:"undefined",...W$(I)})}function mM($,I){return new $({type:"null",...W$(I)})}function dM($){return new $({type:"any"})}function iM($){return new $({type:"unknown"})}function oM($,I){return new $({type:"never",...W$(I)})}function tM($,I){return new $({type:"void",...W$(I)})}function rM($,I){return new $({type:"date",...W$(I)})}function aM($,I){return new $({type:"date",coerce:!0,...W$(I)})}function sM($,I){return new $({type:"nan",...W$(I)})}function eI($,I){return new ZO({check:"less_than",...W$(I),value:$,inclusive:!1})}function x6($,I){return new ZO({check:"less_than",...W$(I),value:$,inclusive:!0})}function $_($,I){return new OO({check:"greater_than",...W$(I),value:$,inclusive:!1})}function f6($,I){return new OO({check:"greater_than",...W$(I),value:$,inclusive:!0})}function J5($){return $_(0,$)}function Q5($){return eI(0,$)}function z5($){return x6(0,$)}function Z5($){return f6(0,$)}function w2($,I){return new qH({check:"multiple_of",...W$(I),value:$})}function x2($,I){return new jH({check:"max_size",...W$(I),maximum:$})}function U_($,I){return new kH({check:"min_size",...W$(I),minimum:$})}function d4($,I){return new gH({check:"size_equals",...W$(I),size:$})}function i4($,I){return new wH({check:"max_length",...W$(I),maximum:$})}function y_($,I){return new xH({check:"min_length",...W$(I),minimum:$})}function o4($,I){return new fH({check:"length_equals",...W$(I),length:$})}function jG($,I){return new yH({check:"string_format",format:"regex",...W$(I),pattern:$})}function kG($){return new bH({check:"string_format",format:"lowercase",...W$($)})}function gG($){return new hH({check:"string_format",format:"uppercase",...W$($)})}function wG($,I){return new uH({check:"string_format",format:"includes",...W$(I),includes:$})}function xG($,I){return new nH({check:"string_format",format:"starts_with",...W$(I),prefix:$})}function fG($,I){return new pH({check:"string_format",format:"ends_with",...W$(I),suffix:$})}function O5($,I,G){return new cH({check:"property",property:$,schema:I,...W$(G)})}function yG($,I){return new lH({check:"properties",shape:$,...W$(I)})}function bG($,I){return new mH({check:"mime_type",mime:$,...W$(I)})}function FI($){return new dH({check:"overwrite",tx:$})}function hG($){return FI((I)=>I.normalize($))}function uG(){return FI(($)=>$.trim())}function nG(){return FI(($)=>$.toLowerCase())}function pG(){return FI(($)=>$.toUpperCase())}function cG(){return FI(($)=>BW($))}function eM($,I,G){return new $({type:"array",element:I,...W$(G)})}function vd($,I,G){return new $({type:"union",options:I,...W$(G)})}function Cd($,I,G){return new $({type:"union",options:I,inclusive:!1,...W$(G)})}function qd($,I,G,Z){return new $({type:"union",options:G,discriminator:I,...W$(Z)})}function Nd($,I,G){return new $({type:"intersection",left:I,right:G})}function Bd($,I,G,Z){let _=G instanceof y$;return new $({type:"tuple",items:I,rest:_?G:null,...W$(_?Z:G)})}function jd($,I,G,Z){return new $({type:"record",keyType:I,valueType:G,...W$(Z)})}function kd($,I,G,Z){return new $({type:"map",keyType:I,valueType:G,...W$(Z)})}function gd($,I,G){return new $({type:"set",valueType:I,...W$(G)})}function wd($,I,G){let Z=Array.isArray(I)?Object.fromEntries(I.map((_)=>[_,_])):I;return new $({type:"enum",entries:Z,...W$(G)})}function xd($,I,G){return new $({type:"enum",entries:I,...W$(G)})}function fd($,I,G){return new $({type:"literal",values:Array.isArray(I)?I:[I],...W$(G)})}function $A($,I){return new $({type:"file",...W$(I)})}function yd($,I){return new $({type:"transform",transform:I})}function bd($,I){return new $({type:"optional",innerType:I})}function hd($,I){return new $({type:"nullable",innerType:I})}function ud($,I,G){return new $({type:"default",innerType:I,get defaultValue(){return typeof G==="function"?G():UQ(G)}})}function nd($,I,G){return new $({type:"nonoptional",innerType:I,...W$(G)})}function pd($,I){return new $({type:"success",innerType:I})}function cd($,I,G){return new $({type:"catch",innerType:I,catchValue:typeof G==="function"?G:fW(G)})}function ld($,I,G){return new $({type:"pipe",in:I,out:G})}function md($,I){return new $({type:"readonly",innerType:I})}function dd($,I,G){return new $({type:"template_literal",parts:I,...W$(G)})}function id($,I){return new $({type:"lazy",getter:I})}function od($,I){return new $({type:"promise",innerType:I})}function UA($,I,G){let Z=W$(G);return Z.abort??(Z.abort=!0),new $({type:"custom",check:"custom",fn:I,...Z})}function IA($,I,G){return new $({type:"custom",check:"custom",fn:I,...W$(G)})}function _A($,I){let G=qj((Z)=>{return Z.addIssue=(_)=>{if(typeof _==="string")Z.issues.push(AG(_,Z.value,G._zod.def));else{let J=_;if(J.fatal)J.continue=!1;if(J.code??(J.code="custom"),!("input"in J))J.input=Z.value;J.inst??(J.inst=G),J.continue??(J.continue=!G._zod.def.abort),Z.issues.push(AG(J))}},$(Z.value,Z)},I);return G}function qj($,I){let G=new A1({check:"custom",...W$(I)});return G._zod.check=$,G}function XA($){let I=new A1({check:"describe"});return I._zod.onattach=[(G)=>{let Z=gU.get(G)??{};gU.add(G,{...Z,description:$})}],I._zod.check=()=>{},I}function GA($){let I=new A1({check:"meta"});return I._zod.onattach=[(G)=>{let Z=gU.get(G)??{};gU.add(G,{...Z,...$})}],I._zod.check=()=>{},I}function YA($,I){let G=W$(I),Z=G.truthy??["true","1","yes","on","y","enabled"],_=G.falsy??["false","0","no","off","n","disabled"];if(G.case!=="sensitive")Z=Z.map((N)=>typeof N==="string"?N.toLowerCase():N),_=_.map((N)=>typeof N==="string"?N.toLowerCase():N);let J=new Set(Z),Y=new Set(_),W=$.Codec??PQ,R=$.Boolean??EQ,E=new($.String??n4)({type:"string",error:G.error}),T=new R({type:"boolean",error:G.error}),S=new W({type:"pipe",in:E,out:T,transform:(N,B)=>{let x=N;if(G.case!=="sensitive")x=x.toLowerCase();if(J.has(x))return!0;else if(Y.has(x))return!1;else return B.issues.push({code:"invalid_value",expected:"stringbool",values:[...J,...Y],input:B.value,inst:S,continue:!1}),{}},reverseTransform:(N,B)=>{if(N===!0)return Z[0]||"true";else return _[0]||"false"},error:G.error});return S._zod.bag.truthy=Z,S._zod.bag.falsy=_,S._zod.bag.case=G.case??"insensitive",S}function t4($,I,G,Z={}){let _=W$(Z),J={check:"string_format",type:"string",format:I,fn:typeof G==="function"?G:(W)=>G.test(W),..._};if(G instanceof RegExp)J.pattern=G;return new $(J)}function bQ($,...I){for(let G of I)for(let Z of Reflect.ownKeys(G))if(Object.prototype.propertyIsEnumerable.call(G,Z))kU($,Z,G[Z]);return $}function f2($){let I=$?.target??"draft-2020-12";if(I==="draft-4")I="draft-04";if(I==="draft-7")I="draft-07";return{processors:$.processors??{},metadataRegistry:$?.metadata??gU,target:I,unrepresentable:$?.unrepresentable??"throw",override:$?.override??(()=>{}),io:$?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:$?.cycles??"ref",reused:$?.reused??"inline",intersections:[],deferred:[],external:$?.external??void 0}}function FU($,I,G,Z,_){let J=typeof I.unrepresentable==="function"?I.unrepresentable({zodSchema:$,path:Z.path,message:_}):I.unrepresentable;if(J==="any")return!1;if(J===void 0||J==="throw")throw Error(_);return Object.assign(G,J),!0}function W1($,I,G={path:[],schemaPath:[]}){var Z;let _=$._zod.def,J=I.seen.get($);if(J){if(J.count++,G.schemaPath.includes($))J.cycle=G.path;return J.schema}let Y={schema:{},count:1,cycle:void 0,path:G.path};I.seen.set($,Y),I.sharedDefsExtractedFor=void 0,I.sharedEmitDoneFor=void 0;let W=$._zod.toJSONSchema?.();if(W)Y.schema=W;else{let E={...G,schemaPath:[...G.schemaPath,$],path:G.path};if($._zod.processJSONSchema)$._zod.processJSONSchema(I,Y.schema,E);else{let S=Y.schema,N=I.processors[_.type];if(!N)throw Error(`[toJSONSchema]: Non-representable type encountered: ${_.type}`);N($,I,S,E)}let T=$._zod.parent;if(T){if(!Y.ref)Y.ref=T;W1(T,I,E),I.seen.get(T).isParent=!0}}let R=I.metadataRegistry.get($);if(R)bQ(Y.schema,R);if(I.io==="input"&&sU($))delete Y.schema.examples,delete Y.schema.default;if(I.io==="input"&&"_prefault"in Y.schema)(Z=Y.schema).default??(Z.default=Y.schema._prefault);return delete Y.schema._prefault,I.seen.get($).schema}function Nj($){return $.replace(/~/g,"~0").replace(/\//g,"~1")}function y2($,I){let G=$.seen.get(I);if(!G)throw Error("Unprocessed schema. This is a bug in Zod.");if($.external&&$.sharedDefsExtractedFor===$.external)return;let Z=new Map;for(let Y of $.seen.entries()){let W=$.metadataRegistry.get(Y[0])?.id;if(W){let R=Z.get(W);if(R&&R!==Y[0])throw Error(`Duplicate schema id "${W}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);Z.set(W,Y[0])}}let _=(Y)=>{let W=$.target==="draft-2020-12"?"$defs":"definitions";if($.external){let T=$.external.registry.get(Y[0])?.id,S=$.external.uri??((B)=>B);if(T)return{ref:S(T)};let N=Y[1].defId??Y[1].schema.id??`schema${$.counter++}`;return Y[1].defId=N,{defId:N,ref:`${S("__shared")}#/${W}/${Nj(N)}`}}let R="#",M=`${R}/${W}/`;if(Y[1]===G&&!Y[1].schema.id)return{ref:R};let E=Y[1].schema.id??`__schema${$.counter++}`;return{defId:E,ref:M+Nj(E)}},J=(Y)=>{if(Y[1].schema.$ref)return;let W=Y[1],{ref:R,defId:M}=_(Y);if(W.def={...W.schema},M)W.defId=M;let E=W.schema;for(let T in E)delete E[T];E.$ref=R};if($.cycles==="throw")for(let Y of $.seen.entries()){let W=Y[1];if(W.cycle)throw Error(`Cycle detected: #/${W.cycle?.join("/")}/<root>
|
|
386
|
-
|
|
387
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let Y of $.seen.entries()){let W=Y[1];if(I===Y[0]){J(Y);continue}if($.external){let M=$.external.registry.get(Y[0])?.id;if(I!==Y[0]&&M){J(Y);continue}}if($.metadataRegistry.get(Y[0])?.id){J(Y);continue}if(W.cycle){J(Y);continue}if(W.count>1){if($.reused==="ref")J(Y)}}if($.external)$.sharedDefsExtractedFor=$.external}function kj($){let I=$.anyOf;if(!Array.isArray(I)||I.length===0||$.type!==void 0)return;let G=[];for(let Z of I){if(!Z||typeof Z!=="object")return;kj(Z);let _=Object.keys(Z);if(_.length!==1||_[0]!=="type")return;let J=Z.type;for(let Y of Array.isArray(J)?J:[J]){if(typeof Y!=="string")return;if(!G.includes(Y))G.push(Y)}}delete $.anyOf,$.type=G.length===1?G[0]:G}var gj=new Set(["type","properties","required","additionalProperties"]),Bj=["oneOf","anyOf"];function jj($){let I=$.additionalProperties;if(I===void 0||I===!1||typeof I!=="object"||I===null)return null;return Object.keys(I).length?I:null}function JA($){let I=[];for(let J of $){if(typeof J!=="object"||J.type!=="object")return null;for(let Y in J)if(!gj.has(Y))return null;I.push(J)}let G={},Z=new Set;for(let J of I){for(let Y in J.properties){if(Object.prototype.hasOwnProperty.call(G,Y))continue;let W=[];for(let M of I){let E=M.properties?.[Y]??jj(M);if(E===null||E===void 0)continue;if(!W.some((T)=>JSON.stringify(T)===JSON.stringify(E)))W.push(E)}let R=W.length===1?W[0]:JA(W)??{allOf:W};kU(G,Y,R)}for(let Y of J.required??[])Z.add(Y)}let _={type:"object",properties:G};if(Z.size)_.required=[...Z];if(I.every((J)=>J.additionalProperties===!1))_.additionalProperties=!1;else{let J=[];for(let Y of I){let W=jj(Y);if(W&&!J.some((R)=>JSON.stringify(R)===JSON.stringify(W)))J.push(W)}if(J.length===1)_.additionalProperties=J[0];else if(J.length>1)_.additionalProperties={allOf:J}}return _}function td($){let I=$.allOf;if(!Array.isArray(I)||I.length<2)return;for(let _ of gj)if(_ in $)return;let G=I.filter((_)=>Bj.some((J)=>Array.isArray(_[J]))),Z=null;if(!G.length)Z=JA(I);else{let _=G[0],J=Bj.find((R)=>Array.isArray(_[R]));if(Object.keys(_).length!==1)return;let Y=I.filter((R)=>R!==_),W=_[J].map((R)=>JA([...Y,R]));if(W.some((R)=>!R))return;Z={[J]:W}}if(!Z)return;delete $.allOf,bQ($,Z)}function b2($,I){let G=$.seen.get(I);if(!G)throw Error("Unprocessed schema. This is a bug in Zod.");let Z=(W)=>{let R=$.seen.get(W);if(R.ref===null)return;let M=R.def??R.schema,E={...M},T=R.ref;if(R.ref=null,T){Z(T);let N=$.seen.get(T),B=N.schema;if(B.$ref&&($.target==="draft-07"||$.target==="draft-04"||$.target==="openapi-3.0"))M.allOf=M.allOf??[],M.allOf.push(B);else bQ(M,B);if(bQ(M,E),W._zod.parent===T)for(let w in M){if(w==="$ref"||w==="allOf")continue;if(!(w in E))delete M[w]}if(B.$ref&&N.def)for(let w in M){if(w==="$ref"||w==="allOf")continue;if(w in N.def&&JSON.stringify(M[w])===JSON.stringify(N.def[w]))delete M[w]}}let S=W._zod.parent;if(S&&S!==T){Z(S);let N=$.seen.get(S);if(N?.schema.$ref){if(M.$ref=N.schema.$ref,N.def)for(let B in M){if(B==="$ref"||B==="allOf")continue;if(B in N.def&&JSON.stringify(M[B])===JSON.stringify(N.def[B]))delete M[B]}}}$.override({zodSchema:W,jsonSchema:M,path:R.path??[]})};if(!$.external||$.sharedEmitDoneFor!==$.external){for(let W of[...$.seen.entries()].reverse())Z(W[0]);if($.target!=="openapi-3.0")for(let W of $.seen.entries())kj(W[1].def??W[1].schema);for(let W of $.deferred)W();if($.intersections.length){let W=new Map;for(let R of $.seen.values())for(let M of[R.schema,R.def]){let E=M?.allOf;if(!Array.isArray(E))continue;let T=W.get(E);if(T)T.push(M);else W.set(E,[M])}for(let R of $.intersections)for(let M of W.get(R)??[])td(M)}}let _={};if($.target==="draft-2020-12")_.$schema="https://json-schema.org/draft/2020-12/schema";else if($.target==="draft-07")_.$schema="http://json-schema.org/draft-07/schema#";else if($.target==="draft-04")_.$schema="http://json-schema.org/draft-04/schema#";else if($.target==="openapi-3.0");if($.external?.uri){let W=$.external.registry.get(I)?.id;if(!W)throw Error("Schema is missing an `id` property");_.$id=$.external.uri(W)}bQ(_,G.defId?G.schema:G.def??G.schema);let J=$.metadataRegistry.get(I)?.id;if(J!==void 0&&_.id===J)delete _.id;let Y=$.external?.defs??{};if(!$.external||$.sharedEmitDoneFor!==$.external)for(let W of $.seen.entries()){let R=W[1];if(R.def&&R.defId){if(R.def.id===R.defId)delete R.def.id;kU(Y,R.defId,R.def)}}if($.external)$.sharedEmitDoneFor=$.external;if($.external);else if(Object.keys(Y).length>0)if($.target==="draft-2020-12")_.$defs=Y;else _.definitions=Y;try{let W=JSON.parse(JSON.stringify(_));return Object.defineProperty(W,"~standard",{value:{...I["~standard"],jsonSchema:{input:lG(I,"input",$.processors),output:lG(I,"output",$.processors)}},enumerable:!1,writable:!1}),W}catch(W){throw Error("Error converting schema to JSON.")}}function sU($,I){let G=I??{seen:new Set};if(G.seen.has($))return!1;G.seen.add($);let Z=$._zod.def;if(Z.type==="transform")return!0;if(Z.type==="array")return sU(Z.element,G);if(Z.type==="set")return sU(Z.valueType,G);if(Z.type==="lazy")return sU(Z.getter(),G);if(Z.type==="promise"||Z.type==="optional"||Z.type==="nonoptional"||Z.type==="nullable"||Z.type==="readonly"||Z.type==="default"||Z.type==="prefault"||Z.type==="catch")return sU(Z.innerType,G);if(Z.type==="intersection")return sU(Z.left,G)||sU(Z.right,G);if(Z.type==="record"||Z.type==="map")return sU(Z.keyType,G)||sU(Z.valueType,G);if(Z.type==="pipe"){if($._zod.traits.has("$ZodCodec"))return!0;return sU(Z.in,G)||sU(Z.out,G)}if(Z.type==="object"){for(let _ in Z.shape)if(sU(Z.shape[_],G))return!0;return!1}if(Z.type==="union"){for(let _ of Z.options)if(sU(_,G))return!0;return!1}if(Z.type==="tuple"){for(let _ of Z.items)if(sU(_,G))return!0;if(Z.rest&&sU(Z.rest,G))return!0;return!1}return!1}var QA=($,I={})=>(G)=>{let Z=f2({...G,processors:I});return W1($,Z),y2(Z,$),b2(Z,$)},lG=($,I,G={})=>(Z)=>{let{libraryOptions:_,target:J}=Z??{},Y=f2({..._??{},target:J,io:I,processors:G});return W1($,Y),y2(Y,$),b2(Y,$)};var mG=($,I,G)=>{if($[I]===void 0||G>$[I])$[I]=G},dG=($,I,G)=>{if($[I]===void 0||G<$[I])$[I]=G},wj=($,I)=>{mG($,"minimum",I),dG($,"maximum",I)},bj=($,I)=>{if($.multipleOf??($.multipleOf=[]),!$.multipleOf.includes(I))$.multipleOf.push(I)},hj=($,I)=>{$.patterns??($.patterns=new Set),$.patterns.add(I)},uj=($,I)=>{$.mime=$.mime?$.mime.filter((G)=>I.includes(G)):[...I]},nj=($,I)=>{if($.format=I,I.includes("int"))$.isInt=!0},xj=($,I)=>mG($,"minimum",I.minimum),fj=($,I)=>dG($,"maximum",I.maximum),yj=($)=>(I,G)=>{nj(I,G.format);let[Z,_]=$[G.format];mG(I,"minimum",Z),dG(I,"maximum",_)},rd={greater_than:($,I)=>mG($,I.inclusive?"minimum":"exclusiveMinimum",I.value),less_than:($,I)=>dG($,I.inclusive?"maximum":"exclusiveMaximum",I.value),multiple_of:($,I)=>bj($,I.value),number_format:yj(_Q),bigint_format:yj(XQ),min_length:xj,max_length:fj,length_equals:($,I)=>wj($,I.length),min_size:xj,max_size:fj,size_equals:($,I)=>wj($,I.size),string_format:($,I)=>{if(nj($,I.format),I.pattern)hj($,I.pattern);if(I.format==="base64"||I.format==="base64url")$.contentEncoding=I.format;if(I.local||I.precision===-1)$.laxFormat=!0},mime_type:($,I)=>uj($,I.mime)};function TU($){let I={},G=$._zod.def,Z=$._zod.traits.has("$ZodCheck")?[$,...G.checks??[]]:G.checks??[];for(let J of Z)rd[J._zod.def.check]?.(I,J._zod.def);let _=$._zod.bag;if(_.minimum!==void 0)mG(I,"minimum",_.minimum);if(_.exclusiveMinimum!==void 0)mG(I,"exclusiveMinimum",_.exclusiveMinimum);if(_.maximum!==void 0)dG(I,"maximum",_.maximum);if(_.exclusiveMaximum!==void 0)dG(I,"exclusiveMaximum",_.exclusiveMaximum);if(_.multipleOf!==void 0)bj(I,_.multipleOf);if(_.format!==void 0){if(I.format??(I.format=_.format),_.format.includes("int"))I.isInt=!0}if(_.mime)uj(I,_.mime);for(let J of _.patterns??[])hj(I,J);return I}var ad={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},sd=new Map([[EO,QH],[AQ,zH]]),pj=($)=>sd.get($)??$,OA=($,I,G,Z)=>{let _=G;_.type="string";let{minimum:J,maximum:Y,format:W,patterns:R,contentEncoding:M,laxFormat:E}=TU($);if(typeof J==="number")_.minLength=J;if(typeof Y==="number")_.maxLength=Y;if(W){if(_.format=ad[W]??W,_.format==="")delete _.format;if(W==="time"||E)delete _.format}if(M)_.contentEncoding=M;if(R&&R.size>0){let T=[...R].map(pj);if(T.length===1)_.pattern=T[0].source;else if(T.length>1)_.allOf=[...T.map((S)=>({...I.target==="draft-07"||I.target==="draft-04"||I.target==="openapi-3.0"?{type:"string"}:{},pattern:S.source}))]}},LA=($,I,G,Z)=>{let _=G,{minimum:J,maximum:Y,multipleOf:W,exclusiveMaximum:R,exclusiveMinimum:M,isInt:E}=TU($);_.type=E?"integer":"number";let T=typeof M==="number"&&M>=(J??Number.NEGATIVE_INFINITY),S=typeof R==="number"&&R<=(Y??Number.POSITIVE_INFINITY),N=I.target==="draft-04"||I.target==="openapi-3.0";if(T)if(N)_.minimum=M,_.exclusiveMinimum=!0;else _.exclusiveMinimum=M;else if(typeof J==="number")_.minimum=J;if(S)if(N)_.maximum=R,_.exclusiveMaximum=!0;else _.exclusiveMaximum=R;else if(typeof Y==="number")_.maximum=Y;if(W){let B=new Set;for(let y of W)if(Number.isFinite(y)&&y!==0)B.add(Math.abs(y));else FU($,I,_,Z,`A multipleOf divisor of ${y} cannot be represented in JSON Schema`);let[x,...w]=B;if(x!==void 0)_.multipleOf=x;if(w.length)_.allOf=[..._.allOf??[],...w.map((y)=>({multipleOf:y}))]}},KA=($,I,G,Z)=>{G.type="boolean"},DA=($,I,G,Z)=>{FU($,I,G,Z,"BigInt cannot be represented in JSON Schema")},WA=($,I,G,Z)=>{FU($,I,G,Z,"Symbols cannot be represented in JSON Schema")},HA=($,I,G,Z)=>{if(I.target==="openapi-3.0")G.type="string",G.nullable=!0,G.enum=[null];else G.type="null"},FA=($,I,G,Z)=>{FU($,I,G,Z,"Undefined cannot be represented in JSON Schema")},TA=($,I,G,Z)=>{FU($,I,G,Z,"Void cannot be represented in JSON Schema")},MA=($,I,G,Z)=>{G.not={}},AA=($,I,G,Z)=>{},EA=($,I,G,Z)=>{},RA=($,I,G,Z)=>{FU($,I,G,Z,"Date cannot be represented in JSON Schema")},PA=($,I,G,Z)=>{let _=$._zod.def,J=HG(_.entries);if(J.length===0){G.not={};return}if(J.every((Y)=>typeof Y==="number"))G.type="number";if(J.every((Y)=>typeof Y==="string"))G.type="string";G.enum=J},VA=($,I,G,Z)=>{let _=$._zod.def;if(_.values.length===0){G.not={};return}let J=[];for(let Y of _.values)if(Y===void 0){if(FU($,I,G,Z,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof Y==="bigint"){if(FU($,I,G,Z,"BigInt literals cannot be represented in JSON Schema"))return;J.push(Number(Y))}else J.push(Y);if(J.length===0);else if(J.length===1){let Y=J[0];if(G.type=Y===null?"null":typeof Y,I.target==="draft-04"||I.target==="openapi-3.0")G.enum=[Y];else G.const=Y}else{if(J.every((Y)=>typeof Y==="number"))G.type="number";if(J.every((Y)=>typeof Y==="string"))G.type="string";if(J.every((Y)=>typeof Y==="boolean"))G.type="boolean";if(J.every((Y)=>Y===null))G.type="null";G.enum=J}},SA=($,I,G,Z)=>{FU($,I,G,Z,"NaN cannot be represented in JSON Schema")},vA=($,I,G,Z)=>{let _=G,J=$._zod.pattern;if(!J)throw Error("Pattern not found in template literal");_.type="string",_.pattern=J.source},CA=($,I,G,Z)=>{let _=G;_.type="string",_.format="binary",_.contentEncoding="binary";let{minimum:J,maximum:Y,mime:W}=TU($);if(J!==void 0)_.minLength=J;if(Y!==void 0)_.maxLength=Y;if(!W)return;if(W.length===0)_.not={};else if(W.length===1)_.contentMediaType=W[0];else _.anyOf=W.map((R)=>({contentMediaType:R}))},qA=($,I,G,Z)=>{G.type="boolean"},NA=($,I,G,Z)=>{FU($,I,G,Z,"Custom types cannot be represented in JSON Schema")},BA=($,I,G,Z)=>{FU($,I,G,Z,"Function types cannot be represented in JSON Schema")},jA=($,I,G,Z)=>{FU($,I,G,Z,"Transforms cannot be represented in JSON Schema")},kA=($,I,G,Z)=>{FU($,I,G,Z,"Map cannot be represented in JSON Schema")},gA=($,I,G,Z)=>{FU($,I,G,Z,"Set cannot be represented in JSON Schema")},wA=($,I,G,Z)=>{let _=G,J=$._zod.def,{minimum:Y,maximum:W}=TU($);if(typeof Y==="number")_.minItems=Y;if(typeof W==="number")_.maxItems=W;_.type="array",_.items=W1(J.element,I,{...Z,path:[...Z.path,"items"]})};function hQ($){let I=$._zod.def;if(I.type==="pipe"&&I.in._zod.traits.has("$ZodTransform"))return hQ(I.out);if(I.type==="catch")return hQ(I.innerType);return $._zod.optin}var xA=($,I,G,Z)=>{let _=G,J=$._zod.def,Y=J.shape;if(Object.getOwnPropertySymbols(Y).length&&FU($,I,_,Z,"Symbol keys cannot be represented in JSON Schema"))return;_.type="object",_.properties={};for(let M in Y)kU(_.properties,M,W1(Y[M],I,{...Z,path:[...Z.path,"properties",M]}));let R=[];for(let M of Object.keys(Y)){let E=J.shape[M];if(I.io==="input"?hQ(E)===void 0:E._zod.optout===void 0)R.push(M)}if(R.length>0)_.required=R;if(J.catchall?._zod.def.type==="never")_.additionalProperties=!1;else if(!J.catchall){if(I.io==="output")_.additionalProperties=!1}else if(J.catchall)_.additionalProperties=W1(J.catchall,I,{...Z,path:[...Z.path,"additionalProperties"]})},K5=($,I,G,Z)=>{let _=$._zod.def,J=_.inclusive===!1,Y=_.options.map((W,R)=>W1(W,I,{...Z,path:[...Z.path,J?"oneOf":"anyOf",R]}));if(J)G.oneOf=Y;else G.anyOf=Y},fA=($,I,G,Z)=>{let _=$._zod.def,J=W1(_.left,I,{...Z,path:[...Z.path,"allOf",0]}),Y=W1(_.right,I,{...Z,path:[...Z.path,"allOf",1]}),W=(M)=>("allOf"in M)&&Object.keys(M).length===1,R=[...W(J)?J.allOf:[J],...W(Y)?Y.allOf:[Y]];G.allOf=R,I.intersections.push(R)},yA=($,I,G,Z)=>{let _=G,J=$._zod.def;_.type="array";let Y=I.target==="draft-2020-12"?"prefixItems":"items",W=I.target==="draft-2020-12"?"items":I.target==="openapi-3.0"?"items":"additionalItems",R=J.items.map((x,w)=>W1(x,I,{...Z,path:[...Z.path,Y,w]})),M=J.rest?W1(J.rest,I,{...Z,path:[...Z.path,W,...I.target==="openapi-3.0"?[J.items.length]:[]]}):null,E=J.items.length;while(E>0){let x=J.items[E-1];if(!(I.io==="input"?hQ(x)!==void 0:x._zod.optout==="optional"))break;E--}let T=J.items.length,S=!J.rest;if(I.target==="draft-2020-12"){if(_.prefixItems=R,S)_.items=!1;else if(M)_.items=M;if(E>0)_.minItems=E;if(S)_.maxItems=T}else if(I.target==="openapi-3.0"){if(_.items={anyOf:R},M)_.items.anyOf.push(M);if(E>0)_.minItems=E;if(S)_.maxItems=T}else{if(_.items=R,S)_.additionalItems=!1;else if(M)_.additionalItems=M;if(E>0)_.minItems=E;if(S)_.maxItems=T}let{minimum:N,maximum:B}=TU($);if(typeof N==="number")_.minItems=N;if(typeof B==="number")_.maxItems=B};function zA($,I,G){if(I.$ref){if(G.has(I))return I;G.add(I);let B=$.get(I)?.def;if(!B)return I;let x=zA($,B,G);return x===B?I:x}for(let B of["anyOf","oneOf"]){let x=I[B];if(!Array.isArray(x))continue;let w=x.map((y)=>zA($,y,G));if(w.some((y,g)=>y!==x[g]))I={...I,[B]:w}}let Z=Array.isArray(I.type)?I.type:[I.type],_=!Z.includes("string")&&Z.some((B)=>B==="number"||B==="integer"),J=I.enum??(I.const!==void 0?[I.const]:void 0);if(!_&&!J?.some((B)=>typeof B==="number"))return I;let{minimum:Y,maximum:W,exclusiveMinimum:R,exclusiveMaximum:M,multipleOf:E,format:T,id:S,...N}=I;if(N.enum)N.enum=N.enum.map((B)=>typeof B==="number"?String(B):B);else if(typeof N.const==="number")N.const=String(N.const);if(!_)return N;if(N.type="string",!J)N.pattern=(Z.includes("number")?aI:KQ).source;return N}var ZA=new WeakMap;function ed($){let I=new Map;for(let Z of $.seen.values())if(Z.def&&!I.has(Z.schema))I.set(Z.schema,Z);let G=new Map;for(let Z of ZA.get($)??[]){let _=$.seen.get(Z),J=(_?.def??_?.schema)?.propertyNames;if(!J||J===!0||G.has(J))continue;let Y=zA(I,J,new Set);if(Y!==J)G.set(J,Y)}if(!G.size)return;for(let Z of $.seen.values())for(let _ of[Z.schema,Z.def]){let J=_&&G.get(_.propertyNames);if(J)_.propertyNames=J}}var bA=($,I,G,Z)=>{let _=G,J=$._zod.def;_.type="object";let Y=J.keyType,W=TU(Y).patterns;if(J.mode==="loose"&&W&&W.size>0){let E=W1(J.valueType,I,{...Z,path:[...Z.path,"patternProperties","*"]});_.patternProperties={};for(let T of W)kU(_.patternProperties,pj(T).source,E)}else{if(I.target==="draft-07"||I.target==="draft-2020-12"){_.propertyNames=W1(J.keyType,I,{...Z,path:[...Z.path,"propertyNames"]});let E=ZA.get(I);if(!E)E=[],ZA.set(I,E),I.deferred.push(()=>ed(I));E.push($)}_.additionalProperties=W1(J.valueType,I,{...Z,path:[...Z.path,"additionalProperties"]})}let R=Y._zod.values,M=I.io==="input"&&hQ(J.valueType)!==void 0;if(R&&!J.partial&&!M){let E=[...R].filter((T)=>typeof T==="string"||typeof T==="number");if(E.length>0)_.required=E.map(String)}},hA=($,I,G,Z)=>{let _=$._zod.def,J=W1(_.innerType,I,Z),Y=I.seen.get($);if(I.target==="openapi-3.0")Y.ref=_.innerType,G.nullable=!0;else G.anyOf=[J,{type:"null"}]},uA=($,I,G,Z)=>{let _=$._zod.def;W1(_.innerType,I,Z);let J=I.seen.get($);J.ref=_.innerType},nA=Symbol();function cj($,I,G,Z,_){let J=!1,Y=JSON.stringify($,(W,R)=>{if(typeof R!=="bigint")return R;return J=!0,null});if(!J)return JSON.parse(Y);return FU(I,G,Z,_,"BigInt defaults cannot be represented in JSON Schema"),nA}var pA=($,I,G,Z)=>{let _=$._zod.def;W1(_.innerType,I,Z);let J=I.seen.get($);J.ref=_.innerType;let Y=cj(_.defaultValue,$,I,G,Z);if(Y!==nA)G.default=Y},cA=($,I,G,Z)=>{let _=$._zod.def;W1(_.innerType,I,Z);let J=I.seen.get($);if(J.ref=_.innerType,I.io!=="input")return;let Y=cj(_.defaultValue,$,I,G,Z);if(Y!==nA)G._prefault=Y},lA=($,I,G,Z)=>{let _=$._zod.def;W1(_.innerType,I,Z);let J=I.seen.get($);J.ref=_.innerType;let Y;try{Y=_.catchValue(void 0)}catch{FU($,I,G,Z,"Dynamic catch values are not supported in JSON Schema");return}G.default=Y},mA=($,I,G,Z)=>{let _=$._zod.def,J=_.in._zod.traits.has("$ZodTransform"),Y=I.io==="input"?J?_.out:_.in:_.out;W1(Y,I,Z);let W=I.seen.get($);W.ref=Y},dA=($,I,G,Z)=>{let _=$._zod.def;W1(_.innerType,I,Z);let J=I.seen.get($);J.ref=_.innerType,G.readOnly=!0},iA=($,I,G,Z)=>{let _=$._zod.def;W1(_.innerType,I,Z);let J=I.seen.get($);J.ref=_.innerType},D5=($,I,G,Z)=>{let _=$._zod.def;W1(_.innerType,I,Z);let J=I.seen.get($);J.ref=_.innerType},oA=($,I,G,Z)=>{let _=$._zod.innerType;W1(_,I,Z);let J=I.seen.get($);J.ref=_},L5={string:OA,number:LA,boolean:KA,bigint:DA,symbol:WA,null:HA,undefined:FA,void:TA,never:MA,any:AA,unknown:EA,date:RA,enum:PA,literal:VA,nan:SA,template_literal:vA,file:CA,success:qA,custom:NA,function:BA,transform:jA,map:kA,set:gA,array:wA,object:xA,union:K5,intersection:fA,tuple:yA,record:bA,nullable:hA,nonoptional:uA,default:pA,prefault:cA,catch:lA,pipe:mA,readonly:dA,promise:iA,optional:D5,lazy:oA};function W5($,I){if("_idmap"in $){let Z=$,_=f2({...I,processors:L5}),J={};for(let R of Z._idmap.entries()){let[M,E]=R;W1(E,_)}let Y={},W={registry:Z,uri:I?.uri,defs:J};_.external=W;for(let R of Z._idmap.entries()){let[M,E]=R;y2(_,E),kU(Y,M,b2(_,E))}if(Object.keys(J).length>0){let R=_.target==="draft-2020-12"?"$defs":"definitions";Y.__shared={[R]:J}}return{schemas:Y}}let G=f2({...I,processors:L5});return W1($,G),y2(G,$),b2(G,$)}class tA{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter($){this.ctx.counter=$}get seen(){return this.ctx.seen}constructor($){let I=$?.target??"draft-2020-12";if(I==="draft-4")I="draft-04";if(I==="draft-7")I="draft-07";this.ctx=f2({processors:L5,target:I,...$?.metadata&&{metadata:$.metadata},...$?.unrepresentable&&{unrepresentable:$.unrepresentable},...$?.override&&{override:$.override},...$?.io&&{io:$.io}})}process($,I={path:[],schemaPath:[]}){return W1($,this.ctx,I)}emit($,I){if(I){if(I.cycles)this.ctx.cycles=I.cycles;if(I.reused)this.ctx.reused=I.reused;if(I.external)this.ctx.external=I.external}this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,y2(this.ctx,$);let G=b2(this.ctx,$),{"~standard":Z,..._}=G;return _}}var lj={};var $Y={};LU($Y,{xor:()=>u3,xid:()=>Y3,void:()=>w3,uuidv7:()=>sj,uuidv6:()=>aj,uuidv4:()=>rj,uuid:()=>tj,url:()=>ej,unknown:()=>r4,union:()=>eG,undefined:()=>k3,ulid:()=>G3,uint64:()=>B3,uint32:()=>C3,tuple:()=>C7,transform:()=>n5,templateLiteral:()=>$k,symbol:()=>j3,superRefine:()=>$E,success:()=>r3,stringbool:()=>Qk,stringFormat:()=>M3,string:()=>uQ,strictObject:()=>b3,set:()=>m3,refine:()=>e7,record:()=>q7,readonly:()=>i7,promise:()=>Uk,preprocess:()=>Zk,prefault:()=>h7,pipe:()=>M5,partialRecord:()=>p3,optional:()=>a4,object:()=>y3,number:()=>O7,nullish:()=>t3,nullable:()=>nQ,null:()=>H7,nonoptional:()=>u7,never:()=>h5,nativeEnum:()=>d3,nanoid:()=>I3,nan:()=>a3,meta:()=>Yk,map:()=>l3,mac:()=>z3,looseRecord:()=>c3,looseObject:()=>h3,literal:()=>i3,lazy:()=>r7,ksuid:()=>J3,keyof:()=>f3,jwt:()=>T3,json:()=>zk,ipv6:()=>Z3,ipv4:()=>Q3,invertCodec:()=>e3,intersection:()=>S7,int64:()=>N3,int32:()=>v3,int:()=>T5,instanceof:()=>Jk,iban:()=>F3,httpUrl:()=>$3,hostname:()=>A3,hex:()=>E3,hash:()=>P3,guid:()=>oj,function:()=>Ik,float64:()=>S3,float32:()=>V3,file:()=>o3,exactOptional:()=>w7,enum:()=>u5,emoji:()=>U3,email:()=>ij,e164:()=>W3,discriminatedUnion:()=>n3,describe:()=>Gk,date:()=>x3,custom:()=>Xk,currencyCode:()=>R3,cuid2:()=>X3,cuid:()=>_3,creditCard:()=>H3,codec:()=>s3,cidrv6:()=>L3,cidrv4:()=>O3,check:()=>_k,catch:()=>c7,boolean:()=>L7,bigint:()=>q3,base64url:()=>D3,base64:()=>K3,array:()=>lQ,any:()=>g3,_function:()=>Ik,_default:()=>y7,_ZodString:()=>A5,ZodXor:()=>R7,ZodXID:()=>q5,ZodVoid:()=>A7,ZodUnknown:()=>T7,ZodUnion:()=>dQ,ZodUndefined:()=>D7,ZodUUID:()=>I_,ZodURL:()=>pQ,ZodULID:()=>C5,ZodType:()=>p$,ZodTuple:()=>v7,ZodTransform:()=>g7,ZodTemplateLiteral:()=>o7,ZodSymbol:()=>K7,ZodSuccess:()=>n7,ZodStringFormat:()=>H1,ZodString:()=>tG,ZodSet:()=>B7,ZodRecord:()=>iG,ZodReadonly:()=>d7,ZodPromise:()=>a7,ZodPreprocess:()=>m7,ZodPrefault:()=>b7,ZodPipe:()=>oQ,ZodOptional:()=>iQ,ZodObject:()=>mQ,ZodNumberFormat:()=>$X,ZodNumber:()=>rG,ZodNullable:()=>x7,ZodNull:()=>W7,ZodNonOptional:()=>c5,ZodNever:()=>M7,ZodNanoID:()=>V5,ZodNaN:()=>l7,ZodMap:()=>N7,ZodMAC:()=>Q7,ZodLiteral:()=>j7,ZodLazy:()=>t7,ZodKSUID:()=>N5,ZodJWT:()=>y5,ZodIntersection:()=>V7,ZodInstanceOf:()=>UE,ZodISOTime:()=>n2,ZodISODuration:()=>p2,ZodISODateTime:()=>h2,ZodISODate:()=>u2,ZodIPv6:()=>j5,ZodIPv4:()=>B5,ZodIBAN:()=>Z7,ZodGUID:()=>R5,ZodFunction:()=>s7,ZodFile:()=>k7,ZodExactOptional:()=>p5,ZodEnum:()=>oG,ZodEmoji:()=>P5,ZodEmail:()=>E5,ZodE164:()=>f5,ZodDiscriminatedUnion:()=>P7,ZodDefault:()=>f7,ZodDate:()=>cQ,ZodCustomStringFormat:()=>e4,ZodCustom:()=>rQ,ZodCreditCard:()=>z7,ZodCodec:()=>tQ,ZodCatch:()=>p7,ZodCUID2:()=>v5,ZodCUID:()=>S5,ZodCIDRv6:()=>g5,ZodCIDRv4:()=>k5,ZodBoolean:()=>aG,ZodBigIntFormat:()=>b5,ZodBigInt:()=>sG,ZodBase64URL:()=>x5,ZodBase64:()=>w5,ZodArray:()=>E7,ZodAny:()=>F7});var H5={};LU(H5,{uppercase:()=>gG,trim:()=>uG,toUpperCase:()=>pG,toLowerCase:()=>nG,startsWith:()=>xG,slugify:()=>cG,size:()=>d4,regex:()=>jG,property:()=>O5,properties:()=>yG,positive:()=>J5,overwrite:()=>FI,normalize:()=>hG,nonpositive:()=>z5,nonnegative:()=>Z5,negative:()=>Q5,multipleOf:()=>w2,minSize:()=>U_,minLength:()=>y_,mime:()=>bG,maxSize:()=>x2,maxLength:()=>i4,lte:()=>x6,lt:()=>eI,lowercase:()=>kG,length:()=>o4,includes:()=>wG,gte:()=>f6,gt:()=>$_,endsWith:()=>fG});var mj=new WeakSet([Object.prototype,Error.prototype]);function F5($,I,G){Object.defineProperty($,I,{configurable:!0,enumerable:!1,get(){let Z=G(this);return Object.defineProperty(this,I,{value:Z,configurable:!0,writable:!0}),Z},set(Z){Object.defineProperty(this,I,{value:Z,configurable:!0,writable:!0})}})}var dj=($,I)=>{pW.init($,I),$.name="ZodError";let G=Object.getPrototypeOf($);if(mj.has(G))return;mj.add(G),F5(G,"format",(Z)=>(_)=>zQ(Z,_)),F5(G,"flatten",(Z)=>(_)=>QQ(Z,_)),F5(G,"addIssue",(Z)=>(_)=>{Z.issues.push(_),Z.message=JSON.stringify(Z.issues,FG,2)}),F5(G,"addIssues",(Z)=>(_)=>{Z.issues.push(..._),Z.message=JSON.stringify(Z.issues,FG,2)}),Object.defineProperty(G,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}})},Ui=m0("ZodError",dj),K6=m0("ZodError",dj,void 0,{Parent:Error});var rA=EG(K6),aA=RG(K6),sA=PG(K6),eA=VG(K6),$7=sZ(K6),U7=eZ(K6),I7=$O(K6),_7=UO(K6),X7=IO(K6),G7=_O(K6),Y7=XO(K6),J7=GO(K6);function _i(){if(!SU.localeError)IU(qQ())}function s4(){if(!SU.memoizer)IU({memoizer:CQ()})}var p$=m0("ZodType",($,I)=>{return _i(),y$.init($,I),$.def=I,$.type=I.type,$},{check(...$){let I=this.def;return this.clone(G$.mergeDefs(I,{checks:[...I.checks??[],...$.map((G)=>typeof G==="function"?{_zod:{check:G,def:{check:"custom"},onattach:[]}}:G)]}),{parent:!0})},with(...$){return this.check(...$)},clone($,I){return K1(this,$,I)},brand(){return this},register($,I){return $.add(this,I),this},refine($,I){return this.check(e7($,I))},superRefine($,I){return this.check($E($,I))},overwrite($){return this.check(FI($))},optional(){return a4(this)},exactOptional(){return w7(this)},nullable(){return nQ(this)},nullish(){return a4(nQ(this))},nonoptional($){return u7(this,$)},array(){return lQ(this)},or($){return eG([this,$])},and($){return S7(this,$)},transform($){return M5(this,n5($))},default($){return y7(this,$)},prefault($){return h7(this,$)},catch($){return c7(this,$)},pipe($){return M5(this,$)},readonly(){return i7(this)},describe($){let I=this.clone();return gU.add(I,{description:$}),I},meta(...$){if($.length===0)return gU.get(this);let I=this.clone();return gU.add(I,$[0]),I},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply($,...I){return I.length===0?$(this):$(this,...I)},get "~standard"(){return G$.hide(this,"~standard",{...HO(this),jsonSchema:{input:lG(this,"input"),output:lG(this,"output")}})},set "~standard"($){G$.own(this,"~standard",$)},parse:function $(I,G){return rA(this,I,G,{callee:$})},parseAsync:async function $(I,G){return await aA(this,I,G,{callee:$})},safeParse($,I){return sA(this,$,I)},async safeParseAsync($,I){return eA(this,$,I)},get spa(){return this?.safeParseAsync},set spa($){G$.own(this,"spa",$)},validate($,I){return ZQ(this,$,I)},validateAsync($,I){return OQ(this,$,I)},encode:function $(I,G){return $7(this,I,G,{callee:$})},decode:function $(I,G){return U7(this,I,G,{callee:$})},encodeAsync:async function $(I,G){return await I7(this,I,G,{callee:$})},decodeAsync:async function $(I,G){return await _7(this,I,G,{callee:$})},safeEncode($,I){return X7(this,$,I)},safeDecode($,I){return G7(this,$,I)},async safeEncodeAsync($,I){return Y7(this,$,I)},async safeDecodeAsync($,I){return J7(this,$,I)},toJSONSchema($){return QA(this,{})($)},get description(){return gU.get(this)?.description},get _def(){return this._zod.def}}),A5=m0("_ZodString",($,I)=>{n4.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>OA($,G,Z,_)},G$.derived({format:($)=>TU($).format??null,minLength:($)=>TU($).minimum??null,maxLength:($)=>TU($).maximum??null},{regex(...$){return this.check(jG(...$))},includes(...$){return this.check(wG(...$))},startsWith(...$){return this.check(xG(...$))},endsWith(...$){return this.check(fG(...$))},min(...$){return this.check(y_(...$))},max(...$){return this.check(i4(...$))},length(...$){return this.check(o4(...$))},nonempty(...$){return this.check(y_(1,...$))},lowercase($){return this.check(kG($))},uppercase($){return this.check(gG($))},trim(){return this.check(uG())},normalize(...$){return this.check(hG(...$))},toLowerCase(){return this.check(nG())},toUpperCase(){return this.check(pG())},slugify(){return this.check(cG())}})),tG=m0("ZodString",($,I)=>{n4.init($,I),A5.init($,I)},{email($){return this.check(uO(E5,$))},url($){return this.check(gQ(pQ,$))},jwt($){return this.check(Y5(y5,$))},emoji($){return this.check(dO(P5,$))},guid($){return this.check(nO(R5,$))},uuid($){return this.check(pO(I_,$))},uuidv4($){return this.check(cO(I_,$))},uuidv6($){return this.check(lO(I_,$))},uuidv7($){return this.check(mO(I_,$))},nanoid($){return this.check(iO(V5,$))},cuid($){return this.check(oO(S5,$))},cuid2($){return this.check(tO(v5,$))},ulid($){return this.check(rO(C5,$))},base64($){return this.check(_5(w5,$))},base64url($){return this.check(X5(x5,$))},xid($){return this.check(aO(q5,$))},ksuid($){return this.check(sO(N5,$))},ipv4($){return this.check(eO(B5,$))},ipv6($){return this.check($5(j5,$))},cidrv4($){return this.check(U5(k5,$))},cidrv6($){return this.check(I5(g5,$))},e164($){return this.check(G5(f5,$))},datetime($){return this.check(wQ(h2,$))},date($){return this.check(xQ(u2,$))},time($){return this.check(fQ(n2,$))},duration($){return this.check(yQ(p2,$))}});function uQ($){return VM(tG,$)}var H1=m0("ZodStringFormat",($,I)=>{D1.init($,I),A5.init($,I)}),h2=m0("ZodISODateTime",($,I)=>{QF.init($,I),H1.init($,I)}),u2=m0("ZodISODate",($,I)=>{zF.init($,I),H1.init($,I)}),n2=m0("ZodISOTime",($,I)=>{ZF.init($,I),H1.init($,I)}),p2=m0("ZodISODuration",($,I)=>{OF.init($,I),H1.init($,I)}),E5=m0("ZodEmail",($,I)=>{aH.init($,I),H1.init($,I)});function ij($){return uO(E5,$)}var R5=m0("ZodGUID",($,I)=>{tH.init($,I),H1.init($,I)});function oj($){return nO(R5,$)}var I_=m0("ZodUUID",($,I)=>{rH.init($,I),H1.init($,I)});function tj($){return pO(I_,$)}function rj($){return cO(I_,$)}function aj($){return lO(I_,$)}function sj($){return mO(I_,$)}var pQ=m0("ZodURL",($,I)=>{$F.init($,I),H1.init($,I)});function ej($){return gQ(pQ,$)}function $3($){return gQ(pQ,{protocol:LQ,hostname:OH,...G$.normalizeParams($)})}var P5=m0("ZodEmoji",($,I)=>{UF.init($,I),H1.init($,I)});function U3($){return dO(P5,$)}var V5=m0("ZodNanoID",($,I)=>{IF.init($,I),H1.init($,I)});function I3($){return iO(V5,$)}var S5=m0("ZodCUID",($,I)=>{_F.init($,I),H1.init($,I)});function _3($){return oO(S5,$)}var v5=m0("ZodCUID2",($,I)=>{XF.init($,I),H1.init($,I)});function X3($){return tO(v5,$)}var C5=m0("ZodULID",($,I)=>{GF.init($,I),H1.init($,I)});function G3($){return rO(C5,$)}var q5=m0("ZodXID",($,I)=>{YF.init($,I),H1.init($,I)});function Y3($){return aO(q5,$)}var N5=m0("ZodKSUID",($,I)=>{JF.init($,I),H1.init($,I)});function J3($){return sO(N5,$)}var B5=m0("ZodIPv4",($,I)=>{LF.init($,I),H1.init($,I)});function Q3($){return eO(B5,$)}var Q7=m0("ZodMAC",($,I)=>{DF.init($,I),H1.init($,I)});function z3($){return vM(Q7,$)}var j5=m0("ZodIPv6",($,I)=>{KF.init($,I),H1.init($,I)});function Z3($){return $5(j5,$)}var k5=m0("ZodCIDRv4",($,I)=>{WF.init($,I),H1.init($,I)});function O3($){return U5(k5,$)}var g5=m0("ZodCIDRv6",($,I)=>{HF.init($,I),H1.init($,I)});function L3($){return I5(g5,$)}var w5=m0("ZodBase64",($,I)=>{FF.init($,I),H1.init($,I)});function K3($){return _5(w5,$)}var x5=m0("ZodBase64URL",($,I)=>{TF.init($,I),H1.init($,I)});function D3($){return X5(x5,$)}var f5=m0("ZodE164",($,I)=>{MF.init($,I),H1.init($,I)});function W3($){return G5(f5,$)}var z7=m0("ZodCreditCard",($,I)=>{AF.init($,I),H1.init($,I)});function H3($){return CM(z7,$)}var Z7=m0("ZodIBAN",($,I)=>{EF.init($,I),H1.init($,I)});function F3($){return qM(Z7,$)}var y5=m0("ZodJWT",($,I)=>{RF.init($,I),H1.init($,I)});function T3($){return Y5(y5,$)}var e4=m0("ZodCustomStringFormat",($,I)=>{PF.init($,I),H1.init($,I)});function M3($,I,G={}){return t4(e4,$,I,G)}function A3($){return t4(e4,"hostname",ZH,$)}function E3($){return t4(e4,"hex",SH,$)}function R3($){return t4(e4,"currency_code",KH,$)}function P3($,I){let G=I?.enc??"hex",Z=`${$}_${G}`,_=_I[Z];if(!_)throw Error(`Unrecognized hash format: ${Z}`);return t4(e4,Z,_,I)}var rG=m0("ZodNumber",($,I)=>{vO.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>LA($,G,Z,_),$.isFinite=!0},G$.derived({minValue:($)=>{let{minimum:I,exclusiveMinimum:G}=TU($);return Math.max(I??Number.NEGATIVE_INFINITY,G??Number.NEGATIVE_INFINITY)},maxValue:($)=>{let{maximum:I,exclusiveMaximum:G}=TU($);return Math.min(I??Number.POSITIVE_INFINITY,G??Number.POSITIVE_INFINITY)},isInt:($)=>{let{isInt:I,multipleOf:G}=TU($);return!!I||!!G?.some(Number.isSafeInteger)},format:($)=>TU($).format??null},{gt($,I){return this.check($_($,I))},gte($,I){return this.check(f6($,I))},min($,I){return this.check(f6($,I))},lt($,I){return this.check(eI($,I))},lte($,I){return this.check(x6($,I))},max($,I){return this.check(x6($,I))},int($){return this.check(T5($))},safe($){return this.check(T5($))},positive($){return this.check($_(0,$))},nonnegative($){return this.check(f6(0,$))},negative($){return this.check(eI(0,$))},nonpositive($){return this.check(x6(0,$))},multipleOf($,I){return this.check(w2($,I))},step($,I){return this.check(w2($,I))},finite(){return this}}));function O7($){return BM(rG,$)}var $X=m0("ZodNumberFormat",($,I)=>{VF.init($,I),rG.init($,I)});function T5($){return kM($X,$)}function V3($){return gM($X,$)}function S3($){return wM($X,$)}function v3($){return xM($X,$)}function C3($){return fM($X,$)}var aG=m0("ZodBoolean",($,I)=>{EQ.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>KA($,G,Z,_)});function L7($){return yM(aG,$)}var sG=m0("ZodBigInt",($,I)=>{CO.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>DA($,G,Z,_)},G$.derived({minValue:($)=>TU($).minimum??null,maxValue:($)=>TU($).maximum??null,format:($)=>TU($).format??null},{gte($,I){return this.check(f6($,I))},min($,I){return this.check(f6($,I))},gt($,I){return this.check($_($,I))},lt($,I){return this.check(eI($,I))},lte($,I){return this.check(x6($,I))},max($,I){return this.check(x6($,I))},positive($){return this.check($_(BigInt(0),$))},negative($){return this.check(eI(BigInt(0),$))},nonpositive($){return this.check(x6(BigInt(0),$))},nonnegative($){return this.check(f6(BigInt(0),$))},multipleOf($,I){return this.check(w2($,I))}}));function q3($){return hM(sG,$)}var b5=m0("ZodBigIntFormat",($,I)=>{SF.init($,I),sG.init($,I)});function N3($){return nM(b5,$)}function B3($){return pM(b5,$)}var K7=m0("ZodSymbol",($,I)=>{vF.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>WA($,G,Z,_)});function j3($){return cM(K7,$)}var D7=m0("ZodUndefined",($,I)=>{CF.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>FA($,G,Z,_)});function k3($){return lM(D7,$)}var W7=m0("ZodNull",($,I)=>{qF.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>HA($,G,Z,_)});function H7($){return mM(W7,$)}var F7=m0("ZodAny",($,I)=>{NF.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>AA($,G,Z,_)});function g3(){return dM(F7)}var T7=m0("ZodUnknown",($,I)=>{BF.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>EA($,G,Z,_)});function r4(){return iM(T7)}var M7=m0("ZodNever",($,I)=>{jF.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>MA($,G,Z,_)});function h5($){return oM(M7,$)}var A7=m0("ZodVoid",($,I)=>{kF.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>TA($,G,Z,_)});function w3($){return tM(A7,$)}var cQ=m0("ZodDate",($,I)=>{gF.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>RA($,G,Z,_),$.min=(G,Z)=>$.check(f6(G,Z)),$.max=(G,Z)=>$.check(x6(G,Z))},G$.derived({minDate:($)=>{let{minimum:I}=TU($);return I?new Date(I):null},maxDate:($)=>{let{maximum:I}=TU($);return I?new Date(I):null}},{}));function x3($){return rM(cQ,$)}var E7=m0("ZodArray",($,I)=>{s4(),wF.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>wA($,G,Z,_),$.element=I.element},{min($,I){return this.check(y_($,I))},nonempty($){return this.check(y_(1,$))},max($,I){return this.check(i4($,I))},length($,I){return this.check(o4($,I))},unwrap(){return this.element}});function lQ($,I){return eM(E7,$,I)}function f3($){let I=$._zod.def.shape;return u5(Object.keys(I))}var mQ=m0("ZodObject",($,I)=>{s4(),xF.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>xA($,G,Z,_),G$.installLazyProp($,"shape",(G)=>G._zod.def.shape,!1)},{keyof(){return u5(Object.keys(this._zod.def.shape))},catchall($){return this.clone(G$.mergeDefs(this._zod.def,{catchall:$}))},passthrough(){return this.clone(G$.mergeDefs(this._zod.def,{catchall:r4()}))},loose(){return this.clone(G$.mergeDefs(this._zod.def,{catchall:r4()}))},strict(){return this.clone(G$.mergeDefs(this._zod.def,{catchall:h5()}))},strip(){return this.clone(G$.mergeDefs(this._zod.def,{catchall:void 0}))},extend($){return G$.extend(this,$)},safeExtend($){return G$.safeExtend(this,$)},merge($){return G$.merge(this,$)},pick($){return G$.pick(this,$)},omit($){return G$.omit(this,$)},partial(...$){return G$.partial(iQ,this,$[0])},exactPartial(...$){return G$.partial(p5,this,$[0],"exactPartial")},required(...$){return G$.required(c5,this,$[0])}});function y3($,I){let G={type:"object",shape:$??{},...G$.normalizeParams(I)};return new mQ(G)}function b3($,I){return new mQ({type:"object",shape:$,catchall:h5(),...G$.normalizeParams(I)})}function h3($,I){return new mQ({type:"object",shape:$,catchall:r4(),...G$.normalizeParams(I)})}var dQ=m0("ZodUnion",($,I)=>{RQ.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>K5($,G,Z,_),$.options=I.options});function eG($,I){return new dQ({type:"union",options:$,...G$.normalizeParams(I)})}var R7=m0("ZodXor",($,I)=>{dQ.init($,I),fF.init($,I),$._zod.processJSONSchema=(G,Z,_)=>K5($,G,Z,_),$.options=I.options});function u3($,I){return new R7({type:"union",options:$,inclusive:!1,...G$.normalizeParams(I)})}var P7=m0("ZodDiscriminatedUnion",($,I)=>{dQ.init($,I),bF.init($,I)});function n3($,I,G){return new P7({type:"union",options:I,discriminator:$,...G$.normalizeParams(G)})}var V7=m0("ZodIntersection",($,I)=>{hF.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>fA($,G,Z,_)});function S7($,I){return new V7({type:"intersection",left:$,right:I})}var v7=m0("ZodTuple",($,I)=>{s4(),qO.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>yA($,G,Z,_)},{rest($){return this.clone({...this._zod.def,rest:$})},partial(){let $=this._zod.def;if($.checks?.length)throw Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...$,items:$.items.map((I)=>new iQ({type:"optional",innerType:I}))})}});function C7($,I,G){let Z=I instanceof y$,_=Z?G:I;return new v7({type:"tuple",items:$,rest:Z?I:null,...G$.normalizeParams(_)})}var iG=m0("ZodRecord",($,I)=>{s4(),uF.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>bA($,G,Z,_),$.keyType=I.keyType,$.valueType=I.valueType});function q7($,I,G){if(!I||!I._zod)return new iG({type:"record",keyType:uQ(),valueType:$,...G$.normalizeParams(I)});return new iG({type:"record",keyType:$,valueType:I,...G$.normalizeParams(G)})}function p3($,I,G){return new iG({type:"record",keyType:$,valueType:I,...G$.normalizeParams(G),partial:!0})}function c3($,I,G){return new iG({type:"record",keyType:$,valueType:I,mode:"loose",...G$.normalizeParams(G)})}var N7=m0("ZodMap",($,I)=>{s4(),nF.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>kA($,G,Z,_),$.keyType=I.keyType,$.valueType=I.valueType,$.min=(...G)=>$.check(U_(...G)),$.nonempty=(G)=>$.check(U_(1,G)),$.max=(...G)=>$.check(x2(...G)),$.size=(...G)=>$.check(d4(...G))});function l3($,I,G){return new N7({type:"map",keyType:$,valueType:I,...G$.normalizeParams(G)})}var B7=m0("ZodSet",($,I)=>{s4(),pF.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>gA($,G,Z,_),$.min=(...G)=>$.check(U_(...G)),$.nonempty=(G)=>$.check(U_(1,G)),$.max=(...G)=>$.check(x2(...G)),$.size=(...G)=>$.check(d4(...G))});function m3($,I){return new B7({type:"set",valueType:$,...G$.normalizeParams(I)})}var oG=m0("ZodEnum",($,I)=>{cF.init($,I),p$.init($,I),$._zod.processJSONSchema=(Z,_,J)=>PA($,Z,_,J),$.enum=I.entries,$.options=[...$._zod.values];let G=new Set(Object.keys(I.entries));$.extract=(Z,_)=>{let J={};for(let Y of Z)if(G.has(Y))J[Y]=I.entries[Y];else throw Error(`Key ${Y} not found in enum`);return new oG({...I,checks:[],...G$.normalizeParams(_),entries:J})},$.exclude=(Z,_)=>{let J={...I.entries};for(let Y of Z)if(G.has(Y))delete J[Y];else throw Error(`Key ${Y} not found in enum`);return new oG({...I,checks:[],...G$.normalizeParams(_),entries:J})}});function u5($,I){let G=Array.isArray($)?Object.fromEntries($.map((Z)=>[Z,Z])):$;return new oG({type:"enum",entries:G,...G$.normalizeParams(I)})}function d3($,I){return new oG({type:"enum",entries:$,...G$.normalizeParams(I)})}var j7=m0("ZodLiteral",($,I)=>{lF.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>VA($,G,Z,_),$.values=new Set(I.values),Object.defineProperty($,"value",{get(){if(I.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return I.values[0]}})});function i3($,I){return new j7({type:"literal",values:Array.isArray($)?$:[$],...G$.normalizeParams(I)})}var k7=m0("ZodFile",($,I)=>{mF.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>CA($,G,Z,_),$.min=(G,Z)=>$.check(U_(G,Z)),$.max=(G,Z)=>$.check(x2(G,Z)),$.mime=(G,Z)=>$.check(bG(Array.isArray(G)?G:[G],Z))});function o3($){return $A(k7,$)}var g7=m0("ZodTransform",($,I)=>{s4(),dF.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>jA($,G,Z,_),$._zod.parse=(G,Z)=>{if(Z.direction==="backward")throw new h4($.constructor.name);G.addIssue=(J)=>{if(typeof J==="string")G.issues.push(G$.issue(J,G.value,I));else{let Y=J;if(Y.fatal)Y.continue=!1;if(Y.code??(Y.code="custom"),!("input"in Y))Y.input=G.value;Y.inst??(Y.inst=$),G.issues.push(G$.issue(Y))}};let _=I.transform(G.value,G);if(_ instanceof Promise)return _.then((J)=>{return G.value=J,G});return G.value=_,G}});function n5($){return new g7({type:"transform",transform:$})}var iQ=m0("ZodOptional",($,I)=>{NO.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>D5($,G,Z,_),$.unwrap=()=>$._zod.def.innerType});function a4($){return new iQ({type:"optional",innerType:$})}var p5=m0("ZodExactOptional",($,I)=>{iF.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>D5($,G,Z,_),$.unwrap=()=>$._zod.def.innerType});function w7($){return new p5({type:"optional",innerType:$})}var x7=m0("ZodNullable",($,I)=>{oF.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>hA($,G,Z,_),$.unwrap=()=>$._zod.def.innerType});function nQ($){return new x7({type:"nullable",innerType:$})}function t3($){return a4(nQ($))}var f7=m0("ZodDefault",($,I)=>{tF.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>pA($,G,Z,_),$.unwrap=()=>$._zod.def.innerType,$.removeDefault=$.unwrap});function y7($,I){return new f7({type:"default",innerType:$,get defaultValue(){return typeof I==="function"?I():G$.shallowClone(I)}})}var b7=m0("ZodPrefault",($,I)=>{rF.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>cA($,G,Z,_),$.unwrap=()=>$._zod.def.innerType});function h7($,I){return new b7({type:"prefault",innerType:$,get defaultValue(){return typeof I==="function"?I():G$.shallowClone(I)}})}var c5=m0("ZodNonOptional",($,I)=>{aF.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>uA($,G,Z,_),$.unwrap=()=>$._zod.def.innerType});function u7($,I){return new c5({type:"nonoptional",innerType:$,...G$.normalizeParams(I)})}var n7=m0("ZodSuccess",($,I)=>{sF.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>qA($,G,Z,_),$.unwrap=()=>$._zod.def.innerType});function r3($){return new n7({type:"success",innerType:$})}var p7=m0("ZodCatch",($,I)=>{eF.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>lA($,G,Z,_),$.unwrap=()=>$._zod.def.innerType,$.removeCatch=$.unwrap});function c7($,I){return new p7({type:"catch",innerType:$,catchValue:typeof I==="function"?I:G$.constantCatch(I)})}var l7=m0("ZodNaN",($,I)=>{$T.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>SA($,G,Z,_)});function a3($){return sM(l7,$)}var oQ=m0("ZodPipe",($,I)=>{BO.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>mA($,G,Z,_),$.in=I.in,$.out=I.out});function M5($,I){return new oQ({type:"pipe",in:$,out:I})}var tQ=m0("ZodCodec",($,I)=>{oQ.init($,I),PQ.init($,I)});function s3($,I,G){return new tQ({type:"pipe",in:$,out:I,transform:G.decode,reverseTransform:G.encode})}function e3($){let I=$._zod.def;return new tQ({type:"pipe",in:I.out,out:I.in,transform:I.reverseTransform,reverseTransform:I.transform})}var m7=m0("ZodPreprocess",($,I)=>{oQ.init($,I),UT.init($,I)}),d7=m0("ZodReadonly",($,I)=>{IT.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>dA($,G,Z,_),$.unwrap=()=>$._zod.def.innerType});function i7($){return new d7({type:"readonly",innerType:$})}var o7=m0("ZodTemplateLiteral",($,I)=>{_T.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>vA($,G,Z,_)});function $k($,I){return new o7({type:"template_literal",parts:$,...G$.normalizeParams(I)})}var t7=m0("ZodLazy",($,I)=>{VQ.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>oA($,G,Z,_),$.unwrap=()=>$._zod.def.getter()});function r7($){return new t7({type:"lazy",getter:$})}var a7=m0("ZodPromise",($,I)=>{GT.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>iA($,G,Z,_),$.unwrap=()=>$._zod.def.innerType});function Uk($){return new a7({type:"promise",innerType:$})}var s7=m0("ZodFunction",($,I)=>{XT.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>BA($,G,Z,_)});function Ik($){return new s7({type:"function",input:Array.isArray($?.input)?C7($?.input):$?.input??lQ(r4()),output:$?.output??r4()})}var rQ=m0("ZodCustom",($,I)=>{YT.init($,I),p$.init($,I),$._zod.processJSONSchema=(G,Z,_)=>NA($,G,Z,_)});function _k($){let I=new A1({check:"custom"});return I._zod.check=$,I}function Xk($,I){return UA(rQ,$??(()=>!0),I)}function e7($,I={}){return IA(rQ,$,I)}function $E($,I){return _A($,I)}var Gk=XA,Yk=GA,UE=m0("ZodInstanceOf",($,I)=>{rQ.init($,I)},{properties($,I){return this.check(yG($,I))}});function Jk($,I={}){let G=new UE({type:"custom",check:"custom",fn:(Z)=>Z instanceof $,abort:!0,...G$.normalizeParams(I)});return G._zod.bag.Class=$,G._zod.check=(Z)=>{if(!(Z.value instanceof $))Z.issues.push({code:"invalid_type",expected:$.name,input:Z.value,inst:G,path:[...G._zod.def.path??[]]})},G}var Qk=(...$)=>YA({Codec:tQ,Boolean:aG,String:tG},...$);function zk($){let I=r7(()=>{return eG([uQ($),O7(),L7(),H7(),lQ(I),q7(uQ(),I)])});return I}function Zk($,I){return new m7({type:"pipe",in:n5($),out:I})}var Xi={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function Gi($){IU({customError:$})}function Yi(){return IU().customError}var IE;(function($){})(IE||(IE={}));var aQ={};LU(aQ,{time:()=>zi,duration:()=>Zi,datetime:()=>Ji,date:()=>Qi,ZodISOTime:()=>n2,ZodISODuration:()=>p2,ZodISODateTime:()=>h2,ZodISODate:()=>u2});function Ji($){return wQ(h2,$)}function Qi($){return xQ(u2,$)}function zi($){return fQ(n2,$)}function Zi($){return yQ(p2,$)}var R$={...$Y,...H5,iso:aQ},Oi=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function Li($,I){let G=$.$schema;if(G==="https://json-schema.org/draft/2020-12/schema")return"draft-2020-12";if(G==="http://json-schema.org/draft-07/schema#")return"draft-7";if(G==="http://json-schema.org/draft-04/schema#")return"draft-4";return I??"draft-2020-12"}function Ok($,I){return $.map((G,Z)=>Z<I?G:G.optional())}function Ki($){return $.replace(/~1/g,"/").replace(/~0/g,"~")}function Di($,I){if(!$.startsWith("#"))throw Error("External $ref is not supported, only local refs (#/...) are allowed");let G=$.slice(1).split("/").filter(Boolean);if(G.length===0)return I.rootSchema;let Z=I.version==="draft-2020-12"?"$defs":"definitions";if(G[0]===Z){let _=G[1]===void 0?void 0:Ki(G[1]);if(!_||!I.defs[_])throw Error(`Reference not found: ${$}`);return I.defs[_]}throw Error(`Reference not found: ${$}`)}function Wi($,I){return R$.transform((Z)=>Z).check((Z)=>{let _=Z.value;if(typeof _!=="object"||_===null||Array.isArray(_))return;let J=Object.getOwnPropertyNames(_);if(I.minProperties!==void 0&&J.length<I.minProperties)Z.issues.push({origin:"object",code:"too_small",minimum:I.minProperties,inclusive:!0,message:`Too small: expected object to have >=${I.minProperties} properties`,input:_,inst:$,continue:!0});if(I.maxProperties!==void 0&&J.length>I.maxProperties)Z.issues.push({origin:"object",code:"too_big",maximum:I.maxProperties,inclusive:!0,message:`Too big: expected object to have <=${I.maxProperties} properties`,input:_,inst:$,continue:!0});if(I.keySchema)for(let Y of J){let W=I.keySchema.safeParse(Y);if(W.success)continue;Z.issues.push({code:"invalid_key",origin:"record",issues:W.error.issues,input:Y,path:[Y],continue:!0})}}).pipe($)}function _E($,I){if($===null)return"z";let G=typeof $;if(G!=="object"){if(G==="number"&&Number.isNaN($))return null;let Z=String($);return`${G[0]}${Z.length}:${Z}`}if(I.has($))return null;I.add($);try{if(Array.isArray($)){let J=[];for(let Y of $){let W=_E(Y,I);if(W===null)return null;J.push(W)}return`a${J.length}:[${J.join(",")}]`}let Z=Object.keys($).sort(),_=[];for(let J of Z){let Y=_E($[J],I);if(Y===null)return null;_.push(`${J.length}:${J}=${Y}`)}return`o${_.length}:{${_.join(",")}}`}finally{I.delete($)}}var Hi=new Set(["items","prefixItems","additionalItems","additionalProperties","contains","propertyNames","not","if","then","else","allOf","anyOf","oneOf","unevaluatedItems","unevaluatedProperties","contentSchema"]),Fi=new Set(["properties","patternProperties","dependentSchemas","dependencies","$defs","definitions"]);function sQ($){if(typeof $!=="object"||$===null)return!1;if(Array.isArray($))return $.some(sQ);if(typeof $.$ref==="string")return!0;return Object.entries($).some(([I,G])=>{if(Hi.has(I))return sQ(G);if(!Fi.has(I)||typeof G!=="object"||G===null)return!1;return Object.values(G).some(sQ)})}function Lk($){return $===1?"element":"elements"}function Ti($,I){return R$.transform((Z)=>Z).check((Z)=>{let _=Z.value;if(!Array.isArray(_))return;if(I.uniqueItems===!0){let J=new Map;for(let Y=0;Y<_.length;Y++){let W=_E(_[Y],new Set);if(W===null)continue;let R=J.get(W);if(R===void 0){J.set(W,Y);continue}Z.issues.push({code:"custom",message:`Array items must be unique: element at index ${Y} duplicates the one at index ${R}`,input:_,path:[Y],continue:!0})}}if(I.containsSchema){let J=I.minContains??1,Y=I.maxContains!==void 0?I.maxContains+1:Number.POSITIVE_INFINITY,W=0;for(let R of _)if(I.containsSchema.safeParse(R).success&&++W>=Y)break;if(W<J)Z.issues.push({code:"custom",message:`Array must contain at least ${J} matching ${Lk(J)}; found ${W}`,input:_,continue:!0});if(I.maxContains!==void 0&&W>I.maxContains)Z.issues.push({code:"custom",message:`Array must contain at most ${I.maxContains} matching ${Lk(I.maxContains)}`,input:_,continue:!0})}}).pipe($)}function Kk($,I){if($===!1)return;if($===void 0||$===!0)return R$.any();return eU($,I)}var Mi=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/;function Dk($,I){if($.not!==void 0){if(typeof $.not==="object"&&Object.keys($.not).length===0)return R$.never();throw Error("not is not supported in Zod (except { not: {} } for never)")}if($.unevaluatedItems!==void 0)throw Error("unevaluatedItems is not supported");if($.unevaluatedProperties!==void 0)throw Error("unevaluatedProperties is not supported");if($.if!==void 0||$.then!==void 0||$.else!==void 0)throw Error("Conditional schemas (if/then/else) are not supported");if($.dependentSchemas!==void 0||$.dependentRequired!==void 0)throw Error("dependentSchemas and dependentRequired are not supported");if($.$ref){let _=$.$ref;if(I.refs.has(_))return I.refs.get(_);if(I.processing.has(_))return R$.lazy(()=>{if(!I.refs.has(_))throw Error(`Circular reference not resolved: ${_}`);return I.refs.get(_)});I.processing.add(_);let J=Di(_,I),Y=eU(J,I);return I.refs.set(_,Y),I.processing.delete(_),Y}if($.enum!==void 0){let _=$.enum;if(I.version==="openapi-3.0"&&$.nullable===!0&&_.length===1&&_[0]===null)return R$.null();if(_.length===0)return R$.never();if(_.length===1)return R$.literal(_[0]);if(_.every((Y)=>typeof Y==="string"))return R$.enum(_);let J=_.map((Y)=>R$.literal(Y));if(J.length<2)return J[0];return R$.union([J[0],J[1],...J.slice(2)])}if($.const!==void 0)return R$.literal($.const);let G=$.type;if(Array.isArray(G)){let _=G.map((J)=>{let Y={...$,type:J};return Dk(Y,I)});if(_.length===0)return R$.never();if(_.length===1)return _[0];return R$.union(_)}if(!G)return R$.any();let Z;switch(G){case"string":{let _=R$.string();if($.format){let J=$.format;if(J==="email")_=_.check(R$.email());else if(J==="uri"||J==="uri-reference")_=_.check(R$.url());else if(J==="uuid"||J==="guid")_=_.check(R$.uuid());else if(J==="date-time")_=_.check(R$.iso.datetime({offset:!0}));else if(J==="date")_=_.check(R$.iso.date());else if(J==="time")_=_.check(R$.regex(Mi));else if(J==="duration")_=_.check(R$.iso.duration());else if(J==="hostname")_=_.check(R$.hostname());else if(J==="ipv4")_=_.check(R$.ipv4());else if(J==="ipv6")_=_.check(R$.ipv6());else if(J==="mac")_=_.check(R$.mac());else if(J==="cidr")_=_.check(R$.cidrv4());else if(J==="cidr-v6")_=_.check(R$.cidrv6());else if(J==="base64")_=_.check(R$.base64());else if(J==="base64url")_=_.check(R$.base64url());else if(J==="e164")_=_.check(R$.e164());else if(J==="credit_card")_=_.check(R$.creditCard());else if(J==="iban")_=_.check(R$.iban());else if(J==="jwt")_=_.check(R$.jwt());else if(J==="emoji")_=_.check(R$.emoji());else if(J==="nanoid")_=_.check(R$.nanoid());else if(J==="cuid")_=_.check(R$.cuid());else if(J==="cuid2")_=_.check(R$.cuid2());else if(J==="ulid")_=_.check(R$.ulid());else if(J==="xid")_=_.check(R$.xid());else if(J==="ksuid")_=_.check(R$.ksuid())}if(typeof $.minLength==="number")_=_.min($.minLength);if(typeof $.maxLength==="number")_=_.max($.maxLength);if($.pattern)_=_.regex(new RegExp($.pattern));Z=_;break}case"number":case"integer":{let _=G==="integer"?R$.number().int():R$.number();if(typeof $.minimum==="number"&&$.exclusiveMinimum!==!0)_=_.min($.minimum);if(typeof $.maximum==="number"&&$.exclusiveMaximum!==!0)_=_.max($.maximum);if(typeof $.exclusiveMinimum==="number")_=_.gt($.exclusiveMinimum);else if($.exclusiveMinimum===!0&&typeof $.minimum==="number")_=_.gt($.minimum);if(typeof $.exclusiveMaximum==="number")_=_.lt($.exclusiveMaximum);else if($.exclusiveMaximum===!0&&typeof $.maximum==="number")_=_.lt($.maximum);if(typeof $.multipleOf==="number")_=_.multipleOf($.multipleOf);Z=_;break}case"boolean":{Z=R$.boolean();break}case"null":{Z=R$.null();break}case"object":{let _={},J=$.properties||{},Y=new Set($.required||[]),W=typeof $.additionalProperties==="object"?eU($.additionalProperties,I):void 0;for(let[T,S]of Object.entries(J)){let N=eU(S,I);kU(_,T,Y.has(T)?N:N.optional())}if($.patternProperties){let T=$.patternProperties,S=Object.keys(T),N=[];for(let x of S){let w=eU(T[x],I),y=R$.string().regex(new RegExp(x));N.push(R$.looseRecord(y,w))}let B=[];if(Object.keys(_).length>0)B.push(R$.object(_).passthrough());if(B.push(...N),B.length===0)Z=R$.object({}).passthrough();else if(B.length===1)Z=B[0];else{let x=R$.intersection(B[0],B[1]);for(let w=2;w<B.length;w++)x=R$.intersection(x,B[w]);Z=x}if($.additionalProperties===!1){let x=Object.keys(_),w=S.map((g)=>new RegExp(g)),y=Z;Z=Z.check((g)=>{if(!UI(g.value))return;let b=[];for(let l of Object.keys(g.value)){if(x.includes(l))continue;if(w.some((i)=>i.test(l)))continue;b.push(l)}if(b.length)g.issues.push({code:"unrecognized_keys",keys:b,input:g.value,inst:y})})}}else{let T=R$.object(_);if($.additionalProperties===!1)Z=T.strict();else if(W)Z=T.catchall(W);else Z=T.passthrough()}let R=$.propertyNames!==void 0&&$.propertyNames!==!0,M=typeof $.minProperties==="number"?$.minProperties:void 0,E=typeof $.maxProperties==="number"?$.maxProperties:void 0;if(R||M!==void 0||E!==void 0){let T;if(R){let S=typeof $.propertyNames==="object"&&$.propertyNames.type===void 0?{type:"string",...$.propertyNames}:$.propertyNames;T=eU(S,I)}Z=Wi(Z,{keySchema:T,minProperties:M,maxProperties:E})}break}case"array":{let{prefixItems:_,items:J}=$;if(_&&Array.isArray(_)){let Y=typeof $.minItems==="number"?$.minItems:0,W=_.map((T)=>eU(T,I)),R=Ok(W,Y),M=!Array.isArray(J)?Kk(J,I):void 0,E=R$.tuple(R);if(Z=M?E.rest(M):E,typeof $.minItems==="number")Z=Z.check(R$.minLength($.minItems));if(typeof $.maxItems==="number")Z=Z.check(R$.maxLength($.maxItems))}else if(Array.isArray(J)){let Y=typeof $.minItems==="number"?$.minItems:0,W=J.map((T)=>eU(T,I)),R=Ok(W,Y),M=Kk($.additionalItems,I),E=R$.tuple(R);if(Z=M?E.rest(M):E,typeof $.minItems==="number")Z=Z.check(R$.minLength($.minItems));if(typeof $.maxItems==="number")Z=Z.check(R$.maxLength($.maxItems))}else if(J!==void 0){let Y=eU(J,I),W=R$.array(Y);if(typeof $.minItems==="number")W=W.min($.minItems);if(typeof $.maxItems==="number")W=W.max($.maxItems);Z=W}else Z=R$.array(R$.any());if($.uniqueItems===!0||$.contains!==void 0)Z=Ti(Z,{uniqueItems:$.uniqueItems===!0,containsSchema:$.contains!==void 0?eU($.contains,I):void 0,minContains:typeof $.minContains==="number"?$.minContains:void 0,maxContains:typeof $.maxContains==="number"?$.maxContains:void 0});break}default:throw Error(`Unsupported type: ${G}`)}return Z}function eU($,I){if(typeof $==="boolean")return $?R$.any():R$.never();let G=Dk($,I),Z=$.type||$.enum!==void 0||$.const!==void 0;if($.anyOf&&Array.isArray($.anyOf)){let W=$.anyOf.map((M)=>eU(M,I)),R=R$.union(W);G=Z?R$.intersection(G,R):R}if($.oneOf&&Array.isArray($.oneOf)){let W=$.oneOf.map((M)=>eU(M,I)),R=R$.xor(W);G=Z?R$.intersection(G,R):R}if($.allOf&&Array.isArray($.allOf))if($.allOf.length===0)G=Z?G:R$.any();else{let W=Z?G:eU($.allOf[0],I),R=Z?0:1;for(let M=R;M<$.allOf.length;M++)W=R$.intersection(W,eU($.allOf[M],I));G=W}if($.nullable===!0&&I.version==="openapi-3.0")G=R$.nullable(G);if($.readOnly===!0)G=R$.readonly(G);if($.default!==void 0)G=G.default($.default);let _={},J=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let W of J)if(W in $)_[W]=$[W];let Y=["contentEncoding","contentMediaType","contentSchema"];for(let W of Y)if(W in $)_[W]=$[W];if($.type==="object"&&$.$ref===void 0){if($.propertyNames!==void 0&&!sQ($.propertyNames))_.propertyNames=$.propertyNames;for(let W of["minProperties","maxProperties"])if($[W]!==void 0)_[W]=$[W]}if($.type==="array"&&$.$ref===void 0){if($.contains!==void 0&&!sQ($.contains))_.contains=$.contains;for(let W of["uniqueItems","minContains","maxContains"])if($[W]!==void 0)_[W]=$[W]}for(let W of Object.keys($))if(!Oi.has(W))kU(_,W,$[W]);if(Object.keys(_).length>0)I.registry.add(G,_);if($.description)G=G.describe($.description);return G}function Wk($,I){if(typeof $==="boolean")return $?R$.any():R$.never();let G;try{G=JSON.parse(JSON.stringify($))}catch{throw Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let Z=Li(G,I?.defaultTarget),_=G.$defs||G.definitions||{},J={version:Z,defs:_,refs:new Map,processing:new Set,rootSchema:G,registry:I?.registry??gU};return eU(G,J)}var Hk=Symbol("z.visit/resolving");function eQ($,I){let G=typeof I==="function"?I:(Y,W)=>{let R=I[Y._zod.def.type];return R?R(Y,W):Y},Z=new Map;function _(Y){let W=Z.get(Y);if(W===Hk)return new VQ({type:"lazy",getter:()=>Z.get(Y)});if(W!==void 0)return W;Z.set(Y,Hk);let R=J(Y),M=G(R,R!==Y);return Z.set(Y,M),M}function J(Y){let W=Y._zod.def,R=W.type;switch(R){case"object":{let M=W.shape,E=Object.keys(M),T=!1,S={};for(let B of E){let x=_(M[B]);if(x!==M[B])T=!0;S[B]=x}let N=W.catchall;if(W.catchall){if(N=_(W.catchall),N!==W.catchall)T=!0}return T?K1(Y,{...W,shape:S,catchall:N}):Y}case"array":{let M=_(W.element);return M===W.element?Y:K1(Y,{...W,element:M})}case"tuple":{let M=W.items,E=!1,T=[];for(let N of M){let B=_(N);if(B!==N)E=!0;T.push(B)}let S=W.rest;if(W.rest){if(S=_(W.rest),S!==W.rest)E=!0}return E?K1(Y,{...W,items:T,rest:S}):Y}case"record":case"map":{let M=_(W.keyType),E=_(W.valueType);return M===W.keyType&&E===W.valueType?Y:K1(Y,{...W,keyType:M,valueType:E})}case"set":{let M=_(W.valueType);return M===W.valueType?Y:K1(Y,{...W,valueType:M})}case"union":{let M=W.options,E=!1,T=[];for(let S of M){let N=_(S);if(N!==S)E=!0;T.push(N)}return E?K1(Y,{...W,options:T}):Y}case"intersection":{let M=_(W.left),E=_(W.right);return M===W.left&&E===W.right?Y:K1(Y,{...W,left:M,right:E})}case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":{let M=_(W.innerType);return M===W.innerType?Y:K1(Y,{...W,innerType:M})}case"pipe":{let M=_(W.in),E=_(W.out);return M===W.in&&E===W.out?Y:K1(Y,{...W,in:M,out:E})}case"function":{let M=_(W.input),E=_(W.output);return M===W.input&&E===W.output?Y:K1(Y,{...W,input:M,output:E})}case"lazy":{let M=W.getter,{_cachedInner:E,...T}=W;return K1(Y,{...T,getter:()=>_(M())})}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":return Y;default:return Y}}return _($)}function Fk($){return eQ($,{object:(I)=>I.partial(),union:(I)=>{let G=I._zod.def;return G.discriminator===void 0?I:eG(G.options)}})}function Ai($,I){if(!I?.length)return $;let G=$._zod.def;return K1($,HI(G,{checks:[...G.checks??[],...I]}),{parent:!0})}function Tk($){return Ai($.out,$.checks)}function Ei($){return $.in._zod.traits.has("$ZodTransform")?Tk($):$.in}function Mk($){return eQ($,{pipe:(I)=>Ei(I._zod.def),default:(I,G)=>G?a4(I._zod.def.innerType):I,catch:(I,G)=>G?I._zod.def.innerType:I})}function Ak($){return eQ($,{pipe:(I)=>Tk(I._zod.def),prefault:(I,G)=>G?I._zod.def.innerType:I})}var XE={};LU(XE,{string:()=>Ri,number:()=>Pi,date:()=>vi,boolean:()=>Vi,bigint:()=>Si});function Ri($){return SM(tG,$)}function Pi($){return jM(rG,$)}function Vi($){return bM(aG,$)}function Si($){return uM(sG,$)}function vi($){return aM(cQ,$)}var Ek=f$.object({id:f$.string().min(1).optional(),name:f$.string().min(1).optional(),kind:f$.enum(["human","agent","bot","system"])}),Rk=f$.object({type:f$.string().min(1),id:f$.string().min(1)}),Pk=f$.object({provider:f$.string().min(1),id:f$.string().min(1).optional(),url:f$.string().min(1).optional(),cursor:f$.string().min(1).optional(),rawRef:f$.string().min(1).optional()}),GE=f$.object({id:f$.string().min(1),service:f$.string().min(1),type:f$.string().min(1),schemaVersion:f$.number().int().positive(),idempotencyKey:f$.string().min(1),occurredAt:f$.string().min(1),observedAt:f$.string().min(1),origin:f$.enum(["virtual","external","agent","connector","replay","migration"]),actor:Ek.optional(),subject:Rk,causationId:f$.string().min(1).optional(),correlationId:f$.string().min(1).optional(),external:Pk.optional(),data:f$.record(f$.string(),f$.unknown()),raw:f$.record(f$.string(),f$.unknown()).optional()}),Vk=f$.object({version:f$.literal(1),service:f$.string().min(1),rebuiltAt:f$.string().min(1),eventCount:f$.number().int().nonnegative(),latestEventId:f$.string().min(1).optional(),subjects:f$.record(f$.string(),f$.object({type:f$.string().min(1),id:f$.string().min(1),latestEventId:f$.string().min(1),latestType:f$.string().min(1),updatedAt:f$.string().min(1)}))});function Sk($){return $I($||process.env.PROJECT_ROOT||process.cwd())}function pZ(){let $=process.env.VOLTER_STATE_DIR||".volter";if(j2($)||$.split(/[\\/]/).includes(".."))throw Error("VOLTER_STATE_DIR must be a relative directory without .. segments");return $}function l5($){return G1(Sk($),pZ(),"world")}function Ni($){if(!/^[A-Za-z0-9_-]+$/.test($))throw Error(`Invalid world service name: ${$}`);return $}var YE;function vk($){let I=YE;return YE=$,I}var Bi=0;function g6($,I){let G=Ni($);if(Bi===0)YE?.(G,I);let Z=Sk(I),_=G1(l5(I),G);return{root:Z,service:G,dir:_,events:G1(_,"events.jsonl"),state:G1(_,"state.json"),resources:G1(_,"resources"),cursors:G1(_,"cursors"),ingests:G1(_,"ingests"),eventQueue:G1(_,"event-queue.jsonl")}}var ji={windowMs:60000,ceiling:60,defaultWeight:2,maxRetryAfterSeconds:300,rules:[],reason:"no pack declared a budget for this vendor — this is the conservative fallback (30 calls/min at "+"the default weight), not a considered limit. Declare one on the pack with the vendor's real limits."};KU();var Ck="2.0",fi=Number(Ck.split(".")[0]);var ui=J6(Nk(),1);i1();KU();var{AsyncLocalStorage:rI0}=(()=>({}));KU();var{AsyncLocalStorage:Do}=(()=>({}));var $o;function wk($){$o=$}var zE="/__volter/world-boot";var{chmodSync:M_0,existsSync:A_0,mkdirSync:E_0,readFileSync:R_0,writeFileSync:P_0}=(()=>({}));KU();i1();KU();var ZE="x-volter-caller";function Wo($){let I=$.slice($.lastIndexOf("/")+1);return jU().list(n1($)).map((G)=>G.startsWith(`${I}.`)?Number(G.slice(I.length+1)):NaN).filter((G)=>Number.isInteger(G)&&G>0).sort((G,Z)=>G-Z).map((G)=>`${$}.${G}`)}var yk=new Map;var Ho=1e6,Fo=/(?:^|[-_.])(?:auth|authorization|token|jwt|key|apikey|secret|credential|credentials|signature|sig|password|passwd|pwd|session|sessionid|cookie|access[-_]?token|refresh[-_]?token)(?:[-_.]|$)/i,To=/^(Bearer|Basic|Digest|Token|Negotiate|NTLM|OAuth|Signature|Hawk|AWS4-HMAC-SHA256|SharedKey|SharedKeyLite|GoogleLogin)\s+(\S[\s\S]*)$/i;function bk($){return`sha256:${j6("sha256").update($,"utf8").digest("hex").slice(0,16)}`}function Mo($,I,G){let Z=To.exec(I);if(!Z&&!Fo.test($))return;let _=$.toLowerCase();if(I==="")return{name:_,in:G,empty:!0};if(Z)return{name:_,in:G,scheme:Z[1],fp:bk(Z[2])};return{name:_,in:G,fp:bk(I)}}function ck($,I){let G=[],Z=new Set,_=(J,Y,W)=>{let R=Mo(J,Y,W);if(!R)return;let M=`${R.in}:${R.name}`;if(Z.has(M))return;Z.add(M),G.push(R)};try{if(typeof $.forEach==="function")$.forEach((J,Y)=>_(Y,J,"header"));else for(let[J,Y]of Object.entries($))_(J,String(Y),"header")}catch{}try{if(I!==void 0){let J=typeof I==="string"?new URL(I,"http://twin.invalid").search:I.search;for(let[Y,W]of new URLSearchParams(J))_(Y,W,"query")}}catch{}return G.sort((J,Y)=>J.in===Y.in?J.name.localeCompare(Y.name):J.in.localeCompare(Y.in))}function KE($=process.env){return $.VOLTER_TWIN_REQUEST_JOURNAL!=="0"}function lk($,I){return G1(n1(g6($,I).events),"requests.jsonl")}function mk($,I,G){if(!KE())return!0;let Z=JSON.stringify({at:I.at??new Date().toISOString(),...I.phase?{phase:I.phase}:{},...I.caller?{caller:I.caller.slice(0,120)}:{},...I.trace&&/^[0-9a-f]{32}$/.test(I.trace)?{trace:I.trace}:{},...I.span&&/^[0-9a-f]{16}$/.test(I.span)?{span:I.span}:{},method:I.method.toUpperCase(),path:I.path.split("?")[0],status:I.status,...typeof I.ms==="number"?{ms:I.ms}:{},...I.credentials?.length?{credentials:I.credentials}:{}}),_;try{let J=jU();if(_=lk($,G),J.mkdir(n1(_)),(J.stat(_)?.size??0)>=Ho){let Y=Number(Wo(_).pop()?.slice(_.length+1)??0)+1;J.writeAtomic(`${_}.${Y}`,J.read(_)??""),J.write(_,"")}return J.append(_,`${Z}
|
|
388
|
-
`),!0}catch(J){let Y=_??`${G??""}/${$}`;return yk.set(Y,(yk.get(Y)??0)+1),console.error(`[request-journal] ${$}: a line was not kept: ${J.message}`),!1}}var dk=Symbol.for("volter.twin.requestJournal.identity"),hk=Symbol.for("volter.twin.requestJournal.installed"),OE;function Ao(){return OE??=new Do,OE}function Eo(){vk(($,I)=>{let G=OE?.getStore();if(!G||G.identity!==void 0)return;G.identity=I===void 0?{service:$}:{service:$,root:I}})}function Ro($=process.argv){let I=$.indexOf("--root"),G=I>=0?$[I+1]:void 0;return G&&!G.startsWith("--")?G:void 0}var Po=new Set(["world-runtime","world-tooling","world-attach","world-browser-assets","world-host"]);function uk($){if(!$)return;let I=/(?:packages[\\/]twin[\\/]|@volter[\\/]twin-)([A-Za-z0-9_-]+)/g;for(let G of $.matchAll(I)){let Z=G[1];if(!Po.has(Z))return Z}return}function Vo(){if(typeof window<"u"||typeof document<"u")return!1;let $=globalThis.Bun,I=$&&typeof $.serve==="function"?$.serve:void 0;if(I&&I[hk])return!0;if(Eo(),wk((Z)=>nk(Z,uk(Error().stack))),!I)return!1;let G=function(_,...J){let Y=_;if(!Y||typeof Y.fetch!=="function")return I.apply(this,[_,...J]);let W=Y[dk]?void 0:uk(Error().stack);return I.apply(this,[{...Y,fetch:nk(Y,W)},...J])};return Object.defineProperty(G,hk,{value:!0}),$.serve=G,!0}function nk($,I){if($.twinRequestJournal===!1)return $.fetch;{let Z=$[dk],_=$.fetch;return async function(Y,W){let R=Y.headers.get(ZE)??void 0;if(R!==void 0){let S=new Headers(Y.headers);S.delete(ZE),Y=new Request(Y,{headers:S})}if(!KE()||new URL(Y.url).pathname===zE)return _.call(this,Y,W);let M={},E=500,T=Date.now();try{let S=await Ao().run(M,()=>_.call(this,Y,W));if(S instanceof Response)E=S.status;else if(S===void 0)return S;return S}finally{Z??=M.identity;let S=Z??So(I);if(S){let N=new URL(Y.url),B=WW(Y.headers.get("traceparent"));mk(S.service,{method:Y.method,path:N.pathname,status:E,ms:Date.now()-T,credentials:ck(Y.headers,N),...R?{caller:R}:{},...B?{trace:B.traceId,span:B.parentId}:{}},S.root)}}}}}function So($){let I=process.env.VOLTER_TWIN_JOURNAL_SERVICE||$;if(!I||!/^[A-Za-z0-9_-]+$/.test(I))return;let G=Ro();return G===void 0?{service:I}:{service:I,root:G}}Vo();i1();var J20=Symbol("absent");KU();i1();KU();var{closeSync:uo,existsSync:_z,mkdirSync:no,openSync:po,readdirSync:co,readFileSync:lo,readSync:mo,renameSync:io,rmSync:Xg,statSync:FE,writeFileSync:oo}=(()=>({}));i1();KU();var{closeSync:WE,constants:UX,fstatSync:sk,ftruncateSync:go,linkSync:wo,lstatSync:DE,mkdirSync:xo,openSync:HE,readFileSync:fo,readSync:tk,rmSync:yo,writeFileSync:bo}=(()=>({}));var ek=131072,$g=32,Ug=4;function Ig($){return $.isFile()&&$.nlink===1&&(!process.getuid||$.uid===process.getuid())&&($.mode&63)===0}function rk($){try{let I=DE($);return I.isDirectory()&&(I.mode&63)===0&&(!process.getuid||I.uid===process.getuid())}catch{return!1}}function ak($){let I;try{I=HE($,UX.O_RDONLY|UX.O_NONBLOCK|(UX.O_NOFOLLOW??0));let G=sk(I);if(!Ig(G)||G.size>ek)return{};let Z=JSON.parse(fo(I,"utf8"));if(!Z||typeof Z!=="object"||Array.isArray(Z))return{};let _={};for(let[J,Y]of Object.entries(Z).slice(-$g)){if(!/^\d+:[a-f0-9]{64}$/.test(J)||!Array.isArray(Y))continue;_[J]=Y.filter((W)=>typeof W==="string"&&W.length<=4096&&j2(W)).slice(0,Ug)}return _}catch{return{}}finally{if(I!==void 0)WE(I)}}function ho($,I){let G=HE($,"r");try{let Z=j6("sha256"),_=Buffer.allocUnsafe(65536),J=I;while(J>0){let Y=tk(G,_,0,Math.min(_.length,J),null);if(!Y)return null;Z.update(_.subarray(0,Y)),J-=Y}if(tk(G,_,0,1,null))return null;return Z.digest("hex")}finally{WE(G)}}function _g($,I,G){let Z=G1($,`${G.slice(0,2)}.json`),_=`${I}:${G}`;return{reuse(J,Y){if(!rk($))return!1;for(let W of ak(Z)[_]??[]){try{let R=DE(W);if(!R.isFile()||R.dev!==I||R.size!==Y||process.getuid&&R.uid!==process.getuid())continue;wo(W,J);let M=DE(J);if(M.isFile()&&M.dev===I&&M.size===Y&&(!process.getuid||M.uid===process.getuid())&&ho(J,Y)===G)return!0}catch{}yo(J,{force:!0})}return!1},record(J){try{let Y=$I(J);if(Y.length>4096)return;let W=ak(Z),R=[Y,...(W[_]??[]).filter((T)=>T!==Y)].slice(0,Ug);delete W[_],W[_]=R;let M=JSON.stringify(W);while(Object.keys(W).length>$g||Buffer.byteLength(M)>ek)delete W[Object.keys(W)[0]],M=JSON.stringify(W);if(xo($,{recursive:!0,mode:448}),!rk($))return;let E=HE(Z,UX.O_WRONLY|UX.O_CREAT|UX.O_NONBLOCK|(UX.O_NOFOLLOW??0),384);try{if(!Ig(sk(E)))return;go(E,0),bo(E,M)}finally{WE(E)}}catch{}}}}class TE{options;constructor($={}){this.options=$}async get($){if(!_z($))return null;return new Uint8Array(lo($))}async put($,I){no(n1($),{recursive:!0});let G=`${$}.tmp.${LG()}`,Z;try{if(this.options.sharedIndexRoot!==!1)try{Z=_g(this.options.sharedIndexRoot??G1(tJ(),"blob-index-v1"),FE(n1($)).dev,Gg(I))}catch{}if(!Z?.reuse(G,I.byteLength))oo(G,I,{flag:"wx"});io(G,$),Z?.record($)}finally{Xg(G,{force:!0})}}async exists($){return _z($)}async remove($){Xg($,{force:!0,recursive:$.endsWith("/")})}async list($){let I=[],G=(Z)=>{if(!_z(Z))return;for(let _ of co(Z,{withFileTypes:!0})){let J=G1(Z,_.name);if(_.isDirectory())G(J);else if(!_.name.includes(".tmp."))I.push(J)}};return G($.replace(/\/$/,"")),I.sort()}async size($){if(!_z($))return null;return FE($).size}async getRange($,I,G){if(!_z($))return null;let Z=FE($).size,_=Math.max(0,I),J=Math.min(G,Z-1);if(J<_)return new Uint8Array(0);let Y=new Uint8Array(J-_+1),W=po($,"r"),R=0;try{while(R<Y.length){let M=mo(W,Y,R,Y.length-R,_+R);if(M===0)break;R+=M}}finally{uo(W)}return R===Y.length?Y:Y.subarray(0,R)}}function Gg($){return j6("sha256").update($).digest("hex")}var S20=new TE;Xz();NE();KU();i1();var{existsSync:$40,readFileSync:U40,statSync:I40}=(()=>({}));class yt{buf=new Uint8Array(65536);len=0;push($){if(this.len===this.buf.length){let I=new Uint8Array(this.buf.length*2);I.set(this.buf),this.buf=I}this.buf[this.len++]=$}copy($,I){if($>this.len)throw Error("inflate: distance too far back");for(let G=0;G<I;G++)this.push(this.buf[this.len-$])}bytes(){return this.buf.slice(0,this.len)}}var P40="0".repeat(40),V40=new Uint8Array([48,48,48,48]);var{AsyncLocalStorage:y40}=(()=>({}));var{AsyncLocalStorage:c40}=(()=>({}));var{existsSync:d40,readFileSync:i40,statSync:o40}=(()=>({}));var{existsSync:a40,readFileSync:s40}=(()=>({}));KU();var{existsSync:UX0}=(()=>({}));KU();var Bg="twin-org",jg="twin-project";var vw=J6(Sw(),1),Ks=J6(zz(),1);function Cw($){let I=String($??"").toLowerCase();if(I==="fatal"||I==="error"||I==="warning"||I==="info"||I==="debug")return I;return"muted"}function qw($){let I=String($??"").toLowerCase();if(I==="resolved")return"resolved";if(I==="ignored"||I==="muted")return"ignored";if(I==="unresolved")return"unresolved";return"muted"}function mE($){let I=Number($);if(!Number.isFinite(I))return"0";if(I>=1e6)return`${(I/1e6).toFixed(1).replace(/\.0$/,"")}M`;if(I>=1000)return`${(I/1000).toFixed(1).replace(/\.0$/,"")}k`;return String(Math.trunc(I))}function Zz($,I=Date.now()){if(typeof $!=="string"||!$)return"—";let G=Date.parse($);if(Number.isNaN(G))return"—";let Z=Math.max(0,Math.floor((I-G)/1000));if(Z<60)return`${Z}s ago`;if(Z<3600)return`${Math.floor(Z/60)}m ago`;if(Z<86400)return`${Math.floor(Z/3600)}h ago`;return`${Math.floor(Z/86400)}d ago`}function Nw($){if(!$||typeof $!=="object")return[];let I=$.entries;if(!Array.isArray(I))return[];let G=I.find((Y)=>Y&&typeof Y==="object"&&Y.type==="exception"),Z=G&&G.data?.values;if(!Array.isArray(Z))return[];let J=Z[Z.length-1]?.stacktrace?.frames;return Array.isArray(J)?J:[]}function Bw($){if(!$||typeof $!=="object")return[];let I=$.tags;if(!Array.isArray(I))return[];return I.filter((G)=>G&&typeof G==="object").map((G)=>({key:String(G.key),value:String(G.value)}))}var TI=Bg,XX=jg;var r0=J6(dE(),1),Ws=typeof document>"u"||document.querySelector("base[href]")===null?"":new URL(".",document.baseURI).pathname.replace(/\/$/,""),Hs=[{key:"issues",label:"Issues"},{key:"dashboards",label:"Dashboards"},{key:"discover",label:"Discover"},{key:"releases",label:"Releases"},{key:"projects",label:"Projects"},{key:"alerts",label:"Alerts"},{key:"settings",label:"Settings"}];async function X_($){let I=await fetch(`${Ws}/api/0${$}`);try{return await I.json()}catch{return null}}function Fs({level:$}){return r0.jsxDEV("span",{className:`pill level-${Cw($)}`,children:String($??"").toUpperCase()||"—"},void 0,!1,void 0,this)}function kw({status:$}){return r0.jsxDEV("span",{className:`pill status-${qw($)}`,children:String($??"").replace(/_/g," ")||"—"},void 0,!1,void 0,this)}function Ts({issue:$,selected:I,onSelect:G}){return r0.jsxDEV("button",{className:`issue-row ${I?"selected":""}`,onClick:G,children:[r0.jsxDEV("div",{className:"issue-main",children:[r0.jsxDEV("div",{className:"issue-title",children:$.title},void 0,!1,void 0,this),r0.jsxDEV("div",{className:"issue-culprit mono",children:$.culprit||$.shortId},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r0.jsxDEV("div",{className:"issue-meta",children:[r0.jsxDEV(Fs,{level:$.level},void 0,!1,void 0,this),r0.jsxDEV(kw,{status:$.status},void 0,!1,void 0,this),r0.jsxDEV("span",{className:"issue-count",title:"event count",children:[mE($.count)," events"]},void 0,!0,void 0,this),r0.jsxDEV("span",{className:"issue-lastseen",children:Zz($.lastSeen)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Ms({frames:$}){if($.length===0)return r0.jsxDEV("div",{className:"empty",children:"No stacktrace"},void 0,!1,void 0,this);return r0.jsxDEV("div",{className:"stacktrace",children:$.map((I,G)=>r0.jsxDEV("div",{className:"frame mono",children:[r0.jsxDEV("span",{className:"frame-fn",children:I.function??"?"},void 0,!1,void 0,this),r0.jsxDEV("span",{className:"frame-file",children:[I.filename??I.module??"",I.lineno?`:${I.lineno}`:""]},void 0,!0,void 0,this)]},G,!0,void 0,this))},void 0,!1,void 0,this)}function As({issue:$}){let[I,G]=E1.useState(null);E1.useEffect(()=>{let J=!0;return X_(`/issues/${$.id}/events/latest/`).then((Y)=>{if(J)G(Y)}),()=>{J=!1}},[$.id]);let Z=E1.useMemo(()=>Nw(I),[I]),_=E1.useMemo(()=>Bw(I),[I]);return r0.jsxDEV("div",{className:"issue-detail",children:[r0.jsxDEV("h2",{className:"detail-title",children:$.title},void 0,!1,void 0,this),r0.jsxDEV("div",{className:"detail-sub mono",children:$.culprit},void 0,!1,void 0,this),r0.jsxDEV("div",{className:"detail-stats",children:[r0.jsxDEV("div",{children:[r0.jsxDEV("span",{className:"stat-label",children:"Events"},void 0,!1,void 0,this),r0.jsxDEV("span",{className:"stat-value",children:mE($.count)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r0.jsxDEV("div",{children:[r0.jsxDEV("span",{className:"stat-label",children:"First seen"},void 0,!1,void 0,this),r0.jsxDEV("span",{className:"stat-value",children:Zz($.firstSeen)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r0.jsxDEV("div",{children:[r0.jsxDEV("span",{className:"stat-label",children:"Last seen"},void 0,!1,void 0,this),r0.jsxDEV("span",{className:"stat-value",children:Zz($.lastSeen)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r0.jsxDEV("div",{children:[r0.jsxDEV("span",{className:"stat-label",children:"Status"},void 0,!1,void 0,this),r0.jsxDEV(kw,{status:$.status},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),r0.jsxDEV("h3",{children:"Latest Event Stacktrace"},void 0,!1,void 0,this),r0.jsxDEV(Ms,{frames:Z},void 0,!1,void 0,this),r0.jsxDEV("h3",{children:"Tags"},void 0,!1,void 0,this),_.length===0?r0.jsxDEV("div",{className:"empty",children:"No tags"},void 0,!1,void 0,this):r0.jsxDEV("div",{className:"tags",children:_.map((J)=>r0.jsxDEV("span",{className:"tag mono",children:[J.key,": ",J.value]},J.key,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Es(){let[$,I]=E1.useState([]),[G,Z]=E1.useState(null),[_,J]=E1.useState("is:unresolved");E1.useEffect(()=>{X_(`/projects/${TI}/${XX}/issues/?query=${encodeURIComponent(_)}`).then((W)=>I(Array.isArray(W)?W:[]))},[_]);let Y=$.find((W)=>W.id===G)??$[0];return r0.jsxDEV("div",{className:"split",children:[r0.jsxDEV("div",{className:"list",children:[r0.jsxDEV("div",{className:"search-bar",children:r0.jsxDEV("input",{className:"search-input",value:_,onChange:(W)=>J(W.target.value),placeholder:"is:unresolved level:error ..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),$.length===0?r0.jsxDEV("div",{className:"empty",children:"No issues"},void 0,!1,void 0,this):$.map((W)=>r0.jsxDEV(Ts,{issue:W,selected:Y?.id===W.id,onSelect:()=>Z(W.id)},W.id,!1,void 0,this))]},void 0,!0,void 0,this),r0.jsxDEV("div",{className:"detail",children:Y?r0.jsxDEV(As,{issue:Y},void 0,!1,void 0,this):r0.jsxDEV("div",{className:"empty",children:"Select an issue"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Rs({releases:$}){return r0.jsxDEV("div",{className:"list full",children:[r0.jsxDEV("h2",{className:"screen-title",children:"Releases"},void 0,!1,void 0,this),$.length===0?r0.jsxDEV("div",{className:"empty",children:"No releases"},void 0,!1,void 0,this):$.map((I)=>r0.jsxDEV("div",{className:"release-row",children:[r0.jsxDEV("span",{className:"release-version mono",children:I.version},void 0,!1,void 0,this),r0.jsxDEV("span",{className:"release-commits",children:[I.commitCount??0," commits"]},void 0,!0,void 0,this),r0.jsxDEV("span",{className:"release-date",children:Zz(I.dateCreated)},void 0,!1,void 0,this)]},I.id,!0,void 0,this))]},void 0,!0,void 0,this)}function Ps(){let[$,I]=E1.useState([]);return E1.useEffect(()=>{X_(`/organizations/${TI}/releases/`).then((G)=>I(Array.isArray(G)?G:[]))},[]),r0.jsxDEV(Rs,{releases:$},void 0,!1,void 0,this)}function Vs({projects:$}){return r0.jsxDEV("div",{className:"list full",children:[r0.jsxDEV("h2",{className:"screen-title",children:"Projects"},void 0,!1,void 0,this),$.length===0?r0.jsxDEV("div",{className:"empty",children:"No projects"},void 0,!1,void 0,this):$.map((I)=>r0.jsxDEV("div",{className:"project-row",children:[r0.jsxDEV("span",{className:"project-name",children:I.name},void 0,!1,void 0,this),r0.jsxDEV("span",{className:"project-slug mono",children:I.slug},void 0,!1,void 0,this),r0.jsxDEV("span",{className:"project-platform",children:I.platform??"—"},void 0,!1,void 0,this)]},I.id,!0,void 0,this))]},void 0,!0,void 0,this)}function Ss(){let[$,I]=E1.useState([]);return E1.useEffect(()=>{X_("/projects/").then((G)=>I(Array.isArray(G)?G:[]))},[]),r0.jsxDEV(Vs,{projects:$},void 0,!1,void 0,this)}function vs(){let[$,I]=E1.useState([]);return E1.useEffect(()=>{X_(`/projects/${TI}/${XX}/rules/`).then((G)=>I(Array.isArray(G)?G:[]))},[]),r0.jsxDEV("div",{className:"list full alerts-screen",children:[r0.jsxDEV("h2",{className:"screen-title",children:"Alerts"},void 0,!1,void 0,this),r0.jsxDEV("div",{className:"alerts-sub",children:["Issue alert rules for ",XX]},void 0,!0,void 0,this),$.length===0?r0.jsxDEV("div",{className:"empty",children:"No alert rules"},void 0,!1,void 0,this):$.map((G)=>r0.jsxDEV("div",{className:"alert-rule-row",children:[r0.jsxDEV("span",{className:"alert-rule-name",children:G.name},void 0,!1,void 0,this),r0.jsxDEV("span",{className:"alert-rule-triggers",children:(Array.isArray(G.triggers)?G.triggers:[]).map((Z)=>r0.jsxDEV("span",{className:"alert-trigger pill",children:Z},Z,!1,void 0,this))},void 0,!1,void 0,this),r0.jsxDEV("span",{className:"alert-rule-endpoints mono",children:[(Array.isArray(G.endpoints)?G.endpoints:[]).length," endpoint(s)"]},void 0,!0,void 0,this)]},G.id,!0,void 0,this))]},void 0,!0,void 0,this)}function Cs(){let[$,I]=E1.useState(null),[G,Z]=E1.useState([]),[_,J]=E1.useState([]);return E1.useEffect(()=>{X_(`/projects/${TI}/${XX}/`).then(I),X_(`/projects/${TI}/${XX}/keys/`).then((Y)=>Z(Array.isArray(Y)?Y:[])),X_(`/projects/${TI}/${XX}/environments/`).then((Y)=>J(Array.isArray(Y)?Y:[]))},[]),r0.jsxDEV("div",{className:"list full settings-screen",children:[r0.jsxDEV("h2",{className:"screen-title",children:"Settings"},void 0,!1,void 0,this),r0.jsxDEV("section",{className:"settings-section",children:[r0.jsxDEV("h3",{children:"General"},void 0,!1,void 0,this),r0.jsxDEV("div",{className:"setting-field",children:[r0.jsxDEV("span",{className:"setting-label",children:"Name"},void 0,!1,void 0,this),r0.jsxDEV("span",{className:"setting-value",children:$?.name??"—"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r0.jsxDEV("div",{className:"setting-field",children:[r0.jsxDEV("span",{className:"setting-label",children:"Slug"},void 0,!1,void 0,this),r0.jsxDEV("span",{className:"setting-value mono",children:$?.slug??"—"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r0.jsxDEV("div",{className:"setting-field",children:[r0.jsxDEV("span",{className:"setting-label",children:"Platform"},void 0,!1,void 0,this),r0.jsxDEV("span",{className:"setting-value",children:$?.platform??"—"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),r0.jsxDEV("section",{className:"settings-section",children:[r0.jsxDEV("h3",{children:"Client Keys (DSN)"},void 0,!1,void 0,this),G.length===0?r0.jsxDEV("div",{className:"empty",children:"No keys"},void 0,!1,void 0,this):G.map((Y)=>r0.jsxDEV("div",{className:"dsn-row",children:[r0.jsxDEV("span",{className:"dsn-name",children:Y.name},void 0,!1,void 0,this),r0.jsxDEV("span",{className:"dsn-public mono",children:Y.dsn?.public},void 0,!1,void 0,this),r0.jsxDEV("span",{className:`pill ${Y.isActive===!1?"status-ignored":"status-resolved"}`,children:Y.isActive===!1?"revoked":"active"},void 0,!1,void 0,this)]},Y.id,!0,void 0,this))]},void 0,!0,void 0,this),r0.jsxDEV("section",{className:"settings-section",children:[r0.jsxDEV("h3",{children:"Environments"},void 0,!1,void 0,this),_.length===0?r0.jsxDEV("div",{className:"empty",children:"No environments"},void 0,!1,void 0,this):r0.jsxDEV("div",{className:"env-list",children:_.map((Y)=>r0.jsxDEV("span",{className:"env-item pill",children:Y.name},Y.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function qs({dashboards:$}){return r0.jsxDEV("div",{className:"list full dashboards-screen",children:[r0.jsxDEV("h2",{className:"screen-title",children:"Dashboards"},void 0,!1,void 0,this),r0.jsxDEV("div",{className:"dashboards-sub",children:["Custom dashboards & widgets for ",TI]},void 0,!0,void 0,this),$.length===0?r0.jsxDEV("div",{className:"empty",children:"No dashboards"},void 0,!1,void 0,this):$.map((I)=>r0.jsxDEV("div",{className:"dashboard-row",children:[r0.jsxDEV("span",{className:"dashboard-title",children:I.title},void 0,!1,void 0,this),r0.jsxDEV("div",{className:"dashboard-widgets",children:[(Array.isArray(I.widgets)?I.widgets:[]).map((G,Z)=>r0.jsxDEV("div",{className:"widget-card",children:[r0.jsxDEV("span",{className:"widget-title",children:G.title},void 0,!1,void 0,this),r0.jsxDEV("span",{className:"widget-type pill",children:G.displayType},void 0,!1,void 0,this)]},Z,!0,void 0,this)),(!Array.isArray(I.widgets)||I.widgets.length===0)&&r0.jsxDEV("span",{className:"empty",children:"No widgets"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},I.id,!0,void 0,this))]},void 0,!0,void 0,this)}function Ns(){let[$,I]=E1.useState([]);return E1.useEffect(()=>{X_(`/organizations/${TI}/dashboards/`).then((G)=>I(Array.isArray(G)?G:[]))},[]),r0.jsxDEV(qs,{dashboards:$},void 0,!1,void 0,this)}function Bs({saved:$,fields:I="title, count(), last_seen()",query:G="event.type:error",onFields:Z,onQuery:_}){let J=I.split(",").map((Y)=>Y.trim()).filter(Boolean);return r0.jsxDEV("div",{className:"list full discover-screen",children:[r0.jsxDEV("h2",{className:"screen-title",children:"Discover"},void 0,!1,void 0,this),r0.jsxDEV("div",{className:"discover-builder",children:[r0.jsxDEV("div",{className:"discover-field",children:[r0.jsxDEV("label",{className:"discover-label",children:"Columns"},void 0,!1,void 0,this),r0.jsxDEV("input",{className:"discover-columns",value:I,onChange:Z?(Y)=>Z(Y.target.value):void 0,placeholder:"title, count(), last_seen()",readOnly:!Z},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r0.jsxDEV("div",{className:"discover-field",children:[r0.jsxDEV("label",{className:"discover-label",children:"Query"},void 0,!1,void 0,this),r0.jsxDEV("input",{className:"discover-query",value:G,onChange:_?(Y)=>_(Y.target.value):void 0,placeholder:"event.type:error",readOnly:!_},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r0.jsxDEV("div",{className:"discover-columns-preview",children:J.map((Y)=>r0.jsxDEV("span",{className:"discover-column-chip mono",children:Y},Y,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r0.jsxDEV("div",{className:"discover-results-note empty",children:"Live query execution requires the data-plane query engine (not built yet) — the query builder config is faithful and saved queries persist."},void 0,!1,void 0,this),r0.jsxDEV("h3",{children:"Saved Queries"},void 0,!1,void 0,this),$.length===0?r0.jsxDEV("div",{className:"empty",children:"No saved queries"},void 0,!1,void 0,this):$.map((Y)=>r0.jsxDEV("div",{className:"saved-query-row",children:[r0.jsxDEV("span",{className:"saved-query-name",children:Y.name},void 0,!1,void 0,this),r0.jsxDEV("span",{className:"saved-query-fields mono",children:(Array.isArray(Y.fields)?Y.fields:[]).join(", ")},void 0,!1,void 0,this)]},Y.id,!0,void 0,this))]},void 0,!0,void 0,this)}function js(){let[$,I]=E1.useState([]),[G,Z]=E1.useState("title, count(), last_seen()"),[_,J]=E1.useState("event.type:error");return E1.useEffect(()=>{X_(`/organizations/${TI}/discover/saved/`).then((Y)=>I(Array.isArray(Y)?Y:[]))},[]),r0.jsxDEV(Bs,{saved:$,fields:G,query:_,onFields:Z,onQuery:J},void 0,!1,void 0,this)}function ks(){let[$,I]=E1.useState("issues");return r0.jsxDEV("div",{className:"app",children:[r0.jsxDEV("header",{className:"topbar",children:[r0.jsxDEV("span",{className:"brand",children:["Sentry ",r0.jsxDEV("span",{className:"badge",children:"twin"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r0.jsxDEV("span",{className:"org mono",children:TI},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r0.jsxDEV("div",{className:"body",children:[r0.jsxDEV("nav",{className:"sidenav",children:Hs.map((G)=>r0.jsxDEV("button",{className:`nav-item ${$===G.key?"active":""}`,onClick:()=>I(G.key),children:G.label},G.key,!1,void 0,this))},void 0,!1,void 0,this),r0.jsxDEV("main",{className:"content",children:[$==="issues"&&r0.jsxDEV(Es,{},void 0,!1,void 0,this),$==="dashboards"&&r0.jsxDEV(Ns,{},void 0,!1,void 0,this),$==="discover"&&r0.jsxDEV(js,{},void 0,!1,void 0,this),$==="releases"&&r0.jsxDEV(Ps,{},void 0,!1,void 0,this),$==="projects"&&r0.jsxDEV(Ss,{},void 0,!1,void 0,this),$==="alerts"&&r0.jsxDEV(vs,{},void 0,!1,void 0,this),$==="settings"&&r0.jsxDEV(Cs,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}if(typeof document<"u"){let $=document.getElementById("root");if($)jw.createRoot($).render(r0.jsxDEV(ks,{},void 0,!1,void 0,this))}export{Rs as ReleasesView,Vs as ProjectsView,Bs as DiscoverView,qs as DashboardsView};
|