var i1=Object.defineProperty;var Qm=f=>{throw TypeError(f)};var a1=(f,y,d)=>y in f?i1(f,y,{enumerable:!0,configurable:!0,writable:!0,value:d}):f[y]=d;var Qe=(f,y,d)=>a1(f,typeof y!="symbol"?y+"":y,d),jc=(f,y,d)=>y.has(f)||Qm("Cannot "+d);var J=(f,y,d)=>(jc(f,y,"read from private field"),d?d.call(f):y.get(f)),mt=(f,y,d)=>y.has(f)?Qm("Cannot add the same private member more than once"):y instanceof WeakSet?y.add(f):y.set(f,d),it=(f,y,d,c)=>(jc(f,y,"write to private field"),c?c.call(f,d):y.set(f,d),d),Xe=(f,y,d)=>(jc(f,y,"access private method"),d);var Do=(f,y,d,c)=>({set _(m){it(f,y,m,d)},get _(){return J(f,y,c)}});(function(){const y=document.createElement("link").relList;if(y&&y.supports&&y.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))c(m);new MutationObserver(m=>{for(const o of m)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&c(l)}).observe(document,{childList:!0,subtree:!0});function d(m){const o={};return m.integrity&&(o.integrity=m.integrity),m.referrerPolicy&&(o.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?o.credentials="include":m.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function c(m){if(m.ep)return;m.ep=!0;const o=d(m);fetch(m.href,o)}})();function db(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}var Mc={exports:{}},fl={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Vm;function l1(){if(Vm)return fl;Vm=1;var f=Symbol.for("react.transitional.element"),y=Symbol.for("react.fragment");function d(c,m,o){var l=null;if(o!==void 0&&(l=""+o),m.key!==void 0&&(l=""+m.key),"key"in m){o={};for(var u in m)u!=="key"&&(o[u]=m[u])}else o=m;return m=o.ref,{$$typeof:f,type:c,key:l,ref:m!==void 0?m:null,props:o}}return fl.Fragment=y,fl.jsx=d,fl.jsxs=d,fl}var Km;function o1(){return Km||(Km=1,Mc.exports=l1()),Mc.exports}var fe=o1(),Nc={exports:{}},at={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Fm;function s1(){if(Fm)return at;Fm=1;var f=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),a=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),_=Symbol.iterator;function w(I){return I===null||typeof I!="object"?null:(I=_&&I[_]||I["@@iterator"],typeof I=="function"?I:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,j={};function C(I,U,G){this.props=I,this.context=U,this.refs=j,this.updater=G||A}C.prototype.isReactComponent={},C.prototype.setState=function(I,U){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,U,"setState")},C.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function S(){}S.prototype=C.prototype;function O(I,U,G){this.props=I,this.context=U,this.refs=j,this.updater=G||A}var N=O.prototype=new S;N.constructor=O,M(N,C.prototype),N.isPureReactComponent=!0;var T=Array.isArray;function H(){}var D={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function z(I,U,G){var ye=G.ref;return{$$typeof:f,type:I,key:U,ref:ye!==void 0?ye:null,props:G}}function R(I,U){return z(I.type,U,I.props)}function Y(I){return typeof I=="object"&&I!==null&&I.$$typeof===f}function B(I){var U={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(G){return U[G]})}var te=/\/+/g;function ae(I,U){return typeof I=="object"&&I!==null&&I.key!=null?B(""+I.key):U.toString(36)}function ee(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status=="string"?I.then(H,H):(I.status="pending",I.then(function(U){I.status==="pending"&&(I.status="fulfilled",I.value=U)},function(U){I.status==="pending"&&(I.status="rejected",I.reason=U)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function W(I,U,G,ye,Q){var je=typeof I;(je==="undefined"||je==="boolean")&&(I=null);var ie=!1;if(I===null)ie=!0;else switch(je){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(I.$$typeof){case f:case y:ie=!0;break;case p:return ie=I._init,W(ie(I._payload),U,G,ye,Q)}}if(ie)return Q=Q(I),ie=ye===""?"."+ae(I,0):ye,T(Q)?(G="",ie!=null&&(G=ie.replace(te,"$&/")+"/"),W(Q,U,G,"",function(ue){return ue})):Q!=null&&(Y(Q)&&(Q=R(Q,G+(Q.key==null||I&&I.key===Q.key?"":(""+Q.key).replace(te,"$&/")+"/")+ie)),U.push(Q)),1;ie=0;var K=ye===""?".":ye+":";if(T(I))for(var ge=0;ge<I.length;ge++)ye=I[ge],je=K+ae(ye,ge),ie+=W(ye,U,G,je,Q);else if(ge=w(I),typeof ge=="function")for(I=ge.call(I),ge=0;!(ye=I.next()).done;)ye=ye.value,je=K+ae(ye,ge++),ie+=W(ye,U,G,je,Q);else if(je==="object"){if(typeof I.then=="function")return W(ee(I),U,G,ye,Q);throw U=String(I),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return ie}function V(I,U,G){if(I==null)return I;var ye=[],Q=0;return W(I,ye,"","",function(je){return U.call(G,je,Q++)}),ye}function Z(I){if(I._status===-1){var U=I._result;U=U(),U.then(function(G){(I._status===0||I._status===-1)&&(I._status=1,I._result=G)},function(G){(I._status===0||I._status===-1)&&(I._status=2,I._result=G)}),I._status===-1&&(I._status=0,I._result=U)}if(I._status===1)return I._result.default;throw I._result}var be=typeof reportError=="function"?reportError:function(I){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof I=="object"&&I!==null&&typeof I.message=="string"?String(I.message):String(I),error:I});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",I);return}console.error(I)},re={map:V,forEach:function(I,U,G){V(I,function(){U.apply(this,arguments)},G)},count:function(I){var U=0;return V(I,function(){U++}),U},toArray:function(I){return V(I,function(U){return U})||[]},only:function(I){if(!Y(I))throw Error("React.Children.only expected to receive a single React element child.");return I}};return at.Activity=b,at.Children=re,at.Component=C,at.Fragment=d,at.Profiler=m,at.PureComponent=O,at.StrictMode=c,at.Suspense=i,at.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,at.__COMPILER_RUNTIME={__proto__:null,c:function(I){return D.H.useMemoCache(I)}},at.cache=function(I){return function(){return I.apply(null,arguments)}},at.cacheSignal=function(){return null},at.cloneElement=function(I,U,G){if(I==null)throw Error("The argument must be a React element, but you passed "+I+".");var ye=M({},I.props),Q=I.key;if(U!=null)for(je in U.key!==void 0&&(Q=""+U.key),U)!k.call(U,je)||je==="key"||je==="__self"||je==="__source"||je==="ref"&&U.ref===void 0||(ye[je]=U[je]);var je=arguments.length-2;if(je===1)ye.children=G;else if(1<je){for(var ie=Array(je),K=0;K<je;K++)ie[K]=arguments[K+2];ye.children=ie}return z(I.type,Q,ye)},at.createContext=function(I){return I={$$typeof:l,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null},I.Provider=I,I.Consumer={$$typeof:o,_context:I},I},at.createElement=function(I,U,G){var ye,Q={},je=null;if(U!=null)for(ye in U.key!==void 0&&(je=""+U.key),U)k.call(U,ye)&&ye!=="key"&&ye!=="__self"&&ye!=="__source"&&(Q[ye]=U[ye]);var ie=arguments.length-2;if(ie===1)Q.children=G;else if(1<ie){for(var K=Array(ie),ge=0;ge<ie;ge++)K[ge]=arguments[ge+2];Q.children=K}if(I&&I.defaultProps)for(ye in ie=I.defaultProps,ie)Q[ye]===void 0&&(Q[ye]=ie[ye]);return z(I,je,Q)},at.createRef=function(){return{current:null}},at.forwardRef=function(I){return{$$typeof:u,render:I}},at.isValidElement=Y,at.lazy=function(I){return{$$typeof:p,_payload:{_status:-1,_result:I},_init:Z}},at.memo=function(I,U){return{$$typeof:a,type:I,compare:U===void 0?null:U}},at.startTransition=function(I){var U=D.T,G={};D.T=G;try{var ye=I(),Q=D.S;Q!==null&&Q(G,ye),typeof ye=="object"&&ye!==null&&typeof ye.then=="function"&&ye.then(H,be)}catch(je){be(je)}finally{U!==null&&G.types!==null&&(U.types=G.types),D.T=U}},at.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},at.use=function(I){return D.H.use(I)},at.useActionState=function(I,U,G){return D.H.useActionState(I,U,G)},at.useCallback=function(I,U){return D.H.useCallback(I,U)},at.useContext=function(I){return D.H.useContext(I)},at.useDebugValue=function(){},at.useDeferredValue=function(I,U){return D.H.useDeferredValue(I,U)},at.useEffect=function(I,U){return D.H.useEffect(I,U)},at.useEffectEvent=function(I){return D.H.useEffectEvent(I)},at.useId=function(){return D.H.useId()},at.useImperativeHandle=function(I,U,G){return D.H.useImperativeHandle(I,U,G)},at.useInsertionEffect=function(I,U){return D.H.useInsertionEffect(I,U)},at.useLayoutEffect=function(I,U){return D.H.useLayoutEffect(I,U)},at.useMemo=function(I,U){return D.H.useMemo(I,U)},at.useOptimistic=function(I,U){return D.H.useOptimistic(I,U)},at.useReducer=function(I,U,G){return D.H.useReducer(I,U,G)},at.useRef=function(I){return D.H.useRef(I)},at.useState=function(I){return D.H.useState(I)},at.useSyncExternalStore=function(I,U,G){return D.H.useSyncExternalStore(I,U,G)},at.useTransition=function(){return D.H.useTransition()},at.version="19.2.5",at}var Wm;function qh(){return Wm||(Wm=1,Nc.exports=s1()),Nc.exports}var Je=qh();const u1=db(Je);var Cc={exports:{}},hl={},Rc={exports:{}},Uc={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Xm;function c1(){return Xm||(Xm=1,(function(f){function y(W,V){var Z=W.length;W.push(V);e:for(;0<Z;){var be=Z-1>>>1,re=W[be];if(0<m(re,V))W[be]=V,W[Z]=re,Z=be;else break e}}function d(W){return W.length===0?null:W[0]}function c(W){if(W.length===0)return null;var V=W[0],Z=W.pop();if(Z!==V){W[0]=Z;e:for(var be=0,re=W.length,I=re>>>1;be<I;){var U=2*(be+1)-1,G=W[U],ye=U+1,Q=W[ye];if(0>m(G,Z))ye<re&&0>m(Q,G)?(W[be]=Q,W[ye]=Z,be=ye):(W[be]=G,W[U]=Z,be=U);else if(ye<re&&0>m(Q,Z))W[be]=Q,W[ye]=Z,be=ye;else break e}}return V}function m(W,V){var Z=W.sortIndex-V.sortIndex;return Z!==0?Z:W.id-V.id}if(f.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;f.unstable_now=function(){return o.now()}}else{var l=Date,u=l.now();f.unstable_now=function(){return l.now()-u}}var i=[],a=[],p=1,b=null,_=3,w=!1,A=!1,M=!1,j=!1,C=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function N(W){for(var V=d(a);V!==null;){if(V.callback===null)c(a);else if(V.startTime<=W)c(a),V.sortIndex=V.expirationTime,y(i,V);else break;V=d(a)}}function T(W){if(M=!1,N(W),!A)if(d(i)!==null)A=!0,H||(H=!0,B());else{var V=d(a);V!==null&&ee(T,V.startTime-W)}}var H=!1,D=-1,k=5,z=-1;function R(){return j?!0:!(f.unstable_now()-z<k)}function Y(){if(j=!1,H){var W=f.unstable_now();z=W;var V=!0;try{e:{A=!1,M&&(M=!1,S(D),D=-1),w=!0;var Z=_;try{t:{for(N(W),b=d(i);b!==null&&!(b.expirationTime>W&&R());){var be=b.callback;if(typeof be=="function"){b.callback=null,_=b.priorityLevel;var re=be(b.expirationTime<=W);if(W=f.unstable_now(),typeof re=="function"){b.callback=re,N(W),V=!0;break t}b===d(i)&&c(i),N(W)}else c(i);b=d(i)}if(b!==null)V=!0;else{var I=d(a);I!==null&&ee(T,I.startTime-W),V=!1}}break e}finally{b=null,_=Z,w=!1}V=void 0}}finally{V?B():H=!1}}}var B;if(typeof O=="function")B=function(){O(Y)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,ae=te.port2;te.port1.onmessage=Y,B=function(){ae.postMessage(null)}}else B=function(){C(Y,0)};function ee(W,V){D=C(function(){W(f.unstable_now())},V)}f.unstable_IdlePriority=5,f.unstable_ImmediatePriority=1,f.unstable_LowPriority=4,f.unstable_NormalPriority=3,f.unstable_Profiling=null,f.unstable_UserBlockingPriority=2,f.unstable_cancelCallback=function(W){W.callback=null},f.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<W?Math.floor(1e3/W):5},f.unstable_getCurrentPriorityLevel=function(){return _},f.unstable_next=function(W){switch(_){case 1:case 2:case 3:var V=3;break;default:V=_}var Z=_;_=V;try{return W()}finally{_=Z}},f.unstable_requestPaint=function(){j=!0},f.unstable_runWithPriority=function(W,V){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var Z=_;_=W;try{return V()}finally{_=Z}},f.unstable_scheduleCallback=function(W,V,Z){var be=f.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?be+Z:be):Z=be,W){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=Z+re,W={id:p++,callback:V,priorityLevel:W,startTime:Z,expirationTime:re,sortIndex:-1},Z>be?(W.sortIndex=Z,y(a,W),d(i)===null&&W===d(a)&&(M?(S(D),D=-1):M=!0,ee(T,Z-be))):(W.sortIndex=re,y(i,W),A||w||(A=!0,H||(H=!0,B()))),W},f.unstable_shouldYield=R,f.unstable_wrapCallback=function(W){var V=_;return function(){var Z=_;_=V;try{return W.apply(this,arguments)}finally{_=Z}}}})(Uc)),Uc}var Zm;function f1(){return Zm||(Zm=1,Rc.exports=c1()),Rc.exports}var Bc={exports:{}},lr={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var $m;function h1(){if($m)return lr;$m=1;var f=qh();function y(i){var a="https://react.dev/errors/"+i;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)a+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+i+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(){}var c={d:{f:d,r:function(){throw Error(y(522))},D:d,C:d,L:d,m:d,X:d,S:d,M:d},p:0,findDOMNode:null},m=Symbol.for("react.portal");function o(i,a,p){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:b==null?null:""+b,children:i,containerInfo:a,implementation:p}}var l=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(i,a){if(i==="font")return"";if(typeof a=="string")return a==="use-credentials"?a:""}return lr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,lr.createPortal=function(i,a){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)throw Error(y(299));return o(i,a,null,p)},lr.flushSync=function(i){var a=l.T,p=c.p;try{if(l.T=null,c.p=2,i)return i()}finally{l.T=a,c.p=p,c.d.f()}},lr.preconnect=function(i,a){typeof i=="string"&&(a?(a=a.crossOrigin,a=typeof a=="string"?a==="use-credentials"?a:"":void 0):a=null,c.d.C(i,a))},lr.prefetchDNS=function(i){typeof i=="string"&&c.d.D(i)},lr.preinit=function(i,a){if(typeof i=="string"&&a&&typeof a.as=="string"){var p=a.as,b=u(p,a.crossOrigin),_=typeof a.integrity=="string"?a.integrity:void 0,w=typeof a.fetchPriority=="string"?a.fetchPriority:void 0;p==="style"?c.d.S(i,typeof a.precedence=="string"?a.precedence:void 0,{crossOrigin:b,integrity:_,fetchPriority:w}):p==="script"&&c.d.X(i,{crossOrigin:b,integrity:_,fetchPriority:w,nonce:typeof a.nonce=="string"?a.nonce:void 0})}},lr.preinitModule=function(i,a){if(typeof i=="string")if(typeof a=="object"&&a!==null){if(a.as==null||a.as==="script"){var p=u(a.as,a.crossOrigin);c.d.M(i,{crossOrigin:p,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0})}}else a==null&&c.d.M(i)},lr.preload=function(i,a){if(typeof i=="string"&&typeof a=="object"&&a!==null&&typeof a.as=="string"){var p=a.as,b=u(p,a.crossOrigin);c.d.L(i,p,{crossOrigin:b,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0,type:typeof a.type=="string"?a.type:void 0,fetchPriority:typeof a.fetchPriority=="string"?a.fetchPriority:void 0,referrerPolicy:typeof a.referrerPolicy=="string"?a.referrerPolicy:void 0,imageSrcSet:typeof a.imageSrcSet=="string"?a.imageSrcSet:void 0,imageSizes:typeof a.imageSizes=="string"?a.imageSizes:void 0,media:typeof a.media=="string"?a.media:void 0})}},lr.preloadModule=function(i,a){if(typeof i=="string")if(a){var p=u(a.as,a.crossOrigin);c.d.m(i,{as:typeof a.as=="string"&&a.as!=="script"?a.as:void 0,crossOrigin:p,integrity:typeof a.integrity=="string"?a.integrity:void 0})}else c.d.m(i)},lr.requestFormReset=function(i){c.d.r(i)},lr.unstable_batchedUpdates=function(i,a){return i(a)},lr.useFormState=function(i,a,p){return l.H.useFormState(i,a,p)},lr.useFormStatus=function(){return l.H.useHostTransitionStatus()},lr.version="19.2.5",lr}var Jm;function d1(){if(Jm)return Bc.exports;Jm=1;function f(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(y){console.error(y)}}return f(),Bc.exports=h1(),Bc.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var eg;function p1(){if(eg)return hl;eg=1;var f=f1(),y=qh(),d=d1();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function m(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function l(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function i(e){if(o(e)!==e)throw Error(c(188))}function a(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(c(188));return t!==e?null:e}for(var r=e,n=t;;){var s=r.return;if(s===null)break;var h=s.alternate;if(h===null){if(n=s.return,n!==null){r=n;continue}break}if(s.child===h.child){for(h=s.child;h;){if(h===r)return i(s),e;if(h===n)return i(s),t;h=h.sibling}throw Error(c(188))}if(r.return!==n.return)r=s,n=h;else{for(var x=!1,q=s.child;q;){if(q===r){x=!0,r=s,n=h;break}if(q===n){x=!0,n=s,r=h;break}q=q.sibling}if(!x){for(q=h.child;q;){if(q===r){x=!0,r=h,n=s;break}if(q===n){x=!0,n=h,r=s;break}q=q.sibling}if(!x)throw Error(c(189))}}if(r.alternate!==n)throw Error(c(190))}if(r.tag!==3)throw Error(c(188));return r.stateNode.current===r?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,_=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),O=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),R=Symbol.for("react.memo_cache_sentinel"),Y=Symbol.iterator;function B(e){return e===null||typeof e!="object"?null:(e=Y&&e[Y]||e["@@iterator"],typeof e=="function"?e:null)}var te=Symbol.for("react.client.reference");function ae(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===te?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case C:return"Profiler";case j:return"StrictMode";case T:return"Suspense";case H:return"SuspenseList";case z:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case O:return e.displayName||"Context";case S:return(e._context.displayName||"Context")+".Consumer";case N:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case D:return t=e.displayName||null,t!==null?t:ae(e.type)||"Memo";case k:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}var ee=Array.isArray,W=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},be=[],re=-1;function I(e){return{current:e}}function U(e){0>re||(e.current=be[re],be[re]=null,re--)}function G(e,t){re++,be[re]=e.current,e.current=t}var ye=I(null),Q=I(null),je=I(null),ie=I(null);function K(e,t){switch(G(je,t),G(Q,e),G(ye,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?pm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=pm(t),e=ym(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(ye),G(ye,e)}function ge(){U(ye),U(Q),U(je)}function ue(e){e.memoizedState!==null&&G(ie,e);var t=ye.current,r=ym(t,e.type);t!==r&&(G(Q,e),G(ye,r))}function de(e){Q.current===e&&(U(ye),U(Q)),ie.current===e&&(U(ie),ol._currentValue=Z)}var me,Be;function Ae(e){if(me===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);me=t&&t[1]||"",Be=-1<r.stack.indexOf(`
    at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
`+me+e+Be}var X=!1;function ce(e,t){if(!e||X)return"";X=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var qe=function(){throw Error()};if(Object.defineProperty(qe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(qe,[])}catch(Oe){var Te=Oe}Reflect.construct(e,[],qe)}else{try{qe.call()}catch(Oe){Te=Oe}e.call(qe.prototype)}}else{try{throw Error()}catch(Oe){Te=Oe}(qe=e())&&typeof qe.catch=="function"&&qe.catch(function(){})}}catch(Oe){if(Oe&&Te&&typeof Oe.stack=="string")return[Oe.stack,Te.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=n.DetermineComponentFrameRoot(),x=h[0],q=h[1];if(x&&q){var oe=x.split(`
`),Ee=q.split(`
`);for(s=n=0;n<oe.length&&!oe[n].includes("DetermineComponentFrameRoot");)n++;for(;s<Ee.length&&!Ee[s].includes("DetermineComponentFrameRoot");)s++;if(n===oe.length||s===Ee.length)for(n=oe.length-1,s=Ee.length-1;1<=n&&0<=s&&oe[n]!==Ee[s];)s--;for(;1<=n&&0<=s;n--,s--)if(oe[n]!==Ee[s]){if(n!==1||s!==1)do if(n--,s--,0>s||oe[n]!==Ee[s]){var De=`
`+oe[n].replace(" at new "," at ");return e.displayName&&De.includes("<anonymous>")&&(De=De.replace("<anonymous>",e.displayName)),De}while(1<=n&&0<=s);break}}}finally{X=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?Ae(r):""}function Se(e,t){switch(e.tag){case 26:case 27:case 5:return Ae(e.type);case 16:return Ae("Lazy");case 13:return e.child!==t&&t!==null?Ae("Suspense Fallback"):Ae("Suspense");case 19:return Ae("SuspenseList");case 0:case 15:return ce(e.type,!1);case 11:return ce(e.type.render,!1);case 1:return ce(e.type,!0);case 31:return Ae("Activity");default:return""}}function Ue(e){try{var t="",r=null;do t+=Se(e,r),r=e,e=e.return;while(e);return t}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}var Me=Object.prototype.hasOwnProperty,ze=f.unstable_scheduleCallback,he=f.unstable_cancelCallback,ke=f.unstable_shouldYield,Pe=f.unstable_requestPaint,xe=f.unstable_now,tt=f.unstable_getCurrentPriorityLevel,g=f.unstable_ImmediatePriority,v=f.unstable_UserBlockingPriority,E=f.unstable_NormalPriority,L=f.unstable_LowPriority,F=f.unstable_IdlePriority,se=f.log,_e=f.unstable_setDisableYieldValue,ne=null,le=null;function Ge(e){if(typeof se=="function"&&_e(e),le&&typeof le.setStrictMode=="function")try{le.setStrictMode(ne,e)}catch{}}var Ye=Math.clz32?Math.clz32:Nt,Ke=Math.log,rt=Math.LN2;function Nt(e){return e>>>=0,e===0?32:31-(Ke(e)/rt|0)|0}var Mt=256,lt=262144,gt=4194304;function $e(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ut(e,t,r){var n=e.pendingLanes;if(n===0)return 0;var s=0,h=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var q=n&134217727;return q!==0?(n=q&~h,n!==0?s=$e(n):(x&=q,x!==0?s=$e(x):r||(r=q&~e,r!==0&&(s=$e(r))))):(q=n&~h,q!==0?s=$e(q):x!==0?s=$e(x):r||(r=n&~e,r!==0&&(s=$e(r)))),s===0?0:t!==0&&t!==s&&(t&h)===0&&(h=s&-s,r=t&-t,h>=r||h===32&&(r&4194048)!==0)?t:s}function yt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Bt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pt(){var e=gt;return gt<<=1,(gt&62914560)===0&&(gt=4194304),e}function cr(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function P(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function $(e,t,r,n,s,h){var x=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var q=e.entanglements,oe=e.expirationTimes,Ee=e.hiddenUpdates;for(r=x&~r;0<r;){var De=31-Ye(r),qe=1<<De;q[De]=0,oe[De]=-1;var Te=Ee[De];if(Te!==null)for(Ee[De]=null,De=0;De<Te.length;De++){var Oe=Te[De];Oe!==null&&(Oe.lane&=-536870913)}r&=~qe}n!==0&&He(e,n,0),h!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=h&~(x&~t))}function He(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Ye(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|r&261930}function Ve(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Ye(r),s=1<<n;s&t|e[n]&t&&(e[n]|=t),r&=~s}}function Fe(e,t){var r=t&-t;return r=(r&42)!==0?1:It(r),(r&(e.suspendedLanes|t))!==0?0:r}function It(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Wt(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function pr(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:zm(e.type))}function Mn(e,t){var r=V.p;try{return V.p=e,t()}finally{V.p=r}}var yr=Math.random().toString(36).slice(2),zt="__reactFiber$"+yr,Xt="__reactProps$"+yr,mr="__reactContainer$"+yr,gr="__reactEvents$"+yr,Kr="__reactListeners$"+yr,en="__reactHandles$"+yr,xr="__reactResources$"+yr,fr="__reactMarker$"+yr;function _s(e){delete e[zt],delete e[Xt],delete e[gr],delete e[Kr],delete e[en]}function Ri(e){var t=e[zt];if(t)return t;for(var r=e.parentNode;r;){if(t=r[mr]||r[zt]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=wm(e);e!==null;){if(r=e[zt])return r;e=wm(e)}return t}e=r,r=e.parentNode}return null}function Ui(e){if(e=e[zt]||e[mr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ea(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function Bi(e){var t=e[xr];return t||(t=e[xr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function $t(e){e[fr]=!0}var rd=new Set,nd={};function si(e,t){Di(e,t),Di(e+"Capture",t)}function Di(e,t){for(nd[e]=t,e=0;e<t.length;e++)rd.add(t[e])}var Wv=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]*$"),id={},ad={};function Xv(e){return Me.call(ad,e)?!0:Me.call(id,e)?!1:Wv.test(e)?ad[e]=!0:(id[e]=!0,!1)}function wl(e,t,r){if(Xv(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+r)}}function El(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+r)}}function tn(e,t,r,n){if(n===null)e.removeAttribute(r);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(t,r,""+n)}}function Br(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ld(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Zv(e,t,r){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,h=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(x){r=""+x,h.call(this,x)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(x){r=""+x},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ss(e){if(!e._valueTracker){var t=ld(e)?"checked":"value";e._valueTracker=Zv(e,t,""+e[t])}}function od(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=ld(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Al(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var $v=/[\n"\\]/g;function Dr(e){return e.replace($v,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ws(e,t,r,n,s,h,x,q){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),t!=null?x==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Br(t)):e.value!==""+Br(t)&&(e.value=""+Br(t)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),t!=null?Es(e,x,Br(t)):r!=null?Es(e,x,Br(r)):n!=null&&e.removeAttribute("value"),s==null&&h!=null&&(e.defaultChecked=!!h),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),q!=null&&typeof q!="function"&&typeof q!="symbol"&&typeof q!="boolean"?e.name=""+Br(q):e.removeAttribute("name")}function sd(e,t,r,n,s,h,x,q){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),t!=null||r!=null){if(!(h!=="submit"&&h!=="reset"||t!=null)){Ss(e);return}r=r!=null?""+Br(r):"",t=t!=null?""+Br(t):r,q||t===e.value||(e.value=t),e.defaultValue=t}n=n??s,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=q?e.checked:!!n,e.defaultChecked=!!n,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x),Ss(e)}function Es(e,t,r){t==="number"&&Al(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function ki(e,t,r,n){if(e=e.options,t){t={};for(var s=0;s<r.length;s++)t["$"+r[s]]=!0;for(r=0;r<e.length;r++)s=t.hasOwnProperty("$"+e[r].value),e[r].selected!==s&&(e[r].selected=s),s&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Br(r),t=null,s=0;s<e.length;s++){if(e[s].value===r){e[s].selected=!0,n&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function ud(e,t,r){if(t!=null&&(t=""+Br(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+Br(r):""}function cd(e,t,r,n){if(t==null){if(n!=null){if(r!=null)throw Error(c(92));if(ee(n)){if(1<n.length)throw Error(c(93));n=n[0]}r=n}r==null&&(r=""),t=r}r=Br(t),e.defaultValue=r,n=e.textContent,n===r&&n!==""&&n!==null&&(e.value=n),Ss(e)}function Ii(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Jv=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(" "));function fd(e,t,r){var n=t.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,r):typeof r!="number"||r===0||Jv.has(t)?t==="float"?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function hd(e,t,r){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,r!=null){for(var n in r)!r.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var s in t)n=t[s],t.hasOwnProperty(s)&&r[s]!==n&&fd(e,s,n)}else for(var h in t)t.hasOwnProperty(h)&&fd(e,h,t[h])}function As(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var e0=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"]]),t0=/^[\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;function Tl(e){return t0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function rn(){}var Ts=null;function xs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zi=null,Li=null;function dd(e){var t=Ui(e);if(t&&(e=t.stateNode)){var r=e[Xt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ws(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+Dr(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var s=n[Xt]||null;if(!s)throw Error(c(90));ws(n,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<r.length;t++)n=r[t],n.form===e.form&&od(n)}break e;case"textarea":ud(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&ki(e,!!r.multiple,t,!1)}}}var Os=!1;function pd(e,t,r){if(Os)return e(t,r);Os=!0;try{var n=e(t);return n}finally{if(Os=!1,(zi!==null||Li!==null)&&(ho(),zi&&(t=zi,e=Li,Li=zi=null,dd(t),e)))for(t=0;t<e.length;t++)dd(e[t])}}function Aa(e,t){var r=e.stateNode;if(r===null)return null;var n=r[Xt]||null;if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(c(231,t,typeof r));return r}var nn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),js=!1;if(nn)try{var Ta={};Object.defineProperty(Ta,"passive",{get:function(){js=!0}}),window.addEventListener("test",Ta,Ta),window.removeEventListener("test",Ta,Ta)}catch{js=!1}var Nn=null,Ms=null,xl=null;function yd(){if(xl)return xl;var e,t=Ms,r=t.length,n,s="value"in Nn?Nn.value:Nn.textContent,h=s.length;for(e=0;e<r&&t[e]===s[e];e++);var x=r-e;for(n=1;n<=x&&t[r-n]===s[h-n];n++);return xl=s.slice(e,1<n?1-n:void 0)}function Ol(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function jl(){return!0}function md(){return!1}function br(e){function t(r,n,s,h,x){this._reactName=r,this._targetInst=s,this.type=n,this.nativeEvent=h,this.target=x,this.currentTarget=null;for(var q in e)e.hasOwnProperty(q)&&(r=e[q],this[q]=r?r(h):h[q]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?jl:md,this.isPropagationStopped=md,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=jl)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=jl)},persist:function(){},isPersistent:jl}),t}var ui={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ml=br(ui),xa=b({},ui,{view:0,detail:0}),r0=br(xa),Ns,Cs,Oa,Nl=b({},xa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Us,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Oa&&(Oa&&e.type==="mousemove"?(Ns=e.screenX-Oa.screenX,Cs=e.screenY-Oa.screenY):Cs=Ns=0,Oa=e),Ns)},movementY:function(e){return"movementY"in e?e.movementY:Cs}}),gd=br(Nl),n0=b({},Nl,{dataTransfer:0}),i0=br(n0),a0=b({},xa,{relatedTarget:0}),Rs=br(a0),l0=b({},ui,{animationName:0,elapsedTime:0,pseudoElement:0}),o0=br(l0),s0=b({},ui,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),u0=br(s0),c0=b({},ui,{data:0}),bd=br(c0),f0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},h0={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"},d0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function p0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=d0[e])?!!t[e]:!1}function Us(){return p0}var y0=b({},xa,{key:function(e){if(e.key){var t=f0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ol(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?h0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Us,charCode:function(e){return e.type==="keypress"?Ol(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ol(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),m0=br(y0),g0=b({},Nl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vd=br(g0),b0=b({},xa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Us}),v0=br(b0),_0=b({},ui,{propertyName:0,elapsedTime:0,pseudoElement:0}),S0=br(_0),w0=b({},Nl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),E0=br(w0),A0=b({},ui,{newState:0,oldState:0}),T0=br(A0),x0=[9,13,27,32],Bs=nn&&"CompositionEvent"in window,ja=null;nn&&"documentMode"in document&&(ja=document.documentMode);var O0=nn&&"TextEvent"in window&&!ja,_d=nn&&(!Bs||ja&&8<ja&&11>=ja),Sd=" ",wd=!1;function Ed(e,t){switch(e){case"keyup":return x0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ad(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qi=!1;function j0(e,t){switch(e){case"compositionend":return Ad(t);case"keypress":return t.which!==32?null:(wd=!0,Sd);case"textInput":return e=t.data,e===Sd&&wd?null:e;default:return null}}function M0(e,t){if(qi)return e==="compositionend"||!Bs&&Ed(e,t)?(e=yd(),xl=Ms=Nn=null,qi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return _d&&t.locale!=="ko"?null:t.data;default:return null}}var N0={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Td(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!N0[e.type]:t==="textarea"}function xd(e,t,r,n){zi?Li?Li.push(n):Li=[n]:zi=n,t=_o(t,"onChange"),0<t.length&&(r=new Ml("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Ma=null,Na=null;function C0(e){sm(e,0)}function Cl(e){var t=Ea(e);if(od(t))return e}function Od(e,t){if(e==="change")return t}var jd=!1;if(nn){var Ds;if(nn){var ks="oninput"in document;if(!ks){var Md=document.createElement("div");Md.setAttribute("oninput","return;"),ks=typeof Md.oninput=="function"}Ds=ks}else Ds=!1;jd=Ds&&(!document.documentMode||9<document.documentMode)}function Nd(){Ma&&(Ma.detachEvent("onpropertychange",Cd),Na=Ma=null)}function Cd(e){if(e.propertyName==="value"&&Cl(Na)){var t=[];xd(t,Na,e,xs(e)),pd(C0,t)}}function R0(e,t,r){e==="focusin"?(Nd(),Ma=t,Na=r,Ma.attachEvent("onpropertychange",Cd)):e==="focusout"&&Nd()}function U0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Cl(Na)}function B0(e,t){if(e==="click")return Cl(t)}function D0(e,t){if(e==="input"||e==="change")return Cl(t)}function k0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Or=typeof Object.is=="function"?Object.is:k0;function Ca(e,t){if(Or(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var s=r[n];if(!Me.call(t,s)||!Or(e[s],t[s]))return!1}return!0}function Rd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ud(e,t){var r=Rd(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Rd(r)}}function Bd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Bd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Al(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Al(e.document)}return t}function Is(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var I0=nn&&"documentMode"in document&&11>=document.documentMode,Hi=null,zs=null,Ra=null,Ls=!1;function kd(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ls||Hi==null||Hi!==Al(n)||(n=Hi,"selectionStart"in n&&Is(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ra&&Ca(Ra,n)||(Ra=n,n=_o(zs,"onSelect"),0<n.length&&(t=new Ml("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Hi)))}function ci(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Pi={animationend:ci("Animation","AnimationEnd"),animationiteration:ci("Animation","AnimationIteration"),animationstart:ci("Animation","AnimationStart"),transitionrun:ci("Transition","TransitionRun"),transitionstart:ci("Transition","TransitionStart"),transitioncancel:ci("Transition","TransitionCancel"),transitionend:ci("Transition","TransitionEnd")},qs={},Id={};nn&&(Id=document.createElement("div").style,"AnimationEvent"in window||(delete Pi.animationend.animation,delete Pi.animationiteration.animation,delete Pi.animationstart.animation),"TransitionEvent"in window||delete Pi.transitionend.transition);function fi(e){if(qs[e])return qs[e];if(!Pi[e])return e;var t=Pi[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Id)return qs[e]=t[r];return e}var zd=fi("animationend"),Ld=fi("animationiteration"),qd=fi("animationstart"),z0=fi("transitionrun"),L0=fi("transitionstart"),q0=fi("transitioncancel"),Hd=fi("transitionend"),Pd=new Map,Hs="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(" ");Hs.push("scrollEnd");function Yr(e,t){Pd.set(e,t),si(t,[e])}var Rl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},kr=[],Gi=0,Ps=0;function Ul(){for(var e=Gi,t=Ps=Gi=0;t<e;){var r=kr[t];kr[t++]=null;var n=kr[t];kr[t++]=null;var s=kr[t];kr[t++]=null;var h=kr[t];if(kr[t++]=null,n!==null&&s!==null){var x=n.pending;x===null?s.next=s:(s.next=x.next,x.next=s),n.pending=s}h!==0&&Gd(r,s,h)}}function Bl(e,t,r,n){kr[Gi++]=e,kr[Gi++]=t,kr[Gi++]=r,kr[Gi++]=n,Ps|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Gs(e,t,r,n){return Bl(e,t,r,n),Dl(e)}function hi(e,t){return Bl(e,null,null,t),Dl(e)}function Gd(e,t,r){e.lanes|=r;var n=e.alternate;n!==null&&(n.lanes|=r);for(var s=!1,h=e.return;h!==null;)h.childLanes|=r,n=h.alternate,n!==null&&(n.childLanes|=r),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(s=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,s&&t!==null&&(s=31-Ye(r),e=h.hiddenUpdates,n=e[s],n===null?e[s]=[t]:n.push(t),t.lane=r|536870912),h):null}function Dl(e){if(50<el)throw el=0,$u=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Yi={};function H0(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jr(e,t,r,n){return new H0(e,t,r,n)}function Ys(e){return e=e.prototype,!(!e||!e.isReactComponent)}function an(e,t){var r=e.alternate;return r===null?(r=jr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function Yd(e,t){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function kl(e,t,r,n,s,h){var x=0;if(n=e,typeof e=="function")Ys(e)&&(x=1);else if(typeof e=="string")x=V_(e,r,ye.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case z:return e=jr(31,r,t,s),e.elementType=z,e.lanes=h,e;case M:return di(r.children,s,h,t);case j:x=8,s|=24;break;case C:return e=jr(12,r,t,s|2),e.elementType=C,e.lanes=h,e;case T:return e=jr(13,r,t,s),e.elementType=T,e.lanes=h,e;case H:return e=jr(19,r,t,s),e.elementType=H,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:x=10;break e;case S:x=9;break e;case N:x=11;break e;case D:x=14;break e;case k:x=16,n=null;break e}x=29,r=Error(c(130,e===null?"null":typeof e,"")),n=null}return t=jr(x,r,t,s),t.elementType=e,t.type=n,t.lanes=h,t}function di(e,t,r,n){return e=jr(7,e,n,t),e.lanes=r,e}function Qs(e,t,r){return e=jr(6,e,null,t),e.lanes=r,e}function Qd(e){var t=jr(18,null,null,0);return t.stateNode=e,t}function Vs(e,t,r){return t=jr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Vd=new WeakMap;function Ir(e,t){if(typeof e=="object"&&e!==null){var r=Vd.get(e);return r!==void 0?r:(t={value:e,source:t,stack:Ue(t)},Vd.set(e,t),t)}return{value:e,source:t,stack:Ue(t)}}var Qi=[],Vi=0,Il=null,Ua=0,zr=[],Lr=0,Cn=null,Fr=1,Wr="";function ln(e,t){Qi[Vi++]=Ua,Qi[Vi++]=Il,Il=e,Ua=t}function Kd(e,t,r){zr[Lr++]=Fr,zr[Lr++]=Wr,zr[Lr++]=Cn,Cn=e;var n=Fr;e=Wr;var s=32-Ye(n)-1;n&=~(1<<s),r+=1;var h=32-Ye(t)+s;if(30<h){var x=s-s%5;h=(n&(1<<x)-1).toString(32),n>>=x,s-=x,Fr=1<<32-Ye(t)+s|r<<s|n,Wr=h+e}else Fr=1<<h|r<<s|n,Wr=e}function Ks(e){e.return!==null&&(ln(e,1),Kd(e,1,0))}function Fs(e){for(;e===Il;)Il=Qi[--Vi],Qi[Vi]=null,Ua=Qi[--Vi],Qi[Vi]=null;for(;e===Cn;)Cn=zr[--Lr],zr[Lr]=null,Wr=zr[--Lr],zr[Lr]=null,Fr=zr[--Lr],zr[Lr]=null}function Fd(e,t){zr[Lr++]=Fr,zr[Lr++]=Wr,zr[Lr++]=Cn,Fr=t.id,Wr=t.overflow,Cn=e}var rr=null,Ct=null,pt=!1,Rn=null,qr=!1,Ws=Error(c(519));function Un(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ba(Ir(t,e)),Ws}function Wd(e){var t=e.stateNode,r=e.type,n=e.memoizedProps;switch(t[zt]=e,t[Xt]=n,r){case"dialog":ft("cancel",t),ft("close",t);break;case"iframe":case"object":case"embed":ft("load",t);break;case"video":case"audio":for(r=0;r<rl.length;r++)ft(rl[r],t);break;case"source":ft("error",t);break;case"img":case"image":case"link":ft("error",t),ft("load",t);break;case"details":ft("toggle",t);break;case"input":ft("invalid",t),sd(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":ft("invalid",t);break;case"textarea":ft("invalid",t),cd(t,n.value,n.defaultValue,n.children)}r=n.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||n.suppressHydrationWarning===!0||hm(t.textContent,r)?(n.popover!=null&&(ft("beforetoggle",t),ft("toggle",t)),n.onScroll!=null&&ft("scroll",t),n.onScrollEnd!=null&&ft("scrollend",t),n.onClick!=null&&(t.onclick=rn),t=!0):t=!1,t||Un(e,!0)}function Xd(e){for(rr=e.return;rr;)switch(rr.tag){case 5:case 31:case 13:qr=!1;return;case 27:case 3:qr=!0;return;default:rr=rr.return}}function Ki(e){if(e!==rr)return!1;if(!pt)return Xd(e),pt=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||dc(e.type,e.memoizedProps)),r=!r),r&&Ct&&Un(e),Xd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Ct=Sm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Ct=Sm(e)}else t===27?(t=Ct,Kn(e.type)?(e=bc,bc=null,Ct=e):Ct=t):Ct=rr?Pr(e.stateNode.nextSibling):null;return!0}function pi(){Ct=rr=null,pt=!1}function Xs(){var e=Rn;return e!==null&&(wr===null?wr=e:wr.push.apply(wr,e),Rn=null),e}function Ba(e){Rn===null?Rn=[e]:Rn.push(e)}var Zs=I(null),yi=null,on=null;function Bn(e,t,r){G(Zs,t._currentValue),t._currentValue=r}function sn(e){e._currentValue=Zs.current,U(Zs)}function $s(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Js(e,t,r,n){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var h=s.dependencies;if(h!==null){var x=s.child;h=h.firstContext;e:for(;h!==null;){var q=h;h=s;for(var oe=0;oe<t.length;oe++)if(q.context===t[oe]){h.lanes|=r,q=h.alternate,q!==null&&(q.lanes|=r),$s(h.return,r,e),n||(x=null);break e}h=q.next}}else if(s.tag===18){if(x=s.return,x===null)throw Error(c(341));x.lanes|=r,h=x.alternate,h!==null&&(h.lanes|=r),$s(x,r,e),x=null}else x=s.child;if(x!==null)x.return=s;else for(x=s;x!==null;){if(x===e){x=null;break}if(s=x.sibling,s!==null){s.return=x.return,x=s;break}x=x.return}s=x}}function Fi(e,t,r,n){e=null;for(var s=t,h=!1;s!==null;){if(!h){if((s.flags&524288)!==0)h=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var x=s.alternate;if(x===null)throw Error(c(387));if(x=x.memoizedProps,x!==null){var q=s.type;Or(s.pendingProps.value,x.value)||(e!==null?e.push(q):e=[q])}}else if(s===ie.current){if(x=s.alternate,x===null)throw Error(c(387));x.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(ol):e=[ol])}s=s.return}e!==null&&Js(t,e,r,n),t.flags|=262144}function zl(e){for(e=e.firstContext;e!==null;){if(!Or(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function mi(e){yi=e,on=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function nr(e){return Zd(yi,e)}function Ll(e,t){return yi===null&&mi(e),Zd(e,t)}function Zd(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},on===null){if(e===null)throw Error(c(308));on=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else on=on.next=t;return r}var P0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},G0=f.unstable_scheduleCallback,Y0=f.unstable_NormalPriority,Qt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function eu(){return{controller:new P0,data:new Map,refCount:0}}function Da(e){e.refCount--,e.refCount===0&&G0(Y0,function(){e.controller.abort()})}var ka=null,tu=0,Wi=0,Xi=null;function Q0(e,t){if(ka===null){var r=ka=[];tu=0,Wi=ic(),Xi={status:"pending",value:void 0,then:function(n){r.push(n)}}}return tu++,t.then($d,$d),t}function $d(){if(--tu===0&&ka!==null){Xi!==null&&(Xi.status="fulfilled");var e=ka;ka=null,Wi=0,Xi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function V0(e,t){var r=[],n={status:"pending",value:null,reason:null,then:function(s){r.push(s)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var s=0;s<r.length;s++)(0,r[s])(t)},function(s){for(n.status="rejected",n.reason=s,s=0;s<r.length;s++)(0,r[s])(void 0)}),n}var Jd=W.S;W.S=function(e,t){ky=xe(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Q0(e,t),Jd!==null&&Jd(e,t)};var gi=I(null);function ru(){var e=gi.current;return e!==null?e:jt.pooledCache}function ql(e,t){t===null?G(gi,gi.current):G(gi,t.pool)}function ep(){var e=ru();return e===null?null:{parent:Qt._currentValue,pool:e}}var Zi=Error(c(460)),nu=Error(c(474)),Hl=Error(c(542)),Pl={then:function(){}};function tp(e){return e=e.status,e==="fulfilled"||e==="rejected"}function rp(e,t,r){switch(r=e[r],r===void 0?e.push(t):r!==t&&(t.then(rn,rn),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ip(e),e;default:if(typeof t.status=="string")t.then(rn,rn);else{if(e=jt,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=n}},function(n){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ip(e),e}throw vi=t,Zi}}function bi(e){try{var t=e._init;return t(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(vi=r,Zi):r}}var vi=null;function np(){if(vi===null)throw Error(c(459));var e=vi;return vi=null,e}function ip(e){if(e===Zi||e===Hl)throw Error(c(483))}var $i=null,Ia=0;function Gl(e){var t=Ia;return Ia+=1,$i===null&&($i=[]),rp($i,e,t)}function za(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Yl(e,t){throw t.$$typeof===_?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ap(e){function t(ve,pe){if(e){var we=ve.deletions;we===null?(ve.deletions=[pe],ve.flags|=16):we.push(pe)}}function r(ve,pe){if(!e)return null;for(;pe!==null;)t(ve,pe),pe=pe.sibling;return null}function n(ve){for(var pe=new Map;ve!==null;)ve.key!==null?pe.set(ve.key,ve):pe.set(ve.index,ve),ve=ve.sibling;return pe}function s(ve,pe){return ve=an(ve,pe),ve.index=0,ve.sibling=null,ve}function h(ve,pe,we){return ve.index=we,e?(we=ve.alternate,we!==null?(we=we.index,we<pe?(ve.flags|=67108866,pe):we):(ve.flags|=67108866,pe)):(ve.flags|=1048576,pe)}function x(ve){return e&&ve.alternate===null&&(ve.flags|=67108866),ve}function q(ve,pe,we,Le){return pe===null||pe.tag!==6?(pe=Qs(we,ve.mode,Le),pe.return=ve,pe):(pe=s(pe,we),pe.return=ve,pe)}function oe(ve,pe,we,Le){var et=we.type;return et===M?De(ve,pe,we.props.children,Le,we.key):pe!==null&&(pe.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===k&&bi(et)===pe.type)?(pe=s(pe,we.props),za(pe,we),pe.return=ve,pe):(pe=kl(we.type,we.key,we.props,null,ve.mode,Le),za(pe,we),pe.return=ve,pe)}function Ee(ve,pe,we,Le){return pe===null||pe.tag!==4||pe.stateNode.containerInfo!==we.containerInfo||pe.stateNode.implementation!==we.implementation?(pe=Vs(we,ve.mode,Le),pe.return=ve,pe):(pe=s(pe,we.children||[]),pe.return=ve,pe)}function De(ve,pe,we,Le,et){return pe===null||pe.tag!==7?(pe=di(we,ve.mode,Le,et),pe.return=ve,pe):(pe=s(pe,we),pe.return=ve,pe)}function qe(ve,pe,we){if(typeof pe=="string"&&pe!==""||typeof pe=="number"||typeof pe=="bigint")return pe=Qs(""+pe,ve.mode,we),pe.return=ve,pe;if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case w:return we=kl(pe.type,pe.key,pe.props,null,ve.mode,we),za(we,pe),we.return=ve,we;case A:return pe=Vs(pe,ve.mode,we),pe.return=ve,pe;case k:return pe=bi(pe),qe(ve,pe,we)}if(ee(pe)||B(pe))return pe=di(pe,ve.mode,we,null),pe.return=ve,pe;if(typeof pe.then=="function")return qe(ve,Gl(pe),we);if(pe.$$typeof===O)return qe(ve,Ll(ve,pe),we);Yl(ve,pe)}return null}function Te(ve,pe,we,Le){var et=pe!==null?pe.key:null;if(typeof we=="string"&&we!==""||typeof we=="number"||typeof we=="bigint")return et!==null?null:q(ve,pe,""+we,Le);if(typeof we=="object"&&we!==null){switch(we.$$typeof){case w:return we.key===et?oe(ve,pe,we,Le):null;case A:return we.key===et?Ee(ve,pe,we,Le):null;case k:return we=bi(we),Te(ve,pe,we,Le)}if(ee(we)||B(we))return et!==null?null:De(ve,pe,we,Le,null);if(typeof we.then=="function")return Te(ve,pe,Gl(we),Le);if(we.$$typeof===O)return Te(ve,pe,Ll(ve,we),Le);Yl(ve,we)}return null}function Oe(ve,pe,we,Le,et){if(typeof Le=="string"&&Le!==""||typeof Le=="number"||typeof Le=="bigint")return ve=ve.get(we)||null,q(pe,ve,""+Le,et);if(typeof Le=="object"&&Le!==null){switch(Le.$$typeof){case w:return ve=ve.get(Le.key===null?we:Le.key)||null,oe(pe,ve,Le,et);case A:return ve=ve.get(Le.key===null?we:Le.key)||null,Ee(pe,ve,Le,et);case k:return Le=bi(Le),Oe(ve,pe,we,Le,et)}if(ee(Le)||B(Le))return ve=ve.get(we)||null,De(pe,ve,Le,et,null);if(typeof Le.then=="function")return Oe(ve,pe,we,Gl(Le),et);if(Le.$$typeof===O)return Oe(ve,pe,we,Ll(pe,Le),et);Yl(pe,Le)}return null}function We(ve,pe,we,Le){for(var et=null,bt=null,Ze=pe,st=pe=0,dt=null;Ze!==null&&st<we.length;st++){Ze.index>st?(dt=Ze,Ze=null):dt=Ze.sibling;var vt=Te(ve,Ze,we[st],Le);if(vt===null){Ze===null&&(Ze=dt);break}e&&Ze&&vt.alternate===null&&t(ve,Ze),pe=h(vt,pe,st),bt===null?et=vt:bt.sibling=vt,bt=vt,Ze=dt}if(st===we.length)return r(ve,Ze),pt&&ln(ve,st),et;if(Ze===null){for(;st<we.length;st++)Ze=qe(ve,we[st],Le),Ze!==null&&(pe=h(Ze,pe,st),bt===null?et=Ze:bt.sibling=Ze,bt=Ze);return pt&&ln(ve,st),et}for(Ze=n(Ze);st<we.length;st++)dt=Oe(Ze,ve,st,we[st],Le),dt!==null&&(e&&dt.alternate!==null&&Ze.delete(dt.key===null?st:dt.key),pe=h(dt,pe,st),bt===null?et=dt:bt.sibling=dt,bt=dt);return e&&Ze.forEach(function($n){return t(ve,$n)}),pt&&ln(ve,st),et}function nt(ve,pe,we,Le){if(we==null)throw Error(c(151));for(var et=null,bt=null,Ze=pe,st=pe=0,dt=null,vt=we.next();Ze!==null&&!vt.done;st++,vt=we.next()){Ze.index>st?(dt=Ze,Ze=null):dt=Ze.sibling;var $n=Te(ve,Ze,vt.value,Le);if($n===null){Ze===null&&(Ze=dt);break}e&&Ze&&$n.alternate===null&&t(ve,Ze),pe=h($n,pe,st),bt===null?et=$n:bt.sibling=$n,bt=$n,Ze=dt}if(vt.done)return r(ve,Ze),pt&&ln(ve,st),et;if(Ze===null){for(;!vt.done;st++,vt=we.next())vt=qe(ve,vt.value,Le),vt!==null&&(pe=h(vt,pe,st),bt===null?et=vt:bt.sibling=vt,bt=vt);return pt&&ln(ve,st),et}for(Ze=n(Ze);!vt.done;st++,vt=we.next())vt=Oe(Ze,ve,st,vt.value,Le),vt!==null&&(e&&vt.alternate!==null&&Ze.delete(vt.key===null?st:vt.key),pe=h(vt,pe,st),bt===null?et=vt:bt.sibling=vt,bt=vt);return e&&Ze.forEach(function(n1){return t(ve,n1)}),pt&&ln(ve,st),et}function xt(ve,pe,we,Le){if(typeof we=="object"&&we!==null&&we.type===M&&we.key===null&&(we=we.props.children),typeof we=="object"&&we!==null){switch(we.$$typeof){case w:e:{for(var et=we.key;pe!==null;){if(pe.key===et){if(et=we.type,et===M){if(pe.tag===7){r(ve,pe.sibling),Le=s(pe,we.props.children),Le.return=ve,ve=Le;break e}}else if(pe.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===k&&bi(et)===pe.type){r(ve,pe.sibling),Le=s(pe,we.props),za(Le,we),Le.return=ve,ve=Le;break e}r(ve,pe);break}else t(ve,pe);pe=pe.sibling}we.type===M?(Le=di(we.props.children,ve.mode,Le,we.key),Le.return=ve,ve=Le):(Le=kl(we.type,we.key,we.props,null,ve.mode,Le),za(Le,we),Le.return=ve,ve=Le)}return x(ve);case A:e:{for(et=we.key;pe!==null;){if(pe.key===et)if(pe.tag===4&&pe.stateNode.containerInfo===we.containerInfo&&pe.stateNode.implementation===we.implementation){r(ve,pe.sibling),Le=s(pe,we.children||[]),Le.return=ve,ve=Le;break e}else{r(ve,pe);break}else t(ve,pe);pe=pe.sibling}Le=Vs(we,ve.mode,Le),Le.return=ve,ve=Le}return x(ve);case k:return we=bi(we),xt(ve,pe,we,Le)}if(ee(we))return We(ve,pe,we,Le);if(B(we)){if(et=B(we),typeof et!="function")throw Error(c(150));return we=et.call(we),nt(ve,pe,we,Le)}if(typeof we.then=="function")return xt(ve,pe,Gl(we),Le);if(we.$$typeof===O)return xt(ve,pe,Ll(ve,we),Le);Yl(ve,we)}return typeof we=="string"&&we!==""||typeof we=="number"||typeof we=="bigint"?(we=""+we,pe!==null&&pe.tag===6?(r(ve,pe.sibling),Le=s(pe,we),Le.return=ve,ve=Le):(r(ve,pe),Le=Qs(we,ve.mode,Le),Le.return=ve,ve=Le),x(ve)):r(ve,pe)}return function(ve,pe,we,Le){try{Ia=0;var et=xt(ve,pe,we,Le);return $i=null,et}catch(Ze){if(Ze===Zi||Ze===Hl)throw Ze;var bt=jr(29,Ze,null,ve.mode);return bt.lanes=Le,bt.return=ve,bt}finally{}}}var _i=ap(!0),lp=ap(!1),Dn=!1;function iu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function au(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function kn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function In(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(St&2)!==0){var s=n.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),n.pending=t,t=Dl(e),Gd(e,null,r),t}return Bl(e,n,t,r),Dl(e)}function La(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Ve(e,r)}}function lu(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var s=null,h=null;if(r=r.firstBaseUpdate,r!==null){do{var x={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};h===null?s=h=x:h=h.next=x,r=r.next}while(r!==null);h===null?s=h=t:h=h.next=t}else s=h=t;r={baseState:n.baseState,firstBaseUpdate:s,lastBaseUpdate:h,shared:n.shared,callbacks:n.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var ou=!1;function qa(){if(ou){var e=Xi;if(e!==null)throw e}}function Ha(e,t,r,n){ou=!1;var s=e.updateQueue;Dn=!1;var h=s.firstBaseUpdate,x=s.lastBaseUpdate,q=s.shared.pending;if(q!==null){s.shared.pending=null;var oe=q,Ee=oe.next;oe.next=null,x===null?h=Ee:x.next=Ee,x=oe;var De=e.alternate;De!==null&&(De=De.updateQueue,q=De.lastBaseUpdate,q!==x&&(q===null?De.firstBaseUpdate=Ee:q.next=Ee,De.lastBaseUpdate=oe))}if(h!==null){var qe=s.baseState;x=0,De=Ee=oe=null,q=h;do{var Te=q.lane&-536870913,Oe=Te!==q.lane;if(Oe?(ht&Te)===Te:(n&Te)===Te){Te!==0&&Te===Wi&&(ou=!0),De!==null&&(De=De.next={lane:0,tag:q.tag,payload:q.payload,callback:null,next:null});e:{var We=e,nt=q;Te=t;var xt=r;switch(nt.tag){case 1:if(We=nt.payload,typeof We=="function"){qe=We.call(xt,qe,Te);break e}qe=We;break e;case 3:We.flags=We.flags&-65537|128;case 0:if(We=nt.payload,Te=typeof We=="function"?We.call(xt,qe,Te):We,Te==null)break e;qe=b({},qe,Te);break e;case 2:Dn=!0}}Te=q.callback,Te!==null&&(e.flags|=64,Oe&&(e.flags|=8192),Oe=s.callbacks,Oe===null?s.callbacks=[Te]:Oe.push(Te))}else Oe={lane:Te,tag:q.tag,payload:q.payload,callback:q.callback,next:null},De===null?(Ee=De=Oe,oe=qe):De=De.next=Oe,x|=Te;if(q=q.next,q===null){if(q=s.shared.pending,q===null)break;Oe=q,q=Oe.next,Oe.next=null,s.lastBaseUpdate=Oe,s.shared.pending=null}}while(!0);De===null&&(oe=qe),s.baseState=oe,s.firstBaseUpdate=Ee,s.lastBaseUpdate=De,h===null&&(s.shared.lanes=0),Pn|=x,e.lanes=x,e.memoizedState=qe}}function op(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function sp(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)op(r[e],t)}var Ji=I(null),Ql=I(0);function up(e,t){e=gn,G(Ql,e),G(Ji,t),gn=e|t.baseLanes}function su(){G(Ql,gn),G(Ji,Ji.current)}function uu(){gn=Ql.current,U(Ji),U(Ql)}var Mr=I(null),Hr=null;function zn(e){var t=e.alternate;G(Gt,Gt.current&1),G(Mr,e),Hr===null&&(t===null||Ji.current!==null||t.memoizedState!==null)&&(Hr=e)}function cu(e){G(Gt,Gt.current),G(Mr,e),Hr===null&&(Hr=e)}function cp(e){e.tag===22?(G(Gt,Gt.current),G(Mr,e),Hr===null&&(Hr=e)):Ln()}function Ln(){G(Gt,Gt.current),G(Mr,Mr.current)}function Nr(e){U(Mr),Hr===e&&(Hr=null),U(Gt)}var Gt=I(0);function Vl(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||mc(r)||gc(r)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var un=0,ot=null,At=null,Vt=null,Kl=!1,ea=!1,Si=!1,Fl=0,Pa=0,ta=null,K0=0;function qt(){throw Error(c(321))}function fu(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Or(e[r],t[r]))return!1;return!0}function hu(e,t,r,n,s,h){return un=h,ot=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,W.H=e===null||e.memoizedState===null?Kp:Ou,Si=!1,h=r(n,s),Si=!1,ea&&(h=hp(t,r,n,s)),fp(e),h}function fp(e){W.H=Qa;var t=At!==null&&At.next!==null;if(un=0,Vt=At=ot=null,Kl=!1,Pa=0,ta=null,t)throw Error(c(300));e===null||Kt||(e=e.dependencies,e!==null&&zl(e)&&(Kt=!0))}function hp(e,t,r,n){ot=e;var s=0;do{if(ea&&(ta=null),Pa=0,ea=!1,25<=s)throw Error(c(301));if(s+=1,Vt=At=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}W.H=Fp,h=t(r,n)}while(ea);return h}function F0(){var e=W.H,t=e.useState()[0];return t=typeof t.then=="function"?Ga(t):t,e=e.useState()[0],(At!==null?At.memoizedState:null)!==e&&(ot.flags|=1024),t}function du(){var e=Fl!==0;return Fl=0,e}function pu(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function yu(e){if(Kl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Kl=!1}un=0,Vt=At=ot=null,ea=!1,Pa=Fl=0,ta=null}function hr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?ot.memoizedState=Vt=e:Vt=Vt.next=e,Vt}function Yt(){if(At===null){var e=ot.alternate;e=e!==null?e.memoizedState:null}else e=At.next;var t=Vt===null?ot.memoizedState:Vt.next;if(t!==null)Vt=t,At=e;else{if(e===null)throw ot.alternate===null?Error(c(467)):Error(c(310));At=e,e={memoizedState:At.memoizedState,baseState:At.baseState,baseQueue:At.baseQueue,queue:At.queue,next:null},Vt===null?ot.memoizedState=Vt=e:Vt=Vt.next=e}return Vt}function Wl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ga(e){var t=Pa;return Pa+=1,ta===null&&(ta=[]),e=rp(ta,e,t),t=ot,(Vt===null?t.memoizedState:Vt.next)===null&&(t=t.alternate,W.H=t===null||t.memoizedState===null?Kp:Ou),e}function Xl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ga(e);if(e.$$typeof===O)return nr(e)}throw Error(c(438,String(e)))}function mu(e){var t=null,r=ot.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var n=ot.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=Wl(),ot.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0)for(r=t.data[t.index]=Array(e),n=0;n<e;n++)r[n]=R;return t.index++,r}function cn(e,t){return typeof t=="function"?t(e):t}function Zl(e){var t=Yt();return gu(t,At,e)}function gu(e,t,r){var n=e.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=r;var s=e.baseQueue,h=n.pending;if(h!==null){if(s!==null){var x=s.next;s.next=h.next,h.next=x}t.baseQueue=s=h,n.pending=null}if(h=e.baseState,s===null)e.memoizedState=h;else{t=s.next;var q=x=null,oe=null,Ee=t,De=!1;do{var qe=Ee.lane&-536870913;if(qe!==Ee.lane?(ht&qe)===qe:(un&qe)===qe){var Te=Ee.revertLane;if(Te===0)oe!==null&&(oe=oe.next={lane:0,revertLane:0,gesture:null,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null}),qe===Wi&&(De=!0);else if((un&Te)===Te){Ee=Ee.next,Te===Wi&&(De=!0);continue}else qe={lane:0,revertLane:Ee.revertLane,gesture:null,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null},oe===null?(q=oe=qe,x=h):oe=oe.next=qe,ot.lanes|=Te,Pn|=Te;qe=Ee.action,Si&&r(h,qe),h=Ee.hasEagerState?Ee.eagerState:r(h,qe)}else Te={lane:qe,revertLane:Ee.revertLane,gesture:Ee.gesture,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null},oe===null?(q=oe=Te,x=h):oe=oe.next=Te,ot.lanes|=qe,Pn|=qe;Ee=Ee.next}while(Ee!==null&&Ee!==t);if(oe===null?x=h:oe.next=q,!Or(h,e.memoizedState)&&(Kt=!0,De&&(r=Xi,r!==null)))throw r;e.memoizedState=h,e.baseState=x,e.baseQueue=oe,n.lastRenderedState=h}return s===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function bu(e){var t=Yt(),r=t.queue;if(r===null)throw Error(c(311));r.lastRenderedReducer=e;var n=r.dispatch,s=r.pending,h=t.memoizedState;if(s!==null){r.pending=null;var x=s=s.next;do h=e(h,x.action),x=x.next;while(x!==s);Or(h,t.memoizedState)||(Kt=!0),t.memoizedState=h,t.baseQueue===null&&(t.baseState=h),r.lastRenderedState=h}return[h,n]}function dp(e,t,r){var n=ot,s=Yt(),h=pt;if(h){if(r===void 0)throw Error(c(407));r=r()}else r=t();var x=!Or((At||s).memoizedState,r);if(x&&(s.memoizedState=r,Kt=!0),s=s.queue,Su(mp.bind(null,n,s,e),[e]),s.getSnapshot!==t||x||Vt!==null&&Vt.memoizedState.tag&1){if(n.flags|=2048,ra(9,{destroy:void 0},yp.bind(null,n,s,r,t),null),jt===null)throw Error(c(349));h||(un&127)!==0||pp(n,t,r)}return r}function pp(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=ot.updateQueue,t===null?(t=Wl(),ot.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function yp(e,t,r,n){t.value=r,t.getSnapshot=n,gp(t)&&bp(e)}function mp(e,t,r){return r(function(){gp(t)&&bp(e)})}function gp(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Or(e,r)}catch{return!0}}function bp(e){var t=hi(e,2);t!==null&&Er(t,e,2)}function vu(e){var t=hr();if(typeof e=="function"){var r=e;if(e=r(),Si){Ge(!0);try{r()}finally{Ge(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cn,lastRenderedState:e},t}function vp(e,t,r,n){return e.baseState=r,gu(e,At,typeof n=="function"?n:cn)}function W0(e,t,r,n,s){if(eo(e))throw Error(c(485));if(e=t.action,e!==null){var h={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){h.listeners.push(x)}};W.T!==null?r(!0):h.isTransition=!1,n(h),r=t.pending,r===null?(h.next=t.pending=h,_p(t,h)):(h.next=r.next,t.pending=r.next=h)}}function _p(e,t){var r=t.action,n=t.payload,s=e.state;if(t.isTransition){var h=W.T,x={};W.T=x;try{var q=r(s,n),oe=W.S;oe!==null&&oe(x,q),Sp(e,t,q)}catch(Ee){_u(e,t,Ee)}finally{h!==null&&x.types!==null&&(h.types=x.types),W.T=h}}else try{h=r(s,n),Sp(e,t,h)}catch(Ee){_u(e,t,Ee)}}function Sp(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(n){wp(e,t,n)},function(n){return _u(e,t,n)}):wp(e,t,r)}function wp(e,t,r){t.status="fulfilled",t.value=r,Ep(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,_p(e,r)))}function _u(e,t,r){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=r,Ep(t),t=t.next;while(t!==n)}e.action=null}function Ep(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ap(e,t){return t}function Tp(e,t){if(pt){var r=jt.formState;if(r!==null){e:{var n=ot;if(pt){if(Ct){t:{for(var s=Ct,h=qr;s.nodeType!==8;){if(!h){s=null;break t}if(s=Pr(s.nextSibling),s===null){s=null;break t}}h=s.data,s=h==="F!"||h==="F"?s:null}if(s){Ct=Pr(s.nextSibling),n=s.data==="F!";break e}}Un(n)}n=!1}n&&(t=r[0])}}return r=hr(),r.memoizedState=r.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ap,lastRenderedState:t},r.queue=n,r=Yp.bind(null,ot,n),n.dispatch=r,n=vu(!1),h=xu.bind(null,ot,!1,n.queue),n=hr(),s={state:t,dispatch:null,action:e,pending:null},n.queue=s,r=W0.bind(null,ot,s,h,r),s.dispatch=r,n.memoizedState=e,[t,r,!1]}function xp(e){var t=Yt();return Op(t,At,e)}function Op(e,t,r){if(t=gu(e,t,Ap)[0],e=Zl(cn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Ga(t)}catch(x){throw x===Zi?Hl:x}else n=t;t=Yt();var s=t.queue,h=s.dispatch;return r!==t.memoizedState&&(ot.flags|=2048,ra(9,{destroy:void 0},X0.bind(null,s,r),null)),[n,h,e]}function X0(e,t){e.action=t}function jp(e){var t=Yt(),r=At;if(r!==null)return Op(t,r,e);Yt(),t=t.memoizedState,r=Yt();var n=r.queue.dispatch;return r.memoizedState=e,[t,n,!1]}function ra(e,t,r,n){return e={tag:e,create:r,deps:n,inst:t,next:null},t=ot.updateQueue,t===null&&(t=Wl(),ot.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function Mp(){return Yt().memoizedState}function $l(e,t,r,n){var s=hr();ot.flags|=e,s.memoizedState=ra(1|t,{destroy:void 0},r,n===void 0?null:n)}function Jl(e,t,r,n){var s=Yt();n=n===void 0?null:n;var h=s.memoizedState.inst;At!==null&&n!==null&&fu(n,At.memoizedState.deps)?s.memoizedState=ra(t,h,r,n):(ot.flags|=e,s.memoizedState=ra(1|t,h,r,n))}function Np(e,t){$l(8390656,8,e,t)}function Su(e,t){Jl(2048,8,e,t)}function Z0(e){ot.flags|=4;var t=ot.updateQueue;if(t===null)t=Wl(),ot.updateQueue=t,t.events=[e];else{var r=t.events;r===null?t.events=[e]:r.push(e)}}function Cp(e){var t=Yt().memoizedState;return Z0({ref:t,nextImpl:e}),function(){if((St&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function Rp(e,t){return Jl(4,2,e,t)}function Up(e,t){return Jl(4,4,e,t)}function Bp(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Dp(e,t,r){r=r!=null?r.concat([e]):null,Jl(4,4,Bp.bind(null,t,e),r)}function wu(){}function kp(e,t){var r=Yt();t=t===void 0?null:t;var n=r.memoizedState;return t!==null&&fu(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Ip(e,t){var r=Yt();t=t===void 0?null:t;var n=r.memoizedState;if(t!==null&&fu(t,n[1]))return n[0];if(n=e(),Si){Ge(!0);try{e()}finally{Ge(!1)}}return r.memoizedState=[n,t],n}function Eu(e,t,r){return r===void 0||(un&1073741824)!==0&&(ht&261930)===0?e.memoizedState=t:(e.memoizedState=r,e=zy(),ot.lanes|=e,Pn|=e,r)}function zp(e,t,r,n){return Or(r,t)?r:Ji.current!==null?(e=Eu(e,r,n),Or(e,t)||(Kt=!0),e):(un&42)===0||(un&1073741824)!==0&&(ht&261930)===0?(Kt=!0,e.memoizedState=r):(e=zy(),ot.lanes|=e,Pn|=e,t)}function Lp(e,t,r,n,s){var h=V.p;V.p=h!==0&&8>h?h:8;var x=W.T,q={};W.T=q,xu(e,!1,t,r);try{var oe=s(),Ee=W.S;if(Ee!==null&&Ee(q,oe),oe!==null&&typeof oe=="object"&&typeof oe.then=="function"){var De=V0(oe,n);Ya(e,t,De,Ur(e))}else Ya(e,t,n,Ur(e))}catch(qe){Ya(e,t,{then:function(){},status:"rejected",reason:qe},Ur())}finally{V.p=h,x!==null&&q.types!==null&&(x.types=q.types),W.T=x}}function $0(){}function Au(e,t,r,n){if(e.tag!==5)throw Error(c(476));var s=qp(e).queue;Lp(e,s,t,Z,r===null?$0:function(){return Hp(e),r(n)})}function qp(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cn,lastRenderedState:Z},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cn,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Hp(e){var t=qp(e);t.next===null&&(t=e.alternate.memoizedState),Ya(e,t.next.queue,{},Ur())}function Tu(){return nr(ol)}function Pp(){return Yt().memoizedState}function Gp(){return Yt().memoizedState}function J0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=Ur();e=kn(r);var n=In(t,e,r);n!==null&&(Er(n,t,r),La(n,t,r)),t={cache:eu()},e.payload=t;return}t=t.return}}function e_(e,t,r){var n=Ur();r={lane:n,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},eo(e)?Qp(t,r):(r=Gs(e,t,r,n),r!==null&&(Er(r,e,n),Vp(r,t,n)))}function Yp(e,t,r){var n=Ur();Ya(e,t,r,n)}function Ya(e,t,r,n){var s={lane:n,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(eo(e))Qp(t,s);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=t.lastRenderedReducer,h!==null))try{var x=t.lastRenderedState,q=h(x,r);if(s.hasEagerState=!0,s.eagerState=q,Or(q,x))return Bl(e,t,s,0),jt===null&&Ul(),!1}catch{}finally{}if(r=Gs(e,t,s,n),r!==null)return Er(r,e,n),Vp(r,t,n),!0}return!1}function xu(e,t,r,n){if(n={lane:2,revertLane:ic(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},eo(e)){if(t)throw Error(c(479))}else t=Gs(e,r,n,2),t!==null&&Er(t,e,2)}function eo(e){var t=e.alternate;return e===ot||t!==null&&t===ot}function Qp(e,t){ea=Kl=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Vp(e,t,r){if((r&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Ve(e,r)}}var Qa={readContext:nr,use:Xl,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useLayoutEffect:qt,useInsertionEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useSyncExternalStore:qt,useId:qt,useHostTransitionStatus:qt,useFormState:qt,useActionState:qt,useOptimistic:qt,useMemoCache:qt,useCacheRefresh:qt};Qa.useEffectEvent=qt;var Kp={readContext:nr,use:Xl,useCallback:function(e,t){return hr().memoizedState=[e,t===void 0?null:t],e},useContext:nr,useEffect:Np,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,$l(4194308,4,Bp.bind(null,t,e),r)},useLayoutEffect:function(e,t){return $l(4194308,4,e,t)},useInsertionEffect:function(e,t){$l(4,2,e,t)},useMemo:function(e,t){var r=hr();t=t===void 0?null:t;var n=e();if(Si){Ge(!0);try{e()}finally{Ge(!1)}}return r.memoizedState=[n,t],n},useReducer:function(e,t,r){var n=hr();if(r!==void 0){var s=r(t);if(Si){Ge(!0);try{r(t)}finally{Ge(!1)}}}else s=t;return n.memoizedState=n.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},n.queue=e,e=e.dispatch=e_.bind(null,ot,e),[n.memoizedState,e]},useRef:function(e){var t=hr();return e={current:e},t.memoizedState=e},useState:function(e){e=vu(e);var t=e.queue,r=Yp.bind(null,ot,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:wu,useDeferredValue:function(e,t){var r=hr();return Eu(r,e,t)},useTransition:function(){var e=vu(!1);return e=Lp.bind(null,ot,e.queue,!0,!1),hr().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var n=ot,s=hr();if(pt){if(r===void 0)throw Error(c(407));r=r()}else{if(r=t(),jt===null)throw Error(c(349));(ht&127)!==0||pp(n,t,r)}s.memoizedState=r;var h={value:r,getSnapshot:t};return s.queue=h,Np(mp.bind(null,n,h,e),[e]),n.flags|=2048,ra(9,{destroy:void 0},yp.bind(null,n,h,r,t),null),r},useId:function(){var e=hr(),t=jt.identifierPrefix;if(pt){var r=Wr,n=Fr;r=(n&~(1<<32-Ye(n)-1)).toString(32)+r,t="_"+t+"R_"+r,r=Fl++,0<r&&(t+="H"+r.toString(32)),t+="_"}else r=K0++,t="_"+t+"r_"+r.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Tu,useFormState:Tp,useActionState:Tp,useOptimistic:function(e){var t=hr();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=xu.bind(null,ot,!0,r),r.dispatch=t,[e,t]},useMemoCache:mu,useCacheRefresh:function(){return hr().memoizedState=J0.bind(null,ot)},useEffectEvent:function(e){var t=hr(),r={impl:e};return t.memoizedState=r,function(){if((St&2)!==0)throw Error(c(440));return r.impl.apply(void 0,arguments)}}},Ou={readContext:nr,use:Xl,useCallback:kp,useContext:nr,useEffect:Su,useImperativeHandle:Dp,useInsertionEffect:Rp,useLayoutEffect:Up,useMemo:Ip,useReducer:Zl,useRef:Mp,useState:function(){return Zl(cn)},useDebugValue:wu,useDeferredValue:function(e,t){var r=Yt();return zp(r,At.memoizedState,e,t)},useTransition:function(){var e=Zl(cn)[0],t=Yt().memoizedState;return[typeof e=="boolean"?e:Ga(e),t]},useSyncExternalStore:dp,useId:Pp,useHostTransitionStatus:Tu,useFormState:xp,useActionState:xp,useOptimistic:function(e,t){var r=Yt();return vp(r,At,e,t)},useMemoCache:mu,useCacheRefresh:Gp};Ou.useEffectEvent=Cp;var Fp={readContext:nr,use:Xl,useCallback:kp,useContext:nr,useEffect:Su,useImperativeHandle:Dp,useInsertionEffect:Rp,useLayoutEffect:Up,useMemo:Ip,useReducer:bu,useRef:Mp,useState:function(){return bu(cn)},useDebugValue:wu,useDeferredValue:function(e,t){var r=Yt();return At===null?Eu(r,e,t):zp(r,At.memoizedState,e,t)},useTransition:function(){var e=bu(cn)[0],t=Yt().memoizedState;return[typeof e=="boolean"?e:Ga(e),t]},useSyncExternalStore:dp,useId:Pp,useHostTransitionStatus:Tu,useFormState:jp,useActionState:jp,useOptimistic:function(e,t){var r=Yt();return At!==null?vp(r,At,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:mu,useCacheRefresh:Gp};Fp.useEffectEvent=Cp;function ju(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:b({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Mu={enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Ur(),s=kn(n);s.payload=t,r!=null&&(s.callback=r),t=In(e,s,n),t!==null&&(Er(t,e,n),La(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Ur(),s=kn(n);s.tag=1,s.payload=t,r!=null&&(s.callback=r),t=In(e,s,n),t!==null&&(Er(t,e,n),La(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ur(),n=kn(r);n.tag=2,t!=null&&(n.callback=t),t=In(e,n,r),t!==null&&(Er(t,e,r),La(t,e,r))}};function Wp(e,t,r,n,s,h,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,h,x):t.prototype&&t.prototype.isPureReactComponent?!Ca(r,n)||!Ca(s,h):!0}function Xp(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Mu.enqueueReplaceState(t,t.state,null)}function wi(e,t){var r=t;if("ref"in t){r={};for(var n in t)n!=="ref"&&(r[n]=t[n])}if(e=e.defaultProps){r===t&&(r=b({},r));for(var s in e)r[s]===void 0&&(r[s]=e[s])}return r}function Zp(e){Rl(e)}function $p(e){console.error(e)}function Jp(e){Rl(e)}function to(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function ey(e,t,r){try{var n=e.onCaughtError;n(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Nu(e,t,r){return r=kn(r),r.tag=3,r.payload={element:null},r.callback=function(){to(e,t)},r}function ty(e){return e=kn(e),e.tag=3,e}function ry(e,t,r,n){var s=r.type.getDerivedStateFromError;if(typeof s=="function"){var h=n.value;e.payload=function(){return s(h)},e.callback=function(){ey(t,r,n)}}var x=r.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){ey(t,r,n),typeof s!="function"&&(Gn===null?Gn=new Set([this]):Gn.add(this));var q=n.stack;this.componentDidCatch(n.value,{componentStack:q!==null?q:""})})}function t_(e,t,r,n,s){if(r.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=r.alternate,t!==null&&Fi(t,r,s,!0),r=Mr.current,r!==null){switch(r.tag){case 31:case 13:return Hr===null?po():r.alternate===null&&Ht===0&&(Ht=3),r.flags&=-257,r.flags|=65536,r.lanes=s,n===Pl?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([n]):t.add(n),tc(e,n,s)),!1;case 22:return r.flags|=65536,n===Pl?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([n]):r.add(n)),tc(e,n,s)),!1}throw Error(c(435,r.tag))}return tc(e,n,s),po(),!1}if(pt)return t=Mr.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,n!==Ws&&(e=Error(c(422),{cause:n}),Ba(Ir(e,r)))):(n!==Ws&&(t=Error(c(423),{cause:n}),Ba(Ir(t,r))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,n=Ir(n,r),s=Nu(e.stateNode,n,s),lu(e,s),Ht!==4&&(Ht=2)),!1;var h=Error(c(520),{cause:n});if(h=Ir(h,r),Ja===null?Ja=[h]:Ja.push(h),Ht!==4&&(Ht=2),t===null)return!0;n=Ir(n,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=s&-s,r.lanes|=e,e=Nu(r.stateNode,n,e),lu(r,e),!1;case 1:if(t=r.type,h=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Gn===null||!Gn.has(h))))return r.flags|=65536,s&=-s,r.lanes|=s,s=ty(s),ry(s,e,r,n),lu(r,s),!1}r=r.return}while(r!==null);return!1}var Cu=Error(c(461)),Kt=!1;function ir(e,t,r,n){t.child=e===null?lp(t,null,r,n):_i(t,e.child,r,n)}function ny(e,t,r,n,s){r=r.render;var h=t.ref;if("ref"in n){var x={};for(var q in n)q!=="ref"&&(x[q]=n[q])}else x=n;return mi(t),n=hu(e,t,r,x,h,s),q=du(),e!==null&&!Kt?(pu(e,t,s),fn(e,t,s)):(pt&&q&&Ks(t),t.flags|=1,ir(e,t,n,s),t.child)}function iy(e,t,r,n,s){if(e===null){var h=r.type;return typeof h=="function"&&!Ys(h)&&h.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=h,ay(e,t,h,n,s)):(e=kl(r.type,null,n,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(h=e.child,!Lu(e,s)){var x=h.memoizedProps;if(r=r.compare,r=r!==null?r:Ca,r(x,n)&&e.ref===t.ref)return fn(e,t,s)}return t.flags|=1,e=an(h,n),e.ref=t.ref,e.return=t,t.child=e}function ay(e,t,r,n,s){if(e!==null){var h=e.memoizedProps;if(Ca(h,n)&&e.ref===t.ref)if(Kt=!1,t.pendingProps=n=h,Lu(e,s))(e.flags&131072)!==0&&(Kt=!0);else return t.lanes=e.lanes,fn(e,t,s)}return Ru(e,t,r,n,s)}function ly(e,t,r,n){var s=n.children,h=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(h=h!==null?h.baseLanes|r:r,e!==null){for(n=t.child=e.child,s=0;n!==null;)s=s|n.lanes|n.childLanes,n=n.sibling;n=s&~h}else n=0,t.child=null;return oy(e,t,h,r,n)}if((r&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ql(t,h!==null?h.cachePool:null),h!==null?up(t,h):su(),cp(t);else return n=t.lanes=536870912,oy(e,t,h!==null?h.baseLanes|r:r,r,n)}else h!==null?(ql(t,h.cachePool),up(t,h),Ln(),t.memoizedState=null):(e!==null&&ql(t,null),su(),Ln());return ir(e,t,s,r),t.child}function Va(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function oy(e,t,r,n,s){var h=ru();return h=h===null?null:{parent:Qt._currentValue,pool:h},t.memoizedState={baseLanes:r,cachePool:h},e!==null&&ql(t,null),su(),cp(t),e!==null&&Fi(e,t,n,!0),t.childLanes=s,null}function ro(e,t){return t=io({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function sy(e,t,r){return _i(t,e.child,null,r),e=ro(t,t.pendingProps),e.flags|=2,Nr(t),t.memoizedState=null,e}function r_(e,t,r){var n=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(pt){if(n.mode==="hidden")return e=ro(t,n),t.lanes=536870912,Va(null,e);if(cu(t),(e=Ct)?(e=_m(e,qr),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Cn!==null?{id:Fr,overflow:Wr}:null,retryLane:536870912,hydrationErrors:null},r=Qd(e),r.return=t,t.child=r,rr=t,Ct=null)):e=null,e===null)throw Un(t);return t.lanes=536870912,null}return ro(t,n)}var h=e.memoizedState;if(h!==null){var x=h.dehydrated;if(cu(t),s)if(t.flags&256)t.flags&=-257,t=sy(e,t,r);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(Kt||Fi(e,t,r,!1),s=(r&e.childLanes)!==0,Kt||s){if(n=jt,n!==null&&(x=Fe(n,r),x!==0&&x!==h.retryLane))throw h.retryLane=x,hi(e,x),Er(n,e,x),Cu;po(),t=sy(e,t,r)}else e=h.treeContext,Ct=Pr(x.nextSibling),rr=t,pt=!0,Rn=null,qr=!1,e!==null&&Fd(t,e),t=ro(t,n),t.flags|=4096;return t}return e=an(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function no(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(c(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function Ru(e,t,r,n,s){return mi(t),r=hu(e,t,r,n,void 0,s),n=du(),e!==null&&!Kt?(pu(e,t,s),fn(e,t,s)):(pt&&n&&Ks(t),t.flags|=1,ir(e,t,r,s),t.child)}function uy(e,t,r,n,s,h){return mi(t),t.updateQueue=null,r=hp(t,n,r,s),fp(e),n=du(),e!==null&&!Kt?(pu(e,t,h),fn(e,t,h)):(pt&&n&&Ks(t),t.flags|=1,ir(e,t,r,h),t.child)}function cy(e,t,r,n,s){if(mi(t),t.stateNode===null){var h=Yi,x=r.contextType;typeof x=="object"&&x!==null&&(h=nr(x)),h=new r(n,h),t.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Mu,t.stateNode=h,h._reactInternals=t,h=t.stateNode,h.props=n,h.state=t.memoizedState,h.refs={},iu(t),x=r.contextType,h.context=typeof x=="object"&&x!==null?nr(x):Yi,h.state=t.memoizedState,x=r.getDerivedStateFromProps,typeof x=="function"&&(ju(t,r,x,n),h.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(x=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),x!==h.state&&Mu.enqueueReplaceState(h,h.state,null),Ha(t,n,h,s),qa(),h.state=t.memoizedState),typeof h.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){h=t.stateNode;var q=t.memoizedProps,oe=wi(r,q);h.props=oe;var Ee=h.context,De=r.contextType;x=Yi,typeof De=="object"&&De!==null&&(x=nr(De));var qe=r.getDerivedStateFromProps;De=typeof qe=="function"||typeof h.getSnapshotBeforeUpdate=="function",q=t.pendingProps!==q,De||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(q||Ee!==x)&&Xp(t,h,n,x),Dn=!1;var Te=t.memoizedState;h.state=Te,Ha(t,n,h,s),qa(),Ee=t.memoizedState,q||Te!==Ee||Dn?(typeof qe=="function"&&(ju(t,r,qe,n),Ee=t.memoizedState),(oe=Dn||Wp(t,r,oe,n,Te,Ee,x))?(De||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(t.flags|=4194308)):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=Ee),h.props=n,h.state=Ee,h.context=x,n=oe):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{h=t.stateNode,au(e,t),x=t.memoizedProps,De=wi(r,x),h.props=De,qe=t.pendingProps,Te=h.context,Ee=r.contextType,oe=Yi,typeof Ee=="object"&&Ee!==null&&(oe=nr(Ee)),q=r.getDerivedStateFromProps,(Ee=typeof q=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(x!==qe||Te!==oe)&&Xp(t,h,n,oe),Dn=!1,Te=t.memoizedState,h.state=Te,Ha(t,n,h,s),qa();var Oe=t.memoizedState;x!==qe||Te!==Oe||Dn||e!==null&&e.dependencies!==null&&zl(e.dependencies)?(typeof q=="function"&&(ju(t,r,q,n),Oe=t.memoizedState),(De=Dn||Wp(t,r,De,n,Te,Oe,oe)||e!==null&&e.dependencies!==null&&zl(e.dependencies))?(Ee||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(n,Oe,oe),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(n,Oe,oe)),typeof h.componentDidUpdate=="function"&&(t.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof h.componentDidUpdate!="function"||x===e.memoizedProps&&Te===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&Te===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=Oe),h.props=n,h.state=Oe,h.context=oe,n=De):(typeof h.componentDidUpdate!="function"||x===e.memoizedProps&&Te===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&Te===e.memoizedState||(t.flags|=1024),n=!1)}return h=n,no(e,t),n=(t.flags&128)!==0,h||n?(h=t.stateNode,r=n&&typeof r.getDerivedStateFromError!="function"?null:h.render(),t.flags|=1,e!==null&&n?(t.child=_i(t,e.child,null,s),t.child=_i(t,null,r,s)):ir(e,t,r,s),t.memoizedState=h.state,e=t.child):e=fn(e,t,s),e}function fy(e,t,r,n){return pi(),t.flags|=256,ir(e,t,r,n),t.child}var Uu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bu(e){return{baseLanes:e,cachePool:ep()}}function Du(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=Rr),e}function hy(e,t,r){var n=t.pendingProps,s=!1,h=(t.flags&128)!==0,x;if((x=h)||(x=e!==null&&e.memoizedState===null?!1:(Gt.current&2)!==0),x&&(s=!0,t.flags&=-129),x=(t.flags&32)!==0,t.flags&=-33,e===null){if(pt){if(s?zn(t):Ln(),(e=Ct)?(e=_m(e,qr),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Cn!==null?{id:Fr,overflow:Wr}:null,retryLane:536870912,hydrationErrors:null},r=Qd(e),r.return=t,t.child=r,rr=t,Ct=null)):e=null,e===null)throw Un(t);return gc(e)?t.lanes=32:t.lanes=536870912,null}var q=n.children;return n=n.fallback,s?(Ln(),s=t.mode,q=io({mode:"hidden",children:q},s),n=di(n,s,r,null),q.return=t,n.return=t,q.sibling=n,t.child=q,n=t.child,n.memoizedState=Bu(r),n.childLanes=Du(e,x,r),t.memoizedState=Uu,Va(null,n)):(zn(t),ku(t,q))}var oe=e.memoizedState;if(oe!==null&&(q=oe.dehydrated,q!==null)){if(h)t.flags&256?(zn(t),t.flags&=-257,t=Iu(e,t,r)):t.memoizedState!==null?(Ln(),t.child=e.child,t.flags|=128,t=null):(Ln(),q=n.fallback,s=t.mode,n=io({mode:"visible",children:n.children},s),q=di(q,s,r,null),q.flags|=2,n.return=t,q.return=t,n.sibling=q,t.child=n,_i(t,e.child,null,r),n=t.child,n.memoizedState=Bu(r),n.childLanes=Du(e,x,r),t.memoizedState=Uu,t=Va(null,n));else if(zn(t),gc(q)){if(x=q.nextSibling&&q.nextSibling.dataset,x)var Ee=x.dgst;x=Ee,n=Error(c(419)),n.stack="",n.digest=x,Ba({value:n,source:null,stack:null}),t=Iu(e,t,r)}else if(Kt||Fi(e,t,r,!1),x=(r&e.childLanes)!==0,Kt||x){if(x=jt,x!==null&&(n=Fe(x,r),n!==0&&n!==oe.retryLane))throw oe.retryLane=n,hi(e,n),Er(x,e,n),Cu;mc(q)||po(),t=Iu(e,t,r)}else mc(q)?(t.flags|=192,t.child=e.child,t=null):(e=oe.treeContext,Ct=Pr(q.nextSibling),rr=t,pt=!0,Rn=null,qr=!1,e!==null&&Fd(t,e),t=ku(t,n.children),t.flags|=4096);return t}return s?(Ln(),q=n.fallback,s=t.mode,oe=e.child,Ee=oe.sibling,n=an(oe,{mode:"hidden",children:n.children}),n.subtreeFlags=oe.subtreeFlags&65011712,Ee!==null?q=an(Ee,q):(q=di(q,s,r,null),q.flags|=2),q.return=t,n.return=t,n.sibling=q,t.child=n,Va(null,n),n=t.child,q=e.child.memoizedState,q===null?q=Bu(r):(s=q.cachePool,s!==null?(oe=Qt._currentValue,s=s.parent!==oe?{parent:oe,pool:oe}:s):s=ep(),q={baseLanes:q.baseLanes|r,cachePool:s}),n.memoizedState=q,n.childLanes=Du(e,x,r),t.memoizedState=Uu,Va(e.child,n)):(zn(t),r=e.child,e=r.sibling,r=an(r,{mode:"visible",children:n.children}),r.return=t,r.sibling=null,e!==null&&(x=t.deletions,x===null?(t.deletions=[e],t.flags|=16):x.push(e)),t.child=r,t.memoizedState=null,r)}function ku(e,t){return t=io({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function io(e,t){return e=jr(22,e,null,t),e.lanes=0,e}function Iu(e,t,r){return _i(t,e.child,null,r),e=ku(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function dy(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),$s(e.return,t,r)}function zu(e,t,r,n,s,h){var x=e.memoizedState;x===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:s,treeForkCount:h}:(x.isBackwards=t,x.rendering=null,x.renderingStartTime=0,x.last=n,x.tail=r,x.tailMode=s,x.treeForkCount=h)}function py(e,t,r){var n=t.pendingProps,s=n.revealOrder,h=n.tail;n=n.children;var x=Gt.current,q=(x&2)!==0;if(q?(x=x&1|2,t.flags|=128):x&=1,G(Gt,x),ir(e,t,n,r),n=pt?Ua:0,!q&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&dy(e,r,t);else if(e.tag===19)dy(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(s){case"forwards":for(r=t.child,s=null;r!==null;)e=r.alternate,e!==null&&Vl(e)===null&&(s=r),r=r.sibling;r=s,r===null?(s=t.child,t.child=null):(s=r.sibling,r.sibling=null),zu(t,!1,s,r,h,n);break;case"backwards":case"unstable_legacy-backwards":for(r=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Vl(e)===null){t.child=s;break}e=s.sibling,s.sibling=r,r=s,s=e}zu(t,!0,r,null,h,n);break;case"together":zu(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function fn(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Pn|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(Fi(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,r=an(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=an(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Lu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&zl(e)))}function n_(e,t,r){switch(t.tag){case 3:K(t,t.stateNode.containerInfo),Bn(t,Qt,e.memoizedState.cache),pi();break;case 27:case 5:ue(t);break;case 4:K(t,t.stateNode.containerInfo);break;case 10:Bn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,cu(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(zn(t),t.flags|=128,null):(r&t.child.childLanes)!==0?hy(e,t,r):(zn(t),e=fn(e,t,r),e!==null?e.sibling:null);zn(t);break;case 19:var s=(e.flags&128)!==0;if(n=(r&t.childLanes)!==0,n||(Fi(e,t,r,!1),n=(r&t.childLanes)!==0),s){if(n)return py(e,t,r);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),G(Gt,Gt.current),n)break;return null;case 22:return t.lanes=0,ly(e,t,r,t.pendingProps);case 24:Bn(t,Qt,e.memoizedState.cache)}return fn(e,t,r)}function yy(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)Kt=!0;else{if(!Lu(e,r)&&(t.flags&128)===0)return Kt=!1,n_(e,t,r);Kt=(e.flags&131072)!==0}else Kt=!1,pt&&(t.flags&1048576)!==0&&Kd(t,Ua,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=bi(t.elementType),t.type=e,typeof e=="function")Ys(e)?(n=wi(e,n),t.tag=1,t=cy(null,t,e,n,r)):(t.tag=0,t=Ru(null,t,e,n,r));else{if(e!=null){var s=e.$$typeof;if(s===N){t.tag=11,t=ny(null,t,e,n,r);break e}else if(s===D){t.tag=14,t=iy(null,t,e,n,r);break e}}throw t=ae(e)||e,Error(c(306,t,""))}}return t;case 0:return Ru(e,t,t.type,t.pendingProps,r);case 1:return n=t.type,s=wi(n,t.pendingProps),cy(e,t,n,s,r);case 3:e:{if(K(t,t.stateNode.containerInfo),e===null)throw Error(c(387));n=t.pendingProps;var h=t.memoizedState;s=h.element,au(e,t),Ha(t,n,null,r);var x=t.memoizedState;if(n=x.cache,Bn(t,Qt,n),n!==h.cache&&Js(t,[Qt],r,!0),qa(),n=x.element,h.isDehydrated)if(h={element:n,isDehydrated:!1,cache:x.cache},t.updateQueue.baseState=h,t.memoizedState=h,t.flags&256){t=fy(e,t,n,r);break e}else if(n!==s){s=Ir(Error(c(424)),t),Ba(s),t=fy(e,t,n,r);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ct=Pr(e.firstChild),rr=t,pt=!0,Rn=null,qr=!0,r=lp(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(pi(),n===s){t=fn(e,t,r);break e}ir(e,t,n,r)}t=t.child}return t;case 26:return no(e,t),e===null?(r=xm(t.type,null,t.pendingProps,null))?t.memoizedState=r:pt||(r=t.type,e=t.pendingProps,n=So(je.current).createElement(r),n[zt]=t,n[Xt]=e,ar(n,r,e),$t(n),t.stateNode=n):t.memoizedState=xm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ue(t),e===null&&pt&&(n=t.stateNode=Em(t.type,t.pendingProps,je.current),rr=t,qr=!0,s=Ct,Kn(t.type)?(bc=s,Ct=Pr(n.firstChild)):Ct=s),ir(e,t,t.pendingProps.children,r),no(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&pt&&((s=n=Ct)&&(n=U_(n,t.type,t.pendingProps,qr),n!==null?(t.stateNode=n,rr=t,Ct=Pr(n.firstChild),qr=!1,s=!0):s=!1),s||Un(t)),ue(t),s=t.type,h=t.pendingProps,x=e!==null?e.memoizedProps:null,n=h.children,dc(s,h)?n=null:x!==null&&dc(s,x)&&(t.flags|=32),t.memoizedState!==null&&(s=hu(e,t,F0,null,null,r),ol._currentValue=s),no(e,t),ir(e,t,n,r),t.child;case 6:return e===null&&pt&&((e=r=Ct)&&(r=B_(r,t.pendingProps,qr),r!==null?(t.stateNode=r,rr=t,Ct=null,e=!0):e=!1),e||Un(t)),null;case 13:return hy(e,t,r);case 4:return K(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=_i(t,null,n,r):ir(e,t,n,r),t.child;case 11:return ny(e,t,t.type,t.pendingProps,r);case 7:return ir(e,t,t.pendingProps,r),t.child;case 8:return ir(e,t,t.pendingProps.children,r),t.child;case 12:return ir(e,t,t.pendingProps.children,r),t.child;case 10:return n=t.pendingProps,Bn(t,t.type,n.value),ir(e,t,n.children,r),t.child;case 9:return s=t.type._context,n=t.pendingProps.children,mi(t),s=nr(s),n=n(s),t.flags|=1,ir(e,t,n,r),t.child;case 14:return iy(e,t,t.type,t.pendingProps,r);case 15:return ay(e,t,t.type,t.pendingProps,r);case 19:return py(e,t,r);case 31:return r_(e,t,r);case 22:return ly(e,t,r,t.pendingProps);case 24:return mi(t),n=nr(Qt),e===null?(s=ru(),s===null&&(s=jt,h=eu(),s.pooledCache=h,h.refCount++,h!==null&&(s.pooledCacheLanes|=r),s=h),t.memoizedState={parent:n,cache:s},iu(t),Bn(t,Qt,s)):((e.lanes&r)!==0&&(au(e,t),Ha(t,null,null,r),qa()),s=e.memoizedState,h=t.memoizedState,s.parent!==n?(s={parent:n,cache:n},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Bn(t,Qt,n)):(n=h.cache,Bn(t,Qt,n),n!==s.cache&&Js(t,[Qt],r,!0))),ir(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function hn(e){e.flags|=4}function qu(e,t,r,n,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(Py())e.flags|=8192;else throw vi=Pl,nu}else e.flags&=-16777217}function my(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Cm(t))if(Py())e.flags|=8192;else throw vi=Pl,nu}function ao(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Pt():536870912,e.lanes|=t,la|=t)}function Ka(e,t){if(!pt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Rt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var s=e.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags&65011712,n|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags,n|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function i_(e,t,r){var n=t.pendingProps;switch(Fs(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rt(t),null;case 1:return Rt(t),null;case 3:return r=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),sn(Qt),ge(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ki(t)?hn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Xs())),Rt(t),null;case 26:var s=t.type,h=t.memoizedState;return e===null?(hn(t),h!==null?(Rt(t),my(t,h)):(Rt(t),qu(t,s,null,n,r))):h?h!==e.memoizedState?(hn(t),Rt(t),my(t,h)):(Rt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&hn(t),Rt(t),qu(t,s,e,n,r)),null;case 27:if(de(t),r=je.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&hn(t);else{if(!n){if(t.stateNode===null)throw Error(c(166));return Rt(t),null}e=ye.current,Ki(t)?Wd(t):(e=Em(s,n,r),t.stateNode=e,hn(t))}return Rt(t),null;case 5:if(de(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&hn(t);else{if(!n){if(t.stateNode===null)throw Error(c(166));return Rt(t),null}if(h=ye.current,Ki(t))Wd(t);else{var x=So(je.current);switch(h){case 1:h=x.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:h=x.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":h=x.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":h=x.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":h=x.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof n.is=="string"?x.createElement("select",{is:n.is}):x.createElement("select"),n.multiple?h.multiple=!0:n.size&&(h.size=n.size);break;default:h=typeof n.is=="string"?x.createElement(s,{is:n.is}):x.createElement(s)}}h[zt]=t,h[Xt]=n;e:for(x=t.child;x!==null;){if(x.tag===5||x.tag===6)h.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===t)break e;for(;x.sibling===null;){if(x.return===null||x.return===t)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}t.stateNode=h;e:switch(ar(h,s,n),s){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&hn(t)}}return Rt(t),qu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,r),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&hn(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(c(166));if(e=je.current,Ki(t)){if(e=t.stateNode,r=t.memoizedProps,n=null,s=rr,s!==null)switch(s.tag){case 27:case 5:n=s.memoizedProps}e[zt]=t,e=!!(e.nodeValue===r||n!==null&&n.suppressHydrationWarning===!0||hm(e.nodeValue,r)),e||Un(t,!0)}else e=So(e).createTextNode(n),e[zt]=t,t.stateNode=e}return Rt(t),null;case 31:if(r=t.memoizedState,e===null||e.memoizedState!==null){if(n=Ki(t),r!==null){if(e===null){if(!n)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[zt]=t}else pi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Rt(t),e=!1}else r=Xs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return t.flags&256?(Nr(t),t):(Nr(t),null);if((t.flags&128)!==0)throw Error(c(558))}return Rt(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=Ki(t),n!==null&&n.dehydrated!==null){if(e===null){if(!s)throw Error(c(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(c(317));s[zt]=t}else pi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Rt(t),s=!1}else s=Xs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Nr(t),t):(Nr(t),null)}return Nr(t),(t.flags&128)!==0?(t.lanes=r,t):(r=n!==null,e=e!==null&&e.memoizedState!==null,r&&(n=t.child,s=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(s=n.alternate.memoizedState.cachePool.pool),h=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(h=n.memoizedState.cachePool.pool),h!==s&&(n.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),ao(t,t.updateQueue),Rt(t),null);case 4:return ge(),e===null&&sc(t.stateNode.containerInfo),Rt(t),null;case 10:return sn(t.type),Rt(t),null;case 19:if(U(Gt),n=t.memoizedState,n===null)return Rt(t),null;if(s=(t.flags&128)!==0,h=n.rendering,h===null)if(s)Ka(n,!1);else{if(Ht!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(h=Vl(e),h!==null){for(t.flags|=128,Ka(n,!1),e=h.updateQueue,t.updateQueue=e,ao(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)Yd(r,e),r=r.sibling;return G(Gt,Gt.current&1|2),pt&&ln(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&xe()>co&&(t.flags|=128,s=!0,Ka(n,!1),t.lanes=4194304)}else{if(!s)if(e=Vl(h),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,ao(t,e),Ka(n,!0),n.tail===null&&n.tailMode==="hidden"&&!h.alternate&&!pt)return Rt(t),null}else 2*xe()-n.renderingStartTime>co&&r!==536870912&&(t.flags|=128,s=!0,Ka(n,!1),t.lanes=4194304);n.isBackwards?(h.sibling=t.child,t.child=h):(e=n.last,e!==null?e.sibling=h:t.child=h,n.last=h)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=xe(),e.sibling=null,r=Gt.current,G(Gt,s?r&1|2:r&1),pt&&ln(t,n.treeForkCount),e):(Rt(t),null);case 22:case 23:return Nr(t),uu(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(r&536870912)!==0&&(t.flags&128)===0&&(Rt(t),t.subtreeFlags&6&&(t.flags|=8192)):Rt(t),r=t.updateQueue,r!==null&&ao(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==r&&(t.flags|=2048),e!==null&&U(gi),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),sn(Qt),Rt(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function a_(e,t){switch(Fs(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sn(Qt),ge(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return de(t),null;case 31:if(t.memoizedState!==null){if(Nr(t),t.alternate===null)throw Error(c(340));pi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Nr(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));pi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(Gt),null;case 4:return ge(),null;case 10:return sn(t.type),null;case 22:case 23:return Nr(t),uu(),e!==null&&U(gi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return sn(Qt),null;case 25:return null;default:return null}}function gy(e,t){switch(Fs(t),t.tag){case 3:sn(Qt),ge();break;case 26:case 27:case 5:de(t);break;case 4:ge();break;case 31:t.memoizedState!==null&&Nr(t);break;case 13:Nr(t);break;case 19:U(Gt);break;case 10:sn(t.type);break;case 22:case 23:Nr(t),uu(),e!==null&&U(gi);break;case 24:sn(Qt)}}function Fa(e,t){try{var r=t.updateQueue,n=r!==null?r.lastEffect:null;if(n!==null){var s=n.next;r=s;do{if((r.tag&e)===e){n=void 0;var h=r.create,x=r.inst;n=h(),x.destroy=n}r=r.next}while(r!==s)}}catch(q){Et(t,t.return,q)}}function qn(e,t,r){try{var n=t.updateQueue,s=n!==null?n.lastEffect:null;if(s!==null){var h=s.next;n=h;do{if((n.tag&e)===e){var x=n.inst,q=x.destroy;if(q!==void 0){x.destroy=void 0,s=t;var oe=r,Ee=q;try{Ee()}catch(De){Et(s,oe,De)}}}n=n.next}while(n!==h)}}catch(De){Et(t,t.return,De)}}function by(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{sp(t,r)}catch(n){Et(e,e.return,n)}}}function vy(e,t,r){r.props=wi(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(n){Et(e,t,n)}}function Wa(e,t){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof r=="function"?e.refCleanup=r(n):r.current=n}}catch(s){Et(e,t,s)}}function Xr(e,t){var r=e.ref,n=e.refCleanup;if(r!==null)if(typeof n=="function")try{n()}catch(s){Et(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(s){Et(e,t,s)}else r.current=null}function _y(e){var t=e.type,r=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&n.focus();break e;case"img":r.src?n.src=r.src:r.srcSet&&(n.srcset=r.srcSet)}}catch(s){Et(e,e.return,s)}}function Hu(e,t,r){try{var n=e.stateNode;O_(n,e.type,r,t),n[Xt]=t}catch(s){Et(e,e.return,s)}}function Sy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Kn(e.type)||e.tag===4}function Pu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Sy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Kn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gu(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=rn));else if(n!==4&&(n===27&&Kn(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(Gu(e,t,r),e=e.sibling;e!==null;)Gu(e,t,r),e=e.sibling}function lo(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(n===27&&Kn(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(lo(e,t,r),e=e.sibling;e!==null;)lo(e,t,r),e=e.sibling}function wy(e){var t=e.stateNode,r=e.memoizedProps;try{for(var n=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);ar(t,n,r),t[zt]=e,t[Xt]=r}catch(h){Et(e,e.return,h)}}var dn=!1,Ft=!1,Yu=!1,Ey=typeof WeakSet=="function"?WeakSet:Set,Jt=null;function l_(e,t){if(e=e.containerInfo,fc=jo,e=Dd(e),Is(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var s=n.anchorOffset,h=n.focusNode;n=n.focusOffset;try{r.nodeType,h.nodeType}catch{r=null;break e}var x=0,q=-1,oe=-1,Ee=0,De=0,qe=e,Te=null;t:for(;;){for(var Oe;qe!==r||s!==0&&qe.nodeType!==3||(q=x+s),qe!==h||n!==0&&qe.nodeType!==3||(oe=x+n),qe.nodeType===3&&(x+=qe.nodeValue.length),(Oe=qe.firstChild)!==null;)Te=qe,qe=Oe;for(;;){if(qe===e)break t;if(Te===r&&++Ee===s&&(q=x),Te===h&&++De===n&&(oe=x),(Oe=qe.nextSibling)!==null)break;qe=Te,Te=qe.parentNode}qe=Oe}r=q===-1||oe===-1?null:{start:q,end:oe}}else r=null}r=r||{start:0,end:0}}else r=null;for(hc={focusedElem:e,selectionRange:r},jo=!1,Jt=t;Jt!==null;)if(t=Jt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Jt=e;else for(;Jt!==null;){switch(t=Jt,h=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)s=e[r],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,r=t,s=h.memoizedProps,h=h.memoizedState,n=r.stateNode;try{var We=wi(r.type,s);e=n.getSnapshotBeforeUpdate(We,h),n.__reactInternalSnapshotBeforeUpdate=e}catch(nt){Et(r,r.return,nt)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,r=e.nodeType,r===9)yc(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":yc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(c(163))}if(e=t.sibling,e!==null){e.return=t.return,Jt=e;break}Jt=t.return}}function Ay(e,t,r){var n=r.flags;switch(r.tag){case 0:case 11:case 15:yn(e,r),n&4&&Fa(5,r);break;case 1:if(yn(e,r),n&4)if(e=r.stateNode,t===null)try{e.componentDidMount()}catch(x){Et(r,r.return,x)}else{var s=wi(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Et(r,r.return,x)}}n&64&&by(r),n&512&&Wa(r,r.return);break;case 3:if(yn(e,r),n&64&&(e=r.updateQueue,e!==null)){if(t=null,r.child!==null)switch(r.child.tag){case 27:case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}try{sp(e,t)}catch(x){Et(r,r.return,x)}}break;case 27:t===null&&n&4&&wy(r);case 26:case 5:yn(e,r),t===null&&n&4&&_y(r),n&512&&Wa(r,r.return);break;case 12:yn(e,r);break;case 31:yn(e,r),n&4&&Oy(e,r);break;case 13:yn(e,r),n&4&&jy(e,r),n&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=y_.bind(null,r),D_(e,r))));break;case 22:if(n=r.memoizedState!==null||dn,!n){t=t!==null&&t.memoizedState!==null||Ft,s=dn;var h=Ft;dn=n,(Ft=t)&&!h?mn(e,r,(r.subtreeFlags&8772)!==0):yn(e,r),dn=s,Ft=h}break;case 30:break;default:yn(e,r)}}function Ty(e){var t=e.alternate;t!==null&&(e.alternate=null,Ty(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&_s(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Dt=null,vr=!1;function pn(e,t,r){for(r=r.child;r!==null;)xy(e,t,r),r=r.sibling}function xy(e,t,r){if(le&&typeof le.onCommitFiberUnmount=="function")try{le.onCommitFiberUnmount(ne,r)}catch{}switch(r.tag){case 26:Ft||Xr(r,t),pn(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:Ft||Xr(r,t);var n=Dt,s=vr;Kn(r.type)&&(Dt=r.stateNode,vr=!1),pn(e,t,r),il(r.stateNode),Dt=n,vr=s;break;case 5:Ft||Xr(r,t);case 6:if(n=Dt,s=vr,Dt=null,pn(e,t,r),Dt=n,vr=s,Dt!==null)if(vr)try{(Dt.nodeType===9?Dt.body:Dt.nodeName==="HTML"?Dt.ownerDocument.body:Dt).removeChild(r.stateNode)}catch(h){Et(r,t,h)}else try{Dt.removeChild(r.stateNode)}catch(h){Et(r,t,h)}break;case 18:Dt!==null&&(vr?(e=Dt,bm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),pa(e)):bm(Dt,r.stateNode));break;case 4:n=Dt,s=vr,Dt=r.stateNode.containerInfo,vr=!0,pn(e,t,r),Dt=n,vr=s;break;case 0:case 11:case 14:case 15:qn(2,r,t),Ft||qn(4,r,t),pn(e,t,r);break;case 1:Ft||(Xr(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"&&vy(r,t,n)),pn(e,t,r);break;case 21:pn(e,t,r);break;case 22:Ft=(n=Ft)||r.memoizedState!==null,pn(e,t,r),Ft=n;break;default:pn(e,t,r)}}function Oy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{pa(e)}catch(r){Et(t,t.return,r)}}}function jy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{pa(e)}catch(r){Et(t,t.return,r)}}function o_(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ey),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ey),t;default:throw Error(c(435,e.tag))}}function oo(e,t){var r=o_(e);t.forEach(function(n){if(!r.has(n)){r.add(n);var s=m_.bind(null,e,n);n.then(s,s)}})}function _r(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var s=r[n],h=e,x=t,q=x;e:for(;q!==null;){switch(q.tag){case 27:if(Kn(q.type)){Dt=q.stateNode,vr=!1;break e}break;case 5:Dt=q.stateNode,vr=!1;break e;case 3:case 4:Dt=q.stateNode.containerInfo,vr=!0;break e}q=q.return}if(Dt===null)throw Error(c(160));xy(h,x,s),Dt=null,vr=!1,h=s.alternate,h!==null&&(h.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)My(t,e),t=t.sibling}var Qr=null;function My(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:_r(t,e),Sr(e),n&4&&(qn(3,e,e.return),Fa(3,e),qn(5,e,e.return));break;case 1:_r(t,e),Sr(e),n&512&&(Ft||r===null||Xr(r,r.return)),n&64&&dn&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?n:r.concat(n))));break;case 26:var s=Qr;if(_r(t,e),Sr(e),n&512&&(Ft||r===null||Xr(r,r.return)),n&4){var h=r!==null?r.memoizedState:null;if(n=e.memoizedState,r===null)if(n===null)if(e.stateNode===null){e:{n=e.type,r=e.memoizedProps,s=s.ownerDocument||s;t:switch(n){case"title":h=s.getElementsByTagName("title")[0],(!h||h[fr]||h[zt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=s.createElement(n),s.head.insertBefore(h,s.querySelector("head > title"))),ar(h,n,r),h[zt]=e,$t(h),n=h;break e;case"link":var x=Mm("link","href",s).get(n+(r.href||""));if(x){for(var q=0;q<x.length;q++)if(h=x[q],h.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&h.getAttribute("rel")===(r.rel==null?null:r.rel)&&h.getAttribute("title")===(r.title==null?null:r.title)&&h.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){x.splice(q,1);break t}}h=s.createElement(n),ar(h,n,r),s.head.appendChild(h);break;case"meta":if(x=Mm("meta","content",s).get(n+(r.content||""))){for(q=0;q<x.length;q++)if(h=x[q],h.getAttribute("content")===(r.content==null?null:""+r.content)&&h.getAttribute("name")===(r.name==null?null:r.name)&&h.getAttribute("property")===(r.property==null?null:r.property)&&h.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&h.getAttribute("charset")===(r.charSet==null?null:r.charSet)){x.splice(q,1);break t}}h=s.createElement(n),ar(h,n,r),s.head.appendChild(h);break;default:throw Error(c(468,n))}h[zt]=e,$t(h),n=h}e.stateNode=n}else Nm(s,e.type,e.stateNode);else e.stateNode=jm(s,n,e.memoizedProps);else h!==n?(h===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):h.count--,n===null?Nm(s,e.type,e.stateNode):jm(s,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Hu(e,e.memoizedProps,r.memoizedProps)}break;case 27:_r(t,e),Sr(e),n&512&&(Ft||r===null||Xr(r,r.return)),r!==null&&n&4&&Hu(e,e.memoizedProps,r.memoizedProps);break;case 5:if(_r(t,e),Sr(e),n&512&&(Ft||r===null||Xr(r,r.return)),e.flags&32){s=e.stateNode;try{Ii(s,"")}catch(We){Et(e,e.return,We)}}n&4&&e.stateNode!=null&&(s=e.memoizedProps,Hu(e,s,r!==null?r.memoizedProps:s)),n&1024&&(Yu=!0);break;case 6:if(_r(t,e),Sr(e),n&4){if(e.stateNode===null)throw Error(c(162));n=e.memoizedProps,r=e.stateNode;try{r.nodeValue=n}catch(We){Et(e,e.return,We)}}break;case 3:if(Ao=null,s=Qr,Qr=wo(t.containerInfo),_r(t,e),Qr=s,Sr(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{pa(t.containerInfo)}catch(We){Et(e,e.return,We)}Yu&&(Yu=!1,Ny(e));break;case 4:n=Qr,Qr=wo(e.stateNode.containerInfo),_r(t,e),Sr(e),Qr=n;break;case 12:_r(t,e),Sr(e);break;case 31:_r(t,e),Sr(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,oo(e,n)));break;case 13:_r(t,e),Sr(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(uo=xe()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,oo(e,n)));break;case 22:s=e.memoizedState!==null;var oe=r!==null&&r.memoizedState!==null,Ee=dn,De=Ft;if(dn=Ee||s,Ft=De||oe,_r(t,e),Ft=De,dn=Ee,Sr(e),n&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(r===null||oe||dn||Ft||Ei(e)),r=null,t=e;;){if(t.tag===5||t.tag===26){if(r===null){oe=r=t;try{if(h=oe.stateNode,s)x=h.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{q=oe.stateNode;var qe=oe.memoizedProps.style,Te=qe!=null&&qe.hasOwnProperty("display")?qe.display:null;q.style.display=Te==null||typeof Te=="boolean"?"":(""+Te).trim()}}catch(We){Et(oe,oe.return,We)}}}else if(t.tag===6){if(r===null){oe=t;try{oe.stateNode.nodeValue=s?"":oe.memoizedProps}catch(We){Et(oe,oe.return,We)}}}else if(t.tag===18){if(r===null){oe=t;try{var Oe=oe.stateNode;s?vm(Oe,!0):vm(oe.stateNode,!1)}catch(We){Et(oe,oe.return,We)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(r=n.retryQueue,r!==null&&(n.retryQueue=null,oo(e,r))));break;case 19:_r(t,e),Sr(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,oo(e,n)));break;case 30:break;case 21:break;default:_r(t,e),Sr(e)}}function Sr(e){var t=e.flags;if(t&2){try{for(var r,n=e.return;n!==null;){if(Sy(n)){r=n;break}n=n.return}if(r==null)throw Error(c(160));switch(r.tag){case 27:var s=r.stateNode,h=Pu(e);lo(e,h,s);break;case 5:var x=r.stateNode;r.flags&32&&(Ii(x,""),r.flags&=-33);var q=Pu(e);lo(e,q,x);break;case 3:case 4:var oe=r.stateNode.containerInfo,Ee=Pu(e);Gu(e,Ee,oe);break;default:throw Error(c(161))}}catch(De){Et(e,e.return,De)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ny(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ny(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function yn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Ay(e,t.alternate,t),t=t.sibling}function Ei(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:qn(4,t,t.return),Ei(t);break;case 1:Xr(t,t.return);var r=t.stateNode;typeof r.componentWillUnmount=="function"&&vy(t,t.return,r),Ei(t);break;case 27:il(t.stateNode);case 26:case 5:Xr(t,t.return),Ei(t);break;case 22:t.memoizedState===null&&Ei(t);break;case 30:Ei(t);break;default:Ei(t)}e=e.sibling}}function mn(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,s=e,h=t,x=h.flags;switch(h.tag){case 0:case 11:case 15:mn(s,h,r),Fa(4,h);break;case 1:if(mn(s,h,r),n=h,s=n.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(Ee){Et(n,n.return,Ee)}if(n=h,s=n.updateQueue,s!==null){var q=n.stateNode;try{var oe=s.shared.hiddenCallbacks;if(oe!==null)for(s.shared.hiddenCallbacks=null,s=0;s<oe.length;s++)op(oe[s],q)}catch(Ee){Et(n,n.return,Ee)}}r&&x&64&&by(h),Wa(h,h.return);break;case 27:wy(h);case 26:case 5:mn(s,h,r),r&&n===null&&x&4&&_y(h),Wa(h,h.return);break;case 12:mn(s,h,r);break;case 31:mn(s,h,r),r&&x&4&&Oy(s,h);break;case 13:mn(s,h,r),r&&x&4&&jy(s,h);break;case 22:h.memoizedState===null&&mn(s,h,r),Wa(h,h.return);break;case 30:break;default:mn(s,h,r)}t=t.sibling}}function Qu(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&Da(r))}function Vu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Da(e))}function Vr(e,t,r,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Cy(e,t,r,n),t=t.sibling}function Cy(e,t,r,n){var s=t.flags;switch(t.tag){case 0:case 11:case 15:Vr(e,t,r,n),s&2048&&Fa(9,t);break;case 1:Vr(e,t,r,n);break;case 3:Vr(e,t,r,n),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Da(e)));break;case 12:if(s&2048){Vr(e,t,r,n),e=t.stateNode;try{var h=t.memoizedProps,x=h.id,q=h.onPostCommit;typeof q=="function"&&q(x,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(oe){Et(t,t.return,oe)}}else Vr(e,t,r,n);break;case 31:Vr(e,t,r,n);break;case 13:Vr(e,t,r,n);break;case 23:break;case 22:h=t.stateNode,x=t.alternate,t.memoizedState!==null?h._visibility&2?Vr(e,t,r,n):Xa(e,t):h._visibility&2?Vr(e,t,r,n):(h._visibility|=2,na(e,t,r,n,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Qu(x,t);break;case 24:Vr(e,t,r,n),s&2048&&Vu(t.alternate,t);break;default:Vr(e,t,r,n)}}function na(e,t,r,n,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var h=e,x=t,q=r,oe=n,Ee=x.flags;switch(x.tag){case 0:case 11:case 15:na(h,x,q,oe,s),Fa(8,x);break;case 23:break;case 22:var De=x.stateNode;x.memoizedState!==null?De._visibility&2?na(h,x,q,oe,s):Xa(h,x):(De._visibility|=2,na(h,x,q,oe,s)),s&&Ee&2048&&Qu(x.alternate,x);break;case 24:na(h,x,q,oe,s),s&&Ee&2048&&Vu(x.alternate,x);break;default:na(h,x,q,oe,s)}t=t.sibling}}function Xa(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var r=e,n=t,s=n.flags;switch(n.tag){case 22:Xa(r,n),s&2048&&Qu(n.alternate,n);break;case 24:Xa(r,n),s&2048&&Vu(n.alternate,n);break;default:Xa(r,n)}t=t.sibling}}var Za=8192;function ia(e,t,r){if(e.subtreeFlags&Za)for(e=e.child;e!==null;)Ry(e,t,r),e=e.sibling}function Ry(e,t,r){switch(e.tag){case 26:ia(e,t,r),e.flags&Za&&e.memoizedState!==null&&K_(r,Qr,e.memoizedState,e.memoizedProps);break;case 5:ia(e,t,r);break;case 3:case 4:var n=Qr;Qr=wo(e.stateNode.containerInfo),ia(e,t,r),Qr=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Za,Za=16777216,ia(e,t,r),Za=n):ia(e,t,r));break;default:ia(e,t,r)}}function Uy(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function $a(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var n=t[r];Jt=n,Dy(n,e)}Uy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)By(e),e=e.sibling}function By(e){switch(e.tag){case 0:case 11:case 15:$a(e),e.flags&2048&&qn(9,e,e.return);break;case 3:$a(e);break;case 12:$a(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,so(e)):$a(e);break;default:$a(e)}}function so(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var n=t[r];Jt=n,Dy(n,e)}Uy(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:qn(8,t,t.return),so(t);break;case 22:r=t.stateNode,r._visibility&2&&(r._visibility&=-3,so(t));break;default:so(t)}e=e.sibling}}function Dy(e,t){for(;Jt!==null;){var r=Jt;switch(r.tag){case 0:case 11:case 15:qn(8,r,t);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var n=r.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Da(r.memoizedState.cache)}if(n=r.child,n!==null)n.return=r,Jt=n;else e:for(r=e;Jt!==null;){n=Jt;var s=n.sibling,h=n.return;if(Ty(n),n===r){Jt=null;break e}if(s!==null){s.return=h,Jt=s;break e}Jt=h}}}var s_={getCacheForType:function(e){var t=nr(Qt),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r},cacheSignal:function(){return nr(Qt).controller.signal}},u_=typeof WeakMap=="function"?WeakMap:Map,St=0,jt=null,ct=null,ht=0,wt=0,Cr=null,Hn=!1,aa=!1,Ku=!1,gn=0,Ht=0,Pn=0,Ai=0,Fu=0,Rr=0,la=0,Ja=null,wr=null,Wu=!1,uo=0,ky=0,co=1/0,fo=null,Gn=null,Zt=0,Yn=null,oa=null,bn=0,Xu=0,Zu=null,Iy=null,el=0,$u=null;function Ur(){return(St&2)!==0&&ht!==0?ht&-ht:W.T!==null?ic():pr()}function zy(){if(Rr===0)if((ht&536870912)===0||pt){var e=lt;lt<<=1,(lt&3932160)===0&&(lt=262144),Rr=e}else Rr=536870912;return e=Mr.current,e!==null&&(e.flags|=32),Rr}function Er(e,t,r){(e===jt&&(wt===2||wt===9)||e.cancelPendingCommit!==null)&&(sa(e,0),Qn(e,ht,Rr,!1)),P(e,r),((St&2)===0||e!==jt)&&(e===jt&&((St&2)===0&&(Ai|=r),Ht===4&&Qn(e,ht,Rr,!1)),Zr(e))}function Ly(e,t,r){if((St&6)!==0)throw Error(c(327));var n=!r&&(t&127)===0&&(t&e.expiredLanes)===0||yt(e,t),s=n?h_(e,t):ec(e,t,!0),h=n;do{if(s===0){aa&&!n&&Qn(e,t,0,!1);break}else{if(r=e.current.alternate,h&&!c_(r)){s=ec(e,t,!1),h=!1;continue}if(s===2){if(h=t,e.errorRecoveryDisabledLanes&h)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){t=x;e:{var q=e;s=Ja;var oe=q.current.memoizedState.isDehydrated;if(oe&&(sa(q,x).flags|=256),x=ec(q,x,!1),x!==2){if(Ku&&!oe){q.errorRecoveryDisabledLanes|=h,Ai|=h,s=4;break e}h=wr,wr=s,h!==null&&(wr===null?wr=h:wr.push.apply(wr,h))}s=x}if(h=!1,s!==2)continue}}if(s===1){sa(e,0),Qn(e,t,0,!0);break}e:{switch(n=e,h=s,h){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:Qn(n,t,Rr,!Hn);break e;case 2:wr=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(s=uo+300-xe(),10<s)){if(Qn(n,t,Rr,!Hn),ut(n,0,!0)!==0)break e;bn=t,n.timeoutHandle=mm(qy.bind(null,n,r,wr,fo,Wu,t,Rr,Ai,la,Hn,h,"Throttled",-0,0),s);break e}qy(n,r,wr,fo,Wu,t,Rr,Ai,la,Hn,h,null,-0,0)}}break}while(!0);Zr(e)}function qy(e,t,r,n,s,h,x,q,oe,Ee,De,qe,Te,Oe){if(e.timeoutHandle=-1,qe=t.subtreeFlags,qe&8192||(qe&16785408)===16785408){qe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:rn},Ry(t,h,qe);var We=(h&62914560)===h?uo-xe():(h&4194048)===h?ky-xe():0;if(We=F_(qe,We),We!==null){bn=h,e.cancelPendingCommit=We(Fy.bind(null,e,t,h,r,n,s,x,q,oe,De,qe,null,Te,Oe)),Qn(e,h,x,!Ee);return}}Fy(e,t,h,r,n,s,x,q,oe)}function c_(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var n=0;n<r.length;n++){var s=r[n],h=s.getSnapshot;s=s.value;try{if(!Or(h(),s))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Qn(e,t,r,n){t&=~Fu,t&=~Ai,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var s=t;0<s;){var h=31-Ye(s),x=1<<h;n[h]=-1,s&=~x}r!==0&&He(e,r,t)}function ho(){return(St&6)===0?(tl(0),!1):!0}function Ju(){if(ct!==null){if(wt===0)var e=ct.return;else e=ct,on=yi=null,yu(e),$i=null,Ia=0,e=ct;for(;e!==null;)gy(e.alternate,e),e=e.return;ct=null}}function sa(e,t){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,N_(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),bn=0,Ju(),jt=e,ct=r=an(e.current,null),ht=t,wt=0,Cr=null,Hn=!1,aa=yt(e,t),Ku=!1,la=Rr=Fu=Ai=Pn=Ht=0,wr=Ja=null,Wu=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var s=31-Ye(n),h=1<<s;t|=e[s],n&=~h}return gn=t,Ul(),r}function Hy(e,t){ot=null,W.H=Qa,t===Zi||t===Hl?(t=np(),wt=3):t===nu?(t=np(),wt=4):wt=t===Cu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Cr=t,ct===null&&(Ht=1,to(e,Ir(t,e.current)))}function Py(){var e=Mr.current;return e===null?!0:(ht&4194048)===ht?Hr===null:(ht&62914560)===ht||(ht&536870912)!==0?e===Hr:!1}function Gy(){var e=W.H;return W.H=Qa,e===null?Qa:e}function Yy(){var e=W.A;return W.A=s_,e}function po(){Ht=4,Hn||(ht&4194048)!==ht&&Mr.current!==null||(aa=!0),(Pn&134217727)===0&&(Ai&134217727)===0||jt===null||Qn(jt,ht,Rr,!1)}function ec(e,t,r){var n=St;St|=2;var s=Gy(),h=Yy();(jt!==e||ht!==t)&&(fo=null,sa(e,t)),t=!1;var x=Ht;e:do try{if(wt!==0&&ct!==null){var q=ct,oe=Cr;switch(wt){case 8:Ju(),x=6;break e;case 3:case 2:case 9:case 6:Mr.current===null&&(t=!0);var Ee=wt;if(wt=0,Cr=null,ua(e,q,oe,Ee),r&&aa){x=0;break e}break;default:Ee=wt,wt=0,Cr=null,ua(e,q,oe,Ee)}}f_(),x=Ht;break}catch(De){Hy(e,De)}while(!0);return t&&e.shellSuspendCounter++,on=yi=null,St=n,W.H=s,W.A=h,ct===null&&(jt=null,ht=0,Ul()),x}function f_(){for(;ct!==null;)Qy(ct)}function h_(e,t){var r=St;St|=2;var n=Gy(),s=Yy();jt!==e||ht!==t?(fo=null,co=xe()+500,sa(e,t)):aa=yt(e,t);e:do try{if(wt!==0&&ct!==null){t=ct;var h=Cr;t:switch(wt){case 1:wt=0,Cr=null,ua(e,t,h,1);break;case 2:case 9:if(tp(h)){wt=0,Cr=null,Vy(t);break}t=function(){wt!==2&&wt!==9||jt!==e||(wt=7),Zr(e)},h.then(t,t);break e;case 3:wt=7;break e;case 4:wt=5;break e;case 7:tp(h)?(wt=0,Cr=null,Vy(t)):(wt=0,Cr=null,ua(e,t,h,7));break;case 5:var x=null;switch(ct.tag){case 26:x=ct.memoizedState;case 5:case 27:var q=ct;if(x?Cm(x):q.stateNode.complete){wt=0,Cr=null;var oe=q.sibling;if(oe!==null)ct=oe;else{var Ee=q.return;Ee!==null?(ct=Ee,yo(Ee)):ct=null}break t}}wt=0,Cr=null,ua(e,t,h,5);break;case 6:wt=0,Cr=null,ua(e,t,h,6);break;case 8:Ju(),Ht=6;break e;default:throw Error(c(462))}}d_();break}catch(De){Hy(e,De)}while(!0);return on=yi=null,W.H=n,W.A=s,St=r,ct!==null?0:(jt=null,ht=0,Ul(),Ht)}function d_(){for(;ct!==null&&!ke();)Qy(ct)}function Qy(e){var t=yy(e.alternate,e,gn);e.memoizedProps=e.pendingProps,t===null?yo(e):ct=t}function Vy(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=uy(r,t,t.pendingProps,t.type,void 0,ht);break;case 11:t=uy(r,t,t.pendingProps,t.type.render,t.ref,ht);break;case 5:yu(t);default:gy(r,t),t=ct=Yd(t,gn),t=yy(r,t,gn)}e.memoizedProps=e.pendingProps,t===null?yo(e):ct=t}function ua(e,t,r,n){on=yi=null,yu(t),$i=null,Ia=0;var s=t.return;try{if(t_(e,s,t,r,ht)){Ht=1,to(e,Ir(r,e.current)),ct=null;return}}catch(h){if(s!==null)throw ct=s,h;Ht=1,to(e,Ir(r,e.current)),ct=null;return}t.flags&32768?(pt||n===1?e=!0:aa||(ht&536870912)!==0?e=!1:(Hn=e=!0,(n===2||n===9||n===3||n===6)&&(n=Mr.current,n!==null&&n.tag===13&&(n.flags|=16384))),Ky(t,e)):yo(t)}function yo(e){var t=e;do{if((t.flags&32768)!==0){Ky(t,Hn);return}e=t.return;var r=i_(t.alternate,t,gn);if(r!==null){ct=r;return}if(t=t.sibling,t!==null){ct=t;return}ct=t=e}while(t!==null);Ht===0&&(Ht=5)}function Ky(e,t){do{var r=a_(e.alternate,e);if(r!==null){r.flags&=32767,ct=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){ct=e;return}ct=e=r}while(e!==null);Ht=6,ct=null}function Fy(e,t,r,n,s,h,x,q,oe){e.cancelPendingCommit=null;do mo();while(Zt!==0);if((St&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(h=t.lanes|t.childLanes,h|=Ps,$(e,r,h,x,q,oe),e===jt&&(ct=jt=null,ht=0),oa=t,Yn=e,bn=r,Xu=h,Zu=s,Iy=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,g_(E,function(){return Jy(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=W.T,W.T=null,s=V.p,V.p=2,x=St,St|=4;try{l_(e,t,r)}finally{St=x,V.p=s,W.T=n}}Zt=1,Wy(),Xy(),Zy()}}function Wy(){if(Zt===1){Zt=0;var e=Yn,t=oa,r=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||r){r=W.T,W.T=null;var n=V.p;V.p=2;var s=St;St|=4;try{My(t,e);var h=hc,x=Dd(e.containerInfo),q=h.focusedElem,oe=h.selectionRange;if(x!==q&&q&&q.ownerDocument&&Bd(q.ownerDocument.documentElement,q)){if(oe!==null&&Is(q)){var Ee=oe.start,De=oe.end;if(De===void 0&&(De=Ee),"selectionStart"in q)q.selectionStart=Ee,q.selectionEnd=Math.min(De,q.value.length);else{var qe=q.ownerDocument||document,Te=qe&&qe.defaultView||window;if(Te.getSelection){var Oe=Te.getSelection(),We=q.textContent.length,nt=Math.min(oe.start,We),xt=oe.end===void 0?nt:Math.min(oe.end,We);!Oe.extend&&nt>xt&&(x=xt,xt=nt,nt=x);var ve=Ud(q,nt),pe=Ud(q,xt);if(ve&&pe&&(Oe.rangeCount!==1||Oe.anchorNode!==ve.node||Oe.anchorOffset!==ve.offset||Oe.focusNode!==pe.node||Oe.focusOffset!==pe.offset)){var we=qe.createRange();we.setStart(ve.node,ve.offset),Oe.removeAllRanges(),nt>xt?(Oe.addRange(we),Oe.extend(pe.node,pe.offset)):(we.setEnd(pe.node,pe.offset),Oe.addRange(we))}}}}for(qe=[],Oe=q;Oe=Oe.parentNode;)Oe.nodeType===1&&qe.push({element:Oe,left:Oe.scrollLeft,top:Oe.scrollTop});for(typeof q.focus=="function"&&q.focus(),q=0;q<qe.length;q++){var Le=qe[q];Le.element.scrollLeft=Le.left,Le.element.scrollTop=Le.top}}jo=!!fc,hc=fc=null}finally{St=s,V.p=n,W.T=r}}e.current=t,Zt=2}}function Xy(){if(Zt===2){Zt=0;var e=Yn,t=oa,r=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||r){r=W.T,W.T=null;var n=V.p;V.p=2;var s=St;St|=4;try{Ay(e,t.alternate,t)}finally{St=s,V.p=n,W.T=r}}Zt=3}}function Zy(){if(Zt===4||Zt===3){Zt=0,Pe();var e=Yn,t=oa,r=bn,n=Iy;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Zt=5:(Zt=0,oa=Yn=null,$y(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(Gn=null),Wt(r),t=t.stateNode,le&&typeof le.onCommitFiberRoot=="function")try{le.onCommitFiberRoot(ne,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=W.T,s=V.p,V.p=2,W.T=null;try{for(var h=e.onRecoverableError,x=0;x<n.length;x++){var q=n[x];h(q.value,{componentStack:q.stack})}}finally{W.T=t,V.p=s}}(bn&3)!==0&&mo(),Zr(e),s=e.pendingLanes,(r&261930)!==0&&(s&42)!==0?e===$u?el++:(el=0,$u=e):el=0,tl(0)}}function $y(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Da(t)))}function mo(){return Wy(),Xy(),Zy(),Jy()}function Jy(){if(Zt!==5)return!1;var e=Yn,t=Xu;Xu=0;var r=Wt(bn),n=W.T,s=V.p;try{V.p=32>r?32:r,W.T=null,r=Zu,Zu=null;var h=Yn,x=bn;if(Zt=0,oa=Yn=null,bn=0,(St&6)!==0)throw Error(c(331));var q=St;if(St|=4,By(h.current),Cy(h,h.current,x,r),St=q,tl(0,!1),le&&typeof le.onPostCommitFiberRoot=="function")try{le.onPostCommitFiberRoot(ne,h)}catch{}return!0}finally{V.p=s,W.T=n,$y(e,t)}}function em(e,t,r){t=Ir(r,t),t=Nu(e.stateNode,t,2),e=In(e,t,2),e!==null&&(P(e,2),Zr(e))}function Et(e,t,r){if(e.tag===3)em(e,e,r);else for(;t!==null;){if(t.tag===3){em(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Gn===null||!Gn.has(n))){e=Ir(r,e),r=ty(2),n=In(t,r,2),n!==null&&(ry(r,n,t,e),P(n,2),Zr(n));break}}t=t.return}}function tc(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new u_;var s=new Set;n.set(t,s)}else s=n.get(t),s===void 0&&(s=new Set,n.set(t,s));s.has(r)||(Ku=!0,s.add(r),e=p_.bind(null,e,t,r),t.then(e,e))}function p_(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,jt===e&&(ht&r)===r&&(Ht===4||Ht===3&&(ht&62914560)===ht&&300>xe()-uo?(St&2)===0&&sa(e,0):Fu|=r,la===ht&&(la=0)),Zr(e)}function tm(e,t){t===0&&(t=Pt()),e=hi(e,t),e!==null&&(P(e,t),Zr(e))}function y_(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),tm(e,r)}function m_(e,t){var r=0;switch(e.tag){case 31:case 13:var n=e.stateNode,s=e.memoizedState;s!==null&&(r=s.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(c(314))}n!==null&&n.delete(t),tm(e,r)}function g_(e,t){return ze(e,t)}var go=null,ca=null,rc=!1,bo=!1,nc=!1,Vn=0;function Zr(e){e!==ca&&e.next===null&&(ca===null?go=ca=e:ca=ca.next=e),bo=!0,rc||(rc=!0,v_())}function tl(e,t){if(!nc&&bo){nc=!0;do for(var r=!1,n=go;n!==null;){if(e!==0){var s=n.pendingLanes;if(s===0)var h=0;else{var x=n.suspendedLanes,q=n.pingedLanes;h=(1<<31-Ye(42|e)+1)-1,h&=s&~(x&~q),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(r=!0,am(n,h))}else h=ht,h=ut(n,n===jt?h:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(h&3)===0||yt(n,h)||(r=!0,am(n,h));n=n.next}while(r);nc=!1}}function b_(){rm()}function rm(){bo=rc=!1;var e=0;Vn!==0&&M_()&&(e=Vn);for(var t=xe(),r=null,n=go;n!==null;){var s=n.next,h=nm(n,t);h===0?(n.next=null,r===null?go=s:r.next=s,s===null&&(ca=r)):(r=n,(e!==0||(h&3)!==0)&&(bo=!0)),n=s}Zt!==0&&Zt!==5||tl(e),Vn!==0&&(Vn=0)}function nm(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,s=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var x=31-Ye(h),q=1<<x,oe=s[x];oe===-1?((q&r)===0||(q&n)!==0)&&(s[x]=Bt(q,t)):oe<=t&&(e.expiredLanes|=q),h&=~q}if(t=jt,r=ht,r=ut(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,r===0||e===t&&(wt===2||wt===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&he(n),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||yt(e,r)){if(t=r&-r,t===e.callbackPriority)return t;switch(n!==null&&he(n),Wt(r)){case 2:case 8:r=v;break;case 32:r=E;break;case 268435456:r=F;break;default:r=E}return n=im.bind(null,e),r=ze(r,n),e.callbackPriority=t,e.callbackNode=r,t}return n!==null&&n!==null&&he(n),e.callbackPriority=2,e.callbackNode=null,2}function im(e,t){if(Zt!==0&&Zt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(mo()&&e.callbackNode!==r)return null;var n=ht;return n=ut(e,e===jt?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(Ly(e,n,t),nm(e,xe()),e.callbackNode!=null&&e.callbackNode===r?im.bind(null,e):null)}function am(e,t){if(mo())return null;Ly(e,t,!0)}function v_(){C_(function(){(St&6)!==0?ze(g,b_):rm()})}function ic(){if(Vn===0){var e=Wi;e===0&&(e=Mt,Mt<<=1,(Mt&261888)===0&&(Mt=256)),Vn=e}return Vn}function lm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Tl(""+e)}function om(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function __(e,t,r,n,s){if(t==="submit"&&r&&r.stateNode===s){var h=lm((s[Xt]||null).action),x=n.submitter;x&&(t=(t=x[Xt]||null)?lm(t.formAction):x.getAttribute("formAction"),t!==null&&(h=t,x=null));var q=new Ml("action","action",null,n,s);e.push({event:q,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Vn!==0){var oe=x?om(s,x):new FormData(s);Au(r,{pending:!0,data:oe,method:s.method,action:h},null,oe)}}else typeof h=="function"&&(q.preventDefault(),oe=x?om(s,x):new FormData(s),Au(r,{pending:!0,data:oe,method:s.method,action:h},h,oe))},currentTarget:s}]})}}for(var ac=0;ac<Hs.length;ac++){var lc=Hs[ac],S_=lc.toLowerCase(),w_=lc[0].toUpperCase()+lc.slice(1);Yr(S_,"on"+w_)}Yr(zd,"onAnimationEnd"),Yr(Ld,"onAnimationIteration"),Yr(qd,"onAnimationStart"),Yr("dblclick","onDoubleClick"),Yr("focusin","onFocus"),Yr("focusout","onBlur"),Yr(z0,"onTransitionRun"),Yr(L0,"onTransitionStart"),Yr(q0,"onTransitionCancel"),Yr(Hd,"onTransitionEnd"),Di("onMouseEnter",["mouseout","mouseover"]),Di("onMouseLeave",["mouseout","mouseover"]),Di("onPointerEnter",["pointerout","pointerover"]),Di("onPointerLeave",["pointerout","pointerover"]),si("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),si("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),si("onBeforeInput",["compositionend","keypress","textInput","paste"]),si("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),si("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),si("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rl="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(" "),E_=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(rl));function sm(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],s=n.event;n=n.listeners;e:{var h=void 0;if(t)for(var x=n.length-1;0<=x;x--){var q=n[x],oe=q.instance,Ee=q.currentTarget;if(q=q.listener,oe!==h&&s.isPropagationStopped())break e;h=q,s.currentTarget=Ee;try{h(s)}catch(De){Rl(De)}s.currentTarget=null,h=oe}else for(x=0;x<n.length;x++){if(q=n[x],oe=q.instance,Ee=q.currentTarget,q=q.listener,oe!==h&&s.isPropagationStopped())break e;h=q,s.currentTarget=Ee;try{h(s)}catch(De){Rl(De)}s.currentTarget=null,h=oe}}}}function ft(e,t){var r=t[gr];r===void 0&&(r=t[gr]=new Set);var n=e+"__bubble";r.has(n)||(um(t,e,2,!1),r.add(n))}function oc(e,t,r){var n=0;t&&(n|=4),um(r,e,n,t)}var vo="_reactListening"+Math.random().toString(36).slice(2);function sc(e){if(!e[vo]){e[vo]=!0,rd.forEach(function(r){r!=="selectionchange"&&(E_.has(r)||oc(r,!1,e),oc(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vo]||(t[vo]=!0,oc("selectionchange",!1,t))}}function um(e,t,r,n){switch(zm(t)){case 2:var s=Z_;break;case 8:s=$_;break;default:s=Ec}r=s.bind(null,t,r,e),s=void 0,!js||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),n?s!==void 0?e.addEventListener(t,r,{capture:!0,passive:s}):e.addEventListener(t,r,!0):s!==void 0?e.addEventListener(t,r,{passive:s}):e.addEventListener(t,r,!1)}function uc(e,t,r,n,s){var h=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var x=n.tag;if(x===3||x===4){var q=n.stateNode.containerInfo;if(q===s)break;if(x===4)for(x=n.return;x!==null;){var oe=x.tag;if((oe===3||oe===4)&&x.stateNode.containerInfo===s)return;x=x.return}for(;q!==null;){if(x=Ri(q),x===null)return;if(oe=x.tag,oe===5||oe===6||oe===26||oe===27){n=h=x;continue e}q=q.parentNode}}n=n.return}pd(function(){var Ee=h,De=xs(r),qe=[];e:{var Te=Pd.get(e);if(Te!==void 0){var Oe=Ml,We=e;switch(e){case"keypress":if(Ol(r)===0)break e;case"keydown":case"keyup":Oe=m0;break;case"focusin":We="focus",Oe=Rs;break;case"focusout":We="blur",Oe=Rs;break;case"beforeblur":case"afterblur":Oe=Rs;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Oe=gd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Oe=i0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Oe=v0;break;case zd:case Ld:case qd:Oe=o0;break;case Hd:Oe=S0;break;case"scroll":case"scrollend":Oe=r0;break;case"wheel":Oe=E0;break;case"copy":case"cut":case"paste":Oe=u0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Oe=vd;break;case"toggle":case"beforetoggle":Oe=T0}var nt=(t&4)!==0,xt=!nt&&(e==="scroll"||e==="scrollend"),ve=nt?Te!==null?Te+"Capture":null:Te;nt=[];for(var pe=Ee,we;pe!==null;){var Le=pe;if(we=Le.stateNode,Le=Le.tag,Le!==5&&Le!==26&&Le!==27||we===null||ve===null||(Le=Aa(pe,ve),Le!=null&&nt.push(nl(pe,Le,we))),xt)break;pe=pe.return}0<nt.length&&(Te=new Oe(Te,We,null,r,De),qe.push({event:Te,listeners:nt}))}}if((t&7)===0){e:{if(Te=e==="mouseover"||e==="pointerover",Oe=e==="mouseout"||e==="pointerout",Te&&r!==Ts&&(We=r.relatedTarget||r.fromElement)&&(Ri(We)||We[mr]))break e;if((Oe||Te)&&(Te=De.window===De?De:(Te=De.ownerDocument)?Te.defaultView||Te.parentWindow:window,Oe?(We=r.relatedTarget||r.toElement,Oe=Ee,We=We?Ri(We):null,We!==null&&(xt=o(We),nt=We.tag,We!==xt||nt!==5&&nt!==27&&nt!==6)&&(We=null)):(Oe=null,We=Ee),Oe!==We)){if(nt=gd,Le="onMouseLeave",ve="onMouseEnter",pe="mouse",(e==="pointerout"||e==="pointerover")&&(nt=vd,Le="onPointerLeave",ve="onPointerEnter",pe="pointer"),xt=Oe==null?Te:Ea(Oe),we=We==null?Te:Ea(We),Te=new nt(Le,pe+"leave",Oe,r,De),Te.target=xt,Te.relatedTarget=we,Le=null,Ri(De)===Ee&&(nt=new nt(ve,pe+"enter",We,r,De),nt.target=we,nt.relatedTarget=xt,Le=nt),xt=Le,Oe&&We)t:{for(nt=A_,ve=Oe,pe=We,we=0,Le=ve;Le;Le=nt(Le))we++;Le=0;for(var et=pe;et;et=nt(et))Le++;for(;0<we-Le;)ve=nt(ve),we--;for(;0<Le-we;)pe=nt(pe),Le--;for(;we--;){if(ve===pe||pe!==null&&ve===pe.alternate){nt=ve;break t}ve=nt(ve),pe=nt(pe)}nt=null}else nt=null;Oe!==null&&cm(qe,Te,Oe,nt,!1),We!==null&&xt!==null&&cm(qe,xt,We,nt,!0)}}e:{if(Te=Ee?Ea(Ee):window,Oe=Te.nodeName&&Te.nodeName.toLowerCase(),Oe==="select"||Oe==="input"&&Te.type==="file")var bt=Od;else if(Td(Te))if(jd)bt=D0;else{bt=U0;var Ze=R0}else Oe=Te.nodeName,!Oe||Oe.toLowerCase()!=="input"||Te.type!=="checkbox"&&Te.type!=="radio"?Ee&&As(Ee.elementType)&&(bt=Od):bt=B0;if(bt&&(bt=bt(e,Ee))){xd(qe,bt,r,De);break e}Ze&&Ze(e,Te,Ee),e==="focusout"&&Ee&&Te.type==="number"&&Ee.memoizedProps.value!=null&&Es(Te,"number",Te.value)}switch(Ze=Ee?Ea(Ee):window,e){case"focusin":(Td(Ze)||Ze.contentEditable==="true")&&(Hi=Ze,zs=Ee,Ra=null);break;case"focusout":Ra=zs=Hi=null;break;case"mousedown":Ls=!0;break;case"contextmenu":case"mouseup":case"dragend":Ls=!1,kd(qe,r,De);break;case"selectionchange":if(I0)break;case"keydown":case"keyup":kd(qe,r,De)}var st;if(Bs)e:{switch(e){case"compositionstart":var dt="onCompositionStart";break e;case"compositionend":dt="onCompositionEnd";break e;case"compositionupdate":dt="onCompositionUpdate";break e}dt=void 0}else qi?Ed(e,r)&&(dt="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(dt="onCompositionStart");dt&&(_d&&r.locale!=="ko"&&(qi||dt!=="onCompositionStart"?dt==="onCompositionEnd"&&qi&&(st=yd()):(Nn=De,Ms="value"in Nn?Nn.value:Nn.textContent,qi=!0)),Ze=_o(Ee,dt),0<Ze.length&&(dt=new bd(dt,e,null,r,De),qe.push({event:dt,listeners:Ze}),st?dt.data=st:(st=Ad(r),st!==null&&(dt.data=st)))),(st=O0?j0(e,r):M0(e,r))&&(dt=_o(Ee,"onBeforeInput"),0<dt.length&&(Ze=new bd("onBeforeInput","beforeinput",null,r,De),qe.push({event:Ze,listeners:dt}),Ze.data=st)),__(qe,e,Ee,r,De)}sm(qe,t)})}function nl(e,t,r){return{instance:e,listener:t,currentTarget:r}}function _o(e,t){for(var r=t+"Capture",n=[];e!==null;){var s=e,h=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||h===null||(s=Aa(e,r),s!=null&&n.unshift(nl(e,s,h)),s=Aa(e,t),s!=null&&n.push(nl(e,s,h))),e.tag===3)return n;e=e.return}return[]}function A_(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function cm(e,t,r,n,s){for(var h=t._reactName,x=[];r!==null&&r!==n;){var q=r,oe=q.alternate,Ee=q.stateNode;if(q=q.tag,oe!==null&&oe===n)break;q!==5&&q!==26&&q!==27||Ee===null||(oe=Ee,s?(Ee=Aa(r,h),Ee!=null&&x.unshift(nl(r,Ee,oe))):s||(Ee=Aa(r,h),Ee!=null&&x.push(nl(r,Ee,oe)))),r=r.return}x.length!==0&&e.push({event:t,listeners:x})}var T_=/\r\n?/g,x_=/\u0000|\uFFFD/g;function fm(e){return(typeof e=="string"?e:""+e).replace(T_,`
`).replace(x_,"")}function hm(e,t){return t=fm(t),fm(e)===t}function Tt(e,t,r,n,s,h){switch(r){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||Ii(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&Ii(e,""+n);break;case"className":El(e,"class",n);break;case"tabIndex":El(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":El(e,r,n);break;case"style":hd(e,n,h);break;case"data":if(t!=="object"){El(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(r);break}n=Tl(""+n),e.setAttribute(r,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(r,"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 h=="function"&&(r==="formAction"?(t!=="input"&&Tt(e,t,"name",s.name,s,null),Tt(e,t,"formEncType",s.formEncType,s,null),Tt(e,t,"formMethod",s.formMethod,s,null),Tt(e,t,"formTarget",s.formTarget,s,null)):(Tt(e,t,"encType",s.encType,s,null),Tt(e,t,"method",s.method,s,null),Tt(e,t,"target",s.target,s,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(r);break}n=Tl(""+n),e.setAttribute(r,n);break;case"onClick":n!=null&&(e.onclick=rn);break;case"onScroll":n!=null&&ft("scroll",e);break;case"onScrollEnd":n!=null&&ft("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(r=n.__html,r!=null){if(s.children!=null)throw Error(c(60));e.innerHTML=r}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}r=Tl(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(r,""+n):e.removeAttribute(r);break;case"inert":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":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":n===!0?e.setAttribute(r,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(r,n):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(r,n):e.removeAttribute(r);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(r):e.setAttribute(r,n);break;case"popover":ft("beforetoggle",e),ft("toggle",e),wl(e,"popover",n);break;case"xlinkActuate":tn(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":tn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":tn(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":tn(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":tn(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":tn(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":tn(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":tn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":tn(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":wl(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=e0.get(r)||r,wl(e,r,n))}}function cc(e,t,r,n,s,h){switch(r){case"style":hd(e,n,h);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(r=n.__html,r!=null){if(s.children!=null)throw Error(c(60));e.innerHTML=r}}break;case"children":typeof n=="string"?Ii(e,n):(typeof n=="number"||typeof n=="bigint")&&Ii(e,""+n);break;case"onScroll":n!=null&&ft("scroll",e);break;case"onScrollEnd":n!=null&&ft("scrollend",e);break;case"onClick":n!=null&&(e.onclick=rn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!nd.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(s=r.endsWith("Capture"),t=r.slice(2,s?r.length-7:void 0),h=e[Xt]||null,h=h!=null?h[r]:null,typeof h=="function"&&e.removeEventListener(t,h,s),typeof n=="function")){typeof h!="function"&&h!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,n,s);break e}r in e?e[r]=n:n===!0?e.setAttribute(r,""):wl(e,r,n)}}}function ar(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ft("error",e),ft("load",e);var n=!1,s=!1,h;for(h in r)if(r.hasOwnProperty(h)){var x=r[h];if(x!=null)switch(h){case"src":n=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Tt(e,t,h,x,r,null)}}s&&Tt(e,t,"srcSet",r.srcSet,r,null),n&&Tt(e,t,"src",r.src,r,null);return;case"input":ft("invalid",e);var q=h=x=s=null,oe=null,Ee=null;for(n in r)if(r.hasOwnProperty(n)){var De=r[n];if(De!=null)switch(n){case"name":s=De;break;case"type":x=De;break;case"checked":oe=De;break;case"defaultChecked":Ee=De;break;case"value":h=De;break;case"defaultValue":q=De;break;case"children":case"dangerouslySetInnerHTML":if(De!=null)throw Error(c(137,t));break;default:Tt(e,t,n,De,r,null)}}sd(e,h,q,oe,Ee,x,s,!1);return;case"select":ft("invalid",e),n=x=h=null;for(s in r)if(r.hasOwnProperty(s)&&(q=r[s],q!=null))switch(s){case"value":h=q;break;case"defaultValue":x=q;break;case"multiple":n=q;default:Tt(e,t,s,q,r,null)}t=h,r=x,e.multiple=!!n,t!=null?ki(e,!!n,t,!1):r!=null&&ki(e,!!n,r,!0);return;case"textarea":ft("invalid",e),h=s=n=null;for(x in r)if(r.hasOwnProperty(x)&&(q=r[x],q!=null))switch(x){case"value":n=q;break;case"defaultValue":s=q;break;case"children":h=q;break;case"dangerouslySetInnerHTML":if(q!=null)throw Error(c(91));break;default:Tt(e,t,x,q,r,null)}cd(e,n,s,h);return;case"option":for(oe in r)if(r.hasOwnProperty(oe)&&(n=r[oe],n!=null))switch(oe){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:Tt(e,t,oe,n,r,null)}return;case"dialog":ft("beforetoggle",e),ft("toggle",e),ft("cancel",e),ft("close",e);break;case"iframe":case"object":ft("load",e);break;case"video":case"audio":for(n=0;n<rl.length;n++)ft(rl[n],e);break;case"image":ft("error",e),ft("load",e);break;case"details":ft("toggle",e);break;case"embed":case"source":case"link":ft("error",e),ft("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Ee in r)if(r.hasOwnProperty(Ee)&&(n=r[Ee],n!=null))switch(Ee){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Tt(e,t,Ee,n,r,null)}return;default:if(As(t)){for(De in r)r.hasOwnProperty(De)&&(n=r[De],n!==void 0&&cc(e,t,De,n,r,void 0));return}}for(q in r)r.hasOwnProperty(q)&&(n=r[q],n!=null&&Tt(e,t,q,n,r,null))}function O_(e,t,r,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,h=null,x=null,q=null,oe=null,Ee=null,De=null;for(Oe in r){var qe=r[Oe];if(r.hasOwnProperty(Oe)&&qe!=null)switch(Oe){case"checked":break;case"value":break;case"defaultValue":oe=qe;default:n.hasOwnProperty(Oe)||Tt(e,t,Oe,null,n,qe)}}for(var Te in n){var Oe=n[Te];if(qe=r[Te],n.hasOwnProperty(Te)&&(Oe!=null||qe!=null))switch(Te){case"type":h=Oe;break;case"name":s=Oe;break;case"checked":Ee=Oe;break;case"defaultChecked":De=Oe;break;case"value":x=Oe;break;case"defaultValue":q=Oe;break;case"children":case"dangerouslySetInnerHTML":if(Oe!=null)throw Error(c(137,t));break;default:Oe!==qe&&Tt(e,t,Te,Oe,n,qe)}}ws(e,x,q,oe,Ee,De,h,s);return;case"select":Oe=x=q=Te=null;for(h in r)if(oe=r[h],r.hasOwnProperty(h)&&oe!=null)switch(h){case"value":break;case"multiple":Oe=oe;default:n.hasOwnProperty(h)||Tt(e,t,h,null,n,oe)}for(s in n)if(h=n[s],oe=r[s],n.hasOwnProperty(s)&&(h!=null||oe!=null))switch(s){case"value":Te=h;break;case"defaultValue":q=h;break;case"multiple":x=h;default:h!==oe&&Tt(e,t,s,h,n,oe)}t=q,r=x,n=Oe,Te!=null?ki(e,!!r,Te,!1):!!n!=!!r&&(t!=null?ki(e,!!r,t,!0):ki(e,!!r,r?[]:"",!1));return;case"textarea":Oe=Te=null;for(q in r)if(s=r[q],r.hasOwnProperty(q)&&s!=null&&!n.hasOwnProperty(q))switch(q){case"value":break;case"children":break;default:Tt(e,t,q,null,n,s)}for(x in n)if(s=n[x],h=r[x],n.hasOwnProperty(x)&&(s!=null||h!=null))switch(x){case"value":Te=s;break;case"defaultValue":Oe=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(c(91));break;default:s!==h&&Tt(e,t,x,s,n,h)}ud(e,Te,Oe);return;case"option":for(var We in r)if(Te=r[We],r.hasOwnProperty(We)&&Te!=null&&!n.hasOwnProperty(We))switch(We){case"selected":e.selected=!1;break;default:Tt(e,t,We,null,n,Te)}for(oe in n)if(Te=n[oe],Oe=r[oe],n.hasOwnProperty(oe)&&Te!==Oe&&(Te!=null||Oe!=null))switch(oe){case"selected":e.selected=Te&&typeof Te!="function"&&typeof Te!="symbol";break;default:Tt(e,t,oe,Te,n,Oe)}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 nt in r)Te=r[nt],r.hasOwnProperty(nt)&&Te!=null&&!n.hasOwnProperty(nt)&&Tt(e,t,nt,null,n,Te);for(Ee in n)if(Te=n[Ee],Oe=r[Ee],n.hasOwnProperty(Ee)&&Te!==Oe&&(Te!=null||Oe!=null))switch(Ee){case"children":case"dangerouslySetInnerHTML":if(Te!=null)throw Error(c(137,t));break;default:Tt(e,t,Ee,Te,n,Oe)}return;default:if(As(t)){for(var xt in r)Te=r[xt],r.hasOwnProperty(xt)&&Te!==void 0&&!n.hasOwnProperty(xt)&&cc(e,t,xt,void 0,n,Te);for(De in n)Te=n[De],Oe=r[De],!n.hasOwnProperty(De)||Te===Oe||Te===void 0&&Oe===void 0||cc(e,t,De,Te,n,Oe);return}}for(var ve in r)Te=r[ve],r.hasOwnProperty(ve)&&Te!=null&&!n.hasOwnProperty(ve)&&Tt(e,t,ve,null,n,Te);for(qe in n)Te=n[qe],Oe=r[qe],!n.hasOwnProperty(qe)||Te===Oe||Te==null&&Oe==null||Tt(e,t,qe,Te,n,Oe)}function dm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function j_(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,r=performance.getEntriesByType("resource"),n=0;n<r.length;n++){var s=r[n],h=s.transferSize,x=s.initiatorType,q=s.duration;if(h&&q&&dm(x)){for(x=0,q=s.responseEnd,n+=1;n<r.length;n++){var oe=r[n],Ee=oe.startTime;if(Ee>q)break;var De=oe.transferSize,qe=oe.initiatorType;De&&dm(qe)&&(oe=oe.responseEnd,x+=De*(oe<q?1:(q-Ee)/(oe-Ee)))}if(--n,t+=8*(h+x)/(s.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var fc=null,hc=null;function So(e){return e.nodeType===9?e:e.ownerDocument}function pm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ym(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function dc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var pc=null;function M_(){var e=window.event;return e&&e.type==="popstate"?e===pc?!1:(pc=e,!0):(pc=null,!1)}var mm=typeof setTimeout=="function"?setTimeout:void 0,N_=typeof clearTimeout=="function"?clearTimeout:void 0,gm=typeof Promise=="function"?Promise:void 0,C_=typeof queueMicrotask=="function"?queueMicrotask:typeof gm<"u"?function(e){return gm.resolve(null).then(e).catch(R_)}:mm;function R_(e){setTimeout(function(){throw e})}function Kn(e){return e==="head"}function bm(e,t){var r=t,n=0;do{var s=r.nextSibling;if(e.removeChild(r),s&&s.nodeType===8)if(r=s.data,r==="/$"||r==="/&"){if(n===0){e.removeChild(s),pa(t);return}n--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")n++;else if(r==="html")il(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,il(r);for(var h=r.firstChild;h;){var x=h.nextSibling,q=h.nodeName;h[fr]||q==="SCRIPT"||q==="STYLE"||q==="LINK"&&h.rel.toLowerCase()==="stylesheet"||r.removeChild(h),h=x}}else r==="body"&&il(e.ownerDocument.body);r=s}while(r);pa(t)}function vm(e,t){var r=e;e=0;do{var n=r.nextSibling;if(r.nodeType===1?t?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(t?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),n&&n.nodeType===8)if(r=n.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=n}while(r)}function yc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":yc(r),_s(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function U_(e,t,r,n){for(;e.nodeType===1;){var s=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[fr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(h=e.getAttribute("rel"),h==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(h!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var h=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=Pr(e.nextSibling),e===null)break}return null}function B_(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=Pr(e.nextSibling),e===null))return null;return e}function _m(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Pr(e.nextSibling),e===null))return null;return e}function mc(e){return e.data==="$?"||e.data==="$~"}function gc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function D_(e,t){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||r.readyState!=="loading")t();else{var n=function(){t(),r.removeEventListener("DOMContentLoaded",n)};r.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Pr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var bc=null;function Sm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(t===0)return Pr(e.nextSibling);t--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||t++}e=e.nextSibling}return null}function wm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(t===0)return e;t--}else r!=="/$"&&r!=="/&"||t++}e=e.previousSibling}return null}function Em(e,t,r){switch(t=So(r),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function il(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);_s(e)}var Gr=new Map,Am=new Set;function wo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var vn=V.d;V.d={f:k_,r:I_,D:z_,C:L_,L:q_,m:H_,X:G_,S:P_,M:Y_};function k_(){var e=vn.f(),t=ho();return e||t}function I_(e){var t=Ui(e);t!==null&&t.tag===5&&t.type==="form"?Hp(t):vn.r(e)}var fa=typeof document>"u"?null:document;function Tm(e,t,r){var n=fa;if(n&&typeof t=="string"&&t){var s=Dr(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof r=="string"&&(s+='[crossorigin="'+r+'"]'),Am.has(s)||(Am.add(s),e={rel:e,crossOrigin:r,href:t},n.querySelector(s)===null&&(t=n.createElement("link"),ar(t,"link",e),$t(t),n.head.appendChild(t)))}}function z_(e){vn.D(e),Tm("dns-prefetch",e,null)}function L_(e,t){vn.C(e,t),Tm("preconnect",e,t)}function q_(e,t,r){vn.L(e,t,r);var n=fa;if(n&&e&&t){var s='link[rel="preload"][as="'+Dr(t)+'"]';t==="image"&&r&&r.imageSrcSet?(s+='[imagesrcset="'+Dr(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(s+='[imagesizes="'+Dr(r.imageSizes)+'"]')):s+='[href="'+Dr(e)+'"]';var h=s;switch(t){case"style":h=ha(e);break;case"script":h=da(e)}Gr.has(h)||(e=b({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),Gr.set(h,e),n.querySelector(s)!==null||t==="style"&&n.querySelector(al(h))||t==="script"&&n.querySelector(ll(h))||(t=n.createElement("link"),ar(t,"link",e),$t(t),n.head.appendChild(t)))}}function H_(e,t){vn.m(e,t);var r=fa;if(r&&e){var n=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Dr(n)+'"][href="'+Dr(e)+'"]',h=s;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=da(e)}if(!Gr.has(h)&&(e=b({rel:"modulepreload",href:e},t),Gr.set(h,e),r.querySelector(s)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(ll(h)))return}n=r.createElement("link"),ar(n,"link",e),$t(n),r.head.appendChild(n)}}}function P_(e,t,r){vn.S(e,t,r);var n=fa;if(n&&e){var s=Bi(n).hoistableStyles,h=ha(e);t=t||"default";var x=s.get(h);if(!x){var q={loading:0,preload:null};if(x=n.querySelector(al(h)))q.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},r),(r=Gr.get(h))&&vc(e,r);var oe=x=n.createElement("link");$t(oe),ar(oe,"link",e),oe._p=new Promise(function(Ee,De){oe.onload=Ee,oe.onerror=De}),oe.addEventListener("load",function(){q.loading|=1}),oe.addEventListener("error",function(){q.loading|=2}),q.loading|=4,Eo(x,t,n)}x={type:"stylesheet",instance:x,count:1,state:q},s.set(h,x)}}}function G_(e,t){vn.X(e,t);var r=fa;if(r&&e){var n=Bi(r).hoistableScripts,s=da(e),h=n.get(s);h||(h=r.querySelector(ll(s)),h||(e=b({src:e,async:!0},t),(t=Gr.get(s))&&_c(e,t),h=r.createElement("script"),$t(h),ar(h,"link",e),r.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},n.set(s,h))}}function Y_(e,t){vn.M(e,t);var r=fa;if(r&&e){var n=Bi(r).hoistableScripts,s=da(e),h=n.get(s);h||(h=r.querySelector(ll(s)),h||(e=b({src:e,async:!0,type:"module"},t),(t=Gr.get(s))&&_c(e,t),h=r.createElement("script"),$t(h),ar(h,"link",e),r.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},n.set(s,h))}}function xm(e,t,r,n){var s=(s=je.current)?wo(s):null;if(!s)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=ha(r.href),r=Bi(s).hoistableStyles,n=r.get(t),n||(n={type:"style",instance:null,count:0,state:null},r.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=ha(r.href);var h=Bi(s).hoistableStyles,x=h.get(e);if(x||(s=s.ownerDocument||s,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,x),(h=s.querySelector(al(e)))&&!h._p&&(x.instance=h,x.state.loading=5),Gr.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},Gr.set(e,r),h||Q_(s,e,r,x.state))),t&&n===null)throw Error(c(528,""));return x}if(t&&n!==null)throw Error(c(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=da(r),r=Bi(s).hoistableScripts,n=r.get(t),n||(n={type:"script",instance:null,count:0,state:null},r.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function ha(e){return'href="'+Dr(e)+'"'}function al(e){return'link[rel="stylesheet"]['+e+"]"}function Om(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Q_(e,t,r,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),ar(t,"link",r),$t(t),e.head.appendChild(t))}function da(e){return'[src="'+Dr(e)+'"]'}function ll(e){return"script[async]"+e}function jm(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Dr(r.href)+'"]');if(n)return t.instance=n,$t(n),n;var s=b({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),$t(n),ar(n,"style",s),Eo(n,r.precedence,e),t.instance=n;case"stylesheet":s=ha(r.href);var h=e.querySelector(al(s));if(h)return t.state.loading|=4,t.instance=h,$t(h),h;n=Om(r),(s=Gr.get(s))&&vc(n,s),h=(e.ownerDocument||e).createElement("link"),$t(h);var x=h;return x._p=new Promise(function(q,oe){x.onload=q,x.onerror=oe}),ar(h,"link",n),t.state.loading|=4,Eo(h,r.precedence,e),t.instance=h;case"script":return h=da(r.src),(s=e.querySelector(ll(h)))?(t.instance=s,$t(s),s):(n=r,(s=Gr.get(h))&&(n=b({},r),_c(n,s)),e=e.ownerDocument||e,s=e.createElement("script"),$t(s),ar(s,"link",n),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,Eo(n,r.precedence,e));return t.instance}function Eo(e,t,r){for(var n=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=n.length?n[n.length-1]:null,h=s,x=0;x<n.length;x++){var q=n[x];if(q.dataset.precedence===t)h=q;else if(h!==s)break}h?h.parentNode.insertBefore(e,h.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function vc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function _c(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ao=null;function Mm(e,t,r){if(Ao===null){var n=new Map,s=Ao=new Map;s.set(r,n)}else s=Ao,n=s.get(r),n||(n=new Map,s.set(r,n));if(n.has(e))return n;for(n.set(e,null),r=r.getElementsByTagName(e),s=0;s<r.length;s++){var h=r[s];if(!(h[fr]||h[zt]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var x=h.getAttribute(t)||"";x=e+x;var q=n.get(x);q?q.push(h):n.set(x,[h])}}return n}function Nm(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function V_(e,t,r){if(r===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Cm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function K_(e,t,r,n){if(r.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var s=ha(n.href),h=t.querySelector(al(s));if(h){t=h._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=To.bind(e),t.then(e,e)),r.state.loading|=4,r.instance=h,$t(h);return}h=t.ownerDocument||t,n=Om(n),(s=Gr.get(s))&&vc(n,s),h=h.createElement("link"),$t(h);var x=h;x._p=new Promise(function(q,oe){x.onload=q,x.onerror=oe}),ar(h,"link",n),r.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(e.count++,r=To.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}var Sc=0;function F_(e,t){return e.stylesheets&&e.count===0&&Oo(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var n=setTimeout(function(){if(e.stylesheets&&Oo(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+t);0<e.imgBytes&&Sc===0&&(Sc=62500*j_());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Oo(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>Sc?50:800)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(s)}}:null}function To(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Oo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var xo=null;function Oo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,xo=new Map,t.forEach(W_,e),xo=null,To.call(e))}function W_(e,t){if(!(t.state.loading&4)){var r=xo.get(e);if(r)var n=r.get(null);else{r=new Map,xo.set(e,r);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<s.length;h++){var x=s[h];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(r.set(x.dataset.precedence,x),n=x)}n&&r.set(null,n)}s=t.instance,x=s.getAttribute("data-precedence"),h=r.get(x)||n,h===n&&r.set(null,s),r.set(x,s),this.count++,n=To.bind(this),s.addEventListener("load",n),s.addEventListener("error",n),h?h.parentNode.insertBefore(s,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var ol={$$typeof:O,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function X_(e,t,r,n,s,h,x,q,oe){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=cr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cr(0),this.hiddenUpdates=cr(null),this.identifierPrefix=n,this.onUncaughtError=s,this.onCaughtError=h,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=oe,this.incompleteTransitions=new Map}function Rm(e,t,r,n,s,h,x,q,oe,Ee,De,qe){return e=new X_(e,t,r,x,oe,Ee,De,qe,q),t=1,h===!0&&(t|=24),h=jr(3,null,null,t),e.current=h,h.stateNode=e,t=eu(),t.refCount++,e.pooledCache=t,t.refCount++,h.memoizedState={element:n,isDehydrated:r,cache:t},iu(h),e}function Um(e){return e?(e=Yi,e):Yi}function Bm(e,t,r,n,s,h){s=Um(s),n.context===null?n.context=s:n.pendingContext=s,n=kn(t),n.payload={element:r},h=h===void 0?null:h,h!==null&&(n.callback=h),r=In(e,n,t),r!==null&&(Er(r,e,t),La(r,e,t))}function Dm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function wc(e,t){Dm(e,t),(e=e.alternate)&&Dm(e,t)}function km(e){if(e.tag===13||e.tag===31){var t=hi(e,67108864);t!==null&&Er(t,e,67108864),wc(e,67108864)}}function Im(e){if(e.tag===13||e.tag===31){var t=Ur();t=It(t);var r=hi(e,t);r!==null&&Er(r,e,t),wc(e,t)}}var jo=!0;function Z_(e,t,r,n){var s=W.T;W.T=null;var h=V.p;try{V.p=2,Ec(e,t,r,n)}finally{V.p=h,W.T=s}}function $_(e,t,r,n){var s=W.T;W.T=null;var h=V.p;try{V.p=8,Ec(e,t,r,n)}finally{V.p=h,W.T=s}}function Ec(e,t,r,n){if(jo){var s=Ac(n);if(s===null)uc(e,t,n,Mo,r),Lm(e,n);else if(e1(s,e,t,r,n))n.stopPropagation();else if(Lm(e,n),t&4&&-1<J_.indexOf(e)){for(;s!==null;){var h=Ui(s);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var x=$e(h.pendingLanes);if(x!==0){var q=h;for(q.pendingLanes|=2,q.entangledLanes|=2;x;){var oe=1<<31-Ye(x);q.entanglements[1]|=oe,x&=~oe}Zr(h),(St&6)===0&&(co=xe()+500,tl(0))}}break;case 31:case 13:q=hi(h,2),q!==null&&Er(q,h,2),ho(),wc(h,2)}if(h=Ac(n),h===null&&uc(e,t,n,Mo,r),h===s)break;s=h}s!==null&&n.stopPropagation()}else uc(e,t,n,null,r)}}function Ac(e){return e=xs(e),Tc(e)}var Mo=null;function Tc(e){if(Mo=null,e=Ri(e),e!==null){var t=o(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=l(t),e!==null)return e;e=null}else if(r===31){if(e=u(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Mo=e,null}function zm(e){switch(e){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 2;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 8;case"message":switch(tt()){case g:return 2;case v:return 8;case E:case L:return 32;case F:return 268435456;default:return 32}default:return 32}}var xc=!1,Fn=null,Wn=null,Xn=null,sl=new Map,ul=new Map,Zn=[],J_="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(" ");function Lm(e,t){switch(e){case"focusin":case"focusout":Fn=null;break;case"dragenter":case"dragleave":Wn=null;break;case"mouseover":case"mouseout":Xn=null;break;case"pointerover":case"pointerout":sl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ul.delete(t.pointerId)}}function cl(e,t,r,n,s,h){return e===null||e.nativeEvent!==h?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:h,targetContainers:[s]},t!==null&&(t=Ui(t),t!==null&&km(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function e1(e,t,r,n,s){switch(t){case"focusin":return Fn=cl(Fn,e,t,r,n,s),!0;case"dragenter":return Wn=cl(Wn,e,t,r,n,s),!0;case"mouseover":return Xn=cl(Xn,e,t,r,n,s),!0;case"pointerover":var h=s.pointerId;return sl.set(h,cl(sl.get(h)||null,e,t,r,n,s)),!0;case"gotpointercapture":return h=s.pointerId,ul.set(h,cl(ul.get(h)||null,e,t,r,n,s)),!0}return!1}function qm(e){var t=Ri(e.target);if(t!==null){var r=o(t);if(r!==null){if(t=r.tag,t===13){if(t=l(r),t!==null){e.blockedOn=t,Mn(e.priority,function(){Im(r)});return}}else if(t===31){if(t=u(r),t!==null){e.blockedOn=t,Mn(e.priority,function(){Im(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function No(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Ac(e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Ts=n,r.target.dispatchEvent(n),Ts=null}else return t=Ui(r),t!==null&&km(t),e.blockedOn=r,!1;t.shift()}return!0}function Hm(e,t,r){No(e)&&r.delete(t)}function t1(){xc=!1,Fn!==null&&No(Fn)&&(Fn=null),Wn!==null&&No(Wn)&&(Wn=null),Xn!==null&&No(Xn)&&(Xn=null),sl.forEach(Hm),ul.forEach(Hm)}function Co(e,t){e.blockedOn===t&&(e.blockedOn=null,xc||(xc=!0,f.unstable_scheduleCallback(f.unstable_NormalPriority,t1)))}var Ro=null;function Pm(e){Ro!==e&&(Ro=e,f.unstable_scheduleCallback(f.unstable_NormalPriority,function(){Ro===e&&(Ro=null);for(var t=0;t<e.length;t+=3){var r=e[t],n=e[t+1],s=e[t+2];if(typeof n!="function"){if(Tc(n||r)===null)continue;break}var h=Ui(r);h!==null&&(e.splice(t,3),t-=3,Au(h,{pending:!0,data:s,method:r.method,action:n},n,s))}}))}function pa(e){function t(oe){return Co(oe,e)}Fn!==null&&Co(Fn,e),Wn!==null&&Co(Wn,e),Xn!==null&&Co(Xn,e),sl.forEach(t),ul.forEach(t);for(var r=0;r<Zn.length;r++){var n=Zn[r];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Zn.length&&(r=Zn[0],r.blockedOn===null);)qm(r),r.blockedOn===null&&Zn.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(n=0;n<r.length;n+=3){var s=r[n],h=r[n+1],x=s[Xt]||null;if(typeof h=="function")x||Pm(r);else if(x){var q=null;if(h&&h.hasAttribute("formAction")){if(s=h,x=h[Xt]||null)q=x.formAction;else if(Tc(s)!==null)continue}else q=x.action;typeof q=="function"?r[n+1]=q:(r.splice(n,3),n-=3),Pm(r)}}}function Gm(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(x){return s=x})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),n||setTimeout(r,20)}function r(){if(!n&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(r,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function Oc(e){this._internalRoot=e}Uo.prototype.render=Oc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var r=t.current,n=Ur();Bm(r,n,e,t,null,null)},Uo.prototype.unmount=Oc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Bm(e.current,2,null,e,null,null),ho(),t[mr]=null}};function Uo(e){this._internalRoot=e}Uo.prototype.unstable_scheduleHydration=function(e){if(e){var t=pr();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Zn.length&&t!==0&&t<Zn[r].priority;r++);Zn.splice(r,0,e),r===0&&qm(e)}};var Ym=y.version;if(Ym!=="19.2.5")throw Error(c(527,Ym,"19.2.5"));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=a(t),e=e!==null?p(e):null,e=e===null?null:e.stateNode,e};var r1={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:W,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Bo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bo.isDisabled&&Bo.supportsFiber)try{ne=Bo.inject(r1),le=Bo}catch{}}return hl.createRoot=function(e,t){if(!m(e))throw Error(c(299));var r=!1,n="",s=Zp,h=$p,x=Jp;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(h=t.onCaughtError),t.onRecoverableError!==void 0&&(x=t.onRecoverableError)),t=Rm(e,1,!1,null,null,r,n,null,s,h,x,Gm),e[mr]=t.current,sc(e),new Oc(t)},hl.hydrateRoot=function(e,t,r){if(!m(e))throw Error(c(299));var n=!1,s="",h=Zp,x=$p,q=Jp,oe=null;return r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onUncaughtError!==void 0&&(h=r.onUncaughtError),r.onCaughtError!==void 0&&(x=r.onCaughtError),r.onRecoverableError!==void 0&&(q=r.onRecoverableError),r.formState!==void 0&&(oe=r.formState)),t=Rm(e,1,!0,t,r??null,n,s,oe,h,x,q,Gm),t.context=Um(null),r=t.current,n=Ur(),n=It(n),s=kn(n),s.callback=null,In(r,s,n),r=n,t.current.lanes=r,P(t,r),Zr(t),e[mr]=t.current,sc(e),new Uo(t)},hl.version="19.2.5",hl}var tg;function y1(){if(tg)return Cc.exports;tg=1;function f(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(y){console.error(y)}}return f(),Cc.exports=p1(),Cc.exports}var m1=y1();const g1=db(m1),b1="/docs/spec.json";function v1(){const[f,y]=Je.useState(null),[d,c]=Je.useState(!0),[m,o]=Je.useState(null);return Je.useEffect(()=>{let l=!1;async function u(){try{const i=await fetch(b1);if(!i.ok)throw new Error(`Failed to fetch spec: ${i.status} ${i.statusText}`);const a=await i.json();l||y(a)}catch(i){if(!l){const a=i instanceof Error?i.message:"Unknown error while fetching spec";o(a)}}finally{l||c(!1)}}return u(),()=>{l=!0}},[]),{spec:f,loading:d,error:m}}const pb="lucy-auth",Dc={type:"none",bearer:"",apiKeyHeader:"X-API-Key",apiKey:"",basicUser:"",basicPass:""};function _1(){try{const f=localStorage.getItem(pb);return f===null?Dc:{...Dc,...JSON.parse(f)}}catch{return Dc}}function S1(f){try{localStorage.setItem(pb,JSON.stringify(f))}catch{}}const yb=Je.createContext(null);function w1({children:f}){const[y,d]=Je.useState(_1),c=Je.useCallback(m=>{S1(m),d(m)},[]);return fe.jsx(yb.Provider,{value:{auth:y,setAuth:c},children:f})}function ds(){const f=Je.useContext(yb);if(f===null)throw new Error("useAuth must be used inside <AuthProvider>");return f}function E1(f){switch(f.type){case"bearer":return f.bearer.trim()===""?{}:{Authorization:`Bearer ${f.bearer.trim()}`};case"api-key":return f.apiKeyHeader.trim()===""||f.apiKey.trim()===""?{}:{[f.apiKeyHeader.trim()]:f.apiKey.trim()};case"basic":return f.basicUser.trim()===""?{}:{Authorization:`Basic ${btoa(`${f.basicUser}:${f.basicPass}`)}`};default:return{}}}function ya(f,y,d=0){if(d>8||typeof f=="boolean")return null;if("$ref"in f&&typeof f.$ref=="string"){const o=f.$ref;if(o.startsWith("#/definitions/")){const l=o.replace("#/definitions/",""),u=y==null?void 0:y[l];if(u)return ya(u,y,d+1)}return null}const c=f.oneOf??f.anyOf;if(Array.isArray(c)&&c.length>0)return ya(c[0],y,d+1);if(Array.isArray(f.allOf)){const o={};for(const l of f.allOf){const u=ya(l,y,d+1);u!==null&&typeof u=="object"&&!Array.isArray(u)&&Object.assign(o,u)}return o}const m=f.type;if(m==="object"||!m&&"properties"in f){const o=f.properties;if(!o)return{};const l={};for(const[u,i]of Object.entries(o))l[u]=ya(i,y,d+1);return l}if(m==="array"){const o=f.items;return o?[ya(o,y,d+1)]:[]}if(Array.isArray(f.enum)&&f.enum.length>0)return f.enum[0];if("default"in f)return f.default;if("example"in f)return f.example;if("const"in f)return f.const;switch(m){case"string":return"";case"integer":case"number":return 0;case"boolean":return!1;case"null":return null;default:return null}}function mb(f){const y=typeof f=="object"&&f!==null?f.definitions:void 0,d=ya(f,y);return JSON.stringify(d,null,2)}function gb({schema:f,label:y}){const[d,c]=Je.useState("example"),m=Je.useMemo(()=>mb(f),[f]),o=Je.useMemo(()=>JSON.stringify(f,null,2),[f]),l=f.title;return fe.jsxs("div",{className:"schema-viewer",children:[fe.jsxs("div",{className:"schema-viewer__header",children:[fe.jsxs("span",{className:"schema-viewer__label",children:[y,l!==void 0?`: ${l}`:""]}),fe.jsxs("div",{className:"schema-viewer__tabs",role:"tablist",children:[fe.jsx("button",{role:"tab","aria-selected":d==="example",className:`schema-tab${d==="example"?" schema-tab--active":""}`,onClick:()=>c("example"),children:"Example Value"}),fe.jsx("button",{role:"tab","aria-selected":d==="schema",className:`schema-tab${d==="schema"?" schema-tab--active":""}`,onClick:()=>c("schema"),children:"Schema"})]})]}),fe.jsx("pre",{className:"schema-viewer__code",children:fe.jsx("code",{children:d==="example"?m:o})})]})}const A1=new Set(["POST","PUT","PATCH","DELETE"]);function T1(f){return[...f.matchAll(/\{([^}]+)\}/g)].map(y=>y[1]??"")}function x1(f,y){return f.replace(/\{([^}]+)\}/g,(d,c)=>encodeURIComponent(y[c]??""))}function O1(f){try{return JSON.stringify(JSON.parse(f),null,2)}catch{return f}}function j1(f){return f>=200&&f<300?"ok":f>=300&&f<500?"warn":"error"}function M1(f){const y=f.path.split("/").filter(Boolean),d=y[y.length-1]??"resource";return JSON.stringify({_note:`Example body for ${f.name} — update with actual fields`,...d&&!d.startsWith("{")?{[d]:""}:{}},null,2)}function N1(f,y,d,c){const m=`${window.location.origin}${y}`,o=[`curl -X ${f}`];for(const[l,u]of Object.entries(d))o.push(`  -H '${l}: ${u}'`);return c!==void 0&&c.trim()!==""&&o.push(`  -d '${c.replace(/'/g,"\\'")}'`),o.push(`  '${m}'`),o.join(` \\
`)}function rg({label:f,htmlFor:y,children:d}){return fe.jsxs("div",{className:"form-group",children:[fe.jsx("label",{className:"form-label",htmlFor:y,children:f}),d]})}function C1({curlCommand:f}){const[y,d]=Je.useState(!1);function c(){navigator.clipboard.writeText(f).then(()=>{d(!0),setTimeout(()=>d(!1),2e3)}).catch(()=>{})}return fe.jsxs("div",{className:"curl-display",children:[fe.jsxs("div",{className:"curl-display__header",children:[fe.jsx("span",{className:"curl-display__label",children:"cURL"}),fe.jsx("button",{className:"curl-display__copy",onClick:c,"aria-label":"Copy cURL command to clipboard",children:y?"Copied!":"Copy"})]}),fe.jsx("pre",{className:"curl-display__code",children:f})]})}function R1({endpoint:f}){const y=Je.useId(),d=(f.method??"GET").toUpperCase(),c=T1(f.path),m=A1.has(d),{auth:o}=ds(),[l,u]=Je.useState(!1),[i,a]=Je.useState(Object.fromEntries(c.map(R=>[R,""]))),[p,b]=Je.useState(()=>m&&f.request_schema?mb(f.request_schema):m?M1(f):""),[_,w]=Je.useState(!1),[A,M]=Je.useState(null),[j,C]=Je.useState(null);function S(R,Y){a(B=>({...B,[R]:Y}))}const O=x1(f.path,i),T={"Content-Type":"application/json",...E1(o)},H=N1(d,O,T,m?p:void 0);async function D(){w(!0),M(null),C(null);const R=performance.now();try{const Y={method:d,headers:T};m&&p.trim()&&(Y.body=p);const B=await fetch(O,Y),te=Math.round(performance.now()-R),ae=await B.text();M({status:B.status,statusText:B.statusText,body:O1(ae),latencyMs:te})}catch(Y){const B=Y instanceof Error?Y.message:"Network error";C(B)}finally{w(!1)}}const k=`http-card-header-${y}`,z=`http-card-body-${y}`;return fe.jsxs("li",{className:"endpoint-card",children:[fe.jsxs("button",{id:k,className:"endpoint-card__toggle","aria-expanded":l,"aria-controls":z,onClick:()=>u(R=>!R),children:[fe.jsx("span",{className:`method-badge method-badge--${d.toLowerCase()}`,children:d}),fe.jsx("code",{className:"endpoint-card__path",children:f.path}),f.description!==void 0&&fe.jsx("span",{className:"endpoint-card__summary",children:f.description}),fe.jsx("span",{className:`endpoint-card__chevron${l?" endpoint-card__chevron--open":""}`,"aria-hidden":"true",children:"›"})]}),l&&fe.jsxs("div",{id:z,className:"endpoint-card__body",role:"region","aria-labelledby":k,children:[c.length>0&&fe.jsxs("section",{className:"form-section",children:[fe.jsx("h3",{className:"form-section__title",children:fe.jsx("span",{className:"form-section__badge",children:"Path Parameters"})}),c.map(R=>fe.jsx(rg,{label:R,htmlFor:`${y}-param-${R}`,children:fe.jsx("input",{id:`${y}-param-${R}`,className:"form-input",type:"text",placeholder:R,value:i[R]??"",onChange:Y=>S(R,Y.target.value)})},R))]}),o.type!=="none"&&fe.jsxs("section",{className:"form-section",children:[fe.jsx("h3",{className:"form-section__title",children:fe.jsx("span",{className:"form-section__badge",children:"Authorization"})}),fe.jsxs("p",{className:"auth-info-label",children:["Using global auth: ",fe.jsx("strong",{children:o.type}),o.type==="api-key"&&o.apiKeyHeader?` (${o.apiKeyHeader})`:""]})]}),m&&fe.jsxs("section",{className:"form-section",children:[fe.jsx("h3",{className:"form-section__title",children:fe.jsx("span",{className:"form-section__badge",children:"Request Body"})}),fe.jsx(rg,{label:"JSON",htmlFor:`${y}-body`,children:fe.jsx("textarea",{id:`${y}-body`,className:"form-textarea",placeholder:`{
  
}`,rows:6,value:p,onChange:R=>b(R.target.value),spellCheck:!1})})]}),fe.jsx("div",{className:"form-section",children:fe.jsx("button",{className:"btn btn--primary",onClick:()=>void D(),disabled:_,"aria-busy":_,children:_?"Executing…":"Execute"})}),fe.jsx(C1,{curlCommand:H}),j!==null&&fe.jsx("div",{className:"response-panel response-panel--error",role:"alert",children:fe.jsx("p",{children:j})}),A!==null&&fe.jsxs("div",{className:"response-panel",children:[fe.jsxs("div",{className:"response-panel__meta",children:[fe.jsxs("span",{className:`status-badge status-badge--${j1(A.status)}`,children:[A.status," ",A.statusText]}),fe.jsxs("span",{className:"response-latency",children:[A.latencyMs," ms"]})]}),fe.jsx("pre",{className:"response-body",children:fe.jsx("code",{children:A.body})})]}),A!==null&&f.response_schema&&fe.jsx("section",{className:"form-section",children:fe.jsx(gb,{schema:f.response_schema,label:"Response"})})]})]})}function Hh(f){var d;const y=new Map;for(const c of f){const m=((d=c.tags)==null?void 0:d[0])??"default",o=y.get(m)??[];o.push(c),y.set(m,o)}return y}function U1({tag:f,endpoints:y}){const[d,c]=Je.useState(!0);return fe.jsxs("section",{className:"endpoint-group",children:[fe.jsxs("button",{className:["endpoint-group__header",d?"endpoint-group__header--open":""].filter(Boolean).join(" "),"aria-expanded":d,onClick:()=>c(m=>!m),children:[fe.jsx("span",{className:"endpoint-group__tag",children:f}),fe.jsx("span",{className:"endpoint-group__count",children:y.length}),fe.jsx("span",{className:"endpoint-group__chevron","aria-hidden":"true",children:"▼"})]}),d&&fe.jsx("div",{className:"endpoint-group__body",children:fe.jsx("ul",{className:"endpoint-list",children:y.map(m=>fe.jsx(R1,{endpoint:m},`${m.method??"GET"}-${m.path}`))})})]})}function B1({endpoints:f}){if(f.length===0)return fe.jsx("p",{className:"panel-empty",children:"No HTTP endpoints defined in the spec."});const y=Hh(f);return fe.jsx("div",{children:[...y.entries()].map(([d,c])=>fe.jsx(U1,{tag:d,endpoints:c},d))})}let D1=0;function k1(){const f=new Date,y=String(f.getHours()).padStart(2,"0"),d=String(f.getMinutes()).padStart(2,"0"),c=String(f.getSeconds()).padStart(2,"0");return`${y}:${d}:${c}`}function I1(f){switch(f){case 1e3:return"Normal closure";case 1001:return"Endpoint going away";case 1002:return"Protocol error";case 1003:return"Unsupported data type";case 1005:return"No status received";case 1006:return"Connection lost (abnormal)";case 1007:return"Invalid data";case 1008:return"Policy violation (check auth)";case 1009:return"Message too large";case 1010:return"Extension negotiation failed";case 1011:return"Internal server error";case 1012:return"Service restart";case 1013:return"Try again later";case 1015:return"TLS handshake failed";case 4e3:return"Unauthorized";case 4001:return"Authentication failed";case 4003:return"Forbidden";default:return`Unknown (${f})`}}function z1(){const[f,y]=Je.useState("disconnected"),[d,c]=Je.useState([]),[m,o]=Je.useState(null),l=Je.useRef(null),u=Je.useCallback((_,w)=>{const A={id:++D1,direction:_,payload:w,timestamp:k1()};c(M=>[...M.slice(-199),A])},[]),i=Je.useCallback(_=>{l.current!==null&&(l.current.onclose=null,l.current.close(),l.current=null),y("connecting"),o(null);let w;try{w=new WebSocket(_)}catch(A){console.error("[useWebSocket] failed to create WebSocket:",A),y("error"),o({code:0,reason:A instanceof Error?A.message:"Invalid WebSocket URL"});return}l.current=w,w.onopen=()=>{y("connected"),o(null)},w.onmessage=A=>{u("in",String(A.data))},w.onerror=()=>{},w.onclose=A=>{l.current=null;const M=A.reason.trim()!==""?A.reason:I1(A.code);A.code===1e3||A.code===1001?(y("disconnected"),o(null)):(y("error"),o({code:A.code,reason:M}))}},[u]),a=Je.useCallback(()=>{l.current!==null&&(l.current.onclose=null,l.current.close(1e3,"User disconnected"),l.current=null),y("disconnected"),o(null)},[]),p=Je.useCallback(_=>{var w;((w=l.current)==null?void 0:w.readyState)===WebSocket.OPEN&&(l.current.send(_),u("out",_))},[u]),b=Je.useCallback(()=>{c([])},[]);return{status:f,messages:d,lastClose:m,connect:i,disconnect:a,send:p,clearMessages:b}}function L1(f){return[...f.matchAll(/\{([^}]+)\}/g)].map(y=>y[1]??"")}function q1(f,y){return f.replace(/\{([^}]+)\}/g,(d,c)=>encodeURIComponent(y[c]??""))}function H1(f,y){const c=`${location.protocol==="https:"?"wss:":"ws:"}//${location.host}${f}`;if(y&&y.trim()!==""){const m=f.includes("?")?"&":"?";return`${c}${m}token=${encodeURIComponent(y.trim())}`}return c}function P1({endpoint:f}){const y=Je.useId(),d=L1(f.path),{auth:c}=ds(),[m,o]=Je.useState(!1),[l,u]=Je.useState(Object.fromEntries(d.map(R=>[R,""]))),[i,a]=Je.useState(""),{status:p,messages:b,lastClose:_,connect:w,disconnect:A,send:M,clearMessages:j}=z1(),C=Je.useRef(null);Je.useEffect(()=>{var R;(R=C.current)==null||R.scrollIntoView({behavior:"smooth"})},[b]);function S(R,Y){u(B=>({...B,[R]:Y}))}function O(){const R=q1(f.path,l),Y=c.type==="bearer"?c.bearer:void 0,B=H1(R,Y);w(B)}function N(){i.trim()!==""&&(M(i),a(""))}function T(R){R.key==="Enter"&&(R.ctrlKey||R.metaKey)&&N()}const H=p==="connected",D=p==="connecting",k=`ws-card-header-${y}`,z=`ws-card-body-${y}`;return fe.jsxs("li",{className:"endpoint-card",children:[fe.jsxs("button",{id:k,className:"endpoint-card__toggle","aria-expanded":m,"aria-controls":z,onClick:()=>o(R=>!R),children:[fe.jsx("span",{className:"method-badge method-badge--ws",children:"WS"}),fe.jsx("code",{className:"endpoint-card__path",children:f.path}),f.description!==void 0&&fe.jsx("span",{className:"endpoint-card__summary",children:f.description}),fe.jsx("span",{className:`status-dot status-dot--${H?"connected":"disconnected"}`,"aria-label":H?"Connected":"Disconnected"}),fe.jsx("span",{className:`endpoint-card__chevron${m?" endpoint-card__chevron--open":""}`,"aria-hidden":"true",children:"›"})]}),m&&fe.jsxs("div",{id:z,className:"endpoint-card__body",role:"region","aria-labelledby":k,children:[d.length>0&&fe.jsxs("section",{className:"form-section",children:[fe.jsx("h3",{className:"form-section__title",children:fe.jsx("span",{className:"form-section__badge",children:"Path Parameters"})}),d.map(R=>fe.jsxs("div",{className:"form-group",children:[fe.jsx("label",{className:"form-label",htmlFor:`${y}-ws-param-${R}`,children:R}),fe.jsx("input",{id:`${y}-ws-param-${R}`,className:"form-input",type:"text",placeholder:R,value:l[R]??"",onChange:Y=>S(R,Y.target.value),disabled:H||D})]},R))]}),c.type==="bearer"&&fe.jsxs("section",{className:"form-section",children:[fe.jsx("h3",{className:"form-section__title",children:fe.jsx("span",{className:"form-section__badge",children:"Authorization"})}),fe.jsxs("p",{className:"auth-info-label",children:["Bearer token will be appended as ",fe.jsx("code",{children:"?token="})," query parameter."]})]}),fe.jsx("div",{className:"form-section form-section--inline",children:!H&&p!=="connecting"?fe.jsx("button",{className:"btn btn--connect",onClick:O,children:p==="error"?"Retry":"Connect"}):D?fe.jsx("button",{className:"btn btn--connect",disabled:!0,"aria-busy":!0,children:"Connecting…"}):fe.jsx("button",{className:"btn btn--danger",onClick:A,children:"Disconnect"})}),p==="error"&&_!==null&&fe.jsxs("div",{className:"response-panel response-panel--error",role:"alert",children:[fe.jsxs("strong",{children:["Close ",_.code]})," — ",_.reason]}),fe.jsxs("section",{className:"form-section",children:[fe.jsx("h3",{className:"form-section__title",children:fe.jsx("span",{className:"form-section__badge",children:"Message Body"})}),fe.jsx("textarea",{className:"form-textarea",rows:5,placeholder:`{
  "type": "ping"
}`,value:i,onChange:R=>a(R.target.value),onKeyDown:T,disabled:!H,spellCheck:!1,"aria-label":"Message payload"}),fe.jsx("div",{className:"form-section form-section--actions",children:fe.jsx("button",{className:"btn btn--primary",onClick:N,disabled:!H||i.trim()==="",children:"Send"})})]}),fe.jsxs("section",{className:"form-section",children:[fe.jsxs("div",{className:"form-section__row",children:[fe.jsx("h3",{className:"form-section__title",children:fe.jsx("span",{className:"form-section__badge",children:"Message Log"})}),fe.jsx("button",{className:"btn btn--ghost",onClick:j,disabled:b.length===0,children:"Clear"})]}),fe.jsxs("div",{className:"message-log","aria-live":"polite","aria-label":"WebSocket message log",children:[b.length===0?fe.jsx("p",{className:"message-log__empty",children:"No messages yet."}):b.map(R=>fe.jsxs("div",{className:`message-log__item message-log__item--${R.direction}`,children:[fe.jsx("span",{className:"message-log__time",children:R.timestamp}),fe.jsx("span",{className:"message-log__direction","aria-hidden":"true",children:R.direction==="in"?"←":"→"}),fe.jsx("span",{className:"message-log__payload",children:R.payload})]},R.id)),fe.jsx("div",{ref:C})]})]})]})]})}function G1({tag:f,endpoints:y}){const[d,c]=Je.useState(!0);return fe.jsxs("section",{className:"endpoint-group",children:[fe.jsxs("button",{className:["endpoint-group__header",d?"endpoint-group__header--open":""].filter(Boolean).join(" "),"aria-expanded":d,onClick:()=>c(m=>!m),children:[fe.jsx("span",{className:"endpoint-group__tag",children:f}),fe.jsx("span",{className:"endpoint-group__count",children:y.length}),fe.jsx("span",{className:"endpoint-group__chevron","aria-hidden":"true",children:"▼"})]}),d&&fe.jsx("div",{className:"endpoint-group__body",children:fe.jsx("ul",{className:"endpoint-list",children:y.map(m=>fe.jsx(P1,{endpoint:m},m.path))})})]})}function Y1({endpoints:f}){if(f.length===0)return fe.jsx("p",{className:"panel-empty",children:"No WebSocket endpoints defined in the spec."});const y=Hh(f);return fe.jsx("div",{children:[...y.entries()].map(([d,c])=>fe.jsx(G1,{tag:d,endpoints:c},d))})}var Ph=Object.defineProperty,Q1=Object.getOwnPropertyDescriptor,V1=Object.getOwnPropertyNames,K1=Object.prototype.hasOwnProperty,Tr=(f,y)=>()=>(f&&(y=f(f=0)),y),Ie=(f,y)=>()=>(y||f((y={exports:{}}).exports,y),y.exports),va=(f,y)=>{for(var d in y)Ph(f,d,{get:y[d],enumerable:!0})},F1=(f,y,d,c)=>{if(y&&typeof y=="object"||typeof y=="function")for(let m of V1(y))!K1.call(f,m)&&m!==d&&Ph(f,m,{get:()=>y[m],enumerable:!(c=Q1(y,m))||c.enumerable});return f},Ot=f=>F1(Ph({},"__esModule",{value:!0}),f),Ne=Tr(()=>{}),_t={};va(_t,{_debugEnd:()=>vf,_debugProcess:()=>bf,_events:()=>Bf,_eventsCount:()=>Df,_exiting:()=>nf,_fatalExceptions:()=>yf,_getActiveHandles:()=>Ab,_getActiveRequests:()=>Eb,_kill:()=>of,_linkedBinding:()=>Sb,_maxListeners:()=>Uf,_preload_modules:()=>Cf,_rawDebug:()=>ef,_startProfilerIdleNotifier:()=>_f,_stopProfilerIdleNotifier:()=>Sf,_tickCallback:()=>gf,abort:()=>Tf,addListener:()=>kf,allowedNodeEnvironmentFlags:()=>df,arch:()=>qc,argv:()=>Gc,argv0:()=>Nf,assert:()=>Tb,binding:()=>Fc,browser:()=>Jc,chdir:()=>Zc,config:()=>af,cpuUsage:()=>dl,cwd:()=>Xc,debugPort:()=>Mf,default:()=>Yh,dlopen:()=>wb,domain:()=>rf,emit:()=>Hf,emitWarning:()=>Kc,env:()=>Pc,execArgv:()=>Yc,execPath:()=>jf,exit:()=>ff,features:()=>pf,hasUncaughtExceptionCaptureCallback:()=>xb,hrtime:()=>zo,kill:()=>cf,listeners:()=>jb,memoryUsage:()=>uf,moduleLoadList:()=>tf,nextTick:()=>vb,off:()=>zf,on:()=>_n,once:()=>If,openStdin:()=>hf,pid:()=>xf,platform:()=>Hc,ppid:()=>Of,prependListener:()=>Pf,prependOnceListener:()=>Gf,reallyExit:()=>lf,release:()=>$c,removeAllListeners:()=>qf,removeListener:()=>Lf,resourceUsage:()=>sf,setSourceMapsEnabled:()=>Rf,setUncaughtExceptionCaptureCallback:()=>mf,stderr:()=>Ef,stdin:()=>Af,stdout:()=>wf,title:()=>Lc,umask:()=>Wc,uptime:()=>Ob,version:()=>Qc,versions:()=>Vc});function Gh(f){throw new Error("Node.js process "+f+" is not supported by JSPM core outside of Node.js")}function W1(){!Oi||!Ti||(Oi=!1,Ti.length?$r=Ti.concat($r):gl=-1,$r.length&&bb())}function bb(){if(!Oi){var f=setTimeout(W1,0);Oi=!0;for(var y=$r.length;y;){for(Ti=$r,$r=[];++gl<y;)Ti&&Ti[gl].run();gl=-1,y=$r.length}Ti=null,Oi=!1,clearTimeout(f)}}function vb(f){var y=new Array(arguments.length-1);if(arguments.length>1)for(var d=1;d<arguments.length;d++)y[d-1]=arguments[d];$r.push(new _b(f,y)),$r.length===1&&!Oi&&setTimeout(bb,0)}function _b(f,y){this.fun=f,this.array=y}function or(){}function Sb(f){Gh("_linkedBinding")}function wb(f){Gh("dlopen")}function Eb(){return[]}function Ab(){return[]}function Tb(f,y){if(!f)throw new Error(y||"assertion error")}function xb(){return!1}function Ob(){return wn.now()/1e3}function zo(f){var y=Math.floor((Date.now()-wn.now())*.001),d=wn.now()*.001,c=Math.floor(d)+y,m=Math.floor(d%1*1e9);return f&&(c=c-f[0],m=m-f[1],m<0&&(c--,m+=Lo)),[c,m]}function _n(){return Yh}function jb(f){return[]}var $r,Oi,Ti,gl,Lc,qc,Hc,Pc,Gc,Yc,Qc,Vc,Kc,Fc,Wc,Xc,Zc,$c,Jc,ef,tf,rf,nf,af,lf,of,dl,sf,uf,cf,ff,hf,df,pf,yf,mf,gf,bf,vf,_f,Sf,wf,Ef,Af,Tf,xf,Of,jf,Mf,Nf,Cf,Rf,wn,kc,Lo,Uf,Bf,Df,kf,If,zf,Lf,qf,Hf,Pf,Gf,Yh,X1=Tr(()=>{Ne(),Re(),Ce(),$r=[],Oi=!1,gl=-1,_b.prototype.run=function(){this.fun.apply(null,this.array)},Lc="browser",qc="x64",Hc="browser",Pc={PATH:"/usr/bin",LANG:typeof navigator<"u"?navigator.language+".UTF-8":void 0,PWD:"/",HOME:"/home",TMP:"/tmp"},Gc=["/usr/bin/node"],Yc=[],Qc="v16.8.0",Vc={},Kc=function(f,y){console.warn((y?y+": ":"")+f)},Fc=function(f){Gh("binding")},Wc=function(f){return 0},Xc=function(){return"/"},Zc=function(f){},$c={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},Jc=!0,ef=or,tf=[],rf={},nf=!1,af={},lf=or,of=or,dl=function(){return{}},sf=dl,uf=dl,cf=or,ff=or,hf=or,df={},pf={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},yf=or,mf=or,gf=or,bf=or,vf=or,_f=or,Sf=or,wf=void 0,Ef=void 0,Af=void 0,Tf=or,xf=2,Of=1,jf="/bin/usr/node",Mf=9229,Nf="node",Cf=[],Rf=or,wn={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},wn.now===void 0&&(kc=Date.now(),wn.timing&&wn.timing.navigationStart&&(kc=wn.timing.navigationStart),wn.now=()=>Date.now()-kc),Lo=1e9,zo.bigint=function(f){var y=zo(f);return typeof BigInt>"u"?y[0]*Lo+y[1]:BigInt(y[0]*Lo)+BigInt(y[1])},Uf=10,Bf={},Df=0,kf=_n,If=_n,zf=_n,Lf=_n,qf=_n,Hf=or,Pf=_n,Gf=_n,Yh={version:Qc,versions:Vc,arch:qc,platform:Hc,browser:Jc,release:$c,_rawDebug:ef,moduleLoadList:tf,binding:Fc,_linkedBinding:Sb,_events:Bf,_eventsCount:Df,_maxListeners:Uf,on:_n,addListener:kf,once:If,off:zf,removeListener:Lf,removeAllListeners:qf,emit:Hf,prependListener:Pf,prependOnceListener:Gf,listeners:jb,domain:rf,_exiting:nf,config:af,dlopen:wb,uptime:Ob,_getActiveRequests:Eb,_getActiveHandles:Ab,reallyExit:lf,_kill:of,cpuUsage:dl,resourceUsage:sf,memoryUsage:uf,kill:cf,exit:ff,openStdin:hf,allowedNodeEnvironmentFlags:df,assert:Tb,features:pf,_fatalExceptions:yf,setUncaughtExceptionCaptureCallback:mf,hasUncaughtExceptionCaptureCallback:xb,emitWarning:Kc,nextTick:vb,_tickCallback:gf,_debugProcess:bf,_debugEnd:vf,_startProfilerIdleNotifier:_f,_stopProfilerIdleNotifier:Sf,stdout:wf,stdin:Af,stderr:Ef,abort:Tf,umask:Wc,chdir:Zc,cwd:Xc,env:Pc,title:Lc,argv:Gc,execArgv:Yc,pid:xf,ppid:Of,execPath:jf,debugPort:Mf,hrtime:zo,argv0:Nf,_preload_modules:Cf,setSourceMapsEnabled:Rf}}),Ce=Tr(()=>{X1()});function Z1(){if(Yf)return ma;Yf=!0,ma.byteLength=u,ma.toByteArray=a,ma.fromByteArray=_;for(var f=[],y=[],d=typeof Uint8Array<"u"?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,o=c.length;m<o;++m)f[m]=c[m],y[c.charCodeAt(m)]=m;y[45]=62,y[95]=63;function l(w){var A=w.length;if(A%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var M=w.indexOf("=");M===-1&&(M=A);var j=M===A?0:4-M%4;return[M,j]}function u(w){var A=l(w),M=A[0],j=A[1];return(M+j)*3/4-j}function i(w,A,M){return(A+M)*3/4-M}function a(w){var A,M=l(w),j=M[0],C=M[1],S=new d(i(w,j,C)),O=0,N=C>0?j-4:j,T;for(T=0;T<N;T+=4)A=y[w.charCodeAt(T)]<<18|y[w.charCodeAt(T+1)]<<12|y[w.charCodeAt(T+2)]<<6|y[w.charCodeAt(T+3)],S[O++]=A>>16&255,S[O++]=A>>8&255,S[O++]=A&255;return C===2&&(A=y[w.charCodeAt(T)]<<2|y[w.charCodeAt(T+1)]>>4,S[O++]=A&255),C===1&&(A=y[w.charCodeAt(T)]<<10|y[w.charCodeAt(T+1)]<<4|y[w.charCodeAt(T+2)]>>2,S[O++]=A>>8&255,S[O++]=A&255),S}function p(w){return f[w>>18&63]+f[w>>12&63]+f[w>>6&63]+f[w&63]}function b(w,A,M){for(var j,C=[],S=A;S<M;S+=3)j=(w[S]<<16&16711680)+(w[S+1]<<8&65280)+(w[S+2]&255),C.push(p(j));return C.join("")}function _(w){for(var A,M=w.length,j=M%3,C=[],S=16383,O=0,N=M-j;O<N;O+=S)C.push(b(w,O,O+S>N?N:O+S));return j===1?(A=w[M-1],C.push(f[A>>2]+f[A<<4&63]+"==")):j===2&&(A=(w[M-2]<<8)+w[M-1],C.push(f[A>>10]+f[A>>4&63]+f[A<<2&63]+"=")),C.join("")}return ma}function $1(){return Qf?pl:(Qf=!0,pl.read=function(f,y,d,c,m){var o,l,u=m*8-c-1,i=(1<<u)-1,a=i>>1,p=-7,b=d?m-1:0,_=d?-1:1,w=f[y+b];for(b+=_,o=w&(1<<-p)-1,w>>=-p,p+=u;p>0;o=o*256+f[y+b],b+=_,p-=8);for(l=o&(1<<-p)-1,o>>=-p,p+=c;p>0;l=l*256+f[y+b],b+=_,p-=8);if(o===0)o=1-a;else{if(o===i)return l?NaN:(w?-1:1)*(1/0);l=l+Math.pow(2,c),o=o-a}return(w?-1:1)*l*Math.pow(2,o-c)},pl.write=function(f,y,d,c,m,o){var l,u,i,a=o*8-m-1,p=(1<<a)-1,b=p>>1,_=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=c?0:o-1,A=c?1:-1,M=y<0||y===0&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===1/0?(u=isNaN(y)?1:0,l=p):(l=Math.floor(Math.log(y)/Math.LN2),y*(i=Math.pow(2,-l))<1&&(l--,i*=2),l+b>=1?y+=_/i:y+=_*Math.pow(2,1-b),y*i>=2&&(l++,i/=2),l+b>=p?(u=0,l=p):l+b>=1?(u=(y*i-1)*Math.pow(2,m),l=l+b):(u=y*Math.pow(2,b-1)*Math.pow(2,m),l=0));m>=8;f[d+w]=u&255,w+=A,u/=256,m-=8);for(l=l<<m|u,a+=m;a>0;f[d+w]=l&255,w+=A,l/=256,a-=8);f[d+w-A]|=M*128},pl)}function J1(){if(Vf)return ei;Vf=!0;let f=Z1(),y=$1(),d=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ei.Buffer=l,ei.SlowBuffer=C,ei.INSPECT_MAX_BYTES=50;let c=2147483647;ei.kMaxLength=c,l.TYPED_ARRAY_SUPPORT=m(),!l.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function m(){try{let g=new Uint8Array(1),v={foo:function(){return 42}};return Object.setPrototypeOf(v,Uint8Array.prototype),Object.setPrototypeOf(g,v),g.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function o(g){if(g>c)throw new RangeError('The value "'+g+'" is invalid for option "size"');let v=new Uint8Array(g);return Object.setPrototypeOf(v,l.prototype),v}function l(g,v,E){if(typeof g=="number"){if(typeof v=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(g)}return u(g,v,E)}l.poolSize=8192;function u(g,v,E){if(typeof g=="string")return b(g,v);if(ArrayBuffer.isView(g))return w(g);if(g==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof g);if(he(g,ArrayBuffer)||g&&he(g.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(he(g,SharedArrayBuffer)||g&&he(g.buffer,SharedArrayBuffer)))return A(g,v,E);if(typeof g=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let L=g.valueOf&&g.valueOf();if(L!=null&&L!==g)return l.from(L,v,E);let F=M(g);if(F)return F;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof g[Symbol.toPrimitive]=="function")return l.from(g[Symbol.toPrimitive]("string"),v,E);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof g)}l.from=function(g,v,E){return u(g,v,E)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array);function i(g){if(typeof g!="number")throw new TypeError('"size" argument must be of type number');if(g<0)throw new RangeError('The value "'+g+'" is invalid for option "size"')}function a(g,v,E){return i(g),g<=0?o(g):v!==void 0?typeof E=="string"?o(g).fill(v,E):o(g).fill(v):o(g)}l.alloc=function(g,v,E){return a(g,v,E)};function p(g){return i(g),o(g<0?0:j(g)|0)}l.allocUnsafe=function(g){return p(g)},l.allocUnsafeSlow=function(g){return p(g)};function b(g,v){if((typeof v!="string"||v==="")&&(v="utf8"),!l.isEncoding(v))throw new TypeError("Unknown encoding: "+v);let E=S(g,v)|0,L=o(E),F=L.write(g,v);return F!==E&&(L=L.slice(0,F)),L}function _(g){let v=g.length<0?0:j(g.length)|0,E=o(v);for(let L=0;L<v;L+=1)E[L]=g[L]&255;return E}function w(g){if(he(g,Uint8Array)){let v=new Uint8Array(g);return A(v.buffer,v.byteOffset,v.byteLength)}return _(g)}function A(g,v,E){if(v<0||g.byteLength<v)throw new RangeError('"offset" is outside of buffer bounds');if(g.byteLength<v+(E||0))throw new RangeError('"length" is outside of buffer bounds');let L;return v===void 0&&E===void 0?L=new Uint8Array(g):E===void 0?L=new Uint8Array(g,v):L=new Uint8Array(g,v,E),Object.setPrototypeOf(L,l.prototype),L}function M(g){if(l.isBuffer(g)){let v=j(g.length)|0,E=o(v);return E.length===0||g.copy(E,0,0,v),E}if(g.length!==void 0)return typeof g.length!="number"||ke(g.length)?o(0):_(g);if(g.type==="Buffer"&&Array.isArray(g.data))return _(g.data)}function j(g){if(g>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return g|0}function C(g){return+g!=g&&(g=0),l.alloc(+g)}l.isBuffer=function(g){return g!=null&&g._isBuffer===!0&&g!==l.prototype},l.compare=function(g,v){if(he(g,Uint8Array)&&(g=l.from(g,g.offset,g.byteLength)),he(v,Uint8Array)&&(v=l.from(v,v.offset,v.byteLength)),!l.isBuffer(g)||!l.isBuffer(v))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(g===v)return 0;let E=g.length,L=v.length;for(let F=0,se=Math.min(E,L);F<se;++F)if(g[F]!==v[F]){E=g[F],L=v[F];break}return E<L?-1:L<E?1:0},l.isEncoding=function(g){switch(String(g).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}},l.concat=function(g,v){if(!Array.isArray(g))throw new TypeError('"list" argument must be an Array of Buffers');if(g.length===0)return l.alloc(0);let E;if(v===void 0)for(v=0,E=0;E<g.length;++E)v+=g[E].length;let L=l.allocUnsafe(v),F=0;for(E=0;E<g.length;++E){let se=g[E];if(he(se,Uint8Array))F+se.length>L.length?(l.isBuffer(se)||(se=l.from(se)),se.copy(L,F)):Uint8Array.prototype.set.call(L,se,F);else if(l.isBuffer(se))se.copy(L,F);else throw new TypeError('"list" argument must be an Array of Buffers');F+=se.length}return L};function S(g,v){if(l.isBuffer(g))return g.length;if(ArrayBuffer.isView(g)||he(g,ArrayBuffer))return g.byteLength;if(typeof g!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof g);let E=g.length,L=arguments.length>2&&arguments[2]===!0;if(!L&&E===0)return 0;let F=!1;for(;;)switch(v){case"ascii":case"latin1":case"binary":return E;case"utf8":case"utf-8":return ce(g).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E*2;case"hex":return E>>>1;case"base64":return Me(g).length;default:if(F)return L?-1:ce(g).length;v=(""+v).toLowerCase(),F=!0}}l.byteLength=S;function O(g,v,E){let L=!1;if((v===void 0||v<0)&&(v=0),v>this.length||((E===void 0||E>this.length)&&(E=this.length),E<=0)||(E>>>=0,v>>>=0,E<=v))return"";for(g||(g="utf8");;)switch(g){case"hex":return Z(this,v,E);case"utf8":case"utf-8":return te(this,v,E);case"ascii":return W(this,v,E);case"latin1":case"binary":return V(this,v,E);case"base64":return B(this,v,E);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be(this,v,E);default:if(L)throw new TypeError("Unknown encoding: "+g);g=(g+"").toLowerCase(),L=!0}}l.prototype._isBuffer=!0;function N(g,v,E){let L=g[v];g[v]=g[E],g[E]=L}l.prototype.swap16=function(){let g=this.length;if(g%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let v=0;v<g;v+=2)N(this,v,v+1);return this},l.prototype.swap32=function(){let g=this.length;if(g%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let v=0;v<g;v+=4)N(this,v,v+3),N(this,v+1,v+2);return this},l.prototype.swap64=function(){let g=this.length;if(g%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let v=0;v<g;v+=8)N(this,v,v+7),N(this,v+1,v+6),N(this,v+2,v+5),N(this,v+3,v+4);return this},l.prototype.toString=function(){let g=this.length;return g===0?"":arguments.length===0?te(this,0,g):O.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(g){if(!l.isBuffer(g))throw new TypeError("Argument must be a Buffer");return this===g?!0:l.compare(this,g)===0},l.prototype.inspect=function(){let g="",v=ei.INSPECT_MAX_BYTES;return g=this.toString("hex",0,v).replace(/(.{2})/g,"$1 ").trim(),this.length>v&&(g+=" ... "),"<Buffer "+g+">"},d&&(l.prototype[d]=l.prototype.inspect),l.prototype.compare=function(g,v,E,L,F){if(he(g,Uint8Array)&&(g=l.from(g,g.offset,g.byteLength)),!l.isBuffer(g))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof g);if(v===void 0&&(v=0),E===void 0&&(E=g?g.length:0),L===void 0&&(L=0),F===void 0&&(F=this.length),v<0||E>g.length||L<0||F>this.length)throw new RangeError("out of range index");if(L>=F&&v>=E)return 0;if(L>=F)return-1;if(v>=E)return 1;if(v>>>=0,E>>>=0,L>>>=0,F>>>=0,this===g)return 0;let se=F-L,_e=E-v,ne=Math.min(se,_e),le=this.slice(L,F),Ge=g.slice(v,E);for(let Ye=0;Ye<ne;++Ye)if(le[Ye]!==Ge[Ye]){se=le[Ye],_e=Ge[Ye];break}return se<_e?-1:_e<se?1:0};function T(g,v,E,L,F){if(g.length===0)return-1;if(typeof E=="string"?(L=E,E=0):E>2147483647?E=2147483647:E<-2147483648&&(E=-2147483648),E=+E,ke(E)&&(E=F?0:g.length-1),E<0&&(E=g.length+E),E>=g.length){if(F)return-1;E=g.length-1}else if(E<0)if(F)E=0;else return-1;if(typeof v=="string"&&(v=l.from(v,L)),l.isBuffer(v))return v.length===0?-1:H(g,v,E,L,F);if(typeof v=="number")return v=v&255,typeof Uint8Array.prototype.indexOf=="function"?F?Uint8Array.prototype.indexOf.call(g,v,E):Uint8Array.prototype.lastIndexOf.call(g,v,E):H(g,[v],E,L,F);throw new TypeError("val must be string, number or Buffer")}function H(g,v,E,L,F){let se=1,_e=g.length,ne=v.length;if(L!==void 0&&(L=String(L).toLowerCase(),L==="ucs2"||L==="ucs-2"||L==="utf16le"||L==="utf-16le")){if(g.length<2||v.length<2)return-1;se=2,_e/=2,ne/=2,E/=2}function le(Ye,Ke){return se===1?Ye[Ke]:Ye.readUInt16BE(Ke*se)}let Ge;if(F){let Ye=-1;for(Ge=E;Ge<_e;Ge++)if(le(g,Ge)===le(v,Ye===-1?0:Ge-Ye)){if(Ye===-1&&(Ye=Ge),Ge-Ye+1===ne)return Ye*se}else Ye!==-1&&(Ge-=Ge-Ye),Ye=-1}else for(E+ne>_e&&(E=_e-ne),Ge=E;Ge>=0;Ge--){let Ye=!0;for(let Ke=0;Ke<ne;Ke++)if(le(g,Ge+Ke)!==le(v,Ke)){Ye=!1;break}if(Ye)return Ge}return-1}l.prototype.includes=function(g,v,E){return this.indexOf(g,v,E)!==-1},l.prototype.indexOf=function(g,v,E){return T(this,g,v,E,!0)},l.prototype.lastIndexOf=function(g,v,E){return T(this,g,v,E,!1)};function D(g,v,E,L){E=Number(E)||0;let F=g.length-E;L?(L=Number(L),L>F&&(L=F)):L=F;let se=v.length;L>se/2&&(L=se/2);let _e;for(_e=0;_e<L;++_e){let ne=parseInt(v.substr(_e*2,2),16);if(ke(ne))return _e;g[E+_e]=ne}return _e}function k(g,v,E,L){return ze(ce(v,g.length-E),g,E,L)}function z(g,v,E,L){return ze(Se(v),g,E,L)}function R(g,v,E,L){return ze(Me(v),g,E,L)}function Y(g,v,E,L){return ze(Ue(v,g.length-E),g,E,L)}l.prototype.write=function(g,v,E,L){if(v===void 0)L="utf8",E=this.length,v=0;else if(E===void 0&&typeof v=="string")L=v,E=this.length,v=0;else if(isFinite(v))v=v>>>0,isFinite(E)?(E=E>>>0,L===void 0&&(L="utf8")):(L=E,E=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let F=this.length-v;if((E===void 0||E>F)&&(E=F),g.length>0&&(E<0||v<0)||v>this.length)throw new RangeError("Attempt to write outside buffer bounds");L||(L="utf8");let se=!1;for(;;)switch(L){case"hex":return D(this,g,v,E);case"utf8":case"utf-8":return k(this,g,v,E);case"ascii":case"latin1":case"binary":return z(this,g,v,E);case"base64":return R(this,g,v,E);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,g,v,E);default:if(se)throw new TypeError("Unknown encoding: "+L);L=(""+L).toLowerCase(),se=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(g,v,E){return v===0&&E===g.length?f.fromByteArray(g):f.fromByteArray(g.slice(v,E))}function te(g,v,E){E=Math.min(g.length,E);let L=[],F=v;for(;F<E;){let se=g[F],_e=null,ne=se>239?4:se>223?3:se>191?2:1;if(F+ne<=E){let le,Ge,Ye,Ke;switch(ne){case 1:se<128&&(_e=se);break;case 2:le=g[F+1],(le&192)===128&&(Ke=(se&31)<<6|le&63,Ke>127&&(_e=Ke));break;case 3:le=g[F+1],Ge=g[F+2],(le&192)===128&&(Ge&192)===128&&(Ke=(se&15)<<12|(le&63)<<6|Ge&63,Ke>2047&&(Ke<55296||Ke>57343)&&(_e=Ke));break;case 4:le=g[F+1],Ge=g[F+2],Ye=g[F+3],(le&192)===128&&(Ge&192)===128&&(Ye&192)===128&&(Ke=(se&15)<<18|(le&63)<<12|(Ge&63)<<6|Ye&63,Ke>65535&&Ke<1114112&&(_e=Ke))}}_e===null?(_e=65533,ne=1):_e>65535&&(_e-=65536,L.push(_e>>>10&1023|55296),_e=56320|_e&1023),L.push(_e),F+=ne}return ee(L)}let ae=4096;function ee(g){let v=g.length;if(v<=ae)return String.fromCharCode.apply(String,g);let E="",L=0;for(;L<v;)E+=String.fromCharCode.apply(String,g.slice(L,L+=ae));return E}function W(g,v,E){let L="";E=Math.min(g.length,E);for(let F=v;F<E;++F)L+=String.fromCharCode(g[F]&127);return L}function V(g,v,E){let L="";E=Math.min(g.length,E);for(let F=v;F<E;++F)L+=String.fromCharCode(g[F]);return L}function Z(g,v,E){let L=g.length;(!v||v<0)&&(v=0),(!E||E<0||E>L)&&(E=L);let F="";for(let se=v;se<E;++se)F+=Pe[g[se]];return F}function be(g,v,E){let L=g.slice(v,E),F="";for(let se=0;se<L.length-1;se+=2)F+=String.fromCharCode(L[se]+L[se+1]*256);return F}l.prototype.slice=function(g,v){let E=this.length;g=~~g,v=v===void 0?E:~~v,g<0?(g+=E,g<0&&(g=0)):g>E&&(g=E),v<0?(v+=E,v<0&&(v=0)):v>E&&(v=E),v<g&&(v=g);let L=this.subarray(g,v);return Object.setPrototypeOf(L,l.prototype),L};function re(g,v,E){if(g%1!==0||g<0)throw new RangeError("offset is not uint");if(g+v>E)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(g,v,E){g=g>>>0,v=v>>>0,E||re(g,v,this.length);let L=this[g],F=1,se=0;for(;++se<v&&(F*=256);)L+=this[g+se]*F;return L},l.prototype.readUintBE=l.prototype.readUIntBE=function(g,v,E){g=g>>>0,v=v>>>0,E||re(g,v,this.length);let L=this[g+--v],F=1;for(;v>0&&(F*=256);)L+=this[g+--v]*F;return L},l.prototype.readUint8=l.prototype.readUInt8=function(g,v){return g=g>>>0,v||re(g,1,this.length),this[g]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(g,v){return g=g>>>0,v||re(g,2,this.length),this[g]|this[g+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(g,v){return g=g>>>0,v||re(g,2,this.length),this[g]<<8|this[g+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(g,v){return g=g>>>0,v||re(g,4,this.length),(this[g]|this[g+1]<<8|this[g+2]<<16)+this[g+3]*16777216},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(g,v){return g=g>>>0,v||re(g,4,this.length),this[g]*16777216+(this[g+1]<<16|this[g+2]<<8|this[g+3])},l.prototype.readBigUInt64LE=xe(function(g){g=g>>>0,me(g,"offset");let v=this[g],E=this[g+7];(v===void 0||E===void 0)&&Be(g,this.length-8);let L=v+this[++g]*2**8+this[++g]*2**16+this[++g]*2**24,F=this[++g]+this[++g]*2**8+this[++g]*2**16+E*2**24;return BigInt(L)+(BigInt(F)<<BigInt(32))}),l.prototype.readBigUInt64BE=xe(function(g){g=g>>>0,me(g,"offset");let v=this[g],E=this[g+7];(v===void 0||E===void 0)&&Be(g,this.length-8);let L=v*2**24+this[++g]*2**16+this[++g]*2**8+this[++g],F=this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+E;return(BigInt(L)<<BigInt(32))+BigInt(F)}),l.prototype.readIntLE=function(g,v,E){g=g>>>0,v=v>>>0,E||re(g,v,this.length);let L=this[g],F=1,se=0;for(;++se<v&&(F*=256);)L+=this[g+se]*F;return F*=128,L>=F&&(L-=Math.pow(2,8*v)),L},l.prototype.readIntBE=function(g,v,E){g=g>>>0,v=v>>>0,E||re(g,v,this.length);let L=v,F=1,se=this[g+--L];for(;L>0&&(F*=256);)se+=this[g+--L]*F;return F*=128,se>=F&&(se-=Math.pow(2,8*v)),se},l.prototype.readInt8=function(g,v){return g=g>>>0,v||re(g,1,this.length),this[g]&128?(255-this[g]+1)*-1:this[g]},l.prototype.readInt16LE=function(g,v){g=g>>>0,v||re(g,2,this.length);let E=this[g]|this[g+1]<<8;return E&32768?E|4294901760:E},l.prototype.readInt16BE=function(g,v){g=g>>>0,v||re(g,2,this.length);let E=this[g+1]|this[g]<<8;return E&32768?E|4294901760:E},l.prototype.readInt32LE=function(g,v){return g=g>>>0,v||re(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},l.prototype.readInt32BE=function(g,v){return g=g>>>0,v||re(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},l.prototype.readBigInt64LE=xe(function(g){g=g>>>0,me(g,"offset");let v=this[g],E=this[g+7];(v===void 0||E===void 0)&&Be(g,this.length-8);let L=this[g+4]+this[g+5]*2**8+this[g+6]*2**16+(E<<24);return(BigInt(L)<<BigInt(32))+BigInt(v+this[++g]*2**8+this[++g]*2**16+this[++g]*2**24)}),l.prototype.readBigInt64BE=xe(function(g){g=g>>>0,me(g,"offset");let v=this[g],E=this[g+7];(v===void 0||E===void 0)&&Be(g,this.length-8);let L=(v<<24)+this[++g]*2**16+this[++g]*2**8+this[++g];return(BigInt(L)<<BigInt(32))+BigInt(this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+E)}),l.prototype.readFloatLE=function(g,v){return g=g>>>0,v||re(g,4,this.length),y.read(this,g,!0,23,4)},l.prototype.readFloatBE=function(g,v){return g=g>>>0,v||re(g,4,this.length),y.read(this,g,!1,23,4)},l.prototype.readDoubleLE=function(g,v){return g=g>>>0,v||re(g,8,this.length),y.read(this,g,!0,52,8)},l.prototype.readDoubleBE=function(g,v){return g=g>>>0,v||re(g,8,this.length),y.read(this,g,!1,52,8)};function I(g,v,E,L,F,se){if(!l.isBuffer(g))throw new TypeError('"buffer" argument must be a Buffer instance');if(v>F||v<se)throw new RangeError('"value" argument is out of bounds');if(E+L>g.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(g,v,E,L){if(g=+g,v=v>>>0,E=E>>>0,!L){let _e=Math.pow(2,8*E)-1;I(this,g,v,E,_e,0)}let F=1,se=0;for(this[v]=g&255;++se<E&&(F*=256);)this[v+se]=g/F&255;return v+E},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(g,v,E,L){if(g=+g,v=v>>>0,E=E>>>0,!L){let _e=Math.pow(2,8*E)-1;I(this,g,v,E,_e,0)}let F=E-1,se=1;for(this[v+F]=g&255;--F>=0&&(se*=256);)this[v+F]=g/se&255;return v+E},l.prototype.writeUint8=l.prototype.writeUInt8=function(g,v,E){return g=+g,v=v>>>0,E||I(this,g,v,1,255,0),this[v]=g&255,v+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(g,v,E){return g=+g,v=v>>>0,E||I(this,g,v,2,65535,0),this[v]=g&255,this[v+1]=g>>>8,v+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(g,v,E){return g=+g,v=v>>>0,E||I(this,g,v,2,65535,0),this[v]=g>>>8,this[v+1]=g&255,v+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(g,v,E){return g=+g,v=v>>>0,E||I(this,g,v,4,4294967295,0),this[v+3]=g>>>24,this[v+2]=g>>>16,this[v+1]=g>>>8,this[v]=g&255,v+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(g,v,E){return g=+g,v=v>>>0,E||I(this,g,v,4,4294967295,0),this[v]=g>>>24,this[v+1]=g>>>16,this[v+2]=g>>>8,this[v+3]=g&255,v+4};function U(g,v,E,L,F){de(v,L,F,g,E,7);let se=Number(v&BigInt(4294967295));g[E++]=se,se=se>>8,g[E++]=se,se=se>>8,g[E++]=se,se=se>>8,g[E++]=se;let _e=Number(v>>BigInt(32)&BigInt(4294967295));return g[E++]=_e,_e=_e>>8,g[E++]=_e,_e=_e>>8,g[E++]=_e,_e=_e>>8,g[E++]=_e,E}function G(g,v,E,L,F){de(v,L,F,g,E,7);let se=Number(v&BigInt(4294967295));g[E+7]=se,se=se>>8,g[E+6]=se,se=se>>8,g[E+5]=se,se=se>>8,g[E+4]=se;let _e=Number(v>>BigInt(32)&BigInt(4294967295));return g[E+3]=_e,_e=_e>>8,g[E+2]=_e,_e=_e>>8,g[E+1]=_e,_e=_e>>8,g[E]=_e,E+8}l.prototype.writeBigUInt64LE=xe(function(g,v=0){return U(this,g,v,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=xe(function(g,v=0){return G(this,g,v,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(g,v,E,L){if(g=+g,v=v>>>0,!L){let ne=Math.pow(2,8*E-1);I(this,g,v,E,ne-1,-ne)}let F=0,se=1,_e=0;for(this[v]=g&255;++F<E&&(se*=256);)g<0&&_e===0&&this[v+F-1]!==0&&(_e=1),this[v+F]=(g/se>>0)-_e&255;return v+E},l.prototype.writeIntBE=function(g,v,E,L){if(g=+g,v=v>>>0,!L){let ne=Math.pow(2,8*E-1);I(this,g,v,E,ne-1,-ne)}let F=E-1,se=1,_e=0;for(this[v+F]=g&255;--F>=0&&(se*=256);)g<0&&_e===0&&this[v+F+1]!==0&&(_e=1),this[v+F]=(g/se>>0)-_e&255;return v+E},l.prototype.writeInt8=function(g,v,E){return g=+g,v=v>>>0,E||I(this,g,v,1,127,-128),g<0&&(g=255+g+1),this[v]=g&255,v+1},l.prototype.writeInt16LE=function(g,v,E){return g=+g,v=v>>>0,E||I(this,g,v,2,32767,-32768),this[v]=g&255,this[v+1]=g>>>8,v+2},l.prototype.writeInt16BE=function(g,v,E){return g=+g,v=v>>>0,E||I(this,g,v,2,32767,-32768),this[v]=g>>>8,this[v+1]=g&255,v+2},l.prototype.writeInt32LE=function(g,v,E){return g=+g,v=v>>>0,E||I(this,g,v,4,2147483647,-2147483648),this[v]=g&255,this[v+1]=g>>>8,this[v+2]=g>>>16,this[v+3]=g>>>24,v+4},l.prototype.writeInt32BE=function(g,v,E){return g=+g,v=v>>>0,E||I(this,g,v,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),this[v]=g>>>24,this[v+1]=g>>>16,this[v+2]=g>>>8,this[v+3]=g&255,v+4},l.prototype.writeBigInt64LE=xe(function(g,v=0){return U(this,g,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=xe(function(g,v=0){return G(this,g,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ye(g,v,E,L,F,se){if(E+L>g.length)throw new RangeError("Index out of range");if(E<0)throw new RangeError("Index out of range")}function Q(g,v,E,L,F){return v=+v,E=E>>>0,F||ye(g,v,E,4),y.write(g,v,E,L,23,4),E+4}l.prototype.writeFloatLE=function(g,v,E){return Q(this,g,v,!0,E)},l.prototype.writeFloatBE=function(g,v,E){return Q(this,g,v,!1,E)};function je(g,v,E,L,F){return v=+v,E=E>>>0,F||ye(g,v,E,8),y.write(g,v,E,L,52,8),E+8}l.prototype.writeDoubleLE=function(g,v,E){return je(this,g,v,!0,E)},l.prototype.writeDoubleBE=function(g,v,E){return je(this,g,v,!1,E)},l.prototype.copy=function(g,v,E,L){if(!l.isBuffer(g))throw new TypeError("argument should be a Buffer");if(E||(E=0),!L&&L!==0&&(L=this.length),v>=g.length&&(v=g.length),v||(v=0),L>0&&L<E&&(L=E),L===E||g.length===0||this.length===0)return 0;if(v<0)throw new RangeError("targetStart out of bounds");if(E<0||E>=this.length)throw new RangeError("Index out of range");if(L<0)throw new RangeError("sourceEnd out of bounds");L>this.length&&(L=this.length),g.length-v<L-E&&(L=g.length-v+E);let F=L-E;return this===g&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(v,E,L):Uint8Array.prototype.set.call(g,this.subarray(E,L),v),F},l.prototype.fill=function(g,v,E,L){if(typeof g=="string"){if(typeof v=="string"?(L=v,v=0,E=this.length):typeof E=="string"&&(L=E,E=this.length),L!==void 0&&typeof L!="string")throw new TypeError("encoding must be a string");if(typeof L=="string"&&!l.isEncoding(L))throw new TypeError("Unknown encoding: "+L);if(g.length===1){let se=g.charCodeAt(0);(L==="utf8"&&se<128||L==="latin1")&&(g=se)}}else typeof g=="number"?g=g&255:typeof g=="boolean"&&(g=Number(g));if(v<0||this.length<v||this.length<E)throw new RangeError("Out of range index");if(E<=v)return this;v=v>>>0,E=E===void 0?this.length:E>>>0,g||(g=0);let F;if(typeof g=="number")for(F=v;F<E;++F)this[F]=g;else{let se=l.isBuffer(g)?g:l.from(g,L),_e=se.length;if(_e===0)throw new TypeError('The value "'+g+'" is invalid for argument "value"');for(F=0;F<E-v;++F)this[F+v]=se[F%_e]}return this};let ie={};function K(g,v,E){ie[g]=class extends E{constructor(){super(),Object.defineProperty(this,"message",{value:v.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${g}]`,this.stack,delete this.name}get code(){return g}set code(L){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:L,writable:!0})}toString(){return`${this.name} [${g}]: ${this.message}`}}}K("ERR_BUFFER_OUT_OF_BOUNDS",function(g){return g?`${g} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),K("ERR_INVALID_ARG_TYPE",function(g,v){return`The "${g}" argument must be of type number. Received type ${typeof v}`},TypeError),K("ERR_OUT_OF_RANGE",function(g,v,E){let L=`The value of "${g}" is out of range.`,F=E;return Number.isInteger(E)&&Math.abs(E)>2**32?F=ge(String(E)):typeof E=="bigint"&&(F=String(E),(E>BigInt(2)**BigInt(32)||E<-(BigInt(2)**BigInt(32)))&&(F=ge(F)),F+="n"),L+=` It must be ${v}. Received ${F}`,L},RangeError);function ge(g){let v="",E=g.length,L=g[0]==="-"?1:0;for(;E>=L+4;E-=3)v=`_${g.slice(E-3,E)}${v}`;return`${g.slice(0,E)}${v}`}function ue(g,v,E){me(v,"offset"),(g[v]===void 0||g[v+E]===void 0)&&Be(v,g.length-(E+1))}function de(g,v,E,L,F,se){if(g>E||g<v){let _e=typeof v=="bigint"?"n":"",ne;throw v===0||v===BigInt(0)?ne=`>= 0${_e} and < 2${_e} ** ${(se+1)*8}${_e}`:ne=`>= -(2${_e} ** ${(se+1)*8-1}${_e}) and < 2 ** ${(se+1)*8-1}${_e}`,new ie.ERR_OUT_OF_RANGE("value",ne,g)}ue(L,F,se)}function me(g,v){if(typeof g!="number")throw new ie.ERR_INVALID_ARG_TYPE(v,"number",g)}function Be(g,v,E){throw Math.floor(g)!==g?(me(g,E),new ie.ERR_OUT_OF_RANGE("offset","an integer",g)):v<0?new ie.ERR_BUFFER_OUT_OF_BOUNDS:new ie.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${v}`,g)}let Ae=/[^+/0-9A-Za-z-_]/g;function X(g){if(g=g.split("=")[0],g=g.trim().replace(Ae,""),g.length<2)return"";for(;g.length%4!==0;)g=g+"=";return g}function ce(g,v){v=v||1/0;let E,L=g.length,F=null,se=[];for(let _e=0;_e<L;++_e){if(E=g.charCodeAt(_e),E>55295&&E<57344){if(!F){if(E>56319){(v-=3)>-1&&se.push(239,191,189);continue}else if(_e+1===L){(v-=3)>-1&&se.push(239,191,189);continue}F=E;continue}if(E<56320){(v-=3)>-1&&se.push(239,191,189),F=E;continue}E=(F-55296<<10|E-56320)+65536}else F&&(v-=3)>-1&&se.push(239,191,189);if(F=null,E<128){if((v-=1)<0)break;se.push(E)}else if(E<2048){if((v-=2)<0)break;se.push(E>>6|192,E&63|128)}else if(E<65536){if((v-=3)<0)break;se.push(E>>12|224,E>>6&63|128,E&63|128)}else if(E<1114112){if((v-=4)<0)break;se.push(E>>18|240,E>>12&63|128,E>>6&63|128,E&63|128)}else throw new Error("Invalid code point")}return se}function Se(g){let v=[];for(let E=0;E<g.length;++E)v.push(g.charCodeAt(E)&255);return v}function Ue(g,v){let E,L,F,se=[];for(let _e=0;_e<g.length&&!((v-=2)<0);++_e)E=g.charCodeAt(_e),L=E>>8,F=E%256,se.push(F),se.push(L);return se}function Me(g){return f.toByteArray(X(g))}function ze(g,v,E,L){let F;for(F=0;F<L&&!(F+E>=v.length||F>=g.length);++F)v[F+E]=g[F];return F}function he(g,v){return g instanceof v||g!=null&&g.constructor!=null&&g.constructor.name!=null&&g.constructor.name===v.name}function ke(g){return g!==g}let Pe=(function(){let g="0123456789abcdef",v=new Array(256);for(let E=0;E<16;++E){let L=E*16;for(let F=0;F<16;++F)v[L+F]=g[E]+g[F]}return v})();function xe(g){return typeof BigInt>"u"?tt:g}function tt(){throw new Error("BigInt not supported")}return ei}var ma,Yf,pl,Qf,ei,Vf,eS=Tr(()=>{Ne(),Re(),Ce(),ma={},Yf=!1,pl={},Qf=!1,ei={},Vf=!1}),er={};va(er,{Buffer:()=>fs,INSPECT_MAX_BYTES:()=>Mb,default:()=>Sn,kMaxLength:()=>Nb});var Sn,fs,Mb,Nb,tr=Tr(()=>{Ne(),Re(),Ce(),eS(),Sn=J1(),Sn.Buffer,Sn.SlowBuffer,Sn.INSPECT_MAX_BYTES,Sn.kMaxLength,fs=Sn.Buffer,Mb=Sn.INSPECT_MAX_BYTES,Nb=Sn.kMaxLength}),Re=Tr(()=>{tr()}),Lt=Ie((f,y)=>{Ne(),Re(),Ce();var d=class extends Error{constructor(c){if(!Array.isArray(c))throw new TypeError(`Expected input to be an Array, got ${typeof c}`);let m="";for(let o=0;o<c.length;o++)m+=`    ${c[o].stack}
`;super(m),this.name="AggregateError",this.errors=c}};y.exports={AggregateError:d,ArrayIsArray(c){return Array.isArray(c)},ArrayPrototypeIncludes(c,m){return c.includes(m)},ArrayPrototypeIndexOf(c,m){return c.indexOf(m)},ArrayPrototypeJoin(c,m){return c.join(m)},ArrayPrototypeMap(c,m){return c.map(m)},ArrayPrototypePop(c,m){return c.pop(m)},ArrayPrototypePush(c,m){return c.push(m)},ArrayPrototypeSlice(c,m,o){return c.slice(m,o)},Error,FunctionPrototypeCall(c,m,...o){return c.call(m,...o)},FunctionPrototypeSymbolHasInstance(c,m){return Function.prototype[Symbol.hasInstance].call(c,m)},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(c,m){return Object.defineProperties(c,m)},ObjectDefineProperty(c,m,o){return Object.defineProperty(c,m,o)},ObjectGetOwnPropertyDescriptor(c,m){return Object.getOwnPropertyDescriptor(c,m)},ObjectKeys(c){return Object.keys(c)},ObjectSetPrototypeOf(c,m){return Object.setPrototypeOf(c,m)},Promise,PromisePrototypeCatch(c,m){return c.catch(m)},PromisePrototypeThen(c,m,o){return c.then(m,o)},PromiseReject(c){return Promise.reject(c)},PromiseResolve(c){return Promise.resolve(c)},ReflectApply:Reflect.apply,RegExpPrototypeTest(c,m){return c.test(m)},SafeSet:Set,String,StringPrototypeSlice(c,m,o){return c.slice(m,o)},StringPrototypeToLowerCase(c){return c.toLowerCase()},StringPrototypeToUpperCase(c){return c.toUpperCase()},StringPrototypeTrim(c){return c.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(c,m,o){return c.set(m,o)},Boolean,Uint8Array}}),Cb=Ie((f,y)=>{Ne(),Re(),Ce(),y.exports={format(d,...c){return d.replace(/%([sdifj])/g,function(...[m,o]){let l=c.shift();return o==="f"?l.toFixed(6):o==="j"?JSON.stringify(l):o==="s"&&typeof l=="object"?`${l.constructor!==Object?l.constructor.name:""} {}`.trim():l.toString()})},inspect(d){switch(typeof d){case"string":if(d.includes("'"))if(d.includes('"')){if(!d.includes("`")&&!d.includes("${"))return`\`${d}\``}else return`"${d}"`;return`'${d}'`;case"number":return isNaN(d)?"NaN":Object.is(d,-0)?String(d):d;case"bigint":return`${String(d)}n`;case"boolean":case"undefined":return String(d);case"object":return"{}"}}}}),dr=Ie((f,y)=>{Ne(),Re(),Ce();var{format:d,inspect:c}=Cb(),{AggregateError:m}=Lt(),o=globalThis.AggregateError||m,l=Symbol("kIsNodeError"),u=["string","function","number","object","Function","Object","boolean","bigint","symbol"],i=/^([A-Z][a-z0-9]*)+$/,a="__node_internal_",p={};function b(S,O){if(!S)throw new p.ERR_INTERNAL_ASSERTION(O)}function _(S){let O="",N=S.length,T=S[0]==="-"?1:0;for(;N>=T+4;N-=3)O=`_${S.slice(N-3,N)}${O}`;return`${S.slice(0,N)}${O}`}function w(S,O,N){if(typeof O=="function")return b(O.length<=N.length,`Code: ${S}; The provided arguments length (${N.length}) does not match the required ones (${O.length}).`),O(...N);let T=(O.match(/%[dfijoOs]/g)||[]).length;return b(T===N.length,`Code: ${S}; The provided arguments length (${N.length}) does not match the required ones (${T}).`),N.length===0?O:d(O,...N)}function A(S,O,N){N||(N=Error);class T extends N{constructor(...D){super(w(S,O,D))}toString(){return`${this.name} [${S}]: ${this.message}`}}Object.defineProperties(T.prototype,{name:{value:N.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${S}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),T.prototype.code=S,T.prototype[l]=!0,p[S]=T}function M(S){let O=a+S.name;return Object.defineProperty(S,"name",{value:O}),S}function j(S,O){if(S&&O&&S!==O){if(Array.isArray(O.errors))return O.errors.push(S),O;let N=new o([O,S],O.message);return N.code=O.code,N}return S||O}var C=class extends Error{constructor(S="The operation was aborted",O=void 0){if(O!==void 0&&typeof O!="object")throw new p.ERR_INVALID_ARG_TYPE("options","Object",O);super(S,O),this.code="ABORT_ERR",this.name="AbortError"}};A("ERR_ASSERTION","%s",Error),A("ERR_INVALID_ARG_TYPE",(S,O,N)=>{b(typeof S=="string","'name' must be a string"),Array.isArray(O)||(O=[O]);let T="The ";S.endsWith(" argument")?T+=`${S} `:T+=`"${S}" ${S.includes(".")?"property":"argument"} `,T+="must be ";let H=[],D=[],k=[];for(let R of O)b(typeof R=="string","All expected entries have to be of type string"),u.includes(R)?H.push(R.toLowerCase()):i.test(R)?D.push(R):(b(R!=="object",'The value "object" should be written as "Object"'),k.push(R));if(D.length>0){let R=H.indexOf("object");R!==-1&&(H.splice(H,R,1),D.push("Object"))}if(H.length>0){switch(H.length){case 1:T+=`of type ${H[0]}`;break;case 2:T+=`one of type ${H[0]} or ${H[1]}`;break;default:{let R=H.pop();T+=`one of type ${H.join(", ")}, or ${R}`}}(D.length>0||k.length>0)&&(T+=" or ")}if(D.length>0){switch(D.length){case 1:T+=`an instance of ${D[0]}`;break;case 2:T+=`an instance of ${D[0]} or ${D[1]}`;break;default:{let R=D.pop();T+=`an instance of ${D.join(", ")}, or ${R}`}}k.length>0&&(T+=" or ")}switch(k.length){case 0:break;case 1:k[0].toLowerCase()!==k[0]&&(T+="an "),T+=`${k[0]}`;break;case 2:T+=`one of ${k[0]} or ${k[1]}`;break;default:{let R=k.pop();T+=`one of ${k.join(", ")}, or ${R}`}}if(N==null)T+=`. Received ${N}`;else if(typeof N=="function"&&N.name)T+=`. Received function ${N.name}`;else if(typeof N=="object"){var z;if((z=N.constructor)!==null&&z!==void 0&&z.name)T+=`. Received an instance of ${N.constructor.name}`;else{let R=c(N,{depth:-1});T+=`. Received ${R}`}}else{let R=c(N,{colors:!1});R.length>25&&(R=`${R.slice(0,25)}...`),T+=`. Received type ${typeof N} (${R})`}return T},TypeError),A("ERR_INVALID_ARG_VALUE",(S,O,N="is invalid")=>{let T=c(O);return T.length>128&&(T=T.slice(0,128)+"..."),`The ${S.includes(".")?"property":"argument"} '${S}' ${N}. Received ${T}`},TypeError),A("ERR_INVALID_RETURN_VALUE",(S,O,N)=>{var T;let H=N!=null&&(T=N.constructor)!==null&&T!==void 0&&T.name?`instance of ${N.constructor.name}`:`type ${typeof N}`;return`Expected ${S} to be returned from the "${O}" function but got ${H}.`},TypeError),A("ERR_MISSING_ARGS",(...S)=>{b(S.length>0,"At least one arg needs to be specified");let O,N=S.length;switch(S=(Array.isArray(S)?S:[S]).map(T=>`"${T}"`).join(" or "),N){case 1:O+=`The ${S[0]} argument`;break;case 2:O+=`The ${S[0]} and ${S[1]} arguments`;break;default:{let T=S.pop();O+=`The ${S.join(", ")}, and ${T} arguments`}break}return`${O} must be specified`},TypeError),A("ERR_OUT_OF_RANGE",(S,O,N)=>{b(O,'Missing "range" argument');let T;if(Number.isInteger(N)&&Math.abs(N)>2**32)T=_(String(N));else if(typeof N=="bigint"){T=String(N);let H=BigInt(2)**BigInt(32);(N>H||N<-H)&&(T=_(T)),T+="n"}else T=c(N);return`The value of "${S}" is out of range. It must be ${O}. Received ${T}`},RangeError),A("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),A("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),A("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),A("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),A("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),A("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),A("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),A("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),A("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),A("ERR_STREAM_WRITE_AFTER_END","write after end",Error),A("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),y.exports={AbortError:C,aggregateTwoErrors:M(j),hideStackFrames:M,codes:p}}),vl=Ie((f,y)=>{Ne(),Re(),Ce();var{AbortController:d,AbortSignal:c}=typeof self<"u"?self:typeof window<"u"?window:void 0;y.exports=d,y.exports.AbortSignal=c,y.exports.default=d}),li={};va(li,{EventEmitter:()=>Rb,default:()=>ga,defaultMaxListeners:()=>Ub,init:()=>Bb,listenerCount:()=>Db,on:()=>kb,once:()=>Ib});function tS(){if(Kf)return yl;Kf=!0;var f=typeof Reflect=="object"?Reflect:null,y=f&&typeof f.apply=="function"?f.apply:function(N,T,H){return Function.prototype.apply.call(N,T,H)},d;f&&typeof f.ownKeys=="function"?d=f.ownKeys:Object.getOwnPropertySymbols?d=function(N){return Object.getOwnPropertyNames(N).concat(Object.getOwnPropertySymbols(N))}:d=function(N){return Object.getOwnPropertyNames(N)};function c(N){console&&console.warn&&console.warn(N)}var m=Number.isNaN||function(N){return N!==N};function o(){o.init.call(this)}yl=o,yl.once=C,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var l=10;function u(N){if(typeof N!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof N)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(N){if(typeof N!="number"||N<0||m(N))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+N+".");l=N}}),o.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(N){if(typeof N!="number"||N<0||m(N))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+N+".");return this._maxListeners=N,this};function i(N){return N._maxListeners===void 0?o.defaultMaxListeners:N._maxListeners}o.prototype.getMaxListeners=function(){return i(this)},o.prototype.emit=function(N){for(var T=[],H=1;H<arguments.length;H++)T.push(arguments[H]);var D=N==="error",k=this._events;if(k!==void 0)D=D&&k.error===void 0;else if(!D)return!1;if(D){var z;if(T.length>0&&(z=T[0]),z instanceof Error)throw z;var R=new Error("Unhandled error."+(z?" ("+z.message+")":""));throw R.context=z,R}var Y=k[N];if(Y===void 0)return!1;if(typeof Y=="function")y(Y,this,T);else for(var B=Y.length,te=A(Y,B),H=0;H<B;++H)y(te[H],this,T);return!0};function a(N,T,H,D){var k,z,R;if(u(H),z=N._events,z===void 0?(z=N._events=Object.create(null),N._eventsCount=0):(z.newListener!==void 0&&(N.emit("newListener",T,H.listener?H.listener:H),z=N._events),R=z[T]),R===void 0)R=z[T]=H,++N._eventsCount;else if(typeof R=="function"?R=z[T]=D?[H,R]:[R,H]:D?R.unshift(H):R.push(H),k=i(N),k>0&&R.length>k&&!R.warned){R.warned=!0;var Y=new Error("Possible EventEmitter memory leak detected. "+R.length+" "+String(T)+" listeners added. Use emitter.setMaxListeners() to increase limit");Y.name="MaxListenersExceededWarning",Y.emitter=N,Y.type=T,Y.count=R.length,c(Y)}return N}o.prototype.addListener=function(N,T){return a(this,N,T,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(N,T){return a(this,N,T,!0)};function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function b(N,T,H){var D={fired:!1,wrapFn:void 0,target:N,type:T,listener:H},k=p.bind(D);return k.listener=H,D.wrapFn=k,k}o.prototype.once=function(N,T){return u(T),this.on(N,b(this,N,T)),this},o.prototype.prependOnceListener=function(N,T){return u(T),this.prependListener(N,b(this,N,T)),this},o.prototype.removeListener=function(N,T){var H,D,k,z,R;if(u(T),D=this._events,D===void 0)return this;if(H=D[N],H===void 0)return this;if(H===T||H.listener===T)--this._eventsCount===0?this._events=Object.create(null):(delete D[N],D.removeListener&&this.emit("removeListener",N,H.listener||T));else if(typeof H!="function"){for(k=-1,z=H.length-1;z>=0;z--)if(H[z]===T||H[z].listener===T){R=H[z].listener,k=z;break}if(k<0)return this;k===0?H.shift():M(H,k),H.length===1&&(D[N]=H[0]),D.removeListener!==void 0&&this.emit("removeListener",N,R||T)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(N){var T,H,D;if(H=this._events,H===void 0)return this;if(H.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):H[N]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete H[N]),this;if(arguments.length===0){var k=Object.keys(H),z;for(D=0;D<k.length;++D)z=k[D],z!=="removeListener"&&this.removeAllListeners(z);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(T=H[N],typeof T=="function")this.removeListener(N,T);else if(T!==void 0)for(D=T.length-1;D>=0;D--)this.removeListener(N,T[D]);return this};function _(N,T,H){var D=N._events;if(D===void 0)return[];var k=D[T];return k===void 0?[]:typeof k=="function"?H?[k.listener||k]:[k]:H?j(k):A(k,k.length)}o.prototype.listeners=function(N){return _(this,N,!0)},o.prototype.rawListeners=function(N){return _(this,N,!1)},o.listenerCount=function(N,T){return typeof N.listenerCount=="function"?N.listenerCount(T):w.call(N,T)},o.prototype.listenerCount=w;function w(N){var T=this._events;if(T!==void 0){var H=T[N];if(typeof H=="function")return 1;if(H!==void 0)return H.length}return 0}o.prototype.eventNames=function(){return this._eventsCount>0?d(this._events):[]};function A(N,T){for(var H=new Array(T),D=0;D<T;++D)H[D]=N[D];return H}function M(N,T){for(;T+1<N.length;T++)N[T]=N[T+1];N.pop()}function j(N){for(var T=new Array(N.length),H=0;H<T.length;++H)T[H]=N[H].listener||N[H];return T}function C(N,T){return new Promise(function(H,D){function k(R){N.removeListener(T,z),D(R)}function z(){typeof N.removeListener=="function"&&N.removeListener("error",k),H([].slice.call(arguments))}O(N,T,z,{once:!0}),T!=="error"&&S(N,k,{once:!0})})}function S(N,T,H){typeof N.on=="function"&&O(N,"error",T,H)}function O(N,T,H,D){if(typeof N.on=="function")D.once?N.once(T,H):N.on(T,H);else if(typeof N.addEventListener=="function")N.addEventListener(T,function k(z){D.once&&N.removeEventListener(T,k),H(z)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof N)}return yl}var yl,Kf,ga,Rb,Ub,Bb,Db,kb,Ib,Mi=Tr(()=>{Ne(),Re(),Ce(),yl={},Kf=!1,ga=tS(),ga.once,ga.once=function(f,y){return new Promise((d,c)=>{function m(...l){o!==void 0&&f.removeListener("error",o),d(l)}let o;y!=="error"&&(o=l=>{f.removeListener(name,m),c(l)},f.once("error",o)),f.once(y,m)})},ga.on=function(f,y){let d=[],c=[],m=null,o=!1,l={async next(){let a=d.shift();if(a)return createIterResult(a,!1);if(m){let p=Promise.reject(m);return m=null,p}return o?createIterResult(void 0,!0):new Promise((p,b)=>c.push({resolve:p,reject:b}))},async return(){f.removeListener(y,u),f.removeListener("error",i),o=!0;for(let a of c)a.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(a){m=a,f.removeListener(y,u),f.removeListener("error",i)},[Symbol.asyncIterator](){return this}};return f.on(y,u),f.on("error",i),l;function u(...a){let p=c.shift();p?p.resolve(createIterResult(a,!1)):d.push(a)}function i(a){o=!0;let p=c.shift();p?p.reject(a):m=a,l.return()}},{EventEmitter:Rb,defaultMaxListeners:Ub,init:Bb,listenerCount:Db,on:kb,once:Ib}=ga}),Ar=Ie((f,y)=>{Ne(),Re(),Ce();var d=(tr(),Ot(er)),{format:c,inspect:m}=Cb(),{codes:{ERR_INVALID_ARG_TYPE:o}}=dr(),{kResistStopPropagation:l,AggregateError:u,SymbolDispose:i}=Lt(),a=globalThis.AbortSignal||vl().AbortSignal,p=globalThis.AbortController||vl().AbortController,b=Object.getPrototypeOf(async function(){}).constructor,_=globalThis.Blob||d.Blob,w=typeof _<"u"?function(j){return j instanceof _}:function(j){return!1},A=(j,C)=>{if(j!==void 0&&(j===null||typeof j!="object"||!("aborted"in j)))throw new o(C,"AbortSignal",j)},M=(j,C)=>{if(typeof j!="function")throw new o(C,"Function",j)};y.exports={AggregateError:u,kEmptyObject:Object.freeze({}),once(j){let C=!1;return function(...S){C||(C=!0,j.apply(this,S))}},createDeferredPromise:function(){let j,C;return{promise:new Promise((S,O)=>{j=S,C=O}),resolve:j,reject:C}},promisify(j){return new Promise((C,S)=>{j((O,...N)=>O?S(O):C(...N))})},debuglog(){return function(){}},format:c,inspect:m,types:{isAsyncFunction(j){return j instanceof b},isArrayBufferView(j){return ArrayBuffer.isView(j)}},isBlob:w,deprecate(j,C){return j},addAbortListener:(Mi(),Ot(li)).addAbortListener||function(j,C){if(j===void 0)throw new o("signal","AbortSignal",j);A(j,"signal"),M(C,"listener");let S;return j.aborted?queueMicrotask(()=>C()):(j.addEventListener("abort",C,{__proto__:null,once:!0,[l]:!0}),S=()=>{j.removeEventListener("abort",C)}),{__proto__:null,[i](){var O;(O=S)===null||O===void 0||O()}}},AbortSignalAny:a.any||function(j){if(j.length===1)return j[0];let C=new p,S=()=>C.abort();return j.forEach(O=>{A(O,"signals"),O.addEventListener("abort",S,{once:!0})}),C.signal.addEventListener("abort",()=>{j.forEach(O=>O.removeEventListener("abort",S))},{once:!0}),C.signal}},y.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),_l=Ie((f,y)=>{Ne(),Re(),Ce();var{ArrayIsArray:d,ArrayPrototypeIncludes:c,ArrayPrototypeJoin:m,ArrayPrototypeMap:o,NumberIsInteger:l,NumberIsNaN:u,NumberMAX_SAFE_INTEGER:i,NumberMIN_SAFE_INTEGER:a,NumberParseInt:p,ObjectPrototypeHasOwnProperty:b,RegExpPrototypeExec:_,String:w,StringPrototypeToUpperCase:A,StringPrototypeTrim:M}=Lt(),{hideStackFrames:j,codes:{ERR_SOCKET_BAD_PORT:C,ERR_INVALID_ARG_TYPE:S,ERR_INVALID_ARG_VALUE:O,ERR_OUT_OF_RANGE:N,ERR_UNKNOWN_SIGNAL:T}}=dr(),{normalizeEncoding:H}=Ar(),{isAsyncFunction:D,isArrayBufferView:k}=Ar().types,z={};function R(he){return he===(he|0)}function Y(he){return he===he>>>0}var B=/^[0-7]+$/,te="must be a 32-bit unsigned integer or an octal string";function ae(he,ke,Pe){if(typeof he>"u"&&(he=Pe),typeof he=="string"){if(_(B,he)===null)throw new O(ke,he,te);he=p(he,8)}return V(he,ke),he}var ee=j((he,ke,Pe=a,xe=i)=>{if(typeof he!="number")throw new S(ke,"number",he);if(!l(he))throw new N(ke,"an integer",he);if(he<Pe||he>xe)throw new N(ke,`>= ${Pe} && <= ${xe}`,he)}),W=j((he,ke,Pe=-2147483648,xe=2147483647)=>{if(typeof he!="number")throw new S(ke,"number",he);if(!l(he))throw new N(ke,"an integer",he);if(he<Pe||he>xe)throw new N(ke,`>= ${Pe} && <= ${xe}`,he)}),V=j((he,ke,Pe=!1)=>{if(typeof he!="number")throw new S(ke,"number",he);if(!l(he))throw new N(ke,"an integer",he);let xe=Pe?1:0,tt=4294967295;if(he<xe||he>tt)throw new N(ke,`>= ${xe} && <= ${tt}`,he)});function Z(he,ke){if(typeof he!="string")throw new S(ke,"string",he)}function be(he,ke,Pe=void 0,xe){if(typeof he!="number")throw new S(ke,"number",he);if(Pe!=null&&he<Pe||xe!=null&&he>xe||(Pe!=null||xe!=null)&&u(he))throw new N(ke,`${Pe!=null?`>= ${Pe}`:""}${Pe!=null&&xe!=null?" && ":""}${xe!=null?`<= ${xe}`:""}`,he)}var re=j((he,ke,Pe)=>{if(!c(Pe,he)){let xe="must be one of: "+m(o(Pe,tt=>typeof tt=="string"?`'${tt}'`:w(tt)),", ");throw new O(ke,he,xe)}});function I(he,ke){if(typeof he!="boolean")throw new S(ke,"boolean",he)}function U(he,ke,Pe){return he==null||!b(he,ke)?Pe:he[ke]}var G=j((he,ke,Pe=null)=>{let xe=U(Pe,"allowArray",!1),tt=U(Pe,"allowFunction",!1);if(!U(Pe,"nullable",!1)&&he===null||!xe&&d(he)||typeof he!="object"&&(!tt||typeof he!="function"))throw new S(ke,"Object",he)}),ye=j((he,ke)=>{if(he!=null&&typeof he!="object"&&typeof he!="function")throw new S(ke,"a dictionary",he)}),Q=j((he,ke,Pe=0)=>{if(!d(he))throw new S(ke,"Array",he);if(he.length<Pe){let xe=`must be longer than ${Pe}`;throw new O(ke,he,xe)}});function je(he,ke){Q(he,ke);for(let Pe=0;Pe<he.length;Pe++)Z(he[Pe],`${ke}[${Pe}]`)}function ie(he,ke){Q(he,ke);for(let Pe=0;Pe<he.length;Pe++)I(he[Pe],`${ke}[${Pe}]`)}function K(he,ke){Q(he,ke);for(let Pe=0;Pe<he.length;Pe++){let xe=he[Pe],tt=`${ke}[${Pe}]`;if(xe==null)throw new S(tt,"AbortSignal",xe);Be(xe,tt)}}function ge(he,ke="signal"){if(Z(he,ke),z[he]===void 0)throw z[A(he)]!==void 0?new T(he+" (signals must use all capital letters)"):new T(he)}var ue=j((he,ke="buffer")=>{if(!k(he))throw new S(ke,["Buffer","TypedArray","DataView"],he)});function de(he,ke){let Pe=H(ke),xe=he.length;if(Pe==="hex"&&xe%2!==0)throw new O("encoding",ke,`is invalid for data of length ${xe}`)}function me(he,ke="Port",Pe=!0){if(typeof he!="number"&&typeof he!="string"||typeof he=="string"&&M(he).length===0||+he!==+he>>>0||he>65535||he===0&&!Pe)throw new C(ke,he,Pe);return he|0}var Be=j((he,ke)=>{if(he!==void 0&&(he===null||typeof he!="object"||!("aborted"in he)))throw new S(ke,"AbortSignal",he)}),Ae=j((he,ke)=>{if(typeof he!="function")throw new S(ke,"Function",he)}),X=j((he,ke)=>{if(typeof he!="function"||D(he))throw new S(ke,"Function",he)}),ce=j((he,ke)=>{if(he!==void 0)throw new S(ke,"undefined",he)});function Se(he,ke,Pe){if(!c(Pe,he))throw new S(ke,`('${m(Pe,"|")}')`,he)}var Ue=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Me(he,ke){if(typeof he>"u"||!_(Ue,he))throw new O(ke,he,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function ze(he){if(typeof he=="string")return Me(he,"hints"),he;if(d(he)){let ke=he.length,Pe="";if(ke===0)return Pe;for(let xe=0;xe<ke;xe++){let tt=he[xe];Me(tt,"hints"),Pe+=tt,xe!==ke-1&&(Pe+=", ")}return Pe}throw new O("hints",he,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}y.exports={isInt32:R,isUint32:Y,parseFileMode:ae,validateArray:Q,validateStringArray:je,validateBooleanArray:ie,validateAbortSignalArray:K,validateBoolean:I,validateBuffer:ue,validateDictionary:ye,validateEncoding:de,validateFunction:Ae,validateInt32:W,validateInteger:ee,validateNumber:be,validateObject:G,validateOneOf:re,validatePlainFunction:X,validatePort:me,validateSignalName:ge,validateString:Z,validateUint32:V,validateUndefined:ce,validateUnion:Se,validateAbortSignal:Be,validateLinkHeaderValue:ze}}),Ni=Ie((f,y)=>{Ne(),Re(),Ce();var d=y.exports={},c,m;function o(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?c=setTimeout:c=o}catch{c=o}try{typeof clearTimeout=="function"?m=clearTimeout:m=l}catch{m=l}})();function u(C){if(c===setTimeout)return setTimeout(C,0);if((c===o||!c)&&setTimeout)return c=setTimeout,setTimeout(C,0);try{return c(C,0)}catch{try{return c.call(null,C,0)}catch{return c.call(this,C,0)}}}function i(C){if(m===clearTimeout)return clearTimeout(C);if((m===l||!m)&&clearTimeout)return m=clearTimeout,clearTimeout(C);try{return m(C)}catch{try{return m.call(null,C)}catch{return m.call(this,C)}}}var a=[],p=!1,b,_=-1;function w(){!p||!b||(p=!1,b.length?a=b.concat(a):_=-1,a.length&&A())}function A(){if(!p){var C=u(w);p=!0;for(var S=a.length;S;){for(b=a,a=[];++_<S;)b&&b[_].run();_=-1,S=a.length}b=null,p=!1,i(C)}}d.nextTick=function(C){var S=new Array(arguments.length-1);if(arguments.length>1)for(var O=1;O<arguments.length;O++)S[O-1]=arguments[O];a.push(new M(C,S)),a.length===1&&!p&&u(A)};function M(C,S){this.fun=C,this.array=S}M.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={};function j(){}d.on=j,d.addListener=j,d.once=j,d.off=j,d.removeListener=j,d.removeAllListeners=j,d.emit=j,d.prependListener=j,d.prependOnceListener=j,d.listeners=function(C){return[]},d.binding=function(C){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(C){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}}),xn=Ie((f,y)=>{Ne(),Re(),Ce();var{SymbolAsyncIterator:d,SymbolIterator:c,SymbolFor:m}=Lt(),o=m("nodejs.stream.destroyed"),l=m("nodejs.stream.errored"),u=m("nodejs.stream.readable"),i=m("nodejs.stream.writable"),a=m("nodejs.stream.disturbed"),p=m("nodejs.webstream.isClosedPromise"),b=m("nodejs.webstream.controllerErrorFunction");function _(U,G=!1){var ye;return!!(U&&typeof U.pipe=="function"&&typeof U.on=="function"&&(!G||typeof U.pause=="function"&&typeof U.resume=="function")&&(!U._writableState||((ye=U._readableState)===null||ye===void 0?void 0:ye.readable)!==!1)&&(!U._writableState||U._readableState))}function w(U){var G;return!!(U&&typeof U.write=="function"&&typeof U.on=="function"&&(!U._readableState||((G=U._writableState)===null||G===void 0?void 0:G.writable)!==!1))}function A(U){return!!(U&&typeof U.pipe=="function"&&U._readableState&&typeof U.on=="function"&&typeof U.write=="function")}function M(U){return U&&(U._readableState||U._writableState||typeof U.write=="function"&&typeof U.on=="function"||typeof U.pipe=="function"&&typeof U.on=="function")}function j(U){return!!(U&&!M(U)&&typeof U.pipeThrough=="function"&&typeof U.getReader=="function"&&typeof U.cancel=="function")}function C(U){return!!(U&&!M(U)&&typeof U.getWriter=="function"&&typeof U.abort=="function")}function S(U){return!!(U&&!M(U)&&typeof U.readable=="object"&&typeof U.writable=="object")}function O(U){return j(U)||C(U)||S(U)}function N(U,G){return U==null?!1:G===!0?typeof U[d]=="function":G===!1?typeof U[c]=="function":typeof U[d]=="function"||typeof U[c]=="function"}function T(U){if(!M(U))return null;let G=U._writableState,ye=U._readableState,Q=G||ye;return!!(U.destroyed||U[o]||Q!=null&&Q.destroyed)}function H(U){if(!w(U))return null;if(U.writableEnded===!0)return!0;let G=U._writableState;return G!=null&&G.errored?!1:typeof(G==null?void 0:G.ended)!="boolean"?null:G.ended}function D(U,G){if(!w(U))return null;if(U.writableFinished===!0)return!0;let ye=U._writableState;return ye!=null&&ye.errored?!1:typeof(ye==null?void 0:ye.finished)!="boolean"?null:!!(ye.finished||G===!1&&ye.ended===!0&&ye.length===0)}function k(U){if(!_(U))return null;if(U.readableEnded===!0)return!0;let G=U._readableState;return!G||G.errored?!1:typeof(G==null?void 0:G.ended)!="boolean"?null:G.ended}function z(U,G){if(!_(U))return null;let ye=U._readableState;return ye!=null&&ye.errored?!1:typeof(ye==null?void 0:ye.endEmitted)!="boolean"?null:!!(ye.endEmitted||G===!1&&ye.ended===!0&&ye.length===0)}function R(U){return U&&U[u]!=null?U[u]:typeof(U==null?void 0:U.readable)!="boolean"?null:T(U)?!1:_(U)&&U.readable&&!z(U)}function Y(U){return U&&U[i]!=null?U[i]:typeof(U==null?void 0:U.writable)!="boolean"?null:T(U)?!1:w(U)&&U.writable&&!H(U)}function B(U,G){return M(U)?T(U)?!0:!((G==null?void 0:G.readable)!==!1&&R(U)||(G==null?void 0:G.writable)!==!1&&Y(U)):null}function te(U){var G,ye;return M(U)?U.writableErrored?U.writableErrored:(G=(ye=U._writableState)===null||ye===void 0?void 0:ye.errored)!==null&&G!==void 0?G:null:null}function ae(U){var G,ye;return M(U)?U.readableErrored?U.readableErrored:(G=(ye=U._readableState)===null||ye===void 0?void 0:ye.errored)!==null&&G!==void 0?G:null:null}function ee(U){if(!M(U))return null;if(typeof U.closed=="boolean")return U.closed;let G=U._writableState,ye=U._readableState;return typeof(G==null?void 0:G.closed)=="boolean"||typeof(ye==null?void 0:ye.closed)=="boolean"?(G==null?void 0:G.closed)||(ye==null?void 0:ye.closed):typeof U._closed=="boolean"&&W(U)?U._closed:null}function W(U){return typeof U._closed=="boolean"&&typeof U._defaultKeepAlive=="boolean"&&typeof U._removedConnection=="boolean"&&typeof U._removedContLen=="boolean"}function V(U){return typeof U._sent100=="boolean"&&W(U)}function Z(U){var G;return typeof U._consuming=="boolean"&&typeof U._dumped=="boolean"&&((G=U.req)===null||G===void 0?void 0:G.upgradeOrConnect)===void 0}function be(U){if(!M(U))return null;let G=U._writableState,ye=U._readableState,Q=G||ye;return!Q&&V(U)||!!(Q&&Q.autoDestroy&&Q.emitClose&&Q.closed===!1)}function re(U){var G;return!!(U&&((G=U[a])!==null&&G!==void 0?G:U.readableDidRead||U.readableAborted))}function I(U){var G,ye,Q,je,ie,K,ge,ue,de,me;return!!(U&&((G=(ye=(Q=(je=(ie=(K=U[l])!==null&&K!==void 0?K:U.readableErrored)!==null&&ie!==void 0?ie:U.writableErrored)!==null&&je!==void 0?je:(ge=U._readableState)===null||ge===void 0?void 0:ge.errorEmitted)!==null&&Q!==void 0?Q:(ue=U._writableState)===null||ue===void 0?void 0:ue.errorEmitted)!==null&&ye!==void 0?ye:(de=U._readableState)===null||de===void 0?void 0:de.errored)!==null&&G!==void 0?G:!((me=U._writableState)===null||me===void 0)&&me.errored))}y.exports={isDestroyed:T,kIsDestroyed:o,isDisturbed:re,kIsDisturbed:a,isErrored:I,kIsErrored:l,isReadable:R,kIsReadable:u,kIsClosedPromise:p,kControllerErrorFunction:b,kIsWritable:i,isClosed:ee,isDuplexNodeStream:A,isFinished:B,isIterable:N,isReadableNodeStream:_,isReadableStream:j,isReadableEnded:k,isReadableFinished:z,isReadableErrored:ae,isNodeStream:M,isWebStream:O,isWritable:Y,isWritableNodeStream:w,isWritableStream:C,isWritableEnded:H,isWritableFinished:D,isWritableErrored:te,isServerRequest:Z,isServerResponse:V,willEmitClose:be,isTransformStream:S}}),oi=Ie((f,y)=>{Ne(),Re(),Ce();var d=Ni(),{AbortError:c,codes:m}=dr(),{ERR_INVALID_ARG_TYPE:o,ERR_STREAM_PREMATURE_CLOSE:l}=m,{kEmptyObject:u,once:i}=Ar(),{validateAbortSignal:a,validateFunction:p,validateObject:b,validateBoolean:_}=_l(),{Promise:w,PromisePrototypeThen:A,SymbolDispose:M}=Lt(),{isClosed:j,isReadable:C,isReadableNodeStream:S,isReadableStream:O,isReadableFinished:N,isReadableErrored:T,isWritable:H,isWritableNodeStream:D,isWritableStream:k,isWritableFinished:z,isWritableErrored:R,isNodeStream:Y,willEmitClose:B,kIsClosedPromise:te}=xn(),ae;function ee(re){return re.setHeader&&typeof re.abort=="function"}var W=()=>{};function V(re,I,U){var G,ye;if(arguments.length===2?(U=I,I=u):I==null?I=u:b(I,"options"),p(U,"callback"),a(I.signal,"options.signal"),U=i(U),O(re)||k(re))return Z(re,I,U);if(!Y(re))throw new o("stream",["ReadableStream","WritableStream","Stream"],re);let Q=(G=I.readable)!==null&&G!==void 0?G:S(re),je=(ye=I.writable)!==null&&ye!==void 0?ye:D(re),ie=re._writableState,K=re._readableState,ge=()=>{re.writable||me()},ue=B(re)&&S(re)===Q&&D(re)===je,de=z(re,!1),me=()=>{de=!0,re.destroyed&&(ue=!1),!(ue&&(!re.readable||Q))&&(!Q||Be)&&U.call(re)},Be=N(re,!1),Ae=()=>{Be=!0,re.destroyed&&(ue=!1),!(ue&&(!re.writable||je))&&(!je||de)&&U.call(re)},X=he=>{U.call(re,he)},ce=j(re),Se=()=>{ce=!0;let he=R(re)||T(re);if(he&&typeof he!="boolean")return U.call(re,he);if(Q&&!Be&&S(re,!0)&&!N(re,!1))return U.call(re,new l);if(je&&!de&&!z(re,!1))return U.call(re,new l);U.call(re)},Ue=()=>{ce=!0;let he=R(re)||T(re);if(he&&typeof he!="boolean")return U.call(re,he);U.call(re)},Me=()=>{re.req.on("finish",me)};ee(re)?(re.on("complete",me),ue||re.on("abort",Se),re.req?Me():re.on("request",Me)):je&&!ie&&(re.on("end",ge),re.on("close",ge)),!ue&&typeof re.aborted=="boolean"&&re.on("aborted",Se),re.on("end",Ae),re.on("finish",me),I.error!==!1&&re.on("error",X),re.on("close",Se),ce?d.nextTick(Se):ie!=null&&ie.errorEmitted||K!=null&&K.errorEmitted?ue||d.nextTick(Ue):(!Q&&(!ue||C(re))&&(de||H(re)===!1)||!je&&(!ue||H(re))&&(Be||C(re)===!1)||K&&re.req&&re.aborted)&&d.nextTick(Ue);let ze=()=>{U=W,re.removeListener("aborted",Se),re.removeListener("complete",me),re.removeListener("abort",Se),re.removeListener("request",Me),re.req&&re.req.removeListener("finish",me),re.removeListener("end",ge),re.removeListener("close",ge),re.removeListener("finish",me),re.removeListener("end",Ae),re.removeListener("error",X),re.removeListener("close",Se)};if(I.signal&&!ce){let he=()=>{let ke=U;ze(),ke.call(re,new c(void 0,{cause:I.signal.reason}))};if(I.signal.aborted)d.nextTick(he);else{ae=ae||Ar().addAbortListener;let ke=ae(I.signal,he),Pe=U;U=i((...xe)=>{ke[M](),Pe.apply(re,xe)})}}return ze}function Z(re,I,U){let G=!1,ye=W;if(I.signal)if(ye=()=>{G=!0,U.call(re,new c(void 0,{cause:I.signal.reason}))},I.signal.aborted)d.nextTick(ye);else{ae=ae||Ar().addAbortListener;let je=ae(I.signal,ye),ie=U;U=i((...K)=>{je[M](),ie.apply(re,K)})}let Q=(...je)=>{G||d.nextTick(()=>U.apply(re,je))};return A(re[te].promise,Q,Q),W}function be(re,I){var U;let G=!1;return I===null&&(I=u),(U=I)!==null&&U!==void 0&&U.cleanup&&(_(I.cleanup,"cleanup"),G=I.cleanup),new w((ye,Q)=>{let je=V(re,I,ie=>{G&&je(),ie?Q(ie):ye()})})}y.exports=V,y.exports.finished=be}),_a=Ie((f,y)=>{Ne(),Re(),Ce();var d=Ni(),{aggregateTwoErrors:c,codes:{ERR_MULTIPLE_CALLBACK:m},AbortError:o}=dr(),{Symbol:l}=Lt(),{kIsDestroyed:u,isDestroyed:i,isFinished:a,isServerRequest:p}=xn(),b=l("kDestroy"),_=l("kConstruct");function w(B,te,ae){B&&(B.stack,te&&!te.errored&&(te.errored=B),ae&&!ae.errored&&(ae.errored=B))}function A(B,te){let ae=this._readableState,ee=this._writableState,W=ee||ae;return ee!=null&&ee.destroyed||ae!=null&&ae.destroyed?(typeof te=="function"&&te(),this):(w(B,ee,ae),ee&&(ee.destroyed=!0),ae&&(ae.destroyed=!0),W.constructed?M(this,B,te):this.once(b,function(V){M(this,c(V,B),te)}),this)}function M(B,te,ae){let ee=!1;function W(V){if(ee)return;ee=!0;let Z=B._readableState,be=B._writableState;w(V,be,Z),be&&(be.closed=!0),Z&&(Z.closed=!0),typeof ae=="function"&&ae(V),V?d.nextTick(j,B,V):d.nextTick(C,B)}try{B._destroy(te||null,W)}catch(V){W(V)}}function j(B,te){S(B,te),C(B)}function C(B){let te=B._readableState,ae=B._writableState;ae&&(ae.closeEmitted=!0),te&&(te.closeEmitted=!0),(ae!=null&&ae.emitClose||te!=null&&te.emitClose)&&B.emit("close")}function S(B,te){let ae=B._readableState,ee=B._writableState;ee!=null&&ee.errorEmitted||ae!=null&&ae.errorEmitted||(ee&&(ee.errorEmitted=!0),ae&&(ae.errorEmitted=!0),B.emit("error",te))}function O(){let B=this._readableState,te=this._writableState;B&&(B.constructed=!0,B.closed=!1,B.closeEmitted=!1,B.destroyed=!1,B.errored=null,B.errorEmitted=!1,B.reading=!1,B.ended=B.readable===!1,B.endEmitted=B.readable===!1),te&&(te.constructed=!0,te.destroyed=!1,te.closed=!1,te.closeEmitted=!1,te.errored=null,te.errorEmitted=!1,te.finalCalled=!1,te.prefinished=!1,te.ended=te.writable===!1,te.ending=te.writable===!1,te.finished=te.writable===!1)}function N(B,te,ae){let ee=B._readableState,W=B._writableState;if(W!=null&&W.destroyed||ee!=null&&ee.destroyed)return this;ee!=null&&ee.autoDestroy||W!=null&&W.autoDestroy?B.destroy(te):te&&(te.stack,W&&!W.errored&&(W.errored=te),ee&&!ee.errored&&(ee.errored=te),ae?d.nextTick(S,B,te):S(B,te))}function T(B,te){if(typeof B._construct!="function")return;let ae=B._readableState,ee=B._writableState;ae&&(ae.constructed=!1),ee&&(ee.constructed=!1),B.once(_,te),!(B.listenerCount(_)>1)&&d.nextTick(H,B)}function H(B){let te=!1;function ae(ee){if(te){N(B,ee??new m);return}te=!0;let W=B._readableState,V=B._writableState,Z=V||W;W&&(W.constructed=!0),V&&(V.constructed=!0),Z.destroyed?B.emit(b,ee):ee?N(B,ee,!0):d.nextTick(D,B)}try{B._construct(ee=>{d.nextTick(ae,ee)})}catch(ee){d.nextTick(ae,ee)}}function D(B){B.emit(_)}function k(B){return(B==null?void 0:B.setHeader)&&typeof B.abort=="function"}function z(B){B.emit("close")}function R(B,te){B.emit("error",te),d.nextTick(z,B)}function Y(B,te){!B||i(B)||(!te&&!a(B)&&(te=new o),p(B)?(B.socket=null,B.destroy(te)):k(B)?B.abort():k(B.req)?B.req.abort():typeof B.destroy=="function"?B.destroy(te):typeof B.close=="function"?B.close():te?d.nextTick(R,B,te):d.nextTick(z,B),B.destroyed||(B[u]=!0))}y.exports={construct:T,destroyer:Y,destroy:A,undestroy:O,errorOrDestroy:N}}),Qh=Ie((f,y)=>{Ne(),Re(),Ce();var{ArrayIsArray:d,ObjectSetPrototypeOf:c}=Lt(),{EventEmitter:m}=(Mi(),Ot(li));function o(u){m.call(this,u)}c(o.prototype,m.prototype),c(o,m),o.prototype.pipe=function(u,i){let a=this;function p(C){u.writable&&u.write(C)===!1&&a.pause&&a.pause()}a.on("data",p);function b(){a.readable&&a.resume&&a.resume()}u.on("drain",b),!u._isStdio&&(!i||i.end!==!1)&&(a.on("end",w),a.on("close",A));let _=!1;function w(){_||(_=!0,u.end())}function A(){_||(_=!0,typeof u.destroy=="function"&&u.destroy())}function M(C){j(),m.listenerCount(this,"error")===0&&this.emit("error",C)}l(a,"error",M),l(u,"error",M);function j(){a.removeListener("data",p),u.removeListener("drain",b),a.removeListener("end",w),a.removeListener("close",A),a.removeListener("error",M),u.removeListener("error",M),a.removeListener("end",j),a.removeListener("close",j),u.removeListener("close",j)}return a.on("end",j),a.on("close",j),u.on("close",j),u.emit("pipe",a),u};function l(u,i,a){if(typeof u.prependListener=="function")return u.prependListener(i,a);!u._events||!u._events[i]?u.on(i,a):d(u._events[i])?u._events[i].unshift(a):u._events[i]=[a,u._events[i]]}y.exports={Stream:o,prependListener:l}}),ps=Ie((f,y)=>{Ne(),Re(),Ce();var{SymbolDispose:d}=Lt(),{AbortError:c,codes:m}=dr(),{isNodeStream:o,isWebStream:l,kControllerErrorFunction:u}=xn(),i=oi(),{ERR_INVALID_ARG_TYPE:a}=m,p,b=(_,w)=>{if(typeof _!="object"||!("aborted"in _))throw new a(w,"AbortSignal",_)};y.exports.addAbortSignal=function(_,w){if(b(_,"signal"),!o(w)&&!l(w))throw new a("stream",["ReadableStream","WritableStream","Stream"],w);return y.exports.addAbortSignalNoValidate(_,w)},y.exports.addAbortSignalNoValidate=function(_,w){if(typeof _!="object"||!("aborted"in _))return w;let A=o(w)?()=>{w.destroy(new c(void 0,{cause:_.reason}))}:()=>{w[u](new c(void 0,{cause:_.reason}))};if(_.aborted)A();else{p=p||Ar().addAbortListener;let M=p(_,A);i(w,M[d])}return w}}),rS=Ie((f,y)=>{Ne(),Re(),Ce();var{StringPrototypeSlice:d,SymbolIterator:c,TypedArrayPrototypeSet:m,Uint8Array:o}=Lt(),{Buffer:l}=(tr(),Ot(er)),{inspect:u}=Ar();y.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(i){let a={data:i,next:null};this.length>0?this.tail.next=a:this.head=a,this.tail=a,++this.length}unshift(i){let a={data:i,next:this.head};this.length===0&&(this.tail=a),this.head=a,++this.length}shift(){if(this.length===0)return;let i=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,i}clear(){this.head=this.tail=null,this.length=0}join(i){if(this.length===0)return"";let a=this.head,p=""+a.data;for(;(a=a.next)!==null;)p+=i+a.data;return p}concat(i){if(this.length===0)return l.alloc(0);let a=l.allocUnsafe(i>>>0),p=this.head,b=0;for(;p;)m(a,p.data,b),b+=p.data.length,p=p.next;return a}consume(i,a){let p=this.head.data;if(i<p.length){let b=p.slice(0,i);return this.head.data=p.slice(i),b}return i===p.length?this.shift():a?this._getString(i):this._getBuffer(i)}first(){return this.head.data}*[c](){for(let i=this.head;i;i=i.next)yield i.data}_getString(i){let a="",p=this.head,b=0;do{let _=p.data;if(i>_.length)a+=_,i-=_.length;else{i===_.length?(a+=_,++b,p.next?this.head=p.next:this.head=this.tail=null):(a+=d(_,0,i),this.head=p,p.data=d(_,i));break}++b}while((p=p.next)!==null);return this.length-=b,a}_getBuffer(i){let a=l.allocUnsafe(i),p=i,b=this.head,_=0;do{let w=b.data;if(i>w.length)m(a,w,p-i),i-=w.length;else{i===w.length?(m(a,w,p-i),++_,b.next?this.head=b.next:this.head=this.tail=null):(m(a,new o(w.buffer,w.byteOffset,i),p-i),this.head=b,b.data=w.slice(i));break}++_}while((b=b.next)!==null);return this.length-=_,a}[Symbol.for("nodejs.util.inspect.custom")](i,a){return u(this,{...a,depth:0,customInspect:!1})}}}),ys=Ie((f,y)=>{Ne(),Re(),Ce();var{MathFloor:d,NumberIsInteger:c}=Lt(),{validateInteger:m}=_l(),{ERR_INVALID_ARG_VALUE:o}=dr().codes,l=16*1024,u=16;function i(_,w,A){return _.highWaterMark!=null?_.highWaterMark:w?_[A]:null}function a(_){return _?u:l}function p(_,w){m(w,"value",0),_?u=w:l=w}function b(_,w,A,M){let j=i(w,M,A);if(j!=null){if(!c(j)||j<0){let C=M?`options.${A}`:"options.highWaterMark";throw new o(C,j)}return d(j)}return a(_.objectMode)}y.exports={getHighWaterMark:b,getDefaultHighWaterMark:a,setDefaultHighWaterMark:p}}),nS=Ie((f,y)=>{Ne(),Re(),Ce();var d=(tr(),Ot(er)),c=d.Buffer;function m(l,u){for(var i in l)u[i]=l[i]}c.from&&c.alloc&&c.allocUnsafe&&c.allocUnsafeSlow?y.exports=d:(m(d,f),f.Buffer=o);function o(l,u,i){return c(l,u,i)}o.prototype=Object.create(c.prototype),m(c,o),o.from=function(l,u,i){if(typeof l=="number")throw new TypeError("Argument must not be a number");return c(l,u,i)},o.alloc=function(l,u,i){if(typeof l!="number")throw new TypeError("Argument must be a number");var a=c(l);return u!==void 0?typeof i=="string"?a.fill(u,i):a.fill(u):a.fill(0),a},o.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return c(l)},o.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return d.SlowBuffer(l)}}),iS=Ie(f=>{Ne(),Re(),Ce();var y=nS().Buffer,d=y.isEncoding||function(S){switch(S=""+S,S&&S.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 c(S){if(!S)return"utf8";for(var O;;)switch(S){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 S;default:if(O)return;S=(""+S).toLowerCase(),O=!0}}function m(S){var O=c(S);if(typeof O!="string"&&(y.isEncoding===d||!d(S)))throw new Error("Unknown encoding: "+S);return O||S}f.StringDecoder=o;function o(S){this.encoding=m(S);var O;switch(this.encoding){case"utf16le":this.text=_,this.end=w,O=4;break;case"utf8":this.fillLast=a,O=4;break;case"base64":this.text=A,this.end=M,O=3;break;default:this.write=j,this.end=C;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=y.allocUnsafe(O)}o.prototype.write=function(S){if(S.length===0)return"";var O,N;if(this.lastNeed){if(O=this.fillLast(S),O===void 0)return"";N=this.lastNeed,this.lastNeed=0}else N=0;return N<S.length?O?O+this.text(S,N):this.text(S,N):O||""},o.prototype.end=b,o.prototype.text=p,o.prototype.fillLast=function(S){if(this.lastNeed<=S.length)return S.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);S.copy(this.lastChar,this.lastTotal-this.lastNeed,0,S.length),this.lastNeed-=S.length};function l(S){return S<=127?0:S>>5===6?2:S>>4===14?3:S>>3===30?4:S>>6===2?-1:-2}function u(S,O,N){var T=O.length-1;if(T<N)return 0;var H=l(O[T]);return H>=0?(H>0&&(S.lastNeed=H-1),H):--T<N||H===-2?0:(H=l(O[T]),H>=0?(H>0&&(S.lastNeed=H-2),H):--T<N||H===-2?0:(H=l(O[T]),H>=0?(H>0&&(H===2?H=0:S.lastNeed=H-3),H):0))}function i(S,O,N){if((O[0]&192)!==128)return S.lastNeed=0,"�";if(S.lastNeed>1&&O.length>1){if((O[1]&192)!==128)return S.lastNeed=1,"�";if(S.lastNeed>2&&O.length>2&&(O[2]&192)!==128)return S.lastNeed=2,"�"}}function a(S){var O=this.lastTotal-this.lastNeed,N=i(this,S);if(N!==void 0)return N;if(this.lastNeed<=S.length)return S.copy(this.lastChar,O,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);S.copy(this.lastChar,O,0,S.length),this.lastNeed-=S.length}function p(S,O){var N=u(this,S,O);if(!this.lastNeed)return S.toString("utf8",O);this.lastTotal=N;var T=S.length-(N-this.lastNeed);return S.copy(this.lastChar,0,T),S.toString("utf8",O,T)}function b(S){var O=S&&S.length?this.write(S):"";return this.lastNeed?O+"�":O}function _(S,O){if((S.length-O)%2===0){var N=S.toString("utf16le",O);if(N){var T=N.charCodeAt(N.length-1);if(T>=55296&&T<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=S[S.length-2],this.lastChar[1]=S[S.length-1],N.slice(0,-1)}return N}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=S[S.length-1],S.toString("utf16le",O,S.length-1)}function w(S){var O=S&&S.length?this.write(S):"";if(this.lastNeed){var N=this.lastTotal-this.lastNeed;return O+this.lastChar.toString("utf16le",0,N)}return O}function A(S,O){var N=(S.length-O)%3;return N===0?S.toString("base64",O):(this.lastNeed=3-N,this.lastTotal=3,N===1?this.lastChar[0]=S[S.length-1]:(this.lastChar[0]=S[S.length-2],this.lastChar[1]=S[S.length-1]),S.toString("base64",O,S.length-N))}function M(S){var O=S&&S.length?this.write(S):"";return this.lastNeed?O+this.lastChar.toString("base64",0,3-this.lastNeed):O}function j(S){return S.toString(this.encoding)}function C(S){return S&&S.length?this.write(S):""}}),zb=Ie((f,y)=>{Ne(),Re(),Ce();var d=Ni(),{PromisePrototypeThen:c,SymbolAsyncIterator:m,SymbolIterator:o}=Lt(),{Buffer:l}=(tr(),Ot(er)),{ERR_INVALID_ARG_TYPE:u,ERR_STREAM_NULL_VALUES:i}=dr().codes;function a(p,b,_){let w;if(typeof b=="string"||b instanceof l)return new p({objectMode:!0,..._,read(){this.push(b),this.push(null)}});let A;if(b&&b[m])A=!0,w=b[m]();else if(b&&b[o])A=!1,w=b[o]();else throw new u("iterable",["Iterable"],b);let M=new p({objectMode:!0,highWaterMark:1,..._}),j=!1;M._read=function(){j||(j=!0,S())},M._destroy=function(O,N){c(C(O),()=>d.nextTick(N,O),T=>d.nextTick(N,T||O))};async function C(O){let N=O!=null,T=typeof w.throw=="function";if(N&&T){let{value:H,done:D}=await w.throw(O);if(await H,D)return}if(typeof w.return=="function"){let{value:H}=await w.return();await H}}async function S(){for(;;){try{let{value:O,done:N}=A?await w.next():w.next();if(N)M.push(null);else{let T=O&&typeof O.then=="function"?await O:O;if(T===null)throw j=!1,new i;if(M.push(T))continue;j=!1}}catch(O){M.destroy(O)}break}}return M}y.exports=a}),ms=Ie((f,y)=>{Ne(),Re(),Ce();var d=Ni(),{ArrayPrototypeIndexOf:c,NumberIsInteger:m,NumberIsNaN:o,NumberParseInt:l,ObjectDefineProperties:u,ObjectKeys:i,ObjectSetPrototypeOf:a,Promise:p,SafeSet:b,SymbolAsyncDispose:_,SymbolAsyncIterator:w,Symbol:A}=Lt();y.exports=xe,xe.ReadableState=Pe;var{EventEmitter:M}=(Mi(),Ot(li)),{Stream:j,prependListener:C}=Qh(),{Buffer:S}=(tr(),Ot(er)),{addAbortSignal:O}=ps(),N=oi(),T=Ar().debuglog("stream",P=>{T=P}),H=rS(),D=_a(),{getHighWaterMark:k,getDefaultHighWaterMark:z}=ys(),{aggregateTwoErrors:R,codes:{ERR_INVALID_ARG_TYPE:Y,ERR_METHOD_NOT_IMPLEMENTED:B,ERR_OUT_OF_RANGE:te,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:ee},AbortError:W}=dr(),{validateObject:V}=_l(),Z=A("kPaused"),{StringDecoder:be}=iS(),re=zb();a(xe.prototype,j.prototype),a(xe,j);var I=()=>{},{errorOrDestroy:U}=D,G=1,ye=2,Q=4,je=8,ie=16,K=32,ge=64,ue=128,de=256,me=512,Be=1024,Ae=2048,X=4096,ce=8192,Se=16384,Ue=32768,Me=65536,ze=1<<17,he=1<<18;function ke(P){return{enumerable:!1,get(){return(this.state&P)!==0},set($){$?this.state|=P:this.state&=~P}}}u(Pe.prototype,{objectMode:ke(G),ended:ke(ye),endEmitted:ke(Q),reading:ke(je),constructed:ke(ie),sync:ke(K),needReadable:ke(ge),emittedReadable:ke(ue),readableListening:ke(de),resumeScheduled:ke(me),errorEmitted:ke(Be),emitClose:ke(Ae),autoDestroy:ke(X),destroyed:ke(ce),closed:ke(Se),closeEmitted:ke(Ue),multiAwaitDrain:ke(Me),readingMore:ke(ze),dataEmitted:ke(he)});function Pe(P,$,He){typeof He!="boolean"&&(He=$ instanceof An()),this.state=Ae|X|ie|K,P&&P.objectMode&&(this.state|=G),He&&P&&P.readableObjectMode&&(this.state|=G),this.highWaterMark=P?k(this,P,"readableHighWaterMark",He):z(!1),this.buffer=new H,this.length=0,this.pipes=[],this.flowing=null,this[Z]=null,P&&P.emitClose===!1&&(this.state&=~Ae),P&&P.autoDestroy===!1&&(this.state&=~X),this.errored=null,this.defaultEncoding=P&&P.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,P&&P.encoding&&(this.decoder=new be(P.encoding),this.encoding=P.encoding)}function xe(P){if(!(this instanceof xe))return new xe(P);let $=this instanceof An();this._readableState=new Pe(P,this,$),P&&(typeof P.read=="function"&&(this._read=P.read),typeof P.destroy=="function"&&(this._destroy=P.destroy),typeof P.construct=="function"&&(this._construct=P.construct),P.signal&&!$&&O(P.signal,this)),j.call(this,P),D.construct(this,()=>{this._readableState.needReadable&&ne(this,this._readableState)})}xe.prototype.destroy=D.destroy,xe.prototype._undestroy=D.undestroy,xe.prototype._destroy=function(P,$){$(P)},xe.prototype[M.captureRejectionSymbol]=function(P){this.destroy(P)},xe.prototype[_]=function(){let P;return this.destroyed||(P=this.readableEnded?null:new W,this.destroy(P)),new p(($,He)=>N(this,Ve=>Ve&&Ve!==P?He(Ve):$(null)))},xe.prototype.push=function(P,$){return tt(this,P,$,!1)},xe.prototype.unshift=function(P,$){return tt(this,P,$,!0)};function tt(P,$,He,Ve){T("readableAddChunk",$);let Fe=P._readableState,It;if((Fe.state&G)===0&&(typeof $=="string"?(He=He||Fe.defaultEncoding,Fe.encoding!==He&&(Ve&&Fe.encoding?$=S.from($,He).toString(Fe.encoding):($=S.from($,He),He=""))):$ instanceof S?He="":j._isUint8Array($)?($=j._uint8ArrayToBuffer($),He=""):$!=null&&(It=new Y("chunk",["string","Buffer","Uint8Array"],$))),It)U(P,It);else if($===null)Fe.state&=~je,F(P,Fe);else if((Fe.state&G)!==0||$&&$.length>0)if(Ve)if((Fe.state&Q)!==0)U(P,new ee);else{if(Fe.destroyed||Fe.errored)return!1;g(P,Fe,$,!0)}else if(Fe.ended)U(P,new ae);else{if(Fe.destroyed||Fe.errored)return!1;Fe.state&=~je,Fe.decoder&&!He?($=Fe.decoder.write($),Fe.objectMode||$.length!==0?g(P,Fe,$,!1):ne(P,Fe)):g(P,Fe,$,!1)}else Ve||(Fe.state&=~je,ne(P,Fe));return!Fe.ended&&(Fe.length<Fe.highWaterMark||Fe.length===0)}function g(P,$,He,Ve){$.flowing&&$.length===0&&!$.sync&&P.listenerCount("data")>0?(($.state&Me)!==0?$.awaitDrainWriters.clear():$.awaitDrainWriters=null,$.dataEmitted=!0,P.emit("data",He)):($.length+=$.objectMode?1:He.length,Ve?$.buffer.unshift(He):$.buffer.push(He),($.state&ge)!==0&&se(P)),ne(P,$)}xe.prototype.isPaused=function(){let P=this._readableState;return P[Z]===!0||P.flowing===!1},xe.prototype.setEncoding=function(P){let $=new be(P);this._readableState.decoder=$,this._readableState.encoding=this._readableState.decoder.encoding;let He=this._readableState.buffer,Ve="";for(let Fe of He)Ve+=$.write(Fe);return He.clear(),Ve!==""&&He.push(Ve),this._readableState.length=Ve.length,this};var v=1073741824;function E(P){if(P>v)throw new te("size","<= 1GiB",P);return P--,P|=P>>>1,P|=P>>>2,P|=P>>>4,P|=P>>>8,P|=P>>>16,P++,P}function L(P,$){return P<=0||$.length===0&&$.ended?0:($.state&G)!==0?1:o(P)?$.flowing&&$.length?$.buffer.first().length:$.length:P<=$.length?P:$.ended?$.length:0}xe.prototype.read=function(P){T("read",P),P===void 0?P=NaN:m(P)||(P=l(P,10));let $=this._readableState,He=P;if(P>$.highWaterMark&&($.highWaterMark=E(P)),P!==0&&($.state&=~ue),P===0&&$.needReadable&&(($.highWaterMark!==0?$.length>=$.highWaterMark:$.length>0)||$.ended))return T("read: emitReadable",$.length,$.ended),$.length===0&&$.ended?ut(this):se(this),null;if(P=L(P,$),P===0&&$.ended)return $.length===0&&ut(this),null;let Ve=($.state&ge)!==0;if(T("need readable",Ve),($.length===0||$.length-P<$.highWaterMark)&&(Ve=!0,T("length less than watermark",Ve)),$.ended||$.reading||$.destroyed||$.errored||!$.constructed)Ve=!1,T("reading, ended or constructing",Ve);else if(Ve){T("do read"),$.state|=je|K,$.length===0&&($.state|=ge);try{this._read($.highWaterMark)}catch(It){U(this,It)}$.state&=~K,$.reading||(P=L(He,$))}let Fe;return P>0?Fe=$e(P,$):Fe=null,Fe===null?($.needReadable=$.length<=$.highWaterMark,P=0):($.length-=P,$.multiAwaitDrain?$.awaitDrainWriters.clear():$.awaitDrainWriters=null),$.length===0&&($.ended||($.needReadable=!0),He!==P&&$.ended&&ut(this)),Fe!==null&&!$.errorEmitted&&!$.closeEmitted&&($.dataEmitted=!0,this.emit("data",Fe)),Fe};function F(P,$){if(T("onEofChunk"),!$.ended){if($.decoder){let He=$.decoder.end();He&&He.length&&($.buffer.push(He),$.length+=$.objectMode?1:He.length)}$.ended=!0,$.sync?se(P):($.needReadable=!1,$.emittedReadable=!0,_e(P))}}function se(P){let $=P._readableState;T("emitReadable",$.needReadable,$.emittedReadable),$.needReadable=!1,$.emittedReadable||(T("emitReadable",$.flowing),$.emittedReadable=!0,d.nextTick(_e,P))}function _e(P){let $=P._readableState;T("emitReadable_",$.destroyed,$.length,$.ended),!$.destroyed&&!$.errored&&($.length||$.ended)&&(P.emit("readable"),$.emittedReadable=!1),$.needReadable=!$.flowing&&!$.ended&&$.length<=$.highWaterMark,Mt(P)}function ne(P,$){!$.readingMore&&$.constructed&&($.readingMore=!0,d.nextTick(le,P,$))}function le(P,$){for(;!$.reading&&!$.ended&&($.length<$.highWaterMark||$.flowing&&$.length===0);){let He=$.length;if(T("maybeReadMore read 0"),P.read(0),He===$.length)break}$.readingMore=!1}xe.prototype._read=function(P){throw new B("_read()")},xe.prototype.pipe=function(P,$){let He=this,Ve=this._readableState;Ve.pipes.length===1&&(Ve.multiAwaitDrain||(Ve.multiAwaitDrain=!0,Ve.awaitDrainWriters=new b(Ve.awaitDrainWriters?[Ve.awaitDrainWriters]:[]))),Ve.pipes.push(P),T("pipe count=%d opts=%j",Ve.pipes.length,$);let Fe=(!$||$.end!==!1)&&P!==d.stdout&&P!==d.stderr?Wt:en;Ve.endEmitted?d.nextTick(Fe):He.once("end",Fe),P.on("unpipe",It);function It(xr,fr){T("onunpipe"),xr===He&&fr&&fr.hasUnpiped===!1&&(fr.hasUnpiped=!0,yr())}function Wt(){T("onend"),P.end()}let pr,Mn=!1;function yr(){T("cleanup"),P.removeListener("close",gr),P.removeListener("finish",Kr),pr&&P.removeListener("drain",pr),P.removeListener("error",mr),P.removeListener("unpipe",It),He.removeListener("end",Wt),He.removeListener("end",en),He.removeListener("data",Xt),Mn=!0,pr&&Ve.awaitDrainWriters&&(!P._writableState||P._writableState.needDrain)&&pr()}function zt(){Mn||(Ve.pipes.length===1&&Ve.pipes[0]===P?(T("false write response, pause",0),Ve.awaitDrainWriters=P,Ve.multiAwaitDrain=!1):Ve.pipes.length>1&&Ve.pipes.includes(P)&&(T("false write response, pause",Ve.awaitDrainWriters.size),Ve.awaitDrainWriters.add(P)),He.pause()),pr||(pr=Ge(He,P),P.on("drain",pr))}He.on("data",Xt);function Xt(xr){T("ondata");let fr=P.write(xr);T("dest.write",fr),fr===!1&&zt()}function mr(xr){if(T("onerror",xr),en(),P.removeListener("error",mr),P.listenerCount("error")===0){let fr=P._writableState||P._readableState;fr&&!fr.errorEmitted?U(P,xr):P.emit("error",xr)}}C(P,"error",mr);function gr(){P.removeListener("finish",Kr),en()}P.once("close",gr);function Kr(){T("onfinish"),P.removeListener("close",gr),en()}P.once("finish",Kr);function en(){T("unpipe"),He.unpipe(P)}return P.emit("pipe",He),P.writableNeedDrain===!0?zt():Ve.flowing||(T("pipe resume"),He.resume()),P};function Ge(P,$){return function(){let He=P._readableState;He.awaitDrainWriters===$?(T("pipeOnDrain",1),He.awaitDrainWriters=null):He.multiAwaitDrain&&(T("pipeOnDrain",He.awaitDrainWriters.size),He.awaitDrainWriters.delete($)),(!He.awaitDrainWriters||He.awaitDrainWriters.size===0)&&P.listenerCount("data")&&P.resume()}}xe.prototype.unpipe=function(P){let $=this._readableState,He={hasUnpiped:!1};if($.pipes.length===0)return this;if(!P){let Fe=$.pipes;$.pipes=[],this.pause();for(let It=0;It<Fe.length;It++)Fe[It].emit("unpipe",this,{hasUnpiped:!1});return this}let Ve=c($.pipes,P);return Ve===-1?this:($.pipes.splice(Ve,1),$.pipes.length===0&&this.pause(),P.emit("unpipe",this,He),this)},xe.prototype.on=function(P,$){let He=j.prototype.on.call(this,P,$),Ve=this._readableState;return P==="data"?(Ve.readableListening=this.listenerCount("readable")>0,Ve.flowing!==!1&&this.resume()):P==="readable"&&!Ve.endEmitted&&!Ve.readableListening&&(Ve.readableListening=Ve.needReadable=!0,Ve.flowing=!1,Ve.emittedReadable=!1,T("on readable",Ve.length,Ve.reading),Ve.length?se(this):Ve.reading||d.nextTick(Ke,this)),He},xe.prototype.addListener=xe.prototype.on,xe.prototype.removeListener=function(P,$){let He=j.prototype.removeListener.call(this,P,$);return P==="readable"&&d.nextTick(Ye,this),He},xe.prototype.off=xe.prototype.removeListener,xe.prototype.removeAllListeners=function(P){let $=j.prototype.removeAllListeners.apply(this,arguments);return(P==="readable"||P===void 0)&&d.nextTick(Ye,this),$};function Ye(P){let $=P._readableState;$.readableListening=P.listenerCount("readable")>0,$.resumeScheduled&&$[Z]===!1?$.flowing=!0:P.listenerCount("data")>0?P.resume():$.readableListening||($.flowing=null)}function Ke(P){T("readable nexttick read 0"),P.read(0)}xe.prototype.resume=function(){let P=this._readableState;return P.flowing||(T("resume"),P.flowing=!P.readableListening,rt(this,P)),P[Z]=!1,this};function rt(P,$){$.resumeScheduled||($.resumeScheduled=!0,d.nextTick(Nt,P,$))}function Nt(P,$){T("resume",$.reading),$.reading||P.read(0),$.resumeScheduled=!1,P.emit("resume"),Mt(P),$.flowing&&!$.reading&&P.read(0)}xe.prototype.pause=function(){return T("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(T("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[Z]=!0,this};function Mt(P){let $=P._readableState;for(T("flow",$.flowing);$.flowing&&P.read()!==null;);}xe.prototype.wrap=function(P){let $=!1;P.on("data",Ve=>{!this.push(Ve)&&P.pause&&($=!0,P.pause())}),P.on("end",()=>{this.push(null)}),P.on("error",Ve=>{U(this,Ve)}),P.on("close",()=>{this.destroy()}),P.on("destroy",()=>{this.destroy()}),this._read=()=>{$&&P.resume&&($=!1,P.resume())};let He=i(P);for(let Ve=1;Ve<He.length;Ve++){let Fe=He[Ve];this[Fe]===void 0&&typeof P[Fe]=="function"&&(this[Fe]=P[Fe].bind(P))}return this},xe.prototype[w]=function(){return lt(this)},xe.prototype.iterator=function(P){return P!==void 0&&V(P,"options"),lt(this,P)};function lt(P,$){typeof P.read!="function"&&(P=xe.wrap(P,{objectMode:!0}));let He=gt(P,$);return He.stream=P,He}async function*gt(P,$){let He=I;function Ve(Wt){this===P?(He(),He=I):He=Wt}P.on("readable",Ve);let Fe,It=N(P,{writable:!1},Wt=>{Fe=Wt?R(Fe,Wt):null,He(),He=I});try{for(;;){let Wt=P.destroyed?null:P.read();if(Wt!==null)yield Wt;else{if(Fe)throw Fe;if(Fe===null)return;await new p(Ve)}}}catch(Wt){throw Fe=R(Fe,Wt),Fe}finally{(Fe||($==null?void 0:$.destroyOnReturn)!==!1)&&(Fe===void 0||P._readableState.autoDestroy)?D.destroyer(P,null):(P.off("readable",Ve),It())}}u(xe.prototype,{readable:{__proto__:null,get(){let P=this._readableState;return!!P&&P.readable!==!1&&!P.destroyed&&!P.errorEmitted&&!P.endEmitted},set(P){this._readableState&&(this._readableState.readable=!!P)}},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(P){this._readableState&&(this._readableState.flowing=P)}},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(P){this._readableState&&(this._readableState.destroyed=P)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),u(Pe.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[Z]!==!1},set(P){this[Z]=!!P}}}),xe._fromList=$e;function $e(P,$){if($.length===0)return null;let He;return $.objectMode?He=$.buffer.shift():!P||P>=$.length?($.decoder?He=$.buffer.join(""):$.buffer.length===1?He=$.buffer.first():He=$.buffer.concat($.length),$.buffer.clear()):He=$.buffer.consume(P,$.decoder),He}function ut(P){let $=P._readableState;T("endReadable",$.endEmitted),$.endEmitted||($.ended=!0,d.nextTick(yt,$,P))}function yt(P,$){if(T("endReadableNT",P.endEmitted,P.length),!P.errored&&!P.closeEmitted&&!P.endEmitted&&P.length===0){if(P.endEmitted=!0,$.emit("end"),$.writable&&$.allowHalfOpen===!1)d.nextTick(Bt,$);else if(P.autoDestroy){let He=$._writableState;(!He||He.autoDestroy&&(He.finished||He.writable===!1))&&$.destroy()}}}function Bt(P){P.writable&&!P.writableEnded&&!P.destroyed&&P.end()}xe.from=function(P,$){return re(xe,P,$)};var Pt;function cr(){return Pt===void 0&&(Pt={}),Pt}xe.fromWeb=function(P,$){return cr().newStreamReadableFromReadableStream(P,$)},xe.toWeb=function(P,$){return cr().newReadableStreamFromStreamReadable(P,$)},xe.wrap=function(P,$){var He,Ve;return new xe({objectMode:(He=(Ve=P.readableObjectMode)!==null&&Ve!==void 0?Ve:P.objectMode)!==null&&He!==void 0?He:!0,...$,destroy(Fe,It){D.destroyer(P,Fe),It(Fe)}}).wrap(P)}}),Vh=Ie((f,y)=>{Ne(),Re(),Ce();var d=Ni(),{ArrayPrototypeSlice:c,Error:m,FunctionPrototypeSymbolHasInstance:o,ObjectDefineProperty:l,ObjectDefineProperties:u,ObjectSetPrototypeOf:i,StringPrototypeToLowerCase:a,Symbol:p,SymbolHasInstance:b}=Lt();y.exports=V,V.WritableState=ee;var{EventEmitter:_}=(Mi(),Ot(li)),w=Qh().Stream,{Buffer:A}=(tr(),Ot(er)),M=_a(),{addAbortSignal:j}=ps(),{getHighWaterMark:C,getDefaultHighWaterMark:S}=ys(),{ERR_INVALID_ARG_TYPE:O,ERR_METHOD_NOT_IMPLEMENTED:N,ERR_MULTIPLE_CALLBACK:T,ERR_STREAM_CANNOT_PIPE:H,ERR_STREAM_DESTROYED:D,ERR_STREAM_ALREADY_FINISHED:k,ERR_STREAM_NULL_VALUES:z,ERR_STREAM_WRITE_AFTER_END:R,ERR_UNKNOWN_ENCODING:Y}=dr().codes,{errorOrDestroy:B}=M;i(V.prototype,w.prototype),i(V,w);function te(){}var ae=p("kOnFinished");function ee(X,ce,Se){typeof Se!="boolean"&&(Se=ce instanceof An()),this.objectMode=!!(X&&X.objectMode),Se&&(this.objectMode=this.objectMode||!!(X&&X.writableObjectMode)),this.highWaterMark=X?C(this,X,"writableHighWaterMark",Se):S(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let Ue=!!(X&&X.decodeStrings===!1);this.decodeStrings=!Ue,this.defaultEncoding=X&&X.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=U.bind(void 0,ce),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,W(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!X||X.emitClose!==!1,this.autoDestroy=!X||X.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[ae]=[]}function W(X){X.buffered=[],X.bufferedIndex=0,X.allBuffers=!0,X.allNoop=!0}ee.prototype.getBuffer=function(){return c(this.buffered,this.bufferedIndex)},l(ee.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function V(X){let ce=this instanceof An();if(!ce&&!o(V,this))return new V(X);this._writableState=new ee(X,this,ce),X&&(typeof X.write=="function"&&(this._write=X.write),typeof X.writev=="function"&&(this._writev=X.writev),typeof X.destroy=="function"&&(this._destroy=X.destroy),typeof X.final=="function"&&(this._final=X.final),typeof X.construct=="function"&&(this._construct=X.construct),X.signal&&j(X.signal,this)),w.call(this,X),M.construct(this,()=>{let Se=this._writableState;Se.writing||je(this,Se),ue(this,Se)})}l(V,b,{__proto__:null,value:function(X){return o(this,X)?!0:this!==V?!1:X&&X._writableState instanceof ee}}),V.prototype.pipe=function(){B(this,new H)};function Z(X,ce,Se,Ue){let Me=X._writableState;if(typeof Se=="function")Ue=Se,Se=Me.defaultEncoding;else{if(!Se)Se=Me.defaultEncoding;else if(Se!=="buffer"&&!A.isEncoding(Se))throw new Y(Se);typeof Ue!="function"&&(Ue=te)}if(ce===null)throw new z;if(!Me.objectMode)if(typeof ce=="string")Me.decodeStrings!==!1&&(ce=A.from(ce,Se),Se="buffer");else if(ce instanceof A)Se="buffer";else if(w._isUint8Array(ce))ce=w._uint8ArrayToBuffer(ce),Se="buffer";else throw new O("chunk",["string","Buffer","Uint8Array"],ce);let ze;return Me.ending?ze=new R:Me.destroyed&&(ze=new D("write")),ze?(d.nextTick(Ue,ze),B(X,ze,!0),ze):(Me.pendingcb++,be(X,Me,ce,Se,Ue))}V.prototype.write=function(X,ce,Se){return Z(this,X,ce,Se)===!0},V.prototype.cork=function(){this._writableState.corked++},V.prototype.uncork=function(){let X=this._writableState;X.corked&&(X.corked--,X.writing||je(this,X))},V.prototype.setDefaultEncoding=function(X){if(typeof X=="string"&&(X=a(X)),!A.isEncoding(X))throw new Y(X);return this._writableState.defaultEncoding=X,this};function be(X,ce,Se,Ue,Me){let ze=ce.objectMode?1:Se.length;ce.length+=ze;let he=ce.length<ce.highWaterMark;return he||(ce.needDrain=!0),ce.writing||ce.corked||ce.errored||!ce.constructed?(ce.buffered.push({chunk:Se,encoding:Ue,callback:Me}),ce.allBuffers&&Ue!=="buffer"&&(ce.allBuffers=!1),ce.allNoop&&Me!==te&&(ce.allNoop=!1)):(ce.writelen=ze,ce.writecb=Me,ce.writing=!0,ce.sync=!0,X._write(Se,Ue,ce.onwrite),ce.sync=!1),he&&!ce.errored&&!ce.destroyed}function re(X,ce,Se,Ue,Me,ze,he){ce.writelen=Ue,ce.writecb=he,ce.writing=!0,ce.sync=!0,ce.destroyed?ce.onwrite(new D("write")):Se?X._writev(Me,ce.onwrite):X._write(Me,ze,ce.onwrite),ce.sync=!1}function I(X,ce,Se,Ue){--ce.pendingcb,Ue(Se),Q(ce),B(X,Se)}function U(X,ce){let Se=X._writableState,Ue=Se.sync,Me=Se.writecb;if(typeof Me!="function"){B(X,new T);return}Se.writing=!1,Se.writecb=null,Se.length-=Se.writelen,Se.writelen=0,ce?(ce.stack,Se.errored||(Se.errored=ce),X._readableState&&!X._readableState.errored&&(X._readableState.errored=ce),Ue?d.nextTick(I,X,Se,ce,Me):I(X,Se,ce,Me)):(Se.buffered.length>Se.bufferedIndex&&je(X,Se),Ue?Se.afterWriteTickInfo!==null&&Se.afterWriteTickInfo.cb===Me?Se.afterWriteTickInfo.count++:(Se.afterWriteTickInfo={count:1,cb:Me,stream:X,state:Se},d.nextTick(G,Se.afterWriteTickInfo)):ye(X,Se,1,Me))}function G({stream:X,state:ce,count:Se,cb:Ue}){return ce.afterWriteTickInfo=null,ye(X,ce,Se,Ue)}function ye(X,ce,Se,Ue){for(!ce.ending&&!X.destroyed&&ce.length===0&&ce.needDrain&&(ce.needDrain=!1,X.emit("drain"));Se-- >0;)ce.pendingcb--,Ue();ce.destroyed&&Q(ce),ue(X,ce)}function Q(X){if(X.writing)return;for(let Me=X.bufferedIndex;Me<X.buffered.length;++Me){var ce;let{chunk:ze,callback:he}=X.buffered[Me],ke=X.objectMode?1:ze.length;X.length-=ke,he((ce=X.errored)!==null&&ce!==void 0?ce:new D("write"))}let Se=X[ae].splice(0);for(let Me=0;Me<Se.length;Me++){var Ue;Se[Me]((Ue=X.errored)!==null&&Ue!==void 0?Ue:new D("end"))}W(X)}function je(X,ce){if(ce.corked||ce.bufferProcessing||ce.destroyed||!ce.constructed)return;let{buffered:Se,bufferedIndex:Ue,objectMode:Me}=ce,ze=Se.length-Ue;if(!ze)return;let he=Ue;if(ce.bufferProcessing=!0,ze>1&&X._writev){ce.pendingcb-=ze-1;let ke=ce.allNoop?te:xe=>{for(let tt=he;tt<Se.length;++tt)Se[tt].callback(xe)},Pe=ce.allNoop&&he===0?Se:c(Se,he);Pe.allBuffers=ce.allBuffers,re(X,ce,!0,ce.length,Pe,"",ke),W(ce)}else{do{let{chunk:ke,encoding:Pe,callback:xe}=Se[he];Se[he++]=null;let tt=Me?1:ke.length;re(X,ce,!1,tt,ke,Pe,xe)}while(he<Se.length&&!ce.writing);he===Se.length?W(ce):he>256?(Se.splice(0,he),ce.bufferedIndex=0):ce.bufferedIndex=he}ce.bufferProcessing=!1}V.prototype._write=function(X,ce,Se){if(this._writev)this._writev([{chunk:X,encoding:ce}],Se);else throw new N("_write()")},V.prototype._writev=null,V.prototype.end=function(X,ce,Se){let Ue=this._writableState;typeof X=="function"?(Se=X,X=null,ce=null):typeof ce=="function"&&(Se=ce,ce=null);let Me;if(X!=null){let ze=Z(this,X,ce);ze instanceof m&&(Me=ze)}return Ue.corked&&(Ue.corked=1,this.uncork()),Me||(!Ue.errored&&!Ue.ending?(Ue.ending=!0,ue(this,Ue,!0),Ue.ended=!0):Ue.finished?Me=new k("end"):Ue.destroyed&&(Me=new D("end"))),typeof Se=="function"&&(Me||Ue.finished?d.nextTick(Se,Me):Ue[ae].push(Se)),this};function ie(X){return X.ending&&!X.destroyed&&X.constructed&&X.length===0&&!X.errored&&X.buffered.length===0&&!X.finished&&!X.writing&&!X.errorEmitted&&!X.closeEmitted}function K(X,ce){let Se=!1;function Ue(Me){if(Se){B(X,Me??T());return}if(Se=!0,ce.pendingcb--,Me){let ze=ce[ae].splice(0);for(let he=0;he<ze.length;he++)ze[he](Me);B(X,Me,ce.sync)}else ie(ce)&&(ce.prefinished=!0,X.emit("prefinish"),ce.pendingcb++,d.nextTick(de,X,ce))}ce.sync=!0,ce.pendingcb++;try{X._final(Ue)}catch(Me){Ue(Me)}ce.sync=!1}function ge(X,ce){!ce.prefinished&&!ce.finalCalled&&(typeof X._final=="function"&&!ce.destroyed?(ce.finalCalled=!0,K(X,ce)):(ce.prefinished=!0,X.emit("prefinish")))}function ue(X,ce,Se){ie(ce)&&(ge(X,ce),ce.pendingcb===0&&(Se?(ce.pendingcb++,d.nextTick((Ue,Me)=>{ie(Me)?de(Ue,Me):Me.pendingcb--},X,ce)):ie(ce)&&(ce.pendingcb++,de(X,ce))))}function de(X,ce){ce.pendingcb--,ce.finished=!0;let Se=ce[ae].splice(0);for(let Ue=0;Ue<Se.length;Ue++)Se[Ue]();if(X.emit("finish"),ce.autoDestroy){let Ue=X._readableState;(!Ue||Ue.autoDestroy&&(Ue.endEmitted||Ue.readable===!1))&&X.destroy()}}u(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(X){this._writableState&&(this._writableState.destroyed=X)}},writable:{__proto__:null,get(){let X=this._writableState;return!!X&&X.writable!==!1&&!X.destroyed&&!X.errored&&!X.ending&&!X.ended},set(X){this._writableState&&(this._writableState.writable=!!X)}},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 X=this._writableState;return X?!X.destroyed&&!X.ending&&X.needDrain:!1}},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 me=M.destroy;V.prototype.destroy=function(X,ce){let Se=this._writableState;return!Se.destroyed&&(Se.bufferedIndex<Se.buffered.length||Se[ae].length)&&d.nextTick(Q,Se),me.call(this,X,ce),this},V.prototype._undestroy=M.undestroy,V.prototype._destroy=function(X,ce){ce(X)},V.prototype[_.captureRejectionSymbol]=function(X){this.destroy(X)};var Be;function Ae(){return Be===void 0&&(Be={}),Be}V.fromWeb=function(X,ce){return Ae().newStreamWritableFromWritableStream(X,ce)},V.toWeb=function(X){return Ae().newWritableStreamFromStreamWritable(X)}}),aS=Ie((f,y)=>{Ne(),Re(),Ce();var d=Ni(),c=(tr(),Ot(er)),{isReadable:m,isWritable:o,isIterable:l,isNodeStream:u,isReadableNodeStream:i,isWritableNodeStream:a,isDuplexNodeStream:p,isReadableStream:b,isWritableStream:_}=xn(),w=oi(),{AbortError:A,codes:{ERR_INVALID_ARG_TYPE:M,ERR_INVALID_RETURN_VALUE:j}}=dr(),{destroyer:C}=_a(),S=An(),O=ms(),N=Vh(),{createDeferredPromise:T}=Ar(),H=zb(),D=globalThis.Blob||c.Blob,k=typeof D<"u"?function(ae){return ae instanceof D}:function(ae){return!1},z=globalThis.AbortController||vl().AbortController,{FunctionPrototypeCall:R}=Lt(),Y=class extends S{constructor(ae){super(ae),(ae==null?void 0:ae.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(ae==null?void 0:ae.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};y.exports=function ae(ee,W){if(p(ee))return ee;if(i(ee))return te({readable:ee});if(a(ee))return te({writable:ee});if(u(ee))return te({writable:!1,readable:!1});if(b(ee))return te({readable:O.fromWeb(ee)});if(_(ee))return te({writable:N.fromWeb(ee)});if(typeof ee=="function"){let{value:Z,write:be,final:re,destroy:I}=B(ee);if(l(Z))return H(Y,Z,{objectMode:!0,write:be,final:re,destroy:I});let U=Z==null?void 0:Z.then;if(typeof U=="function"){let G,ye=R(U,Z,Q=>{if(Q!=null)throw new j("nully","body",Q)},Q=>{C(G,Q)});return G=new Y({objectMode:!0,readable:!1,write:be,final(Q){re(async()=>{try{await ye,d.nextTick(Q,null)}catch(je){d.nextTick(Q,je)}})},destroy:I})}throw new j("Iterable, AsyncIterable or AsyncFunction",W,Z)}if(k(ee))return ae(ee.arrayBuffer());if(l(ee))return H(Y,ee,{objectMode:!0,writable:!1});if(b(ee==null?void 0:ee.readable)&&_(ee==null?void 0:ee.writable))return Y.fromWeb(ee);if(typeof(ee==null?void 0:ee.writable)=="object"||typeof(ee==null?void 0:ee.readable)=="object"){let Z=ee!=null&&ee.readable?i(ee==null?void 0:ee.readable)?ee==null?void 0:ee.readable:ae(ee.readable):void 0,be=ee!=null&&ee.writable?a(ee==null?void 0:ee.writable)?ee==null?void 0:ee.writable:ae(ee.writable):void 0;return te({readable:Z,writable:be})}let V=ee==null?void 0:ee.then;if(typeof V=="function"){let Z;return R(V,ee,be=>{be!=null&&Z.push(be),Z.push(null)},be=>{C(Z,be)}),Z=new Y({objectMode:!0,writable:!1,read(){}})}throw new M(W,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],ee)};function B(ae){let{promise:ee,resolve:W}=T(),V=new z,Z=V.signal;return{value:ae((async function*(){for(;;){let be=ee;ee=null;let{chunk:re,done:I,cb:U}=await be;if(d.nextTick(U),I)return;if(Z.aborted)throw new A(void 0,{cause:Z.reason});({promise:ee,resolve:W}=T()),yield re}})(),{signal:Z}),write(be,re,I){let U=W;W=null,U({chunk:be,done:!1,cb:I})},final(be){let re=W;W=null,re({done:!0,cb:be})},destroy(be,re){V.abort(),re(be)}}}function te(ae){let ee=ae.readable&&typeof ae.readable.read!="function"?O.wrap(ae.readable):ae.readable,W=ae.writable,V=!!m(ee),Z=!!o(W),be,re,I,U,G;function ye(Q){let je=U;U=null,je?je(Q):Q&&G.destroy(Q)}return G=new Y({readableObjectMode:!!(ee!=null&&ee.readableObjectMode),writableObjectMode:!!(W!=null&&W.writableObjectMode),readable:V,writable:Z}),Z&&(w(W,Q=>{Z=!1,Q&&C(ee,Q),ye(Q)}),G._write=function(Q,je,ie){W.write(Q,je)?ie():be=ie},G._final=function(Q){W.end(),re=Q},W.on("drain",function(){if(be){let Q=be;be=null,Q()}}),W.on("finish",function(){if(re){let Q=re;re=null,Q()}})),V&&(w(ee,Q=>{V=!1,Q&&C(ee,Q),ye(Q)}),ee.on("readable",function(){if(I){let Q=I;I=null,Q()}}),ee.on("end",function(){G.push(null)}),G._read=function(){for(;;){let Q=ee.read();if(Q===null){I=G._read;return}if(!G.push(Q))return}}),G._destroy=function(Q,je){!Q&&U!==null&&(Q=new A),I=null,be=null,re=null,U===null?je(Q):(U=je,C(W,Q),C(ee,Q))},G}}),An=Ie((f,y)=>{Ne(),Re(),Ce();var{ObjectDefineProperties:d,ObjectGetOwnPropertyDescriptor:c,ObjectKeys:m,ObjectSetPrototypeOf:o}=Lt();y.exports=i;var l=ms(),u=Vh();o(i.prototype,l.prototype),o(i,l);{let _=m(u.prototype);for(let w=0;w<_.length;w++){let A=_[w];i.prototype[A]||(i.prototype[A]=u.prototype[A])}}function i(_){if(!(this instanceof i))return new i(_);l.call(this,_),u.call(this,_),_?(this.allowHalfOpen=_.allowHalfOpen!==!1,_.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),_.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}d(i.prototype,{writable:{__proto__:null,...c(u.prototype,"writable")},writableHighWaterMark:{__proto__:null,...c(u.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...c(u.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...c(u.prototype,"writableBuffer")},writableLength:{__proto__:null,...c(u.prototype,"writableLength")},writableFinished:{__proto__:null,...c(u.prototype,"writableFinished")},writableCorked:{__proto__:null,...c(u.prototype,"writableCorked")},writableEnded:{__proto__:null,...c(u.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...c(u.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(_){this._readableState&&this._writableState&&(this._readableState.destroyed=_,this._writableState.destroyed=_)}}});var a;function p(){return a===void 0&&(a={}),a}i.fromWeb=function(_,w){return p().newStreamDuplexFromReadableWritablePair(_,w)},i.toWeb=function(_){return p().newReadableWritablePairFromDuplex(_)};var b;i.from=function(_){return b||(b=aS()),b(_,"body")}}),Lb=Ie((f,y)=>{Ne(),Re(),Ce();var{ObjectSetPrototypeOf:d,Symbol:c}=Lt();y.exports=i;var{ERR_METHOD_NOT_IMPLEMENTED:m}=dr().codes,o=An(),{getHighWaterMark:l}=ys();d(i.prototype,o.prototype),d(i,o);var u=c("kCallback");function i(b){if(!(this instanceof i))return new i(b);let _=b?l(this,b,"readableHighWaterMark",!0):null;_===0&&(b={...b,highWaterMark:null,readableHighWaterMark:_,writableHighWaterMark:b.writableHighWaterMark||0}),o.call(this,b),this._readableState.sync=!1,this[u]=null,b&&(typeof b.transform=="function"&&(this._transform=b.transform),typeof b.flush=="function"&&(this._flush=b.flush)),this.on("prefinish",p)}function a(b){typeof this._flush=="function"&&!this.destroyed?this._flush((_,w)=>{if(_){b?b(_):this.destroy(_);return}w!=null&&this.push(w),this.push(null),b&&b()}):(this.push(null),b&&b())}function p(){this._final!==a&&a.call(this)}i.prototype._final=a,i.prototype._transform=function(b,_,w){throw new m("_transform()")},i.prototype._write=function(b,_,w){let A=this._readableState,M=this._writableState,j=A.length;this._transform(b,_,(C,S)=>{if(C){w(C);return}S!=null&&this.push(S),M.ended||j===A.length||A.length<A.highWaterMark?w():this[u]=w})},i.prototype._read=function(){if(this[u]){let b=this[u];this[u]=null,b()}}}),qb=Ie((f,y)=>{Ne(),Re(),Ce();var{ObjectSetPrototypeOf:d}=Lt();y.exports=m;var c=Lb();d(m.prototype,c.prototype),d(m,c);function m(o){if(!(this instanceof m))return new m(o);c.call(this,o)}m.prototype._transform=function(o,l,u){u(null,o)}}),Kh=Ie((f,y)=>{Ne(),Re(),Ce();var d=Ni(),{ArrayIsArray:c,Promise:m,SymbolAsyncIterator:o,SymbolDispose:l}=Lt(),u=oi(),{once:i}=Ar(),a=_a(),p=An(),{aggregateTwoErrors:b,codes:{ERR_INVALID_ARG_TYPE:_,ERR_INVALID_RETURN_VALUE:w,ERR_MISSING_ARGS:A,ERR_STREAM_DESTROYED:M,ERR_STREAM_PREMATURE_CLOSE:j},AbortError:C}=dr(),{validateFunction:S,validateAbortSignal:O}=_l(),{isIterable:N,isReadable:T,isReadableNodeStream:H,isNodeStream:D,isTransformStream:k,isWebStream:z,isReadableStream:R,isReadableFinished:Y}=xn(),B=globalThis.AbortController||vl().AbortController,te,ae,ee;function W(Q,je,ie){let K=!1;Q.on("close",()=>{K=!0});let ge=u(Q,{readable:je,writable:ie},ue=>{K=!ue});return{destroy:ue=>{K||(K=!0,a.destroyer(Q,ue||new M("pipe")))},cleanup:ge}}function V(Q){return S(Q[Q.length-1],"streams[stream.length - 1]"),Q.pop()}function Z(Q){if(N(Q))return Q;if(H(Q))return be(Q);throw new _("val",["Readable","Iterable","AsyncIterable"],Q)}async function*be(Q){ae||(ae=ms()),yield*ae.prototype[o].call(Q)}async function re(Q,je,ie,{end:K}){let ge,ue=null,de=Ae=>{if(Ae&&(ge=Ae),ue){let X=ue;ue=null,X()}},me=()=>new m((Ae,X)=>{ge?X(ge):ue=()=>{ge?X(ge):Ae()}});je.on("drain",de);let Be=u(je,{readable:!1},de);try{je.writableNeedDrain&&await me();for await(let Ae of Q)je.write(Ae)||await me();K&&(je.end(),await me()),ie()}catch(Ae){ie(ge!==Ae?b(ge,Ae):Ae)}finally{Be(),je.off("drain",de)}}async function I(Q,je,ie,{end:K}){k(je)&&(je=je.writable);let ge=je.getWriter();try{for await(let ue of Q)await ge.ready,ge.write(ue).catch(()=>{});await ge.ready,K&&await ge.close(),ie()}catch(ue){try{await ge.abort(ue),ie(ue)}catch(de){ie(de)}}}function U(...Q){return G(Q,i(V(Q)))}function G(Q,je,ie){if(Q.length===1&&c(Q[0])&&(Q=Q[0]),Q.length<2)throw new A("streams");let K=new B,ge=K.signal,ue=ie==null?void 0:ie.signal,de=[];O(ue,"options.signal");function me(){Me(new C)}ee=ee||Ar().addAbortListener;let Be;ue&&(Be=ee(ue,me));let Ae,X,ce=[],Se=0;function Ue(Pe){Me(Pe,--Se===0)}function Me(Pe,xe){var tt;if(Pe&&(!Ae||Ae.code==="ERR_STREAM_PREMATURE_CLOSE")&&(Ae=Pe),!(!Ae&&!xe)){for(;ce.length;)ce.shift()(Ae);(tt=Be)===null||tt===void 0||tt[l](),K.abort(),xe&&(Ae||de.forEach(g=>g()),d.nextTick(je,Ae,X))}}let ze;for(let Pe=0;Pe<Q.length;Pe++){let xe=Q[Pe],tt=Pe<Q.length-1,g=Pe>0,v=tt||(ie==null?void 0:ie.end)!==!1,E=Pe===Q.length-1;if(D(xe)){let L=function(F){F&&F.name!=="AbortError"&&F.code!=="ERR_STREAM_PREMATURE_CLOSE"&&Ue(F)};if(v){let{destroy:F,cleanup:se}=W(xe,tt,g);ce.push(F),T(xe)&&E&&de.push(se)}xe.on("error",L),T(xe)&&E&&de.push(()=>{xe.removeListener("error",L)})}if(Pe===0)if(typeof xe=="function"){if(ze=xe({signal:ge}),!N(ze))throw new w("Iterable, AsyncIterable or Stream","source",ze)}else N(xe)||H(xe)||k(xe)?ze=xe:ze=p.from(xe);else if(typeof xe=="function"){if(k(ze)){var he;ze=Z((he=ze)===null||he===void 0?void 0:he.readable)}else ze=Z(ze);if(ze=xe(ze,{signal:ge}),tt){if(!N(ze,!0))throw new w("AsyncIterable",`transform[${Pe-1}]`,ze)}else{var ke;te||(te=qb());let L=new te({objectMode:!0}),F=(ke=ze)===null||ke===void 0?void 0:ke.then;if(typeof F=="function")Se++,F.call(ze,ne=>{X=ne,ne!=null&&L.write(ne),v&&L.end(),d.nextTick(Ue)},ne=>{L.destroy(ne),d.nextTick(Ue,ne)});else if(N(ze,!0))Se++,re(ze,L,Ue,{end:v});else if(R(ze)||k(ze)){let ne=ze.readable||ze;Se++,re(ne,L,Ue,{end:v})}else throw new w("AsyncIterable or Promise","destination",ze);ze=L;let{destroy:se,cleanup:_e}=W(ze,!1,!0);ce.push(se),E&&de.push(_e)}}else if(D(xe)){if(H(ze)){Se+=2;let L=ye(ze,xe,Ue,{end:v});T(xe)&&E&&de.push(L)}else if(k(ze)||R(ze)){let L=ze.readable||ze;Se++,re(L,xe,Ue,{end:v})}else if(N(ze))Se++,re(ze,xe,Ue,{end:v});else throw new _("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],ze);ze=xe}else if(z(xe)){if(H(ze))Se++,I(Z(ze),xe,Ue,{end:v});else if(R(ze)||N(ze))Se++,I(ze,xe,Ue,{end:v});else if(k(ze))Se++,I(ze.readable,xe,Ue,{end:v});else throw new _("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],ze);ze=xe}else ze=p.from(xe)}return(ge!=null&&ge.aborted||ue!=null&&ue.aborted)&&d.nextTick(me),ze}function ye(Q,je,ie,{end:K}){let ge=!1;if(je.on("close",()=>{ge||ie(new j)}),Q.pipe(je,{end:!1}),K){let ue=function(){ge=!0,je.end()};Y(Q)?d.nextTick(ue):Q.once("end",ue)}else ie();return u(Q,{readable:!0,writable:!1},ue=>{let de=Q._readableState;ue&&ue.code==="ERR_STREAM_PREMATURE_CLOSE"&&de&&de.ended&&!de.errored&&!de.errorEmitted?Q.once("end",ie).once("error",ie):ie(ue)}),u(je,{readable:!1,writable:!0},ie)}y.exports={pipelineImpl:G,pipeline:U}}),Hb=Ie((f,y)=>{Ne(),Re(),Ce();var{pipeline:d}=Kh(),c=An(),{destroyer:m}=_a(),{isNodeStream:o,isReadable:l,isWritable:u,isWebStream:i,isTransformStream:a,isWritableStream:p,isReadableStream:b}=xn(),{AbortError:_,codes:{ERR_INVALID_ARG_VALUE:w,ERR_MISSING_ARGS:A}}=dr(),M=oi();y.exports=function(...j){if(j.length===0)throw new A("streams");if(j.length===1)return c.from(j[0]);let C=[...j];if(typeof j[0]=="function"&&(j[0]=c.from(j[0])),typeof j[j.length-1]=="function"){let B=j.length-1;j[B]=c.from(j[B])}for(let B=0;B<j.length;++B)if(!(!o(j[B])&&!i(j[B]))){if(B<j.length-1&&!(l(j[B])||b(j[B])||a(j[B])))throw new w(`streams[${B}]`,C[B],"must be readable");if(B>0&&!(u(j[B])||p(j[B])||a(j[B])))throw new w(`streams[${B}]`,C[B],"must be writable")}let S,O,N,T,H;function D(B){let te=T;T=null,te?te(B):B?H.destroy(B):!Y&&!R&&H.destroy()}let k=j[0],z=d(j,D),R=!!(u(k)||p(k)||a(k)),Y=!!(l(z)||b(z)||a(z));if(H=new c({writableObjectMode:!!(k!=null&&k.writableObjectMode),readableObjectMode:!!(z!=null&&z.readableObjectMode),writable:R,readable:Y}),R){if(o(k))H._write=function(te,ae,ee){k.write(te,ae)?ee():S=ee},H._final=function(te){k.end(),O=te},k.on("drain",function(){if(S){let te=S;S=null,te()}});else if(i(k)){let te=(a(k)?k.writable:k).getWriter();H._write=async function(ae,ee,W){try{await te.ready,te.write(ae).catch(()=>{}),W()}catch(V){W(V)}},H._final=async function(ae){try{await te.ready,te.close().catch(()=>{}),O=ae}catch(ee){ae(ee)}}}let B=a(z)?z.readable:z;M(B,()=>{if(O){let te=O;O=null,te()}})}if(Y){if(o(z))z.on("readable",function(){if(N){let B=N;N=null,B()}}),z.on("end",function(){H.push(null)}),H._read=function(){for(;;){let B=z.read();if(B===null){N=H._read;return}if(!H.push(B))return}};else if(i(z)){let B=(a(z)?z.readable:z).getReader();H._read=async function(){for(;;)try{let{value:te,done:ae}=await B.read();if(!H.push(te))return;if(ae){H.push(null);return}}catch{return}}}}return H._destroy=function(B,te){!B&&T!==null&&(B=new _),N=null,S=null,O=null,T===null?te(B):(T=te,o(z)&&m(z,B))},H}}),lS=Ie((f,y)=>{Ne(),Re(),Ce();var d=globalThis.AbortController||vl().AbortController,{codes:{ERR_INVALID_ARG_VALUE:c,ERR_INVALID_ARG_TYPE:m,ERR_MISSING_ARGS:o,ERR_OUT_OF_RANGE:l},AbortError:u}=dr(),{validateAbortSignal:i,validateInteger:a,validateObject:p}=_l(),b=Lt().Symbol("kWeak"),_=Lt().Symbol("kResistStopPropagation"),{finished:w}=oi(),A=Hb(),{addAbortSignalNoValidate:M}=ps(),{isWritable:j,isNodeStream:C}=xn(),{deprecate:S}=Ar(),{ArrayPrototypePush:O,Boolean:N,MathFloor:T,Number:H,NumberIsNaN:D,Promise:k,PromiseReject:z,PromiseResolve:R,PromisePrototypeThen:Y,Symbol:B}=Lt(),te=B("kEmpty"),ae=B("kEof");function ee(ue,de){if(de!=null&&p(de,"options"),(de==null?void 0:de.signal)!=null&&i(de.signal,"options.signal"),C(ue)&&!j(ue))throw new c("stream",ue,"must be writable");let me=A(this,ue);return de!=null&&de.signal&&M(de.signal,me),me}function W(ue,de){if(typeof ue!="function")throw new m("fn",["Function","AsyncFunction"],ue);de!=null&&p(de,"options"),(de==null?void 0:de.signal)!=null&&i(de.signal,"options.signal");let me=1;(de==null?void 0:de.concurrency)!=null&&(me=T(de.concurrency));let Be=me-1;return(de==null?void 0:de.highWaterMark)!=null&&(Be=T(de.highWaterMark)),a(me,"options.concurrency",1),a(Be,"options.highWaterMark",0),Be+=me,(async function*(){let Ae=Ar().AbortSignalAny([de==null?void 0:de.signal].filter(N)),X=this,ce=[],Se={signal:Ae},Ue,Me,ze=!1,he=0;function ke(){ze=!0,Pe()}function Pe(){he-=1,xe()}function xe(){Me&&!ze&&he<me&&ce.length<Be&&(Me(),Me=null)}async function tt(){try{for await(let g of X){if(ze)return;if(Ae.aborted)throw new u;try{if(g=ue(g,Se),g===te)continue;g=R(g)}catch(v){g=z(v)}he+=1,Y(g,Pe,ke),ce.push(g),Ue&&(Ue(),Ue=null),!ze&&(ce.length>=Be||he>=me)&&await new k(v=>{Me=v})}ce.push(ae)}catch(g){let v=z(g);Y(v,Pe,ke),ce.push(v)}finally{ze=!0,Ue&&(Ue(),Ue=null)}}tt();try{for(;;){for(;ce.length>0;){let g=await ce[0];if(g===ae)return;if(Ae.aborted)throw new u;g!==te&&(yield g),ce.shift(),xe()}await new k(g=>{Ue=g})}}finally{ze=!0,Me&&(Me(),Me=null)}}).call(this)}function V(ue=void 0){return ue!=null&&p(ue,"options"),(ue==null?void 0:ue.signal)!=null&&i(ue.signal,"options.signal"),(async function*(){let de=0;for await(let Be of this){var me;if(ue!=null&&(me=ue.signal)!==null&&me!==void 0&&me.aborted)throw new u({cause:ue.signal.reason});yield[de++,Be]}}).call(this)}async function Z(ue,de=void 0){for await(let me of U.call(this,ue,de))return!0;return!1}async function be(ue,de=void 0){if(typeof ue!="function")throw new m("fn",["Function","AsyncFunction"],ue);return!await Z.call(this,async(...me)=>!await ue(...me),de)}async function re(ue,de){for await(let me of U.call(this,ue,de))return me}async function I(ue,de){if(typeof ue!="function")throw new m("fn",["Function","AsyncFunction"],ue);async function me(Be,Ae){return await ue(Be,Ae),te}for await(let Be of W.call(this,me,de));}function U(ue,de){if(typeof ue!="function")throw new m("fn",["Function","AsyncFunction"],ue);async function me(Be,Ae){return await ue(Be,Ae)?Be:te}return W.call(this,me,de)}var G=class extends o{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function ye(ue,de,me){var Be;if(typeof ue!="function")throw new m("reducer",["Function","AsyncFunction"],ue);me!=null&&p(me,"options"),(me==null?void 0:me.signal)!=null&&i(me.signal,"options.signal");let Ae=arguments.length>1;if(me!=null&&(Be=me.signal)!==null&&Be!==void 0&&Be.aborted){let Me=new u(void 0,{cause:me.signal.reason});throw this.once("error",()=>{}),await w(this.destroy(Me)),Me}let X=new d,ce=X.signal;if(me!=null&&me.signal){let Me={once:!0,[b]:this,[_]:!0};me.signal.addEventListener("abort",()=>X.abort(),Me)}let Se=!1;try{for await(let Me of this){var Ue;if(Se=!0,me!=null&&(Ue=me.signal)!==null&&Ue!==void 0&&Ue.aborted)throw new u;Ae?de=await ue(de,Me,{signal:ce}):(de=Me,Ae=!0)}if(!Se&&!Ae)throw new G}finally{X.abort()}return de}async function Q(ue){ue!=null&&p(ue,"options"),(ue==null?void 0:ue.signal)!=null&&i(ue.signal,"options.signal");let de=[];for await(let Be of this){var me;if(ue!=null&&(me=ue.signal)!==null&&me!==void 0&&me.aborted)throw new u(void 0,{cause:ue.signal.reason});O(de,Be)}return de}function je(ue,de){let me=W.call(this,ue,de);return(async function*(){for await(let Be of me)yield*Be}).call(this)}function ie(ue){if(ue=H(ue),D(ue))return 0;if(ue<0)throw new l("number",">= 0",ue);return ue}function K(ue,de=void 0){return de!=null&&p(de,"options"),(de==null?void 0:de.signal)!=null&&i(de.signal,"options.signal"),ue=ie(ue),(async function*(){var me;if(de!=null&&(me=de.signal)!==null&&me!==void 0&&me.aborted)throw new u;for await(let Ae of this){var Be;if(de!=null&&(Be=de.signal)!==null&&Be!==void 0&&Be.aborted)throw new u;ue--<=0&&(yield Ae)}}).call(this)}function ge(ue,de=void 0){return de!=null&&p(de,"options"),(de==null?void 0:de.signal)!=null&&i(de.signal,"options.signal"),ue=ie(ue),(async function*(){var me;if(de!=null&&(me=de.signal)!==null&&me!==void 0&&me.aborted)throw new u;for await(let Ae of this){var Be;if(de!=null&&(Be=de.signal)!==null&&Be!==void 0&&Be.aborted)throw new u;if(ue-- >0&&(yield Ae),ue<=0)return}}).call(this)}y.exports.streamReturningOperators={asIndexedPairs:S(V,"readable.asIndexedPairs will be removed in a future version."),drop:K,filter:U,flatMap:je,map:W,take:ge,compose:ee},y.exports.promiseReturningOperators={every:be,forEach:I,reduce:ye,toArray:Q,some:Z,find:re}}),Pb=Ie((f,y)=>{Ne(),Re(),Ce();var{ArrayPrototypePop:d,Promise:c}=Lt(),{isIterable:m,isNodeStream:o,isWebStream:l}=xn(),{pipelineImpl:u}=Kh(),{finished:i}=oi();Gb();function a(...p){return new c((b,_)=>{let w,A,M=p[p.length-1];if(M&&typeof M=="object"&&!o(M)&&!m(M)&&!l(M)){let j=d(p);w=j.signal,A=j.end}u(p,(j,C)=>{j?_(j):b(C)},{signal:w,end:A})})}y.exports={finished:i,pipeline:a}}),Gb=Ie((f,y)=>{Ne(),Re(),Ce();var{Buffer:d}=(tr(),Ot(er)),{ObjectDefineProperty:c,ObjectKeys:m,ReflectApply:o}=Lt(),{promisify:{custom:l}}=Ar(),{streamReturningOperators:u,promiseReturningOperators:i}=lS(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:a}}=dr(),p=Hb(),{setDefaultHighWaterMark:b,getDefaultHighWaterMark:_}=ys(),{pipeline:w}=Kh(),{destroyer:A}=_a(),M=oi(),j=Pb(),C=xn(),S=y.exports=Qh().Stream;S.isDestroyed=C.isDestroyed,S.isDisturbed=C.isDisturbed,S.isErrored=C.isErrored,S.isReadable=C.isReadable,S.isWritable=C.isWritable,S.Readable=ms();for(let N of m(u)){let T=function(...D){if(new.target)throw a();return S.Readable.from(o(H,this,D))},H=u[N];c(T,"name",{__proto__:null,value:H.name}),c(T,"length",{__proto__:null,value:H.length}),c(S.Readable.prototype,N,{__proto__:null,value:T,enumerable:!1,configurable:!0,writable:!0})}for(let N of m(i)){let T=function(...D){if(new.target)throw a();return o(H,this,D)},H=i[N];c(T,"name",{__proto__:null,value:H.name}),c(T,"length",{__proto__:null,value:H.length}),c(S.Readable.prototype,N,{__proto__:null,value:T,enumerable:!1,configurable:!0,writable:!0})}S.Writable=Vh(),S.Duplex=An(),S.Transform=Lb(),S.PassThrough=qb(),S.pipeline=w;var{addAbortSignal:O}=ps();S.addAbortSignal=O,S.finished=M,S.destroy=A,S.compose=p,S.setDefaultHighWaterMark=b,S.getDefaultHighWaterMark=_,c(S,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return j}}),c(w,l,{__proto__:null,enumerable:!0,get(){return j.pipeline}}),c(M,l,{__proto__:null,enumerable:!0,get(){return j.finished}}),S.Stream=S,S._isUint8Array=function(N){return N instanceof Uint8Array},S._uint8ArrayToBuffer=function(N){return d.from(N.buffer,N.byteOffset,N.byteLength)}}),Ci=Ie((f,y)=>{Ne(),Re(),Ce();var d=Gb(),c=Pb(),m=d.Readable.destroy;y.exports=d.Readable,y.exports._uint8ArrayToBuffer=d._uint8ArrayToBuffer,y.exports._isUint8Array=d._isUint8Array,y.exports.isDisturbed=d.isDisturbed,y.exports.isErrored=d.isErrored,y.exports.isReadable=d.isReadable,y.exports.Readable=d.Readable,y.exports.Writable=d.Writable,y.exports.Duplex=d.Duplex,y.exports.Transform=d.Transform,y.exports.PassThrough=d.PassThrough,y.exports.addAbortSignal=d.addAbortSignal,y.exports.finished=d.finished,y.exports.destroy=d.destroy,y.exports.destroy=m,y.exports.pipeline=d.pipeline,y.exports.compose=d.compose,Object.defineProperty(d,"promises",{configurable:!0,enumerable:!0,get(){return c}}),y.exports.Stream=d.Stream,y.exports.default=y.exports}),oS=Ie((f,y)=>{Ne(),Re(),Ce(),typeof Object.create=="function"?y.exports=function(d,c){c&&(d.super_=c,d.prototype=Object.create(c.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}))}:y.exports=function(d,c){if(c){d.super_=c;var m=function(){};m.prototype=c.prototype,d.prototype=new m,d.prototype.constructor=d}}}),sS=Ie((f,y)=>{Ne(),Re(),Ce();var{Buffer:d}=(tr(),Ot(er)),c=Symbol.for("BufferList");function m(o){if(!(this instanceof m))return new m(o);m._init.call(this,o)}m._init=function(o){Object.defineProperty(this,c,{value:!0}),this._bufs=[],this.length=0,o&&this.append(o)},m.prototype._new=function(o){return new m(o)},m.prototype._offset=function(o){if(o===0)return[0,0];let l=0;for(let u=0;u<this._bufs.length;u++){let i=l+this._bufs[u].length;if(o<i||u===this._bufs.length-1)return[u,o-l];l=i}},m.prototype._reverseOffset=function(o){let l=o[0],u=o[1];for(let i=0;i<l;i++)u+=this._bufs[i].length;return u},m.prototype.getBuffers=function(){return this._bufs},m.prototype.get=function(o){if(o>this.length||o<0)return;let l=this._offset(o);return this._bufs[l[0]][l[1]]},m.prototype.slice=function(o,l){return typeof o=="number"&&o<0&&(o+=this.length),typeof l=="number"&&l<0&&(l+=this.length),this.copy(null,0,o,l)},m.prototype.copy=function(o,l,u,i){if((typeof u!="number"||u<0)&&(u=0),(typeof i!="number"||i>this.length)&&(i=this.length),u>=this.length||i<=0)return o||d.alloc(0);let a=!!o,p=this._offset(u),b=i-u,_=b,w=a&&l||0,A=p[1];if(u===0&&i===this.length){if(!a)return this._bufs.length===1?this._bufs[0]:d.concat(this._bufs,this.length);for(let M=0;M<this._bufs.length;M++)this._bufs[M].copy(o,w),w+=this._bufs[M].length;return o}if(_<=this._bufs[p[0]].length-A)return a?this._bufs[p[0]].copy(o,l,A,A+_):this._bufs[p[0]].slice(A,A+_);a||(o=d.allocUnsafe(b));for(let M=p[0];M<this._bufs.length;M++){let j=this._bufs[M].length-A;if(_>j)this._bufs[M].copy(o,w,A),w+=j;else{this._bufs[M].copy(o,w,A,A+_),w+=j;break}_-=j,A&&(A=0)}return o.length>w?o.slice(0,w):o},m.prototype.shallowSlice=function(o,l){if(o=o||0,l=typeof l!="number"?this.length:l,o<0&&(o+=this.length),l<0&&(l+=this.length),o===l)return this._new();let u=this._offset(o),i=this._offset(l),a=this._bufs.slice(u[0],i[0]+1);return i[1]===0?a.pop():a[a.length-1]=a[a.length-1].slice(0,i[1]),u[1]!==0&&(a[0]=a[0].slice(u[1])),this._new(a)},m.prototype.toString=function(o,l,u){return this.slice(l,u).toString(o)},m.prototype.consume=function(o){if(o=Math.trunc(o),Number.isNaN(o)||o<=0)return this;for(;this._bufs.length;)if(o>=this._bufs[0].length)o-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(o),this.length-=o;break}return this},m.prototype.duplicate=function(){let o=this._new();for(let l=0;l<this._bufs.length;l++)o.append(this._bufs[l]);return o},m.prototype.append=function(o){return this._attach(o,m.prototype._appendBuffer)},m.prototype.prepend=function(o){return this._attach(o,m.prototype._prependBuffer,!0)},m.prototype._attach=function(o,l,u){if(o==null)return this;if(o.buffer)l.call(this,d.from(o.buffer,o.byteOffset,o.byteLength));else if(Array.isArray(o)){let[i,a]=u?[o.length-1,-1]:[0,1];for(let p=i;p>=0&&p<o.length;p+=a)this._attach(o[p],l,u)}else if(this._isBufferList(o)){let[i,a]=u?[o._bufs.length-1,-1]:[0,1];for(let p=i;p>=0&&p<o._bufs.length;p+=a)this._attach(o._bufs[p],l,u)}else typeof o=="number"&&(o=o.toString()),l.call(this,d.from(o));return this},m.prototype._appendBuffer=function(o){this._bufs.push(o),this.length+=o.length},m.prototype._prependBuffer=function(o){this._bufs.unshift(o),this.length+=o.length},m.prototype.indexOf=function(o,l,u){if(u===void 0&&typeof l=="string"&&(u=l,l=void 0),typeof o=="function"||Array.isArray(o))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof o=="number"?o=d.from([o]):typeof o=="string"?o=d.from(o,u):this._isBufferList(o)?o=o.slice():Array.isArray(o.buffer)?o=d.from(o.buffer,o.byteOffset,o.byteLength):d.isBuffer(o)||(o=d.from(o)),l=Number(l||0),isNaN(l)&&(l=0),l<0&&(l=this.length+l),l<0&&(l=0),o.length===0)return l>this.length?this.length:l;let i=this._offset(l),a=i[0],p=i[1];for(;a<this._bufs.length;a++){let b=this._bufs[a];for(;p<b.length;)if(b.length-p>=o.length){let _=b.indexOf(o,p);if(_!==-1)return this._reverseOffset([a,_]);p=b.length-o.length+1}else{let _=this._reverseOffset([a,p]);if(this._match(_,o))return _;p++}p=0}return-1},m.prototype._match=function(o,l){if(this.length-o<l.length)return!1;for(let u=0;u<l.length;u++)if(this.get(o+u)!==l[u])return!1;return!0},(function(){let o={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readBigInt64BE:8,readBigInt64LE:8,readBigUInt64BE:8,readBigUInt64LE:8,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let l in o)(function(u){o[u]===null?m.prototype[u]=function(i,a){return this.slice(i,i+a)[u](0,a)}:m.prototype[u]=function(i=0){return this.slice(i,i+o[u])[u](0)}})(l)})(),m.prototype._isBufferList=function(o){return o instanceof m||m.isBufferList(o)},m.isBufferList=function(o){return o!=null&&o[c]},y.exports=m}),uS=Ie((f,y)=>{Ne(),Re(),Ce();var d=Ci().Duplex,c=oS(),m=sS();function o(l){if(!(this instanceof o))return new o(l);if(typeof l=="function"){this._callback=l;let u=(function(i){this._callback&&(this._callback(i),this._callback=null)}).bind(this);this.on("pipe",function(i){i.on("error",u)}),this.on("unpipe",function(i){i.removeListener("error",u)}),l=null}m._init.call(this,l),d.call(this)}c(o,d),Object.assign(o.prototype,m.prototype),o.prototype._new=function(l){return new o(l)},o.prototype._write=function(l,u,i){this._appendBuffer(l),typeof i=="function"&&i()},o.prototype._read=function(l){if(!this.length)return this.push(null);l=Math.min(l,this.length),this.push(this.slice(0,l)),this.consume(l)},o.prototype.end=function(l){d.prototype.end.call(this,l),this._callback&&(this._callback(null,this.slice()),this._callback=null)},o.prototype._destroy=function(l,u){this._bufs.length=0,this.length=0,u(l)},o.prototype._isBufferList=function(l){return l instanceof o||l instanceof m||o.isBufferList(l)},o.isBufferList=m.isBufferList,y.exports=o,y.exports.BufferListStream=o,y.exports.BufferList=m}),cS=Ie((f,y)=>{Ne(),Re(),Ce();var d=class{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}};y.exports=d}),Yb=Ie((f,y)=>{Ne(),Re(),Ce();var d=y.exports,{Buffer:c}=(tr(),Ot(er));d.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},d.requiredHeaderFlags={1:0,2:0,4:0,5:0,6:2,7:0,8:2,9:0,10:2,11:0,12:0,13:0,14:0,15:0},d.requiredHeaderFlagsErrors={};for(let o in d.requiredHeaderFlags){let l=d.requiredHeaderFlags[o];d.requiredHeaderFlagsErrors[o]="Invalid header flag bits, must be 0x"+l.toString(16)+" for "+d.types[o]+" packet"}d.codes={};for(let o in d.types){let l=d.types[o];d.codes[l]=o}d.CMD_SHIFT=4,d.CMD_MASK=240,d.DUP_MASK=8,d.QOS_MASK=3,d.QOS_SHIFT=1,d.RETAIN_MASK=1,d.VARBYTEINT_MASK=127,d.VARBYTEINT_FIN_MASK=128,d.VARBYTEINT_MAX=268435455,d.SESSIONPRESENT_MASK=1,d.SESSIONPRESENT_HEADER=c.from([d.SESSIONPRESENT_MASK]),d.CONNACK_HEADER=c.from([d.codes.connack<<d.CMD_SHIFT]),d.USERNAME_MASK=128,d.PASSWORD_MASK=64,d.WILL_RETAIN_MASK=32,d.WILL_QOS_MASK=24,d.WILL_QOS_SHIFT=3,d.WILL_FLAG_MASK=4,d.CLEAN_SESSION_MASK=2,d.CONNECT_HEADER=c.from([d.codes.connect<<d.CMD_SHIFT]),d.properties={sessionExpiryInterval:17,willDelayInterval:24,receiveMaximum:33,maximumPacketSize:39,topicAliasMaximum:34,requestResponseInformation:25,requestProblemInformation:23,userProperties:38,authenticationMethod:21,authenticationData:22,payloadFormatIndicator:1,messageExpiryInterval:2,contentType:3,responseTopic:8,correlationData:9,maximumQoS:36,retainAvailable:37,assignedClientIdentifier:18,reasonString:31,wildcardSubscriptionAvailable:40,subscriptionIdentifiersAvailable:41,sharedSubscriptionAvailable:42,serverKeepAlive:19,responseInformation:26,serverReference:28,topicAlias:35,subscriptionIdentifier:11},d.propertiesCodes={};for(let o in d.properties){let l=d.properties[o];d.propertiesCodes[l]=o}d.propertiesTypes={sessionExpiryInterval:"int32",willDelayInterval:"int32",receiveMaximum:"int16",maximumPacketSize:"int32",topicAliasMaximum:"int16",requestResponseInformation:"byte",requestProblemInformation:"byte",userProperties:"pair",authenticationMethod:"string",authenticationData:"binary",payloadFormatIndicator:"byte",messageExpiryInterval:"int32",contentType:"string",responseTopic:"string",correlationData:"binary",maximumQoS:"int8",retainAvailable:"byte",assignedClientIdentifier:"string",reasonString:"string",wildcardSubscriptionAvailable:"byte",subscriptionIdentifiersAvailable:"byte",sharedSubscriptionAvailable:"byte",serverKeepAlive:"int16",responseInformation:"string",serverReference:"string",topicAlias:"int16",subscriptionIdentifier:"var"};function m(o){return[0,1,2].map(l=>[0,1].map(u=>[0,1].map(i=>{let a=c.alloc(1);return a.writeUInt8(d.codes[o]<<d.CMD_SHIFT|(u?d.DUP_MASK:0)|l<<d.QOS_SHIFT|i,0,!0),a})))}d.PUBLISH_HEADER=m("publish"),d.SUBSCRIBE_HEADER=m("subscribe"),d.SUBSCRIBE_OPTIONS_QOS_MASK=3,d.SUBSCRIBE_OPTIONS_NL_MASK=1,d.SUBSCRIBE_OPTIONS_NL_SHIFT=2,d.SUBSCRIBE_OPTIONS_RAP_MASK=1,d.SUBSCRIBE_OPTIONS_RAP_SHIFT=3,d.SUBSCRIBE_OPTIONS_RH_MASK=3,d.SUBSCRIBE_OPTIONS_RH_SHIFT=4,d.SUBSCRIBE_OPTIONS_RH=[0,16,32],d.SUBSCRIBE_OPTIONS_NL=4,d.SUBSCRIBE_OPTIONS_RAP=8,d.SUBSCRIBE_OPTIONS_QOS=[0,1,2],d.UNSUBSCRIBE_HEADER=m("unsubscribe"),d.ACKS={unsuback:m("unsuback"),puback:m("puback"),pubcomp:m("pubcomp"),pubrel:m("pubrel"),pubrec:m("pubrec")},d.SUBACK_HEADER=c.from([d.codes.suback<<d.CMD_SHIFT]),d.VERSION3=c.from([3]),d.VERSION4=c.from([4]),d.VERSION5=c.from([5]),d.VERSION131=c.from([131]),d.VERSION132=c.from([132]),d.QOS=[0,1,2].map(o=>c.from([o])),d.EMPTY={pingreq:c.from([d.codes.pingreq<<4,0]),pingresp:c.from([d.codes.pingresp<<4,0]),disconnect:c.from([d.codes.disconnect<<4,0])},d.MQTT5_PUBACK_PUBREC_CODES={0:"Success",16:"No matching subscribers",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",144:"Topic Name invalid",145:"Packet identifier in use",151:"Quota exceeded",153:"Payload format invalid"},d.MQTT5_PUBREL_PUBCOMP_CODES={0:"Success",146:"Packet Identifier not found"},d.MQTT5_SUBACK_CODES={0:"Granted QoS 0",1:"Granted QoS 1",2:"Granted QoS 2",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use",151:"Quota exceeded",158:"Shared Subscriptions not supported",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},d.MQTT5_UNSUBACK_CODES={0:"Success",17:"No subscription existed",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use"},d.MQTT5_DISCONNECT_CODES={0:"Normal disconnection",4:"Disconnect with Will Message",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",135:"Not authorized",137:"Server busy",139:"Server shutting down",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},d.MQTT5_AUTH_CODES={0:"Success",24:"Continue authentication",25:"Re-authenticate"}}),fS=Ie((f,y)=>{Ne(),Re(),Ce();var d=1e3,c=d*60,m=c*60,o=m*24,l=o*7,u=o*365.25;y.exports=function(_,w){w=w||{};var A=typeof _;if(A==="string"&&_.length>0)return i(_);if(A==="number"&&isFinite(_))return w.long?p(_):a(_);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(_))};function i(_){if(_=String(_),!(_.length>100)){var w=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(_);if(w){var A=parseFloat(w[1]),M=(w[2]||"ms").toLowerCase();switch(M){case"years":case"year":case"yrs":case"yr":case"y":return A*u;case"weeks":case"week":case"w":return A*l;case"days":case"day":case"d":return A*o;case"hours":case"hour":case"hrs":case"hr":case"h":return A*m;case"minutes":case"minute":case"mins":case"min":case"m":return A*c;case"seconds":case"second":case"secs":case"sec":case"s":return A*d;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return A;default:return}}}}function a(_){var w=Math.abs(_);return w>=o?Math.round(_/o)+"d":w>=m?Math.round(_/m)+"h":w>=c?Math.round(_/c)+"m":w>=d?Math.round(_/d)+"s":_+"ms"}function p(_){var w=Math.abs(_);return w>=o?b(_,w,o,"day"):w>=m?b(_,w,m,"hour"):w>=c?b(_,w,c,"minute"):w>=d?b(_,w,d,"second"):_+" ms"}function b(_,w,A,M){var j=w>=A*1.5;return Math.round(_/A)+" "+M+(j?"s":"")}}),hS=Ie((f,y)=>{Ne(),Re(),Ce();function d(c){o.debug=o,o.default=o,o.coerce=b,o.disable=a,o.enable=u,o.enabled=p,o.humanize=fS(),o.destroy=_,Object.keys(c).forEach(w=>{o[w]=c[w]}),o.names=[],o.skips=[],o.formatters={};function m(w){let A=0;for(let M=0;M<w.length;M++)A=(A<<5)-A+w.charCodeAt(M),A|=0;return o.colors[Math.abs(A)%o.colors.length]}o.selectColor=m;function o(w){let A,M=null,j,C;function S(...O){if(!S.enabled)return;let N=S,T=Number(new Date),H=T-(A||T);N.diff=H,N.prev=A,N.curr=T,A=T,O[0]=o.coerce(O[0]),typeof O[0]!="string"&&O.unshift("%O");let D=0;O[0]=O[0].replace(/%([a-zA-Z%])/g,(k,z)=>{if(k==="%%")return"%";D++;let R=o.formatters[z];if(typeof R=="function"){let Y=O[D];k=R.call(N,Y),O.splice(D,1),D--}return k}),o.formatArgs.call(N,O),(N.log||o.log).apply(N,O)}return S.namespace=w,S.useColors=o.useColors(),S.color=o.selectColor(w),S.extend=l,S.destroy=o.destroy,Object.defineProperty(S,"enabled",{enumerable:!0,configurable:!1,get:()=>M!==null?M:(j!==o.namespaces&&(j=o.namespaces,C=o.enabled(w)),C),set:O=>{M=O}}),typeof o.init=="function"&&o.init(S),S}function l(w,A){let M=o(this.namespace+(typeof A>"u"?":":A)+w);return M.log=this.log,M}function u(w){o.save(w),o.namespaces=w,o.names=[],o.skips=[];let A=(typeof w=="string"?w:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let M of A)M[0]==="-"?o.skips.push(M.slice(1)):o.names.push(M)}function i(w,A){let M=0,j=0,C=-1,S=0;for(;M<w.length;)if(j<A.length&&(A[j]===w[M]||A[j]==="*"))A[j]==="*"?(C=j,S=M,j++):(M++,j++);else if(C!==-1)j=C+1,S++,M=S;else return!1;for(;j<A.length&&A[j]==="*";)j++;return j===A.length}function a(){let w=[...o.names,...o.skips.map(A=>"-"+A)].join(",");return o.enable(""),w}function p(w){for(let A of o.skips)if(i(w,A))return!1;for(let A of o.names)if(i(w,A))return!0;return!1}function b(w){return w instanceof Error?w.stack||w.message:w}function _(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return o.enable(o.load()),o}y.exports=d}),Tn=Ie((f,y)=>{Ne(),Re(),Ce(),f.formatArgs=c,f.save=m,f.load=o,f.useColors=d,f.storage=l(),f.destroy=(()=>{let i=!1;return()=>{i||(i=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),f.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function d(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let i;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(i=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(i[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function c(i){if(i[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+i[0]+(this.useColors?"%c ":" ")+"+"+y.exports.humanize(this.diff),!this.useColors)return;let a="color: "+this.color;i.splice(1,0,a,"color: inherit");let p=0,b=0;i[0].replace(/%[a-zA-Z%]/g,_=>{_!=="%%"&&(p++,_==="%c"&&(b=p))}),i.splice(b,0,a)}f.log=console.debug||console.log||(()=>{});function m(i){try{i?f.storage.setItem("debug",i):f.storage.removeItem("debug")}catch{}}function o(){let i;try{i=f.storage.getItem("debug")||f.storage.getItem("DEBUG")}catch{}return!i&&typeof _t<"u"&&"env"in _t&&(i=_t.env.DEBUG),i}function l(){try{return localStorage}catch{}}y.exports=hS()(f);var{formatters:u}=y.exports;u.j=function(i){try{return JSON.stringify(i)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}}}),dS=Ie((f,y)=>{Ne(),Re(),Ce();var d=uS(),{EventEmitter:c}=(Mi(),Ot(li)),m=cS(),o=Yb(),l=Tn()("mqtt-packet:parser"),u=class Ff extends c{constructor(){super(),this.parser=this.constructor.parser}static parser(a){return this instanceof Ff?(this.settings=a||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new Ff().parser(a)}_resetState(){l("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new m,this.error=null,this._list=d(),this._stateCounter=0}parse(a){for(this.error&&this._resetState(),this._list.append(a),l("parse: current state: %s",this._states[this._stateCounter]);(this.packet.length!==-1||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,l("parse: state complete. _stateCounter is now: %d",this._stateCounter),l("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return l("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){let a=this._list.readUInt8(0),p=a>>o.CMD_SHIFT;this.packet.cmd=o.types[p];let b=a&15,_=o.requiredHeaderFlags[p];return _!=null&&b!==_?this._emitError(new Error(o.requiredHeaderFlagsErrors[p])):(this.packet.retain=(a&o.RETAIN_MASK)!==0,this.packet.qos=a>>o.QOS_SHIFT&o.QOS_MASK,this.packet.qos>2?this._emitError(new Error("Packet must not have both QoS bits set to 1")):(this.packet.dup=(a&o.DUP_MASK)!==0,l("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0))}_parseLength(){let a=this._parseVarByteNum(!0);return a&&(this.packet.length=a.value,this._list.consume(a.bytes)),l("_parseLength %d",a.value),!!a}_parsePayload(){l("_parsePayload: payload %O",this._list);let a=!1;if(this.packet.length===0||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}a=!0}return l("_parsePayload complete result: %s",a),a}_parseConnect(){l("_parseConnect");let a,p,b,_,w={},A=this.packet,M=this._parseString();if(M===null)return this._emitError(new Error("Cannot parse protocolId"));if(M!=="MQTT"&&M!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(A.protocolId=M,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(A.protocolVersion=this._list.readUInt8(this._pos),A.protocolVersion>=128&&(A.bridgeMode=!0,A.protocolVersion=A.protocolVersion-128),A.protocolVersion!==3&&A.protocolVersion!==4&&A.protocolVersion!==5)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(this._list.readUInt8(this._pos)&1)return this._emitError(new Error("Connect flag bit 0 must be 0, but got 1"));w.username=this._list.readUInt8(this._pos)&o.USERNAME_MASK,w.password=this._list.readUInt8(this._pos)&o.PASSWORD_MASK,w.will=this._list.readUInt8(this._pos)&o.WILL_FLAG_MASK;let j=!!(this._list.readUInt8(this._pos)&o.WILL_RETAIN_MASK),C=(this._list.readUInt8(this._pos)&o.WILL_QOS_MASK)>>o.WILL_QOS_SHIFT;if(w.will)A.will={},A.will.retain=j,A.will.qos=C;else{if(j)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(C)return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"))}if(A.clean=(this._list.readUInt8(this._pos)&o.CLEAN_SESSION_MASK)!==0,this._pos++,A.keepalive=this._parseNum(),A.keepalive===-1)return this._emitError(new Error("Packet too short"));if(A.protocolVersion===5){let O=this._parseProperties();Object.getOwnPropertyNames(O).length&&(A.properties=O)}let S=this._parseString();if(S===null)return this._emitError(new Error("Packet too short"));if(A.clientId=S,l("_parseConnect: packet.clientId: %s",A.clientId),w.will){if(A.protocolVersion===5){let O=this._parseProperties();Object.getOwnPropertyNames(O).length&&(A.will.properties=O)}if(a=this._parseString(),a===null)return this._emitError(new Error("Cannot parse will topic"));if(A.will.topic=a,l("_parseConnect: packet.will.topic: %s",A.will.topic),p=this._parseBuffer(),p===null)return this._emitError(new Error("Cannot parse will payload"));A.will.payload=p,l("_parseConnect: packet.will.paylaod: %s",A.will.payload)}if(w.username){if(_=this._parseString(),_===null)return this._emitError(new Error("Cannot parse username"));A.username=_,l("_parseConnect: packet.username: %s",A.username)}if(w.password){if(b=this._parseBuffer(),b===null)return this._emitError(new Error("Cannot parse password"));A.password=b}return this.settings=A,l("_parseConnect: complete"),A}_parseConnack(){l("_parseConnack");let a=this.packet;if(this._list.length<1)return null;let p=this._list.readUInt8(this._pos++);if(p>1)return this._emitError(new Error("Invalid connack flags, bits 7-1 must be set to 0"));if(a.sessionPresent=!!(p&o.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?a.reasonCode=this._list.readUInt8(this._pos++):a.reasonCode=0;else{if(this._list.length<2)return null;a.returnCode=this._list.readUInt8(this._pos++)}if(a.returnCode===-1||a.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){let b=this._parseProperties();Object.getOwnPropertyNames(b).length&&(a.properties=b)}l("_parseConnack: complete")}_parsePublish(){l("_parsePublish");let a=this.packet;if(a.topic=this._parseString(),a.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(a.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){let p=this._parseProperties();Object.getOwnPropertyNames(p).length&&(a.properties=p)}a.payload=this._list.slice(this._pos,a.length),l("_parsePublish: payload from buffer list: %o",a.payload)}}_parseSubscribe(){l("_parseSubscribe");let a=this.packet,p,b,_,w,A,M,j;if(a.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let C=this._parseProperties();Object.getOwnPropertyNames(C).length&&(a.properties=C)}if(a.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos<a.length;){if(p=this._parseString(),p===null)return this._emitError(new Error("Cannot parse topic"));if(this._pos>=a.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(b=this._parseByte(),this.settings.protocolVersion===5){if(b&192)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(b&252)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(_=b&o.SUBSCRIBE_OPTIONS_QOS_MASK,_>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(M=(b>>o.SUBSCRIBE_OPTIONS_NL_SHIFT&o.SUBSCRIBE_OPTIONS_NL_MASK)!==0,A=(b>>o.SUBSCRIBE_OPTIONS_RAP_SHIFT&o.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,w=b>>o.SUBSCRIBE_OPTIONS_RH_SHIFT&o.SUBSCRIBE_OPTIONS_RH_MASK,w>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));j={topic:p,qos:_},this.settings.protocolVersion===5?(j.nl=M,j.rap=A,j.rh=w):this.settings.bridgeMode&&(j.rh=0,j.rap=!0,j.nl=!0),l("_parseSubscribe: push subscription `%s` to subscription",j),a.subscriptions.push(j)}}}_parseSuback(){l("_parseSuback");let a=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let p=this._parseProperties();Object.getOwnPropertyNames(p).length&&(a.properties=p)}if(a.length<=0)return this._emitError(new Error("Malformed suback, no payload specified"));for(;this._pos<this.packet.length;){let p=this._list.readUInt8(this._pos++);if(this.settings.protocolVersion===5){if(!o.MQTT5_SUBACK_CODES[p])return this._emitError(new Error("Invalid suback code"))}else if(p>2&&p!==128)return this._emitError(new Error("Invalid suback QoS, must be 0, 1, 2 or 128"));this.packet.granted.push(p)}}}_parseUnsubscribe(){l("_parseUnsubscribe");let a=this.packet;if(a.unsubscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let p=this._parseProperties();Object.getOwnPropertyNames(p).length&&(a.properties=p)}if(a.length<=0)return this._emitError(new Error("Malformed unsubscribe, no payload specified"));for(;this._pos<a.length;){let p=this._parseString();if(p===null)return this._emitError(new Error("Cannot parse topic"));l("_parseUnsubscribe: push topic `%s` to unsubscriptions",p),a.unsubscriptions.push(p)}}}_parseUnsuback(){l("_parseUnsuback");let a=this.packet;if(!this._parseMessageId())return this._emitError(new Error("Cannot parse messageId"));if((this.settings.protocolVersion===3||this.settings.protocolVersion===4)&&a.length!==2)return this._emitError(new Error("Malformed unsuback, payload length must be 2"));if(a.length<=0)return this._emitError(new Error("Malformed unsuback, no payload specified"));if(this.settings.protocolVersion===5){let p=this._parseProperties();for(Object.getOwnPropertyNames(p).length&&(a.properties=p),a.granted=[];this._pos<this.packet.length;){let b=this._list.readUInt8(this._pos++);if(!o.MQTT5_UNSUBACK_CODES[b])return this._emitError(new Error("Invalid unsuback code"));this.packet.granted.push(b)}}}_parseConfirmation(){l("_parseConfirmation: packet.cmd: `%s`",this.packet.cmd);let a=this.packet;if(this._parseMessageId(),this.settings.protocolVersion===5){if(a.length>2){switch(a.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!o.MQTT5_PUBACK_PUBREC_CODES[a.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!o.MQTT5_PUBREL_PUBCOMP_CODES[a.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break}l("_parseConfirmation: packet.reasonCode `%d`",a.reasonCode)}else a.reasonCode=0;if(a.length>3){let p=this._parseProperties();Object.getOwnPropertyNames(p).length&&(a.properties=p)}}return!0}_parseDisconnect(){let a=this.packet;if(l("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?(a.reasonCode=this._parseByte(),o.MQTT5_DISCONNECT_CODES[a.reasonCode]||this._emitError(new Error("Invalid disconnect reason code"))):a.reasonCode=0;let p=this._parseProperties();Object.getOwnPropertyNames(p).length&&(a.properties=p)}return l("_parseDisconnect result: true"),!0}_parseAuth(){l("_parseAuth");let a=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));if(a.reasonCode=this._parseByte(),!o.MQTT5_AUTH_CODES[a.reasonCode])return this._emitError(new Error("Invalid auth reason code"));let p=this._parseProperties();return Object.getOwnPropertyNames(p).length&&(a.properties=p),l("_parseAuth: result: true"),!0}_parseMessageId(){let a=this.packet;return a.messageId=this._parseNum(),a.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(l("_parseMessageId: packet.messageId %d",a.messageId),!0)}_parseString(a){let p=this._parseNum(),b=p+this._pos;if(p===-1||b>this._list.length||b>this.packet.length)return null;let _=this._list.toString("utf8",this._pos,b);return this._pos+=p,l("_parseString: result: %s",_),_}_parseStringPair(){return l("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){let a=this._parseNum(),p=a+this._pos;if(a===-1||p>this._list.length||p>this.packet.length)return null;let b=this._list.slice(this._pos,p);return this._pos+=a,l("_parseBuffer: result: %o",b),b}_parseNum(){if(this._list.length-this._pos<2)return-1;let a=this._list.readUInt16BE(this._pos);return this._pos+=2,l("_parseNum: result: %s",a),a}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;let a=this._list.readUInt32BE(this._pos);return this._pos+=4,l("_parse4ByteNum: result: %s",a),a}_parseVarByteNum(a){l("_parseVarByteNum");let p=4,b=0,_=1,w=0,A=!1,M,j=this._pos?this._pos:0;for(;b<p&&j+b<this._list.length;){if(M=this._list.readUInt8(j+b++),w+=_*(M&o.VARBYTEINT_MASK),_*=128,(M&o.VARBYTEINT_FIN_MASK)===0){A=!0;break}if(this._list.length<=b)break}return!A&&b===p&&this._list.length>=b&&this._emitError(new Error("Invalid variable byte integer")),j&&(this._pos+=b),A?a?A={bytes:b,value:w}:A=w:A=!1,l("_parseVarByteNum: result: %o",A),A}_parseByte(){let a;return this._pos<this._list.length&&(a=this._list.readUInt8(this._pos),this._pos++),l("_parseByte: result: %o",a),a}_parseByType(a){switch(l("_parseByType: type: %s",a),a){case"byte":return this._parseByte()!==0;case"int8":return this._parseByte();case"int16":return this._parseNum();case"int32":return this._parse4ByteNum();case"var":return this._parseVarByteNum();case"string":return this._parseString();case"pair":return this._parseStringPair();case"binary":return this._parseBuffer()}}_parseProperties(){l("_parseProperties");let a=this._parseVarByteNum(),p=this._pos+a,b={};for(;this._pos<p;){let _=this._parseByte();if(!_)return this._emitError(new Error("Cannot parse property code type")),!1;let w=o.propertiesCodes[_];if(!w)return this._emitError(new Error("Unknown property")),!1;if(w==="userProperties"){b[w]||(b[w]=Object.create(null));let A=this._parseByType(o.propertiesTypes[w]);if(b[w][A.name])if(Array.isArray(b[w][A.name]))b[w][A.name].push(A.value);else{let M=b[w][A.name];b[w][A.name]=[M],b[w][A.name].push(A.value)}else b[w][A.name]=A.value;continue}b[w]?Array.isArray(b[w])?b[w].push(this._parseByType(o.propertiesTypes[w])):(b[w]=[b[w]],b[w].push(this._parseByType(o.propertiesTypes[w]))):b[w]=this._parseByType(o.propertiesTypes[w])}return b}_newPacket(){return l("_newPacket"),this.packet&&(this._list.consume(this.packet.length),l("_newPacket: parser emit packet: packet.cmd: %s, packet.payload: %s, packet.length: %d",this.packet.cmd,this.packet.payload,this.packet.length),this.emit("packet",this.packet)),l("_newPacket: new packet"),this.packet=new m,this._pos=0,!0}_emitError(a){l("_emitError",a),this.error=a,this.emit("error",a)}};y.exports=u}),pS=Ie((f,y)=>{Ne(),Re(),Ce();var{Buffer:d}=(tr(),Ot(er)),c=65536,m={},o=d.isBuffer(d.from([1,2]).subarray(0,1));function l(p){let b=d.allocUnsafe(2);return b.writeUInt8(p>>8,0),b.writeUInt8(p&255,1),b}function u(){for(let p=0;p<c;p++)m[p]=l(p)}function i(p){let b=0,_=0,w=d.allocUnsafe(4);do b=p%128|0,p=p/128|0,p>0&&(b=b|128),w.writeUInt8(b,_++);while(p>0&&_<4);return p>0&&(_=0),o?w.subarray(0,_):w.slice(0,_)}function a(p){let b=d.allocUnsafe(4);return b.writeUInt32BE(p,0),b}y.exports={cache:m,generateCache:u,generateNumber:l,genBufVariableByteInt:i,generate4ByteBuffer:a}}),yS=Ie((f,y)=>{Ne(),Re(),Ce(),typeof _t>"u"||!_t.version||_t.version.indexOf("v0.")===0||_t.version.indexOf("v1.")===0&&_t.version.indexOf("v1.8.")!==0?y.exports={nextTick:d}:y.exports=_t;function d(c,m,o,l){if(typeof c!="function")throw new TypeError('"callback" argument must be a function');var u=arguments.length,i,a;switch(u){case 0:case 1:return _t.nextTick(c);case 2:return _t.nextTick(function(){c.call(null,m)});case 3:return _t.nextTick(function(){c.call(null,m,o)});case 4:return _t.nextTick(function(){c.call(null,m,o,l)});default:for(i=new Array(u-1),a=0;a<i.length;)i[a++]=arguments[a];return _t.nextTick(function(){c.apply(null,i)})}}}),Qb=Ie((f,y)=>{Ne(),Re(),Ce();var d=Yb(),{Buffer:c}=(tr(),Ot(er)),m=c.allocUnsafe(0),o=c.from([0]),l=pS(),u=yS().nextTick,i=Tn()("mqtt-packet:writeToStream"),a=l.cache,p=l.generateNumber,b=l.generateCache,_=l.genBufVariableByteInt,w=l.generate4ByteBuffer,A=V,M=!0;function j(ie,K,ge){switch(i("generate called"),K.cork&&(K.cork(),u(C,K)),M&&(M=!1,b()),i("generate: packet.cmd: %s",ie.cmd),ie.cmd){case"connect":return S(ie,K);case"connack":return O(ie,K,ge);case"publish":return N(ie,K,ge);case"puback":case"pubrec":case"pubrel":case"pubcomp":return T(ie,K,ge);case"subscribe":return H(ie,K,ge);case"suback":return D(ie,K,ge);case"unsubscribe":return k(ie,K,ge);case"unsuback":return z(ie,K,ge);case"pingreq":case"pingresp":return R(ie,K);case"disconnect":return Y(ie,K,ge);case"auth":return B(ie,K,ge);default:return K.destroy(new Error("Unknown command")),!1}}Object.defineProperty(j,"cacheNumbers",{get(){return A===V},set(ie){ie?((!a||Object.keys(a).length===0)&&(M=!0),A=V):(M=!1,A=Z)}});function C(ie){ie.uncork()}function S(ie,K,ge){let ue=ie||{},de=ue.protocolId||"MQTT",me=ue.protocolVersion||4,Be=ue.will,Ae=ue.clean,X=ue.keepalive||0,ce=ue.clientId||"",Se=ue.username,Ue=ue.password,Me=ue.properties;Ae===void 0&&(Ae=!0);let ze=0;if(typeof de!="string"&&!c.isBuffer(de))return K.destroy(new Error("Invalid protocolId")),!1;if(ze+=de.length+2,me!==3&&me!==4&&me!==5)return K.destroy(new Error("Invalid protocol version")),!1;if(ze+=1,(typeof ce=="string"||c.isBuffer(ce))&&(ce||me>=4)&&(ce||Ae))ze+=c.byteLength(ce)+2;else{if(me<4)return K.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(Ae*1===0)return K.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof X!="number"||X<0||X>65535||X%1!==0)return K.destroy(new Error("Invalid keepalive")),!1;ze+=2,ze+=1;let he,ke;if(me===5){if(he=I(K,Me),!he)return!1;ze+=he.length}if(Be){if(typeof Be!="object")return K.destroy(new Error("Invalid will")),!1;if(!Be.topic||typeof Be.topic!="string")return K.destroy(new Error("Invalid will topic")),!1;if(ze+=c.byteLength(Be.topic)+2,ze+=2,Be.payload)if(Be.payload.length>=0)typeof Be.payload=="string"?ze+=c.byteLength(Be.payload):ze+=Be.payload.length;else return K.destroy(new Error("Invalid will payload")),!1;if(ke={},me===5){if(ke=I(K,Be.properties),!ke)return!1;ze+=ke.length}}let Pe=!1;if(Se!=null)if(je(Se))Pe=!0,ze+=c.byteLength(Se)+2;else return K.destroy(new Error("Invalid username")),!1;if(Ue!=null){if(!Pe)return K.destroy(new Error("Username is required to use password")),!1;if(je(Ue))ze+=Q(Ue)+2;else return K.destroy(new Error("Invalid password")),!1}K.write(d.CONNECT_HEADER),ae(K,ze),re(K,de),ue.bridgeMode&&(me+=128),K.write(me===131?d.VERSION131:me===132?d.VERSION132:me===4?d.VERSION4:me===5?d.VERSION5:d.VERSION3);let xe=0;return xe|=Se!=null?d.USERNAME_MASK:0,xe|=Ue!=null?d.PASSWORD_MASK:0,xe|=Be&&Be.retain?d.WILL_RETAIN_MASK:0,xe|=Be&&Be.qos?Be.qos<<d.WILL_QOS_SHIFT:0,xe|=Be?d.WILL_FLAG_MASK:0,xe|=Ae?d.CLEAN_SESSION_MASK:0,K.write(c.from([xe])),A(K,X),me===5&&he.write(),re(K,ce),Be&&(me===5&&ke.write(),ee(K,Be.topic),re(K,Be.payload)),Se!=null&&re(K,Se),Ue!=null&&re(K,Ue),!0}function O(ie,K,ge){let ue=ge?ge.protocolVersion:4,de=ie||{},me=ue===5?de.reasonCode:de.returnCode,Be=de.properties,Ae=2;if(typeof me!="number")return K.destroy(new Error("Invalid return code")),!1;let X=null;if(ue===5){if(X=I(K,Be),!X)return!1;Ae+=X.length}return K.write(d.CONNACK_HEADER),ae(K,Ae),K.write(de.sessionPresent?d.SESSIONPRESENT_HEADER:o),K.write(c.from([me])),X==null||X.write(),!0}function N(ie,K,ge){i("publish: packet: %o",ie);let ue=ge?ge.protocolVersion:4,de=ie||{},me=de.qos||0,Be=de.retain?d.RETAIN_MASK:0,Ae=de.topic,X=de.payload||m,ce=de.messageId,Se=de.properties,Ue=0;if(typeof Ae=="string")Ue+=c.byteLength(Ae)+2;else if(c.isBuffer(Ae))Ue+=Ae.length+2;else return K.destroy(new Error("Invalid topic")),!1;if(c.isBuffer(X)?Ue+=X.length:Ue+=c.byteLength(X),me&&typeof ce!="number")return K.destroy(new Error("Invalid messageId")),!1;me&&(Ue+=2);let Me=null;if(ue===5){if(Me=I(K,Se),!Me)return!1;Ue+=Me.length}return K.write(d.PUBLISH_HEADER[me][de.dup?1:0][Be?1:0]),ae(K,Ue),A(K,Q(Ae)),K.write(Ae),me>0&&A(K,ce),Me==null||Me.write(),i("publish: payload: %o",X),K.write(X)}function T(ie,K,ge){let ue=ge?ge.protocolVersion:4,de=ie||{},me=de.cmd||"puback",Be=de.messageId,Ae=de.dup&&me==="pubrel"?d.DUP_MASK:0,X=0,ce=de.reasonCode,Se=de.properties,Ue=ue===5?3:2;if(me==="pubrel"&&(X=1),typeof Be!="number")return K.destroy(new Error("Invalid messageId")),!1;let Me=null;if(ue===5&&typeof Se=="object"){if(Me=U(K,Se,ge,Ue),!Me)return!1;Ue+=Me.length}return K.write(d.ACKS[me][X][Ae][0]),Ue===3&&(Ue+=ce!==0?1:-1),ae(K,Ue),A(K,Be),ue===5&&Ue!==2&&K.write(c.from([ce])),Me!==null?Me.write():Ue===4&&K.write(c.from([0])),!0}function H(ie,K,ge){i("subscribe: packet: ");let ue=ge?ge.protocolVersion:4,de=ie||{},me=de.dup?d.DUP_MASK:0,Be=de.messageId,Ae=de.subscriptions,X=de.properties,ce=0;if(typeof Be!="number")return K.destroy(new Error("Invalid messageId")),!1;ce+=2;let Se=null;if(ue===5){if(Se=I(K,X),!Se)return!1;ce+=Se.length}if(typeof Ae=="object"&&Ae.length)for(let Me=0;Me<Ae.length;Me+=1){let ze=Ae[Me].topic,he=Ae[Me].qos;if(typeof ze!="string")return K.destroy(new Error("Invalid subscriptions - invalid topic")),!1;if(typeof he!="number")return K.destroy(new Error("Invalid subscriptions - invalid qos")),!1;if(ue===5){if(typeof(Ae[Me].nl||!1)!="boolean")return K.destroy(new Error("Invalid subscriptions - invalid No Local")),!1;if(typeof(Ae[Me].rap||!1)!="boolean")return K.destroy(new Error("Invalid subscriptions - invalid Retain as Published")),!1;let ke=Ae[Me].rh||0;if(typeof ke!="number"||ke>2)return K.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}ce+=c.byteLength(ze)+2+1}else return K.destroy(new Error("Invalid subscriptions")),!1;i("subscribe: writing to stream: %o",d.SUBSCRIBE_HEADER),K.write(d.SUBSCRIBE_HEADER[1][me?1:0][0]),ae(K,ce),A(K,Be),Se!==null&&Se.write();let Ue=!0;for(let Me of Ae){let ze=Me.topic,he=Me.qos,ke=+Me.nl,Pe=+Me.rap,xe=Me.rh,tt;ee(K,ze),tt=d.SUBSCRIBE_OPTIONS_QOS[he],ue===5&&(tt|=ke?d.SUBSCRIBE_OPTIONS_NL:0,tt|=Pe?d.SUBSCRIBE_OPTIONS_RAP:0,tt|=xe?d.SUBSCRIBE_OPTIONS_RH[xe]:0),Ue=K.write(c.from([tt]))}return Ue}function D(ie,K,ge){let ue=ge?ge.protocolVersion:4,de=ie||{},me=de.messageId,Be=de.granted,Ae=de.properties,X=0;if(typeof me!="number")return K.destroy(new Error("Invalid messageId")),!1;if(X+=2,typeof Be=="object"&&Be.length)for(let Se=0;Se<Be.length;Se+=1){if(typeof Be[Se]!="number")return K.destroy(new Error("Invalid qos vector")),!1;X+=1}else return K.destroy(new Error("Invalid qos vector")),!1;let ce=null;if(ue===5){if(ce=U(K,Ae,ge,X),!ce)return!1;X+=ce.length}return K.write(d.SUBACK_HEADER),ae(K,X),A(K,me),ce!==null&&ce.write(),K.write(c.from(Be))}function k(ie,K,ge){let ue=ge?ge.protocolVersion:4,de=ie||{},me=de.messageId,Be=de.dup?d.DUP_MASK:0,Ae=de.unsubscriptions,X=de.properties,ce=0;if(typeof me!="number")return K.destroy(new Error("Invalid messageId")),!1;if(ce+=2,typeof Ae=="object"&&Ae.length)for(let Me=0;Me<Ae.length;Me+=1){if(typeof Ae[Me]!="string")return K.destroy(new Error("Invalid unsubscriptions")),!1;ce+=c.byteLength(Ae[Me])+2}else return K.destroy(new Error("Invalid unsubscriptions")),!1;let Se=null;if(ue===5){if(Se=I(K,X),!Se)return!1;ce+=Se.length}K.write(d.UNSUBSCRIBE_HEADER[1][Be?1:0][0]),ae(K,ce),A(K,me),Se!==null&&Se.write();let Ue=!0;for(let Me=0;Me<Ae.length;Me++)Ue=ee(K,Ae[Me]);return Ue}function z(ie,K,ge){let ue=ge?ge.protocolVersion:4,de=ie||{},me=de.messageId,Be=de.dup?d.DUP_MASK:0,Ae=de.granted,X=de.properties,ce=de.cmd,Se=0,Ue=2;if(typeof me!="number")return K.destroy(new Error("Invalid messageId")),!1;if(ue===5)if(typeof Ae=="object"&&Ae.length)for(let ze=0;ze<Ae.length;ze+=1){if(typeof Ae[ze]!="number")return K.destroy(new Error("Invalid qos vector")),!1;Ue+=1}else return K.destroy(new Error("Invalid qos vector")),!1;let Me=null;if(ue===5){if(Me=U(K,X,ge,Ue),!Me)return!1;Ue+=Me.length}return K.write(d.ACKS[ce][Se][Be][0]),ae(K,Ue),A(K,me),Me!==null&&Me.write(),ue===5&&K.write(c.from(Ae)),!0}function R(ie,K,ge){return K.write(d.EMPTY[ie.cmd])}function Y(ie,K,ge){let ue=ge?ge.protocolVersion:4,de=ie||{},me=de.reasonCode,Be=de.properties,Ae=ue===5?1:0,X=null;if(ue===5){if(X=U(K,Be,ge,Ae),!X)return!1;Ae+=X.length}return K.write(c.from([d.codes.disconnect<<4])),ae(K,Ae),ue===5&&K.write(c.from([me])),X!==null&&X.write(),!0}function B(ie,K,ge){let ue=ge?ge.protocolVersion:4,de=ie||{},me=de.reasonCode,Be=de.properties,Ae=ue===5?1:0;ue!==5&&K.destroy(new Error("Invalid mqtt version for auth packet"));let X=U(K,Be,ge,Ae);return X?(Ae+=X.length,K.write(c.from([d.codes.auth<<4])),ae(K,Ae),K.write(c.from([me])),X!==null&&X.write(),!0):!1}var te={};function ae(ie,K){if(K>d.VARBYTEINT_MAX)return ie.destroy(new Error(`Invalid variable byte integer: ${K}`)),!1;let ge=te[K];return ge||(ge=_(K),K<16384&&(te[K]=ge)),i("writeVarByteInt: writing to stream: %o",ge),ie.write(ge)}function ee(ie,K){let ge=c.byteLength(K);return A(ie,ge),i("writeString: %s",K),ie.write(K,"utf8")}function W(ie,K,ge){ee(ie,K),ee(ie,ge)}function V(ie,K){return i("writeNumberCached: number: %d",K),i("writeNumberCached: %o",a[K]),ie.write(a[K])}function Z(ie,K){let ge=p(K);return i("writeNumberGenerated: %o",ge),ie.write(ge)}function be(ie,K){let ge=w(K);return i("write4ByteNumber: %o",ge),ie.write(ge)}function re(ie,K){typeof K=="string"?ee(ie,K):K?(A(ie,K.length),ie.write(K)):A(ie,0)}function I(ie,K){if(typeof K!="object"||K.length!=null)return{length:1,write(){ye(ie,{},0)}};let ge=0;function ue(de,me){let Be=d.propertiesTypes[de],Ae=0;switch(Be){case"byte":{if(typeof me!="boolean")return ie.destroy(new Error(`Invalid ${de}: ${me}`)),!1;Ae+=2;break}case"int8":{if(typeof me!="number"||me<0||me>255)return ie.destroy(new Error(`Invalid ${de}: ${me}`)),!1;Ae+=2;break}case"binary":{if(me&&me===null)return ie.destroy(new Error(`Invalid ${de}: ${me}`)),!1;Ae+=1+c.byteLength(me)+2;break}case"int16":{if(typeof me!="number"||me<0||me>65535)return ie.destroy(new Error(`Invalid ${de}: ${me}`)),!1;Ae+=3;break}case"int32":{if(typeof me!="number"||me<0||me>4294967295)return ie.destroy(new Error(`Invalid ${de}: ${me}`)),!1;Ae+=5;break}case"var":{if(typeof me!="number"||me<0||me>268435455)return ie.destroy(new Error(`Invalid ${de}: ${me}`)),!1;Ae+=1+c.byteLength(_(me));break}case"string":{if(typeof me!="string")return ie.destroy(new Error(`Invalid ${de}: ${me}`)),!1;Ae+=3+c.byteLength(me.toString());break}case"pair":{if(typeof me!="object")return ie.destroy(new Error(`Invalid ${de}: ${me}`)),!1;Ae+=Object.getOwnPropertyNames(me).reduce((X,ce)=>{let Se=me[ce];return Array.isArray(Se)?X+=Se.reduce((Ue,Me)=>(Ue+=3+c.byteLength(ce.toString())+2+c.byteLength(Me.toString()),Ue),0):X+=3+c.byteLength(ce.toString())+2+c.byteLength(me[ce].toString()),X},0);break}default:return ie.destroy(new Error(`Invalid property ${de}: ${me}`)),!1}return Ae}if(K)for(let de in K){let me=0,Be=0,Ae=K[de];if(Ae!==void 0){if(Array.isArray(Ae))for(let X=0;X<Ae.length;X++){if(Be=ue(de,Ae[X]),!Be)return!1;me+=Be}else{if(Be=ue(de,Ae),!Be)return!1;me=Be}if(!me)return!1;ge+=me}}return{length:c.byteLength(_(ge))+ge,write(){ye(ie,K,ge)}}}function U(ie,K,ge,ue){let de=["reasonString","userProperties"],me=ge&&ge.properties&&ge.properties.maximumPacketSize?ge.properties.maximumPacketSize:0,Be=I(ie,K);if(me)for(;ue+Be.length>me;){let Ae=de.shift();if(Ae&&K[Ae])delete K[Ae],Be=I(ie,K);else return!1}return Be}function G(ie,K,ge){switch(d.propertiesTypes[K]){case"byte":{ie.write(c.from([d.properties[K]])),ie.write(c.from([+ge]));break}case"int8":{ie.write(c.from([d.properties[K]])),ie.write(c.from([ge]));break}case"binary":{ie.write(c.from([d.properties[K]])),re(ie,ge);break}case"int16":{ie.write(c.from([d.properties[K]])),A(ie,ge);break}case"int32":{ie.write(c.from([d.properties[K]])),be(ie,ge);break}case"var":{ie.write(c.from([d.properties[K]])),ae(ie,ge);break}case"string":{ie.write(c.from([d.properties[K]])),ee(ie,ge);break}case"pair":{Object.getOwnPropertyNames(ge).forEach(ue=>{let de=ge[ue];Array.isArray(de)?de.forEach(me=>{ie.write(c.from([d.properties[K]])),W(ie,ue.toString(),me.toString())}):(ie.write(c.from([d.properties[K]])),W(ie,ue.toString(),de.toString()))});break}default:return ie.destroy(new Error(`Invalid property ${K} value: ${ge}`)),!1}}function ye(ie,K,ge){ae(ie,ge);for(let ue in K)if(Object.prototype.hasOwnProperty.call(K,ue)&&K[ue]!=null){let de=K[ue];if(Array.isArray(de))for(let me=0;me<de.length;me++)G(ie,ue,de[me]);else G(ie,ue,de)}}function Q(ie){return ie?ie instanceof c?ie.length:c.byteLength(ie):0}function je(ie){return typeof ie=="string"||ie instanceof c}y.exports=j}),mS=Ie((f,y)=>{Ne(),Re(),Ce();var d=Qb(),{EventEmitter:c}=(Mi(),Ot(li)),{Buffer:m}=(tr(),Ot(er));function o(u,i){let a=new l;return d(u,a,i),a.concat()}var l=class extends c{constructor(){super(),this._array=new Array(20),this._i=0}write(u){return this._array[this._i++]=u,!0}concat(){let u=0,i=new Array(this._array.length),a=this._array,p=0,b;for(b=0;b<a.length&&a[b]!==void 0;b++)typeof a[b]!="string"?i[b]=a[b].length:i[b]=m.byteLength(a[b]),u+=i[b];let _=m.allocUnsafe(u);for(b=0;b<a.length&&a[b]!==void 0;b++)typeof a[b]!="string"?(a[b].copy(_,p),p+=i[b]):(_.write(a[b],p),p+=i[b]);return _}destroy(u){u&&this.emit("error",u)}};y.exports=o}),gS=Ie(f=>{Ne(),Re(),Ce(),f.parser=dS().parser,f.generate=mS(),f.writeToStream=Qb()}),bS=Ie((f,y)=>{Ne(),Re(),Ce(),y.exports=c;function d(o){return o instanceof fs?fs.from(o):new o.constructor(o.buffer.slice(),o.byteOffset,o.length)}function c(o){if(o=o||{},o.circles)return m(o);let l=new Map;if(l.set(Date,b=>new Date(b)),l.set(Map,(b,_)=>new Map(i(Array.from(b),_))),l.set(Set,(b,_)=>new Set(i(Array.from(b),_))),o.constructorHandlers)for(let b of o.constructorHandlers)l.set(b[0],b[1]);let u=null;return o.proto?p:a;function i(b,_){let w=Object.keys(b),A=new Array(w.length);for(let M=0;M<w.length;M++){let j=w[M],C=b[j];typeof C!="object"||C===null?A[j]=C:C.constructor!==Object&&(u=l.get(C.constructor))?A[j]=u(C,_):ArrayBuffer.isView(C)?A[j]=d(C):A[j]=_(C)}return A}function a(b){if(typeof b!="object"||b===null)return b;if(Array.isArray(b))return i(b,a);if(b.constructor!==Object&&(u=l.get(b.constructor)))return u(b,a);let _={};for(let w in b){if(Object.hasOwnProperty.call(b,w)===!1)continue;let A=b[w];typeof A!="object"||A===null?_[w]=A:A.constructor!==Object&&(u=l.get(A.constructor))?_[w]=u(A,a):ArrayBuffer.isView(A)?_[w]=d(A):_[w]=a(A)}return _}function p(b){if(typeof b!="object"||b===null)return b;if(Array.isArray(b))return i(b,p);if(b.constructor!==Object&&(u=l.get(b.constructor)))return u(b,p);let _={};for(let w in b){let A=b[w];typeof A!="object"||A===null?_[w]=A:A.constructor!==Object&&(u=l.get(A.constructor))?_[w]=u(A,p):ArrayBuffer.isView(A)?_[w]=d(A):_[w]=p(A)}return _}}function m(o){let l=[],u=[],i=new Map;if(i.set(Date,w=>new Date(w)),i.set(Map,(w,A)=>new Map(p(Array.from(w),A))),i.set(Set,(w,A)=>new Set(p(Array.from(w),A))),o.constructorHandlers)for(let w of o.constructorHandlers)i.set(w[0],w[1]);let a=null;return o.proto?_:b;function p(w,A){let M=Object.keys(w),j=new Array(M.length);for(let C=0;C<M.length;C++){let S=M[C],O=w[S];if(typeof O!="object"||O===null)j[S]=O;else if(O.constructor!==Object&&(a=i.get(O.constructor)))j[S]=a(O,A);else if(ArrayBuffer.isView(O))j[S]=d(O);else{let N=l.indexOf(O);N!==-1?j[S]=u[N]:j[S]=A(O)}}return j}function b(w){if(typeof w!="object"||w===null)return w;if(Array.isArray(w))return p(w,b);if(w.constructor!==Object&&(a=i.get(w.constructor)))return a(w,b);let A={};l.push(w),u.push(A);for(let M in w){if(Object.hasOwnProperty.call(w,M)===!1)continue;let j=w[M];if(typeof j!="object"||j===null)A[M]=j;else if(j.constructor!==Object&&(a=i.get(j.constructor)))A[M]=a(j,b);else if(ArrayBuffer.isView(j))A[M]=d(j);else{let C=l.indexOf(j);C!==-1?A[M]=u[C]:A[M]=b(j)}}return l.pop(),u.pop(),A}function _(w){if(typeof w!="object"||w===null)return w;if(Array.isArray(w))return p(w,_);if(w.constructor!==Object&&(a=i.get(w.constructor)))return a(w,_);let A={};l.push(w),u.push(A);for(let M in w){let j=w[M];if(typeof j!="object"||j===null)A[M]=j;else if(j.constructor!==Object&&(a=i.get(j.constructor)))A[M]=a(j,_);else if(ArrayBuffer.isView(j))A[M]=d(j);else{let C=l.indexOf(j);C!==-1?A[M]=u[C]:A[M]=_(j)}}return l.pop(),u.pop(),A}}}),vS=Ie((f,y)=>{Ne(),Re(),Ce(),y.exports=bS()()}),Vb=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"__esModule",{value:!0}),f.validateTopic=y,f.validateTopics=d;function y(c){let m=c.split("/");for(let o=0;o<m.length;o++)if(m[o]!=="+"){if(m[o]==="#")return o===m.length-1;if(m[o].indexOf("+")!==-1||m[o].indexOf("#")!==-1)return!1}return!0}function d(c){if(c.length===0)return"empty_topic_list";for(let m=0;m<c.length;m++)if(!y(c[m]))return c[m];return null}}),Kb=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"__esModule",{value:!0});var y=Ci(),d={objectMode:!0},c={clean:!0},m=class{constructor(o){Qe(this,"options");Qe(this,"_inflights");this.options=o||{},this.options={...c,...o},this._inflights=new Map}put(o,l){return this._inflights.set(o.messageId,o),l&&l(),this}createStream(){let o=new y.Readable(d),l=[],u=!1,i=0;return this._inflights.forEach((a,p)=>{l.push(a)}),o._read=()=>{!u&&i<l.length?o.push(l[i++]):o.push(null)},o.destroy=a=>{if(!u)return u=!0,setTimeout(()=>{o.emit("close")},0),o},o}del(o,l){let u=this._inflights.get(o.messageId);return u?(this._inflights.delete(o.messageId),l(null,u)):l&&l(new Error("missing packet")),this}get(o,l){let u=this._inflights.get(o.messageId);return u?l(null,u):l&&l(new Error("missing packet")),this}close(o){this.options.clean&&(this._inflights=null),o&&o()}};f.default=m}),_S=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"__esModule",{value:!0});var y=[0,16,128,131,135,144,145,151,153],d=(c,m,o)=>{c.log("handlePublish: packet %o",m),o=typeof o<"u"?o:c.noop;let l=m.topic.toString(),u=m.payload,{qos:i}=m,{messageId:a}=m,{options:p}=c;if(c.options.protocolVersion===5){let b;if(m.properties&&(b=m.properties.topicAlias),typeof b<"u")if(l.length===0)if(b>0&&b<=65535){let _=c.topicAliasRecv.getTopicByAlias(b);if(_)l=_,c.log("handlePublish :: topic complemented by alias. topic: %s - alias: %d",l,b);else{c.log("handlePublish :: unregistered topic alias. alias: %d",b),c.emit("error",new Error("Received unregistered Topic Alias"));return}}else{c.log("handlePublish :: topic alias out of range. alias: %d",b),c.emit("error",new Error("Received Topic Alias is out of range"));return}else if(c.topicAliasRecv.put(l,b))c.log("handlePublish :: registered topic: %s - alias: %d",l,b);else{c.log("handlePublish :: topic alias out of range. alias: %d",b),c.emit("error",new Error("Received Topic Alias is out of range"));return}}switch(c.log("handlePublish: qos %d",i),i){case 2:{p.customHandleAcks(l,u,m,(b,_)=>{if(typeof b=="number"&&(_=b,b=null),b)return c.emit("error",b);if(y.indexOf(_)===-1)return c.emit("error",new Error("Wrong reason code for pubrec"));_?c._sendPacket({cmd:"pubrec",messageId:a,reasonCode:_},o):c.incomingStore.put(m,()=>{c._sendPacket({cmd:"pubrec",messageId:a},o)})});break}case 1:{p.customHandleAcks(l,u,m,(b,_)=>{if(typeof b=="number"&&(_=b,b=null),b)return c.emit("error",b);if(y.indexOf(_)===-1)return c.emit("error",new Error("Wrong reason code for puback"));_||c.emit("message",l,u,m),c.handleMessage(m,w=>{if(w)return o&&o(w);c._sendPacket({cmd:"puback",messageId:a,reasonCode:_},o)})});break}case 0:c.emit("message",l,u,m),c.handleMessage(m,o);break;default:c.log("handlePublish: unknown QoS. Doing nothing.");break}};f.default=d}),SS=Ie((f,y)=>{y.exports={version:"5.15.1"}}),Sa=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"__esModule",{value:!0}),f.MQTTJS_VERSION=f.nextTick=f.ErrorWithSubackPacket=f.ErrorWithReasonCode=void 0,f.applyMixin=c;var y=class Fb extends Error{constructor(l,u){super(l);Qe(this,"code");this.code=u,Object.setPrototypeOf(this,Fb.prototype),Object.getPrototypeOf(this).name="ErrorWithReasonCode"}};f.ErrorWithReasonCode=y;var d=class Wb extends Error{constructor(l,u){super(l);Qe(this,"packet");this.packet=u,Object.setPrototypeOf(this,Wb.prototype),Object.getPrototypeOf(this).name="ErrorWithSubackPacket"}};f.ErrorWithSubackPacket=d;function c(m,o,l=!1){let u=[o];for(;;){let i=u[0],a=Object.getPrototypeOf(i);if(a!=null&&a.prototype)u.unshift(a);else break}for(let i of u)for(let a of Object.getOwnPropertyNames(i.prototype))(l||a!=="constructor")&&Object.defineProperty(m.prototype,a,Object.getOwnPropertyDescriptor(i.prototype,a)??Object.create(null))}f.nextTick=typeof(_t==null?void 0:_t.nextTick)=="function"?_t.nextTick:m=>{setTimeout(m,0)},f.MQTTJS_VERSION=SS().version}),gs=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"__esModule",{value:!0}),f.ReasonCodes=void 0;var y=Sa();f.ReasonCodes={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};var d=(c,m)=>{let{messageId:o}=m,l=m.cmd,u=null,i=c.outgoing[o]?c.outgoing[o].cb:null,a=null;if(!i){c.log("_handleAck :: Server sent an ack in error. Ignoring.");return}switch(c.log("_handleAck :: packet type",l),l){case"pubcomp":case"puback":{let p=m.reasonCode;p&&p>0&&p!==16?(a=new y.ErrorWithReasonCode(`Publish error: ${f.ReasonCodes[p]}`,p),c._removeOutgoingAndStoreMessage(o,()=>{i(a,m)})):c._removeOutgoingAndStoreMessage(o,i);break}case"pubrec":{u={cmd:"pubrel",qos:2,messageId:o};let p=m.reasonCode;p&&p>0&&p!==16?(a=new y.ErrorWithReasonCode(`Publish error: ${f.ReasonCodes[p]}`,p),c._removeOutgoingAndStoreMessage(o,()=>{i(a,m)})):c._sendPacket(u);break}case"suback":{delete c.outgoing[o],c.messageIdProvider.deallocate(o);let p=m.granted;for(let b=0;b<p.length;b++){let _=p[b];if((_&128)!==0){a=new Error(`Subscribe error: ${f.ReasonCodes[_]}`),a.code=_;let w=c.messageIdToTopic[o];w&&w.forEach(A=>{delete c._resubscribeTopics[A]})}}delete c.messageIdToTopic[o],c._invokeStoreProcessingQueue(),i(a,m);break}case"unsuback":{delete c.outgoing[o],c.messageIdProvider.deallocate(o),c._invokeStoreProcessingQueue(),i(null,m);break}default:c.emit("error",new Error("unrecognized packet type"))}c.disconnecting&&Object.keys(c.outgoing).length===0&&c.emit("outgoingEmpty")};f.default=d}),wS=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"__esModule",{value:!0});var y=Sa(),d=gs(),c=(m,o)=>{let{options:l}=m,u=l.protocolVersion,i=u===5?o.reasonCode:o.returnCode;if(u!==5){let a=new y.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${u}`,i);m.emit("error",a);return}m.handleAuth(o,(a,p)=>{if(a){m.emit("error",a);return}if(i===24)m.reconnecting=!1,m._sendPacket(p);else{let b=new y.ErrorWithReasonCode(`Connection refused: ${d.ReasonCodes[i]}`,i);m.emit("error",b)}})};f.default=c}),ES=Ie(f=>{var w,A,M,j,C,S,O,N,T,H,D,k,z,R,Y,B,te,ae,ee,W,V,Z,be,re,I,U,G,ye,Q,Wf,ie,K,ge,ue,Xb,me,Be,Ae,ti,ri,Xf,qo,Ho,Ut,Zf,ml,ni,$f,tt;Ne(),Re(),Ce(),Object.defineProperty(f,"__esModule",{value:!0}),f.LRUCache=void 0;var y=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,d=new Set,c=typeof _t=="object"&&_t?_t:{},m=(g,v,E,L)=>{typeof c.emitWarning=="function"?c.emitWarning(g,v,E,L):console.error(`[${E}] ${v}: ${g}`)},o=globalThis.AbortController,l=globalThis.AbortSignal;if(typeof o>"u"){l=class{constructor(){Qe(this,"onabort");Qe(this,"_onabort",[]);Qe(this,"reason");Qe(this,"aborted",!1)}addEventListener(E,L){this._onabort.push(L)}},o=class{constructor(){Qe(this,"signal",new l);v()}abort(E){var L,F;if(!this.signal.aborted){this.signal.reason=E,this.signal.aborted=!0;for(let se of this.signal._onabort)se(E);(F=(L=this.signal).onabort)==null||F.call(L,E)}}};let g=((w=c.env)==null?void 0:w.LRU_CACHE_IGNORE_AC_WARNING)!=="1",v=()=>{g&&(g=!1,m("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",v))}}var u=g=>!d.has(g),i=g=>g&&g===Math.floor(g)&&g>0&&isFinite(g),a=g=>i(g)?g<=Math.pow(2,8)?Uint8Array:g<=Math.pow(2,16)?Uint16Array:g<=Math.pow(2,32)?Uint32Array:g<=Number.MAX_SAFE_INTEGER?p:null:null,p=class extends Array{constructor(g){super(g),this.fill(0)}},b=(A=class{constructor(v,E){Qe(this,"heap");Qe(this,"length");if(!J(A,M))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new E(v),this.length=0}static create(v){let E=a(v);if(!E)return[];it(A,M,!0);let L=new A(v,E);return it(A,M,!1),L}push(v){this.heap[this.length++]=v}pop(){return this.heap[--this.length]}},M=new WeakMap,mt(A,M,!1),A),_=(tt=class{constructor(v){mt(this,Q);mt(this,S);mt(this,O);mt(this,N);mt(this,T);mt(this,H);mt(this,D);Qe(this,"ttl");Qe(this,"ttlResolution");Qe(this,"ttlAutopurge");Qe(this,"updateAgeOnGet");Qe(this,"updateAgeOnHas");Qe(this,"allowStale");Qe(this,"noDisposeOnSet");Qe(this,"noUpdateTTL");Qe(this,"maxEntrySize");Qe(this,"sizeCalculation");Qe(this,"noDeleteOnFetchRejection");Qe(this,"noDeleteOnStaleGet");Qe(this,"allowStaleOnFetchAbort");Qe(this,"allowStaleOnFetchRejection");Qe(this,"ignoreFetchAbort");mt(this,k);mt(this,z);mt(this,R);mt(this,Y);mt(this,B);mt(this,te);mt(this,ae);mt(this,ee);mt(this,W);mt(this,V);mt(this,Z);mt(this,be);mt(this,re);mt(this,I);mt(this,U);mt(this,G);mt(this,ye);mt(this,ie,()=>{});mt(this,K,()=>{});mt(this,ge,()=>{});mt(this,ue,()=>!1);mt(this,me,v=>{});mt(this,Be,(v,E,L)=>{});mt(this,Ae,(v,E,L,F)=>{if(L||F)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});Qe(this,j,"LRUCache");let{max:E=0,ttl:L,ttlResolution:F=1,ttlAutopurge:se,updateAgeOnGet:_e,updateAgeOnHas:ne,allowStale:le,dispose:Ge,disposeAfter:Ye,noDisposeOnSet:Ke,noUpdateTTL:rt,maxSize:Nt=0,maxEntrySize:Mt=0,sizeCalculation:lt,fetchMethod:gt,memoMethod:$e,noDeleteOnFetchRejection:ut,noDeleteOnStaleGet:yt,allowStaleOnFetchRejection:Bt,allowStaleOnFetchAbort:Pt,ignoreFetchAbort:cr}=v;if(E!==0&&!i(E))throw new TypeError("max option must be a nonnegative integer");let P=E?a(E):Array;if(!P)throw new Error("invalid max value: "+E);if(it(this,S,E),it(this,O,Nt),this.maxEntrySize=Mt||J(this,O),this.sizeCalculation=lt,this.sizeCalculation){if(!J(this,O)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if($e!==void 0&&typeof $e!="function")throw new TypeError("memoMethod must be a function if defined");if(it(this,D,$e),gt!==void 0&&typeof gt!="function")throw new TypeError("fetchMethod must be a function if specified");if(it(this,H,gt),it(this,G,!!gt),it(this,R,new Map),it(this,Y,new Array(E).fill(void 0)),it(this,B,new Array(E).fill(void 0)),it(this,te,new P(E)),it(this,ae,new P(E)),it(this,ee,0),it(this,W,0),it(this,V,b.create(E)),it(this,k,0),it(this,z,0),typeof Ge=="function"&&it(this,N,Ge),typeof Ye=="function"?(it(this,T,Ye),it(this,Z,[])):(it(this,T,void 0),it(this,Z,void 0)),it(this,U,!!J(this,N)),it(this,ye,!!J(this,T)),this.noDisposeOnSet=!!Ke,this.noUpdateTTL=!!rt,this.noDeleteOnFetchRejection=!!ut,this.allowStaleOnFetchRejection=!!Bt,this.allowStaleOnFetchAbort=!!Pt,this.ignoreFetchAbort=!!cr,this.maxEntrySize!==0){if(J(this,O)!==0&&!i(J(this,O)))throw new TypeError("maxSize must be a positive integer if specified");if(!i(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");Xe(this,Q,Xb).call(this)}if(this.allowStale=!!le,this.noDeleteOnStaleGet=!!yt,this.updateAgeOnGet=!!_e,this.updateAgeOnHas=!!ne,this.ttlResolution=i(F)||F===0?F:1,this.ttlAutopurge=!!se,this.ttl=L||0,this.ttl){if(!i(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Xe(this,Q,Wf).call(this)}if(J(this,S)===0&&this.ttl===0&&J(this,O)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!J(this,S)&&!J(this,O)){let $="LRU_CACHE_UNBOUNDED";u($)&&(d.add($),m("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",$,tt))}}static unsafeExposeInternals(v){return{starts:J(v,re),ttls:J(v,I),sizes:J(v,be),keyMap:J(v,R),keyList:J(v,Y),valList:J(v,B),next:J(v,te),prev:J(v,ae),get head(){return J(v,ee)},get tail(){return J(v,W)},free:J(v,V),isBackgroundFetch:E=>{var L;return Xe(L=v,Q,Ut).call(L,E)},backgroundFetch:(E,L,F,se)=>{var _e;return Xe(_e=v,Q,Ho).call(_e,E,L,F,se)},moveToTail:E=>{var L;return Xe(L=v,Q,ml).call(L,E)},indexes:E=>{var L;return Xe(L=v,Q,ti).call(L,E)},rindexes:E=>{var L;return Xe(L=v,Q,ri).call(L,E)},isStale:E=>{var L;return J(L=v,ue).call(L,E)}}}get max(){return J(this,S)}get maxSize(){return J(this,O)}get calculatedSize(){return J(this,z)}get size(){return J(this,k)}get fetchMethod(){return J(this,H)}get memoMethod(){return J(this,D)}get dispose(){return J(this,N)}get disposeAfter(){return J(this,T)}getRemainingTTL(v){return J(this,R).has(v)?1/0:0}*entries(){for(let v of Xe(this,Q,ti).call(this))J(this,B)[v]!==void 0&&J(this,Y)[v]!==void 0&&!Xe(this,Q,Ut).call(this,J(this,B)[v])&&(yield[J(this,Y)[v],J(this,B)[v]])}*rentries(){for(let v of Xe(this,Q,ri).call(this))J(this,B)[v]!==void 0&&J(this,Y)[v]!==void 0&&!Xe(this,Q,Ut).call(this,J(this,B)[v])&&(yield[J(this,Y)[v],J(this,B)[v]])}*keys(){for(let v of Xe(this,Q,ti).call(this)){let E=J(this,Y)[v];E!==void 0&&!Xe(this,Q,Ut).call(this,J(this,B)[v])&&(yield E)}}*rkeys(){for(let v of Xe(this,Q,ri).call(this)){let E=J(this,Y)[v];E!==void 0&&!Xe(this,Q,Ut).call(this,J(this,B)[v])&&(yield E)}}*values(){for(let v of Xe(this,Q,ti).call(this))J(this,B)[v]!==void 0&&!Xe(this,Q,Ut).call(this,J(this,B)[v])&&(yield J(this,B)[v])}*rvalues(){for(let v of Xe(this,Q,ri).call(this))J(this,B)[v]!==void 0&&!Xe(this,Q,Ut).call(this,J(this,B)[v])&&(yield J(this,B)[v])}[(C=Symbol.iterator,j=Symbol.toStringTag,C)](){return this.entries()}find(v,E={}){for(let L of Xe(this,Q,ti).call(this)){let F=J(this,B)[L],se=Xe(this,Q,Ut).call(this,F)?F.__staleWhileFetching:F;if(se!==void 0&&v(se,J(this,Y)[L],this))return this.get(J(this,Y)[L],E)}}forEach(v,E=this){for(let L of Xe(this,Q,ti).call(this)){let F=J(this,B)[L],se=Xe(this,Q,Ut).call(this,F)?F.__staleWhileFetching:F;se!==void 0&&v.call(E,se,J(this,Y)[L],this)}}rforEach(v,E=this){for(let L of Xe(this,Q,ri).call(this)){let F=J(this,B)[L],se=Xe(this,Q,Ut).call(this,F)?F.__staleWhileFetching:F;se!==void 0&&v.call(E,se,J(this,Y)[L],this)}}purgeStale(){let v=!1;for(let E of Xe(this,Q,ri).call(this,{allowStale:!0}))J(this,ue).call(this,E)&&(Xe(this,Q,ni).call(this,J(this,Y)[E],"expire"),v=!0);return v}info(v){let E=J(this,R).get(v);if(E===void 0)return;let L=J(this,B)[E],F=Xe(this,Q,Ut).call(this,L)?L.__staleWhileFetching:L;if(F===void 0)return;let se={value:F};if(J(this,I)&&J(this,re)){let _e=J(this,I)[E],ne=J(this,re)[E];if(_e&&ne){let le=_e-(y.now()-ne);se.ttl=le,se.start=Date.now()}}return J(this,be)&&(se.size=J(this,be)[E]),se}dump(){let v=[];for(let E of Xe(this,Q,ti).call(this,{allowStale:!0})){let L=J(this,Y)[E],F=J(this,B)[E],se=Xe(this,Q,Ut).call(this,F)?F.__staleWhileFetching:F;if(se===void 0||L===void 0)continue;let _e={value:se};if(J(this,I)&&J(this,re)){_e.ttl=J(this,I)[E];let ne=y.now()-J(this,re)[E];_e.start=Math.floor(Date.now()-ne)}J(this,be)&&(_e.size=J(this,be)[E]),v.unshift([L,_e])}return v}load(v){this.clear();for(let[E,L]of v){if(L.start){let F=Date.now()-L.start;L.start=y.now()-F}this.set(E,L.value,L)}}set(v,E,L={}){var rt,Nt,Mt,lt,gt;if(E===void 0)return this.delete(v),this;let{ttl:F=this.ttl,start:se,noDisposeOnSet:_e=this.noDisposeOnSet,sizeCalculation:ne=this.sizeCalculation,status:le}=L,{noUpdateTTL:Ge=this.noUpdateTTL}=L,Ye=J(this,Ae).call(this,v,E,L.size||0,ne);if(this.maxEntrySize&&Ye>this.maxEntrySize)return le&&(le.set="miss",le.maxEntrySizeExceeded=!0),Xe(this,Q,ni).call(this,v,"set"),this;let Ke=J(this,k)===0?void 0:J(this,R).get(v);if(Ke===void 0)Ke=J(this,k)===0?J(this,W):J(this,V).length!==0?J(this,V).pop():J(this,k)===J(this,S)?Xe(this,Q,qo).call(this,!1):J(this,k),J(this,Y)[Ke]=v,J(this,B)[Ke]=E,J(this,R).set(v,Ke),J(this,te)[J(this,W)]=Ke,J(this,ae)[Ke]=J(this,W),it(this,W,Ke),Do(this,k)._++,J(this,Be).call(this,Ke,Ye,le),le&&(le.set="add"),Ge=!1;else{Xe(this,Q,ml).call(this,Ke);let $e=J(this,B)[Ke];if(E!==$e){if(J(this,G)&&Xe(this,Q,Ut).call(this,$e)){$e.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:ut}=$e;ut!==void 0&&!_e&&(J(this,U)&&((rt=J(this,N))==null||rt.call(this,ut,v,"set")),J(this,ye)&&((Nt=J(this,Z))==null||Nt.push([ut,v,"set"])))}else _e||(J(this,U)&&((Mt=J(this,N))==null||Mt.call(this,$e,v,"set")),J(this,ye)&&((lt=J(this,Z))==null||lt.push([$e,v,"set"])));if(J(this,me).call(this,Ke),J(this,Be).call(this,Ke,Ye,le),J(this,B)[Ke]=E,le){le.set="replace";let ut=$e&&Xe(this,Q,Ut).call(this,$e)?$e.__staleWhileFetching:$e;ut!==void 0&&(le.oldValue=ut)}}else le&&(le.set="update")}if(F!==0&&!J(this,I)&&Xe(this,Q,Wf).call(this),J(this,I)&&(Ge||J(this,ge).call(this,Ke,F,se),le&&J(this,K).call(this,le,Ke)),!_e&&J(this,ye)&&J(this,Z)){let $e=J(this,Z),ut;for(;ut=$e==null?void 0:$e.shift();)(gt=J(this,T))==null||gt.call(this,...ut)}return this}pop(){var v;try{for(;J(this,k);){let E=J(this,B)[J(this,ee)];if(Xe(this,Q,qo).call(this,!0),Xe(this,Q,Ut).call(this,E)){if(E.__staleWhileFetching)return E.__staleWhileFetching}else if(E!==void 0)return E}}finally{if(J(this,ye)&&J(this,Z)){let E=J(this,Z),L;for(;L=E==null?void 0:E.shift();)(v=J(this,T))==null||v.call(this,...L)}}}has(v,E={}){let{updateAgeOnHas:L=this.updateAgeOnHas,status:F}=E,se=J(this,R).get(v);if(se!==void 0){let _e=J(this,B)[se];if(Xe(this,Q,Ut).call(this,_e)&&_e.__staleWhileFetching===void 0)return!1;if(J(this,ue).call(this,se))F&&(F.has="stale",J(this,K).call(this,F,se));else return L&&J(this,ie).call(this,se),F&&(F.has="hit",J(this,K).call(this,F,se)),!0}else F&&(F.has="miss");return!1}peek(v,E={}){let{allowStale:L=this.allowStale}=E,F=J(this,R).get(v);if(F===void 0||!L&&J(this,ue).call(this,F))return;let se=J(this,B)[F];return Xe(this,Q,Ut).call(this,se)?se.__staleWhileFetching:se}async fetch(v,E={}){let{allowStale:L=this.allowStale,updateAgeOnGet:F=this.updateAgeOnGet,noDeleteOnStaleGet:se=this.noDeleteOnStaleGet,ttl:_e=this.ttl,noDisposeOnSet:ne=this.noDisposeOnSet,size:le=0,sizeCalculation:Ge=this.sizeCalculation,noUpdateTTL:Ye=this.noUpdateTTL,noDeleteOnFetchRejection:Ke=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:rt=this.allowStaleOnFetchRejection,ignoreFetchAbort:Nt=this.ignoreFetchAbort,allowStaleOnFetchAbort:Mt=this.allowStaleOnFetchAbort,context:lt,forceRefresh:gt=!1,status:$e,signal:ut}=E;if(!J(this,G))return $e&&($e.fetch="get"),this.get(v,{allowStale:L,updateAgeOnGet:F,noDeleteOnStaleGet:se,status:$e});let yt={allowStale:L,updateAgeOnGet:F,noDeleteOnStaleGet:se,ttl:_e,noDisposeOnSet:ne,size:le,sizeCalculation:Ge,noUpdateTTL:Ye,noDeleteOnFetchRejection:Ke,allowStaleOnFetchRejection:rt,allowStaleOnFetchAbort:Mt,ignoreFetchAbort:Nt,status:$e,signal:ut},Bt=J(this,R).get(v);if(Bt===void 0){$e&&($e.fetch="miss");let Pt=Xe(this,Q,Ho).call(this,v,Bt,yt,lt);return Pt.__returned=Pt}else{let Pt=J(this,B)[Bt];if(Xe(this,Q,Ut).call(this,Pt)){let He=L&&Pt.__staleWhileFetching!==void 0;return $e&&($e.fetch="inflight",He&&($e.returnedStale=!0)),He?Pt.__staleWhileFetching:Pt.__returned=Pt}let cr=J(this,ue).call(this,Bt);if(!gt&&!cr)return $e&&($e.fetch="hit"),Xe(this,Q,ml).call(this,Bt),F&&J(this,ie).call(this,Bt),$e&&J(this,K).call(this,$e,Bt),Pt;let P=Xe(this,Q,Ho).call(this,v,Bt,yt,lt),$=P.__staleWhileFetching!==void 0&&L;return $e&&($e.fetch=cr?"stale":"refresh",$&&cr&&($e.returnedStale=!0)),$?P.__staleWhileFetching:P.__returned=P}}async forceFetch(v,E={}){let L=await this.fetch(v,E);if(L===void 0)throw new Error("fetch() returned undefined");return L}memo(v,E={}){let L=J(this,D);if(!L)throw new Error("no memoMethod provided to constructor");let{context:F,forceRefresh:se,..._e}=E,ne=this.get(v,_e);if(!se&&ne!==void 0)return ne;let le=L(v,ne,{options:_e,context:F});return this.set(v,le,_e),le}get(v,E={}){let{allowStale:L=this.allowStale,updateAgeOnGet:F=this.updateAgeOnGet,noDeleteOnStaleGet:se=this.noDeleteOnStaleGet,status:_e}=E,ne=J(this,R).get(v);if(ne!==void 0){let le=J(this,B)[ne],Ge=Xe(this,Q,Ut).call(this,le);return _e&&J(this,K).call(this,_e,ne),J(this,ue).call(this,ne)?(_e&&(_e.get="stale"),Ge?(_e&&L&&le.__staleWhileFetching!==void 0&&(_e.returnedStale=!0),L?le.__staleWhileFetching:void 0):(se||Xe(this,Q,ni).call(this,v,"expire"),_e&&L&&(_e.returnedStale=!0),L?le:void 0)):(_e&&(_e.get="hit"),Ge?le.__staleWhileFetching:(Xe(this,Q,ml).call(this,ne),F&&J(this,ie).call(this,ne),le))}else _e&&(_e.get="miss")}delete(v){return Xe(this,Q,ni).call(this,v,"delete")}clear(){return Xe(this,Q,$f).call(this,"delete")}},S=new WeakMap,O=new WeakMap,N=new WeakMap,T=new WeakMap,H=new WeakMap,D=new WeakMap,k=new WeakMap,z=new WeakMap,R=new WeakMap,Y=new WeakMap,B=new WeakMap,te=new WeakMap,ae=new WeakMap,ee=new WeakMap,W=new WeakMap,V=new WeakMap,Z=new WeakMap,be=new WeakMap,re=new WeakMap,I=new WeakMap,U=new WeakMap,G=new WeakMap,ye=new WeakMap,Q=new WeakSet,Wf=function(){let v=new p(J(this,S)),E=new p(J(this,S));it(this,I,v),it(this,re,E),it(this,ge,(se,_e,ne=y.now())=>{if(E[se]=_e!==0?ne:0,v[se]=_e,_e!==0&&this.ttlAutopurge){let le=setTimeout(()=>{J(this,ue).call(this,se)&&Xe(this,Q,ni).call(this,J(this,Y)[se],"expire")},_e+1);le.unref&&le.unref()}}),it(this,ie,se=>{E[se]=v[se]!==0?y.now():0}),it(this,K,(se,_e)=>{if(v[_e]){let ne=v[_e],le=E[_e];if(!ne||!le)return;se.ttl=ne,se.start=le,se.now=L||F();let Ge=se.now-le;se.remainingTTL=ne-Ge}});let L=0,F=()=>{let se=y.now();if(this.ttlResolution>0){L=se;let _e=setTimeout(()=>L=0,this.ttlResolution);_e.unref&&_e.unref()}return se};this.getRemainingTTL=se=>{let _e=J(this,R).get(se);if(_e===void 0)return 0;let ne=v[_e],le=E[_e];if(!ne||!le)return 1/0;let Ge=(L||F())-le;return ne-Ge},it(this,ue,se=>{let _e=E[se],ne=v[se];return!!ne&&!!_e&&(L||F())-_e>ne})},ie=new WeakMap,K=new WeakMap,ge=new WeakMap,ue=new WeakMap,Xb=function(){let v=new p(J(this,S));it(this,z,0),it(this,be,v),it(this,me,E=>{it(this,z,J(this,z)-v[E]),v[E]=0}),it(this,Ae,(E,L,F,se)=>{if(Xe(this,Q,Ut).call(this,L))return 0;if(!i(F))if(se){if(typeof se!="function")throw new TypeError("sizeCalculation must be a function");if(F=se(L,E),!i(F))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return F}),it(this,Be,(E,L,F)=>{if(v[E]=L,J(this,O)){let se=J(this,O)-v[E];for(;J(this,z)>se;)Xe(this,Q,qo).call(this,!0)}it(this,z,J(this,z)+v[E]),F&&(F.entrySize=L,F.totalCalculatedSize=J(this,z))})},me=new WeakMap,Be=new WeakMap,Ae=new WeakMap,ti=function*({allowStale:v=this.allowStale}={}){if(J(this,k))for(let E=J(this,W);!(!Xe(this,Q,Xf).call(this,E)||((v||!J(this,ue).call(this,E))&&(yield E),E===J(this,ee)));)E=J(this,ae)[E]},ri=function*({allowStale:v=this.allowStale}={}){if(J(this,k))for(let E=J(this,ee);!(!Xe(this,Q,Xf).call(this,E)||((v||!J(this,ue).call(this,E))&&(yield E),E===J(this,W)));)E=J(this,te)[E]},Xf=function(v){return v!==void 0&&J(this,R).get(J(this,Y)[v])===v},qo=function(v){var se,_e;let E=J(this,ee),L=J(this,Y)[E],F=J(this,B)[E];return J(this,G)&&Xe(this,Q,Ut).call(this,F)?F.__abortController.abort(new Error("evicted")):(J(this,U)||J(this,ye))&&(J(this,U)&&((se=J(this,N))==null||se.call(this,F,L,"evict")),J(this,ye)&&((_e=J(this,Z))==null||_e.push([F,L,"evict"]))),J(this,me).call(this,E),v&&(J(this,Y)[E]=void 0,J(this,B)[E]=void 0,J(this,V).push(E)),J(this,k)===1?(it(this,ee,it(this,W,0)),J(this,V).length=0):it(this,ee,J(this,te)[E]),J(this,R).delete(L),Do(this,k)._--,E},Ho=function(v,E,L,F){let se=E===void 0?void 0:J(this,B)[E];if(Xe(this,Q,Ut).call(this,se))return se;let _e=new o,{signal:ne}=L;ne==null||ne.addEventListener("abort",()=>_e.abort(ne.reason),{signal:_e.signal});let le={signal:_e.signal,options:L,context:F},Ge=(lt,gt=!1)=>{let{aborted:$e}=_e.signal,ut=L.ignoreFetchAbort&&lt!==void 0;if(L.status&&($e&&!gt?(L.status.fetchAborted=!0,L.status.fetchError=_e.signal.reason,ut&&(L.status.fetchAbortIgnored=!0)):L.status.fetchResolved=!0),$e&&!ut&&!gt)return Ke(_e.signal.reason);let yt=Nt;return J(this,B)[E]===Nt&&(lt===void 0?yt.__staleWhileFetching?J(this,B)[E]=yt.__staleWhileFetching:Xe(this,Q,ni).call(this,v,"fetch"):(L.status&&(L.status.fetchUpdated=!0),this.set(v,lt,le.options))),lt},Ye=lt=>(L.status&&(L.status.fetchRejected=!0,L.status.fetchError=lt),Ke(lt)),Ke=lt=>{let{aborted:gt}=_e.signal,$e=gt&&L.allowStaleOnFetchAbort,ut=$e||L.allowStaleOnFetchRejection,yt=ut||L.noDeleteOnFetchRejection,Bt=Nt;if(J(this,B)[E]===Nt&&(!yt||Bt.__staleWhileFetching===void 0?Xe(this,Q,ni).call(this,v,"fetch"):$e||(J(this,B)[E]=Bt.__staleWhileFetching)),ut)return L.status&&Bt.__staleWhileFetching!==void 0&&(L.status.returnedStale=!0),Bt.__staleWhileFetching;if(Bt.__returned===Bt)throw lt},rt=(lt,gt)=>{var ut;let $e=(ut=J(this,H))==null?void 0:ut.call(this,v,se,le);$e&&$e instanceof Promise&&$e.then(yt=>lt(yt===void 0?void 0:yt),gt),_e.signal.addEventListener("abort",()=>{(!L.ignoreFetchAbort||L.allowStaleOnFetchAbort)&&(lt(void 0),L.allowStaleOnFetchAbort&&(lt=yt=>Ge(yt,!0)))})};L.status&&(L.status.fetchDispatched=!0);let Nt=new Promise(rt).then(Ge,Ye),Mt=Object.assign(Nt,{__abortController:_e,__staleWhileFetching:se,__returned:void 0});return E===void 0?(this.set(v,Mt,{...le.options,status:void 0}),E=J(this,R).get(v)):J(this,B)[E]=Mt,Mt},Ut=function(v){if(!J(this,G))return!1;let E=v;return!!E&&E instanceof Promise&&E.hasOwnProperty("__staleWhileFetching")&&E.__abortController instanceof o},Zf=function(v,E){J(this,ae)[E]=v,J(this,te)[v]=E},ml=function(v){v!==J(this,W)&&(v===J(this,ee)?it(this,ee,J(this,te)[v]):Xe(this,Q,Zf).call(this,J(this,ae)[v],J(this,te)[v]),Xe(this,Q,Zf).call(this,J(this,W),v),it(this,W,v))},ni=function(v,E){var F,se,_e,ne;let L=!1;if(J(this,k)!==0){let le=J(this,R).get(v);if(le!==void 0)if(L=!0,J(this,k)===1)Xe(this,Q,$f).call(this,E);else{J(this,me).call(this,le);let Ge=J(this,B)[le];if(Xe(this,Q,Ut).call(this,Ge)?Ge.__abortController.abort(new Error("deleted")):(J(this,U)||J(this,ye))&&(J(this,U)&&((F=J(this,N))==null||F.call(this,Ge,v,E)),J(this,ye)&&((se=J(this,Z))==null||se.push([Ge,v,E]))),J(this,R).delete(v),J(this,Y)[le]=void 0,J(this,B)[le]=void 0,le===J(this,W))it(this,W,J(this,ae)[le]);else if(le===J(this,ee))it(this,ee,J(this,te)[le]);else{let Ye=J(this,ae)[le];J(this,te)[Ye]=J(this,te)[le];let Ke=J(this,te)[le];J(this,ae)[Ke]=J(this,ae)[le]}Do(this,k)._--,J(this,V).push(le)}}if(J(this,ye)&&((_e=J(this,Z))!=null&&_e.length)){let le=J(this,Z),Ge;for(;Ge=le==null?void 0:le.shift();)(ne=J(this,T))==null||ne.call(this,...Ge)}return L},$f=function(v){var E,L,F;for(let se of Xe(this,Q,ri).call(this,{allowStale:!0})){let _e=J(this,B)[se];if(Xe(this,Q,Ut).call(this,_e))_e.__abortController.abort(new Error("deleted"));else{let ne=J(this,Y)[se];J(this,U)&&((E=J(this,N))==null||E.call(this,_e,ne,v)),J(this,ye)&&((L=J(this,Z))==null||L.push([_e,ne,v]))}}if(J(this,R).clear(),J(this,B).fill(void 0),J(this,Y).fill(void 0),J(this,I)&&J(this,re)&&(J(this,I).fill(0),J(this,re).fill(0)),J(this,be)&&J(this,be).fill(0),it(this,ee,0),it(this,W,0),J(this,V).length=0,it(this,z,0),it(this,k,0),J(this,ye)&&J(this,Z)){let se=J(this,Z),_e;for(;_e=se==null?void 0:se.shift();)(F=J(this,T))==null||F.call(this,..._e)}},tt);f.LRUCache=_}),On=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"t",{value:!0}),f.ContainerIterator=f.Container=f.Base=void 0;var y=class{constructor(m=0){this.iteratorType=m}equals(m){return this.o===m.o}};f.ContainerIterator=y;var d=class{constructor(){this.i=0}get length(){return this.i}size(){return this.i}empty(){return this.i===0}};f.Base=d;var c=class extends d{};f.Container=c}),AS=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"t",{value:!0}),f.default=void 0;var y=On(),d=class extends y.Base{constructor(m=[]){super(),this.S=[];let o=this;m.forEach((function(l){o.push(l)}))}clear(){this.i=0,this.S=[]}push(m){return this.S.push(m),this.i+=1,this.i}pop(){if(this.i!==0)return this.i-=1,this.S.pop()}top(){return this.S[this.i-1]}},c=d;f.default=c}),TS=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"t",{value:!0}),f.default=void 0;var y=On(),d=class extends y.Base{constructor(m=[]){super(),this.j=0,this.q=[];let o=this;m.forEach((function(l){o.push(l)}))}clear(){this.q=[],this.i=this.j=0}push(m){let o=this.q.length;if(this.j/o>.5&&this.j+this.i>=o&&o>4096){let l=this.i;for(let u=0;u<l;++u)this.q[u]=this.q[this.j+u];this.j=0,this.q[this.i]=m}else this.q[this.j+this.i]=m;return++this.i}pop(){if(this.i===0)return;let m=this.q[this.j++];return this.i-=1,m}front(){if(this.i!==0)return this.q[this.j]}},c=d;f.default=c}),xS=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"t",{value:!0}),f.default=void 0;var y=On(),d=class extends y.Base{constructor(m=[],o=function(u,i){return u>i?-1:u<i?1:0},l=!0){if(super(),this.v=o,Array.isArray(m))this.C=l?[...m]:m;else{this.C=[];let i=this;m.forEach((function(a){i.C.push(a)}))}this.i=this.C.length;let u=this.i>>1;for(let i=this.i-1>>1;i>=0;--i)this.k(i,u)}m(m){let o=this.C[m];for(;m>0;){let l=m-1>>1,u=this.C[l];if(this.v(u,o)<=0)break;this.C[m]=u,m=l}this.C[m]=o}k(m,o){let l=this.C[m];for(;m<o;){let u=m<<1|1,i=u+1,a=this.C[u];if(i<this.i&&this.v(a,this.C[i])>0&&(u=i,a=this.C[i]),this.v(a,l)>=0)break;this.C[m]=a,m=u}this.C[m]=l}clear(){this.i=0,this.C.length=0}push(m){this.C.push(m),this.m(this.i),this.i+=1}pop(){if(this.i===0)return;let m=this.C[0],o=this.C.pop();return this.i-=1,this.i&&(this.C[0]=o,this.k(0,this.i>>1)),m}top(){return this.C[0]}find(m){return this.C.indexOf(m)>=0}remove(m){let o=this.C.indexOf(m);return o<0?!1:(o===0?this.pop():o===this.i-1?(this.C.pop(),this.i-=1):(this.C.splice(o,1,this.C.pop()),this.i-=1,this.m(o),this.k(o,this.i>>1)),!0)}updateItem(m){let o=this.C.indexOf(m);return o<0?!1:(this.m(o),this.k(o,this.i>>1),!0)}toArray(){return[...this.C]}},c=d;f.default=c}),Fh=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"t",{value:!0}),f.default=void 0;var y=On(),d=class extends y.Container{},c=d;f.default=c}),jn=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"t",{value:!0}),f.throwIteratorAccessError=y;function y(){throw new RangeError("Iterator access denied!")}}),Zb=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"t",{value:!0}),f.RandomIterator=void 0;var y=On(),d=jn(),c=class extends y.ContainerIterator{constructor(m,o){super(o),this.o=m,this.iteratorType===0?(this.pre=function(){return this.o===0&&(0,d.throwIteratorAccessError)(),this.o-=1,this},this.next=function(){return this.o===this.container.size()&&(0,d.throwIteratorAccessError)(),this.o+=1,this}):(this.pre=function(){return this.o===this.container.size()-1&&(0,d.throwIteratorAccessError)(),this.o+=1,this},this.next=function(){return this.o===-1&&(0,d.throwIteratorAccessError)(),this.o-=1,this})}get pointer(){return this.container.getElementByPos(this.o)}set pointer(m){this.container.setElementByPos(this.o,m)}};f.RandomIterator=c}),OS=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"t",{value:!0}),f.default=void 0;var y=c(Fh()),d=Zb();function c(u){return u&&u.t?u:{default:u}}var m=class $b extends d.RandomIterator{constructor(i,a,p){super(i,p),this.container=a}copy(){return new $b(this.o,this.container,this.iteratorType)}},o=class extends y.default{constructor(u=[],i=!0){if(super(),Array.isArray(u))this.J=i?[...u]:u,this.i=u.length;else{this.J=[];let a=this;u.forEach((function(p){a.pushBack(p)}))}}clear(){this.i=0,this.J.length=0}begin(){return new m(0,this)}end(){return new m(this.i,this)}rBegin(){return new m(this.i-1,this,1)}rEnd(){return new m(-1,this,1)}front(){return this.J[0]}back(){return this.J[this.i-1]}getElementByPos(u){if(u<0||u>this.i-1)throw new RangeError;return this.J[u]}eraseElementByPos(u){if(u<0||u>this.i-1)throw new RangeError;return this.J.splice(u,1),this.i-=1,this.i}eraseElementByValue(u){let i=0;for(let a=0;a<this.i;++a)this.J[a]!==u&&(this.J[i++]=this.J[a]);return this.i=this.J.length=i,this.i}eraseElementByIterator(u){let i=u.o;return u=u.next(),this.eraseElementByPos(i),u}pushBack(u){return this.J.push(u),this.i+=1,this.i}popBack(){if(this.i!==0)return this.i-=1,this.J.pop()}setElementByPos(u,i){if(u<0||u>this.i-1)throw new RangeError;this.J[u]=i}insert(u,i,a=1){if(u<0||u>this.i)throw new RangeError;return this.J.splice(u,0,...new Array(a).fill(i)),this.i+=a,this.i}find(u){for(let i=0;i<this.i;++i)if(this.J[i]===u)return new m(i,this);return this.end()}reverse(){this.J.reverse()}unique(){let u=1;for(let i=1;i<this.i;++i)this.J[i]!==this.J[i-1]&&(this.J[u++]=this.J[i]);return this.i=this.J.length=u,this.i}sort(u){this.J.sort(u)}forEach(u){for(let i=0;i<this.i;++i)u(this.J[i],i,this)}[Symbol.iterator](){return(function*(){yield*this.J}).bind(this)()}},l=o;f.default=l}),jS=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"t",{value:!0}),f.default=void 0;var y=m(Fh()),d=On(),c=jn();function m(i){return i&&i.t?i:{default:i}}var o=class Jb extends d.ContainerIterator{constructor(a,p,b,_){super(_),this.o=a,this.h=p,this.container=b,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,c.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,c.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,c.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,c.throwIteratorAccessError)(),this.o=this.o.L,this})}get pointer(){return this.o===this.h&&(0,c.throwIteratorAccessError)(),this.o.l}set pointer(a){this.o===this.h&&(0,c.throwIteratorAccessError)(),this.o.l=a}copy(){return new Jb(this.o,this.h,this.container,this.iteratorType)}},l=class extends y.default{constructor(i=[]){super(),this.h={},this.p=this._=this.h.L=this.h.B=this.h;let a=this;i.forEach((function(p){a.pushBack(p)}))}V(i){let{L:a,B:p}=i;a.B=p,p.L=a,i===this.p&&(this.p=p),i===this._&&(this._=a),this.i-=1}G(i,a){let p=a.B,b={l:i,L:a,B:p};a.B=b,p.L=b,a===this.h&&(this.p=b),p===this.h&&(this._=b),this.i+=1}clear(){this.i=0,this.p=this._=this.h.L=this.h.B=this.h}begin(){return new o(this.p,this.h,this)}end(){return new o(this.h,this.h,this)}rBegin(){return new o(this._,this.h,this,1)}rEnd(){return new o(this.h,this.h,this,1)}front(){return this.p.l}back(){return this._.l}getElementByPos(i){if(i<0||i>this.i-1)throw new RangeError;let a=this.p;for(;i--;)a=a.B;return a.l}eraseElementByPos(i){if(i<0||i>this.i-1)throw new RangeError;let a=this.p;for(;i--;)a=a.B;return this.V(a),this.i}eraseElementByValue(i){let a=this.p;for(;a!==this.h;)a.l===i&&this.V(a),a=a.B;return this.i}eraseElementByIterator(i){let a=i.o;return a===this.h&&(0,c.throwIteratorAccessError)(),i=i.next(),this.V(a),i}pushBack(i){return this.G(i,this._),this.i}popBack(){if(this.i===0)return;let i=this._.l;return this.V(this._),i}pushFront(i){return this.G(i,this.h),this.i}popFront(){if(this.i===0)return;let i=this.p.l;return this.V(this.p),i}setElementByPos(i,a){if(i<0||i>this.i-1)throw new RangeError;let p=this.p;for(;i--;)p=p.B;p.l=a}insert(i,a,p=1){if(i<0||i>this.i)throw new RangeError;if(p<=0)return this.i;if(i===0)for(;p--;)this.pushFront(a);else if(i===this.i)for(;p--;)this.pushBack(a);else{let b=this.p;for(let w=1;w<i;++w)b=b.B;let _=b.B;for(this.i+=p;p--;)b.B={l:a,L:b},b.B.L=b,b=b.B;b.B=_,_.L=b}return this.i}find(i){let a=this.p;for(;a!==this.h;){if(a.l===i)return new o(a,this.h,this);a=a.B}return this.end()}reverse(){if(this.i<=1)return;let i=this.p,a=this._,p=0;for(;p<<1<this.i;){let b=i.l;i.l=a.l,a.l=b,i=i.B,a=a.L,p+=1}}unique(){if(this.i<=1)return this.i;let i=this.p;for(;i!==this.h;){let a=i;for(;a.B!==this.h&&a.l===a.B.l;)a=a.B,this.i-=1;i.B=a.B,i.B.L=i,i=i.B}return this.i}sort(i){if(this.i<=1)return;let a=[];this.forEach((function(b){a.push(b)})),a.sort(i);let p=this.p;a.forEach((function(b){p.l=b,p=p.B}))}merge(i){let a=this;if(this.i===0)i.forEach((function(p){a.pushBack(p)}));else{let p=this.p;i.forEach((function(b){for(;p!==a.h&&p.l<=b;)p=p.B;a.G(b,p.L)}))}return this.i}forEach(i){let a=this.p,p=0;for(;a!==this.h;)i(a.l,p++,this),a=a.B}[Symbol.iterator](){return(function*(){if(this.i===0)return;let i=this.p;for(;i!==this.h;)yield i.l,i=i.B}).bind(this)()}},u=l;f.default=u}),MS=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"t",{value:!0}),f.default=void 0;var y=c(Fh()),d=Zb();function c(u){return u&&u.t?u:{default:u}}var m=class ev extends d.RandomIterator{constructor(i,a,p){super(i,p),this.container=a}copy(){return new ev(this.o,this.container,this.iteratorType)}},o=class extends y.default{constructor(u=[],i=4096){super(),this.j=0,this.D=0,this.R=0,this.N=0,this.P=0,this.A=[];let a=(()=>{if(typeof u.length=="number")return u.length;if(typeof u.size=="number")return u.size;if(typeof u.size=="function")return u.size();throw new TypeError("Cannot get the length or size of the container")})();this.F=i,this.P=Math.max(Math.ceil(a/this.F),1);for(let _=0;_<this.P;++_)this.A.push(new Array(this.F));let p=Math.ceil(a/this.F);this.j=this.R=(this.P>>1)-(p>>1),this.D=this.N=this.F-a%this.F>>1;let b=this;u.forEach((function(_){b.pushBack(_)}))}T(){let u=[],i=Math.max(this.P>>1,1);for(let a=0;a<i;++a)u[a]=new Array(this.F);for(let a=this.j;a<this.P;++a)u[u.length]=this.A[a];for(let a=0;a<this.R;++a)u[u.length]=this.A[a];u[u.length]=[...this.A[this.R]],this.j=i,this.R=u.length-1;for(let a=0;a<i;++a)u[u.length]=new Array(this.F);this.A=u,this.P=u.length}O(u){let i=this.D+u+1,a=i%this.F,p=a-1,b=this.j+(i-a)/this.F;return a===0&&(b-=1),b%=this.P,p<0&&(p+=this.F),{curNodeBucketIndex:b,curNodePointerIndex:p}}clear(){this.A=[new Array(this.F)],this.P=1,this.j=this.R=this.i=0,this.D=this.N=this.F>>1}begin(){return new m(0,this)}end(){return new m(this.i,this)}rBegin(){return new m(this.i-1,this,1)}rEnd(){return new m(-1,this,1)}front(){if(this.i!==0)return this.A[this.j][this.D]}back(){if(this.i!==0)return this.A[this.R][this.N]}pushBack(u){return this.i&&(this.N<this.F-1?this.N+=1:this.R<this.P-1?(this.R+=1,this.N=0):(this.R=0,this.N=0),this.R===this.j&&this.N===this.D&&this.T()),this.i+=1,this.A[this.R][this.N]=u,this.i}popBack(){if(this.i===0)return;let u=this.A[this.R][this.N];return this.i!==1&&(this.N>0?this.N-=1:this.R>0?(this.R-=1,this.N=this.F-1):(this.R=this.P-1,this.N=this.F-1)),this.i-=1,u}pushFront(u){return this.i&&(this.D>0?this.D-=1:this.j>0?(this.j-=1,this.D=this.F-1):(this.j=this.P-1,this.D=this.F-1),this.j===this.R&&this.D===this.N&&this.T()),this.i+=1,this.A[this.j][this.D]=u,this.i}popFront(){if(this.i===0)return;let u=this.A[this.j][this.D];return this.i!==1&&(this.D<this.F-1?this.D+=1:this.j<this.P-1?(this.j+=1,this.D=0):(this.j=0,this.D=0)),this.i-=1,u}getElementByPos(u){if(u<0||u>this.i-1)throw new RangeError;let{curNodeBucketIndex:i,curNodePointerIndex:a}=this.O(u);return this.A[i][a]}setElementByPos(u,i){if(u<0||u>this.i-1)throw new RangeError;let{curNodeBucketIndex:a,curNodePointerIndex:p}=this.O(u);this.A[a][p]=i}insert(u,i,a=1){if(u<0||u>this.i)throw new RangeError;if(u===0)for(;a--;)this.pushFront(i);else if(u===this.i)for(;a--;)this.pushBack(i);else{let p=[];for(let b=u;b<this.i;++b)p.push(this.getElementByPos(b));this.cut(u-1);for(let b=0;b<a;++b)this.pushBack(i);for(let b=0;b<p.length;++b)this.pushBack(p[b])}return this.i}cut(u){if(u<0)return this.clear(),0;let{curNodeBucketIndex:i,curNodePointerIndex:a}=this.O(u);return this.R=i,this.N=a,this.i=u+1,this.i}eraseElementByPos(u){if(u<0||u>this.i-1)throw new RangeError;if(u===0)this.popFront();else if(u===this.i-1)this.popBack();else{let i=[];for(let p=u+1;p<this.i;++p)i.push(this.getElementByPos(p));this.cut(u),this.popBack();let a=this;i.forEach((function(p){a.pushBack(p)}))}return this.i}eraseElementByValue(u){if(this.i===0)return 0;let i=[];for(let p=0;p<this.i;++p){let b=this.getElementByPos(p);b!==u&&i.push(b)}let a=i.length;for(let p=0;p<a;++p)this.setElementByPos(p,i[p]);return this.cut(a-1)}eraseElementByIterator(u){let i=u.o;return this.eraseElementByPos(i),u=u.next(),u}find(u){for(let i=0;i<this.i;++i)if(this.getElementByPos(i)===u)return new m(i,this);return this.end()}reverse(){let u=0,i=this.i-1;for(;u<i;){let a=this.getElementByPos(u);this.setElementByPos(u,this.getElementByPos(i)),this.setElementByPos(i,a),u+=1,i-=1}}unique(){if(this.i<=1)return this.i;let u=1,i=this.getElementByPos(0);for(let a=1;a<this.i;++a){let p=this.getElementByPos(a);p!==i&&(i=p,this.setElementByPos(u++,p))}for(;this.i>u;)this.popBack();return this.i}sort(u){let i=[];for(let a=0;a<this.i;++a)i.push(this.getElementByPos(a));i.sort(u);for(let a=0;a<this.i;++a)this.setElementByPos(a,i[a])}shrinkToFit(){if(this.i===0)return;let u=[];this.forEach((function(i){u.push(i)})),this.P=Math.max(Math.ceil(this.i/this.F),1),this.i=this.j=this.R=this.D=this.N=0,this.A=[];for(let i=0;i<this.P;++i)this.A.push(new Array(this.F));for(let i=0;i<u.length;++i)this.pushBack(u[i])}forEach(u){for(let i=0;i<this.i;++i)u(this.getElementByPos(i),i,this)}[Symbol.iterator](){return(function*(){for(let u=0;u<this.i;++u)yield this.getElementByPos(u)}).bind(this)()}},l=o;f.default=l}),NS=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"t",{value:!0}),f.TreeNodeEnableIndex=f.TreeNode=void 0;var y=class{constructor(c,m){this.ee=1,this.u=void 0,this.l=void 0,this.U=void 0,this.W=void 0,this.tt=void 0,this.u=c,this.l=m}L(){let c=this;if(c.ee===1&&c.tt.tt===c)c=c.W;else if(c.U)for(c=c.U;c.W;)c=c.W;else{let m=c.tt;for(;m.U===c;)c=m,m=c.tt;c=m}return c}B(){let c=this;if(c.W){for(c=c.W;c.U;)c=c.U;return c}else{let m=c.tt;for(;m.W===c;)c=m,m=c.tt;return c.W!==m?m:c}}te(){let c=this.tt,m=this.W,o=m.U;return c.tt===this?c.tt=m:c.U===this?c.U=m:c.W=m,m.tt=c,m.U=this,this.tt=m,this.W=o,o&&(o.tt=this),m}se(){let c=this.tt,m=this.U,o=m.W;return c.tt===this?c.tt=m:c.U===this?c.U=m:c.W=m,m.tt=c,m.W=this,this.tt=m,this.U=o,o&&(o.tt=this),m}};f.TreeNode=y;var d=class extends y{constructor(){super(...arguments),this.rt=1}te(){let c=super.te();return this.ie(),c.ie(),c}se(){let c=super.se();return this.ie(),c.ie(),c}ie(){this.rt=1,this.U&&(this.rt+=this.U.rt),this.W&&(this.rt+=this.W.rt)}};f.TreeNodeEnableIndex=d}),tv=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"t",{value:!0}),f.default=void 0;var y=NS(),d=On(),c=jn(),m=class extends d.Container{constructor(l=function(i,a){return i<a?-1:i>a?1:0},u=!1){super(),this.Y=void 0,this.v=l,u?(this.re=y.TreeNodeEnableIndex,this.M=function(i,a,p){let b=this.ne(i,a,p);if(b){let _=b.tt;for(;_!==this.h;)_.rt+=1,_=_.tt;let w=this.he(b);if(w){let{parentNode:A,grandParent:M,curNode:j}=w;A.ie(),M.ie(),j.ie()}}return this.i},this.V=function(i){let a=this.fe(i);for(;a!==this.h;)a.rt-=1,a=a.tt}):(this.re=y.TreeNode,this.M=function(i,a,p){let b=this.ne(i,a,p);return b&&this.he(b),this.i},this.V=this.fe),this.h=new this.re}X(l,u){let i=this.h;for(;l;){let a=this.v(l.u,u);if(a<0)l=l.W;else if(a>0)i=l,l=l.U;else return l}return i}Z(l,u){let i=this.h;for(;l;)this.v(l.u,u)<=0?l=l.W:(i=l,l=l.U);return i}$(l,u){let i=this.h;for(;l;){let a=this.v(l.u,u);if(a<0)i=l,l=l.W;else if(a>0)l=l.U;else return l}return i}rr(l,u){let i=this.h;for(;l;)this.v(l.u,u)<0?(i=l,l=l.W):l=l.U;return i}ue(l){for(;;){let u=l.tt;if(u===this.h)return;if(l.ee===1){l.ee=0;return}if(l===u.U){let i=u.W;if(i.ee===1)i.ee=0,u.ee=1,u===this.Y?this.Y=u.te():u.te();else if(i.W&&i.W.ee===1){i.ee=u.ee,u.ee=0,i.W.ee=0,u===this.Y?this.Y=u.te():u.te();return}else i.U&&i.U.ee===1?(i.ee=1,i.U.ee=0,i.se()):(i.ee=1,l=u)}else{let i=u.U;if(i.ee===1)i.ee=0,u.ee=1,u===this.Y?this.Y=u.se():u.se();else if(i.U&&i.U.ee===1){i.ee=u.ee,u.ee=0,i.U.ee=0,u===this.Y?this.Y=u.se():u.se();return}else i.W&&i.W.ee===1?(i.ee=1,i.W.ee=0,i.te()):(i.ee=1,l=u)}}}fe(l){if(this.i===1)return this.clear(),this.h;let u=l;for(;u.U||u.W;){if(u.W)for(u=u.W;u.U;)u=u.U;else u=u.U;[l.u,u.u]=[u.u,l.u],[l.l,u.l]=[u.l,l.l],l=u}this.h.U===u?this.h.U=u.tt:this.h.W===u&&(this.h.W=u.tt),this.ue(u);let i=u.tt;return u===i.U?i.U=void 0:i.W=void 0,this.i-=1,this.Y.ee=0,i}oe(l,u){return l===void 0?!1:this.oe(l.U,u)||u(l)?!0:this.oe(l.W,u)}he(l){for(;;){let u=l.tt;if(u.ee===0)return;let i=u.tt;if(u===i.U){let a=i.W;if(a&&a.ee===1){if(a.ee=u.ee=0,i===this.Y)return;i.ee=1,l=i;continue}else if(l===u.W){if(l.ee=0,l.U&&(l.U.tt=u),l.W&&(l.W.tt=i),u.W=l.U,i.U=l.W,l.U=u,l.W=i,i===this.Y)this.Y=l,this.h.tt=l;else{let p=i.tt;p.U===i?p.U=l:p.W=l}return l.tt=i.tt,u.tt=l,i.tt=l,i.ee=1,{parentNode:u,grandParent:i,curNode:l}}else u.ee=0,i===this.Y?this.Y=i.se():i.se(),i.ee=1}else{let a=i.U;if(a&&a.ee===1){if(a.ee=u.ee=0,i===this.Y)return;i.ee=1,l=i;continue}else if(l===u.U){if(l.ee=0,l.U&&(l.U.tt=i),l.W&&(l.W.tt=u),i.W=l.U,u.U=l.W,l.U=i,l.W=u,i===this.Y)this.Y=l,this.h.tt=l;else{let p=i.tt;p.U===i?p.U=l:p.W=l}return l.tt=i.tt,u.tt=l,i.tt=l,i.ee=1,{parentNode:u,grandParent:i,curNode:l}}else u.ee=0,i===this.Y?this.Y=i.te():i.te(),i.ee=1}return}}ne(l,u,i){if(this.Y===void 0){this.i+=1,this.Y=new this.re(l,u),this.Y.ee=0,this.Y.tt=this.h,this.h.tt=this.Y,this.h.U=this.Y,this.h.W=this.Y;return}let a,p=this.h.U,b=this.v(p.u,l);if(b===0){p.l=u;return}else if(b>0)p.U=new this.re(l,u),p.U.tt=p,a=p.U,this.h.U=a;else{let _=this.h.W,w=this.v(_.u,l);if(w===0){_.l=u;return}else if(w<0)_.W=new this.re(l,u),_.W.tt=_,a=_.W,this.h.W=a;else{if(i!==void 0){let A=i.o;if(A!==this.h){let M=this.v(A.u,l);if(M===0){A.l=u;return}else if(M>0){let j=A.L(),C=this.v(j.u,l);if(C===0){j.l=u;return}else C<0&&(a=new this.re(l,u),j.W===void 0?(j.W=a,a.tt=j):(A.U=a,a.tt=A))}}}if(a===void 0)for(a=this.Y;;){let A=this.v(a.u,l);if(A>0){if(a.U===void 0){a.U=new this.re(l,u),a.U.tt=a,a=a.U;break}a=a.U}else if(A<0){if(a.W===void 0){a.W=new this.re(l,u),a.W.tt=a,a=a.W;break}a=a.W}else{a.l=u;return}}}}return this.i+=1,a}I(l,u){for(;l;){let i=this.v(l.u,u);if(i<0)l=l.W;else if(i>0)l=l.U;else return l}return l||this.h}clear(){this.i=0,this.Y=void 0,this.h.tt=void 0,this.h.U=this.h.W=void 0}updateKeyByIterator(l,u){let i=l.o;if(i===this.h&&(0,c.throwIteratorAccessError)(),this.i===1)return i.u=u,!0;if(i===this.h.U)return this.v(i.B().u,u)>0?(i.u=u,!0):!1;if(i===this.h.W)return this.v(i.L().u,u)<0?(i.u=u,!0):!1;let a=i.L().u;if(this.v(a,u)>=0)return!1;let p=i.B().u;return this.v(p,u)<=0?!1:(i.u=u,!0)}eraseElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let u=0,i=this;return this.oe(this.Y,(function(a){return l===u?(i.V(a),!0):(u+=1,!1)})),this.i}eraseElementByKey(l){if(this.i===0)return!1;let u=this.I(this.Y,l);return u===this.h?!1:(this.V(u),!0)}eraseElementByIterator(l){let u=l.o;u===this.h&&(0,c.throwIteratorAccessError)();let i=u.W===void 0;return l.iteratorType===0?i&&l.next():(!i||u.U===void 0)&&l.next(),this.V(u),l}forEach(l){let u=0;for(let i of this)l(i,u++,this)}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let u,i=0;for(let a of this){if(i===l){u=a;break}i+=1}return u}getHeight(){if(this.i===0)return 0;let l=function(u){return u?Math.max(l(u.U),l(u.W))+1:0};return l(this.Y)}},o=m;f.default=o}),rv=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"t",{value:!0}),f.default=void 0;var y=On(),d=jn(),c=class extends y.ContainerIterator{constructor(o,l,u){super(u),this.o=o,this.h=l,this.iteratorType===0?(this.pre=function(){return this.o===this.h.U&&(0,d.throwIteratorAccessError)(),this.o=this.o.L(),this},this.next=function(){return this.o===this.h&&(0,d.throwIteratorAccessError)(),this.o=this.o.B(),this}):(this.pre=function(){return this.o===this.h.W&&(0,d.throwIteratorAccessError)(),this.o=this.o.B(),this},this.next=function(){return this.o===this.h&&(0,d.throwIteratorAccessError)(),this.o=this.o.L(),this})}get index(){let o=this.o,l=this.h.tt;if(o===this.h)return l?l.rt-1:0;let u=0;for(o.U&&(u+=o.U.rt);o!==l;){let i=o.tt;o===i.W&&(u+=1,i.U&&(u+=i.U.rt)),o=i}return u}},m=c;f.default=m}),CS=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"t",{value:!0}),f.default=void 0;var y=m(tv()),d=m(rv()),c=jn();function m(i){return i&&i.t?i:{default:i}}var o=class nv extends d.default{constructor(a,p,b,_){super(a,p,_),this.container=b}get pointer(){return this.o===this.h&&(0,c.throwIteratorAccessError)(),this.o.u}copy(){return new nv(this.o,this.h,this.container,this.iteratorType)}},l=class extends y.default{constructor(i=[],a,p){super(a,p);let b=this;i.forEach((function(_){b.insert(_)}))}*K(i){i!==void 0&&(yield*this.K(i.U),yield i.u,yield*this.K(i.W))}begin(){return new o(this.h.U||this.h,this.h,this)}end(){return new o(this.h,this.h,this)}rBegin(){return new o(this.h.W||this.h,this.h,this,1)}rEnd(){return new o(this.h,this.h,this,1)}front(){return this.h.U?this.h.U.u:void 0}back(){return this.h.W?this.h.W.u:void 0}insert(i,a){return this.M(i,void 0,a)}find(i){let a=this.I(this.Y,i);return new o(a,this.h,this)}lowerBound(i){let a=this.X(this.Y,i);return new o(a,this.h,this)}upperBound(i){let a=this.Z(this.Y,i);return new o(a,this.h,this)}reverseLowerBound(i){let a=this.$(this.Y,i);return new o(a,this.h,this)}reverseUpperBound(i){let a=this.rr(this.Y,i);return new o(a,this.h,this)}union(i){let a=this;return i.forEach((function(p){a.insert(p)})),this.i}[Symbol.iterator](){return this.K(this.Y)}},u=l;f.default=u}),RS=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"t",{value:!0}),f.default=void 0;var y=m(tv()),d=m(rv()),c=jn();function m(i){return i&&i.t?i:{default:i}}var o=class iv extends d.default{constructor(a,p,b,_){super(a,p,_),this.container=b}get pointer(){this.o===this.h&&(0,c.throwIteratorAccessError)();let a=this;return new Proxy([],{get(p,b){if(b==="0")return a.o.u;if(b==="1")return a.o.l},set(p,b,_){if(b!=="1")throw new TypeError("props must be 1");return a.o.l=_,!0}})}copy(){return new iv(this.o,this.h,this.container,this.iteratorType)}},l=class extends y.default{constructor(i=[],a,p){super(a,p);let b=this;i.forEach((function(_){b.setElement(_[0],_[1])}))}*K(i){i!==void 0&&(yield*this.K(i.U),yield[i.u,i.l],yield*this.K(i.W))}begin(){return new o(this.h.U||this.h,this.h,this)}end(){return new o(this.h,this.h,this)}rBegin(){return new o(this.h.W||this.h,this.h,this,1)}rEnd(){return new o(this.h,this.h,this,1)}front(){if(this.i===0)return;let i=this.h.U;return[i.u,i.l]}back(){if(this.i===0)return;let i=this.h.W;return[i.u,i.l]}lowerBound(i){let a=this.X(this.Y,i);return new o(a,this.h,this)}upperBound(i){let a=this.Z(this.Y,i);return new o(a,this.h,this)}reverseLowerBound(i){let a=this.$(this.Y,i);return new o(a,this.h,this)}reverseUpperBound(i){let a=this.rr(this.Y,i);return new o(a,this.h,this)}setElement(i,a,p){return this.M(i,a,p)}find(i){let a=this.I(this.Y,i);return new o(a,this.h,this)}getElementByKey(i){return this.I(this.Y,i).l}union(i){let a=this;return i.forEach((function(p){a.setElement(p[0],p[1])})),this.i}[Symbol.iterator](){return this.K(this.Y)}},u=l;f.default=u}),av=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"t",{value:!0}),f.default=y;function y(d){let c=typeof d;return c==="object"&&d!==null||c==="function"}}),lv=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"t",{value:!0}),f.HashContainerIterator=f.HashContainer=void 0;var y=On(),d=m(av()),c=jn();function m(u){return u&&u.t?u:{default:u}}var o=class extends y.ContainerIterator{constructor(u,i,a){super(a),this.o=u,this.h=i,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,c.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,c.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,c.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,c.throwIteratorAccessError)(),this.o=this.o.L,this})}};f.HashContainerIterator=o;var l=class extends y.Container{constructor(){super(),this.H=[],this.g={},this.HASH_TAG=Symbol("@@HASH_TAG"),Object.setPrototypeOf(this.g,null),this.h={},this.h.L=this.h.B=this.p=this._=this.h}V(u){let{L:i,B:a}=u;i.B=a,a.L=i,u===this.p&&(this.p=a),u===this._&&(this._=i),this.i-=1}M(u,i,a){a===void 0&&(a=(0,d.default)(u));let p;if(a){let b=u[this.HASH_TAG];if(b!==void 0)return this.H[b].l=i,this.i;Object.defineProperty(u,this.HASH_TAG,{value:this.H.length,configurable:!0}),p={u,l:i,L:this._,B:this.h},this.H.push(p)}else{let b=this.g[u];if(b)return b.l=i,this.i;p={u,l:i,L:this._,B:this.h},this.g[u]=p}return this.i===0?(this.p=p,this.h.B=p):this._.B=p,this._=p,this.h.L=p,++this.i}I(u,i){if(i===void 0&&(i=(0,d.default)(u)),i){let a=u[this.HASH_TAG];return a===void 0?this.h:this.H[a]}else return this.g[u]||this.h}clear(){let u=this.HASH_TAG;this.H.forEach((function(i){delete i.u[u]})),this.H=[],this.g={},Object.setPrototypeOf(this.g,null),this.i=0,this.p=this._=this.h.L=this.h.B=this.h}eraseElementByKey(u,i){let a;if(i===void 0&&(i=(0,d.default)(u)),i){let p=u[this.HASH_TAG];if(p===void 0)return!1;delete u[this.HASH_TAG],a=this.H[p],delete this.H[p]}else{if(a=this.g[u],a===void 0)return!1;delete this.g[u]}return this.V(a),!0}eraseElementByIterator(u){let i=u.o;return i===this.h&&(0,c.throwIteratorAccessError)(),this.V(i),u.next()}eraseElementByPos(u){if(u<0||u>this.i-1)throw new RangeError;let i=this.p;for(;u--;)i=i.B;return this.V(i),this.i}};f.HashContainer=l}),US=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"t",{value:!0}),f.default=void 0;var y=lv(),d=jn(),c=class ov extends y.HashContainerIterator{constructor(u,i,a,p){super(u,i,p),this.container=a}get pointer(){return this.o===this.h&&(0,d.throwIteratorAccessError)(),this.o.u}copy(){return new ov(this.o,this.h,this.container,this.iteratorType)}},m=class extends y.HashContainer{constructor(l=[]){super();let u=this;l.forEach((function(i){u.insert(i)}))}begin(){return new c(this.p,this.h,this)}end(){return new c(this.h,this.h,this)}rBegin(){return new c(this._,this.h,this,1)}rEnd(){return new c(this.h,this.h,this,1)}front(){return this.p.u}back(){return this._.u}insert(l,u){return this.M(l,void 0,u)}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let u=this.p;for(;l--;)u=u.B;return u.u}find(l,u){let i=this.I(l,u);return new c(i,this.h,this)}forEach(l){let u=0,i=this.p;for(;i!==this.h;)l(i.u,u++,this),i=i.B}[Symbol.iterator](){return(function*(){let l=this.p;for(;l!==this.h;)yield l.u,l=l.B}).bind(this)()}},o=m;f.default=o}),BS=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"t",{value:!0}),f.default=void 0;var y=lv(),d=m(av()),c=jn();function m(i){return i&&i.t?i:{default:i}}var o=class sv extends y.HashContainerIterator{constructor(a,p,b,_){super(a,p,_),this.container=b}get pointer(){this.o===this.h&&(0,c.throwIteratorAccessError)();let a=this;return new Proxy([],{get(p,b){if(b==="0")return a.o.u;if(b==="1")return a.o.l},set(p,b,_){if(b!=="1")throw new TypeError("props must be 1");return a.o.l=_,!0}})}copy(){return new sv(this.o,this.h,this.container,this.iteratorType)}},l=class extends y.HashContainer{constructor(i=[]){super();let a=this;i.forEach((function(p){a.setElement(p[0],p[1])}))}begin(){return new o(this.p,this.h,this)}end(){return new o(this.h,this.h,this)}rBegin(){return new o(this._,this.h,this,1)}rEnd(){return new o(this.h,this.h,this,1)}front(){if(this.i!==0)return[this.p.u,this.p.l]}back(){if(this.i!==0)return[this._.u,this._.l]}setElement(i,a,p){return this.M(i,a,p)}getElementByKey(i,a){if(a===void 0&&(a=(0,d.default)(i)),a){let b=i[this.HASH_TAG];return b!==void 0?this.H[b].l:void 0}let p=this.g[i];return p?p.l:void 0}getElementByPos(i){if(i<0||i>this.i-1)throw new RangeError;let a=this.p;for(;i--;)a=a.B;return[a.u,a.l]}find(i,a){let p=this.I(i,a);return new o(p,this.h,this)}forEach(i){let a=0,p=this.p;for(;p!==this.h;)i([p.u,p.l],a++,this),p=p.B}[Symbol.iterator](){return(function*(){let i=this.p;for(;i!==this.h;)yield[i.u,i.l],i=i.B}).bind(this)()}},u=l;f.default=u}),DS=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"t",{value:!0}),Object.defineProperty(f,"Deque",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(f,"HashMap",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(f,"HashSet",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(f,"LinkList",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(f,"OrderedMap",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(f,"OrderedSet",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(f,"PriorityQueue",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(f,"Queue",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(f,"Stack",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(f,"Vector",{enumerable:!0,get:function(){return m.default}});var y=b(AS()),d=b(TS()),c=b(xS()),m=b(OS()),o=b(jS()),l=b(MS()),u=b(CS()),i=b(RS()),a=b(US()),p=b(BS());function b(_){return _&&_.t?_:{default:_}}}),kS=Ie((f,y)=>{Ne(),Re(),Ce();var d=DS().OrderedSet,c=Tn()("number-allocator:trace"),m=Tn()("number-allocator:error");function o(u,i){this.low=u,this.high=i}o.prototype.equals=function(u){return this.low===u.low&&this.high===u.high},o.prototype.compare=function(u){return this.low<u.low&&this.high<u.low?-1:u.low<this.low&&u.high<this.low?1:0};function l(u,i){if(!(this instanceof l))return new l(u,i);this.min=u,this.max=i,this.ss=new d([],(a,p)=>a.compare(p)),c("Create"),this.clear()}l.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low},l.prototype.alloc=function(){if(this.ss.size()===0)return c("alloc():empty"),null;let u=this.ss.begin(),i=u.pointer.low,a=u.pointer.high,p=i;return p+1<=a?this.ss.updateKeyByIterator(u,new o(i+1,a)):this.ss.eraseElementByPos(0),c("alloc():"+p),p},l.prototype.use=function(u){let i=new o(u,u),a=this.ss.lowerBound(i);if(!a.equals(this.ss.end())){let p=a.pointer.low,b=a.pointer.high;return a.pointer.equals(i)?(this.ss.eraseElementByIterator(a),c("use():"+u),!0):p>u?!1:p===u?(this.ss.updateKeyByIterator(a,new o(p+1,b)),c("use():"+u),!0):b===u?(this.ss.updateKeyByIterator(a,new o(p,b-1)),c("use():"+u),!0):(this.ss.updateKeyByIterator(a,new o(u+1,b)),this.ss.insert(new o(p,u-1)),c("use():"+u),!0)}return c("use():failed"),!1},l.prototype.free=function(u){if(u<this.min||u>this.max){m("free():"+u+" is out of range");return}let i=new o(u,u),a=this.ss.upperBound(i);if(a.equals(this.ss.end())){if(a.equals(this.ss.begin())){this.ss.insert(i);return}a.pre();let p=a.pointer.high;a.pointer.high+1===u?this.ss.updateKeyByIterator(a,new o(p,u)):this.ss.insert(i)}else if(a.equals(this.ss.begin()))if(u+1===a.pointer.low){let p=a.pointer.high;this.ss.updateKeyByIterator(a,new o(u,p))}else this.ss.insert(i);else{let p=a.pointer.low,b=a.pointer.high;a.pre();let _=a.pointer.low;a.pointer.high+1===u?u+1===p?(this.ss.eraseElementByIterator(a),this.ss.updateKeyByIterator(a,new o(_,b))):this.ss.updateKeyByIterator(a,new o(_,u)):u+1===p?(this.ss.eraseElementByIterator(a.next()),this.ss.insert(new o(u,b))):this.ss.insert(i)}c("free():"+u)},l.prototype.clear=function(){c("clear()"),this.ss.clear(),this.ss.insert(new o(this.min,this.max))},l.prototype.intervalCount=function(){return this.ss.size()},l.prototype.dump=function(){console.log("length:"+this.ss.size());for(let u of this.ss)console.log(u)},y.exports=l}),uv=Ie((f,y)=>{Ne(),Re(),Ce();var d=kS();y.exports.NumberAllocator=d}),IS=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"__esModule",{value:!0});var y=ES(),d=uv(),c=class{constructor(m){Qe(this,"aliasToTopic");Qe(this,"topicToAlias");Qe(this,"max");Qe(this,"numberAllocator");Qe(this,"length");m>0&&(this.aliasToTopic=new y.LRUCache({max:m}),this.topicToAlias={},this.numberAllocator=new d.NumberAllocator(1,m),this.max=m,this.length=0)}put(m,o){if(o===0||o>this.max)return!1;let l=this.aliasToTopic.get(o);return l&&delete this.topicToAlias[l],this.aliasToTopic.set(o,m),this.topicToAlias[m]=o,this.numberAllocator.use(o),this.length=this.aliasToTopic.size,!0}getTopicByAlias(m){return this.aliasToTopic.get(m)}getAliasByTopic(m){let o=this.topicToAlias[m];return typeof o<"u"&&this.aliasToTopic.get(o),o}clear(){this.aliasToTopic.clear(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0}getLruAlias(){return this.numberAllocator.firstVacant()||[...this.aliasToTopic.keys()][this.aliasToTopic.size-1]}};f.default=c}),zS=Ie(f=>{Ne(),Re(),Ce();var y=f&&f.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(f,"__esModule",{value:!0});var d=gs(),c=y(IS()),m=Sa(),o=(l,u)=>{l.log("_handleConnack");let{options:i}=l,a=i.protocolVersion===5?u.reasonCode:u.returnCode;if(clearTimeout(l.connackTimer),delete l.topicAliasSend,u.properties){if(u.properties.topicAliasMaximum){if(u.properties.topicAliasMaximum>65535){l.emit("error",new Error("topicAliasMaximum from broker is out of range"));return}u.properties.topicAliasMaximum>0&&(l.topicAliasSend=new c.default(u.properties.topicAliasMaximum))}u.properties.serverKeepAlive&&i.keepalive&&(i.keepalive=u.properties.serverKeepAlive),u.properties.maximumPacketSize&&(i.properties||(i.properties={}),i.properties.maximumPacketSize=u.properties.maximumPacketSize)}if(a===0)l.reconnecting=!1,l._onConnect(u);else if(a>0){let p=new m.ErrorWithReasonCode(`Connection refused: ${d.ReasonCodes[a]}`,a);l.emit("error",p),l.options.reconnectOnConnackError&&l._cleanUp(!0)}};f.default=o}),LS=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"__esModule",{value:!0});var y=(d,c,m)=>{d.log("handling pubrel packet");let o=typeof m<"u"?m:d.noop,{messageId:l}=c,u={cmd:"pubcomp",messageId:l};d.incomingStore.get(c,(i,a)=>{i?d._sendPacket(u,o):(d.emit("message",a.topic,a.payload,a),d.handleMessage(a,p=>{if(p)return o(p);d.incomingStore.del(a,d.noop),d._sendPacket(u,o)}))})};f.default=y}),qS=Ie(f=>{Ne(),Re(),Ce();var y=f&&f.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(f,"__esModule",{value:!0});var d=y(_S()),c=y(wS()),m=y(zS()),o=y(gs()),l=y(LS()),u=(i,a,p)=>{let{options:b}=i;if(b.protocolVersion===5&&b.properties&&b.properties.maximumPacketSize&&b.properties.maximumPacketSize<a.length)return i.emit("error",new Error(`exceeding packets size ${a.cmd}`)),i.end({reasonCode:149,properties:{reasonString:"Maximum packet size was exceeded"}}),i;switch(i.log("_handlePacket :: emitting packetreceive"),i.emit("packetreceive",a),a.cmd){case"publish":(0,d.default)(i,a,p);break;case"puback":case"pubrec":case"pubcomp":case"suback":case"unsuback":i.reschedulePing(),(0,o.default)(i,a),p();break;case"pubrel":i.reschedulePing(),(0,l.default)(i,a,p);break;case"connack":(0,m.default)(i,a),p();break;case"auth":i.reschedulePing(),(0,c.default)(i,a),p();break;case"pingresp":i.log("_handlePacket :: received pingresp"),i.reschedulePing(!0),p();break;case"disconnect":i.emit("disconnect",a),p();break;default:i.log("_handlePacket :: unknown command"),p();break}};f.default=u}),cv=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"__esModule",{value:!0});var y=class{constructor(){Qe(this,"nextId");this.nextId=Math.max(1,Math.floor(Math.random()*65535))}allocate(){let d=this.nextId++;return this.nextId===65536&&(this.nextId=1),d}getLastAllocated(){return this.nextId===1?65535:this.nextId-1}register(d){return!0}deallocate(d){}clear(){}};f.default=y}),HS=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"__esModule",{value:!0});var y=class{constructor(d){Qe(this,"aliasToTopic");Qe(this,"max");Qe(this,"length");this.aliasToTopic={},this.max=d}put(d,c){return c===0||c>this.max?!1:(this.aliasToTopic[c]=d,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(d){return this.aliasToTopic[d]}clear(){this.aliasToTopic={}}};f.default=y}),PS=Ie(f=>{Ne(),Re(),Ce();var y=f&&f.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(f,"__esModule",{value:!0}),f.TypedEventEmitter=void 0;var d=y((Mi(),Ot(li))),c=Sa(),m=class{};f.TypedEventEmitter=m,(0,c.applyMixin)(m,d.default)}),fv=Ie((f,y)=>{Ne(),Re(),Ce(),(function(d,c){typeof f=="object"&&typeof y<"u"?c(f):typeof define=="function"&&define.amd?define(["exports"],c):(d=typeof globalThis<"u"?globalThis:d||self,c(d.fastUniqueNumbers={}))})(f,(function(d){var c=function(w){return function(A){var M=w(A);return A.add(M),M}},m=function(w){return function(A,M){return w.set(A,M),M}},o=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,l=536870912,u=l*2,i=function(w,A){return function(M){var j=A.get(M),C=j===void 0?M.size:j<u?j+1:0;if(!M.has(C))return w(M,C);if(M.size<l){for(;M.has(C);)C=Math.floor(Math.random()*u);return w(M,C)}if(M.size>o)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;M.has(C);)C=Math.floor(Math.random()*o);return w(M,C)}},a=new WeakMap,p=m(a),b=i(p,a),_=c(b);d.addUniqueNumber=_,d.generateUniqueNumber=b}))}),bs=Ie((f,y)=>{Ne(),Re(),Ce();function d(c){"@babel/helpers - typeof";return y.exports=d=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},y.exports.__esModule=!0,y.exports.default=y.exports,d(c)}y.exports=d,y.exports.__esModule=!0,y.exports.default=y.exports}),GS=Ie((f,y)=>{Ne(),Re(),Ce();var d=bs().default;function c(m,o){if(d(m)!="object"||!m)return m;var l=m[Symbol.toPrimitive];if(l!==void 0){var u=l.call(m,o||"default");if(d(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(m)}y.exports=c,y.exports.__esModule=!0,y.exports.default=y.exports}),YS=Ie((f,y)=>{Ne(),Re(),Ce();var d=bs().default,c=GS();function m(o){var l=c(o,"string");return d(l)=="symbol"?l:l+""}y.exports=m,y.exports.__esModule=!0,y.exports.default=y.exports}),QS=Ie((f,y)=>{Ne(),Re(),Ce();var d=YS();function c(m,o,l){return(o=d(o))in m?Object.defineProperty(m,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):m[o]=l,m}y.exports=c,y.exports.__esModule=!0,y.exports.default=y.exports}),VS=Ie((f,y)=>{Ne(),Re(),Ce();function d(c){if(Array.isArray(c))return c}y.exports=d,y.exports.__esModule=!0,y.exports.default=y.exports}),KS=Ie((f,y)=>{Ne(),Re(),Ce();function d(c,m){var o=c==null?null:typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(o!=null){var l,u,i,a,p=[],b=!0,_=!1;try{if(i=(o=o.call(c)).next,m===0){if(Object(o)!==o)return;b=!1}else for(;!(b=(l=i.call(o)).done)&&(p.push(l.value),p.length!==m);b=!0);}catch(w){_=!0,u=w}finally{try{if(!b&&o.return!=null&&(a=o.return(),Object(a)!==a))return}finally{if(_)throw u}}return p}}y.exports=d,y.exports.__esModule=!0,y.exports.default=y.exports}),FS=Ie((f,y)=>{Ne(),Re(),Ce();function d(c,m){(m==null||m>c.length)&&(m=c.length);for(var o=0,l=Array(m);o<m;o++)l[o]=c[o];return l}y.exports=d,y.exports.__esModule=!0,y.exports.default=y.exports}),WS=Ie((f,y)=>{Ne(),Re(),Ce();var d=FS();function c(m,o){if(m){if(typeof m=="string")return d(m,o);var l={}.toString.call(m).slice(8,-1);return l==="Object"&&m.constructor&&(l=m.constructor.name),l==="Map"||l==="Set"?Array.from(m):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?d(m,o):void 0}}y.exports=c,y.exports.__esModule=!0,y.exports.default=y.exports}),XS=Ie((f,y)=>{Ne(),Re(),Ce();function d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}y.exports=d,y.exports.__esModule=!0,y.exports.default=y.exports}),ZS=Ie((f,y)=>{Ne(),Re(),Ce();var d=VS(),c=KS(),m=WS(),o=XS();function l(u,i){return d(u)||c(u,i)||m(u,i)||o()}y.exports=l,y.exports.__esModule=!0,y.exports.default=y.exports}),$S=Ie((f,y)=>{Ne(),Re(),Ce();function d(m,o,l,u,i,a,p){try{var b=m[a](p),_=b.value}catch(w){return void l(w)}b.done?o(_):Promise.resolve(_).then(u,i)}function c(m){return function(){var o=this,l=arguments;return new Promise(function(u,i){var a=m.apply(o,l);function p(_){d(a,u,i,p,b,"next",_)}function b(_){d(a,u,i,p,b,"throw",_)}p(void 0)})}}y.exports=c,y.exports.__esModule=!0,y.exports.default=y.exports}),hv=Ie((f,y)=>{Ne(),Re(),Ce();function d(c,m){this.v=c,this.k=m}y.exports=d,y.exports.__esModule=!0,y.exports.default=y.exports}),dv=Ie((f,y)=>{Ne(),Re(),Ce();function d(c,m,o,l){var u=Object.defineProperty;try{u({},"",{})}catch{u=0}y.exports=d=function(i,a,p,b){function _(w,A){d(i,w,function(M){return this._invoke(w,A,M)})}a?u?u(i,a,{value:p,enumerable:!b,configurable:!b,writable:!b}):i[a]=p:(_("next",0),_("throw",1),_("return",2))},y.exports.__esModule=!0,y.exports.default=y.exports,d(c,m,o,l)}y.exports=d,y.exports.__esModule=!0,y.exports.default=y.exports}),pv=Ie((f,y)=>{Ne(),Re(),Ce();var d=dv();function c(){var m,o,l=typeof Symbol=="function"?Symbol:{},u=l.iterator||"@@iterator",i=l.toStringTag||"@@toStringTag";function a(C,S,O,N){var T=S&&S.prototype instanceof b?S:b,H=Object.create(T.prototype);return d(H,"_invoke",(function(D,k,z){var R,Y,B,te=0,ae=z||[],ee=!1,W={p:0,n:0,v:m,a:V,f:V.bind(m,4),d:function(Z,be){return R=Z,Y=0,B=m,W.n=be,p}};function V(Z,be){for(Y=Z,B=be,o=0;!ee&&te&&!re&&o<ae.length;o++){var re,I=ae[o],U=W.p,G=I[2];Z>3?(re=G===be)&&(B=I[(Y=I[4])?5:(Y=3,3)],I[4]=I[5]=m):I[0]<=U&&((re=Z<2&&U<I[1])?(Y=0,W.v=be,W.n=I[1]):U<G&&(re=Z<3||I[0]>be||be>G)&&(I[4]=Z,I[5]=be,W.n=G,Y=0))}if(re||Z>1)return p;throw ee=!0,be}return function(Z,be,re){if(te>1)throw TypeError("Generator is already running");for(ee&&be===1&&V(be,re),Y=be,B=re;(o=Y<2?m:B)||!ee;){R||(Y?Y<3?(Y>1&&(W.n=-1),V(Y,B)):W.n=B:W.v=B);try{if(te=2,R){if(Y||(Z="next"),o=R[Z]){if(!(o=o.call(R,B)))throw TypeError("iterator result is not an object");if(!o.done)return o;B=o.value,Y<2&&(Y=0)}else Y===1&&(o=R.return)&&o.call(R),Y<2&&(B=TypeError("The iterator does not provide a '"+Z+"' method"),Y=1);R=m}else if((o=(ee=W.n<0)?B:D.call(k,W))!==p)break}catch(I){R=m,Y=1,B=I}finally{te=1}}return{value:o,done:ee}}})(C,O,N),!0),H}var p={};function b(){}function _(){}function w(){}o=Object.getPrototypeOf;var A=[][u]?o(o([][u]())):(d(o={},u,function(){return this}),o),M=w.prototype=b.prototype=Object.create(A);function j(C){return Object.setPrototypeOf?Object.setPrototypeOf(C,w):(C.__proto__=w,d(C,i,"GeneratorFunction")),C.prototype=Object.create(M),C}return _.prototype=w,d(M,"constructor",w),d(w,"constructor",_),_.displayName="GeneratorFunction",d(w,i,"GeneratorFunction"),d(M),d(M,i,"Generator"),d(M,u,function(){return this}),d(M,"toString",function(){return"[object Generator]"}),(y.exports=c=function(){return{w:a,m:j}},y.exports.__esModule=!0,y.exports.default=y.exports)()}y.exports=c,y.exports.__esModule=!0,y.exports.default=y.exports}),yv=Ie((f,y)=>{Ne(),Re(),Ce();var d=hv(),c=dv();function m(o,l){function u(a,p,b,_){try{var w=o[a](p),A=w.value;return A instanceof d?l.resolve(A.v).then(function(M){u("next",M,b,_)},function(M){u("throw",M,b,_)}):l.resolve(A).then(function(M){w.value=M,b(w)},function(M){return u("throw",M,b,_)})}catch(M){_(M)}}var i;this.next||(c(m.prototype),c(m.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),c(this,"_invoke",function(a,p,b){function _(){return new l(function(w,A){u(a,b,w,A)})}return i=i?i.then(_,_):_()},!0)}y.exports=m,y.exports.__esModule=!0,y.exports.default=y.exports}),mv=Ie((f,y)=>{Ne(),Re(),Ce();var d=pv(),c=yv();function m(o,l,u,i,a){return new c(d().w(o,l,u,i),a||Promise)}y.exports=m,y.exports.__esModule=!0,y.exports.default=y.exports}),JS=Ie((f,y)=>{Ne(),Re(),Ce();var d=mv();function c(m,o,l,u,i){var a=d(m,o,l,u,i);return a.next().then(function(p){return p.done?p.value:a.next()})}y.exports=c,y.exports.__esModule=!0,y.exports.default=y.exports}),ew=Ie((f,y)=>{Ne(),Re(),Ce();function d(c){var m=Object(c),o=[];for(var l in m)o.unshift(l);return function u(){for(;o.length;)if((l=o.pop())in m)return u.value=l,u.done=!1,u;return u.done=!0,u}}y.exports=d,y.exports.__esModule=!0,y.exports.default=y.exports}),tw=Ie((f,y)=>{Ne(),Re(),Ce();var d=bs().default;function c(m){if(m!=null){var o=m[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],l=0;if(o)return o.call(m);if(typeof m.next=="function")return m;if(!isNaN(m.length))return{next:function(){return m&&l>=m.length&&(m=void 0),{value:m&&m[l++],done:!m}}}}throw new TypeError(d(m)+" is not iterable")}y.exports=c,y.exports.__esModule=!0,y.exports.default=y.exports}),rw=Ie((f,y)=>{Ne(),Re(),Ce();var d=hv(),c=pv(),m=JS(),o=mv(),l=yv(),u=ew(),i=tw();function a(){var p=c(),b=p.m(a),_=(Object.getPrototypeOf?Object.getPrototypeOf(b):b.__proto__).constructor;function w(j){var C=typeof j=="function"&&j.constructor;return!!C&&(C===_||(C.displayName||C.name)==="GeneratorFunction")}var A={throw:1,return:2,break:3,continue:3};function M(j){var C,S;return function(O){C||(C={stop:function(){return S(O.a,2)},catch:function(){return O.v},abrupt:function(N,T){return S(O.a,A[N],T)},delegateYield:function(N,T,H){return C.resultName=T,S(O.d,i(N),H)},finish:function(N){return S(O.f,N)}},S=function(N,T,H){O.p=C.prev,O.n=C.next;try{return N(T,H)}finally{C.next=O.n}}),C.resultName&&(C[C.resultName]=O.v,C.resultName=void 0),C.sent=O.v,C.next=O.n;try{return j.call(this,C)}finally{O.p=C.prev,O.n=C.next}}}return(y.exports=a=function(){return{wrap:function(j,C,S,O){return p.w(M(j),C,S,O&&O.reverse())},isGeneratorFunction:w,mark:p.m,awrap:function(j,C){return new d(j,C)},AsyncIterator:l,async:function(j,C,S,O,N){return(w(C)?o:m)(M(j),C,S,O,N)},keys:u,values:i}},y.exports.__esModule=!0,y.exports.default=y.exports)()}y.exports=a,y.exports.__esModule=!0,y.exports.default=y.exports}),nw=Ie((f,y)=>{Ne(),Re(),Ce();var d=rw()();y.exports=d;try{regeneratorRuntime=d}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=d:Function("r","regeneratorRuntime = r")(d)}}),iw=Ie((f,y)=>{Ne(),Re(),Ce(),(function(d,c){typeof f=="object"&&typeof y<"u"?c(f,fv(),QS(),ZS(),$S(),nw()):typeof define=="function"&&define.amd?define(["exports","fast-unique-numbers","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/slicedToArray","@babel/runtime/helpers/asyncToGenerator","@babel/runtime/regenerator"],c):(d=typeof globalThis<"u"?globalThis:d||self,c(d.brokerFactory={},d.fastUniqueNumbers,d._defineProperty,d._slicedToArray,d._asyncToGenerator,d._regeneratorRuntime))})(f,(function(d,c,m,o,l,u){function i(C,S){var O=Object.keys(C);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(C);S&&(N=N.filter(function(T){return Object.getOwnPropertyDescriptor(C,T).enumerable})),O.push.apply(O,N)}return O}function a(C){for(var S=1;S<arguments.length;S++){var O=arguments[S]!=null?arguments[S]:{};S%2?i(Object(O),!0).forEach(function(N){m(C,N,O[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(O)):i(Object(O)).forEach(function(N){Object.defineProperty(C,N,Object.getOwnPropertyDescriptor(O,N))})}return C}var p=function(C,S,O,N){return function(T){var H=S(T);return function(D){var k=C(D);D.addEventListener("message",function(V){var Z=V.data,be=Z.id;if(be!==null&&k.has(be)){var re=k.get(be),I=re.reject,U=re.resolve;k.delete(be),Z.error===void 0?U(Z.result):I(new Error(Z.error.message))}}),N(D)&&D.start();for(var z=function(V){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return new Promise(function(re,I){var U=O(k);k.set(U,{reject:I,resolve:re}),Z===null?D.postMessage({id:U,method:V},be):D.postMessage({id:U,method:V,params:Z},be)})},R=function(V,Z){var be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];D.postMessage({id:null,method:V,params:Z},be)},Y={},B=0,te=Object.entries(H);B<te.length;B++){var ae=o(te[B],2),ee=ae[0],W=ae[1];Y=a(a({},Y),{},m({},ee,W({call:z,notify:R})))}return a({},Y)}}},b=function(C){return function(S){if(C.has(S))return C.get(S);var O=new Map;return C.set(S,O),O}};function _(C,S){var O=Object.keys(C);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(C);S&&(N=N.filter(function(T){return Object.getOwnPropertyDescriptor(C,T).enumerable})),O.push.apply(O,N)}return O}function w(C){for(var S=1;S<arguments.length;S++){var O=arguments[S]!=null?arguments[S]:{};S%2?_(Object(O),!0).forEach(function(N){m(C,N,O[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(O)):_(Object(O)).forEach(function(N){Object.defineProperty(C,N,Object.getOwnPropertyDescriptor(O,N))})}return C}var A=function(C){return function(S){return w(w({},S),{},{connect:function(O){var N=O.call;return l(u.mark(function T(){var H,D,k,z;return u.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return H=new MessageChannel,D=H.port1,k=H.port2,R.next=1,N("connect",{port:D},[D]);case 1:return z=R.sent,C.set(k,z),R.abrupt("return",k);case 2:case"end":return R.stop()}},T)}))},disconnect:function(O){var N=O.call;return(function(){var T=l(u.mark(function H(D){var k;return u.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:if(k=C.get(D),k!==void 0){z.next=1;break}throw new Error("The given port is not connected.");case 1:return z.next=2,N("disconnect",{portId:k});case 2:case"end":return z.stop()}},H)}));return function(H){return T.apply(this,arguments)}})()},isSupported:function(O){var N=O.call;return function(){return N("isSupported")}}})}},M=function(C){return typeof C.start=="function"},j=p(b(new WeakMap),A(new WeakMap),c.generateUniqueNumber,M);d.createBroker=j}))}),aw=Ie((f,y)=>{Ne(),Re(),Ce(),(function(d,c){typeof f=="object"&&typeof y<"u"?c(f,iw(),fv(),bs()):typeof define=="function"&&define.amd?define(["exports","broker-factory","fast-unique-numbers","@babel/runtime/helpers/typeof"],c):(d=typeof globalThis<"u"?globalThis:d||self,c(d.workerTimersBroker={},d.brokerFactory,d.fastUniqueNumbers,d._typeof))})(f,(function(d,c,m,o){var l=function(S){return function(O){return function(N){o(S.get(N))==="symbol"&&(S.set(N,null),O(N).then(function(){S.delete(N)}))}}},u=function(S){return function(O){return function(N){o(S.get(N))==="symbol"&&(S.set(N,null),O(N).then(function(){S.delete(N)}))}}},i=function(S,O){return function(N){return function(T){for(var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,D=arguments.length,k=new Array(D>2?D-2:0),z=2;z<D;z++)k[z-2]=arguments[z];var R=Symbol(),Y=S(O);O.set(Y,R);var B=function(){return N(H,Y).then(function(){var te=O.get(Y);if(te===void 0)throw new Error("The timer is in an undefined state.");te===R&&(T.apply(void 0,k),O.get(Y)===R&&B())})};return B(),Y}}},a=function(S,O){return function(N){return function(T){for(var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,D=arguments.length,k=new Array(D>2?D-2:0),z=2;z<D;z++)k[z-2]=arguments[z];var R=Symbol(),Y=S(O);return O.set(Y,R),N(H,Y).then(function(){var B=O.get(Y);if(B===void 0)throw new Error("The timer is in an undefined state.");B===R&&(O.delete(Y),T.apply(void 0,k))}),Y}}},p=new Map([[0,null]]),b=new Map([[0,null]]),_=l(p),w=u(b),A=i(m.generateUniqueNumber,p),M=a(m.generateUniqueNumber,b),j=c.createBroker({clearInterval:function(S){var O=S.call;return _(function(N){return O("clear",{timerId:N,timerType:"interval"})})},clearTimeout:function(S){var O=S.call;return w(function(N){return O("clear",{timerId:N,timerType:"timeout"})})},setInterval:function(S){var O=S.call;return A(function(N,T){return O("set",{delay:N,now:performance.timeOrigin+performance.now(),timerId:T,timerType:"interval"})})},setTimeout:function(S){var O=S.call;return M(function(N,T){return O("set",{delay:N,now:performance.timeOrigin+performance.now(),timerId:T,timerType:"timeout"})})}}),C=function(S){var O=new Worker(S);return j(O)};d.load=C,d.wrap=j}))}),lw=Ie((f,y)=>{Ne(),Re(),Ce(),(function(d,c){typeof f=="object"&&typeof y<"u"?c(f,aw()):typeof define=="function"&&define.amd?define(["exports","worker-timers-broker"],c):(d=typeof globalThis<"u"?globalThis:d||self,c(d.workerTimers={},d.workerTimersBroker))})(f,(function(d,c){var m=function(b,_){var w=null;return function(){if(w!==null)return w;var A=new Blob([_],{type:"application/javascript; charset=utf-8"}),M=URL.createObjectURL(A);return w=b(M),setTimeout(function(){return URL.revokeObjectURL(M)}),w}},o=`(()=>{var e={389(e,t){!function(e){"use strict";var t=function(e){return function(t){var r=e(t);return t.add(r),r}},r=function(e){return function(t,r){return e.set(t,r),r}},n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,o=536870912,u=2*o,a=function(e,t){return function(r){var a=t.get(r),i=void 0===a?r.size:a<u?a+1:0;if(!r.has(i))return e(r,i);if(r.size<o){for(;r.has(i);)i=Math.floor(Math.random()*u);return e(r,i)}if(r.size>n)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;r.has(i);)i=Math.floor(Math.random()*n);return e(r,i)}},i=new WeakMap,s=r(i),c=a(s,i),f=t(c);e.addUniqueNumber=f,e.generateUniqueNumber=c}(t)},623(e,t,r){!function(e,t,r,n,o){"use strict";var u={INTERNAL_ERROR:-32603,INVALID_PARAMS:-32602,METHOD_NOT_FOUND:-32601},a=function(e,t){return Object.assign(new Error(e),{status:t})},i=function(e){return a('The requested method called "'.concat(e,'" is not supported.'),u.METHOD_NOT_FOUND)},s=function(e){return a('The handler of the method called "'.concat(e,'" returned no required result.'),u.INTERNAL_ERROR)},c=function(e){return a('The handler of the method called "'.concat(e,'" returned an unexpected result.'),u.INTERNAL_ERROR)},f=function(e){return a('The specified parameter called "portId" with the given value "'.concat(e,'" does not identify a port connected to this worker.'),u.INVALID_PARAMS)},l=function(e,n){return function(){var o=t(r.mark(function t(o){var u,a,f,l,p,d,v,x,y,b,h,m,_,g,w;return r.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(u=o.data,a=u.id,f=u.method,l=u.params,p=n[f],t.prev=1,void 0!==p){t.next=2;break}throw i(f);case 2:if(void 0!==(d=void 0===l?p():p(l))){t.next=3;break}throw s(f);case 3:if(!(d instanceof Promise)){t.next=5;break}return t.next=4,d;case 4:g=t.sent,t.next=6;break;case 5:g=d;case 6:if(v=g,null!==a){t.next=8;break}if(void 0===v.result){t.next=7;break}throw c(f);case 7:t.next=10;break;case 8:if(void 0!==v.result){t.next=9;break}throw c(f);case 9:x=v.result,y=v.transferables,b=void 0===y?[]:y,e.postMessage({id:a,result:x},b);case 10:t.next=12;break;case 11:t.prev=11,w=t.catch(1),h=w.message,m=w.status,_=void 0===m?-32603:m,e.postMessage({error:{code:_,message:h},id:a});case 12:case"end":return t.stop()}},t,null,[[1,11]])}));return function(e){return o.apply(this,arguments)}}()},p=function(){return new Promise(function(e){var t=new ArrayBuffer(0),r=new MessageChannel,n=r.port1,o=r.port2;n.onmessage=function(t){var r=t.data;return e(null!==r)},o.postMessage(t,[t])})};function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var x=new Map,y=function(e,n,u){return v(v({},n),{},{connect:function(t){var r=t.port;r.start();var u=e(r,n),a=o.generateUniqueNumber(x);return x.set(a,function(){u(),r.close(),x.delete(a)}),{result:a}},disconnect:function(e){var t=e.portId,r=x.get(t);if(void 0===r)throw f(t);return r(),{result:null}},isSupported:function(){var e=t(r.mark(function e(){var t,n,o;return r.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,p();case 1:if(!e.sent){e.next=5;break}if(!((t=u())instanceof Promise)){e.next=3;break}return e.next=2,t;case 2:o=e.sent,e.next=4;break;case 3:o=t;case 4:return n=o,e.abrupt("return",{result:n});case 5:return e.abrupt("return",{result:!1});case 6:case"end":return e.stop()}},e)}));function n(){return e.apply(this,arguments)}return n}()})},b=function(e,t){var r=y(b,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return!0}),n=l(e,r);return e.addEventListener("message",n),function(){return e.removeEventListener("message",n)}};e.createWorker=b,e.isSupported=p}(t,r(293),r(756),r(693),r(389))},472(e,t,r){!function(e,t,r,n){"use strict";var o=function(e,t){return function(r){var o=t.get(r);if(void 0===o)return Promise.resolve(!1);var u=n(o,2),a=u[0],i=u[1];return e(a),t.delete(r),i(!1),Promise.resolve(!0)}},u=function(e,t){var r=function(n,o,u,a){var i=n-e.now();i>0?o.set(a,[t(r,i,n,o,u,a),u]):(o.delete(a),u(!0))};return r},a=function(e,t,r,n){return function(o,u,a){var i=o+u-t.timeOrigin,s=i-t.now();return new Promise(function(t){e.set(a,[r(n,s,i,e,t,a),t])})}},i=new Map,s=o(globalThis.clearTimeout,i),c=new Map,f=o(globalThis.clearTimeout,c),l=u(performance,globalThis.setTimeout),p=a(i,performance,globalThis.setTimeout,l),d=a(c,performance,globalThis.setTimeout,l);r.createWorker(self,{clear:function(){var r=e(t.mark(function e(r){var n,o,u;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.timerId,o=r.timerType,e.next=1,"interval"===o?s(n):f(n);case 1:return u=e.sent,e.abrupt("return",{result:u});case 2:case"end":return e.stop()}},e)}));function n(e){return r.apply(this,arguments)}return n}(),set:function(){var r=e(t.mark(function e(r){var n,o,u,a,i;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.delay,o=r.now,u=r.timerId,a=r.timerType,e.next=1,("interval"===a?p:d)(n,o,u);case 1:return i=e.sent,e.abrupt("return",{result:i});case 2:case"end":return e.stop()}},e)}));function n(e){return r.apply(this,arguments)}return n}()})}(r(293),r(756),r(623),r(715))},172(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},79(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports},987(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},293(e){function t(e,t,r,n,o,u,a){try{var i=e[u](a),s=i.value}catch(e){return void r(e)}i.done?t(s):Promise.resolve(s).then(n,o)}e.exports=function(e){return function(){var r=this,n=arguments;return new Promise(function(o,u){var a=e.apply(r,n);function i(e){t(a,o,u,i,s,"next",e)}function s(e){t(a,o,u,i,s,"throw",e)}i(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports},693(e,t,r){var n=r(736);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},156(e){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,u,a,i=[],s=!0,c=!1;try{if(u=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=u.call(r)).done)&&(i.push(n.value),i.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return i}},e.exports.__esModule=!0,e.exports.default=e.exports},752(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},993(e,t,r){var n=r(546);function o(){var t,r,u="function"==typeof Symbol?Symbol:{},a=u.iterator||"@@iterator",i=u.toStringTag||"@@toStringTag";function s(e,o,u,a){var i=o&&o.prototype instanceof f?o:f,s=Object.create(i.prototype);return n(s,"_invoke",function(e,n,o){var u,a,i,s=0,f=o||[],l=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return u=e,a=0,i=t,p.n=r,c}};function d(e,n){for(a=e,i=n,r=0;!l&&s&&!o&&r<f.length;r++){var o,u=f[r],d=p.p,v=u[2];e>3?(o=v===n)&&(i=u[(a=u[4])?5:(a=3,3)],u[4]=u[5]=t):u[0]<=d&&((o=e<2&&d<u[1])?(a=0,p.v=n,p.n=u[1]):d<v&&(o=e<3||u[0]>n||n>v)&&(u[4]=e,u[5]=n,p.n=v,a=0))}if(o||e>1)return c;throw l=!0,n}return function(o,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&d(f,v),a=f,i=v;(r=a<2?t:i)||!l;){u||(a?a<3?(a>1&&(p.n=-1),d(a,i)):p.n=i:p.v=i);try{if(s=2,u){if(a||(o="next"),r=u[o]){if(!(r=r.call(u,i)))throw TypeError("iterator result is not an object");if(!r.done)return r;i=r.value,a<2&&(a=0)}else 1===a&&(r=u.return)&&r.call(u),a<2&&(i=TypeError("The iterator does not provide a '"+o+"' method"),a=1);u=t}else if((r=(l=p.n<0)?i:e.call(n,p))!==c)break}catch(e){u=t,a=1,i=e}finally{s=1}}return{value:r,done:l}}}(e,u,a),!0),s}var c={};function f(){}function l(){}function p(){}r=Object.getPrototypeOf;var d=[][a]?r(r([][a]())):(n(r={},a,function(){return this}),r),v=p.prototype=f.prototype=Object.create(d);function x(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,n(e,i,"GeneratorFunction")),e.prototype=Object.create(v),e}return l.prototype=p,n(v,"constructor",p),n(p,"constructor",l),l.displayName="GeneratorFunction",n(p,i,"GeneratorFunction"),n(v),n(v,i,"Generator"),n(v,a,function(){return this}),n(v,"toString",function(){return"[object Generator]"}),(e.exports=o=function(){return{w:s,m:x}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},869(e,t,r){var n=r(887);e.exports=function(e,t,r,o,u){var a=n(e,t,r,o,u);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},887(e,t,r){var n=r(993),o=r(791);e.exports=function(e,t,r,u,a){return new o(n().w(e,t,r,u),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},791(e,t,r){var n=r(172),o=r(546);e.exports=function e(t,r){function u(e,o,a,i){try{var s=t[e](o),c=s.value;return c instanceof n?r.resolve(c.v).then(function(e){u("next",e,a,i)},function(e){u("throw",e,a,i)}):r.resolve(c).then(function(e){s.value=e,a(s)},function(e){return u("throw",e,a,i)})}catch(e){i(e)}}var a;this.next||(o(e.prototype),o(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),o(this,"_invoke",function(e,t,n){function o(){return new r(function(t,r){u(e,n,t,r)})}return a=a?a.then(o,o):o()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},546(e){function t(r,n,o,u){var a=Object.defineProperty;try{a({},"",{})}catch(r){a=0}e.exports=t=function(e,r,n,o){function u(r,n){t(e,r,function(e){return this._invoke(r,n,e)})}r?a?a(e,r,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[r]=n:(u("next",0),u("throw",1),u("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n,o,u)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},373(e){e.exports=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},633(e,t,r){var n=r(172),o=r(993),u=r(869),a=r(887),i=r(791),s=r(373),c=r(579);function f(){"use strict";var t=o(),r=t.m(f),l=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function p(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===l||"GeneratorFunction"===(t.displayName||t.name))}var d={throw:1,return:2,break:3,continue:3};function v(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,d[e],t)},delegateYield:function(e,o,u){return t.resultName=o,r(n.d,c(e),u)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(e.exports=f=function(){return{wrap:function(e,r,n,o){return t.w(v(e),r,n,o&&o.reverse())},isGeneratorFunction:p,mark:t.m,awrap:function(e,t){return new n(e,t)},AsyncIterator:i,async:function(e,t,r,n,o){return(p(t)?a:u)(v(e),t,r,n,o)},keys:s,values:c}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=f,e.exports.__esModule=!0,e.exports.default=e.exports},579(e,t,r){var n=r(738).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(n(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},715(e,t,r){var n=r(987),o=r(156),u=r(122),a=r(752);e.exports=function(e,t){return n(e)||o(e,t)||u(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},45(e,t,r){var n=r(738).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},736(e,t,r){var n=r(738).default,o=r(45);e.exports=function(e){var t=o(e,"string");return"symbol"==n(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},738(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},122(e,t,r){var n=r(79);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},756(e,t,r){var n=r(633)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var u=t[n]={exports:{}};return e[n].call(u.exports,u,u.exports,r),u.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";r(472)})()})();`,l=m(c.load,o),u=function(b){return l().clearInterval(b)},i=function(b){return l().clearTimeout(b)},a=function(){var b;return(b=l()).setInterval.apply(b,arguments)},p=function(){var b;return(b=l()).setTimeout.apply(b,arguments)};d.clearInterval=u,d.clearTimeout=i,d.setInterval=a,d.setTimeout=p}))}),vs=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"__esModule",{value:!0}),f.isReactNativeBrowser=f.isWebWorker=void 0;var y=()=>{var o;return typeof window<"u"?typeof navigator<"u"&&((o=navigator.userAgent)==null?void 0:o.toLowerCase().indexOf(" electron/"))>-1&&(_t!=null&&_t.versions)?!Object.prototype.hasOwnProperty.call(_t.versions,"electron"):typeof window.document<"u":!1},d=()=>{var o,l;return!!(typeof self=="object"&&((l=(o=self==null?void 0:self.constructor)==null?void 0:o.name)!=null&&l.includes("WorkerGlobalScope"))&&typeof Deno>"u")},c=()=>typeof navigator<"u"&&navigator.product==="ReactNative",m=y()||d()||c();f.isWebWorker=d(),f.isReactNativeBrowser=c(),f.default=m}),ow=Ie(f=>{Ne(),Re(),Ce();var y=f&&f.__createBinding||(Object.create?(function(a,p,b,_){_===void 0&&(_=b);var w=Object.getOwnPropertyDescriptor(p,b);(!w||("get"in w?!p.__esModule:w.writable||w.configurable))&&(w={enumerable:!0,get:function(){return p[b]}}),Object.defineProperty(a,_,w)}):(function(a,p,b,_){_===void 0&&(_=b),a[_]=p[b]})),d=f&&f.__setModuleDefault||(Object.create?(function(a,p){Object.defineProperty(a,"default",{enumerable:!0,value:p})}):function(a,p){a.default=p}),c=f&&f.__importStar||(function(){var a=function(p){return a=Object.getOwnPropertyNames||function(b){var _=[];for(var w in b)Object.prototype.hasOwnProperty.call(b,w)&&(_[_.length]=w);return _},a(p)};return function(p){if(p&&p.__esModule)return p;var b={};if(p!=null)for(var _=a(p),w=0;w<_.length;w++)_[w]!=="default"&&y(b,p,_[w]);return d(b,p),b}})();Object.defineProperty(f,"__esModule",{value:!0});var m=lw(),o=c(vs()),l={set:m.setInterval,clear:m.clearInterval},u={set:(a,p)=>setInterval(a,p),clear:a=>clearInterval(a)},i=a=>{switch(a){case"native":return u;case"worker":return l;case"auto":default:return o.default&&!o.isWebWorker&&!o.isReactNativeBrowser?l:u}};f.default=i}),gv=Ie(f=>{Ne(),Re(),Ce();var y=f&&f.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(f,"__esModule",{value:!0});var d=y(ow()),c=class{constructor(m,o){Qe(this,"_keepalive");Qe(this,"timerId");Qe(this,"timer");Qe(this,"destroyed",!1);Qe(this,"counter");Qe(this,"client");Qe(this,"_keepaliveTimeoutTimestamp");Qe(this,"_intervalEvery");this.client=m,this.timer=typeof o=="object"&&"set"in o&&"clear"in o?o:(0,d.default)(o),this.setKeepalive(m.options.keepalive)}get keepaliveTimeoutTimestamp(){return this._keepaliveTimeoutTimestamp}get intervalEvery(){return this._intervalEvery}get keepalive(){return this._keepalive}clear(){this.timerId&&(this.timer.clear(this.timerId),this.timerId=null)}setKeepalive(m){if(m*=1e3,isNaN(m)||m<=0||m>2147483647)throw new Error(`Keepalive value must be an integer between 0 and 2147483647. Provided value is ${m}`);this._keepalive=m,this.reschedule(),this.client.log(`KeepaliveManager: set keepalive to ${m}ms`)}destroy(){this.clear(),this.destroyed=!0}reschedule(){if(this.destroyed)return;this.clear(),this.counter=0;let m=Math.ceil(this._keepalive*1.5);this._keepaliveTimeoutTimestamp=Date.now()+m,this._intervalEvery=Math.ceil(this._keepalive/2),this.timerId=this.timer.set(()=>{this.destroyed||(this.counter+=1,this.counter===2?this.client.sendPing():this.counter>2&&this.client.onKeepaliveTimeout())},this._intervalEvery)}};f.default=c}),Jf=Ie(f=>{var T;Ne(),Re(),Ce();var y=f&&f.__createBinding||(Object.create?(function(H,D,k,z){z===void 0&&(z=k);var R=Object.getOwnPropertyDescriptor(D,k);(!R||("get"in R?!D.__esModule:R.writable||R.configurable))&&(R={enumerable:!0,get:function(){return D[k]}}),Object.defineProperty(H,z,R)}):(function(H,D,k,z){z===void 0&&(z=k),H[z]=D[k]})),d=f&&f.__setModuleDefault||(Object.create?(function(H,D){Object.defineProperty(H,"default",{enumerable:!0,value:D})}):function(H,D){H.default=D}),c=f&&f.__importStar||(function(){var H=function(D){return H=Object.getOwnPropertyNames||function(k){var z=[];for(var R in k)Object.prototype.hasOwnProperty.call(k,R)&&(z[z.length]=R);return z},H(D)};return function(D){if(D&&D.__esModule)return D;var k={};if(D!=null)for(var z=H(D),R=0;R<z.length;R++)z[R]!=="default"&&y(k,D,z[R]);return d(k,D),k}})(),m=f&&f.__importDefault||function(H){return H&&H.__esModule?H:{default:H}};Object.defineProperty(f,"__esModule",{value:!0});var o=m(gS()),l=Ci(),u=m(vS()),i=m(Tn()),a=c(Vb()),p=m(Kb()),b=m(qS()),_=m(cv()),w=m(HS()),A=Sa(),M=PS(),j=m(gv()),C=c(vs()),S=globalThis.setImmediate||((...H)=>{let D=H.shift();(0,A.nextTick)(()=>{D(...H)})}),O={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0,subscribeBatchSize:null,writeCache:!0,timerVariant:"auto"},N=(T=class extends M.TypedEventEmitter{constructor(k,z){super();Qe(this,"connected");Qe(this,"disconnecting");Qe(this,"disconnected");Qe(this,"reconnecting");Qe(this,"incomingStore");Qe(this,"outgoingStore");Qe(this,"options");Qe(this,"queueQoSZero");Qe(this,"_reconnectCount");Qe(this,"log");Qe(this,"messageIdProvider");Qe(this,"outgoing");Qe(this,"messageIdToTopic");Qe(this,"noop");Qe(this,"keepaliveManager");Qe(this,"stream");Qe(this,"queue");Qe(this,"streamBuilder");Qe(this,"_resubscribeTopics");Qe(this,"connackTimer");Qe(this,"reconnectTimer");Qe(this,"_storeProcessing");Qe(this,"_packetIdsDuringStoreProcessing");Qe(this,"_storeProcessingQueue");Qe(this,"_firstConnection");Qe(this,"topicAliasRecv");Qe(this,"topicAliasSend");Qe(this,"_deferredReconnect");Qe(this,"connackPacket");this.options=z||{};for(let R in O)typeof this.options[R]>"u"?this.options[R]=O[R]:this.options[R]=z[R];this.log=this.options.log||(0,i.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: version:",T.VERSION),C.isWebWorker?this.log("MqttClient :: environment","webworker"):this.log("MqttClient :: environment",C.default?"browser":"node"),this.log("MqttClient :: options.protocol",z.protocol),this.log("MqttClient :: options.protocolVersion",z.protocolVersion),this.log("MqttClient :: options.username",z.username),this.log("MqttClient :: options.keepalive",z.keepalive),this.log("MqttClient :: options.reconnectPeriod",z.reconnectPeriod),this.log("MqttClient :: options.rejectUnauthorized",z.rejectUnauthorized),this.log("MqttClient :: options.properties.topicAliasMaximum",z.properties?z.properties.topicAliasMaximum:void 0),this.options.clientId=typeof z.clientId=="string"?z.clientId:T.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=z.protocolVersion===5&&z.customHandleAcks?z.customHandleAcks:(...R)=>{R[3](null,0)},this.options.writeCache||(o.default.writeToStream.cacheNumbers=!1),this.streamBuilder=k,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new _.default:this.options.messageIdProvider,this.outgoingStore=z.outgoingStore||new p.default,this.incomingStore=z.incomingStore||new p.default,this.queueQoSZero=z.queueQoSZero===void 0?!0:z.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.keepaliveManager=null,this.connected=!1,this.disconnecting=!1,this.reconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,z.properties&&z.properties.topicAliasMaximum>0&&(z.properties.topicAliasMaximum>65535?this.log("MqttClient :: options.properties.topicAliasMaximum is out of range"):this.topicAliasRecv=new w.default(z.properties.topicAliasMaximum)),this.on("connect",()=>{let{queue:R}=this,Y=()=>{let B=R.shift();this.log("deliver :: entry %o",B);let te=null;if(!B){this._resubscribe();return}te=B.packet,this.log("deliver :: call _sendPacket for %o",te);let ae=!0;te.messageId&&te.messageId!==0&&(this.messageIdProvider.register(te.messageId)||(ae=!1)),ae?this._sendPacket(te,ee=>{B.cb&&B.cb(ee),Y()}):(this.log("messageId: %d has already used. The message is skipped and removed.",te.messageId),Y())};this.log("connect :: sending queued packets"),Y()}),this.on("close",()=>{this.log("close :: connected set to `false`"),this.connected=!1,this.log("close :: clearing connackTimer"),clearTimeout(this.connackTimer),this._destroyKeepaliveManager(),this.topicAliasRecv&&this.topicAliasRecv.clear(),this.log("close :: calling _setupReconnect"),this._setupReconnect()}),this.options.manualConnect||(this.log("MqttClient :: setting up stream"),this.connect())}static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}handleAuth(k,z){z()}handleMessage(k,z){z()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var W;let k=new l.Writable,z=o.default.parser(this.options),R=null,Y=[];this.log("connect :: calling method to clear reconnect"),this._clearReconnect(),this.disconnected&&!this.reconnecting&&(this.incomingStore=this.options.incomingStore||new p.default,this.outgoingStore=this.options.outgoingStore||new p.default,this.disconnecting=!1,this.disconnected=!1),this.log("connect :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),z.on("packet",V=>{this.log("parser :: on packet push to packets array."),Y.push(V)});let B=()=>{this.log("work :: getting next packet in queue");let V=Y.shift();if(V)this.log("work :: packet pulled from queue"),(0,b.default)(this,V,te);else{this.log("work :: no packets in queue");let Z=R;R=null,this.log("work :: done flag is %s",!!Z),Z&&Z()}},te=()=>{if(Y.length)(0,A.nextTick)(B);else{let V=R;R=null,V()}};k._write=(V,Z,be)=>{R=be,this.log("writable stream :: parsing buffer"),z.parse(V),B()};let ae=V=>{this.log("streamErrorHandler :: error",V.message),V.code?(this.log("streamErrorHandler :: emitting error"),this.emit("error",V)):this.noop(V)};this.log("connect :: pipe stream to writable stream"),this.stream.pipe(k),this.stream.on("error",ae),this.stream.on("close",()=>{this.log("(%s)stream :: on close",this.options.clientId),this._flushVolatile(),this.log("stream: emit close to MqttClient"),this.emit("close")}),this.log("connect: sending packet `connect`");let ee={cmd:"connect",protocolId:this.options.protocolId,protocolVersion:this.options.protocolVersion,clean:this.options.clean,clientId:this.options.clientId,keepalive:this.options.keepalive,username:this.options.username,password:this.options.password,properties:this.options.properties};if(this.options.will&&(ee.will={...this.options.will,payload:(W=this.options.will)==null?void 0:W.payload}),this.topicAliasRecv&&(ee.properties||(ee.properties={}),this.topicAliasRecv&&(ee.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket(ee),z.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return this.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket=="object"){let V={cmd:"auth",reasonCode:0,...this.options.authPacket};this._writePacket(V)}}return this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(()=>{this.log("!!connectTimeout hit!! Calling _cleanUp with force `true`"),this.emit("error",new Error("connack timeout")),this._cleanUp(!0)},this.options.connectTimeout),this}publish(k,z,R,Y){this.log("publish :: message `%s` to topic `%s`",z,k);let{options:B}=this;typeof R=="function"&&(Y=R,R=null),R=R||{},R={qos:0,retain:!1,dup:!1,...R};let{qos:te,retain:ae,dup:ee,properties:W,cbStorePut:V}=R;if(this._checkDisconnecting(Y))return this;let Z=()=>{let be=0;if((te===1||te===2)&&(be=this._nextId(),be===null))return this.log("No messageId left"),!1;let re={cmd:"publish",topic:k,payload:z,qos:te,retain:ae,messageId:be,dup:ee};switch(B.protocolVersion===5&&(re.properties=W),this.log("publish :: qos",te),te){case 1:case 2:this.outgoing[re.messageId]={volatile:!1,cb:Y||this.noop},this.log("MqttClient:publish: packet cmd: %s",re.cmd),this._sendPacket(re,void 0,V);break;default:this.log("MqttClient:publish: packet cmd: %s",re.cmd),this._sendPacket(re,Y,V);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!Z())&&this._storeProcessingQueue.push({invoke:Z,cbStorePut:R.cbStorePut,callback:Y}),this}publishAsync(k,z,R){return new Promise((Y,B)=>{this.publish(k,z,R,(te,ae)=>{te?B(te):Y(ae)})})}subscribe(k,z,R){let Y=this.options.protocolVersion;typeof z=="function"&&(R=z),R=R||this.noop;let B=!1,te=[];typeof k=="string"?(k=[k],te=k):Array.isArray(k)?te=k:typeof k=="object"&&(B=k.resubscribe,delete k.resubscribe,te=Object.keys(k));let ae=a.validateTopics(te);if(ae!==null)return S(R,new Error(`Invalid topic ${ae}`)),this;if(this._checkDisconnecting(R))return this.log("subscribe: discconecting true"),this;let ee={qos:0};Y===5&&(ee.nl=!1,ee.rap=!1,ee.rh=0),z={...ee,...z};let{properties:W}=z,V=[],Z=(I,U)=>{if(U=U||z,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,I)||this._resubscribeTopics[I].qos<U.qos||B){let G={topic:I,qos:U.qos};Y===5&&(G.nl=U.nl,G.rap=U.rap,G.rh=U.rh,G.properties=W),this.log("subscribe: pushing topic `%s` and qos `%s` to subs list",G.topic,G.qos),V.push(G)}};if(Array.isArray(k)?k.forEach(I=>{this.log("subscribe: array topic %s",I),Z(I)}):Object.keys(k).forEach(I=>{this.log("subscribe: object topic %s, %o",I,k[I]),Z(I,k[I])}),!V.length)return R(null,[]),this;let be=(I,U)=>{let G={cmd:"subscribe",subscriptions:I,messageId:U};if(W&&(G.properties=W),this.options.resubscribe){this.log("subscribe :: resubscribe true");let Q=[];I.forEach(je=>{if(this.options.reconnectPeriod>0){let ie={qos:je.qos};Y===5&&(ie.nl=je.nl||!1,ie.rap=je.rap||!1,ie.rh=je.rh||0,ie.properties=je.properties),this._resubscribeTopics[je.topic]=ie,Q.push(je.topic)}}),this.messageIdToTopic[G.messageId]=Q}let ye=new Promise((Q,je)=>{this.outgoing[G.messageId]={volatile:!0,cb(ie,K){if(!ie){let{granted:ge}=K;for(let ue=0;ue<ge.length;ue+=1)I[ue].qos=ge[ue]}ie?je(new A.ErrorWithSubackPacket(ie.message,K)):Q(K)}}});return this.log("subscribe :: call _sendPacket"),this._sendPacket(G),ye},re=()=>{let I=this.options.subscribeBatchSize??V.length,U=[];for(let G=0;G<V.length;G+=I){let ye=V.slice(G,G+I),Q=this._nextId();if(Q===null)return this.log("No messageId left"),!1;U.push(be(ye,Q))}return Promise.all(U).then(G=>{R(null,V,G.at(-1))}).catch(G=>{R(G,V,G.packet)}),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!re())&&this._storeProcessingQueue.push({invoke:re,callback:R}),this}subscribeAsync(k,z){return new Promise((R,Y)=>{this.subscribe(k,z,(B,te)=>{B?Y(B):R(te)})})}unsubscribe(k,z,R){typeof k=="string"&&(k=[k]),typeof z=="function"&&(R=z),R=R||this.noop;let Y=a.validateTopics(k);if(Y!==null)return S(R,new Error(`Invalid topic ${Y}`)),this;if(this._checkDisconnecting(R))return this;let B=()=>{let te=this._nextId();if(te===null)return this.log("No messageId left"),!1;let ae={cmd:"unsubscribe",messageId:te,unsubscriptions:[]};return typeof k=="string"?ae.unsubscriptions=[k]:Array.isArray(k)&&(ae.unsubscriptions=k),this.options.resubscribe&&ae.unsubscriptions.forEach(ee=>{delete this._resubscribeTopics[ee]}),typeof z=="object"&&z.properties&&(ae.properties=z.properties),this.outgoing[ae.messageId]={volatile:!0,cb:R},this.log("unsubscribe: call _sendPacket"),this._sendPacket(ae),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!B())&&this._storeProcessingQueue.push({invoke:B,callback:R}),this}unsubscribeAsync(k,z){return new Promise((R,Y)=>{this.unsubscribe(k,z,(B,te)=>{B?Y(B):R(te)})})}end(k,z,R){this.log("end :: (%s)",this.options.clientId),(k==null||typeof k!="boolean")&&(R=R||z,z=k,k=!1),typeof z!="object"&&(R=R||z,z=null),this.log("end :: cb? %s",!!R),(!R||typeof R!="function")&&(R=this.noop);let Y=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close(te=>{this.outgoingStore.close(ae=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),R){let ee=te||ae;this.log("end :: closeStores: invoking callback with args"),R(ee)}})}),this._deferredReconnect?this._deferredReconnect():(this.options.reconnectPeriod===0||this.options.manualConnect)&&(this.disconnecting=!1)},B=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,k),this._cleanUp(k,()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),(0,A.nextTick)(Y)},z)};return this.disconnecting?(R(),this):(this._clearReconnect(),this.disconnecting=!0,!k&&Object.keys(this.outgoing).length>0?(this.log("end :: (%s) :: calling finish in 10ms once outgoing is empty",this.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,B,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),B()),this)}endAsync(k,z){return new Promise((R,Y)=>{this.end(k,z,B=>{B?Y(B):R()})})}removeOutgoingMessage(k){if(this.outgoing[k]){let{cb:z}=this.outgoing[k];this._removeOutgoingAndStoreMessage(k,()=>{z(new Error("Message removed"))})}return this}reconnect(k){this.log("client reconnect");let z=()=>{k?(this.options.incomingStore=k.incomingStore,this.options.outgoingStore=k.outgoingStore):(this.options.incomingStore=null,this.options.outgoingStore=null),this.incomingStore=this.options.incomingStore||new p.default,this.outgoingStore=this.options.outgoingStore||new p.default,this.disconnecting=!1,this.disconnected=!1,this._deferredReconnect=null,this._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=z:z(),this}_flushVolatile(){this.outgoing&&(this.log("_flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(this.outgoing).forEach(k=>{this.outgoing[k].volatile&&typeof this.outgoing[k].cb=="function"&&(this.outgoing[k].cb(new Error("Connection closed")),delete this.outgoing[k])}))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach(k=>{typeof this.outgoing[k].cb=="function"&&(this.outgoing[k].cb(new Error("Connection closed")),delete this.outgoing[k])}))}_removeTopicAliasAndRecoverTopicName(k){let z;k.properties&&(z=k.properties.topicAlias);let R=k.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",z,R),R.length===0){if(typeof z>"u")return new Error("Unregistered Topic Alias");if(R=this.topicAliasSend.getTopicByAlias(z),typeof R>"u")return new Error("Unregistered Topic Alias");k.topic=R}z&&delete k.properties.topicAlias}_checkDisconnecting(k){return this.disconnecting&&(k&&k!==this.noop?k(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting}_reconnect(){this.log("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this.connect()}),this.log("client already connected. disconnecting first.")):(this.log("_reconnect: calling connect"),this.connect())}_setupReconnect(){!this.disconnecting&&!this.reconnectTimer&&this.options.reconnectPeriod>0?(this.reconnecting||(this.log("_setupReconnect :: emit `offline` state"),this.emit("offline"),this.log("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),this.log("_setupReconnect :: setting reconnectTimer for %d ms",this.options.reconnectPeriod),this.reconnectTimer=setInterval(()=>{this.log("reconnectTimer :: reconnect triggered!"),this._reconnect()},this.options.reconnectPeriod)):this.log("_setupReconnect :: doing nothing...")}_clearReconnect(){this.log("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)}_cleanUp(k,z,R={}){if(z&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",z)),this.log("_cleanUp :: forced? %s",k),k)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{let Y={cmd:"disconnect",...R};this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(Y,()=>{this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),S(()=>{this.stream.end(()=>{this.log("_cleanUp :: (%s) :: stream destroyed",this.options.clientId)})})})}!this.disconnecting&&!this.reconnecting&&(this.log("_cleanUp :: client not disconnecting/reconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this._destroyKeepaliveManager(),z&&!this.connected&&(this.log("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",z),z())}_storeAndSend(k,z,R){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",k.cmd);let Y=k,B;if(Y.cmd==="publish"&&(Y=(0,u.default)(k),B=this._removeTopicAliasAndRecoverTopicName(Y),B))return z&&z(B);this.outgoingStore.put(Y,te=>{if(te)return z&&z(te);R(),this._writePacket(k,z)})}_applyTopicAlias(k){if(this.options.protocolVersion===5&&k.cmd==="publish"){let z;k.properties&&(z=k.properties.topicAlias);let R=k.topic.toString();if(this.topicAliasSend)if(z){if(R.length!==0&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",R,z),!this.topicAliasSend.put(R,z)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",R,z),new Error("Sending Topic Alias out of range")}else R.length!==0&&(this.options.autoAssignTopicAlias?(z=this.topicAliasSend.getAliasByTopic(R),z?(k.topic="",k.properties={...k.properties,topicAlias:z},this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",R,z)):(z=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(R,z),k.properties={...k.properties,topicAlias:z},this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",R,z))):this.options.autoUseTopicAlias&&(z=this.topicAliasSend.getAliasByTopic(R),z&&(k.topic="",k.properties={...k.properties,topicAlias:z},this.log("applyTopicAlias :: auto use topic: %s - alias: %d",R,z))));else if(z)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",R,z),new Error("Sending Topic Alias out of range")}}_noop(k){this.log("noop ::",k)}_writePacket(k,z){this.log("_writePacket :: packet: %O",k),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",k),this.log("_writePacket :: writing to stream");let R=o.default.writeToStream(k,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",R),!R&&z&&z!==this.noop?(this.log("_writePacket :: handle events on `drain` once through callback."),this.stream.once("drain",z)):z&&(this.log("_writePacket :: invoking cb"),z())}_sendPacket(k,z,R,Y){this.log("_sendPacket :: (%s) ::  start",this.options.clientId),R=R||this.noop,z=z||this.noop;let B=this._applyTopicAlias(k);if(B){z(B);return}if(!this.connected){if(k.cmd==="auth"){this._writePacket(k,z);return}this.log("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(k,z,R);return}if(Y){this._writePacket(k,z);return}switch(k.cmd){case"publish":break;case"pubrel":this._storeAndSend(k,z,R);return;default:this._writePacket(k,z);return}switch(k.qos){case 2:case 1:this._storeAndSend(k,z,R);break;case 0:default:this._writePacket(k,z);break}this.log("_sendPacket :: (%s) ::  end",this.options.clientId)}_storePacket(k,z,R){this.log("_storePacket :: packet: %o",k),this.log("_storePacket :: cb? %s",!!z),R=R||this.noop;let Y=k;if(Y.cmd==="publish"){Y=(0,u.default)(k);let te=this._removeTopicAliasAndRecoverTopicName(Y);if(te)return z&&z(te)}let B=Y.qos||0;B===0&&this.queueQoSZero||Y.cmd!=="publish"?this.queue.push({packet:Y,cb:z}):B>0?(z=this.outgoing[Y.messageId]?this.outgoing[Y.messageId].cb:null,this.outgoingStore.put(Y,te=>{if(te)return z&&z(te);R()})):z&&z(new Error("No connection to broker"))}_setupKeepaliveManager(){this.log("_setupKeepaliveManager :: keepalive %d (seconds)",this.options.keepalive),!this.keepaliveManager&&this.options.keepalive&&(this.keepaliveManager=new j.default(this,this.options.timerVariant))}_destroyKeepaliveManager(){this.keepaliveManager&&(this.log("_destroyKeepaliveManager :: destroying keepalive manager"),this.keepaliveManager.destroy(),this.keepaliveManager=null)}reschedulePing(k=!1){this.keepaliveManager&&this.options.keepalive&&(k||this.options.reschedulePings)&&this._reschedulePing()}_reschedulePing(){this.log("_reschedulePing :: rescheduling ping"),this.keepaliveManager.reschedule()}sendPing(){this.log("_sendPing :: sending pingreq"),this._sendPacket({cmd:"pingreq"})}onKeepaliveTimeout(){this.emit("error",new Error("Keepalive timeout")),this.log("onKeepaliveTimeout :: calling _cleanUp with force true"),this._cleanUp(!0)}_resubscribe(){this.log("_resubscribe");let k=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&k.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log("_resubscribe: protocolVersion 5");for(let z=0;z<k.length;z++){let R={};R[k[z]]=this._resubscribeTopics[k[z]],R.resubscribe=!0,this.subscribe(R,{properties:R[k[z]].properties})}}else this._resubscribeTopics.resubscribe=!0,this.subscribe(this._resubscribeTopics);else this._resubscribeTopics={};this._firstConnection=!1}_onConnect(k){if(this.disconnected){this.emit("connect",k);return}this.connackPacket=k,this.messageIdProvider.clear(),this._setupKeepaliveManager(),this.connected=!0;let z=()=>{let R=this.outgoingStore.createStream(),Y=()=>{R.destroy(),R=null,this._flushStoreProcessingQueue(),B()},B=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",Y),R.on("error",ae=>{B(),this._flushStoreProcessingQueue(),this.removeListener("close",Y),this.emit("error",ae)});let te=()=>{if(!R)return;let ae=R.read(1),ee;if(!ae){R.once("readable",te);return}if(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[ae.messageId]){te();return}!this.disconnecting&&!this.reconnectTimer?(ee=this.outgoing[ae.messageId]?this.outgoing[ae.messageId].cb:null,this.outgoing[ae.messageId]={volatile:!1,cb(W,V){ee&&ee(W,V),te()}},this._packetIdsDuringStoreProcessing[ae.messageId]=!0,this.messageIdProvider.register(ae.messageId)?this._sendPacket(ae,void 0,void 0,!0):this.log("messageId: %d has already used.",ae.messageId)):R.destroy&&R.destroy()};R.on("end",()=>{let ae=!0;for(let ee in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[ee]){ae=!1;break}this.removeListener("close",Y),ae?(B(),this._invokeAllStoreProcessingQueue(),this.emit("connect",k)):z()}),te()};z()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let k=this._storeProcessingQueue[0];if(k&&k.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let k of this._storeProcessingQueue)k.cbStorePut&&k.cbStorePut(new Error("Connection closed")),k.callback&&k.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(k,z){delete this.outgoing[k],this.outgoingStore.del({messageId:k},(R,Y)=>{z(R,Y),this.messageIdProvider.deallocate(k),this._invokeStoreProcessingQueue()})}},Qe(T,"VERSION",A.MQTTJS_VERSION),T);f.default=N}),sw=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"__esModule",{value:!0});var y=uv(),d=class{constructor(){Qe(this,"numberAllocator");Qe(this,"lastId");this.numberAllocator=new y.NumberAllocator(1,65535)}allocate(){return this.lastId=this.numberAllocator.alloc(),this.lastId}getLastAllocated(){return this.lastId}register(c){return this.numberAllocator.use(c)}deallocate(c){this.numberAllocator.free(c)}clear(){this.numberAllocator.clear()}};f.default=d});function uw(){if(eh)return Po;eh=!0;let f=2147483647,y=36,d=1,c=26,m=38,o=700,l=72,u=128,i="-",a=/^xn--/,p=/[^\0-\x7F]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=y-d,A=Math.floor,M=String.fromCharCode;function j(R){throw new RangeError(_[R])}function C(R,Y){let B=[],te=R.length;for(;te--;)B[te]=Y(R[te]);return B}function S(R,Y){let B=R.split("@"),te="";B.length>1&&(te=B[0]+"@",R=B[1]),R=R.replace(b,".");let ae=R.split("."),ee=C(ae,Y).join(".");return te+ee}function O(R){let Y=[],B=0,te=R.length;for(;B<te;){let ae=R.charCodeAt(B++);if(ae>=55296&&ae<=56319&&B<te){let ee=R.charCodeAt(B++);(ee&64512)==56320?Y.push(((ae&1023)<<10)+(ee&1023)+65536):(Y.push(ae),B--)}else Y.push(ae)}return Y}let N=R=>String.fromCodePoint(...R),T=function(R){return R>=48&&R<58?26+(R-48):R>=65&&R<91?R-65:R>=97&&R<123?R-97:y},H=function(R,Y){return R+22+75*(R<26)-((Y!=0)<<5)},D=function(R,Y,B){let te=0;for(R=B?A(R/o):R>>1,R+=A(R/Y);R>w*c>>1;te+=y)R=A(R/w);return A(te+(w+1)*R/(R+m))},k=function(R){let Y=[],B=R.length,te=0,ae=u,ee=l,W=R.lastIndexOf(i);W<0&&(W=0);for(let V=0;V<W;++V)R.charCodeAt(V)>=128&&j("not-basic"),Y.push(R.charCodeAt(V));for(let V=W>0?W+1:0;V<B;){let Z=te;for(let re=1,I=y;;I+=y){V>=B&&j("invalid-input");let U=T(R.charCodeAt(V++));U>=y&&j("invalid-input"),U>A((f-te)/re)&&j("overflow"),te+=U*re;let G=I<=ee?d:I>=ee+c?c:I-ee;if(U<G)break;let ye=y-G;re>A(f/ye)&&j("overflow"),re*=ye}let be=Y.length+1;ee=D(te-Z,be,Z==0),A(te/be)>f-ae&&j("overflow"),ae+=A(te/be),te%=be,Y.splice(te++,0,ae)}return String.fromCodePoint(...Y)},z=function(R){let Y=[];R=O(R);let B=R.length,te=u,ae=0,ee=l;for(let Z of R)Z<128&&Y.push(M(Z));let W=Y.length,V=W;for(W&&Y.push(i);V<B;){let Z=f;for(let re of R)re>=te&&re<Z&&(Z=re);let be=V+1;Z-te>A((f-ae)/be)&&j("overflow"),ae+=(Z-te)*be,te=Z;for(let re of R)if(re<te&&++ae>f&&j("overflow"),re===te){let I=ae;for(let U=y;;U+=y){let G=U<=ee?d:U>=ee+c?c:U-ee;if(I<G)break;let ye=I-G,Q=y-G;Y.push(M(H(G+ye%Q,0))),I=A(ye/Q)}Y.push(M(H(I,0))),ee=D(ae,be,V===W),ae=0,++V}++ae,++te}return Y.join("")};return Po={version:"2.3.1",ucs2:{decode:O,encode:N},decode:k,encode:z,toASCII:function(R){return S(R,function(Y){return p.test(Y)?"xn--"+z(Y):Y})},toUnicode:function(R){return S(R,function(Y){return a.test(Y)?k(Y.slice(4).toLowerCase()):Y})}},Po}var Po,eh,ii,cw=Tr(()=>{Ne(),Re(),Ce(),Po={},eh=!1,ii=uw(),ii.decode,ii.encode,ii.toASCII,ii.toUnicode,ii.ucs2,ii.version});function fw(){return rh||(rh=!0,th=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var f={},y=Symbol("test"),d=Object(y);if(typeof y=="string"||Object.prototype.toString.call(y)!=="[object Symbol]"||Object.prototype.toString.call(d)!=="[object Symbol]")return!1;var c=42;f[y]=c;for(y in f)return!1;if(typeof Object.keys=="function"&&Object.keys(f).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(f).length!==0)return!1;var m=Object.getOwnPropertySymbols(f);if(m.length!==1||m[0]!==y||!Object.prototype.propertyIsEnumerable.call(f,y))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(f,y);if(o.value!==c||o.enumerable!==!0)return!1}return!0}),th}function hw(){return ih||(ih=!0,nh=Error),nh}function dw(){return lh||(lh=!0,ah=EvalError),ah}function pw(){return sh||(sh=!0,oh=RangeError),oh}function yw(){return ch||(ch=!0,uh=ReferenceError),uh}function bv(){return hh||(hh=!0,fh=SyntaxError),fh}function Sl(){return ph||(ph=!0,dh=TypeError),dh}function mw(){return mh||(mh=!0,yh=URIError),yh}function gw(){if(gh)return Go;gh=!0;var f=typeof Symbol<"u"&&Symbol,y=fw();return Go=function(){return typeof f!="function"||typeof Symbol!="function"||typeof f("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:y()},Go}function bw(){if(bh)return Yo;bh=!0;var f={__proto__:null,foo:{}},y=Object;return Yo=function(){return{__proto__:f}.foo===f.foo&&!(f instanceof y)},Yo}function vw(){if(vh)return Qo;vh=!0;var f="Function.prototype.bind called on incompatible ",y=Object.prototype.toString,d=Math.max,c="[object Function]",m=function(u,i){for(var a=[],p=0;p<u.length;p+=1)a[p]=u[p];for(var b=0;b<i.length;b+=1)a[b+u.length]=i[b];return a},o=function(u,i){for(var a=[],p=i,b=0;p<u.length;p+=1,b+=1)a[b]=u[p];return a},l=function(u,i){for(var a="",p=0;p<u.length;p+=1)a+=u[p],p+1<u.length&&(a+=i);return a};return Qo=function(u){var i=this;if(typeof i!="function"||y.apply(i)!==c)throw new TypeError(f+i);for(var a=o(arguments,1),p,b=function(){if(this instanceof p){var j=i.apply(this,m(a,arguments));return Object(j)===j?j:this}return i.apply(u,m(a,arguments))},_=d(0,i.length-a.length),w=[],A=0;A<_;A++)w[A]="$"+A;if(p=Function("binder","return function ("+l(w,",")+"){ return binder.apply(this,arguments); }")(b),i.prototype){var M=function(){};M.prototype=i.prototype,p.prototype=new M,M.prototype=null}return p},Qo}function Wh(){if(_h)return Vo;_h=!0;var f=vw();return Vo=Function.prototype.bind||f,Vo}function _w(){if(Sh)return Ko;Sh=!0;var f=Function.prototype.call,y=Object.prototype.hasOwnProperty,d=Wh();return Ko=d.call(f,y),Ko}function wa(){if(wh)return Fo;wh=!0;var f,y=hw(),d=dw(),c=pw(),m=yw(),o=bv(),l=Sl(),u=mw(),i=Function,a=function(V){try{return i('"use strict"; return ('+V+").constructor;")()}catch{}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch{p=null}var b=function(){throw new l},_=p?(function(){try{return arguments.callee,b}catch{try{return p(arguments,"callee").get}catch{return b}}})():b,w=gw()(),A=bw()(),M=Object.getPrototypeOf||(A?function(V){return V.__proto__}:null),j={},C=typeof Uint8Array>"u"||!M?f:M(Uint8Array),S={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?f:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?f:ArrayBuffer,"%ArrayIteratorPrototype%":w&&M?M([][Symbol.iterator]()):f,"%AsyncFromSyncIteratorPrototype%":f,"%AsyncFunction%":j,"%AsyncGenerator%":j,"%AsyncGeneratorFunction%":j,"%AsyncIteratorPrototype%":j,"%Atomics%":typeof Atomics>"u"?f:Atomics,"%BigInt%":typeof BigInt>"u"?f:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?f:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?f:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?f:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":y,"%eval%":eval,"%EvalError%":d,"%Float32Array%":typeof Float32Array>"u"?f:Float32Array,"%Float64Array%":typeof Float64Array>"u"?f:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?f:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":j,"%Int8Array%":typeof Int8Array>"u"?f:Int8Array,"%Int16Array%":typeof Int16Array>"u"?f:Int16Array,"%Int32Array%":typeof Int32Array>"u"?f:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&M?M(M([][Symbol.iterator]())):f,"%JSON%":typeof JSON=="object"?JSON:f,"%Map%":typeof Map>"u"?f:Map,"%MapIteratorPrototype%":typeof Map>"u"||!w||!M?f:M(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?f:Promise,"%Proxy%":typeof Proxy>"u"?f:Proxy,"%RangeError%":c,"%ReferenceError%":m,"%Reflect%":typeof Reflect>"u"?f:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?f:Set,"%SetIteratorPrototype%":typeof Set>"u"||!w||!M?f:M(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?f:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&M?M(""[Symbol.iterator]()):f,"%Symbol%":w?Symbol:f,"%SyntaxError%":o,"%ThrowTypeError%":_,"%TypedArray%":C,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?f:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?f:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?f:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?f:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?f:WeakMap,"%WeakRef%":typeof WeakRef>"u"?f:WeakRef,"%WeakSet%":typeof WeakSet>"u"?f:WeakSet};if(M)try{null.error}catch(V){var O=M(M(V));S["%Error.prototype%"]=O}var N=function V(Z){var be;if(Z==="%AsyncFunction%")be=a("async function () {}");else if(Z==="%GeneratorFunction%")be=a("function* () {}");else if(Z==="%AsyncGeneratorFunction%")be=a("async function* () {}");else if(Z==="%AsyncGenerator%"){var re=V("%AsyncGeneratorFunction%");re&&(be=re.prototype)}else if(Z==="%AsyncIteratorPrototype%"){var I=V("%AsyncGenerator%");I&&M&&(be=M(I.prototype))}return S[Z]=be,be},T={__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"]},H=Wh(),D=_w(),k=H.call(Function.call,Array.prototype.concat),z=H.call(Function.apply,Array.prototype.splice),R=H.call(Function.call,String.prototype.replace),Y=H.call(Function.call,String.prototype.slice),B=H.call(Function.call,RegExp.prototype.exec),te=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ae=/\\(\\)?/g,ee=function(V){var Z=Y(V,0,1),be=Y(V,-1);if(Z==="%"&&be!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if(be==="%"&&Z!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var re=[];return R(V,te,function(I,U,G,ye){re[re.length]=G?R(ye,ae,"$1"):U||I}),re},W=function(V,Z){var be=V,re;if(D(T,be)&&(re=T[be],be="%"+re[0]+"%"),D(S,be)){var I=S[be];if(I===j&&(I=N(be)),typeof I>"u"&&!Z)throw new l("intrinsic "+V+" exists, but is not available. Please file an issue!");return{alias:re,name:be,value:I}}throw new o("intrinsic "+V+" does not exist!")};return Fo=function(V,Z){if(typeof V!="string"||V.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Z!="boolean")throw new l('"allowMissing" argument must be a boolean');if(B(/^%?[^%]*%?$/,V)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var be=ee(V),re=be.length>0?be[0]:"",I=W("%"+re+"%",Z),U=I.name,G=I.value,ye=!1,Q=I.alias;Q&&(re=Q[0],z(be,k([0,1],Q)));for(var je=1,ie=!0;je<be.length;je+=1){var K=be[je],ge=Y(K,0,1),ue=Y(K,-1);if((ge==='"'||ge==="'"||ge==="`"||ue==='"'||ue==="'"||ue==="`")&&ge!==ue)throw new o("property names with quotes must have matching quotes");if((K==="constructor"||!ie)&&(ye=!0),re+="."+K,U="%"+re+"%",D(S,U))G=S[U];else if(G!=null){if(!(K in G)){if(!Z)throw new l("base intrinsic for "+V+" exists, but the property is not available.");return}if(p&&je+1>=be.length){var de=p(G,K);ie=!!de,ie&&"get"in de&&!("originalValue"in de.get)?G=de.get:G=G[K]}else ie=D(G,K),G=G[K];ie&&!ye&&(S[U]=G)}}return G},Fo}function Xh(){if(Eh)return Wo;Eh=!0;var f=wa(),y=f("%Object.defineProperty%",!0)||!1;if(y)try{y({},"a",{value:1})}catch{y=!1}return Wo=y,Wo}function vv(){if(Ah)return Xo;Ah=!0;var f=wa(),y=f("%Object.getOwnPropertyDescriptor%",!0);if(y)try{y([],"length")}catch{y=null}return Xo=y,Xo}function Sw(){if(Th)return Zo;Th=!0;var f=Xh(),y=bv(),d=Sl(),c=vv();return Zo=function(m,o,l){if(!m||typeof m!="object"&&typeof m!="function")throw new d("`obj` must be an object or a function`");if(typeof o!="string"&&typeof o!="symbol")throw new d("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new d("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new d("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new d("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new d("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,b=!!c&&c(m,o);if(f)f(m,o,{configurable:a===null&&b?b.configurable:!a,enumerable:u===null&&b?b.enumerable:!u,value:l,writable:i===null&&b?b.writable:!i});else if(p||!u&&!i&&!a)m[o]=l;else throw new y("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Zo}function ww(){if(xh)return $o;xh=!0;var f=Xh(),y=function(){return!!f};return y.hasArrayLengthDefineBug=function(){if(!f)return null;try{return f([],"length",{value:1}).length!==1}catch{return!0}},$o=y,$o}function Ew(){if(Oh)return Jo;Oh=!0;var f=wa(),y=Sw(),d=ww()(),c=vv(),m=Sl(),o=f("%Math.floor%");return Jo=function(l,u){if(typeof l!="function")throw new m("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||o(u)!==u)throw new m("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],a=!0,p=!0;if("length"in l&&c){var b=c(l,"length");b&&!b.configurable&&(a=!1),b&&!b.writable&&(p=!1)}return(a||p||!i)&&(d?y(l,"length",u,!0,!0):y(l,"length",u)),l},Jo}function Aw(){if(jh)return ba;jh=!0;var f=Wh(),y=wa(),d=Ew(),c=Sl(),m=y("%Function.prototype.apply%"),o=y("%Function.prototype.call%"),l=y("%Reflect.apply%",!0)||f.call(o,m),u=Xh(),i=y("%Math.max%");ba=function(p){if(typeof p!="function")throw new c("a function is required");var b=l(f,o,arguments);return d(b,1+i(0,p.length-(arguments.length-1)),!0)};var a=function(){return l(f,m,arguments)};return u?u(ba,"apply",{value:a}):ba.apply=a,ba}function Tw(){if(Mh)return es;Mh=!0;var f=wa(),y=Aw(),d=y(f("String.prototype.indexOf"));return es=function(c,m){var o=f(c,!!m);return typeof o=="function"&&d(c,".prototype.")>-1?y(o):o},es}var th,rh,nh,ih,ah,lh,oh,sh,uh,ch,fh,hh,dh,ph,yh,mh,Go,gh,Yo,bh,Qo,vh,Vo,_h,Ko,Sh,Fo,wh,Wo,Eh,Xo,Ah,Zo,Th,$o,xh,Jo,Oh,ba,jh,es,Mh,xw=Tr(()=>{Ne(),Re(),Ce(),th={},rh=!1,nh={},ih=!1,ah={},lh=!1,oh={},sh=!1,uh={},ch=!1,fh={},hh=!1,dh={},ph=!1,yh={},mh=!1,Go={},gh=!1,Yo={},bh=!1,Qo={},vh=!1,Vo={},_h=!1,Ko={},Sh=!1,Fo={},wh=!1,Wo={},Eh=!1,Xo={},Ah=!1,Zo={},Th=!1,$o={},xh=!1,Jo={},Oh=!1,ba={},jh=!1,es={},Mh=!1});function Zh(f){throw new Error("Node.js process "+f+" is not supported by JSPM core outside of Node.js")}function Ow(){!ji||!xi||(ji=!1,xi.length?Jr=xi.concat(Jr):bl=-1,Jr.length&&_v())}function _v(){if(!ji){var f=setTimeout(Ow,0);ji=!0;for(var y=Jr.length;y;){for(xi=Jr,Jr=[];++bl<y;)xi&&xi[bl].run();bl=-1,y=Jr.length}xi=null,ji=!1,clearTimeout(f)}}function jw(f){var y=new Array(arguments.length-1);if(arguments.length>1)for(var d=1;d<arguments.length;d++)y[d-1]=arguments[d];Jr.push(new Sv(f,y)),Jr.length===1&&!ji&&setTimeout(_v,0)}function Sv(f,y){this.fun=f,this.array=y}function sr(){}function Mw(f){Zh("_linkedBinding")}function Nw(f){Zh("dlopen")}function Cw(){return[]}function Rw(){return[]}function Uw(f,y){if(!f)throw new Error(y||"assertion error")}function Bw(){return!1}function Dw(){return En.now()/1e3}function Ic(f){var y=Math.floor((Date.now()-En.now())*.001),d=En.now()*.001,c=Math.floor(d)+y,m=Math.floor(d%1*1e9);return f&&(c=c-f[0],m=m-f[1],m<0&&(c--,m+=ts)),[c,m]}function Jn(){return $h}function kw(f){return[]}var Jr,ji,xi,bl,ng,ig,ag,lg,og,sg,ug,cg,fg,hg,dg,pg,yg,mg,gg,bg,vg,_g,Sg,wg,Eg,ko,Ag,Tg,xg,Og,jg,Mg,Ng,Cg,Rg,Ug,Bg,Dg,kg,Ig,zg,Lg,qg,Hg,Pg,Gg,Yg,Qg,Vg,Kg,Fg,En,zc,ts,Wg,Xg,Zg,$g,Jg,eb,tb,rb,nb,ib,ab,$h,wv=Tr(()=>{Ne(),Re(),Ce(),Jr=[],ji=!1,bl=-1,Sv.prototype.run=function(){this.fun.apply(null,this.array)},ng="browser",ig="x64",ag="browser",lg={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},og=["/usr/bin/node"],sg=[],ug="v16.8.0",cg={},fg=function(f,y){console.warn((y?y+": ":"")+f)},hg=function(f){Zh("binding")},dg=function(f){return 0},pg=function(){return"/"},yg=function(f){},mg={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},gg=sr,bg=[],vg={},_g=!1,Sg={},wg=sr,Eg=sr,ko=function(){return{}},Ag=ko,Tg=ko,xg=sr,Og=sr,jg=sr,Mg={},Ng={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},Cg=sr,Rg=sr,Ug=sr,Bg=sr,Dg=sr,kg=sr,Ig=sr,zg=void 0,Lg=void 0,qg=void 0,Hg=sr,Pg=2,Gg=1,Yg="/bin/usr/node",Qg=9229,Vg="node",Kg=[],Fg=sr,En={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},En.now===void 0&&(zc=Date.now(),En.timing&&En.timing.navigationStart&&(zc=En.timing.navigationStart),En.now=()=>Date.now()-zc),ts=1e9,Ic.bigint=function(f){var y=Ic(f);return typeof BigInt>"u"?y[0]*ts+y[1]:BigInt(y[0]*ts)+BigInt(y[1])},Wg=10,Xg={},Zg=0,$g=Jn,Jg=Jn,eb=Jn,tb=Jn,rb=Jn,nb=sr,ib=Jn,ab=Jn,$h={version:ug,versions:cg,arch:ig,platform:ag,release:mg,_rawDebug:gg,moduleLoadList:bg,binding:hg,_linkedBinding:Mw,_events:Xg,_eventsCount:Zg,_maxListeners:Wg,on:Jn,addListener:$g,once:Jg,off:eb,removeListener:tb,removeAllListeners:rb,emit:nb,prependListener:ib,prependOnceListener:ab,listeners:kw,domain:vg,_exiting:_g,config:Sg,dlopen:Nw,uptime:Dw,_getActiveRequests:Cw,_getActiveHandles:Rw,reallyExit:wg,_kill:Eg,cpuUsage:ko,resourceUsage:Ag,memoryUsage:Tg,kill:xg,exit:Og,openStdin:jg,allowedNodeEnvironmentFlags:Mg,assert:Uw,features:Ng,_fatalExceptions:Cg,setUncaughtExceptionCaptureCallback:Rg,hasUncaughtExceptionCaptureCallback:Bw,emitWarning:fg,nextTick:jw,_tickCallback:Ug,_debugProcess:Bg,_debugEnd:Dg,_startProfilerIdleNotifier:kg,_stopProfilerIdleNotifier:Ig,stdout:zg,stdin:qg,stderr:Lg,abort:Hg,umask:dg,chdir:yg,cwd:pg,env:lg,title:ng,argv:og,execArgv:sg,pid:Pg,ppid:Gg,execPath:Yg,debugPort:Qg,hrtime:Ic,argv0:Vg,_preload_modules:Kg,setSourceMapsEnabled:Fg}});function Iw(){if(Nh)return rs;Nh=!0;var f=$h;function y(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function d(o,l){for(var u="",i=0,a=-1,p=0,b,_=0;_<=o.length;++_){if(_<o.length)b=o.charCodeAt(_);else{if(b===47)break;b=47}if(b===47){if(!(a===_-1||p===1))if(a!==_-1&&p===2){if(u.length<2||i!==2||u.charCodeAt(u.length-1)!==46||u.charCodeAt(u.length-2)!==46){if(u.length>2){var w=u.lastIndexOf("/");if(w!==u.length-1){w===-1?(u="",i=0):(u=u.slice(0,w),i=u.length-1-u.lastIndexOf("/")),a=_,p=0;continue}}else if(u.length===2||u.length===1){u="",i=0,a=_,p=0;continue}}l&&(u.length>0?u+="/..":u="..",i=2)}else u.length>0?u+="/"+o.slice(a+1,_):u=o.slice(a+1,_),i=_-a-1;a=_,p=0}else b===46&&p!==-1?++p:p=-1}return u}function c(o,l){var u=l.dir||l.root,i=l.base||(l.name||"")+(l.ext||"");return u?u===l.root?u+i:u+o+i:i}var m={resolve:function(){for(var o="",l=!1,u,i=arguments.length-1;i>=-1&&!l;i--){var a;i>=0?a=arguments[i]:(u===void 0&&(u=f.cwd()),a=u),y(a),a.length!==0&&(o=a+"/"+o,l=a.charCodeAt(0)===47)}return o=d(o,!l),l?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(o){if(y(o),o.length===0)return".";var l=o.charCodeAt(0)===47,u=o.charCodeAt(o.length-1)===47;return o=d(o,!l),o.length===0&&!l&&(o="."),o.length>0&&u&&(o+="/"),l?"/"+o:o},isAbsolute:function(o){return y(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,l=0;l<arguments.length;++l){var u=arguments[l];y(u),u.length>0&&(o===void 0?o=u:o+="/"+u)}return o===void 0?".":m.normalize(o)},relative:function(o,l){if(y(o),y(l),o===l||(o=m.resolve(o),l=m.resolve(l),o===l))return"";for(var u=1;u<o.length&&o.charCodeAt(u)===47;++u);for(var i=o.length,a=i-u,p=1;p<l.length&&l.charCodeAt(p)===47;++p);for(var b=l.length,_=b-p,w=a<_?a:_,A=-1,M=0;M<=w;++M){if(M===w){if(_>w){if(l.charCodeAt(p+M)===47)return l.slice(p+M+1);if(M===0)return l.slice(p+M)}else a>w&&(o.charCodeAt(u+M)===47?A=M:M===0&&(A=0));break}var j=o.charCodeAt(u+M),C=l.charCodeAt(p+M);if(j!==C)break;j===47&&(A=M)}var S="";for(M=u+A+1;M<=i;++M)(M===i||o.charCodeAt(M)===47)&&(S.length===0?S+="..":S+="/..");return S.length>0?S+l.slice(p+A):(p+=A,l.charCodeAt(p)===47&&++p,l.slice(p))},_makeLong:function(o){return o},dirname:function(o){if(y(o),o.length===0)return".";for(var l=o.charCodeAt(0),u=l===47,i=-1,a=!0,p=o.length-1;p>=1;--p)if(l=o.charCodeAt(p),l===47){if(!a){i=p;break}}else a=!1;return i===-1?u?"/":".":u&&i===1?"//":o.slice(0,i)},basename:function(o,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');y(o);var u=0,i=-1,a=!0,p;if(l!==void 0&&l.length>0&&l.length<=o.length){if(l.length===o.length&&l===o)return"";var b=l.length-1,_=-1;for(p=o.length-1;p>=0;--p){var w=o.charCodeAt(p);if(w===47){if(!a){u=p+1;break}}else _===-1&&(a=!1,_=p+1),b>=0&&(w===l.charCodeAt(b)?--b===-1&&(i=p):(b=-1,i=_))}return u===i?i=_:i===-1&&(i=o.length),o.slice(u,i)}else{for(p=o.length-1;p>=0;--p)if(o.charCodeAt(p)===47){if(!a){u=p+1;break}}else i===-1&&(a=!1,i=p+1);return i===-1?"":o.slice(u,i)}},extname:function(o){y(o);for(var l=-1,u=0,i=-1,a=!0,p=0,b=o.length-1;b>=0;--b){var _=o.charCodeAt(b);if(_===47){if(!a){u=b+1;break}continue}i===-1&&(a=!1,i=b+1),_===46?l===-1?l=b:p!==1&&(p=1):l!==-1&&(p=-1)}return l===-1||i===-1||p===0||p===1&&l===i-1&&l===u+1?"":o.slice(l,i)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return c("/",o)},parse:function(o){y(o);var l={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return l;var u=o.charCodeAt(0),i=u===47,a;i?(l.root="/",a=1):a=0;for(var p=-1,b=0,_=-1,w=!0,A=o.length-1,M=0;A>=a;--A){if(u=o.charCodeAt(A),u===47){if(!w){b=A+1;break}continue}_===-1&&(w=!1,_=A+1),u===46?p===-1?p=A:M!==1&&(M=1):p!==-1&&(M=-1)}return p===-1||_===-1||M===0||M===1&&p===_-1&&p===b+1?_!==-1&&(b===0&&i?l.base=l.name=o.slice(1,_):l.base=l.name=o.slice(b,_)):(b===0&&i?(l.name=o.slice(1,p),l.base=o.slice(1,_)):(l.name=o.slice(b,p),l.base=o.slice(b,_)),l.ext=o.slice(p,_)),b>0?l.dir=o.slice(0,b-1):i&&(l.dir="/"),l},sep:"/",delimiter:":",win32:null,posix:null};return m.posix=m,rs=m,rs}var rs,Nh,Ch,zw=Tr(()=>{Ne(),Re(),Ce(),wv(),rs={},Nh=!1,Ch=Iw()}),Ev={};va(Ev,{URL:()=>Uv,Url:()=>jv,default:()=>ur,fileURLToPath:()=>Tv,format:()=>Mv,parse:()=>Rv,pathToFileURL:()=>xv,resolve:()=>Nv,resolveObject:()=>Cv});function Lw(){if(Rh)return ns;Rh=!0;var f=typeof Map=="function"&&Map.prototype,y=Object.getOwnPropertyDescriptor&&f?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,d=f&&y&&typeof y.get=="function"?y.get:null,c=f&&Map.prototype.forEach,m=typeof Set=="function"&&Set.prototype,o=Object.getOwnPropertyDescriptor&&m?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=m&&o&&typeof o.get=="function"?o.get:null,u=m&&Set.prototype.forEach,i=typeof WeakMap=="function"&&WeakMap.prototype,a=i?WeakMap.prototype.has:null,p=typeof WeakSet=="function"&&WeakSet.prototype,b=p?WeakSet.prototype.has:null,_=typeof WeakRef=="function"&&WeakRef.prototype,w=_?WeakRef.prototype.deref:null,A=Boolean.prototype.valueOf,M=Object.prototype.toString,j=Function.prototype.toString,C=String.prototype.match,S=String.prototype.slice,O=String.prototype.replace,N=String.prototype.toUpperCase,T=String.prototype.toLowerCase,H=RegExp.prototype.test,D=Array.prototype.concat,k=Array.prototype.join,z=Array.prototype.slice,R=Math.floor,Y=typeof BigInt=="function"?BigInt.prototype.valueOf:null,B=Object.getOwnPropertySymbols,te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ae=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ee=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ae||!0)?Symbol.toStringTag:null,W=Object.prototype.propertyIsEnumerable,V=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ne){return ne.__proto__}:null);function Z(ne,le){if(ne===1/0||ne===-1/0||ne!==ne||ne&&ne>-1e3&&ne<1e3||H.call(/e/,le))return le;var Ge=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ne=="number"){var Ye=ne<0?-R(-ne):R(ne);if(Ye!==ne){var Ke=String(Ye),rt=S.call(le,Ke.length+1);return O.call(Ke,Ge,"$&_")+"."+O.call(O.call(rt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O.call(le,Ge,"$&_")}var be=Ov,re=be.custom,I=de(re)?re:null;ns=function ne(le,Ge,Ye,Ke){var rt=Ge||{};if(Ae(rt,"quoteStyle")&&rt.quoteStyle!=="single"&&rt.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ae(rt,"maxStringLength")&&(typeof rt.maxStringLength=="number"?rt.maxStringLength<0&&rt.maxStringLength!==1/0:rt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Nt=Ae(rt,"customInspect")?rt.customInspect:!0;if(typeof Nt!="boolean"&&Nt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ae(rt,"indent")&&rt.indent!==null&&rt.indent!=="	"&&!(parseInt(rt.indent,10)===rt.indent&&rt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ae(rt,"numericSeparator")&&typeof rt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Mt=rt.numericSeparator;if(typeof le>"u")return"undefined";if(le===null)return"null";if(typeof le=="boolean")return le?"true":"false";if(typeof le=="string")return xe(le,rt);if(typeof le=="number"){if(le===0)return 1/0/le>0?"0":"-0";var lt=String(le);return Mt?Z(le,lt):lt}if(typeof le=="bigint"){var gt=String(le)+"n";return Mt?Z(le,gt):gt}var $e=typeof rt.depth>"u"?5:rt.depth;if(typeof Ye>"u"&&(Ye=0),Ye>=$e&&$e>0&&typeof le=="object")return ye(le)?"[Array]":"[Object]";var ut=F(rt,Ye);if(typeof Ke>"u")Ke=[];else if(Se(Ke,le)>=0)return"[Circular]";function yt(gr,Kr,en){if(Kr&&(Ke=z.call(Ke),Ke.push(Kr)),en){var xr={depth:rt.depth};return Ae(rt,"quoteStyle")&&(xr.quoteStyle=rt.quoteStyle),ne(gr,xr,Ye+1,Ke)}return ne(gr,rt,Ye+1,Ke)}if(typeof le=="function"&&!je(le)){var Bt=ce(le),Pt=_e(le,yt);return"[Function"+(Bt?": "+Bt:" (anonymous)")+"]"+(Pt.length>0?" { "+k.call(Pt,", ")+" }":"")}if(de(le)){var cr=ae?O.call(String(le),/^(Symbol\(.*\))_[^)]*$/,"$1"):te.call(le);return typeof le=="object"&&!ae?g(cr):cr}if(Pe(le)){for(var P="<"+T.call(String(le.nodeName)),$=le.attributes||[],He=0;He<$.length;He++)P+=" "+$[He].name+"="+U(G($[He].value),"double",rt);return P+=">",le.childNodes&&le.childNodes.length&&(P+="..."),P+="</"+T.call(String(le.nodeName))+">",P}if(ye(le)){if(le.length===0)return"[]";var Ve=_e(le,yt);return ut&&!L(Ve)?"["+se(Ve,ut)+"]":"[ "+k.call(Ve,", ")+" ]"}if(ie(le)){var Fe=_e(le,yt);return!("cause"in Error.prototype)&&"cause"in le&&!W.call(le,"cause")?"{ ["+String(le)+"] "+k.call(D.call("[cause]: "+yt(le.cause),Fe),", ")+" }":Fe.length===0?"["+String(le)+"]":"{ ["+String(le)+"] "+k.call(Fe,", ")+" }"}if(typeof le=="object"&&Nt){if(I&&typeof le[I]=="function"&&be)return be(le,{depth:$e-Ye});if(Nt!=="symbol"&&typeof le.inspect=="function")return le.inspect()}if(Ue(le)){var It=[];return c&&c.call(le,function(gr,Kr){It.push(yt(Kr,le,!0)+" => "+yt(gr,le))}),E("Map",d.call(le),It,ut)}if(he(le)){var Wt=[];return u&&u.call(le,function(gr){Wt.push(yt(gr,le))}),E("Set",l.call(le),Wt,ut)}if(Me(le))return v("WeakMap");if(ke(le))return v("WeakSet");if(ze(le))return v("WeakRef");if(ge(le))return g(yt(Number(le)));if(me(le))return g(yt(Y.call(le)));if(ue(le))return g(A.call(le));if(K(le))return g(yt(String(le)));if(typeof window<"u"&&le===window)return"{ [object Window] }";if(typeof globalThis<"u"&&le===globalThis||typeof is<"u"&&le===is)return"{ [object globalThis] }";if(!Q(le)&&!je(le)){var pr=_e(le,yt),Mn=V?V(le)===Object.prototype:le instanceof Object||le.constructor===Object,yr=le instanceof Object?"":"null prototype",zt=!Mn&&ee&&Object(le)===le&&ee in le?S.call(X(le),8,-1):yr?"Object":"",Xt=Mn||typeof le.constructor!="function"?"":le.constructor.name?le.constructor.name+" ":"",mr=Xt+(zt||yr?"["+k.call(D.call([],zt||[],yr||[]),": ")+"] ":"");return pr.length===0?mr+"{}":ut?mr+"{"+se(pr,ut)+"}":mr+"{ "+k.call(pr,", ")+" }"}return String(le)};function U(ne,le,Ge){var Ye=(Ge.quoteStyle||le)==="double"?'"':"'";return Ye+ne+Ye}function G(ne){return O.call(String(ne),/"/g,"&quot;")}function ye(ne){return X(ne)==="[object Array]"&&(!ee||!(typeof ne=="object"&&ee in ne))}function Q(ne){return X(ne)==="[object Date]"&&(!ee||!(typeof ne=="object"&&ee in ne))}function je(ne){return X(ne)==="[object RegExp]"&&(!ee||!(typeof ne=="object"&&ee in ne))}function ie(ne){return X(ne)==="[object Error]"&&(!ee||!(typeof ne=="object"&&ee in ne))}function K(ne){return X(ne)==="[object String]"&&(!ee||!(typeof ne=="object"&&ee in ne))}function ge(ne){return X(ne)==="[object Number]"&&(!ee||!(typeof ne=="object"&&ee in ne))}function ue(ne){return X(ne)==="[object Boolean]"&&(!ee||!(typeof ne=="object"&&ee in ne))}function de(ne){if(ae)return ne&&typeof ne=="object"&&ne instanceof Symbol;if(typeof ne=="symbol")return!0;if(!ne||typeof ne!="object"||!te)return!1;try{return te.call(ne),!0}catch{}return!1}function me(ne){if(!ne||typeof ne!="object"||!Y)return!1;try{return Y.call(ne),!0}catch{}return!1}var Be=Object.prototype.hasOwnProperty||function(ne){return ne in(this||is)};function Ae(ne,le){return Be.call(ne,le)}function X(ne){return M.call(ne)}function ce(ne){if(ne.name)return ne.name;var le=C.call(j.call(ne),/^function\s*([\w$]+)/);return le?le[1]:null}function Se(ne,le){if(ne.indexOf)return ne.indexOf(le);for(var Ge=0,Ye=ne.length;Ge<Ye;Ge++)if(ne[Ge]===le)return Ge;return-1}function Ue(ne){if(!d||!ne||typeof ne!="object")return!1;try{d.call(ne);try{l.call(ne)}catch{return!0}return ne instanceof Map}catch{}return!1}function Me(ne){if(!a||!ne||typeof ne!="object")return!1;try{a.call(ne,a);try{b.call(ne,b)}catch{return!0}return ne instanceof WeakMap}catch{}return!1}function ze(ne){if(!w||!ne||typeof ne!="object")return!1;try{return w.call(ne),!0}catch{}return!1}function he(ne){if(!l||!ne||typeof ne!="object")return!1;try{l.call(ne);try{d.call(ne)}catch{return!0}return ne instanceof Set}catch{}return!1}function ke(ne){if(!b||!ne||typeof ne!="object")return!1;try{b.call(ne,b);try{a.call(ne,a)}catch{return!0}return ne instanceof WeakSet}catch{}return!1}function Pe(ne){return!ne||typeof ne!="object"?!1:typeof HTMLElement<"u"&&ne instanceof HTMLElement?!0:typeof ne.nodeName=="string"&&typeof ne.getAttribute=="function"}function xe(ne,le){if(ne.length>le.maxStringLength){var Ge=ne.length-le.maxStringLength,Ye="... "+Ge+" more character"+(Ge>1?"s":"");return xe(S.call(ne,0,le.maxStringLength),le)+Ye}var Ke=O.call(O.call(ne,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,tt);return U(Ke,"single",le)}function tt(ne){var le=ne.charCodeAt(0),Ge={8:"b",9:"t",10:"n",12:"f",13:"r"}[le];return Ge?"\\"+Ge:"\\x"+(le<16?"0":"")+N.call(le.toString(16))}function g(ne){return"Object("+ne+")"}function v(ne){return ne+" { ? }"}function E(ne,le,Ge,Ye){var Ke=Ye?se(Ge,Ye):k.call(Ge,", ");return ne+" ("+le+") {"+Ke+"}"}function L(ne){for(var le=0;le<ne.length;le++)if(Se(ne[le],`
`)>=0)return!1;return!0}function F(ne,le){var Ge;if(ne.indent==="	")Ge="	";else if(typeof ne.indent=="number"&&ne.indent>0)Ge=k.call(Array(ne.indent+1)," ");else return null;return{base:Ge,prev:k.call(Array(le+1),Ge)}}function se(ne,le){if(ne.length===0)return"";var Ge=`
`+le.prev+le.base;return Ge+k.call(ne,","+Ge)+`
`+le.prev}function _e(ne,le){var Ge=ye(ne),Ye=[];if(Ge){Ye.length=ne.length;for(var Ke=0;Ke<ne.length;Ke++)Ye[Ke]=Ae(ne,Ke)?le(ne[Ke],ne):""}var rt=typeof B=="function"?B(ne):[],Nt;if(ae){Nt={};for(var Mt=0;Mt<rt.length;Mt++)Nt["$"+rt[Mt]]=rt[Mt]}for(var lt in ne)Ae(ne,lt)&&(Ge&&String(Number(lt))===lt&&lt<ne.length||ae&&Nt["$"+lt]instanceof Symbol||(H.call(/[^\w$]/,lt)?Ye.push(le(lt,ne)+": "+le(ne[lt],ne)):Ye.push(lt+": "+le(ne[lt],ne))));if(typeof B=="function")for(var gt=0;gt<rt.length;gt++)W.call(ne,rt[gt])&&Ye.push("["+le(rt[gt])+"]: "+le(ne[rt[gt]],ne));return Ye}return ns}function qw(){if(Uh)return as;Uh=!0;var f=wa(),y=Tw(),d=Lw(),c=Sl(),m=f("%WeakMap%",!0),o=f("%Map%",!0),l=y("WeakMap.prototype.get",!0),u=y("WeakMap.prototype.set",!0),i=y("WeakMap.prototype.has",!0),a=y("Map.prototype.get",!0),p=y("Map.prototype.set",!0),b=y("Map.prototype.has",!0),_=function(j,C){for(var S=j,O;(O=S.next)!==null;S=O)if(O.key===C)return S.next=O.next,O.next=j.next,j.next=O,O},w=function(j,C){var S=_(j,C);return S&&S.value},A=function(j,C,S){var O=_(j,C);O?O.value=S:j.next={key:C,next:j.next,value:S}},M=function(j,C){return!!_(j,C)};return as=function(){var j,C,S,O={assert:function(N){if(!O.has(N))throw new c("Side channel does not contain "+d(N))},get:function(N){if(m&&N&&(typeof N=="object"||typeof N=="function")){if(j)return l(j,N)}else if(o){if(C)return a(C,N)}else if(S)return w(S,N)},has:function(N){if(m&&N&&(typeof N=="object"||typeof N=="function")){if(j)return i(j,N)}else if(o){if(C)return b(C,N)}else if(S)return M(S,N);return!1},set:function(N,T){m&&N&&(typeof N=="object"||typeof N=="function")?(j||(j=new m),u(j,N,T)):o?(C||(C=new o),p(C,N,T)):(S||(S={key:{},next:null}),A(S,N,T))}};return O},as}function Jh(){if(Bh)return ls;Bh=!0;var f=String.prototype.replace,y=/%20/g,d={RFC1738:"RFC1738",RFC3986:"RFC3986"};return ls={default:d.RFC3986,formatters:{RFC1738:function(c){return f.call(c,y,"+")},RFC3986:function(c){return String(c)}},RFC1738:d.RFC1738,RFC3986:d.RFC3986},ls}function Av(){if(Dh)return os;Dh=!0;var f=Jh(),y=Object.prototype.hasOwnProperty,d=Array.isArray,c=(function(){for(var j=[],C=0;C<256;++C)j.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return j})(),m=function(j){for(;j.length>1;){var C=j.pop(),S=C.obj[C.prop];if(d(S)){for(var O=[],N=0;N<S.length;++N)typeof S[N]<"u"&&O.push(S[N]);C.obj[C.prop]=O}}},o=function(j,C){for(var S=C&&C.plainObjects?Object.create(null):{},O=0;O<j.length;++O)typeof j[O]<"u"&&(S[O]=j[O]);return S},l=function j(C,S,O){if(!S)return C;if(typeof S!="object"){if(d(C))C.push(S);else if(C&&typeof C=="object")(O&&(O.plainObjects||O.allowPrototypes)||!y.call(Object.prototype,S))&&(C[S]=!0);else return[C,S];return C}if(!C||typeof C!="object")return[C].concat(S);var N=C;return d(C)&&!d(S)&&(N=o(C,O)),d(C)&&d(S)?(S.forEach(function(T,H){if(y.call(C,H)){var D=C[H];D&&typeof D=="object"&&T&&typeof T=="object"?C[H]=j(D,T,O):C.push(T)}else C[H]=T}),C):Object.keys(S).reduce(function(T,H){var D=S[H];return y.call(T,H)?T[H]=j(T[H],D,O):T[H]=D,T},N)},u=function(j,C){return Object.keys(C).reduce(function(S,O){return S[O]=C[O],S},j)},i=function(j,C,S){var O=j.replace(/\+/g," ");if(S==="iso-8859-1")return O.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(O)}catch{return O}},a=1024,p=function(j,C,S,O,N){if(j.length===0)return j;var T=j;if(typeof j=="symbol"?T=Symbol.prototype.toString.call(j):typeof j!="string"&&(T=String(j)),S==="iso-8859-1")return escape(T).replace(/%u[0-9a-f]{4}/gi,function(B){return"%26%23"+parseInt(B.slice(2),16)+"%3B"});for(var H="",D=0;D<T.length;D+=a){for(var k=T.length>=a?T.slice(D,D+a):T,z=[],R=0;R<k.length;++R){var Y=k.charCodeAt(R);if(Y===45||Y===46||Y===95||Y===126||Y>=48&&Y<=57||Y>=65&&Y<=90||Y>=97&&Y<=122||N===f.RFC1738&&(Y===40||Y===41)){z[z.length]=k.charAt(R);continue}if(Y<128){z[z.length]=c[Y];continue}if(Y<2048){z[z.length]=c[192|Y>>6]+c[128|Y&63];continue}if(Y<55296||Y>=57344){z[z.length]=c[224|Y>>12]+c[128|Y>>6&63]+c[128|Y&63];continue}R+=1,Y=65536+((Y&1023)<<10|k.charCodeAt(R)&1023),z[z.length]=c[240|Y>>18]+c[128|Y>>12&63]+c[128|Y>>6&63]+c[128|Y&63]}H+=z.join("")}return H},b=function(j){for(var C=[{obj:{o:j},prop:"o"}],S=[],O=0;O<C.length;++O)for(var N=C[O],T=N.obj[N.prop],H=Object.keys(T),D=0;D<H.length;++D){var k=H[D],z=T[k];typeof z=="object"&&z!==null&&S.indexOf(z)===-1&&(C.push({obj:T,prop:k}),S.push(z))}return m(C),j},_=function(j){return Object.prototype.toString.call(j)==="[object RegExp]"},w=function(j){return!j||typeof j!="object"?!1:!!(j.constructor&&j.constructor.isBuffer&&j.constructor.isBuffer(j))},A=function(j,C){return[].concat(j,C)},M=function(j,C){if(d(j)){for(var S=[],O=0;O<j.length;O+=1)S.push(C(j[O]));return S}return C(j)};return os={arrayToObject:o,assign:u,combine:A,compact:b,decode:i,encode:p,isBuffer:w,isRegExp:_,maybeMap:M,merge:l},os}function Hw(){if(kh)return ss;kh=!0;var f=qw(),y=Av(),d=Jh(),c=Object.prototype.hasOwnProperty,m={brackets:function(M){return M+"[]"},comma:"comma",indices:function(M,j){return M+"["+j+"]"},repeat:function(M){return M}},o=Array.isArray,l=Array.prototype.push,u=function(M,j){l.apply(M,o(j)?j:[j])},i=Date.prototype.toISOString,a=d.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:y.encode,encodeValuesOnly:!1,format:a,formatter:d.formatters[a],indices:!1,serializeDate:function(M){return i.call(M)},skipNulls:!1,strictNullHandling:!1},b=function(M){return typeof M=="string"||typeof M=="number"||typeof M=="boolean"||typeof M=="symbol"||typeof M=="bigint"},_={},w=function M(j,C,S,O,N,T,H,D,k,z,R,Y,B,te,ae,ee,W,V){for(var Z=j,be=V,re=0,I=!1;(be=be.get(_))!==void 0&&!I;){var U=be.get(j);if(re+=1,typeof U<"u"){if(U===re)throw new RangeError("Cyclic object value");I=!0}typeof be.get(_)>"u"&&(re=0)}if(typeof z=="function"?Z=z(C,Z):Z instanceof Date?Z=B(Z):S==="comma"&&o(Z)&&(Z=y.maybeMap(Z,function(X){return X instanceof Date?B(X):X})),Z===null){if(T)return k&&!ee?k(C,p.encoder,W,"key",te):C;Z=""}if(b(Z)||y.isBuffer(Z)){if(k){var G=ee?C:k(C,p.encoder,W,"key",te);return[ae(G)+"="+ae(k(Z,p.encoder,W,"value",te))]}return[ae(C)+"="+ae(String(Z))]}var ye=[];if(typeof Z>"u")return ye;var Q;if(S==="comma"&&o(Z))ee&&k&&(Z=y.maybeMap(Z,k)),Q=[{value:Z.length>0?Z.join(",")||null:void 0}];else if(o(z))Q=z;else{var je=Object.keys(Z);Q=R?je.sort(R):je}var ie=D?C.replace(/\./g,"%2E"):C,K=O&&o(Z)&&Z.length===1?ie+"[]":ie;if(N&&o(Z)&&Z.length===0)return K+"[]";for(var ge=0;ge<Q.length;++ge){var ue=Q[ge],de=typeof ue=="object"&&typeof ue.value<"u"?ue.value:Z[ue];if(!(H&&de===null)){var me=Y&&D?ue.replace(/\./g,"%2E"):ue,Be=o(Z)?typeof S=="function"?S(K,me):K:K+(Y?"."+me:"["+me+"]");V.set(j,re);var Ae=f();Ae.set(_,V),u(ye,M(de,Be,S,O,N,T,H,D,S==="comma"&&ee&&o(Z)?null:k,z,R,Y,B,te,ae,ee,W,Ae))}}return ye},A=function(M){if(!M)return p;if(typeof M.allowEmptyArrays<"u"&&typeof M.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof M.encodeDotInKeys<"u"&&typeof M.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(M.encoder!==null&&typeof M.encoder<"u"&&typeof M.encoder!="function")throw new TypeError("Encoder has to be a function.");var j=M.charset||p.charset;if(typeof M.charset<"u"&&M.charset!=="utf-8"&&M.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var C=d.default;if(typeof M.format<"u"){if(!c.call(d.formatters,M.format))throw new TypeError("Unknown format option provided.");C=M.format}var S=d.formatters[C],O=p.filter;(typeof M.filter=="function"||o(M.filter))&&(O=M.filter);var N;if(M.arrayFormat in m?N=M.arrayFormat:"indices"in M?N=M.indices?"indices":"repeat":N=p.arrayFormat,"commaRoundTrip"in M&&typeof M.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var T=typeof M.allowDots>"u"?M.encodeDotInKeys===!0?!0:p.allowDots:!!M.allowDots;return{addQueryPrefix:typeof M.addQueryPrefix=="boolean"?M.addQueryPrefix:p.addQueryPrefix,allowDots:T,allowEmptyArrays:typeof M.allowEmptyArrays=="boolean"?!!M.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:N,charset:j,charsetSentinel:typeof M.charsetSentinel=="boolean"?M.charsetSentinel:p.charsetSentinel,commaRoundTrip:M.commaRoundTrip,delimiter:typeof M.delimiter>"u"?p.delimiter:M.delimiter,encode:typeof M.encode=="boolean"?M.encode:p.encode,encodeDotInKeys:typeof M.encodeDotInKeys=="boolean"?M.encodeDotInKeys:p.encodeDotInKeys,encoder:typeof M.encoder=="function"?M.encoder:p.encoder,encodeValuesOnly:typeof M.encodeValuesOnly=="boolean"?M.encodeValuesOnly:p.encodeValuesOnly,filter:O,format:C,formatter:S,serializeDate:typeof M.serializeDate=="function"?M.serializeDate:p.serializeDate,skipNulls:typeof M.skipNulls=="boolean"?M.skipNulls:p.skipNulls,sort:typeof M.sort=="function"?M.sort:null,strictNullHandling:typeof M.strictNullHandling=="boolean"?M.strictNullHandling:p.strictNullHandling}};return ss=function(M,j){var C=M,S=A(j),O,N;typeof S.filter=="function"?(N=S.filter,C=N("",C)):o(S.filter)&&(N=S.filter,O=N);var T=[];if(typeof C!="object"||C===null)return"";var H=m[S.arrayFormat],D=H==="comma"&&S.commaRoundTrip;O||(O=Object.keys(C)),S.sort&&O.sort(S.sort);for(var k=f(),z=0;z<O.length;++z){var R=O[z];S.skipNulls&&C[R]===null||u(T,w(C[R],R,H,D,S.allowEmptyArrays,S.strictNullHandling,S.skipNulls,S.encodeDotInKeys,S.encode?S.encoder:null,S.filter,S.sort,S.allowDots,S.serializeDate,S.format,S.formatter,S.encodeValuesOnly,S.charset,k))}var Y=T.join(S.delimiter),B=S.addQueryPrefix===!0?"?":"";return S.charsetSentinel&&(S.charset==="iso-8859-1"?B+="utf8=%26%2310003%3B&":B+="utf8=%E2%9C%93&"),Y.length>0?B+Y:""},ss}function Pw(){if(Ih)return us;Ih=!0;var f=Av(),y=Object.prototype.hasOwnProperty,d=Array.isArray,c={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:f.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},m=function(_){return _.replace(/&#(\d+);/g,function(w,A){return String.fromCharCode(parseInt(A,10))})},o=function(_,w){return _&&typeof _=="string"&&w.comma&&_.indexOf(",")>-1?_.split(","):_},l="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",i=function(_,w){var A={__proto__:null},M=w.ignoreQueryPrefix?_.replace(/^\?/,""):_;M=M.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var j=w.parameterLimit===1/0?void 0:w.parameterLimit,C=M.split(w.delimiter,j),S=-1,O,N=w.charset;if(w.charsetSentinel)for(O=0;O<C.length;++O)C[O].indexOf("utf8=")===0&&(C[O]===u?N="utf-8":C[O]===l&&(N="iso-8859-1"),S=O,O=C.length);for(O=0;O<C.length;++O)if(O!==S){var T=C[O],H=T.indexOf("]="),D=H===-1?T.indexOf("="):H+1,k,z;D===-1?(k=w.decoder(T,c.decoder,N,"key"),z=w.strictNullHandling?null:""):(k=w.decoder(T.slice(0,D),c.decoder,N,"key"),z=f.maybeMap(o(T.slice(D+1),w),function(Y){return w.decoder(Y,c.decoder,N,"value")})),z&&w.interpretNumericEntities&&N==="iso-8859-1"&&(z=m(z)),T.indexOf("[]=")>-1&&(z=d(z)?[z]:z);var R=y.call(A,k);R&&w.duplicates==="combine"?A[k]=f.combine(A[k],z):(!R||w.duplicates==="last")&&(A[k]=z)}return A},a=function(_,w,A,M){for(var j=M?w:o(w,A),C=_.length-1;C>=0;--C){var S,O=_[C];if(O==="[]"&&A.parseArrays)S=A.allowEmptyArrays&&(j===""||A.strictNullHandling&&j===null)?[]:[].concat(j);else{S=A.plainObjects?Object.create(null):{};var N=O.charAt(0)==="["&&O.charAt(O.length-1)==="]"?O.slice(1,-1):O,T=A.decodeDotInKeys?N.replace(/%2E/g,"."):N,H=parseInt(T,10);!A.parseArrays&&T===""?S={0:j}:!isNaN(H)&&O!==T&&String(H)===T&&H>=0&&A.parseArrays&&H<=A.arrayLimit?(S=[],S[H]=j):T!=="__proto__"&&(S[T]=j)}j=S}return j},p=function(_,w,A,M){if(_){var j=A.allowDots?_.replace(/\.([^.[]+)/g,"[$1]"):_,C=/(\[[^[\]]*])/,S=/(\[[^[\]]*])/g,O=A.depth>0&&C.exec(j),N=O?j.slice(0,O.index):j,T=[];if(N){if(!A.plainObjects&&y.call(Object.prototype,N)&&!A.allowPrototypes)return;T.push(N)}for(var H=0;A.depth>0&&(O=S.exec(j))!==null&&H<A.depth;){if(H+=1,!A.plainObjects&&y.call(Object.prototype,O[1].slice(1,-1))&&!A.allowPrototypes)return;T.push(O[1])}if(O){if(A.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+A.depth+" and strictDepth is true");T.push("["+j.slice(O.index)+"]")}return a(T,w,A,M)}},b=function(_){if(!_)return c;if(typeof _.allowEmptyArrays<"u"&&typeof _.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof _.decodeDotInKeys<"u"&&typeof _.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(_.decoder!==null&&typeof _.decoder<"u"&&typeof _.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof _.charset<"u"&&_.charset!=="utf-8"&&_.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var w=typeof _.charset>"u"?c.charset:_.charset,A=typeof _.duplicates>"u"?c.duplicates:_.duplicates;if(A!=="combine"&&A!=="first"&&A!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var M=typeof _.allowDots>"u"?_.decodeDotInKeys===!0?!0:c.allowDots:!!_.allowDots;return{allowDots:M,allowEmptyArrays:typeof _.allowEmptyArrays=="boolean"?!!_.allowEmptyArrays:c.allowEmptyArrays,allowPrototypes:typeof _.allowPrototypes=="boolean"?_.allowPrototypes:c.allowPrototypes,allowSparse:typeof _.allowSparse=="boolean"?_.allowSparse:c.allowSparse,arrayLimit:typeof _.arrayLimit=="number"?_.arrayLimit:c.arrayLimit,charset:w,charsetSentinel:typeof _.charsetSentinel=="boolean"?_.charsetSentinel:c.charsetSentinel,comma:typeof _.comma=="boolean"?_.comma:c.comma,decodeDotInKeys:typeof _.decodeDotInKeys=="boolean"?_.decodeDotInKeys:c.decodeDotInKeys,decoder:typeof _.decoder=="function"?_.decoder:c.decoder,delimiter:typeof _.delimiter=="string"||f.isRegExp(_.delimiter)?_.delimiter:c.delimiter,depth:typeof _.depth=="number"||_.depth===!1?+_.depth:c.depth,duplicates:A,ignoreQueryPrefix:_.ignoreQueryPrefix===!0,interpretNumericEntities:typeof _.interpretNumericEntities=="boolean"?_.interpretNumericEntities:c.interpretNumericEntities,parameterLimit:typeof _.parameterLimit=="number"?_.parameterLimit:c.parameterLimit,parseArrays:_.parseArrays!==!1,plainObjects:typeof _.plainObjects=="boolean"?_.plainObjects:c.plainObjects,strictDepth:typeof _.strictDepth=="boolean"?!!_.strictDepth:c.strictDepth,strictNullHandling:typeof _.strictNullHandling=="boolean"?_.strictNullHandling:c.strictNullHandling}};return us=function(_,w){var A=b(w);if(_===""||_===null||typeof _>"u")return A.plainObjects?Object.create(null):{};for(var M=typeof _=="string"?i(_,A):_,j=A.plainObjects?Object.create(null):{},C=Object.keys(M),S=0;S<C.length;++S){var O=C[S],N=p(O,M[O],A,typeof _=="string");j=f.merge(j,N,A)}return A.allowSparse===!0?j:f.compact(j)},us}function Gw(){if(zh)return cs;zh=!0;var f=Hw(),y=Pw(),d=Jh();return cs={formats:d,parse:y,stringify:f},cs}function Yw(){if(Lh)return ai;Lh=!0;var f=ii;function y(){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}var d=/^([a-z0-9.+-]+:)/i,c=/:[0-9]*$/,m=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,o=["<",">",'"',"`"," ","\r",`
`,"	"],l=["{","}","|","\\","^","`"].concat(o),u=["'"].concat(l),i=["%","/","?",";","#"].concat(u),a=["/","?","#"],p=255,b=/^[+a-z0-9A-Z_-]{0,63}$/,_=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,w={javascript:!0,"javascript:":!0},A={javascript:!0,"javascript:":!0},M={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},j=Gw();function C(T,H,D){if(T&&typeof T=="object"&&T instanceof y)return T;var k=new y;return k.parse(T,H,D),k}y.prototype.parse=function(T,H,D){if(typeof T!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof T);var k=T.indexOf("?"),z=k!==-1&&k<T.indexOf("#")?"?":"#",R=T.split(z),Y=/\\/g;R[0]=R[0].replace(Y,"/"),T=R.join(z);var B=T;if(B=B.trim(),!D&&T.split("#").length===1){var te=m.exec(B);if(te)return this.path=B,this.href=B,this.pathname=te[1],te[2]?(this.search=te[2],H?this.query=j.parse(this.search.substr(1)):this.query=this.search.substr(1)):H&&(this.search="",this.query={}),this}var ae=d.exec(B);if(ae){ae=ae[0];var ee=ae.toLowerCase();this.protocol=ee,B=B.substr(ae.length)}if(D||ae||B.match(/^\/\/[^@/]+@[^@/]+/)){var W=B.substr(0,2)==="//";W&&!(ae&&A[ae])&&(B=B.substr(2),this.slashes=!0)}if(!A[ae]&&(W||ae&&!M[ae])){for(var V=-1,Z=0;Z<a.length;Z++){var be=B.indexOf(a[Z]);be!==-1&&(V===-1||be<V)&&(V=be)}var re,I;V===-1?I=B.lastIndexOf("@"):I=B.lastIndexOf("@",V),I!==-1&&(re=B.slice(0,I),B=B.slice(I+1),this.auth=decodeURIComponent(re)),V=-1;for(var Z=0;Z<i.length;Z++){var be=B.indexOf(i[Z]);be!==-1&&(V===-1||be<V)&&(V=be)}V===-1&&(V=B.length),this.host=B.slice(0,V),B=B.slice(V),this.parseHost(),this.hostname=this.hostname||"";var U=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!U)for(var G=this.hostname.split(/\./),Z=0,ye=G.length;Z<ye;Z++){var Q=G[Z];if(Q&&!Q.match(b)){for(var je="",ie=0,K=Q.length;ie<K;ie++)Q.charCodeAt(ie)>127?je+="x":je+=Q[ie];if(!je.match(b)){var ge=G.slice(0,Z),ue=G.slice(Z+1),de=Q.match(_);de&&(ge.push(de[1]),ue.unshift(de[2])),ue.length&&(B="/"+ue.join(".")+B),this.hostname=ge.join(".");break}}}this.hostname.length>p?this.hostname="":this.hostname=this.hostname.toLowerCase(),U||(this.hostname=f.toASCII(this.hostname));var me=this.port?":"+this.port:"",Be=this.hostname||"";this.host=Be+me,this.href+=this.host,U&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),B[0]!=="/"&&(B="/"+B))}if(!w[ee])for(var Z=0,ye=u.length;Z<ye;Z++){var Ae=u[Z];if(B.indexOf(Ae)!==-1){var X=encodeURIComponent(Ae);X===Ae&&(X=escape(Ae)),B=B.split(Ae).join(X)}}var ce=B.indexOf("#");ce!==-1&&(this.hash=B.substr(ce),B=B.slice(0,ce));var Se=B.indexOf("?");if(Se!==-1?(this.search=B.substr(Se),this.query=B.substr(Se+1),H&&(this.query=j.parse(this.query)),B=B.slice(0,Se)):H&&(this.search="",this.query={}),B&&(this.pathname=B),M[ee]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var me=this.pathname||"",Ue=this.search||"";this.path=me+Ue}return this.href=this.format(),this};function S(T){return typeof T=="string"&&(T=C(T)),T instanceof y?T.format():y.prototype.format.call(T)}y.prototype.format=function(){var T=this.auth||"";T&&(T=encodeURIComponent(T),T=T.replace(/%3A/i,":"),T+="@");var H=this.protocol||"",D=this.pathname||"",k=this.hash||"",z=!1,R="";this.host?z=T+this.host:this.hostname&&(z=T+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(z+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(R=j.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var Y=this.search||R&&"?"+R||"";return H&&H.substr(-1)!==":"&&(H+=":"),this.slashes||(!H||M[H])&&z!==!1?(z="//"+(z||""),D&&D.charAt(0)!=="/"&&(D="/"+D)):z||(z=""),k&&k.charAt(0)!=="#"&&(k="#"+k),Y&&Y.charAt(0)!=="?"&&(Y="?"+Y),D=D.replace(/[?#]/g,function(B){return encodeURIComponent(B)}),Y=Y.replace("#","%23"),H+z+D+Y+k};function O(T,H){return C(T,!1,!0).resolve(H)}y.prototype.resolve=function(T){return this.resolveObject(C(T,!1,!0)).format()};function N(T,H){return T?C(T,!1,!0).resolveObject(H):H}return y.prototype.resolveObject=function(T){if(typeof T=="string"){var H=new y;H.parse(T,!1,!0),T=H}for(var D=new y,k=Object.keys(this),z=0;z<k.length;z++){var R=k[z];D[R]=this[R]}if(D.hash=T.hash,T.href==="")return D.href=D.format(),D;if(T.slashes&&!T.protocol){for(var Y=Object.keys(T),B=0;B<Y.length;B++){var te=Y[B];te!=="protocol"&&(D[te]=T[te])}return M[D.protocol]&&D.hostname&&!D.pathname&&(D.pathname="/",D.path=D.pathname),D.href=D.format(),D}if(T.protocol&&T.protocol!==D.protocol){if(!M[T.protocol]){for(var ae=Object.keys(T),ee=0;ee<ae.length;ee++){var W=ae[ee];D[W]=T[W]}return D.href=D.format(),D}if(D.protocol=T.protocol,!T.host&&!A[T.protocol]){for(var ye=(T.pathname||"").split("/");ye.length&&!(T.host=ye.shift()););T.host||(T.host=""),T.hostname||(T.hostname=""),ye[0]!==""&&ye.unshift(""),ye.length<2&&ye.unshift(""),D.pathname=ye.join("/")}else D.pathname=T.pathname;if(D.search=T.search,D.query=T.query,D.host=T.host||"",D.auth=T.auth,D.hostname=T.hostname||T.host,D.port=T.port,D.pathname||D.search){var V=D.pathname||"",Z=D.search||"";D.path=V+Z}return D.slashes=D.slashes||T.slashes,D.href=D.format(),D}var be=D.pathname&&D.pathname.charAt(0)==="/",re=T.host||T.pathname&&T.pathname.charAt(0)==="/",I=re||be||D.host&&T.pathname,U=I,G=D.pathname&&D.pathname.split("/")||[],ye=T.pathname&&T.pathname.split("/")||[],Q=D.protocol&&!M[D.protocol];if(Q&&(D.hostname="",D.port=null,D.host&&(G[0]===""?G[0]=D.host:G.unshift(D.host)),D.host="",T.protocol&&(T.hostname=null,T.port=null,T.host&&(ye[0]===""?ye[0]=T.host:ye.unshift(T.host)),T.host=null),I=I&&(ye[0]===""||G[0]==="")),re)D.host=T.host||T.host===""?T.host:D.host,D.hostname=T.hostname||T.hostname===""?T.hostname:D.hostname,D.search=T.search,D.query=T.query,G=ye;else if(ye.length)G||(G=[]),G.pop(),G=G.concat(ye),D.search=T.search,D.query=T.query;else if(T.search!=null){if(Q){D.host=G.shift(),D.hostname=D.host;var je=D.host&&D.host.indexOf("@")>0?D.host.split("@"):!1;je&&(D.auth=je.shift(),D.hostname=je.shift(),D.host=D.hostname)}return D.search=T.search,D.query=T.query,(D.pathname!==null||D.search!==null)&&(D.path=(D.pathname?D.pathname:"")+(D.search?D.search:"")),D.href=D.format(),D}if(!G.length)return D.pathname=null,D.search?D.path="/"+D.search:D.path=null,D.href=D.format(),D;for(var ie=G.slice(-1)[0],K=(D.host||T.host||G.length>1)&&(ie==="."||ie==="..")||ie==="",ge=0,ue=G.length;ue>=0;ue--)ie=G[ue],ie==="."?G.splice(ue,1):ie===".."?(G.splice(ue,1),ge++):ge&&(G.splice(ue,1),ge--);if(!I&&!U)for(;ge--;ge)G.unshift("..");I&&G[0]!==""&&(!G[0]||G[0].charAt(0)!=="/")&&G.unshift(""),K&&G.join("/").substr(-1)!=="/"&&G.push("");var de=G[0]===""||G[0]&&G[0].charAt(0)==="/";if(Q){D.hostname=de?"":G.length?G.shift():"",D.host=D.hostname;var je=D.host&&D.host.indexOf("@")>0?D.host.split("@"):!1;je&&(D.auth=je.shift(),D.hostname=je.shift(),D.host=D.hostname)}return I=I||D.host&&G.length,I&&!de&&G.unshift(""),G.length>0?D.pathname=G.join("/"):(D.pathname=null,D.path=null),(D.pathname!==null||D.search!==null)&&(D.path=(D.pathname?D.pathname:"")+(D.search?D.search:"")),D.auth=T.auth||D.auth,D.slashes=D.slashes||T.slashes,D.href=D.format(),D},y.prototype.parseHost=function(){var T=this.host,H=c.exec(T);H&&(H=H[0],H!==":"&&(this.port=H.substr(1)),T=T.substr(0,T.length-H.length)),T&&(this.hostname=T)},ai.parse=C,ai.resolve=O,ai.resolveObject=N,ai.format=S,ai.Url=y,ai}function Tv(f){if(typeof f=="string")f=new URL(f);else if(!(f instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(f.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return hs?Qw(f):Vw(f)}function Qw(f){let y=f.hostname,d=f.pathname;for(let c=0;c<d.length;c++)if(d[c]==="%"){let m=d.codePointAt(c+2)||32;if(d[c+1]==="2"&&m===102||d[c+1]==="5"&&m===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(d=d.replace(zv,"\\"),d=decodeURIComponent(d),y!=="")return`\\\\${y}${d}`;{let c=d.codePointAt(1)|32,m=d[2];if(c<kv||c>Iv||m!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return d.slice(1)}}function Vw(f){if(f.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let y=f.pathname;for(let d=0;d<y.length;d++)if(y[d]==="%"){let c=y.codePointAt(d+2)||32;if(y[d+1]==="2"&&c===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(y)}function xv(f){let y=Ch.resolve(f),d=f.charCodeAt(f.length-1);(d===Dv||hs&&d===Bv)&&y[y.length-1]!==Ch.sep&&(y+="/");let c=new URL("file://");return y.includes("%")&&(y=y.replace(Lv,"%25")),!hs&&y.includes("\\")&&(y=y.replace(qv,"%5C")),y.includes(`
`)&&(y=y.replace(Hv,"%0A")),y.includes("\r")&&(y=y.replace(Pv,"%0D")),y.includes("	")&&(y=y.replace(Gv,"%09")),c.pathname=y,c}var Ov,ns,Rh,is,as,Uh,ls,Bh,os,Dh,ss,kh,us,Ih,cs,zh,ai,Lh,ur,lb,jv,Mv,Nv,Cv,Rv,Uv,Bv,Dv,kv,Iv,hs,zv,Lv,qv,Hv,Pv,Gv,Kw=Tr(()=>{Ne(),Re(),Ce(),cw(),xw(),zw(),wv(),Ov=Object.freeze(Object.create(null)),ns={},Rh=!1,is=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,as={},Uh=!1,ls={},Bh=!1,os={},Dh=!1,ss={},kh=!1,us={},Ih=!1,cs={},zh=!1,ai={},Lh=!1,ur=Yw(),ur.parse,ur.resolve,ur.resolveObject,ur.format,ur.Url,lb=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,ur.URL=typeof URL<"u"?URL:null,ur.pathToFileURL=xv,ur.fileURLToPath=Tv,jv=ur.Url,Mv=ur.format,Nv=ur.resolve,Cv=ur.resolveObject,Rv=ur.parse,Uv=ur.URL,Bv=92,Dv=47,kv=97,Iv=122,hs=lb==="win32",zv=/\//g,Lv=/%/g,qv=/\\/g,Hv=/\n/g,Pv=/\r/g,Gv=/\t/g}),Fw=Ie((f,y)=>{Ne(),Re(),Ce(),y.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}}),ed=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"__esModule",{value:!0}),f.BufferedDuplex=void 0,f.writev=c;var y=Ci(),d=(tr(),Ot(er));function c(o,l){let u=new Array(o.length);for(let i=0;i<o.length;i++)typeof o[i].chunk=="string"?u[i]=d.Buffer.from(o[i].chunk,"utf8"):u[i]=o[i].chunk;this._write(d.Buffer.concat(u),"binary",l)}var m=class extends y.Duplex{constructor(l,u,i){super({objectMode:!0});Qe(this,"socket");Qe(this,"proxy");Qe(this,"isSocketOpen");Qe(this,"writeQueue");this.proxy=u,this.socket=i,this.writeQueue=[],l.objectMode||(this._writev=c.bind(this)),this.isSocketOpen=!1,this.proxy.on("data",a=>{!this.destroyed&&this.readable&&this.push(a)})}_read(l){this.proxy.read(l)}_write(l,u,i){this.isSocketOpen?this.writeToProxy(l,u,i):this.writeQueue.push({chunk:l,encoding:u,cb:i})}_final(l){this.writeQueue=[],this.proxy.end(l)}_destroy(l,u){this.writeQueue=[],this.proxy.destroy(),u(l)}socketReady(){this.emit("connect"),this.isSocketOpen=!0,this.processWriteQueue()}writeToProxy(l,u,i){this.proxy.write(l,u)===!1?this.proxy.once("drain",i):i()}processWriteQueue(){for(;this.writeQueue.length>0;){let{chunk:l,encoding:u,cb:i}=this.writeQueue.shift();this.writeToProxy(l,u,i)}}};f.BufferedDuplex=m}),Io=Ie(f=>{Ne(),Re(),Ce();var y=f&&f.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(f,"__esModule",{value:!0}),f.streamBuilder=f.browserStreamBuilder=void 0;var d=(tr(),Ot(er)),c=y(Fw()),m=y(Tn()),o=Ci(),l=y(vs()),u=ed(),i=(0,m.default)("mqttjs:ws"),a=["rejectUnauthorized","ca","cert","key","pfx","passphrase"];function p(C,S){let O=`${C.protocol}://${C.hostname}:${C.port}${C.path}`;return typeof C.transformWsUrl=="function"&&(O=C.transformWsUrl(O,C,S)),O}function b(C){let S=C;return C.port||(C.protocol==="wss"?S.port=443:S.port=80),C.path||(S.path="/"),C.wsOptions||(S.wsOptions={}),!l.default&&!C.forceNativeWebSocket&&C.protocol==="wss"&&a.forEach(O=>{Object.prototype.hasOwnProperty.call(C,O)&&!Object.prototype.hasOwnProperty.call(C.wsOptions,O)&&(S.wsOptions[O]=C[O])}),S}function _(C){let S=b(C);if(S.hostname||(S.hostname=S.host),!S.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");let O=new URL(document.URL);S.hostname=O.hostname,S.port||(S.port=Number(O.port))}return S.objectMode===void 0&&(S.objectMode=!(S.binary===!0||S.binary===void 0)),S}function w(C,S,O){i("createWebSocket"),i(`protocol: ${O.protocolId} ${O.protocolVersion}`);let N=O.protocolId==="MQIsdp"&&O.protocolVersion===3?"mqttv3.1":"mqtt";i(`creating new Websocket for url: ${S} and protocol: ${N}`);let T;return O.createWebsocket?T=O.createWebsocket(S,[N],O):T=new c.default(S,[N],O.wsOptions),T}function A(C,S){let O=S.protocolId==="MQIsdp"&&S.protocolVersion===3?"mqttv3.1":"mqtt",N=p(S,C),T;return S.createWebsocket?T=S.createWebsocket(N,[O],S):T=new WebSocket(N,[O]),T.binaryType="arraybuffer",T}var M=(C,S)=>{i("streamBuilder");let O=b(S);O.hostname=O.hostname||O.host||"localhost";let N=p(O,C),T=w(C,N,O),H=c.default.createWebSocketStream(T,O.wsOptions);return H.url=N,T.on("close",()=>{H.destroy()}),H};f.streamBuilder=M;var j=(C,S)=>{i("browserStreamBuilder");let O,N=_(S).browserBufferSize||1024*512,T=S.browserBufferTimeout||1e3,H=!S.objectMode,D=A(C,S),k=R(S,ee,W);S.objectMode||(k._writev=u.writev.bind(k)),k.on("close",()=>{D.close()});let z=typeof D.addEventListener<"u";D.readyState===D.OPEN?(O=k,O.socket=D):(O=new u.BufferedDuplex(S,k,D),z?D.addEventListener("open",Y):D.onopen=Y),z?(D.addEventListener("close",B),D.addEventListener("error",te),D.addEventListener("message",ae)):(D.onclose=B,D.onerror=te,D.onmessage=ae);function R(V,Z,be){let re=new o.Transform({objectMode:V.objectMode});return re._write=Z,re._flush=be,re}function Y(){i("WebSocket onOpen"),O instanceof u.BufferedDuplex&&O.socketReady()}function B(V){i("WebSocket onClose",V),O.end(),O.destroy()}function te(V){i("WebSocket onError",V);let Z=new Error("WebSocket error");Z.event=V,O.destroy(Z)}async function ae(V){if(!k||!k.readable||!k.writable)return;let{data:Z}=V;Z instanceof ArrayBuffer?Z=d.Buffer.from(Z):Z instanceof Blob?Z=d.Buffer.from(await new Response(Z).arrayBuffer()):Z=d.Buffer.from(Z,"utf8"),k.push(Z)}function ee(V,Z,be){if(D.bufferedAmount>N){setTimeout(ee,T,V,Z,be);return}H&&typeof V=="string"&&(V=d.Buffer.from(V,"utf8"));try{D.send(V)}catch(re){return be(re)}be()}function W(V){D.close(),V()}return O};f.browserStreamBuilder=j}),td={};va(td,{Server:()=>kt,Socket:()=>kt,Stream:()=>kt,_createServerHandle:()=>kt,_normalizeArgs:()=>kt,_setSimultaneousAccepts:()=>kt,connect:()=>kt,createConnection:()=>kt,createServer:()=>kt,default:()=>Yv,isIP:()=>kt,isIPv4:()=>kt,isIPv6:()=>kt});function kt(){throw new Error("Node.js net module is not supported by JSPM core outside of Node.js")}var Yv,Qv=Tr(()=>{Ne(),Re(),Ce(),Yv={_createServerHandle:kt,_normalizeArgs:kt,_setSimultaneousAccepts:kt,connect:kt,createConnection:kt,createServer:kt,isIP:kt,isIPv4:kt,isIPv6:kt,Server:kt,Socket:kt,Stream:kt}}),Vv=Ie((f,y)=>{Ne(),Re(),Ce(),y.exports={}}),ob=Ie(f=>{Ne(),Re(),Ce();var y=f&&f.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(f,"__esModule",{value:!0});var d=y((Qv(),Ot(td))),c=y(Tn()),m=y(Vv()),o=(0,c.default)("mqttjs:tcp"),l=(u,i)=>{if(i.port=i.port||1883,i.hostname=i.hostname||i.host||"localhost",i.socksProxy)return(0,m.default)(i.hostname,i.port,i.socksProxy,{timeout:i.socksTimeout});let{port:a,path:p}=i,b=i.hostname;return o("port %d and host %s",a,b),d.default.createConnection({port:a,host:b,path:p})};f.default=l}),Kv={};va(Kv,{default:()=>Fv});var Fv,Ww=Tr(()=>{Ne(),Re(),Ce(),Fv={}}),sb=Ie(f=>{Ne(),Re(),Ce();var y=f&&f.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(f,"__esModule",{value:!0});var d=(Ww(),Ot(Kv)),c=y((Qv(),Ot(td))),m=y(Tn()),o=y(Vv()),l=(0,m.default)("mqttjs:tls");function u(a){let{host:p,port:b,socksProxy:_,...w}=a;if(_!==void 0){let A=(0,o.default)(p,b,_,{timeout:a.socksTimeout});return(0,d.connect)({...w,socket:A})}return(0,d.connect)(a)}var i=(a,p)=>{p.port=p.port||8883,p.host=p.hostname||p.host||"localhost",c.default.isIP(p.host)===0&&(p.servername=p.host),p.rejectUnauthorized=p.rejectUnauthorized!==!1,delete p.path,l("port %d host %s rejectUnauthorized %b",p.port,p.host,p.rejectUnauthorized);let b=u(p);b.on("secureConnect",()=>{p.rejectUnauthorized&&!b.authorized?b.emit("error",new Error("TLS not authorized")):b.removeListener("error",_)});function _(w){p.rejectUnauthorized&&a.emit("error",w),b.end()}return b.on("error",_),b};f.default=i}),ub=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"__esModule",{value:!0});var y=(tr(),Ot(er)),d=Ci(),c=ed(),m,o,l;function u(){let _=new d.Transform;return _._write=(w,A,M)=>{m.send({data:w.buffer,success(){M()},fail(j){M(new Error(j))}})},_._flush=w=>{m.close({success(){w()}})},_}function i(_){_.hostname||(_.hostname="localhost"),_.path||(_.path="/"),_.wsOptions||(_.wsOptions={})}function a(_,w){let A=_.protocol==="wxs"?"wss":"ws",M=`${A}://${_.hostname}${_.path}`;return _.port&&_.port!==80&&_.port!==443&&(M=`${A}://${_.hostname}:${_.port}${_.path}`),typeof _.transformWsUrl=="function"&&(M=_.transformWsUrl(M,_,w)),M}function p(){m.onOpen(()=>{l.socketReady()}),m.onMessage(_=>{let{data:w}=_;w instanceof ArrayBuffer?w=y.Buffer.from(w):w=y.Buffer.from(w,"utf8"),o.push(w)}),m.onClose(()=>{l.emit("close"),l.end(),l.destroy()}),m.onError(_=>{let w=new Error(_.errMsg);l.destroy(w)})}var b=(_,w)=>{if(w.hostname=w.hostname||w.host,!w.hostname)throw new Error("Could not determine host. Specify host manually.");let A=w.protocolId==="MQIsdp"&&w.protocolVersion===3?"mqttv3.1":"mqtt";i(w);let M=a(w,_);m=wx.connectSocket({url:M,protocols:[A]}),o=u(),l=new c.BufferedDuplex(w,o,m),l._destroy=(C,S)=>{m.close({success(){S&&S(C)}})};let j=l.destroy;return l.destroy=(C,S)=>(l.destroy=j,setTimeout(()=>{m.close({fail(){l._destroy(C,S)}})},0),l),p(),l};f.default=b}),cb=Ie(f=>{Ne(),Re(),Ce(),Object.defineProperty(f,"__esModule",{value:!0});var y=(tr(),Ot(er)),d=Ci(),c=ed(),m,o,l,u=!1;function i(){let w=new d.Transform;return w._write=(A,M,j)=>{m.sendSocketMessage({data:A.buffer,success(){j()},fail(){j(new Error)}})},w._flush=A=>{m.closeSocket({success(){A()}})},w}function a(w){w.hostname||(w.hostname="localhost"),w.path||(w.path="/"),w.wsOptions||(w.wsOptions={})}function p(w,A){let M=w.protocol==="alis"?"wss":"ws",j=`${M}://${w.hostname}${w.path}`;return w.port&&w.port!==80&&w.port!==443&&(j=`${M}://${w.hostname}:${w.port}${w.path}`),typeof w.transformWsUrl=="function"&&(j=w.transformWsUrl(j,w,A)),j}function b(){u||(u=!0,m.onSocketOpen(()=>{l.socketReady()}),m.onSocketMessage(w=>{if(typeof w.data=="string"){let A=y.Buffer.from(w.data,"base64");o.push(A)}else{let A=new FileReader;A.addEventListener("load",()=>{if(A.result instanceof ArrayBuffer){o.push(y.Buffer.from(A.result));return}o.push(y.Buffer.from(A.result,"utf-8"))}),A.readAsArrayBuffer(w.data)}}),m.onSocketClose(()=>{l.end(),l.destroy()}),m.onSocketError(w=>{l.destroy(w)}))}var _=(w,A)=>{if(A.hostname=A.hostname||A.host,!A.hostname)throw new Error("Could not determine host. Specify host manually.");let M=A.protocolId==="MQIsdp"&&A.protocolVersion===3?"mqttv3.1":"mqtt";a(A);let j=p(A,w);return m=A.my,m.connectSocket({url:j,protocols:M}),o=i(),l=new c.BufferedDuplex(A,o,m),b(),l};f.default=_}),Xw=Ie(f=>{Ne(),Re(),Ce();var y=f&&f.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(f,"__esModule",{value:!0}),f.connectAsync=p;var d=y(Tn()),c=y((Kw(),Ot(Ev))),m=y(Jf()),o=y(vs());typeof(_t==null?void 0:_t.nextTick)!="function"&&(_t.nextTick=setImmediate);var l=(0,d.default)("mqttjs"),u=null;function i(b){let _;if(b.auth)if(_=b.auth.match(/^(.+):(.+)$/),_){let[,w,A]=_;b.username=w,b.password=A}else b.username=b.auth}function a(b,_){var M,j,C;if(l("connecting to an MQTT broker..."),typeof b=="object"&&!_&&(_=b,b=""),_=_||{},b&&typeof b=="string"){let S=c.default.parse(b,!0),O={};if(S.port!=null&&(O.port=Number(S.port)),O.host=S.hostname,O.query=S.query,O.auth=S.auth,O.protocol=S.protocol,O.path=S.path,_={...O,..._},!_.protocol)throw new Error("Missing protocol");_.protocol=_.protocol.replace(/:$/,"")}if(_.unixSocket=_.unixSocket||((M=_.protocol)==null?void 0:M.includes("+unix")),_.unixSocket?_.protocol=_.protocol.replace("+unix",""):!((j=_.protocol)!=null&&j.startsWith("ws"))&&!((C=_.protocol)!=null&&C.startsWith("wx"))&&delete _.path,i(_),_.query&&typeof _.query.clientId=="string"&&(_.clientId=_.query.clientId),o.default||_.unixSocket?_.socksProxy=void 0:_.socksProxy===void 0&&typeof _t<"u"&&(_.socksProxy=_t.env.MQTTJS_SOCKS_PROXY),_.cert&&_.key)if(_.protocol){if(["mqtts","wss","wxs","alis"].indexOf(_.protocol)===-1)switch(_.protocol){case"mqtt":_.protocol="mqtts";break;case"ws":_.protocol="wss";break;case"wx":_.protocol="wxs";break;case"ali":_.protocol="alis";break;default:throw new Error(`Unknown protocol for secure connection: "${_.protocol}"!`)}}else throw new Error("Missing secure protocol key");if(u||(u={},!o.default&&!_.forceNativeWebSocket?(u.ws=Io().streamBuilder,u.wss=Io().streamBuilder,u.mqtt=ob().default,u.tcp=ob().default,u.ssl=sb().default,u.tls=u.ssl,u.mqtts=sb().default):(u.ws=Io().browserStreamBuilder,u.wss=Io().browserStreamBuilder,u.wx=ub().default,u.wxs=ub().default,u.ali=cb().default,u.alis=cb().default)),!u[_.protocol]){let S=["mqtts","wss"].indexOf(_.protocol)!==-1;_.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((O,N)=>S&&N%2===0?!1:typeof u[O]=="function")[0]}if(_.clean===!1&&!_.clientId)throw new Error("Missing clientId for unclean clients");_.protocol&&(_.defaultProtocol=_.protocol);function w(S){return _.servers&&((!S._reconnectCount||S._reconnectCount===_.servers.length)&&(S._reconnectCount=0),_.host=_.servers[S._reconnectCount].host,_.port=_.servers[S._reconnectCount].port,_.protocol=_.servers[S._reconnectCount].protocol?_.servers[S._reconnectCount].protocol:_.defaultProtocol,_.hostname=_.host,S._reconnectCount++),l("calling streambuilder for",_.protocol),u[_.protocol](S,_)}let A=new m.default(w,_);return A.on("error",()=>{}),A}function p(b,_,w=!0){return new Promise((A,M)=>{let j=a(b,_),C={connect:O=>{S(),A(j)},end:()=>{S(),A(j)},error:O=>{S(),j.end(),M(O)}};w===!1&&(C.close=()=>{C.error(new Error("Couldn't connect to server"))});function S(){Object.keys(C).forEach(O=>{j.off(O,C[O])})}Object.keys(C).forEach(O=>{j.on(O,C[O])})})}f.default=a}),fb=Ie(f=>{Ne(),Re(),Ce();var y=f&&f.__createBinding||(Object.create?(function(w,A,M,j){j===void 0&&(j=M);var C=Object.getOwnPropertyDescriptor(A,M);(!C||("get"in C?!A.__esModule:C.writable||C.configurable))&&(C={enumerable:!0,get:function(){return A[M]}}),Object.defineProperty(w,j,C)}):(function(w,A,M,j){j===void 0&&(j=M),w[j]=A[M]})),d=f&&f.__setModuleDefault||(Object.create?(function(w,A){Object.defineProperty(w,"default",{enumerable:!0,value:A})}):function(w,A){w.default=A}),c=f&&f.__importStar||(function(){var w=function(A){return w=Object.getOwnPropertyNames||function(M){var j=[];for(var C in M)Object.prototype.hasOwnProperty.call(M,C)&&(j[j.length]=C);return j},w(A)};return function(A){if(A&&A.__esModule)return A;var M={};if(A!=null)for(var j=w(A),C=0;C<j.length;C++)j[C]!=="default"&&y(M,A,j[C]);return d(M,A),M}})(),m=f&&f.__exportStar||function(w,A){for(var M in w)M!=="default"&&!Object.prototype.hasOwnProperty.call(A,M)&&y(A,w,M)},o=f&&f.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(f,"__esModule",{value:!0}),f.ReasonCodes=f.KeepaliveManager=f.UniqueMessageIdProvider=f.DefaultMessageIdProvider=f.Store=f.MqttClient=f.connectAsync=f.connect=f.Client=void 0;var l=o(Jf());f.MqttClient=l.default;var u=o(cv());f.DefaultMessageIdProvider=u.default;var i=o(sw());f.UniqueMessageIdProvider=i.default;var a=o(Kb());f.Store=a.default;var p=c(Xw());f.connect=p.default,Object.defineProperty(f,"connectAsync",{enumerable:!0,get:function(){return p.connectAsync}});var b=o(gv());f.KeepaliveManager=b.default,f.Client=l.default,m(Jf(),f),m(Sa(),f),m(Vb(),f);var _=gs();Object.defineProperty(f,"ReasonCodes",{enumerable:!0,get:function(){return _.ReasonCodes}})}),Zw=Ie(f=>{Ne(),Re(),Ce();var y=f&&f.__createBinding||(Object.create?(function(l,u,i,a){a===void 0&&(a=i);var p=Object.getOwnPropertyDescriptor(u,i);(!p||("get"in p?!u.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return u[i]}}),Object.defineProperty(l,a,p)}):(function(l,u,i,a){a===void 0&&(a=i),l[a]=u[i]})),d=f&&f.__setModuleDefault||(Object.create?(function(l,u){Object.defineProperty(l,"default",{enumerable:!0,value:u})}):function(l,u){l.default=u}),c=f&&f.__importStar||(function(){var l=function(u){return l=Object.getOwnPropertyNames||function(i){var a=[];for(var p in i)Object.prototype.hasOwnProperty.call(i,p)&&(a[a.length]=p);return a},l(u)};return function(u){if(u&&u.__esModule)return u;var i={};if(u!=null)for(var a=l(u),p=0;p<a.length;p++)a[p]!=="default"&&y(i,u,a[p]);return d(i,u),i}})(),m=f&&f.__exportStar||function(l,u){for(var i in l)i!=="default"&&!Object.prototype.hasOwnProperty.call(u,i)&&y(u,l,i)};Object.defineProperty(f,"__esModule",{value:!0});var o=c(fb());f.default=o,m(fb(),f)});const $w=Zw();/*! Bundled license information:

@jspm/core/nodelibs/browser/chunk-DtuTasat.js:
  (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)

safe-buffer/index.js:
  (*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)

@babel/runtime/helpers/regenerator.js:
  (*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE *)
*/const hb=1,Jw=["ws:","wss:"];let eE=0;function tE(){const f=new Date,y=String(f.getHours()).padStart(2,"0"),d=String(f.getMinutes()).padStart(2,"0"),c=String(f.getSeconds()).padStart(2,"0");return`${y}:${d}:${c}`}function rE(f){try{const y=new URL(f);return Jw.includes(y.protocol)}catch{return!1}}function nE(f){const[y,d]=Je.useState(!1),[c,m]=Je.useState([]),o=Je.useRef(null);Je.useEffect(()=>{if(!f||!rE(f)){o.current&&(o.current.end(!0),o.current=null,d(!1));return}const a={reconnectPeriod:0},p=$w.connect(f,a);return o.current=p,p.on("connect",()=>{d(!0)}),p.on("message",(b,_)=>{const w=_.toString("utf8"),A={id:++eE,topic:b,payload:w,timestamp:tE()};m(M=>[...M.slice(-199),A])}),p.on("error",b=>{console.error("[useMqtt] client error:",b.message)}),p.on("close",()=>{d(!1)}),()=>{p.end(!0),o.current=null,d(!1)}},[f]);const l=Je.useCallback(a=>{var p;(p=o.current)==null||p.subscribe(a,{qos:hb},b=>{b&&console.error(`[useMqtt] subscribe error on "${a}":`,b.message)})},[]),u=Je.useCallback(a=>{var p;(p=o.current)==null||p.unsubscribe(a,b=>{b&&console.error(`[useMqtt] unsubscribe error on "${a}":`,b==null?void 0:b.message)})},[]),i=Je.useCallback((a,p)=>{var b;(b=o.current)==null||b.publish(a,p,{qos:hb},_=>{_&&console.error(`[useMqtt] publish error on "${a}":`,_.message)})},[]);return{client:o.current,messages:c,connected:y,subscribe:l,unsubscribe:u,publish:i}}function iE({endpoint:f,messages:y,connected:d,subscribe:c,unsubscribe:m,publish:o}){const l=Je.useId(),u=f.path,[i,a]=Je.useState(!1),[p,b]=Je.useState(!1),[_,w]=Je.useState(""),A=y.filter(T=>T.topic===u),M=Je.useRef(null);Je.useEffect(()=>{var T;(T=M.current)==null||T.scrollIntoView({behavior:"smooth"})},[A.length]),Je.useEffect(()=>{d||b(!1)},[d]);function j(){p?(m(u),b(!1)):(c(u),b(!0))}function C(){_.trim()!==""&&(o(u,_),w(""))}function S(T){T.key==="Enter"&&C()}const O=`mqtt-card-header-${l}`,N=`mqtt-card-body-${l}`;return fe.jsxs("li",{className:"endpoint-card",children:[fe.jsxs("button",{id:O,className:"endpoint-card__toggle","aria-expanded":i,"aria-controls":N,onClick:()=>a(T=>!T),children:[fe.jsx("span",{className:"method-badge method-badge--mqtt",children:"MQTT"}),fe.jsx("code",{className:"endpoint-card__path",children:u}),f.description!==void 0&&fe.jsx("span",{className:"endpoint-card__summary",children:f.description}),p&&fe.jsx("span",{className:"status-dot status-dot--connected","aria-label":"Subscribed"}),fe.jsx("span",{className:`endpoint-card__chevron${i?" endpoint-card__chevron--open":""}`,"aria-hidden":"true",children:"›"})]}),i&&fe.jsxs("div",{id:N,className:"endpoint-card__body",role:"region","aria-labelledby":O,children:[fe.jsxs("div",{className:"form-section form-section--inline",children:[fe.jsx("button",{className:p?"btn btn--danger":"btn btn--connect",onClick:j,disabled:!d,"aria-pressed":p,children:p?"Unsubscribe":"Subscribe"}),!d&&fe.jsx("span",{className:"ws-status-error",children:"Broker not connected"})]}),fe.jsxs("section",{className:"form-section",children:[fe.jsx("h3",{className:"form-section__title",children:fe.jsx("span",{className:"form-section__badge",children:"Publish"})}),fe.jsxs("div",{className:"form-row",children:[fe.jsx("input",{id:`${l}-mqtt-payload`,className:"form-input",type:"text",placeholder:"Payload",value:_,onChange:T=>w(T.target.value),onKeyDown:S,disabled:!d,"aria-label":"Publish payload"}),fe.jsx("button",{className:"btn btn--primary",onClick:C,disabled:!d||_.trim()==="",children:"Publish"})]})]}),fe.jsxs("section",{className:"form-section",children:[fe.jsx("h3",{className:"form-section__title",children:fe.jsx("span",{className:"form-section__badge",children:"Received Messages"})}),fe.jsxs("div",{className:"message-log","aria-live":"polite","aria-label":`MQTT messages for topic ${u}`,children:[A.length===0?fe.jsx("p",{className:"message-log__empty",children:"No messages received yet."}):A.map(T=>fe.jsxs("div",{className:"message-log__item message-log__item--in",children:[fe.jsx("span",{className:"message-log__time",children:T.timestamp}),fe.jsx("span",{className:"message-log__direction","aria-hidden":"true",children:"←"}),fe.jsx("span",{className:"message-log__payload",children:T.payload})]},T.id)),fe.jsx("div",{ref:M})]})]})]})]})}function aE({tag:f,endpoints:y,messages:d,connected:c,subscribe:m,unsubscribe:o,publish:l}){const[u,i]=Je.useState(!0);return fe.jsxs("section",{className:"endpoint-group",children:[fe.jsxs("button",{className:["endpoint-group__header",u?"endpoint-group__header--open":""].filter(Boolean).join(" "),"aria-expanded":u,onClick:()=>i(a=>!a),children:[fe.jsx("span",{className:"endpoint-group__tag",children:f}),fe.jsx("span",{className:"endpoint-group__count",children:y.length}),fe.jsx("span",{className:"endpoint-group__chevron","aria-hidden":"true",children:"▼"})]}),u&&fe.jsx("div",{className:"endpoint-group__body",children:fe.jsx("ul",{className:"endpoint-list",children:y.map(a=>fe.jsx(iE,{endpoint:a,messages:d,connected:c,subscribe:m,unsubscribe:o,publish:l},a.path))})})]})}function lE({endpoints:f}){const y=Je.useId(),[d,c]=Je.useState("ws://localhost:9001"),[m,o]=Je.useState(""),{connected:l,messages:u,subscribe:i,unsubscribe:a,publish:p}=nE(m);function b(){o(d.trim())}function _(){o("")}function w(M){M.key==="Enter"&&!l&&b()}const A=Hh(f);return fe.jsxs("div",{children:[fe.jsxs("div",{className:"broker-bar",children:[fe.jsx("span",{className:`status-dot ${l?"status-dot--connected":"status-dot--disconnected"}`,"aria-label":l?"Broker connected":"Broker disconnected"}),fe.jsx("label",{className:"form-label broker-bar__label",htmlFor:`${y}-broker-url`,children:"Broker"}),fe.jsx("input",{id:`${y}-broker-url`,className:"form-input broker-bar__input",type:"url",placeholder:"ws://localhost:9001",value:d,onChange:M=>c(M.target.value),onKeyDown:w,disabled:l,"aria-label":"MQTT broker WebSocket URL"}),l?fe.jsx("button",{className:"btn btn--danger",onClick:_,children:"Disconnect"}):fe.jsx("button",{className:"btn btn--connect",onClick:b,disabled:d.trim()==="",children:"Connect"})]}),f.length===0?fe.jsx("p",{className:"panel-empty",children:"No MQTT topics defined in the spec."}):[...A.entries()].map(([M,j])=>fe.jsx(aE,{tag:M,endpoints:j,messages:u,connected:l,subscribe:i,unsubscribe:a,publish:p},M))]})}function oE({endpoints:f}){const y=Je.useMemo(()=>{const d=new Map;for(const c of f){if(c.request_schema){const m=c.request_schema,o=m.title??`${c.name}_request`;d.has(o)||d.set(o,m)}if(c.response_schema){const m=c.response_schema,o=m.title??`${c.name}_response`;d.has(o)||d.set(o,m)}}return[...d.entries()]},[f]);return y.length===0?fe.jsxs("p",{className:"panel-empty",children:["No schemas available yet. Annotate your handlers with"," ",fe.jsx("code",{children:"request = MyType"})," or ",fe.jsx("code",{children:"response = MyType"}),"."]}):fe.jsx("div",{className:"models-panel",children:y.map(([d,c])=>fe.jsx("div",{className:"models-panel__item",children:fe.jsx(gb,{schema:c,label:d})},d))})}const sE=[{id:"none",label:"None"},{id:"bearer",label:"Bearer Token"},{id:"api-key",label:"API Key"},{id:"basic",label:"Basic Auth"}];function uE({onClose:f}){const{auth:y,setAuth:d}=ds(),[c,m]=Je.useState({...y});function o(p){m(b=>({...b,type:p}))}function l(p,b){m(_=>({..._,[p]:b}))}function u(){d(c),f()}function i(p){p.target===p.currentTarget&&f()}function a(p){p.key==="Escape"&&f()}return fe.jsx("div",{className:"auth-modal-overlay",role:"dialog","aria-modal":"true","aria-label":"Configure authorization",onClick:i,onKeyDown:a,children:fe.jsxs("div",{className:"auth-modal",children:[fe.jsxs("div",{className:"auth-modal__header",children:[fe.jsx("h2",{className:"auth-modal__title",children:"Authorization"}),fe.jsx("button",{className:"auth-modal__close","aria-label":"Close authorization dialog",onClick:f,children:"✕"})]}),fe.jsx("div",{className:"auth-modal__tabs",role:"tablist","aria-label":"Auth type",children:sE.map(p=>fe.jsx("button",{role:"tab","aria-selected":c.type===p.id,className:["auth-tab",c.type===p.id?"auth-tab--active":""].filter(Boolean).join(" "),onClick:()=>o(p.id),children:p.label},p.id))}),c.type==="none"&&fe.jsx("p",{className:"auth-modal__hint",children:"No authentication will be added to requests."}),c.type==="bearer"&&fe.jsxs("div",{className:"form-group",children:[fe.jsx("label",{className:"form-label",htmlFor:"auth-bearer",children:"Bearer Token"}),fe.jsx("input",{id:"auth-bearer",className:"form-input",type:"password",placeholder:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",value:c.bearer,onChange:p=>l("bearer",p.target.value),autoComplete:"off",spellCheck:!1}),fe.jsxs("span",{className:"auth-modal__field-hint",children:["Adds ",fe.jsx("code",{children:"Authorization: Bearer <token>"})," to every HTTP request."]})]}),c.type==="api-key"&&fe.jsxs("div",{children:[fe.jsxs("div",{className:"form-group",children:[fe.jsx("label",{className:"form-label",htmlFor:"auth-apikey-header",children:"Header Name"}),fe.jsx("input",{id:"auth-apikey-header",className:"form-input",type:"text",placeholder:"X-API-Key",value:c.apiKeyHeader,onChange:p=>l("apiKeyHeader",p.target.value),autoComplete:"off",spellCheck:!1})]}),fe.jsxs("div",{className:"form-group",children:[fe.jsx("label",{className:"form-label",htmlFor:"auth-apikey-value",children:"API Key"}),fe.jsx("input",{id:"auth-apikey-value",className:"form-input",type:"password",placeholder:"sk-...",value:c.apiKey,onChange:p=>l("apiKey",p.target.value),autoComplete:"off",spellCheck:!1})]})]}),c.type==="basic"&&fe.jsxs("div",{children:[fe.jsxs("div",{className:"form-group",children:[fe.jsx("label",{className:"form-label",htmlFor:"auth-basic-user",children:"Username"}),fe.jsx("input",{id:"auth-basic-user",className:"form-input",type:"text",placeholder:"admin",value:c.basicUser,onChange:p=>l("basicUser",p.target.value),autoComplete:"username"})]}),fe.jsxs("div",{className:"form-group",children:[fe.jsx("label",{className:"form-label",htmlFor:"auth-basic-pass",children:"Password"}),fe.jsx("input",{id:"auth-basic-pass",className:"form-input",type:"password",placeholder:"••••••••",value:c.basicPass,onChange:p=>l("basicPass",p.target.value),autoComplete:"current-password"})]})]}),fe.jsx("div",{className:"auth-modal__actions",children:fe.jsx("button",{className:"btn btn--primary",onClick:u,children:"Apply & Close"})})]})})}const cE={http:"Http",ws:"WebSocket",mqtt:"Mqtt"},fE={http:"HTTP",ws:"WebSocket",mqtt:"MQTT",models:"Models"},hE=["http","ws","mqtt","models"];function dE(){const[f,y]=Je.useState("http"),[d,c]=Je.useState(!1),{spec:m,loading:o,error:l}=v1(),{auth:u}=ds(),i=u.type!=="none",a=f!=="models"?(m==null?void 0:m.endpoints.filter(p=>p.protocol===cE[f]))??[]:[];return fe.jsxs("div",{className:"app",children:[fe.jsxs("header",{className:"app__header",children:[fe.jsxs("div",{className:"app__header-left",children:[fe.jsx("h1",{className:"app__title",children:"Lucy"}),m!==null&&fe.jsxs("p",{className:"app__version",children:["Spec version: ",m.version]})]}),fe.jsx("button",{className:["btn--authorize",i?"btn--authorize--active":""].filter(Boolean).join(" "),onClick:()=>c(!0),"aria-haspopup":"dialog","aria-expanded":d,children:i?`Authorized (${u.type})`:"Authorize"})]}),fe.jsx("nav",{"aria-label":"Protocol tabs",children:fe.jsx("ul",{className:"tab-bar",role:"tablist",children:hE.map(p=>fe.jsx("li",{role:"presentation",children:fe.jsx("button",{role:"tab","aria-selected":f===p,"aria-controls":`panel-${p}`,id:`tab-${p}`,className:["tab-bar__button",f===p?"tab-bar__button--active":""].filter(Boolean).join(" "),onClick:()=>y(p),children:fE[p]})},p))})}),fe.jsxs("main",{id:`panel-${f}`,role:"tabpanel","aria-labelledby":`tab-${f}`,className:"panel",children:[o&&fe.jsx("p",{className:"panel-loading","aria-live":"polite",children:"Loading spec..."}),!o&&l!==null&&fe.jsx("p",{className:"panel-error",role:"alert",children:l}),!o&&l===null&&f==="http"&&fe.jsx(B1,{endpoints:a}),!o&&l===null&&f==="ws"&&fe.jsx(Y1,{endpoints:a}),!o&&l===null&&f==="mqtt"&&fe.jsx(lE,{endpoints:a}),!o&&l===null&&f==="models"&&fe.jsx(oE,{endpoints:(m==null?void 0:m.endpoints)??[]})]}),d&&fe.jsx(uE,{onClose:()=>c(!1)})]})}function pE(){return fe.jsx(w1,{children:fe.jsx(dE,{})})}g1.createRoot(document.getElementById("root")).render(fe.jsx(u1.StrictMode,{children:fe.jsx(pE,{})}));
