@signageos/front-display 14.21.3 → 14.22.2

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 Vr=function Vr(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(jr(r,e.startTimestamp,e.lastInteractionTimestamp,t()))return{type:ut}}}};var jr=function jr(e,t,r,n){switch(N[e.finishEvent.type]){case N.DURATION:return t+st(e)<=n;case N.IDLE_TIMEOUT:return r!==null&&r>t?r+st(e)<=n:t+st(e)<=n;case N.SCREEN_TAP:return r!==null&&r<=n;default:throw new Error("Invalid timing finish event type: "+e.finishEvent.type)}};var st=function st(e){switch(N[e.finishEvent.type]){case N.DURATION:return e.finishEvent.data!==null?parseInt(e.finishEvent.data):6e4;case N.IDLE_TIMEOUT:return e.finishEvent.data!==null?parseInt(e.finishEvent.data):3e4;case N.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 Jt=function Jt(e){var t=new zt(function(){return new Date().valueOf()},e);return{start:function(){return t.run()},onMessage:function(r){return t.setModel(r)}}};var rr=Object.create;var J=Object.defineProperty,er=Object.defineProperties,nr=Object.getOwnPropertyDescriptor,ir=Object.getOwnPropertyDescriptors,or=Object.getOwnPropertyNames,lt=Object.getOwnPropertySymbols,ur=Object.getPrototypeOf,at=Object.prototype.hasOwnProperty,pr=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(lt)try{for(var _iterator=lt(t)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var r=_step.value;pr.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},xt=function(e,t){return er(e,ir(t))};var A=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 sr=function(e,t,r,n){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;if(t&&typeof t=="object"||typeof t=="function")try{var _loop=function(){var i=_step.value;!at.call(e,i)&&i!==r&&J(e,i,{get:function(){return t[i]},enumerable:!(n=nr(t,i))||n.enumerable})};for(var _iterator=or(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 yt=function(e,t,r){return r=e!=null?rr(ur(e)):{},sr(t||!e||!e.__esModule?J(r,"default",{value:e,enumerable:!0}):r,e)};var wt=function(e,t,r){return X(e,(typeof t==="undefined"?"undefined":_type_of(t))!="symbol"?t+"":t,r)};var H=function(e,t,r){return new Promise(function(n,i){var o=function(f){try{s(r.next(f))}catch(a){i(a)}},u=function(f){try{s(r.throw(f))}catch(a){i(a)}},s=function(f){return f.done?n(f.value):Promise.resolve(f.value).then(o,u)};s((r=r.apply(e,t)).next())})};var x=A(function(){});var y=A(function(){});var E,w=A(function(){E=typeof globalThis!="undefined"||typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof self!="undefined"?self:new Function("return this")()});var gt=W(function(G){"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 n=r===t?0:4-r%4;return[r,n]};var cr=function cr(e){var t=dt(e),r=t[0],n=t[1];return(r+n)*3/4-n};var lr=function lr(e,t,r){return(t+r)*3/4-r};var ar=function ar(e){var t,r=dt(e),n=r[0],i=r[1],o=new fr(lr(e,n,i)),u=0,s=i>0?n-4:n,f;for(f=0;f<s;f+=4)t=I[e.charCodeAt(f)]<<18|I[e.charCodeAt(f+1)]<<12|I[e.charCodeAt(f+2)]<<6|I[e.charCodeAt(f+3)],o[u++]=t>>16&255,o[u++]=t>>8&255,o[u++]=t&255;return i===2&&(t=I[e.charCodeAt(f)]<<2|I[e.charCodeAt(f+1)]>>4,o[u++]=t&255),i===1&&(t=I[e.charCodeAt(f)]<<10|I[e.charCodeAt(f+1)]<<4|I[e.charCodeAt(f+2)]>>2,o[u++]=t>>8&255,o[u++]=t&255),o};var hr=function hr(e){return R[e>>18&63]+R[e>>12&63]+R[e>>6&63]+R[e&63]};var xr=function xr(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(hr(n));return i.join("")};var yr=function yr(e){for(var t,r=e.length,n=r%3,i=[],o=16383,u=0,s=r-n;u<s;u+=o)i.push(xr(e,u,u+o>s?s:u+o));return n===1?(t=e[r-1],i.push(R[t>>2]+R[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(R[t>>10]+R[t>>4&63]+R[t<<2&63]+"=")),i.join("")};x();y();w();m();G.byteLength=cr;G.toByteArray=ar;G.fromByteArray=yr;var R=[],I=[],fr=typeof Uint8Array!="undefined"?Uint8Array:Array,K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(b=0,mt=K.length;b<mt;++b)R[b]=K[b],I[K.charCodeAt(b)]=b;var b,mt;I[45]=62;I[95]=63});var Et=W(function(Q){x();y();w();m();Q.read=function(e,t,r,n,i){var o,u,s=i*8-n-1,f=(1<<s)-1,a=f>>1,l=-7,c=r?i-1:0,_=r?-1:1,S=e[t+c];for(c+=_,o=S&(1<<-l)-1,S>>=-l,l+=s;l>0;o=o*256+e[t+c],c+=_,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=n;l>0;u=u*256+e[t+c],c+=_,l-=8);if(o===0)o=1-a;else{if(o===f)return u?NaN:(S?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-a}return(S?-1:1)*u*Math.pow(2,o-n)};Q.write=function(e,t,r,n,i,o){var u,s,f,a=o*8-i-1,l=(1<<a)-1,c=l>>1,_=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=n?0:o-1,z=n?1:-1,tr=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=l):(u=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+c>=1?t+=_/f:t+=_*Math.pow(2,1-c),t*f>=2&&(u++,f/=2),u+c>=l?(s=0,u=l):u+c>=1?(s=(t*f-1)*Math.pow(2,i),u=u+c):(s=t*Math.pow(2,c-1)*Math.pow(2,i),u=0));i>=8;e[r+S]=s&255,S+=z,s/=256,i-=8);for(u=u<<i|s,a+=i;a>0;e[r+S]=u&255,S+=z,u/=256,a-=8);e[r+S-z]|=tr*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 L=function L(e){if(e>V)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 Ft(e,t,r)};var Ft=function Ft(e,t,r){if(typeof e=="string")return dr(e,t);if(ArrayBuffer.isView(e))return gr(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(C(e,ArrayBuffer)||e&&C(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(C(e,SharedArrayBuffer)||e&&C(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 n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return p.from(n,t,r);var i=Er(e);if(i)return i;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 mr=function mr(e,t,r){return Ut(e),e<=0?L(e):t!==void 0?typeof r=="string"?L(e).fill(t,r):L(e).fill(t):L(e)};var et=function et(e){return Ut(e),L(e<0?0:nt(e)|0)};var dr=function dr(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!p.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=St(e,t)|0,n=L(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n};var v=function v(e){var t=e.length<0?0:nt(e.length)|0,r=L(t);for(var n=0;n<t;n+=1)r[n]=e[n]&255;return r};var gr=function gr(e){if(C(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 n;return t===void 0&&r===void 0?n=new Uint8Array(e):r===void 0?n=new Uint8Array(e,t):n=new Uint8Array(e,t,r),Object.setPrototypeOf(n,p.prototype),n};var Er=function Er(e){if(p.isBuffer(e)){var t=nt(e.length)|0,r=L(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)?L(0):v(e);if(e.type==="Buffer"&&Array.isArray(e.data))return v(e.data)};var nt=function nt(e){if(e>=V)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+V.toString(16)+" bytes");return e|0};var Ir=function Ir(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)||C(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,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;var i=!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(i)return n?-1:rt(e).length;t=(""+t).toLowerCase(),i=!0}};var Br=function Br(e,t,r){var n=!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 Ct(this,t,r);case"ascii":return Lr(this,t,r);case"latin1":case"binary":return Nr(this,t,r);case"base64":return Rr(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return br(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}};var D=function D(e,t,r){var n=e[t];e[t]=e[r],e[r]=n};var Rt=function Rt(e,t,r,n,i){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,ot(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=p.from(t,n)),p.isBuffer(t))return t.length===0?-1:Bt(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Bt(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")};var Bt=function Bt(e,t,r,n,i){var o=1,u=e.length,s=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,u/=2,s/=2,r/=2}function f(l,c){return o===1?l[c]:l.readUInt16BE(c*o)}var a;if(i){var l=-1;for(a=r;a<u;a++)if(f(e,a)===f(t,l===-1?0:a-l)){if(l===-1&&(l=a),a-l+1===s)return l*o}else l!==-1&&(a-=a-l),l=-1}else for(r+s>u&&(r=u-s),a=r;a>=0;a--){var l1=!0;for(var c=0;c<s;c++)if(f(e,a+c)!==f(t,c)){l1=!1;break}if(l1)return a}return-1};var Ar=function Ar(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=t.length;n>o/2&&(n=o/2);var u;for(u=0;u<n;++u){var s=parseInt(t.substr(u*2,2),16);if(ot(s))return u;e[r+u]=s}return u};var Tr=function Tr(e,t,r,n){return j(rt(t,e.length-r),e,r,n)};var Fr=function Fr(e,t,r,n){return j(kr(t),e,r,n)};var Ur=function Ur(e,t,r,n){return j(Pt(t),e,r,n)};var Sr=function Sr(e,t,r,n){return j(Or(t,e.length-r),e,r,n)};var Rr=function Rr(e,t,r){return t===0&&r===e.length?Z.fromByteArray(e):Z.fromByteArray(e.slice(t,r))};var Ct=function Ct(e,t,r){r=Math.min(e.length,r);var n=[],i=t;for(;i<r;){var o=e[i],u=null,s=o>239?4:o>223?3:o>191?2:1;if(i+s<=r){var f=void 0,a=void 0,l=void 0,c=void 0;switch(s){case 1:o<128&&(u=o);break;case 2:f=e[i+1],(f&192)===128&&(c=(o&31)<<6|f&63,c>127&&(u=c));break;case 3:f=e[i+1],a=e[i+2],(f&192)===128&&(a&192)===128&&(c=(o&15)<<12|(f&63)<<6|a&63,c>2047&&(c<55296||c>57343)&&(u=c));break;case 4:f=e[i+1],a=e[i+2],l=e[i+3],(f&192)===128&&(a&192)===128&&(l&192)===128&&(c=(o&15)<<18|(f&63)<<12|(a&63)<<6|l&63,c>65535&&c<1114112&&(u=c))}}u===null?(u=65533,s=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=s}return Cr(n)};var Cr=function Cr(e){var t=e.length;if(t<=At)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=At));return r};var Lr=function Lr(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]&127);return n};var Nr=function Nr(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n};var Mr=function Mr(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);var i="";for(var o=t;o<r;++o)i+=$r[e[o]];return i};var br=function br(e,t,r){var n=e.slice(t,r),i="";for(var o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i};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,n,i,o){if(!p.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")};var Lt=function Lt(e,t,r,n,i){_t(t,n,i,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 Nt=function Nt(e,t,r,n,i){_t(t,n,i,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 Mt=function Mt(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")};var bt=function bt(e,t,r,n,i){return t=+t,r=r>>>0,i||Mt(e,t,r,4,34028234663852886e22,-34028234663852886e22),k.write(e,t,r,n,23,4),r+4};var Dt=function Dt(e,t,r,n,i){return t=+t,r=r>>>0,i||Mt(e,t,r,8,17976931348623157e292,-17976931348623157e292),k.write(e,t,r,n,52,8),r+8};var it=function it(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(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}},{key:"toString",value:function toString(){return"".concat(this.name," [").concat(e,"]: ").concat(this.message)}}]);return _class}(r)};var Tt=function Tt(e){var t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t="_".concat(e.slice(r-3,r)).concat(t);return"".concat(e.slice(0,r)).concat(t)};var Dr=function Dr(e,t,r){O(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&Y(t,e.length-(r+1))};var _t=function _t(e,t,r,n,i,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)}Dr(n,i,o)};var O=function O(e,t){if(typeof e!="number")throw new P.ERR_INVALID_ARG_TYPE(t,"number",e)};var Y=function Y(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 Pr=function Pr(e){if(e=e.split("=")[0],e=e.trim().replace(_r,""),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,n=e.length,i=null,o=[];for(var u=0;u<n;++u){if(r=e.charCodeAt(u),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(u+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=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 kr=function kr(e){var t=[];for(var r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t};var Or=function Or(e,t){var r,n,i,o=[];for(var u=0;u<e.length&&!((t-=2)<0);++u)r=e.charCodeAt(u),n=r>>8,i=r%256,o.push(i),o.push(n);return o};var Pt=function Pt(e){return Z.toByteArray(Pr(e))};var j=function j(e,t,r,n){var i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i};var C=function C(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 M=function M(e){return typeof BigInt=="undefined"?Wr:e};var Wr=function Wr(){throw new Error("BigInt not supported")};x();y();w();m();var Z=gt(),k=Et(),It=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;$.Buffer=p;$.SlowBuffer=Ir;$.INSPECT_MAX_BYTES=50;var V=2147483647;$.kMaxLength=V;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 Ft(e,t,r)};Object.setPrototypeOf(p.prototype,Uint8Array.prototype);Object.setPrototypeOf(p,Uint8Array);p.alloc=function(e,t,r){return mr(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(C(t,Uint8Array)&&(t=p.from(t,t.offset,t.byteLength)),C(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 n=t.length,i=r.length;for(var o=0,u=Math.min(n,i);o<u;++o)if(t[o]!==r[o]){n=t[o],i=r[o];break}return n<i?-1:i<n?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 n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var i=p.allocUnsafe(r),o=0;for(n=0;n<t.length;++n){var u=t[n];if(C(u,Uint8Array))o+u.length>i.length?(p.isBuffer(u)||(u=p.from(u)),u.copy(i,o)):Uint8Array.prototype.set.call(i,u,o);else if(p.isBuffer(u))u.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return i};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?Ct(this,0,t):Br.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,n,i,o){if(C(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),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>t.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===t)return 0;var u=o-i,s=n-r,f=Math.min(u,s),a=this.slice(i,o),l=t.slice(r,n);for(var c=0;c<f;++c)if(a[c]!==l[c]){u=a[c],s=l[c];break}return u<s?-1:s<u?1:0};p.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};p.prototype.indexOf=function(t,r,n){return Rt(this,t,r,n,!0)};p.prototype.lastIndexOf=function(t,r,n){return Rt(this,t,r,n,!1)};p.prototype.write=function(t,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-r;if((n===void 0||n>o)&&(n=o),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");var u=!1;for(;;)switch(i){case"hex":return Ar(this,t,r,n);case"utf8":case"utf-8":return Tr(this,t,r,n);case"ascii":case"latin1":case"binary":return Fr(this,t,r,n);case"base64":return Ur(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Sr(this,t,r,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).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 n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,p.prototype),i};p.prototype.readUintLE=p.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||d(t,r,this.length);var i=this[t],o=1,u=0;for(;++u<r&&(o*=256);)i+=this[t+u]*o;return i};p.prototype.readUintBE=p.prototype.readUIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||d(t,r,this.length);var i=this[t+--r],o=1;for(;r>0&&(o*=256);)i+=this[t+--r]*o;return i};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=M(function(t){t=t>>>0,O(t,"offset");var r=this[t],n=this[t+7];(r===void 0||n===void 0)&&Y(t,this.length-8);var i=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)+n*h(2,24);return BigInt(i)+(BigInt(o)<<BigInt(32))});p.prototype.readBigUInt64BE=M(function(t){t=t>>>0,O(t,"offset");var r=this[t],n=this[t+7];(r===void 0||n===void 0)&&Y(t,this.length-8);var i=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)+n;return(BigInt(i)<<BigInt(32))+BigInt(o)});p.prototype.readIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||d(t,r,this.length);var i=this[t],o=1,u=0;for(;++u<r&&(o*=256);)i+=this[t+u]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};p.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||d(t,r,this.length);var i=r,o=1,u=this[t+--i];for(;i>0&&(o*=256);)u+=this[t+--i]*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 n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};p.prototype.readInt16BE=function(t,r){t=t>>>0,r||d(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};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=M(function(t){t=t>>>0,O(t,"offset");var r=this[t],n=this[t+7];(r===void 0||n===void 0)&&Y(t,this.length-8);var i=this[t+4]+this[t+5]*h(2,8)+this[t+6]*h(2,16)+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(r+this[++t]*h(2,8)+this[++t]*h(2,16)+this[++t]*h(2,24))});p.prototype.readBigInt64BE=M(function(t){t=t>>>0,O(t,"offset");var r=this[t],n=this[t+7];(r===void 0||n===void 0)&&Y(t,this.length-8);var i=(r<<24)+this[++t]*h(2,16)+this[++t]*h(2,8)+this[++t];return(BigInt(i)<<BigInt(32))+BigInt(this[++t]*h(2,24)+this[++t]*h(2,16)+this[++t]*h(2,8)+n)});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,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){var s=Math.pow(2,8*n)-1;g(this,t,r,n,s,0)}var o=1,u=0;for(this[r]=t&255;++u<n&&(o*=256);)this[r+u]=t/o&255;return r+n};p.prototype.writeUintBE=p.prototype.writeUIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){var s=Math.pow(2,8*n)-1;g(this,t,r,n,s,0)}var o=n-1,u=1;for(this[r+o]=t&255;--o>=0&&(u*=256);)this[r+o]=t/u&255;return r+n};p.prototype.writeUint8=p.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||g(this,t,r,1,255,0),this[r]=t&255,r+1};p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||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,n){return t=+t,r=r>>>0,n||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,n){return t=+t,r=r>>>0,n||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,n){return t=+t,r=r>>>0,n||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=M(function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Lt(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});p.prototype.writeBigUInt64BE=M(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.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){var f=Math.pow(2,8*n-1);g(this,t,r,n,f-1,-f)}var o=0,u=1,s=0;for(this[r]=t&255;++o<n&&(u*=256);)t<0&&s===0&&this[r+o-1]!==0&&(s=1),this[r+o]=(t/u>>0)-s&255;return r+n};p.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){var f=Math.pow(2,8*n-1);g(this,t,r,n,f-1,-f)}var o=n-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+n};p.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||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,n){return t=+t,r=r>>>0,n||g(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};p.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||g(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};p.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||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,n){return t=+t,r=r>>>0,n||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=M(function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Lt(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});p.prototype.writeBigInt64BE=M(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.writeFloatLE=function(t,r,n){return bt(this,t,r,!0,n)};p.prototype.writeFloatBE=function(t,r,n){return bt(this,t,r,!1,n)};p.prototype.writeDoubleLE=function(t,r,n){return Dt(this,t,r,!0,n)};p.prototype.writeDoubleBE=function(t,r,n){return Dt(this,t,r,!1,n)};p.prototype.copy=function(t,r,n,i){if(!p.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<n&&(i=n),i===n||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-n&&(i=t.length-r+n);var o=i-n;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(t,this.subarray(n,i),r),o};p.prototype.fill=function(t,r,n,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!p.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var u=t.charCodeAt(0);(i==="utf8"&&u<128||i==="latin1")&&(t=u)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);var o;if(typeof t=="number")for(o=r;o<n;++o)this[o]=t;else{var u1=p.isBuffer(t)?t:p.from(t,i),s=u1.length;if(s===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=u1[o%s]}return this};var P={};it("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError);it("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);it("ERR_OUT_OF_RANGE",function(e,t,r){var n='The value of "'.concat(e,'" is out of range.'),i=r;return Number.isInteger(r)&&Math.abs(r)>h(2,32)?i=Tt(String(r)):(typeof r==="undefined"?"undefined":_type_of(r))=="bigint"&&(i=String(r),(r>h(BigInt(2),BigInt(32))||r<-h(BigInt(2),BigInt(32)))&&(i=Tt(i)),i+="n"),n+=" It must be ".concat(t,". Received ").concat(i),n},RangeError);var _r=/[^+/0-9A-Za-z-_]/g;var $r=function(){var e="0123456789abcdef",t=new Array(256);for(var r=0;r<16;++r){var n=r*16;for(var i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}()});var B,m=A(function(){B=yt(kt())});var Ot,$t,Wt=A(function(){x();y();w();m();Ot=function(t){return t[t.APPLET_TIMING_CONTROLLER=0]="APPLET_TIMING_CONTROLLER",t}(Ot||{}),$t=Ot});var ut,Yt=A(function(){x();y();w();m();ut="Internal.Timing.ShowNext"});var Ht,N,Gt=A(function(){x();y();w();m();Ht=function(n){return n[n.DURATION=0]="DURATION",n[n.IDLE_TIMEOUT=1]="IDLE_TIMEOUT",n[n.SCREEN_TAP=2]="SCREEN_TAP",n}(Ht||{}),N=Ht});var Vt=W(function(pt){"use strict";var Yr=function Yr(e,t){var r=t===void 0?{}:t,n=r.signal,i=void 0,o=null,u=new Promise(function(s,f){o=f,i=setTimeout(function(){o=null,s()},e)});return u.cancel=function(){i&&(clearTimeout(i),i=void 0,o&&o(new Error("Wait cancelled")),o=null)},n==null||n.addEventListener("abort",function(){return u.cancel()}),u};x();y();w();m();Object.defineProperty(pt,"__esModule",{value:!0});pt.default=Yr});var jt=A(function(){x();y();w();m()});var qt,Gr,ft,zt,Xt=A(function(){x();y();w();m();Yt();Gt();qt=yt(Vt());jt();Gr={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;wt(this,"model");this.model=Gr}_create_class(ft,[{key:"setModel",value:function setModel(t){this.model=t}},{key:"run",value:function run(){return H(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=Vr(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}();zt=ft});var Kt=A(function(){x();y();w();m();Xt()});var Qt,Zt=A(function(){x();y();w();m();Qt=["log","info","warn","error","debug"]});var zr=W(function(vt){var qr=function qr(e){switch(console=Qt.reduce(function(t,r){return xt(ht({},t),_define_property({},r,function(){for(var _len=arguments.length,n=new Array(_len),_key=0;_key<_len;_key++){n[_key]=arguments[_key]}return ct({name:"console",level:r,args:n})}))},console!=null?console:{}),e){case $t.APPLET_TIMING_CONTROLLER:return Jt(function(t){ct({name:"message",message:t})});default:throw new Error("Invalid type: "+e)}};x();y();w();m();Wt();Kt();Zt();var q,ct=function(e){return postMessage(e)};addEventListener("message",function(e){return H(vt,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:q=qr(e.data.type);return[4,q.start(e.data.initData)];case 2:_state.sent();return[3,5];case 3:_$t=e.data.message;if(q)q.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 ct({name:"error",errorMessage:t.message,errorName:t.name,errorStack:t.stack}),t;case 7:return[2]}})})})});zr()})();/*! 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> *)