iosignal 3.2.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/.vscode/settings.json +3 -0
  2. package/README.en.md +56 -0
  3. package/README.md +39 -782
  4. package/dist/io.d.ts +10 -3
  5. package/dist/io.js +4 -4
  6. package/dist/io.js.map +1 -1
  7. package/dist/io.min.js +4 -4
  8. package/dist/io.min.js.map +1 -1
  9. package/dist/iosignal.js +266 -217
  10. package/dist/types/client/IOCore.d.ts +10 -3
  11. package/package.json +3 -4
  12. package/src/api/RedisAPI.js +19 -31
  13. package/src/api/api_reply.js +14 -6
  14. package/src/api/api_sudo.js +2 -8
  15. package/src/auth/Auth_Redis.js +8 -3
  16. package/src/auth/BohoAuth.js +12 -12
  17. package/src/client/CongPacket.js +2 -0
  18. package/src/client/IOCore.js +98 -52
  19. package/src/server/Manager.js +12 -12
  20. package/src/server/Metric.js +1 -2
  21. package/src/server/RemoteCore.js +27 -34
  22. package/src/server/Server.js +69 -60
  23. package/src/server/serverOption.js +3 -2
  24. package/README.ko.md +0 -566
  25. package/docs/iosignal_architecture.png +0 -0
  26. package/examples/react-chat-js/dist/assets/index-Cy4qaVcJ.js +0 -56
  27. package/examples/react-chat-js/dist/assets/index-NETrjYhz.css +0 -1
  28. package/examples/react-chat-js/dist/index.html +0 -14
  29. package/examples/react-chat-js/index.html +0 -13
  30. package/examples/react-chat-js/package-lock.json +0 -1723
  31. package/examples/react-chat-js/package.json +0 -20
  32. package/examples/react-chat-js/src/App.css +0 -61
  33. package/examples/react-chat-js/src/App.jsx +0 -125
  34. package/examples/react-chat-js/src/index.css +0 -13
  35. package/examples/react-chat-js/src/main.jsx +0 -13
  36. package/examples/react-chat-js/src/shared_io.js +0 -12
  37. package/examples/react-chat-js/vite.config.js +0 -7
  38. package/examples/server/index.js +0 -12
  39. package/examples/server/package-lock.json +0 -47
  40. package/examples/server/package.json +0 -12
  41. package/examples/svelte-chat-js/.devtools +0 -3
  42. package/examples/svelte-chat-js/README.md +0 -38
  43. package/examples/svelte-chat-js/package-lock.json +0 -1505
  44. package/examples/svelte-chat-js/package.json +0 -22
  45. package/examples/svelte-chat-js/src/app.css +0 -105
  46. package/examples/svelte-chat-js/src/app.d.ts +0 -13
  47. package/examples/svelte-chat-js/src/app.html +0 -12
  48. package/examples/svelte-chat-js/src/lib/images/github.svg +0 -1
  49. package/examples/svelte-chat-js/src/lib/images/svelte-logo.svg +0 -1
  50. package/examples/svelte-chat-js/src/lib/images/svelte-welcome.png +0 -0
  51. package/examples/svelte-chat-js/src/lib/images/svelte-welcome.webp +0 -0
  52. package/examples/svelte-chat-js/src/lib/shared_io.js +0 -12
  53. package/examples/svelte-chat-js/src/routes/+layout.svelte +0 -9
  54. package/examples/svelte-chat-js/src/routes/+page.js +0 -3
  55. package/examples/svelte-chat-js/src/routes/+page.svelte +0 -162
  56. package/examples/svelte-chat-js/static/favicon.svg +0 -1
  57. package/examples/svelte-chat-js/static/global.css +0 -19
  58. package/examples/svelte-chat-js/static/robots.txt +0 -3
  59. package/examples/svelte-chat-js/svelte.config.js +0 -15
  60. package/examples/svelte-chat-js/vite.config.js +0 -6
  61. package/test-browser/favicon.ico +0 -0
  62. package/test-browser/index.html +0 -95
  63. package/test-browser/server.js +0 -12
  64. package/test-nodejs/client-playToggle.js +0 -19
  65. package/test-nodejs/client.js +0 -17
  66. package/test-nodejs/client_api_reply.js +0 -15
  67. package/test-nodejs/server-Auth_Env.js +0 -19
  68. package/test-nodejs/server-Auth_File.js +0 -12
  69. package/test-nodejs/server-api_reply.js +0 -6
  70. package/test-nodejs/server-api_sudo.js +0 -7
  71. package/test-nodejs/server.js +0 -20
  72. package/test-nodejs/signalPack.js +0 -34
  73. package/test-nodejs/signaling.js +0 -61
  74. package/test-nodejs/simple-server.js +0 -13
  75. /package/{auth_file.js → auth_file_sample.js} +0 -0
  76. /package/{auth_file.json → auth_file_sample.json} +0 -0
