UNPKG

@jeremyckahn/farmhand

Version:
1 lines 1.96 MB
function _mergeNamespaces(e,t){for(var n=0;n<t.length;n++){const o=t[n];if(typeof o!="string"&&!Array.isArray(o)){for(const a in o)if(a!=="default"&&!(a in e)){const s=Object.getOwnPropertyDescriptor(o,a);s&&Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:()=>o[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))o(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const u of s.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&o(u)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function o(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function o(){var a=!1;try{a=this instanceof o}catch{}return a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,a.get?a:{enumerable:!0,get:function(){return e[o]}})}),n}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={};var objectAssign$1,hasRequiredObjectAssign;function requireObjectAssign(){if(hasRequiredObjectAssign)return objectAssign$1;hasRequiredObjectAssign=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function a(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var u={},l=0;l<10;l++)u["_"+String.fromCharCode(l)]=l;var f=Object.getOwnPropertyNames(u).map(function(p){return u[p]});if(f.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(p){d[p]=p}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return objectAssign$1=a()?Object.assign:function(s,u){for(var l,f=o(s),d,p=1;p<arguments.length;p++){l=Object(arguments[p]);for(var h in l)t.call(l,h)&&(f[h]=l[h]);if(e){d=e(l);for(var y=0;y<d.length;y++)n.call(l,d[y])&&(f[d[y]]=l[d[y]])}}return f},objectAssign$1}var react={exports:{}},react_production_min={};var hasRequiredReact_production_min;function requireReact_production_min(){if(hasRequiredReact_production_min)return react_production_min;hasRequiredReact_production_min=1;var e=requireObjectAssign(),t=60103,n=60106;react_production_min.Fragment=60107,react_production_min.StrictMode=60108,react_production_min.Profiler=60114;var o=60109,a=60110,s=60112;react_production_min.Suspense=60113;var u=60115,l=60116;if(typeof Symbol=="function"&&Symbol.for){var f=Symbol.for;t=f("react.element"),n=f("react.portal"),react_production_min.Fragment=f("react.fragment"),react_production_min.StrictMode=f("react.strict_mode"),react_production_min.Profiler=f("react.profiler"),o=f("react.provider"),a=f("react.context"),s=f("react.forward_ref"),react_production_min.Suspense=f("react.suspense"),u=f("react.memo"),l=f("react.lazy")}var d=typeof Symbol=="function"&&Symbol.iterator;function p(V){return V===null||typeof V!="object"?null:(V=d&&V[d]||V["@@iterator"],typeof V=="function"?V:null)}function h(V){for(var H="https://reactjs.org/docs/error-decoder.html?invariant="+V,ee=1;ee<arguments.length;ee++)H+="&args[]="+encodeURIComponent(arguments[ee]);return"Minified React error #"+V+"; visit "+H+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function E(V,H,ee){this.props=V,this.context=H,this.refs=v,this.updater=ee||y}E.prototype.isReactComponent={},E.prototype.setState=function(V,H){if(typeof V!="object"&&typeof V!="function"&&V!=null)throw Error(h(85));this.updater.enqueueSetState(this,V,H,"setState")},E.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};function x(){}x.prototype=E.prototype;function I(V,H,ee){this.props=V,this.context=H,this.refs=v,this.updater=ee||y}var C=I.prototype=new x;C.constructor=I,e(C,E.prototype),C.isPureReactComponent=!0;var M={current:null},B=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function b(V,H,ee){var G,Q={},Y=null,X=null;if(H!=null)for(G in H.ref!==void 0&&(X=H.ref),H.key!==void 0&&(Y=""+H.key),H)B.call(H,G)&&!O.hasOwnProperty(G)&&(Q[G]=H[G]);var oe=arguments.length-2;if(oe===1)Q.children=ee;else if(1<oe){for(var se=Array(oe),fe=0;fe<oe;fe++)se[fe]=arguments[fe+2];Q.children=se}if(V&&V.defaultProps)for(G in oe=V.defaultProps,oe)Q[G]===void 0&&(Q[G]=oe[G]);return{$$typeof:t,type:V,key:Y,ref:X,props:Q,_owner:M.current}}function S(V,H){return{$$typeof:t,type:V.type,key:H,ref:V.ref,props:V.props,_owner:V._owner}}function k(V){return typeof V=="object"&&V!==null&&V.$$typeof===t}function L(V){var H={"=":"=0",":":"=2"};return"$"+V.replace(/[=:]/g,function(ee){return H[ee]})}var j=/\/+/g;function D(V,H){return typeof V=="object"&&V!==null&&V.key!=null?L(""+V.key):H.toString(36)}function N(V,H,ee,G,Q){var Y=typeof V;(Y==="undefined"||Y==="boolean")&&(V=null);var X=!1;if(V===null)X=!0;else switch(Y){case"string":case"number":X=!0;break;case"object":switch(V.$$typeof){case t:case n:X=!0}}if(X)return X=V,Q=Q(X),V=G===""?"."+D(X,0):G,Array.isArray(Q)?(ee="",V!=null&&(ee=V.replace(j,"$&/")+"/"),N(Q,H,ee,"",function(fe){return fe})):Q!=null&&(k(Q)&&(Q=S(Q,ee+(!Q.key||X&&X.key===Q.key?"":(""+Q.key).replace(j,"$&/")+"/")+V)),H.push(Q)),1;if(X=0,G=G===""?".":G+":",Array.isArray(V))for(var oe=0;oe<V.length;oe++){Y=V[oe];var se=G+D(Y,oe);X+=N(Y,H,ee,se,Q)}else if(se=p(V),typeof se=="function")for(V=se.call(V),oe=0;!(Y=V.next()).done;)Y=Y.value,se=G+D(Y,oe++),X+=N(Y,H,ee,se,Q);else if(Y==="object")throw H=""+V,Error(h(31,H==="[object Object]"?"object with keys {"+Object.keys(V).join(", ")+"}":H));return X}function R(V,H,ee){if(V==null)return V;var G=[],Q=0;return N(V,G,"","",function(Y){return H.call(ee,Y,Q++)}),G}function $(V){if(V._status===-1){var H=V._result;H=H(),V._status=0,V._result=H,H.then(function(ee){V._status===0&&(ee=ee.default,V._status=1,V._result=ee)},function(ee){V._status===0&&(V._status=2,V._result=ee)})}if(V._status===1)return V._result;throw V._result}var q={current:null};function W(){var V=q.current;if(V===null)throw Error(h(321));return V}var ne={ReactCurrentDispatcher:q,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:M,IsSomeRendererActing:{current:!1},assign:e};return react_production_min.Children={map:R,forEach:function(V,H,ee){R(V,function(){H.apply(this,arguments)},ee)},count:function(V){var H=0;return R(V,function(){H++}),H},toArray:function(V){return R(V,function(H){return H})||[]},only:function(V){if(!k(V))throw Error(h(143));return V}},react_production_min.Component=E,react_production_min.PureComponent=I,react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ne,react_production_min.cloneElement=function(V,H,ee){if(V==null)throw Error(h(267,V));var G=e({},V.props),Q=V.key,Y=V.ref,X=V._owner;if(H!=null){if(H.ref!==void 0&&(Y=H.ref,X=M.current),H.key!==void 0&&(Q=""+H.key),V.type&&V.type.defaultProps)var oe=V.type.defaultProps;for(se in H)B.call(H,se)&&!O.hasOwnProperty(se)&&(G[se]=H[se]===void 0&&oe!==void 0?oe[se]:H[se])}var se=arguments.length-2;if(se===1)G.children=ee;else if(1<se){oe=Array(se);for(var fe=0;fe<se;fe++)oe[fe]=arguments[fe+2];G.children=oe}return{$$typeof:t,type:V.type,key:Q,ref:Y,props:G,_owner:X}},react_production_min.createContext=function(V,H){return H===void 0&&(H=null),V={$$typeof:a,_calculateChangedBits:H,_currentValue:V,_currentValue2:V,_threadCount:0,Provider:null,Consumer:null},V.Provider={$$typeof:o,_context:V},V.Consumer=V},react_production_min.createElement=b,react_production_min.createFactory=function(V){var H=b.bind(null,V);return H.type=V,H},react_production_min.createRef=function(){return{current:null}},react_production_min.forwardRef=function(V){return{$$typeof:s,render:V}},react_production_min.isValidElement=k,react_production_min.lazy=function(V){return{$$typeof:l,_payload:{_status:-1,_result:V},_init:$}},react_production_min.memo=function(V,H){return{$$typeof:u,type:V,compare:H===void 0?null:H}},react_production_min.useCallback=function(V,H){return W().useCallback(V,H)},react_production_min.useContext=function(V,H){return W().useContext(V,H)},react_production_min.useDebugValue=function(){},react_production_min.useEffect=function(V,H){return W().useEffect(V,H)},react_production_min.useImperativeHandle=function(V,H,ee){return W().useImperativeHandle(V,H,ee)},react_production_min.useLayoutEffect=function(V,H){return W().useLayoutEffect(V,H)},react_production_min.useMemo=function(V,H){return W().useMemo(V,H)},react_production_min.useReducer=function(V,H,ee){return W().useReducer(V,H,ee)},react_production_min.useRef=function(V){return W().useRef(V)},react_production_min.useState=function(V){return W().useState(V)},react_production_min.version="17.0.2",react_production_min}var hasRequiredReact;function requireReact(){return hasRequiredReact||(hasRequiredReact=1,react.exports=requireReact_production_min()),react.exports}var hasRequiredReactJsxRuntime_production_min;function requireReactJsxRuntime_production_min(){if(hasRequiredReactJsxRuntime_production_min)return reactJsxRuntime_production_min;hasRequiredReactJsxRuntime_production_min=1,requireObjectAssign();var e=requireReact(),t=60103;if(reactJsxRuntime_production_min.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var n=Symbol.for;t=n("react.element"),reactJsxRuntime_production_min.Fragment=n("react.fragment")}var o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function u(l,f,d){var p,h={},y=null,v=null;d!==void 0&&(y=""+d),f.key!==void 0&&(y=""+f.key),f.ref!==void 0&&(v=f.ref);for(p in f)a.call(f,p)&&!s.hasOwnProperty(p)&&(h[p]=f[p]);if(l&&l.defaultProps)for(p in f=l.defaultProps,f)h[p]===void 0&&(h[p]=f[p]);return{$$typeof:t,type:l,key:y,ref:v,props:h,_owner:o.current}}return reactJsxRuntime_production_min.jsx=u,reactJsxRuntime_production_min.jsxs=u,reactJsxRuntime_production_min}var hasRequiredJsxRuntime;function requireJsxRuntime(){return hasRequiredJsxRuntime||(hasRequiredJsxRuntime=1,jsxRuntime.exports=requireReactJsxRuntime_production_min()),jsxRuntime.exports}var jsxRuntimeExports=requireJsxRuntime(),buffer={},base64Js={},hasRequiredBase64Js;function requireBase64Js(){if(hasRequiredBase64Js)return base64Js;hasRequiredBase64Js=1,base64Js.byteLength=l,base64Js.toByteArray=d,base64Js.fromByteArray=y;for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)e[a]=o[a],t[o.charCodeAt(a)]=a;t[45]=62,t[95]=63;function u(v){var E=v.length;if(E%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var x=v.indexOf("=");x===-1&&(x=E);var I=x===E?0:4-x%4;return[x,I]}function l(v){var E=u(v),x=E[0],I=E[1];return(x+I)*3/4-I}function f(v,E,x){return(E+x)*3/4-x}function d(v){var E,x=u(v),I=x[0],C=x[1],M=new n(f(v,I,C)),B=0,O=C>0?I-4:I,b;for(b=0;b<O;b+=4)E=t[v.charCodeAt(b)]<<18|t[v.charCodeAt(b+1)]<<12|t[v.charCodeAt(b+2)]<<6|t[v.charCodeAt(b+3)],M[B++]=E>>16&255,M[B++]=E>>8&255,M[B++]=E&255;return C===2&&(E=t[v.charCodeAt(b)]<<2|t[v.charCodeAt(b+1)]>>4,M[B++]=E&255),C===1&&(E=t[v.charCodeAt(b)]<<10|t[v.charCodeAt(b+1)]<<4|t[v.charCodeAt(b+2)]>>2,M[B++]=E>>8&255,M[B++]=E&255),M}function p(v){return e[v>>18&63]+e[v>>12&63]+e[v>>6&63]+e[v&63]}function h(v,E,x){for(var I,C=[],M=E;M<x;M+=3)I=(v[M]<<16&16711680)+(v[M+1]<<8&65280)+(v[M+2]&255),C.push(p(I));return C.join("")}function y(v){for(var E,x=v.length,I=x%3,C=[],M=16383,B=0,O=x-I;B<O;B+=M)C.push(h(v,B,B+M>O?O:B+M));return I===1?(E=v[x-1],C.push(e[E>>2]+e[E<<4&63]+"==")):I===2&&(E=(v[x-2]<<8)+v[x-1],C.push(e[E>>10]+e[E>>4&63]+e[E<<2&63]+"=")),C.join("")}return base64Js}var ieee754={};var hasRequiredIeee754;function requireIeee754(){return hasRequiredIeee754||(hasRequiredIeee754=1,ieee754.read=function(e,t,n,o,a){var s,u,l=a*8-o-1,f=(1<<l)-1,d=f>>1,p=-7,h=n?a-1:0,y=n?-1:1,v=e[t+h];for(h+=y,s=v&(1<<-p)-1,v>>=-p,p+=l;p>0;s=s*256+e[t+h],h+=y,p-=8);for(u=s&(1<<-p)-1,s>>=-p,p+=o;p>0;u=u*256+e[t+h],h+=y,p-=8);if(s===0)s=1-d;else{if(s===f)return u?NaN:(v?-1:1)*(1/0);u=u+Math.pow(2,o),s=s-d}return(v?-1:1)*u*Math.pow(2,s-o)},ieee754.write=function(e,t,n,o,a,s){var u,l,f,d=s*8-a-1,p=(1<<d)-1,h=p>>1,y=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=o?0:s-1,E=o?1:-1,x=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,u=p):(u=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+h>=1?t+=y/f:t+=y*Math.pow(2,1-h),t*f>=2&&(u++,f/=2),u+h>=p?(l=0,u=p):u+h>=1?(l=(t*f-1)*Math.pow(2,a),u=u+h):(l=t*Math.pow(2,h-1)*Math.pow(2,a),u=0));a>=8;e[n+v]=l&255,v+=E,l/=256,a-=8);for(u=u<<a|l,d+=a;d>0;e[n+v]=u&255,v+=E,u/=256,d-=8);e[n+v-E]|=x*128}),ieee754}var hasRequiredBuffer;function requireBuffer(){return hasRequiredBuffer||(hasRequiredBuffer=1,(function(e){const t=requireBase64Js(),n=requireIeee754(),o=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=l,e.SlowBuffer=M,e.INSPECT_MAX_BYTES=50;const a=2147483647;e.kMaxLength=a,l.TYPED_ARRAY_SUPPORT=s(),!l.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{const ae=new Uint8Array(1),z={foo:function(){return 42}};return Object.setPrototypeOf(z,Uint8Array.prototype),Object.setPrototypeOf(ae,z),ae.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function u(ae){if(ae>a)throw new RangeError('The value "'+ae+'" is invalid for option "size"');const z=new Uint8Array(ae);return Object.setPrototypeOf(z,l.prototype),z}function l(ae,z,K){if(typeof ae=="number"){if(typeof z=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(ae)}return f(ae,z,K)}l.poolSize=8192;function f(ae,z,K){if(typeof ae=="string")return y(ae,z);if(ArrayBuffer.isView(ae))return E(ae);if(ae==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ae);if(Ae(ae,ArrayBuffer)||ae&&Ae(ae.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ae(ae,SharedArrayBuffer)||ae&&Ae(ae.buffer,SharedArrayBuffer)))return x(ae,z,K);if(typeof ae=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const he=ae.valueOf&&ae.valueOf();if(he!=null&&he!==ae)return l.from(he,z,K);const re=I(ae);if(re)return re;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof ae[Symbol.toPrimitive]=="function")return l.from(ae[Symbol.toPrimitive]("string"),z,K);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ae)}l.from=function(ae,z,K){return f(ae,z,K)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array);function d(ae){if(typeof ae!="number")throw new TypeError('"size" argument must be of type number');if(ae<0)throw new RangeError('The value "'+ae+'" is invalid for option "size"')}function p(ae,z,K){return d(ae),ae<=0?u(ae):z!==void 0?typeof K=="string"?u(ae).fill(z,K):u(ae).fill(z):u(ae)}l.alloc=function(ae,z,K){return p(ae,z,K)};function h(ae){return d(ae),u(ae<0?0:C(ae)|0)}l.allocUnsafe=function(ae){return h(ae)},l.allocUnsafeSlow=function(ae){return h(ae)};function y(ae,z){if((typeof z!="string"||z==="")&&(z="utf8"),!l.isEncoding(z))throw new TypeError("Unknown encoding: "+z);const K=B(ae,z)|0;let he=u(K);const re=he.write(ae,z);return re!==K&&(he=he.slice(0,re)),he}function v(ae){const z=ae.length<0?0:C(ae.length)|0,K=u(z);for(let he=0;he<z;he+=1)K[he]=ae[he]&255;return K}function E(ae){if(Ae(ae,Uint8Array)){const z=new Uint8Array(ae);return x(z.buffer,z.byteOffset,z.byteLength)}return v(ae)}function x(ae,z,K){if(z<0||ae.byteLength<z)throw new RangeError('"offset" is outside of buffer bounds');if(ae.byteLength<z+(K||0))throw new RangeError('"length" is outside of buffer bounds');let he;return z===void 0&&K===void 0?he=new Uint8Array(ae):K===void 0?he=new Uint8Array(ae,z):he=new Uint8Array(ae,z,K),Object.setPrototypeOf(he,l.prototype),he}function I(ae){if(l.isBuffer(ae)){const z=C(ae.length)|0,K=u(z);return K.length===0||ae.copy(K,0,0,z),K}if(ae.length!==void 0)return typeof ae.length!="number"||Pe(ae.length)?u(0):v(ae);if(ae.type==="Buffer"&&Array.isArray(ae.data))return v(ae.data)}function C(ae){if(ae>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return ae|0}function M(ae){return+ae!=ae&&(ae=0),l.alloc(+ae)}l.isBuffer=function(z){return z!=null&&z._isBuffer===!0&&z!==l.prototype},l.compare=function(z,K){if(Ae(z,Uint8Array)&&(z=l.from(z,z.offset,z.byteLength)),Ae(K,Uint8Array)&&(K=l.from(K,K.offset,K.byteLength)),!l.isBuffer(z)||!l.isBuffer(K))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(z===K)return 0;let he=z.length,re=K.length;for(let _e=0,we=Math.min(he,re);_e<we;++_e)if(z[_e]!==K[_e]){he=z[_e],re=K[_e];break}return he<re?-1:re<he?1:0},l.isEncoding=function(z){switch(String(z).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(z,K){if(!Array.isArray(z))throw new TypeError('"list" argument must be an Array of Buffers');if(z.length===0)return l.alloc(0);let he;if(K===void 0)for(K=0,he=0;he<z.length;++he)K+=z[he].length;const re=l.allocUnsafe(K);let _e=0;for(he=0;he<z.length;++he){let we=z[he];if(Ae(we,Uint8Array))_e+we.length>re.length?(l.isBuffer(we)||(we=l.from(we)),we.copy(re,_e)):Uint8Array.prototype.set.call(re,we,_e);else if(l.isBuffer(we))we.copy(re,_e);else throw new TypeError('"list" argument must be an Array of Buffers');_e+=we.length}return re};function B(ae,z){if(l.isBuffer(ae))return ae.length;if(ArrayBuffer.isView(ae)||Ae(ae,ArrayBuffer))return ae.byteLength;if(typeof ae!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ae);const K=ae.length,he=arguments.length>2&&arguments[2]===!0;if(!he&&K===0)return 0;let re=!1;for(;;)switch(z){case"ascii":case"latin1":case"binary":return K;case"utf8":case"utf-8":return je(ae).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K*2;case"hex":return K>>>1;case"base64":return Ce(ae).length;default:if(re)return he?-1:je(ae).length;z=(""+z).toLowerCase(),re=!0}}l.byteLength=B;function O(ae,z,K){let he=!1;if((z===void 0||z<0)&&(z=0),z>this.length||((K===void 0||K>this.length)&&(K=this.length),K<=0)||(K>>>=0,z>>>=0,K<=z))return"";for(ae||(ae="utf8");;)switch(ae){case"hex":return ee(this,z,K);case"utf8":case"utf-8":return q(this,z,K);case"ascii":return V(this,z,K);case"latin1":case"binary":return H(this,z,K);case"base64":return $(this,z,K);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,z,K);default:if(he)throw new TypeError("Unknown encoding: "+ae);ae=(ae+"").toLowerCase(),he=!0}}l.prototype._isBuffer=!0;function b(ae,z,K){const he=ae[z];ae[z]=ae[K],ae[K]=he}l.prototype.swap16=function(){const z=this.length;if(z%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let K=0;K<z;K+=2)b(this,K,K+1);return this},l.prototype.swap32=function(){const z=this.length;if(z%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let K=0;K<z;K+=4)b(this,K,K+3),b(this,K+1,K+2);return this},l.prototype.swap64=function(){const z=this.length;if(z%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let K=0;K<z;K+=8)b(this,K,K+7),b(this,K+1,K+6),b(this,K+2,K+5),b(this,K+3,K+4);return this},l.prototype.toString=function(){const z=this.length;return z===0?"":arguments.length===0?q(this,0,z):O.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(z){if(!l.isBuffer(z))throw new TypeError("Argument must be a Buffer");return this===z?!0:l.compare(this,z)===0},l.prototype.inspect=function(){let z="";const K=e.INSPECT_MAX_BYTES;return z=this.toString("hex",0,K).replace(/(.{2})/g,"$1 ").trim(),this.length>K&&(z+=" ... "),"<Buffer "+z+">"},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(z,K,he,re,_e){if(Ae(z,Uint8Array)&&(z=l.from(z,z.offset,z.byteLength)),!l.isBuffer(z))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof z);if(K===void 0&&(K=0),he===void 0&&(he=z?z.length:0),re===void 0&&(re=0),_e===void 0&&(_e=this.length),K<0||he>z.length||re<0||_e>this.length)throw new RangeError("out of range index");if(re>=_e&&K>=he)return 0;if(re>=_e)return-1;if(K>=he)return 1;if(K>>>=0,he>>>=0,re>>>=0,_e>>>=0,this===z)return 0;let we=_e-re,ze=he-K;const xe=Math.min(we,ze),Oe=this.slice(re,_e),ue=z.slice(K,he);for(let Ue=0;Ue<xe;++Ue)if(Oe[Ue]!==ue[Ue]){we=Oe[Ue],ze=ue[Ue];break}return we<ze?-1:ze<we?1:0};function S(ae,z,K,he,re){if(ae.length===0)return-1;if(typeof K=="string"?(he=K,K=0):K>2147483647?K=2147483647:K<-2147483648&&(K=-2147483648),K=+K,Pe(K)&&(K=re?0:ae.length-1),K<0&&(K=ae.length+K),K>=ae.length){if(re)return-1;K=ae.length-1}else if(K<0)if(re)K=0;else return-1;if(typeof z=="string"&&(z=l.from(z,he)),l.isBuffer(z))return z.length===0?-1:k(ae,z,K,he,re);if(typeof z=="number")return z=z&255,typeof Uint8Array.prototype.indexOf=="function"?re?Uint8Array.prototype.indexOf.call(ae,z,K):Uint8Array.prototype.lastIndexOf.call(ae,z,K):k(ae,[z],K,he,re);throw new TypeError("val must be string, number or Buffer")}function k(ae,z,K,he,re){let _e=1,we=ae.length,ze=z.length;if(he!==void 0&&(he=String(he).toLowerCase(),he==="ucs2"||he==="ucs-2"||he==="utf16le"||he==="utf-16le")){if(ae.length<2||z.length<2)return-1;_e=2,we/=2,ze/=2,K/=2}function xe(ue,Ue){return _e===1?ue[Ue]:ue.readUInt16BE(Ue*_e)}let Oe;if(re){let ue=-1;for(Oe=K;Oe<we;Oe++)if(xe(ae,Oe)===xe(z,ue===-1?0:Oe-ue)){if(ue===-1&&(ue=Oe),Oe-ue+1===ze)return ue*_e}else ue!==-1&&(Oe-=Oe-ue),ue=-1}else for(K+ze>we&&(K=we-ze),Oe=K;Oe>=0;Oe--){let ue=!0;for(let Ue=0;Ue<ze;Ue++)if(xe(ae,Oe+Ue)!==xe(z,Ue)){ue=!1;break}if(ue)return Oe}return-1}l.prototype.includes=function(z,K,he){return this.indexOf(z,K,he)!==-1},l.prototype.indexOf=function(z,K,he){return S(this,z,K,he,!0)},l.prototype.lastIndexOf=function(z,K,he){return S(this,z,K,he,!1)};function L(ae,z,K,he){K=Number(K)||0;const re=ae.length-K;he?(he=Number(he),he>re&&(he=re)):he=re;const _e=z.length;he>_e/2&&(he=_e/2);let we;for(we=0;we<he;++we){const ze=parseInt(z.substr(we*2,2),16);if(Pe(ze))return we;ae[K+we]=ze}return we}function j(ae,z,K,he){return ke(je(z,ae.length-K),ae,K,he)}function D(ae,z,K,he){return ke(We(z),ae,K,he)}function N(ae,z,K,he){return ke(Ce(z),ae,K,he)}function R(ae,z,K,he){return ke(ye(z,ae.length-K),ae,K,he)}l.prototype.write=function(z,K,he,re){if(K===void 0)re="utf8",he=this.length,K=0;else if(he===void 0&&typeof K=="string")re=K,he=this.length,K=0;else if(isFinite(K))K=K>>>0,isFinite(he)?(he=he>>>0,re===void 0&&(re="utf8")):(re=he,he=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const _e=this.length-K;if((he===void 0||he>_e)&&(he=_e),z.length>0&&(he<0||K<0)||K>this.length)throw new RangeError("Attempt to write outside buffer bounds");re||(re="utf8");let we=!1;for(;;)switch(re){case"hex":return L(this,z,K,he);case"utf8":case"utf-8":return j(this,z,K,he);case"ascii":case"latin1":case"binary":return D(this,z,K,he);case"base64":return N(this,z,K,he);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,z,K,he);default:if(we)throw new TypeError("Unknown encoding: "+re);re=(""+re).toLowerCase(),we=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function $(ae,z,K){return z===0&&K===ae.length?t.fromByteArray(ae):t.fromByteArray(ae.slice(z,K))}function q(ae,z,K){K=Math.min(ae.length,K);const he=[];let re=z;for(;re<K;){const _e=ae[re];let we=null,ze=_e>239?4:_e>223?3:_e>191?2:1;if(re+ze<=K){let xe,Oe,ue,Ue;switch(ze){case 1:_e<128&&(we=_e);break;case 2:xe=ae[re+1],(xe&192)===128&&(Ue=(_e&31)<<6|xe&63,Ue>127&&(we=Ue));break;case 3:xe=ae[re+1],Oe=ae[re+2],(xe&192)===128&&(Oe&192)===128&&(Ue=(_e&15)<<12|(xe&63)<<6|Oe&63,Ue>2047&&(Ue<55296||Ue>57343)&&(we=Ue));break;case 4:xe=ae[re+1],Oe=ae[re+2],ue=ae[re+3],(xe&192)===128&&(Oe&192)===128&&(ue&192)===128&&(Ue=(_e&15)<<18|(xe&63)<<12|(Oe&63)<<6|ue&63,Ue>65535&&Ue<1114112&&(we=Ue))}}we===null?(we=65533,ze=1):we>65535&&(we-=65536,he.push(we>>>10&1023|55296),we=56320|we&1023),he.push(we),re+=ze}return ne(he)}const W=4096;function ne(ae){const z=ae.length;if(z<=W)return String.fromCharCode.apply(String,ae);let K="",he=0;for(;he<z;)K+=String.fromCharCode.apply(String,ae.slice(he,he+=W));return K}function V(ae,z,K){let he="";K=Math.min(ae.length,K);for(let re=z;re<K;++re)he+=String.fromCharCode(ae[re]&127);return he}function H(ae,z,K){let he="";K=Math.min(ae.length,K);for(let re=z;re<K;++re)he+=String.fromCharCode(ae[re]);return he}function ee(ae,z,K){const he=ae.length;(!z||z<0)&&(z=0),(!K||K<0||K>he)&&(K=he);let re="";for(let _e=z;_e<K;++_e)re+=$e[ae[_e]];return re}function G(ae,z,K){const he=ae.slice(z,K);let re="";for(let _e=0;_e<he.length-1;_e+=2)re+=String.fromCharCode(he[_e]+he[_e+1]*256);return re}l.prototype.slice=function(z,K){const he=this.length;z=~~z,K=K===void 0?he:~~K,z<0?(z+=he,z<0&&(z=0)):z>he&&(z=he),K<0?(K+=he,K<0&&(K=0)):K>he&&(K=he),K<z&&(K=z);const re=this.subarray(z,K);return Object.setPrototypeOf(re,l.prototype),re};function Q(ae,z,K){if(ae%1!==0||ae<0)throw new RangeError("offset is not uint");if(ae+z>K)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(z,K,he){z=z>>>0,K=K>>>0,he||Q(z,K,this.length);let re=this[z],_e=1,we=0;for(;++we<K&&(_e*=256);)re+=this[z+we]*_e;return re},l.prototype.readUintBE=l.prototype.readUIntBE=function(z,K,he){z=z>>>0,K=K>>>0,he||Q(z,K,this.length);let re=this[z+--K],_e=1;for(;K>0&&(_e*=256);)re+=this[z+--K]*_e;return re},l.prototype.readUint8=l.prototype.readUInt8=function(z,K){return z=z>>>0,K||Q(z,1,this.length),this[z]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(z,K){return z=z>>>0,K||Q(z,2,this.length),this[z]|this[z+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(z,K){return z=z>>>0,K||Q(z,2,this.length),this[z]<<8|this[z+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(z,K){return z=z>>>0,K||Q(z,4,this.length),(this[z]|this[z+1]<<8|this[z+2]<<16)+this[z+3]*16777216},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(z,K){return z=z>>>0,K||Q(z,4,this.length),this[z]*16777216+(this[z+1]<<16|this[z+2]<<8|this[z+3])},l.prototype.readBigUInt64LE=Ve(function(z){z=z>>>0,ie(z,"offset");const K=this[z],he=this[z+7];(K===void 0||he===void 0)&&Re(z,this.length-8);const re=K+this[++z]*2**8+this[++z]*2**16+this[++z]*2**24,_e=this[++z]+this[++z]*2**8+this[++z]*2**16+he*2**24;return BigInt(re)+(BigInt(_e)<<BigInt(32))}),l.prototype.readBigUInt64BE=Ve(function(z){z=z>>>0,ie(z,"offset");const K=this[z],he=this[z+7];(K===void 0||he===void 0)&&Re(z,this.length-8);const re=K*2**24+this[++z]*2**16+this[++z]*2**8+this[++z],_e=this[++z]*2**24+this[++z]*2**16+this[++z]*2**8+he;return(BigInt(re)<<BigInt(32))+BigInt(_e)}),l.prototype.readIntLE=function(z,K,he){z=z>>>0,K=K>>>0,he||Q(z,K,this.length);let re=this[z],_e=1,we=0;for(;++we<K&&(_e*=256);)re+=this[z+we]*_e;return _e*=128,re>=_e&&(re-=Math.pow(2,8*K)),re},l.prototype.readIntBE=function(z,K,he){z=z>>>0,K=K>>>0,he||Q(z,K,this.length);let re=K,_e=1,we=this[z+--re];for(;re>0&&(_e*=256);)we+=this[z+--re]*_e;return _e*=128,we>=_e&&(we-=Math.pow(2,8*K)),we},l.prototype.readInt8=function(z,K){return z=z>>>0,K||Q(z,1,this.length),this[z]&128?(255-this[z]+1)*-1:this[z]},l.prototype.readInt16LE=function(z,K){z=z>>>0,K||Q(z,2,this.length);const he=this[z]|this[z+1]<<8;return he&32768?he|4294901760:he},l.prototype.readInt16BE=function(z,K){z=z>>>0,K||Q(z,2,this.length);const he=this[z+1]|this[z]<<8;return he&32768?he|4294901760:he},l.prototype.readInt32LE=function(z,K){return z=z>>>0,K||Q(z,4,this.length),this[z]|this[z+1]<<8|this[z+2]<<16|this[z+3]<<24},l.prototype.readInt32BE=function(z,K){return z=z>>>0,K||Q(z,4,this.length),this[z]<<24|this[z+1]<<16|this[z+2]<<8|this[z+3]},l.prototype.readBigInt64LE=Ve(function(z){z=z>>>0,ie(z,"offset");const K=this[z],he=this[z+7];(K===void 0||he===void 0)&&Re(z,this.length-8);const re=this[z+4]+this[z+5]*2**8+this[z+6]*2**16+(he<<24);return(BigInt(re)<<BigInt(32))+BigInt(K+this[++z]*2**8+this[++z]*2**16+this[++z]*2**24)}),l.prototype.readBigInt64BE=Ve(function(z){z=z>>>0,ie(z,"offset");const K=this[z],he=this[z+7];(K===void 0||he===void 0)&&Re(z,this.length-8);const re=(K<<24)+this[++z]*2**16+this[++z]*2**8+this[++z];return(BigInt(re)<<BigInt(32))+BigInt(this[++z]*2**24+this[++z]*2**16+this[++z]*2**8+he)}),l.prototype.readFloatLE=function(z,K){return z=z>>>0,K||Q(z,4,this.length),n.read(this,z,!0,23,4)},l.prototype.readFloatBE=function(z,K){return z=z>>>0,K||Q(z,4,this.length),n.read(this,z,!1,23,4)},l.prototype.readDoubleLE=function(z,K){return z=z>>>0,K||Q(z,8,this.length),n.read(this,z,!0,52,8)},l.prototype.readDoubleBE=function(z,K){return z=z>>>0,K||Q(z,8,this.length),n.read(this,z,!1,52,8)};function Y(ae,z,K,he,re,_e){if(!l.isBuffer(ae))throw new TypeError('"buffer" argument must be a Buffer instance');if(z>re||z<_e)throw new RangeError('"value" argument is out of bounds');if(K+he>ae.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(z,K,he,re){if(z=+z,K=K>>>0,he=he>>>0,!re){const ze=Math.pow(2,8*he)-1;Y(this,z,K,he,ze,0)}let _e=1,we=0;for(this[K]=z&255;++we<he&&(_e*=256);)this[K+we]=z/_e&255;return K+he},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(z,K,he,re){if(z=+z,K=K>>>0,he=he>>>0,!re){const ze=Math.pow(2,8*he)-1;Y(this,z,K,he,ze,0)}let _e=he-1,we=1;for(this[K+_e]=z&255;--_e>=0&&(we*=256);)this[K+_e]=z/we&255;return K+he},l.prototype.writeUint8=l.prototype.writeUInt8=function(z,K,he){return z=+z,K=K>>>0,he||Y(this,z,K,1,255,0),this[K]=z&255,K+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(z,K,he){return z=+z,K=K>>>0,he||Y(this,z,K,2,65535,0),this[K]=z&255,this[K+1]=z>>>8,K+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(z,K,he){return z=+z,K=K>>>0,he||Y(this,z,K,2,65535,0),this[K]=z>>>8,this[K+1]=z&255,K+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(z,K,he){return z=+z,K=K>>>0,he||Y(this,z,K,4,4294967295,0),this[K+3]=z>>>24,this[K+2]=z>>>16,this[K+1]=z>>>8,this[K]=z&255,K+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(z,K,he){return z=+z,K=K>>>0,he||Y(this,z,K,4,4294967295,0),this[K]=z>>>24,this[K+1]=z>>>16,this[K+2]=z>>>8,this[K+3]=z&255,K+4};function X(ae,z,K,he,re){le(z,he,re,ae,K,7);let _e=Number(z&BigInt(4294967295));ae[K++]=_e,_e=_e>>8,ae[K++]=_e,_e=_e>>8,ae[K++]=_e,_e=_e>>8,ae[K++]=_e;let we=Number(z>>BigInt(32)&BigInt(4294967295));return ae[K++]=we,we=we>>8,ae[K++]=we,we=we>>8,ae[K++]=we,we=we>>8,ae[K++]=we,K}function oe(ae,z,K,he,re){le(z,he,re,ae,K,7);let _e=Number(z&BigInt(4294967295));ae[K+7]=_e,_e=_e>>8,ae[K+6]=_e,_e=_e>>8,ae[K+5]=_e,_e=_e>>8,ae[K+4]=_e;let we=Number(z>>BigInt(32)&BigInt(4294967295));return ae[K+3]=we,we=we>>8,ae[K+2]=we,we=we>>8,ae[K+1]=we,we=we>>8,ae[K]=we,K+8}l.prototype.writeBigUInt64LE=Ve(function(z,K=0){return X(this,z,K,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=Ve(function(z,K=0){return oe(this,z,K,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(z,K,he,re){if(z=+z,K=K>>>0,!re){const xe=Math.pow(2,8*he-1);Y(this,z,K,he,xe-1,-xe)}let _e=0,we=1,ze=0;for(this[K]=z&255;++_e<he&&(we*=256);)z<0&&ze===0&&this[K+_e-1]!==0&&(ze=1),this[K+_e]=(z/we>>0)-ze&255;return K+he},l.prototype.writeIntBE=function(z,K,he,re){if(z=+z,K=K>>>0,!re){const xe=Math.pow(2,8*he-1);Y(this,z,K,he,xe-1,-xe)}let _e=he-1,we=1,ze=0;for(this[K+_e]=z&255;--_e>=0&&(we*=256);)z<0&&ze===0&&this[K+_e+1]!==0&&(ze=1),this[K+_e]=(z/we>>0)-ze&255;return K+he},l.prototype.writeInt8=function(z,K,he){return z=+z,K=K>>>0,he||Y(this,z,K,1,127,-128),z<0&&(z=255+z+1),this[K]=z&255,K+1},l.prototype.writeInt16LE=function(z,K,he){return z=+z,K=K>>>0,he||Y(this,z,K,2,32767,-32768),this[K]=z&255,this[K+1]=z>>>8,K+2},l.prototype.writeInt16BE=function(z,K,he){return z=+z,K=K>>>0,he||Y(this,z,K,2,32767,-32768),this[K]=z>>>8,this[K+1]=z&255,K+2},l.prototype.writeInt32LE=function(z,K,he){return z=+z,K=K>>>0,he||Y(this,z,K,4,2147483647,-2147483648),this[K]=z&255,this[K+1]=z>>>8,this[K+2]=z>>>16,this[K+3]=z>>>24,K+4},l.prototype.writeInt32BE=function(z,K,he){return z=+z,K=K>>>0,he||Y(this,z,K,4,2147483647,-2147483648),z<0&&(z=4294967295+z+1),this[K]=z>>>24,this[K+1]=z>>>16,this[K+2]=z>>>8,this[K+3]=z&255,K+4},l.prototype.writeBigInt64LE=Ve(function(z,K=0){return X(this,z,K,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=Ve(function(z,K=0){return oe(this,z,K,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function se(ae,z,K,he,re,_e){if(K+he>ae.length)throw new RangeError("Index out of range");if(K<0)throw new RangeError("Index out of range")}function fe(ae,z,K,he,re){return z=+z,K=K>>>0,re||se(ae,z,K,4),n.write(ae,z,K,he,23,4),K+4}l.prototype.writeFloatLE=function(z,K,he){return fe(this,z,K,!0,he)},l.prototype.writeFloatBE=function(z,K,he){return fe(this,z,K,!1,he)};function de(ae,z,K,he,re){return z=+z,K=K>>>0,re||se(ae,z,K,8),n.write(ae,z,K,he,52,8),K+8}l.prototype.writeDoubleLE=function(z,K,he){return de(this,z,K,!0,he)},l.prototype.writeDoubleBE=function(z,K,he){return de(this,z,K,!1,he)},l.prototype.copy=function(z,K,he,re){if(!l.isBuffer(z))throw new TypeError("argument should be a Buffer");if(he||(he=0),!re&&re!==0&&(re=this.length),K>=z.length&&(K=z.length),K||(K=0),re>0&&re<he&&(re=he),re===he||z.length===0||this.length===0)return 0;if(K<0)throw new RangeError("targetStart out of bounds");if(he<0||he>=this.length)throw new RangeError("Index out of range");if(re<0)throw new RangeError("sourceEnd out of bounds");re>this.length&&(re=this.length),z.length-K<re-he&&(re=z.length-K+he);const _e=re-he;return this===z&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(K,he,re):Uint8Array.prototype.set.call(z,this.subarray(he,re),K),_e},l.prototype.fill=function(z,K,he,re){if(typeof z=="string"){if(typeof K=="string"?(re=K,K=0,he=this.length):typeof he=="string"&&(re=he,he=this.length),re!==void 0&&typeof re!="string")throw new TypeError("encoding must be a string");if(typeof re=="string"&&!l.isEncoding(re))throw new TypeError("Unknown encoding: "+re);if(z.length===1){const we=z.charCodeAt(0);(re==="utf8"&&we<128||re==="latin1")&&(z=we)}}else typeof z=="number"?z=z&255:typeof z=="boolean"&&(z=Number(z));if(K<0||this.length<K||this.length<he)throw new RangeError("Out of range index");if(he<=K)return this;K=K>>>0,he=he===void 0?this.length:he>>>0,z||(z=0);let _e;if(typeof z=="number")for(_e=K;_e<he;++_e)this[_e]=z;else{const we=l.isBuffer(z)?z:l.from(z,re),ze=we.length;if(ze===0)throw new TypeError('The value "'+z+'" is invalid for argument "value"');for(_e=0;_e<he-K;++_e)this[_e+K]=we[_e%ze]}return this};const F={};function J(ae,z,K){F[ae]=class extends K{constructor(){super(),Object.defineProperty(this,"message",{value:z.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${ae}]`,this.stack,delete this.name}get code(){return ae}set code(re){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:re,writable:!0})}toString(){return`${this.name} [${ae}]: ${this.message}`}}}J("ERR_BUFFER_OUT_OF_BOUNDS",function(ae){return ae?`${ae} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),J("ERR_INVALID_ARG_TYPE",function(ae,z){return`The "${ae}" argument must be of type number. Received type ${typeof z}`},TypeError),J("ERR_OUT_OF_RANGE",function(ae,z,K){let he=`The value of "${ae}" is out of range.`,re=K;return Number.isInteger(K)&&Math.abs(K)>2**32?re=pe(String(K)):typeof K=="bigint"&&(re=String(K),(K>BigInt(2)**BigInt(32)||K<-(BigInt(2)**BigInt(32)))&&(re=pe(re)),re+="n"),he+=` It must be ${z}. Received ${re}`,he},RangeError);function pe(ae){let z="",K=ae.length;const he=ae[0]==="-"?1:0;for(;K>=he+4;K-=3)z=`_${ae.slice(K-3,K)}${z}`;return`${ae.slice(0,K)}${z}`}function ge(ae,z,K){ie(z,"offset"),(ae[z]===void 0||ae[z+K]===void 0)&&Re(z,ae.length-(K+1))}function le(ae,z,K,he,re,_e){if(ae>K||ae<z){const we=typeof z=="bigint"?"n":"";let ze;throw z===0||z===BigInt(0)?ze=`>= 0${we} and < 2${we} ** ${(_e+1)*8}${we}`:ze=`>= -(2${we} ** ${(_e+1)*8-1}${we}) and < 2 ** ${(_e+1)*8-1}${we}`,new F.ERR_OUT_OF_RANGE("value",ze,ae)}ge(he,re,_e)}function ie(ae,z){if(typeof ae!="number")throw new F.ERR_INVALID_ARG_TYPE(z,"number",ae)}function Re(ae,z,K){throw Math.floor(ae)!==ae?(ie(ae,K),new F.ERR_OUT_OF_RANGE("offset","an integer",ae)):z<0?new F.ERR_BUFFER_OUT_OF_BOUNDS:new F.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${z}`,ae)}const Me=/[^+/0-9A-Za-z-_]/g;function Ge(ae){if(ae=ae.split("=")[0],ae=ae.trim().replace(Me,""),ae.length<2)return"";for(;ae.length%4!==0;)ae=ae+"=";return ae}function je(ae,z){z=z||1/0;let K;const he=ae.length;let re=null;const _e=[];for(let we=0;we<he;++we){if(K=ae.charCodeAt(we),K>55295&&K<57344){if(!re){if(K>56319){(z-=3)>-1&&_e.push(239,191,189);continue}else if(we+1===he){(z-=3)>-1&&_e.push(239,191,189);continue}re=K;continue}if(K<56320){(z-=3)>-1&&_e.push(239,191,189),re=K;continue}K=(re-55296<<10|K-56320)+65536}else re&&(z-=3)>-1&&_e.push(239,191,189);if(re=null,K<128){if((z-=1)<0)break;_e.push(K)}else if(K<2048){if((z-=2)<0)break;_e.push(K>>6|192,K&63|128)}else if(K<65536){if((z-=3)<0)break;_e.push(K>>12|224,K>>6&63|128,K&63|128)}else if(K<1114112){if((z-=4)<0)break;_e.push(K>>18|240,K>>12&63|128,K>>6&63|128,K&63|128)}else throw new Error("Invalid code point")}return _e}function We(ae){const z=[];for(let K=0;K<ae.length;++K)z.push(ae.charCodeAt(K)&255);return z}function ye(ae,z){let K,he,re;const _e=[];for(let we=0;we<ae.length&&!((z-=2)<0);++we)K=ae.charCodeAt(we),he=K>>8,re=K%256,_e.push(re),_e.push(he);return _e}function Ce(ae){return t.toByteArray(Ge(ae))}function ke(ae,z,K,he){let re;for(re=0;re<he&&!(re+K>=z.length||re>=ae.length);++re)z[re+K]=ae[re];return re}function Ae(ae,z){return ae instanceof z||ae!=null&&ae.constructor!=null&&ae.constructor.name!=null&&ae.constructor.name===z.name}function Pe(ae){return ae!==ae}const $e=(function(){const ae="0123456789abcdef",z=new Array(256);for(let K=0;K<16;++K){const he=K*16;for(let re=0;re<16;++re)z[he+re]=ae[K]+ae[re]}return z})();function Ve(ae){return typeof BigInt>"u"?Qe:ae}function Qe(){throw new Error("BigInt not supported")}})(buffer)),buffer}var bufferExports=requireBuffer(),browser$1={exports:{}},hasRequiredBrowser$1;function requireBrowser$1(){if(hasRequiredBrowser$1)return browser$1.exports;hasRequiredBrowser$1=1;var e=browser$1.exports={},t,n;function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?t=setTimeout:t=o}catch{t=o}try{typeof clearTimeout=="function"?n=clearTimeout:n=a}catch{n=a}})();function s(x){if(t===setTimeout)return setTimeout(x,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(x,0);try{return t(x,0)}catch{try{return t.call(null,x,0)}catch{return t.call(this,x,0)}}}function u(x){if(n===clearTimeout)return clearTimeout(x);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(x);try{return n(x)}catch{try{return n.call(null,x)}catch{return n.call(this,x)}}}var l=[],f=!1,d,p=-1;function h(){!f||!d||(f=!1,d.length?l=d.concat(l):p=-1,l.length&&y())}function y(){if(!f){var x=s(h);f=!0;for(var I=l.length;I;){for(d=l,l=[];++p<I;)d&&d[p].run();p=-1,I=l.length}d=null,f=!1,u(x)}}e.nextTick=function(x){var I=new Array(arguments.length-1);if(arguments.length>1)for(var C=1;C<arguments.length;C++)I[C-1]=arguments[C];l.push(new v(x,I)),l.length===1&&!f&&s(y)};function v(x,I){this.fun=x,this.array=I}v.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={};function E(){}return e.on=E,e.addListener=E,e.once=E,e.off=E,e.removeListener=E,e.removeAllListeners=E,e.emit=E,e.prependListener=E,e.prependOnceListener=E,e.listeners=function(x){return[]},e.binding=function(x){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(x){throw new Error("process.chdir is not supported")},e.umask=function(){return 0},browser$1.exports}var browserExports=requireBrowser$1();const process$1=getDefaultExportFromCjs(browserExports);window.Buffer=bufferExports.Buffer;window.process=process$1;var reactDom={exports:{}},reactDom_production_min={},scheduler={exports:{}},scheduler_production_min={};var hasRequiredScheduler_production_min;function requireScheduler_production_min(){return hasRequiredScheduler_production_min||(hasRequiredScheduler_production_min=1,(function(e){var t,n,o,a;if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var u=Date,l=u.now();e.unstable_now=function(){return u.now()-l}}if(typeof window>"u"||typeof MessageChannel!="function"){var f=null,d=null,p=function(){if(f!==null)try{var Q=e.unstable_now();f(!0,Q),f=null}catch(Y){throw setTimeout(p,0),Y}};t=function(Q){f!==null?setTimeout(t,0,Q):(f=Q,setTimeout(p,0))},n=function(Q,Y){d=setTimeout(Q,Y)},o=function(){clearTimeout(d)},e.unstable_shouldYield=function(){return!1},a=e.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,y=window.clearTimeout;if(typeof console<"u"){var v=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof v!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var E=!1,x=null,I=-1,C=5,M=0;e.unstable_shouldYield=function(){return e.unstable_now()>=M},a=function(){},e.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<Q?Math.floor(1e3/Q):5};var B=new MessageChannel,O=B.port2;B.port1.onmessage=function(){if(x!==null){var Q=e.unstable_now();M=Q+C;try{x(!0,Q)?O.postMessage(null):(E=!1,x=null)}catch(Y){throw O.postMessage(null),Y}}else E=!1},t=function(Q){x=Q,E||(E=!0,O.postMessage(null))},n=function(Q,Y){I=h(function(){Q(e.unstable_now())},Y)},o=function(){y(I),I=-1}}function b(Q,Y){var X=Q.length;Q.push(Y);e:for(;;){var oe=X-1>>>1,se=Q[oe];if(se!==void 0&&0<L(se,Y))Q[oe]=Y,Q[X]=se,X=oe;else break e}}function S(Q){return Q=Q[0],Q===void 0?null:Q}function k(Q){var Y=Q[0];if(Y!==void 0){var X=Q.pop();if(X!==Y){Q[0]=X;e:for(var oe=0,se=Q.length;oe<se;){var fe=2*(oe+1)-1,de=Q[fe],F=fe+1,J=Q[F];if(de!==void 0&&0>L(de,X))J!==void 0&&0>L(J,de)?(Q[oe]=J,Q[F]=X,oe=F):(Q[oe]=de,Q[fe]=X,oe=fe);else if(J!==void 0&&0>L(J,X))Q[oe]=J,Q[F]=X,oe=F;else break e}}return Y}return null}function L(Q,Y){var X=Q.sortIndex-Y.sortIndex;return X!==0?X:Q.id-Y.id}var j=[],D=[],N=1,R=null,$=3,q=!1,W=!1,ne=!1;function V(Q){for(var Y=S(D);Y!==null;){if(Y.callback===null)k(D);else if(Y.startTime<=Q)k(D),Y.sortIndex=Y.expirationTime,b(j,Y);else break;Y=S(D)}}function H(Q){if(ne=!1,V(Q),!W)if(S(j)!==null)W=!0,t(ee);else{var Y=S(D);Y!==null&&n(H,Y.startTime-Q)}}function ee(Q,Y){W=!1,ne&&(ne=!1,o()),q=!0;var X=$;try{for(V(Y),R=S(j);R!==null&&(!(R.expirationTime>Y)||Q&&!e.unstable_shouldYield());){var oe=R.callback;if(typeof oe=="function"){R.callback=null,$=R.priorityLevel;var se=oe(R.expirationTime<=Y);Y=e.unstable_now(),typeof se=="function"?R.callback=se:R===S(j)&&k(j),V(Y)}else k(j);R=S(j)}if(R!==null)var fe=!0;else{var de=S(D);de!==null&&n(H,de.startTime-Y),fe=!1}return fe}finally{R=null,$=X,q=!1}}var G=a;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(Q){Q.callback=null},e.unstable_continueExecution=function(){W||q||(W=!0,t(ee))},e.unstable_getCurrentPriorityLevel=function(){return $},e.unstable_getFirstCallbackNode=function(){return S(j)},e.unstable_next=function(Q){switch($){case 1:case 2:case 3:var Y=3;break;default:Y=$}var X=$;$=Y;try{return Q()}finally{$=X}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=G,e.unstable_runWithPriority=function(Q,Y){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var X=$;$=Q;try{return Y()}finally{$=X}},e.unstable_scheduleCallback=function(Q,Y,X){var oe=e.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?oe+X:oe):X=oe,Q){case 1:var se=-1;break;case 2:se=250;break;case 5:se=1073741823;break;case 4:se=1e4;break;default:se=5e3}return se=X+se,Q={id:N++,callback:Y,priorityLevel:Q,startTime:X,expirationTime:se,sortIndex:-1},X>oe?(Q.sortIndex=X,b(D,Q),S(j)===null&&Q===S(D)&&(ne?o():ne=!0,n(H,X-oe))):(Q.sortIndex=se,b(j,Q),W||q||(W=!0,t(ee))),Q},e.unstable_wrapCallback=function(Q){var Y=$;return function(){var X=$;$=Y;try{return Q.apply(this,arguments)}finally{$=X}}}})(scheduler_production_min)),scheduler_production_min}var hasRequiredScheduler;function requireScheduler(){return hasRequiredScheduler||(hasRequiredScheduler=1,scheduler.exports=requireScheduler_production_min()),scheduler.exports}var hasRequiredReactDom_production_min;function requireReactDom_production_min(){if(hasRequiredReactDom_production_min)return reactDom_production_min;hasRequiredReactDom_production_min=1;var e=requireReact(),t=requireObjectAssign(),n=requireScheduler();function o(m){for(var A="https://reactjs.org/docs/error-decoder.html?invariant="+m,T=1;T<arguments.length;T++)A+="&args[]="+encodeURIComponent(arguments[T]);return"Minified React error #"+m+"; visit "+A+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!e)throw Error(o(227));var a=new Set,s={};function u(m,A){l(m,A),l(m+"Capture",A)}function l(m,A){for(s[m]=A,m=0;m<A.length;m++)a.add(A[m])}var f=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=/^[: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]*$/,p=Object.prototype.hasOwnProperty,h={},y={};function v(m){return p.call(y,m)?!0:p.call(h,m)?!1:d.test(m)?y[m]=!0:(h[m]=!0,!1)}function E(m,A,T,U){if(T!==null&&T.type===0)return!1;switch(typeof A){case"function":case"symbol":return!0;case"boolean":return U?!1:T!==null?!T.acceptsBooleans:(m=m.toLowerCase().slice(0,5),m!=="data-"&&m!=="aria-");default:return!1}}function x(m,A,T,U){if(A===null||typeof A>"u"||E(m,A,T,U))return!0;if(U)return!1;if(T!==null)switch(T.type){case 3:return!A;case 4:return A===!1;case 5:return isNaN(A);case 6:return isNaN(A)||1>A}return!1}function I(m,A,T,U,te,ce,Ee){this.acceptsBooleans=A===2||A===3||A===4,this.attributeName=U,this.attributeNamespace=te,this.mustUseProperty=T,this.propertyName=m,this.type=A,this.sanitizeURL=ce,this.removeEmptyString=Ee}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(m){C[m]=new I(m,0,!1,m,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(m){var A=m[0];C[A]=new I(A,1,!1,m[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(m){C[m]=new I(m,2,!1,m.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(m){C[m]=new I(m,2,!1,m,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(m){C[m]=new I(m,3,!1,m.toLowerCase(),nu