@signageos/front-display 14.12.1 → 14.12.3
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/CHANGELOG.md +8 -0
- package/dist/bundle.js +1 -1
- package/dist/bundle.js.map +3 -3
- package/dist/polyfill.js +1 -1
- package/dist/serviceWorker.js +1 -1
- package/dist/webWorker.js +1 -1
- package/package.json +15 -2
package/dist/serviceWorker.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 _call_super(_this,derived,args){derived=_get_prototype_of(derived);return _possible_constructor_return(_this,_is_native_reflect_construct()?Reflect.construct(derived,args||[],_get_prototype_of(_this).constructor):derived.apply(_this,args))}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 _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(){try{var result=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(_){}return(_is_native_reflect_construct=function(){return!!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 Ur=function Ur(e){var r=/\/indexed_db\/.+$/,t=e.match(r);return t?t[0]:null};var lt=function lt(e){return V(this,null,function(){var r,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:r=Ur(e.request.url);if(!!r)return[3,2];return[4,fetch(e.request)];case 1:return[2,_state.sent()];case 2:return[4,caches.match(r,{ignoreSearch:!0})];case 3:t=_state.sent();return[2,t||new Response("Not found",{status:404,statusText:"Not found"})]}})})};var Tr=Object.create;var nr=Object.defineProperty;var Cr=Object.getOwnPropertyDescriptor;var Sr=Object.getOwnPropertyNames;var _r=Object.getPrototypeOf,Lr=Object.prototype.hasOwnProperty;var a=Math.pow;var k=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 br=function(e,r,t,n){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;if(r&&(typeof r==="undefined"?"undefined":_type_of(r))=="object"||typeof r=="function")try{var _loop=function(){var i=_step.value;!Lr.call(e,i)&&i!==t&&nr(e,i,{get:function(){return r[i]},enumerable:!(n=Cr(r,i))||n.enumerable})};for(var _iterator=Sr(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 Nr=function(e,r,t){return t=e!=null?Tr(_r(e)):{},br(r||!e||!e.__esModule?nr(t,"default",{value:e,enumerable:!0}):t,e)};var V=function(e,r,t){return new Promise(function(n,i){var o=function(c){try{f(t.next(c))}catch(l){i(l)}},u=function(c){try{f(t.throw(c))}catch(l){i(l)}},f=function(c){return c.done?n(c.value):Promise.resolve(c.value).then(o,u)};f((t=t.apply(e,r)).next())})};var x=k(function(){});var B=k(function(){});var d=k(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 _,E=k(function(){_=typeof globalThis!="undefined"||typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof self!="undefined"?self:new Function("return this")()});var ur=H(function(G){"use strict";var or=function or(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 n=t===r?0:4-t%4;return[t,n]};var Mr=function Mr(e){var r=or(e),t=r[0],n=r[1];return(t+n)*3/4-n};var kr=function kr(e,r,t){return(r+t)*3/4-t};var Pr=function Pr(e){var r,t=or(e),n=t[0],i=t[1],o=new Dr(kr(e,n,i)),u=0,f=i>0?n-4:n,c;for(c=0;c<f;c+=4)r=m[e.charCodeAt(c)]<<18|m[e.charCodeAt(c+1)]<<12|m[e.charCodeAt(c+2)]<<6|m[e.charCodeAt(c+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return i===2&&(r=m[e.charCodeAt(c)]<<2|m[e.charCodeAt(c+1)]>>4,o[u++]=r&255),i===1&&(r=m[e.charCodeAt(c)]<<10|m[e.charCodeAt(c+1)]<<4|m[e.charCodeAt(c+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o};var $r=function $r(e){return F[e>>18&63]+F[e>>12&63]+F[e>>6&63]+F[e&63]};var Or=function Or(e,r,t){for(var n,i=[],o=r;o<t;o+=3)n=(e[o]<<16&0xff0000)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push($r(n));return i.join("")};var qr=function qr(e){for(var r,t=e.length,n=t%3,i=[],o=16383,u=0,f=t-n;u<f;u+=o)i.push(Or(e,u,u+o>f?f:u+o));return n===1?(r=e[t-1],i.push(F[r>>2]+F[r<<4&63]+"==")):n===2&&(r=(e[t-2]<<8)+e[t-1],i.push(F[r>>10]+F[r>>4&63]+F[r<<2&63]+"=")),i.join("")};x();B();d();E();g();G.byteLength=Mr;G.toByteArray=Pr;G.fromByteArray=qr;var F=[],m=[],Dr=typeof Uint8Array!="undefined"?Uint8Array:Array,X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(T=0,ir=X.length;T<ir;++T)F[T]=X[T],m[X.charCodeAt(T)]=T;var T,ir;m[45]=62;m[95]=63});var hr=H(function(z){x();B();d();E();g();z.read=function(e,r,t,n,i){var o,u,f=i*8-n-1,c=(1<<f)-1,l=c>>1,s=-7,p=t?i-1:0,S=t?-1:1,I=e[r+p];for(p+=S,o=I&(1<<-s)-1,I>>=-s,s+=f;s>0;o=o*256+e[r+p],p+=S,s-=8);for(u=o&(1<<-s)-1,o>>=-s,s+=n;s>0;u=u*256+e[r+p],p+=S,s-=8);if(o===0)o=1-l;else{if(o===c)return u?NaN:(I?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-l}return(I?-1:1)*u*Math.pow(2,o-n)};z.write=function(e,r,t,n,i,o){var u,f,c,l=o*8-i-1,s=(1<<l)-1,p=s>>1,S=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,I=n?0:o-1,j=n?1:-1,Rr=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=s):(u=Math.floor(Math.log(r)/Math.LN2),r*(c=Math.pow(2,-u))<1&&(u--,c*=2),u+p>=1?r+=S/c:r+=S*Math.pow(2,1-p),r*c>=2&&(u++,c/=2),u+p>=s?(f=0,u=s):u+p>=1?(f=(r*c-1)*Math.pow(2,i),u=u+p):(f=r*Math.pow(2,p-1)*Math.pow(2,i),u=0));i>=8;e[t+I]=f&255,I+=j,f/=256,i-=8);for(u=u<<i|f,l+=i;l>0;e[t+I]=u&255,I+=j,u/=256,l-=8);e[t+I-j]|=Rr*128}});var Ar=H(function(M){"use strict";var Gr=function Gr(){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 U=function U(e){if(e>W)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,h.prototype),r};var h=function h(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 v(e)}return lr(e,r,t)};var lr=function lr(e,r,t){if(typeof e=="string")return Yr(e,r);if(ArrayBuffer.isView(e))return jr(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(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(A(e,SharedArrayBuffer)||e&&A(e.buffer,SharedArrayBuffer)))return Z(e,r,t);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 h.from(n,r,t);var i=Hr(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return h.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 ar=function ar(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 Wr=function Wr(e,r,t){return ar(e),e<=0?U(e):r!==void 0?typeof t=="string"?U(e).fill(r,t):U(e).fill(r):U(e)};var v=function v(e){return ar(e),U(e<0?0:rr(e)|0)};var Yr=function Yr(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!h.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=yr(e,r)|0,n=U(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n};var K=function K(e){var r=e.length<0?0:rr(e.length)|0,t=U(r);for(var n=0;n<r;n+=1)t[n]=e[n]&255;return t};var jr=function jr(e){if(A(e,Uint8Array)){var r=new Uint8Array(e);return Z(r.buffer,r.byteOffset,r.byteLength)}return K(e)};var Z=function Z(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 n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,h.prototype),n};var Hr=function Hr(e){if(h.isBuffer(e)){var r=rr(e.length)|0,t=U(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||er(e.length)?U(0):K(e);if(e.type==="Buffer"&&Array.isArray(e.data))return K(e.data)};var rr=function rr(e){if(e>=W)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+W.toString(16)+" bytes");return e|0};var Vr=function Vr(e){return+e!=e&&(e=0),h.alloc(+e)};var yr=function yr(e,r){if(h.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(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,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;var i=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return Q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Fr(e).length;default:if(i)return n?-1:Q(e).length;r=(""+r).toLowerCase(),i=!0}};var Xr=function Xr(e,r,t){var n=!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 nt(this,r,t);case"utf8":case"utf-8":return xr(this,r,t);case"ascii":return tt(this,r,t);case"latin1":case"binary":return et(this,r,t);case"base64":return vr(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return it(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}};var C=function C(e,r,t){var n=e[r];e[r]=e[t],e[t]=n};var wr=function wr(e,r,t,n,i){if(e.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>0x7fffffff?t=0x7fffffff:t<-0x80000000&&(t=-0x80000000),t=+t,er(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=h.from(r,n)),h.isBuffer(r))return r.length===0?-1:cr(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):cr(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")};var cr=function cr(e,r,t,n,i){var o=1,u=e.length,f=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,u/=2,f/=2,t/=2}function c(s,p){return o===1?s[p]:s.readUInt16BE(p*o)}var l;if(i){var s=-1;for(l=t;l<u;l++)if(c(e,l)===c(r,s===-1?0:l-s)){if(s===-1&&(s=l),l-s+1===f)return s*o}else s!==-1&&(l-=l-s),s=-1}else for(t+f>u&&(t=u-f),l=t;l>=0;l--){var s1=!0;for(var p=0;p<f;p++)if(c(e,l+p)!==c(r,p)){s1=!1;break}if(s1)return l}return-1};var zr=function zr(e,r,t,n){t=Number(t)||0;var i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;var o=r.length;n>o/2&&(n=o/2);var u;for(u=0;u<n;++u){var f=parseInt(r.substr(u*2,2),16);if(er(f))return u;e[t+u]=f}return u};var Jr=function Jr(e,r,t,n){return Y(Q(r,e.length-t),e,t,n)};var Kr=function Kr(e,r,t,n){return Y(ft(r),e,t,n)};var Zr=function Zr(e,r,t,n){return Y(Fr(r),e,t,n)};var Qr=function Qr(e,r,t,n){return Y(ct(r,e.length-t),e,t,n)};var vr=function vr(e,r,t){return r===0&&t===e.length?J.fromByteArray(e):J.fromByteArray(e.slice(r,t))};var xr=function xr(e,r,t){t=Math.min(e.length,t);var n=[],i=r;for(;i<t;){var o=e[i],u=null,f=o>239?4:o>223?3:o>191?2:1;if(i+f<=t){var c=void 0,l=void 0,s=void 0,p=void 0;switch(f){case 1:o<128&&(u=o);break;case 2:c=e[i+1],(c&192)===128&&(p=(o&31)<<6|c&63,p>127&&(u=p));break;case 3:c=e[i+1],l=e[i+2],(c&192)===128&&(l&192)===128&&(p=(o&15)<<12|(c&63)<<6|l&63,p>2047&&(p<55296||p>57343)&&(u=p));break;case 4:c=e[i+1],l=e[i+2],s=e[i+3],(c&192)===128&&(l&192)===128&&(s&192)===128&&(p=(o&15)<<18|(c&63)<<12|(l&63)<<6|s&63,p>65535&&p<1114112&&(u=p))}}u===null?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=f}return rt(n)};var rt=function rt(e){var r=e.length;if(r<=pr)return String.fromCharCode.apply(String,e);var t="",n=0;for(;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=pr));return t};var tt=function tt(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n};var et=function et(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n};var nt=function nt(e,r,t){var n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);var i="";for(var o=r;o<t;++o)i+=pt[e[o]];return i};var it=function it(e,r,t){var n=e.slice(r,t),i="";for(var o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i};var y=function y(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 w=function w(e,r,t,n,i,o){if(!h.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")};var Br=function Br(e,r,t,n,i){Ir(r,n,i,e,t,7);var o=Number(r&BigInt(0xffffffff));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(0xffffffff));return e[t++]=u,u=u>>8,e[t++]=u,u=u>>8,e[t++]=u,u=u>>8,e[t++]=u,t};var dr=function dr(e,r,t,n,i){Ir(r,n,i,e,t,7);var o=Number(r&BigInt(0xffffffff));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(0xffffffff));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 Er=function Er(e,r,t,n,i,o){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")};var gr=function gr(e,r,t,n,i){return r=+r,t=t>>>0,i||Er(e,r,t,4,34028234663852886e22,-34028234663852886e22),N.write(e,r,t,n,23,4),t+4};var mr=function mr(e,r,t,n,i){return r=+r,t=t>>>0,i||Er(e,r,t,8,17976931348623157e292,-17976931348623157e292),N.write(e,r,t,n,52,8),t+8};var tr=function tr(e,r,t){b[e]=/*#__PURE__*/function(t){_inherits(_class,t);function _class(){_class_call_check(this,_class);var _this;_this=_call_super(this,_class),Object.defineProperty(_this,"message",{value:r.apply(_this,arguments),writable:!0,configurable:!0}),_this.name="".concat(_this.name," [").concat(e,"]"),_this.stack,delete _this.name;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}(t)};var sr=function sr(e){var r="",t=e.length,n=e[0]==="-"?1:0;for(;t>=n+4;t-=3)r="_".concat(e.slice(t-3,t)).concat(r);return"".concat(e.slice(0,t)).concat(r)};var ot=function ot(e,r,t){D(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&q(r,e.length-(t+1))};var Ir=function Ir(e,r,t,n,i,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 b.ERR_OUT_OF_RANGE("value",f,e)}ot(n,i,o)};var D=function D(e,r){if(typeof e!="number")throw new b.ERR_INVALID_ARG_TYPE(r,"number",e)};var q=function q(e,r,t){throw Math.floor(e)!==e?(D(e,t),new b.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new b.ERR_BUFFER_OUT_OF_BOUNDS:new b.ERR_OUT_OF_RANGE(t||"offset",">= ".concat(t?1:0," and <= ").concat(r),e)};var ht=function ht(e){if(e=e.split("=")[0],e=e.trim().replace(ut,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e};var Q=function Q(e,r){r=r||1/0;var t,n=e.length,i=null,o=[];for(var u=0;u<n;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=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 ft=function ft(e){var r=[];for(var t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r};var ct=function ct(e,r){var t,n,i,o=[];for(var u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),n=t>>8,i=t%256,o.push(i),o.push(n);return o};var Fr=function Fr(e){return J.toByteArray(ht(e))};var Y=function Y(e,r,t,n){var i;for(i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i};var A=function A(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name};var er=function er(e){return e!==e};var R=function R(e){return typeof BigInt=="undefined"?st:e};var st=function st(){throw new Error("BigInt not supported")};x();B();d();E();g();var J=ur(),N=hr(),fr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;M.Buffer=h;M.SlowBuffer=Vr;M.INSPECT_MAX_BYTES=50;var W=0x7fffffff;M.kMaxLength=W;h.TYPED_ARRAY_SUPPORT=Gr();!h.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(h.prototype,"parent",{enumerable:!0,get:function get(){if(h.isBuffer(this))return this.buffer}});Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function get(){if(h.isBuffer(this))return this.byteOffset}});h.poolSize=8192;h.from=function(e,r,t){return lr(e,r,t)};Object.setPrototypeOf(h.prototype,Uint8Array.prototype);Object.setPrototypeOf(h,Uint8Array);h.alloc=function(e,r,t){return Wr(e,r,t)};h.allocUnsafe=function(e){return v(e)};h.allocUnsafeSlow=function(e){return v(e)};h.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==h.prototype};h.compare=function(r,t){if(A(r,Uint8Array)&&(r=h.from(r,r.offset,r.byteLength)),A(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),!h.isBuffer(r)||!h.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;var n=r.length,i=t.length;for(var o=0,u=Math.min(n,i);o<u;++o)if(r[o]!==t[o]){n=r[o],i=t[o];break}return n<i?-1:i<n?1:0};h.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}};h.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return h.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;var i=h.allocUnsafe(t),o=0;for(n=0;n<r.length;++n){var u=r[n];if(A(u,Uint8Array))o+u.length>i.length?(h.isBuffer(u)||(u=h.from(u)),u.copy(i,o)):Uint8Array.prototype.set.call(i,u,o);else if(h.isBuffer(u))u.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return i};h.byteLength=yr;h.prototype._isBuffer=!0;h.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)C(this,t,t+1);return this};h.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)C(this,t,t+3),C(this,t+1,t+2);return this};h.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)C(this,t,t+7),C(this,t+1,t+6),C(this,t+2,t+5),C(this,t+3,t+4);return this};h.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?xr(this,0,r):Xr.apply(this,arguments)};h.prototype.toLocaleString=h.prototype.toString;h.prototype.equals=function(r){if(!h.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:h.compare(this,r)===0};h.prototype.inspect=function(){var r="",t=M.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};fr&&(h.prototype[fr]=h.prototype.inspect);h.prototype.compare=function(r,t,n,i,o){if(A(r,Uint8Array)&&(r=h.from(r,r.offset,r.byteLength)),!h.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),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),t<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;var u=o-i,f=n-t,c=Math.min(u,f),l=this.slice(i,o),s=r.slice(t,n);for(var p=0;p<c;++p)if(l[p]!==s[p]){u=l[p],f=s[p];break}return u<f?-1:f<u?1:0};h.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1};h.prototype.indexOf=function(r,t,n){return wr(this,r,t,n,!0)};h.prototype.lastIndexOf=function(r,t,n){return wr(this,r,t,n,!1)};h.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>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-t;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");var u=!1;for(;;)switch(i){case"hex":return zr(this,r,t,n);case"utf8":case"utf-8":return Jr(this,r,t,n);case"ascii":case"latin1":case"binary":return Kr(this,r,t,n);case"base64":return Zr(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qr(this,r,t,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}};h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var pr=4096;h.prototype.slice=function(r,t){var n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);var i=this.subarray(r,t);return Object.setPrototypeOf(i,h.prototype),i};h.prototype.readUintLE=h.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||y(r,t,this.length);var i=this[r],o=1,u=0;for(;++u<t&&(o*=256);)i+=this[r+u]*o;return i};h.prototype.readUintBE=h.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||y(r,t,this.length);var i=this[r+--t],o=1;for(;t>0&&(o*=256);)i+=this[r+--t]*o;return i};h.prototype.readUint8=h.prototype.readUInt8=function(r,t){return r=r>>>0,t||y(r,1,this.length),this[r]};h.prototype.readUint16LE=h.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||y(r,2,this.length),this[r]|this[r+1]<<8};h.prototype.readUint16BE=h.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||y(r,2,this.length),this[r]<<8|this[r+1]};h.prototype.readUint32LE=h.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||y(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*0x1000000};h.prototype.readUint32BE=h.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||y(r,4,this.length),this[r]*0x1000000+(this[r+1]<<16|this[r+2]<<8|this[r+3])};h.prototype.readBigUInt64LE=R(function(r){r=r>>>0,D(r,"offset");var t=this[r],n=this[r+7];(t===void 0||n===void 0)&&q(r,this.length-8);var i=t+this[++r]*a(2,8)+this[++r]*a(2,16)+this[++r]*a(2,24),o=this[++r]+this[++r]*a(2,8)+this[++r]*a(2,16)+n*a(2,24);return BigInt(i)+(BigInt(o)<<BigInt(32))});h.prototype.readBigUInt64BE=R(function(r){r=r>>>0,D(r,"offset");var t=this[r],n=this[r+7];(t===void 0||n===void 0)&&q(r,this.length-8);var i=t*a(2,24)+this[++r]*a(2,16)+this[++r]*a(2,8)+this[++r],o=this[++r]*a(2,24)+this[++r]*a(2,16)+this[++r]*a(2,8)+n;return(BigInt(i)<<BigInt(32))+BigInt(o)});h.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||y(r,t,this.length);var i=this[r],o=1,u=0;for(;++u<t&&(o*=256);)i+=this[r+u]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i};h.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||y(r,t,this.length);var i=t,o=1,u=this[r+--i];for(;i>0&&(o*=256);)u+=this[r+--i]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*t)),u};h.prototype.readInt8=function(r,t){return r=r>>>0,t||y(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};h.prototype.readInt16LE=function(r,t){r=r>>>0,t||y(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|0xffff0000:n};h.prototype.readInt16BE=function(r,t){r=r>>>0,t||y(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|0xffff0000:n};h.prototype.readInt32LE=function(r,t){return r=r>>>0,t||y(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};h.prototype.readInt32BE=function(r,t){return r=r>>>0,t||y(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};h.prototype.readBigInt64LE=R(function(r){r=r>>>0,D(r,"offset");var t=this[r],n=this[r+7];(t===void 0||n===void 0)&&q(r,this.length-8);var i=this[r+4]+this[r+5]*a(2,8)+this[r+6]*a(2,16)+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(t+this[++r]*a(2,8)+this[++r]*a(2,16)+this[++r]*a(2,24))});h.prototype.readBigInt64BE=R(function(r){r=r>>>0,D(r,"offset");var t=this[r],n=this[r+7];(t===void 0||n===void 0)&&q(r,this.length-8);var i=(t<<24)+this[++r]*a(2,16)+this[++r]*a(2,8)+this[++r];return(BigInt(i)<<BigInt(32))+BigInt(this[++r]*a(2,24)+this[++r]*a(2,16)+this[++r]*a(2,8)+n)});h.prototype.readFloatLE=function(r,t){return r=r>>>0,t||y(r,4,this.length),N.read(this,r,!0,23,4)};h.prototype.readFloatBE=function(r,t){return r=r>>>0,t||y(r,4,this.length),N.read(this,r,!1,23,4)};h.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||y(r,8,this.length),N.read(this,r,!0,52,8)};h.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||y(r,8,this.length),N.read(this,r,!1,52,8)};h.prototype.writeUintLE=h.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var f=Math.pow(2,8*n)-1;w(this,r,t,n,f,0)}var o=1,u=0;for(this[t]=r&255;++u<n&&(o*=256);)this[t+u]=r/o&255;return t+n};h.prototype.writeUintBE=h.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var f=Math.pow(2,8*n)-1;w(this,r,t,n,f,0)}var o=n-1,u=1;for(this[t+o]=r&255;--o>=0&&(u*=256);)this[t+o]=r/u&255;return t+n};h.prototype.writeUint8=h.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,1,255,0),this[t]=r&255,t+1};h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,4,0xffffffff,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,4,0xffffffff,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};h.prototype.writeBigUInt64LE=R(function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Br(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});h.prototype.writeBigUInt64BE=R(function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return dr(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});h.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var c=Math.pow(2,8*n-1);w(this,r,t,n,c-1,-c)}var o=0,u=1,f=0;for(this[t]=r&255;++o<n&&(u*=256);)r<0&&f===0&&this[t+o-1]!==0&&(f=1),this[t+o]=(r/u>>0)-f&255;return t+n};h.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var c=Math.pow(2,8*n-1);w(this,r,t,n,c-1,-c)}var o=n-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+n};h.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};h.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};h.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};h.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,4,0x7fffffff,-0x80000000),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};h.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,4,0x7fffffff,-0x80000000),r<0&&(r=0xffffffff+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};h.prototype.writeBigInt64LE=R(function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Br(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});h.prototype.writeBigInt64BE=R(function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return dr(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});h.prototype.writeFloatLE=function(r,t,n){return gr(this,r,t,!0,n)};h.prototype.writeFloatBE=function(r,t,n){return gr(this,r,t,!1,n)};h.prototype.writeDoubleLE=function(r,t,n){return mr(this,r,t,!0,n)};h.prototype.writeDoubleBE=function(r,t,n){return mr(this,r,t,!1,n)};h.prototype.copy=function(r,t,n,i){if(!h.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<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),r.length-t<i-n&&(i=r.length-t+n);var o=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),o};h.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=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"&&!h.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var u=r.charCodeAt(0);(i==="utf8"&&u<128||i==="latin1")&&(r=u)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var o;if(typeof r=="number")for(o=t;o<n;++o)this[o]=r;else{var u1=h.isBuffer(r)?r:h.from(r,i),f=u1.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=u1[o%f]}return this};var b={};tr("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError);tr("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);tr("ERR_OUT_OF_RANGE",function(e,r,t){var n='The value of "'.concat(e,'" is out of range.'),i=t;return Number.isInteger(t)&&Math.abs(t)>a(2,32)?i=sr(String(t)):(typeof t==="undefined"?"undefined":_type_of(t))=="bigint"&&(i=String(t),(t>a(BigInt(2),BigInt(32))||t<-a(BigInt(2),BigInt(32)))&&(i=sr(i)),i+="n"),n+=" It must be ".concat(r,". Received ").concat(i),n},RangeError);var ut=/[^+/0-9A-Za-z-_]/g;var pt=function(){var e="0123456789abcdef",r=new Array(256);for(var t=0;t<16;++t){var n=t*16;for(var i=0;i<16;++i)r[n+i]=e[t]+e[i]}return r}()});var L,g=k(function(){L=Nr(Ar())});x();B();d();E();g();x();B();d();E();g();x();B();d();E();g();self.addEventListener("install",function(e){console.info("Installing service worker",e),e.waitUntil(caches.open("front-display").then(function(r){return r.addAll(["bundle.js","styles.css"])}))});self.addEventListener("activate",function(e){console.info("Claiming control",e),e.waitUntil(self.clients.claim())});self.addEventListener("fetch",function(e){return V(this,null,function(){return _ts_generator(this,function(_state){e.respondWith(lt(e));return[2]})})})})();/*! 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 _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 Ur=function Ur(e){var r=/\/indexed_db\/.+$/,t=e.match(r);return t?t[0]:null};var lt=function lt(e){return V(this,null,function(){var r,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:r=Ur(e.request.url);if(!!r)return[3,2];return[4,fetch(e.request)];case 1:return[2,_state.sent()];case 2:return[4,caches.match(r,{ignoreSearch:!0})];case 3:t=_state.sent();return[2,t||new Response("Not found",{status:404,statusText:"Not found"})]}})})};var Tr=Object.create;var nr=Object.defineProperty;var Cr=Object.getOwnPropertyDescriptor;var Sr=Object.getOwnPropertyNames;var _r=Object.getPrototypeOf,Lr=Object.prototype.hasOwnProperty;var a=Math.pow;var k=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 br=function(e,r,t,n){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;if(r&&typeof r=="object"||typeof r=="function")try{var _loop=function(){var i=_step.value;!Lr.call(e,i)&&i!==t&&nr(e,i,{get:function(){return r[i]},enumerable:!(n=Cr(r,i))||n.enumerable})};for(var _iterator=Sr(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 Nr=function(e,r,t){return t=e!=null?Tr(_r(e)):{},br(r||!e||!e.__esModule?nr(t,"default",{value:e,enumerable:!0}):t,e)};var V=function(e,r,t){return new Promise(function(n,i){var o=function(c){try{f(t.next(c))}catch(l){i(l)}},u=function(c){try{f(t.throw(c))}catch(l){i(l)}},f=function(c){return c.done?n(c.value):Promise.resolve(c.value).then(o,u)};f((t=t.apply(e,r)).next())})};var x=k(function(){});var B=k(function(){});var d=k(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 _,E=k(function(){_=typeof globalThis!="undefined"||typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof self!="undefined"?self:new Function("return this")()});var ur=H(function(G){"use strict";var or=function or(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 n=t===r?0:4-t%4;return[t,n]};var Mr=function Mr(e){var r=or(e),t=r[0],n=r[1];return(t+n)*3/4-n};var kr=function kr(e,r,t){return(r+t)*3/4-t};var Pr=function Pr(e){var r,t=or(e),n=t[0],i=t[1],o=new Dr(kr(e,n,i)),u=0,f=i>0?n-4:n,c;for(c=0;c<f;c+=4)r=m[e.charCodeAt(c)]<<18|m[e.charCodeAt(c+1)]<<12|m[e.charCodeAt(c+2)]<<6|m[e.charCodeAt(c+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return i===2&&(r=m[e.charCodeAt(c)]<<2|m[e.charCodeAt(c+1)]>>4,o[u++]=r&255),i===1&&(r=m[e.charCodeAt(c)]<<10|m[e.charCodeAt(c+1)]<<4|m[e.charCodeAt(c+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o};var $r=function $r(e){return F[e>>18&63]+F[e>>12&63]+F[e>>6&63]+F[e&63]};var Or=function Or(e,r,t){for(var n,i=[],o=r;o<t;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push($r(n));return i.join("")};var qr=function qr(e){for(var r,t=e.length,n=t%3,i=[],o=16383,u=0,f=t-n;u<f;u+=o)i.push(Or(e,u,u+o>f?f:u+o));return n===1?(r=e[t-1],i.push(F[r>>2]+F[r<<4&63]+"==")):n===2&&(r=(e[t-2]<<8)+e[t-1],i.push(F[r>>10]+F[r>>4&63]+F[r<<2&63]+"=")),i.join("")};x();B();d();E();g();G.byteLength=Mr;G.toByteArray=Pr;G.fromByteArray=qr;var F=[],m=[],Dr=typeof Uint8Array!="undefined"?Uint8Array:Array,X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(T=0,ir=X.length;T<ir;++T)F[T]=X[T],m[X.charCodeAt(T)]=T;var T,ir;m[45]=62;m[95]=63});var hr=H(function(z){x();B();d();E();g();z.read=function(e,r,t,n,i){var o,u,f=i*8-n-1,c=(1<<f)-1,l=c>>1,s=-7,p=t?i-1:0,S=t?-1:1,I=e[r+p];for(p+=S,o=I&(1<<-s)-1,I>>=-s,s+=f;s>0;o=o*256+e[r+p],p+=S,s-=8);for(u=o&(1<<-s)-1,o>>=-s,s+=n;s>0;u=u*256+e[r+p],p+=S,s-=8);if(o===0)o=1-l;else{if(o===c)return u?NaN:(I?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-l}return(I?-1:1)*u*Math.pow(2,o-n)};z.write=function(e,r,t,n,i,o){var u,f,c,l=o*8-i-1,s=(1<<l)-1,p=s>>1,S=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,I=n?0:o-1,j=n?1:-1,Rr=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=s):(u=Math.floor(Math.log(r)/Math.LN2),r*(c=Math.pow(2,-u))<1&&(u--,c*=2),u+p>=1?r+=S/c:r+=S*Math.pow(2,1-p),r*c>=2&&(u++,c/=2),u+p>=s?(f=0,u=s):u+p>=1?(f=(r*c-1)*Math.pow(2,i),u=u+p):(f=r*Math.pow(2,p-1)*Math.pow(2,i),u=0));i>=8;e[t+I]=f&255,I+=j,f/=256,i-=8);for(u=u<<i|f,l+=i;l>0;e[t+I]=u&255,I+=j,u/=256,l-=8);e[t+I-j]|=Rr*128}});var Ar=H(function(M){"use strict";var Gr=function Gr(){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 U=function U(e){if(e>W)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,h.prototype),r};var h=function h(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 v(e)}return lr(e,r,t)};var lr=function lr(e,r,t){if(typeof e=="string")return Yr(e,r);if(ArrayBuffer.isView(e))return jr(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(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(A(e,SharedArrayBuffer)||e&&A(e.buffer,SharedArrayBuffer)))return Z(e,r,t);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 h.from(n,r,t);var i=Hr(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return h.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 ar=function ar(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 Wr=function Wr(e,r,t){return ar(e),e<=0?U(e):r!==void 0?typeof t=="string"?U(e).fill(r,t):U(e).fill(r):U(e)};var v=function v(e){return ar(e),U(e<0?0:rr(e)|0)};var Yr=function Yr(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!h.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=yr(e,r)|0,n=U(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n};var K=function K(e){var r=e.length<0?0:rr(e.length)|0,t=U(r);for(var n=0;n<r;n+=1)t[n]=e[n]&255;return t};var jr=function jr(e){if(A(e,Uint8Array)){var r=new Uint8Array(e);return Z(r.buffer,r.byteOffset,r.byteLength)}return K(e)};var Z=function Z(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 n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,h.prototype),n};var Hr=function Hr(e){if(h.isBuffer(e)){var r=rr(e.length)|0,t=U(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||er(e.length)?U(0):K(e);if(e.type==="Buffer"&&Array.isArray(e.data))return K(e.data)};var rr=function rr(e){if(e>=W)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+W.toString(16)+" bytes");return e|0};var Vr=function Vr(e){return+e!=e&&(e=0),h.alloc(+e)};var yr=function yr(e,r){if(h.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(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,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;var i=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return Q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Fr(e).length;default:if(i)return n?-1:Q(e).length;r=(""+r).toLowerCase(),i=!0}};var Xr=function Xr(e,r,t){var n=!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 nt(this,r,t);case"utf8":case"utf-8":return xr(this,r,t);case"ascii":return tt(this,r,t);case"latin1":case"binary":return et(this,r,t);case"base64":return vr(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return it(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}};var C=function C(e,r,t){var n=e[r];e[r]=e[t],e[t]=n};var wr=function wr(e,r,t,n,i){if(e.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,er(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=h.from(r,n)),h.isBuffer(r))return r.length===0?-1:cr(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):cr(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")};var cr=function cr(e,r,t,n,i){var o=1,u=e.length,f=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,u/=2,f/=2,t/=2}function c(s,p){return o===1?s[p]:s.readUInt16BE(p*o)}var l;if(i){var s=-1;for(l=t;l<u;l++)if(c(e,l)===c(r,s===-1?0:l-s)){if(s===-1&&(s=l),l-s+1===f)return s*o}else s!==-1&&(l-=l-s),s=-1}else for(t+f>u&&(t=u-f),l=t;l>=0;l--){var s1=!0;for(var p=0;p<f;p++)if(c(e,l+p)!==c(r,p)){s1=!1;break}if(s1)return l}return-1};var zr=function zr(e,r,t,n){t=Number(t)||0;var i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;var o=r.length;n>o/2&&(n=o/2);var u;for(u=0;u<n;++u){var f=parseInt(r.substr(u*2,2),16);if(er(f))return u;e[t+u]=f}return u};var Jr=function Jr(e,r,t,n){return Y(Q(r,e.length-t),e,t,n)};var Kr=function Kr(e,r,t,n){return Y(ft(r),e,t,n)};var Zr=function Zr(e,r,t,n){return Y(Fr(r),e,t,n)};var Qr=function Qr(e,r,t,n){return Y(ct(r,e.length-t),e,t,n)};var vr=function vr(e,r,t){return r===0&&t===e.length?J.fromByteArray(e):J.fromByteArray(e.slice(r,t))};var xr=function xr(e,r,t){t=Math.min(e.length,t);var n=[],i=r;for(;i<t;){var o=e[i],u=null,f=o>239?4:o>223?3:o>191?2:1;if(i+f<=t){var c=void 0,l=void 0,s=void 0,p=void 0;switch(f){case 1:o<128&&(u=o);break;case 2:c=e[i+1],(c&192)===128&&(p=(o&31)<<6|c&63,p>127&&(u=p));break;case 3:c=e[i+1],l=e[i+2],(c&192)===128&&(l&192)===128&&(p=(o&15)<<12|(c&63)<<6|l&63,p>2047&&(p<55296||p>57343)&&(u=p));break;case 4:c=e[i+1],l=e[i+2],s=e[i+3],(c&192)===128&&(l&192)===128&&(s&192)===128&&(p=(o&15)<<18|(c&63)<<12|(l&63)<<6|s&63,p>65535&&p<1114112&&(u=p))}}u===null?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=f}return rt(n)};var rt=function rt(e){var r=e.length;if(r<=pr)return String.fromCharCode.apply(String,e);var t="",n=0;for(;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=pr));return t};var tt=function tt(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n};var et=function et(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n};var nt=function nt(e,r,t){var n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);var i="";for(var o=r;o<t;++o)i+=pt[e[o]];return i};var it=function it(e,r,t){var n=e.slice(r,t),i="";for(var o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i};var y=function y(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 w=function w(e,r,t,n,i,o){if(!h.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")};var Br=function Br(e,r,t,n,i){Ir(r,n,i,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 dr=function dr(e,r,t,n,i){Ir(r,n,i,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 Er=function Er(e,r,t,n,i,o){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")};var gr=function gr(e,r,t,n,i){return r=+r,t=t>>>0,i||Er(e,r,t,4,34028234663852886e22,-34028234663852886e22),N.write(e,r,t,n,23,4),t+4};var mr=function mr(e,r,t,n,i){return r=+r,t=t>>>0,i||Er(e,r,t,8,17976931348623157e292,-17976931348623157e292),N.write(e,r,t,n,52,8),t+8};var tr=function tr(e,r,t){b[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(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}(t)};var sr=function sr(e){var r="",t=e.length,n=e[0]==="-"?1:0;for(;t>=n+4;t-=3)r="_".concat(e.slice(t-3,t)).concat(r);return"".concat(e.slice(0,t)).concat(r)};var ot=function ot(e,r,t){D(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&q(r,e.length-(t+1))};var Ir=function Ir(e,r,t,n,i,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 b.ERR_OUT_OF_RANGE("value",f,e)}ot(n,i,o)};var D=function D(e,r){if(typeof e!="number")throw new b.ERR_INVALID_ARG_TYPE(r,"number",e)};var q=function q(e,r,t){throw Math.floor(e)!==e?(D(e,t),new b.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new b.ERR_BUFFER_OUT_OF_BOUNDS:new b.ERR_OUT_OF_RANGE(t||"offset",">= ".concat(t?1:0," and <= ").concat(r),e)};var ht=function ht(e){if(e=e.split("=")[0],e=e.trim().replace(ut,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e};var Q=function Q(e,r){r=r||1/0;var t,n=e.length,i=null,o=[];for(var u=0;u<n;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=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 ft=function ft(e){var r=[];for(var t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r};var ct=function ct(e,r){var t,n,i,o=[];for(var u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),n=t>>8,i=t%256,o.push(i),o.push(n);return o};var Fr=function Fr(e){return J.toByteArray(ht(e))};var Y=function Y(e,r,t,n){var i;for(i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i};var A=function A(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name};var er=function er(e){return e!==e};var R=function R(e){return typeof BigInt=="undefined"?st:e};var st=function st(){throw new Error("BigInt not supported")};x();B();d();E();g();var J=ur(),N=hr(),fr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;M.Buffer=h;M.SlowBuffer=Vr;M.INSPECT_MAX_BYTES=50;var W=2147483647;M.kMaxLength=W;h.TYPED_ARRAY_SUPPORT=Gr();!h.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(h.prototype,"parent",{enumerable:!0,get:function get(){if(h.isBuffer(this))return this.buffer}});Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function get(){if(h.isBuffer(this))return this.byteOffset}});h.poolSize=8192;h.from=function(e,r,t){return lr(e,r,t)};Object.setPrototypeOf(h.prototype,Uint8Array.prototype);Object.setPrototypeOf(h,Uint8Array);h.alloc=function(e,r,t){return Wr(e,r,t)};h.allocUnsafe=function(e){return v(e)};h.allocUnsafeSlow=function(e){return v(e)};h.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==h.prototype};h.compare=function(r,t){if(A(r,Uint8Array)&&(r=h.from(r,r.offset,r.byteLength)),A(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),!h.isBuffer(r)||!h.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;var n=r.length,i=t.length;for(var o=0,u=Math.min(n,i);o<u;++o)if(r[o]!==t[o]){n=r[o],i=t[o];break}return n<i?-1:i<n?1:0};h.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}};h.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return h.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;var i=h.allocUnsafe(t),o=0;for(n=0;n<r.length;++n){var u=r[n];if(A(u,Uint8Array))o+u.length>i.length?(h.isBuffer(u)||(u=h.from(u)),u.copy(i,o)):Uint8Array.prototype.set.call(i,u,o);else if(h.isBuffer(u))u.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return i};h.byteLength=yr;h.prototype._isBuffer=!0;h.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)C(this,t,t+1);return this};h.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)C(this,t,t+3),C(this,t+1,t+2);return this};h.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)C(this,t,t+7),C(this,t+1,t+6),C(this,t+2,t+5),C(this,t+3,t+4);return this};h.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?xr(this,0,r):Xr.apply(this,arguments)};h.prototype.toLocaleString=h.prototype.toString;h.prototype.equals=function(r){if(!h.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:h.compare(this,r)===0};h.prototype.inspect=function(){var r="",t=M.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};fr&&(h.prototype[fr]=h.prototype.inspect);h.prototype.compare=function(r,t,n,i,o){if(A(r,Uint8Array)&&(r=h.from(r,r.offset,r.byteLength)),!h.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),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),t<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;var u=o-i,f=n-t,c=Math.min(u,f),l=this.slice(i,o),s=r.slice(t,n);for(var p=0;p<c;++p)if(l[p]!==s[p]){u=l[p],f=s[p];break}return u<f?-1:f<u?1:0};h.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1};h.prototype.indexOf=function(r,t,n){return wr(this,r,t,n,!0)};h.prototype.lastIndexOf=function(r,t,n){return wr(this,r,t,n,!1)};h.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>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-t;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");var u=!1;for(;;)switch(i){case"hex":return zr(this,r,t,n);case"utf8":case"utf-8":return Jr(this,r,t,n);case"ascii":case"latin1":case"binary":return Kr(this,r,t,n);case"base64":return Zr(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qr(this,r,t,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}};h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var pr=4096;h.prototype.slice=function(r,t){var n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);var i=this.subarray(r,t);return Object.setPrototypeOf(i,h.prototype),i};h.prototype.readUintLE=h.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||y(r,t,this.length);var i=this[r],o=1,u=0;for(;++u<t&&(o*=256);)i+=this[r+u]*o;return i};h.prototype.readUintBE=h.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||y(r,t,this.length);var i=this[r+--t],o=1;for(;t>0&&(o*=256);)i+=this[r+--t]*o;return i};h.prototype.readUint8=h.prototype.readUInt8=function(r,t){return r=r>>>0,t||y(r,1,this.length),this[r]};h.prototype.readUint16LE=h.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||y(r,2,this.length),this[r]|this[r+1]<<8};h.prototype.readUint16BE=h.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||y(r,2,this.length),this[r]<<8|this[r+1]};h.prototype.readUint32LE=h.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||y(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};h.prototype.readUint32BE=h.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||y(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};h.prototype.readBigUInt64LE=R(function(r){r=r>>>0,D(r,"offset");var t=this[r],n=this[r+7];(t===void 0||n===void 0)&&q(r,this.length-8);var i=t+this[++r]*a(2,8)+this[++r]*a(2,16)+this[++r]*a(2,24),o=this[++r]+this[++r]*a(2,8)+this[++r]*a(2,16)+n*a(2,24);return BigInt(i)+(BigInt(o)<<BigInt(32))});h.prototype.readBigUInt64BE=R(function(r){r=r>>>0,D(r,"offset");var t=this[r],n=this[r+7];(t===void 0||n===void 0)&&q(r,this.length-8);var i=t*a(2,24)+this[++r]*a(2,16)+this[++r]*a(2,8)+this[++r],o=this[++r]*a(2,24)+this[++r]*a(2,16)+this[++r]*a(2,8)+n;return(BigInt(i)<<BigInt(32))+BigInt(o)});h.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||y(r,t,this.length);var i=this[r],o=1,u=0;for(;++u<t&&(o*=256);)i+=this[r+u]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i};h.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||y(r,t,this.length);var i=t,o=1,u=this[r+--i];for(;i>0&&(o*=256);)u+=this[r+--i]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*t)),u};h.prototype.readInt8=function(r,t){return r=r>>>0,t||y(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};h.prototype.readInt16LE=function(r,t){r=r>>>0,t||y(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};h.prototype.readInt16BE=function(r,t){r=r>>>0,t||y(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};h.prototype.readInt32LE=function(r,t){return r=r>>>0,t||y(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};h.prototype.readInt32BE=function(r,t){return r=r>>>0,t||y(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};h.prototype.readBigInt64LE=R(function(r){r=r>>>0,D(r,"offset");var t=this[r],n=this[r+7];(t===void 0||n===void 0)&&q(r,this.length-8);var i=this[r+4]+this[r+5]*a(2,8)+this[r+6]*a(2,16)+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(t+this[++r]*a(2,8)+this[++r]*a(2,16)+this[++r]*a(2,24))});h.prototype.readBigInt64BE=R(function(r){r=r>>>0,D(r,"offset");var t=this[r],n=this[r+7];(t===void 0||n===void 0)&&q(r,this.length-8);var i=(t<<24)+this[++r]*a(2,16)+this[++r]*a(2,8)+this[++r];return(BigInt(i)<<BigInt(32))+BigInt(this[++r]*a(2,24)+this[++r]*a(2,16)+this[++r]*a(2,8)+n)});h.prototype.readFloatLE=function(r,t){return r=r>>>0,t||y(r,4,this.length),N.read(this,r,!0,23,4)};h.prototype.readFloatBE=function(r,t){return r=r>>>0,t||y(r,4,this.length),N.read(this,r,!1,23,4)};h.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||y(r,8,this.length),N.read(this,r,!0,52,8)};h.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||y(r,8,this.length),N.read(this,r,!1,52,8)};h.prototype.writeUintLE=h.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var f=Math.pow(2,8*n)-1;w(this,r,t,n,f,0)}var o=1,u=0;for(this[t]=r&255;++u<n&&(o*=256);)this[t+u]=r/o&255;return t+n};h.prototype.writeUintBE=h.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var f=Math.pow(2,8*n)-1;w(this,r,t,n,f,0)}var o=n-1,u=1;for(this[t+o]=r&255;--o>=0&&(u*=256);)this[t+o]=r/u&255;return t+n};h.prototype.writeUint8=h.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,1,255,0),this[t]=r&255,t+1};h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||w(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};h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||w(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};h.prototype.writeBigUInt64LE=R(function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Br(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});h.prototype.writeBigUInt64BE=R(function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return dr(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});h.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var c=Math.pow(2,8*n-1);w(this,r,t,n,c-1,-c)}var o=0,u=1,f=0;for(this[t]=r&255;++o<n&&(u*=256);)r<0&&f===0&&this[t+o-1]!==0&&(f=1),this[t+o]=(r/u>>0)-f&255;return t+n};h.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var c=Math.pow(2,8*n-1);w(this,r,t,n,c-1,-c)}var o=n-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+n};h.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};h.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};h.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};h.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||w(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};h.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||w(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};h.prototype.writeBigInt64LE=R(function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Br(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});h.prototype.writeBigInt64BE=R(function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return dr(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});h.prototype.writeFloatLE=function(r,t,n){return gr(this,r,t,!0,n)};h.prototype.writeFloatBE=function(r,t,n){return gr(this,r,t,!1,n)};h.prototype.writeDoubleLE=function(r,t,n){return mr(this,r,t,!0,n)};h.prototype.writeDoubleBE=function(r,t,n){return mr(this,r,t,!1,n)};h.prototype.copy=function(r,t,n,i){if(!h.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<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),r.length-t<i-n&&(i=r.length-t+n);var o=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),o};h.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=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"&&!h.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var u=r.charCodeAt(0);(i==="utf8"&&u<128||i==="latin1")&&(r=u)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var o;if(typeof r=="number")for(o=t;o<n;++o)this[o]=r;else{var u1=h.isBuffer(r)?r:h.from(r,i),f=u1.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=u1[o%f]}return this};var b={};tr("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError);tr("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);tr("ERR_OUT_OF_RANGE",function(e,r,t){var n='The value of "'.concat(e,'" is out of range.'),i=t;return Number.isInteger(t)&&Math.abs(t)>a(2,32)?i=sr(String(t)):(typeof t==="undefined"?"undefined":_type_of(t))=="bigint"&&(i=String(t),(t>a(BigInt(2),BigInt(32))||t<-a(BigInt(2),BigInt(32)))&&(i=sr(i)),i+="n"),n+=" It must be ".concat(r,". Received ").concat(i),n},RangeError);var ut=/[^+/0-9A-Za-z-_]/g;var pt=function(){var e="0123456789abcdef",r=new Array(256);for(var t=0;t<16;++t){var n=t*16;for(var i=0;i<16;++i)r[n+i]=e[t]+e[i]}return r}()});var L,g=k(function(){L=Nr(Ar())});x();B();d();E();g();x();B();d();E();g();x();B();d();E();g();self.addEventListener("install",function(e){console.info("Installing service worker",e),e.waitUntil(caches.open("front-display").then(function(r){return r.addAll(["bundle.js","styles.css"])}))});self.addEventListener("activate",function(e){console.info("Claiming control",e),e.waitUntil(self.clients.claim())});self.addEventListener("fetch",function(e){return V(this,null,function(){return _ts_generator(this,function(_state){e.respondWith(lt(e));return[2]})})})})();/*! Bundled license information:
|
|
2
2
|
|
|
3
3
|
ieee754/index.js:
|
|
4
4
|
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
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 _call_super(_this,derived,args){derived=_get_prototype_of(derived);return _possible_constructor_return(_this,_is_native_reflect_construct()?Reflect.construct(derived,args||[],_get_prototype_of(_this).constructor):derived.apply(_this,args))}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(){try{var result=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(_){}return(_is_native_reflect_construct=function(){return!!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 I=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==="undefined"?"undefined":_type_of(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=I(function(){});var w=I(function(){});var x=I(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=I(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=B[e.charCodeAt(s)]<<18|B[e.charCodeAt(s+1)]<<12|B[e.charCodeAt(s+2)]<<6|B[e.charCodeAt(s+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return n===2&&(r=B[e.charCodeAt(s)]<<2|B[e.charCodeAt(s+1)]>>4,o[u++]=r&255),n===1&&(r=B[e.charCodeAt(s)]<<10|B[e.charCodeAt(s+1)]<<4|B[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&0xff0000)+(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=[],B=[],st=typeof Uint8Array!="undefined"?Uint8Array:Array,Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(_=0,mr=Z.length;_<mr;++_)U[_]=Z[_],B[Z.charCodeAt(_)]=_;var _,mr;B[45]=62;B[95]=63});var Br=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 Bt=function Bt(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 It=function It(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 D=function D(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>0x7fffffff?t=0x7fffffff:t<-0x80000000&&(t=-0x80000000),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(0xffffffff));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(0xffffffff));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(0xffffffff));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(0xffffffff));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 _r=function _r(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 Dr=function Dr(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]=/*#__PURE__*/function(t){_inherits(_class,t);function _class(){_class_call_check(this,_class);var _this;_this=_call_super(this,_class),Object.defineProperty(_this,"message",{value:r.apply(_this,arguments),writable:!0,configurable:!0}),_this.name="".concat(_this.name," [").concat(e,"]"),_this.stack,delete _this.name;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 _t=function _t(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)}_t(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(Dt,""),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=Br(),Ir=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;W.Buffer=p;W.SlowBuffer=Bt;W.INSPECT_MAX_BYTES=50;var q=0x7fffffff;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)D(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)D(this,t,t+3),D(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)D(this,t,t+7),D(this,t+1,t+6),D(this,t+2,t+5),D(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):It.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+">"};Ir&&(p.prototype[Ir]=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]*0x1000000};p.prototype.readUint32BE=p.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||g(r,4,this.length),this[r]*0x1000000+(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|0xffff0000: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|0xffff0000: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,0xffffffff,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,0xffffffff,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,0x7fffffff,-0x80000000),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,0x7fffffff,-0x80000000),r<0&&(r=0xffffffff+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 _r(this,r,t,!0,i)};p.prototype.writeFloatBE=function(r,t,i){return _r(this,r,t,!1,i)};p.prototype.writeDoubleLE=function(r,t,i){return Dr(this,r,t,!0,i)};p.prototype.writeDoubleBE=function(r,t,i){return Dr(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 Dt=/[^+/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=I(function(){F=xr(Or())});var $r,Wr,Hr=I(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=I(function(){y();w();x();d();m();pr="Internal.Timing.ShowNext"});var Yr,b,jr=I(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=I(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=/*#__PURE__*/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=I(function(){y();w();x();d();m();Xr()});var Zr,Qr=I(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 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 I=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=I(function(){});var w=I(function(){});var x=I(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=I(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=B[e.charCodeAt(s)]<<18|B[e.charCodeAt(s+1)]<<12|B[e.charCodeAt(s+2)]<<6|B[e.charCodeAt(s+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return n===2&&(r=B[e.charCodeAt(s)]<<2|B[e.charCodeAt(s+1)]>>4,o[u++]=r&255),n===1&&(r=B[e.charCodeAt(s)]<<10|B[e.charCodeAt(s+1)]<<4|B[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=[],B=[],st=typeof Uint8Array!="undefined"?Uint8Array:Array,Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(_=0,mr=Z.length;_<mr;++_)U[_]=Z[_],B[Z.charCodeAt(_)]=_;var _,mr;B[45]=62;B[95]=63});var Br=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 Bt=function Bt(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 It=function It(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 D=function D(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 _r=function _r(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 Dr=function Dr(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 _t=function _t(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)}_t(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(Dt,""),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=Br(),Ir=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;W.Buffer=p;W.SlowBuffer=Bt;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)D(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)D(this,t,t+3),D(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)D(this,t,t+7),D(this,t+1,t+6),D(this,t+2,t+5),D(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):It.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+">"};Ir&&(p.prototype[Ir]=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 _r(this,r,t,!0,i)};p.prototype.writeFloatBE=function(r,t,i){return _r(this,r,t,!1,i)};p.prototype.writeDoubleLE=function(r,t,i){return Dr(this,r,t,!0,i)};p.prototype.writeDoubleBE=function(r,t,i){return Dr(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 Dt=/[^+/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=I(function(){F=xr(Or())});var $r,Wr,Hr=I(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=I(function(){y();w();x();d();m();pr="Internal.Timing.ShowNext"});var Yr,b,jr=I(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=I(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=I(function(){y();w();x();d();m();Xr()});var Zr,Qr=I(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:
|
|
2
2
|
|
|
3
3
|
ieee754/index.js:
|
|
4
4
|
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signageos/front-display",
|
|
3
|
-
"version": "14.12.
|
|
3
|
+
"version": "14.12.3",
|
|
4
4
|
"main": "dist/bundle.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"develop": "check-engine && node tools/build.mjs --serve",
|
|
17
17
|
"docker": "docker compose up -d && docker compose exec app bash",
|
|
18
18
|
"prebuild": "check-engine && mkdir -p dist es6 && npm run clean && npm rebuild @serialport/bindings-cpp",
|
|
19
|
-
"prepare": "
|
|
19
|
+
"prepare": "npx husky install && git config blame.ignoreRevsFile .git-blame-ignore-revs",
|
|
20
20
|
"test": "check-engine && env NODE_ENV=test ISOMORPHIC_TARGET=node mocha --opts mocha.opts",
|
|
21
21
|
"test:coverage": "check-engine && env NODE_ENV=test ISOMORPHIC_TARGET=node c8 mocha --opts mocha.opts",
|
|
22
22
|
"test-browser": "check-engine && karma start",
|
|
@@ -132,6 +132,19 @@
|
|
|
132
132
|
"engine-strict": false,
|
|
133
133
|
"author": "Michael Zabka <zabka.michael@gmail.com>",
|
|
134
134
|
"license": "MIT",
|
|
135
|
+
"overrides": {
|
|
136
|
+
"@swc/core": "1.5.7",
|
|
137
|
+
"@swc/core-darwin-arm64": "1.5.7",
|
|
138
|
+
"@swc/core-darwin-x64": "1.5.7",
|
|
139
|
+
"@swc/core-linux-arm-gnueabihf": "1.5.7",
|
|
140
|
+
"@swc/core-linux-arm64-gnu": "1.5.7",
|
|
141
|
+
"@swc/core-linux-arm64-musl": "1.5.7",
|
|
142
|
+
"@swc/core-linux-x64-gnu": "1.5.7",
|
|
143
|
+
"@swc/core-linux-x64-musl": "1.5.7",
|
|
144
|
+
"@swc/core-win32-arm64-msvc": "1.5.7",
|
|
145
|
+
"@swc/core-win32-ia32-msvc": "1.5.7",
|
|
146
|
+
"@swc/core-win32-x64-msvc": "1.5.7"
|
|
147
|
+
},
|
|
135
148
|
"publishConfig": {
|
|
136
149
|
"registry": "https://registry.npmjs.org/",
|
|
137
150
|
"access": "public"
|