@@ -1,56 +0,0 @@
1
- var gh=Object.defineProperty;var mh=(e,t,n)=>t in e?gh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Tt=(e,t,n)=>mh(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))o(l);new MutationObserver(l=>{for(const a of l)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&o(s)}).observe(document,{childList:!0,subtree:!0});function n(l){const a={};return l.integrity&&(a.integrity=l.integrity),l.referrerPolicy&&(a.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?a.credentials="include":l.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function o(l){if(l.ep)return;l.ep=!0;const a=n(l);fetch(l.href,a)}})();function vh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Va={exports:{}},yo={},Wa={exports:{}},J={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var ei=Symbol.for("react.element"),wh=Symbol.for("react.portal"),Eh=Symbol.for("react.fragment"),Sh=Symbol.for("react.strict_mode"),_h=Symbol.for("react.profiler"),Bh=Symbol.for("react.provider"),kh=Symbol.for("react.context"),Ah=Symbol.for("react.forward_ref"),Ch=Symbol.for("react.suspense"),Lh=Symbol.for("react.memo"),Th=Symbol.for("react.lazy"),ms=Symbol.iterator;function Ih(e){return e===null||typeof e!="object"?null:(e=ms&&e[ms]||e["@@iterator"],typeof e=="function"?e:null)}var Qa={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ya=Object.assign,Ga={};function rr(e,t,n){this.props=e,this.context=t,this.refs=Ga,this.updater=n||Qa}rr.prototype.isReactComponent={};rr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};rr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ka(){}Ka.prototype=rr.prototype;function hl(e,t,n){this.props=e,this.context=t,this.refs=Ga,this.updater=n||Qa}var pl=hl.prototype=new Ka;pl.constructor=hl;Ya(pl,rr.prototype);pl.isPureReactComponent=!0;var vs=Array.isArray,Xa=Object.prototype.hasOwnProperty,dl={current:null},Ja={key:!0,ref:!0,__self:!0,__source:!0};function Za(e,t,n){var o,l={},a=null,s=null;if(t!=null)for(o in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(a=""+t.key),t)Xa.call(t,o)&&!Ja.hasOwnProperty(o)&&(l[o]=t[o]);var p=arguments.length-2;if(p===1)l.children=n;else if(1<p){for(var d=Array(p),g=0;g<p;g++)d[g]=arguments[g+2];l.children=d}if(e&&e.defaultProps)for(o in p=e.defaultProps,p)l[o]===void 0&&(l[o]=p[o]);return{$$typeof:ei,type:e,key:a,ref:s,props:l,_owner:dl.current}}function Nh(e,t){return{$$typeof:ei,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function yl(e){return typeof e=="object"&&e!==null&&e.$$typeof===ei}function Uh(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ws=/\/+/g;function Ro(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Uh(""+e.key):t.toString(36)}function Li(e,t,n,o,l){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case ei:case wh:s=!0}}if(s)return s=e,l=l(s),e=o===""?"."+Ro(s,0):o,vs(l)?(n="",e!=null&&(n=e.replace(ws,"$&/")+"/"),Li(l,t,n,"",function(g){return g})):l!=null&&(yl(l)&&(l=Nh(l,n+(!l.key||s&&s.key===l.key?"":(""+l.key).replace(ws,"$&/")+"/")+e)),t.push(l)),1;if(s=0,o=o===""?".":o+":",vs(e))for(var p=0;p<e.length;p++){a=e[p];var d=o+Ro(a,p);s+=Li(a,t,n,d,l)}else if(d=Ih(e),typeof d=="function")for(e=d.call(e),p=0;!(a=e.next()).done;)a=a.value,d=o+Ro(a,p++),s+=Li(a,t,n,d,l);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function oi(e,t,n){if(e==null)return e;var o=[],l=0;return Li(e,o,"","",function(a){return t.call(n,a,l++)}),o}function xh(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var be={current:null},Ti={transition:null},Rh={ReactCurrentDispatcher:be,ReactCurrentBatchConfig:Ti,ReactCurrentOwner:dl};function qa(){throw Error("act(...) is not supported in production builds of React.")}J.Children={map:oi,forEach:function(e,t,n){oi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return oi(e,function(){t++}),t},toArray:function(e){return oi(e,function(t){return t})||[]},only:function(e){if(!yl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};J.Component=rr;J.Fragment=Eh;J.Profiler=_h;J.PureComponent=hl;J.StrictMode=Sh;J.Suspense=Ch;J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Rh;J.act=qa;J.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=Ya({},e.props),l=e.key,a=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,s=dl.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var p=e.type.defaultProps;for(d in t)Xa.call(t,d)&&!Ja.hasOwnProperty(d)&&(o[d]=t[d]===void 0&&p!==void 0?p[d]:t[d])}var d=arguments.length-2;if(d===1)o.children=n;else if(1<d){p=Array(d);for(var g=0;g<d;g++)p[g]=arguments[g+2];o.children=p}return{$$typeof:ei,type:e.type,key:l,ref:a,props:o,_owner:s}};J.createContext=function(e){return e={$$typeof:kh,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Bh,_context:e},e.Consumer=e};J.createElement=Za;J.createFactory=function(e){var t=Za.bind(null,e);return t.type=e,t};J.createRef=function(){return{current:null}};J.forwardRef=function(e){return{$$typeof:Ah,render:e}};J.isValidElement=yl;J.lazy=function(e){return{$$typeof:Th,_payload:{_status:-1,_result:e},_init:xh}};J.memo=function(e,t){return{$$typeof:Lh,type:e,compare:t===void 0?null:t}};J.startTransition=function(e){var t=Ti.transition;Ti.transition={};try{e()}finally{Ti.transition=t}};J.unstable_act=qa;J.useCallback=function(e,t){return be.current.useCallback(e,t)};J.useContext=function(e){return be.current.useContext(e)};J.useDebugValue=function(){};J.useDeferredValue=function(e){return be.current.useDeferredValue(e)};J.useEffect=function(e,t){return be.current.useEffect(e,t)};J.useId=function(){return be.current.useId()};J.useImperativeHandle=function(e,t,n){return be.current.useImperativeHandle(e,t,n)};J.useInsertionEffect=function(e,t){return be.current.useInsertionEffect(e,t)};J.useLayoutEffect=function(e,t){return be.current.useLayoutEffect(e,t)};J.useMemo=function(e,t){return be.current.useMemo(e,t)};J.useReducer=function(e,t,n){return be.current.useReducer(e,t,n)};J.useRef=function(e){return be.current.useRef(e)};J.useState=function(e){return be.current.useState(e)};J.useSyncExternalStore=function(e,t,n){return be.current.useSyncExternalStore(e,t,n)};J.useTransition=function(){return be.current.useTransition()};J.version="18.3.1";Wa.exports=J;var nt=Wa.exports;const Oh=vh(nt);/**
10
- * @license React
11
- * react-jsx-runtime.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Mh=nt,Ph=Symbol.for("react.element"),zh=Symbol.for("react.fragment"),bh=Object.prototype.hasOwnProperty,Dh=Mh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$h={key:!0,ref:!0,__self:!0,__source:!0};function ef(e,t,n){var o,l={},a=null,s=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(s=t.ref);for(o in t)bh.call(t,o)&&!$h.hasOwnProperty(o)&&(l[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps,t)l[o]===void 0&&(l[o]=t[o]);return{$$typeof:Ph,type:e,key:a,ref:s,props:l,_owner:Dh.current}}yo.Fragment=zh;yo.jsx=ef;yo.jsxs=ef;Va.exports=yo;var Le=Va.exports,pu={},tf={exports:{}},Ze={},nf={exports:{}},rf={};/**
18
- * @license React
19
- * scheduler.production.min.js
20
- *
21
- * Copyright (c) Facebook, Inc. and its affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */(function(e){function t(M,V){var W=M.length;M.push(V);e:for(;0<W;){var Y=W-1>>>1,ne=M[Y];if(0<l(ne,V))M[Y]=V,M[W]=ne,W=Y;else break e}}function n(M){return M.length===0?null:M[0]}function o(M){if(M.length===0)return null;var V=M[0],W=M.pop();if(W!==V){M[0]=W;e:for(var Y=0,ne=M.length,Ye=ne>>>1;Y<Ye;){var Ue=2*(Y+1)-1,fe=M[Ue],le=Ue+1,_t=M[le];if(0>l(fe,W))le<ne&&0>l(_t,fe)?(M[Y]=_t,M[le]=W,Y=le):(M[Y]=fe,M[Ue]=W,Y=Ue);else if(le<ne&&0>l(_t,W))M[Y]=_t,M[le]=W,Y=le;else break e}}return V}function l(M,V){var W=M.sortIndex-V.sortIndex;return W!==0?W:M.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,p=s.now();e.unstable_now=function(){return s.now()-p}}var d=[],g=[],m=1,S=null,B=3,A=!1,I=!1,T=!1,z=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(M){for(var V=n(g);V!==null;){if(V.callback===null)o(g);else if(V.startTime<=M)o(g),V.sortIndex=V.expirationTime,t(d,V);else break;V=n(g)}}function U(M){if(T=!1,k(M),!I)if(n(d)!==null)I=!0,et(O);else{var V=n(g);V!==null&&tt(U,V.startTime-M)}}function O(M,V){I=!1,T&&(T=!1,v(j),j=-1),A=!0;var W=B;try{for(k(V),S=n(d);S!==null&&(!(S.expirationTime>V)||M&&!Ce());){var Y=S.callback;if(typeof Y=="function"){S.callback=null,B=S.priorityLevel;var ne=Y(S.expirationTime<=V);V=e.unstable_now(),typeof ne=="function"?S.callback=ne:S===n(d)&&o(d),k(V)}else o(d);S=n(d)}if(S!==null)var Ye=!0;else{var Ue=n(g);Ue!==null&&tt(U,Ue.startTime-V),Ye=!1}return Ye}finally{S=null,B=W,A=!1}}var b=!1,$=null,j=-1,te=5,K=-1;function Ce(){return!(e.unstable_now()-K<te)}function ft(){if($!==null){var M=e.unstable_now();K=M;var V=!0;try{V=$(!0,M)}finally{V?ct():(b=!1,$=null)}}else b=!1}var ct;if(typeof E=="function")ct=function(){E(ft)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,Q=F.port2;F.port1.onmessage=ft,ct=function(){Q.postMessage(null)}}else ct=function(){z(ft,0)};function et(M){$=M,b||(b=!0,ct())}function tt(M,V){j=z(function(){M(e.unstable_now())},V)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(M){M.callback=null},e.unstable_continueExecution=function(){I||A||(I=!0,et(O))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):te=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return B},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(M){switch(B){case 1:case 2:case 3:var V=3;break;default:V=B}var W=B;B=V;try{return M()}finally{B=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,V){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var W=B;B=M;try{return V()}finally{B=W}},e.unstable_scheduleCallback=function(M,V,W){var Y=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?Y+W:Y):W=Y,M){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=W+ne,M={id:m++,callback:V,priorityLevel:M,startTime:W,expirationTime:ne,sortIndex:-1},W>Y?(M.sortIndex=W,t(g,M),n(d)===null&&M===n(g)&&(T?(v(j),j=-1):T=!0,tt(U,W-Y))):(M.sortIndex=ne,t(d,M),I||A||(I=!0,et(O))),M},e.unstable_shouldYield=Ce,e.unstable_wrapCallback=function(M){var V=B;return function(){var W=B;B=V;try{return M.apply(this,arguments)}finally{B=W}}}})(rf);nf.exports=rf;var jh=nf.exports;/**
26
- * @license React
27
- * react-dom.production.min.js
28
- *
29
- * Copyright (c) Facebook, Inc. and its affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var Fh=nt,Je=jh;function x(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var of=new Set,Mr={};function Tn(e,t){Xn(e,t),Xn(e+"Capture",t)}function Xn(e,t){for(Mr[e]=t,e=0;e<t.length;e++)of.add(t[e])}var Dt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),du=Object.prototype.hasOwnProperty,Hh=/^[: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]*$/,Es={},Ss={};function Vh(e){return du.call(Ss,e)?!0:du.call(Es,e)?!1:Hh.test(e)?Ss[e]=!0:(Es[e]=!0,!1)}function Wh(e,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Qh(e,t,n,o){if(t===null||typeof t>"u"||Wh(e,t,n,o))return!0;if(o)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function De(e,t,n,o,l,a,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=s}var Ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ne[e]=new De(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ne[t]=new De(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ne[e]=new De(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ne[e]=new De(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ne[e]=new De(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ne[e]=new De(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ne[e]=new De(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ne[e]=new De(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ne[e]=new De(e,5,!1,e.toLowerCase(),null,!1,!1)});var gl=/[\-:]([a-z])/g;function ml(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(gl,ml);Ne[t]=new De(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(gl,ml);Ne[t]=new De(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(gl,ml);Ne[t]=new De(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ne[e]=new De(e,1,!1,e.toLowerCase(),null,!1,!1)});Ne.xlinkHref=new De("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ne[e]=new De(e,1,!1,e.toLowerCase(),null,!0,!0)});function vl(e,t,n,o){var l=Ne.hasOwnProperty(t)?Ne[t]:null;(l!==null?l.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Qh(t,n,l,o)&&(n=null),o||l===null?Vh(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,o=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}var Ht=Fh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ui=Symbol.for("react.element"),xn=Symbol.for("react.portal"),Rn=Symbol.for("react.fragment"),wl=Symbol.for("react.strict_mode"),yu=Symbol.for("react.profiler"),uf=Symbol.for("react.provider"),lf=Symbol.for("react.context"),El=Symbol.for("react.forward_ref"),gu=Symbol.for("react.suspense"),mu=Symbol.for("react.suspense_list"),Sl=Symbol.for("react.memo"),Yt=Symbol.for("react.lazy"),sf=Symbol.for("react.offscreen"),_s=Symbol.iterator;function ar(e){return e===null||typeof e!="object"?null:(e=_s&&e[_s]||e["@@iterator"],typeof e=="function"?e:null)}var ge=Object.assign,Oo;function _r(e){if(Oo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Oo=t&&t[1]||""}return`
34
- `+Oo+e}var Mo=!1;function Po(e,t){if(!e||Mo)return"";Mo=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(g){var o=g}Reflect.construct(e,[],t)}else{try{t.call()}catch(g){o=g}e.call(t.prototype)}else{try{throw Error()}catch(g){o=g}e()}}catch(g){if(g&&o&&typeof g.stack=="string"){for(var l=g.stack.split(`
35
- `),a=o.stack.split(`
36
- `),s=l.length-1,p=a.length-1;1<=s&&0<=p&&l[s]!==a[p];)p--;for(;1<=s&&0<=p;s--,p--)if(l[s]!==a[p]){if(s!==1||p!==1)do if(s--,p--,0>p||l[s]!==a[p]){var d=`
37
- `+l[s].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=s&&0<=p);break}}}finally{Mo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_r(e):""}function Yh(e){switch(e.tag){case 5:return _r(e.type);case 16:return _r("Lazy");case 13:return _r("Suspense");case 19:return _r("SuspenseList");case 0:case 2:case 15:return e=Po(e.type,!1),e;case 11:return e=Po(e.type.render,!1),e;case 1:return e=Po(e.type,!0),e;default:return""}}function vu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Rn:return"Fragment";case xn:return"Portal";case yu:return"Profiler";case wl:return"StrictMode";case gu:return"Suspense";case mu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case lf:return(e.displayName||"Context")+".Consumer";case uf:return(e._context.displayName||"Context")+".Provider";case El:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Sl:return t=e.displayName||null,t!==null?t:vu(e.type)||"Memo";case Yt:t=e._payload,e=e._init;try{return vu(e(t))}catch{}}return null}function Gh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return vu(t);case 8:return t===wl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function an(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function af(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kh(e){var t=af(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(s){o=""+s,a.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(s){o=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function li(e){e._valueTracker||(e._valueTracker=Kh(e))}function ff(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=af(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function Vi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function wu(e,t){var n=t.checked;return ge({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Bs(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=an(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function cf(e,t){t=t.checked,t!=null&&vl(e,"checked",t,!1)}function Eu(e,t){cf(e,t);var n=an(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Su(e,t.type,n):t.hasOwnProperty("defaultValue")&&Su(e,t.type,an(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ks(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Su(e,t,n){(t!=="number"||Vi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Br=Array.isArray;function Vn(e,t,n,o){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&o&&(e[n].defaultSelected=!0)}else{for(n=""+an(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,o&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function _u(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(x(91));return ge({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function As(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(x(92));if(Br(n)){if(1<n.length)throw Error(x(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:an(n)}}function hf(e,t){var n=an(t.value),o=an(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),o!=null&&(e.defaultValue=""+o)}function Cs(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function pf(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Bu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?pf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var si,df=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,o,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(si=si||document.createElement("div"),si.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=si.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Pr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Cr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Xh=["Webkit","ms","Moz","O"];Object.keys(Cr).forEach(function(e){Xh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Cr[t]=Cr[e]})});function yf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Cr.hasOwnProperty(e)&&Cr[e]?(""+t).trim():t+"px"}function gf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,l=yf(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,l):e[n]=l}}var Jh=ge({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ku(e,t){if(t){if(Jh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(x(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(x(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(x(61))}if(t.style!=null&&typeof t.style!="object")throw Error(x(62))}}function Au(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Cu=null;function _l(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Lu=null,Wn=null,Qn=null;function Ls(e){if(e=ri(e)){if(typeof Lu!="function")throw Error(x(280));var t=e.stateNode;t&&(t=Eo(t),Lu(e.stateNode,e.type,t))}}function mf(e){Wn?Qn?Qn.push(e):Qn=[e]:Wn=e}function vf(){if(Wn){var e=Wn,t=Qn;if(Qn=Wn=null,Ls(e),t)for(e=0;e<t.length;e++)Ls(t[e])}}function wf(e,t){return e(t)}function Ef(){}var zo=!1;function Sf(e,t,n){if(zo)return e(t,n);zo=!0;try{return wf(e,t,n)}finally{zo=!1,(Wn!==null||Qn!==null)&&(Ef(),vf())}}function zr(e,t){var n=e.stateNode;if(n===null)return null;var o=Eo(n);if(o===null)return null;n=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(x(231,t,typeof n));return n}var Tu=!1;if(Dt)try{var fr={};Object.defineProperty(fr,"passive",{get:function(){Tu=!0}}),window.addEventListener("test",fr,fr),window.removeEventListener("test",fr,fr)}catch{Tu=!1}function Zh(e,t,n,o,l,a,s,p,d){var g=Array.prototype.slice.call(arguments,3);try{t.apply(n,g)}catch(m){this.onError(m)}}var Lr=!1,Wi=null,Qi=!1,Iu=null,qh={onError:function(e){Lr=!0,Wi=e}};function ep(e,t,n,o,l,a,s,p,d){Lr=!1,Wi=null,Zh.apply(qh,arguments)}function tp(e,t,n,o,l,a,s,p,d){if(ep.apply(this,arguments),Lr){if(Lr){var g=Wi;Lr=!1,Wi=null}else throw Error(x(198));Qi||(Qi=!0,Iu=g)}}function In(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function _f(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 Ts(e){if(In(e)!==e)throw Error(x(188))}function np(e){var t=e.alternate;if(!t){if(t=In(e),t===null)throw Error(x(188));return t!==e?null:e}for(var n=e,o=t;;){var l=n.return;if(l===null)break;var a=l.alternate;if(a===null){if(o=l.return,o!==null){n=o;continue}break}if(l.child===a.child){for(a=l.child;a;){if(a===n)return Ts(l),e;if(a===o)return Ts(l),t;a=a.sibling}throw Error(x(188))}if(n.return!==o.return)n=l,o=a;else{for(var s=!1,p=l.child;p;){if(p===n){s=!0,n=l,o=a;break}if(p===o){s=!0,o=l,n=a;break}p=p.sibling}if(!s){for(p=a.child;p;){if(p===n){s=!0,n=a,o=l;break}if(p===o){s=!0,o=a,n=l;break}p=p.sibling}if(!s)throw Error(x(189))}}if(n.alternate!==o)throw Error(x(190))}if(n.tag!==3)throw Error(x(188));return n.stateNode.current===n?e:t}function Bf(e){return e=np(e),e!==null?kf(e):null}function kf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=kf(e);if(t!==null)return t;e=e.sibling}return null}var Af=Je.unstable_scheduleCallback,Is=Je.unstable_cancelCallback,rp=Je.unstable_shouldYield,ip=Je.unstable_requestPaint,we=Je.unstable_now,op=Je.unstable_getCurrentPriorityLevel,Bl=Je.unstable_ImmediatePriority,Cf=Je.unstable_UserBlockingPriority,Yi=Je.unstable_NormalPriority,up=Je.unstable_LowPriority,Lf=Je.unstable_IdlePriority,go=null,Ct=null;function lp(e){if(Ct&&typeof Ct.onCommitFiberRoot=="function")try{Ct.onCommitFiberRoot(go,e,void 0,(e.current.flags&128)===128)}catch{}}var wt=Math.clz32?Math.clz32:fp,sp=Math.log,ap=Math.LN2;function fp(e){return e>>>=0,e===0?32:31-(sp(e)/ap|0)|0}var ai=64,fi=4194304;function kr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Gi(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,l=e.suspendedLanes,a=e.pingedLanes,s=n&268435455;if(s!==0){var p=s&~l;p!==0?o=kr(p):(a&=s,a!==0&&(o=kr(a)))}else s=n&~l,s!==0?o=kr(s):a!==0&&(o=kr(a));if(o===0)return 0;if(t!==0&&t!==o&&!(t&l)&&(l=o&-o,a=t&-t,l>=a||l===16&&(a&4194240)!==0))return t;if(o&4&&(o|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)n=31-wt(t),l=1<<n,o|=e[n],t&=~l;return o}function cp(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function hp(e,t){for(var n=e.suspendedLanes,o=e.pingedLanes,l=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-wt(a),p=1<<s,d=l[s];d===-1?(!(p&n)||p&o)&&(l[s]=cp(p,t)):d<=t&&(e.expiredLanes|=p),a&=~p}}function Nu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Tf(){var e=ai;return ai<<=1,!(ai&4194240)&&(ai=64),e}function bo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ti(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wt(t),e[t]=n}function pp(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-wt(n),a=1<<l;t[l]=0,o[l]=-1,e[l]=-1,n&=~a}}function kl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var o=31-wt(n),l=1<<o;l&t|e[o]&t&&(e[o]|=t),n&=~l}}var ie=0;function If(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Nf,Al,Uf,xf,Rf,Uu=!1,ci=[],en=null,tn=null,nn=null,br=new Map,Dr=new Map,Xt=[],dp="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ns(e,t){switch(e){case"focusin":case"focusout":en=null;break;case"dragenter":case"dragleave":tn=null;break;case"mouseover":case"mouseout":nn=null;break;case"pointerover":case"pointerout":br.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dr.delete(t.pointerId)}}function cr(e,t,n,o,l,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:o,nativeEvent:a,targetContainers:[l]},t!==null&&(t=ri(t),t!==null&&Al(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function yp(e,t,n,o,l){switch(t){case"focusin":return en=cr(en,e,t,n,o,l),!0;case"dragenter":return tn=cr(tn,e,t,n,o,l),!0;case"mouseover":return nn=cr(nn,e,t,n,o,l),!0;case"pointerover":var a=l.pointerId;return br.set(a,cr(br.get(a)||null,e,t,n,o,l)),!0;case"gotpointercapture":return a=l.pointerId,Dr.set(a,cr(Dr.get(a)||null,e,t,n,o,l)),!0}return!1}function Of(e){var t=mn(e.target);if(t!==null){var n=In(t);if(n!==null){if(t=n.tag,t===13){if(t=_f(n),t!==null){e.blockedOn=t,Rf(e.priority,function(){Uf(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ii(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=xu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var o=new n.constructor(n.type,n);Cu=o,n.target.dispatchEvent(o),Cu=null}else return t=ri(n),t!==null&&Al(t),e.blockedOn=n,!1;t.shift()}return!0}function Us(e,t,n){Ii(e)&&n.delete(t)}function gp(){Uu=!1,en!==null&&Ii(en)&&(en=null),tn!==null&&Ii(tn)&&(tn=null),nn!==null&&Ii(nn)&&(nn=null),br.forEach(Us),Dr.forEach(Us)}function hr(e,t){e.blockedOn===t&&(e.blockedOn=null,Uu||(Uu=!0,Je.unstable_scheduleCallback(Je.unstable_NormalPriority,gp)))}function $r(e){function t(l){return hr(l,e)}if(0<ci.length){hr(ci[0],e);for(var n=1;n<ci.length;n++){var o=ci[n];o.blockedOn===e&&(o.blockedOn=null)}}for(en!==null&&hr(en,e),tn!==null&&hr(tn,e),nn!==null&&hr(nn,e),br.forEach(t),Dr.forEach(t),n=0;n<Xt.length;n++)o=Xt[n],o.blockedOn===e&&(o.blockedOn=null);for(;0<Xt.length&&(n=Xt[0],n.blockedOn===null);)Of(n),n.blockedOn===null&&Xt.shift()}var Yn=Ht.ReactCurrentBatchConfig,Ki=!0;function mp(e,t,n,o){var l=ie,a=Yn.transition;Yn.transition=null;try{ie=1,Cl(e,t,n,o)}finally{ie=l,Yn.transition=a}}function vp(e,t,n,o){var l=ie,a=Yn.transition;Yn.transition=null;try{ie=4,Cl(e,t,n,o)}finally{ie=l,Yn.transition=a}}function Cl(e,t,n,o){if(Ki){var l=xu(e,t,n,o);if(l===null)Go(e,t,o,Xi,n),Ns(e,o);else if(yp(l,e,t,n,o))o.stopPropagation();else if(Ns(e,o),t&4&&-1<dp.indexOf(e)){for(;l!==null;){var a=ri(l);if(a!==null&&Nf(a),a=xu(e,t,n,o),a===null&&Go(e,t,o,Xi,n),a===l)break;l=a}l!==null&&o.stopPropagation()}else Go(e,t,o,null,n)}}var Xi=null;function xu(e,t,n,o){if(Xi=null,e=_l(o),e=mn(e),e!==null)if(t=In(e),t===null)e=null;else if(n=t.tag,n===13){if(e=_f(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Xi=e,null}function Mf(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(op()){case Bl:return 1;case Cf:return 4;case Yi:case up:return 16;case Lf:return 536870912;default:return 16}default:return 16}}var Zt=null,Ll=null,Ni=null;function Pf(){if(Ni)return Ni;var e,t=Ll,n=t.length,o,l="value"in Zt?Zt.value:Zt.textContent,a=l.length;for(e=0;e<n&&t[e]===l[e];e++);var s=n-e;for(o=1;o<=s&&t[n-o]===l[a-o];o++);return Ni=l.slice(e,1<o?1-o:void 0)}function Ui(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 hi(){return!0}function xs(){return!1}function qe(e){function t(n,o,l,a,s){this._reactName=n,this._targetInst=l,this.type=o,this.nativeEvent=a,this.target=s,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(n=e[p],this[p]=n?n(a):a[p]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?hi:xs,this.isPropagationStopped=xs,this}return ge(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=hi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=hi)},persist:function(){},isPersistent:hi}),t}var ir={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tl=qe(ir),ni=ge({},ir,{view:0,detail:0}),wp=qe(ni),Do,$o,pr,mo=ge({},ni,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Il,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!==pr&&(pr&&e.type==="mousemove"?(Do=e.screenX-pr.screenX,$o=e.screenY-pr.screenY):$o=Do=0,pr=e),Do)},movementY:function(e){return"movementY"in e?e.movementY:$o}}),Rs=qe(mo),Ep=ge({},mo,{dataTransfer:0}),Sp=qe(Ep),_p=ge({},ni,{relatedTarget:0}),jo=qe(_p),Bp=ge({},ir,{animationName:0,elapsedTime:0,pseudoElement:0}),kp=qe(Bp),Ap=ge({},ir,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Cp=qe(Ap),Lp=ge({},ir,{data:0}),Os=qe(Lp),Tp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ip={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"},Np={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Up(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Np[e])?!!t[e]:!1}function Il(){return Up}var xp=ge({},ni,{key:function(e){if(e.key){var t=Tp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ui(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ip[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Il,charCode:function(e){return e.type==="keypress"?Ui(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ui(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Rp=qe(xp),Op=ge({},mo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ms=qe(Op),Mp=ge({},ni,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Il}),Pp=qe(Mp),zp=ge({},ir,{propertyName:0,elapsedTime:0,pseudoElement:0}),bp=qe(zp),Dp=ge({},mo,{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}),$p=qe(Dp),jp=[9,13,27,32],Nl=Dt&&"CompositionEvent"in window,Tr=null;Dt&&"documentMode"in document&&(Tr=document.documentMode);var Fp=Dt&&"TextEvent"in window&&!Tr,zf=Dt&&(!Nl||Tr&&8<Tr&&11>=Tr),Ps=" ",zs=!1;function bf(e,t){switch(e){case"keyup":return jp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Df(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var On=!1;function Hp(e,t){switch(e){case"compositionend":return Df(t);case"keypress":return t.which!==32?null:(zs=!0,Ps);case"textInput":return e=t.data,e===Ps&&zs?null:e;default:return null}}function Vp(e,t){if(On)return e==="compositionend"||!Nl&&bf(e,t)?(e=Pf(),Ni=Ll=Zt=null,On=!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 zf&&t.locale!=="ko"?null:t.data;default:return null}}var Wp={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 bs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Wp[e.type]:t==="textarea"}function $f(e,t,n,o){mf(o),t=Ji(t,"onChange"),0<t.length&&(n=new Tl("onChange","change",null,n,o),e.push({event:n,listeners:t}))}var Ir=null,jr=null;function Qp(e){Jf(e,0)}function vo(e){var t=zn(e);if(ff(t))return e}function Yp(e,t){if(e==="change")return t}var jf=!1;if(Dt){var Fo;if(Dt){var Ho="oninput"in document;if(!Ho){var Ds=document.createElement("div");Ds.setAttribute("oninput","return;"),Ho=typeof Ds.oninput=="function"}Fo=Ho}else Fo=!1;jf=Fo&&(!document.documentMode||9<document.documentMode)}function $s(){Ir&&(Ir.detachEvent("onpropertychange",Ff),jr=Ir=null)}function Ff(e){if(e.propertyName==="value"&&vo(jr)){var t=[];$f(t,jr,e,_l(e)),Sf(Qp,t)}}function Gp(e,t,n){e==="focusin"?($s(),Ir=t,jr=n,Ir.attachEvent("onpropertychange",Ff)):e==="focusout"&&$s()}function Kp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vo(jr)}function Xp(e,t){if(e==="click")return vo(t)}function Jp(e,t){if(e==="input"||e==="change")return vo(t)}function Zp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var St=typeof Object.is=="function"?Object.is:Zp;function Fr(e,t){if(St(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++){var l=n[o];if(!du.call(t,l)||!St(e[l],t[l]))return!1}return!0}function js(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fs(e,t){var n=js(e);e=0;for(var o;n;){if(n.nodeType===3){if(o=e+n.textContent.length,e<=t&&o>=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=js(n)}}function Hf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vf(){for(var e=window,t=Vi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vi(e.document)}return t}function Ul(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function qp(e){var t=Vf(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Hf(n.ownerDocument.documentElement,n)){if(o!==null&&Ul(n)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,a=Math.min(o.start,l);o=o.end===void 0?a:Math.min(o.end,l),!e.extend&&a>o&&(l=o,o=a,a=l),l=Fs(n,a);var s=Fs(n,o);l&&s&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),a>o?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var ed=Dt&&"documentMode"in document&&11>=document.documentMode,Mn=null,Ru=null,Nr=null,Ou=!1;function Hs(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ou||Mn==null||Mn!==Vi(o)||(o=Mn,"selectionStart"in o&&Ul(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Nr&&Fr(Nr,o)||(Nr=o,o=Ji(Ru,"onSelect"),0<o.length&&(t=new Tl("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=Mn)))}function pi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Pn={animationend:pi("Animation","AnimationEnd"),animationiteration:pi("Animation","AnimationIteration"),animationstart:pi("Animation","AnimationStart"),transitionend:pi("Transition","TransitionEnd")},Vo={},Wf={};Dt&&(Wf=document.createElement("div").style,"AnimationEvent"in window||(delete Pn.animationend.animation,delete Pn.animationiteration.animation,delete Pn.animationstart.animation),"TransitionEvent"in window||delete Pn.transitionend.transition);function wo(e){if(Vo[e])return Vo[e];if(!Pn[e])return e;var t=Pn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Wf)return Vo[e]=t[n];return e}var Qf=wo("animationend"),Yf=wo("animationiteration"),Gf=wo("animationstart"),Kf=wo("transitionend"),Xf=new Map,Vs="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function cn(e,t){Xf.set(e,t),Tn(t,[e])}for(var Wo=0;Wo<Vs.length;Wo++){var Qo=Vs[Wo],td=Qo.toLowerCase(),nd=Qo[0].toUpperCase()+Qo.slice(1);cn(td,"on"+nd)}cn(Qf,"onAnimationEnd");cn(Yf,"onAnimationIteration");cn(Gf,"onAnimationStart");cn("dblclick","onDoubleClick");cn("focusin","onFocus");cn("focusout","onBlur");cn(Kf,"onTransitionEnd");Xn("onMouseEnter",["mouseout","mouseover"]);Xn("onMouseLeave",["mouseout","mouseover"]);Xn("onPointerEnter",["pointerout","pointerover"]);Xn("onPointerLeave",["pointerout","pointerover"]);Tn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Tn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Tn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Tn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Tn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Tn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ar="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(" "),rd=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ar));function Ws(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,tp(o,t,void 0,e),e.currentTarget=null}function Jf(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var o=e[n],l=o.event;o=o.listeners;e:{var a=void 0;if(t)for(var s=o.length-1;0<=s;s--){var p=o[s],d=p.instance,g=p.currentTarget;if(p=p.listener,d!==a&&l.isPropagationStopped())break e;Ws(l,p,g),a=d}else for(s=0;s<o.length;s++){if(p=o[s],d=p.instance,g=p.currentTarget,p=p.listener,d!==a&&l.isPropagationStopped())break e;Ws(l,p,g),a=d}}}if(Qi)throw e=Iu,Qi=!1,Iu=null,e}function se(e,t){var n=t[Du];n===void 0&&(n=t[Du]=new Set);var o=e+"__bubble";n.has(o)||(Zf(t,e,2,!1),n.add(o))}function Yo(e,t,n){var o=0;t&&(o|=4),Zf(n,e,o,t)}var di="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[di]){e[di]=!0,of.forEach(function(n){n!=="selectionchange"&&(rd.has(n)||Yo(n,!1,e),Yo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[di]||(t[di]=!0,Yo("selectionchange",!1,t))}}function Zf(e,t,n,o){switch(Mf(t)){case 1:var l=mp;break;case 4:l=vp;break;default:l=Cl}n=l.bind(null,t,n,e),l=void 0,!Tu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),o?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Go(e,t,n,o,l){var a=o;if(!(t&1)&&!(t&2)&&o!==null)e:for(;;){if(o===null)return;var s=o.tag;if(s===3||s===4){var p=o.stateNode.containerInfo;if(p===l||p.nodeType===8&&p.parentNode===l)break;if(s===4)for(s=o.return;s!==null;){var d=s.tag;if((d===3||d===4)&&(d=s.stateNode.containerInfo,d===l||d.nodeType===8&&d.parentNode===l))return;s=s.return}for(;p!==null;){if(s=mn(p),s===null)return;if(d=s.tag,d===5||d===6){o=a=s;continue e}p=p.parentNode}}o=o.return}Sf(function(){var g=a,m=_l(n),S=[];e:{var B=Xf.get(e);if(B!==void 0){var A=Tl,I=e;switch(e){case"keypress":if(Ui(n)===0)break e;case"keydown":case"keyup":A=Rp;break;case"focusin":I="focus",A=jo;break;case"focusout":I="blur",A=jo;break;case"beforeblur":case"afterblur":A=jo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":A=Rs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=Sp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=Pp;break;case Qf:case Yf:case Gf:A=kp;break;case Kf:A=bp;break;case"scroll":A=wp;break;case"wheel":A=$p;break;case"copy":case"cut":case"paste":A=Cp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=Ms}var T=(t&4)!==0,z=!T&&e==="scroll",v=T?B!==null?B+"Capture":null:B;T=[];for(var E=g,k;E!==null;){k=E;var U=k.stateNode;if(k.tag===5&&U!==null&&(k=U,v!==null&&(U=zr(E,v),U!=null&&T.push(Vr(E,U,k)))),z)break;E=E.return}0<T.length&&(B=new A(B,I,null,n,m),S.push({event:B,listeners:T}))}}if(!(t&7)){e:{if(B=e==="mouseover"||e==="pointerover",A=e==="mouseout"||e==="pointerout",B&&n!==Cu&&(I=n.relatedTarget||n.fromElement)&&(mn(I)||I[$t]))break e;if((A||B)&&(B=m.window===m?m:(B=m.ownerDocument)?B.defaultView||B.parentWindow:window,A?(I=n.relatedTarget||n.toElement,A=g,I=I?mn(I):null,I!==null&&(z=In(I),I!==z||I.tag!==5&&I.tag!==6)&&(I=null)):(A=null,I=g),A!==I)){if(T=Rs,U="onMouseLeave",v="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(T=Ms,U="onPointerLeave",v="onPointerEnter",E="pointer"),z=A==null?B:zn(A),k=I==null?B:zn(I),B=new T(U,E+"leave",A,n,m),B.target=z,B.relatedTarget=k,U=null,mn(m)===g&&(T=new T(v,E+"enter",I,n,m),T.target=k,T.relatedTarget=z,U=T),z=U,A&&I)t:{for(T=A,v=I,E=0,k=T;k;k=Nn(k))E++;for(k=0,U=v;U;U=Nn(U))k++;for(;0<E-k;)T=Nn(T),E--;for(;0<k-E;)v=Nn(v),k--;for(;E--;){if(T===v||v!==null&&T===v.alternate)break t;T=Nn(T),v=Nn(v)}T=null}else T=null;A!==null&&Qs(S,B,A,T,!1),I!==null&&z!==null&&Qs(S,z,I,T,!0)}}e:{if(B=g?zn(g):window,A=B.nodeName&&B.nodeName.toLowerCase(),A==="select"||A==="input"&&B.type==="file")var O=Yp;else if(bs(B))if(jf)O=Jp;else{O=Kp;var b=Gp}else(A=B.nodeName)&&A.toLowerCase()==="input"&&(B.type==="checkbox"||B.type==="radio")&&(O=Xp);if(O&&(O=O(e,g))){$f(S,O,n,m);break e}b&&b(e,B,g),e==="focusout"&&(b=B._wrapperState)&&b.controlled&&B.type==="number"&&Su(B,"number",B.value)}switch(b=g?zn(g):window,e){case"focusin":(bs(b)||b.contentEditable==="true")&&(Mn=b,Ru=g,Nr=null);break;case"focusout":Nr=Ru=Mn=null;break;case"mousedown":Ou=!0;break;case"contextmenu":case"mouseup":case"dragend":Ou=!1,Hs(S,n,m);break;case"selectionchange":if(ed)break;case"keydown":case"keyup":Hs(S,n,m)}var $;if(Nl)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else On?bf(e,n)&&(j="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(j="onCompositionStart");j&&(zf&&n.locale!=="ko"&&(On||j!=="onCompositionStart"?j==="onCompositionEnd"&&On&&($=Pf()):(Zt=m,Ll="value"in Zt?Zt.value:Zt.textContent,On=!0)),b=Ji(g,j),0<b.length&&(j=new Os(j,e,null,n,m),S.push({event:j,listeners:b}),$?j.data=$:($=Df(n),$!==null&&(j.data=$)))),($=Fp?Hp(e,n):Vp(e,n))&&(g=Ji(g,"onBeforeInput"),0<g.length&&(m=new Os("onBeforeInput","beforeinput",null,n,m),S.push({event:m,listeners:g}),m.data=$))}Jf(S,t)})}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ji(e,t){for(var n=t+"Capture",o=[];e!==null;){var l=e,a=l.stateNode;l.tag===5&&a!==null&&(l=a,a=zr(e,n),a!=null&&o.unshift(Vr(e,a,l)),a=zr(e,t),a!=null&&o.push(Vr(e,a,l))),e=e.return}return o}function Nn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Qs(e,t,n,o,l){for(var a=t._reactName,s=[];n!==null&&n!==o;){var p=n,d=p.alternate,g=p.stateNode;if(d!==null&&d===o)break;p.tag===5&&g!==null&&(p=g,l?(d=zr(n,a),d!=null&&s.unshift(Vr(n,d,p))):l||(d=zr(n,a),d!=null&&s.push(Vr(n,d,p)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var id=/\r\n?/g,od=/\u0000|\uFFFD/g;function Ys(e){return(typeof e=="string"?e:""+e).replace(id,`
38
- `).replace(od,"")}function yi(e,t,n){if(t=Ys(t),Ys(e)!==t&&n)throw Error(x(425))}function Zi(){}var Mu=null,Pu=null;function zu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var bu=typeof setTimeout=="function"?setTimeout:void 0,ud=typeof clearTimeout=="function"?clearTimeout:void 0,Gs=typeof Promise=="function"?Promise:void 0,ld=typeof queueMicrotask=="function"?queueMicrotask:typeof Gs<"u"?function(e){return Gs.resolve(null).then(e).catch(sd)}:bu;function sd(e){setTimeout(function(){throw e})}function Ko(e,t){var n=t,o=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(o===0){e.removeChild(l),$r(t);return}o--}else n!=="$"&&n!=="$?"&&n!=="$!"||o++;n=l}while(n);$r(t)}function rn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Ks(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var or=Math.random().toString(36).slice(2),At="__reactFiber$"+or,Wr="__reactProps$"+or,$t="__reactContainer$"+or,Du="__reactEvents$"+or,ad="__reactListeners$"+or,fd="__reactHandles$"+or;function mn(e){var t=e[At];if(t)return t;for(var n=e.parentNode;n;){if(t=n[$t]||n[At]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ks(e);e!==null;){if(n=e[At])return n;e=Ks(e)}return t}e=n,n=e.parentNode}return null}function ri(e){return e=e[At]||e[$t],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function zn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(x(33))}function Eo(e){return e[Wr]||null}var $u=[],bn=-1;function hn(e){return{current:e}}function ae(e){0>bn||(e.current=$u[bn],$u[bn]=null,bn--)}function ue(e,t){bn++,$u[bn]=e.current,e.current=t}var fn={},Me=hn(fn),Ve=hn(!1),Bn=fn;function Jn(e,t){var n=e.type.contextTypes;if(!n)return fn;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var l={},a;for(a in n)l[a]=t[a];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function We(e){return e=e.childContextTypes,e!=null}function qi(){ae(Ve),ae(Me)}function Xs(e,t,n){if(Me.current!==fn)throw Error(x(168));ue(Me,t),ue(Ve,n)}function qf(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var l in o)if(!(l in t))throw Error(x(108,Gh(e)||"Unknown",l));return ge({},n,o)}function eo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fn,Bn=Me.current,ue(Me,e),ue(Ve,Ve.current),!0}function Js(e,t,n){var o=e.stateNode;if(!o)throw Error(x(169));n?(e=qf(e,t,Bn),o.__reactInternalMemoizedMergedChildContext=e,ae(Ve),ae(Me),ue(Me,e)):ae(Ve),ue(Ve,n)}var Ot=null,So=!1,Xo=!1;function ec(e){Ot===null?Ot=[e]:Ot.push(e)}function cd(e){So=!0,ec(e)}function pn(){if(!Xo&&Ot!==null){Xo=!0;var e=0,t=ie;try{var n=Ot;for(ie=1;e<n.length;e++){var o=n[e];do o=o(!0);while(o!==null)}Ot=null,So=!1}catch(l){throw Ot!==null&&(Ot=Ot.slice(e+1)),Af(Bl,pn),l}finally{ie=t,Xo=!1}}return null}var Dn=[],$n=0,to=null,no=0,rt=[],it=0,kn=null,Pt=1,zt="";function yn(e,t){Dn[$n++]=no,Dn[$n++]=to,to=e,no=t}function tc(e,t,n){rt[it++]=Pt,rt[it++]=zt,rt[it++]=kn,kn=e;var o=Pt;e=zt;var l=32-wt(o)-1;o&=~(1<<l),n+=1;var a=32-wt(t)+l;if(30<a){var s=l-l%5;a=(o&(1<<s)-1).toString(32),o>>=s,l-=s,Pt=1<<32-wt(t)+l|n<<l|o,zt=a+e}else Pt=1<<a|n<<l|o,zt=e}function xl(e){e.return!==null&&(yn(e,1),tc(e,1,0))}function Rl(e){for(;e===to;)to=Dn[--$n],Dn[$n]=null,no=Dn[--$n],Dn[$n]=null;for(;e===kn;)kn=rt[--it],rt[it]=null,zt=rt[--it],rt[it]=null,Pt=rt[--it],rt[it]=null}var Xe=null,Ke=null,ce=!1,vt=null;function nc(e,t){var n=ut(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zs(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Xe=e,Ke=rn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Xe=e,Ke=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=kn!==null?{id:Pt,overflow:zt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ut(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Xe=e,Ke=null,!0):!1;default:return!1}}function ju(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Fu(e){if(ce){var t=Ke;if(t){var n=t;if(!Zs(e,t)){if(ju(e))throw Error(x(418));t=rn(n.nextSibling);var o=Xe;t&&Zs(e,t)?nc(o,n):(e.flags=e.flags&-4097|2,ce=!1,Xe=e)}}else{if(ju(e))throw Error(x(418));e.flags=e.flags&-4097|2,ce=!1,Xe=e}}}function qs(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Xe=e}function gi(e){if(e!==Xe)return!1;if(!ce)return qs(e),ce=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!zu(e.type,e.memoizedProps)),t&&(t=Ke)){if(ju(e))throw rc(),Error(x(418));for(;t;)nc(e,t),t=rn(t.nextSibling)}if(qs(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(x(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ke=rn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ke=null}}else Ke=Xe?rn(e.stateNode.nextSibling):null;return!0}function rc(){for(var e=Ke;e;)e=rn(e.nextSibling)}function Zn(){Ke=Xe=null,ce=!1}function Ol(e){vt===null?vt=[e]:vt.push(e)}var hd=Ht.ReactCurrentBatchConfig;function dr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(x(309));var o=n.stateNode}if(!o)throw Error(x(147,e));var l=o,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(s){var p=l.refs;s===null?delete p[a]:p[a]=s},t._stringRef=a,t)}if(typeof e!="string")throw Error(x(284));if(!n._owner)throw Error(x(290,e))}return e}function mi(e,t){throw e=Object.prototype.toString.call(t),Error(x(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ea(e){var t=e._init;return t(e._payload)}function ic(e){function t(v,E){if(e){var k=v.deletions;k===null?(v.deletions=[E],v.flags|=16):k.push(E)}}function n(v,E){if(!e)return null;for(;E!==null;)t(v,E),E=E.sibling;return null}function o(v,E){for(v=new Map;E!==null;)E.key!==null?v.set(E.key,E):v.set(E.index,E),E=E.sibling;return v}function l(v,E){return v=sn(v,E),v.index=0,v.sibling=null,v}function a(v,E,k){return v.index=k,e?(k=v.alternate,k!==null?(k=k.index,k<E?(v.flags|=2,E):k):(v.flags|=2,E)):(v.flags|=1048576,E)}function s(v){return e&&v.alternate===null&&(v.flags|=2),v}function p(v,E,k,U){return E===null||E.tag!==6?(E=ru(k,v.mode,U),E.return=v,E):(E=l(E,k),E.return=v,E)}function d(v,E,k,U){var O=k.type;return O===Rn?m(v,E,k.props.children,U,k.key):E!==null&&(E.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Yt&&ea(O)===E.type)?(U=l(E,k.props),U.ref=dr(v,E,k),U.return=v,U):(U=bi(k.type,k.key,k.props,null,v.mode,U),U.ref=dr(v,E,k),U.return=v,U)}function g(v,E,k,U){return E===null||E.tag!==4||E.stateNode.containerInfo!==k.containerInfo||E.stateNode.implementation!==k.implementation?(E=iu(k,v.mode,U),E.return=v,E):(E=l(E,k.children||[]),E.return=v,E)}function m(v,E,k,U,O){return E===null||E.tag!==7?(E=Sn(k,v.mode,U,O),E.return=v,E):(E=l(E,k),E.return=v,E)}function S(v,E,k){if(typeof E=="string"&&E!==""||typeof E=="number")return E=ru(""+E,v.mode,k),E.return=v,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case ui:return k=bi(E.type,E.key,E.props,null,v.mode,k),k.ref=dr(v,null,E),k.return=v,k;case xn:return E=iu(E,v.mode,k),E.return=v,E;case Yt:var U=E._init;return S(v,U(E._payload),k)}if(Br(E)||ar(E))return E=Sn(E,v.mode,k,null),E.return=v,E;mi(v,E)}return null}function B(v,E,k,U){var O=E!==null?E.key:null;if(typeof k=="string"&&k!==""||typeof k=="number")return O!==null?null:p(v,E,""+k,U);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case ui:return k.key===O?d(v,E,k,U):null;case xn:return k.key===O?g(v,E,k,U):null;case Yt:return O=k._init,B(v,E,O(k._payload),U)}if(Br(k)||ar(k))return O!==null?null:m(v,E,k,U,null);mi(v,k)}return null}function A(v,E,k,U,O){if(typeof U=="string"&&U!==""||typeof U=="number")return v=v.get(k)||null,p(E,v,""+U,O);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case ui:return v=v.get(U.key===null?k:U.key)||null,d(E,v,U,O);case xn:return v=v.get(U.key===null?k:U.key)||null,g(E,v,U,O);case Yt:var b=U._init;return A(v,E,k,b(U._payload),O)}if(Br(U)||ar(U))return v=v.get(k)||null,m(E,v,U,O,null);mi(E,U)}return null}function I(v,E,k,U){for(var O=null,b=null,$=E,j=E=0,te=null;$!==null&&j<k.length;j++){$.index>j?(te=$,$=null):te=$.sibling;var K=B(v,$,k[j],U);if(K===null){$===null&&($=te);break}e&&$&&K.alternate===null&&t(v,$),E=a(K,E,j),b===null?O=K:b.sibling=K,b=K,$=te}if(j===k.length)return n(v,$),ce&&yn(v,j),O;if($===null){for(;j<k.length;j++)$=S(v,k[j],U),$!==null&&(E=a($,E,j),b===null?O=$:b.sibling=$,b=$);return ce&&yn(v,j),O}for($=o(v,$);j<k.length;j++)te=A($,v,j,k[j],U),te!==null&&(e&&te.alternate!==null&&$.delete(te.key===null?j:te.key),E=a(te,E,j),b===null?O=te:b.sibling=te,b=te);return e&&$.forEach(function(Ce){return t(v,Ce)}),ce&&yn(v,j),O}function T(v,E,k,U){var O=ar(k);if(typeof O!="function")throw Error(x(150));if(k=O.call(k),k==null)throw Error(x(151));for(var b=O=null,$=E,j=E=0,te=null,K=k.next();$!==null&&!K.done;j++,K=k.next()){$.index>j?(te=$,$=null):te=$.sibling;var Ce=B(v,$,K.value,U);if(Ce===null){$===null&&($=te);break}e&&$&&Ce.alternate===null&&t(v,$),E=a(Ce,E,j),b===null?O=Ce:b.sibling=Ce,b=Ce,$=te}if(K.done)return n(v,$),ce&&yn(v,j),O;if($===null){for(;!K.done;j++,K=k.next())K=S(v,K.value,U),K!==null&&(E=a(K,E,j),b===null?O=K:b.sibling=K,b=K);return ce&&yn(v,j),O}for($=o(v,$);!K.done;j++,K=k.next())K=A($,v,j,K.value,U),K!==null&&(e&&K.alternate!==null&&$.delete(K.key===null?j:K.key),E=a(K,E,j),b===null?O=K:b.sibling=K,b=K);return e&&$.forEach(function(ft){return t(v,ft)}),ce&&yn(v,j),O}function z(v,E,k,U){if(typeof k=="object"&&k!==null&&k.type===Rn&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case ui:e:{for(var O=k.key,b=E;b!==null;){if(b.key===O){if(O=k.type,O===Rn){if(b.tag===7){n(v,b.sibling),E=l(b,k.props.children),E.return=v,v=E;break e}}else if(b.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Yt&&ea(O)===b.type){n(v,b.sibling),E=l(b,k.props),E.ref=dr(v,b,k),E.return=v,v=E;break e}n(v,b);break}else t(v,b);b=b.sibling}k.type===Rn?(E=Sn(k.props.children,v.mode,U,k.key),E.return=v,v=E):(U=bi(k.type,k.key,k.props,null,v.mode,U),U.ref=dr(v,E,k),U.return=v,v=U)}return s(v);case xn:e:{for(b=k.key;E!==null;){if(E.key===b)if(E.tag===4&&E.stateNode.containerInfo===k.containerInfo&&E.stateNode.implementation===k.implementation){n(v,E.sibling),E=l(E,k.children||[]),E.return=v,v=E;break e}else{n(v,E);break}else t(v,E);E=E.sibling}E=iu(k,v.mode,U),E.return=v,v=E}return s(v);case Yt:return b=k._init,z(v,E,b(k._payload),U)}if(Br(k))return I(v,E,k,U);if(ar(k))return T(v,E,k,U);mi(v,k)}return typeof k=="string"&&k!==""||typeof k=="number"?(k=""+k,E!==null&&E.tag===6?(n(v,E.sibling),E=l(E,k),E.return=v,v=E):(n(v,E),E=ru(k,v.mode,U),E.return=v,v=E),s(v)):n(v,E)}return z}var qn=ic(!0),oc=ic(!1),ro=hn(null),io=null,jn=null,Ml=null;function Pl(){Ml=jn=io=null}function zl(e){var t=ro.current;ae(ro),e._currentValue=t}function Hu(e,t,n){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function Gn(e,t){io=e,Ml=jn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(He=!0),e.firstContext=null)}function st(e){var t=e._currentValue;if(Ml!==e)if(e={context:e,memoizedValue:t,next:null},jn===null){if(io===null)throw Error(x(308));jn=e,io.dependencies={lanes:0,firstContext:e}}else jn=jn.next=e;return t}var vn=null;function bl(e){vn===null?vn=[e]:vn.push(e)}function uc(e,t,n,o){var l=t.interleaved;return l===null?(n.next=n,bl(t)):(n.next=l.next,l.next=n),t.interleaved=n,jt(e,o)}function jt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Gt=!1;function Dl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function bt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function on(e,t,n){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,q&2){var l=o.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),o.pending=t,jt(e,n)}return l=o.interleaved,l===null?(t.next=t,bl(o)):(t.next=l.next,l.next=t),o.interleaved=t,jt(e,n)}function xi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,kl(e,n)}}function ta(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var l=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?l=a=s:a=a.next=s,n=n.next}while(n!==null);a===null?l=a=t:a=a.next=t}else l=a=t;n={baseState:o.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function oo(e,t,n,o){var l=e.updateQueue;Gt=!1;var a=l.firstBaseUpdate,s=l.lastBaseUpdate,p=l.shared.pending;if(p!==null){l.shared.pending=null;var d=p,g=d.next;d.next=null,s===null?a=g:s.next=g,s=d;var m=e.alternate;m!==null&&(m=m.updateQueue,p=m.lastBaseUpdate,p!==s&&(p===null?m.firstBaseUpdate=g:p.next=g,m.lastBaseUpdate=d))}if(a!==null){var S=l.baseState;s=0,m=g=d=null,p=a;do{var B=p.lane,A=p.eventTime;if((o&B)===B){m!==null&&(m=m.next={eventTime:A,lane:0,tag:p.tag,payload:p.payload,callback:p.callback,next:null});e:{var I=e,T=p;switch(B=t,A=n,T.tag){case 1:if(I=T.payload,typeof I=="function"){S=I.call(A,S,B);break e}S=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=T.payload,B=typeof I=="function"?I.call(A,S,B):I,B==null)break e;S=ge({},S,B);break e;case 2:Gt=!0}}p.callback!==null&&p.lane!==0&&(e.flags|=64,B=l.effects,B===null?l.effects=[p]:B.push(p))}else A={eventTime:A,lane:B,tag:p.tag,payload:p.payload,callback:p.callback,next:null},m===null?(g=m=A,d=S):m=m.next=A,s|=B;if(p=p.next,p===null){if(p=l.shared.pending,p===null)break;B=p,p=B.next,B.next=null,l.lastBaseUpdate=B,l.shared.pending=null}}while(!0);if(m===null&&(d=S),l.baseState=d,l.firstBaseUpdate=g,l.lastBaseUpdate=m,t=l.shared.interleaved,t!==null){l=t;do s|=l.lane,l=l.next;while(l!==t)}else a===null&&(l.shared.lanes=0);Cn|=s,e.lanes=s,e.memoizedState=S}}function na(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],l=o.callback;if(l!==null){if(o.callback=null,o=n,typeof l!="function")throw Error(x(191,l));l.call(o)}}}var ii={},Lt=hn(ii),Qr=hn(ii),Yr=hn(ii);function wn(e){if(e===ii)throw Error(x(174));return e}function $l(e,t){switch(ue(Yr,t),ue(Qr,e),ue(Lt,ii),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Bu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Bu(t,e)}ae(Lt),ue(Lt,t)}function er(){ae(Lt),ae(Qr),ae(Yr)}function sc(e){wn(Yr.current);var t=wn(Lt.current),n=Bu(t,e.type);t!==n&&(ue(Qr,e),ue(Lt,n))}function jl(e){Qr.current===e&&(ae(Lt),ae(Qr))}var de=hn(0);function uo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Jo=[];function Fl(){for(var e=0;e<Jo.length;e++)Jo[e]._workInProgressVersionPrimary=null;Jo.length=0}var Ri=Ht.ReactCurrentDispatcher,Zo=Ht.ReactCurrentBatchConfig,An=0,ye=null,Se=null,ke=null,lo=!1,Ur=!1,Gr=0,pd=0;function xe(){throw Error(x(321))}function Hl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!St(e[n],t[n]))return!1;return!0}function Vl(e,t,n,o,l,a){if(An=a,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ri.current=e===null||e.memoizedState===null?md:vd,e=n(o,l),Ur){a=0;do{if(Ur=!1,Gr=0,25<=a)throw Error(x(301));a+=1,ke=Se=null,t.updateQueue=null,Ri.current=wd,e=n(o,l)}while(Ur)}if(Ri.current=so,t=Se!==null&&Se.next!==null,An=0,ke=Se=ye=null,lo=!1,t)throw Error(x(300));return e}function Wl(){var e=Gr!==0;return Gr=0,e}function kt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ke===null?ye.memoizedState=ke=e:ke=ke.next=e,ke}function at(){if(Se===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Se.next;var t=ke===null?ye.memoizedState:ke.next;if(t!==null)ke=t,Se=e;else{if(e===null)throw Error(x(310));Se=e,e={memoizedState:Se.memoizedState,baseState:Se.baseState,baseQueue:Se.baseQueue,queue:Se.queue,next:null},ke===null?ye.memoizedState=ke=e:ke=ke.next=e}return ke}function Kr(e,t){return typeof t=="function"?t(e):t}function qo(e){var t=at(),n=t.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=e;var o=Se,l=o.baseQueue,a=n.pending;if(a!==null){if(l!==null){var s=l.next;l.next=a.next,a.next=s}o.baseQueue=l=a,n.pending=null}if(l!==null){a=l.next,o=o.baseState;var p=s=null,d=null,g=a;do{var m=g.lane;if((An&m)===m)d!==null&&(d=d.next={lane:0,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null}),o=g.hasEagerState?g.eagerState:e(o,g.action);else{var S={lane:m,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null};d===null?(p=d=S,s=o):d=d.next=S,ye.lanes|=m,Cn|=m}g=g.next}while(g!==null&&g!==a);d===null?s=o:d.next=p,St(o,t.memoizedState)||(He=!0),t.memoizedState=o,t.baseState=s,t.baseQueue=d,n.lastRenderedState=o}if(e=n.interleaved,e!==null){l=e;do a=l.lane,ye.lanes|=a,Cn|=a,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function eu(e){var t=at(),n=t.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=e;var o=n.dispatch,l=n.pending,a=t.memoizedState;if(l!==null){n.pending=null;var s=l=l.next;do a=e(a,s.action),s=s.next;while(s!==l);St(a,t.memoizedState)||(He=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,o]}function ac(){}function fc(e,t){var n=ye,o=at(),l=t(),a=!St(o.memoizedState,l);if(a&&(o.memoizedState=l,He=!0),o=o.queue,Ql(pc.bind(null,n,o,e),[e]),o.getSnapshot!==t||a||ke!==null&&ke.memoizedState.tag&1){if(n.flags|=2048,Xr(9,hc.bind(null,n,o,l,t),void 0,null),Ae===null)throw Error(x(349));An&30||cc(n,t,l)}return l}function cc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function hc(e,t,n,o){t.value=n,t.getSnapshot=o,dc(t)&&yc(e)}function pc(e,t,n){return n(function(){dc(t)&&yc(e)})}function dc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!St(e,n)}catch{return!0}}function yc(e){var t=jt(e,1);t!==null&&Et(t,e,1,-1)}function ra(e){var t=kt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Kr,lastRenderedState:e},t.queue=e,e=e.dispatch=gd.bind(null,ye,e),[t.memoizedState,e]}function Xr(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e)),e}function gc(){return at().memoizedState}function Oi(e,t,n,o){var l=kt();ye.flags|=e,l.memoizedState=Xr(1|t,n,void 0,o===void 0?null:o)}function _o(e,t,n,o){var l=at();o=o===void 0?null:o;var a=void 0;if(Se!==null){var s=Se.memoizedState;if(a=s.destroy,o!==null&&Hl(o,s.deps)){l.memoizedState=Xr(t,n,a,o);return}}ye.flags|=e,l.memoizedState=Xr(1|t,n,a,o)}function ia(e,t){return Oi(8390656,8,e,t)}function Ql(e,t){return _o(2048,8,e,t)}function mc(e,t){return _o(4,2,e,t)}function vc(e,t){return _o(4,4,e,t)}function wc(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ec(e,t,n){return n=n!=null?n.concat([e]):null,_o(4,4,wc.bind(null,t,e),n)}function Yl(){}function Sc(e,t){var n=at();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&Hl(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function _c(e,t){var n=at();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&Hl(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function Bc(e,t,n){return An&21?(St(n,t)||(n=Tf(),ye.lanes|=n,Cn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,He=!0),e.memoizedState=n)}function dd(e,t){var n=ie;ie=n!==0&&4>n?n:4,e(!0);var o=Zo.transition;Zo.transition={};try{e(!1),t()}finally{ie=n,Zo.transition=o}}function kc(){return at().memoizedState}function yd(e,t,n){var o=ln(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},Ac(e))Cc(t,n);else if(n=uc(e,t,n,o),n!==null){var l=ze();Et(n,e,o,l),Lc(n,t,o)}}function gd(e,t,n){var o=ln(e),l={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ac(e))Cc(t,l);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,p=a(s,n);if(l.hasEagerState=!0,l.eagerState=p,St(p,s)){var d=t.interleaved;d===null?(l.next=l,bl(t)):(l.next=d.next,d.next=l),t.interleaved=l;return}}catch{}finally{}n=uc(e,t,l,o),n!==null&&(l=ze(),Et(n,e,o,l),Lc(n,t,o))}}function Ac(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Cc(e,t){Ur=lo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Lc(e,t,n){if(n&4194240){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,kl(e,n)}}var so={readContext:st,useCallback:xe,useContext:xe,useEffect:xe,useImperativeHandle:xe,useInsertionEffect:xe,useLayoutEffect:xe,useMemo:xe,useReducer:xe,useRef:xe,useState:xe,useDebugValue:xe,useDeferredValue:xe,useTransition:xe,useMutableSource:xe,useSyncExternalStore:xe,useId:xe,unstable_isNewReconciler:!1},md={readContext:st,useCallback:function(e,t){return kt().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:ia,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Oi(4194308,4,wc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Oi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Oi(4,2,e,t)},useMemo:function(e,t){var n=kt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=kt();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=yd.bind(null,ye,e),[o.memoizedState,e]},useRef:function(e){var t=kt();return e={current:e},t.memoizedState=e},useState:ra,useDebugValue:Yl,useDeferredValue:function(e){return kt().memoizedState=e},useTransition:function(){var e=ra(!1),t=e[0];return e=dd.bind(null,e[1]),kt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=ye,l=kt();if(ce){if(n===void 0)throw Error(x(407));n=n()}else{if(n=t(),Ae===null)throw Error(x(349));An&30||cc(o,t,n)}l.memoizedState=n;var a={value:n,getSnapshot:t};return l.queue=a,ia(pc.bind(null,o,a,e),[e]),o.flags|=2048,Xr(9,hc.bind(null,o,a,n,t),void 0,null),n},useId:function(){var e=kt(),t=Ae.identifierPrefix;if(ce){var n=zt,o=Pt;n=(o&~(1<<32-wt(o)-1)).toString(32)+n,t=":"+t+"R"+n,n=Gr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=pd++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},vd={readContext:st,useCallback:Sc,useContext:st,useEffect:Ql,useImperativeHandle:Ec,useInsertionEffect:mc,useLayoutEffect:vc,useMemo:_c,useReducer:qo,useRef:gc,useState:function(){return qo(Kr)},useDebugValue:Yl,useDeferredValue:function(e){var t=at();return Bc(t,Se.memoizedState,e)},useTransition:function(){var e=qo(Kr)[0],t=at().memoizedState;return[e,t]},useMutableSource:ac,useSyncExternalStore:fc,useId:kc,unstable_isNewReconciler:!1},wd={readContext:st,useCallback:Sc,useContext:st,useEffect:Ql,useImperativeHandle:Ec,useInsertionEffect:mc,useLayoutEffect:vc,useMemo:_c,useReducer:eu,useRef:gc,useState:function(){return eu(Kr)},useDebugValue:Yl,useDeferredValue:function(e){var t=at();return Se===null?t.memoizedState=e:Bc(t,Se.memoizedState,e)},useTransition:function(){var e=eu(Kr)[0],t=at().memoizedState;return[e,t]},useMutableSource:ac,useSyncExternalStore:fc,useId:kc,unstable_isNewReconciler:!1};function yt(e,t){if(e&&e.defaultProps){t=ge({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Vu(e,t,n,o){t=e.memoizedState,n=n(o,t),n=n==null?t:ge({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Bo={isMounted:function(e){return(e=e._reactInternals)?In(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=ze(),l=ln(e),a=bt(o,l);a.payload=t,n!=null&&(a.callback=n),t=on(e,a,l),t!==null&&(Et(t,e,l,o),xi(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=ze(),l=ln(e),a=bt(o,l);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=on(e,a,l),t!==null&&(Et(t,e,l,o),xi(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ze(),o=ln(e),l=bt(n,o);l.tag=2,t!=null&&(l.callback=t),t=on(e,l,o),t!==null&&(Et(t,e,o,n),xi(t,e,o))}};function oa(e,t,n,o,l,a,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,a,s):t.prototype&&t.prototype.isPureReactComponent?!Fr(n,o)||!Fr(l,a):!0}function Tc(e,t,n){var o=!1,l=fn,a=t.contextType;return typeof a=="object"&&a!==null?a=st(a):(l=We(t)?Bn:Me.current,o=t.contextTypes,a=(o=o!=null)?Jn(e,l):fn),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Bo,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=a),t}function ua(e,t,n,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&Bo.enqueueReplaceState(t,t.state,null)}function Wu(e,t,n,o){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},Dl(e);var a=t.contextType;typeof a=="object"&&a!==null?l.context=st(a):(a=We(t)?Bn:Me.current,l.context=Jn(e,a)),l.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(Vu(e,t,a,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&Bo.enqueueReplaceState(l,l.state,null),oo(e,n,l,o),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function tr(e,t){try{var n="",o=t;do n+=Yh(o),o=o.return;while(o);var l=n}catch(a){l=`
39
- Error generating stack: `+a.message+`
40
- `+a.stack}return{value:e,source:t,stack:l,digest:null}}function tu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Qu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Ed=typeof WeakMap=="function"?WeakMap:Map;function Ic(e,t,n){n=bt(-1,n),n.tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){fo||(fo=!0,nl=o),Qu(e,t)},n}function Nc(e,t,n){n=bt(-1,n),n.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var l=t.value;n.payload=function(){return o(l)},n.callback=function(){Qu(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){Qu(e,t),typeof o!="function"&&(un===null?un=new Set([this]):un.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function la(e,t,n){var o=e.pingCache;if(o===null){o=e.pingCache=new Ed;var l=new Set;o.set(t,l)}else l=o.get(t),l===void 0&&(l=new Set,o.set(t,l));l.has(n)||(l.add(n),e=Od.bind(null,e,t,n),t.then(e,e))}function sa(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function aa(e,t,n,o,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=bt(-1,1),t.tag=2,on(n,t,1))),n.lanes|=1),e)}var Sd=Ht.ReactCurrentOwner,He=!1;function Pe(e,t,n,o){t.child=e===null?oc(t,null,n,o):qn(t,e.child,n,o)}function fa(e,t,n,o,l){n=n.render;var a=t.ref;return Gn(t,l),o=Vl(e,t,n,o,a,l),n=Wl(),e!==null&&!He?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ft(e,t,l)):(ce&&n&&xl(t),t.flags|=1,Pe(e,t,o,l),t.child)}function ca(e,t,n,o,l){if(e===null){var a=n.type;return typeof a=="function"&&!ts(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Uc(e,t,a,o,l)):(e=bi(n.type,null,o,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&l)){var s=a.memoizedProps;if(n=n.compare,n=n!==null?n:Fr,n(s,o)&&e.ref===t.ref)return Ft(e,t,l)}return t.flags|=1,e=sn(a,o),e.ref=t.ref,e.return=t,t.child=e}function Uc(e,t,n,o,l){if(e!==null){var a=e.memoizedProps;if(Fr(a,o)&&e.ref===t.ref)if(He=!1,t.pendingProps=o=a,(e.lanes&l)!==0)e.flags&131072&&(He=!0);else return t.lanes=e.lanes,Ft(e,t,l)}return Yu(e,t,n,o,l)}function xc(e,t,n){var o=t.pendingProps,l=o.children,a=e!==null?e.memoizedState:null;if(o.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ue(Hn,Ge),Ge|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ue(Hn,Ge),Ge|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=a!==null?a.baseLanes:n,ue(Hn,Ge),Ge|=o}else a!==null?(o=a.baseLanes|n,t.memoizedState=null):o=n,ue(Hn,Ge),Ge|=o;return Pe(e,t,l,n),t.child}function Rc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yu(e,t,n,o,l){var a=We(n)?Bn:Me.current;return a=Jn(t,a),Gn(t,l),n=Vl(e,t,n,o,a,l),o=Wl(),e!==null&&!He?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ft(e,t,l)):(ce&&o&&xl(t),t.flags|=1,Pe(e,t,n,l),t.child)}function ha(e,t,n,o,l){if(We(n)){var a=!0;eo(t)}else a=!1;if(Gn(t,l),t.stateNode===null)Mi(e,t),Tc(t,n,o),Wu(t,n,o,l),o=!0;else if(e===null){var s=t.stateNode,p=t.memoizedProps;s.props=p;var d=s.context,g=n.contextType;typeof g=="object"&&g!==null?g=st(g):(g=We(n)?Bn:Me.current,g=Jn(t,g));var m=n.getDerivedStateFromProps,S=typeof m=="function"||typeof s.getSnapshotBeforeUpdate=="function";S||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(p!==o||d!==g)&&ua(t,s,o,g),Gt=!1;var B=t.memoizedState;s.state=B,oo(t,o,s,l),d=t.memoizedState,p!==o||B!==d||Ve.current||Gt?(typeof m=="function"&&(Vu(t,n,m,o),d=t.memoizedState),(p=Gt||oa(t,n,p,o,B,d,g))?(S||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=d),s.props=o,s.state=d,s.context=g,o=p):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{s=t.stateNode,lc(e,t),p=t.memoizedProps,g=t.type===t.elementType?p:yt(t.type,p),s.props=g,S=t.pendingProps,B=s.context,d=n.contextType,typeof d=="object"&&d!==null?d=st(d):(d=We(n)?Bn:Me.current,d=Jn(t,d));var A=n.getDerivedStateFromProps;(m=typeof A=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(p!==S||B!==d)&&ua(t,s,o,d),Gt=!1,B=t.memoizedState,s.state=B,oo(t,o,s,l);var I=t.memoizedState;p!==S||B!==I||Ve.current||Gt?(typeof A=="function"&&(Vu(t,n,A,o),I=t.memoizedState),(g=Gt||oa(t,n,g,o,B,I,d)||!1)?(m||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(o,I,d),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(o,I,d)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||p===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=I),s.props=o,s.state=I,s.context=d,o=g):(typeof s.componentDidUpdate!="function"||p===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),o=!1)}return Gu(e,t,n,o,a,l)}function Gu(e,t,n,o,l,a){Rc(e,t);var s=(t.flags&128)!==0;if(!o&&!s)return l&&Js(t,n,!1),Ft(e,t,a);o=t.stateNode,Sd.current=t;var p=s&&typeof n.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&s?(t.child=qn(t,e.child,null,a),t.child=qn(t,null,p,a)):Pe(e,t,p,a),t.memoizedState=o.state,l&&Js(t,n,!0),t.child}function Oc(e){var t=e.stateNode;t.pendingContext?Xs(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Xs(e,t.context,!1),$l(e,t.containerInfo)}function pa(e,t,n,o,l){return Zn(),Ol(l),t.flags|=256,Pe(e,t,n,o),t.child}var Ku={dehydrated:null,treeContext:null,retryLane:0};function Xu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Mc(e,t,n){var o=t.pendingProps,l=de.current,a=!1,s=(t.flags&128)!==0,p;if((p=s)||(p=e!==null&&e.memoizedState===null?!1:(l&2)!==0),p?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),ue(de,l&1),e===null)return Fu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=o.children,e=o.fallback,a?(o=t.mode,a=t.child,s={mode:"hidden",children:s},!(o&1)&&a!==null?(a.childLanes=0,a.pendingProps=s):a=Co(s,o,0,null),e=Sn(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Xu(n),t.memoizedState=Ku,e):Gl(t,s));if(l=e.memoizedState,l!==null&&(p=l.dehydrated,p!==null))return _d(e,t,s,o,p,l,n);if(a){a=o.fallback,s=t.mode,l=e.child,p=l.sibling;var d={mode:"hidden",children:o.children};return!(s&1)&&t.child!==l?(o=t.child,o.childLanes=0,o.pendingProps=d,t.deletions=null):(o=sn(l,d),o.subtreeFlags=l.subtreeFlags&14680064),p!==null?a=sn(p,a):(a=Sn(a,s,n,null),a.flags|=2),a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,s=e.child.memoizedState,s=s===null?Xu(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=Ku,o}return a=e.child,e=a.sibling,o=sn(a,{mode:"visible",children:o.children}),!(t.mode&1)&&(o.lanes=n),o.return=t,o.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Gl(e,t){return t=Co({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function vi(e,t,n,o){return o!==null&&Ol(o),qn(t,e.child,null,n),e=Gl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _d(e,t,n,o,l,a,s){if(n)return t.flags&256?(t.flags&=-257,o=tu(Error(x(422))),vi(e,t,s,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=o.fallback,l=t.mode,o=Co({mode:"visible",children:o.children},l,0,null),a=Sn(a,l,s,null),a.flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,t.mode&1&&qn(t,e.child,null,s),t.child.memoizedState=Xu(s),t.memoizedState=Ku,a);if(!(t.mode&1))return vi(e,t,s,null);if(l.data==="$!"){if(o=l.nextSibling&&l.nextSibling.dataset,o)var p=o.dgst;return o=p,a=Error(x(419)),o=tu(a,o,void 0),vi(e,t,s,o)}if(p=(s&e.childLanes)!==0,He||p){if(o=Ae,o!==null){switch(s&-s){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(o.suspendedLanes|s)?0:l,l!==0&&l!==a.retryLane&&(a.retryLane=l,jt(e,l),Et(o,e,l,-1))}return es(),o=tu(Error(x(421))),vi(e,t,s,o)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Md.bind(null,e),l._reactRetry=t,null):(e=a.treeContext,Ke=rn(l.nextSibling),Xe=t,ce=!0,vt=null,e!==null&&(rt[it++]=Pt,rt[it++]=zt,rt[it++]=kn,Pt=e.id,zt=e.overflow,kn=t),t=Gl(t,o.children),t.flags|=4096,t)}function da(e,t,n){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Hu(e.return,t,n)}function nu(e,t,n,o,l){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:l}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=o,a.tail=n,a.tailMode=l)}function Pc(e,t,n){var o=t.pendingProps,l=o.revealOrder,a=o.tail;if(Pe(e,t,o.children,n),o=de.current,o&2)o=o&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&da(e,n,t);else if(e.tag===19)da(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(ue(de,o),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&uo(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),nu(t,!1,l,n,a);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&uo(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}nu(t,!0,n,null,a);break;case"together":nu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Mi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ft(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Cn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(x(153));if(t.child!==null){for(e=t.child,n=sn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=sn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Bd(e,t,n){switch(t.tag){case 3:Oc(t),Zn();break;case 5:sc(t);break;case 1:We(t.type)&&eo(t);break;case 4:$l(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,l=t.memoizedProps.value;ue(ro,o._currentValue),o._currentValue=l;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(ue(de,de.current&1),t.flags|=128,null):n&t.child.childLanes?Mc(e,t,n):(ue(de,de.current&1),e=Ft(e,t,n),e!==null?e.sibling:null);ue(de,de.current&1);break;case 19:if(o=(n&t.childLanes)!==0,e.flags&128){if(o)return Pc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),ue(de,de.current),o)break;return null;case 22:case 23:return t.lanes=0,xc(e,t,n)}return Ft(e,t,n)}var zc,Ju,bc,Dc;zc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ju=function(){};bc=function(e,t,n,o){var l=e.memoizedProps;if(l!==o){e=t.stateNode,wn(Lt.current);var a=null;switch(n){case"input":l=wu(e,l),o=wu(e,o),a=[];break;case"select":l=ge({},l,{value:void 0}),o=ge({},o,{value:void 0}),a=[];break;case"textarea":l=_u(e,l),o=_u(e,o),a=[];break;default:typeof l.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=Zi)}ku(n,o);var s;n=null;for(g in l)if(!o.hasOwnProperty(g)&&l.hasOwnProperty(g)&&l[g]!=null)if(g==="style"){var p=l[g];for(s in p)p.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else g!=="dangerouslySetInnerHTML"&&g!=="children"&&g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&g!=="autoFocus"&&(Mr.hasOwnProperty(g)?a||(a=[]):(a=a||[]).push(g,null));for(g in o){var d=o[g];if(p=l!=null?l[g]:void 0,o.hasOwnProperty(g)&&d!==p&&(d!=null||p!=null))if(g==="style")if(p){for(s in p)!p.hasOwnProperty(s)||d&&d.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in d)d.hasOwnProperty(s)&&p[s]!==d[s]&&(n||(n={}),n[s]=d[s])}else n||(a||(a=[]),a.push(g,n)),n=d;else g==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,p=p?p.__html:void 0,d!=null&&p!==d&&(a=a||[]).push(g,d)):g==="children"?typeof d!="string"&&typeof d!="number"||(a=a||[]).push(g,""+d):g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&(Mr.hasOwnProperty(g)?(d!=null&&g==="onScroll"&&se("scroll",e),a||p===d||(a=[])):(a=a||[]).push(g,d))}n&&(a=a||[]).push("style",n);var g=a;(t.updateQueue=g)&&(t.flags|=4)}};Dc=function(e,t,n,o){n!==o&&(t.flags|=4)};function yr(e,t){if(!ce)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Re(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,o=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,o|=l.subtreeFlags&14680064,o|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,o|=l.subtreeFlags,o|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=o,e.childLanes=n,t}function kd(e,t,n){var o=t.pendingProps;switch(Rl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Re(t),null;case 1:return We(t.type)&&qi(),Re(t),null;case 3:return o=t.stateNode,er(),ae(Ve),ae(Me),Fl(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(gi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,vt!==null&&(ol(vt),vt=null))),Ju(e,t),Re(t),null;case 5:jl(t);var l=wn(Yr.current);if(n=t.type,e!==null&&t.stateNode!=null)bc(e,t,n,o,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(x(166));return Re(t),null}if(e=wn(Lt.current),gi(t)){o=t.stateNode,n=t.type;var a=t.memoizedProps;switch(o[At]=t,o[Wr]=a,e=(t.mode&1)!==0,n){case"dialog":se("cancel",o),se("close",o);break;case"iframe":case"object":case"embed":se("load",o);break;case"video":case"audio":for(l=0;l<Ar.length;l++)se(Ar[l],o);break;case"source":se("error",o);break;case"img":case"image":case"link":se("error",o),se("load",o);break;case"details":se("toggle",o);break;case"input":Bs(o,a),se("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!a.multiple},se("invalid",o);break;case"textarea":As(o,a),se("invalid",o)}ku(n,a),l=null;for(var s in a)if(a.hasOwnProperty(s)){var p=a[s];s==="children"?typeof p=="string"?o.textContent!==p&&(a.suppressHydrationWarning!==!0&&yi(o.textContent,p,e),l=["children",p]):typeof p=="number"&&o.textContent!==""+p&&(a.suppressHydrationWarning!==!0&&yi(o.textContent,p,e),l=["children",""+p]):Mr.hasOwnProperty(s)&&p!=null&&s==="onScroll"&&se("scroll",o)}switch(n){case"input":li(o),ks(o,a,!0);break;case"textarea":li(o),Cs(o);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(o.onclick=Zi)}o=l,t.updateQueue=o,o!==null&&(t.flags|=4)}else{s=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=pf(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=s.createElement(n,{is:o.is}):(e=s.createElement(n),n==="select"&&(s=e,o.multiple?s.multiple=!0:o.size&&(s.size=o.size))):e=s.createElementNS(e,n),e[At]=t,e[Wr]=o,zc(e,t,!1,!1),t.stateNode=e;e:{switch(s=Au(n,o),n){case"dialog":se("cancel",e),se("close",e),l=o;break;case"iframe":case"object":case"embed":se("load",e),l=o;break;case"video":case"audio":for(l=0;l<Ar.length;l++)se(Ar[l],e);l=o;break;case"source":se("error",e),l=o;break;case"img":case"image":case"link":se("error",e),se("load",e),l=o;break;case"details":se("toggle",e),l=o;break;case"input":Bs(e,o),l=wu(e,o),se("invalid",e);break;case"option":l=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},l=ge({},o,{value:void 0}),se("invalid",e);break;case"textarea":As(e,o),l=_u(e,o),se("invalid",e);break;default:l=o}ku(n,l),p=l;for(a in p)if(p.hasOwnProperty(a)){var d=p[a];a==="style"?gf(e,d):a==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,d!=null&&df(e,d)):a==="children"?typeof d=="string"?(n!=="textarea"||d!=="")&&Pr(e,d):typeof d=="number"&&Pr(e,""+d):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Mr.hasOwnProperty(a)?d!=null&&a==="onScroll"&&se("scroll",e):d!=null&&vl(e,a,d,s))}switch(n){case"input":li(e),ks(e,o,!1);break;case"textarea":li(e),Cs(e);break;case"option":o.value!=null&&e.setAttribute("value",""+an(o.value));break;case"select":e.multiple=!!o.multiple,a=o.value,a!=null?Vn(e,!!o.multiple,a,!1):o.defaultValue!=null&&Vn(e,!!o.multiple,o.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Zi)}switch(n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Re(t),null;case 6:if(e&&t.stateNode!=null)Dc(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(x(166));if(n=wn(Yr.current),wn(Lt.current),gi(t)){if(o=t.stateNode,n=t.memoizedProps,o[At]=t,(a=o.nodeValue!==n)&&(e=Xe,e!==null))switch(e.tag){case 3:yi(o.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&yi(o.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else o=(n.nodeType===9?n:n.ownerDocument).createTextNode(o),o[At]=t,t.stateNode=o}return Re(t),null;case 13:if(ae(de),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ce&&Ke!==null&&t.mode&1&&!(t.flags&128))rc(),Zn(),t.flags|=98560,a=!1;else if(a=gi(t),o!==null&&o.dehydrated!==null){if(e===null){if(!a)throw Error(x(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(x(317));a[At]=t}else Zn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Re(t),a=!1}else vt!==null&&(ol(vt),vt=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,t.mode&1&&(e===null||de.current&1?Be===0&&(Be=3):es())),t.updateQueue!==null&&(t.flags|=4),Re(t),null);case 4:return er(),Ju(e,t),e===null&&Hr(t.stateNode.containerInfo),Re(t),null;case 10:return zl(t.type._context),Re(t),null;case 17:return We(t.type)&&qi(),Re(t),null;case 19:if(ae(de),a=t.memoizedState,a===null)return Re(t),null;if(o=(t.flags&128)!==0,s=a.rendering,s===null)if(o)yr(a,!1);else{if(Be!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=uo(e),s!==null){for(t.flags|=128,yr(a,!1),o=s.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=n,n=t.child;n!==null;)a=n,e=o,a.flags&=14680066,s=a.alternate,s===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ue(de,de.current&1|2),t.child}e=e.sibling}a.tail!==null&&we()>nr&&(t.flags|=128,o=!0,yr(a,!1),t.lanes=4194304)}else{if(!o)if(e=uo(s),e!==null){if(t.flags|=128,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),yr(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!ce)return Re(t),null}else 2*we()-a.renderingStartTime>nr&&n!==1073741824&&(t.flags|=128,o=!0,yr(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(n=a.last,n!==null?n.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=we(),t.sibling=null,n=de.current,ue(de,o?n&1|2:n&1),t):(Re(t),null);case 22:case 23:return ql(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&t.mode&1?Ge&1073741824&&(Re(t),t.subtreeFlags&6&&(t.flags|=8192)):Re(t),null;case 24:return null;case 25:return null}throw Error(x(156,t.tag))}function Ad(e,t){switch(Rl(t),t.tag){case 1:return We(t.type)&&qi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return er(),ae(Ve),ae(Me),Fl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return jl(t),null;case 13:if(ae(de),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(x(340));Zn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(de),null;case 4:return er(),null;case 10:return zl(t.type._context),null;case 22:case 23:return ql(),null;case 24:return null;default:return null}}var wi=!1,Oe=!1,Cd=typeof WeakSet=="function"?WeakSet:Set,D=null;function Fn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(o){me(e,t,o)}else n.current=null}function Zu(e,t,n){try{n()}catch(o){me(e,t,o)}}var ya=!1;function Ld(e,t){if(Mu=Ki,e=Vf(),Ul(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var l=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var s=0,p=-1,d=-1,g=0,m=0,S=e,B=null;t:for(;;){for(var A;S!==n||l!==0&&S.nodeType!==3||(p=s+l),S!==a||o!==0&&S.nodeType!==3||(d=s+o),S.nodeType===3&&(s+=S.nodeValue.length),(A=S.firstChild)!==null;)B=S,S=A;for(;;){if(S===e)break t;if(B===n&&++g===l&&(p=s),B===a&&++m===o&&(d=s),(A=S.nextSibling)!==null)break;S=B,B=S.parentNode}S=A}n=p===-1||d===-1?null:{start:p,end:d}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pu={focusedElem:e,selectionRange:n},Ki=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var I=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(I!==null){var T=I.memoizedProps,z=I.memoizedState,v=t.stateNode,E=v.getSnapshotBeforeUpdate(t.elementType===t.type?T:yt(t.type,T),z);v.__reactInternalSnapshotBeforeUpdate=E}break;case 3:var k=t.stateNode.containerInfo;k.nodeType===1?k.textContent="":k.nodeType===9&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch(U){me(t,t.return,U)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return I=ya,ya=!1,I}function xr(e,t,n){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var l=o=o.next;do{if((l.tag&e)===e){var a=l.destroy;l.destroy=void 0,a!==void 0&&Zu(t,n,a)}l=l.next}while(l!==o)}}function ko(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function qu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function $c(e){var t=e.alternate;t!==null&&(e.alternate=null,$c(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[At],delete t[Wr],delete t[Du],delete t[ad],delete t[fd])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function jc(e){return e.tag===5||e.tag===3||e.tag===4}function ga(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function el(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Zi));else if(o!==4&&(e=e.child,e!==null))for(el(e,t,n),e=e.sibling;e!==null;)el(e,t,n),e=e.sibling}function tl(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(tl(e,t,n),e=e.sibling;e!==null;)tl(e,t,n),e=e.sibling}var Te=null,gt=!1;function Qt(e,t,n){for(n=n.child;n!==null;)Fc(e,t,n),n=n.sibling}function Fc(e,t,n){if(Ct&&typeof Ct.onCommitFiberUnmount=="function")try{Ct.onCommitFiberUnmount(go,n)}catch{}switch(n.tag){case 5:Oe||Fn(n,t);case 6:var o=Te,l=gt;Te=null,Qt(e,t,n),Te=o,gt=l,Te!==null&&(gt?(e=Te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Te.removeChild(n.stateNode));break;case 18:Te!==null&&(gt?(e=Te,n=n.stateNode,e.nodeType===8?Ko(e.parentNode,n):e.nodeType===1&&Ko(e,n),$r(e)):Ko(Te,n.stateNode));break;case 4:o=Te,l=gt,Te=n.stateNode.containerInfo,gt=!0,Qt(e,t,n),Te=o,gt=l;break;case 0:case 11:case 14:case 15:if(!Oe&&(o=n.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){l=o=o.next;do{var a=l,s=a.destroy;a=a.tag,s!==void 0&&(a&2||a&4)&&Zu(n,t,s),l=l.next}while(l!==o)}Qt(e,t,n);break;case 1:if(!Oe&&(Fn(n,t),o=n.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(p){me(n,t,p)}Qt(e,t,n);break;case 21:Qt(e,t,n);break;case 22:n.mode&1?(Oe=(o=Oe)||n.memoizedState!==null,Qt(e,t,n),Oe=o):Qt(e,t,n);break;default:Qt(e,t,n)}}function ma(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Cd),t.forEach(function(o){var l=Pd.bind(null,e,o);n.has(o)||(n.add(o),o.then(l,l))})}}function dt(e,t){var n=t.deletions;if(n!==null)for(var o=0;o<n.length;o++){var l=n[o];try{var a=e,s=t,p=s;e:for(;p!==null;){switch(p.tag){case 5:Te=p.stateNode,gt=!1;break e;case 3:Te=p.stateNode.containerInfo,gt=!0;break e;case 4:Te=p.stateNode.containerInfo,gt=!0;break e}p=p.return}if(Te===null)throw Error(x(160));Fc(a,s,l),Te=null,gt=!1;var d=l.alternate;d!==null&&(d.return=null),l.return=null}catch(g){me(l,t,g)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Hc(t,e),t=t.sibling}function Hc(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(dt(t,e),Bt(e),o&4){try{xr(3,e,e.return),ko(3,e)}catch(T){me(e,e.return,T)}try{xr(5,e,e.return)}catch(T){me(e,e.return,T)}}break;case 1:dt(t,e),Bt(e),o&512&&n!==null&&Fn(n,n.return);break;case 5:if(dt(t,e),Bt(e),o&512&&n!==null&&Fn(n,n.return),e.flags&32){var l=e.stateNode;try{Pr(l,"")}catch(T){me(e,e.return,T)}}if(o&4&&(l=e.stateNode,l!=null)){var a=e.memoizedProps,s=n!==null?n.memoizedProps:a,p=e.type,d=e.updateQueue;if(e.updateQueue=null,d!==null)try{p==="input"&&a.type==="radio"&&a.name!=null&&cf(l,a),Au(p,s);var g=Au(p,a);for(s=0;s<d.length;s+=2){var m=d[s],S=d[s+1];m==="style"?gf(l,S):m==="dangerouslySetInnerHTML"?df(l,S):m==="children"?Pr(l,S):vl(l,m,S,g)}switch(p){case"input":Eu(l,a);break;case"textarea":hf(l,a);break;case"select":var B=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!a.multiple;var A=a.value;A!=null?Vn(l,!!a.multiple,A,!1):B!==!!a.multiple&&(a.defaultValue!=null?Vn(l,!!a.multiple,a.defaultValue,!0):Vn(l,!!a.multiple,a.multiple?[]:"",!1))}l[Wr]=a}catch(T){me(e,e.return,T)}}break;case 6:if(dt(t,e),Bt(e),o&4){if(e.stateNode===null)throw Error(x(162));l=e.stateNode,a=e.memoizedProps;try{l.nodeValue=a}catch(T){me(e,e.return,T)}}break;case 3:if(dt(t,e),Bt(e),o&4&&n!==null&&n.memoizedState.isDehydrated)try{$r(t.containerInfo)}catch(T){me(e,e.return,T)}break;case 4:dt(t,e),Bt(e);break;case 13:dt(t,e),Bt(e),l=e.child,l.flags&8192&&(a=l.memoizedState!==null,l.stateNode.isHidden=a,!a||l.alternate!==null&&l.alternate.memoizedState!==null||(Jl=we())),o&4&&ma(e);break;case 22:if(m=n!==null&&n.memoizedState!==null,e.mode&1?(Oe=(g=Oe)||m,dt(t,e),Oe=g):dt(t,e),Bt(e),o&8192){if(g=e.memoizedState!==null,(e.stateNode.isHidden=g)&&!m&&e.mode&1)for(D=e,m=e.child;m!==null;){for(S=D=m;D!==null;){switch(B=D,A=B.child,B.tag){case 0:case 11:case 14:case 15:xr(4,B,B.return);break;case 1:Fn(B,B.return);var I=B.stateNode;if(typeof I.componentWillUnmount=="function"){o=B,n=B.return;try{t=o,I.props=t.memoizedProps,I.state=t.memoizedState,I.componentWillUnmount()}catch(T){me(o,n,T)}}break;case 5:Fn(B,B.return);break;case 22:if(B.memoizedState!==null){wa(S);continue}}A!==null?(A.return=B,D=A):wa(S)}m=m.sibling}e:for(m=null,S=e;;){if(S.tag===5){if(m===null){m=S;try{l=S.stateNode,g?(a=l.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(p=S.stateNode,d=S.memoizedProps.style,s=d!=null&&d.hasOwnProperty("display")?d.display:null,p.style.display=yf("display",s))}catch(T){me(e,e.return,T)}}}else if(S.tag===6){if(m===null)try{S.stateNode.nodeValue=g?"":S.memoizedProps}catch(T){me(e,e.return,T)}}else if((S.tag!==22&&S.tag!==23||S.memoizedState===null||S===e)&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===e)break e;for(;S.sibling===null;){if(S.return===null||S.return===e)break e;m===S&&(m=null),S=S.return}m===S&&(m=null),S.sibling.return=S.return,S=S.sibling}}break;case 19:dt(t,e),Bt(e),o&4&&ma(e);break;case 21:break;default:dt(t,e),Bt(e)}}function Bt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(jc(n)){var o=n;break e}n=n.return}throw Error(x(160))}switch(o.tag){case 5:var l=o.stateNode;o.flags&32&&(Pr(l,""),o.flags&=-33);var a=ga(e);tl(e,a,l);break;case 3:case 4:var s=o.stateNode.containerInfo,p=ga(e);el(e,p,s);break;default:throw Error(x(161))}}catch(d){me(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Td(e,t,n){D=e,Vc(e)}function Vc(e,t,n){for(var o=(e.mode&1)!==0;D!==null;){var l=D,a=l.child;if(l.tag===22&&o){var s=l.memoizedState!==null||wi;if(!s){var p=l.alternate,d=p!==null&&p.memoizedState!==null||Oe;p=wi;var g=Oe;if(wi=s,(Oe=d)&&!g)for(D=l;D!==null;)s=D,d=s.child,s.tag===22&&s.memoizedState!==null?Ea(l):d!==null?(d.return=s,D=d):Ea(l);for(;a!==null;)D=a,Vc(a),a=a.sibling;D=l,wi=p,Oe=g}va(e)}else l.subtreeFlags&8772&&a!==null?(a.return=l,D=a):va(e)}}function va(e){for(;D!==null;){var t=D;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Oe||ko(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!Oe)if(n===null)o.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:yt(t.type,n.memoizedProps);o.componentDidUpdate(l,n.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&na(t,a,o);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}na(t,s,n)}break;case 5:var p=t.stateNode;if(n===null&&t.flags&4){n=p;var d=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":d.autoFocus&&n.focus();break;case"img":d.src&&(n.src=d.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var g=t.alternate;if(g!==null){var m=g.memoizedState;if(m!==null){var S=m.dehydrated;S!==null&&$r(S)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(x(163))}Oe||t.flags&512&&qu(t)}catch(B){me(t,t.return,B)}}if(t===e){D=null;break}if(n=t.sibling,n!==null){n.return=t.return,D=n;break}D=t.return}}function wa(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var n=t.sibling;if(n!==null){n.return=t.return,D=n;break}D=t.return}}function Ea(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ko(4,t)}catch(d){me(t,n,d)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var l=t.return;try{o.componentDidMount()}catch(d){me(t,l,d)}}var a=t.return;try{qu(t)}catch(d){me(t,a,d)}break;case 5:var s=t.return;try{qu(t)}catch(d){me(t,s,d)}}}catch(d){me(t,t.return,d)}if(t===e){D=null;break}var p=t.sibling;if(p!==null){p.return=t.return,D=p;break}D=t.return}}var Id=Math.ceil,ao=Ht.ReactCurrentDispatcher,Kl=Ht.ReactCurrentOwner,lt=Ht.ReactCurrentBatchConfig,q=0,Ae=null,Ee=null,Ie=0,Ge=0,Hn=hn(0),Be=0,Jr=null,Cn=0,Ao=0,Xl=0,Rr=null,Fe=null,Jl=0,nr=1/0,Rt=null,fo=!1,nl=null,un=null,Ei=!1,qt=null,co=0,Or=0,rl=null,Pi=-1,zi=0;function ze(){return q&6?we():Pi!==-1?Pi:Pi=we()}function ln(e){return e.mode&1?q&2&&Ie!==0?Ie&-Ie:hd.transition!==null?(zi===0&&(zi=Tf()),zi):(e=ie,e!==0||(e=window.event,e=e===void 0?16:Mf(e.type)),e):1}function Et(e,t,n,o){if(50<Or)throw Or=0,rl=null,Error(x(185));ti(e,n,o),(!(q&2)||e!==Ae)&&(e===Ae&&(!(q&2)&&(Ao|=n),Be===4&&Jt(e,Ie)),Qe(e,o),n===1&&q===0&&!(t.mode&1)&&(nr=we()+500,So&&pn()))}function Qe(e,t){var n=e.callbackNode;hp(e,t);var o=Gi(e,e===Ae?Ie:0);if(o===0)n!==null&&Is(n),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(n!=null&&Is(n),t===1)e.tag===0?cd(Sa.bind(null,e)):ec(Sa.bind(null,e)),ld(function(){!(q&6)&&pn()}),n=null;else{switch(If(o)){case 1:n=Bl;break;case 4:n=Cf;break;case 16:n=Yi;break;case 536870912:n=Lf;break;default:n=Yi}n=Zc(n,Wc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Wc(e,t){if(Pi=-1,zi=0,q&6)throw Error(x(327));var n=e.callbackNode;if(Kn()&&e.callbackNode!==n)return null;var o=Gi(e,e===Ae?Ie:0);if(o===0)return null;if(o&30||o&e.expiredLanes||t)t=ho(e,o);else{t=o;var l=q;q|=2;var a=Yc();(Ae!==e||Ie!==t)&&(Rt=null,nr=we()+500,En(e,t));do try{xd();break}catch(p){Qc(e,p)}while(!0);Pl(),ao.current=a,q=l,Ee!==null?t=0:(Ae=null,Ie=0,t=Be)}if(t!==0){if(t===2&&(l=Nu(e),l!==0&&(o=l,t=il(e,l))),t===1)throw n=Jr,En(e,0),Jt(e,o),Qe(e,we()),n;if(t===6)Jt(e,o);else{if(l=e.current.alternate,!(o&30)&&!Nd(l)&&(t=ho(e,o),t===2&&(a=Nu(e),a!==0&&(o=a,t=il(e,a))),t===1))throw n=Jr,En(e,0),Jt(e,o),Qe(e,we()),n;switch(e.finishedWork=l,e.finishedLanes=o,t){case 0:case 1:throw Error(x(345));case 2:gn(e,Fe,Rt);break;case 3:if(Jt(e,o),(o&130023424)===o&&(t=Jl+500-we(),10<t)){if(Gi(e,0)!==0)break;if(l=e.suspendedLanes,(l&o)!==o){ze(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=bu(gn.bind(null,e,Fe,Rt),t);break}gn(e,Fe,Rt);break;case 4:if(Jt(e,o),(o&4194240)===o)break;for(t=e.eventTimes,l=-1;0<o;){var s=31-wt(o);a=1<<s,s=t[s],s>l&&(l=s),o&=~a}if(o=l,o=we()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Id(o/1960))-o,10<o){e.timeoutHandle=bu(gn.bind(null,e,Fe,Rt),o);break}gn(e,Fe,Rt);break;case 5:gn(e,Fe,Rt);break;default:throw Error(x(329))}}}return Qe(e,we()),e.callbackNode===n?Wc.bind(null,e):null}function il(e,t){var n=Rr;return e.current.memoizedState.isDehydrated&&(En(e,t).flags|=256),e=ho(e,t),e!==2&&(t=Fe,Fe=n,t!==null&&ol(t)),e}function ol(e){Fe===null?Fe=e:Fe.push.apply(Fe,e)}function Nd(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var o=0;o<n.length;o++){var l=n[o],a=l.getSnapshot;l=l.value;try{if(!St(a(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Jt(e,t){for(t&=~Xl,t&=~Ao,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-wt(t),o=1<<n;e[n]=-1,t&=~o}}function Sa(e){if(q&6)throw Error(x(327));Kn();var t=Gi(e,0);if(!(t&1))return Qe(e,we()),null;var n=ho(e,t);if(e.tag!==0&&n===2){var o=Nu(e);o!==0&&(t=o,n=il(e,o))}if(n===1)throw n=Jr,En(e,0),Jt(e,t),Qe(e,we()),n;if(n===6)throw Error(x(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,gn(e,Fe,Rt),Qe(e,we()),null}function Zl(e,t){var n=q;q|=1;try{return e(t)}finally{q=n,q===0&&(nr=we()+500,So&&pn())}}function Ln(e){qt!==null&&qt.tag===0&&!(q&6)&&Kn();var t=q;q|=1;var n=lt.transition,o=ie;try{if(lt.transition=null,ie=1,e)return e()}finally{ie=o,lt.transition=n,q=t,!(q&6)&&pn()}}function ql(){Ge=Hn.current,ae(Hn)}function En(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ud(n)),Ee!==null)for(n=Ee.return;n!==null;){var o=n;switch(Rl(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&qi();break;case 3:er(),ae(Ve),ae(Me),Fl();break;case 5:jl(o);break;case 4:er();break;case 13:ae(de);break;case 19:ae(de);break;case 10:zl(o.type._context);break;case 22:case 23:ql()}n=n.return}if(Ae=e,Ee=e=sn(e.current,null),Ie=Ge=t,Be=0,Jr=null,Xl=Ao=Cn=0,Fe=Rr=null,vn!==null){for(t=0;t<vn.length;t++)if(n=vn[t],o=n.interleaved,o!==null){n.interleaved=null;var l=o.next,a=n.pending;if(a!==null){var s=a.next;a.next=l,o.next=s}n.pending=o}vn=null}return e}function Qc(e,t){do{var n=Ee;try{if(Pl(),Ri.current=so,lo){for(var o=ye.memoizedState;o!==null;){var l=o.queue;l!==null&&(l.pending=null),o=o.next}lo=!1}if(An=0,ke=Se=ye=null,Ur=!1,Gr=0,Kl.current=null,n===null||n.return===null){Be=1,Jr=t,Ee=null;break}e:{var a=e,s=n.return,p=n,d=t;if(t=Ie,p.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){var g=d,m=p,S=m.tag;if(!(m.mode&1)&&(S===0||S===11||S===15)){var B=m.alternate;B?(m.updateQueue=B.updateQueue,m.memoizedState=B.memoizedState,m.lanes=B.lanes):(m.updateQueue=null,m.memoizedState=null)}var A=sa(s);if(A!==null){A.flags&=-257,aa(A,s,p,a,t),A.mode&1&&la(a,g,t),t=A,d=g;var I=t.updateQueue;if(I===null){var T=new Set;T.add(d),t.updateQueue=T}else I.add(d);break e}else{if(!(t&1)){la(a,g,t),es();break e}d=Error(x(426))}}else if(ce&&p.mode&1){var z=sa(s);if(z!==null){!(z.flags&65536)&&(z.flags|=256),aa(z,s,p,a,t),Ol(tr(d,p));break e}}a=d=tr(d,p),Be!==4&&(Be=2),Rr===null?Rr=[a]:Rr.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var v=Ic(a,d,t);ta(a,v);break e;case 1:p=d;var E=a.type,k=a.stateNode;if(!(a.flags&128)&&(typeof E.getDerivedStateFromError=="function"||k!==null&&typeof k.componentDidCatch=="function"&&(un===null||!un.has(k)))){a.flags|=65536,t&=-t,a.lanes|=t;var U=Nc(a,p,t);ta(a,U);break e}}a=a.return}while(a!==null)}Kc(n)}catch(O){t=O,Ee===n&&n!==null&&(Ee=n=n.return);continue}break}while(!0)}function Yc(){var e=ao.current;return ao.current=so,e===null?so:e}function es(){(Be===0||Be===3||Be===2)&&(Be=4),Ae===null||!(Cn&268435455)&&!(Ao&268435455)||Jt(Ae,Ie)}function ho(e,t){var n=q;q|=2;var o=Yc();(Ae!==e||Ie!==t)&&(Rt=null,En(e,t));do try{Ud();break}catch(l){Qc(e,l)}while(!0);if(Pl(),q=n,ao.current=o,Ee!==null)throw Error(x(261));return Ae=null,Ie=0,Be}function Ud(){for(;Ee!==null;)Gc(Ee)}function xd(){for(;Ee!==null&&!rp();)Gc(Ee)}function Gc(e){var t=Jc(e.alternate,e,Ge);e.memoizedProps=e.pendingProps,t===null?Kc(e):Ee=t,Kl.current=null}function Kc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Ad(n,t),n!==null){n.flags&=32767,Ee=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Be=6,Ee=null;return}}else if(n=kd(n,t,Ge),n!==null){Ee=n;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);Be===0&&(Be=5)}function gn(e,t,n){var o=ie,l=lt.transition;try{lt.transition=null,ie=1,Rd(e,t,n,o)}finally{lt.transition=l,ie=o}return null}function Rd(e,t,n,o){do Kn();while(qt!==null);if(q&6)throw Error(x(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(x(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(pp(e,a),e===Ae&&(Ee=Ae=null,Ie=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ei||(Ei=!0,Zc(Yi,function(){return Kn(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=lt.transition,lt.transition=null;var s=ie;ie=1;var p=q;q|=4,Kl.current=null,Ld(e,n),Hc(n,e),qp(Pu),Ki=!!Mu,Pu=Mu=null,e.current=n,Td(n),ip(),q=p,ie=s,lt.transition=a}else e.current=n;if(Ei&&(Ei=!1,qt=e,co=l),a=e.pendingLanes,a===0&&(un=null),lp(n.stateNode),Qe(e,we()),t!==null)for(o=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],o(l.value,{componentStack:l.stack,digest:l.digest});if(fo)throw fo=!1,e=nl,nl=null,e;return co&1&&e.tag!==0&&Kn(),a=e.pendingLanes,a&1?e===rl?Or++:(Or=0,rl=e):Or=0,pn(),null}function Kn(){if(qt!==null){var e=If(co),t=lt.transition,n=ie;try{if(lt.transition=null,ie=16>e?16:e,qt===null)var o=!1;else{if(e=qt,qt=null,co=0,q&6)throw Error(x(331));var l=q;for(q|=4,D=e.current;D!==null;){var a=D,s=a.child;if(D.flags&16){var p=a.deletions;if(p!==null){for(var d=0;d<p.length;d++){var g=p[d];for(D=g;D!==null;){var m=D;switch(m.tag){case 0:case 11:case 15:xr(8,m,a)}var S=m.child;if(S!==null)S.return=m,D=S;else for(;D!==null;){m=D;var B=m.sibling,A=m.return;if($c(m),m===g){D=null;break}if(B!==null){B.return=A,D=B;break}D=A}}}var I=a.alternate;if(I!==null){var T=I.child;if(T!==null){I.child=null;do{var z=T.sibling;T.sibling=null,T=z}while(T!==null)}}D=a}}if(a.subtreeFlags&2064&&s!==null)s.return=a,D=s;else e:for(;D!==null;){if(a=D,a.flags&2048)switch(a.tag){case 0:case 11:case 15:xr(9,a,a.return)}var v=a.sibling;if(v!==null){v.return=a.return,D=v;break e}D=a.return}}var E=e.current;for(D=E;D!==null;){s=D;var k=s.child;if(s.subtreeFlags&2064&&k!==null)k.return=s,D=k;else e:for(s=E;D!==null;){if(p=D,p.flags&2048)try{switch(p.tag){case 0:case 11:case 15:ko(9,p)}}catch(O){me(p,p.return,O)}if(p===s){D=null;break e}var U=p.sibling;if(U!==null){U.return=p.return,D=U;break e}D=p.return}}if(q=l,pn(),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(go,e)}catch{}o=!0}return o}finally{ie=n,lt.transition=t}}return!1}function _a(e,t,n){t=tr(n,t),t=Ic(e,t,1),e=on(e,t,1),t=ze(),e!==null&&(ti(e,1,t),Qe(e,t))}function me(e,t,n){if(e.tag===3)_a(e,e,n);else for(;t!==null;){if(t.tag===3){_a(t,e,n);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(un===null||!un.has(o))){e=tr(n,e),e=Nc(t,e,1),t=on(t,e,1),e=ze(),t!==null&&(ti(t,1,e),Qe(t,e));break}}t=t.return}}function Od(e,t,n){var o=e.pingCache;o!==null&&o.delete(t),t=ze(),e.pingedLanes|=e.suspendedLanes&n,Ae===e&&(Ie&n)===n&&(Be===4||Be===3&&(Ie&130023424)===Ie&&500>we()-Jl?En(e,0):Xl|=n),Qe(e,t)}function Xc(e,t){t===0&&(e.mode&1?(t=fi,fi<<=1,!(fi&130023424)&&(fi=4194304)):t=1);var n=ze();e=jt(e,t),e!==null&&(ti(e,t,n),Qe(e,n))}function Md(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Xc(e,n)}function Pd(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(x(314))}o!==null&&o.delete(t),Xc(e,n)}var Jc;Jc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ve.current)He=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return He=!1,Bd(e,t,n);He=!!(e.flags&131072)}else He=!1,ce&&t.flags&1048576&&tc(t,no,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Mi(e,t),e=t.pendingProps;var l=Jn(t,Me.current);Gn(t,n),l=Vl(null,t,o,e,l,n);var a=Wl();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,We(o)?(a=!0,eo(t)):a=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Dl(t),l.updater=Bo,t.stateNode=l,l._reactInternals=t,Wu(t,o,e,n),t=Gu(null,t,o,!0,a,n)):(t.tag=0,ce&&a&&xl(t),Pe(null,t,l,n),t=t.child),t;case 16:o=t.elementType;e:{switch(Mi(e,t),e=t.pendingProps,l=o._init,o=l(o._payload),t.type=o,l=t.tag=bd(o),e=yt(o,e),l){case 0:t=Yu(null,t,o,e,n);break e;case 1:t=ha(null,t,o,e,n);break e;case 11:t=fa(null,t,o,e,n);break e;case 14:t=ca(null,t,o,yt(o.type,e),n);break e}throw Error(x(306,o,""))}return t;case 0:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:yt(o,l),Yu(e,t,o,l,n);case 1:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:yt(o,l),ha(e,t,o,l,n);case 3:e:{if(Oc(t),e===null)throw Error(x(387));o=t.pendingProps,a=t.memoizedState,l=a.element,lc(e,t),oo(t,o,null,n);var s=t.memoizedState;if(o=s.element,a.isDehydrated)if(a={element:o,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){l=tr(Error(x(423)),t),t=pa(e,t,o,n,l);break e}else if(o!==l){l=tr(Error(x(424)),t),t=pa(e,t,o,n,l);break e}else for(Ke=rn(t.stateNode.containerInfo.firstChild),Xe=t,ce=!0,vt=null,n=oc(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Zn(),o===l){t=Ft(e,t,n);break e}Pe(e,t,o,n)}t=t.child}return t;case 5:return sc(t),e===null&&Fu(t),o=t.type,l=t.pendingProps,a=e!==null?e.memoizedProps:null,s=l.children,zu(o,l)?s=null:a!==null&&zu(o,a)&&(t.flags|=32),Rc(e,t),Pe(e,t,s,n),t.child;case 6:return e===null&&Fu(t),null;case 13:return Mc(e,t,n);case 4:return $l(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=qn(t,null,o,n):Pe(e,t,o,n),t.child;case 11:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:yt(o,l),fa(e,t,o,l,n);case 7:return Pe(e,t,t.pendingProps,n),t.child;case 8:return Pe(e,t,t.pendingProps.children,n),t.child;case 12:return Pe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,l=t.pendingProps,a=t.memoizedProps,s=l.value,ue(ro,o._currentValue),o._currentValue=s,a!==null)if(St(a.value,s)){if(a.children===l.children&&!Ve.current){t=Ft(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var p=a.dependencies;if(p!==null){s=a.child;for(var d=p.firstContext;d!==null;){if(d.context===o){if(a.tag===1){d=bt(-1,n&-n),d.tag=2;var g=a.updateQueue;if(g!==null){g=g.shared;var m=g.pending;m===null?d.next=d:(d.next=m.next,m.next=d),g.pending=d}}a.lanes|=n,d=a.alternate,d!==null&&(d.lanes|=n),Hu(a.return,n,t),p.lanes|=n;break}d=d.next}}else if(a.tag===10)s=a.type===t.type?null:a.child;else if(a.tag===18){if(s=a.return,s===null)throw Error(x(341));s.lanes|=n,p=s.alternate,p!==null&&(p.lanes|=n),Hu(s,n,t),s=a.sibling}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===t){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}Pe(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,o=t.pendingProps.children,Gn(t,n),l=st(l),o=o(l),t.flags|=1,Pe(e,t,o,n),t.child;case 14:return o=t.type,l=yt(o,t.pendingProps),l=yt(o.type,l),ca(e,t,o,l,n);case 15:return Uc(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:yt(o,l),Mi(e,t),t.tag=1,We(o)?(e=!0,eo(t)):e=!1,Gn(t,n),Tc(t,o,l),Wu(t,o,l,n),Gu(null,t,o,!0,e,n);case 19:return Pc(e,t,n);case 22:return xc(e,t,n)}throw Error(x(156,t.tag))};function Zc(e,t){return Af(e,t)}function zd(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ut(e,t,n,o){return new zd(e,t,n,o)}function ts(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bd(e){if(typeof e=="function")return ts(e)?1:0;if(e!=null){if(e=e.$$typeof,e===El)return 11;if(e===Sl)return 14}return 2}function sn(e,t){var n=e.alternate;return n===null?(n=ut(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function bi(e,t,n,o,l,a){var s=2;if(o=e,typeof e=="function")ts(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Rn:return Sn(n.children,l,a,t);case wl:s=8,l|=8;break;case yu:return e=ut(12,n,t,l|2),e.elementType=yu,e.lanes=a,e;case gu:return e=ut(13,n,t,l),e.elementType=gu,e.lanes=a,e;case mu:return e=ut(19,n,t,l),e.elementType=mu,e.lanes=a,e;case sf:return Co(n,l,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case uf:s=10;break e;case lf:s=9;break e;case El:s=11;break e;case Sl:s=14;break e;case Yt:s=16,o=null;break e}throw Error(x(130,e==null?e:typeof e,""))}return t=ut(s,n,t,l),t.elementType=e,t.type=o,t.lanes=a,t}function Sn(e,t,n,o){return e=ut(7,e,o,t),e.lanes=n,e}function Co(e,t,n,o){return e=ut(22,e,o,t),e.elementType=sf,e.lanes=n,e.stateNode={isHidden:!1},e}function ru(e,t,n){return e=ut(6,e,null,t),e.lanes=n,e}function iu(e,t,n){return t=ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Dd(e,t,n,o,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bo(0),this.expirationTimes=bo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bo(0),this.identifierPrefix=o,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function ns(e,t,n,o,l,a,s,p,d){return e=new Dd(e,t,n,p,d),t===1?(t=1,a===!0&&(t|=8)):t=0,a=ut(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Dl(a),e}function $d(e,t,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:xn,key:o==null?null:""+o,children:e,containerInfo:t,implementation:n}}function qc(e){if(!e)return fn;e=e._reactInternals;e:{if(In(e)!==e||e.tag!==1)throw Error(x(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(We(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(x(171))}if(e.tag===1){var n=e.type;if(We(n))return qf(e,n,t)}return t}function eh(e,t,n,o,l,a,s,p,d){return e=ns(n,o,!0,e,l,a,s,p,d),e.context=qc(null),n=e.current,o=ze(),l=ln(n),a=bt(o,l),a.callback=t??null,on(n,a,l),e.current.lanes=l,ti(e,l,o),Qe(e,o),e}function Lo(e,t,n,o){var l=t.current,a=ze(),s=ln(l);return n=qc(n),t.context===null?t.context=n:t.pendingContext=n,t=bt(a,s),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=on(l,t,s),e!==null&&(Et(e,l,s,a),xi(e,l,s)),s}function po(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Ba(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function rs(e,t){Ba(e,t),(e=e.alternate)&&Ba(e,t)}function jd(){return null}var th=typeof reportError=="function"?reportError:function(e){console.error(e)};function is(e){this._internalRoot=e}To.prototype.render=is.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(x(409));Lo(e,t,null,null)};To.prototype.unmount=is.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ln(function(){Lo(null,e,null,null)}),t[$t]=null}};function To(e){this._internalRoot=e}To.prototype.unstable_scheduleHydration=function(e){if(e){var t=xf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Xt.length&&t!==0&&t<Xt[n].priority;n++);Xt.splice(n,0,e),n===0&&Of(e)}};function os(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Io(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ka(){}function Fd(e,t,n,o,l){if(l){if(typeof o=="function"){var a=o;o=function(){var g=po(s);a.call(g)}}var s=eh(t,o,e,0,null,!1,!1,"",ka);return e._reactRootContainer=s,e[$t]=s.current,Hr(e.nodeType===8?e.parentNode:e),Ln(),s}for(;l=e.lastChild;)e.removeChild(l);if(typeof o=="function"){var p=o;o=function(){var g=po(d);p.call(g)}}var d=ns(e,0,!1,null,null,!1,!1,"",ka);return e._reactRootContainer=d,e[$t]=d.current,Hr(e.nodeType===8?e.parentNode:e),Ln(function(){Lo(t,d,n,o)}),d}function No(e,t,n,o,l){var a=n._reactRootContainer;if(a){var s=a;if(typeof l=="function"){var p=l;l=function(){var d=po(s);p.call(d)}}Lo(t,s,e,l)}else s=Fd(n,t,e,l,o);return po(s)}Nf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=kr(t.pendingLanes);n!==0&&(kl(t,n|1),Qe(t,we()),!(q&6)&&(nr=we()+500,pn()))}break;case 13:Ln(function(){var o=jt(e,1);if(o!==null){var l=ze();Et(o,e,1,l)}}),rs(e,1)}};Al=function(e){if(e.tag===13){var t=jt(e,134217728);if(t!==null){var n=ze();Et(t,e,134217728,n)}rs(e,134217728)}};Uf=function(e){if(e.tag===13){var t=ln(e),n=jt(e,t);if(n!==null){var o=ze();Et(n,e,t,o)}rs(e,t)}};xf=function(){return ie};Rf=function(e,t){var n=ie;try{return ie=e,t()}finally{ie=n}};Lu=function(e,t,n){switch(t){case"input":if(Eu(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var l=Eo(o);if(!l)throw Error(x(90));ff(o),Eu(o,l)}}}break;case"textarea":hf(e,n);break;case"select":t=n.value,t!=null&&Vn(e,!!n.multiple,t,!1)}};wf=Zl;Ef=Ln;var Hd={usingClientEntryPoint:!1,Events:[ri,zn,Eo,mf,vf,Zl]},gr={findFiberByHostInstance:mn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Vd={bundleType:gr.bundleType,version:gr.version,rendererPackageName:gr.rendererPackageName,rendererConfig:gr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ht.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Bf(e),e===null?null:e.stateNode},findFiberByHostInstance:gr.findFiberByHostInstance||jd,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Si=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Si.isDisabled&&Si.supportsFiber)try{go=Si.inject(Vd),Ct=Si}catch{}}Ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hd;Ze.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!os(t))throw Error(x(200));return $d(e,t,null,n)};Ze.createRoot=function(e,t){if(!os(e))throw Error(x(299));var n=!1,o="",l=th;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=ns(e,1,!1,null,null,n,!1,o,l),e[$t]=t.current,Hr(e.nodeType===8?e.parentNode:e),new is(t)};Ze.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(x(188)):(e=Object.keys(e).join(","),Error(x(268,e)));return e=Bf(t),e=e===null?null:e.stateNode,e};Ze.flushSync=function(e){return Ln(e)};Ze.hydrate=function(e,t,n){if(!Io(t))throw Error(x(200));return No(null,e,t,!0,n)};Ze.hydrateRoot=function(e,t,n){if(!os(e))throw Error(x(405));var o=n!=null&&n.hydratedSources||null,l=!1,a="",s=th;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=eh(t,null,e,1,n??null,l,!1,a,s),e[$t]=t.current,Hr(e),o)for(e=0;e<o.length;e++)n=o[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new To(t)};Ze.render=function(e,t,n){if(!Io(t))throw Error(x(200));return No(null,e,t,!1,n)};Ze.unmountComponentAtNode=function(e){if(!Io(e))throw Error(x(40));return e._reactRootContainer?(Ln(function(){No(null,null,e,!1,function(){e._reactRootContainer=null,e[$t]=null})}),!0):!1};Ze.unstable_batchedUpdates=Zl;Ze.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!Io(n))throw Error(x(200));if(e==null||e._reactInternals===void 0)throw Error(x(38));return No(e,t,n,!1,o)};Ze.version="18.3.1-next-f1338f8080-20240426";function nh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(nh)}catch(e){console.error(e)}}nh(),tf.exports=Ze;var Wd=tf.exports,Aa=Wd;pu.createRoot=Aa.createRoot,pu.hydrateRoot=Aa.hydrateRoot;var Ca,La,Ta,Ia={},mr={},ou={};/*!
41
- * The buffer module from node.js, for the browser.
42
- *
43
- * @author Feross Aboukhadijeh <https://feross.org>
44
- * @license MIT
45
- */var he=(Ta||(Ta=1,function(e){const t=function(){if(Ca)return mr;Ca=1,mr.byteLength=function(w){var _=h(w),C=_[0],L=_[1];return 3*(C+L)/4-L},mr.toByteArray=function(w){var _,C,L=h(w),N=L[0],G=L[1],P=new u(function(gs,sr,Wt){return 3*(sr+Wt)/4-Wt}(0,N,G)),Z=0,dn=G>0?N-4:N;for(C=0;C<dn;C+=4)_=i[w.charCodeAt(C)]<<18|i[w.charCodeAt(C+1)]<<12|i[w.charCodeAt(C+2)]<<6|i[w.charCodeAt(C+3)],P[Z++]=_>>16&255,P[Z++]=_>>8&255,P[Z++]=255&_;return G===2&&(_=i[w.charCodeAt(C)]<<2|i[w.charCodeAt(C+1)]>>4,P[Z++]=255&_),G===1&&(_=i[w.charCodeAt(C)]<<10|i[w.charCodeAt(C+1)]<<4|i[w.charCodeAt(C+2)]>>2,P[Z++]=_>>8&255,P[Z++]=255&_),P},mr.fromByteArray=function(w){for(var _,C=w.length,L=C%3,N=[],G=16383,P=0,Z=C-L;P<Z;P+=G)N.push(y(w,P,P+G>Z?Z:P+G));return L===1?(_=w[C-1],N.push(r[_>>2]+r[_<<4&63]+"==")):L===2&&(_=(w[C-2]<<8)+w[C-1],N.push(r[_>>10]+r[_>>4&63]+r[_<<2&63]+"=")),N.join("")};for(var r=[],i=[],u=typeof Uint8Array<"u"?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0;c<64;++c)r[c]=f[c],i[f.charCodeAt(c)]=c;function h(w){var _=w.length;if(_%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var C=w.indexOf("=");return C===-1&&(C=_),[C,C===_?0:4-C%4]}function y(w,_,C){for(var L,N,G=[],P=_;P<C;P+=3)L=(w[P]<<16&16711680)+(w[P+1]<<8&65280)+(255&w[P+2]),G.push(r[(N=L)>>18&63]+r[N>>12&63]+r[N>>6&63]+r[63&N]);return G.join("")}return i[45]=62,i[95]=63,mr}(),n=(La||(La=1,ou.read=function(r,i,u,f,c){var h,y,w=8*c-f-1,_=(1<<w)-1,C=_>>1,L=-7,N=u?c-1:0,G=u?-1:1,P=r[i+N];for(N+=G,h=P&(1<<-L)-1,P>>=-L,L+=w;L>0;h=256*h+r[i+N],N+=G,L-=8);for(y=h&(1<<-L)-1,h>>=-L,L+=f;L>0;y=256*y+r[i+N],N+=G,L-=8);if(h===0)h=1-C;else{if(h===_)return y?NaN:1/0*(P?-1:1);y+=Math.pow(2,f),h-=C}return(P?-1:1)*y*Math.pow(2,h-f)},ou.write=function(r,i,u,f,c,h){var y,w,_,C=8*h-c-1,L=(1<<C)-1,N=L>>1,G=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,P=f?0:h-1,Z=f?1:-1,dn=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(w=isNaN(i)?1:0,y=L):(y=Math.floor(Math.log(i)/Math.LN2),i*(_=Math.pow(2,-y))<1&&(y--,_*=2),(i+=y+N>=1?G/_:G*Math.pow(2,1-N))*_>=2&&(y++,_/=2),y+N>=L?(w=0,y=L):y+N>=1?(w=(i*_-1)*Math.pow(2,c),y+=N):(w=i*Math.pow(2,N-1)*Math.pow(2,c),y=0));c>=8;r[u+P]=255&w,P+=Z,w/=256,c-=8);for(y=y<<c|w,C+=c;C>0;r[u+P]=255&y,P+=Z,y/=256,C-=8);r[u+P-Z]|=128*dn}),ou),o=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=function(r){return+r!=r&&(r=0),s.alloc(+r)},e.INSPECT_MAX_BYTES=50;const l=2147483647;function a(r){if(r>l)throw new RangeError('The value "'+r+'" is invalid for option "size"');const i=new Uint8Array(r);return Object.setPrototypeOf(i,s.prototype),i}function s(r,i,u){if(typeof r=="number"){if(typeof i=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(r)}return p(r,i,u)}function p(r,i,u){if(typeof r=="string")return function(h,y){if(typeof y=="string"&&y!==""||(y="utf8"),!s.isEncoding(y))throw new TypeError("Unknown encoding: "+y);const w=0|A(h,y);let _=a(w);const C=_.write(h,y);return C!==w&&(_=_.slice(0,C)),_}(r,i);if(ArrayBuffer.isView(r))return function(h){if(ee(h,Uint8Array)){const y=new Uint8Array(h);return S(y.buffer,y.byteOffset,y.byteLength)}return m(h)}(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(ee(r,ArrayBuffer)||r&&ee(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ee(r,SharedArrayBuffer)||r&&ee(r.buffer,SharedArrayBuffer)))return S(r,i,u);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const f=r.valueOf&&r.valueOf();if(f!=null&&f!==r)return s.from(f,i,u);const c=function(h){if(s.isBuffer(h)){const y=0|B(h.length),w=a(y);return w.length===0||h.copy(w,0,0,y),w}return h.length!==void 0?typeof h.length!="number"||pt(h.length)?a(0):m(h):h.type==="Buffer"&&Array.isArray(h.data)?m(h.data):void 0}(r);if(c)return c;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return s.from(r[Symbol.toPrimitive]("string"),i,u);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}function d(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function g(r){return d(r),a(r<0?0:0|B(r))}function m(r){const i=r.length<0?0:0|B(r.length),u=a(i);for(let f=0;f<i;f+=1)u[f]=255&r[f];return u}function S(r,i,u){if(i<0||r.byteLength<i)throw new RangeError('"offset" is outside of buffer bounds');if(r.byteLength<i+(u||0))throw new RangeError('"length" is outside of buffer bounds');let f;return f=i===void 0&&u===void 0?new Uint8Array(r):u===void 0?new Uint8Array(r,i):new Uint8Array(r,i,u),Object.setPrototypeOf(f,s.prototype),f}function B(r){if(r>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return 0|r}function A(r,i){if(s.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||ee(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);const u=r.length,f=arguments.length>2&&arguments[2]===!0;if(!f&&u===0)return 0;let c=!1;for(;;)switch(i){case"ascii":case"latin1":case"binary":return u;case"utf8":case"utf-8":return ht(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*u;case"hex":return u>>>1;case"base64":return Vt(r).length;default:if(c)return f?-1:ht(r).length;i=(""+i).toLowerCase(),c=!0}}function I(r,i,u){let f=!1;if((i===void 0||i<0)&&(i=0),i>this.length||((u===void 0||u>this.length)&&(u=this.length),u<=0)||(u>>>=0)<=(i>>>=0))return"";for(r||(r="utf8");;)switch(r){case"hex":return ft(this,i,u);case"utf8":case"utf-8":return j(this,i,u);case"ascii":return K(this,i,u);case"latin1":case"binary":return Ce(this,i,u);case"base64":return $(this,i,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ct(this,i,u);default:if(f)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),f=!0}}function T(r,i,u){const f=r[i];r[i]=r[u],r[u]=f}function z(r,i,u,f,c){if(r.length===0)return-1;if(typeof u=="string"?(f=u,u=0):u>2147483647?u=2147483647:u<-2147483648&&(u=-2147483648),pt(u=+u)&&(u=c?0:r.length-1),u<0&&(u=r.length+u),u>=r.length){if(c)return-1;u=r.length-1}else if(u<0){if(!c)return-1;u=0}if(typeof i=="string"&&(i=s.from(i,f)),s.isBuffer(i))return i.length===0?-1:v(r,i,u,f,c);if(typeof i=="number")return i&=255,typeof Uint8Array.prototype.indexOf=="function"?c?Uint8Array.prototype.indexOf.call(r,i,u):Uint8Array.prototype.lastIndexOf.call(r,i,u):v(r,[i],u,f,c);throw new TypeError("val must be string, number or Buffer")}function v(r,i,u,f,c){let h,y=1,w=r.length,_=i.length;if(f!==void 0&&((f=String(f).toLowerCase())==="ucs2"||f==="ucs-2"||f==="utf16le"||f==="utf-16le")){if(r.length<2||i.length<2)return-1;y=2,w/=2,_/=2,u/=2}function C(L,N){return y===1?L[N]:L.readUInt16BE(N*y)}if(c){let L=-1;for(h=u;h<w;h++)if(C(r,h)===C(i,L===-1?0:h-L)){if(L===-1&&(L=h),h-L+1===_)return L*y}else L!==-1&&(h-=h-L),L=-1}else for(u+_>w&&(u=w-_),h=u;h>=0;h--){let L=!0;for(let N=0;N<_;N++)if(C(r,h+N)!==C(i,N)){L=!1;break}if(L)return h}return-1}function E(r,i,u,f){u=Number(u)||0;const c=r.length-u;f?(f=Number(f))>c&&(f=c):f=c;const h=i.length;let y;for(f>h/2&&(f=h/2),y=0;y<f;++y){const w=parseInt(i.substr(2*y,2),16);if(pt(w))return y;r[u+y]=w}return y}function k(r,i,u,f){return $e(ht(i,r.length-u),r,u,f)}function U(r,i,u,f){return $e(function(c){const h=[];for(let y=0;y<c.length;++y)h.push(255&c.charCodeAt(y));return h}(i),r,u,f)}function O(r,i,u,f){return $e(Vt(i),r,u,f)}function b(r,i,u,f){return $e(function(c,h){let y,w,_;const C=[];for(let L=0;L<c.length&&!((h-=2)<0);++L)y=c.charCodeAt(L),w=y>>8,_=y%256,C.push(_),C.push(w);return C}(i,r.length-u),r,u,f)}function $(r,i,u){return i===0&&u===r.length?t.fromByteArray(r):t.fromByteArray(r.slice(i,u))}function j(r,i,u){u=Math.min(r.length,u);const f=[];let c=i;for(;c<u;){const h=r[c];let y=null,w=h>239?4:h>223?3:h>191?2:1;if(c+w<=u){let _,C,L,N;switch(w){case 1:h<128&&(y=h);break;case 2:_=r[c+1],(192&_)==128&&(N=(31&h)<<6|63&_,N>127&&(y=N));break;case 3:_=r[c+1],C=r[c+2],(192&_)==128&&(192&C)==128&&(N=(15&h)<<12|(63&_)<<6|63&C,N>2047&&(N<55296||N>57343)&&(y=N));break;case 4:_=r[c+1],C=r[c+2],L=r[c+3],(192&_)==128&&(192&C)==128&&(192&L)==128&&(N=(15&h)<<18|(63&_)<<12|(63&C)<<6|63&L,N>65535&&N<1114112&&(y=N))}}y===null?(y=65533,w=1):y>65535&&(y-=65536,f.push(y>>>10&1023|55296),y=56320|1023&y),f.push(y),c+=w}return function(h){const y=h.length;if(y<=te)return String.fromCharCode.apply(String,h);let w="",_=0;for(;_<y;)w+=String.fromCharCode.apply(String,h.slice(_,_+=te));return w}(f)}e.kMaxLength=l,s.TYPED_ARRAY_SUPPORT=function(){try{const r=new Uint8Array(1),i={foo:function(){return 42}};return Object.setPrototypeOf(i,Uint8Array.prototype),Object.setPrototypeOf(r,i),r.foo()===42}catch{return!1}}(),s.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."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(r,i,u){return p(r,i,u)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(r,i,u){return function(f,c,h){return d(f),f<=0?a(f):c!==void 0?typeof h=="string"?a(f).fill(c,h):a(f).fill(c):a(f)}(r,i,u)},s.allocUnsafe=function(r){return g(r)},s.allocUnsafeSlow=function(r){return g(r)},s.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==s.prototype},s.compare=function(r,i){if(ee(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),ee(i,Uint8Array)&&(i=s.from(i,i.offset,i.byteLength)),!s.isBuffer(r)||!s.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===i)return 0;let u=r.length,f=i.length;for(let c=0,h=Math.min(u,f);c<h;++c)if(r[c]!==i[c]){u=r[c],f=i[c];break}return u<f?-1:f<u?1:0},s.isEncoding=function(r){switch(String(r).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}},s.concat=function(r,i){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return s.alloc(0);let u;if(i===void 0)for(i=0,u=0;u<r.length;++u)i+=r[u].length;const f=s.allocUnsafe(i);let c=0;for(u=0;u<r.length;++u){let h=r[u];if(ee(h,Uint8Array))c+h.length>f.length?(s.isBuffer(h)||(h=s.from(h)),h.copy(f,c)):Uint8Array.prototype.set.call(f,h,c);else{if(!s.isBuffer(h))throw new TypeError('"list" argument must be an Array of Buffers');h.copy(f,c)}c+=h.length}return f},s.byteLength=A,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const r=this.length;if(r%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let i=0;i<r;i+=2)T(this,i,i+1);return this},s.prototype.swap32=function(){const r=this.length;if(r%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let i=0;i<r;i+=4)T(this,i,i+3),T(this,i+1,i+2);return this},s.prototype.swap64=function(){const r=this.length;if(r%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let i=0;i<r;i+=8)T(this,i,i+7),T(this,i+1,i+6),T(this,i+2,i+5),T(this,i+3,i+4);return this},s.prototype.toString=function(){const r=this.length;return r===0?"":arguments.length===0?j(this,0,r):I.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(r){if(!s.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r||s.compare(this,r)===0},s.prototype.inspect=function(){let r="";const i=e.INSPECT_MAX_BYTES;return r=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(r+=" ... "),"<Buffer "+r+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(r,i,u,f,c){if(ee(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(i===void 0&&(i=0),u===void 0&&(u=r?r.length:0),f===void 0&&(f=0),c===void 0&&(c=this.length),i<0||u>r.length||f<0||c>this.length)throw new RangeError("out of range index");if(f>=c&&i>=u)return 0;if(f>=c)return-1;if(i>=u)return 1;if(this===r)return 0;let h=(c>>>=0)-(f>>>=0),y=(u>>>=0)-(i>>>=0);const w=Math.min(h,y),_=this.slice(f,c),C=r.slice(i,u);for(let L=0;L<w;++L)if(_[L]!==C[L]){h=_[L],y=C[L];break}return h<y?-1:y<h?1:0},s.prototype.includes=function(r,i,u){return this.indexOf(r,i,u)!==-1},s.prototype.indexOf=function(r,i,u){return z(this,r,i,u,!0)},s.prototype.lastIndexOf=function(r,i,u){return z(this,r,i,u,!1)},s.prototype.write=function(r,i,u,f){if(i===void 0)f="utf8",u=this.length,i=0;else if(u===void 0&&typeof i=="string")f=i,u=this.length,i=0;else{if(!isFinite(i))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");i>>>=0,isFinite(u)?(u>>>=0,f===void 0&&(f="utf8")):(f=u,u=void 0)}const c=this.length-i;if((u===void 0||u>c)&&(u=c),r.length>0&&(u<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");f||(f="utf8");let h=!1;for(;;)switch(f){case"hex":return E(this,r,i,u);case"utf8":case"utf-8":return k(this,r,i,u);case"ascii":case"latin1":case"binary":return U(this,r,i,u);case"base64":return O(this,r,i,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b(this,r,i,u);default:if(h)throw new TypeError("Unknown encoding: "+f);f=(""+f).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const te=4096;function K(r,i,u){let f="";u=Math.min(r.length,u);for(let c=i;c<u;++c)f+=String.fromCharCode(127&r[c]);return f}function Ce(r,i,u){let f="";u=Math.min(r.length,u);for(let c=i;c<u;++c)f+=String.fromCharCode(r[c]);return f}function ft(r,i,u){const f=r.length;(!i||i<0)&&(i=0),(!u||u<0||u>f)&&(u=f);let c="";for(let h=i;h<u;++h)c+=ur[r[h]];return c}function ct(r,i,u){const f=r.slice(i,u);let c="";for(let h=0;h<f.length-1;h+=2)c+=String.fromCharCode(f[h]+256*f[h+1]);return c}function F(r,i,u){if(r%1!=0||r<0)throw new RangeError("offset is not uint");if(r+i>u)throw new RangeError("Trying to access beyond buffer length")}function Q(r,i,u,f,c,h){if(!s.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>c||i<h)throw new RangeError('"value" argument is out of bounds');if(u+f>r.length)throw new RangeError("Index out of range")}function et(r,i,u,f,c){Ue(i,f,c,r,u,7);let h=Number(i&BigInt(4294967295));r[u++]=h,h>>=8,r[u++]=h,h>>=8,r[u++]=h,h>>=8,r[u++]=h;let y=Number(i>>BigInt(32)&BigInt(4294967295));return r[u++]=y,y>>=8,r[u++]=y,y>>=8,r[u++]=y,y>>=8,r[u++]=y,u}function tt(r,i,u,f,c){Ue(i,f,c,r,u,7);let h=Number(i&BigInt(4294967295));r[u+7]=h,h>>=8,r[u+6]=h,h>>=8,r[u+5]=h,h>>=8,r[u+4]=h;let y=Number(i>>BigInt(32)&BigInt(4294967295));return r[u+3]=y,y>>=8,r[u+2]=y,y>>=8,r[u+1]=y,y>>=8,r[u]=y,u+8}function M(r,i,u,f,c,h){if(u+f>r.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("Index out of range")}function V(r,i,u,f,c){return i=+i,u>>>=0,c||M(r,0,u,4),n.write(r,i,u,f,23,4),u+4}function W(r,i,u,f,c){return i=+i,u>>>=0,c||M(r,0,u,8),n.write(r,i,u,f,52,8),u+8}s.prototype.slice=function(r,i){const u=this.length;(r=~~r)<0?(r+=u)<0&&(r=0):r>u&&(r=u),(i=i===void 0?u:~~i)<0?(i+=u)<0&&(i=0):i>u&&(i=u),i<r&&(i=r);const f=this.subarray(r,i);return Object.setPrototypeOf(f,s.prototype),f},s.prototype.readUintLE=s.prototype.readUIntLE=function(r,i,u){r>>>=0,i>>>=0,u||F(r,i,this.length);let f=this[r],c=1,h=0;for(;++h<i&&(c*=256);)f+=this[r+h]*c;return f},s.prototype.readUintBE=s.prototype.readUIntBE=function(r,i,u){r>>>=0,i>>>=0,u||F(r,i,this.length);let f=this[r+--i],c=1;for(;i>0&&(c*=256);)f+=this[r+--i]*c;return f},s.prototype.readUint8=s.prototype.readUInt8=function(r,i){return r>>>=0,i||F(r,1,this.length),this[r]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(r,i){return r>>>=0,i||F(r,2,this.length),this[r]|this[r+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(r,i){return r>>>=0,i||F(r,2,this.length),this[r]<<8|this[r+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(r,i){return r>>>=0,i||F(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+16777216*this[r+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(r,i){return r>>>=0,i||F(r,4,this.length),16777216*this[r]+(this[r+1]<<16|this[r+2]<<8|this[r+3])},s.prototype.readBigUInt64LE=oe(function(r){fe(r>>>=0,"offset");const i=this[r],u=this[r+7];i!==void 0&&u!==void 0||le(r,this.length-8);const f=i+256*this[++r]+65536*this[++r]+this[++r]*2**24,c=this[++r]+256*this[++r]+65536*this[++r]+u*2**24;return BigInt(f)+(BigInt(c)<<BigInt(32))}),s.prototype.readBigUInt64BE=oe(function(r){fe(r>>>=0,"offset");const i=this[r],u=this[r+7];i!==void 0&&u!==void 0||le(r,this.length-8);const f=i*2**24+65536*this[++r]+256*this[++r]+this[++r],c=this[++r]*2**24+65536*this[++r]+256*this[++r]+u;return(BigInt(f)<<BigInt(32))+BigInt(c)}),s.prototype.readIntLE=function(r,i,u){r>>>=0,i>>>=0,u||F(r,i,this.length);let f=this[r],c=1,h=0;for(;++h<i&&(c*=256);)f+=this[r+h]*c;return c*=128,f>=c&&(f-=Math.pow(2,8*i)),f},s.prototype.readIntBE=function(r,i,u){r>>>=0,i>>>=0,u||F(r,i,this.length);let f=i,c=1,h=this[r+--f];for(;f>0&&(c*=256);)h+=this[r+--f]*c;return c*=128,h>=c&&(h-=Math.pow(2,8*i)),h},s.prototype.readInt8=function(r,i){return r>>>=0,i||F(r,1,this.length),128&this[r]?-1*(255-this[r]+1):this[r]},s.prototype.readInt16LE=function(r,i){r>>>=0,i||F(r,2,this.length);const u=this[r]|this[r+1]<<8;return 32768&u?4294901760|u:u},s.prototype.readInt16BE=function(r,i){r>>>=0,i||F(r,2,this.length);const u=this[r+1]|this[r]<<8;return 32768&u?4294901760|u:u},s.prototype.readInt32LE=function(r,i){return r>>>=0,i||F(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},s.prototype.readInt32BE=function(r,i){return r>>>=0,i||F(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},s.prototype.readBigInt64LE=oe(function(r){fe(r>>>=0,"offset");const i=this[r],u=this[r+7];i!==void 0&&u!==void 0||le(r,this.length-8);const f=this[r+4]+256*this[r+5]+65536*this[r+6]+(u<<24);return(BigInt(f)<<BigInt(32))+BigInt(i+256*this[++r]+65536*this[++r]+this[++r]*2**24)}),s.prototype.readBigInt64BE=oe(function(r){fe(r>>>=0,"offset");const i=this[r],u=this[r+7];i!==void 0&&u!==void 0||le(r,this.length-8);const f=(i<<24)+65536*this[++r]+256*this[++r]+this[++r];return(BigInt(f)<<BigInt(32))+BigInt(this[++r]*2**24+65536*this[++r]+256*this[++r]+u)}),s.prototype.readFloatLE=function(r,i){return r>>>=0,i||F(r,4,this.length),n.read(this,r,!0,23,4)},s.prototype.readFloatBE=function(r,i){return r>>>=0,i||F(r,4,this.length),n.read(this,r,!1,23,4)},s.prototype.readDoubleLE=function(r,i){return r>>>=0,i||F(r,8,this.length),n.read(this,r,!0,52,8)},s.prototype.readDoubleBE=function(r,i){return r>>>=0,i||F(r,8,this.length),n.read(this,r,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(r,i,u,f){r=+r,i>>>=0,u>>>=0,f||Q(this,r,i,u,Math.pow(2,8*u)-1,0);let c=1,h=0;for(this[i]=255&r;++h<u&&(c*=256);)this[i+h]=r/c&255;return i+u},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(r,i,u,f){r=+r,i>>>=0,u>>>=0,f||Q(this,r,i,u,Math.pow(2,8*u)-1,0);let c=u-1,h=1;for(this[i+c]=255&r;--c>=0&&(h*=256);)this[i+c]=r/h&255;return i+u},s.prototype.writeUint8=s.prototype.writeUInt8=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,1,255,0),this[i]=255&r,i+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,2,65535,0),this[i]=255&r,this[i+1]=r>>>8,i+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,2,65535,0),this[i]=r>>>8,this[i+1]=255&r,i+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,4,4294967295,0),this[i+3]=r>>>24,this[i+2]=r>>>16,this[i+1]=r>>>8,this[i]=255&r,i+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,4,4294967295,0),this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=255&r,i+4},s.prototype.writeBigUInt64LE=oe(function(r,i=0){return et(this,r,i,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=oe(function(r,i=0){return tt(this,r,i,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(r,i,u,f){if(r=+r,i>>>=0,!f){const w=Math.pow(2,8*u-1);Q(this,r,i,u,w-1,-w)}let c=0,h=1,y=0;for(this[i]=255&r;++c<u&&(h*=256);)r<0&&y===0&&this[i+c-1]!==0&&(y=1),this[i+c]=(r/h|0)-y&255;return i+u},s.prototype.writeIntBE=function(r,i,u,f){if(r=+r,i>>>=0,!f){const w=Math.pow(2,8*u-1);Q(this,r,i,u,w-1,-w)}let c=u-1,h=1,y=0;for(this[i+c]=255&r;--c>=0&&(h*=256);)r<0&&y===0&&this[i+c+1]!==0&&(y=1),this[i+c]=(r/h|0)-y&255;return i+u},s.prototype.writeInt8=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,1,127,-128),r<0&&(r=255+r+1),this[i]=255&r,i+1},s.prototype.writeInt16LE=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,2,32767,-32768),this[i]=255&r,this[i+1]=r>>>8,i+2},s.prototype.writeInt16BE=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,2,32767,-32768),this[i]=r>>>8,this[i+1]=255&r,i+2},s.prototype.writeInt32LE=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,4,2147483647,-2147483648),this[i]=255&r,this[i+1]=r>>>8,this[i+2]=r>>>16,this[i+3]=r>>>24,i+4},s.prototype.writeInt32BE=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=255&r,i+4},s.prototype.writeBigInt64LE=oe(function(r,i=0){return et(this,r,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=oe(function(r,i=0){return tt(this,r,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(r,i,u){return V(this,r,i,!0,u)},s.prototype.writeFloatBE=function(r,i,u){return V(this,r,i,!1,u)},s.prototype.writeDoubleLE=function(r,i,u){return W(this,r,i,!0,u)},s.prototype.writeDoubleBE=function(r,i,u){return W(this,r,i,!1,u)},s.prototype.copy=function(r,i,u,f){if(!s.isBuffer(r))throw new TypeError("argument should be a Buffer");if(u||(u=0),f||f===0||(f=this.length),i>=r.length&&(i=r.length),i||(i=0),f>0&&f<u&&(f=u),f===u||r.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(u<0||u>=this.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("sourceEnd out of bounds");f>this.length&&(f=this.length),r.length-i<f-u&&(f=r.length-i+u);const c=f-u;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(i,u,f):Uint8Array.prototype.set.call(r,this.subarray(u,f),i),c},s.prototype.fill=function(r,i,u,f){if(typeof r=="string"){if(typeof i=="string"?(f=i,i=0,u=this.length):typeof u=="string"&&(f=u,u=this.length),f!==void 0&&typeof f!="string")throw new TypeError("encoding must be a string");if(typeof f=="string"&&!s.isEncoding(f))throw new TypeError("Unknown encoding: "+f);if(r.length===1){const h=r.charCodeAt(0);(f==="utf8"&&h<128||f==="latin1")&&(r=h)}}else typeof r=="number"?r&=255:typeof r=="boolean"&&(r=Number(r));if(i<0||this.length<i||this.length<u)throw new RangeError("Out of range index");if(u<=i)return this;let c;if(i>>>=0,u=u===void 0?this.length:u>>>0,r||(r=0),typeof r=="number")for(c=i;c<u;++c)this[c]=r;else{const h=s.isBuffer(r)?r:s.from(r,f),y=h.length;if(y===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(c=0;c<u-i;++c)this[c+i]=h[c%y]}return this};const Y={};function ne(r,i,u){Y[r]=class extends u{constructor(){super(),Object.defineProperty(this,"message",{value:i.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${r}]`,this.stack,delete this.name}get code(){return r}set code(f){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:f,writable:!0})}toString(){return`${this.name} [${r}]: ${this.message}`}}}function Ye(r){let i="",u=r.length;const f=r[0]==="-"?1:0;for(;u>=f+4;u-=3)i=`_${r.slice(u-3,u)}${i}`;return`${r.slice(0,u)}${i}`}function Ue(r,i,u,f,c,h){if(r>u||r<i){const y=typeof i=="bigint"?"n":"";let w;throw w=i===0||i===BigInt(0)?`>= 0${y} and < 2${y} ** ${8*(h+1)}${y}`:`>= -(2${y} ** ${8*(h+1)-1}${y}) and < 2 ** ${8*(h+1)-1}${y}`,new Y.ERR_OUT_OF_RANGE("value",w,r)}(function(y,w,_){fe(w,"offset"),y[w]!==void 0&&y[w+_]!==void 0||le(w,y.length-(_+1))})(f,c,h)}function fe(r,i){if(typeof r!="number")throw new Y.ERR_INVALID_ARG_TYPE(i,"number",r)}function le(r,i,u){throw Math.floor(r)!==r?(fe(r,u),new Y.ERR_OUT_OF_RANGE("offset","an integer",r)):i<0?new Y.ERR_BUFFER_OUT_OF_BOUNDS:new Y.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${i}`,r)}ne("ERR_BUFFER_OUT_OF_BOUNDS",function(r){return r?`${r} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ne("ERR_INVALID_ARG_TYPE",function(r,i){return`The "${r}" argument must be of type number. Received type ${typeof i}`},TypeError),ne("ERR_OUT_OF_RANGE",function(r,i,u){let f=`The value of "${r}" is out of range.`,c=u;return Number.isInteger(u)&&Math.abs(u)>2**32?c=Ye(String(u)):typeof u=="bigint"&&(c=String(u),(u>BigInt(2)**BigInt(32)||u<-(BigInt(2)**BigInt(32)))&&(c=Ye(c)),c+="n"),f+=` It must be ${i}. Received ${c}`,f},RangeError);const _t=/[^+/0-9A-Za-z-_]/g;function ht(r,i){let u;i=i||1/0;const f=r.length;let c=null;const h=[];for(let y=0;y<f;++y){if(u=r.charCodeAt(y),u>55295&&u<57344){if(!c){if(u>56319){(i-=3)>-1&&h.push(239,191,189);continue}if(y+1===f){(i-=3)>-1&&h.push(239,191,189);continue}c=u;continue}if(u<56320){(i-=3)>-1&&h.push(239,191,189),c=u;continue}u=65536+(c-55296<<10|u-56320)}else c&&(i-=3)>-1&&h.push(239,191,189);if(c=null,u<128){if((i-=1)<0)break;h.push(u)}else if(u<2048){if((i-=2)<0)break;h.push(u>>6|192,63&u|128)}else if(u<65536){if((i-=3)<0)break;h.push(u>>12|224,u>>6&63|128,63&u|128)}else{if(!(u<1114112))throw new Error("Invalid code point");if((i-=4)<0)break;h.push(u>>18|240,u>>12&63|128,u>>6&63|128,63&u|128)}}return h}function Vt(r){return t.toByteArray(function(i){if((i=(i=i.split("=")[0]).trim().replace(_t,"")).length<2)return"";for(;i.length%4!=0;)i+="=";return i}(r))}function $e(r,i,u,f){let c;for(c=0;c<f&&!(c+u>=i.length||c>=r.length);++c)i[c+u]=r[c];return c}function ee(r,i){return r instanceof i||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===i.name}function pt(r){return r!=r}const ur=function(){const r="0123456789abcdef",i=new Array(256);for(let u=0;u<16;++u){const f=16*u;for(let c=0;c<16;++c)i[f+c]=r[u]+r[c]}return i}();function oe(r){return typeof BigInt>"u"?lr:r}function lr(){throw new Error("BigInt not supported")}}(Ia)),Ia);const ul=new TextEncoder,Di=new TextDecoder,rh=us;function us(e,t=0){let n;if(e===void 0||typeof e!="string"||typeof t!="number")throw TypeError("invlaid init variablie type name. ");return(e=e.toUpperCase()).includes("8")?(n=he.Buffer.alloc(1),e.includes("I")?n.writeInt8(t):n.writeUint8(t)):e.includes("16")?(n=he.Buffer.alloc(2),e.includes("I")?e.includes("L")?n.writeInt16LE(t):n.writeInt16BE(t):e.includes("L")?n.writeUint16LE(t):n.writeUint16BE(t)):e.includes("32")?(n=he.Buffer.alloc(4),e.includes("I")?e.includes("L")?n.writeInt32LE(t):n.writeInt32BE(t):e.includes("L")?n.writeUint32LE(t):n.writeUint32BE(t)):e.includes("F")?(n=he.Buffer.alloc(4),e.includes("L")?n.writeFloatLE(t):n.writeFloatBE(t)):e.includes("N")?n=he.Buffer.from(String(t)):console.log(`invalid type: ${e} or initvalue: ${t}`),n}const ll=ih;function ih(e,t,n){let o,l="B";if(typeof t=="number")typeof n=="number"?(o=he.Buffer.alloc(t),n!==0&&o.fill(n),l="B"):(o=he.Buffer.from(String(t)),l="N");else if(typeof t=="string"&&typeof n=="number")l=t.toUpperCase(),o=us(t,n);else if(typeof t=="string"&&n===void 0)o=he.Buffer.from(t),l="S";else if(t instanceof Uint8Array&&n===void 0)o=t instanceof he.Buffer?t:he.Buffer.from(t);else if(t instanceof ArrayBuffer&&n===void 0)o=he.Buffer.from(t);else if(ArrayBuffer.isView(t))o=he.Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(typeof t=="object"&&n===void 0)o=he.Buffer.from(JSON.stringify(t)),l="O";else{if(typeof t!="boolean"||n!==void 0)throw TypeError("invalid meta buffer type");{const a=t?1:0;o=he.Buffer.from([a]),l="!"}}return typeof e=="string"&&e.includes("#")&&(e=""),[e,l,o]}const Qd=oh;function oh(...e){let t=0;return e.map(n=>{const o=t++;return typeof n=="number"?ll(o,"N",n):ll(o,n)})}function ls(e){if((e=e.toUpperCase()).includes("8"))return e.includes("I")?"int8":"uint8";if(e.includes("16"))return e.includes("I")?e.includes("L")?"int16_le":"int16_be":e.includes("L")?"uint16_le":"uint16_be";if(e.includes("32"))return e.includes("I")?e.includes("L")?"int32_le":"int32_be":e.includes("L")?"uint32_le":"uint32_be";if(e.includes("F"))return e.includes("L")?"float_le":"float_be";if(e==="B")return"buffer";if(e==="S")return"string";if(e==="N")return"number";if(e==="O")return"object";if(e==="!")return"boolean";throw TypeError("invalid data type")}function uu(e,t,n,o){try{const l=ls(e);if(l=="int8")return t.readInt8(n);if(l==="uint8")return t.readUint8(n);if(l==="int16_le")return t.readInt16LE(n);if(l==="int16_be")return t.readInt16BE(n);if(l==="uint16_le")return t.readUint16LE(n);if(l==="uint16_be")return t.readUint16BE(n);if(l==="int32_le")return t.readInt32LE(n);if(l==="int32_be")return t.readInt32BE(n);if(l==="uint32_le")return t.readUint32LE(n);if(l==="uint32_be")return t.readUint32BE(n);if(l==="float_le")return t.readFloatLE(n);if(l==="float_be")return t.readFloatBE(n);if(l==="buffer")return t.subarray(n,n+o);if(l==="string"){const a=t.subarray(n,n+o);return Di.decode(a)}if(l==="number"){const a=t.subarray(n,n+o);return Number(Di.decode(a))}if(l==="object"){const a=t.subarray(n,n+o);return JSON.parse(Di.decode(a))}return l==="boolean"?t.readInt8(n)===1:void 0}catch{}}function _i(...e){const t=function(d){let g=[];return d.filter(m=>{if(!Array.isArray(m[0]))return m;g=g.concat(m)}).concat(g)}(e);let n=0;const o=[];let l,a,s=0;if(t.forEach(d=>{const[g,m,S]=d;n+=S.byteLength,(typeof g=="number"||g.length>0)&&o.push([g,m,s,S.byteLength]),s=n}),o.length>0){let d=JSON.stringify(o);l=ul.encode(d),a=l.byteLength,n=n+a+2}const p=he.Buffer.alloc(n);if(s=0,t.forEach(d=>{const g=d[2];p.set(g,s),s+=g.byteLength}),o.length>0){p.set(l,s);const d=rh("16",a);return p.set(d,s+a),p}return p}const Yd=Uo;function Uo(e,t=!1){if(e===void 0)throw TypeError("Invalid data type: Undefined");if(typeof e=="string")return ul.encode(e);if(typeof e=="number")return Uint8Array.from([e]);if(e instanceof ArrayBuffer){if(t)return new Uint8Array(e);{const n=new Uint8Array(e),o=new Uint8Array(e.byteLength);return o.set(n),o}}if(ArrayBuffer.isView(e)){if(t)return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);{const n=new Uint8Array(e.buffer,e.byteOffset,e.byteLength),o=new Uint8Array(e.byteLength);return o.set(n),o}}return ul.encode(JSON.stringify(e))}const Gd=ss;function ss(e,t=!1){const n=Uo(e,t);return t?he.Buffer.from(n.buffer,n.byteOffset,n.byteLength):he.Buffer.from(n)}const Kd=uh;function uh(...e){const t=e.map(n=>ss(n));return he.Buffer.concat(t)}const Xd=lh;function lh(...e){try{let t=0,n=0;const o=e.map(a=>Uo(a));o.forEach(a=>{t+=a.byteLength});const l=new Uint8Array(t);return o.forEach(a=>{l.set(a,n),n+=a.byteLength}),l}catch(t){console.log(t)}}function sh(e){return sl(e)===0?e.byteLength:e.byteLength-sl(e)-Zr}function as(e,t){try{const n=new Uint8Array(e.buffer,e.byteOffset,e.byteLength),o=n.byteLength-t-2,l=n.subarray(o,n.byteLength-2),a=Di.decode(l),s=JSON.parse(a);if(!Array.isArray(s)||!Array.isArray(s[0]))return;let p=s[0];if(!p||p.length<3)return;const[d,g,m]=p;return typeof g!="string"||typeof m!="number"?void 0:s}catch{}}const Zr=2;function fs(e){return e instanceof ArrayBuffer&&(e=he.Buffer.from(e)),e instanceof Uint8Array?e.byteLength<=Zr?0:new DataView(e.buffer,e.byteOffset,e.byteLength).getUint16(e.byteLength-Zr):0}function sl(e){if(e instanceof ArrayBuffer&&(e=he.Buffer.from(e)),e instanceof Uint8Array){const t=e.byteLength;if(t<=Zr)return 0;const n=fs(e);return n===0||n>t?0:as(e,n)?n:0}return 0}function Na(e){const t=sh(e);return e.subarray(0,t)}function vr(e,t=!1){e instanceof ArrayBuffer&&(e=he.Buffer.from(e));const n=fs(e);if(n===0)return;let o=as(e,n);return o?(t&&o.forEach(l=>{l[3]==null&&(l[1].includes("8")?l[3]=1:l[1].includes("16")?l[3]=2:l[1].includes("32")||l[1].includes("F")?l[3]=4:l[1].includes("!")&&(l[3]=1)),l[4]=ls(l[1])}),o):void 0}var H=Object.freeze({__proto__:null,B8:Gd,B8pack:Kd,Buffer:he.Buffer,MB:ll,MBA:Qd,NB:rh,TAIL_LEN:Zr,U8:Yd,U8pack:Xd,equal:function(e,t){if(e.byteLength!==t.byteLength)return!1;for(let n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0},getBuffer:Na,getBufferSize:sh,getMeta:vr,getMetaDetail:function(e){return vr(e,!0)},getMetaSize:sl,hex:function(e){return Array.prototype.map.call(new Uint8Array(e),t=>("00"+t.toString(16)).slice(-2)).join("")},meta:function(...e){return vr(_i(...e))},metaBuffer:ih,metaBufferArguments:oh,metaDetail:function(...e){return vr(_i(...e),!0)},numberBuffer:us,pack:_i,parseBuffer:ss,parseBufferThenConcat:uh,parseMetaInfo:as,parseTypeName:ls,parseUint8Array:Uo,parseUint8ThenConcat:lh,rawPack:function(...e){return Na(_i(...e))},readTail:fs,readTypedBuffer:uu,unpack:function(e,t){const n=t||vr(e);if(!n)return;const o=he.Buffer.from(e),l={};let a=0;if(n.forEach(d=>{const[g,m,S,B]=d;let A=uu(m,o,S,B);A!=null&&(l[g]=A,B&&(a+=B))}),t&&o.byteLength!==a){let d=o.byteLength-a,g=uu("b",o,a,d);if(g==null)return;l.$OTHERS=g}let s=0,p=[];for(;l[s];)p.push(l[s++]);return p.length>0&&(l.args=p,l.$=l.args),l}});function Jd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ua,xa={exports:{}},Zd=(Ua||(Ua=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function o(){}function l(d,g,m){this.fn=d,this.context=g,this.once=m||!1}function a(d,g,m,S,B){if(typeof m!="function")throw new TypeError("The listener must be a function");var A=new l(m,S||d,B),I=n?n+g:g;return d._events[I]?d._events[I].fn?d._events[I]=[d._events[I],A]:d._events[I].push(A):(d._events[I]=A,d._eventsCount++),d}function s(d,g){--d._eventsCount==0?d._events=new o:delete d._events[g]}function p(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),new o().__proto__||(n=!1)),p.prototype.eventNames=function(){var d,g,m=[];if(this._eventsCount===0)return m;for(g in d=this._events)t.call(d,g)&&m.push(n?g.slice(1):g);return Object.getOwnPropertySymbols?m.concat(Object.getOwnPropertySymbols(d)):m},p.prototype.listeners=function(d){var g=n?n+d:d,m=this._events[g];if(!m)return[];if(m.fn)return[m.fn];for(var S=0,B=m.length,A=new Array(B);S<B;S++)A[S]=m[S].fn;return A},p.prototype.listenerCount=function(d){var g=n?n+d:d,m=this._events[g];return m?m.fn?1:m.length:0},p.prototype.emit=function(d,g,m,S,B,A){var I=n?n+d:d;if(!this._events[I])return!1;var T,z,v=this._events[I],E=arguments.length;if(v.fn){switch(v.once&&this.removeListener(d,v.fn,void 0,!0),E){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,g),!0;case 3:return v.fn.call(v.context,g,m),!0;case 4:return v.fn.call(v.context,g,m,S),!0;case 5:return v.fn.call(v.context,g,m,S,B),!0;case 6:return v.fn.call(v.context,g,m,S,B,A),!0}for(z=1,T=new Array(E-1);z<E;z++)T[z-1]=arguments[z];v.fn.apply(v.context,T)}else{var k,U=v.length;for(z=0;z<U;z++)switch(v[z].once&&this.removeListener(d,v[z].fn,void 0,!0),E){case 1:v[z].fn.call(v[z].context);break;case 2:v[z].fn.call(v[z].context,g);break;case 3:v[z].fn.call(v[z].context,g,m);break;case 4:v[z].fn.call(v[z].context,g,m,S);break;default:if(!T)for(k=1,T=new Array(E-1);k<E;k++)T[k-1]=arguments[k];v[z].fn.apply(v[z].context,T)}}return!0},p.prototype.on=function(d,g,m){return a(this,d,g,m,!1)},p.prototype.once=function(d,g,m){return a(this,d,g,m,!0)},p.prototype.removeListener=function(d,g,m,S){var B=n?n+d:d;if(!this._events[B])return this;if(!g)return s(this,B),this;var A=this._events[B];if(A.fn)A.fn!==g||S&&!A.once||m&&A.context!==m||s(this,B);else{for(var I=0,T=[],z=A.length;I<z;I++)(A[I].fn!==g||S&&!A[I].once||m&&A[I].context!==m)&&T.push(A[I]);T.length?this._events[B]=T.length===1?T[0]:T:s(this,B)}return this},p.prototype.removeAllListeners=function(d){var g;return d?(g=n?n+d:d,this._events[g]&&s(this,g)):(this._events=new o,this._eventsCount=0),this},p.prototype.off=p.prototype.removeListener,p.prototype.addListener=p.prototype.on,p.prefixed=n,p.EventEmitter=p,e.exports=p}(xa)),xa.exports),qd=Jd(Zd);const Mt={OPENING:0,OPEN:1,CLOSING:2,CLOSED:3,SERVER_READY:4,AUTH_FAIL:5,AUTH_READY:6,READY:7,REDIRECTING:8};for(let e in Mt)Mt[Mt[e]]=e;const $i={INIT:0,SENT_SERVER_READY:1,RECV_AUTH_REQ:2,SENT_SERVER_NONCE:3,RECV_AUTH_HMAC:4,AUTH_FAIL:5,AUTH_READY:6,CID_READY:7};for(let e in $i)$i[$i[e]]=e;let _n={NO:0,YES:1,AUTO:2};for(let e in _n)_n[_n[e]]=e;const Ut={TAG_LEN1:255,TAG_LEN2:65535,CONNECTION_CHECKER_PERIOD:3e3,PROMISE_TIMEOUT:5e3,DID:8,CID:12};let _e={EMPTY:0,TEXT:1,BINARY:2,OBJECT:3,MJSON:4,MBA:5};for(let e in _e)_e[_e[e]]=e;let X={SERVER_READY:192,CID_REQ:193,CID_RES:194,QUOTA_LEVEL:195,SERVER_CLEAR_AUTH:196,SERVER_REDIRECT:197,LOOP:203,ECHO:204,PING:205,PONG:206,CLOSE:207,SIGNAL:208,SIGNAL_REQ:209,SIGNAL_E2E:210,SUBSCRIBE:211,SUBSCRIBE_REQ:212,UNSUBSCRIBE:213,SERVER_SIGNAL:214,IAM:217,IAM_RES:218,SET:219,RESPONSE_CODE:220,RESPONSE_MBP:221,REQUEST:222,RESPONSE:223,FLOW_MODE:240,WAIT:241,RESUME:242,TIME_OUT:253,OVER_SIZE:254,OVER_FLOW:255};for(let e in X)X[X[e]]=e;var ey=Object.freeze({__proto__:null,API_TYPE:{REQUEST_RESPONSE:"requet_response",ONE_WAY:"one_way"},CLIENT_STATE:$i,ENC_MODE:_n,IOMsg:X,PAYLOAD_TYPE:_e,SIZE_LIMIT:Ut,STATES:Mt,STATUS:{OK:0,ERROR:255}});let Ra={0:{signalSize:1500,publishCounter:10,trafficRate:1e4},1:{signalSize:255,publishCounter:10,trafficRate:1e5},2:{signalSize:65535,publishCounter:10,trafficRate:1048576},3:{signalSize:1048576,publishCounter:10,trafficRate:20971520},10:{signalSize:1500,publishCounter:5,trafficRate:20971520},11:{signalSize:65535,publishCounter:10,trafficRate:20971520},12:{signalSize:1048576,publishCounter:100,trafficRate:20971520},200:{signalSize:20971520,publishCounter:1e4,trafficRate:104857600},255:{signalSize:20971520,publishCounter:1e4,trafficRate:104857600}};const Bi=new TextEncoder;function ty(e,...t){if(typeof e!="string")throw TypeError("tag should be string.");let n,o=Bi.encode(e),l=function(a){let s,p;if(a.length==0)s=_e.EMPTY,p=null;else if(a.length==1)if(typeof a[0]=="string"||typeof a[0]=="number")s=_e.TEXT,p=Bi.encode(a[0]+"."),p[p.byteLength-1]=0;else if(ArrayBuffer.isView(a[0])||a[0]instanceof ArrayBuffer)s=_e.BINARY,p=H.B8(a[0]);else{if(typeof a[0]!="object")throw new Error("unknown payload arguments");s=_e.OBJECT,p=Bi.encode(JSON.stringify(a[0]))}else{let d=!1;a.forEach(g=>{(ArrayBuffer.isView(g)||g instanceof ArrayBuffer)&&(d=!0)}),d?s=_e.MBA:(s=_e.MJSON,p=Bi.encode(JSON.stringify(a)))}return{type:s,buffer:p}}(t);if(l.type==_e.EMPTY)n=H.pack(H.MB("#MsgType","8",X.SIGNAL),H.MB("#tagLen","8",o.byteLength),H.MB("#tag",o),H.MB("#payloadType","8",l.type));else if(l.type==_e.MBA){let a=H.pack(H.MBA(...t));n=H.pack(H.MB("#MsgType","8",X.SIGNAL),H.MB("#tagLen","8",o.byteLength),H.MB("#tag",o),H.MB("#payloadType","8",l.type),H.MB("#mbaBuffer",a))}else n=H.pack(H.MB("#MsgType","8",X.SIGNAL),H.MB("#tagLen","8",o.byteLength),H.MB("#tag",o),H.MB("#payloadType","8",l.type),H.MB("#payload",l.buffer));return n}const ny=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function lu(e,t,n,o,l){let a,s,p,d,g,m,S,B,A,I,T,z,v;for(;l>=64;){for(a=t[0],s=t[1],p=t[2],d=t[3],g=t[4],m=t[5],S=t[6],B=t[7],I=0;I<16;I++)T=o+4*I,e[I]=(255&n[T])<<24|(255&n[T+1])<<16|(255&n[T+2])<<8|255&n[T+3];for(I=16;I<64;I++)A=e[I-2],z=(A>>>17|A<<15)^(A>>>19|A<<13)^A>>>10,A=e[I-15],v=(A>>>7|A<<25)^(A>>>18|A<<14)^A>>>3,e[I]=(z+e[I-7]|0)+(v+e[I-16]|0);for(I=0;I<64;I++)z=(((g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&m^~g&S)|0)+(B+(ny[I]+e[I]|0)|0)|0,v=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&s^a&p^s&p)|0,B=S,S=m,m=g,g=d+z|0,d=p,p=s,s=a,a=z+v|0;t[0]+=a,t[1]+=s,t[2]+=p,t[3]+=d,t[4]+=g,t[5]+=m,t[6]+=S,t[7]+=B,o+=64,l-=64}return o}const ji=function(){function e(){this.digestLength=32,this.blockSize=64,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return e.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},e.prototype.clean=function(){for(var t=0;t<this.buffer.length;t++)this.buffer[t]=0;for(t=0;t<this.temp.length;t++)this.temp[t]=0;this.reset()},e.prototype.update=function(t,n){if(n===void 0&&(n=t.length),this.finished)throw new Error("SHA256: can't update because hash was finished.");let o=0;if(this.bytesHashed+=n,this.bufferLength>0){for(;this.bufferLength<64&&n>0;)this.buffer[this.bufferLength++]=t[o++],n--;this.bufferLength===64&&(lu(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(n>=64&&(o=lu(this.temp,this.state,t,o,n),n%=64);n>0;)this.buffer[this.bufferLength++]=t[o++],n--;return this},e.prototype.finish=function(t){if(!this.finished){const o=this.bytesHashed,l=this.bufferLength,a=o/536870912|0,s=o<<3,p=o%64<56?64:128;this.buffer[l]=128;for(var n=l+1;n<p-8;n++)this.buffer[n]=0;this.buffer[p-8]=a>>>24&255,this.buffer[p-7]=a>>>16&255,this.buffer[p-6]=a>>>8&255,this.buffer[p-5]=a>>>0&255,this.buffer[p-4]=s>>>24&255,this.buffer[p-3]=s>>>16&255,this.buffer[p-2]=s>>>8&255,this.buffer[p-1]=s>>>0&255,lu(this.temp,this.state,this.buffer,0,p),this.finished=!0}for(n=0;n<8;n++)t[4*n+0]=this.state[n]>>>24&255,t[4*n+1]=this.state[n]>>>16&255,t[4*n+2]=this.state[n]>>>8&255,t[4*n+3]=this.state[n]>>>0&255;return this},e.prototype.digest=function(){const t=new Uint8Array(this.digestLength);return this.finish(t),t},e.prototype._saveState=function(t){for(let n=0;n<this.state.length;n++)t[n]=this.state[n]},e.prototype._restoreState=function(t,n){for(let o=0;o<this.state.length;o++)this.state[o]=t[o];this.bytesHashed=n,this.finished=!1,this.bufferLength=0},e}(),ry=function(){function e(t){this.inner=new ji,this.outer=new ji,this.blockSize=this.inner.blockSize,this.digestLength=this.inner.digestLength;const n=new Uint8Array(this.blockSize);if(t.length>this.blockSize)new ji().update(t).finish(n).clean();else for(var o=0;o<t.length;o++)n[o]=t[o];for(o=0;o<n.length;o++)n[o]^=54;for(this.inner.update(n),o=0;o<n.length;o++)n[o]^=106;for(this.outer.update(n),this.istate=new Uint32Array(8),this.ostate=new Uint32Array(8),this.inner._saveState(this.istate),this.outer._saveState(this.ostate),o=0;o<n.length;o++)n[o]=0}return e.prototype.reset=function(){return this.inner._restoreState(this.istate,this.inner.blockSize),this.outer._restoreState(this.ostate,this.outer.blockSize),this},e.prototype.clean=function(){for(let t=0;t<this.istate.length;t++)this.ostate[t]=this.istate[t]=0;this.inner.clean(),this.outer.clean()},e.prototype.update=function(t){return this.inner.update(t),this},e.prototype.finish=function(t){return this.outer.finished?this.outer.finish(t):(this.inner.finish(t),this.outer.update(t,this.digestLength).finish(t)),this},e.prototype.digest=function(){const t=new Uint8Array(this.digestLength);return this.finish(t),t},e}();function su(e){const t=new ji().update(e),n=t.digest();return t.clean(),n}var Oa,Ma,Pa,za={},wr={},au={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */function iy(){return Ma||(Ma=1,au.read=function(e,t,n,o,l){var a,s,p=8*l-o-1,d=(1<<p)-1,g=d>>1,m=-7,S=n?l-1:0,B=n?-1:1,A=e[t+S];for(S+=B,a=A&(1<<-m)-1,A>>=-m,m+=p;m>0;a=256*a+e[t+S],S+=B,m-=8);for(s=a&(1<<-m)-1,a>>=-m,m+=o;m>0;s=256*s+e[t+S],S+=B,m-=8);if(a===0)a=1-g;else{if(a===d)return s?NaN:1/0*(A?-1:1);s+=Math.pow(2,o),a-=g}return(A?-1:1)*s*Math.pow(2,a-o)},au.write=function(e,t,n,o,l,a){var s,p,d,g=8*a-l-1,m=(1<<g)-1,S=m>>1,B=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=o?0:a-1,I=o?1:-1,T=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(p=isNaN(t)?1:0,s=m):(s=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-s))<1&&(s--,d*=2),(t+=s+S>=1?B/d:B*Math.pow(2,1-S))*d>=2&&(s++,d/=2),s+S>=m?(p=0,s=m):s+S>=1?(p=(t*d-1)*Math.pow(2,l),s+=S):(p=t*Math.pow(2,S-1)*Math.pow(2,l),s=0));l>=8;e[n+A]=255&p,A+=I,p/=256,l-=8);for(s=s<<l|p,g+=l;g>0;e[n+A]=255&s,A+=I,s/=256,g-=8);e[n+A-I]|=128*T}),au}/*!
46
- * The buffer module from node.js, for the browser.
47
- *
48
- * @author Feross Aboukhadijeh <https://feross.org>
49
- * @license MIT
50
- */var pe=(Pa||(Pa=1,function(e){const t=function(){if(Oa)return wr;Oa=1,wr.byteLength=function(w){var _=h(w),C=_[0],L=_[1];return 3*(C+L)/4-L},wr.toByteArray=function(w){var _,C,L=h(w),N=L[0],G=L[1],P=new u(function(gs,sr,Wt){return 3*(sr+Wt)/4-Wt}(0,N,G)),Z=0,dn=G>0?N-4:N;for(C=0;C<dn;C+=4)_=i[w.charCodeAt(C)]<<18|i[w.charCodeAt(C+1)]<<12|i[w.charCodeAt(C+2)]<<6|i[w.charCodeAt(C+3)],P[Z++]=_>>16&255,P[Z++]=_>>8&255,P[Z++]=255&_;return G===2&&(_=i[w.charCodeAt(C)]<<2|i[w.charCodeAt(C+1)]>>4,P[Z++]=255&_),G===1&&(_=i[w.charCodeAt(C)]<<10|i[w.charCodeAt(C+1)]<<4|i[w.charCodeAt(C+2)]>>2,P[Z++]=_>>8&255,P[Z++]=255&_),P},wr.fromByteArray=function(w){for(var _,C=w.length,L=C%3,N=[],G=16383,P=0,Z=C-L;P<Z;P+=G)N.push(y(w,P,P+G>Z?Z:P+G));return L===1?(_=w[C-1],N.push(r[_>>2]+r[_<<4&63]+"==")):L===2&&(_=(w[C-2]<<8)+w[C-1],N.push(r[_>>10]+r[_>>4&63]+r[_<<2&63]+"=")),N.join("")};for(var r=[],i=[],u=typeof Uint8Array<"u"?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0;c<64;++c)r[c]=f[c],i[f.charCodeAt(c)]=c;function h(w){var _=w.length;if(_%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var C=w.indexOf("=");return C===-1&&(C=_),[C,C===_?0:4-C%4]}function y(w,_,C){for(var L,N,G=[],P=_;P<C;P+=3)L=(w[P]<<16&16711680)+(w[P+1]<<8&65280)+(255&w[P+2]),G.push(r[(N=L)>>18&63]+r[N>>12&63]+r[N>>6&63]+r[63&N]);return G.join("")}return i[45]=62,i[95]=63,wr}(),n=iy(),o=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=function(r){return+r!=r&&(r=0),s.alloc(+r)},e.INSPECT_MAX_BYTES=50;const l=2147483647;function a(r){if(r>l)throw new RangeError('The value "'+r+'" is invalid for option "size"');const i=new Uint8Array(r);return Object.setPrototypeOf(i,s.prototype),i}function s(r,i,u){if(typeof r=="number"){if(typeof i=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(r)}return p(r,i,u)}function p(r,i,u){if(typeof r=="string")return function(h,y){if(typeof y=="string"&&y!==""||(y="utf8"),!s.isEncoding(y))throw new TypeError("Unknown encoding: "+y);const w=0|A(h,y);let _=a(w);const C=_.write(h,y);return C!==w&&(_=_.slice(0,C)),_}(r,i);if(ArrayBuffer.isView(r))return function(h){if(ee(h,Uint8Array)){const y=new Uint8Array(h);return S(y.buffer,y.byteOffset,y.byteLength)}return m(h)}(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(ee(r,ArrayBuffer)||r&&ee(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ee(r,SharedArrayBuffer)||r&&ee(r.buffer,SharedArrayBuffer)))return S(r,i,u);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const f=r.valueOf&&r.valueOf();if(f!=null&&f!==r)return s.from(f,i,u);const c=function(h){if(s.isBuffer(h)){const y=0|B(h.length),w=a(y);return w.length===0||h.copy(w,0,0,y),w}return h.length!==void 0?typeof h.length!="number"||pt(h.length)?a(0):m(h):h.type==="Buffer"&&Array.isArray(h.data)?m(h.data):void 0}(r);if(c)return c;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return s.from(r[Symbol.toPrimitive]("string"),i,u);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}function d(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function g(r){return d(r),a(r<0?0:0|B(r))}function m(r){const i=r.length<0?0:0|B(r.length),u=a(i);for(let f=0;f<i;f+=1)u[f]=255&r[f];return u}function S(r,i,u){if(i<0||r.byteLength<i)throw new RangeError('"offset" is outside of buffer bounds');if(r.byteLength<i+(u||0))throw new RangeError('"length" is outside of buffer bounds');let f;return f=i===void 0&&u===void 0?new Uint8Array(r):u===void 0?new Uint8Array(r,i):new Uint8Array(r,i,u),Object.setPrototypeOf(f,s.prototype),f}function B(r){if(r>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return 0|r}function A(r,i){if(s.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||ee(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);const u=r.length,f=arguments.length>2&&arguments[2]===!0;if(!f&&u===0)return 0;let c=!1;for(;;)switch(i){case"ascii":case"latin1":case"binary":return u;case"utf8":case"utf-8":return ht(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*u;case"hex":return u>>>1;case"base64":return Vt(r).length;default:if(c)return f?-1:ht(r).length;i=(""+i).toLowerCase(),c=!0}}function I(r,i,u){let f=!1;if((i===void 0||i<0)&&(i=0),i>this.length||((u===void 0||u>this.length)&&(u=this.length),u<=0)||(u>>>=0)<=(i>>>=0))return"";for(r||(r="utf8");;)switch(r){case"hex":return ft(this,i,u);case"utf8":case"utf-8":return j(this,i,u);case"ascii":return K(this,i,u);case"latin1":case"binary":return Ce(this,i,u);case"base64":return $(this,i,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ct(this,i,u);default:if(f)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),f=!0}}function T(r,i,u){const f=r[i];r[i]=r[u],r[u]=f}function z(r,i,u,f,c){if(r.length===0)return-1;if(typeof u=="string"?(f=u,u=0):u>2147483647?u=2147483647:u<-2147483648&&(u=-2147483648),pt(u=+u)&&(u=c?0:r.length-1),u<0&&(u=r.length+u),u>=r.length){if(c)return-1;u=r.length-1}else if(u<0){if(!c)return-1;u=0}if(typeof i=="string"&&(i=s.from(i,f)),s.isBuffer(i))return i.length===0?-1:v(r,i,u,f,c);if(typeof i=="number")return i&=255,typeof Uint8Array.prototype.indexOf=="function"?c?Uint8Array.prototype.indexOf.call(r,i,u):Uint8Array.prototype.lastIndexOf.call(r,i,u):v(r,[i],u,f,c);throw new TypeError("val must be string, number or Buffer")}function v(r,i,u,f,c){let h,y=1,w=r.length,_=i.length;if(f!==void 0&&((f=String(f).toLowerCase())==="ucs2"||f==="ucs-2"||f==="utf16le"||f==="utf-16le")){if(r.length<2||i.length<2)return-1;y=2,w/=2,_/=2,u/=2}function C(L,N){return y===1?L[N]:L.readUInt16BE(N*y)}if(c){let L=-1;for(h=u;h<w;h++)if(C(r,h)===C(i,L===-1?0:h-L)){if(L===-1&&(L=h),h-L+1===_)return L*y}else L!==-1&&(h-=h-L),L=-1}else for(u+_>w&&(u=w-_),h=u;h>=0;h--){let L=!0;for(let N=0;N<_;N++)if(C(r,h+N)!==C(i,N)){L=!1;break}if(L)return h}return-1}function E(r,i,u,f){u=Number(u)||0;const c=r.length-u;f?(f=Number(f))>c&&(f=c):f=c;const h=i.length;let y;for(f>h/2&&(f=h/2),y=0;y<f;++y){const w=parseInt(i.substr(2*y,2),16);if(pt(w))return y;r[u+y]=w}return y}function k(r,i,u,f){return $e(ht(i,r.length-u),r,u,f)}function U(r,i,u,f){return $e(function(c){const h=[];for(let y=0;y<c.length;++y)h.push(255&c.charCodeAt(y));return h}(i),r,u,f)}function O(r,i,u,f){return $e(Vt(i),r,u,f)}function b(r,i,u,f){return $e(function(c,h){let y,w,_;const C=[];for(let L=0;L<c.length&&!((h-=2)<0);++L)y=c.charCodeAt(L),w=y>>8,_=y%256,C.push(_),C.push(w);return C}(i,r.length-u),r,u,f)}function $(r,i,u){return i===0&&u===r.length?t.fromByteArray(r):t.fromByteArray(r.slice(i,u))}function j(r,i,u){u=Math.min(r.length,u);const f=[];let c=i;for(;c<u;){const h=r[c];let y=null,w=h>239?4:h>223?3:h>191?2:1;if(c+w<=u){let _,C,L,N;switch(w){case 1:h<128&&(y=h);break;case 2:_=r[c+1],(192&_)==128&&(N=(31&h)<<6|63&_,N>127&&(y=N));break;case 3:_=r[c+1],C=r[c+2],(192&_)==128&&(192&C)==128&&(N=(15&h)<<12|(63&_)<<6|63&C,N>2047&&(N<55296||N>57343)&&(y=N));break;case 4:_=r[c+1],C=r[c+2],L=r[c+3],(192&_)==128&&(192&C)==128&&(192&L)==128&&(N=(15&h)<<18|(63&_)<<12|(63&C)<<6|63&L,N>65535&&N<1114112&&(y=N))}}y===null?(y=65533,w=1):y>65535&&(y-=65536,f.push(y>>>10&1023|55296),y=56320|1023&y),f.push(y),c+=w}return function(h){const y=h.length;if(y<=te)return String.fromCharCode.apply(String,h);let w="",_=0;for(;_<y;)w+=String.fromCharCode.apply(String,h.slice(_,_+=te));return w}(f)}e.kMaxLength=l,s.TYPED_ARRAY_SUPPORT=function(){try{const r=new Uint8Array(1),i={foo:function(){return 42}};return Object.setPrototypeOf(i,Uint8Array.prototype),Object.setPrototypeOf(r,i),r.foo()===42}catch{return!1}}(),s.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."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(r,i,u){return p(r,i,u)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(r,i,u){return function(f,c,h){return d(f),f<=0?a(f):c!==void 0?typeof h=="string"?a(f).fill(c,h):a(f).fill(c):a(f)}(r,i,u)},s.allocUnsafe=function(r){return g(r)},s.allocUnsafeSlow=function(r){return g(r)},s.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==s.prototype},s.compare=function(r,i){if(ee(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),ee(i,Uint8Array)&&(i=s.from(i,i.offset,i.byteLength)),!s.isBuffer(r)||!s.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===i)return 0;let u=r.length,f=i.length;for(let c=0,h=Math.min(u,f);c<h;++c)if(r[c]!==i[c]){u=r[c],f=i[c];break}return u<f?-1:f<u?1:0},s.isEncoding=function(r){switch(String(r).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}},s.concat=function(r,i){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return s.alloc(0);let u;if(i===void 0)for(i=0,u=0;u<r.length;++u)i+=r[u].length;const f=s.allocUnsafe(i);let c=0;for(u=0;u<r.length;++u){let h=r[u];if(ee(h,Uint8Array))c+h.length>f.length?(s.isBuffer(h)||(h=s.from(h)),h.copy(f,c)):Uint8Array.prototype.set.call(f,h,c);else{if(!s.isBuffer(h))throw new TypeError('"list" argument must be an Array of Buffers');h.copy(f,c)}c+=h.length}return f},s.byteLength=A,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const r=this.length;if(r%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let i=0;i<r;i+=2)T(this,i,i+1);return this},s.prototype.swap32=function(){const r=this.length;if(r%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let i=0;i<r;i+=4)T(this,i,i+3),T(this,i+1,i+2);return this},s.prototype.swap64=function(){const r=this.length;if(r%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let i=0;i<r;i+=8)T(this,i,i+7),T(this,i+1,i+6),T(this,i+2,i+5),T(this,i+3,i+4);return this},s.prototype.toString=function(){const r=this.length;return r===0?"":arguments.length===0?j(this,0,r):I.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(r){if(!s.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r||s.compare(this,r)===0},s.prototype.inspect=function(){let r="";const i=e.INSPECT_MAX_BYTES;return r=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(r+=" ... "),"<Buffer "+r+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(r,i,u,f,c){if(ee(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(i===void 0&&(i=0),u===void 0&&(u=r?r.length:0),f===void 0&&(f=0),c===void 0&&(c=this.length),i<0||u>r.length||f<0||c>this.length)throw new RangeError("out of range index");if(f>=c&&i>=u)return 0;if(f>=c)return-1;if(i>=u)return 1;if(this===r)return 0;let h=(c>>>=0)-(f>>>=0),y=(u>>>=0)-(i>>>=0);const w=Math.min(h,y),_=this.slice(f,c),C=r.slice(i,u);for(let L=0;L<w;++L)if(_[L]!==C[L]){h=_[L],y=C[L];break}return h<y?-1:y<h?1:0},s.prototype.includes=function(r,i,u){return this.indexOf(r,i,u)!==-1},s.prototype.indexOf=function(r,i,u){return z(this,r,i,u,!0)},s.prototype.lastIndexOf=function(r,i,u){return z(this,r,i,u,!1)},s.prototype.write=function(r,i,u,f){if(i===void 0)f="utf8",u=this.length,i=0;else if(u===void 0&&typeof i=="string")f=i,u=this.length,i=0;else{if(!isFinite(i))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");i>>>=0,isFinite(u)?(u>>>=0,f===void 0&&(f="utf8")):(f=u,u=void 0)}const c=this.length-i;if((u===void 0||u>c)&&(u=c),r.length>0&&(u<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");f||(f="utf8");let h=!1;for(;;)switch(f){case"hex":return E(this,r,i,u);case"utf8":case"utf-8":return k(this,r,i,u);case"ascii":case"latin1":case"binary":return U(this,r,i,u);case"base64":return O(this,r,i,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b(this,r,i,u);default:if(h)throw new TypeError("Unknown encoding: "+f);f=(""+f).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const te=4096;function K(r,i,u){let f="";u=Math.min(r.length,u);for(let c=i;c<u;++c)f+=String.fromCharCode(127&r[c]);return f}function Ce(r,i,u){let f="";u=Math.min(r.length,u);for(let c=i;c<u;++c)f+=String.fromCharCode(r[c]);return f}function ft(r,i,u){const f=r.length;(!i||i<0)&&(i=0),(!u||u<0||u>f)&&(u=f);let c="";for(let h=i;h<u;++h)c+=ur[r[h]];return c}function ct(r,i,u){const f=r.slice(i,u);let c="";for(let h=0;h<f.length-1;h+=2)c+=String.fromCharCode(f[h]+256*f[h+1]);return c}function F(r,i,u){if(r%1!=0||r<0)throw new RangeError("offset is not uint");if(r+i>u)throw new RangeError("Trying to access beyond buffer length")}function Q(r,i,u,f,c,h){if(!s.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>c||i<h)throw new RangeError('"value" argument is out of bounds');if(u+f>r.length)throw new RangeError("Index out of range")}function et(r,i,u,f,c){Ue(i,f,c,r,u,7);let h=Number(i&BigInt(4294967295));r[u++]=h,h>>=8,r[u++]=h,h>>=8,r[u++]=h,h>>=8,r[u++]=h;let y=Number(i>>BigInt(32)&BigInt(4294967295));return r[u++]=y,y>>=8,r[u++]=y,y>>=8,r[u++]=y,y>>=8,r[u++]=y,u}function tt(r,i,u,f,c){Ue(i,f,c,r,u,7);let h=Number(i&BigInt(4294967295));r[u+7]=h,h>>=8,r[u+6]=h,h>>=8,r[u+5]=h,h>>=8,r[u+4]=h;let y=Number(i>>BigInt(32)&BigInt(4294967295));return r[u+3]=y,y>>=8,r[u+2]=y,y>>=8,r[u+1]=y,y>>=8,r[u]=y,u+8}function M(r,i,u,f,c,h){if(u+f>r.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("Index out of range")}function V(r,i,u,f,c){return i=+i,u>>>=0,c||M(r,0,u,4),n.write(r,i,u,f,23,4),u+4}function W(r,i,u,f,c){return i=+i,u>>>=0,c||M(r,0,u,8),n.write(r,i,u,f,52,8),u+8}s.prototype.slice=function(r,i){const u=this.length;(r=~~r)<0?(r+=u)<0&&(r=0):r>u&&(r=u),(i=i===void 0?u:~~i)<0?(i+=u)<0&&(i=0):i>u&&(i=u),i<r&&(i=r);const f=this.subarray(r,i);return Object.setPrototypeOf(f,s.prototype),f},s.prototype.readUintLE=s.prototype.readUIntLE=function(r,i,u){r>>>=0,i>>>=0,u||F(r,i,this.length);let f=this[r],c=1,h=0;for(;++h<i&&(c*=256);)f+=this[r+h]*c;return f},s.prototype.readUintBE=s.prototype.readUIntBE=function(r,i,u){r>>>=0,i>>>=0,u||F(r,i,this.length);let f=this[r+--i],c=1;for(;i>0&&(c*=256);)f+=this[r+--i]*c;return f},s.prototype.readUint8=s.prototype.readUInt8=function(r,i){return r>>>=0,i||F(r,1,this.length),this[r]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(r,i){return r>>>=0,i||F(r,2,this.length),this[r]|this[r+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(r,i){return r>>>=0,i||F(r,2,this.length),this[r]<<8|this[r+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(r,i){return r>>>=0,i||F(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+16777216*this[r+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(r,i){return r>>>=0,i||F(r,4,this.length),16777216*this[r]+(this[r+1]<<16|this[r+2]<<8|this[r+3])},s.prototype.readBigUInt64LE=oe(function(r){fe(r>>>=0,"offset");const i=this[r],u=this[r+7];i!==void 0&&u!==void 0||le(r,this.length-8);const f=i+256*this[++r]+65536*this[++r]+this[++r]*2**24,c=this[++r]+256*this[++r]+65536*this[++r]+u*2**24;return BigInt(f)+(BigInt(c)<<BigInt(32))}),s.prototype.readBigUInt64BE=oe(function(r){fe(r>>>=0,"offset");const i=this[r],u=this[r+7];i!==void 0&&u!==void 0||le(r,this.length-8);const f=i*2**24+65536*this[++r]+256*this[++r]+this[++r],c=this[++r]*2**24+65536*this[++r]+256*this[++r]+u;return(BigInt(f)<<BigInt(32))+BigInt(c)}),s.prototype.readIntLE=function(r,i,u){r>>>=0,i>>>=0,u||F(r,i,this.length);let f=this[r],c=1,h=0;for(;++h<i&&(c*=256);)f+=this[r+h]*c;return c*=128,f>=c&&(f-=Math.pow(2,8*i)),f},s.prototype.readIntBE=function(r,i,u){r>>>=0,i>>>=0,u||F(r,i,this.length);let f=i,c=1,h=this[r+--f];for(;f>0&&(c*=256);)h+=this[r+--f]*c;return c*=128,h>=c&&(h-=Math.pow(2,8*i)),h},s.prototype.readInt8=function(r,i){return r>>>=0,i||F(r,1,this.length),128&this[r]?-1*(255-this[r]+1):this[r]},s.prototype.readInt16LE=function(r,i){r>>>=0,i||F(r,2,this.length);const u=this[r]|this[r+1]<<8;return 32768&u?4294901760|u:u},s.prototype.readInt16BE=function(r,i){r>>>=0,i||F(r,2,this.length);const u=this[r+1]|this[r]<<8;return 32768&u?4294901760|u:u},s.prototype.readInt32LE=function(r,i){return r>>>=0,i||F(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},s.prototype.readInt32BE=function(r,i){return r>>>=0,i||F(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},s.prototype.readBigInt64LE=oe(function(r){fe(r>>>=0,"offset");const i=this[r],u=this[r+7];i!==void 0&&u!==void 0||le(r,this.length-8);const f=this[r+4]+256*this[r+5]+65536*this[r+6]+(u<<24);return(BigInt(f)<<BigInt(32))+BigInt(i+256*this[++r]+65536*this[++r]+this[++r]*2**24)}),s.prototype.readBigInt64BE=oe(function(r){fe(r>>>=0,"offset");const i=this[r],u=this[r+7];i!==void 0&&u!==void 0||le(r,this.length-8);const f=(i<<24)+65536*this[++r]+256*this[++r]+this[++r];return(BigInt(f)<<BigInt(32))+BigInt(this[++r]*2**24+65536*this[++r]+256*this[++r]+u)}),s.prototype.readFloatLE=function(r,i){return r>>>=0,i||F(r,4,this.length),n.read(this,r,!0,23,4)},s.prototype.readFloatBE=function(r,i){return r>>>=0,i||F(r,4,this.length),n.read(this,r,!1,23,4)},s.prototype.readDoubleLE=function(r,i){return r>>>=0,i||F(r,8,this.length),n.read(this,r,!0,52,8)},s.prototype.readDoubleBE=function(r,i){return r>>>=0,i||F(r,8,this.length),n.read(this,r,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(r,i,u,f){r=+r,i>>>=0,u>>>=0,f||Q(this,r,i,u,Math.pow(2,8*u)-1,0);let c=1,h=0;for(this[i]=255&r;++h<u&&(c*=256);)this[i+h]=r/c&255;return i+u},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(r,i,u,f){r=+r,i>>>=0,u>>>=0,f||Q(this,r,i,u,Math.pow(2,8*u)-1,0);let c=u-1,h=1;for(this[i+c]=255&r;--c>=0&&(h*=256);)this[i+c]=r/h&255;return i+u},s.prototype.writeUint8=s.prototype.writeUInt8=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,1,255,0),this[i]=255&r,i+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,2,65535,0),this[i]=255&r,this[i+1]=r>>>8,i+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,2,65535,0),this[i]=r>>>8,this[i+1]=255&r,i+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,4,4294967295,0),this[i+3]=r>>>24,this[i+2]=r>>>16,this[i+1]=r>>>8,this[i]=255&r,i+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,4,4294967295,0),this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=255&r,i+4},s.prototype.writeBigUInt64LE=oe(function(r,i=0){return et(this,r,i,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=oe(function(r,i=0){return tt(this,r,i,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(r,i,u,f){if(r=+r,i>>>=0,!f){const w=Math.pow(2,8*u-1);Q(this,r,i,u,w-1,-w)}let c=0,h=1,y=0;for(this[i]=255&r;++c<u&&(h*=256);)r<0&&y===0&&this[i+c-1]!==0&&(y=1),this[i+c]=(r/h|0)-y&255;return i+u},s.prototype.writeIntBE=function(r,i,u,f){if(r=+r,i>>>=0,!f){const w=Math.pow(2,8*u-1);Q(this,r,i,u,w-1,-w)}let c=u-1,h=1,y=0;for(this[i+c]=255&r;--c>=0&&(h*=256);)r<0&&y===0&&this[i+c+1]!==0&&(y=1),this[i+c]=(r/h|0)-y&255;return i+u},s.prototype.writeInt8=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,1,127,-128),r<0&&(r=255+r+1),this[i]=255&r,i+1},s.prototype.writeInt16LE=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,2,32767,-32768),this[i]=255&r,this[i+1]=r>>>8,i+2},s.prototype.writeInt16BE=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,2,32767,-32768),this[i]=r>>>8,this[i+1]=255&r,i+2},s.prototype.writeInt32LE=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,4,2147483647,-2147483648),this[i]=255&r,this[i+1]=r>>>8,this[i+2]=r>>>16,this[i+3]=r>>>24,i+4},s.prototype.writeInt32BE=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=255&r,i+4},s.prototype.writeBigInt64LE=oe(function(r,i=0){return et(this,r,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=oe(function(r,i=0){return tt(this,r,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(r,i,u){return V(this,r,i,!0,u)},s.prototype.writeFloatBE=function(r,i,u){return V(this,r,i,!1,u)},s.prototype.writeDoubleLE=function(r,i,u){return W(this,r,i,!0,u)},s.prototype.writeDoubleBE=function(r,i,u){return W(this,r,i,!1,u)},s.prototype.copy=function(r,i,u,f){if(!s.isBuffer(r))throw new TypeError("argument should be a Buffer");if(u||(u=0),f||f===0||(f=this.length),i>=r.length&&(i=r.length),i||(i=0),f>0&&f<u&&(f=u),f===u||r.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(u<0||u>=this.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("sourceEnd out of bounds");f>this.length&&(f=this.length),r.length-i<f-u&&(f=r.length-i+u);const c=f-u;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(i,u,f):Uint8Array.prototype.set.call(r,this.subarray(u,f),i),c},s.prototype.fill=function(r,i,u,f){if(typeof r=="string"){if(typeof i=="string"?(f=i,i=0,u=this.length):typeof u=="string"&&(f=u,u=this.length),f!==void 0&&typeof f!="string")throw new TypeError("encoding must be a string");if(typeof f=="string"&&!s.isEncoding(f))throw new TypeError("Unknown encoding: "+f);if(r.length===1){const h=r.charCodeAt(0);(f==="utf8"&&h<128||f==="latin1")&&(r=h)}}else typeof r=="number"?r&=255:typeof r=="boolean"&&(r=Number(r));if(i<0||this.length<i||this.length<u)throw new RangeError("Out of range index");if(u<=i)return this;let c;if(i>>>=0,u=u===void 0?this.length:u>>>0,r||(r=0),typeof r=="number")for(c=i;c<u;++c)this[c]=r;else{const h=s.isBuffer(r)?r:s.from(r,f),y=h.length;if(y===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(c=0;c<u-i;++c)this[c+i]=h[c%y]}return this};const Y={};function ne(r,i,u){Y[r]=class extends u{constructor(){super(),Object.defineProperty(this,"message",{value:i.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${r}]`,this.stack,delete this.name}get code(){return r}set code(f){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:f,writable:!0})}toString(){return`${this.name} [${r}]: ${this.message}`}}}function Ye(r){let i="",u=r.length;const f=r[0]==="-"?1:0;for(;u>=f+4;u-=3)i=`_${r.slice(u-3,u)}${i}`;return`${r.slice(0,u)}${i}`}function Ue(r,i,u,f,c,h){if(r>u||r<i){const y=typeof i=="bigint"?"n":"";let w;throw w=i===0||i===BigInt(0)?`>= 0${y} and < 2${y} ** ${8*(h+1)}${y}`:`>= -(2${y} ** ${8*(h+1)-1}${y}) and < 2 ** ${8*(h+1)-1}${y}`,new Y.ERR_OUT_OF_RANGE("value",w,r)}(function(y,w,_){fe(w,"offset"),y[w]!==void 0&&y[w+_]!==void 0||le(w,y.length-(_+1))})(f,c,h)}function fe(r,i){if(typeof r!="number")throw new Y.ERR_INVALID_ARG_TYPE(i,"number",r)}function le(r,i,u){throw Math.floor(r)!==r?(fe(r,u),new Y.ERR_OUT_OF_RANGE("offset","an integer",r)):i<0?new Y.ERR_BUFFER_OUT_OF_BOUNDS:new Y.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${i}`,r)}ne("ERR_BUFFER_OUT_OF_BOUNDS",function(r){return r?`${r} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ne("ERR_INVALID_ARG_TYPE",function(r,i){return`The "${r}" argument must be of type number. Received type ${typeof i}`},TypeError),ne("ERR_OUT_OF_RANGE",function(r,i,u){let f=`The value of "${r}" is out of range.`,c=u;return Number.isInteger(u)&&Math.abs(u)>2**32?c=Ye(String(u)):typeof u=="bigint"&&(c=String(u),(u>BigInt(2)**BigInt(32)||u<-(BigInt(2)**BigInt(32)))&&(c=Ye(c)),c+="n"),f+=` It must be ${i}. Received ${c}`,f},RangeError);const _t=/[^+/0-9A-Za-z-_]/g;function ht(r,i){let u;i=i||1/0;const f=r.length;let c=null;const h=[];for(let y=0;y<f;++y){if(u=r.charCodeAt(y),u>55295&&u<57344){if(!c){if(u>56319){(i-=3)>-1&&h.push(239,191,189);continue}if(y+1===f){(i-=3)>-1&&h.push(239,191,189);continue}c=u;continue}if(u<56320){(i-=3)>-1&&h.push(239,191,189),c=u;continue}u=65536+(c-55296<<10|u-56320)}else c&&(i-=3)>-1&&h.push(239,191,189);if(c=null,u<128){if((i-=1)<0)break;h.push(u)}else if(u<2048){if((i-=2)<0)break;h.push(u>>6|192,63&u|128)}else if(u<65536){if((i-=3)<0)break;h.push(u>>12|224,u>>6&63|128,63&u|128)}else{if(!(u<1114112))throw new Error("Invalid code point");if((i-=4)<0)break;h.push(u>>18|240,u>>12&63|128,u>>6&63|128,63&u|128)}}return h}function Vt(r){return t.toByteArray(function(i){if((i=(i=i.split("=")[0]).trim().replace(_t,"")).length<2)return"";for(;i.length%4!=0;)i+="=";return i}(r))}function $e(r,i,u,f){let c;for(c=0;c<f&&!(c+u>=i.length||c>=r.length);++c)i[c+u]=r[c];return c}function ee(r,i){return r instanceof i||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===i.name}function pt(r){return r!=r}const ur=function(){const r="0123456789abcdef",i=new Array(256);for(let u=0;u<16;++u){const f=16*u;for(let c=0;c<16;++c)i[f+c]=r[u]+r[c]}return i}();function oe(r){return typeof BigInt>"u"?lr:r}function lr(){throw new Error("BigInt not supported")}}(za)),za);const al=new TextEncoder,Fi=new TextDecoder,ah=cs;function cs(e,t=0){let n;if(e===void 0||typeof e!="string"||typeof t!="number")throw TypeError("invlaid init variablie type name. ");return(e=e.toUpperCase()).includes("8")?(n=pe.Buffer.alloc(1),e.includes("I")?n.writeInt8(t):n.writeUint8(t)):e.includes("16")?(n=pe.Buffer.alloc(2),e.includes("I")?e.includes("L")?n.writeInt16LE(t):n.writeInt16BE(t):e.includes("L")?n.writeUint16LE(t):n.writeUint16BE(t)):e.includes("32")?(n=pe.Buffer.alloc(4),e.includes("I")?e.includes("L")?n.writeInt32LE(t):n.writeInt32BE(t):e.includes("L")?n.writeUint32LE(t):n.writeUint32BE(t)):e.includes("F")?(n=pe.Buffer.alloc(4),e.includes("L")?n.writeFloatLE(t):n.writeFloatBE(t)):e.includes("N")?n=pe.Buffer.from(String(t)):console.log(`invalid type: ${e} or initvalue: ${t}`),n}const fl=fh;function fh(e,t,n){let o,l="B";if(typeof t=="number")typeof n=="number"?(o=pe.Buffer.alloc(t),n!==0&&o.fill(n),l="B"):(o=pe.Buffer.from(String(t)),l="N");else if(typeof t=="string"&&typeof n=="number")l=t.toUpperCase(),o=cs(t,n);else if(typeof t=="string"&&n===void 0)o=pe.Buffer.from(t),l="S";else if(t instanceof Uint8Array&&n===void 0)o=t instanceof pe.Buffer?t:pe.Buffer.from(t);else if(t instanceof ArrayBuffer&&n===void 0)o=pe.Buffer.from(t);else if(ArrayBuffer.isView(t))o=pe.Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(typeof t=="object"&&n===void 0)o=pe.Buffer.from(JSON.stringify(t)),l="O";else{if(typeof t!="boolean"||n!==void 0)throw TypeError("invalid meta buffer type");{const a=t?1:0;o=pe.Buffer.from([a]),l="!"}}return typeof e=="string"&&e.includes("#")&&(e=""),[e,l,o]}const oy=ch;function ch(...e){let t=0;return e.map(n=>{const o=t++;return typeof n=="number"?fl(o,"N",n):fl(o,n)})}function hs(e){if((e=e.toUpperCase()).includes("8"))return e.includes("I")?"int8":"uint8";if(e.includes("16"))return e.includes("I")?e.includes("L")?"int16_le":"int16_be":e.includes("L")?"uint16_le":"uint16_be";if(e.includes("32"))return e.includes("I")?e.includes("L")?"int32_le":"int32_be":e.includes("L")?"uint32_le":"uint32_be";if(e.includes("F"))return e.includes("L")?"float_le":"float_be";if(e==="B")return"buffer";if(e==="S")return"string";if(e==="N")return"number";if(e==="O")return"object";if(e==="!")return"boolean";throw TypeError("invalid data type")}function fu(e,t,n,o){try{const l=hs(e);if(l=="int8")return t.readInt8(n);if(l==="uint8")return t.readUint8(n);if(l==="int16_le")return t.readInt16LE(n);if(l==="int16_be")return t.readInt16BE(n);if(l==="uint16_le")return t.readUint16LE(n);if(l==="uint16_be")return t.readUint16BE(n);if(l==="int32_le")return t.readInt32LE(n);if(l==="int32_be")return t.readInt32BE(n);if(l==="uint32_le")return t.readUint32LE(n);if(l==="uint32_be")return t.readUint32BE(n);if(l==="float_le")return t.readFloatLE(n);if(l==="float_be")return t.readFloatBE(n);if(l==="buffer")return t.subarray(n,n+o);if(l==="string"){const a=t.subarray(n,n+o);return Fi.decode(a)}if(l==="number"){const a=t.subarray(n,n+o);return Number(Fi.decode(a))}if(l==="object"){const a=t.subarray(n,n+o);return JSON.parse(Fi.decode(a))}return l==="boolean"?t.readInt8(n)===1:void 0}catch{}}function ki(...e){const t=function(d){let g=[];return d.filter(m=>{if(!Array.isArray(m[0]))return m;g=g.concat(m)}).concat(g)}(e);let n=0;const o=[];let l,a,s=0;if(t.forEach(d=>{const[g,m,S]=d;n+=S.byteLength,(typeof g=="number"||g.length>0)&&o.push([g,m,s,S.byteLength]),s=n}),o.length>0){let d=JSON.stringify(o);l=al.encode(d),a=l.byteLength,n=n+a+2}const p=pe.Buffer.alloc(n);if(s=0,t.forEach(d=>{const g=d[2];p.set(g,s),s+=g.byteLength}),o.length>0){p.set(l,s);const d=ah("16",a);return p.set(d,s+a),p}return p}const uy=xo;function xo(e,t=!1){if(e===void 0)throw TypeError("Invalid data type: Undefined");if(typeof e=="string")return al.encode(e);if(typeof e=="number")return Uint8Array.from([e]);if(e instanceof ArrayBuffer){if(t)return new Uint8Array(e);{const n=new Uint8Array(e),o=new Uint8Array(e.byteLength);return o.set(n),o}}if(ArrayBuffer.isView(e)){if(t)return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);{const n=new Uint8Array(e.buffer,e.byteOffset,e.byteLength),o=new Uint8Array(e.byteLength);return o.set(n),o}}return al.encode(JSON.stringify(e))}const ly=ps;function ps(e,t=!1){const n=xo(e,t);return t?pe.Buffer.from(n.buffer,n.byteOffset,n.byteLength):pe.Buffer.from(n)}const sy=hh;function hh(...e){const t=e.map(n=>ps(n));return pe.Buffer.concat(t)}const ay=ph;function ph(...e){try{let t=0,n=0;const o=e.map(a=>xo(a));o.forEach(a=>{t+=a.byteLength});const l=new Uint8Array(t);return o.forEach(a=>{l.set(a,n),n+=a.byteLength}),l}catch(t){console.log(t)}}function dh(e){return cl(e)===0?e.byteLength:e.byteLength-cl(e)-qr}function ds(e,t){try{const n=new Uint8Array(e.buffer,e.byteOffset,e.byteLength),o=n.byteLength-t-2,l=n.subarray(o,n.byteLength-2),a=Fi.decode(l),s=JSON.parse(a);if(!Array.isArray(s)||!Array.isArray(s[0]))return;let p=s[0];if(!p||p.length<3)return;const[d,g,m]=p;return typeof g!="string"||typeof m!="number"?void 0:s}catch{}}const qr=2;function ys(e){return e instanceof ArrayBuffer&&(e=pe.Buffer.from(e)),e instanceof Uint8Array?e.byteLength<=qr?0:new DataView(e.buffer,e.byteOffset,e.byteLength).getUint16(e.byteLength-qr):0}function cl(e){if(e instanceof ArrayBuffer&&(e=pe.Buffer.from(e)),e instanceof Uint8Array){const t=e.byteLength;if(t<=qr)return 0;const n=ys(e);return n===0||n>t?0:ds(e,n)?n:0}return 0}function ba(e){const t=dh(e);return e.subarray(0,t)}function Er(e,t=!1){e instanceof ArrayBuffer&&(e=pe.Buffer.from(e));const n=ys(e);if(n===0)return;let o=ds(e,n);return o?(t&&o.forEach(l=>{l[3]==null&&(l[1].includes("8")?l[3]=1:l[1].includes("16")?l[3]=2:l[1].includes("32")||l[1].includes("F")?l[3]=4:l[1].includes("!")&&(l[3]=1)),l[4]=hs(l[1])}),o):void 0}var R=Object.freeze({__proto__:null,B8:ly,B8pack:sy,Buffer:pe.Buffer,MB:fl,MBA:oy,NB:ah,TAIL_LEN:qr,U8:uy,U8pack:ay,equal:function(e,t){if(e.byteLength!==t.byteLength)return!1;for(let n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0},getBuffer:ba,getBufferSize:dh,getMeta:Er,getMetaDetail:function(e){return Er(e,!0)},getMetaSize:cl,hex:function(e){return Array.prototype.map.call(new Uint8Array(e),t=>("00"+t.toString(16)).slice(-2)).join("")},meta:function(...e){return Er(ki(...e))},metaBuffer:fh,metaBufferArguments:ch,metaDetail:function(...e){return Er(ki(...e),!0)},numberBuffer:cs,pack:ki,parseBuffer:ps,parseBufferThenConcat:hh,parseMetaInfo:ds,parseTypeName:hs,parseUint8Array:xo,parseUint8ThenConcat:ph,rawPack:function(...e){return ba(ki(...e))},readTail:ys,readTypedBuffer:fu,unpack:function(e,t){const n=t||Er(e);if(!n)return;const o=pe.Buffer.from(e),l={};let a=0;if(n.forEach(d=>{const[g,m,S,B]=d;let A=fu(m,o,S,B);A!=null&&(l[g]=A,B&&(a+=B))}),t&&o.byteLength!==a){let d=o.byteLength-a,g=fu("b",o,a,d);if(g==null)return;l.$OTHERS=g}let s=0,p=[];for(;l[s];)p.push(l[s++]);return p.length>0&&(l.args=p,l.$=l.args),l}});const xt={hash:function(e){return su(R.U8(e))},hex:function(e){return R.B8(su(R.U8(e))).toString("hex")},base64:function(e){return R.B8(su(R.U8(e))).toString("base64")},hmac:function(e,t){return function(n,o){const l=new ry(n).update(o),a=l.digest();return l.clean(),a}(R.U8(e),R.U8(t))}};var Da,$a,ja,Fa={},Sr={},cu={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */function fy(){return $a||($a=1,cu.read=function(e,t,n,o,l){var a,s,p=8*l-o-1,d=(1<<p)-1,g=d>>1,m=-7,S=n?l-1:0,B=n?-1:1,A=e[t+S];for(S+=B,a=A&(1<<-m)-1,A>>=-m,m+=p;m>0;a=256*a+e[t+S],S+=B,m-=8);for(s=a&(1<<-m)-1,a>>=-m,m+=o;m>0;s=256*s+e[t+S],S+=B,m-=8);if(a===0)a=1-g;else{if(a===d)return s?NaN:1/0*(A?-1:1);s+=Math.pow(2,o),a-=g}return(A?-1:1)*s*Math.pow(2,a-o)},cu.write=function(e,t,n,o,l,a){var s,p,d,g=8*a-l-1,m=(1<<g)-1,S=m>>1,B=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=o?0:a-1,I=o?1:-1,T=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(p=isNaN(t)?1:0,s=m):(s=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-s))<1&&(s--,d*=2),(t+=s+S>=1?B/d:B*Math.pow(2,1-S))*d>=2&&(s++,d/=2),s+S>=m?(p=0,s=m):s+S>=1?(p=(t*d-1)*Math.pow(2,l),s+=S):(p=t*Math.pow(2,S-1)*Math.pow(2,l),s=0));l>=8;e[n+A]=255&p,A+=I,p/=256,l-=8);for(s=s<<l|p,g+=l;g>0;e[n+A]=255&s,A+=I,s/=256,g-=8);e[n+A-I]|=128*T}),cu}/*!
51
- * The buffer module from node.js, for the browser.
52
- *
53
- * @author Feross Aboukhadijeh <https://feross.org>
54
- * @license MIT
55
- */var re=(ja||(ja=1,function(e){const t=function(){if(Da)return Sr;Da=1,Sr.byteLength=function(w){var _=h(w),C=_[0],L=_[1];return 3*(C+L)/4-L},Sr.toByteArray=function(w){var _,C,L=h(w),N=L[0],G=L[1],P=new u(function(gs,sr,Wt){return 3*(sr+Wt)/4-Wt}(0,N,G)),Z=0,dn=G>0?N-4:N;for(C=0;C<dn;C+=4)_=i[w.charCodeAt(C)]<<18|i[w.charCodeAt(C+1)]<<12|i[w.charCodeAt(C+2)]<<6|i[w.charCodeAt(C+3)],P[Z++]=_>>16&255,P[Z++]=_>>8&255,P[Z++]=255&_;return G===2&&(_=i[w.charCodeAt(C)]<<2|i[w.charCodeAt(C+1)]>>4,P[Z++]=255&_),G===1&&(_=i[w.charCodeAt(C)]<<10|i[w.charCodeAt(C+1)]<<4|i[w.charCodeAt(C+2)]>>2,P[Z++]=_>>8&255,P[Z++]=255&_),P},Sr.fromByteArray=function(w){for(var _,C=w.length,L=C%3,N=[],G=16383,P=0,Z=C-L;P<Z;P+=G)N.push(y(w,P,P+G>Z?Z:P+G));return L===1?(_=w[C-1],N.push(r[_>>2]+r[_<<4&63]+"==")):L===2&&(_=(w[C-2]<<8)+w[C-1],N.push(r[_>>10]+r[_>>4&63]+r[_<<2&63]+"=")),N.join("")};for(var r=[],i=[],u=typeof Uint8Array<"u"?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0;c<64;++c)r[c]=f[c],i[f.charCodeAt(c)]=c;function h(w){var _=w.length;if(_%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var C=w.indexOf("=");return C===-1&&(C=_),[C,C===_?0:4-C%4]}function y(w,_,C){for(var L,N,G=[],P=_;P<C;P+=3)L=(w[P]<<16&16711680)+(w[P+1]<<8&65280)+(255&w[P+2]),G.push(r[(N=L)>>18&63]+r[N>>12&63]+r[N>>6&63]+r[63&N]);return G.join("")}return i[45]=62,i[95]=63,Sr}(),n=fy(),o=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=function(r){return+r!=r&&(r=0),s.alloc(+r)},e.INSPECT_MAX_BYTES=50;const l=2147483647;function a(r){if(r>l)throw new RangeError('The value "'+r+'" is invalid for option "size"');const i=new Uint8Array(r);return Object.setPrototypeOf(i,s.prototype),i}function s(r,i,u){if(typeof r=="number"){if(typeof i=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(r)}return p(r,i,u)}function p(r,i,u){if(typeof r=="string")return function(h,y){if(typeof y=="string"&&y!==""||(y="utf8"),!s.isEncoding(y))throw new TypeError("Unknown encoding: "+y);const w=0|A(h,y);let _=a(w);const C=_.write(h,y);return C!==w&&(_=_.slice(0,C)),_}(r,i);if(ArrayBuffer.isView(r))return function(h){if(ee(h,Uint8Array)){const y=new Uint8Array(h);return S(y.buffer,y.byteOffset,y.byteLength)}return m(h)}(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(ee(r,ArrayBuffer)||r&&ee(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ee(r,SharedArrayBuffer)||r&&ee(r.buffer,SharedArrayBuffer)))return S(r,i,u);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const f=r.valueOf&&r.valueOf();if(f!=null&&f!==r)return s.from(f,i,u);const c=function(h){if(s.isBuffer(h)){const y=0|B(h.length),w=a(y);return w.length===0||h.copy(w,0,0,y),w}return h.length!==void 0?typeof h.length!="number"||pt(h.length)?a(0):m(h):h.type==="Buffer"&&Array.isArray(h.data)?m(h.data):void 0}(r);if(c)return c;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return s.from(r[Symbol.toPrimitive]("string"),i,u);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}function d(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function g(r){return d(r),a(r<0?0:0|B(r))}function m(r){const i=r.length<0?0:0|B(r.length),u=a(i);for(let f=0;f<i;f+=1)u[f]=255&r[f];return u}function S(r,i,u){if(i<0||r.byteLength<i)throw new RangeError('"offset" is outside of buffer bounds');if(r.byteLength<i+(u||0))throw new RangeError('"length" is outside of buffer bounds');let f;return f=i===void 0&&u===void 0?new Uint8Array(r):u===void 0?new Uint8Array(r,i):new Uint8Array(r,i,u),Object.setPrototypeOf(f,s.prototype),f}function B(r){if(r>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return 0|r}function A(r,i){if(s.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||ee(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);const u=r.length,f=arguments.length>2&&arguments[2]===!0;if(!f&&u===0)return 0;let c=!1;for(;;)switch(i){case"ascii":case"latin1":case"binary":return u;case"utf8":case"utf-8":return ht(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*u;case"hex":return u>>>1;case"base64":return Vt(r).length;default:if(c)return f?-1:ht(r).length;i=(""+i).toLowerCase(),c=!0}}function I(r,i,u){let f=!1;if((i===void 0||i<0)&&(i=0),i>this.length||((u===void 0||u>this.length)&&(u=this.length),u<=0)||(u>>>=0)<=(i>>>=0))return"";for(r||(r="utf8");;)switch(r){case"hex":return ft(this,i,u);case"utf8":case"utf-8":return j(this,i,u);case"ascii":return K(this,i,u);case"latin1":case"binary":return Ce(this,i,u);case"base64":return $(this,i,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ct(this,i,u);default:if(f)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),f=!0}}function T(r,i,u){const f=r[i];r[i]=r[u],r[u]=f}function z(r,i,u,f,c){if(r.length===0)return-1;if(typeof u=="string"?(f=u,u=0):u>2147483647?u=2147483647:u<-2147483648&&(u=-2147483648),pt(u=+u)&&(u=c?0:r.length-1),u<0&&(u=r.length+u),u>=r.length){if(c)return-1;u=r.length-1}else if(u<0){if(!c)return-1;u=0}if(typeof i=="string"&&(i=s.from(i,f)),s.isBuffer(i))return i.length===0?-1:v(r,i,u,f,c);if(typeof i=="number")return i&=255,typeof Uint8Array.prototype.indexOf=="function"?c?Uint8Array.prototype.indexOf.call(r,i,u):Uint8Array.prototype.lastIndexOf.call(r,i,u):v(r,[i],u,f,c);throw new TypeError("val must be string, number or Buffer")}function v(r,i,u,f,c){let h,y=1,w=r.length,_=i.length;if(f!==void 0&&((f=String(f).toLowerCase())==="ucs2"||f==="ucs-2"||f==="utf16le"||f==="utf-16le")){if(r.length<2||i.length<2)return-1;y=2,w/=2,_/=2,u/=2}function C(L,N){return y===1?L[N]:L.readUInt16BE(N*y)}if(c){let L=-1;for(h=u;h<w;h++)if(C(r,h)===C(i,L===-1?0:h-L)){if(L===-1&&(L=h),h-L+1===_)return L*y}else L!==-1&&(h-=h-L),L=-1}else for(u+_>w&&(u=w-_),h=u;h>=0;h--){let L=!0;for(let N=0;N<_;N++)if(C(r,h+N)!==C(i,N)){L=!1;break}if(L)return h}return-1}function E(r,i,u,f){u=Number(u)||0;const c=r.length-u;f?(f=Number(f))>c&&(f=c):f=c;const h=i.length;let y;for(f>h/2&&(f=h/2),y=0;y<f;++y){const w=parseInt(i.substr(2*y,2),16);if(pt(w))return y;r[u+y]=w}return y}function k(r,i,u,f){return $e(ht(i,r.length-u),r,u,f)}function U(r,i,u,f){return $e(function(c){const h=[];for(let y=0;y<c.length;++y)h.push(255&c.charCodeAt(y));return h}(i),r,u,f)}function O(r,i,u,f){return $e(Vt(i),r,u,f)}function b(r,i,u,f){return $e(function(c,h){let y,w,_;const C=[];for(let L=0;L<c.length&&!((h-=2)<0);++L)y=c.charCodeAt(L),w=y>>8,_=y%256,C.push(_),C.push(w);return C}(i,r.length-u),r,u,f)}function $(r,i,u){return i===0&&u===r.length?t.fromByteArray(r):t.fromByteArray(r.slice(i,u))}function j(r,i,u){u=Math.min(r.length,u);const f=[];let c=i;for(;c<u;){const h=r[c];let y=null,w=h>239?4:h>223?3:h>191?2:1;if(c+w<=u){let _,C,L,N;switch(w){case 1:h<128&&(y=h);break;case 2:_=r[c+1],(192&_)==128&&(N=(31&h)<<6|63&_,N>127&&(y=N));break;case 3:_=r[c+1],C=r[c+2],(192&_)==128&&(192&C)==128&&(N=(15&h)<<12|(63&_)<<6|63&C,N>2047&&(N<55296||N>57343)&&(y=N));break;case 4:_=r[c+1],C=r[c+2],L=r[c+3],(192&_)==128&&(192&C)==128&&(192&L)==128&&(N=(15&h)<<18|(63&_)<<12|(63&C)<<6|63&L,N>65535&&N<1114112&&(y=N))}}y===null?(y=65533,w=1):y>65535&&(y-=65536,f.push(y>>>10&1023|55296),y=56320|1023&y),f.push(y),c+=w}return function(h){const y=h.length;if(y<=te)return String.fromCharCode.apply(String,h);let w="",_=0;for(;_<y;)w+=String.fromCharCode.apply(String,h.slice(_,_+=te));return w}(f)}e.kMaxLength=l,s.TYPED_ARRAY_SUPPORT=function(){try{const r=new Uint8Array(1),i={foo:function(){return 42}};return Object.setPrototypeOf(i,Uint8Array.prototype),Object.setPrototypeOf(r,i),r.foo()===42}catch{return!1}}(),s.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."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(r,i,u){return p(r,i,u)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(r,i,u){return function(f,c,h){return d(f),f<=0?a(f):c!==void 0?typeof h=="string"?a(f).fill(c,h):a(f).fill(c):a(f)}(r,i,u)},s.allocUnsafe=function(r){return g(r)},s.allocUnsafeSlow=function(r){return g(r)},s.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==s.prototype},s.compare=function(r,i){if(ee(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),ee(i,Uint8Array)&&(i=s.from(i,i.offset,i.byteLength)),!s.isBuffer(r)||!s.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===i)return 0;let u=r.length,f=i.length;for(let c=0,h=Math.min(u,f);c<h;++c)if(r[c]!==i[c]){u=r[c],f=i[c];break}return u<f?-1:f<u?1:0},s.isEncoding=function(r){switch(String(r).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}},s.concat=function(r,i){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return s.alloc(0);let u;if(i===void 0)for(i=0,u=0;u<r.length;++u)i+=r[u].length;const f=s.allocUnsafe(i);let c=0;for(u=0;u<r.length;++u){let h=r[u];if(ee(h,Uint8Array))c+h.length>f.length?(s.isBuffer(h)||(h=s.from(h)),h.copy(f,c)):Uint8Array.prototype.set.call(f,h,c);else{if(!s.isBuffer(h))throw new TypeError('"list" argument must be an Array of Buffers');h.copy(f,c)}c+=h.length}return f},s.byteLength=A,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const r=this.length;if(r%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let i=0;i<r;i+=2)T(this,i,i+1);return this},s.prototype.swap32=function(){const r=this.length;if(r%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let i=0;i<r;i+=4)T(this,i,i+3),T(this,i+1,i+2);return this},s.prototype.swap64=function(){const r=this.length;if(r%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let i=0;i<r;i+=8)T(this,i,i+7),T(this,i+1,i+6),T(this,i+2,i+5),T(this,i+3,i+4);return this},s.prototype.toString=function(){const r=this.length;return r===0?"":arguments.length===0?j(this,0,r):I.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(r){if(!s.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r||s.compare(this,r)===0},s.prototype.inspect=function(){let r="";const i=e.INSPECT_MAX_BYTES;return r=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(r+=" ... "),"<Buffer "+r+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(r,i,u,f,c){if(ee(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(i===void 0&&(i=0),u===void 0&&(u=r?r.length:0),f===void 0&&(f=0),c===void 0&&(c=this.length),i<0||u>r.length||f<0||c>this.length)throw new RangeError("out of range index");if(f>=c&&i>=u)return 0;if(f>=c)return-1;if(i>=u)return 1;if(this===r)return 0;let h=(c>>>=0)-(f>>>=0),y=(u>>>=0)-(i>>>=0);const w=Math.min(h,y),_=this.slice(f,c),C=r.slice(i,u);for(let L=0;L<w;++L)if(_[L]!==C[L]){h=_[L],y=C[L];break}return h<y?-1:y<h?1:0},s.prototype.includes=function(r,i,u){return this.indexOf(r,i,u)!==-1},s.prototype.indexOf=function(r,i,u){return z(this,r,i,u,!0)},s.prototype.lastIndexOf=function(r,i,u){return z(this,r,i,u,!1)},s.prototype.write=function(r,i,u,f){if(i===void 0)f="utf8",u=this.length,i=0;else if(u===void 0&&typeof i=="string")f=i,u=this.length,i=0;else{if(!isFinite(i))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");i>>>=0,isFinite(u)?(u>>>=0,f===void 0&&(f="utf8")):(f=u,u=void 0)}const c=this.length-i;if((u===void 0||u>c)&&(u=c),r.length>0&&(u<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");f||(f="utf8");let h=!1;for(;;)switch(f){case"hex":return E(this,r,i,u);case"utf8":case"utf-8":return k(this,r,i,u);case"ascii":case"latin1":case"binary":return U(this,r,i,u);case"base64":return O(this,r,i,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b(this,r,i,u);default:if(h)throw new TypeError("Unknown encoding: "+f);f=(""+f).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const te=4096;function K(r,i,u){let f="";u=Math.min(r.length,u);for(let c=i;c<u;++c)f+=String.fromCharCode(127&r[c]);return f}function Ce(r,i,u){let f="";u=Math.min(r.length,u);for(let c=i;c<u;++c)f+=String.fromCharCode(r[c]);return f}function ft(r,i,u){const f=r.length;(!i||i<0)&&(i=0),(!u||u<0||u>f)&&(u=f);let c="";for(let h=i;h<u;++h)c+=ur[r[h]];return c}function ct(r,i,u){const f=r.slice(i,u);let c="";for(let h=0;h<f.length-1;h+=2)c+=String.fromCharCode(f[h]+256*f[h+1]);return c}function F(r,i,u){if(r%1!=0||r<0)throw new RangeError("offset is not uint");if(r+i>u)throw new RangeError("Trying to access beyond buffer length")}function Q(r,i,u,f,c,h){if(!s.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>c||i<h)throw new RangeError('"value" argument is out of bounds');if(u+f>r.length)throw new RangeError("Index out of range")}function et(r,i,u,f,c){Ue(i,f,c,r,u,7);let h=Number(i&BigInt(4294967295));r[u++]=h,h>>=8,r[u++]=h,h>>=8,r[u++]=h,h>>=8,r[u++]=h;let y=Number(i>>BigInt(32)&BigInt(4294967295));return r[u++]=y,y>>=8,r[u++]=y,y>>=8,r[u++]=y,y>>=8,r[u++]=y,u}function tt(r,i,u,f,c){Ue(i,f,c,r,u,7);let h=Number(i&BigInt(4294967295));r[u+7]=h,h>>=8,r[u+6]=h,h>>=8,r[u+5]=h,h>>=8,r[u+4]=h;let y=Number(i>>BigInt(32)&BigInt(4294967295));return r[u+3]=y,y>>=8,r[u+2]=y,y>>=8,r[u+1]=y,y>>=8,r[u]=y,u+8}function M(r,i,u,f,c,h){if(u+f>r.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("Index out of range")}function V(r,i,u,f,c){return i=+i,u>>>=0,c||M(r,0,u,4),n.write(r,i,u,f,23,4),u+4}function W(r,i,u,f,c){return i=+i,u>>>=0,c||M(r,0,u,8),n.write(r,i,u,f,52,8),u+8}s.prototype.slice=function(r,i){const u=this.length;(r=~~r)<0?(r+=u)<0&&(r=0):r>u&&(r=u),(i=i===void 0?u:~~i)<0?(i+=u)<0&&(i=0):i>u&&(i=u),i<r&&(i=r);const f=this.subarray(r,i);return Object.setPrototypeOf(f,s.prototype),f},s.prototype.readUintLE=s.prototype.readUIntLE=function(r,i,u){r>>>=0,i>>>=0,u||F(r,i,this.length);let f=this[r],c=1,h=0;for(;++h<i&&(c*=256);)f+=this[r+h]*c;return f},s.prototype.readUintBE=s.prototype.readUIntBE=function(r,i,u){r>>>=0,i>>>=0,u||F(r,i,this.length);let f=this[r+--i],c=1;for(;i>0&&(c*=256);)f+=this[r+--i]*c;return f},s.prototype.readUint8=s.prototype.readUInt8=function(r,i){return r>>>=0,i||F(r,1,this.length),this[r]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(r,i){return r>>>=0,i||F(r,2,this.length),this[r]|this[r+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(r,i){return r>>>=0,i||F(r,2,this.length),this[r]<<8|this[r+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(r,i){return r>>>=0,i||F(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+16777216*this[r+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(r,i){return r>>>=0,i||F(r,4,this.length),16777216*this[r]+(this[r+1]<<16|this[r+2]<<8|this[r+3])},s.prototype.readBigUInt64LE=oe(function(r){fe(r>>>=0,"offset");const i=this[r],u=this[r+7];i!==void 0&&u!==void 0||le(r,this.length-8);const f=i+256*this[++r]+65536*this[++r]+this[++r]*2**24,c=this[++r]+256*this[++r]+65536*this[++r]+u*2**24;return BigInt(f)+(BigInt(c)<<BigInt(32))}),s.prototype.readBigUInt64BE=oe(function(r){fe(r>>>=0,"offset");const i=this[r],u=this[r+7];i!==void 0&&u!==void 0||le(r,this.length-8);const f=i*2**24+65536*this[++r]+256*this[++r]+this[++r],c=this[++r]*2**24+65536*this[++r]+256*this[++r]+u;return(BigInt(f)<<BigInt(32))+BigInt(c)}),s.prototype.readIntLE=function(r,i,u){r>>>=0,i>>>=0,u||F(r,i,this.length);let f=this[r],c=1,h=0;for(;++h<i&&(c*=256);)f+=this[r+h]*c;return c*=128,f>=c&&(f-=Math.pow(2,8*i)),f},s.prototype.readIntBE=function(r,i,u){r>>>=0,i>>>=0,u||F(r,i,this.length);let f=i,c=1,h=this[r+--f];for(;f>0&&(c*=256);)h+=this[r+--f]*c;return c*=128,h>=c&&(h-=Math.pow(2,8*i)),h},s.prototype.readInt8=function(r,i){return r>>>=0,i||F(r,1,this.length),128&this[r]?-1*(255-this[r]+1):this[r]},s.prototype.readInt16LE=function(r,i){r>>>=0,i||F(r,2,this.length);const u=this[r]|this[r+1]<<8;return 32768&u?4294901760|u:u},s.prototype.readInt16BE=function(r,i){r>>>=0,i||F(r,2,this.length);const u=this[r+1]|this[r]<<8;return 32768&u?4294901760|u:u},s.prototype.readInt32LE=function(r,i){return r>>>=0,i||F(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},s.prototype.readInt32BE=function(r,i){return r>>>=0,i||F(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},s.prototype.readBigInt64LE=oe(function(r){fe(r>>>=0,"offset");const i=this[r],u=this[r+7];i!==void 0&&u!==void 0||le(r,this.length-8);const f=this[r+4]+256*this[r+5]+65536*this[r+6]+(u<<24);return(BigInt(f)<<BigInt(32))+BigInt(i+256*this[++r]+65536*this[++r]+this[++r]*2**24)}),s.prototype.readBigInt64BE=oe(function(r){fe(r>>>=0,"offset");const i=this[r],u=this[r+7];i!==void 0&&u!==void 0||le(r,this.length-8);const f=(i<<24)+65536*this[++r]+256*this[++r]+this[++r];return(BigInt(f)<<BigInt(32))+BigInt(this[++r]*2**24+65536*this[++r]+256*this[++r]+u)}),s.prototype.readFloatLE=function(r,i){return r>>>=0,i||F(r,4,this.length),n.read(this,r,!0,23,4)},s.prototype.readFloatBE=function(r,i){return r>>>=0,i||F(r,4,this.length),n.read(this,r,!1,23,4)},s.prototype.readDoubleLE=function(r,i){return r>>>=0,i||F(r,8,this.length),n.read(this,r,!0,52,8)},s.prototype.readDoubleBE=function(r,i){return r>>>=0,i||F(r,8,this.length),n.read(this,r,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(r,i,u,f){r=+r,i>>>=0,u>>>=0,f||Q(this,r,i,u,Math.pow(2,8*u)-1,0);let c=1,h=0;for(this[i]=255&r;++h<u&&(c*=256);)this[i+h]=r/c&255;return i+u},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(r,i,u,f){r=+r,i>>>=0,u>>>=0,f||Q(this,r,i,u,Math.pow(2,8*u)-1,0);let c=u-1,h=1;for(this[i+c]=255&r;--c>=0&&(h*=256);)this[i+c]=r/h&255;return i+u},s.prototype.writeUint8=s.prototype.writeUInt8=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,1,255,0),this[i]=255&r,i+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,2,65535,0),this[i]=255&r,this[i+1]=r>>>8,i+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,2,65535,0),this[i]=r>>>8,this[i+1]=255&r,i+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,4,4294967295,0),this[i+3]=r>>>24,this[i+2]=r>>>16,this[i+1]=r>>>8,this[i]=255&r,i+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,4,4294967295,0),this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=255&r,i+4},s.prototype.writeBigUInt64LE=oe(function(r,i=0){return et(this,r,i,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=oe(function(r,i=0){return tt(this,r,i,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(r,i,u,f){if(r=+r,i>>>=0,!f){const w=Math.pow(2,8*u-1);Q(this,r,i,u,w-1,-w)}let c=0,h=1,y=0;for(this[i]=255&r;++c<u&&(h*=256);)r<0&&y===0&&this[i+c-1]!==0&&(y=1),this[i+c]=(r/h|0)-y&255;return i+u},s.prototype.writeIntBE=function(r,i,u,f){if(r=+r,i>>>=0,!f){const w=Math.pow(2,8*u-1);Q(this,r,i,u,w-1,-w)}let c=u-1,h=1,y=0;for(this[i+c]=255&r;--c>=0&&(h*=256);)r<0&&y===0&&this[i+c+1]!==0&&(y=1),this[i+c]=(r/h|0)-y&255;return i+u},s.prototype.writeInt8=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,1,127,-128),r<0&&(r=255+r+1),this[i]=255&r,i+1},s.prototype.writeInt16LE=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,2,32767,-32768),this[i]=255&r,this[i+1]=r>>>8,i+2},s.prototype.writeInt16BE=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,2,32767,-32768),this[i]=r>>>8,this[i+1]=255&r,i+2},s.prototype.writeInt32LE=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,4,2147483647,-2147483648),this[i]=255&r,this[i+1]=r>>>8,this[i+2]=r>>>16,this[i+3]=r>>>24,i+4},s.prototype.writeInt32BE=function(r,i,u){return r=+r,i>>>=0,u||Q(this,r,i,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=255&r,i+4},s.prototype.writeBigInt64LE=oe(function(r,i=0){return et(this,r,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=oe(function(r,i=0){return tt(this,r,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(r,i,u){return V(this,r,i,!0,u)},s.prototype.writeFloatBE=function(r,i,u){return V(this,r,i,!1,u)},s.prototype.writeDoubleLE=function(r,i,u){return W(this,r,i,!0,u)},s.prototype.writeDoubleBE=function(r,i,u){return W(this,r,i,!1,u)},s.prototype.copy=function(r,i,u,f){if(!s.isBuffer(r))throw new TypeError("argument should be a Buffer");if(u||(u=0),f||f===0||(f=this.length),i>=r.length&&(i=r.length),i||(i=0),f>0&&f<u&&(f=u),f===u||r.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(u<0||u>=this.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("sourceEnd out of bounds");f>this.length&&(f=this.length),r.length-i<f-u&&(f=r.length-i+u);const c=f-u;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(i,u,f):Uint8Array.prototype.set.call(r,this.subarray(u,f),i),c},s.prototype.fill=function(r,i,u,f){if(typeof r=="string"){if(typeof i=="string"?(f=i,i=0,u=this.length):typeof u=="string"&&(f=u,u=this.length),f!==void 0&&typeof f!="string")throw new TypeError("encoding must be a string");if(typeof f=="string"&&!s.isEncoding(f))throw new TypeError("Unknown encoding: "+f);if(r.length===1){const h=r.charCodeAt(0);(f==="utf8"&&h<128||f==="latin1")&&(r=h)}}else typeof r=="number"?r&=255:typeof r=="boolean"&&(r=Number(r));if(i<0||this.length<i||this.length<u)throw new RangeError("Out of range index");if(u<=i)return this;let c;if(i>>>=0,u=u===void 0?this.length:u>>>0,r||(r=0),typeof r=="number")for(c=i;c<u;++c)this[c]=r;else{const h=s.isBuffer(r)?r:s.from(r,f),y=h.length;if(y===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(c=0;c<u-i;++c)this[c+i]=h[c%y]}return this};const Y={};function ne(r,i,u){Y[r]=class extends u{constructor(){super(),Object.defineProperty(this,"message",{value:i.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${r}]`,this.stack,delete this.name}get code(){return r}set code(f){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:f,writable:!0})}toString(){return`${this.name} [${r}]: ${this.message}`}}}function Ye(r){let i="",u=r.length;const f=r[0]==="-"?1:0;for(;u>=f+4;u-=3)i=`_${r.slice(u-3,u)}${i}`;return`${r.slice(0,u)}${i}`}function Ue(r,i,u,f,c,h){if(r>u||r<i){const y=typeof i=="bigint"?"n":"";let w;throw w=i===0||i===BigInt(0)?`>= 0${y} and < 2${y} ** ${8*(h+1)}${y}`:`>= -(2${y} ** ${8*(h+1)-1}${y}) and < 2 ** ${8*(h+1)-1}${y}`,new Y.ERR_OUT_OF_RANGE("value",w,r)}(function(y,w,_){fe(w,"offset"),y[w]!==void 0&&y[w+_]!==void 0||le(w,y.length-(_+1))})(f,c,h)}function fe(r,i){if(typeof r!="number")throw new Y.ERR_INVALID_ARG_TYPE(i,"number",r)}function le(r,i,u){throw Math.floor(r)!==r?(fe(r,u),new Y.ERR_OUT_OF_RANGE("offset","an integer",r)):i<0?new Y.ERR_BUFFER_OUT_OF_BOUNDS:new Y.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${i}`,r)}ne("ERR_BUFFER_OUT_OF_BOUNDS",function(r){return r?`${r} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ne("ERR_INVALID_ARG_TYPE",function(r,i){return`The "${r}" argument must be of type number. Received type ${typeof i}`},TypeError),ne("ERR_OUT_OF_RANGE",function(r,i,u){let f=`The value of "${r}" is out of range.`,c=u;return Number.isInteger(u)&&Math.abs(u)>2**32?c=Ye(String(u)):typeof u=="bigint"&&(c=String(u),(u>BigInt(2)**BigInt(32)||u<-(BigInt(2)**BigInt(32)))&&(c=Ye(c)),c+="n"),f+=` It must be ${i}. Received ${c}`,f},RangeError);const _t=/[^+/0-9A-Za-z-_]/g;function ht(r,i){let u;i=i||1/0;const f=r.length;let c=null;const h=[];for(let y=0;y<f;++y){if(u=r.charCodeAt(y),u>55295&&u<57344){if(!c){if(u>56319){(i-=3)>-1&&h.push(239,191,189);continue}if(y+1===f){(i-=3)>-1&&h.push(239,191,189);continue}c=u;continue}if(u<56320){(i-=3)>-1&&h.push(239,191,189),c=u;continue}u=65536+(c-55296<<10|u-56320)}else c&&(i-=3)>-1&&h.push(239,191,189);if(c=null,u<128){if((i-=1)<0)break;h.push(u)}else if(u<2048){if((i-=2)<0)break;h.push(u>>6|192,63&u|128)}else if(u<65536){if((i-=3)<0)break;h.push(u>>12|224,u>>6&63|128,63&u|128)}else{if(!(u<1114112))throw new Error("Invalid code point");if((i-=4)<0)break;h.push(u>>18|240,u>>12&63|128,u>>6&63|128,63&u|128)}}return h}function Vt(r){return t.toByteArray(function(i){if((i=(i=i.split("=")[0]).trim().replace(_t,"")).length<2)return"";for(;i.length%4!=0;)i+="=";return i}(r))}function $e(r,i,u,f){let c;for(c=0;c<f&&!(c+u>=i.length||c>=r.length);++c)i[c+u]=r[c];return c}function ee(r,i){return r instanceof i||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===i.name}function pt(r){return r!=r}const ur=function(){const r="0123456789abcdef",i=new Array(256);for(let u=0;u<16;++u){const f=16*u;for(let c=0;c<16;++c)i[f+c]=r[u]+r[c]}return i}();function oe(r){return typeof BigInt>"u"?lr:r}function lr(){throw new Error("BigInt not supported")}}(Fa)),Fa);let mt={AUTH_REQ:176,AUTH_NONCE:177,AUTH_HMAC:178,AUTH_ACK:179,AUTH_FAIL:180,AUTH_EXT:181,ENC_PACK:182,ENC_E2E:183,ENC_488:184};for(let e in mt)mt[mt[e]]=e;const ot={AUTH_REQ:R.meta(R.MB("header","8",0),R.MB("reserved","8",0)),AUTH_NONCE:R.meta(R.MB("header","8",0),R.MB("unixTime","32L",0),R.MB("milTime","32L",0),R.MB("nonce",re.Buffer.alloc(4))),AUTH_HMAC:R.meta(R.MB("header","8",0),R.MB("id8",re.Buffer.alloc(8)),R.MB("nonce",re.Buffer.alloc(4)),R.MB("hmac32",re.Buffer.alloc(32))),AUTH_ACK:R.meta(R.MB("header","8",0),R.MB("hmac32",re.Buffer.alloc(32))),ENC_PACK:R.meta(R.MB("type","8",0),R.MB("len","32L",0),R.MB("salt12",re.Buffer.alloc(12)),R.MB("hmac",8,0)),ENC_488:R.meta(R.MB("type","8",0),R.MB("len","32L",0),R.MB("otpSrc8",re.Buffer.alloc(8)),R.MB("hmac8",re.Buffer.alloc(8)))};function Un(e){let t=e[e.length-1];return t[2]+t[3]}const yh={AUTH_REQ:Un(ot.AUTH_REQ),AUTH_NONCE:Un(ot.AUTH_NONCE),AUTH_HMAC:Un(ot.AUTH_HMAC),AUTH_ACK:Un(ot.AUTH_ACK),ENC_PACK:Un(ot.ENC_PACK),ENC_488:Un(ot.ENC_488)};function Hi(e){return globalThis.crypto.getRandomValues(re.Buffer.alloc(e))}class ve{constructor(){this._id8=re.Buffer.alloc(8),this._otpSrc44=re.Buffer.alloc(44),this._otp36=re.Buffer.alloc(36),this._hmac=re.Buffer.alloc(32),this.auth_salt12=re.Buffer.alloc(12),this.localNonce=re.Buffer.alloc(4),this.remoteNonce=re.Buffer.alloc(4),this.isAuthorized=!1}clearAuth(){this._id8.fill(0),this._otpSrc44.fill(0),this._otp36.fill(0),this._hmac.fill(0),this.auth_salt12.fill(0),this.localNonce.fill(0),this.remoteNonce.fill(0),this.isAuthorized=!1}set_hash_id8(t){R.B8(xt.hash(t)).copy(this._id8,0,0,8)}set_id8(t){let n=R.B8(t);this._id8.fill(0),n.copy(this._id8,0,0,8)}set_key(t){R.B8(xt.hash(t)).copy(this._otpSrc44,0,0,32)}set_id_key(t){let n=t.indexOf(".");if(n==-1)return;let o=t.substring(0,n),l=t.substring(n+1);this.set_id8(o),this.set_key(l)}copy_id8(t){t.copy(this._id8,0,0,8)}copy_key(t){t.copy(this._otpSrc44,0,0,32)}sha256_n(t,n){let o=xt.hash(t);for(let l=0;l<n;l++)o=xt.hash(o);return o}set_clock_rand(){let t=Date.now(),n=parseInt(t/1e3);t%=4294967295,re.Buffer.concat([R.NB("32L",n),R.NB("32L",t),Hi(4)]).copy(this._otpSrc44,32)}set_clock_nonce(t){let n=Date.now(),o=parseInt(n/1e3);n%=4294967295,re.Buffer.concat([R.NB("32L",o),R.NB("32L",n),t]).copy(this._otpSrc44,32)}set_salt12(t){t.copy(this._otpSrc44,32)}resetOTP(){R.B8(xt.hash(this._otpSrc44)).copy(this._otp36,0,0,32)}getIndexOTP(t){return this._otp36.writeUInt32LE(t,32),xt.hash(this._otp36)}generateHMAC(t){let n=re.Buffer.concat([this._otpSrc44,t]);this._hmac=R.B8(xt.hash(n))}getHMAC8(t){let n=re.Buffer.concat([this._otpSrc44,t]);return this._hmac=R.B8(xt.hash(n)),this._hmac.subarray(0,8)}xotp(t,n=0,o=!1){let l=(t=R.B8(t,o)).byteLength,a=n,s=0,p=0;for(;l>0;){p=l<32?l:32;let d=this.getIndexOTP(++a);for(let g=0;g<p;g++)t[s++]^=d[g];l-=32}return t}auth_req(){return R.pack(R.MB("#type","8",mt.AUTH_REQ),R.MB("#reserved","8",0))}auth_nonce(){let t=Date.now(),n=Math.floor(t/1e3),o=t%1e3;return this.localNonce=Hi(4),this.auth_salt12=re.Buffer.concat([R.NB("32L",n),R.NB("32L",o),this.localNonce]),re.Buffer.concat([R.NB("8",mt.AUTH_NONCE),this.auth_salt12])}auth_hmac(t){let n=R.unpack(t,ot.AUTH_NONCE);if(n){let o=re.Buffer.concat([R.NB("32L",n.unixTime),R.NB("32L",n.milTime),n.nonce]);return this.set_salt12(o),this.localNonce=Hi(4),this.generateHMAC(this.localNonce),this.remoteNonce=n.nonce,R.pack(R.MB("#header","8",mt.AUTH_HMAC),R.MB("#id8",this._id8),R.MB("#nonce",this.localNonce),R.MB("#hmac32",this._hmac))}return!1}check_auth_hmac(t){let n;if(t instanceof Uint8Array){if(n=R.unpack(t,ot.AUTH_HMAC),!n)return}else n=t;this.set_salt12(this.auth_salt12),this.generateHMAC(n.nonce);let o=this._hmac;if(R.equal(n.hmac32,o)){this.remoteNonce=n.nonce;let l=re.Buffer.concat([this.localNonce,this.remoteNonce,this.localNonce]);this.set_salt12(l),this.generateHMAC(n.nonce);let a=this._hmac,s=R.rawPack(R.MB("header","8",mt.AUTH_ACK),R.MB("hmac32",a));return this.isAuthorized=!0,s}return!1}check_auth_ack_hmac(t){let n=R.unpack(t,ot.AUTH_ACK);if(n){let o=re.Buffer.concat([this.remoteNonce,this.localNonce,this.remoteNonce]);this.set_salt12(o),this.generateHMAC(this.localNonce);let l=this._hmac;if(R.equal(l,n.hmac32))return this.isAuthorized=!0,!0}}encrypt_488(t){if(!this.isAuthorized)return;t=R.B8(t),this.set_clock_nonce(this.remoteNonce),this.resetOTP();let n=this.getHMAC8(t),o=this.xotp(t);return R.pack(R.MB("#type","8",mt.ENC_488),R.MB("#len","32L",t.byteLength),R.MB("#otpSrc8",this._otpSrc44.subarray(32,40)),R.MB("#hmac8",n),R.MB("#xdata",o))}decrypt_488(t){t=R.B8(t);let n=R.unpack(t,ot.ENC_488);if(n){let o=re.Buffer.concat([n.otpSrc8,this.localNonce]);this.set_salt12(o),this.resetOTP();let l=n.$OTHERS.subarray(0,n.len),a=this.xotp(l),s=this.getHMAC8(a);if(R.equal(s,n.hmac8))return a}}encryptPack(t){t=R.B8(t),this.set_clock_rand(),this.resetOTP();let n=this.getHMAC8(t),o=this.xotp(t);return R.pack(R.MB("#type","8",mt.ENC_PACK),R.MB("#len","32L",t.byteLength),R.MB("#salt12",this._otpSrc44.subarray(32)),R.MB("#hmac8",n),R.MB("#xdata",o))}decryptPack(t){if(t[0]===mt.ENC_PACK&&t.readUint32LE(1)==t.byteLength-yh.ENC_PACK)try{let n=R.unpack(t,ot.ENC_PACK);if(!n)return;this.set_salt12(n.salt12),this.resetOTP();let o=n.$OTHERS,l=this.xotp(o),a=this.getHMAC8(l);if(R.equal(n.hmac,a))return n.data=l,n}catch{}}encrypt_e2e(t,n){let o=re.Buffer.alloc(32);o.set(this._otpSrc44.subarray(0,32)),this.set_key(n);let l=this.encryptPack(t);return this._otpSrc44.set(o),l}decrypt_e2e(t,n){let o=re.Buffer.alloc(32);o.set(this._otpSrc44.subarray(0,32)),this.set_key(n);let l=this.decryptPack(t);return this._otpSrc44.set(o),l}}ve.RAND=Hi,ve.BohoMsg=mt,ve.Meta=ot,ve.MetaSize=yh,ve.sha256=xt,ve.MBP=R,ve.Buffer=re.Buffer;const It=H.Buffer,Ai=new TextEncoder,Nt=new TextDecoder;class cy extends qd{constructor(t){super(),this.cid="",this.ip="",this.socket=null,this.url=t,this.state=Mt.CLOSED,this.stateName=this.getStateName(),this.txCounter=0,this.rxCounter=0,this.txBytes=0,this.rxBytes=0,this.lastTxRxTime=Date.now(),this.connectionCheckerPeriod=Ut.CONNECTION_CHECKER_PERIOD,this.connectionCheckerIntervalID=null,this.boho=new ve,this.TLS=!1,this.encMode=_n.AUTO,this.useAuth=!1,this.nick="",this.channels=new Set,this.promiseMap=new Map,this.promiseTimeOut=Ut.PROMISE_TIMEOUT,this.mid=0,this.level=3,this.quota=Ra[this.level],this.serverSet={},this.linkMap=new Map,this.autoReconnect=!0,this._closed=!1,this.on("open",this.onOpen.bind(this)),this.on("close",this.onClose.bind(this)),this.on("socket_data",this.onData.bind(this))}close(){var t,n;if(!this._closed){if(this._closed=!0,this.autoReconnect===!1&&(clearInterval(this.connectionCheckerIntervalID),this.connectionCheckerIntervalID=null),this.socket){try{(n=(t=this.socket).close)==null||n.call(t)}catch{}this.socket=null}this.promiseMap.clear(),this.emit("closed"),this.stateChange("closed")}}stop(){this.autoReconnect=!1,this.close()}destroy(){this.stop(),this.removeAllListeners(),this.channels.clear(),this.linkMap.clear(),this.boho=null}keepAlive(){this.autoReconnect}redirect(t){this.close(),this.stateChange("redirecting"),this.createConnection(t)}open(t){this.socket&&this.close(),t&&(this.url=t),this.url?(this.createConnection(this.url),this.connectionCheckerIntervalID||(this.connectionCheckerIntervalID=setInterval(this.keepAlive.bind(this),this.connectionCheckerPeriod))):this.emit("error",new Error("URL is not set."))}onOpen(){this._closed=!1,this.url.includes("wss://")?this.TLS=!0:this.TLS=!1,this.stateChange("open")}onClose(){this.boho.isAuthorized=!1,this.cid="",this.stateChange("closed")}login(t,n){if(!this.auth(t,n))return!1;this.useAuth=!0;let o=this.boho.auth_req();return this.send(o),!0}auth(t,n){if(!t&&!n)return this.emit("error",new Error("auth failed. no id and key.")),!1;if(!n&&t.includes("."))this.boho.set_id_key(t);else{if(!t||!n)return this.emit("error",new Error("auth failed. no id or key.")),!1;this.boho.set_id8(t),this.boho.set_key(n)}return this.useAuth=!0,!0}onData(t){let n,o=t[0];if(o===ve.BohoMsg.ENC_488)n=this.boho.decrypt_488(t),n&&(o=n[0],t=n);else if(o===ve.BohoMsg.ENC_E2E)try{if(n=this.boho.decrypt_488(t),!n)return;o=n[0],t.set(n,ve.MetaSize.ENC_488),t=t.subarray(ve.MetaSize.ENC_488)}catch{return}let l=X[o];switch(l||(l=ve.BohoMsg[o]),o){case X.OVER_SIZE:console.log("## server sent: over_size event."),this.emit("over_size","over_size");break;case X.PING:this.pong();break;case X.PONG:break;case X.IAM_RES:try{let S=Nt.decode(t.subarray(1)),B=JSON.parse(S);B.ip&&(this.ip=B.ip)}catch{this.emit("error",new Error("IAM_RES data error"))}break;case X.CID_RES:let a=Nt.decode(t.subarray(1));this.cid=a,this.stateChange("ready","cid_ready"),this.subscribe_memory_channels();break;case X.QUOTA_LEVEL:let s=t[1];this.level=s,this.quota=Ra[s],console.log("## QUOTA:",s,JSON.stringify(this.quota));break;case X.SERVER_CLEAR_AUTH:this.useAuth=!1,this.boho.clearAuth(),this.stop();break;case X.SERVER_REDIRECT:let p,d,g;t.byteLength==7?(p=function(S){if(S.byteLength==6)return S[0].toString()+"."+S[1].toString()+"."+S[2].toString()+"."+S[3].toString()+":"+((S[4]<<8)+S[5]).toString()}(t.subarray(1)),g="cong://"):(p=Nt.decode(t.subarray(1)),g=""),d=g+p,this.redirect(d);break;case X.SERVER_READY:this.stateChange("server_ready","server_ready"),this.useAuth?this.send(this.boho.auth_req()):this.send(It.from([X.CID_REQ]));break;case X.SERVER_SIGNAL:try{let S=Nt.decode(t.subarray(1)),B=JSON.parse(S);B.event&&B.data&&(this.serverSet=B.data,this.emit(B.event,B.data))}catch{this.emit("error",new Error("SERVER_SIGNAL parsing error"))}break;case X.SET:try{let S=H.unpack(t);S&&this.emit(S.topic,...S.args)}catch{this.emit("error",new Error("SET parsing error"))}break;case X.SIGNAL_E2E:case X.SIGNAL:try{let S=t.readUint8(1),B=t.subarray(2,2+S),A=Nt.decode(B),I=t.readUint8(2+S),T=t.subarray(3+S);switch(I){case _e.EMPTY:A.indexOf("@")===0?this.emit("@",null,A):this.emit(A,null,A);break;case _e.TEXT:let z=T;T[T.byteLength-1]===0&&(z=T.subarray(0,T.byteLength-1));let v=Nt.decode(z);A.indexOf("@")===0&&this.emit("@",v,A),A!=="@"&&this.emit(A,v,A);break;case _e.BINARY:A.indexOf("@")===0&&this.emit("@",T,A),A!=="@"&&this.emit(A,T,A);break;case _e.OBJECT:let E=Nt.decode(T),k=JSON.parse(E);A.indexOf("@")===0&&this.emit("@",k,A),A!=="@"&&this.emit(A,k,A);break;case _e.MJSON:let U=Nt.decode(T),O=JSON.parse(U);A.indexOf("@")===0&&this.emit("@",...O,A),A!=="@"&&this.emit(A,...O,A);break;case _e.MBA:let b=H.unpack(T);A.indexOf("@")===0&&this.emit("@",...b.args,A),A!=="@"&&this.emit(A,...b.args,A)}}catch{this.emit("error",new Error("signal parse err"))}break;case X.RESPONSE_MBP:this.testPromise(t);break;case ve.BohoMsg.AUTH_NONCE:let m=this.boho.auth_hmac(t);m?this.send(m):this.stateChange("auth_fail","Invalid local auth_hmac.");break;case ve.BohoMsg.AUTH_FAIL:this.stateChange("auth_fail","server reject auth.");break;case ve.BohoMsg.AUTH_ACK:this.boho.check_auth_ack_hmac(t)?(this.stateChange("auth_ready","server sent auth_ack"),this.send(It.from([X.CID_REQ]))):this.stateChange("auth_fail","invalid server_hmac");break;default:try{n=Nt.decode(t),this.emit("text_message",n)}catch{}}}iam(t){t?this.send_enc_mode(H.pack(H.MB("#MsgType","8",X.IAM),H.MB("#",t))):this.send_enc_mode(H.pack(H.MB("#MsgType","8",X.IAM)))}ping(){this.send(It.from([X.PING]))}pong(){this.send(It.from([X.PONG]))}echo(t){t?(console.log("echo args:",t),this.send_enc_mode(H.pack(H.MB("#MsgType","8",X.ECHO),H.MB("#msg",t)))):this.send(It.from([X.ECHO]))}bin(...t){this.send(H.U8pack(...t))}send(t){if(t.byteLength>this.quota.signalSize)return this.emit("over_size"),console.log(`## QUOTA LIMIT OVER!!
56
- signal message.byteLength: `,t.byteLength),void console.log("## your maximum signalSize(bytes) is:",this.quota.signalSize);this.socket_send(t)}getEncryptionMode(){return!(this.encMode!==_n.YES&&(this.encMode!==_n.AUTO||this.TLS||!this.boho.isAuthorized))}send_enc_mode(t,n){if(n===void 0&&(n=this.getEncryptionMode()),t[0]==X.SIGNAL_E2E&&n){let o=t[1],l=this.boho.encrypt_488(t.subarray(0,3+o));l[0]=ve.BohoMsg.ENC_E2E,this.send(It.concat([l,t.subarray(3+o)]))}else if(n){let o=this.boho.encrypt_488(t);this.send(o)}else this.send(t)}setMsgPromise(t){return new Promise((n,o)=>{this.promiseMap.set(t,[n,o]),setTimeout(l=>{this.promiseMap.has(t)&&(o("timeout"),this.promiseMap.delete(t))},this.promiseTimeOut)})}testPromise(t){let n=H.unpack(t);if(n)if(this.promiseMap.has(n.mid)){let[o,l]=this.promiseMap.get(n.mid);this.promiseMap.delete(n.mid),n.status<128?(n.ok=!0,o(n)):(n.ok=!1,l(n))}else console.log("no promise id")}publish(...t){this.signal(...t)}signal(t,...n){if(typeof t!="string")throw TypeError("tag should be string.");let o=ty(t,...n);this.send_enc_mode(o)}decrypt_e2e(t,n){return this.boho.decrypt_e2e(t,n)}signal_e2e(t,n,o){if(typeof t!="string")throw TypeError("tag should be string.");let l=Ai.encode(t),a=H.B8(n),s=this.boho.encrypt_e2e(a,o),p=H.pack(H.MB("#MsgType","8",X.SIGNAL_E2E),H.MB("#tagLen","8",l.byteLength),H.MB("#tag",l),H.MB("#payloadType","8",_e.BINARY),H.MB("#payload",s));this.send_enc_mode(p)}set(t,...n){return t&&n.length!=0?this.req("store","set",t,...n):Promise.reject(new Error("set need storeName and value)"))}async get(t){if(!t)return Promise.reject(new Error("store get need storeName)"));let n=await this.req("store","get",t),{$:o}=H.unpack(n.body);return o}req(t,n,...o){if(!t||!n)return Promise.reject(new Error("request need target and topic)"));let l;return l=o.length>0?H.pack(H.MB("#MsgType","8",X.REQUEST),H.MB("mid","16",++this.mid),H.MB("target",t),H.MB("topic",n),H.MBA(...o)):H.pack(H.MB("#MsgType","8",X.REQUEST),H.MB("mid","16",++this.mid),H.MB("target",t),H.MB("topic",n)),this.send_enc_mode(l),this.setMsgPromise(this.mid)}subscribe(t){if(typeof t!="string")throw TypeError("tag should be string.");if(this.state!==Mt.READY)return;t.split(",").forEach(o=>{this.channels.add(o)});let n=Ai.encode(t);if(n.byteLength>Ut.TAG_LEN1)throw TypeError("please use tag string bytelength below:"+Ut.TAG_LEN1);this.send_enc_mode(It.concat([H.NB("8",X.SUBSCRIBE),H.NB("8",n.byteLength),n]))}subscribe_promise(t){if(typeof t!="string")throw TypeError("tag should be string.");if(this.state!==Mt.READY)return Promise.reject("subscribe_promise:: connection is not ready");let n=Ai.encode(t);if(n.byteLength>Ut.TAG_LEN2)throw TypeError("please use tag string bytelength: "+Ut.TAG_LEN2);return this.send_enc_mode(It.concat([H.NB("8",X.SUBSCRIBE_REQ),H.NB("16",++this.mid),H.NB("16",n.byteLength),n])),this.setMsgPromise(this.mid)}subscribe_memory_channels(){if(this.channels.size==0)return;let t=Array.from(this.channels).join(",");this.subscribe_promise(t).then(n=>{}).catch(n=>{console.log(">> SUBSCRIBE FAIL:",n)})}unsubscribe(t=""){if(typeof t!="string")throw TypeError("tag should be string.");t==""?this.channels.clear():t.split(",").forEach(o=>{this.channels.delete(o)});let n=Ai.encode(t);if(n.byteLength>Ut.TAG_LEN1)throw TypeError("please use tag string bytelength below:"+Ut.TAG_LEN1);this.send_enc_mode(It.concat([H.NB("8",X.UNSUBSCRIBE),H.NB("8",n.byteLength),n]))}listen(t,n){if(typeof t!="string")throw TypeError("tag should be string.");if(t.length>255||t.length==0)throw TypeError("tag string length range: 1~255");if(typeof n!="function")throw TypeError("handler is not a function.");t.indexOf("@")!==0&&this.channels.add(t),this.on(t,n)}link(t,n,o){if(typeof t!="string")throw TypeError("to(local link target) is not a string.");if(typeof n!="string")throw TypeError("tag is not a string.");if(n.length>255||n.length==0)throw TypeError("tag string length range: 1~255");if(typeof o!="function")throw TypeError("handler is not a function.");let l;n.indexOf("@")!==0&&this.channels.add(n),l=this.linkMap.has(t)?this.linkMap.get(t):new Set,l.add(n),this.linkMap.set(t,l),this.on(n,o),this.subscribe(n)}unlink(t,n){if(typeof t!="string")throw TypeError("to(local link target) is not a string.");if(typeof n!="string")throw TypeError("tag is not a string.");if(n.length>255||n.length==0)throw TypeError("tag string length range: 1~255");const o=this.linkMap.get(t);o&&o.has(n)&&(this.unsubscribe(n),this.removeAllListeners(n),o.delete(n),o.size===0&&this.linkMap.delete(t))}unlinkAll(t){if(typeof t!="string")throw TypeError("to(local link target) is not a string.");const n=this.linkMap.get(t);if(n){for(const o of n)this.unsubscribe(o),this.removeAllListeners(o);this.linkMap.delete(t)}}getMetric(){return{tx:this.txCounter,rx:this.rxCounter,txb:this.txBytes,rxb:this.rxBytes,last:(Date.now()-this.lastTxRxTime)/1e3}}getState(){return this.state}getStateName(){return Mt[this.state].toLowerCase()}getSecurity(){return{useAuth:this.useAuth,isTLS:this.TLS,isAuthorized:this.boho.isAuthorized,encMode:this.encMode,usingEncryption:this.getEncryptionMode()}}stateChange(t,n){let o=t.toLowerCase();this.state=Mt[t.toUpperCase()],n&&this.emit(o,n),this.stateName!==o&&(this.stateName=o,this.emit("change",o))}}const hu=ve.Buffer,je=class je extends cy{constructor(t){super(t),je.instanceCount++,this.boundBrowserVisiblePing=this.browserVisiblePing.bind(this),document.addEventListener("visibilitychange",this.boundBrowserVisiblePing),t&&this.open()}browserVisiblePing(){document.visibilityState==="visible"&&this.ping()}close(){this.socket&&(this.socket.onopen=null,this.socket.onclose=null,this.socket.onmessage=null,this.socket.onerror=null,this.socket.readyState!==WebSocket.OPEN&&this.socket.readyState!==WebSocket.CONNECTING||this.socket.close()),super.close()}stop(){super.stop()}destroy(){document.removeEventListener("visibilitychange",this.boundBrowserVisiblePing),super.destroy()}keepAlive(){this.autoReconnect&&(this.socket&&this.socket.readyState!==WebSocket.CLOSED||this.state!==je.constants.STATES.CLOSED||this.open())}createConnection(t){je.webSocketCount++,this.socket=new WebSocket(t),this.socket.binaryType=je.binaryType,this.stateChange("opening"),this.socket.onopen=()=>{this.socket&&(this.socket.binaryType=="arraybuffer"?this.socket.onmessage=this.onWebSocketMessage.bind(this):this.socket.onmessage=this.onWebSocketMessageBlob.bind(this),this.emit("open"))},this.socket.onerror=n=>{this.emit("error",n)},this.socket.onclose=()=>{this.emit("close")}}onWebSocketMessage(t){this.rxCounter++,this.lastTxRxTime=Date.now();let n=hu.from(t.data);this.rxBytes+=n.byteLength,this.emit("socket_data",n)}async onWebSocketMessageBlob(t){let n;if(this.rxCounter++,this.lastTxRxTime=Date.now(),t.data instanceof Blob){let o=await t.data.arrayBuffer();n=hu.from(o)}else n=hu.from(t.data);this.rxBytes+=n.byteLength,this.emit("socket_data",n)}socket_send(t){var n;((n=this.socket)==null?void 0:n.readyState)===1?(this.socket.send(t),this.txCounter++,this.txBytes+=t.byteLength,this.lastTxRxTime=Date.now()):console.log(".")}};Tt(je,"version","3.0.1"),Tt(je,"binaryType","arraybuffer"),Tt(je,"Boho",ve),Tt(je,"MBP",ve.MBP),Tt(je,"Buffer",ve.Buffer),Tt(je,"constants",ey),Tt(je,"instanceCount",0),Tt(je,"webSocketCount",0);let Kt=je;const Ha="ws://localhost:7777",Ci="channel#topic";function hy(){const[e,t]=nt.useState([]),[n,o]=nt.useState("Hello, World!"),[l,a]=nt.useState(null),[s,p]=nt.useState(null),[d,g]=nt.useState({instances:0,websockets:0}),m=nt.useRef(null),S=nt.useRef(null),B=()=>{var T;(T=S.current)==null||T.scrollIntoView({behavior:"smooth"})};nt.useEffect(()=>{B()},[e]),nt.useEffect(()=>{if(console.log(Kt.version),m.current=new Kt(Ha),g({instances:Kt.instanceCount,websockets:Kt.webSocketCount}),!m.current){console.error("IO instance is not initialized.");return}const T=()=>{console.log("ready cid:",m.current.cid),p(m.current.cid),m.current.subscribe(Ci)},z=k=>{a(k),g({instances:Kt.instanceCount,websockets:Kt.webSocketCount})},v=(k,U)=>{console.log("Received message in App:",k,U),typeof k=="string"&&(k={text:k,cid:"cli unknown"}),t(O=>[...O,`${k.cid} : ${k.text}`])},E=k=>{console.error("IO Error in App:",k),a(`Error: ${k.message}`)};return m.current.on("ready",T),m.current.on("change",z),m.current.on(Ci,v),m.current.on("error",E),()=>{m.current.destroy(),console.log("IO instance destroyed."),m.current=null}},[]);const A=()=>{if(n.trim()){console.log("Sending message:",n);const T={text:n,cid:m.current.cid};console.log("Sending message object:",T),m.current.signal(Ci,T),o("date"+Date.now())}},I={color:l==="ready"?"green":"red",fontWeight:"bold"};return Le.jsxs("div",{className:"App",children:[Le.jsx("h1",{children:"React Chat Example"}),Le.jsxs("div",{children:["URL: ",Ha]}),Le.jsxs("div",{children:["Channel: ",Ci]}),Le.jsxs("div",{children:["IO State: ",Le.jsx("span",{style:I,children:l})]}),Le.jsxs("div",{children:["Client ID: ",s]}),Le.jsxs("div",{children:["IO Instances: ",d.instances]}),Le.jsxs("div",{children:["WebSockets Created: ",d.websockets]}),Le.jsxs("div",{className:"messages",children:[e.map((T,z)=>Le.jsx("div",{children:T},z)),Le.jsx("div",{ref:S})]}),Le.jsxs("div",{className:"input-area",children:[Le.jsx("input",{type:"text",value:n,onChange:T=>o(T.target.value),onKeyUp:T=>T.key==="Enter"&&A(),disabled:l!=="ready"}),Le.jsx("button",{onClick:A,disabled:l!=="ready",children:"Send"})]})]})}pu.createRoot(document.getElementById("root")).render(Le.jsx(Oh.StrictMode,{children:Le.jsx(hy,{})}));