@signageos/front-display 14.16.3 → 14.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/webWorker.js CHANGED
@@ -1,4 +1,4 @@
1
- function _assert_this_initialized(self1){if(self1===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return self1}function _class_call_check(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}function _create_class(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor}function _define_property(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj}function _get_prototype_of(o){_get_prototype_of=Object.setPrototypeOf?Object.getPrototypeOf:function getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)};return _get_prototype_of(o)}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function")}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_set_prototype_of(subClass,superClass)}function _possible_constructor_return(self1,call){if(call&&(_type_of(call)==="object"||typeof call==="function")){return call}return _assert_this_initialized(self1)}function _set_prototype_of(o,p){_set_prototype_of=Object.setPrototypeOf||function setPrototypeOf(o,p){o.__proto__=p;return o};return _set_prototype_of(o,p)}function _type_of(obj){"@swc/helpers - typeof";return obj&&typeof Symbol!=="undefined"&&obj.constructor===Symbol?"symbol":typeof obj}function _is_native_reflect_construct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(e){return false}}function _create_super(Derived){var hasNativeReflectConstruct=_is_native_reflect_construct();return function _createSuperInternal(){var Super=_get_prototype_of(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_get_prototype_of(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else{result=Super.apply(this,arguments)}return _possible_constructor_return(this,result)}}function _ts_generator(thisArg,body){var f,y,t,g,_={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]};return g={next:verb(0),"throw":verb(1),"return":verb(2)},typeof Symbol==="function"&&(g[Symbol.iterator]=function(){return this}),g;function verb(n){return function(v){return step([n,v])}}function step(op){if(f)throw new TypeError("Generator is already executing.");while(_)try{if(f=1,y&&(t=op[0]&2?y["return"]:op[0]?y["throw"]||((t=y["return"])&&t.call(y),0):y.next)&&!(t=t.call(y,op[1])).done)return t;if(y=0,t)op=[op[0]&2,t.value];switch(op[0]){case 0:case 1:t=op;break;case 4:_.label++;return{value:op[1],done:false};case 5:_.label++;y=op[1];op=[0];continue;case 7:op=_.ops.pop();_.trys.pop();continue;default:if(!(t=_.trys,t=t.length>0&&t[t.length-1])&&(op[0]===6||op[0]===2)){_=0;continue}if(op[0]===3&&(!t||op[1]>t[0]&&op[1]<t[3])){_.label=op[1];break}if(op[0]===6&&_.label<t[1]){_.label=t[1];t=op;break}if(t&&_.label<t[2]){_.label=t[2];_.ops.push(op);break}if(t[2])_.ops.pop();_.trys.pop();continue}op=body.call(thisArg,_)}catch(e){op=[6,e];y=0}finally{f=t=0}if(op[0]&5)throw op[1];return{value:op[0]?op[1]:void 0,done:true}}}(function(){var Yt=function Yt(e,r){if(!(e.definitions===null||e.definitions.length===0)){if(e.triggersPausedTimestamp!==null)return;if(e.currentDefinitionIndex===null)return{type:pr};if(e.startTimestamp===null)throw new Error("Unexpected state - start timestamp is null");{var t=e.definitions[e.currentDefinitionIndex];if(jt(t,e.startTimestamp,e.lastInteractionTimestamp,r()))return{type:pr}}}};var jt=function jt(e,r,t,i){switch(b[e.finishEvent.type]){case b.DURATION:return r+sr(e)<=i;case b.IDLE_TIMEOUT:return t!==null&&t>r?t+sr(e)<=i:r+sr(e)<=i;case b.SCREEN_TAP:return t!==null&&t<=i;default:throw new Error("Invalid timing finish event type: "+e.finishEvent.type)}};var sr=function sr(e){switch(b[e.finishEvent.type]){case b.DURATION:return e.finishEvent.data!==null?parseInt(e.finishEvent.data):6e4;case b.IDLE_TIMEOUT:return e.finishEvent.data!==null?parseInt(e.finishEvent.data):3e4;case b.SCREEN_TAP:throw new Error("Unsupported event data for type: "+e.finishEvent.type);default:throw new Error("Unrecognized type of finishEvent: "+e.finishEvent.type)}};var Jr=function Jr(e){var r=new zr(function(){return new Date().valueOf()},e);return{start:function(){return r.run()},onMessage:function(t){return r.setModel(t)}}};var tt=Object.create;var K=Object.defineProperty,et=Object.defineProperties,it=Object.getOwnPropertyDescriptor,nt=Object.getOwnPropertyDescriptors,ot=Object.getOwnPropertyNames,cr=Object.getOwnPropertySymbols,ut=Object.getPrototypeOf,hr=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable;var h=Math.pow,J=function(e,r,t){return r in e?K(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t},yr=function(e,r){for(var t in r||(r={}))hr.call(r,t)&&J(e,t,r[t]);var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;if(cr)try{for(var _iterator=cr(r)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var t=_step.value;pt.call(r,t)&&J(e,t,r[t])}}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return e},wr=function(e,r){return et(e,nt(r))};var B=function(e,r){return function(){return e&&(r=e(e=0)),r}};var H=function(e,r){return function(){return r||e((r={exports:{}}).exports,r),r.exports}};var ft=function(e,r,t,i){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;if(r&&typeof r=="object"||typeof r=="function")try{var _loop=function(){var n=_step.value;!hr.call(e,n)&&n!==t&&K(e,n,{get:function(){return r[n]},enumerable:!(i=it(r,n))||i.enumerable})};for(var _iterator=ot(r)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true)_loop()}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return e};var xr=function(e,r,t){return t=e!=null?tt(ut(e)):{},ft(r||!e||!e.__esModule?K(t,"default",{value:e,enumerable:!0}):t,e)};var dr=function(e,r,t){return J(e,(typeof r==="undefined"?"undefined":_type_of(r))!="symbol"?r+"":r,t)};var Y=function(e,r,t){return new Promise(function(i,n){var o=function(s){try{f(t.next(s))}catch(c){n(c)}},u=function(s){try{f(t.throw(s))}catch(c){n(c)}},f=function(s){return s.done?i(s.value):Promise.resolve(s.value).then(o,u)};f((t=t.apply(e,r)).next())})};var y=B(function(){});var w=B(function(){});var x=B(function(){typeof Blob.prototype.arrayBuffer!="function"&&(Blob.prototype.arrayBuffer=function(){var _this=this;return new Promise(function(e,r){var t=new FileReader;t.onloadend=function(){return e(t.result)},t.onerror=r,t.readAsArrayBuffer(_this)})})});var A,d=B(function(){A=typeof globalThis!="undefined"||typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof self!="undefined"?self:new Function("return this")()});var Er=H(function(j){"use strict";var gr=function gr(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var i=t===r?0:4-t%4;return[t,i]};var lt=function lt(e){var r=gr(e),t=r[0],i=r[1];return(t+i)*3/4-i};var at=function at(e,r,t){return(r+t)*3/4-t};var ct=function ct(e){var r,t=gr(e),i=t[0],n=t[1],o=new st(at(e,i,n)),u=0,f=n>0?i-4:i,s;for(s=0;s<f;s+=4)r=I[e.charCodeAt(s)]<<18|I[e.charCodeAt(s+1)]<<12|I[e.charCodeAt(s+2)]<<6|I[e.charCodeAt(s+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return n===2&&(r=I[e.charCodeAt(s)]<<2|I[e.charCodeAt(s+1)]>>4,o[u++]=r&255),n===1&&(r=I[e.charCodeAt(s)]<<10|I[e.charCodeAt(s+1)]<<4|I[e.charCodeAt(s+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o};var ht=function ht(e){return U[e>>18&63]+U[e>>12&63]+U[e>>6&63]+U[e&63]};var yt=function yt(e,r,t){for(var i,n=[],o=r;o<t;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),n.push(ht(i));return n.join("")};var wt=function wt(e){for(var r,t=e.length,i=t%3,n=[],o=16383,u=0,f=t-i;u<f;u+=o)n.push(yt(e,u,u+o>f?f:u+o));return i===1?(r=e[t-1],n.push(U[r>>2]+U[r<<4&63]+"==")):i===2&&(r=(e[t-2]<<8)+e[t-1],n.push(U[r>>10]+U[r>>4&63]+U[r<<2&63]+"=")),n.join("")};y();w();x();d();m();j.byteLength=lt;j.toByteArray=ct;j.fromByteArray=wt;var U=[],I=[],st=typeof Uint8Array!="undefined"?Uint8Array:Array,Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(D=0,mr=Z.length;D<mr;++D)U[D]=Z[D],I[Z.charCodeAt(D)]=D;var D,mr;I[45]=62;I[95]=63});var Ir=H(function(Q){y();w();x();d();m();Q.read=function(e,r,t,i,n){var o,u,f=n*8-i-1,s=(1<<f)-1,c=s>>1,a=-7,l=t?n-1:0,P=t?-1:1,T=e[r+l];for(l+=P,o=T&(1<<-a)-1,T>>=-a,a+=f;a>0;o=o*256+e[r+l],l+=P,a-=8);for(u=o&(1<<-a)-1,o>>=-a,a+=i;a>0;u=u*256+e[r+l],l+=P,a-=8);if(o===0)o=1-c;else{if(o===s)return u?NaN:(T?-1:1)*(1/0);u=u+Math.pow(2,i),o=o-c}return(T?-1:1)*u*Math.pow(2,o-i)};Q.write=function(e,r,t,i,n,o){var u,f,s,c=o*8-n-1,a=(1<<c)-1,l=a>>1,P=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=i?0:o-1,X=i?1:-1,rt=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(f=isNaN(r)?1:0,u=a):(u=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-u))<1&&(u--,s*=2),u+l>=1?r+=P/s:r+=P*Math.pow(2,1-l),r*s>=2&&(u++,s/=2),u+l>=a?(f=0,u=a):u+l>=1?(f=(r*s-1)*Math.pow(2,n),u=u+l):(f=r*Math.pow(2,l-1)*Math.pow(2,n),u=0));n>=8;e[t+T]=f&255,T+=X,f/=256,n-=8);for(u=u<<n|f,c+=n;c>0;e[t+T]=u&255,T+=X,u/=256,c-=8);e[t+T-X]|=rt*128}});var Or=H(function(W){"use strict";var xt=function xt(){try{var e=new Uint8Array(1),r={foo:function foo(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(e){return!1}};var M=function M(e){if(e>q)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,p.prototype),r};var p=function p(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ir(e)}return Ur(e,r,t)};var Ur=function Ur(e,r,t){if(typeof e=="string")return mt(e,r);if(ArrayBuffer.isView(e))return gt(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+(typeof e==="undefined"?"undefined":_type_of(e)));if(N(e,ArrayBuffer)||e&&N(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(N(e,SharedArrayBuffer)||e&&N(e.buffer,SharedArrayBuffer)))return tr(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return p.from(i,r,t);var n=Et(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return p.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+(typeof e==="undefined"?"undefined":_type_of(e)))};var Sr=function Sr(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')};var dt=function dt(e,r,t){return Sr(e),e<=0?M(e):r!==void 0?typeof t=="string"?M(e).fill(r,t):M(e).fill(r):M(e)};var ir=function ir(e){return Sr(e),M(e<0?0:nr(e)|0)};var mt=function mt(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!p.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=Cr(e,r)|0,i=M(t),n=i.write(e,r);return n!==t&&(i=i.slice(0,n)),i};var rr=function rr(e){var r=e.length<0?0:nr(e.length)|0,t=M(r);for(var i=0;i<r;i+=1)t[i]=e[i]&255;return t};var gt=function gt(e){if(N(e,Uint8Array)){var r=new Uint8Array(e);return tr(r.buffer,r.byteOffset,r.byteLength)}return rr(e)};var tr=function tr(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var i;return r===void 0&&t===void 0?i=new Uint8Array(e):t===void 0?i=new Uint8Array(e,r):i=new Uint8Array(e,r,t),Object.setPrototypeOf(i,p.prototype),i};var Et=function Et(e){if(p.isBuffer(e)){var r=nr(e.length)|0,t=M(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||ur(e.length)?M(0):rr(e);if(e.type==="Buffer"&&Array.isArray(e.data))return rr(e.data)};var nr=function nr(e){if(e>=q)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+q.toString(16)+" bytes");return e|0};var It=function It(e){return+e!=e&&(e=0),p.alloc(+e)};var Cr=function Cr(e,r){if(p.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||N(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+(typeof e==="undefined"?"undefined":_type_of(e)));var t=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&t===0)return 0;var n=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return er(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return kr(e).length;default:if(n)return i?-1:er(e).length;r=(""+r).toLowerCase(),n=!0}};var Bt=function Bt(e,r,t){var i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return bt(this,r,t);case"utf8":case"utf-8":return Nr(this,r,t);case"ascii":return Nt(this,r,t);case"latin1":case"binary":return Mt(this,r,t);case"base64":return Ct(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Lt(this,r,t);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}};var _=function _(e,r,t){var i=e[r];e[r]=e[t],e[t]=i};var Rr=function Rr(e,r,t,i,n){if(e.length===0)return-1;if(typeof t=="string"?(i=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,ur(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=p.from(r,i)),p.isBuffer(r))return r.length===0?-1:Ar(e,r,t,i,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):Ar(e,[r],t,i,n);throw new TypeError("val must be string, number or Buffer")};var Ar=function Ar(e,r,t,i,n){var o=1,u=e.length,f=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,u/=2,f/=2,t/=2}function s(a,l){return o===1?a[l]:a.readUInt16BE(l*o)}var c;if(n){var a=-1;for(c=t;c<u;c++)if(s(e,c)===s(r,a===-1?0:c-a)){if(a===-1&&(a=c),c-a+1===f)return a*o}else a!==-1&&(c-=c-a),a=-1}else for(t+f>u&&(t=u-f),c=t;c>=0;c--){var a1=!0;for(var l=0;l<f;l++)if(s(e,c+l)!==s(r,l)){a1=!1;break}if(a1)return c}return-1};var At=function At(e,r,t,i){t=Number(t)||0;var n=e.length-t;i?(i=Number(i),i>n&&(i=n)):i=n;var o=r.length;i>o/2&&(i=o/2);var u;for(u=0;u<i;++u){var f=parseInt(r.substr(u*2,2),16);if(ur(f))return u;e[t+u]=f}return u};var Ft=function Ft(e,r,t,i){return V(er(r,e.length-t),e,t,i)};var Tt=function Tt(e,r,t,i){return V(kt(r),e,t,i)};var Ut=function Ut(e,r,t,i){return V(kr(r),e,t,i)};var St=function St(e,r,t,i){return V(Ot(r,e.length-t),e,t,i)};var Ct=function Ct(e,r,t){return r===0&&t===e.length?v.fromByteArray(e):v.fromByteArray(e.slice(r,t))};var Nr=function Nr(e,r,t){t=Math.min(e.length,t);var i=[],n=r;for(;n<t;){var o=e[n],u=null,f=o>239?4:o>223?3:o>191?2:1;if(n+f<=t){var s=void 0,c=void 0,a=void 0,l=void 0;switch(f){case 1:o<128&&(u=o);break;case 2:s=e[n+1],(s&192)===128&&(l=(o&31)<<6|s&63,l>127&&(u=l));break;case 3:s=e[n+1],c=e[n+2],(s&192)===128&&(c&192)===128&&(l=(o&15)<<12|(s&63)<<6|c&63,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:s=e[n+1],c=e[n+2],a=e[n+3],(s&192)===128&&(c&192)===128&&(a&192)===128&&(l=(o&15)<<18|(s&63)<<12|(c&63)<<6|a&63,l>65535&&l<1114112&&(u=l))}}u===null?(u=65533,f=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|u&1023),i.push(u),n+=f}return Rt(i)};var Rt=function Rt(e){var r=e.length;if(r<=Fr)return String.fromCharCode.apply(String,e);var t="",i=0;for(;i<r;)t+=String.fromCharCode.apply(String,e.slice(i,i+=Fr));return t};var Nt=function Nt(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]&127);return i};var Mt=function Mt(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]);return i};var bt=function bt(e,r,t){var i=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>i)&&(t=i);var n="";for(var o=r;o<t;++o)n+=$t[e[o]];return n};var Lt=function Lt(e,r,t){var i=e.slice(r,t),n="";for(var o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+i[o+1]*256);return n};var g=function g(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")};var E=function E(e,r,t,i,n,o){if(!p.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<o)throw new RangeError('"value" argument is out of bounds');if(t+i>e.length)throw new RangeError("Index out of range")};var Mr=function Mr(e,r,t,i,n){Pr(r,i,n,e,t,7);var o=Number(r&BigInt(4294967295));e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o;var u=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=u,u=u>>8,e[t++]=u,u=u>>8,e[t++]=u,u=u>>8,e[t++]=u,t};var br=function br(e,r,t,i,n){Pr(r,i,n,e,t,7);var o=Number(r&BigInt(4294967295));e[t+7]=o,o=o>>8,e[t+6]=o,o=o>>8,e[t+5]=o,o=o>>8,e[t+4]=o;var u=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=u,u=u>>8,e[t+2]=u,u=u>>8,e[t+1]=u,u=u>>8,e[t]=u,t+8};var Lr=function Lr(e,r,t,i,n,o){if(t+i>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")};var Dr=function Dr(e,r,t,i,n){return r=+r,t=t>>>0,n||Lr(e,r,t,4,34028234663852886e22,-34028234663852886e22),O.write(e,r,t,i,23,4),t+4};var _r=function _r(e,r,t,i,n){return r=+r,t=t>>>0,n||Lr(e,r,t,8,17976931348623157e292,-17976931348623157e292),O.write(e,r,t,i,52,8),t+8};var or=function or(e,r,t){k[e]=function(t){_inherits(_class,t);var _super=_create_super(_class);function _class(){_class_call_check(this,_class);var _this;_this=_super.call(this),Object.defineProperty(_assert_this_initialized(_this),"message",{value:r.apply(_assert_this_initialized(_this),arguments),writable:!0,configurable:!0}),_this.name="".concat(_this.name," [").concat(e,"]"),_this.stack,delete _this.name;return _possible_constructor_return(_this)}_create_class(_class,[{key:"code",get:function get(){return e},set:function set(n){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:n,writable:!0})}},{key:"toString",value:function toString(){return"".concat(this.name," [").concat(e,"]: ").concat(this.message)}}]);return _class}(t)};var Tr=function Tr(e){var r="",t=e.length,i=e[0]==="-"?1:0;for(;t>=i+4;t-=3)r="_".concat(e.slice(t-3,t)).concat(r);return"".concat(e.slice(0,t)).concat(r)};var Dt=function Dt(e,r,t){$(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&G(r,e.length-(t+1))};var Pr=function Pr(e,r,t,i,n,o){if(e>t||e<r){var u=(typeof r==="undefined"?"undefined":_type_of(r))=="bigint"?"n":"",f;throw o>3?r===0||r===BigInt(0)?f=">= 0".concat(u," and < 2").concat(u," ** ").concat((o+1)*8).concat(u):f=">= -(2".concat(u," ** ").concat((o+1)*8-1).concat(u,") and < 2 ** ").concat((o+1)*8-1).concat(u):f=">= ".concat(r).concat(u," and <= ").concat(t).concat(u),new k.ERR_OUT_OF_RANGE("value",f,e)}Dt(i,n,o)};var $=function $(e,r){if(typeof e!="number")throw new k.ERR_INVALID_ARG_TYPE(r,"number",e)};var G=function G(e,r,t){throw Math.floor(e)!==e?($(e,t),new k.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new k.ERR_BUFFER_OUT_OF_BOUNDS:new k.ERR_OUT_OF_RANGE(t||"offset",">= ".concat(t?1:0," and <= ").concat(r),e)};var Pt=function Pt(e){if(e=e.split("=")[0],e=e.trim().replace(_t,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e};var er=function er(e,r){r=r||1/0;var t,i=e.length,n=null,o=[];for(var u=0;u<i;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===i){(r-=3)>-1&&o.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&o.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o};var kt=function kt(e){var r=[];for(var t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r};var Ot=function Ot(e,r){var t,i,n,o=[];for(var u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),i=t>>8,n=t%256,o.push(n),o.push(i);return o};var kr=function kr(e){return v.toByteArray(Pt(e))};var V=function V(e,r,t,i){var n;for(n=0;n<i&&!(n+t>=r.length||n>=e.length);++n)r[n+t]=e[n];return n};var N=function N(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name};var ur=function ur(e){return e!==e};var L=function L(e){return typeof BigInt=="undefined"?Wt:e};var Wt=function Wt(){throw new Error("BigInt not supported")};y();w();x();d();m();var v=Er(),O=Ir(),Br=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;W.Buffer=p;W.SlowBuffer=It;W.INSPECT_MAX_BYTES=50;var q=2147483647;W.kMaxLength=q;p.TYPED_ARRAY_SUPPORT=xt();!p.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&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(p.prototype,"parent",{enumerable:!0,get:function get(){if(p.isBuffer(this))return this.buffer}});Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function get(){if(p.isBuffer(this))return this.byteOffset}});p.poolSize=8192;p.from=function(e,r,t){return Ur(e,r,t)};Object.setPrototypeOf(p.prototype,Uint8Array.prototype);Object.setPrototypeOf(p,Uint8Array);p.alloc=function(e,r,t){return dt(e,r,t)};p.allocUnsafe=function(e){return ir(e)};p.allocUnsafeSlow=function(e){return ir(e)};p.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==p.prototype};p.compare=function(r,t){if(N(r,Uint8Array)&&(r=p.from(r,r.offset,r.byteLength)),N(t,Uint8Array)&&(t=p.from(t,t.offset,t.byteLength)),!p.isBuffer(r)||!p.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;var i=r.length,n=t.length;for(var o=0,u=Math.min(i,n);o<u;++o)if(r[o]!==t[o]){i=r[o],n=t[o];break}return i<n?-1:n<i?1:0};p.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}};p.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return p.alloc(0);var i;if(t===void 0)for(t=0,i=0;i<r.length;++i)t+=r[i].length;var n=p.allocUnsafe(t),o=0;for(i=0;i<r.length;++i){var u=r[i];if(N(u,Uint8Array))o+u.length>n.length?(p.isBuffer(u)||(u=p.from(u)),u.copy(n,o)):Uint8Array.prototype.set.call(n,u,o);else if(p.isBuffer(u))u.copy(n,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return n};p.byteLength=Cr;p.prototype._isBuffer=!0;p.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)_(this,t,t+1);return this};p.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)_(this,t,t+3),_(this,t+1,t+2);return this};p.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)_(this,t,t+7),_(this,t+1,t+6),_(this,t+2,t+5),_(this,t+3,t+4);return this};p.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?Nr(this,0,r):Bt.apply(this,arguments)};p.prototype.toLocaleString=p.prototype.toString;p.prototype.equals=function(r){if(!p.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:p.compare(this,r)===0};p.prototype.inspect=function(){var r="",t=W.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};Br&&(p.prototype[Br]=p.prototype.inspect);p.prototype.compare=function(r,t,i,n,o){if(N(r,Uint8Array)&&(r=p.from(r,r.offset,r.byteLength)),!p.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+(typeof r==="undefined"?"undefined":_type_of(r)));if(t===void 0&&(t=0),i===void 0&&(i=r?r.length:0),n===void 0&&(n=0),o===void 0&&(o=this.length),t<0||i>r.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=i)return 0;if(n>=o)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,n>>>=0,o>>>=0,this===r)return 0;var u=o-n,f=i-t,s=Math.min(u,f),c=this.slice(n,o),a=r.slice(t,i);for(var l=0;l<s;++l)if(c[l]!==a[l]){u=c[l],f=a[l];break}return u<f?-1:f<u?1:0};p.prototype.includes=function(r,t,i){return this.indexOf(r,t,i)!==-1};p.prototype.indexOf=function(r,t,i){return Rr(this,r,t,i,!0)};p.prototype.lastIndexOf=function(r,t,i){return Rr(this,r,t,i,!1)};p.prototype.write=function(r,t,i,n){if(t===void 0)n="utf8",i=this.length,t=0;else if(i===void 0&&typeof t=="string")n=t,i=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-t;if((i===void 0||i>o)&&(i=o),r.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");var u=!1;for(;;)switch(n){case"hex":return At(this,r,t,i);case"utf8":case"utf-8":return Ft(this,r,t,i);case"ascii":case"latin1":case"binary":return Tt(this,r,t,i);case"base64":return Ut(this,r,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return St(this,r,t,i);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),u=!0}};p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Fr=4096;p.prototype.slice=function(r,t){var i=this.length;r=~~r,t=t===void 0?i:~~t,r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<r&&(t=r);var n=this.subarray(r,t);return Object.setPrototypeOf(n,p.prototype),n};p.prototype.readUintLE=p.prototype.readUIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||g(r,t,this.length);var n=this[r],o=1,u=0;for(;++u<t&&(o*=256);)n+=this[r+u]*o;return n};p.prototype.readUintBE=p.prototype.readUIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||g(r,t,this.length);var n=this[r+--t],o=1;for(;t>0&&(o*=256);)n+=this[r+--t]*o;return n};p.prototype.readUint8=p.prototype.readUInt8=function(r,t){return r=r>>>0,t||g(r,1,this.length),this[r]};p.prototype.readUint16LE=p.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||g(r,2,this.length),this[r]|this[r+1]<<8};p.prototype.readUint16BE=p.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||g(r,2,this.length),this[r]<<8|this[r+1]};p.prototype.readUint32LE=p.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||g(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};p.prototype.readUint32BE=p.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||g(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};p.prototype.readBigUInt64LE=L(function(r){r=r>>>0,$(r,"offset");var t=this[r],i=this[r+7];(t===void 0||i===void 0)&&G(r,this.length-8);var n=t+this[++r]*h(2,8)+this[++r]*h(2,16)+this[++r]*h(2,24),o=this[++r]+this[++r]*h(2,8)+this[++r]*h(2,16)+i*h(2,24);return BigInt(n)+(BigInt(o)<<BigInt(32))});p.prototype.readBigUInt64BE=L(function(r){r=r>>>0,$(r,"offset");var t=this[r],i=this[r+7];(t===void 0||i===void 0)&&G(r,this.length-8);var n=t*h(2,24)+this[++r]*h(2,16)+this[++r]*h(2,8)+this[++r],o=this[++r]*h(2,24)+this[++r]*h(2,16)+this[++r]*h(2,8)+i;return(BigInt(n)<<BigInt(32))+BigInt(o)});p.prototype.readIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||g(r,t,this.length);var n=this[r],o=1,u=0;for(;++u<t&&(o*=256);)n+=this[r+u]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*t)),n};p.prototype.readIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||g(r,t,this.length);var n=t,o=1,u=this[r+--n];for(;n>0&&(o*=256);)u+=this[r+--n]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*t)),u};p.prototype.readInt8=function(r,t){return r=r>>>0,t||g(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};p.prototype.readInt16LE=function(r,t){r=r>>>0,t||g(r,2,this.length);var i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i};p.prototype.readInt16BE=function(r,t){r=r>>>0,t||g(r,2,this.length);var i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i};p.prototype.readInt32LE=function(r,t){return r=r>>>0,t||g(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};p.prototype.readInt32BE=function(r,t){return r=r>>>0,t||g(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};p.prototype.readBigInt64LE=L(function(r){r=r>>>0,$(r,"offset");var t=this[r],i=this[r+7];(t===void 0||i===void 0)&&G(r,this.length-8);var n=this[r+4]+this[r+5]*h(2,8)+this[r+6]*h(2,16)+(i<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+this[++r]*h(2,8)+this[++r]*h(2,16)+this[++r]*h(2,24))});p.prototype.readBigInt64BE=L(function(r){r=r>>>0,$(r,"offset");var t=this[r],i=this[r+7];(t===void 0||i===void 0)&&G(r,this.length-8);var n=(t<<24)+this[++r]*h(2,16)+this[++r]*h(2,8)+this[++r];return(BigInt(n)<<BigInt(32))+BigInt(this[++r]*h(2,24)+this[++r]*h(2,16)+this[++r]*h(2,8)+i)});p.prototype.readFloatLE=function(r,t){return r=r>>>0,t||g(r,4,this.length),O.read(this,r,!0,23,4)};p.prototype.readFloatBE=function(r,t){return r=r>>>0,t||g(r,4,this.length),O.read(this,r,!1,23,4)};p.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||g(r,8,this.length),O.read(this,r,!0,52,8)};p.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||g(r,8,this.length),O.read(this,r,!1,52,8)};p.prototype.writeUintLE=p.prototype.writeUIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var f=Math.pow(2,8*i)-1;E(this,r,t,i,f,0)}var o=1,u=0;for(this[t]=r&255;++u<i&&(o*=256);)this[t+u]=r/o&255;return t+i};p.prototype.writeUintBE=p.prototype.writeUIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var f=Math.pow(2,8*i)-1;E(this,r,t,i,f,0)}var o=i-1,u=1;for(this[t+o]=r&255;--o>=0&&(u*=256);)this[t+o]=r/u&255;return t+i};p.prototype.writeUint8=p.prototype.writeUInt8=function(r,t,i){return r=+r,t=t>>>0,i||E(this,r,t,1,255,0),this[t]=r&255,t+1};p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||E(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||E(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||E(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||E(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};p.prototype.writeBigUInt64LE=L(function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Mr(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});p.prototype.writeBigUInt64BE=L(function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return br(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});p.prototype.writeIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var s=Math.pow(2,8*i-1);E(this,r,t,i,s-1,-s)}var o=0,u=1,f=0;for(this[t]=r&255;++o<i&&(u*=256);)r<0&&f===0&&this[t+o-1]!==0&&(f=1),this[t+o]=(r/u>>0)-f&255;return t+i};p.prototype.writeIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var s=Math.pow(2,8*i-1);E(this,r,t,i,s-1,-s)}var o=i-1,u=1,f=0;for(this[t+o]=r&255;--o>=0&&(u*=256);)r<0&&f===0&&this[t+o+1]!==0&&(f=1),this[t+o]=(r/u>>0)-f&255;return t+i};p.prototype.writeInt8=function(r,t,i){return r=+r,t=t>>>0,i||E(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};p.prototype.writeInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||E(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};p.prototype.writeInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||E(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};p.prototype.writeInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||E(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};p.prototype.writeInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||E(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};p.prototype.writeBigInt64LE=L(function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Mr(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});p.prototype.writeBigInt64BE=L(function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return br(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});p.prototype.writeFloatLE=function(r,t,i){return Dr(this,r,t,!0,i)};p.prototype.writeFloatBE=function(r,t,i){return Dr(this,r,t,!1,i)};p.prototype.writeDoubleLE=function(r,t,i){return _r(this,r,t,!0,i)};p.prototype.writeDoubleBE=function(r,t,i){return _r(this,r,t,!1,i)};p.prototype.copy=function(r,t,i,n){if(!p.isBuffer(r))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n<i&&(n=i),n===i||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t<n-i&&(n=r.length-t+i);var o=n-i;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,i,n):Uint8Array.prototype.set.call(r,this.subarray(i,n),t),o};p.prototype.fill=function(r,t,i,n){if(typeof r=="string"){if(typeof t=="string"?(n=t,t=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!p.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(r.length===1){var u=r.charCodeAt(0);(n==="utf8"&&u<128||n==="latin1")&&(r=u)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;t=t>>>0,i=i===void 0?this.length:i>>>0,r||(r=0);var o;if(typeof r=="number")for(o=t;o<i;++o)this[o]=r;else{var u1=p.isBuffer(r)?r:p.from(r,n),f=u1.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<i-t;++o)this[o+t]=u1[o%f]}return this};var k={};or("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError);or("ERR_INVALID_ARG_TYPE",function(e,r){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof r==="undefined"?"undefined":_type_of(r))},TypeError);or("ERR_OUT_OF_RANGE",function(e,r,t){var i='The value of "'.concat(e,'" is out of range.'),n=t;return Number.isInteger(t)&&Math.abs(t)>h(2,32)?n=Tr(String(t)):(typeof t==="undefined"?"undefined":_type_of(t))=="bigint"&&(n=String(t),(t>h(BigInt(2),BigInt(32))||t<-h(BigInt(2),BigInt(32)))&&(n=Tr(n)),n+="n"),i+=" It must be ".concat(r,". Received ").concat(n),i},RangeError);var _t=/[^+/0-9A-Za-z-_]/g;var $t=function(){var e="0123456789abcdef",r=new Array(256);for(var t=0;t<16;++t){var i=t*16;for(var n=0;n<16;++n)r[i+n]=e[t]+e[n]}return r}()});var F,m=B(function(){F=xr(Or())});var $r,Wr,Hr=B(function(){y();w();x();d();m();$r=function(r){return r[r.APPLET_TIMING_CONTROLLER=0]="APPLET_TIMING_CONTROLLER",r}($r||{}),Wr=$r});var pr,Gr=B(function(){y();w();x();d();m();pr="Internal.Timing.ShowNext"});var Yr,b,jr=B(function(){y();w();x();d();m();Yr=function(i){return i[i.DURATION=0]="DURATION",i[i.IDLE_TIMEOUT=1]="IDLE_TIMEOUT",i[i.SCREEN_TAP=2]="SCREEN_TAP",i}(Yr||{}),b=Yr});var qr=H(function(fr){"use strict";var Ht=function Ht(e,r){var t=r===void 0?{}:r,i=t.signal,n=void 0,o=null,u=new Promise(function(f,s){o=s,n=setTimeout(function(){o=null,f()},e)});return u.cancel=function(){n&&(clearTimeout(n),n=void 0,o&&o(new Error("Wait cancelled")),o=null)},i==null||i.addEventListener("abort",function(){return u.cancel()}),u};y();w();x();d();m();Object.defineProperty(fr,"__esModule",{value:!0});fr.default=Ht});var Vr,Gt,lr,zr,Xr=B(function(){y();w();x();d();m();Gr();jr();Vr=xr(qr()),Gt={definitions:null,currentDefinitionIndex:null,startTimestamp:null,lastInteractionTimestamp:null,triggersPausedTimestamp:null,lastPutUpdateActiveAppletBinary:null,lastPutPrepareNextAppletTiming:null,deviceInConnectedMode:null},lr=function(){"use strict";function lr(r,t){_class_call_check(this,lr);this.getCurrentTimestamp=r;this.postMessage=t;dr(this,"model");this.model=Gt}_create_class(lr,[{key:"setModel",value:function setModel(r){this.model=r}},{key:"run",value:function run(){return Y(this,null,function(){var r,r1;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,1,2,4]);r=Yt(this.model,this.getCurrentTimestamp);r&&this.postMessage(r);return[3,4];case 1:r1=_state.sent();return[3,4];case 2:return[4,(0,Vr.default)(100)];case 3:_state.sent();return[7];case 4:return[3,0];case 5:return[2]}})})}}]);return lr}();zr=lr});var Kr=B(function(){y();w();x();d();m();Xr()});var Zr,Qr=B(function(){y();w();x();d();m();Zr=["log","info","warn","error","debug"]});var Vt=H(function(vr){var qt=function qt(e){switch(console=Zr.reduce(function(r,t){return wr(yr({},r),_define_property({},t,function(){for(var _len=arguments.length,i=new Array(_len),_key=0;_key<_len;_key++){i[_key]=arguments[_key]}return ar({name:"console",level:t,args:i})}))},console!=null?console:{}),e){case Wr.APPLET_TIMING_CONTROLLER:return Jr(function(r){ar({name:"message",message:r})});default:throw new Error("Invalid type: "+e)}};y();w();x();d();m();Hr();Kr();Qr();var z,ar=function(e){return postMessage(e)};addEventListener("message",function(e){return Y(vr,null,function(){var _,_$r,r;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,6,,7]);_=e.data.name;switch(_){case"start":return[3,1];case"message":return[3,3]}return[3,4];case 1:z=qt(e.data.type);return[4,z.start(e.data.initData)];case 2:_state.sent();return[3,5];case 3:_$r=e.data.message;if(z)z.onMessage(_$r);else throw new Error("Message received but web worker haven't been initialized yet: "+_$r);return[3,5];case 4:throw new Error("invalid message name: "+e.data.name);case 5:return[3,7];case 6:r=_state.sent();throw ar({name:"error",errorMessage:r.message,errorName:r.name,errorStack:r.stack}),r;case 7:return[2]}})})})});Vt()})();/*! Bundled license information:
1
+ function _assert_this_initialized(self1){if(self1===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return self1}function _class_call_check(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}function _create_class(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor}function _define_property(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj}function _get_prototype_of(o){_get_prototype_of=Object.setPrototypeOf?Object.getPrototypeOf:function getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)};return _get_prototype_of(o)}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function")}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_set_prototype_of(subClass,superClass)}function _possible_constructor_return(self1,call){if(call&&(_type_of(call)==="object"||typeof call==="function")){return call}return _assert_this_initialized(self1)}function _set_prototype_of(o,p){_set_prototype_of=Object.setPrototypeOf||function setPrototypeOf(o,p){o.__proto__=p;return o};return _set_prototype_of(o,p)}function _type_of(obj){"@swc/helpers - typeof";return obj&&typeof Symbol!=="undefined"&&obj.constructor===Symbol?"symbol":typeof obj}function _is_native_reflect_construct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(e){return false}}function _create_super(Derived){var hasNativeReflectConstruct=_is_native_reflect_construct();return function _createSuperInternal(){var Super=_get_prototype_of(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_get_prototype_of(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else{result=Super.apply(this,arguments)}return _possible_constructor_return(this,result)}}function _ts_generator(thisArg,body){var f,y,t,g,_={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]};return g={next:verb(0),"throw":verb(1),"return":verb(2)},typeof Symbol==="function"&&(g[Symbol.iterator]=function(){return this}),g;function verb(n){return function(v){return step([n,v])}}function step(op){if(f)throw new TypeError("Generator is already executing.");while(_)try{if(f=1,y&&(t=op[0]&2?y["return"]:op[0]?y["throw"]||((t=y["return"])&&t.call(y),0):y.next)&&!(t=t.call(y,op[1])).done)return t;if(y=0,t)op=[op[0]&2,t.value];switch(op[0]){case 0:case 1:t=op;break;case 4:_.label++;return{value:op[1],done:false};case 5:_.label++;y=op[1];op=[0];continue;case 7:op=_.ops.pop();_.trys.pop();continue;default:if(!(t=_.trys,t=t.length>0&&t[t.length-1])&&(op[0]===6||op[0]===2)){_=0;continue}if(op[0]===3&&(!t||op[1]>t[0]&&op[1]<t[3])){_.label=op[1];break}if(op[0]===6&&_.label<t[1]){_.label=t[1];t=op;break}if(t&&_.label<t[2]){_.label=t[2];_.ops.push(op);break}if(t[2])_.ops.pop();_.trys.pop();continue}op=body.call(thisArg,_)}catch(e){op=[6,e];y=0}finally{f=t=0}if(op[0]&5)throw op[1];return{value:op[0]?op[1]:void 0,done:true}}}(function(){var Gr=function Gr(e,t){if(!(e.definitions===null||e.definitions.length===0)){if(e.triggersPausedTimestamp!==null)return;if(e.currentDefinitionIndex===null)return{type:ut};if(e.startTimestamp===null)throw new Error("Unexpected state - start timestamp is null");{var r=e.definitions[e.currentDefinitionIndex];if(Yr(r,e.startTimestamp,e.lastInteractionTimestamp,t()))return{type:ut}}}};var Yr=function Yr(e,t,r,i){switch(M[e.finishEvent.type]){case M.DURATION:return t+st(e)<=i;case M.IDLE_TIMEOUT:return r!==null&&r>t?r+st(e)<=i:t+st(e)<=i;case M.SCREEN_TAP:return r!==null&&r<=i;default:throw new Error("Invalid timing finish event type: "+e.finishEvent.type)}};var st=function st(e){switch(M[e.finishEvent.type]){case M.DURATION:return e.finishEvent.data!==null?parseInt(e.finishEvent.data):6e4;case M.IDLE_TIMEOUT:return e.finishEvent.data!==null?parseInt(e.finishEvent.data):3e4;case M.SCREEN_TAP:throw new Error("Unsupported event data for type: "+e.finishEvent.type);default:throw new Error("Unrecognized type of finishEvent: "+e.finishEvent.type)}};var Xt=function Xt(e){var t=new Vt(function(){return new Date().valueOf()},e);return{start:function(){return t.run()},onMessage:function(r){return t.setModel(r)}}};var tr=Object.create;var J=Object.defineProperty,rr=Object.defineProperties,er=Object.getOwnPropertyDescriptor,ir=Object.getOwnPropertyDescriptors,nr=Object.getOwnPropertyNames,ct=Object.getOwnPropertySymbols,or=Object.getPrototypeOf,at=Object.prototype.hasOwnProperty,ur=Object.prototype.propertyIsEnumerable;var h=Math.pow,X=function(e,t,r){return t in e?J(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},ht=function(e,t){for(var r in t||(t={}))at.call(t,r)&&X(e,r,t[r]);var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;if(ct)try{for(var _iterator=ct(t)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var r=_step.value;ur.call(t,r)&&X(e,r,t[r])}}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return e},yt=function(e,t){return rr(e,ir(t))};var F=function(e,t){return function(){return e&&(t=e(e=0)),t}};var W=function(e,t){return function(){return t||e((t={exports:{}}).exports,t),t.exports}};var pr=function(e,t,r,i){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;if(t&&typeof t=="object"||typeof t=="function")try{var _loop=function(){var n=_step.value;!at.call(e,n)&&n!==r&&J(e,n,{get:function(){return t[n]},enumerable:!(i=er(t,n))||i.enumerable})};for(var _iterator=nr(t)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true)_loop()}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return e};var wt=function(e,t,r){return r=e!=null?tr(or(e)):{},pr(t||!e||!e.__esModule?J(r,"default",{value:e,enumerable:!0}):r,e)};var xt=function(e,t,r){return X(e,(typeof t==="undefined"?"undefined":_type_of(t))!="symbol"?t+"":t,r)};var G=function(e,t,r){return new Promise(function(i,n){var o=function(f){try{s(r.next(f))}catch(a){n(a)}},u=function(f){try{s(r.throw(f))}catch(a){n(a)}},s=function(f){return f.done?i(f.value):Promise.resolve(f.value).then(o,u)};s((r=r.apply(e,t)).next())})};var y=F(function(){});var w=F(function(){});var I,x=F(function(){I=typeof globalThis!="undefined"||typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof self!="undefined"?self:new Function("return this")()});var gt=W(function(Y){"use strict";var dt=function dt(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var i=r===t?0:4-r%4;return[r,i]};var fr=function fr(e){var t=dt(e),r=t[0],i=t[1];return(r+i)*3/4-i};var lr=function lr(e,t,r){return(t+r)*3/4-r};var cr=function cr(e){var t,r=dt(e),i=r[0],n=r[1],o=new sr(lr(e,i,n)),u=0,s=n>0?i-4:i,f;for(f=0;f<s;f+=4)t=E[e.charCodeAt(f)]<<18|E[e.charCodeAt(f+1)]<<12|E[e.charCodeAt(f+2)]<<6|E[e.charCodeAt(f+3)],o[u++]=t>>16&255,o[u++]=t>>8&255,o[u++]=t&255;return n===2&&(t=E[e.charCodeAt(f)]<<2|E[e.charCodeAt(f+1)]>>4,o[u++]=t&255),n===1&&(t=E[e.charCodeAt(f)]<<10|E[e.charCodeAt(f+1)]<<4|E[e.charCodeAt(f+2)]>>2,o[u++]=t>>8&255,o[u++]=t&255),o};var ar=function ar(e){return T[e>>18&63]+T[e>>12&63]+T[e>>6&63]+T[e&63]};var hr=function hr(e,t,r){for(var i,n=[],o=t;o<r;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),n.push(ar(i));return n.join("")};var yr=function yr(e){for(var t,r=e.length,i=r%3,n=[],o=16383,u=0,s=r-i;u<s;u+=o)n.push(hr(e,u,u+o>s?s:u+o));return i===1?(t=e[r-1],n.push(T[t>>2]+T[t<<4&63]+"==")):i===2&&(t=(e[r-2]<<8)+e[r-1],n.push(T[t>>10]+T[t>>4&63]+T[t<<2&63]+"=")),n.join("")};y();w();x();m();Y.byteLength=fr;Y.toByteArray=cr;Y.fromByteArray=yr;var T=[],E=[],sr=typeof Uint8Array!="undefined"?Uint8Array:Array,K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(L=0,mt=K.length;L<mt;++L)T[L]=K[L],E[K.charCodeAt(L)]=L;var L,mt;E[45]=62;E[95]=63});var Et=W(function(Z){y();w();x();m();Z.read=function(e,t,r,i,n){var o,u,s=n*8-i-1,f=(1<<s)-1,a=f>>1,c=-7,l=r?n-1:0,_=r?-1:1,A=e[t+l];for(l+=_,o=A&(1<<-c)-1,A>>=-c,c+=s;c>0;o=o*256+e[t+l],l+=_,c-=8);for(u=o&(1<<-c)-1,o>>=-c,c+=i;c>0;u=u*256+e[t+l],l+=_,c-=8);if(o===0)o=1-a;else{if(o===f)return u?NaN:(A?-1:1)*(1/0);u=u+Math.pow(2,i),o=o-a}return(A?-1:1)*u*Math.pow(2,o-i)};Z.write=function(e,t,r,i,n,o){var u,s,f,a=o*8-n-1,c=(1<<a)-1,l=c>>1,_=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=i?0:o-1,z=i?1:-1,vt=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,u=c):(u=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+l>=1?t+=_/f:t+=_*Math.pow(2,1-l),t*f>=2&&(u++,f/=2),u+l>=c?(s=0,u=c):u+l>=1?(s=(t*f-1)*Math.pow(2,n),u=u+l):(s=t*Math.pow(2,l-1)*Math.pow(2,n),u=0));n>=8;e[r+A]=s&255,A+=z,s/=256,n-=8);for(u=u<<n|s,a+=n;a>0;e[r+A]=u&255,A+=z,u/=256,a-=8);e[r+A-z]|=vt*128}});var kt=W(function($){"use strict";var wr=function wr(){try{var e=new Uint8Array(1),t={foo:function foo(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(e){return!1}};var N=function N(e){if(e>j)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,p.prototype),t};var p=function p(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return et(e)}return Tt(e,t,r)};var Tt=function Tt(e,t,r){if(typeof e=="string")return mr(e,t);if(ArrayBuffer.isView(e))return dr(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+(typeof e==="undefined"?"undefined":_type_of(e)));if(R(e,ArrayBuffer)||e&&R(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(R(e,SharedArrayBuffer)||e&&R(e.buffer,SharedArrayBuffer)))return tt(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return p.from(i,t,r);var n=gr(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return p.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+(typeof e==="undefined"?"undefined":_type_of(e)))};var Ut=function Ut(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')};var xr=function xr(e,t,r){return Ut(e),e<=0?N(e):t!==void 0?typeof r=="string"?N(e).fill(t,r):N(e).fill(t):N(e)};var et=function et(e){return Ut(e),N(e<0?0:it(e)|0)};var mr=function mr(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!p.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=St(e,t)|0,i=N(r),n=i.write(e,t);return n!==r&&(i=i.slice(0,n)),i};var v=function v(e){var t=e.length<0?0:it(e.length)|0,r=N(t);for(var i=0;i<t;i+=1)r[i]=e[i]&255;return r};var dr=function dr(e){if(R(e,Uint8Array)){var t=new Uint8Array(e);return tt(t.buffer,t.byteOffset,t.byteLength)}return v(e)};var tt=function tt(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var i;return t===void 0&&r===void 0?i=new Uint8Array(e):r===void 0?i=new Uint8Array(e,t):i=new Uint8Array(e,t,r),Object.setPrototypeOf(i,p.prototype),i};var gr=function gr(e){if(p.isBuffer(e)){var t=it(e.length)|0,r=N(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||ot(e.length)?N(0):v(e);if(e.type==="Buffer"&&Array.isArray(e.data))return v(e.data)};var it=function it(e){if(e>=j)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+j.toString(16)+" bytes");return e|0};var Er=function Er(e){return+e!=e&&(e=0),p.alloc(+e)};var St=function St(e,t){if(p.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||R(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+(typeof e==="undefined"?"undefined":_type_of(e)));var r=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&r===0)return 0;var n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return rt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Pt(e).length;default:if(n)return i?-1:rt(e).length;t=(""+t).toLowerCase(),n=!0}};var Ir=function Ir(e,t,r){var i=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Mr(this,t,r);case"utf8":case"utf-8":return Rt(this,t,r);case"ascii":return Rr(this,t,r);case"latin1":case"binary":return Nr(this,t,r);case"base64":return Sr(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return br(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}};var D=function D(e,t,r){var i=e[t];e[t]=e[r],e[r]=i};var Ct=function Ct(e,t,r,i,n){if(e.length===0)return-1;if(typeof r=="string"?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,ot(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0)if(n)r=0;else return-1;if(typeof t=="string"&&(t=p.from(t,i)),p.isBuffer(t))return t.length===0?-1:Bt(e,t,r,i,n);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Bt(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")};var Bt=function Bt(e,t,r,i,n){var o=1,u=e.length,s=t.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,u/=2,s/=2,r/=2}function f(c,l){return o===1?c[l]:c.readUInt16BE(l*o)}var a;if(n){var c=-1;for(a=r;a<u;a++)if(f(e,a)===f(t,c===-1?0:a-c)){if(c===-1&&(c=a),a-c+1===s)return c*o}else c!==-1&&(a-=a-c),c=-1}else for(r+s>u&&(r=u-s),a=r;a>=0;a--){var c1=!0;for(var l=0;l<s;l++)if(f(e,a+l)!==f(t,l)){c1=!1;break}if(c1)return a}return-1};var Br=function Br(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?(i=Number(i),i>n&&(i=n)):i=n;var o=t.length;i>o/2&&(i=o/2);var u;for(u=0;u<i;++u){var s=parseInt(t.substr(u*2,2),16);if(ot(s))return u;e[r+u]=s}return u};var Ar=function Ar(e,t,r,i){return q(rt(t,e.length-r),e,r,i)};var Fr=function Fr(e,t,r,i){return q(Pr(t),e,r,i)};var Tr=function Tr(e,t,r,i){return q(Pt(t),e,r,i)};var Ur=function Ur(e,t,r,i){return q(kr(t,e.length-r),e,r,i)};var Sr=function Sr(e,t,r){return t===0&&r===e.length?Q.fromByteArray(e):Q.fromByteArray(e.slice(t,r))};var Rt=function Rt(e,t,r){r=Math.min(e.length,r);var i=[],n=t;for(;n<r;){var o=e[n],u=null,s=o>239?4:o>223?3:o>191?2:1;if(n+s<=r){var f=void 0,a=void 0,c=void 0,l=void 0;switch(s){case 1:o<128&&(u=o);break;case 2:f=e[n+1],(f&192)===128&&(l=(o&31)<<6|f&63,l>127&&(u=l));break;case 3:f=e[n+1],a=e[n+2],(f&192)===128&&(a&192)===128&&(l=(o&15)<<12|(f&63)<<6|a&63,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:f=e[n+1],a=e[n+2],c=e[n+3],(f&192)===128&&(a&192)===128&&(c&192)===128&&(l=(o&15)<<18|(f&63)<<12|(a&63)<<6|c&63,l>65535&&l<1114112&&(u=l))}}u===null?(u=65533,s=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|u&1023),i.push(u),n+=s}return Cr(i)};var Cr=function Cr(e){var t=e.length;if(t<=At)return String.fromCharCode.apply(String,e);var r="",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=At));return r};var Rr=function Rr(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]&127);return i};var Nr=function Nr(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i};var Mr=function Mr(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);var n="";for(var o=t;o<r;++o)n+=Or[e[o]];return n};var br=function br(e,t,r){var i=e.slice(t,r),n="";for(var o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+i[o+1]*256);return n};var d=function d(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")};var g=function g(e,t,r,i,n,o){if(!p.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<o)throw new RangeError('"value" argument is out of bounds');if(r+i>e.length)throw new RangeError("Index out of range")};var Nt=function Nt(e,t,r,i,n){_t(t,i,n,e,r,7);var o=Number(t&BigInt(4294967295));e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o;var u=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=u,u=u>>8,e[r++]=u,u=u>>8,e[r++]=u,u=u>>8,e[r++]=u,r};var Mt=function Mt(e,t,r,i,n){_t(t,i,n,e,r,7);var o=Number(t&BigInt(4294967295));e[r+7]=o,o=o>>8,e[r+6]=o,o=o>>8,e[r+5]=o,o=o>>8,e[r+4]=o;var u=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=u,u=u>>8,e[r+2]=u,u=u>>8,e[r+1]=u,u=u>>8,e[r]=u,r+8};var bt=function bt(e,t,r,i,n,o){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")};var Lt=function Lt(e,t,r,i,n){return t=+t,r=r>>>0,n||bt(e,t,r,4,34028234663852886e22,-34028234663852886e22),k.write(e,t,r,i,23,4),r+4};var Dt=function Dt(e,t,r,i,n){return t=+t,r=r>>>0,n||bt(e,t,r,8,17976931348623157e292,-17976931348623157e292),k.write(e,t,r,i,52,8),r+8};var nt=function nt(e,t,r){P[e]=function(r){_inherits(_class,r);var _super=_create_super(_class);function _class(){_class_call_check(this,_class);var _this;_this=_super.call(this),Object.defineProperty(_assert_this_initialized(_this),"message",{value:t.apply(_assert_this_initialized(_this),arguments),writable:!0,configurable:!0}),_this.name="".concat(_this.name," [").concat(e,"]"),_this.stack,delete _this.name;return _possible_constructor_return(_this)}_create_class(_class,[{key:"code",get:function get(){return e},set:function set(n){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:n,writable:!0})}},{key:"toString",value:function toString(){return"".concat(this.name," [").concat(e,"]: ").concat(this.message)}}]);return _class}(r)};var Ft=function Ft(e){var t="",r=e.length,i=e[0]==="-"?1:0;for(;r>=i+4;r-=3)t="_".concat(e.slice(r-3,r)).concat(t);return"".concat(e.slice(0,r)).concat(t)};var Lr=function Lr(e,t,r){O(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&H(t,e.length-(r+1))};var _t=function _t(e,t,r,i,n,o){if(e>r||e<t){var u=(typeof t==="undefined"?"undefined":_type_of(t))=="bigint"?"n":"",s;throw o>3?t===0||t===BigInt(0)?s=">= 0".concat(u," and < 2").concat(u," ** ").concat((o+1)*8).concat(u):s=">= -(2".concat(u," ** ").concat((o+1)*8-1).concat(u,") and < 2 ** ").concat((o+1)*8-1).concat(u):s=">= ".concat(t).concat(u," and <= ").concat(r).concat(u),new P.ERR_OUT_OF_RANGE("value",s,e)}Lr(i,n,o)};var O=function O(e,t){if(typeof e!="number")throw new P.ERR_INVALID_ARG_TYPE(t,"number",e)};var H=function H(e,t,r){throw Math.floor(e)!==e?(O(e,r),new P.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new P.ERR_BUFFER_OUT_OF_BOUNDS:new P.ERR_OUT_OF_RANGE(r||"offset",">= ".concat(r?1:0," and <= ").concat(t),e)};var _r=function _r(e){if(e=e.split("=")[0],e=e.trim().replace(Dr,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e};var rt=function rt(e,t){t=t||1/0;var r,i=e.length,n=null,o=[];for(var u=0;u<i;++u){if(r=e.charCodeAt(u),r>55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(u+1===i){(t-=3)>-1&&o.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&o.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o};var Pr=function Pr(e){var t=[];for(var r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t};var kr=function kr(e,t){var r,i,n,o=[];for(var u=0;u<e.length&&!((t-=2)<0);++u)r=e.charCodeAt(u),i=r>>8,n=r%256,o.push(n),o.push(i);return o};var Pt=function Pt(e){return Q.toByteArray(_r(e))};var q=function q(e,t,r,i){var n;for(n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n};var R=function R(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name};var ot=function ot(e){return e!==e};var b=function b(e){return typeof BigInt=="undefined"?$r:e};var $r=function $r(){throw new Error("BigInt not supported")};y();w();x();m();var Q=gt(),k=Et(),It=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;$.Buffer=p;$.SlowBuffer=Er;$.INSPECT_MAX_BYTES=50;var j=2147483647;$.kMaxLength=j;p.TYPED_ARRAY_SUPPORT=wr();!p.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&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(p.prototype,"parent",{enumerable:!0,get:function get(){if(p.isBuffer(this))return this.buffer}});Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function get(){if(p.isBuffer(this))return this.byteOffset}});p.poolSize=8192;p.from=function(e,t,r){return Tt(e,t,r)};Object.setPrototypeOf(p.prototype,Uint8Array.prototype);Object.setPrototypeOf(p,Uint8Array);p.alloc=function(e,t,r){return xr(e,t,r)};p.allocUnsafe=function(e){return et(e)};p.allocUnsafeSlow=function(e){return et(e)};p.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==p.prototype};p.compare=function(t,r){if(R(t,Uint8Array)&&(t=p.from(t,t.offset,t.byteLength)),R(r,Uint8Array)&&(r=p.from(r,r.offset,r.byteLength)),!p.isBuffer(t)||!p.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;var i=t.length,n=r.length;for(var o=0,u=Math.min(i,n);o<u;++o)if(t[o]!==r[o]){i=t[o],n=r[o];break}return i<n?-1:n<i?1:0};p.isEncoding=function(t){switch(String(t).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}};p.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return p.alloc(0);var i;if(r===void 0)for(r=0,i=0;i<t.length;++i)r+=t[i].length;var n=p.allocUnsafe(r),o=0;for(i=0;i<t.length;++i){var u=t[i];if(R(u,Uint8Array))o+u.length>n.length?(p.isBuffer(u)||(u=p.from(u)),u.copy(n,o)):Uint8Array.prototype.set.call(n,u,o);else if(p.isBuffer(u))u.copy(n,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return n};p.byteLength=St;p.prototype._isBuffer=!0;p.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)D(this,r,r+1);return this};p.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)D(this,r,r+3),D(this,r+1,r+2);return this};p.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)D(this,r,r+7),D(this,r+1,r+6),D(this,r+2,r+5),D(this,r+3,r+4);return this};p.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?Rt(this,0,t):Ir.apply(this,arguments)};p.prototype.toLocaleString=p.prototype.toString;p.prototype.equals=function(t){if(!p.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:p.compare(this,t)===0};p.prototype.inspect=function(){var t="",r=$.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};It&&(p.prototype[It]=p.prototype.inspect);p.prototype.compare=function(t,r,i,n,o){if(R(t,Uint8Array)&&(t=p.from(t,t.offset,t.byteLength)),!p.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+(typeof t==="undefined"?"undefined":_type_of(t)));if(r===void 0&&(r=0),i===void 0&&(i=t?t.length:0),n===void 0&&(n=0),o===void 0&&(o=this.length),r<0||i>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&r>=i)return 0;if(n>=o)return-1;if(r>=i)return 1;if(r>>>=0,i>>>=0,n>>>=0,o>>>=0,this===t)return 0;var u=o-n,s=i-r,f=Math.min(u,s),a=this.slice(n,o),c=t.slice(r,i);for(var l=0;l<f;++l)if(a[l]!==c[l]){u=a[l],s=c[l];break}return u<s?-1:s<u?1:0};p.prototype.includes=function(t,r,i){return this.indexOf(t,r,i)!==-1};p.prototype.indexOf=function(t,r,i){return Ct(this,t,r,i,!0)};p.prototype.lastIndexOf=function(t,r,i){return Ct(this,t,r,i,!1)};p.prototype.write=function(t,r,i,n){if(r===void 0)n="utf8",i=this.length,r=0;else if(i===void 0&&typeof r=="string")n=r,i=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-r;if((i===void 0||i>o)&&(i=o),t.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");var u=!1;for(;;)switch(n){case"hex":return Br(this,t,r,i);case"utf8":case"utf-8":return Ar(this,t,r,i);case"ascii":case"latin1":case"binary":return Fr(this,t,r,i);case"base64":return Tr(this,t,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ur(this,t,r,i);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),u=!0}};p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var At=4096;p.prototype.slice=function(t,r){var i=this.length;t=~~t,r=r===void 0?i:~~r,t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),r<t&&(r=t);var n=this.subarray(t,r);return Object.setPrototypeOf(n,p.prototype),n};p.prototype.readUintLE=p.prototype.readUIntLE=function(t,r,i){t=t>>>0,r=r>>>0,i||d(t,r,this.length);var n=this[t],o=1,u=0;for(;++u<r&&(o*=256);)n+=this[t+u]*o;return n};p.prototype.readUintBE=p.prototype.readUIntBE=function(t,r,i){t=t>>>0,r=r>>>0,i||d(t,r,this.length);var n=this[t+--r],o=1;for(;r>0&&(o*=256);)n+=this[t+--r]*o;return n};p.prototype.readUint8=p.prototype.readUInt8=function(t,r){return t=t>>>0,r||d(t,1,this.length),this[t]};p.prototype.readUint16LE=p.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||d(t,2,this.length),this[t]|this[t+1]<<8};p.prototype.readUint16BE=p.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||d(t,2,this.length),this[t]<<8|this[t+1]};p.prototype.readUint32LE=p.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||d(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};p.prototype.readUint32BE=p.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||d(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};p.prototype.readBigUInt64LE=b(function(t){t=t>>>0,O(t,"offset");var r=this[t],i=this[t+7];(r===void 0||i===void 0)&&H(t,this.length-8);var n=r+this[++t]*h(2,8)+this[++t]*h(2,16)+this[++t]*h(2,24),o=this[++t]+this[++t]*h(2,8)+this[++t]*h(2,16)+i*h(2,24);return BigInt(n)+(BigInt(o)<<BigInt(32))});p.prototype.readBigUInt64BE=b(function(t){t=t>>>0,O(t,"offset");var r=this[t],i=this[t+7];(r===void 0||i===void 0)&&H(t,this.length-8);var n=r*h(2,24)+this[++t]*h(2,16)+this[++t]*h(2,8)+this[++t],o=this[++t]*h(2,24)+this[++t]*h(2,16)+this[++t]*h(2,8)+i;return(BigInt(n)<<BigInt(32))+BigInt(o)});p.prototype.readIntLE=function(t,r,i){t=t>>>0,r=r>>>0,i||d(t,r,this.length);var n=this[t],o=1,u=0;for(;++u<r&&(o*=256);)n+=this[t+u]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*r)),n};p.prototype.readIntBE=function(t,r,i){t=t>>>0,r=r>>>0,i||d(t,r,this.length);var n=r,o=1,u=this[t+--n];for(;n>0&&(o*=256);)u+=this[t+--n]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*r)),u};p.prototype.readInt8=function(t,r){return t=t>>>0,r||d(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};p.prototype.readInt16LE=function(t,r){t=t>>>0,r||d(t,2,this.length);var i=this[t]|this[t+1]<<8;return i&32768?i|4294901760:i};p.prototype.readInt16BE=function(t,r){t=t>>>0,r||d(t,2,this.length);var i=this[t+1]|this[t]<<8;return i&32768?i|4294901760:i};p.prototype.readInt32LE=function(t,r){return t=t>>>0,r||d(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};p.prototype.readInt32BE=function(t,r){return t=t>>>0,r||d(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};p.prototype.readBigInt64LE=b(function(t){t=t>>>0,O(t,"offset");var r=this[t],i=this[t+7];(r===void 0||i===void 0)&&H(t,this.length-8);var n=this[t+4]+this[t+5]*h(2,8)+this[t+6]*h(2,16)+(i<<24);return(BigInt(n)<<BigInt(32))+BigInt(r+this[++t]*h(2,8)+this[++t]*h(2,16)+this[++t]*h(2,24))});p.prototype.readBigInt64BE=b(function(t){t=t>>>0,O(t,"offset");var r=this[t],i=this[t+7];(r===void 0||i===void 0)&&H(t,this.length-8);var n=(r<<24)+this[++t]*h(2,16)+this[++t]*h(2,8)+this[++t];return(BigInt(n)<<BigInt(32))+BigInt(this[++t]*h(2,24)+this[++t]*h(2,16)+this[++t]*h(2,8)+i)});p.prototype.readFloatLE=function(t,r){return t=t>>>0,r||d(t,4,this.length),k.read(this,t,!0,23,4)};p.prototype.readFloatBE=function(t,r){return t=t>>>0,r||d(t,4,this.length),k.read(this,t,!1,23,4)};p.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||d(t,8,this.length),k.read(this,t,!0,52,8)};p.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||d(t,8,this.length),k.read(this,t,!1,52,8)};p.prototype.writeUintLE=p.prototype.writeUIntLE=function(t,r,i,n){if(t=+t,r=r>>>0,i=i>>>0,!n){var s=Math.pow(2,8*i)-1;g(this,t,r,i,s,0)}var o=1,u=0;for(this[r]=t&255;++u<i&&(o*=256);)this[r+u]=t/o&255;return r+i};p.prototype.writeUintBE=p.prototype.writeUIntBE=function(t,r,i,n){if(t=+t,r=r>>>0,i=i>>>0,!n){var s=Math.pow(2,8*i)-1;g(this,t,r,i,s,0)}var o=i-1,u=1;for(this[r+o]=t&255;--o>=0&&(u*=256);)this[r+o]=t/u&255;return r+i};p.prototype.writeUint8=p.prototype.writeUInt8=function(t,r,i){return t=+t,r=r>>>0,i||g(this,t,r,1,255,0),this[r]=t&255,r+1};p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(t,r,i){return t=+t,r=r>>>0,i||g(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(t,r,i){return t=+t,r=r>>>0,i||g(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(t,r,i){return t=+t,r=r>>>0,i||g(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(t,r,i){return t=+t,r=r>>>0,i||g(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};p.prototype.writeBigUInt64LE=b(function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Nt(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});p.prototype.writeBigUInt64BE=b(function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Mt(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});p.prototype.writeIntLE=function(t,r,i,n){if(t=+t,r=r>>>0,!n){var f=Math.pow(2,8*i-1);g(this,t,r,i,f-1,-f)}var o=0,u=1,s=0;for(this[r]=t&255;++o<i&&(u*=256);)t<0&&s===0&&this[r+o-1]!==0&&(s=1),this[r+o]=(t/u>>0)-s&255;return r+i};p.prototype.writeIntBE=function(t,r,i,n){if(t=+t,r=r>>>0,!n){var f=Math.pow(2,8*i-1);g(this,t,r,i,f-1,-f)}var o=i-1,u=1,s=0;for(this[r+o]=t&255;--o>=0&&(u*=256);)t<0&&s===0&&this[r+o+1]!==0&&(s=1),this[r+o]=(t/u>>0)-s&255;return r+i};p.prototype.writeInt8=function(t,r,i){return t=+t,r=r>>>0,i||g(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};p.prototype.writeInt16LE=function(t,r,i){return t=+t,r=r>>>0,i||g(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};p.prototype.writeInt16BE=function(t,r,i){return t=+t,r=r>>>0,i||g(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};p.prototype.writeInt32LE=function(t,r,i){return t=+t,r=r>>>0,i||g(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};p.prototype.writeInt32BE=function(t,r,i){return t=+t,r=r>>>0,i||g(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};p.prototype.writeBigInt64LE=b(function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Nt(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});p.prototype.writeBigInt64BE=b(function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Mt(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});p.prototype.writeFloatLE=function(t,r,i){return Lt(this,t,r,!0,i)};p.prototype.writeFloatBE=function(t,r,i){return Lt(this,t,r,!1,i)};p.prototype.writeDoubleLE=function(t,r,i){return Dt(this,t,r,!0,i)};p.prototype.writeDoubleBE=function(t,r,i){return Dt(this,t,r,!1,i)};p.prototype.copy=function(t,r,i,n){if(!p.isBuffer(t))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n<i&&(n=i),n===i||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r<n-i&&(n=t.length-r+i);var o=n-i;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,i,n):Uint8Array.prototype.set.call(t,this.subarray(i,n),r),o};p.prototype.fill=function(t,r,i,n){if(typeof t=="string"){if(typeof r=="string"?(n=r,r=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!p.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(t.length===1){var u=t.charCodeAt(0);(n==="utf8"&&u<128||n==="latin1")&&(t=u)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<i)throw new RangeError("Out of range index");if(i<=r)return this;r=r>>>0,i=i===void 0?this.length:i>>>0,t||(t=0);var o;if(typeof t=="number")for(o=r;o<i;++o)this[o]=t;else{var u1=p.isBuffer(t)?t:p.from(t,n),s=u1.length;if(s===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<i-r;++o)this[o+r]=u1[o%s]}return this};var P={};nt("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError);nt("ERR_INVALID_ARG_TYPE",function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t==="undefined"?"undefined":_type_of(t))},TypeError);nt("ERR_OUT_OF_RANGE",function(e,t,r){var i='The value of "'.concat(e,'" is out of range.'),n=r;return Number.isInteger(r)&&Math.abs(r)>h(2,32)?n=Ft(String(r)):(typeof r==="undefined"?"undefined":_type_of(r))=="bigint"&&(n=String(r),(r>h(BigInt(2),BigInt(32))||r<-h(BigInt(2),BigInt(32)))&&(n=Ft(n)),n+="n"),i+=" It must be ".concat(t,". Received ").concat(n),i},RangeError);var Dr=/[^+/0-9A-Za-z-_]/g;var Or=function(){var e="0123456789abcdef",t=new Array(256);for(var r=0;r<16;++r){var i=r*16;for(var n=0;n<16;++n)t[i+n]=e[r]+e[n]}return t}()});var B,m=F(function(){B=wt(kt())});var Ot,$t,Wt=F(function(){y();w();x();m();Ot=function(t){return t[t.APPLET_TIMING_CONTROLLER=0]="APPLET_TIMING_CONTROLLER",t}(Ot||{}),$t=Ot});var ut,Ht=F(function(){y();w();x();m();ut="Internal.Timing.ShowNext"});var Gt,M,Yt=F(function(){y();w();x();m();Gt=function(i){return i[i.DURATION=0]="DURATION",i[i.IDLE_TIMEOUT=1]="IDLE_TIMEOUT",i[i.SCREEN_TAP=2]="SCREEN_TAP",i}(Gt||{}),M=Gt});var jt=W(function(pt){"use strict";var Wr=function Wr(e,t){var r=t===void 0?{}:t,i=r.signal,n=void 0,o=null,u=new Promise(function(s,f){o=f,n=setTimeout(function(){o=null,s()},e)});return u.cancel=function(){n&&(clearTimeout(n),n=void 0,o&&o(new Error("Wait cancelled")),o=null)},i==null||i.addEventListener("abort",function(){return u.cancel()}),u};y();w();x();m();Object.defineProperty(pt,"__esModule",{value:!0});pt.default=Wr});var qt,Hr,ft,Vt,zt=F(function(){y();w();x();m();Ht();Yt();qt=wt(jt()),Hr={definitions:null,currentDefinitionIndex:null,startTimestamp:null,lastInteractionTimestamp:null,triggersPausedTimestamp:null,lastPutUpdateActiveAppletBinary:null,lastPutPrepareNextAppletTiming:null,deviceInConnectedMode:null},ft=function(){"use strict";function ft(t,r){_class_call_check(this,ft);this.getCurrentTimestamp=t;this.postMessage=r;xt(this,"model");this.model=Hr}_create_class(ft,[{key:"setModel",value:function setModel(t){this.model=t}},{key:"run",value:function run(){return G(this,null,function(){var t,t1;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,1,2,4]);t=Gr(this.model,this.getCurrentTimestamp);t&&this.postMessage(t);return[3,4];case 1:t1=_state.sent();return[3,4];case 2:return[4,(0,qt.default)(100)];case 3:_state.sent();return[7];case 4:return[3,0];case 5:return[2]}})})}}]);return ft}();Vt=ft});var Jt=F(function(){y();w();x();m();zt()});var Kt,Zt=F(function(){y();w();x();m();Kt=["log","info","warn","error","debug"]});var qr=W(function(Qt){var jr=function jr(e){switch(console=Kt.reduce(function(t,r){return yt(ht({},t),_define_property({},r,function(){for(var _len=arguments.length,i=new Array(_len),_key=0;_key<_len;_key++){i[_key]=arguments[_key]}return lt({name:"console",level:r,args:i})}))},console!=null?console:{}),e){case $t.APPLET_TIMING_CONTROLLER:return Xt(function(t){lt({name:"message",message:t})});default:throw new Error("Invalid type: "+e)}};y();w();x();m();Wt();Jt();Zt();var V,lt=function(e){return postMessage(e)};addEventListener("message",function(e){return G(Qt,null,function(){var _,_$t,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,6,,7]);_=e.data.name;switch(_){case"start":return[3,1];case"message":return[3,3]}return[3,4];case 1:V=jr(e.data.type);return[4,V.start(e.data.initData)];case 2:_state.sent();return[3,5];case 3:_$t=e.data.message;if(V)V.onMessage(_$t);else throw new Error("Message received but web worker haven't been initialized yet: "+_$t);return[3,5];case 4:throw new Error("invalid message name: "+e.data.name);case 5:return[3,7];case 6:t=_state.sent();throw lt({name:"error",errorMessage:t.message,errorName:t.name,errorStack:t.stack}),t;case 7:return[2]}})})})});qr()})();/*! Bundled license information:
2
2
 
3
3
  ieee754/index.js:
4
4
  (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)