diff --git a/docs/assets/index-8189e743.js b/docs/assets/index-2d99f4e6.js similarity index 91% rename from docs/assets/index-8189e743.js rename to docs/assets/index-2d99f4e6.js index 8b9469a..94fe3fc 100644 --- a/docs/assets/index-8189e743.js +++ b/docs/assets/index-2d99f4e6.js @@ -21,8 +21,8 @@ object-assign * * @author Feross Aboukhadijeh * @license MIT - */(function(b){const _=base64Js,d=ieee754,k=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;b.Buffer=tt,b.SlowBuffer=ct,b.INSPECT_MAX_BYTES=50;const j=2147483647;b.kMaxLength=j,tt.TYPED_ARRAY_SUPPORT=$(),!tt.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function $(){try{const bt=new Uint8Array(1),pt={foo:function(){return 42}};return Object.setPrototypeOf(pt,Uint8Array.prototype),Object.setPrototypeOf(bt,pt),bt.foo()===42}catch{return!1}}Object.defineProperty(tt.prototype,"parent",{enumerable:!0,get:function(){if(tt.isBuffer(this))return this.buffer}}),Object.defineProperty(tt.prototype,"offset",{enumerable:!0,get:function(){if(tt.isBuffer(this))return this.byteOffset}});function et(bt){if(bt>j)throw new RangeError('The value "'+bt+'" is invalid for option "size"');const pt=new Uint8Array(bt);return Object.setPrototypeOf(pt,tt.prototype),pt}function tt(bt,pt,yt){if(typeof bt=="number"){if(typeof pt=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return at(bt)}return rt(bt,pt,yt)}tt.poolSize=8192;function rt(bt,pt,yt){if(typeof bt=="string")return it(bt,pt);if(ArrayBuffer.isView(bt))return ut(bt);if(bt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof bt);if(Nn(bt,ArrayBuffer)||bt&&Nn(bt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Nn(bt,SharedArrayBuffer)||bt&&Nn(bt.buffer,SharedArrayBuffer)))return ht(bt,pt,yt);if(typeof bt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Ut=bt.valueOf&&bt.valueOf();if(Ut!=null&&Ut!==bt)return tt.from(Ut,pt,yt);const an=ft(bt);if(an)return an;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof bt[Symbol.toPrimitive]=="function")return tt.from(bt[Symbol.toPrimitive]("string"),pt,yt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof bt)}tt.from=function(bt,pt,yt){return rt(bt,pt,yt)},Object.setPrototypeOf(tt.prototype,Uint8Array.prototype),Object.setPrototypeOf(tt,Uint8Array);function nt(bt){if(typeof bt!="number")throw new TypeError('"size" argument must be of type number');if(bt<0)throw new RangeError('The value "'+bt+'" is invalid for option "size"')}function ot(bt,pt,yt){return nt(bt),bt<=0?et(bt):pt!==void 0?typeof yt=="string"?et(bt).fill(pt,yt):et(bt).fill(pt):et(bt)}tt.alloc=function(bt,pt,yt){return ot(bt,pt,yt)};function at(bt){return nt(bt),et(bt<0?0:lt(bt)|0)}tt.allocUnsafe=function(bt){return at(bt)},tt.allocUnsafeSlow=function(bt){return at(bt)};function it(bt,pt){if((typeof pt!="string"||pt==="")&&(pt="utf8"),!tt.isEncoding(pt))throw new TypeError("Unknown encoding: "+pt);const yt=gt(bt,pt)|0;let Ut=et(yt);const an=Ut.write(bt,pt);return an!==yt&&(Ut=Ut.slice(0,an)),Ut}function dt(bt){const pt=bt.length<0?0:lt(bt.length)|0,yt=et(pt);for(let Ut=0;Ut=j)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+j.toString(16)+" bytes");return bt|0}function ct(bt){return+bt!=bt&&(bt=0),tt.alloc(+bt)}tt.isBuffer=function(pt){return pt!=null&&pt._isBuffer===!0&&pt!==tt.prototype},tt.compare=function(pt,yt){if(Nn(pt,Uint8Array)&&(pt=tt.from(pt,pt.offset,pt.byteLength)),Nn(yt,Uint8Array)&&(yt=tt.from(yt,yt.offset,yt.byteLength)),!tt.isBuffer(pt)||!tt.isBuffer(yt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(pt===yt)return 0;let Ut=pt.length,an=yt.length;for(let sn=0,Sn=Math.min(Ut,an);snan.length?(tt.isBuffer(Sn)||(Sn=tt.from(Sn)),Sn.copy(an,sn)):Uint8Array.prototype.set.call(an,Sn,sn);else if(tt.isBuffer(Sn))Sn.copy(an,sn);else throw new TypeError('"list" argument must be an Array of Buffers');sn+=Sn.length}return an};function gt(bt,pt){if(tt.isBuffer(bt))return bt.length;if(ArrayBuffer.isView(bt)||Nn(bt,ArrayBuffer))return bt.byteLength;if(typeof bt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof bt);const yt=bt.length,Ut=arguments.length>2&&arguments[2]===!0;if(!Ut&&yt===0)return 0;let an=!1;for(;;)switch(pt){case"ascii":case"latin1":case"binary":return yt;case"utf8":case"utf-8":return Fn(bt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return yt*2;case"hex":return yt>>>1;case"base64":return Wn(bt).length;default:if(an)return Ut?-1:Fn(bt).length;pt=(""+pt).toLowerCase(),an=!0}}tt.byteLength=gt;function st(bt,pt,yt){let Ut=!1;if((pt===void 0||pt<0)&&(pt=0),pt>this.length||((yt===void 0||yt>this.length)&&(yt=this.length),yt<=0)||(yt>>>=0,pt>>>=0,yt<=pt))return"";for(bt||(bt="utf8");;)switch(bt){case"hex":return nn(this,pt,yt);case"utf8":case"utf-8":return Ot(this,pt,yt);case"ascii":return Zt(this,pt,yt);case"latin1":case"binary":return rn(this,pt,yt);case"base64":return Et(this,pt,yt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qt(this,pt,yt);default:if(Ut)throw new TypeError("Unknown encoding: "+bt);bt=(bt+"").toLowerCase(),Ut=!0}}tt.prototype._isBuffer=!0;function Ct(bt,pt,yt){const Ut=bt[pt];bt[pt]=bt[yt],bt[yt]=Ut}tt.prototype.swap16=function(){const pt=this.length;if(pt%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let yt=0;ytyt&&(pt+=" ... "),""},k&&(tt.prototype[k]=tt.prototype.inspect),tt.prototype.compare=function(pt,yt,Ut,an,sn){if(Nn(pt,Uint8Array)&&(pt=tt.from(pt,pt.offset,pt.byteLength)),!tt.isBuffer(pt))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof pt);if(yt===void 0&&(yt=0),Ut===void 0&&(Ut=pt?pt.length:0),an===void 0&&(an=0),sn===void 0&&(sn=this.length),yt<0||Ut>pt.length||an<0||sn>this.length)throw new RangeError("out of range index");if(an>=sn&&yt>=Ut)return 0;if(an>=sn)return-1;if(yt>=Ut)return 1;if(yt>>>=0,Ut>>>=0,an>>>=0,sn>>>=0,this===pt)return 0;let Sn=sn-an,or=Ut-yt;const Rn=Math.min(Sn,or),Xn=this.slice(an,sn),$n=pt.slice(yt,Ut);for(let ar=0;ar2147483647?yt=2147483647:yt<-2147483648&&(yt=-2147483648),yt=+yt,zn(yt)&&(yt=an?0:bt.length-1),yt<0&&(yt=bt.length+yt),yt>=bt.length){if(an)return-1;yt=bt.length-1}else if(yt<0)if(an)yt=0;else return-1;if(typeof pt=="string"&&(pt=tt.from(pt,Ut)),tt.isBuffer(pt))return pt.length===0?-1:wt(bt,pt,yt,Ut,an);if(typeof pt=="number")return pt=pt&255,typeof Uint8Array.prototype.indexOf=="function"?an?Uint8Array.prototype.indexOf.call(bt,pt,yt):Uint8Array.prototype.lastIndexOf.call(bt,pt,yt):wt(bt,[pt],yt,Ut,an);throw new TypeError("val must be string, number or Buffer")}function wt(bt,pt,yt,Ut,an){let sn=1,Sn=bt.length,or=pt.length;if(Ut!==void 0&&(Ut=String(Ut).toLowerCase(),Ut==="ucs2"||Ut==="ucs-2"||Ut==="utf16le"||Ut==="utf-16le")){if(bt.length<2||pt.length<2)return-1;sn=2,Sn/=2,or/=2,yt/=2}function Rn($n,ar){return sn===1?$n[ar]:$n.readUInt16BE(ar*sn)}let Xn;if(an){let $n=-1;for(Xn=yt;XnSn&&(yt=Sn-or),Xn=yt;Xn>=0;Xn--){let $n=!0;for(let ar=0;aran&&(Ut=an)):Ut=an;const sn=pt.length;Ut>sn/2&&(Ut=sn/2);let Sn;for(Sn=0;Sn>>0,isFinite(Ut)?(Ut=Ut>>>0,an===void 0&&(an="utf8")):(an=Ut,Ut=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const sn=this.length-yt;if((Ut===void 0||Ut>sn)&&(Ut=sn),pt.length>0&&(Ut<0||yt<0)||yt>this.length)throw new RangeError("Attempt to write outside buffer bounds");an||(an="utf8");let Sn=!1;for(;;)switch(an){case"hex":return Mt(this,pt,yt,Ut);case"utf8":case"utf-8":return kt(this,pt,yt,Ut);case"ascii":case"latin1":case"binary":return _t(this,pt,yt,Ut);case"base64":return Tt(this,pt,yt,Ut);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return At(this,pt,yt,Ut);default:if(Sn)throw new TypeError("Unknown encoding: "+an);an=(""+an).toLowerCase(),Sn=!0}},tt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Et(bt,pt,yt){return pt===0&&yt===bt.length?_.fromByteArray(bt):_.fromByteArray(bt.slice(pt,yt))}function Ot(bt,pt,yt){yt=Math.min(bt.length,yt);const Ut=[];let an=pt;for(;an239?4:sn>223?3:sn>191?2:1;if(an+or<=yt){let Rn,Xn,$n,ar;switch(or){case 1:sn<128&&(Sn=sn);break;case 2:Rn=bt[an+1],(Rn&192)===128&&(ar=(sn&31)<<6|Rn&63,ar>127&&(Sn=ar));break;case 3:Rn=bt[an+1],Xn=bt[an+2],(Rn&192)===128&&(Xn&192)===128&&(ar=(sn&15)<<12|(Rn&63)<<6|Xn&63,ar>2047&&(ar<55296||ar>57343)&&(Sn=ar));break;case 4:Rn=bt[an+1],Xn=bt[an+2],$n=bt[an+3],(Rn&192)===128&&(Xn&192)===128&&($n&192)===128&&(ar=(sn&15)<<18|(Rn&63)<<12|(Xn&63)<<6|$n&63,ar>65535&&ar<1114112&&(Sn=ar))}}Sn===null?(Sn=65533,or=1):Sn>65535&&(Sn-=65536,Ut.push(Sn>>>10&1023|55296),Sn=56320|Sn&1023),Ut.push(Sn),an+=or}return Pt(Ut)}const Lt=4096;function Pt(bt){const pt=bt.length;if(pt<=Lt)return String.fromCharCode.apply(String,bt);let yt="",Ut=0;for(;UtUt)&&(yt=Ut);let an="";for(let sn=pt;snUt&&(pt=Ut),yt<0?(yt+=Ut,yt<0&&(yt=0)):yt>Ut&&(yt=Ut),ytyt)throw new RangeError("Trying to access beyond buffer length")}tt.prototype.readUintLE=tt.prototype.readUIntLE=function(pt,yt,Ut){pt=pt>>>0,yt=yt>>>0,Ut||Vt(pt,yt,this.length);let an=this[pt],sn=1,Sn=0;for(;++Sn>>0,yt=yt>>>0,Ut||Vt(pt,yt,this.length);let an=this[pt+--yt],sn=1;for(;yt>0&&(sn*=256);)an+=this[pt+--yt]*sn;return an},tt.prototype.readUint8=tt.prototype.readUInt8=function(pt,yt){return pt=pt>>>0,yt||Vt(pt,1,this.length),this[pt]},tt.prototype.readUint16LE=tt.prototype.readUInt16LE=function(pt,yt){return pt=pt>>>0,yt||Vt(pt,2,this.length),this[pt]|this[pt+1]<<8},tt.prototype.readUint16BE=tt.prototype.readUInt16BE=function(pt,yt){return pt=pt>>>0,yt||Vt(pt,2,this.length),this[pt]<<8|this[pt+1]},tt.prototype.readUint32LE=tt.prototype.readUInt32LE=function(pt,yt){return pt=pt>>>0,yt||Vt(pt,4,this.length),(this[pt]|this[pt+1]<<8|this[pt+2]<<16)+this[pt+3]*16777216},tt.prototype.readUint32BE=tt.prototype.readUInt32BE=function(pt,yt){return pt=pt>>>0,yt||Vt(pt,4,this.length),this[pt]*16777216+(this[pt+1]<<16|this[pt+2]<<8|this[pt+3])},tt.prototype.readBigUInt64LE=bn(function(pt){pt=pt>>>0,vn(pt,"offset");const yt=this[pt],Ut=this[pt+7];(yt===void 0||Ut===void 0)&&En(pt,this.length-8);const an=yt+this[++pt]*2**8+this[++pt]*2**16+this[++pt]*2**24,sn=this[++pt]+this[++pt]*2**8+this[++pt]*2**16+Ut*2**24;return BigInt(an)+(BigInt(sn)<>>0,vn(pt,"offset");const yt=this[pt],Ut=this[pt+7];(yt===void 0||Ut===void 0)&&En(pt,this.length-8);const an=yt*2**24+this[++pt]*2**16+this[++pt]*2**8+this[++pt],sn=this[++pt]*2**24+this[++pt]*2**16+this[++pt]*2**8+Ut;return(BigInt(an)<>>0,yt=yt>>>0,Ut||Vt(pt,yt,this.length);let an=this[pt],sn=1,Sn=0;for(;++Sn=sn&&(an-=Math.pow(2,8*yt)),an},tt.prototype.readIntBE=function(pt,yt,Ut){pt=pt>>>0,yt=yt>>>0,Ut||Vt(pt,yt,this.length);let an=yt,sn=1,Sn=this[pt+--an];for(;an>0&&(sn*=256);)Sn+=this[pt+--an]*sn;return sn*=128,Sn>=sn&&(Sn-=Math.pow(2,8*yt)),Sn},tt.prototype.readInt8=function(pt,yt){return pt=pt>>>0,yt||Vt(pt,1,this.length),this[pt]&128?(255-this[pt]+1)*-1:this[pt]},tt.prototype.readInt16LE=function(pt,yt){pt=pt>>>0,yt||Vt(pt,2,this.length);const Ut=this[pt]|this[pt+1]<<8;return Ut&32768?Ut|4294901760:Ut},tt.prototype.readInt16BE=function(pt,yt){pt=pt>>>0,yt||Vt(pt,2,this.length);const Ut=this[pt+1]|this[pt]<<8;return Ut&32768?Ut|4294901760:Ut},tt.prototype.readInt32LE=function(pt,yt){return pt=pt>>>0,yt||Vt(pt,4,this.length),this[pt]|this[pt+1]<<8|this[pt+2]<<16|this[pt+3]<<24},tt.prototype.readInt32BE=function(pt,yt){return pt=pt>>>0,yt||Vt(pt,4,this.length),this[pt]<<24|this[pt+1]<<16|this[pt+2]<<8|this[pt+3]},tt.prototype.readBigInt64LE=bn(function(pt){pt=pt>>>0,vn(pt,"offset");const yt=this[pt],Ut=this[pt+7];(yt===void 0||Ut===void 0)&&En(pt,this.length-8);const an=this[pt+4]+this[pt+5]*2**8+this[pt+6]*2**16+(Ut<<24);return(BigInt(an)<>>0,vn(pt,"offset");const yt=this[pt],Ut=this[pt+7];(yt===void 0||Ut===void 0)&&En(pt,this.length-8);const an=(yt<<24)+this[++pt]*2**16+this[++pt]*2**8+this[++pt];return(BigInt(an)<>>0,yt||Vt(pt,4,this.length),d.read(this,pt,!0,23,4)},tt.prototype.readFloatBE=function(pt,yt){return pt=pt>>>0,yt||Vt(pt,4,this.length),d.read(this,pt,!1,23,4)},tt.prototype.readDoubleLE=function(pt,yt){return pt=pt>>>0,yt||Vt(pt,8,this.length),d.read(this,pt,!0,52,8)},tt.prototype.readDoubleBE=function(pt,yt){return pt=pt>>>0,yt||Vt(pt,8,this.length),d.read(this,pt,!1,52,8)};function fn(bt,pt,yt,Ut,an,sn){if(!tt.isBuffer(bt))throw new TypeError('"buffer" argument must be a Buffer instance');if(pt>an||ptbt.length)throw new RangeError("Index out of range")}tt.prototype.writeUintLE=tt.prototype.writeUIntLE=function(pt,yt,Ut,an){if(pt=+pt,yt=yt>>>0,Ut=Ut>>>0,!an){const or=Math.pow(2,8*Ut)-1;fn(this,pt,yt,Ut,or,0)}let sn=1,Sn=0;for(this[yt]=pt&255;++Sn>>0,Ut=Ut>>>0,!an){const or=Math.pow(2,8*Ut)-1;fn(this,pt,yt,Ut,or,0)}let sn=Ut-1,Sn=1;for(this[yt+sn]=pt&255;--sn>=0&&(Sn*=256);)this[yt+sn]=pt/Sn&255;return yt+Ut},tt.prototype.writeUint8=tt.prototype.writeUInt8=function(pt,yt,Ut){return pt=+pt,yt=yt>>>0,Ut||fn(this,pt,yt,1,255,0),this[yt]=pt&255,yt+1},tt.prototype.writeUint16LE=tt.prototype.writeUInt16LE=function(pt,yt,Ut){return pt=+pt,yt=yt>>>0,Ut||fn(this,pt,yt,2,65535,0),this[yt]=pt&255,this[yt+1]=pt>>>8,yt+2},tt.prototype.writeUint16BE=tt.prototype.writeUInt16BE=function(pt,yt,Ut){return pt=+pt,yt=yt>>>0,Ut||fn(this,pt,yt,2,65535,0),this[yt]=pt>>>8,this[yt+1]=pt&255,yt+2},tt.prototype.writeUint32LE=tt.prototype.writeUInt32LE=function(pt,yt,Ut){return pt=+pt,yt=yt>>>0,Ut||fn(this,pt,yt,4,4294967295,0),this[yt+3]=pt>>>24,this[yt+2]=pt>>>16,this[yt+1]=pt>>>8,this[yt]=pt&255,yt+4},tt.prototype.writeUint32BE=tt.prototype.writeUInt32BE=function(pt,yt,Ut){return pt=+pt,yt=yt>>>0,Ut||fn(this,pt,yt,4,4294967295,0),this[yt]=pt>>>24,this[yt+1]=pt>>>16,this[yt+2]=pt>>>8,this[yt+3]=pt&255,yt+4};function In(bt,pt,yt,Ut,an){kn(pt,Ut,an,bt,yt,7);let sn=Number(pt&BigInt(4294967295));bt[yt++]=sn,sn=sn>>8,bt[yt++]=sn,sn=sn>>8,bt[yt++]=sn,sn=sn>>8,bt[yt++]=sn;let Sn=Number(pt>>BigInt(32)&BigInt(4294967295));return bt[yt++]=Sn,Sn=Sn>>8,bt[yt++]=Sn,Sn=Sn>>8,bt[yt++]=Sn,Sn=Sn>>8,bt[yt++]=Sn,yt}function On(bt,pt,yt,Ut,an){kn(pt,Ut,an,bt,yt,7);let sn=Number(pt&BigInt(4294967295));bt[yt+7]=sn,sn=sn>>8,bt[yt+6]=sn,sn=sn>>8,bt[yt+5]=sn,sn=sn>>8,bt[yt+4]=sn;let Sn=Number(pt>>BigInt(32)&BigInt(4294967295));return bt[yt+3]=Sn,Sn=Sn>>8,bt[yt+2]=Sn,Sn=Sn>>8,bt[yt+1]=Sn,Sn=Sn>>8,bt[yt]=Sn,yt+8}tt.prototype.writeBigUInt64LE=bn(function(pt,yt=0){return In(this,pt,yt,BigInt(0),BigInt("0xffffffffffffffff"))}),tt.prototype.writeBigUInt64BE=bn(function(pt,yt=0){return On(this,pt,yt,BigInt(0),BigInt("0xffffffffffffffff"))}),tt.prototype.writeIntLE=function(pt,yt,Ut,an){if(pt=+pt,yt=yt>>>0,!an){const Rn=Math.pow(2,8*Ut-1);fn(this,pt,yt,Ut,Rn-1,-Rn)}let sn=0,Sn=1,or=0;for(this[yt]=pt&255;++sn>0)-or&255;return yt+Ut},tt.prototype.writeIntBE=function(pt,yt,Ut,an){if(pt=+pt,yt=yt>>>0,!an){const Rn=Math.pow(2,8*Ut-1);fn(this,pt,yt,Ut,Rn-1,-Rn)}let sn=Ut-1,Sn=1,or=0;for(this[yt+sn]=pt&255;--sn>=0&&(Sn*=256);)pt<0&&or===0&&this[yt+sn+1]!==0&&(or=1),this[yt+sn]=(pt/Sn>>0)-or&255;return yt+Ut},tt.prototype.writeInt8=function(pt,yt,Ut){return pt=+pt,yt=yt>>>0,Ut||fn(this,pt,yt,1,127,-128),pt<0&&(pt=255+pt+1),this[yt]=pt&255,yt+1},tt.prototype.writeInt16LE=function(pt,yt,Ut){return pt=+pt,yt=yt>>>0,Ut||fn(this,pt,yt,2,32767,-32768),this[yt]=pt&255,this[yt+1]=pt>>>8,yt+2},tt.prototype.writeInt16BE=function(pt,yt,Ut){return pt=+pt,yt=yt>>>0,Ut||fn(this,pt,yt,2,32767,-32768),this[yt]=pt>>>8,this[yt+1]=pt&255,yt+2},tt.prototype.writeInt32LE=function(pt,yt,Ut){return pt=+pt,yt=yt>>>0,Ut||fn(this,pt,yt,4,2147483647,-2147483648),this[yt]=pt&255,this[yt+1]=pt>>>8,this[yt+2]=pt>>>16,this[yt+3]=pt>>>24,yt+4},tt.prototype.writeInt32BE=function(pt,yt,Ut){return pt=+pt,yt=yt>>>0,Ut||fn(this,pt,yt,4,2147483647,-2147483648),pt<0&&(pt=4294967295+pt+1),this[yt]=pt>>>24,this[yt+1]=pt>>>16,this[yt+2]=pt>>>8,this[yt+3]=pt&255,yt+4},tt.prototype.writeBigInt64LE=bn(function(pt,yt=0){return In(this,pt,yt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),tt.prototype.writeBigInt64BE=bn(function(pt,yt=0){return On(this,pt,yt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function _n(bt,pt,yt,Ut,an,sn){if(yt+Ut>bt.length)throw new RangeError("Index out of range");if(yt<0)throw new RangeError("Index out of range")}function Pn(bt,pt,yt,Ut,an){return pt=+pt,yt=yt>>>0,an||_n(bt,pt,yt,4),d.write(bt,pt,yt,Ut,23,4),yt+4}tt.prototype.writeFloatLE=function(pt,yt,Ut){return Pn(this,pt,yt,!0,Ut)},tt.prototype.writeFloatBE=function(pt,yt,Ut){return Pn(this,pt,yt,!1,Ut)};function Yn(bt,pt,yt,Ut,an){return pt=+pt,yt=yt>>>0,an||_n(bt,pt,yt,8),d.write(bt,pt,yt,Ut,52,8),yt+8}tt.prototype.writeDoubleLE=function(pt,yt,Ut){return Yn(this,pt,yt,!0,Ut)},tt.prototype.writeDoubleBE=function(pt,yt,Ut){return Yn(this,pt,yt,!1,Ut)},tt.prototype.copy=function(pt,yt,Ut,an){if(!tt.isBuffer(pt))throw new TypeError("argument should be a Buffer");if(Ut||(Ut=0),!an&&an!==0&&(an=this.length),yt>=pt.length&&(yt=pt.length),yt||(yt=0),an>0&&an=this.length)throw new RangeError("Index out of range");if(an<0)throw new RangeError("sourceEnd out of bounds");an>this.length&&(an=this.length),pt.length-yt>>0,Ut=Ut===void 0?this.length:Ut>>>0,pt||(pt=0);let sn;if(typeof pt=="number")for(sn=yt;sn2**32?an=mn(String(yt)):typeof yt=="bigint"&&(an=String(yt),(yt>BigInt(2)**BigInt(32)||yt<-(BigInt(2)**BigInt(32)))&&(an=mn(an)),an+="n"),Ut+=` It must be ${pt}. Received ${an}`,Ut},RangeError);function mn(bt){let pt="",yt=bt.length;const Ut=bt[0]==="-"?1:0;for(;yt>=Ut+4;yt-=3)pt=`_${bt.slice(yt-3,yt)}${pt}`;return`${bt.slice(0,yt)}${pt}`}function jn(bt,pt,yt){vn(pt,"offset"),(bt[pt]===void 0||bt[pt+yt]===void 0)&&En(pt,bt.length-(yt+1))}function kn(bt,pt,yt,Ut,an,sn){if(bt>yt||bt3?pt===0||pt===BigInt(0)?or=`>= 0${Sn} and < 2${Sn} ** ${(sn+1)*8}${Sn}`:or=`>= -(2${Sn} ** ${(sn+1)*8-1}${Sn}) and < 2 ** ${(sn+1)*8-1}${Sn}`:or=`>= ${pt}${Sn} and <= ${yt}${Sn}`,new dn.ERR_OUT_OF_RANGE("value",or,bt)}jn(Ut,an,sn)}function vn(bt,pt){if(typeof bt!="number")throw new dn.ERR_INVALID_ARG_TYPE(pt,"number",bt)}function En(bt,pt,yt){throw Math.floor(bt)!==bt?(vn(bt,yt),new dn.ERR_OUT_OF_RANGE(yt||"offset","an integer",bt)):pt<0?new dn.ERR_BUFFER_OUT_OF_BOUNDS:new dn.ERR_OUT_OF_RANGE(yt||"offset",`>= ${yt?1:0} and <= ${pt}`,bt)}const gn=/[^+/0-9A-Za-z-_]/g;function Ln(bt){if(bt=bt.split("=")[0],bt=bt.trim().replace(gn,""),bt.length<2)return"";for(;bt.length%4!==0;)bt=bt+"=";return bt}function Fn(bt,pt){pt=pt||1/0;let yt;const Ut=bt.length;let an=null;const sn=[];for(let Sn=0;Sn55295&&yt<57344){if(!an){if(yt>56319){(pt-=3)>-1&&sn.push(239,191,189);continue}else if(Sn+1===Ut){(pt-=3)>-1&&sn.push(239,191,189);continue}an=yt;continue}if(yt<56320){(pt-=3)>-1&&sn.push(239,191,189),an=yt;continue}yt=(an-55296<<10|yt-56320)+65536}else an&&(pt-=3)>-1&&sn.push(239,191,189);if(an=null,yt<128){if((pt-=1)<0)break;sn.push(yt)}else if(yt<2048){if((pt-=2)<0)break;sn.push(yt>>6|192,yt&63|128)}else if(yt<65536){if((pt-=3)<0)break;sn.push(yt>>12|224,yt>>6&63|128,yt&63|128)}else if(yt<1114112){if((pt-=4)<0)break;sn.push(yt>>18|240,yt>>12&63|128,yt>>6&63|128,yt&63|128)}else throw new Error("Invalid code point")}return sn}function Un(bt){const pt=[];for(let yt=0;yt>8,an=yt%256,sn.push(an),sn.push(Ut);return sn}function Wn(bt){return _.toByteArray(Ln(bt))}function wn(bt,pt,yt,Ut){let an;for(an=0;an=pt.length||an>=bt.length);++an)pt[an+yt]=bt[an];return an}function Nn(bt,pt){return bt instanceof pt||bt!=null&&bt.constructor!=null&&bt.constructor.name!=null&&bt.constructor.name===pt.name}function zn(bt){return bt!==bt}const Vn=function(){const bt="0123456789abcdef",pt=new Array(256);for(let yt=0;yt<16;++yt){const Ut=yt*16;for(let an=0;an<16;++an)pt[Ut+an]=bt[yt]+bt[an]}return pt}();function bn(bt){return typeof BigInt>"u"?Yt:bt}function Yt(){throw new Error("BigInt not supported")}})(buffer);window&&!window.Buffer&&(window.Buffer=buffer.Buffer);var eruda$1={exports:{}};/*! eruda v2.11.3 https://eruda.liriliri.io/ */(function(module,exports){(function(b,_){module.exports=_()})(self,function(){return function(){var __webpack_modules__={422:function(b,_,d){d.d(_,{Z:function(){return dn}});var k=d(5671),j=d(3144),$=d(9340),et=d(2963),tt=d(1120),rt=d(2461),nt=d.n(rt),ot=d(3990),at=d.n(ot),it=d(6768),dt=d.n(it),ut=d(4331),ht=d.n(ut),ft=d(5610),lt=d.n(ft),ct=d(7483),gt=d.n(ct),st=d(6341),Ct=d.n(st),xt=d(3875),wt=d.n(xt),Mt=d(6954),kt=d.n(Mt);d(9585);function _t(mn){var jn="luna-".concat(mn,"-");function kn(vn){return nt()(ht()(vn).split(/\s+/),function(En){return Ct()(En,jn)?En:En.replace(/[\w-]+/,function(gn){return"".concat(jn).concat(gn)})}).join(" ")}return function(vn){if(/<[^>]*>/g.test(vn))try{var En=gt().parse(vn);return Tt(En,function(gn){gn.attrs&&gn.attrs.class&&(gn.attrs.class=kn(gn.attrs.class))}),gt().stringify(En)}catch{return kn(vn)}return kn(vn)}}function Tt(mn,jn){for(var kn=0,vn=mn.length;kn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var kn,vn=(0,tt.Z)(mn);if(jn){var En=(0,tt.Z)(this).constructor;kn=Reflect.construct(vn,arguments,En)}else kn=vn.apply(this,arguments);return(0,et.Z)(this,kn)}}var Pn=function(mn){(0,$.Z)(kn,mn);var jn=_n(kn);function kn(vn,En){var gn,Ln=En.compName,Fn=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Un=Fn===void 0?"light":Fn;return(0,k.Z)(this,kn),(gn=jn.call(this)).subComponents=[],gn.compName=Ln,gn.c=_t(Ln),gn.options={},gn.container=vn,gn.$container=Pt()(vn),gn.$container.addClass(["luna-".concat(Ln),gn.c("platform-".concat(At()))]),gn.on("optionChange",function(Mn,Wn,wn){var Nn=gn.c;Mn==="theme"&&(gn.$container.rmClass(Nn("theme-".concat(wn))).addClass(Nn("theme-".concat(Wn))),rn()(gn.subComponents,function(zn){return zn.setOption("theme",Wn)}))}),gn.setOption("theme",Un),gn}return(0,j.Z)(kn,[{key:"destroy",value:function(){this.destroySubComponents();var vn=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(vn("platform-".concat(At()))).rmClass(vn("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(vn,En){var gn=this,Ln=this.options,Fn={};typeof vn=="string"?Fn[vn]=En:Fn=vn,rn()(Fn,function(Un,Mn){var Wn=Ln[Mn];Ln[Mn]=Un,gn.emit("optionChange",Mn,Un,Wn)})}},{key:"getOption",value:function(vn){return this.options[vn]}},{key:"addSubComponent",value:function(vn){vn.setOption("theme",this.options.theme),this.subComponents.push(vn)}},{key:"removeSubComponent",value:function(vn){On()(this.subComponents,function(En){return En===vn})}},{key:"destroySubComponents",value:function(){rn()(this.subComponents,function(vn){return vn.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(vn){var En=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};fn()(vn,En),Qt()(this.options,vn)}},{key:"find",value:function(vn){return this.$container.find(this.c(vn))}}]),kn}(Ot());function Yn(mn){var jn=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var kn,vn=(0,tt.Z)(mn);if(jn){var En=(0,tt.Z)(this).constructor;kn=Reflect.construct(vn,arguments,En)}else kn=vn.apply(this,arguments);return(0,et.Z)(this,kn)}}b=d.hmd(b);var dn=function(mn){(0,$.Z)(kn,mn);var jn=Yn(kn);function kn(vn){var En,gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,k.Z)(this,kn),(En=jn.call(this,vn,{compName:"box-model"})).initOptions(gn),En.options.element&&En.render(),En.bindEvent(),En}return(0,j.Z)(kn,[{key:"bindEvent",value:function(){var vn=this;this.on("optionChange",function(En){En==="element"&&vn.render()})}},{key:"render",value:function(){var vn=this.c,En=this.getBoxModelData();this.$container.html(['
'),En.position?'
'):"",En.position?'
position
').concat(En.position.top,'

').concat(En.position.left,"
"):"",'
'),'
margin
').concat(En.margin.top,'

').concat(En.margin.left,"
"),'
'),'
border
').concat(En.border.top,'

').concat(En.border.left,"
"),'
'),'
padding
').concat(En.padding.top,'

').concat(En.padding.left,"
"),'
'),"".concat(En.content.width," × ").concat(En.content.height,""),"
",'
').concat(En.padding.right,'

').concat(En.padding.bottom,"
"),"
",'
').concat(En.border.right,'

').concat(En.border.bottom,"
"),"
",'
').concat(En.margin.right,'

').concat(En.margin.bottom,"
"),"
",En.position?'
').concat(En.position.right,'

').concat(En.position.bottom,"
"):"",En.position?"
":"","
"].join(""))}},{key:"getBoxModelData",value:function(){var vn=this.options.element,En=window.getComputedStyle(vn);function gn(Fn){var Un=["top","left","right","bottom"];return Fn!=="position"&&(Un=nt()(Un,function(Mn){return"".concat(Fn,"-").concat(Mn)})),Fn==="border"&&(Un=nt()(Un,function(Mn){return"".concat(Mn,"-width")})),{top:An(En[Un[0]],Fn),left:An(En[Un[1]],Fn),right:An(En[Un[2]],Fn),bottom:An(En[Un[3]],Fn)}}var Ln={margin:gn("margin"),border:gn("border"),padding:gn("padding"),content:{width:An(En.width),height:An(En.height)}};return En.position!=="static"&&(Ln.position=gn("position")),Ln}}]),kn}(Pn);function An(mn,jn){if(at()(mn))return mn;if(!dt()(mn))return"‒";var kn,vn=(kn=mn,wt()(kn.replace("px","")));return isNaN(vn)?mn:jn==="position"?vn:vn===0?"‒":vn}(function(mn,jn){try{mn.exports=jn,mn.exports.default=jn}catch{}})(b,dn)},8816:function(b,_,d){d.d(_,{Z:function(){return ns}});var k=d(168),j=d(181);function $(Sr,Wr){return function(Er){if(Array.isArray(Er))return Er}(Sr)||function(Er,qt){var Kt=Er==null?null:typeof Symbol<"u"&&Er[Symbol.iterator]||Er["@@iterator"];if(Kt!=null){var Cn,Zn,br,gr,_r=[],Cr=!0,Or=!1;try{if(br=(Kt=Kt.call(Er)).next,qt===0){if(Object(Kt)!==Kt)return;Cr=!1}else for(;!(Cr=(Cn=br.call(Kt)).done)&&(_r.push(Cn.value),_r.length!==qt);Cr=!0);}catch(Yr){Or=!0,Zn=Yr}finally{try{if(!Cr&&Kt.return!=null&&(gr=Kt.return(),Object(gr)!==gr))return}finally{if(Or)throw Zn}}return _r}}(Sr,Wr)||(0,j.Z)(Sr,Wr)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var et=d(5671),tt=d(3144),rt=d(1752),nt=d(9340),ot=d(2963),at=d(1120),it=d(7326),dt=d(8901),ut=d.n(dt),ht=d(3367),ft=d.n(ht),lt=d(6341),ct=d.n(lt),gt=d(6930),st=d.n(gt),Ct=d(4187),xt=d.n(Ct),wt=d(3783),Mt=d.n(wt),kt=d(4858),_t=d.n(kt),Tt=d(8887),At=d.n(Tt),Et=d(7756),Ot=d.n(Et),Lt=d(3023),Pt=d.n(Lt);function Zt(Sr){return Sr.constructor&&Sr.constructor.name?Sr.constructor.name:Pt()({}.toString.call(Sr).replace(/(\[object )|]/g,""))}var rn=d(2461),nn=d.n(rn),Qt=d(4331),Vt=d.n(Qt),fn=d(5610),In=d.n(fn),On=d(7483),_n=d.n(On),Pn=d(3990),Yn=d.n(Pn),dn=d(3875),An=d.n(dn),mn=d(6954),jn=d.n(mn),kn=d(9585),vn=d.n(kn);function En(Sr){var Wr="luna-".concat(Sr,"-");function Er(qt){return nn()(Vt()(qt).split(/\s+/),function(Kt){return ct()(Kt,Wr)?Kt:Kt.replace(/[\w-]+/,function(Cn){return"".concat(Wr).concat(Cn)})}).join(" ")}return function(qt){if(/<[^>]*>/g.test(qt))try{var Kt=_n().parse(qt);return gn(Kt,function(Cn){Cn.attrs&&Cn.attrs.class&&(Cn.attrs.class=Er(Cn.attrs.class))}),_n().stringify(Kt)}catch{return Er(qt)}return Er(qt)}}function gn(Sr,Wr){for(var Er=0,qt=Sr.length;Er1&&arguments[1]!==void 0?arguments[1]:{},qt=Er.topObj,Kt=Er.level,Cn=Kt===void 0?0:Kt,Zn=Er.getterVal,br=Zn!==void 0&&Zn,gr=Er.unenumerable,_r=gr===void 0||gr,Cr="",Or="",Yr=5,Gr=[],oo=[],po="";qt=qt||Sr;var Hr={getterVal:br,unenumerable:_r,level:Cn+1},ao=Cn===0,yo=''),bo=''),Eo=''),Ro=''),vo=''),Io=''),So=function(Xr){return ut()(Xr).replace(/\\n/g,"↵").replace(/\\f|\\r|\\t/g,"").replace(/\\/g,"")},wo="",Ao=function(Xr){return yo+So(Xr)+wo};function Co(Xr){return Xr=ft()(Xr),ct()(Mn,Xr)||st()(Xr,"Array[")?Io+So(Xr)+wo:(Xr.length>100&&(Xr=Ot()(Xr,100,{separator:" ",ellipsis:"…"})),Ro+So('"'.concat(Xr,'"'))+wo)}function Lo(Xr){if(Wr>Yr)po=", …";else{var is=Ao(wn(Xr));if(!br){var No=Object.getOwnPropertyDescriptor(Sr,Xr);if(No&&No.get)return Gr.push("".concat(is,": ").concat(Co("(...)"))),void Wr++}Gr.push("".concat(is,": ").concat(Un(qt[Xr],Hr))),Wr++}}try{Or={}.toString.call(Sr)}catch{Or="[object Object]"}var Po,Bo=Or=="[object Array]",Fo=Or=="[object Object]",Ho=Or=="[object Number]",jo=Or=="[object RegExp]",Oo=Or=="[object Symbol]",Ps=Or=="[object Function]",Bs=Or=="[object Boolean]";if(Or=="[object String]")Cr=Co(wn(Sr));else if(jo)Po=wn(Sr.toString()),Cr=Ro+Po+wo;else if(Ps)Cr=Co("ƒ");else if(Bo)if(ao){Cr="[";var Zo=Sr.length,os="";Zo>100&&(Zo=100,os=", …");for(var Vo=0;Vo"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Er,qt=(0,at.Z)(Sr);if(Wr){var Kt=(0,at.Z)(this).constructor;Er=Reflect.construct(qt,arguments,Kt)}else Er=qt.apply(this,arguments);return(0,ot.Z)(this,Er)}}var qr=/https?:\/\/([0-9.\-A-Za-z]+)(?::(\d+))?\/[A-Z.a-z0-9/]*\.js/g,eo={comment:"",string:"",number:"",keyword:"",operator:""},to=function(Sr){(0,nt.Z)(Er,Sr);var Wr=ro(Er);function Er(qt,Kt){var Cn,Zn=Kt.type,br=Zn===void 0?"log":Zn,gr=Kt.args,_r=gr===void 0?[]:gr,Cr=Kt.id,Or=Kt.group,Yr=Kt.targetGroup,Gr=Kt.header,oo=Kt.ignoreFilter,po=oo!==void 0&&oo,Hr=Kt.accessGetter,ao=Kt.unenumerable,yo=Kt.lazyEvaluation;(0,et.Z)(this,Er),(Cn=Wr.call(this)).container=un()("div"),Cn.count=1,Cn.width=0,Cn.height=0,Cn.isHidden=!1,Cn.columns=[],Cn.elements={},Cn.objects={},Cn.console=qt,Cn.type=br,Cn.group=Or,Cn.targetGroup=Yr,Cn.args=_r,Cn.id=Cr,Cn.header=Gr,Cn.ignoreFilter=po,Cn.collapsed=!1,Cn.container.log=(0,it.Z)(Cn),Cn.height=0,Cn.width=0,Cn.$container=Bt()(Cn.container),Cn.accessGetter=Hr,Cn.unenumerable=ao,Cn.lazyEvaluation=yo;var bo="info";switch(br){case"debug":bo="verbose";break;case"error":bo="error";break;case"warn":bo="warning"}return Cn.level=bo,Cn.resizeSensor=new(bt())(Cn.container),Cn.onResize=Gn()(function(){vn()(Cn.container)?Cn.isHidden=!0:(Cn.isHidden||Cn.updateSize(!1),Cn.isHidden=!1)},16),Cn.formatMsg(),Cn.group&&Cn.checkGroup(),Cn.bindEvent(),Cn}return(0,tt.Z)(Er,[{key:"checkGroup",value:function(){for(var qt=this.group,Kt=!1;qt;){if(qt.collapsed){Kt=!0;break}qt=qt.parent}return Kt!==this.collapsed&&(this.collapsed=Kt,!0)}},{key:"updateIcon",value:function(qt){var Kt=this.console.c;return this.$container.find(Kt(".icon-container")).find(Kt(".icon")).rmAttr("class").addClass([Kt("icon"),Kt("icon-".concat(qt))]),this}},{key:"addCount",value:function(){this.count++;var qt=this.$container,Kt=this.count,Cn=this.console.c,Zn=qt.find(Cn(".count-container")),br=qt.find(Cn(".icon-container")),gr=Zn.find(Cn(".count"));return Kt===2&&Zn.rmClass(Cn("hidden")),gr.text(ft()(Kt)),br.addClass(Cn("hidden")),this}},{key:"groupEnd",value:function(){var qt=this.$container,Kt=this.console.c;return qt.find(".".concat(Kt("nesting-level"),":not(.").concat(Kt("group-closed"),")")).last().addClass(Kt("group-closed")),this}},{key:"updateTime",value:function(qt){var Kt=this.$container.find(this.console.c(".time-container"));return this.header&&(Kt.find("span").eq(0).text(qt),this.header.time=qt),this}},{key:"isAttached",value:function(){return!!this.container.parentNode}},{key:"isSimple",value:function(){return!sr()(this.args,function(qt){return yt()(qt)})}},{key:"updateSize",value:function(){var qt=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],Kt=this.container.getBoundingClientRect(),Cn=Kt.width,Zn=Kt.height-1;this.height!==Zn&&(this.height=Zn,qt||this.emit("updateHeight")),this.width!==Cn&&(this.width=Cn)}},{key:"html",value:function(){return this.container.outerHTML}},{key:"text",value:function(){return this.content.textContent||""}},{key:"select",value:function(){this.$container.addClass(this.console.c("selected"))}},{key:"deselect",value:function(){this.$container.rmClass(this.console.c("selected"))}},{key:"copy",value:function(){var qt=this.args,Kt="";Mt()(qt,function(Cn,Zn){Zn!==0&&(Kt+=" "),yt()(Cn)?Kt+=er()(Cn):Kt+=ft()(Cn)}),Kn()(Kt)}},{key:"bindEvent",value:function(){var qt=this,Kt=this.console.c,Cn=this;this.resizeSensor.addListener(this.onResize),this.$container.on("click",Kt(".dom-viewer"),function(Zn){return Zn.stopPropagation()}).on("click",Kt(".preview"),function(Zn){Zn.stopPropagation();var br=Bt()(this).find(Kt(".preview-icon-container")).find(Kt(".icon")),gr="caret-down";br.hasClass(Kt("icon-caret-down"))&&(gr="caret-right"),br.rmAttr("class").addClass([Kt("icon"),Kt("icon-".concat(gr))]),Cn.renderObjectViewer(this)}).on("click",function(){return qt.click()})}},{key:"renderEl",value:function(){var qt=this.elements,Kt=this.console.c,Cn=this;this.$container.find(Kt(".dom-viewer")).each(function(){var Zn=Bt()(this).data("id");new bn.Z(this,{node:qt[Zn],theme:Cn.console.getOption("theme")})})}},{key:"renderObjectViewer",value:function(qt){var Kt=this.console,Cn=this.unenumerable,Zn=this.accessGetter,br=this.lazyEvaluation,gr=Kt.c,_r=Bt()(qt),Cr=_r.data("id");if(Cr){var Or=this.objects[Cr],Yr=_r.find(gr(".json"));if(Yr.hasClass(gr("hidden"))){if(Yr.data("init")!=="true"){if(br){var Gr=new zn.Z(Yr.get(0),{unenumerable:Cn,accessGetter:Zn});Gr.setOption("theme",Kt.getOption("theme")),Gr.set(Or)}else{var oo=new zn.q(Yr.get(0));oo.setOption("theme",Kt.getOption("theme")),oo.set(Or)}Yr.data("init","true")}Yr.rmClass(gr("hidden"))}else Yr.addClass(gr("hidden"))}}},{key:"renderTable",value:function(qt){var Kt=this,Cn="__LunaConsoleValue",Zn=this.columns,br=this.$container,gr=this.console,_r=gr.c,Cr=br.find(_r(".data-grid")),Or=qt[0],Yr=new Vn.Z(Cr.get(0),{columns:pr()([{id:"(index)",title:"(index)",sortable:!0}],nn()(Zn,function(Gr){return{id:Gr,title:Gr===Cn?"Value":Gr,sortable:!0}})),theme:gr.getOption("theme")});Mt()(Or,function(Gr,oo){var po={"(index)":ft()(oo)};Zn.forEach(function(Hr){yt()(Gr)?po[Hr]=Hr===Cn?"":Kt.formatTableVal(Gr[Hr]):Rn()(Gr)&&(po[Hr]=Hr===Cn?Kt.formatTableVal(Gr):"")}),Yr.append(po)})}},{key:"extractObj",value:function(qt){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Cn=arguments.length>2?arguments[2]:void 0,Zn=this.accessGetter,br=this.unenumerable;$n()(Kt,{accessGetter:Zn,unenumerable:br,symbol:br,timeout:1e3}),function(gr,_r,Cr){var Or=ur()(gr,_r);yr()(function(){return Cr(Or)})}(qt,Kt,function(gr){return Cn(JSON.parse(gr))})}},{key:"click",value:function(){var qt=this.type,Kt=this.$container,Cn=this.console,Zn=Cn.c;switch(qt){case"log":case"warn":case"info":case"debug":case"output":case"table":case"dir":break;case"group":case"groupCollapsed":Cn.toggleGroup(this);break;case"error":Kt.find(Zn(".stack")).toggleClass(Zn("hidden"))}}},{key:"formatMsg",value:function(){var qt=this.args,Kt=this.type,Cn=this.id,Zn=this.header,br=this.group,gr=this.console.c;qt=Dt()(qt);var _r,Cr,Or="";switch(Kt!=="group"&&Kt!=="groupCollapsed"||qt.length===0&&(qt=["console.group"]),Kt){case"log":case"info":case"debug":Or=this.formatCommon(qt);break;case"dir":Or=this.formatDir(qt);break;case"warn":_r="warn",Or=this.formatCommon(qt);break;case"error":an()(qt[0])&&qt.length!==1&&(qt=this.substituteStr(qt)),Cr=qt[0],_r="error",Cr=Sn()(Cr)?Cr:new Error(this.formatCommon(qt)),Or=this.formatErr(Cr);break;case"table":Or=this.formatTable(qt);break;case"html":Or=qt[0];break;case"input":Or=this.formatJs(qt[0]),_r="input";break;case"output":Or=this.formatCommon(qt),_r="output";break;case"groupCollapsed":Or=this.formatCommon(qt),_r="caret-right";break;case"group":Or=this.formatCommon(qt),_r="caret-down"}ct()(["log","debug","warn"],Kt)&&this.isSimple()&&(Or=Bn()(Or,function(Yr){return'').concat(Yr,"")})),Or=this.render({msg:Or,type:Kt,icon:_r,id:Cn,header:Zn,group:br}),this.$container.addClass("".concat(gr("log-container"))).html(Or),Kt==="table"&&(At()(this.columns)||this.renderTable(qt)),At()(this.elements)||this.renderEl(),this.$content=this.$container.find(gr(".log-content")),this.content=this.$content.get(0)}},{key:"render",value:function(qt){var Kt=this.console.c,Cn="",Zn="";if(qt.group)for(var br=qt.group.indentLevel,gr=0;gr');qt.header&&(Cn+=Ar()(Nn||(Nn=(0,k.Z)([` + */(function(b){const _=base64Js,d=ieee754,k=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;b.Buffer=tt,b.SlowBuffer=ct,b.INSPECT_MAX_BYTES=50;const j=2147483647;b.kMaxLength=j,tt.TYPED_ARRAY_SUPPORT=$(),!tt.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function $(){try{const bt=new Uint8Array(1),pt={foo:function(){return 42}};return Object.setPrototypeOf(pt,Uint8Array.prototype),Object.setPrototypeOf(bt,pt),bt.foo()===42}catch{return!1}}Object.defineProperty(tt.prototype,"parent",{enumerable:!0,get:function(){if(tt.isBuffer(this))return this.buffer}}),Object.defineProperty(tt.prototype,"offset",{enumerable:!0,get:function(){if(tt.isBuffer(this))return this.byteOffset}});function et(bt){if(bt>j)throw new RangeError('The value "'+bt+'" is invalid for option "size"');const pt=new Uint8Array(bt);return Object.setPrototypeOf(pt,tt.prototype),pt}function tt(bt,pt,yt){if(typeof bt=="number"){if(typeof pt=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return at(bt)}return rt(bt,pt,yt)}tt.poolSize=8192;function rt(bt,pt,yt){if(typeof bt=="string")return it(bt,pt);if(ArrayBuffer.isView(bt))return ut(bt);if(bt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof bt);if(Nn(bt,ArrayBuffer)||bt&&Nn(bt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Nn(bt,SharedArrayBuffer)||bt&&Nn(bt.buffer,SharedArrayBuffer)))return ht(bt,pt,yt);if(typeof bt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Ut=bt.valueOf&&bt.valueOf();if(Ut!=null&&Ut!==bt)return tt.from(Ut,pt,yt);const an=ft(bt);if(an)return an;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof bt[Symbol.toPrimitive]=="function")return tt.from(bt[Symbol.toPrimitive]("string"),pt,yt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof bt)}tt.from=function(bt,pt,yt){return rt(bt,pt,yt)},Object.setPrototypeOf(tt.prototype,Uint8Array.prototype),Object.setPrototypeOf(tt,Uint8Array);function nt(bt){if(typeof bt!="number")throw new TypeError('"size" argument must be of type number');if(bt<0)throw new RangeError('The value "'+bt+'" is invalid for option "size"')}function ot(bt,pt,yt){return nt(bt),bt<=0?et(bt):pt!==void 0?typeof yt=="string"?et(bt).fill(pt,yt):et(bt).fill(pt):et(bt)}tt.alloc=function(bt,pt,yt){return ot(bt,pt,yt)};function at(bt){return nt(bt),et(bt<0?0:lt(bt)|0)}tt.allocUnsafe=function(bt){return at(bt)},tt.allocUnsafeSlow=function(bt){return at(bt)};function it(bt,pt){if((typeof pt!="string"||pt==="")&&(pt="utf8"),!tt.isEncoding(pt))throw new TypeError("Unknown encoding: "+pt);const yt=gt(bt,pt)|0;let Ut=et(yt);const an=Ut.write(bt,pt);return an!==yt&&(Ut=Ut.slice(0,an)),Ut}function dt(bt){const pt=bt.length<0?0:lt(bt.length)|0,yt=et(pt);for(let Ut=0;Ut=j)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+j.toString(16)+" bytes");return bt|0}function ct(bt){return+bt!=bt&&(bt=0),tt.alloc(+bt)}tt.isBuffer=function(pt){return pt!=null&&pt._isBuffer===!0&&pt!==tt.prototype},tt.compare=function(pt,yt){if(Nn(pt,Uint8Array)&&(pt=tt.from(pt,pt.offset,pt.byteLength)),Nn(yt,Uint8Array)&&(yt=tt.from(yt,yt.offset,yt.byteLength)),!tt.isBuffer(pt)||!tt.isBuffer(yt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(pt===yt)return 0;let Ut=pt.length,an=yt.length;for(let sn=0,Sn=Math.min(Ut,an);snan.length?(tt.isBuffer(Sn)||(Sn=tt.from(Sn)),Sn.copy(an,sn)):Uint8Array.prototype.set.call(an,Sn,sn);else if(tt.isBuffer(Sn))Sn.copy(an,sn);else throw new TypeError('"list" argument must be an Array of Buffers');sn+=Sn.length}return an};function gt(bt,pt){if(tt.isBuffer(bt))return bt.length;if(ArrayBuffer.isView(bt)||Nn(bt,ArrayBuffer))return bt.byteLength;if(typeof bt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof bt);const yt=bt.length,Ut=arguments.length>2&&arguments[2]===!0;if(!Ut&&yt===0)return 0;let an=!1;for(;;)switch(pt){case"ascii":case"latin1":case"binary":return yt;case"utf8":case"utf-8":return Fn(bt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return yt*2;case"hex":return yt>>>1;case"base64":return zn(bt).length;default:if(an)return Ut?-1:Fn(bt).length;pt=(""+pt).toLowerCase(),an=!0}}tt.byteLength=gt;function st(bt,pt,yt){let Ut=!1;if((pt===void 0||pt<0)&&(pt=0),pt>this.length||((yt===void 0||yt>this.length)&&(yt=this.length),yt<=0)||(yt>>>=0,pt>>>=0,yt<=pt))return"";for(bt||(bt="utf8");;)switch(bt){case"hex":return nn(this,pt,yt);case"utf8":case"utf-8":return Ot(this,pt,yt);case"ascii":return Zt(this,pt,yt);case"latin1":case"binary":return rn(this,pt,yt);case"base64":return Et(this,pt,yt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qt(this,pt,yt);default:if(Ut)throw new TypeError("Unknown encoding: "+bt);bt=(bt+"").toLowerCase(),Ut=!0}}tt.prototype._isBuffer=!0;function Ct(bt,pt,yt){const Ut=bt[pt];bt[pt]=bt[yt],bt[yt]=Ut}tt.prototype.swap16=function(){const pt=this.length;if(pt%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let yt=0;ytyt&&(pt+=" ... "),""},k&&(tt.prototype[k]=tt.prototype.inspect),tt.prototype.compare=function(pt,yt,Ut,an,sn){if(Nn(pt,Uint8Array)&&(pt=tt.from(pt,pt.offset,pt.byteLength)),!tt.isBuffer(pt))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof pt);if(yt===void 0&&(yt=0),Ut===void 0&&(Ut=pt?pt.length:0),an===void 0&&(an=0),sn===void 0&&(sn=this.length),yt<0||Ut>pt.length||an<0||sn>this.length)throw new RangeError("out of range index");if(an>=sn&&yt>=Ut)return 0;if(an>=sn)return-1;if(yt>=Ut)return 1;if(yt>>>=0,Ut>>>=0,an>>>=0,sn>>>=0,this===pt)return 0;let Sn=sn-an,or=Ut-yt;const Rn=Math.min(Sn,or),Xn=this.slice(an,sn),$n=pt.slice(yt,Ut);for(let ar=0;ar2147483647?yt=2147483647:yt<-2147483648&&(yt=-2147483648),yt=+yt,Wn(yt)&&(yt=an?0:bt.length-1),yt<0&&(yt=bt.length+yt),yt>=bt.length){if(an)return-1;yt=bt.length-1}else if(yt<0)if(an)yt=0;else return-1;if(typeof pt=="string"&&(pt=tt.from(pt,Ut)),tt.isBuffer(pt))return pt.length===0?-1:wt(bt,pt,yt,Ut,an);if(typeof pt=="number")return pt=pt&255,typeof Uint8Array.prototype.indexOf=="function"?an?Uint8Array.prototype.indexOf.call(bt,pt,yt):Uint8Array.prototype.lastIndexOf.call(bt,pt,yt):wt(bt,[pt],yt,Ut,an);throw new TypeError("val must be string, number or Buffer")}function wt(bt,pt,yt,Ut,an){let sn=1,Sn=bt.length,or=pt.length;if(Ut!==void 0&&(Ut=String(Ut).toLowerCase(),Ut==="ucs2"||Ut==="ucs-2"||Ut==="utf16le"||Ut==="utf-16le")){if(bt.length<2||pt.length<2)return-1;sn=2,Sn/=2,or/=2,yt/=2}function Rn($n,ar){return sn===1?$n[ar]:$n.readUInt16BE(ar*sn)}let Xn;if(an){let $n=-1;for(Xn=yt;XnSn&&(yt=Sn-or),Xn=yt;Xn>=0;Xn--){let $n=!0;for(let ar=0;aran&&(Ut=an)):Ut=an;const sn=pt.length;Ut>sn/2&&(Ut=sn/2);let Sn;for(Sn=0;Sn>>0,isFinite(Ut)?(Ut=Ut>>>0,an===void 0&&(an="utf8")):(an=Ut,Ut=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const sn=this.length-yt;if((Ut===void 0||Ut>sn)&&(Ut=sn),pt.length>0&&(Ut<0||yt<0)||yt>this.length)throw new RangeError("Attempt to write outside buffer bounds");an||(an="utf8");let Sn=!1;for(;;)switch(an){case"hex":return Mt(this,pt,yt,Ut);case"utf8":case"utf-8":return kt(this,pt,yt,Ut);case"ascii":case"latin1":case"binary":return _t(this,pt,yt,Ut);case"base64":return Tt(this,pt,yt,Ut);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return At(this,pt,yt,Ut);default:if(Sn)throw new TypeError("Unknown encoding: "+an);an=(""+an).toLowerCase(),Sn=!0}},tt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Et(bt,pt,yt){return pt===0&&yt===bt.length?_.fromByteArray(bt):_.fromByteArray(bt.slice(pt,yt))}function Ot(bt,pt,yt){yt=Math.min(bt.length,yt);const Ut=[];let an=pt;for(;an239?4:sn>223?3:sn>191?2:1;if(an+or<=yt){let Rn,Xn,$n,ar;switch(or){case 1:sn<128&&(Sn=sn);break;case 2:Rn=bt[an+1],(Rn&192)===128&&(ar=(sn&31)<<6|Rn&63,ar>127&&(Sn=ar));break;case 3:Rn=bt[an+1],Xn=bt[an+2],(Rn&192)===128&&(Xn&192)===128&&(ar=(sn&15)<<12|(Rn&63)<<6|Xn&63,ar>2047&&(ar<55296||ar>57343)&&(Sn=ar));break;case 4:Rn=bt[an+1],Xn=bt[an+2],$n=bt[an+3],(Rn&192)===128&&(Xn&192)===128&&($n&192)===128&&(ar=(sn&15)<<18|(Rn&63)<<12|(Xn&63)<<6|$n&63,ar>65535&&ar<1114112&&(Sn=ar))}}Sn===null?(Sn=65533,or=1):Sn>65535&&(Sn-=65536,Ut.push(Sn>>>10&1023|55296),Sn=56320|Sn&1023),Ut.push(Sn),an+=or}return Bt(Ut)}const Lt=4096;function Bt(bt){const pt=bt.length;if(pt<=Lt)return String.fromCharCode.apply(String,bt);let yt="",Ut=0;for(;UtUt)&&(yt=Ut);let an="";for(let sn=pt;snUt&&(pt=Ut),yt<0?(yt+=Ut,yt<0&&(yt=0)):yt>Ut&&(yt=Ut),ytyt)throw new RangeError("Trying to access beyond buffer length")}tt.prototype.readUintLE=tt.prototype.readUIntLE=function(pt,yt,Ut){pt=pt>>>0,yt=yt>>>0,Ut||Vt(pt,yt,this.length);let an=this[pt],sn=1,Sn=0;for(;++Sn>>0,yt=yt>>>0,Ut||Vt(pt,yt,this.length);let an=this[pt+--yt],sn=1;for(;yt>0&&(sn*=256);)an+=this[pt+--yt]*sn;return an},tt.prototype.readUint8=tt.prototype.readUInt8=function(pt,yt){return pt=pt>>>0,yt||Vt(pt,1,this.length),this[pt]},tt.prototype.readUint16LE=tt.prototype.readUInt16LE=function(pt,yt){return pt=pt>>>0,yt||Vt(pt,2,this.length),this[pt]|this[pt+1]<<8},tt.prototype.readUint16BE=tt.prototype.readUInt16BE=function(pt,yt){return pt=pt>>>0,yt||Vt(pt,2,this.length),this[pt]<<8|this[pt+1]},tt.prototype.readUint32LE=tt.prototype.readUInt32LE=function(pt,yt){return pt=pt>>>0,yt||Vt(pt,4,this.length),(this[pt]|this[pt+1]<<8|this[pt+2]<<16)+this[pt+3]*16777216},tt.prototype.readUint32BE=tt.prototype.readUInt32BE=function(pt,yt){return pt=pt>>>0,yt||Vt(pt,4,this.length),this[pt]*16777216+(this[pt+1]<<16|this[pt+2]<<8|this[pt+3])},tt.prototype.readBigUInt64LE=bn(function(pt){pt=pt>>>0,vn(pt,"offset");const yt=this[pt],Ut=this[pt+7];(yt===void 0||Ut===void 0)&&En(pt,this.length-8);const an=yt+this[++pt]*2**8+this[++pt]*2**16+this[++pt]*2**24,sn=this[++pt]+this[++pt]*2**8+this[++pt]*2**16+Ut*2**24;return BigInt(an)+(BigInt(sn)<>>0,vn(pt,"offset");const yt=this[pt],Ut=this[pt+7];(yt===void 0||Ut===void 0)&&En(pt,this.length-8);const an=yt*2**24+this[++pt]*2**16+this[++pt]*2**8+this[++pt],sn=this[++pt]*2**24+this[++pt]*2**16+this[++pt]*2**8+Ut;return(BigInt(an)<>>0,yt=yt>>>0,Ut||Vt(pt,yt,this.length);let an=this[pt],sn=1,Sn=0;for(;++Sn=sn&&(an-=Math.pow(2,8*yt)),an},tt.prototype.readIntBE=function(pt,yt,Ut){pt=pt>>>0,yt=yt>>>0,Ut||Vt(pt,yt,this.length);let an=yt,sn=1,Sn=this[pt+--an];for(;an>0&&(sn*=256);)Sn+=this[pt+--an]*sn;return sn*=128,Sn>=sn&&(Sn-=Math.pow(2,8*yt)),Sn},tt.prototype.readInt8=function(pt,yt){return pt=pt>>>0,yt||Vt(pt,1,this.length),this[pt]&128?(255-this[pt]+1)*-1:this[pt]},tt.prototype.readInt16LE=function(pt,yt){pt=pt>>>0,yt||Vt(pt,2,this.length);const Ut=this[pt]|this[pt+1]<<8;return Ut&32768?Ut|4294901760:Ut},tt.prototype.readInt16BE=function(pt,yt){pt=pt>>>0,yt||Vt(pt,2,this.length);const Ut=this[pt+1]|this[pt]<<8;return Ut&32768?Ut|4294901760:Ut},tt.prototype.readInt32LE=function(pt,yt){return pt=pt>>>0,yt||Vt(pt,4,this.length),this[pt]|this[pt+1]<<8|this[pt+2]<<16|this[pt+3]<<24},tt.prototype.readInt32BE=function(pt,yt){return pt=pt>>>0,yt||Vt(pt,4,this.length),this[pt]<<24|this[pt+1]<<16|this[pt+2]<<8|this[pt+3]},tt.prototype.readBigInt64LE=bn(function(pt){pt=pt>>>0,vn(pt,"offset");const yt=this[pt],Ut=this[pt+7];(yt===void 0||Ut===void 0)&&En(pt,this.length-8);const an=this[pt+4]+this[pt+5]*2**8+this[pt+6]*2**16+(Ut<<24);return(BigInt(an)<>>0,vn(pt,"offset");const yt=this[pt],Ut=this[pt+7];(yt===void 0||Ut===void 0)&&En(pt,this.length-8);const an=(yt<<24)+this[++pt]*2**16+this[++pt]*2**8+this[++pt];return(BigInt(an)<>>0,yt||Vt(pt,4,this.length),d.read(this,pt,!0,23,4)},tt.prototype.readFloatBE=function(pt,yt){return pt=pt>>>0,yt||Vt(pt,4,this.length),d.read(this,pt,!1,23,4)},tt.prototype.readDoubleLE=function(pt,yt){return pt=pt>>>0,yt||Vt(pt,8,this.length),d.read(this,pt,!0,52,8)},tt.prototype.readDoubleBE=function(pt,yt){return pt=pt>>>0,yt||Vt(pt,8,this.length),d.read(this,pt,!1,52,8)};function fn(bt,pt,yt,Ut,an,sn){if(!tt.isBuffer(bt))throw new TypeError('"buffer" argument must be a Buffer instance');if(pt>an||ptbt.length)throw new RangeError("Index out of range")}tt.prototype.writeUintLE=tt.prototype.writeUIntLE=function(pt,yt,Ut,an){if(pt=+pt,yt=yt>>>0,Ut=Ut>>>0,!an){const or=Math.pow(2,8*Ut)-1;fn(this,pt,yt,Ut,or,0)}let sn=1,Sn=0;for(this[yt]=pt&255;++Sn>>0,Ut=Ut>>>0,!an){const or=Math.pow(2,8*Ut)-1;fn(this,pt,yt,Ut,or,0)}let sn=Ut-1,Sn=1;for(this[yt+sn]=pt&255;--sn>=0&&(Sn*=256);)this[yt+sn]=pt/Sn&255;return yt+Ut},tt.prototype.writeUint8=tt.prototype.writeUInt8=function(pt,yt,Ut){return pt=+pt,yt=yt>>>0,Ut||fn(this,pt,yt,1,255,0),this[yt]=pt&255,yt+1},tt.prototype.writeUint16LE=tt.prototype.writeUInt16LE=function(pt,yt,Ut){return pt=+pt,yt=yt>>>0,Ut||fn(this,pt,yt,2,65535,0),this[yt]=pt&255,this[yt+1]=pt>>>8,yt+2},tt.prototype.writeUint16BE=tt.prototype.writeUInt16BE=function(pt,yt,Ut){return pt=+pt,yt=yt>>>0,Ut||fn(this,pt,yt,2,65535,0),this[yt]=pt>>>8,this[yt+1]=pt&255,yt+2},tt.prototype.writeUint32LE=tt.prototype.writeUInt32LE=function(pt,yt,Ut){return pt=+pt,yt=yt>>>0,Ut||fn(this,pt,yt,4,4294967295,0),this[yt+3]=pt>>>24,this[yt+2]=pt>>>16,this[yt+1]=pt>>>8,this[yt]=pt&255,yt+4},tt.prototype.writeUint32BE=tt.prototype.writeUInt32BE=function(pt,yt,Ut){return pt=+pt,yt=yt>>>0,Ut||fn(this,pt,yt,4,4294967295,0),this[yt]=pt>>>24,this[yt+1]=pt>>>16,this[yt+2]=pt>>>8,this[yt+3]=pt&255,yt+4};function In(bt,pt,yt,Ut,an){kn(pt,Ut,an,bt,yt,7);let sn=Number(pt&BigInt(4294967295));bt[yt++]=sn,sn=sn>>8,bt[yt++]=sn,sn=sn>>8,bt[yt++]=sn,sn=sn>>8,bt[yt++]=sn;let Sn=Number(pt>>BigInt(32)&BigInt(4294967295));return bt[yt++]=Sn,Sn=Sn>>8,bt[yt++]=Sn,Sn=Sn>>8,bt[yt++]=Sn,Sn=Sn>>8,bt[yt++]=Sn,yt}function On(bt,pt,yt,Ut,an){kn(pt,Ut,an,bt,yt,7);let sn=Number(pt&BigInt(4294967295));bt[yt+7]=sn,sn=sn>>8,bt[yt+6]=sn,sn=sn>>8,bt[yt+5]=sn,sn=sn>>8,bt[yt+4]=sn;let Sn=Number(pt>>BigInt(32)&BigInt(4294967295));return bt[yt+3]=Sn,Sn=Sn>>8,bt[yt+2]=Sn,Sn=Sn>>8,bt[yt+1]=Sn,Sn=Sn>>8,bt[yt]=Sn,yt+8}tt.prototype.writeBigUInt64LE=bn(function(pt,yt=0){return In(this,pt,yt,BigInt(0),BigInt("0xffffffffffffffff"))}),tt.prototype.writeBigUInt64BE=bn(function(pt,yt=0){return On(this,pt,yt,BigInt(0),BigInt("0xffffffffffffffff"))}),tt.prototype.writeIntLE=function(pt,yt,Ut,an){if(pt=+pt,yt=yt>>>0,!an){const Rn=Math.pow(2,8*Ut-1);fn(this,pt,yt,Ut,Rn-1,-Rn)}let sn=0,Sn=1,or=0;for(this[yt]=pt&255;++sn>0)-or&255;return yt+Ut},tt.prototype.writeIntBE=function(pt,yt,Ut,an){if(pt=+pt,yt=yt>>>0,!an){const Rn=Math.pow(2,8*Ut-1);fn(this,pt,yt,Ut,Rn-1,-Rn)}let sn=Ut-1,Sn=1,or=0;for(this[yt+sn]=pt&255;--sn>=0&&(Sn*=256);)pt<0&&or===0&&this[yt+sn+1]!==0&&(or=1),this[yt+sn]=(pt/Sn>>0)-or&255;return yt+Ut},tt.prototype.writeInt8=function(pt,yt,Ut){return pt=+pt,yt=yt>>>0,Ut||fn(this,pt,yt,1,127,-128),pt<0&&(pt=255+pt+1),this[yt]=pt&255,yt+1},tt.prototype.writeInt16LE=function(pt,yt,Ut){return pt=+pt,yt=yt>>>0,Ut||fn(this,pt,yt,2,32767,-32768),this[yt]=pt&255,this[yt+1]=pt>>>8,yt+2},tt.prototype.writeInt16BE=function(pt,yt,Ut){return pt=+pt,yt=yt>>>0,Ut||fn(this,pt,yt,2,32767,-32768),this[yt]=pt>>>8,this[yt+1]=pt&255,yt+2},tt.prototype.writeInt32LE=function(pt,yt,Ut){return pt=+pt,yt=yt>>>0,Ut||fn(this,pt,yt,4,2147483647,-2147483648),this[yt]=pt&255,this[yt+1]=pt>>>8,this[yt+2]=pt>>>16,this[yt+3]=pt>>>24,yt+4},tt.prototype.writeInt32BE=function(pt,yt,Ut){return pt=+pt,yt=yt>>>0,Ut||fn(this,pt,yt,4,2147483647,-2147483648),pt<0&&(pt=4294967295+pt+1),this[yt]=pt>>>24,this[yt+1]=pt>>>16,this[yt+2]=pt>>>8,this[yt+3]=pt&255,yt+4},tt.prototype.writeBigInt64LE=bn(function(pt,yt=0){return In(this,pt,yt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),tt.prototype.writeBigInt64BE=bn(function(pt,yt=0){return On(this,pt,yt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function _n(bt,pt,yt,Ut,an,sn){if(yt+Ut>bt.length)throw new RangeError("Index out of range");if(yt<0)throw new RangeError("Index out of range")}function Bn(bt,pt,yt,Ut,an){return pt=+pt,yt=yt>>>0,an||_n(bt,pt,yt,4),d.write(bt,pt,yt,Ut,23,4),yt+4}tt.prototype.writeFloatLE=function(pt,yt,Ut){return Bn(this,pt,yt,!0,Ut)},tt.prototype.writeFloatBE=function(pt,yt,Ut){return Bn(this,pt,yt,!1,Ut)};function Yn(bt,pt,yt,Ut,an){return pt=+pt,yt=yt>>>0,an||_n(bt,pt,yt,8),d.write(bt,pt,yt,Ut,52,8),yt+8}tt.prototype.writeDoubleLE=function(pt,yt,Ut){return Yn(this,pt,yt,!0,Ut)},tt.prototype.writeDoubleBE=function(pt,yt,Ut){return Yn(this,pt,yt,!1,Ut)},tt.prototype.copy=function(pt,yt,Ut,an){if(!tt.isBuffer(pt))throw new TypeError("argument should be a Buffer");if(Ut||(Ut=0),!an&&an!==0&&(an=this.length),yt>=pt.length&&(yt=pt.length),yt||(yt=0),an>0&&an=this.length)throw new RangeError("Index out of range");if(an<0)throw new RangeError("sourceEnd out of bounds");an>this.length&&(an=this.length),pt.length-yt>>0,Ut=Ut===void 0?this.length:Ut>>>0,pt||(pt=0);let sn;if(typeof pt=="number")for(sn=yt;sn2**32?an=mn(String(yt)):typeof yt=="bigint"&&(an=String(yt),(yt>BigInt(2)**BigInt(32)||yt<-(BigInt(2)**BigInt(32)))&&(an=mn(an)),an+="n"),Ut+=` It must be ${pt}. Received ${an}`,Ut},RangeError);function mn(bt){let pt="",yt=bt.length;const Ut=bt[0]==="-"?1:0;for(;yt>=Ut+4;yt-=3)pt=`_${bt.slice(yt-3,yt)}${pt}`;return`${bt.slice(0,yt)}${pt}`}function jn(bt,pt,yt){vn(pt,"offset"),(bt[pt]===void 0||bt[pt+yt]===void 0)&&En(pt,bt.length-(yt+1))}function kn(bt,pt,yt,Ut,an,sn){if(bt>yt||bt3?pt===0||pt===BigInt(0)?or=`>= 0${Sn} and < 2${Sn} ** ${(sn+1)*8}${Sn}`:or=`>= -(2${Sn} ** ${(sn+1)*8-1}${Sn}) and < 2 ** ${(sn+1)*8-1}${Sn}`:or=`>= ${pt}${Sn} and <= ${yt}${Sn}`,new dn.ERR_OUT_OF_RANGE("value",or,bt)}jn(Ut,an,sn)}function vn(bt,pt){if(typeof bt!="number")throw new dn.ERR_INVALID_ARG_TYPE(pt,"number",bt)}function En(bt,pt,yt){throw Math.floor(bt)!==bt?(vn(bt,yt),new dn.ERR_OUT_OF_RANGE(yt||"offset","an integer",bt)):pt<0?new dn.ERR_BUFFER_OUT_OF_BOUNDS:new dn.ERR_OUT_OF_RANGE(yt||"offset",`>= ${yt?1:0} and <= ${pt}`,bt)}const gn=/[^+/0-9A-Za-z-_]/g;function Ln(bt){if(bt=bt.split("=")[0],bt=bt.trim().replace(gn,""),bt.length<2)return"";for(;bt.length%4!==0;)bt=bt+"=";return bt}function Fn(bt,pt){pt=pt||1/0;let yt;const Ut=bt.length;let an=null;const sn=[];for(let Sn=0;Sn55295&&yt<57344){if(!an){if(yt>56319){(pt-=3)>-1&&sn.push(239,191,189);continue}else if(Sn+1===Ut){(pt-=3)>-1&&sn.push(239,191,189);continue}an=yt;continue}if(yt<56320){(pt-=3)>-1&&sn.push(239,191,189),an=yt;continue}yt=(an-55296<<10|yt-56320)+65536}else an&&(pt-=3)>-1&&sn.push(239,191,189);if(an=null,yt<128){if((pt-=1)<0)break;sn.push(yt)}else if(yt<2048){if((pt-=2)<0)break;sn.push(yt>>6|192,yt&63|128)}else if(yt<65536){if((pt-=3)<0)break;sn.push(yt>>12|224,yt>>6&63|128,yt&63|128)}else if(yt<1114112){if((pt-=4)<0)break;sn.push(yt>>18|240,yt>>12&63|128,yt>>6&63|128,yt&63|128)}else throw new Error("Invalid code point")}return sn}function Un(bt){const pt=[];for(let yt=0;yt>8,an=yt%256,sn.push(an),sn.push(Ut);return sn}function zn(bt){return _.toByteArray(Ln(bt))}function wn(bt,pt,yt,Ut){let an;for(an=0;an=pt.length||an>=bt.length);++an)pt[an+yt]=bt[an];return an}function Nn(bt,pt){return bt instanceof pt||bt!=null&&bt.constructor!=null&&bt.constructor.name!=null&&bt.constructor.name===pt.name}function Wn(bt){return bt!==bt}const Vn=function(){const bt="0123456789abcdef",pt=new Array(256);for(let yt=0;yt<16;++yt){const Ut=yt*16;for(let an=0;an<16;++an)pt[Ut+an]=bt[yt]+bt[an]}return pt}();function bn(bt){return typeof BigInt>"u"?Yt:bt}function Yt(){throw new Error("BigInt not supported")}})(buffer);window&&!window.Buffer&&(window.Buffer=buffer.Buffer);var eruda$1={exports:{}};/*! eruda v2.11.3 https://eruda.liriliri.io/ */(function(module,exports){(function(b,_){module.exports=_()})(self,function(){return function(){var __webpack_modules__={422:function(b,_,d){d.d(_,{Z:function(){return dn}});var k=d(5671),j=d(3144),$=d(9340),et=d(2963),tt=d(1120),rt=d(2461),nt=d.n(rt),ot=d(3990),at=d.n(ot),it=d(6768),dt=d.n(it),ut=d(4331),ht=d.n(ut),ft=d(5610),lt=d.n(ft),ct=d(7483),gt=d.n(ct),st=d(6341),Ct=d.n(st),xt=d(3875),wt=d.n(xt),Mt=d(6954),kt=d.n(Mt);d(9585);function _t(mn){var jn="luna-".concat(mn,"-");function kn(vn){return nt()(ht()(vn).split(/\s+/),function(En){return Ct()(En,jn)?En:En.replace(/[\w-]+/,function(gn){return"".concat(jn).concat(gn)})}).join(" ")}return function(vn){if(/<[^>]*>/g.test(vn))try{var En=gt().parse(vn);return Tt(En,function(gn){gn.attrs&&gn.attrs.class&&(gn.attrs.class=kn(gn.attrs.class))}),gt().stringify(En)}catch{return kn(vn)}return kn(vn)}}function Tt(mn,jn){for(var kn=0,vn=mn.length;kn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var kn,vn=(0,tt.Z)(mn);if(jn){var En=(0,tt.Z)(this).constructor;kn=Reflect.construct(vn,arguments,En)}else kn=vn.apply(this,arguments);return(0,et.Z)(this,kn)}}var Bn=function(mn){(0,$.Z)(kn,mn);var jn=_n(kn);function kn(vn,En){var gn,Ln=En.compName,Fn=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Un=Fn===void 0?"light":Fn;return(0,k.Z)(this,kn),(gn=jn.call(this)).subComponents=[],gn.compName=Ln,gn.c=_t(Ln),gn.options={},gn.container=vn,gn.$container=Bt()(vn),gn.$container.addClass(["luna-".concat(Ln),gn.c("platform-".concat(At()))]),gn.on("optionChange",function(Mn,zn,wn){var Nn=gn.c;Mn==="theme"&&(gn.$container.rmClass(Nn("theme-".concat(wn))).addClass(Nn("theme-".concat(zn))),rn()(gn.subComponents,function(Wn){return Wn.setOption("theme",zn)}))}),gn.setOption("theme",Un),gn}return(0,j.Z)(kn,[{key:"destroy",value:function(){this.destroySubComponents();var vn=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(vn("platform-".concat(At()))).rmClass(vn("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(vn,En){var gn=this,Ln=this.options,Fn={};typeof vn=="string"?Fn[vn]=En:Fn=vn,rn()(Fn,function(Un,Mn){var zn=Ln[Mn];Ln[Mn]=Un,gn.emit("optionChange",Mn,Un,zn)})}},{key:"getOption",value:function(vn){return this.options[vn]}},{key:"addSubComponent",value:function(vn){vn.setOption("theme",this.options.theme),this.subComponents.push(vn)}},{key:"removeSubComponent",value:function(vn){On()(this.subComponents,function(En){return En===vn})}},{key:"destroySubComponents",value:function(){rn()(this.subComponents,function(vn){return vn.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(vn){var En=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};fn()(vn,En),Qt()(this.options,vn)}},{key:"find",value:function(vn){return this.$container.find(this.c(vn))}}]),kn}(Ot());function Yn(mn){var jn=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var kn,vn=(0,tt.Z)(mn);if(jn){var En=(0,tt.Z)(this).constructor;kn=Reflect.construct(vn,arguments,En)}else kn=vn.apply(this,arguments);return(0,et.Z)(this,kn)}}b=d.hmd(b);var dn=function(mn){(0,$.Z)(kn,mn);var jn=Yn(kn);function kn(vn){var En,gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,k.Z)(this,kn),(En=jn.call(this,vn,{compName:"box-model"})).initOptions(gn),En.options.element&&En.render(),En.bindEvent(),En}return(0,j.Z)(kn,[{key:"bindEvent",value:function(){var vn=this;this.on("optionChange",function(En){En==="element"&&vn.render()})}},{key:"render",value:function(){var vn=this.c,En=this.getBoxModelData();this.$container.html(['
'),En.position?'
'):"",En.position?'
position
').concat(En.position.top,'

').concat(En.position.left,"
"):"",'
'),'
margin
').concat(En.margin.top,'

').concat(En.margin.left,"
"),'
'),'
border
').concat(En.border.top,'

').concat(En.border.left,"
"),'
'),'
padding
').concat(En.padding.top,'

').concat(En.padding.left,"
"),'
'),"".concat(En.content.width," × ").concat(En.content.height,""),"
",'
').concat(En.padding.right,'

').concat(En.padding.bottom,"
"),"
",'
').concat(En.border.right,'

').concat(En.border.bottom,"
"),"
",'
').concat(En.margin.right,'

').concat(En.margin.bottom,"
"),"
",En.position?'
').concat(En.position.right,'

').concat(En.position.bottom,"
"):"",En.position?"
":"","
"].join(""))}},{key:"getBoxModelData",value:function(){var vn=this.options.element,En=window.getComputedStyle(vn);function gn(Fn){var Un=["top","left","right","bottom"];return Fn!=="position"&&(Un=nt()(Un,function(Mn){return"".concat(Fn,"-").concat(Mn)})),Fn==="border"&&(Un=nt()(Un,function(Mn){return"".concat(Mn,"-width")})),{top:An(En[Un[0]],Fn),left:An(En[Un[1]],Fn),right:An(En[Un[2]],Fn),bottom:An(En[Un[3]],Fn)}}var Ln={margin:gn("margin"),border:gn("border"),padding:gn("padding"),content:{width:An(En.width),height:An(En.height)}};return En.position!=="static"&&(Ln.position=gn("position")),Ln}}]),kn}(Bn);function An(mn,jn){if(at()(mn))return mn;if(!dt()(mn))return"‒";var kn,vn=(kn=mn,wt()(kn.replace("px","")));return isNaN(vn)?mn:jn==="position"?vn:vn===0?"‒":vn}(function(mn,jn){try{mn.exports=jn,mn.exports.default=jn}catch{}})(b,dn)},8816:function(b,_,d){d.d(_,{Z:function(){return ns}});var k=d(168),j=d(181);function $(Sr,zr){return function(Er){if(Array.isArray(Er))return Er}(Sr)||function(Er,qt){var Kt=Er==null?null:typeof Symbol<"u"&&Er[Symbol.iterator]||Er["@@iterator"];if(Kt!=null){var Cn,Zn,br,gr,_r=[],Cr=!0,Or=!1;try{if(br=(Kt=Kt.call(Er)).next,qt===0){if(Object(Kt)!==Kt)return;Cr=!1}else for(;!(Cr=(Cn=br.call(Kt)).done)&&(_r.push(Cn.value),_r.length!==qt);Cr=!0);}catch(Yr){Or=!0,Zn=Yr}finally{try{if(!Cr&&Kt.return!=null&&(gr=Kt.return(),Object(gr)!==gr))return}finally{if(Or)throw Zn}}return _r}}(Sr,zr)||(0,j.Z)(Sr,zr)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var et=d(5671),tt=d(3144),rt=d(1752),nt=d(9340),ot=d(2963),at=d(1120),it=d(7326),dt=d(8901),ut=d.n(dt),ht=d(3367),ft=d.n(ht),lt=d(6341),ct=d.n(lt),gt=d(6930),st=d.n(gt),Ct=d(4187),xt=d.n(Ct),wt=d(3783),Mt=d.n(wt),kt=d(4858),_t=d.n(kt),Tt=d(8887),At=d.n(Tt),Et=d(7756),Ot=d.n(Et),Lt=d(3023),Bt=d.n(Lt);function Zt(Sr){return Sr.constructor&&Sr.constructor.name?Sr.constructor.name:Bt()({}.toString.call(Sr).replace(/(\[object )|]/g,""))}var rn=d(2461),nn=d.n(rn),Qt=d(4331),Vt=d.n(Qt),fn=d(5610),In=d.n(fn),On=d(7483),_n=d.n(On),Bn=d(3990),Yn=d.n(Bn),dn=d(3875),An=d.n(dn),mn=d(6954),jn=d.n(mn),kn=d(9585),vn=d.n(kn);function En(Sr){var zr="luna-".concat(Sr,"-");function Er(qt){return nn()(Vt()(qt).split(/\s+/),function(Kt){return ct()(Kt,zr)?Kt:Kt.replace(/[\w-]+/,function(Cn){return"".concat(zr).concat(Cn)})}).join(" ")}return function(qt){if(/<[^>]*>/g.test(qt))try{var Kt=_n().parse(qt);return gn(Kt,function(Cn){Cn.attrs&&Cn.attrs.class&&(Cn.attrs.class=Er(Cn.attrs.class))}),_n().stringify(Kt)}catch{return Er(qt)}return Er(qt)}}function gn(Sr,zr){for(var Er=0,qt=Sr.length;Er1&&arguments[1]!==void 0?arguments[1]:{},qt=Er.topObj,Kt=Er.level,Cn=Kt===void 0?0:Kt,Zn=Er.getterVal,br=Zn!==void 0&&Zn,gr=Er.unenumerable,_r=gr===void 0||gr,Cr="",Or="",Yr=5,Gr=[],oo=[],po="";qt=qt||Sr;var Hr={getterVal:br,unenumerable:_r,level:Cn+1},ao=Cn===0,yo=''),bo=''),Eo=''),Ro=''),vo=''),Io=''),So=function(Xr){return ut()(Xr).replace(/\\n/g,"↵").replace(/\\f|\\r|\\t/g,"").replace(/\\/g,"")},wo="",Ao=function(Xr){return yo+So(Xr)+wo};function Co(Xr){return Xr=ft()(Xr),ct()(Mn,Xr)||st()(Xr,"Array[")?Io+So(Xr)+wo:(Xr.length>100&&(Xr=Ot()(Xr,100,{separator:" ",ellipsis:"…"})),Ro+So('"'.concat(Xr,'"'))+wo)}function Lo(Xr){if(zr>Yr)po=", …";else{var is=Ao(wn(Xr));if(!br){var No=Object.getOwnPropertyDescriptor(Sr,Xr);if(No&&No.get)return Gr.push("".concat(is,": ").concat(Co("(...)"))),void zr++}Gr.push("".concat(is,": ").concat(Un(qt[Xr],Hr))),zr++}}try{Or={}.toString.call(Sr)}catch{Or="[object Object]"}var Bo,Po=Or=="[object Array]",Fo=Or=="[object Object]",Ho=Or=="[object Number]",jo=Or=="[object RegExp]",Oo=Or=="[object Symbol]",Bs=Or=="[object Function]",Ps=Or=="[object Boolean]";if(Or=="[object String]")Cr=Co(wn(Sr));else if(jo)Bo=wn(Sr.toString()),Cr=Ro+Bo+wo;else if(Bs)Cr=Co("ƒ");else if(Po)if(ao){Cr="[";var Zo=Sr.length,os="";Zo>100&&(Zo=100,os=", …");for(var Vo=0;Vo"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Er,qt=(0,at.Z)(Sr);if(zr){var Kt=(0,at.Z)(this).constructor;Er=Reflect.construct(qt,arguments,Kt)}else Er=qt.apply(this,arguments);return(0,ot.Z)(this,Er)}}var qr=/https?:\/\/([0-9.\-A-Za-z]+)(?::(\d+))?\/[A-Z.a-z0-9/]*\.js/g,eo={comment:"",string:"",number:"",keyword:"",operator:""},to=function(Sr){(0,nt.Z)(Er,Sr);var zr=ro(Er);function Er(qt,Kt){var Cn,Zn=Kt.type,br=Zn===void 0?"log":Zn,gr=Kt.args,_r=gr===void 0?[]:gr,Cr=Kt.id,Or=Kt.group,Yr=Kt.targetGroup,Gr=Kt.header,oo=Kt.ignoreFilter,po=oo!==void 0&&oo,Hr=Kt.accessGetter,ao=Kt.unenumerable,yo=Kt.lazyEvaluation;(0,et.Z)(this,Er),(Cn=zr.call(this)).container=un()("div"),Cn.count=1,Cn.width=0,Cn.height=0,Cn.isHidden=!1,Cn.columns=[],Cn.elements={},Cn.objects={},Cn.console=qt,Cn.type=br,Cn.group=Or,Cn.targetGroup=Yr,Cn.args=_r,Cn.id=Cr,Cn.header=Gr,Cn.ignoreFilter=po,Cn.collapsed=!1,Cn.container.log=(0,it.Z)(Cn),Cn.height=0,Cn.width=0,Cn.$container=Pt()(Cn.container),Cn.accessGetter=Hr,Cn.unenumerable=ao,Cn.lazyEvaluation=yo;var bo="info";switch(br){case"debug":bo="verbose";break;case"error":bo="error";break;case"warn":bo="warning"}return Cn.level=bo,Cn.resizeSensor=new(bt())(Cn.container),Cn.onResize=Gn()(function(){vn()(Cn.container)?Cn.isHidden=!0:(Cn.isHidden||Cn.updateSize(!1),Cn.isHidden=!1)},16),Cn.formatMsg(),Cn.group&&Cn.checkGroup(),Cn.bindEvent(),Cn}return(0,tt.Z)(Er,[{key:"checkGroup",value:function(){for(var qt=this.group,Kt=!1;qt;){if(qt.collapsed){Kt=!0;break}qt=qt.parent}return Kt!==this.collapsed&&(this.collapsed=Kt,!0)}},{key:"updateIcon",value:function(qt){var Kt=this.console.c;return this.$container.find(Kt(".icon-container")).find(Kt(".icon")).rmAttr("class").addClass([Kt("icon"),Kt("icon-".concat(qt))]),this}},{key:"addCount",value:function(){this.count++;var qt=this.$container,Kt=this.count,Cn=this.console.c,Zn=qt.find(Cn(".count-container")),br=qt.find(Cn(".icon-container")),gr=Zn.find(Cn(".count"));return Kt===2&&Zn.rmClass(Cn("hidden")),gr.text(ft()(Kt)),br.addClass(Cn("hidden")),this}},{key:"groupEnd",value:function(){var qt=this.$container,Kt=this.console.c;return qt.find(".".concat(Kt("nesting-level"),":not(.").concat(Kt("group-closed"),")")).last().addClass(Kt("group-closed")),this}},{key:"updateTime",value:function(qt){var Kt=this.$container.find(this.console.c(".time-container"));return this.header&&(Kt.find("span").eq(0).text(qt),this.header.time=qt),this}},{key:"isAttached",value:function(){return!!this.container.parentNode}},{key:"isSimple",value:function(){return!sr()(this.args,function(qt){return yt()(qt)})}},{key:"updateSize",value:function(){var qt=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],Kt=this.container.getBoundingClientRect(),Cn=Kt.width,Zn=Kt.height-1;this.height!==Zn&&(this.height=Zn,qt||this.emit("updateHeight")),this.width!==Cn&&(this.width=Cn)}},{key:"html",value:function(){return this.container.outerHTML}},{key:"text",value:function(){return this.content.textContent||""}},{key:"select",value:function(){this.$container.addClass(this.console.c("selected"))}},{key:"deselect",value:function(){this.$container.rmClass(this.console.c("selected"))}},{key:"copy",value:function(){var qt=this.args,Kt="";Mt()(qt,function(Cn,Zn){Zn!==0&&(Kt+=" "),yt()(Cn)?Kt+=er()(Cn):Kt+=ft()(Cn)}),Kn()(Kt)}},{key:"bindEvent",value:function(){var qt=this,Kt=this.console.c,Cn=this;this.resizeSensor.addListener(this.onResize),this.$container.on("click",Kt(".dom-viewer"),function(Zn){return Zn.stopPropagation()}).on("click",Kt(".preview"),function(Zn){Zn.stopPropagation();var br=Pt()(this).find(Kt(".preview-icon-container")).find(Kt(".icon")),gr="caret-down";br.hasClass(Kt("icon-caret-down"))&&(gr="caret-right"),br.rmAttr("class").addClass([Kt("icon"),Kt("icon-".concat(gr))]),Cn.renderObjectViewer(this)}).on("click",function(){return qt.click()})}},{key:"renderEl",value:function(){var qt=this.elements,Kt=this.console.c,Cn=this;this.$container.find(Kt(".dom-viewer")).each(function(){var Zn=Pt()(this).data("id");new bn.Z(this,{node:qt[Zn],theme:Cn.console.getOption("theme")})})}},{key:"renderObjectViewer",value:function(qt){var Kt=this.console,Cn=this.unenumerable,Zn=this.accessGetter,br=this.lazyEvaluation,gr=Kt.c,_r=Pt()(qt),Cr=_r.data("id");if(Cr){var Or=this.objects[Cr],Yr=_r.find(gr(".json"));if(Yr.hasClass(gr("hidden"))){if(Yr.data("init")!=="true"){if(br){var Gr=new Wn.Z(Yr.get(0),{unenumerable:Cn,accessGetter:Zn});Gr.setOption("theme",Kt.getOption("theme")),Gr.set(Or)}else{var oo=new Wn.q(Yr.get(0));oo.setOption("theme",Kt.getOption("theme")),oo.set(Or)}Yr.data("init","true")}Yr.rmClass(gr("hidden"))}else Yr.addClass(gr("hidden"))}}},{key:"renderTable",value:function(qt){var Kt=this,Cn="__LunaConsoleValue",Zn=this.columns,br=this.$container,gr=this.console,_r=gr.c,Cr=br.find(_r(".data-grid")),Or=qt[0],Yr=new Vn.Z(Cr.get(0),{columns:pr()([{id:"(index)",title:"(index)",sortable:!0}],nn()(Zn,function(Gr){return{id:Gr,title:Gr===Cn?"Value":Gr,sortable:!0}})),theme:gr.getOption("theme")});Mt()(Or,function(Gr,oo){var po={"(index)":ft()(oo)};Zn.forEach(function(Hr){yt()(Gr)?po[Hr]=Hr===Cn?"":Kt.formatTableVal(Gr[Hr]):Rn()(Gr)&&(po[Hr]=Hr===Cn?Kt.formatTableVal(Gr):"")}),Yr.append(po)})}},{key:"extractObj",value:function(qt){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Cn=arguments.length>2?arguments[2]:void 0,Zn=this.accessGetter,br=this.unenumerable;$n()(Kt,{accessGetter:Zn,unenumerable:br,symbol:br,timeout:1e3}),function(gr,_r,Cr){var Or=ur()(gr,_r);yr()(function(){return Cr(Or)})}(qt,Kt,function(gr){return Cn(JSON.parse(gr))})}},{key:"click",value:function(){var qt=this.type,Kt=this.$container,Cn=this.console,Zn=Cn.c;switch(qt){case"log":case"warn":case"info":case"debug":case"output":case"table":case"dir":break;case"group":case"groupCollapsed":Cn.toggleGroup(this);break;case"error":Kt.find(Zn(".stack")).toggleClass(Zn("hidden"))}}},{key:"formatMsg",value:function(){var qt=this.args,Kt=this.type,Cn=this.id,Zn=this.header,br=this.group,gr=this.console.c;qt=Dt()(qt);var _r,Cr,Or="";switch(Kt!=="group"&&Kt!=="groupCollapsed"||qt.length===0&&(qt=["console.group"]),Kt){case"log":case"info":case"debug":Or=this.formatCommon(qt);break;case"dir":Or=this.formatDir(qt);break;case"warn":_r="warn",Or=this.formatCommon(qt);break;case"error":an()(qt[0])&&qt.length!==1&&(qt=this.substituteStr(qt)),Cr=qt[0],_r="error",Cr=Sn()(Cr)?Cr:new Error(this.formatCommon(qt)),Or=this.formatErr(Cr);break;case"table":Or=this.formatTable(qt);break;case"html":Or=qt[0];break;case"input":Or=this.formatJs(qt[0]),_r="input";break;case"output":Or=this.formatCommon(qt),_r="output";break;case"groupCollapsed":Or=this.formatCommon(qt),_r="caret-right";break;case"group":Or=this.formatCommon(qt),_r="caret-down"}ct()(["log","debug","warn"],Kt)&&this.isSimple()&&(Or=Pn()(Or,function(Yr){return'').concat(Yr,"")})),Or=this.render({msg:Or,type:Kt,icon:_r,id:Cn,header:Zn,group:br}),this.$container.addClass("".concat(gr("log-container"))).html(Or),Kt==="table"&&(At()(this.columns)||this.renderTable(qt)),At()(this.elements)||this.renderEl(),this.$content=this.$container.find(gr(".log-content")),this.content=this.$content.get(0)}},{key:"render",value:function(qt){var Kt=this.console.c,Cn="",Zn="";if(qt.group)for(var br=qt.group.indentLevel,gr=0;gr');qt.header&&(Cn+=Ar()(Nn||(Nn=(0,k.Z)([`
`,`
@@ -39,13 +39,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
').concat(qt.msg,`
`)}},{key:"formatTable",value:function(qt){var Kt=qt[0],Cn=qt[1],Zn=[];return an()(Cn)&&(Cn=Zr()(Cn)),St()(Cn)||(Cn=null),yt()(Kt)?(Mt()(Kt,function(br){Rn()(br)?Zn.push("__LunaConsoleValue"):yt()(br)&&(Zn=Zn.concat(Rt()(br)))}),(Zn=$t()(Zn)).sort(),Cn&&(Zn=Zn.filter(function(br){return ct()(Cn,br)})),Zn.length>20&&(Zn=Zn.slice(0,20)),At()(Zn)?this.formatCommon(qt):(this.columns=Zn,this.console.c('
')+this.formatPreview(Kt))):this.formatCommon(qt)}},{key:"formatErr",value:function(qt){var Kt=qt.stack?qt.stack.split(` -`):[],Cn="".concat(qt.message||Kt[0],"
");return Kt=Kt.map(function(Zn){return ut()(Zn)}),Cn+'
').concat(Kt.slice(1).join("
"),"
").replace(qr,function(Zn){return'').concat(Zn,"")})}},{key:"formatCommon",value:function(qt){var Kt=this.console.c,Cn=an()(qt[0])&&qt.length!==1;Cn&&(qt=this.substituteStr(qt));for(var Zn=0,br=qt.length;Zn').concat(ut()(ft()(gr)),"
"):yt()(gr)?qt[Zn]=this.formatPreview(gr):Pr()(gr)?qt[Zn]='undefined'):kr()(gr)?qt[Zn]='null'):Yn()(gr)?qt[Zn]='').concat(ft()(gr),""):typeof gr=="bigint"?qt[Zn]='').concat(ft()(gr),"n"):Dr()(gr)?qt[Zn]='').concat(ft()(gr),""):Br()(gr)?qt[Zn]='').concat(ut()(ft()(gr)),""):(gr=ft()(gr),Zn===0&&Cn||(gr=ut()(gr)),gr.length>5e3&&(gr=Ot()(gr,5e3,{separator:" ",ellipsis:"…"})),qt[Zn]=gr)}return qt.join(" ")}},{key:"formatDir",value:function(qt){return yt()(qt[0])?this.formatPreview(qt[0]):this.formatCommon(qt)}},{key:"formatTableVal",value:function(qt){var Kt=this.console.c;return yt()(qt)?"{…}":Rn()(qt)?jr()('
').concat(Un(qt),"
")):ft()(qt)}},{key:"formatPreview",value:function(qt){var Kt=this,Cn=this.console.c,Zn=pn()();this.lazyEvaluation?this.objects[Zn]=qt:this.extractObj(qt,{},function(_r){Kt.objects[Zn]=_r});var br=ct()(["dir","table"],this.type),gr=Zt(qt);return gr==="Array"&&qt.length>1?(gr="(".concat(qt.length,")"),br&&(gr="Array".concat(gr))):gr==="RegExp"?gr=ft()(qt):Qn()(qt)&&(gr=this.formatElName(qt)),'
')+'
')+'
')+'')+'').concat(ut()(gr)," ")+'').concat(br?"":Un(qt,{getterVal:this.accessGetter,unenumerable:!1}),"")+"
"+'
')}},{key:"substituteStr",value:function(qt){var Kt=ut()(qt[0]),Cn=!1,Zn="";qt.shift();for(var br=0,gr=Kt.length;br"),Cn=!0,Zn+='');break;default:br--,qt.unshift(Cr),Zn+=_r}}else Zn+=_r}return Cn&&(Zn+=""),qt.unshift(Zn),qt}},{key:"formatJs",value:function(qt){return'
').concat(this.console.c(hr()(qt,"js",eo)),"
")}},{key:"formatFn",value:function(qt){return'
'.concat(this.formatJs(qt.toString()),"
")}},{key:"formatElName",value:function(qt){var Kt=qt.id,Cn=qt.className,Zn=qt.tagName.toLowerCase();if(Kt!==""&&(Zn+="#".concat(Kt)),an()(Cn)){var br="";Mt()(Cn.split(/\s+/g),function(gr){gr.trim()!==""&&(br+=".".concat(gr))}),Zn+=br}return Zn}},{key:"formatEl",value:function(qt){var Kt=pn()();return this.elements[Kt]=qt,this.console.c('
'))}}]),Er}(Gt());function no(Sr){var Wr=(Sr=It()(Sr)).split(";"),Er={};Mt()(Wr,function(Kt){if(ct()(Kt,":")){var Cn=$(Kt.split(":"),2),Zn=Cn[0],br=Cn[1];Er[Vt()(Zn)]=Vt()(br)}}),Er.display="inline-block",Er["max-width"]="100%",delete Er.width,delete Er.height;var qt="";return Mt()(Er,function(Kt,Cn){qt+="".concat(Cn,":").concat(Kt,";")}),qt}var io=d(1194),co=d.n(io),so=d(8847),fo=d.n(so),Wo=d(6329),_i=d.n(Wo),ys=d(9001),ga=d.n(ys),bs=d(9702),ws=d.n(bs),Kr=d(2439),xs=d.n(Kr),va=d(8933),_s=d.n(va),Cs=d(4407),ks=d.n(Cs),As=d(5852),Es=d.n(As);function Ss(Sr){var Wr=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Er,qt=(0,at.Z)(Sr);if(Wr){var Kt=(0,at.Z)(this).constructor;Er=Reflect.construct(qt,arguments,Kt)}else Er=qt.apply(this,arguments);return(0,ot.Z)(this,Er)}}var es,Ts=function(Sr){(0,nt.Z)(Er,Sr);var Wr=Ss(Er);function Er(qt,Kt){var Cn,Zn=Kt.compName,br=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,gr=br===void 0?"light":br;return(0,et.Z)(this,Er),(Cn=Wr.call(this)).subComponents=[],Cn.compName=Zn,Cn.c=En(Zn),Cn.options={},Cn.container=qt,Cn.$container=Bt()(qt),Cn.$container.addClass(["luna-".concat(Zn),Cn.c("platform-".concat(Ln()))]),Cn.on("optionChange",function(_r,Cr,Or){var Yr=Cn.c;_r==="theme"&&(Cn.$container.rmClass(Yr("theme-".concat(Or))).addClass(Yr("theme-".concat(Cr))),Mt()(Cn.subComponents,function(Gr){return Gr.setOption("theme",Cr)}))}),Cn.setOption("theme",gr),Cn}return(0,tt.Z)(Er,[{key:"destroy",value:function(){this.destroySubComponents();var qt=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(qt("platform-".concat(Ln()))).rmClass(qt("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(qt,Kt){var Cn=this,Zn=this.options,br={};typeof qt=="string"?br[qt]=Kt:br=qt,Mt()(br,function(gr,_r){var Cr=Zn[_r];Zn[_r]=gr,Cn.emit("optionChange",_r,gr,Cr)})}},{key:"getOption",value:function(qt){return this.options[qt]}},{key:"addSubComponent",value:function(qt){qt.setOption("theme",this.options.theme),this.subComponents.push(qt)}},{key:"removeSubComponent",value:function(qt){Es()(this.subComponents,function(Kt){return Kt===qt})}},{key:"destroySubComponents",value:function(){Mt()(this.subComponents,function(qt){return qt.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(qt){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};$n()(qt,Kt),_i()(this.options,qt)}},{key:"find",value:function(qt){return this.$container.find(this.c(qt))}}]),Er}(Gt()),Ms=d(1571),Is=d.n(Ms);function js(Sr){var Wr=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Er,qt=(0,at.Z)(Sr);if(Wr){var Kt=(0,at.Z)(this).constructor;Er=Reflect.construct(qt,arguments,Kt)}else Er=qt.apply(this,arguments);return(0,ot.Z)(this,Er)}}b=d.hmd(b);var ts=navigator.userAgent,Os=ts.indexOf("Android")>-1||ts.indexOf("Adr")>-1,Rs=0,ns=function(Sr){(0,nt.Z)(Er,Sr);var Wr=js(Er);function Er(qt){var Kt,Cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,et.Z)(this,Er),(Kt=Wr.call(this,qt,{compName:"console"},Cn)).spaceHeight=0,Kt.topSpaceHeight=0,Kt.bottomSpaceHeight=0,Kt.lastScrollTop=0,Kt.lastTimestamp=0,Kt.speedToleranceFactor=100,Kt.maxSpeedTolerance=2e3,Kt.minSpeedTolerance=100,Kt.logs=[],Kt.displayLogs=[],Kt.timer={},Kt.counter={},Kt.asyncList=[],Kt.asyncTimer=null,Kt.isAtBottom=!0,Kt.groupStack=new(ga()),Kt.selectedLog=null,Kt.onScroll=function(){var Zn=Kt.container,br=Zn.scrollHeight,gr=Zn.offsetHeight,_r=Zn.scrollTop;if(!(_r<=0||gr+_r>br)){var Cr=!1;(br===gr||_r===br-gr)&&(Cr=!0),Kt.isAtBottom=Cr;var Or=Kt.lastScrollTop,Yr=Kt.lastTimestamp,Gr=fo()(),oo=Gr-Yr,po=_r-Or,Hr=Math.abs(po/oo)*Kt.speedToleranceFactor;oo>1e3&&(Hr=1e3),Hr>Kt.maxSpeedTolerance&&(Hr=Kt.maxSpeedTolerance),Hr_r+gr+yo||Kt.renderViewport({topTolerance:2*ao,bottomTolerance:2*yo})}},Kt.initTpl(),Kt.initOptions(Cn,{maxNum:0,asyncRender:!0,showHeader:!1,filter:"",level:["verbose","info","warning","error"],accessGetter:!1,unenumerable:!0,lazyEvaluation:!0}),Kt.$el=Kt.find(".logs"),Kt.el=Kt.$el.get(0),Kt.$fakeEl=Kt.find(".fake-logs"),Kt.fakeEl=Kt.$fakeEl.get(0),Kt.$space=Kt.find(".logs-space"),Kt.space=Kt.$space.get(0),Os&&(Kt.speedToleranceFactor=800,Kt.maxSpeedTolerance=3e3,Kt.minSpeedTolerance=800),Kt.resizeSensor=new(bt())(qt),Kt.renderViewport=xs()(function(Zn){Kt._renderViewport(Zn)},16),Kt.global={copy:function(Zn){an()(Zn)||(Zn=JSON.stringify(Zn,null,2)),Kn()(Zn)},$:function(Zn){return document.querySelector(Zn)},$$:function(Zn){return Zr()(document.querySelectorAll(Zn))},$x:function(Zn){return _s()(Zn)},clear:function(){Kt.clear()},dir:function(Zn){Kt.dir(Zn)},table:function(Zn,br){Kt.table(Zn,br)},keys:Rt()},Kt.bindEvent(),Kt}return(0,tt.Z)(Er,[{key:"setGlobal",value:function(qt,Kt){this.global[qt]=Kt}},{key:"destroy",value:function(){this.$container.off("scroll",this.onScroll),this.resizeSensor.destroy(),(0,rt.Z)((0,at.Z)(Er.prototype),"destroy",this).call(this)}},{key:"count",value:function(){var qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"default",Kt=this.counter;Pr()(Kt[qt])?Kt[qt]=1:Kt[qt]++,this.info("".concat(qt,": ").concat(Kt[qt]))}},{key:"countReset",value:function(){var qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"default";this.counter[qt]=0}},{key:"assert",value:function(){for(var qt=arguments.length,Kt=new Array(qt),Cn=0;Cn0&&arguments[0]!==void 0?arguments[0]:"default";if(this.timer[qt])return this.insert("warn",["Timer '".concat(qt,"' already exists")]);this.timer[qt]=co()()}},{key:"timeLog",value:function(){var qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"default",Kt=this.timer[qt];if(!Kt)return this.insert("warn",["Timer '".concat(qt,"' does not exist")]);this.info("".concat(qt,": ").concat(co()()-Kt,"ms"))}},{key:"timeEnd",value:function(){var qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"default";this.timeLog(qt),delete this.timer[qt]}},{key:"clear",value:function(){var qt=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.logs=[],this.displayLogs=[],this.selectLog(null),this.lastLog=void 0,this.counter={},this.timer={},this.groupStack=new(ga()),this.asyncList=[],this.asyncTimer&&(clearTimeout(this.asyncTimer),this.asyncTimer=null),qt?this.render():this.insert("log",["%cConsole was cleared","color:#808080;font-style:italic;"])}},{key:"info",value:function(){for(var qt=arguments.length,Kt=new Array(qt),Cn=0;Cn0&&(Zn.group=_r.peek()),_i()(Zn,{id:++Rs,accessGetter:Yr,unenumerable:Gr,lazyEvaluation:oo}),Zn.type==="group"||Zn.type==="groupCollapsed"){var po={id:pn()("group"),collapsed:!1,parent:_r.peek(),indentLevel:_r.size+1};Zn.type==="groupCollapsed"&&(po.collapsed=!0),Zn.targetGroup=po,_r.push(po)}var Hr=new to(this,Zn);Hr.on("updateHeight",function(){br.isAtBottom=!1,br.renderViewport()});var ao=this.lastLog;if(ao&&!ct()(["html","group","groupCollapsed"],Hr.type)&&ao.type===Hr.type&&Hr.isSimple()&&ao.text()===Hr.text()?(ao.addCount(),Hr.header&&ao.updateTime(Hr.header.time),Hr=ao,this.detachLog(ao)):(gr.push(Hr),this.lastLog=Hr),Or!==0&&gr.length>Or){var yo=gr[0];this.detachLog(yo),gr.shift()}this.attachLog(Hr),this.emit("insert",Hr)}},{key:"updateTopSpace",value:function(qt){this.topSpaceHeight=qt,this.el.style.top=qt+"px"}},{key:"updateBottomSpace",value:function(qt){this.bottomSpaceHeight=qt}},{key:"updateSpace",value:function(qt){this.spaceHeight!==qt&&(this.spaceHeight=qt,this.space.style.height=qt+"px")}},{key:"detachLog",value:function(qt){var Kt=this.displayLogs,Cn=Kt.indexOf(qt);Cn>-1&&(Kt.splice(Cn,1),this.renderViewport())}},{key:"attachLog",value:function(qt){if(this.filterLog(qt)&&!qt.collapsed){var Kt=this.displayLogs;if(Kt.length===0)return Kt.push(qt),void this.renderViewport();var Cn=ws()(Kt);if(qt.id>Cn.id)return Kt.push(qt),void this.renderViewport();for(var Zn,br=0,gr=Kt.length-1,_r=0;br<=gr;){if((Zn=Kt[_r=br+Math.floor((gr-br)/2)]).id===qt.id)return;Zn.id0&&arguments[0]!==void 0?arguments[0]:20,Cn=this.asyncList;this.asyncTimer||(this.asyncTimer=setTimeout(function(){qt.asyncTimer=null;var Zn,br,gr=!1,_r=Cn.length;_r<1e3?(br=200,Zn=400):_r<5e3?(br=500,Zn=800):_r<1e4?(br=800,Zn=1e3):_r<25e3?(br=1e3,Zn=1200):_r<5e4?(br=1500,Zn=1500):(br=2e3,Zn=2500),br>_r&&(br=_r,gr=!0);for(var Cr=0;Cr0&&_r.length>gr&&(qt.logs=_r.slice(_r.length-gr),qt.render());break;case"filter":qt.render();break;case"level":qt.options.level=Zr()(gr),qt.render()}}),this.$container.on("scroll",this.onScroll)}},{key:"_renderViewport",value:function(){var qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Kt=qt.topTolerance,Cn=Kt===void 0?500:Kt,Zn=qt.bottomTolerance,br=Zn===void 0?500:Zn,gr=this.el,_r=this.container,Cr=this.space;if(!vn()(_r)){for(var Or=_r.scrollTop,Yr=_r.offsetHeight,Gr=Cr.getBoundingClientRect().width,oo=Or-Cn,po=Or+Yr+br,Hr=this.displayLogs,ao=0,yo=0,bo=0,Eo=Hr.length,Ro=this.fakeEl,vo=document.createDocumentFragment(),Io=[],So=0;So0){Ro.appendChild(vo);for(var Co=0,Lo=Io.length;Copo?yo+=jo:bo+jo>oo?Po.appendChild(Ho):bo");return Kt=Kt.map(function(Zn){return ut()(Zn)}),Cn+'
').concat(Kt.slice(1).join("
"),"
").replace(qr,function(Zn){return'').concat(Zn,"")})}},{key:"formatCommon",value:function(qt){var Kt=this.console.c,Cn=an()(qt[0])&&qt.length!==1;Cn&&(qt=this.substituteStr(qt));for(var Zn=0,br=qt.length;Zn').concat(ut()(ft()(gr)),"
"):yt()(gr)?qt[Zn]=this.formatPreview(gr):Br()(gr)?qt[Zn]='undefined'):kr()(gr)?qt[Zn]='null'):Yn()(gr)?qt[Zn]='').concat(ft()(gr),""):typeof gr=="bigint"?qt[Zn]='').concat(ft()(gr),"n"):Dr()(gr)?qt[Zn]='').concat(ft()(gr),""):Pr()(gr)?qt[Zn]='').concat(ut()(ft()(gr)),""):(gr=ft()(gr),Zn===0&&Cn||(gr=ut()(gr)),gr.length>5e3&&(gr=Ot()(gr,5e3,{separator:" ",ellipsis:"…"})),qt[Zn]=gr)}return qt.join(" ")}},{key:"formatDir",value:function(qt){return yt()(qt[0])?this.formatPreview(qt[0]):this.formatCommon(qt)}},{key:"formatTableVal",value:function(qt){var Kt=this.console.c;return yt()(qt)?"{…}":Rn()(qt)?jr()('
').concat(Un(qt),"
")):ft()(qt)}},{key:"formatPreview",value:function(qt){var Kt=this,Cn=this.console.c,Zn=pn()();this.lazyEvaluation?this.objects[Zn]=qt:this.extractObj(qt,{},function(_r){Kt.objects[Zn]=_r});var br=ct()(["dir","table"],this.type),gr=Zt(qt);return gr==="Array"&&qt.length>1?(gr="(".concat(qt.length,")"),br&&(gr="Array".concat(gr))):gr==="RegExp"?gr=ft()(qt):Qn()(qt)&&(gr=this.formatElName(qt)),'
')+'
')+'
')+'')+'').concat(ut()(gr)," ")+'').concat(br?"":Un(qt,{getterVal:this.accessGetter,unenumerable:!1}),"")+"
"+'
')}},{key:"substituteStr",value:function(qt){var Kt=ut()(qt[0]),Cn=!1,Zn="";qt.shift();for(var br=0,gr=Kt.length;br"),Cn=!0,Zn+='');break;default:br--,qt.unshift(Cr),Zn+=_r}}else Zn+=_r}return Cn&&(Zn+=""),qt.unshift(Zn),qt}},{key:"formatJs",value:function(qt){return'
').concat(this.console.c(hr()(qt,"js",eo)),"
")}},{key:"formatFn",value:function(qt){return'
'.concat(this.formatJs(qt.toString()),"
")}},{key:"formatElName",value:function(qt){var Kt=qt.id,Cn=qt.className,Zn=qt.tagName.toLowerCase();if(Kt!==""&&(Zn+="#".concat(Kt)),an()(Cn)){var br="";Mt()(Cn.split(/\s+/g),function(gr){gr.trim()!==""&&(br+=".".concat(gr))}),Zn+=br}return Zn}},{key:"formatEl",value:function(qt){var Kt=pn()();return this.elements[Kt]=qt,this.console.c('
'))}}]),Er}(Gt());function no(Sr){var zr=(Sr=It()(Sr)).split(";"),Er={};Mt()(zr,function(Kt){if(ct()(Kt,":")){var Cn=$(Kt.split(":"),2),Zn=Cn[0],br=Cn[1];Er[Vt()(Zn)]=Vt()(br)}}),Er.display="inline-block",Er["max-width"]="100%",delete Er.width,delete Er.height;var qt="";return Mt()(Er,function(Kt,Cn){qt+="".concat(Cn,":").concat(Kt,";")}),qt}var io=d(1194),co=d.n(io),so=d(8847),fo=d.n(so),zo=d(6329),_i=d.n(zo),ys=d(9001),ga=d.n(ys),bs=d(9702),ws=d.n(bs),Kr=d(2439),xs=d.n(Kr),va=d(8933),_s=d.n(va),Cs=d(4407),ks=d.n(Cs),As=d(5852),Es=d.n(As);function Ss(Sr){var zr=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Er,qt=(0,at.Z)(Sr);if(zr){var Kt=(0,at.Z)(this).constructor;Er=Reflect.construct(qt,arguments,Kt)}else Er=qt.apply(this,arguments);return(0,ot.Z)(this,Er)}}var es,Ts=function(Sr){(0,nt.Z)(Er,Sr);var zr=Ss(Er);function Er(qt,Kt){var Cn,Zn=Kt.compName,br=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,gr=br===void 0?"light":br;return(0,et.Z)(this,Er),(Cn=zr.call(this)).subComponents=[],Cn.compName=Zn,Cn.c=En(Zn),Cn.options={},Cn.container=qt,Cn.$container=Pt()(qt),Cn.$container.addClass(["luna-".concat(Zn),Cn.c("platform-".concat(Ln()))]),Cn.on("optionChange",function(_r,Cr,Or){var Yr=Cn.c;_r==="theme"&&(Cn.$container.rmClass(Yr("theme-".concat(Or))).addClass(Yr("theme-".concat(Cr))),Mt()(Cn.subComponents,function(Gr){return Gr.setOption("theme",Cr)}))}),Cn.setOption("theme",gr),Cn}return(0,tt.Z)(Er,[{key:"destroy",value:function(){this.destroySubComponents();var qt=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(qt("platform-".concat(Ln()))).rmClass(qt("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(qt,Kt){var Cn=this,Zn=this.options,br={};typeof qt=="string"?br[qt]=Kt:br=qt,Mt()(br,function(gr,_r){var Cr=Zn[_r];Zn[_r]=gr,Cn.emit("optionChange",_r,gr,Cr)})}},{key:"getOption",value:function(qt){return this.options[qt]}},{key:"addSubComponent",value:function(qt){qt.setOption("theme",this.options.theme),this.subComponents.push(qt)}},{key:"removeSubComponent",value:function(qt){Es()(this.subComponents,function(Kt){return Kt===qt})}},{key:"destroySubComponents",value:function(){Mt()(this.subComponents,function(qt){return qt.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(qt){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};$n()(qt,Kt),_i()(this.options,qt)}},{key:"find",value:function(qt){return this.$container.find(this.c(qt))}}]),Er}(Gt()),Ms=d(1571),Is=d.n(Ms);function js(Sr){var zr=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Er,qt=(0,at.Z)(Sr);if(zr){var Kt=(0,at.Z)(this).constructor;Er=Reflect.construct(qt,arguments,Kt)}else Er=qt.apply(this,arguments);return(0,ot.Z)(this,Er)}}b=d.hmd(b);var ts=navigator.userAgent,Os=ts.indexOf("Android")>-1||ts.indexOf("Adr")>-1,Rs=0,ns=function(Sr){(0,nt.Z)(Er,Sr);var zr=js(Er);function Er(qt){var Kt,Cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,et.Z)(this,Er),(Kt=zr.call(this,qt,{compName:"console"},Cn)).spaceHeight=0,Kt.topSpaceHeight=0,Kt.bottomSpaceHeight=0,Kt.lastScrollTop=0,Kt.lastTimestamp=0,Kt.speedToleranceFactor=100,Kt.maxSpeedTolerance=2e3,Kt.minSpeedTolerance=100,Kt.logs=[],Kt.displayLogs=[],Kt.timer={},Kt.counter={},Kt.asyncList=[],Kt.asyncTimer=null,Kt.isAtBottom=!0,Kt.groupStack=new(ga()),Kt.selectedLog=null,Kt.onScroll=function(){var Zn=Kt.container,br=Zn.scrollHeight,gr=Zn.offsetHeight,_r=Zn.scrollTop;if(!(_r<=0||gr+_r>br)){var Cr=!1;(br===gr||_r===br-gr)&&(Cr=!0),Kt.isAtBottom=Cr;var Or=Kt.lastScrollTop,Yr=Kt.lastTimestamp,Gr=fo()(),oo=Gr-Yr,po=_r-Or,Hr=Math.abs(po/oo)*Kt.speedToleranceFactor;oo>1e3&&(Hr=1e3),Hr>Kt.maxSpeedTolerance&&(Hr=Kt.maxSpeedTolerance),Hr_r+gr+yo||Kt.renderViewport({topTolerance:2*ao,bottomTolerance:2*yo})}},Kt.initTpl(),Kt.initOptions(Cn,{maxNum:0,asyncRender:!0,showHeader:!1,filter:"",level:["verbose","info","warning","error"],accessGetter:!1,unenumerable:!0,lazyEvaluation:!0}),Kt.$el=Kt.find(".logs"),Kt.el=Kt.$el.get(0),Kt.$fakeEl=Kt.find(".fake-logs"),Kt.fakeEl=Kt.$fakeEl.get(0),Kt.$space=Kt.find(".logs-space"),Kt.space=Kt.$space.get(0),Os&&(Kt.speedToleranceFactor=800,Kt.maxSpeedTolerance=3e3,Kt.minSpeedTolerance=800),Kt.resizeSensor=new(bt())(qt),Kt.renderViewport=xs()(function(Zn){Kt._renderViewport(Zn)},16),Kt.global={copy:function(Zn){an()(Zn)||(Zn=JSON.stringify(Zn,null,2)),Kn()(Zn)},$:function(Zn){return document.querySelector(Zn)},$$:function(Zn){return Zr()(document.querySelectorAll(Zn))},$x:function(Zn){return _s()(Zn)},clear:function(){Kt.clear()},dir:function(Zn){Kt.dir(Zn)},table:function(Zn,br){Kt.table(Zn,br)},keys:Rt()},Kt.bindEvent(),Kt}return(0,tt.Z)(Er,[{key:"setGlobal",value:function(qt,Kt){this.global[qt]=Kt}},{key:"destroy",value:function(){this.$container.off("scroll",this.onScroll),this.resizeSensor.destroy(),(0,rt.Z)((0,at.Z)(Er.prototype),"destroy",this).call(this)}},{key:"count",value:function(){var qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"default",Kt=this.counter;Br()(Kt[qt])?Kt[qt]=1:Kt[qt]++,this.info("".concat(qt,": ").concat(Kt[qt]))}},{key:"countReset",value:function(){var qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"default";this.counter[qt]=0}},{key:"assert",value:function(){for(var qt=arguments.length,Kt=new Array(qt),Cn=0;Cn0&&arguments[0]!==void 0?arguments[0]:"default";if(this.timer[qt])return this.insert("warn",["Timer '".concat(qt,"' already exists")]);this.timer[qt]=co()()}},{key:"timeLog",value:function(){var qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"default",Kt=this.timer[qt];if(!Kt)return this.insert("warn",["Timer '".concat(qt,"' does not exist")]);this.info("".concat(qt,": ").concat(co()()-Kt,"ms"))}},{key:"timeEnd",value:function(){var qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"default";this.timeLog(qt),delete this.timer[qt]}},{key:"clear",value:function(){var qt=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.logs=[],this.displayLogs=[],this.selectLog(null),this.lastLog=void 0,this.counter={},this.timer={},this.groupStack=new(ga()),this.asyncList=[],this.asyncTimer&&(clearTimeout(this.asyncTimer),this.asyncTimer=null),qt?this.render():this.insert("log",["%cConsole was cleared","color:#808080;font-style:italic;"])}},{key:"info",value:function(){for(var qt=arguments.length,Kt=new Array(qt),Cn=0;Cn0&&(Zn.group=_r.peek()),_i()(Zn,{id:++Rs,accessGetter:Yr,unenumerable:Gr,lazyEvaluation:oo}),Zn.type==="group"||Zn.type==="groupCollapsed"){var po={id:pn()("group"),collapsed:!1,parent:_r.peek(),indentLevel:_r.size+1};Zn.type==="groupCollapsed"&&(po.collapsed=!0),Zn.targetGroup=po,_r.push(po)}var Hr=new to(this,Zn);Hr.on("updateHeight",function(){br.isAtBottom=!1,br.renderViewport()});var ao=this.lastLog;if(ao&&!ct()(["html","group","groupCollapsed"],Hr.type)&&ao.type===Hr.type&&Hr.isSimple()&&ao.text()===Hr.text()?(ao.addCount(),Hr.header&&ao.updateTime(Hr.header.time),Hr=ao,this.detachLog(ao)):(gr.push(Hr),this.lastLog=Hr),Or!==0&&gr.length>Or){var yo=gr[0];this.detachLog(yo),gr.shift()}this.attachLog(Hr),this.emit("insert",Hr)}},{key:"updateTopSpace",value:function(qt){this.topSpaceHeight=qt,this.el.style.top=qt+"px"}},{key:"updateBottomSpace",value:function(qt){this.bottomSpaceHeight=qt}},{key:"updateSpace",value:function(qt){this.spaceHeight!==qt&&(this.spaceHeight=qt,this.space.style.height=qt+"px")}},{key:"detachLog",value:function(qt){var Kt=this.displayLogs,Cn=Kt.indexOf(qt);Cn>-1&&(Kt.splice(Cn,1),this.renderViewport())}},{key:"attachLog",value:function(qt){if(this.filterLog(qt)&&!qt.collapsed){var Kt=this.displayLogs;if(Kt.length===0)return Kt.push(qt),void this.renderViewport();var Cn=ws()(Kt);if(qt.id>Cn.id)return Kt.push(qt),void this.renderViewport();for(var Zn,br=0,gr=Kt.length-1,_r=0;br<=gr;){if((Zn=Kt[_r=br+Math.floor((gr-br)/2)]).id===qt.id)return;Zn.id0&&arguments[0]!==void 0?arguments[0]:20,Cn=this.asyncList;this.asyncTimer||(this.asyncTimer=setTimeout(function(){qt.asyncTimer=null;var Zn,br,gr=!1,_r=Cn.length;_r<1e3?(br=200,Zn=400):_r<5e3?(br=500,Zn=800):_r<1e4?(br=800,Zn=1e3):_r<25e3?(br=1e3,Zn=1200):_r<5e4?(br=1500,Zn=1500):(br=2e3,Zn=2500),br>_r&&(br=_r,gr=!0);for(var Cr=0;Cr0&&_r.length>gr&&(qt.logs=_r.slice(_r.length-gr),qt.render());break;case"filter":qt.render();break;case"level":qt.options.level=Zr()(gr),qt.render()}}),this.$container.on("scroll",this.onScroll)}},{key:"_renderViewport",value:function(){var qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Kt=qt.topTolerance,Cn=Kt===void 0?500:Kt,Zn=qt.bottomTolerance,br=Zn===void 0?500:Zn,gr=this.el,_r=this.container,Cr=this.space;if(!vn()(_r)){for(var Or=_r.scrollTop,Yr=_r.offsetHeight,Gr=Cr.getBoundingClientRect().width,oo=Or-Cn,po=Or+Yr+br,Hr=this.displayLogs,ao=0,yo=0,bo=0,Eo=Hr.length,Ro=this.fakeEl,vo=document.createDocumentFragment(),Io=[],So=0;So0){Ro.appendChild(vo);for(var Co=0,Lo=Io.length;Copo?yo+=jo:bo+jo>oo?Bo.appendChild(Ho):bo
- `])))))}}]),Er}(Ts),rs=function(){return ks()("HH:MM:ss ")};function Ls(){for(var Sr=new Error,Wr="",Er=Sr.stack?Sr.stack.split(` -`):"",qt=0,Kt=Er.length;qt-1&&qt]*>/g.test(mt))try{var Dt=Mt().parse(mt);return Pt(Dt,function(Xt){Xt.attrs&&Xt.attrs.class&&(Xt.attrs.class=$t(Xt.attrs.class))}),Mt().stringify(Dt)}catch{return $t(mt)}return $t(mt)}}function Pt(St,Ft){for(var $t=0,mt=St.length;$t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var $t,mt=(0,ot.Z)(St);if(Ft){var Dt=(0,ot.Z)(this).constructor;$t=Reflect.construct(mt,arguments,Dt)}else $t=mt.apply(this,arguments);return(0,nt.Z)(this,$t)}}var vn,En=function(St){(0,rt.Z)($t,St);var Ft=kn($t);function $t(mt,Dt){var Xt,It=Dt.compName,Nt=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Rt=Nt===void 0?"light":Nt;return(0,j.Z)(this,$t),(Xt=Ft.call(this)).subComponents=[],Xt.compName=It,Xt.c=Lt(It),Xt.options={},Xt.container=mt,Xt.$container=it()(mt),Xt.$container.addClass(["luna-".concat(It),Xt.c("platform-".concat(In()))]),Xt.on("optionChange",function(zt,Bt,hn){var un=Xt.c;zt==="theme"&&(Xt.$container.rmClass(un("theme-".concat(hn))).addClass(un("theme-".concat(Bt))),_n()(Xt.subComponents,function(tn){return tn.setOption("theme",Bt)}))}),Xt.setOption("theme",Rt),Xt}return(0,$.Z)($t,[{key:"destroy",value:function(){this.destroySubComponents();var mt=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(mt("platform-".concat(In()))).rmClass(mt("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(mt,Dt){var Xt=this,It=this.options,Nt={};typeof mt=="string"?Nt[mt]=Dt:Nt=mt,_n()(Nt,function(Rt,zt){var Bt=It[zt];It[zt]=Rt,Xt.emit("optionChange",zt,Rt,Bt)})}},{key:"getOption",value:function(mt){return this.options[mt]}},{key:"addSubComponent",value:function(mt){mt.setOption("theme",this.options.theme),this.subComponents.push(mt)}},{key:"removeSubComponent",value:function(mt){jn()(this.subComponents,function(Dt){return Dt===mt})}},{key:"destroySubComponents",value:function(){_n()(this.subComponents,function(mt){return mt.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(mt){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};An()(mt,Dt),Yn()(this.options,mt)}},{key:"find",value:function(mt){return this.$container.find(this.c(mt))}}]),$t}(ft()),gn=d(8901),Ln=d.n(gn),Fn=d(8613),Un=d.n(Fn),Mn=d(3367),Wn=d.n(Mn),wn=d(9833),Nn=d.n(wn),zn=d(1286),Vn=d.n(zn),bn=d(242),Yt=d.n(bn),bt=d(2439),pt=d.n(bt),yt=d(6930),Ut=d.n(yt),an=d(6156),sn=d.n(an),Sn=d(4777),or=d.n(Sn),Rn=d(1754),Xn=d.n(Rn),$n=d(6768),ar=d.n($n),Qn=d(3063),qn=d.n(Qn),fr=d(9882),cr=d.n(fr),pr=d(9853),xr=d.n(pr),kr=d(6435),Tr=d.n(kr);function Pr(St){var Ft=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var $t,mt=(0,ot.Z)(St);if(Ft){var Dt=(0,ot.Z)(this).constructor;$t=Reflect.construct(mt,arguments,Dt)}else $t=mt.apply(this,arguments);return(0,nt.Z)(this,$t)}}b=d.hmd(b);var Rr=it()(document),Ur=24,Qr=function(St){(0,rt.Z)($t,St);var Ft=Pr($t);function $t(mt,Dt){var Xt;(0,j.Z)(this,$t),(Xt=Ft.call(this,mt,{compName:"data-grid"},Dt)).resizeIdx=0,Xt.resizeStartX=0,Xt.resizeStartLeft=0,Xt.resizeDeltaX=0,Xt.nodes=[],Xt.colWidthsInitialized=!1,Xt.colMap={},Xt.selectedNode=null,Xt.isAscending=!0,Xt.colWidths=[],Xt.onResizeColMove=function(Bt){var hn=(0,et.Z)(Xt),un=hn.resizeIdx,tn=hn.$resizers,Gt=hn.colWidths,xn=hn.$colgroup,Gn=Vt("x",Bt=Bt.origEvent)-Xt.resizeStartX,Jn=Gt[un],er=Gt[un+1],ir=Tr()(-Jn+Ur,0),Kn=xr()(er-Ur,0);Gn=cr()(Gn,ir,Kn),xn.each(function(){var ur=it()(this).find("col");ur.eq(un).css("width",Jn+Gn+"px"),ur.eq(un+1).css("width",er-Gn+"px")}),Xt.resizeDeltaX=Gn;var nr=Xt.resizeStartLeft+Gn;tn.eq(un).css("left","".concat(nr,"px"))},Xt.onResizeColEnd=function(Bt){Xt.onResizeColMove(Bt);var hn=(0,et.Z)(Xt),un=hn.c,tn=hn.colWidths,Gt=hn.resizeIdx,xn=hn.resizeDeltaX,Gn=Xt.options.columns,Jn=Gn[Gt],er=Gn[Gt+1],ir=tn[Gt]+xn,Kn=ir+(tn[Gt+1]-xn),nr=Jn.weight+er.weight,ur=nr*(ir/Kn),rr=nr-ur;Jn.weight=ur,er.weight=rr,Xt.applyColWeights(),it()(document.body).rmClass(un("resizing")),Rr.off(Qt("move"),Xt.onResizeColMove),Rr.off(Qt("end"),Xt.onResizeColEnd)},Xt.$container.attr("tabindex","0"),Xt.resizeSensor=new(Yt())(mt),Xt.onResize=pt()(function(){Xt.updateHeight(),Xt.updateWeights()},16),Dt.height&&(Dt.maxHeight=Dt.height,Dt.minHeight=Dt.height),Xt.initOptions(Dt,{minHeight:41,maxHeight:1/0,filter:""});var It=Xt.options,Nt=It.columns,Rt=It.minHeight,zt=It.maxHeight;return _n()(Nt,function(Bt){An()(Bt,{sortable:!1}),Xt.colMap[Bt.id]=Bt}),zt-1&&(mt.detach(),Dt.splice(Xt,1),mt===this.selectedNode&&this.selectNode(Dt[Xt]||Dt[Xt-1]||null),this.updateHeight())}},{key:"append",value:function(mt,Dt){var Xt=new Zr(this,mt,Dt);return this.nodes.push(Xt),this.sortId?this.sortNodes(this.sortId,this.isAscending):this.filterNode(Xt)&&(this.tableBody.insertBefore(Xt.container,this.fillerRow),this.updateHeight()),Xt}},{key:"clear",value:function(){_n()(this.nodes,function(mt){return mt.detach()}),this.nodes=[],this.selectNode(null),this.updateHeight()}},{key:"updateHeight",value:function(){var mt=this.$fillerRow,Dt=this.c,Xt=this.$container,It=this.options,Nt=It.maxHeight,Rt=It.minHeight;this.$dataContainer.css({height:"auto"});var zt=this.$headerRow.offset().height+fn(Xt.css("border-top-width"))+fn(Xt.css("border-bottom-width"));(Rt-=zt)<0&&(Rt=0),Nt-=zt;var Bt=this.$dataContainer.find(Dt(".node")),hn=Bt.length,un=0;hn>0&&(un=Bt.offset().height*hn),un>Rt?mt.hide():mt.show(),un=Nt&&(un=Nt),this.$dataContainer.css({height:un})}},{key:"selectNode",value:function(mt){var Dt;(sn()(mt)||mt!=null&&mt.selectable)&&(this.selectedNode&&(this.selectedNode.deselect(),this.selectedNode=null),sn()(mt)?this.emit("deselect"):(this.selectedNode=mt,(Dt=this.selectedNode)===null||Dt===void 0||Dt.select(),this.emit("select",mt)))}},{key:"onResizeColStart",value:function(mt){var Dt=this.c,Xt=this.resizeIdx,It=this.$resizers;mt.stopPropagation(),mt.preventDefault(),mt=mt.origEvent,this.resizeStartX=Vt("x",mt),this.resizeStartLeft=fn(It.eq(Xt).css("left")),it()(document.body).addClass(Dt("resizing")),Rr.on(Qt("move"),this.onResizeColMove),Rr.on(Qt("end"),this.onResizeColEnd)}},{key:"bindEvent",value:function(){var mt=this,Dt=this.c,Xt=this.$headerRow,It=this.$tableBody,Nt=this.$resizers;this.resizeSensor.addListener(this.onResize);var Rt=this;It.on("click",Dt(".node"),function(){Rt.selectNode(this.dataGridNode)}),Xt.on("click",Dt(".sortable"),function(zt){zt.stopPropagation();var Bt=it()(this),hn=Bt.data("id"),un=Bt.data("order")!=="descending";Bt.data("order",un?"descending":"ascending"),Rt.sortNodes(hn,un),Xt.find("th").each(function(){var tn=it()(this);tn.data("id")!==hn&&tn.rmAttr("data-order")})}),Nt.on(Qt("start"),function(zt){var Bt=it()(this);Rt.resizeIdx=At()(Bt.data("idx")),Rt.onResizeColStart(zt)}),this.on("optionChange",function(zt){switch(zt){case"minHeight":case"maxHeight":mt.updateHeight();break;case"filter":mt.renderData()}})}},{key:"sortNodes",value:function(mt,Dt){var Xt=this.colMap[mt].comparator||mo;this.nodes.sort(function(It,Nt){var Rt=It.data[mt],zt=Nt.data[mt];return Nn()(Rt)&&(Rt=Rt.innerText),Nn()(zt)&&(zt=zt.innerText),Dt?Xt(Rt,zt):Xt(zt,Rt)}),this.renderData(),this.sortId=mt,this.isAscending=Dt}},{key:"updateWeights",value:function(){var mt=this.container,Dt=this.$headerRow,Xt=this.options.columns,It=mt.offsetWidth;if(!this.colWidthsInitialized&&It){for(var Nt=0,Rt=Xt.length;Nt'),this.colWidths[tn]=xn}Dt.html(Bt),this.positionResizers()}}},{key:"positionResizers",value:function(){for(var mt=this.colWidths,Dt=[],Xt=mt.length-1,It=0;It').concat(Nt,"")):Dt+="".concat(Nt,""),Xt+=""}),this.$headerRow.html(Dt),this.$fillerRow.html(Xt)}},{key:"renderResizers",value:function(){for(var mt="",Dt=this.options.columns.length-1,Xt=0;Xt'));this.$container.append(mt),this.$resizers=this.find(".resizer")}},{key:"initTpl",value:function(){this.$container.html(this.c(ut()(vn||(vn=(0,k.Z)([` + `])))))}}]),Er}(Ts),rs=function(){return ks()("HH:MM:ss ")};function Ls(){for(var Sr=new Error,zr="",Er=Sr.stack?Sr.stack.split(` +`):"",qt=0,Kt=Er.length;qt-1&&qt]*>/g.test(mt))try{var Dt=Mt().parse(mt);return Bt(Dt,function(Xt){Xt.attrs&&Xt.attrs.class&&(Xt.attrs.class=$t(Xt.attrs.class))}),Mt().stringify(Dt)}catch{return $t(mt)}return $t(mt)}}function Bt(St,Ft){for(var $t=0,mt=St.length;$t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var $t,mt=(0,ot.Z)(St);if(Ft){var Dt=(0,ot.Z)(this).constructor;$t=Reflect.construct(mt,arguments,Dt)}else $t=mt.apply(this,arguments);return(0,nt.Z)(this,$t)}}var vn,En=function(St){(0,rt.Z)($t,St);var Ft=kn($t);function $t(mt,Dt){var Xt,It=Dt.compName,Nt=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Rt=Nt===void 0?"light":Nt;return(0,j.Z)(this,$t),(Xt=Ft.call(this)).subComponents=[],Xt.compName=It,Xt.c=Lt(It),Xt.options={},Xt.container=mt,Xt.$container=it()(mt),Xt.$container.addClass(["luna-".concat(It),Xt.c("platform-".concat(In()))]),Xt.on("optionChange",function(Wt,Pt,hn){var un=Xt.c;Wt==="theme"&&(Xt.$container.rmClass(un("theme-".concat(hn))).addClass(un("theme-".concat(Pt))),_n()(Xt.subComponents,function(tn){return tn.setOption("theme",Pt)}))}),Xt.setOption("theme",Rt),Xt}return(0,$.Z)($t,[{key:"destroy",value:function(){this.destroySubComponents();var mt=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(mt("platform-".concat(In()))).rmClass(mt("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(mt,Dt){var Xt=this,It=this.options,Nt={};typeof mt=="string"?Nt[mt]=Dt:Nt=mt,_n()(Nt,function(Rt,Wt){var Pt=It[Wt];It[Wt]=Rt,Xt.emit("optionChange",Wt,Rt,Pt)})}},{key:"getOption",value:function(mt){return this.options[mt]}},{key:"addSubComponent",value:function(mt){mt.setOption("theme",this.options.theme),this.subComponents.push(mt)}},{key:"removeSubComponent",value:function(mt){jn()(this.subComponents,function(Dt){return Dt===mt})}},{key:"destroySubComponents",value:function(){_n()(this.subComponents,function(mt){return mt.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(mt){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};An()(mt,Dt),Yn()(this.options,mt)}},{key:"find",value:function(mt){return this.$container.find(this.c(mt))}}]),$t}(ft()),gn=d(8901),Ln=d.n(gn),Fn=d(8613),Un=d.n(Fn),Mn=d(3367),zn=d.n(Mn),wn=d(9833),Nn=d.n(wn),Wn=d(1286),Vn=d.n(Wn),bn=d(242),Yt=d.n(bn),bt=d(2439),pt=d.n(bt),yt=d(6930),Ut=d.n(yt),an=d(6156),sn=d.n(an),Sn=d(4777),or=d.n(Sn),Rn=d(1754),Xn=d.n(Rn),$n=d(6768),ar=d.n($n),Qn=d(3063),qn=d.n(Qn),fr=d(9882),cr=d.n(fr),pr=d(9853),xr=d.n(pr),kr=d(6435),Tr=d.n(kr);function Br(St){var Ft=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var $t,mt=(0,ot.Z)(St);if(Ft){var Dt=(0,ot.Z)(this).constructor;$t=Reflect.construct(mt,arguments,Dt)}else $t=mt.apply(this,arguments);return(0,nt.Z)(this,$t)}}b=d.hmd(b);var Rr=it()(document),Ur=24,Qr=function(St){(0,rt.Z)($t,St);var Ft=Br($t);function $t(mt,Dt){var Xt;(0,j.Z)(this,$t),(Xt=Ft.call(this,mt,{compName:"data-grid"},Dt)).resizeIdx=0,Xt.resizeStartX=0,Xt.resizeStartLeft=0,Xt.resizeDeltaX=0,Xt.nodes=[],Xt.colWidthsInitialized=!1,Xt.colMap={},Xt.selectedNode=null,Xt.isAscending=!0,Xt.colWidths=[],Xt.onResizeColMove=function(Pt){var hn=(0,et.Z)(Xt),un=hn.resizeIdx,tn=hn.$resizers,Gt=hn.colWidths,xn=hn.$colgroup,Gn=Vt("x",Pt=Pt.origEvent)-Xt.resizeStartX,Jn=Gt[un],er=Gt[un+1],ir=Tr()(-Jn+Ur,0),Kn=xr()(er-Ur,0);Gn=cr()(Gn,ir,Kn),xn.each(function(){var ur=it()(this).find("col");ur.eq(un).css("width",Jn+Gn+"px"),ur.eq(un+1).css("width",er-Gn+"px")}),Xt.resizeDeltaX=Gn;var nr=Xt.resizeStartLeft+Gn;tn.eq(un).css("left","".concat(nr,"px"))},Xt.onResizeColEnd=function(Pt){Xt.onResizeColMove(Pt);var hn=(0,et.Z)(Xt),un=hn.c,tn=hn.colWidths,Gt=hn.resizeIdx,xn=hn.resizeDeltaX,Gn=Xt.options.columns,Jn=Gn[Gt],er=Gn[Gt+1],ir=tn[Gt]+xn,Kn=ir+(tn[Gt+1]-xn),nr=Jn.weight+er.weight,ur=nr*(ir/Kn),rr=nr-ur;Jn.weight=ur,er.weight=rr,Xt.applyColWeights(),it()(document.body).rmClass(un("resizing")),Rr.off(Qt("move"),Xt.onResizeColMove),Rr.off(Qt("end"),Xt.onResizeColEnd)},Xt.$container.attr("tabindex","0"),Xt.resizeSensor=new(Yt())(mt),Xt.onResize=pt()(function(){Xt.updateHeight(),Xt.updateWeights()},16),Dt.height&&(Dt.maxHeight=Dt.height,Dt.minHeight=Dt.height),Xt.initOptions(Dt,{minHeight:41,maxHeight:1/0,filter:""});var It=Xt.options,Nt=It.columns,Rt=It.minHeight,Wt=It.maxHeight;return _n()(Nt,function(Pt){An()(Pt,{sortable:!1}),Xt.colMap[Pt.id]=Pt}),Wt-1&&(mt.detach(),Dt.splice(Xt,1),mt===this.selectedNode&&this.selectNode(Dt[Xt]||Dt[Xt-1]||null),this.updateHeight())}},{key:"append",value:function(mt,Dt){var Xt=new Zr(this,mt,Dt);return this.nodes.push(Xt),this.sortId?this.sortNodes(this.sortId,this.isAscending):this.filterNode(Xt)&&(this.tableBody.insertBefore(Xt.container,this.fillerRow),this.updateHeight()),Xt}},{key:"clear",value:function(){_n()(this.nodes,function(mt){return mt.detach()}),this.nodes=[],this.selectNode(null),this.updateHeight()}},{key:"updateHeight",value:function(){var mt=this.$fillerRow,Dt=this.c,Xt=this.$container,It=this.options,Nt=It.maxHeight,Rt=It.minHeight;this.$dataContainer.css({height:"auto"});var Wt=this.$headerRow.offset().height+fn(Xt.css("border-top-width"))+fn(Xt.css("border-bottom-width"));(Rt-=Wt)<0&&(Rt=0),Nt-=Wt;var Pt=this.$dataContainer.find(Dt(".node")),hn=Pt.length,un=0;hn>0&&(un=Pt.offset().height*hn),un>Rt?mt.hide():mt.show(),un=Nt&&(un=Nt),this.$dataContainer.css({height:un})}},{key:"selectNode",value:function(mt){var Dt;(sn()(mt)||mt!=null&&mt.selectable)&&(this.selectedNode&&(this.selectedNode.deselect(),this.selectedNode=null),sn()(mt)?this.emit("deselect"):(this.selectedNode=mt,(Dt=this.selectedNode)===null||Dt===void 0||Dt.select(),this.emit("select",mt)))}},{key:"onResizeColStart",value:function(mt){var Dt=this.c,Xt=this.resizeIdx,It=this.$resizers;mt.stopPropagation(),mt.preventDefault(),mt=mt.origEvent,this.resizeStartX=Vt("x",mt),this.resizeStartLeft=fn(It.eq(Xt).css("left")),it()(document.body).addClass(Dt("resizing")),Rr.on(Qt("move"),this.onResizeColMove),Rr.on(Qt("end"),this.onResizeColEnd)}},{key:"bindEvent",value:function(){var mt=this,Dt=this.c,Xt=this.$headerRow,It=this.$tableBody,Nt=this.$resizers;this.resizeSensor.addListener(this.onResize);var Rt=this;It.on("click",Dt(".node"),function(){Rt.selectNode(this.dataGridNode)}),Xt.on("click",Dt(".sortable"),function(Wt){Wt.stopPropagation();var Pt=it()(this),hn=Pt.data("id"),un=Pt.data("order")!=="descending";Pt.data("order",un?"descending":"ascending"),Rt.sortNodes(hn,un),Xt.find("th").each(function(){var tn=it()(this);tn.data("id")!==hn&&tn.rmAttr("data-order")})}),Nt.on(Qt("start"),function(Wt){var Pt=it()(this);Rt.resizeIdx=At()(Pt.data("idx")),Rt.onResizeColStart(Wt)}),this.on("optionChange",function(Wt){switch(Wt){case"minHeight":case"maxHeight":mt.updateHeight();break;case"filter":mt.renderData()}})}},{key:"sortNodes",value:function(mt,Dt){var Xt=this.colMap[mt].comparator||mo;this.nodes.sort(function(It,Nt){var Rt=It.data[mt],Wt=Nt.data[mt];return Nn()(Rt)&&(Rt=Rt.innerText),Nn()(Wt)&&(Wt=Wt.innerText),Dt?Xt(Rt,Wt):Xt(Wt,Rt)}),this.renderData(),this.sortId=mt,this.isAscending=Dt}},{key:"updateWeights",value:function(){var mt=this.container,Dt=this.$headerRow,Xt=this.options.columns,It=mt.offsetWidth;if(!this.colWidthsInitialized&&It){for(var Nt=0,Rt=Xt.length;Nt'),this.colWidths[tn]=xn}Dt.html(Pt),this.positionResizers()}}},{key:"positionResizers",value:function(){for(var mt=this.colWidths,Dt=[],Xt=mt.length-1,It=0;It').concat(Nt,"")):Dt+="".concat(Nt,""),Xt+=""}),this.$headerRow.html(Dt),this.$fillerRow.html(Xt)}},{key:"renderResizers",value:function(){for(var mt="",Dt=this.options.columns.length-1,Xt=0;Xt'));this.$container.append(mt),this.$resizers=this.find(".resizer")}},{key:"initTpl",value:function(){this.$container.html(this.c(ut()(vn||(vn=(0,k.Z)([`
@@ -62,39 +62,39 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
- `])))))}}]),$t}(En),Zr=function(){function St(Ft,$t){var mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{selectable:!1};(0,j.Z)(this,St),this.container=Un()("tr"),this.selectable=!1,this.container.dataGridNode=this,this.$container=it()(this.container),this.$container.addClass(Ft.c("node")),this.dataGrid=Ft,this.data=$t,mt.selectable&&(this.selectable=mt.selectable),this.render()}return(0,$.Z)(St,[{key:"text",value:function(){return this.$container.text()}},{key:"detach",value:function(){this.$container.remove()}},{key:"select",value:function(){this.$container.addClass(this.dataGrid.c("selected"))}},{key:"deselect",value:function(){this.$container.rmClass(this.dataGrid.c("selected"))}},{key:"render",value:function(){var Ft=this.data,$t=this.$container,mt=this.container,Dt=this.dataGrid.getOption("columns");$t.html(""),_n()(Dt,function(Xt){var It=Un()("td"),Nt=Ft[Xt.id];Vn()(Nt)||(Nn()(Nt)?It.appendChild(Nt):It.innerText=Wn()(Nt)),mt.appendChild(It)})}}]),St}();function mo(St,Ft){if(St=Wn()(St),Ft=Wn()(Ft),Ut()(St,"_")&&!Ut()(Ft,"_"))return 1;if(Ut()(Ft,"_")&&!Ut()(St,"_"))return-1;for(var $t,mt,Dt,Xt,It=/^\d+|^\D+/;;){if(!St)return Ft?-1:0;if(!Ft)return 1;if($t=St.match(It)[0],mt=Ft.match(It)[0],Dt=!isNaN($t),Xt=!isNaN(mt),Dt&&!Xt)return-1;if(Xt&&!Dt)return 1;if(Dt&&Xt){var Nt=$t-mt;if(Nt)return Nt;if($t.length!==mt.length)return+$t||+mt?mt.length-$t.length:$t.length-mt.length}else if($t!==mt)return $t]*>/g.test(Rn))try{var Xn=wt().parse(Rn);return Et(Xn,function($n){$n.attrs&&$n.attrs.class&&($n.attrs.class=or($n.attrs.class))}),wt().stringify(Xn)}catch{return or(Rn)}return or(Rn)}}function Et(sn,Sn){for(var or=0,Rn=sn.length;or"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var or,Rn=(0,at.Z)(sn);if(Sn){var Xn=(0,at.Z)(this).constructor;or=Reflect.construct(Rn,arguments,Xn)}else or=Rn.apply(this,arguments);return(0,ot.Z)(this,or)}}var _n,Pn=function(sn){(0,nt.Z)(or,sn);var Sn=On(or);function or(Rn,Xn){var $n,ar=Xn.compName,Qn=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,qn=Qn===void 0?"light":Qn;return(0,et.Z)(this,or),($n=Sn.call(this)).subComponents=[],$n.compName=ar,$n.c=At(ar),$n.options={},$n.container=Rn,$n.$container=ht()(Rn),$n.$container.addClass(["luna-".concat(ar),$n.c("platform-".concat(Lt()))]),$n.on("optionChange",function(fr,cr,pr){var xr=$n.c;fr==="theme"&&($n.$container.rmClass(xr("theme-".concat(pr))).addClass(xr("theme-".concat(cr))),Zt()($n.subComponents,function(kr){return kr.setOption("theme",cr)}))}),$n.setOption("theme",qn),$n}return(0,tt.Z)(or,[{key:"destroy",value:function(){this.destroySubComponents();var Rn=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(Rn("platform-".concat(Lt()))).rmClass(Rn("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(Rn,Xn){var $n=this,ar=this.options,Qn={};typeof Rn=="string"?Qn[Rn]=Xn:Qn=Rn,Zt()(Qn,function(qn,fr){var cr=ar[fr];ar[fr]=qn,$n.emit("optionChange",fr,qn,cr)})}},{key:"getOption",value:function(Rn){return this.options[Rn]}},{key:"addSubComponent",value:function(Rn){Rn.setOption("theme",this.options.theme),this.subComponents.push(Rn)}},{key:"removeSubComponent",value:function(Rn){In()(this.subComponents,function(Xn){return Xn===Rn})}},{key:"destroySubComponents",value:function(){Zt()(this.subComponents,function(Rn){return Rn.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(Rn){var Xn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Vt()(Rn,Xn),nn()(this.options,Rn)}},{key:"find",value:function(Rn){return this.$container.find(this.c(Rn))}}]),or}(dt()),Yn=d(8613),dn=d.n(Yn),An=d(5972),mn=d.n(An),jn=d(1907),kn=d.n(jn),vn=d(1352),En=d.n(vn),gn=d(2289),Ln=d.n(gn),Fn=d(3651),Un=d.n(Fn),Mn=d(7756),Wn=d.n(Mn),wn=d(8901),Nn=d.n(wn),zn=d(1672),Vn=d.n(zn);function bn(sn,Sn){var or=Object.keys(sn);if(Object.getOwnPropertySymbols){var Rn=Object.getOwnPropertySymbols(sn);Sn&&(Rn=Rn.filter(function(Xn){return Object.getOwnPropertyDescriptor(sn,Xn).enumerable})),or.push.apply(or,Rn)}return or}function Yt(sn){for(var Sn=1;Sn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var or,Rn=(0,at.Z)(sn);if(Sn){var Xn=(0,at.Z)(this).constructor;or=Reflect.construct(Rn,arguments,Xn)}else or=Rn.apply(this,arguments);return(0,ot.Z)(this,or)}}b=d.hmd(b);var pt={comment:"",string:"",number:"",keyword:"",operator:""},yt=function(sn){(0,nt.Z)(or,sn);var Sn=bt(or);function or(Rn){var Xn,$n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,et.Z)(this,or),(Xn=Sn.call(this,Rn,{compName:"dom-viewer"},$n)).isExpanded=!1,Xn.childNodes=[],Xn.childNodeDomViewers=[],Xn.toggle=function(){Xn.isExpanded?Xn.collapse():Xn.expand()},Xn.initOptions($n,{node:document.documentElement,parent:null,isEndTag:!1,rootContainer:Rn,rootDomViewer:(0,rt.Z)(Xn),ignore:function(){return!1}}),Xn.initTpl(),Xn.bindEvent(),Xn.options.isEndTag||Xn.initObserver(),Xn}return(0,tt.Z)(or,[{key:"select",value:function(Rn){var Xn=this.c,$n=this.options;if(!Rn||Rn&&$n.node===Rn)return this.$tag.hasClass(Xn("selected"))?void 0:(ht()(this.options.rootContainer).find(Xn(".selected")).rmClass(Xn("selected")).rmAttr("tabindex"),this.$tag.attr("tabindex","0").get(0).focus(),this.$tag.addClass(Xn("selected")),void $n.rootDomViewer.emit("select",$n.node));if(Rn.nodeType===Node.ELEMENT_NODE)for(var ar=Rn,Qn=Rn.parentElement;Qn;){if(Qn===$n.node){this.expand(),this.childNodeDomViewers[this.childNodes.indexOf(ar)].select(Rn);break}ar=Qn,Qn=Qn.parentElement}}},{key:"attach",value:function(){this.container.appendChild(this.$tag.get(0)),this.$children&&this.container.appendChild(this.$children.get(0))}},{key:"isAttached",value:function(){return!!this.$tag.get(0).parentNode}},{key:"detach",value:function(){this.$tag.remove(),this.$children&&this.$children.remove()}},{key:"expand",value:function(){this.isExpandable()&&!this.isExpanded&&(this.isExpanded=!0,this.renderExpandTag(),this.renderChildNodes())}},{key:"collapse",value:function(){this.isExpandable()&&this.isExpanded&&(this.isExpanded=!1,this.renderCollapseTag())}},{key:"destroy",value:function(){var Rn=this.c;this.$tag.hasClass(Rn("selected"))&&this.options.rootDomViewer.emit("deselect"),this.detach(),this.observer&&this.observer.disconnect(),this.destroySubComponents(),this.options.rootDomViewer===this&&this.$container.rmClass("luna-dom-viewer").rmClass(Rn("platform-".concat(Lt()))).rmClass(Rn("theme-".concat(this.options.theme))),this.emit("destroy"),this.removeAllListeners()}},{key:"renderExpandTag",value:function(){var Rn=this.$tag,Xn=this.c,$n=this.options.node;Rn.html(this.renderHtmlTag(Yt(Yt({},Ut($n)),{},{hasTail:!1,hasToggleButton:!0}))),Rn.addClass(Xn("expanded")),this.$children.rmClass(Xn("hidden"))}},{key:"renderCollapseTag",value:function(){var Rn=this.$tag,Xn=this.c,$n=this.options.node;this.$children.addClass(Xn("hidden")),this.$tag.html(this.renderHtmlTag(Yt(Yt({},Ut($n)),{},{hasTail:!0,hasToggleButton:!0}))),Rn.rmClass(Xn("expanded"))}},{key:"initObserver",value:function(){var Rn=this;this.observer=new(Ln())(function(Xn){Zt()(Xn,function($n){Rn.handleMutation($n)})}),this.observer.observe(this.options.node,{attributes:!0,childList:!0,characterData:!0})}},{key:"handleMutation",value:function(Rn){var Xn=this.$tag,$n=this.c,ar=this.options,Qn=ar.node,qn=ar.ignore;if(kt()(["attributes","childList"],Rn.type)){if(Rn.type==="childList"){if(Vn()(Rn.addedNodes,qn)&&Vn()(Rn.removedNodes,qn))return;this.renderChildNodes()}this.isExpandable()?this.isExpanded?this.renderExpandTag():this.renderCollapseTag():(this.$children.addClass($n("hidden")),Xn.html(this.renderHtmlTag(Yt(Yt({},Ut(Qn)),{},{hasTail:!1}))))}else Rn.type==="characterData"&&(Qn.nodeType===Node.TEXT_NODE?Xn.html(this.renderTextNode(Qn)):Qn.nodeType===Node.COMMENT_NODE&&Xn.html(this.renderHtmlComment(Qn.nodeValue)))}},{key:"bindEvent",value:function(){var Rn=this,Xn=this.c,$n=this.$tag;this.options.node.nodeType===Node.ELEMENT_NODE&&$n.on("click",Xn(".toggle"),function(ar){ar.stopPropagation(),Rn.toggle()}),Ot?$n.on("click",function(){return Rn.select()}):$n.on("mousedown",function(){return Rn.select()})}},{key:"isExpandable",value:function(){return this.options.node.nodeType===Node.ELEMENT_NODE&&this.getChildNodes().length>0}},{key:"getChildNodes",value:function(){var Rn=this.options,Xn=Rn.rootContainer,$n=Rn.ignore,ar=this.options.node,Qn=En()(ar.childNodes);return Qn=mn()(Qn,function(qn){if(qn.nodeType===Node.TEXT_NODE||qn.nodeType===Node.COMMENT_NODE){var fr=qn.nodeValue;if(gt()(fr)==="")return!1}return qn!==Xn&&!$n(qn)})}},{key:"initTpl",value:function(){var Rn=this.container,Xn=this.c,$n=this.options,ar=$n.node,Qn=$n.isEndTag,qn=ht()(dn()("li"));if(qn.addClass(Xn("tree-item")),this.$tag=qn,Qn)qn.html(Xn('</'.concat(ar.tagName.toLocaleLowerCase(),'>')));else if(ar.nodeType===Node.ELEMENT_NODE){var fr=this.isExpandable(),cr=Yt(Yt({},Ut(ar)),{},{hasTail:fr,hasToggleButton:fr});qn.html(this.renderHtmlTag(cr))}else if(ar.nodeType===Node.TEXT_NODE)qn.html(this.renderTextNode(ar));else{if(ar.nodeType!==Node.COMMENT_NODE)return;var pr=ar.nodeValue;if(pr.trim()==="")return;qn.html(this.renderHtmlComment(pr))}if(Rn.appendChild(qn.get(0)),ar.nodeType===ar.ELEMENT_NODE){var xr=ht()(dn()("ul"));xr.addClass([Xn("children"),Xn("hidden")]),Rn.appendChild(xr.get(0)),this.$children=xr}}},{key:"renderChildNodes",value:function(){var Rn=this,Xn=this.options.node,$n=this.options,ar=$n.rootContainer,Qn=$n.ignore,qn=$n.rootDomViewer,fr=this.$children.get(0),cr=this.childNodes,pr=this.childNodeDomViewers;Zt()(pr,function(Tr){Tr.detach(),Rn.removeSubComponent(Tr)}),this.endTagDomViewer&&this.endTagDomViewer.detach();var xr=this.getChildNodes();this.childNodes=xr;var kr=[];this.childNodeDomViewers=kr,Zt()(xr,function(Tr,Pr){var Rr,Ur=cr.indexOf(Tr);(Rr=Ur>-1?pr[Ur]:new or(fr,{node:Tr,parent:Rn,rootContainer:ar,rootDomViewer:qn,ignore:Qn})).attach(),kr[Pr]=Rr,Rn.addSubComponent(Rr)}),Zt()(pr,function(Tr){Tr.isAttached()||Tr.destroy()}),Xn&&(this.endTagDomViewer?this.endTagDomViewer.attach():(this.endTagDomViewer=new or(fr,{node:Xn,parent:this,isEndTag:!0,rootContainer:ar,rootDomViewer:qn,ignore:Qn}),this.addSubComponent(this.endTagDomViewer)))}},{key:"renderHtmlTag",value:function(Rn){var Xn=lt()(Rn.attributes,function(Qn){var qn=Qn.name,fr=Qn.value,cr=Qn.isLink;return` + `])))))}}]),$t}(En),Zr=function(){function St(Ft,$t){var mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{selectable:!1};(0,j.Z)(this,St),this.container=Un()("tr"),this.selectable=!1,this.container.dataGridNode=this,this.$container=it()(this.container),this.$container.addClass(Ft.c("node")),this.dataGrid=Ft,this.data=$t,mt.selectable&&(this.selectable=mt.selectable),this.render()}return(0,$.Z)(St,[{key:"text",value:function(){return this.$container.text()}},{key:"detach",value:function(){this.$container.remove()}},{key:"select",value:function(){this.$container.addClass(this.dataGrid.c("selected"))}},{key:"deselect",value:function(){this.$container.rmClass(this.dataGrid.c("selected"))}},{key:"render",value:function(){var Ft=this.data,$t=this.$container,mt=this.container,Dt=this.dataGrid.getOption("columns");$t.html(""),_n()(Dt,function(Xt){var It=Un()("td"),Nt=Ft[Xt.id];Vn()(Nt)||(Nn()(Nt)?It.appendChild(Nt):It.innerText=zn()(Nt)),mt.appendChild(It)})}}]),St}();function mo(St,Ft){if(St=zn()(St),Ft=zn()(Ft),Ut()(St,"_")&&!Ut()(Ft,"_"))return 1;if(Ut()(Ft,"_")&&!Ut()(St,"_"))return-1;for(var $t,mt,Dt,Xt,It=/^\d+|^\D+/;;){if(!St)return Ft?-1:0;if(!Ft)return 1;if($t=St.match(It)[0],mt=Ft.match(It)[0],Dt=!isNaN($t),Xt=!isNaN(mt),Dt&&!Xt)return-1;if(Xt&&!Dt)return 1;if(Dt&&Xt){var Nt=$t-mt;if(Nt)return Nt;if($t.length!==mt.length)return+$t||+mt?mt.length-$t.length:$t.length-mt.length}else if($t!==mt)return $t]*>/g.test(Rn))try{var Xn=wt().parse(Rn);return Et(Xn,function($n){$n.attrs&&$n.attrs.class&&($n.attrs.class=or($n.attrs.class))}),wt().stringify(Xn)}catch{return or(Rn)}return or(Rn)}}function Et(sn,Sn){for(var or=0,Rn=sn.length;or"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var or,Rn=(0,at.Z)(sn);if(Sn){var Xn=(0,at.Z)(this).constructor;or=Reflect.construct(Rn,arguments,Xn)}else or=Rn.apply(this,arguments);return(0,ot.Z)(this,or)}}var _n,Bn=function(sn){(0,nt.Z)(or,sn);var Sn=On(or);function or(Rn,Xn){var $n,ar=Xn.compName,Qn=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,qn=Qn===void 0?"light":Qn;return(0,et.Z)(this,or),($n=Sn.call(this)).subComponents=[],$n.compName=ar,$n.c=At(ar),$n.options={},$n.container=Rn,$n.$container=ht()(Rn),$n.$container.addClass(["luna-".concat(ar),$n.c("platform-".concat(Lt()))]),$n.on("optionChange",function(fr,cr,pr){var xr=$n.c;fr==="theme"&&($n.$container.rmClass(xr("theme-".concat(pr))).addClass(xr("theme-".concat(cr))),Zt()($n.subComponents,function(kr){return kr.setOption("theme",cr)}))}),$n.setOption("theme",qn),$n}return(0,tt.Z)(or,[{key:"destroy",value:function(){this.destroySubComponents();var Rn=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(Rn("platform-".concat(Lt()))).rmClass(Rn("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(Rn,Xn){var $n=this,ar=this.options,Qn={};typeof Rn=="string"?Qn[Rn]=Xn:Qn=Rn,Zt()(Qn,function(qn,fr){var cr=ar[fr];ar[fr]=qn,$n.emit("optionChange",fr,qn,cr)})}},{key:"getOption",value:function(Rn){return this.options[Rn]}},{key:"addSubComponent",value:function(Rn){Rn.setOption("theme",this.options.theme),this.subComponents.push(Rn)}},{key:"removeSubComponent",value:function(Rn){In()(this.subComponents,function(Xn){return Xn===Rn})}},{key:"destroySubComponents",value:function(){Zt()(this.subComponents,function(Rn){return Rn.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(Rn){var Xn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Vt()(Rn,Xn),nn()(this.options,Rn)}},{key:"find",value:function(Rn){return this.$container.find(this.c(Rn))}}]),or}(dt()),Yn=d(8613),dn=d.n(Yn),An=d(5972),mn=d.n(An),jn=d(1907),kn=d.n(jn),vn=d(1352),En=d.n(vn),gn=d(2289),Ln=d.n(gn),Fn=d(3651),Un=d.n(Fn),Mn=d(7756),zn=d.n(Mn),wn=d(8901),Nn=d.n(wn),Wn=d(1672),Vn=d.n(Wn);function bn(sn,Sn){var or=Object.keys(sn);if(Object.getOwnPropertySymbols){var Rn=Object.getOwnPropertySymbols(sn);Sn&&(Rn=Rn.filter(function(Xn){return Object.getOwnPropertyDescriptor(sn,Xn).enumerable})),or.push.apply(or,Rn)}return or}function Yt(sn){for(var Sn=1;Sn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var or,Rn=(0,at.Z)(sn);if(Sn){var Xn=(0,at.Z)(this).constructor;or=Reflect.construct(Rn,arguments,Xn)}else or=Rn.apply(this,arguments);return(0,ot.Z)(this,or)}}b=d.hmd(b);var pt={comment:"",string:"",number:"",keyword:"",operator:""},yt=function(sn){(0,nt.Z)(or,sn);var Sn=bt(or);function or(Rn){var Xn,$n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,et.Z)(this,or),(Xn=Sn.call(this,Rn,{compName:"dom-viewer"},$n)).isExpanded=!1,Xn.childNodes=[],Xn.childNodeDomViewers=[],Xn.toggle=function(){Xn.isExpanded?Xn.collapse():Xn.expand()},Xn.initOptions($n,{node:document.documentElement,parent:null,isEndTag:!1,rootContainer:Rn,rootDomViewer:(0,rt.Z)(Xn),ignore:function(){return!1}}),Xn.initTpl(),Xn.bindEvent(),Xn.options.isEndTag||Xn.initObserver(),Xn}return(0,tt.Z)(or,[{key:"select",value:function(Rn){var Xn=this.c,$n=this.options;if(!Rn||Rn&&$n.node===Rn)return this.$tag.hasClass(Xn("selected"))?void 0:(ht()(this.options.rootContainer).find(Xn(".selected")).rmClass(Xn("selected")).rmAttr("tabindex"),this.$tag.attr("tabindex","0").get(0).focus(),this.$tag.addClass(Xn("selected")),void $n.rootDomViewer.emit("select",$n.node));if(Rn.nodeType===Node.ELEMENT_NODE)for(var ar=Rn,Qn=Rn.parentElement;Qn;){if(Qn===$n.node){this.expand(),this.childNodeDomViewers[this.childNodes.indexOf(ar)].select(Rn);break}ar=Qn,Qn=Qn.parentElement}}},{key:"attach",value:function(){this.container.appendChild(this.$tag.get(0)),this.$children&&this.container.appendChild(this.$children.get(0))}},{key:"isAttached",value:function(){return!!this.$tag.get(0).parentNode}},{key:"detach",value:function(){this.$tag.remove(),this.$children&&this.$children.remove()}},{key:"expand",value:function(){this.isExpandable()&&!this.isExpanded&&(this.isExpanded=!0,this.renderExpandTag(),this.renderChildNodes())}},{key:"collapse",value:function(){this.isExpandable()&&this.isExpanded&&(this.isExpanded=!1,this.renderCollapseTag())}},{key:"destroy",value:function(){var Rn=this.c;this.$tag.hasClass(Rn("selected"))&&this.options.rootDomViewer.emit("deselect"),this.detach(),this.observer&&this.observer.disconnect(),this.destroySubComponents(),this.options.rootDomViewer===this&&this.$container.rmClass("luna-dom-viewer").rmClass(Rn("platform-".concat(Lt()))).rmClass(Rn("theme-".concat(this.options.theme))),this.emit("destroy"),this.removeAllListeners()}},{key:"renderExpandTag",value:function(){var Rn=this.$tag,Xn=this.c,$n=this.options.node;Rn.html(this.renderHtmlTag(Yt(Yt({},Ut($n)),{},{hasTail:!1,hasToggleButton:!0}))),Rn.addClass(Xn("expanded")),this.$children.rmClass(Xn("hidden"))}},{key:"renderCollapseTag",value:function(){var Rn=this.$tag,Xn=this.c,$n=this.options.node;this.$children.addClass(Xn("hidden")),this.$tag.html(this.renderHtmlTag(Yt(Yt({},Ut($n)),{},{hasTail:!0,hasToggleButton:!0}))),Rn.rmClass(Xn("expanded"))}},{key:"initObserver",value:function(){var Rn=this;this.observer=new(Ln())(function(Xn){Zt()(Xn,function($n){Rn.handleMutation($n)})}),this.observer.observe(this.options.node,{attributes:!0,childList:!0,characterData:!0})}},{key:"handleMutation",value:function(Rn){var Xn=this.$tag,$n=this.c,ar=this.options,Qn=ar.node,qn=ar.ignore;if(kt()(["attributes","childList"],Rn.type)){if(Rn.type==="childList"){if(Vn()(Rn.addedNodes,qn)&&Vn()(Rn.removedNodes,qn))return;this.renderChildNodes()}this.isExpandable()?this.isExpanded?this.renderExpandTag():this.renderCollapseTag():(this.$children.addClass($n("hidden")),Xn.html(this.renderHtmlTag(Yt(Yt({},Ut(Qn)),{},{hasTail:!1}))))}else Rn.type==="characterData"&&(Qn.nodeType===Node.TEXT_NODE?Xn.html(this.renderTextNode(Qn)):Qn.nodeType===Node.COMMENT_NODE&&Xn.html(this.renderHtmlComment(Qn.nodeValue)))}},{key:"bindEvent",value:function(){var Rn=this,Xn=this.c,$n=this.$tag;this.options.node.nodeType===Node.ELEMENT_NODE&&$n.on("click",Xn(".toggle"),function(ar){ar.stopPropagation(),Rn.toggle()}),Ot?$n.on("click",function(){return Rn.select()}):$n.on("mousedown",function(){return Rn.select()})}},{key:"isExpandable",value:function(){return this.options.node.nodeType===Node.ELEMENT_NODE&&this.getChildNodes().length>0}},{key:"getChildNodes",value:function(){var Rn=this.options,Xn=Rn.rootContainer,$n=Rn.ignore,ar=this.options.node,Qn=En()(ar.childNodes);return Qn=mn()(Qn,function(qn){if(qn.nodeType===Node.TEXT_NODE||qn.nodeType===Node.COMMENT_NODE){var fr=qn.nodeValue;if(gt()(fr)==="")return!1}return qn!==Xn&&!$n(qn)})}},{key:"initTpl",value:function(){var Rn=this.container,Xn=this.c,$n=this.options,ar=$n.node,Qn=$n.isEndTag,qn=ht()(dn()("li"));if(qn.addClass(Xn("tree-item")),this.$tag=qn,Qn)qn.html(Xn('</'.concat(ar.tagName.toLocaleLowerCase(),'>')));else if(ar.nodeType===Node.ELEMENT_NODE){var fr=this.isExpandable(),cr=Yt(Yt({},Ut(ar)),{},{hasTail:fr,hasToggleButton:fr});qn.html(this.renderHtmlTag(cr))}else if(ar.nodeType===Node.TEXT_NODE)qn.html(this.renderTextNode(ar));else{if(ar.nodeType!==Node.COMMENT_NODE)return;var pr=ar.nodeValue;if(pr.trim()==="")return;qn.html(this.renderHtmlComment(pr))}if(Rn.appendChild(qn.get(0)),ar.nodeType===ar.ELEMENT_NODE){var xr=ht()(dn()("ul"));xr.addClass([Xn("children"),Xn("hidden")]),Rn.appendChild(xr.get(0)),this.$children=xr}}},{key:"renderChildNodes",value:function(){var Rn=this,Xn=this.options.node,$n=this.options,ar=$n.rootContainer,Qn=$n.ignore,qn=$n.rootDomViewer,fr=this.$children.get(0),cr=this.childNodes,pr=this.childNodeDomViewers;Zt()(pr,function(Tr){Tr.detach(),Rn.removeSubComponent(Tr)}),this.endTagDomViewer&&this.endTagDomViewer.detach();var xr=this.getChildNodes();this.childNodes=xr;var kr=[];this.childNodeDomViewers=kr,Zt()(xr,function(Tr,Br){var Rr,Ur=cr.indexOf(Tr);(Rr=Ur>-1?pr[Ur]:new or(fr,{node:Tr,parent:Rn,rootContainer:ar,rootDomViewer:qn,ignore:Qn})).attach(),kr[Br]=Rr,Rn.addSubComponent(Rr)}),Zt()(pr,function(Tr){Tr.isAttached()||Tr.destroy()}),Xn&&(this.endTagDomViewer?this.endTagDomViewer.attach():(this.endTagDomViewer=new or(fr,{node:Xn,parent:this,isEndTag:!0,rootContainer:ar,rootDomViewer:qn,ignore:Qn}),this.addSubComponent(this.endTagDomViewer)))}},{key:"renderHtmlTag",value:function(Rn){var Xn=lt()(Rn.attributes,function(Qn){var qn=Qn.name,fr=Qn.value,cr=Qn.isLink;return` `.concat(Nn()(qn),"").concat(fr?'="').concat(Nn()(fr),'"'):"","")}).join(""),$n="";Rn.hasTail?$n="".concat(Rn.hasTail?"…":"",'</').concat(Rn.tagName,">"):this.isExpandable()||($n='</'.concat(Rn.tagName,">"));var ar="";return Rn.hasToggleButton&&(ar='
'),this.c(kn()(_n||(_n=(0,j.Z)([` `,` <`,"",">",` - `])),ar,Rn.tagName,Xn,$n))}},{key:"renderTextNode",value:function(Rn){var Xn=this.c,$n=Rn.nodeValue,ar=Rn.parentElement,Qn='',qn='';if(ar&&$n.length<1e4){if(ar.tagName==="STYLE")return Xn("".concat(Qn).concat(Un()($n,"css",pt)).concat(qn));if(ar.tagName==="SCRIPT")return Xn("".concat(Qn).concat(Un()($n,"js",pt)).concat(qn))}return Xn('"'.concat(Qn).concat(Nn()(Wn()($n,1e4,{separator:" ",ellipsis:"…"}))).concat(qn,'"'))}},{key:"renderHtmlComment",value:function(Rn){return this.c('<!-- '.concat(Nn()(Rn),' -->'))}}]),or}(Pn);function Ut(sn){var Sn={tagName:"",attributes:[]};Sn.tagName=sn.tagName.toLocaleLowerCase();var or=[];return Zt()(sn.attributes,function(Rn){var Xn=Rn.name,$n=Rn.value;or.push({name:Xn,value:$n,isLink:an(sn,Xn)})}),Sn.attributes=or,Sn}function an(sn,Sn){var or=sn.tagName;return(or==="SCRIPT"||or==="IMAGE"||or==="VIDEO"||or==="AUDIO")&&Sn==="src"||or==="LINK"&&Sn==="href"}(0,k.Z)(b)!==void 0&&function(sn,Sn){try{sn.exports=Sn,sn.exports.default=Sn}catch{}}(b,yt)},129:function(b,_,d){d.d(_,{Z:function(){return vn}});var k=d(907),j=d(181);function $(Mn){return function(Wn){if(Array.isArray(Wn))return(0,k.Z)(Wn)}(Mn)||function(Wn){if(typeof Symbol<"u"&&Wn[Symbol.iterator]!=null||Wn["@@iterator"]!=null)return Array.from(Wn)}(Mn)||(0,j.Z)(Mn)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var et=d(168),tt=d(5671),rt=d(3144),nt=d(7326),ot=d(1752),at=d(9340),it=d(2963),dt=d(1120),ut=d(1443),ht=d.n(ut),ft=d(1512),lt=d.n(ft),ct=d(2461),gt=d.n(ct),st=d(4331),Ct=d.n(st),xt=d(5610),wt=d.n(xt),Mt=d(7483),kt=d.n(Mt),_t=(d(3990),d(6341)),Tt=d.n(_t),At=(d(3875),d(6954)),Et=d.n(At);d(9585);function Ot(Mn){var Wn="luna-".concat(Mn,"-");function wn(Nn){return gt()(Ct()(Nn).split(/\s+/),function(zn){return Tt()(zn,Wn)?zn:zn.replace(/[\w-]+/,function(Vn){return"".concat(Wn).concat(Vn)})}).join(" ")}return function(Nn){if(/<[^>]*>/g.test(Nn))try{var zn=kt().parse(Nn);return Lt(zn,function(Vn){Vn.attrs&&Vn.attrs.class&&(Vn.attrs.class=wn(Vn.attrs.class))}),kt().stringify(zn)}catch{return wn(Nn)}return wn(Nn)}}function Lt(Mn,Wn){for(var wn=0,Nn=Mn.length;wn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var wn,Nn=(0,dt.Z)(Mn);if(Wn){var zn=(0,dt.Z)(this).constructor;wn=Reflect.construct(Nn,arguments,zn)}else wn=Nn.apply(this,arguments);return(0,it.Z)(this,wn)}}var Pn,Yn=function(Mn){(0,at.Z)(wn,Mn);var Wn=_n(wn);function wn(Nn,zn){var Vn,bn=zn.compName,Yt=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,bt=Yt===void 0?"light":Yt;return(0,tt.Z)(this,wn),(Vn=Wn.call(this)).subComponents=[],Vn.compName=bn,Vn.c=Ot(bn),Vn.options={},Vn.container=Nn,Vn.$container=lt()(Nn),Vn.$container.addClass(["luna-".concat(bn),Vn.c("platform-".concat(Pt()))]),Vn.on("optionChange",function(pt,yt,Ut){var an=Vn.c;pt==="theme"&&(Vn.$container.rmClass(an("theme-".concat(Ut))).addClass(an("theme-".concat(yt))),rn()(Vn.subComponents,function(sn){return sn.setOption("theme",yt)}))}),Vn.setOption("theme",bt),Vn}return(0,rt.Z)(wn,[{key:"destroy",value:function(){this.destroySubComponents();var Nn=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(Nn("platform-".concat(Pt()))).rmClass(Nn("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(Nn,zn){var Vn=this,bn=this.options,Yt={};typeof Nn=="string"?Yt[Nn]=zn:Yt=Nn,rn()(Yt,function(bt,pt){var yt=bn[pt];bn[pt]=bt,Vn.emit("optionChange",pt,bt,yt)})}},{key:"getOption",value:function(Nn){return this.options[Nn]}},{key:"addSubComponent",value:function(Nn){Nn.setOption("theme",this.options.theme),this.subComponents.push(Nn)}},{key:"removeSubComponent",value:function(Nn){On()(this.subComponents,function(zn){return zn===Nn})}},{key:"destroySubComponents",value:function(){rn()(this.subComponents,function(Nn){return Nn.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(Nn){var zn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};fn()(Nn,zn),Qt()(this.options,Nn)}},{key:"find",value:function(Nn){return this.$container.find(this.c(Nn))}}]),wn}(ht()),dn=d(1907),An=d.n(dn),mn=d(8613),jn=d.n(mn);function kn(Mn){var Wn=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var wn,Nn=(0,dt.Z)(Mn);if(Wn){var zn=(0,dt.Z)(this).constructor;wn=Reflect.construct(Nn,arguments,zn)}else wn=Nn.apply(this,arguments);return(0,it.Z)(this,wn)}}b=d.hmd(b);var vn=function(Mn){(0,at.Z)(wn,Mn);var Wn=kn(wn);function wn(Nn){var zn,Vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,tt.Z)(this,wn),(zn=Wn.call(this,Nn,{compName:"modal"},Vn)).hide=function(){zn.$container.addClass(zn.c("hidden"))},zn.render=function(){var bn=(0,nt.Z)(zn),Yt=bn.options,bt=bn.c,pt=bn.$body;Yt.title?(pt.rmClass(bt("no-title")),zn.$title.text(Yt.title)):pt.addClass(bt("no-title")),Yt.footer?(pt.rmClass(bt("no-footer")),zn.$footer.html("").append(Yt.footer)):pt.addClass(bt("no-footer")),Yt.showClose?zn.$close.show():zn.$close.hide(),zn.$body.css("width",Yt.width+"px"),zn.$content.html("").append(Yt.content)},zn.hide(),zn.initOptions(Vn,{title:"",content:"",footer:"",showClose:!0,width:Un()}),zn.initTpl(),zn.$title=zn.find(".title"),zn.$content=zn.find(".content"),zn.$body=zn.find(".body"),zn.$footer=zn.find(".footer"),zn.$close=zn.find(".icon-close"),zn.bindEvent(),zn}return(0,rt.Z)(wn,[{key:"show",value:function(){this.render(),this.$container.rmClass(this.c("hidden"))}},{key:"destroy",value:function(){(0,ot.Z)((0,dt.Z)(wn.prototype),"destroy",this).call(this),this.$container.rmClass(this.c("hidden"))}},{key:"bindEvent",value:function(){this.$body.on("click",this.c(".icon-close"),this.hide),this.on("optionChange",this.render)}},{key:"initTpl",value:function(){this.$container.html(this.c(An()(Pn||(Pn=(0,et.Z)([` + `])),ar,Rn.tagName,Xn,$n))}},{key:"renderTextNode",value:function(Rn){var Xn=this.c,$n=Rn.nodeValue,ar=Rn.parentElement,Qn='',qn='';if(ar&&$n.length<1e4){if(ar.tagName==="STYLE")return Xn("".concat(Qn).concat(Un()($n,"css",pt)).concat(qn));if(ar.tagName==="SCRIPT")return Xn("".concat(Qn).concat(Un()($n,"js",pt)).concat(qn))}return Xn('"'.concat(Qn).concat(Nn()(zn()($n,1e4,{separator:" ",ellipsis:"…"}))).concat(qn,'"'))}},{key:"renderHtmlComment",value:function(Rn){return this.c('<!-- '.concat(Nn()(Rn),' -->'))}}]),or}(Bn);function Ut(sn){var Sn={tagName:"",attributes:[]};Sn.tagName=sn.tagName.toLocaleLowerCase();var or=[];return Zt()(sn.attributes,function(Rn){var Xn=Rn.name,$n=Rn.value;or.push({name:Xn,value:$n,isLink:an(sn,Xn)})}),Sn.attributes=or,Sn}function an(sn,Sn){var or=sn.tagName;return(or==="SCRIPT"||or==="IMAGE"||or==="VIDEO"||or==="AUDIO")&&Sn==="src"||or==="LINK"&&Sn==="href"}(0,k.Z)(b)!==void 0&&function(sn,Sn){try{sn.exports=Sn,sn.exports.default=Sn}catch{}}(b,yt)},129:function(b,_,d){d.d(_,{Z:function(){return vn}});var k=d(907),j=d(181);function $(Mn){return function(zn){if(Array.isArray(zn))return(0,k.Z)(zn)}(Mn)||function(zn){if(typeof Symbol<"u"&&zn[Symbol.iterator]!=null||zn["@@iterator"]!=null)return Array.from(zn)}(Mn)||(0,j.Z)(Mn)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var et=d(168),tt=d(5671),rt=d(3144),nt=d(7326),ot=d(1752),at=d(9340),it=d(2963),dt=d(1120),ut=d(1443),ht=d.n(ut),ft=d(1512),lt=d.n(ft),ct=d(2461),gt=d.n(ct),st=d(4331),Ct=d.n(st),xt=d(5610),wt=d.n(xt),Mt=d(7483),kt=d.n(Mt),_t=(d(3990),d(6341)),Tt=d.n(_t),At=(d(3875),d(6954)),Et=d.n(At);d(9585);function Ot(Mn){var zn="luna-".concat(Mn,"-");function wn(Nn){return gt()(Ct()(Nn).split(/\s+/),function(Wn){return Tt()(Wn,zn)?Wn:Wn.replace(/[\w-]+/,function(Vn){return"".concat(zn).concat(Vn)})}).join(" ")}return function(Nn){if(/<[^>]*>/g.test(Nn))try{var Wn=kt().parse(Nn);return Lt(Wn,function(Vn){Vn.attrs&&Vn.attrs.class&&(Vn.attrs.class=wn(Vn.attrs.class))}),kt().stringify(Wn)}catch{return wn(Nn)}return wn(Nn)}}function Lt(Mn,zn){for(var wn=0,Nn=Mn.length;wn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var wn,Nn=(0,dt.Z)(Mn);if(zn){var Wn=(0,dt.Z)(this).constructor;wn=Reflect.construct(Nn,arguments,Wn)}else wn=Nn.apply(this,arguments);return(0,it.Z)(this,wn)}}var Bn,Yn=function(Mn){(0,at.Z)(wn,Mn);var zn=_n(wn);function wn(Nn,Wn){var Vn,bn=Wn.compName,Yt=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,bt=Yt===void 0?"light":Yt;return(0,tt.Z)(this,wn),(Vn=zn.call(this)).subComponents=[],Vn.compName=bn,Vn.c=Ot(bn),Vn.options={},Vn.container=Nn,Vn.$container=lt()(Nn),Vn.$container.addClass(["luna-".concat(bn),Vn.c("platform-".concat(Bt()))]),Vn.on("optionChange",function(pt,yt,Ut){var an=Vn.c;pt==="theme"&&(Vn.$container.rmClass(an("theme-".concat(Ut))).addClass(an("theme-".concat(yt))),rn()(Vn.subComponents,function(sn){return sn.setOption("theme",yt)}))}),Vn.setOption("theme",bt),Vn}return(0,rt.Z)(wn,[{key:"destroy",value:function(){this.destroySubComponents();var Nn=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(Nn("platform-".concat(Bt()))).rmClass(Nn("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(Nn,Wn){var Vn=this,bn=this.options,Yt={};typeof Nn=="string"?Yt[Nn]=Wn:Yt=Nn,rn()(Yt,function(bt,pt){var yt=bn[pt];bn[pt]=bt,Vn.emit("optionChange",pt,bt,yt)})}},{key:"getOption",value:function(Nn){return this.options[Nn]}},{key:"addSubComponent",value:function(Nn){Nn.setOption("theme",this.options.theme),this.subComponents.push(Nn)}},{key:"removeSubComponent",value:function(Nn){On()(this.subComponents,function(Wn){return Wn===Nn})}},{key:"destroySubComponents",value:function(){rn()(this.subComponents,function(Nn){return Nn.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(Nn){var Wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};fn()(Nn,Wn),Qt()(this.options,Nn)}},{key:"find",value:function(Nn){return this.$container.find(this.c(Nn))}}]),wn}(ht()),dn=d(1907),An=d.n(dn),mn=d(8613),jn=d.n(mn);function kn(Mn){var zn=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var wn,Nn=(0,dt.Z)(Mn);if(zn){var Wn=(0,dt.Z)(this).constructor;wn=Reflect.construct(Nn,arguments,Wn)}else wn=Nn.apply(this,arguments);return(0,it.Z)(this,wn)}}b=d.hmd(b);var vn=function(Mn){(0,at.Z)(wn,Mn);var zn=kn(wn);function wn(Nn){var Wn,Vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,tt.Z)(this,wn),(Wn=zn.call(this,Nn,{compName:"modal"},Vn)).hide=function(){Wn.$container.addClass(Wn.c("hidden"))},Wn.render=function(){var bn=(0,nt.Z)(Wn),Yt=bn.options,bt=bn.c,pt=bn.$body;Yt.title?(pt.rmClass(bt("no-title")),Wn.$title.text(Yt.title)):pt.addClass(bt("no-title")),Yt.footer?(pt.rmClass(bt("no-footer")),Wn.$footer.html("").append(Yt.footer)):pt.addClass(bt("no-footer")),Yt.showClose?Wn.$close.show():Wn.$close.hide(),Wn.$body.css("width",Yt.width+"px"),Wn.$content.html("").append(Yt.content)},Wn.hide(),Wn.initOptions(Vn,{title:"",content:"",footer:"",showClose:!0,width:Un()}),Wn.initTpl(),Wn.$title=Wn.find(".title"),Wn.$content=Wn.find(".content"),Wn.$body=Wn.find(".body"),Wn.$footer=Wn.find(".footer"),Wn.$close=Wn.find(".icon-close"),Wn.bindEvent(),Wn}return(0,rt.Z)(wn,[{key:"show",value:function(){this.render(),this.$container.rmClass(this.c("hidden"))}},{key:"destroy",value:function(){(0,ot.Z)((0,dt.Z)(wn.prototype),"destroy",this).call(this),this.$container.rmClass(this.c("hidden"))}},{key:"bindEvent",value:function(){this.$body.on("click",this.c(".icon-close"),this.hide),this.on("optionChange",this.render)}},{key:"initTpl",value:function(){this.$container.html(this.c(An()(Bn||(Bn=(0,et.Z)([`
- `])))))}}],[{key:"alert",value:function(Nn){var zn=Ln(),Vn=zn.c;zn.setOption({title:"",content:Nn,width:Un(),footer:Fn({OK:{type:"primary",onclick:function(){zn.hide()}}},Vn)}),zn.show()}},{key:"confirm",value:function(Nn){return new Promise(function(zn){var Vn=Ln(),bn=Vn.c;Vn.setOption({title:"",content:Nn,width:Un(),footer:Fn({Cancel:{type:"secondary",onclick:function(){Vn.hide(),zn(!1)}},OK:{type:"primary",onclick:function(){Vn.hide(),zn(!0)}}},bn)}),Vn.show()})}},{key:"prompt",value:function(){var Nn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",zn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return new Promise(function(Vn){var bn=Ln(),Yt=bn.c,bt=jn()("input"+Yt(".input"),{value:zn});function pt(){bn.hide(),Vn(bt.value)}lt()(bt).on("keypress",function(Ut){(Ut=Ut.origEvent).key==="Enter"&&pt()}),bn.setOption({title:Nn,content:bt,width:Un(),footer:Fn({Cancel:{type:"secondary",onclick:function(){bn.hide(),Vn(null)}},OK:{type:"primary",onclick:pt}},Yt)}),bn.show();var yt=bt.value.length;bt.setSelectionRange(yt,yt),bt.focus()})}},{key:"setContainer",value:function(Nn){gn=Nn}}]),wn}(Yn),En=null,gn=null;function Ln(){return gn||(gn=jn()("div"),document.body.append(gn)),En||(En=new vn(gn,{showClose:!1})),En}function Fn(Mn,Wn){var wn=gt()(Mn,function(Nn,zn){return jn()(Wn(".button")+Wn("."+Nn.type),{onclick:Nn.onclick},zn)});return jn().apply(void 0,[Wn(".button-group"),{}].concat($(wn)))}function Un(){return window.innerWidth<500?window.innerWidth-32:500}(function(Mn,Wn){try{Mn.exports=Wn,Mn.exports.default=Wn}catch{}})(b,vn)},8299:function(b,_,d){d.d(_,{q:function(){return It},Z:function(){return zt}});var k=d(1002),j=d(5671),$=d(3144),et=d(7326),tt=d(1752),rt=d(9340),nt=d(2963),ot=d(1120),at=d(415),it=d.n(at),dt=d(3990),ut=d.n(dt),ht=d(4696),ft=d.n(ht),lt=d(3063),ct=d.n(lt),gt=d(5166),st=d.n(gt),Ct=d(6472),xt=d.n(Ct),wt=d(3023),Mt=d.n(wt),kt=d(2533),_t=d.n(kt),Tt=d(3783),At=d.n(Tt),Et=d(300),Ot=d.n(Et),Lt=d(4321),Pt=d.n(Lt),Zt=d(3085),rn=d.n(Zt),nn=d(1512),Qt=d.n(nn),Vt=d(801),fn=d.n(Vt),In=d(7756),On=d.n(In),_n=d(6768),Pn=d.n(_n),Yn=d(1116),dn=d.n(Yn),An=d(5972),mn=d.n(An),jn=d(996),kn=d.n(jn),vn=d(3367),En=d.n(vn),gn=d(1214),Ln=d.n(gn),Fn=d(7658),Un=d.n(Fn),Mn=d(6329),Wn=d.n(Mn),wn=function(){function Bt(){(0,j.Z)(this,Bt),this.id=0,this.visited=[]}return(0,$.Z)(Bt,[{key:"set",value:function(hn,un){var tn=this.visited,Gt=this.id,xn={id:Gt,val:hn};return Wn()(xn,un),tn.push(xn),this.id++,Gt}},{key:"get",value:function(hn){for(var un=this.visited,tn=0,Gt=un.length;tn500&&(Bt=Bt.slice(0,500)+"..."),"ƒ "+zn()(function(hn){var un=hn.match(pt);return un?un[0]:hn}(Bt).replace("function",""))}var pt=/function(.*?)\((.*?)\)/,yt=d(6930),Ut=d.n(yt),an=d(5229),sn=d.n(an),Sn=d(3875),or=d.n(Sn),Rn=d(9433),Xn=d.n(Rn),$n=d(1443),ar=d.n($n),Qn=d(2461),qn=d.n(Qn),fr=d(5610),cr=d.n(fr),pr=d(7483),xr=d.n(pr),kr=d(6341),Tr=d.n(kr),Pr=d(6954),Rr=d.n(Pr);d(9585);function Ur(Bt){var hn="luna-".concat(Bt,"-");function un(tn){return qn()(zn()(tn).split(/\s+/),function(Gt){return Tr()(Gt,hn)?Gt:Gt.replace(/[\w-]+/,function(xn){return"".concat(hn).concat(xn)})}).join(" ")}return function(tn){if(/<[^>]*>/g.test(tn))try{var Gt=xr().parse(tn);return Qr(Gt,function(xn){xn.attrs&&xn.attrs.class&&(xn.attrs.class=un(xn.attrs.class))}),xr().stringify(Gt)}catch{return un(tn)}return un(tn)}}function Qr(Bt,hn){for(var un=0,tn=Bt.length;un"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var un,tn=(0,ot.Z)(Bt);if(hn){var Gt=(0,ot.Z)(this).constructor;un=Reflect.construct(tn,arguments,Gt)}else un=tn.apply(this,arguments);return(0,nt.Z)(this,un)}}var Dt=function(Bt){(0,rt.Z)(un,Bt);var hn=mt(un);function un(tn,Gt){var xn,Gn=Gt.compName,Jn=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,er=Jn===void 0?"light":Jn;return(0,j.Z)(this,un),(xn=hn.call(this)).subComponents=[],xn.compName=Gn,xn.c=Ur(Gn),xn.options={},xn.container=tn,xn.$container=Qt()(tn),xn.$container.addClass(["luna-".concat(Gn),xn.c("platform-".concat(Zr()))]),xn.on("optionChange",function(ir,Kn,nr){var ur=xn.c;ir==="theme"&&(xn.$container.rmClass(ur("theme-".concat(nr))).addClass(ur("theme-".concat(Kn))),At()(xn.subComponents,function(rr){return rr.setOption("theme",Kn)}))}),xn.setOption("theme",er),xn}return(0,$.Z)(un,[{key:"destroy",value:function(){this.destroySubComponents();var tn=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(tn("platform-".concat(Zr()))).rmClass(tn("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(tn,Gt){var xn=this,Gn=this.options,Jn={};typeof tn=="string"?Jn[tn]=Gt:Jn=tn,At()(Jn,function(er,ir){var Kn=Gn[ir];Gn[ir]=er,xn.emit("optionChange",ir,er,Kn)})}},{key:"getOption",value:function(tn){return this.options[tn]}},{key:"addSubComponent",value:function(tn){tn.setOption("theme",this.options.theme),this.subComponents.push(tn)}},{key:"removeSubComponent",value:function(tn){$t()(this.subComponents,function(Gt){return Gt===tn})}},{key:"destroySubComponents",value:function(){At()(this.subComponents,function(tn){return tn.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(tn){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};St()(tn,Gt),Wn()(this.options,tn)}},{key:"find",value:function(tn){return this.$container.find(this.c(tn))}}]),un}(ar());function Xt(Bt){var hn=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var un,tn=(0,ot.Z)(Bt);if(hn){var Gt=(0,ot.Z)(this).constructor;un=Reflect.construct(tn,arguments,Gt)}else un=tn.apply(this,arguments);return(0,nt.Z)(this,un)}}var It=function(Bt){(0,rt.Z)(un,Bt);var hn=Xt(un);function un(tn){var Gt;return(0,j.Z)(this,un),(Gt=hn.call(this,tn,{compName:"object-viewer"})).onItemClick=function(xn){var Gn=(0,et.Z)(Gt),Jn=Gn.map,er=Gn.c,ir=Qt()(xn.curTarget),Kn=ir.data("object-id"),nr=ir.find("span").eq(0);if(!ir.data("first-level")&&(Kn&&(ir.find("ul").html(Gt.objToHtml(Jn[Kn],!1)),ir.rmAttr("data-object-id")),xn.stopImmediatePropagation(),nr.hasClass(er("expanded")))){var ur=ir.find("ul").eq(0);nr.hasClass(er("collapsed"))?(nr.rmClass(er("collapsed")),ur.show()):(nr.addClass(er("collapsed")),ur.hide()),Gt.emit("change")}},Gt.bindEvent(),Gt}return(0,$.Z)(un,[{key:"set",value:function(tn){Pn()(tn)&&(tn=JSON.parse(tn)),this.data={id:sn()("json"),enumerable:{0:tn}},this.map={},Nt(this.map,this.data),this.render()}},{key:"destroy",value:function(){(0,tt.Z)((0,ot.Z)(un.prototype),"destroy",this).call(this),this.$container.off("click","li",this.onItemClick)}},{key:"objToHtml",value:function(tn,Gt){var xn=this,Gn="";return At()(["enumerable","unenumerable","symbol"],function(Jn){if(tn[Jn]){var er=_t()(tn[Jn]);Un()(er);for(var ir=0,Kn=er.length;ir3&&arguments[3]!==void 0&&arguments[3],Jn=this.c,er=(0,k.Z)(Gt);if(Gt===null)return"
  • ".concat(yr(tn),'null
  • ');if(ut()(Gt)||ft()(Gt))return"
  • ".concat(yr(tn),'').concat(Yt(Gt),"
  • ");if(Gt.type==="RegExp"&&(er="regexp"),Gt.type==="Number"&&(er="number"),Gt.type==="Number"||Gt.type==="RegExp")return"
  • ".concat(yr(tn),'').concat(Yt(Gt.value),"
  • ");if(Gt.type==="Undefined"||Gt.type==="Symbol")return"
  • ".concat(yr(tn),'').concat(ct()(Gt.type),"
  • ");if(Gt==="(...)")return"
  • ".concat(yr(tn),'').concat(Gt,"
  • ");if(st()(Gt)){var ir=Gt.id,Kn=Gt.reference,nr=function(mr){var Bn=mr.type,Hn=mr.value;if(Bn)return Bn==="Function"?bt(Hn):Bn==="Array"&&mr.unenumerable?"Array(".concat(mr.unenumerable.length,")"):mr.type}(Gt)||Mt()(er),ur=Gn?"":''),rr="
  • ").concat(ur).concat(yr(tn),'').concat(Gn?"":nr,'
      ");return Gn&&(rr+=this.objToHtml(this.map[ir])),rr+'
  • ')}function yr(mr){if(Gn||st()(Gt)&&Gt.jsonSplitArr)return"";var Bn=Jn("key");return xn==="unenumerable"||xn==="symbol"?Bn=Jn("key-lighter"):xn==="proto"&&(Bn=Jn("key-special")),'').concat(Yt(mr),": ")}return Pn()(Gt)&&Gt.length>1e4&&(Gt=On()(Gt,50,{separator:" ",ellipsis:"…"})),"
  • ".concat(yr(tn),'"').concat(Yt(Gt),'"
  • ')}},{key:"render",value:function(){var tn=this.map[this.data.id];this.$container.html(this.objToHtml(tn,!0))}},{key:"bindEvent",value:function(){this.$container.on("click","li",this.onItemClick)}}]),un}(Dt);function Nt(Bt,hn){var un=hn.id;if(un||un===0){if(hn.type&&Ut()(hn.type,"Array")&&hn.enumerable){var tn=function(er,ir,Kn){var nr=[],ur={};return At()(er.enumerable,function(rr,yr){var mr=or()(yr);Xn()(mr)?ur[yr]=rr:nr[mr]=rr}),nr.enumerable=ur,nr.type=Kn,nr.id=ir,er.unenumerable&&(nr.unenumerable=er.unenumerable),er.symbol&&(nr.symbol=er.symbol),er.proto&&(nr.proto=er.proto),nr}(hn,un,hn.type);tn.length>100&&(hn=function(er){var ir=0,Kn={};At()(kn()(er,100),function(ur){var rr={},yr=ir;rr.type="["+yr,rr.enumerable={},At()(ur,function(Bn){rr.enumerable[ir]=Bn,ir+=1});var mr=ir-1;rr.type+=(mr-yr>0?" … "+mr:"")+"]",rr.id=sn()("json"),rr.jsonSplitArr=!0,Kn[ir]=rr});var nr={};return nr.enumerable=Kn,nr.id=er.id,nr.type=er.type,er.unenumerable&&(nr.unenumerable=er.unenumerable),er.symbol&&(nr.symbol=er.symbol),er.proto&&(nr.proto=er.proto),nr}(tn))}Bt[un]=hn;var Gt=[];At()(["enumerable","unenumerable","symbol"],function(er){if(hn[er])for(var ir in hn[er])Gt.push(hn[er][ir])}),hn.proto&&Gt.push(hn.proto);for(var xn=0,Gn=Gt.length;xn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var un,tn=(0,ot.Z)(Bt);if(hn){var Gt=(0,ot.Z)(this).constructor;un=Reflect.construct(tn,arguments,Gt)}else un=tn.apply(this,arguments);return(0,nt.Z)(this,un)}}b=d.hmd(b);var zt=function(Bt){(0,rt.Z)(un,Bt);var hn=Rt(un);function un(tn){var Gt,xn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,j.Z)(this,un),(Gt=hn.call(this,tn,{compName:"object-viewer"})).onItemClick=function(Gn){var Jn=(0,et.Z)(Gt),er=Jn.map,ir=Jn.c,Kn=Qt()(Gn.curTarget),nr=Kn.data("object-id"),ur=Kn.find("span").eq(0);if(!Kn.data("first-level")&&(nr&&(Kn.find("ul").html(Gt.objToHtml(er[nr],!1)),Kn.rmAttr("data-object-id")),Gn.stopImmediatePropagation(),ur.hasClass(ir("expanded")))){var rr=Kn.find("ul").eq(0);ur.hasClass(ir("collapsed"))?(ur.rmClass(ir("collapsed")),rr.show()):(ur.addClass(ir("collapsed")),rr.hide()),Gt.emit("change")}},Gt.initOptions(xn,{unenumerable:!1,accessGetter:!1}),Gt.bindEvent(),Gt}return(0,$.Z)(un,[{key:"set",value:function(tn){this.data=[tn],this.visitor=new wn,this.map={},this.render()}},{key:"destroy",value:function(){(0,tt.Z)((0,ot.Z)(un.prototype),"destroy",this).call(this),this.$container.off("click","li",this.onItemClick)}},{key:"objToHtml",value:function(tn,Gt){var xn=this,Gn=this.visitor,Jn=tn,er=!1,ir=Gn.get(tn);ir&&ir.self&&(Jn=ir.self);var Kn="",nr=["enumerable"],ur=_t()(tn),rr=[],yr=[],mr=[],Bn={};if(this.options.unenumerable&&!Gt&&(nr.push("unenumerable"),nr.push("symbol"),rr=fn()(dn()(tn,{prototype:!1,unenumerable:!0}),ur),yr=mn()(dn()(tn,{prototype:!1,symbol:!0}),function(dr){return(0,k.Z)(dr)==="symbol"})),xt()(tn)&&tn.length>100){nr.unshift("virtual"),er=!0;var Hn=0,hr={};At()(kn()(tn,100),function(dr){var Ar=Object.create(null),Mr=Hn,jr="["+Mr;At()(dr,function(pn){Ar[Hn]=pn,hr[Hn]=!0,Hn++});var Ir=Hn-1;Bn[jr+=(Ir-Mr>0?" … "+Ir:"")+"]"]=Ar}),mr=_t()(Bn),ur=mn()(ur,function(dr){return!hr[dr]})}At()(nr,function(dr){var Ar=[];Ar=dr==="symbol"?yr:dr==="unenumerable"?rr:dr==="virtual"?mr:ur,er||Un()(Ar);for(var Mr=0,jr=Ar.length;Mr4&&arguments[4]!==void 0&&arguments[4],er=this.visitor,ir=this.c,Kn=(0,k.Z)(xn),nr=rn()(xn,!1);if(Gn==="virtual"&&(nr=tn),xn===null)return"
  • ".concat(hr(tn),'null
  • ');if(ut()(xn)||ft()(xn))return"
  • ".concat(hr(tn),'').concat(Yt(xn),"
  • ");if(nr==="RegExp"&&(Kn="regexp"),nr==="Number"&&(Kn="number"),nr==="Undefined"||nr==="Symbol")return"
  • ".concat(hr(tn),'').concat(ct()(nr),"
  • ");if(xn==="(...)")return"
  • ".concat(hr(tn),'').concat(xn,"
  • ");if(st()(xn)){var ur,rr=er.get(xn);if(rr)ur=rr.id;else{var yr={};Gn==="proto"&&(yr.self=Gt),ur=er.set(xn,yr),this.map[ur]=xn}var mr="Object";mr=Kn==="regexp"?'').concat(Yt(xn)):Yt(function(lr,sr){if(sr)return sr==="Function"?bt(Ot()(lr)):sr==="Array"?"Array(".concat(lr.length,")"):sr}(xn,nr)||Mt()(Kn));var Bn=Jn?"":''),Hn="
  • ").concat(Bn).concat(hr(tn),'').concat(Jn?"":mr,'
      ");return Jn&&(Hn+=this.objToHtml(xn)),Hn+'
  • ')}function hr(lr){if(Jn||st()(xn)&&Gn==="virtual")return"";var sr=ir("key");return Gn==="unenumerable"||Gn==="symbol"?sr=ir("key-lighter"):Gn==="proto"&&(sr=ir("key-special")),'').concat(Yt(lr),": ")}return Pn()(xn)&&xn.length>1e4&&(xn=On()(xn,50,{separator:" ",ellipsis:"…"})),"
  • ".concat(hr(tn),'"').concat(Yt(xn),'"
  • ')}},{key:"render",value:function(){this.$container.html(this.objToHtml(this.data,!0))}},{key:"bindEvent",value:function(){this.$container.on("click","li",this.onItemClick)}}]),un}(Dt);zt.Static=It,function(Bt,hn){try{Bt.exports=hn,Bt.exports.default=hn}catch{}}(b,zt)},8692:function(b,_,d){d.d(_,{Z:function(){return bt}});var k=d(7326),j=d(5671),$=d(3144),et=d(9340),tt=d(2963),rt=d(1120),nt=d(1512),ot=d.n(nt),at=d(8613),it=d.n(at),dt=d(8901),ut=d.n(dt),ht=d(5229),ft=d.n(ht),lt=d(5166),ct=d.n(lt),gt=d(4193),st=d.n(gt),Ct=d(2461),xt=d.n(Ct),wt=d(3875),Mt=d.n(wt),kt=d(3367),_t=d.n(kt),Tt=d(4777),At=d.n(Tt),Et=d(9702),Ot=d.n(Et),Lt=d(1754),Pt=d.n(Lt),Zt=d(6768),rn=d.n(Zt),nn=d(4331),Qt=d.n(nn),Vt=d(6341),fn=d.n(Vt),In=d(3063),On=d.n(In),_n=d(6156),Pn=d.n(_n),Yn=d(3783),dn=d.n(Yn),An=d(1443),mn=d.n(An),jn=d(5610),kn=d.n(jn),vn=d(7483),En=d.n(vn),gn=(d(3990),d(6954)),Ln=d.n(gn);d(9585);function Fn($n){var ar="luna-".concat($n,"-");function Qn(qn){return xt()(Qt()(qn).split(/\s+/),function(fr){return fn()(fr,ar)?fr:fr.replace(/[\w-]+/,function(cr){return"".concat(ar).concat(cr)})}).join(" ")}return function(qn){if(/<[^>]*>/g.test(qn))try{var fr=En().parse(qn);return Un(fr,function(cr){cr.attrs&&cr.attrs.class&&(cr.attrs.class=Qn(cr.attrs.class))}),En().stringify(fr)}catch{return Qn(qn)}return Qn(qn)}}function Un($n,ar){for(var Qn=0,qn=$n.length;Qn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Qn,qn=(0,rt.Z)($n);if(ar){var fr=(0,rt.Z)(this).constructor;Qn=Reflect.construct(qn,arguments,fr)}else Qn=qn.apply(this,arguments);return(0,tt.Z)(this,Qn)}}var bn=function($n){(0,et.Z)(Qn,$n);var ar=Vn(Qn);function Qn(qn,fr){var cr,pr=fr.compName,xr=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,kr=xr===void 0?"light":xr;return(0,j.Z)(this,Qn),(cr=ar.call(this)).subComponents=[],cr.compName=pr,cr.c=Fn(pr),cr.options={},cr.container=qn,cr.$container=ot()(qn),cr.$container.addClass(["luna-".concat(pr),cr.c("platform-".concat(Mn()))]),cr.on("optionChange",function(Tr,Pr,Rr){var Ur=cr.c;Tr==="theme"&&(cr.$container.rmClass(Ur("theme-".concat(Rr))).addClass(Ur("theme-".concat(Pr))),dn()(cr.subComponents,function(Qr){return Qr.setOption("theme",Pr)}))}),cr.setOption("theme",kr),cr}return(0,$.Z)(Qn,[{key:"destroy",value:function(){this.destroySubComponents();var qn=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(qn("platform-".concat(Mn()))).rmClass(qn("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(qn,fr){var cr=this,pr=this.options,xr={};typeof qn=="string"?xr[qn]=fr:xr=qn,dn()(xr,function(kr,Tr){var Pr=pr[Tr];pr[Tr]=kr,cr.emit("optionChange",Tr,kr,Pr)})}},{key:"getOption",value:function(qn){return this.options[qn]}},{key:"addSubComponent",value:function(qn){qn.setOption("theme",this.options.theme),this.subComponents.push(qn)}},{key:"removeSubComponent",value:function(qn){zn()(this.subComponents,function(fr){return fr===qn})}},{key:"destroySubComponents",value:function(){dn()(this.subComponents,function(qn){return qn.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(qn){var fr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};st()(qn,fr),wn()(this.options,qn)}},{key:"find",value:function(qn){return this.$container.find(this.c(qn))}}]),Qn}(mn());function Yt($n){var ar=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Qn,qn=(0,rt.Z)($n);if(ar){var fr=(0,rt.Z)(this).constructor;Qn=Reflect.construct(qn,arguments,fr)}else Qn=qn.apply(this,arguments);return(0,tt.Z)(this,Qn)}}b=d.hmd(b);var bt=function($n){(0,et.Z)(Qn,$n);var ar=Yt(Qn);function Qn(qn){var fr,cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,j.Z)(this,Qn),(fr=ar.call(this,qn,{compName:"setting"},cr)).items=[],fr.selectedItem=null,fr.initOptions(cr,{separatorCollapse:!0,filter:""}),fr.bindEvent(),fr}return(0,$.Z)(Qn,[{key:"appendTitle",value:function(qn){var fr=new yt(this,qn);return this.append(fr),fr}},{key:"appendSeparator",value:function(){var qn=this.items,fr=this.options.separatorCollapse,cr=Ot()(qn);if(fr&&cr instanceof Ut)return cr;var pr=new Ut(this);return this.append(pr),pr}},{key:"appendNumber",value:function(qn,fr,cr,pr,xr){ct()(pr)&&(xr=pr,pr="");var kr=new sn(this,qn,fr,cr,pr,xr);return this.append(kr),kr}},{key:"appendButton",value:function(qn,fr,cr){At()(fr)&&(cr=fr,fr="");var pr=new Xn(this,qn,fr,cr);return this.append(pr),pr}},{key:"appendInput",value:function(qn,fr,cr){var pr=new an(this,qn,fr,cr,arguments.length>3&&arguments[3]!==void 0?arguments[3]:"");return this.append(pr),pr}},{key:"appendCheckbox",value:function(qn,fr,cr,pr){pr||(pr=cr,cr="");var xr=new or(this,qn,fr,cr,pr);return this.append(xr),xr}},{key:"appendSelect",value:function(qn,fr,cr,pr,xr){ct()(pr)&&(xr=pr,pr="");var kr=new Rn(this,qn,fr,cr,pr,xr);return this.append(kr),kr}},{key:"remove",value:function(qn){var fr=this.items,cr=fr.indexOf(qn);cr>-1&&(qn.detach(),fr.splice(cr,1),qn===this.selectedItem&&this.selectItem(null))}},{key:"clear",value:function(){dn()(this.items,function(qn){return qn.detach()}),this.items=[],this.selectItem(null)}},{key:"selectItem",value:function(qn){var fr;this.selectedItem&&(this.selectedItem.deselect(),this.selectedItem=null),Pn()(qn)||(this.selectedItem=qn,(fr=this.selectedItem)===null||fr===void 0||fr.select())}},{key:"renderSettings",value:function(){var qn=this,fr=this.items;dn()(fr,function(cr){return cr.detach()}),dn()(fr,function(cr){qn.filterItem(cr)&&qn.$container.append(cr.container)})}},{key:"bindEvent",value:function(){var qn=this,fr=this.c;this.on("optionChange",function(pr){pr==="filter"&&qn.renderSettings()});var cr=this;this.$container.on("click",fr(".item"),function(){cr.selectItem(this.settingItem)})}},{key:"filterItem",value:function(qn){var fr=this.options.filter;if(fr){if(At()(fr))return fr(qn);if(Pt()(fr))return fr.test(qn.text());if(rn()(fr)&&(fr=Qt()(fr)))return fn()(On()(qn.text()),On()(fr))}return!0}},{key:"append",value:function(qn){this.items.push(qn),this.filterItem(qn)&&this.$container.append(qn.container)}}]),Qn}(bn),pt=function(){function $n(ar,Qn,qn,fr){(0,j.Z)(this,$n),this.container=it()("div",{tabindex:"0"}),this.setting=ar,this.container.settingItem=this,this.$container=ot()(this.container),this.$container.addClass(ar.c("item")).addClass(ar.c("item-".concat(fr))),this.key=Qn,this.value=qn}return(0,$.Z)($n,[{key:"select",value:function(){this.$container.addClass(this.setting.c("selected"))}},{key:"deselect",value:function(){this.$container.rmClass(this.setting.c("selected"))}},{key:"detach",value:function(){this.$container.remove()}},{key:"text",value:function(){return this.$container.text()}},{key:"onChange",value:function(ar){this.setting.emit("change",this.key,ar,this.value),this.value=ar}}]),$n}(),yt=function($n){(0,et.Z)(Qn,$n);var ar=Yt(Qn);function Qn(qn,fr){var cr;return(0,j.Z)(this,Qn),(cr=ar.call(this,qn,"","","title")).$container.text(fr),cr}return(0,$.Z)(Qn)}(pt),Ut=function($n){(0,et.Z)(Qn,$n);var ar=Yt(Qn);function Qn(qn){return(0,j.Z)(this,Qn),ar.call(this,qn,"","","separator")}return(0,$.Z)(Qn)}(pt),an=function($n){(0,et.Z)(Qn,$n);var ar=Yt(Qn);function Qn(qn,fr,cr,pr,xr){var kr;(0,j.Z)(this,Qn),kr=ar.call(this,qn,fr,cr,"input");var Tr=qn.c;kr.$container.html('
    ').concat(ut()(pr),`
    + `])))))}}],[{key:"alert",value:function(Nn){var Wn=Ln(),Vn=Wn.c;Wn.setOption({title:"",content:Nn,width:Un(),footer:Fn({OK:{type:"primary",onclick:function(){Wn.hide()}}},Vn)}),Wn.show()}},{key:"confirm",value:function(Nn){return new Promise(function(Wn){var Vn=Ln(),bn=Vn.c;Vn.setOption({title:"",content:Nn,width:Un(),footer:Fn({Cancel:{type:"secondary",onclick:function(){Vn.hide(),Wn(!1)}},OK:{type:"primary",onclick:function(){Vn.hide(),Wn(!0)}}},bn)}),Vn.show()})}},{key:"prompt",value:function(){var Nn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return new Promise(function(Vn){var bn=Ln(),Yt=bn.c,bt=jn()("input"+Yt(".input"),{value:Wn});function pt(){bn.hide(),Vn(bt.value)}lt()(bt).on("keypress",function(Ut){(Ut=Ut.origEvent).key==="Enter"&&pt()}),bn.setOption({title:Nn,content:bt,width:Un(),footer:Fn({Cancel:{type:"secondary",onclick:function(){bn.hide(),Vn(null)}},OK:{type:"primary",onclick:pt}},Yt)}),bn.show();var yt=bt.value.length;bt.setSelectionRange(yt,yt),bt.focus()})}},{key:"setContainer",value:function(Nn){gn=Nn}}]),wn}(Yn),En=null,gn=null;function Ln(){return gn||(gn=jn()("div"),document.body.append(gn)),En||(En=new vn(gn,{showClose:!1})),En}function Fn(Mn,zn){var wn=gt()(Mn,function(Nn,Wn){return jn()(zn(".button")+zn("."+Nn.type),{onclick:Nn.onclick},Wn)});return jn().apply(void 0,[zn(".button-group"),{}].concat($(wn)))}function Un(){return window.innerWidth<500?window.innerWidth-32:500}(function(Mn,zn){try{Mn.exports=zn,Mn.exports.default=zn}catch{}})(b,vn)},8299:function(b,_,d){d.d(_,{q:function(){return It},Z:function(){return Wt}});var k=d(1002),j=d(5671),$=d(3144),et=d(7326),tt=d(1752),rt=d(9340),nt=d(2963),ot=d(1120),at=d(415),it=d.n(at),dt=d(3990),ut=d.n(dt),ht=d(4696),ft=d.n(ht),lt=d(3063),ct=d.n(lt),gt=d(5166),st=d.n(gt),Ct=d(6472),xt=d.n(Ct),wt=d(3023),Mt=d.n(wt),kt=d(2533),_t=d.n(kt),Tt=d(3783),At=d.n(Tt),Et=d(300),Ot=d.n(Et),Lt=d(4321),Bt=d.n(Lt),Zt=d(3085),rn=d.n(Zt),nn=d(1512),Qt=d.n(nn),Vt=d(801),fn=d.n(Vt),In=d(7756),On=d.n(In),_n=d(6768),Bn=d.n(_n),Yn=d(1116),dn=d.n(Yn),An=d(5972),mn=d.n(An),jn=d(996),kn=d.n(jn),vn=d(3367),En=d.n(vn),gn=d(1214),Ln=d.n(gn),Fn=d(7658),Un=d.n(Fn),Mn=d(6329),zn=d.n(Mn),wn=function(){function Pt(){(0,j.Z)(this,Pt),this.id=0,this.visited=[]}return(0,$.Z)(Pt,[{key:"set",value:function(hn,un){var tn=this.visited,Gt=this.id,xn={id:Gt,val:hn};return zn()(xn,un),tn.push(xn),this.id++,Gt}},{key:"get",value:function(hn){for(var un=this.visited,tn=0,Gt=un.length;tn500&&(Pt=Pt.slice(0,500)+"..."),"ƒ "+Wn()(function(hn){var un=hn.match(pt);return un?un[0]:hn}(Pt).replace("function",""))}var pt=/function(.*?)\((.*?)\)/,yt=d(6930),Ut=d.n(yt),an=d(5229),sn=d.n(an),Sn=d(3875),or=d.n(Sn),Rn=d(9433),Xn=d.n(Rn),$n=d(1443),ar=d.n($n),Qn=d(2461),qn=d.n(Qn),fr=d(5610),cr=d.n(fr),pr=d(7483),xr=d.n(pr),kr=d(6341),Tr=d.n(kr),Br=d(6954),Rr=d.n(Br);d(9585);function Ur(Pt){var hn="luna-".concat(Pt,"-");function un(tn){return qn()(Wn()(tn).split(/\s+/),function(Gt){return Tr()(Gt,hn)?Gt:Gt.replace(/[\w-]+/,function(xn){return"".concat(hn).concat(xn)})}).join(" ")}return function(tn){if(/<[^>]*>/g.test(tn))try{var Gt=xr().parse(tn);return Qr(Gt,function(xn){xn.attrs&&xn.attrs.class&&(xn.attrs.class=un(xn.attrs.class))}),xr().stringify(Gt)}catch{return un(tn)}return un(tn)}}function Qr(Pt,hn){for(var un=0,tn=Pt.length;un"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var un,tn=(0,ot.Z)(Pt);if(hn){var Gt=(0,ot.Z)(this).constructor;un=Reflect.construct(tn,arguments,Gt)}else un=tn.apply(this,arguments);return(0,nt.Z)(this,un)}}var Dt=function(Pt){(0,rt.Z)(un,Pt);var hn=mt(un);function un(tn,Gt){var xn,Gn=Gt.compName,Jn=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,er=Jn===void 0?"light":Jn;return(0,j.Z)(this,un),(xn=hn.call(this)).subComponents=[],xn.compName=Gn,xn.c=Ur(Gn),xn.options={},xn.container=tn,xn.$container=Qt()(tn),xn.$container.addClass(["luna-".concat(Gn),xn.c("platform-".concat(Zr()))]),xn.on("optionChange",function(ir,Kn,nr){var ur=xn.c;ir==="theme"&&(xn.$container.rmClass(ur("theme-".concat(nr))).addClass(ur("theme-".concat(Kn))),At()(xn.subComponents,function(rr){return rr.setOption("theme",Kn)}))}),xn.setOption("theme",er),xn}return(0,$.Z)(un,[{key:"destroy",value:function(){this.destroySubComponents();var tn=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(tn("platform-".concat(Zr()))).rmClass(tn("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(tn,Gt){var xn=this,Gn=this.options,Jn={};typeof tn=="string"?Jn[tn]=Gt:Jn=tn,At()(Jn,function(er,ir){var Kn=Gn[ir];Gn[ir]=er,xn.emit("optionChange",ir,er,Kn)})}},{key:"getOption",value:function(tn){return this.options[tn]}},{key:"addSubComponent",value:function(tn){tn.setOption("theme",this.options.theme),this.subComponents.push(tn)}},{key:"removeSubComponent",value:function(tn){$t()(this.subComponents,function(Gt){return Gt===tn})}},{key:"destroySubComponents",value:function(){At()(this.subComponents,function(tn){return tn.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(tn){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};St()(tn,Gt),zn()(this.options,tn)}},{key:"find",value:function(tn){return this.$container.find(this.c(tn))}}]),un}(ar());function Xt(Pt){var hn=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var un,tn=(0,ot.Z)(Pt);if(hn){var Gt=(0,ot.Z)(this).constructor;un=Reflect.construct(tn,arguments,Gt)}else un=tn.apply(this,arguments);return(0,nt.Z)(this,un)}}var It=function(Pt){(0,rt.Z)(un,Pt);var hn=Xt(un);function un(tn){var Gt;return(0,j.Z)(this,un),(Gt=hn.call(this,tn,{compName:"object-viewer"})).onItemClick=function(xn){var Gn=(0,et.Z)(Gt),Jn=Gn.map,er=Gn.c,ir=Qt()(xn.curTarget),Kn=ir.data("object-id"),nr=ir.find("span").eq(0);if(!ir.data("first-level")&&(Kn&&(ir.find("ul").html(Gt.objToHtml(Jn[Kn],!1)),ir.rmAttr("data-object-id")),xn.stopImmediatePropagation(),nr.hasClass(er("expanded")))){var ur=ir.find("ul").eq(0);nr.hasClass(er("collapsed"))?(nr.rmClass(er("collapsed")),ur.show()):(nr.addClass(er("collapsed")),ur.hide()),Gt.emit("change")}},Gt.bindEvent(),Gt}return(0,$.Z)(un,[{key:"set",value:function(tn){Bn()(tn)&&(tn=JSON.parse(tn)),this.data={id:sn()("json"),enumerable:{0:tn}},this.map={},Nt(this.map,this.data),this.render()}},{key:"destroy",value:function(){(0,tt.Z)((0,ot.Z)(un.prototype),"destroy",this).call(this),this.$container.off("click","li",this.onItemClick)}},{key:"objToHtml",value:function(tn,Gt){var xn=this,Gn="";return At()(["enumerable","unenumerable","symbol"],function(Jn){if(tn[Jn]){var er=_t()(tn[Jn]);Un()(er);for(var ir=0,Kn=er.length;ir3&&arguments[3]!==void 0&&arguments[3],Jn=this.c,er=(0,k.Z)(Gt);if(Gt===null)return"
  • ".concat(yr(tn),'null
  • ');if(ut()(Gt)||ft()(Gt))return"
  • ".concat(yr(tn),'').concat(Yt(Gt),"
  • ");if(Gt.type==="RegExp"&&(er="regexp"),Gt.type==="Number"&&(er="number"),Gt.type==="Number"||Gt.type==="RegExp")return"
  • ".concat(yr(tn),'').concat(Yt(Gt.value),"
  • ");if(Gt.type==="Undefined"||Gt.type==="Symbol")return"
  • ".concat(yr(tn),'').concat(ct()(Gt.type),"
  • ");if(Gt==="(...)")return"
  • ".concat(yr(tn),'').concat(Gt,"
  • ");if(st()(Gt)){var ir=Gt.id,Kn=Gt.reference,nr=function(mr){var Pn=mr.type,Hn=mr.value;if(Pn)return Pn==="Function"?bt(Hn):Pn==="Array"&&mr.unenumerable?"Array(".concat(mr.unenumerable.length,")"):mr.type}(Gt)||Mt()(er),ur=Gn?"":''),rr="
  • ").concat(ur).concat(yr(tn),'').concat(Gn?"":nr,'
      ");return Gn&&(rr+=this.objToHtml(this.map[ir])),rr+'
  • ')}function yr(mr){if(Gn||st()(Gt)&&Gt.jsonSplitArr)return"";var Pn=Jn("key");return xn==="unenumerable"||xn==="symbol"?Pn=Jn("key-lighter"):xn==="proto"&&(Pn=Jn("key-special")),'').concat(Yt(mr),": ")}return Bn()(Gt)&&Gt.length>1e4&&(Gt=On()(Gt,50,{separator:" ",ellipsis:"…"})),"
  • ".concat(yr(tn),'"').concat(Yt(Gt),'"
  • ')}},{key:"render",value:function(){var tn=this.map[this.data.id];this.$container.html(this.objToHtml(tn,!0))}},{key:"bindEvent",value:function(){this.$container.on("click","li",this.onItemClick)}}]),un}(Dt);function Nt(Pt,hn){var un=hn.id;if(un||un===0){if(hn.type&&Ut()(hn.type,"Array")&&hn.enumerable){var tn=function(er,ir,Kn){var nr=[],ur={};return At()(er.enumerable,function(rr,yr){var mr=or()(yr);Xn()(mr)?ur[yr]=rr:nr[mr]=rr}),nr.enumerable=ur,nr.type=Kn,nr.id=ir,er.unenumerable&&(nr.unenumerable=er.unenumerable),er.symbol&&(nr.symbol=er.symbol),er.proto&&(nr.proto=er.proto),nr}(hn,un,hn.type);tn.length>100&&(hn=function(er){var ir=0,Kn={};At()(kn()(er,100),function(ur){var rr={},yr=ir;rr.type="["+yr,rr.enumerable={},At()(ur,function(Pn){rr.enumerable[ir]=Pn,ir+=1});var mr=ir-1;rr.type+=(mr-yr>0?" … "+mr:"")+"]",rr.id=sn()("json"),rr.jsonSplitArr=!0,Kn[ir]=rr});var nr={};return nr.enumerable=Kn,nr.id=er.id,nr.type=er.type,er.unenumerable&&(nr.unenumerable=er.unenumerable),er.symbol&&(nr.symbol=er.symbol),er.proto&&(nr.proto=er.proto),nr}(tn))}Pt[un]=hn;var Gt=[];At()(["enumerable","unenumerable","symbol"],function(er){if(hn[er])for(var ir in hn[er])Gt.push(hn[er][ir])}),hn.proto&&Gt.push(hn.proto);for(var xn=0,Gn=Gt.length;xn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var un,tn=(0,ot.Z)(Pt);if(hn){var Gt=(0,ot.Z)(this).constructor;un=Reflect.construct(tn,arguments,Gt)}else un=tn.apply(this,arguments);return(0,nt.Z)(this,un)}}b=d.hmd(b);var Wt=function(Pt){(0,rt.Z)(un,Pt);var hn=Rt(un);function un(tn){var Gt,xn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,j.Z)(this,un),(Gt=hn.call(this,tn,{compName:"object-viewer"})).onItemClick=function(Gn){var Jn=(0,et.Z)(Gt),er=Jn.map,ir=Jn.c,Kn=Qt()(Gn.curTarget),nr=Kn.data("object-id"),ur=Kn.find("span").eq(0);if(!Kn.data("first-level")&&(nr&&(Kn.find("ul").html(Gt.objToHtml(er[nr],!1)),Kn.rmAttr("data-object-id")),Gn.stopImmediatePropagation(),ur.hasClass(ir("expanded")))){var rr=Kn.find("ul").eq(0);ur.hasClass(ir("collapsed"))?(ur.rmClass(ir("collapsed")),rr.show()):(ur.addClass(ir("collapsed")),rr.hide()),Gt.emit("change")}},Gt.initOptions(xn,{unenumerable:!1,accessGetter:!1}),Gt.bindEvent(),Gt}return(0,$.Z)(un,[{key:"set",value:function(tn){this.data=[tn],this.visitor=new wn,this.map={},this.render()}},{key:"destroy",value:function(){(0,tt.Z)((0,ot.Z)(un.prototype),"destroy",this).call(this),this.$container.off("click","li",this.onItemClick)}},{key:"objToHtml",value:function(tn,Gt){var xn=this,Gn=this.visitor,Jn=tn,er=!1,ir=Gn.get(tn);ir&&ir.self&&(Jn=ir.self);var Kn="",nr=["enumerable"],ur=_t()(tn),rr=[],yr=[],mr=[],Pn={};if(this.options.unenumerable&&!Gt&&(nr.push("unenumerable"),nr.push("symbol"),rr=fn()(dn()(tn,{prototype:!1,unenumerable:!0}),ur),yr=mn()(dn()(tn,{prototype:!1,symbol:!0}),function(dr){return(0,k.Z)(dr)==="symbol"})),xt()(tn)&&tn.length>100){nr.unshift("virtual"),er=!0;var Hn=0,hr={};At()(kn()(tn,100),function(dr){var Ar=Object.create(null),Mr=Hn,jr="["+Mr;At()(dr,function(pn){Ar[Hn]=pn,hr[Hn]=!0,Hn++});var Ir=Hn-1;Pn[jr+=(Ir-Mr>0?" … "+Ir:"")+"]"]=Ar}),mr=_t()(Pn),ur=mn()(ur,function(dr){return!hr[dr]})}At()(nr,function(dr){var Ar=[];Ar=dr==="symbol"?yr:dr==="unenumerable"?rr:dr==="virtual"?mr:ur,er||Un()(Ar);for(var Mr=0,jr=Ar.length;Mr4&&arguments[4]!==void 0&&arguments[4],er=this.visitor,ir=this.c,Kn=(0,k.Z)(xn),nr=rn()(xn,!1);if(Gn==="virtual"&&(nr=tn),xn===null)return"
  • ".concat(hr(tn),'null
  • ');if(ut()(xn)||ft()(xn))return"
  • ".concat(hr(tn),'').concat(Yt(xn),"
  • ");if(nr==="RegExp"&&(Kn="regexp"),nr==="Number"&&(Kn="number"),nr==="Undefined"||nr==="Symbol")return"
  • ".concat(hr(tn),'').concat(ct()(nr),"
  • ");if(xn==="(...)")return"
  • ".concat(hr(tn),'').concat(xn,"
  • ");if(st()(xn)){var ur,rr=er.get(xn);if(rr)ur=rr.id;else{var yr={};Gn==="proto"&&(yr.self=Gt),ur=er.set(xn,yr),this.map[ur]=xn}var mr="Object";mr=Kn==="regexp"?'').concat(Yt(xn)):Yt(function(lr,sr){if(sr)return sr==="Function"?bt(Ot()(lr)):sr==="Array"?"Array(".concat(lr.length,")"):sr}(xn,nr)||Mt()(Kn));var Pn=Jn?"":''),Hn="
  • ").concat(Pn).concat(hr(tn),'').concat(Jn?"":mr,'
      ");return Jn&&(Hn+=this.objToHtml(xn)),Hn+'
  • ')}function hr(lr){if(Jn||st()(xn)&&Gn==="virtual")return"";var sr=ir("key");return Gn==="unenumerable"||Gn==="symbol"?sr=ir("key-lighter"):Gn==="proto"&&(sr=ir("key-special")),'').concat(Yt(lr),": ")}return Bn()(xn)&&xn.length>1e4&&(xn=On()(xn,50,{separator:" ",ellipsis:"…"})),"
  • ".concat(hr(tn),'"').concat(Yt(xn),'"
  • ')}},{key:"render",value:function(){this.$container.html(this.objToHtml(this.data,!0))}},{key:"bindEvent",value:function(){this.$container.on("click","li",this.onItemClick)}}]),un}(Dt);Wt.Static=It,function(Pt,hn){try{Pt.exports=hn,Pt.exports.default=hn}catch{}}(b,Wt)},8692:function(b,_,d){d.d(_,{Z:function(){return bt}});var k=d(7326),j=d(5671),$=d(3144),et=d(9340),tt=d(2963),rt=d(1120),nt=d(1512),ot=d.n(nt),at=d(8613),it=d.n(at),dt=d(8901),ut=d.n(dt),ht=d(5229),ft=d.n(ht),lt=d(5166),ct=d.n(lt),gt=d(4193),st=d.n(gt),Ct=d(2461),xt=d.n(Ct),wt=d(3875),Mt=d.n(wt),kt=d(3367),_t=d.n(kt),Tt=d(4777),At=d.n(Tt),Et=d(9702),Ot=d.n(Et),Lt=d(1754),Bt=d.n(Lt),Zt=d(6768),rn=d.n(Zt),nn=d(4331),Qt=d.n(nn),Vt=d(6341),fn=d.n(Vt),In=d(3063),On=d.n(In),_n=d(6156),Bn=d.n(_n),Yn=d(3783),dn=d.n(Yn),An=d(1443),mn=d.n(An),jn=d(5610),kn=d.n(jn),vn=d(7483),En=d.n(vn),gn=(d(3990),d(6954)),Ln=d.n(gn);d(9585);function Fn($n){var ar="luna-".concat($n,"-");function Qn(qn){return xt()(Qt()(qn).split(/\s+/),function(fr){return fn()(fr,ar)?fr:fr.replace(/[\w-]+/,function(cr){return"".concat(ar).concat(cr)})}).join(" ")}return function(qn){if(/<[^>]*>/g.test(qn))try{var fr=En().parse(qn);return Un(fr,function(cr){cr.attrs&&cr.attrs.class&&(cr.attrs.class=Qn(cr.attrs.class))}),En().stringify(fr)}catch{return Qn(qn)}return Qn(qn)}}function Un($n,ar){for(var Qn=0,qn=$n.length;Qn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Qn,qn=(0,rt.Z)($n);if(ar){var fr=(0,rt.Z)(this).constructor;Qn=Reflect.construct(qn,arguments,fr)}else Qn=qn.apply(this,arguments);return(0,tt.Z)(this,Qn)}}var bn=function($n){(0,et.Z)(Qn,$n);var ar=Vn(Qn);function Qn(qn,fr){var cr,pr=fr.compName,xr=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,kr=xr===void 0?"light":xr;return(0,j.Z)(this,Qn),(cr=ar.call(this)).subComponents=[],cr.compName=pr,cr.c=Fn(pr),cr.options={},cr.container=qn,cr.$container=ot()(qn),cr.$container.addClass(["luna-".concat(pr),cr.c("platform-".concat(Mn()))]),cr.on("optionChange",function(Tr,Br,Rr){var Ur=cr.c;Tr==="theme"&&(cr.$container.rmClass(Ur("theme-".concat(Rr))).addClass(Ur("theme-".concat(Br))),dn()(cr.subComponents,function(Qr){return Qr.setOption("theme",Br)}))}),cr.setOption("theme",kr),cr}return(0,$.Z)(Qn,[{key:"destroy",value:function(){this.destroySubComponents();var qn=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(qn("platform-".concat(Mn()))).rmClass(qn("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(qn,fr){var cr=this,pr=this.options,xr={};typeof qn=="string"?xr[qn]=fr:xr=qn,dn()(xr,function(kr,Tr){var Br=pr[Tr];pr[Tr]=kr,cr.emit("optionChange",Tr,kr,Br)})}},{key:"getOption",value:function(qn){return this.options[qn]}},{key:"addSubComponent",value:function(qn){qn.setOption("theme",this.options.theme),this.subComponents.push(qn)}},{key:"removeSubComponent",value:function(qn){Wn()(this.subComponents,function(fr){return fr===qn})}},{key:"destroySubComponents",value:function(){dn()(this.subComponents,function(qn){return qn.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(qn){var fr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};st()(qn,fr),wn()(this.options,qn)}},{key:"find",value:function(qn){return this.$container.find(this.c(qn))}}]),Qn}(mn());function Yt($n){var ar=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Qn,qn=(0,rt.Z)($n);if(ar){var fr=(0,rt.Z)(this).constructor;Qn=Reflect.construct(qn,arguments,fr)}else Qn=qn.apply(this,arguments);return(0,tt.Z)(this,Qn)}}b=d.hmd(b);var bt=function($n){(0,et.Z)(Qn,$n);var ar=Yt(Qn);function Qn(qn){var fr,cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,j.Z)(this,Qn),(fr=ar.call(this,qn,{compName:"setting"},cr)).items=[],fr.selectedItem=null,fr.initOptions(cr,{separatorCollapse:!0,filter:""}),fr.bindEvent(),fr}return(0,$.Z)(Qn,[{key:"appendTitle",value:function(qn){var fr=new yt(this,qn);return this.append(fr),fr}},{key:"appendSeparator",value:function(){var qn=this.items,fr=this.options.separatorCollapse,cr=Ot()(qn);if(fr&&cr instanceof Ut)return cr;var pr=new Ut(this);return this.append(pr),pr}},{key:"appendNumber",value:function(qn,fr,cr,pr,xr){ct()(pr)&&(xr=pr,pr="");var kr=new sn(this,qn,fr,cr,pr,xr);return this.append(kr),kr}},{key:"appendButton",value:function(qn,fr,cr){At()(fr)&&(cr=fr,fr="");var pr=new Xn(this,qn,fr,cr);return this.append(pr),pr}},{key:"appendInput",value:function(qn,fr,cr){var pr=new an(this,qn,fr,cr,arguments.length>3&&arguments[3]!==void 0?arguments[3]:"");return this.append(pr),pr}},{key:"appendCheckbox",value:function(qn,fr,cr,pr){pr||(pr=cr,cr="");var xr=new or(this,qn,fr,cr,pr);return this.append(xr),xr}},{key:"appendSelect",value:function(qn,fr,cr,pr,xr){ct()(pr)&&(xr=pr,pr="");var kr=new Rn(this,qn,fr,cr,pr,xr);return this.append(kr),kr}},{key:"remove",value:function(qn){var fr=this.items,cr=fr.indexOf(qn);cr>-1&&(qn.detach(),fr.splice(cr,1),qn===this.selectedItem&&this.selectItem(null))}},{key:"clear",value:function(){dn()(this.items,function(qn){return qn.detach()}),this.items=[],this.selectItem(null)}},{key:"selectItem",value:function(qn){var fr;this.selectedItem&&(this.selectedItem.deselect(),this.selectedItem=null),Bn()(qn)||(this.selectedItem=qn,(fr=this.selectedItem)===null||fr===void 0||fr.select())}},{key:"renderSettings",value:function(){var qn=this,fr=this.items;dn()(fr,function(cr){return cr.detach()}),dn()(fr,function(cr){qn.filterItem(cr)&&qn.$container.append(cr.container)})}},{key:"bindEvent",value:function(){var qn=this,fr=this.c;this.on("optionChange",function(pr){pr==="filter"&&qn.renderSettings()});var cr=this;this.$container.on("click",fr(".item"),function(){cr.selectItem(this.settingItem)})}},{key:"filterItem",value:function(qn){var fr=this.options.filter;if(fr){if(At()(fr))return fr(qn);if(Bt()(fr))return fr.test(qn.text());if(rn()(fr)&&(fr=Qt()(fr)))return fn()(On()(qn.text()),On()(fr))}return!0}},{key:"append",value:function(qn){this.items.push(qn),this.filterItem(qn)&&this.$container.append(qn.container)}}]),Qn}(bn),pt=function(){function $n(ar,Qn,qn,fr){(0,j.Z)(this,$n),this.container=it()("div",{tabindex:"0"}),this.setting=ar,this.container.settingItem=this,this.$container=ot()(this.container),this.$container.addClass(ar.c("item")).addClass(ar.c("item-".concat(fr))),this.key=Qn,this.value=qn}return(0,$.Z)($n,[{key:"select",value:function(){this.$container.addClass(this.setting.c("selected"))}},{key:"deselect",value:function(){this.$container.rmClass(this.setting.c("selected"))}},{key:"detach",value:function(){this.$container.remove()}},{key:"text",value:function(){return this.$container.text()}},{key:"onChange",value:function(ar){this.setting.emit("change",this.key,ar,this.value),this.value=ar}}]),$n}(),yt=function($n){(0,et.Z)(Qn,$n);var ar=Yt(Qn);function Qn(qn,fr){var cr;return(0,j.Z)(this,Qn),(cr=ar.call(this,qn,"","","title")).$container.text(fr),cr}return(0,$.Z)(Qn)}(pt),Ut=function($n){(0,et.Z)(Qn,$n);var ar=Yt(Qn);function Qn(qn){return(0,j.Z)(this,Qn),ar.call(this,qn,"","","separator")}return(0,$.Z)(Qn)}(pt),an=function($n){(0,et.Z)(Qn,$n);var ar=Yt(Qn);function Qn(qn,fr,cr,pr,xr){var kr;(0,j.Z)(this,Qn),kr=ar.call(this,qn,fr,cr,"input");var Tr=qn.c;kr.$container.html('
    ').concat(ut()(pr),`
    ').concat(xr,`
    -
    `));var Pr=kr.$container.find("input");return Pr.val(cr),Pr.on("change",function(){return kr.onChange(Pr.val())}),kr}return(0,$.Z)(Qn)}(pt),sn=function($n){(0,et.Z)(Qn,$n);var ar=Yt(Qn);function Qn(qn,fr,cr,pr,xr){var kr,Tr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};(0,j.Z)(this,Qn),kr=ar.call(this,qn,fr,cr,"number"),st()(Tr,{min:0,max:10,step:1});var Pr=(0,k.Z)(kr).$container,Rr=qn.c,Ur=!!Tr.range;delete Tr.range;var Qr=Tr.min,Zr=Tr.max,mo='");Ur&&(mo="".concat(Qr,'
    +
    `));var Br=kr.$container.find("input");return Br.val(cr),Br.on("change",function(){return kr.onChange(Br.val())}),kr}return(0,$.Z)(Qn)}(pt),sn=function($n){(0,et.Z)(Qn,$n);var ar=Yt(Qn);function Qn(qn,fr,cr,pr,xr){var kr,Tr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};(0,j.Z)(this,Qn),kr=ar.call(this,qn,fr,cr,"number"),st()(Tr,{min:0,max:10,step:1});var Br=(0,k.Z)(kr).$container,Rr=qn.c,Ur=!!Tr.range;delete Tr.range;var Qr=Tr.min,Zr=Tr.max,mo='");Ur&&(mo="".concat(Qr,'
    `).concat(mo,` -
    ').concat(cr,"/").concat(Zr)),Pr.html('
    ').concat(ut()(pr),`
    + ').concat(cr,"/").concat(Zr)),Br.html('
    ').concat(ut()(pr),`
    ').concat(xr,`
    -
    ').concat(mo,"
    "));var St=Pr.find(Rr(".value")),Ft=Pr.find("input"),$t=Pr.find(Rr(".range-track-progress"));return Ft.val(_t()(cr)),Ft.on("change",function(){var mt=Mt()(Ft.val());kr.onChange(mt)}),Ft.on("input",function(){var mt=Mt()(Ft.val());$t.css("width",Sn(mt,Qr,Zr)+"%"),St.text(_t()(mt))}),kr}return(0,$.Z)(Qn)}(pt),Sn=function($n,ar,Qn){return(($n-ar)/(Qn-ar)*100).toFixed(2)},or=function($n){(0,et.Z)(Qn,$n);var ar=Yt(Qn);function Qn(qn,fr,cr,pr,xr){var kr;(0,j.Z)(this,Qn),kr=ar.call(this,qn,fr,cr,"checkbox");var Tr=qn.c,Pr=ft()(qn.c("checkbox-"));kr.$container.html('
    ').concat(ut()(pr),`
    +
    ').concat(mo,"
    "));var St=Br.find(Rr(".value")),Ft=Br.find("input"),$t=Br.find(Rr(".range-track-progress"));return Ft.val(_t()(cr)),Ft.on("change",function(){var mt=Mt()(Ft.val());kr.onChange(mt)}),Ft.on("input",function(){var mt=Mt()(Ft.val());$t.css("width",Sn(mt,Qr,Zr)+"%"),St.text(_t()(mt))}),kr}return(0,$.Z)(Qn)}(pt),Sn=function($n,ar,Qn){return(($n-ar)/(Qn-ar)*100).toFixed(2)},or=function($n){(0,et.Z)(Qn,$n);var ar=Yt(Qn);function Qn(qn,fr,cr,pr,xr){var kr;(0,j.Z)(this,Qn),kr=ar.call(this,qn,fr,cr,"checkbox");var Tr=qn.c,Br=ft()(qn.c("checkbox-"));kr.$container.html('
    ').concat(ut()(pr),`
    - - -
    `));var Rr=kr.$container.find("input"),Ur=Rr.get(0);return Ur.checked=cr,Rr.on("change",function(){return kr.onChange(Ur.checked)}),kr}return(0,$.Z)(Qn)}(pt),Rn=function($n){(0,et.Z)(Qn,$n);var ar=Yt(Qn);function Qn(qn,fr,cr,pr,xr,kr){var Tr;(0,j.Z)(this,Qn),Tr=ar.call(this,qn,fr,cr,"select");var Pr=qn.c;Tr.$container.html('
    ').concat(ut()(pr),`
    -
    ').concat(xr,`
    -
    -
    + + +
    `));var Rr=kr.$container.find("input"),Ur=Rr.get(0);return Ur.checked=cr,Rr.on("change",function(){return kr.onChange(Ur.checked)}),kr}return(0,$.Z)(Qn)}(pt),Rn=function($n){(0,et.Z)(Qn,$n);var ar=Yt(Qn);function Qn(qn,fr,cr,pr,xr,kr){var Tr;(0,j.Z)(this,Qn),Tr=ar.call(this,qn,fr,cr,"select");var Br=qn.c;Tr.$container.html('
    ').concat(ut()(pr),`
    +
    ').concat(xr,`
    +
    +
    @@ -102,12 +102,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
    `));var Rr=Tr.$container.find("select");return Rr.on("change",function(){return Tr.onChange(Rr.val())}),Tr}return(0,$.Z)(Qn)}(pt),Xn=function($n){(0,et.Z)(Qn,$n);var ar=Yt(Qn);function Qn(qn,fr,cr,pr){var xr;return(0,j.Z)(this,Qn),cr||(cr=fr,fr=""),(xr=ar.call(this,qn,"","","button")).$container.html(qn.c('
    '.concat(ut()(fr),`
    -
    `))),xr.$container.find("button").on("click",pr),xr}return(0,$.Z)(Qn)}(pt);(function($n,ar){try{$n.exports=ar,$n.exports.default=ar}catch{}})(b,bt)},7638:function(b,_,d){d.d(_,{Z:function(){return jn}});var k=d(168),j=d(5671),$=d(3144),et=d(9340),tt=d(2963),rt=d(1120),nt=d(1443),ot=d.n(nt),at=d(1512),it=d.n(at),dt=d(2461),ut=d.n(dt),ht=d(4331),ft=d.n(ht),lt=d(5610),ct=d.n(lt),gt=d(7483),st=d.n(gt),Ct=d(3990),xt=d.n(Ct),wt=d(6341),Mt=d.n(wt),kt=(d(3875),d(6954)),_t=d.n(kt);d(9585);function Tt(kn){var vn="luna-".concat(kn,"-");function En(gn){return ut()(ft()(gn).split(/\s+/),function(Ln){return Mt()(Ln,vn)?Ln:Ln.replace(/[\w-]+/,function(Fn){return"".concat(vn).concat(Fn)})}).join(" ")}return function(gn){if(/<[^>]*>/g.test(gn))try{var Ln=st().parse(gn);return At(Ln,function(Fn){Fn.attrs&&Fn.attrs.class&&(Fn.attrs.class=En(Fn.attrs.class))}),st().stringify(Ln)}catch{return En(gn)}return En(gn)}}function At(kn,vn){for(var En=0,gn=kn.length;En"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var En,gn=(0,rt.Z)(kn);if(vn){var Ln=(0,rt.Z)(this).constructor;En=Reflect.construct(gn,arguments,Ln)}else En=gn.apply(this,arguments);return(0,tt.Z)(this,En)}}var On,_n=function(kn){(0,et.Z)(En,kn);var vn=In(En);function En(gn,Ln){var Fn,Un=Ln.compName,Mn=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Wn=Mn===void 0?"light":Mn;return(0,j.Z)(this,En),(Fn=vn.call(this)).subComponents=[],Fn.compName=Un,Fn.c=Tt(Un),Fn.options={},Fn.container=gn,Fn.$container=it()(gn),Fn.$container.addClass(["luna-".concat(Un),Fn.c("platform-".concat(Ot()))]),Fn.on("optionChange",function(wn,Nn,zn){var Vn=Fn.c;wn==="theme"&&(Fn.$container.rmClass(Vn("theme-".concat(zn))).addClass(Vn("theme-".concat(Nn))),Pt()(Fn.subComponents,function(bn){return bn.setOption("theme",Nn)}))}),Fn.setOption("theme",Wn),Fn}return(0,$.Z)(En,[{key:"destroy",value:function(){this.destroySubComponents();var gn=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(gn("platform-".concat(Ot()))).rmClass(gn("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(gn,Ln){var Fn=this,Un=this.options,Mn={};typeof gn=="string"?Mn[gn]=Ln:Mn=gn,Pt()(Mn,function(Wn,wn){var Nn=Un[wn];Un[wn]=Wn,Fn.emit("optionChange",wn,Wn,Nn)})}},{key:"getOption",value:function(gn){return this.options[gn]}},{key:"addSubComponent",value:function(gn){gn.setOption("theme",this.options.theme),this.subComponents.push(gn)}},{key:"removeSubComponent",value:function(gn){fn()(this.subComponents,function(Ln){return Ln===gn})}},{key:"destroySubComponents",value:function(){Pt()(this.subComponents,function(gn){return gn.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(gn){var Ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Qt()(gn,Ln),rn()(this.options,gn)}},{key:"find",value:function(gn){return this.$container.find(this.c(gn))}}]),En}(ot()),Pn=d(1907),Yn=d.n(Pn),dn=d(8901),An=d.n(dn);function mn(kn){var vn=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var En,gn=(0,rt.Z)(kn);if(vn){var Ln=(0,rt.Z)(this).constructor;En=Reflect.construct(gn,arguments,Ln)}else En=gn.apply(this,arguments);return(0,tt.Z)(this,En)}}b=d.hmd(b);var jn=function(kn){(0,et.Z)(En,kn);var vn=mn(En);function En(gn){var Ln,Fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,j.Z)(this,En),(Ln=vn.call(this,gn,{compName:"tab"},Fn)).initOptions(Fn,{height:30}),Ln.initTpl(),Ln.$tabs=Ln.find(".tabs"),Ln.tabs=Ln.$tabs.get(0),Ln.$slider=Ln.find(".slider"),Ln.bindEvent(),Ln.updateHeight(),Ln}return(0,$.Z)(En,[{key:"length",get:function(){return this.$tabs.find(this.c(".item")).length}},{key:"insert",value:function(gn,Ln){var Fn=this.c,Un=this.$tabs,Mn=this.options.height-1,Wn=Un.find(Fn(".item")),wn=Wn.length,Nn='
    ').concat(An()(Ln.title),"
    ");gn>wn-1?Un.append(Nn):Wn.eq(gn).before(Nn),this.updateSlider()}},{key:"append",value:function(gn){this.insert(this.length,gn)}},{key:"remove",value:function(gn){var Ln=this.c,Fn=this;this.$tabs.find(Ln(".item")).each(function(){var Un=it()(this);if(Un.data("id")===gn){if(Un.hasClass(Ln("selected")))if(Fn.length>0){var Mn=Fn.$tabs.find(Ln(".item")).eq(0).data("id");Fn.select(Mn)}else Fn.emit("deselect");Un.remove()}}),this.updateSlider()}},{key:"select",value:function(gn){var Ln=this.c,Fn=this;this.$tabs.find(Ln(".item")).each(function(){var Un=it()(this);Un.data("id")===gn?(Un.addClass(Ln("selected")),Fn.updateSlider(),Fn.scrollToSelected(),Fn.emit("select",gn)):Un.rmClass(Ln("selected"))})}},{key:"scrollToSelected",value:function(){var gn,Ln=this.$tabs,Fn=this.tabs,Un=this.c,Mn=Ln.find(Un(".selected")).get(0),Wn=Mn.offsetLeft,wn=Mn.offsetWidth,Nn=Fn.offsetWidth,zn=Fn.scrollLeft;WnNn+zn&&(gn=Wn+wn-Nn),xt()(gn)&&(Fn.scrollLeft=gn)}},{key:"hideScrollbar",value:function(){var gn=this.$tabs;if(getComputedStyle(this.tabs,"::-webkit-scrollbar").display!=="none"){var Ln=function(){if(xt()(Et))return Et;if(!document)return 16;var Fn=document.createElement("div"),Un=document.createElement("div");Fn.setAttribute("style","display: block; width: 100px; height: 100px; overflow: scroll;"),Un.setAttribute("style","height: 200px"),Fn.appendChild(Un);var Mn=document.body||document.documentElement;return Mn.appendChild(Fn),Et=Fn.offsetWidth-Fn.clientWidth,Mn.removeChild(Fn),Et}();gn.css("height",this.options.height-1+Ln+"px")}}},{key:"updateSlider",value:function(){var gn=this.$slider,Ln=this.$tabs,Fn=this.c,Un=Ln.find(Fn(".selected")).get(0);Un?gn.css({width:Un.offsetWidth,left:Un.offsetLeft-Ln.get(0).scrollLeft}):gn.css({width:0})}},{key:"updateHeight",value:function(){var gn=this.options.height,Ln=gn-1;this.find(".tabs-container").css("height",gn+"px"),this.find(".item").css({height:Ln,lineHeight:Ln}),this.hideScrollbar()}},{key:"bindEvent",value:function(){var gn=this,Ln=this.tabs,Fn=this.c;this.on("optionChange",function(Mn){Mn==="height"&&gn.updateHeight()});var Un=this;this.$tabs.on("wheel",function(Mn){Mn.preventDefault(),Ln.scrollLeft+=Mn.origEvent.deltaY}).on("click",Fn(".item"),function(){var Mn=it()(this);Un.select(Mn.data("id"))}).on("scroll",function(){gn.updateSlider()})}},{key:"initTpl",value:function(){this.$container.html(this.c(Yn()(On||(On=(0,k.Z)([` +
    `))),xr.$container.find("button").on("click",pr),xr}return(0,$.Z)(Qn)}(pt);(function($n,ar){try{$n.exports=ar,$n.exports.default=ar}catch{}})(b,bt)},7638:function(b,_,d){d.d(_,{Z:function(){return jn}});var k=d(168),j=d(5671),$=d(3144),et=d(9340),tt=d(2963),rt=d(1120),nt=d(1443),ot=d.n(nt),at=d(1512),it=d.n(at),dt=d(2461),ut=d.n(dt),ht=d(4331),ft=d.n(ht),lt=d(5610),ct=d.n(lt),gt=d(7483),st=d.n(gt),Ct=d(3990),xt=d.n(Ct),wt=d(6341),Mt=d.n(wt),kt=(d(3875),d(6954)),_t=d.n(kt);d(9585);function Tt(kn){var vn="luna-".concat(kn,"-");function En(gn){return ut()(ft()(gn).split(/\s+/),function(Ln){return Mt()(Ln,vn)?Ln:Ln.replace(/[\w-]+/,function(Fn){return"".concat(vn).concat(Fn)})}).join(" ")}return function(gn){if(/<[^>]*>/g.test(gn))try{var Ln=st().parse(gn);return At(Ln,function(Fn){Fn.attrs&&Fn.attrs.class&&(Fn.attrs.class=En(Fn.attrs.class))}),st().stringify(Ln)}catch{return En(gn)}return En(gn)}}function At(kn,vn){for(var En=0,gn=kn.length;En"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var En,gn=(0,rt.Z)(kn);if(vn){var Ln=(0,rt.Z)(this).constructor;En=Reflect.construct(gn,arguments,Ln)}else En=gn.apply(this,arguments);return(0,tt.Z)(this,En)}}var On,_n=function(kn){(0,et.Z)(En,kn);var vn=In(En);function En(gn,Ln){var Fn,Un=Ln.compName,Mn=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,zn=Mn===void 0?"light":Mn;return(0,j.Z)(this,En),(Fn=vn.call(this)).subComponents=[],Fn.compName=Un,Fn.c=Tt(Un),Fn.options={},Fn.container=gn,Fn.$container=it()(gn),Fn.$container.addClass(["luna-".concat(Un),Fn.c("platform-".concat(Ot()))]),Fn.on("optionChange",function(wn,Nn,Wn){var Vn=Fn.c;wn==="theme"&&(Fn.$container.rmClass(Vn("theme-".concat(Wn))).addClass(Vn("theme-".concat(Nn))),Bt()(Fn.subComponents,function(bn){return bn.setOption("theme",Nn)}))}),Fn.setOption("theme",zn),Fn}return(0,$.Z)(En,[{key:"destroy",value:function(){this.destroySubComponents();var gn=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(gn("platform-".concat(Ot()))).rmClass(gn("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(gn,Ln){var Fn=this,Un=this.options,Mn={};typeof gn=="string"?Mn[gn]=Ln:Mn=gn,Bt()(Mn,function(zn,wn){var Nn=Un[wn];Un[wn]=zn,Fn.emit("optionChange",wn,zn,Nn)})}},{key:"getOption",value:function(gn){return this.options[gn]}},{key:"addSubComponent",value:function(gn){gn.setOption("theme",this.options.theme),this.subComponents.push(gn)}},{key:"removeSubComponent",value:function(gn){fn()(this.subComponents,function(Ln){return Ln===gn})}},{key:"destroySubComponents",value:function(){Bt()(this.subComponents,function(gn){return gn.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(gn){var Ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Qt()(gn,Ln),rn()(this.options,gn)}},{key:"find",value:function(gn){return this.$container.find(this.c(gn))}}]),En}(ot()),Bn=d(1907),Yn=d.n(Bn),dn=d(8901),An=d.n(dn);function mn(kn){var vn=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var En,gn=(0,rt.Z)(kn);if(vn){var Ln=(0,rt.Z)(this).constructor;En=Reflect.construct(gn,arguments,Ln)}else En=gn.apply(this,arguments);return(0,tt.Z)(this,En)}}b=d.hmd(b);var jn=function(kn){(0,et.Z)(En,kn);var vn=mn(En);function En(gn){var Ln,Fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,j.Z)(this,En),(Ln=vn.call(this,gn,{compName:"tab"},Fn)).initOptions(Fn,{height:30}),Ln.initTpl(),Ln.$tabs=Ln.find(".tabs"),Ln.tabs=Ln.$tabs.get(0),Ln.$slider=Ln.find(".slider"),Ln.bindEvent(),Ln.updateHeight(),Ln}return(0,$.Z)(En,[{key:"length",get:function(){return this.$tabs.find(this.c(".item")).length}},{key:"insert",value:function(gn,Ln){var Fn=this.c,Un=this.$tabs,Mn=this.options.height-1,zn=Un.find(Fn(".item")),wn=zn.length,Nn='
    ').concat(An()(Ln.title),"
    ");gn>wn-1?Un.append(Nn):zn.eq(gn).before(Nn),this.updateSlider()}},{key:"append",value:function(gn){this.insert(this.length,gn)}},{key:"remove",value:function(gn){var Ln=this.c,Fn=this;this.$tabs.find(Ln(".item")).each(function(){var Un=it()(this);if(Un.data("id")===gn){if(Un.hasClass(Ln("selected")))if(Fn.length>0){var Mn=Fn.$tabs.find(Ln(".item")).eq(0).data("id");Fn.select(Mn)}else Fn.emit("deselect");Un.remove()}}),this.updateSlider()}},{key:"select",value:function(gn){var Ln=this.c,Fn=this;this.$tabs.find(Ln(".item")).each(function(){var Un=it()(this);Un.data("id")===gn?(Un.addClass(Ln("selected")),Fn.updateSlider(),Fn.scrollToSelected(),Fn.emit("select",gn)):Un.rmClass(Ln("selected"))})}},{key:"scrollToSelected",value:function(){var gn,Ln=this.$tabs,Fn=this.tabs,Un=this.c,Mn=Ln.find(Un(".selected")).get(0),zn=Mn.offsetLeft,wn=Mn.offsetWidth,Nn=Fn.offsetWidth,Wn=Fn.scrollLeft;znNn+Wn&&(gn=zn+wn-Nn),xt()(gn)&&(Fn.scrollLeft=gn)}},{key:"hideScrollbar",value:function(){var gn=this.$tabs;if(getComputedStyle(this.tabs,"::-webkit-scrollbar").display!=="none"){var Ln=function(){if(xt()(Et))return Et;if(!document)return 16;var Fn=document.createElement("div"),Un=document.createElement("div");Fn.setAttribute("style","display: block; width: 100px; height: 100px; overflow: scroll;"),Un.setAttribute("style","height: 200px"),Fn.appendChild(Un);var Mn=document.body||document.documentElement;return Mn.appendChild(Fn),Et=Fn.offsetWidth-Fn.clientWidth,Mn.removeChild(Fn),Et}();gn.css("height",this.options.height-1+Ln+"px")}}},{key:"updateSlider",value:function(){var gn=this.$slider,Ln=this.$tabs,Fn=this.c,Un=Ln.find(Fn(".selected")).get(0);Un?gn.css({width:Un.offsetWidth,left:Un.offsetLeft-Ln.get(0).scrollLeft}):gn.css({width:0})}},{key:"updateHeight",value:function(){var gn=this.options.height,Ln=gn-1;this.find(".tabs-container").css("height",gn+"px"),this.find(".item").css({height:Ln,lineHeight:Ln}),this.hideScrollbar()}},{key:"bindEvent",value:function(){var gn=this,Ln=this.tabs,Fn=this.c;this.on("optionChange",function(Mn){Mn==="height"&&gn.updateHeight()});var Un=this;this.$tabs.on("wheel",function(Mn){Mn.preventDefault(),Ln.scrollLeft+=Mn.origEvent.deltaY}).on("click",Fn(".item"),function(){var Mn=it()(this);Un.select(Mn.data("id"))}).on("scroll",function(){gn.updateSlider()})}},{key:"initTpl",value:function(){this.$container.html(this.c(Yn()(On||(On=(0,k.Z)([`
    - `])))))}}]),En}(_n);(function(kn,vn){try{kn.exports=vn,kn.exports.default=vn}catch{}})(b,jn)},7049:function(b,_,d){d.d(_,{Z:function(){return wn}});var k=d(5671),j=d(3144),$=d(7326),et=d(1752),tt=d(9340),rt=d(2963),nt=d(1120),ot=d(1443),at=d.n(ot),it=d(1512),dt=d.n(it),ut=d(2461),ht=d.n(ut),ft=d(4331),lt=d.n(ft),ct=d(5610),gt=d.n(ct),st=d(7483),Ct=d.n(st),xt=(d(3990),d(6341)),wt=d.n(xt),Mt=(d(3875),d(6954)),kt=d.n(Mt);d(9585);function _t(zn){var Vn="luna-".concat(zn,"-");function bn(Yt){return ht()(lt()(Yt).split(/\s+/),function(bt){return wt()(bt,Vn)?bt:bt.replace(/[\w-]+/,function(pt){return"".concat(Vn).concat(pt)})}).join(" ")}return function(Yt){if(/<[^>]*>/g.test(Yt))try{var bt=Ct().parse(Yt);return Tt(bt,function(pt){pt.attrs&&pt.attrs.class&&(pt.attrs.class=bn(pt.attrs.class))}),Ct().stringify(bt)}catch{return bn(Yt)}return bn(Yt)}}function Tt(zn,Vn){for(var bn=0,Yt=zn.length;bn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var bn,Yt=(0,nt.Z)(zn);if(Vn){var bt=(0,nt.Z)(this).constructor;bn=Reflect.construct(Yt,arguments,bt)}else bn=Yt.apply(this,arguments);return(0,rt.Z)(this,bn)}}var In=function(zn){(0,tt.Z)(bn,zn);var Vn=fn(bn);function bn(Yt,bt){var pt,yt=bt.compName,Ut=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,an=Ut===void 0?"light":Ut;return(0,k.Z)(this,bn),(pt=Vn.call(this)).subComponents=[],pt.compName=yt,pt.c=_t(yt),pt.options={},pt.container=Yt,pt.$container=dt()(Yt),pt.$container.addClass(["luna-".concat(yt),pt.c("platform-".concat(Et()))]),pt.on("optionChange",function(sn,Sn,or){var Rn=pt.c;sn==="theme"&&(pt.$container.rmClass(Rn("theme-".concat(or))).addClass(Rn("theme-".concat(Sn))),Lt()(pt.subComponents,function(Xn){return Xn.setOption("theme",Sn)}))}),pt.setOption("theme",an),pt}return(0,j.Z)(bn,[{key:"destroy",value:function(){this.destroySubComponents();var Yt=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(Yt("platform-".concat(Et()))).rmClass(Yt("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(Yt,bt){var pt=this,yt=this.options,Ut={};typeof Yt=="string"?Ut[Yt]=bt:Ut=Yt,Lt()(Ut,function(an,sn){var Sn=yt[sn];yt[sn]=an,pt.emit("optionChange",sn,an,Sn)})}},{key:"getOption",value:function(Yt){return this.options[Yt]}},{key:"addSubComponent",value:function(Yt){Yt.setOption("theme",this.options.theme),this.subComponents.push(Yt)}},{key:"removeSubComponent",value:function(Yt){Vt()(this.subComponents,function(bt){return bt===Yt})}},{key:"destroySubComponents",value:function(){Lt()(this.subComponents,function(Yt){return Yt.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(Yt){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};nn()(Yt,bt),Zt()(this.options,Yt)}},{key:"find",value:function(Yt){return this.$container.find(this.c(Yt))}}]),bn}(at()),On=d(9702),_n=d.n(On),Pn=d(8887),Yn=d.n(Pn),dn=d(2439),An=d.n(dn),mn=d(6049),jn=d.n(mn),kn=d(2327),vn=d.n(kn),En=d(8901),gn=d.n(En),Ln=d(7387),Fn=d.n(Ln),Un=d(8648),Mn=d.n(Un);function Wn(zn){var Vn=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var bn,Yt=(0,nt.Z)(zn);if(Vn){var bt=(0,nt.Z)(this).constructor;bn=Reflect.construct(Yt,arguments,bt)}else bn=Yt.apply(this,arguments);return(0,rt.Z)(this,bn)}}b=d.hmd(b);var wn=function(zn){(0,tt.Z)(bn,zn);var Vn=Wn(bn);function bn(Yt){var bt,pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,k.Z)(this,bn),(bt=Vn.call(this,Yt,{compName:"text-viewer"},pt)).lineNum=0,bt.copy=function(){var yt=(0,$.Z)(bt).c,Ut=bt.options,an=Ut.text,sn=Ut.escape;vn()(sn?an:Fn()(Mn()(an)));var Sn=bt.$copy.find(yt(".icon"));Sn.addClass(yt("icon-check")).rmClass(yt("icon-copy")),setTimeout(function(){Sn.rmClass(yt("icon-check")).addClass(yt("icon-copy"))},1e3)},bt._updateCopyPos=function(){var yt=(0,$.Z)(bt).container;bt.$copy.css({top:yt.scrollTop+5,right:5-yt.scrollLeft})},bt.initOptions(pt,{text:"",escape:!0,showLineNumbers:!0,wrapLongLines:!0,maxHeight:1/0}),bt.render=An()(function(){return bt._render()},16),bt.updateCopyPos=jn()(function(){return bt._updateCopyPos()},300),bt.initTpl(),bt.$text=bt.find(".text"),bt.$copy=bt.find(".copy"),At&&bt.$copy.css("opacity","1"),bt.options.text&&bt.render(),bt.bindEvent(),bt.updateHeight(),bt}return(0,j.Z)(bn,[{key:"append",value:function(Yt){var bt=this,pt=this.options,yt=this.$copy,Ut=this.c,an=this.$text,sn=pt.showLineNumbers;if(this.options.text+=Yt,!sn)return this.$text.append(pt.escape?gn()(Yt):Yt);var Sn=function(Rn){return Rn.length===0?[]:Rn.split(Nn)}(Yt);Yn()(Sn)&&(Sn=[" "]),lt()(_n()(Sn))||Sn.pop();var or="";Lt()(Sn,function(Rn,Xn){bt.lineNum+=1,or+='
    ').concat(bt.lineNum,'
    ').concat(pt.escape?gn()(Rn):Rn||" ","
    ")}),an.find(Ut(".table")).append(or),yt.hide(),an.offset().height>40&&yt.show(),this.updateCopyPos()}},{key:"destroy",value:function(){this.$container.off("scroll",this.updateCopyPos),(0,et.Z)((0,nt.Z)(bn.prototype),"destroy",this).call(this)}},{key:"updateHeight",value:function(){var Yt=this.options.maxHeight;Yt>0&&Yt!==1/0?this.$text.css("max-height",Yt):this.$text.css("max-height","none")}},{key:"initTpl",value:function(){this.$container.html(this.c('
    '))}},{key:"bindEvent",value:function(){var Yt=this;this.on("optionChange",function(bt){bt==="maxHeight"?Yt.updateHeight():Yt.render()}),this.$container.on("scroll",this.updateCopyPos),this.$copy.on("click",this.copy)}},{key:"_render",value:function(){var Yt=this.c,bt=this.$text,pt=this.options,yt=pt.text,Ut=pt.wrapLongLines,an=pt.showLineNumbers;Ut?bt.addClass(Yt("wrap-long-lines")):bt.rmClass(Yt("wrap-long-lines")),an?bt.addClass(Yt("line-numbers")):bt.rmClass(Yt("line-numbers")),bt.html('
    ')),this.lineNum=0,this.options.text="",this.append(yt)}}]),bn}(In),Nn=/\r\n|\r|\n/g;(function(zn,Vn){try{zn.exports=Vn,zn.exports.default=Vn}catch{}})(b,wn)},6672:function(b,_,d){d.d(_,{Z:function(){return Np}});var k={};d.r(k),d.d(k,{$:function(){return st()},$attr:function(){return Sn()},$class:function(){return Rn()},$css:function(){return $n()},$data:function(){return Qn()},$event:function(){return fr()},$insert:function(){return pr()},$offset:function(){return kr()},$property:function(){return Pr()},$remove:function(){return Ur()},$safeEls:function(){return Zr()},$show:function(){return St()},Class:function(){return lt()},Emitter:function(){return it()},Enum:function(){return $t()},LocalStore:function(){return xt()},Logger:function(){return Dt()},MediaQuery:function(){return It()},MutationObserver:function(){return Rt()},Select:function(){return Bt()},SingleEmitter:function(){return un()},Stack:function(){return Gt()},Store:function(){return Gn()},Url:function(){return er()},ajax:function(){return Kn()},allKeys:function(){return ur()},before:function(){return yr()},camelCase:function(){return Bn()},castPath:function(){return hr()},clamp:function(){return sr()},classPrefix:function(){return Tn},clone:function(){return rn()},cloneDeep:function(){return Ar()},concat:function(){return jr()},contain:function(){return Pt()},copy:function(){return pn()},create:function(){return Dr()},createAssigner:function(){return Br()},dateFormat:function(){return zr()},debounce:function(){return qr()},defaults:function(){return Pn()},defineProp:function(){return to()},delegate:function(){return io()},detectBrowser:function(){return so()},detectOs:function(){return Wo()},difference:function(){return ys()},drag:function(){return ko},each:function(){return _t()},endWith:function(){return bs()},escape:function(){return Kr()},escapeJsStr:function(){return va()},escapeJsonStr:function(){return k0},escapeRegExp:function(){return Cs()},evalCss:function(){return A0},eventClient:function(){return $o},eventPage:function(){return M0},extend:function(){return dn()},extendOwn:function(){return As()},extractUrls:function(){return Ss()},filter:function(){return At()},flatten:function(){return Ts()},freeze:function(){return Is()},getFileName:function(){return ll},getProto:function(){return ts()},has:function(){return Rs()},hasSafeArea:function(){return sl},highlight:function(){return rs()},identity:function(){return Sr()},idxOf:function(){return Er()},inherits:function(){return Kt()},isArgs:function(){return Zn()},isArr:function(){return mn()},isArrLike:function(){return gr()},isBool:function(){return Cr()},isBrowser:function(){return Yr()},isBuffer:function(){return oo()},isChobitsuEl:function(){return cl},isDarkMode:function(){return Hr()},isDate:function(){return yo()},isEl:function(){return Eo()},isEmpty:function(){return vo()},isErr:function(){return So()},isErudaEl:function(){return Yo},isFn:function(){return Ao()},isHidden:function(){return Lo()},isMatch:function(){return Bo()},isMiniProgram:function(){return Ho()},isMobile:function(){return Oo()},isNaN:function(){return Bs()},isNil:function(){return os()},isNull:function(){return Xr()},isNum:function(){return No()},isObj:function(){return Zs()},isPrimitive:function(){return jl()},isPromise:function(){return Rl()},isRegExp:function(){return Vs()},isSorted:function(){return Bl()},isStr:function(){return Ot()},isUndef:function(){return Ns()},kebabCase:function(){return On()},keys:function(){return fn()},last:function(){return as()},linkify:function(){return Fl()},loadJs:function(){return qs()},lowerCase:function(){return Gs()},lpad:function(){return Hl()},ltrim:function(){return Vl()},map:function(){return ho()},mapObj:function(){return Kl()},matcher:function(){return Ql()},memStorage:function(){return Ks()},memoize:function(){return eu()},mergeArr:function(){return nu()},meta:function(){return iu()},ms:function(){return Ys()},nextTick:function(){return yt()},noop:function(){return Qs()},now:function(){return Js()},objToStr:function(){return uu()},once:function(){return fu()},optimizeCb:function(){return pu()},orientation:function(){return an()},partial:function(){return mu()},perfNow:function(){return yu()},pick:function(){return Xs()},prefix:function(){return xu()},property:function(){return Cu()},pxToNum:function(){return Ko},query:function(){return Au()},raf:function(){return Su()},repeat:function(){return Mu()},restArgs:function(){return ju()},reverse:function(){return Ru()},root:function(){return el()},rtrim:function(){return Bu()},safeCb:function(){return $u()},safeGet:function(){return tl()},safeSet:function(){return Uu()},safeStorage:function(){return $s},sameOrigin:function(){return nl()},slice:function(){return Hu()},some:function(){return Vu()},sortKeys:function(){return rl()},splitCase:function(){return Ku()},startWith:function(){return qo()},stringify:function(){return Ju()},stringifyAll:function(){return e0()},throttle:function(){return ol()},toArr:function(){return ss()},toInt:function(){return o0()},toNum:function(){return ls()},toSrc:function(){return s0()},toStr:function(){return Qt()},trim:function(){return To()},type:function(){return u0()},types:function(){return f0()},uncaught:function(){return cs()},uniqId:function(){return Mt()},unique:function(){return Uo()},upperFirst:function(){return Go()},values:function(){return v0()},viewportScale:function(){return il()},wrap:function(){return w0()},xpath:function(){return _0()}}),d(1532),d(1150);var j=d(5671),$=d(3144),et=d(7326),tt=d(9340),rt=d(2963),nt=d(1120),ot=d(4942),at=d(1443),it=d.n(at),dt=new(it());dt.ADD="ADD",dt.SHOW="SHOW",dt.SCALE="SCALE";var ut=dt,ht=d(1752),ft=d(7496),lt=d.n(ft),ct=lt()({init:function(ln){this._$el=ln},show:function(){return this._$el.show(),this},hide:function(){return this._$el.hide(),this},destroy:function(){this._$el.remove()}}),gt=d(1512),st=d.n(gt),Ct=d(125),xt=d.n(Ct),wt=d(5229),Mt=d.n(wt),kt=d(3783),_t=d.n(kt),Tt=d(5972),At=d.n(Tt),Et=d(6768),Ot=d.n(Et),Lt=d(6341),Pt=d.n(Lt),Zt=d(4675),rn=d.n(Zt),nn=d(3367),Qt=d.n(nn),Vt=d(2533),fn=d.n(Vt),In=d(7622),On=d.n(In),_n=d(4193),Pn=d.n(_n),Yn=d(6329),dn=d.n(Yn),An=d(6472),mn=d.n(An),jn=["background","foreground","selectForeground","accent","highlight","border","primary","contrast","varColor","stringColor","keywordColor","numberColor","operatorColor","linkColor","textColor","tagNameColor","functionColor","attributeNameColor","commentColor"],kn=jn.length;function vn(ln){for(var Jt={},Ht=0;Ht"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ht,vt=(0,nt.Z)(ln);if(Jt){var jt=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,jt)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var bt=function(ln){(0,tt.Z)(Ht,ln);var Jt=Yt(Ht);function Ht(){var vt;return(0,j.Z)(this,Ht),(vt=Jt.call(this))._style=Vn(d(8011)),vt.name="settings",vt._settings=[],vt}return(0,$.Z)(Ht,[{key:"init",value:function(vt){(0,ht.Z)((0,nt.Z)(Ht.prototype),"init",this).call(this,vt),this._setting=new bn.Z(vt.get(0)),this._bindEvent()}},{key:"remove",value:function(vt,jt){var Wt=this;if(Ot()(vt)){var yn=this;this._$el.find(".luna-setting-item-title").each(function(){st()(this).text()===vt&&yn._setting.remove(this.settingItem)})}else this._settings=At()(this._settings,function(Dn){return Dn.config!==vt||Dn.key!==jt||(Wt._setting.remove(Dn.item),!1)});return this._cleanSeparator(),this}},{key:"destroy",value:function(){this._setting.destroy(),(0,ht.Z)((0,nt.Z)(Ht.prototype),"destroy",this).call(this),Vn.remove(this._style)}},{key:"clear",value:function(){this._settings=[],this._setting.clear()}},{key:"switch",value:function(vt,jt,Wt){var yn=this._genId("settings"),Dn=this._setting.appendCheckbox(yn,!!vt.get(jt),Wt);return this._settings.push({config:vt,key:jt,id:yn,item:Dn}),this}},{key:"select",value:function(vt,jt,Wt,yn){var Dn=this._genId("settings"),tr={};_t()(yn,function(wr){return tr[wr]=wr});var vr=this._setting.appendSelect(Dn,vt.get(jt),"",Wt,tr);return this._settings.push({config:vt,key:jt,id:Dn,item:vr}),this}},{key:"range",value:function(vt,jt,Wt,yn){var Dn=yn.min,tr=Dn===void 0?0:Dn,vr=yn.max,wr=vr===void 0?1:vr,Nr=yn.step,Vr=Nr===void 0?.1:Nr,Jr=this._genId("settings"),lo=this._setting.appendNumber(Jr,vt.get(jt),Wt,{max:wr,min:tr,step:Vr,range:!0});return this._settings.push({config:vt,key:jt,min:tr,max:wr,step:Vr,id:Jr,item:lo}),this}},{key:"button",value:function(vt,jt){return this._setting.appendButton(vt,jt),this}},{key:"separator",value:function(){return this._setting.appendSeparator(),this}},{key:"text",value:function(vt){return this._setting.appendTitle(vt),this}},{key:"_cleanSeparator",value:function(){var vt=rn()(this._$el.get(0).children);function jt(Dn){return Pt()(Dn.getAttribute("class"),"luna-setting-item-separator")}for(var Wt=0,yn=vt.length;Wt0)return!0}return!1}function k0(ln){return va()(ln).replace(/\\'/g,"'").replace(/\t/g,"\\t")}function $s(ln,Jt){var Ht;switch(Ns()(Jt)&&(Jt=!0),ln){case"local":Ht=window.localStorage;break;case"session":Ht=window.sessionStorage}try{var vt="test-localStorage-"+Date.now();Ht.setItem(vt,vt);var jt=Ht.getItem(vt);if(Ht.removeItem(vt),jt!==vt)throw new Error}catch{return Jt?Ks():void 0}return Ht}function ll(ln){var Jt=as()(ln.split("/"));return Jt===""&&(Jt=(ln=new(er())(ln)).hostname),Jt}function Ko(ln){return ls()(ln.replace("px",""))}function Yo(ln){for(;ln;){if(ln.id==="eruda")return!0;ln=ln.parentNode}return!1}function cl(ln){for(;ln;){var Jt="";if(ln.getAttribute&&(Jt=ln.getAttribute("class")||""),Pt()(Jt,"__chobitsu-hide__"))return!0;ln=ln.parentNode}return!1}var A0=Vn;function Tn(ln){if(/<[^>]*>/g.test(ln))try{var Jt=al().parse(ln);return ul(Jt,function(Ht){Ht.attrs&&Ht.attrs.class&&(Ht.attrs.class=Ds(Ht.attrs.class))}),al().stringify(Jt)}catch{return Ds(ln)}return Ds(ln)}function ul(ln,Jt){for(var Ht=0,vt=ln.length;Ht"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ht,vt=(0,nt.Z)(ln);if(Jt){var jt=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,jt)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var dl,us=st()(document),j0=function(ln){(0,tt.Z)(Ht,ln);var Jt=I0(Ht);function Ht(vt){var jt;return(0,j.Z)(this,Ht),jt=Jt.call(this),(0,ot.Z)((0,et.Z)(jt),"_onDragStart",function(Wt){var yn=jt._$el;yn.addClass(Tn("active")),jt._isClick=!0,Wt=Wt.origEvent,jt._startX=$o("x",Wt),jt._oldX=Ko(yn.css("left")),jt._oldY=Ko(yn.css("top")),jt._startY=$o("y",Wt),us.on(ko("move"),jt._onDragMove),us.on(ko("end"),jt._onDragEnd)}),(0,ot.Z)((0,et.Z)(jt),"_onDragMove",function(Wt){var yn=jt._$el.get(0).offsetWidth,Dn=jt._$container.get(0).offsetWidth,tr=jt._$container.get(0).offsetHeight,vr=$o("x",Wt=Wt.origEvent)-jt._startX,wr=$o("y",Wt)-jt._startY;(Math.abs(vr)>3||Math.abs(wr)>3)&&(jt._isClick=!1);var Nr=jt._oldX+vr,Vr=jt._oldY+wr;Nr<0?Nr=0:Nr>Dn-yn&&(Nr=Dn-yn),Vr<0?Vr=0:Vr>tr-yn&&(Vr=tr-yn),jt._$el.css({left:Nr,top:Vr})}),(0,ot.Z)((0,et.Z)(jt),"_onDragEnd",function(Wt){var yn=jt._$el;jt._isClick&&jt.emit("click"),jt._onDragMove(Wt),us.off(ko("move"),jt._onDragMove),us.off(ko("end"),jt._onDragEnd);var Dn=jt.config;Dn.get("rememberPos")&&Dn.set("pos",{x:Ko(yn.css("left")),y:Ko(yn.css("top"))}),yn.rmClass("eruda-active")}),jt._style=Vn(d(9195)),jt._$container=vt,jt._initTpl(),jt._bindEvent(),jt._registerListener(),jt}return(0,$.Z)(Ht,[{key:"hide",value:function(){this._$el.hide()}},{key:"show",value:function(){this._$el.show()}},{key:"setPos",value:function(vt){this._isOutOfRange(vt)&&(vt=this._getDefPos()),this._$el.css({left:vt.x,top:vt.y}),this.config.set("pos",vt)}},{key:"getPos",value:function(){return this.config.get("pos")}},{key:"destroy",value:function(){Vn.remove(this._style),this._unregisterListener(),this._$el.remove()}},{key:"_isOutOfRange",value:function(vt){vt=vt||this.config.get("pos");var jt=this._getDefPos();return vt.x>jt.x+10||vt.x<0||vt.y<0||vt.y>jt.y+10}},{key:"_registerListener",value:function(){var vt=this;this._scaleListener=function(){return yt()(function(){vt._isOutOfRange()&&vt._resetPos()})},ut.on(ut.SCALE,this._scaleListener)}},{key:"_unregisterListener",value:function(){ut.off(ut.SCALE,this._scaleListener)}},{key:"_initTpl",value:function(){var vt=this._$container;vt.append(Tn('
    ')),this._$el=vt.find(".eruda-entry-btn")}},{key:"_resetPos",value:function(vt){var jt=this.config,Wt=jt.get("pos"),yn=this._getDefPos();jt.get("rememberPos")&&!vt||(Wt=yn),this.setPos(Wt)}},{key:"_bindEvent",value:function(){var vt=this;this._$el.on(ko("start"),this._onDragStart),an().on("change",function(){return vt._resetPos(!0)}),window.addEventListener("resize",function(){return vt._resetPos()})}},{key:"initCfg",value:function(vt){var jt=this.config=bt.createCfg("entry-button",{rememberPos:!0,pos:this._getDefPos()});vt.switch(jt,"rememberPos","Remember Entry Button Position"),this._resetPos()}},{key:"_getDefPos",value:function(){var vt=this._$el.get(0).offsetWidth+10;return{x:window.innerWidth-vt,y:window.innerHeight-vt}}}]),Ht}(it()),zo=dl=new(Dt())("[Eruda]","warn");dl.formatter=function(ln,Jt){return Jt.unshift(this.name),Jt};var O0=d(4270),R0=d.n(O0),L0=d(6093),P0=d.n(L0),Do=d(129),B0=d(7638);function N0(ln){var Jt=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ht,vt=(0,nt.Z)(ln);if(Jt){var jt=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,jt)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var $0=function(ln){(0,tt.Z)(Ht,ln);var Jt=N0(Ht);function Ht(vt){var jt,Wt=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).defaults,yn=Wt===void 0?{}:Wt;return(0,j.Z)(this,Ht),jt=Jt.call(this),(0,ot.Z)((0,et.Z)(jt),"_checkSafeArea",function(){var Dn=(0,et.Z)(jt).$container;sl()?Dn.addClass(Tn("safe-area")):Dn.rmClass(Tn("safe-area"))}),(0,ot.Z)((0,et.Z)(jt),"_updateTabHeight",function(Dn){jt._tab.setOption("height",40*Dn),yt()(function(){jt._tab.updateSlider()})}),jt._defCfg=dn()({transparency:1,displaySize:80,theme:Hr()()?"Dark":"Light"},yn),jt._style=Vn(d(13)),jt.$container=vt,jt._isShow=!1,jt._opacity=1,jt._tools={},jt._isResizing=!1,jt._resizeTimer=null,jt._resizeStartY=0,jt._resizeStartSize=0,jt._initTpl(),jt._initTab(),jt._initNotification(),jt._initModal(),R0()(function(){return jt._checkSafeArea()}),jt._bindEvent(),jt}return(0,$.Z)(Ht,[{key:"show",value:function(){var vt=this;return this._isShow=!0,this._$el.show(),this._tab.updateSlider(),setTimeout(function(){vt._$el.css("opacity",vt._opacity)},50),this.emit("show"),this}},{key:"hide",value:function(){var vt=this;return this._isShow=!1,this.emit("hide"),this._$el.css({opacity:0}),setTimeout(function(){return vt._$el.hide()},300),this}},{key:"toggle",value:function(){return this._isShow?this.hide():this.show()}},{key:"add",value:function(vt){var jt=this._tab;if(!(vt instanceof ct)){var Wt=new ct,yn=Wt.init,Dn=Wt.show,tr=Wt.hide,vr=Wt.destroy;Pn()(vt,{init:yn,show:Dn,hide:tr,destroy:vr})}var wr=vt.name;return wr?(wr=wr.toLowerCase(),this._tools[wr]?zo.warn("Tool ".concat(wr," already exists")):(this._$tools.prepend('
    ')),vt.init(this._$tools.find(".".concat(Tn(wr),".").concat(Tn("tool"))),this),vt.active=!1,this._tools[wr]=vt,wr==="settings"?jt.append({id:wr,title:wr}):jt.insert(jt.length-1,{id:wr,title:wr}),this)):zo.error("You must specify a name for a tool")}},{key:"remove",value:function(vt){var jt=this._tools;if(!jt[vt])return zo.warn("Tool ".concat(vt," doesn't exist"));this._tab.remove(vt);var Wt=jt[vt];if(delete jt[vt],Wt.active){var yn=fn()(jt);yn.length>0&&this.showTool(jt[as()(yn)].name)}return Wt.destroy(),this}},{key:"removeAll",value:function(){var vt=this;return _t()(this._tools,function(jt){return vt.remove(jt.name)}),this}},{key:"get",value:function(vt){var jt=this._tools[vt];if(jt)return jt}},{key:"showTool",value:function(vt){if(this._curTool===vt)return this;this._curTool=vt;var jt=this._tools,Wt=jt[vt];if(Wt){var yn={};return _t()(jt,function(Dn){Dn.active&&(yn=Dn,Dn.active=!1,Dn.hide())}),Wt.active=!0,Wt.show(),this._tab.select(vt),this.emit("showTool",vt,yn),this}}},{key:"initCfg",value:function(vt){var jt=this,Wt=this.config=bt.createCfg("dev-tools",this._defCfg);this._setTransparency(Wt.get("transparency")),this._setDisplaySize(Wt.get("displaySize")),this._setTheme(Wt.get("theme")),Wt.on("change",function(yn,Dn){switch(yn){case"transparency":return jt._setTransparency(Dn);case"displaySize":return jt._setDisplaySize(Dn);case"theme":return jt._setTheme(Dn)}}),vt.separator().select(Wt,"theme","Theme",fn()(Vn.getThemes())).range(Wt,"transparency","Transparency",{min:.2,max:1,step:.01}).range(Wt,"displaySize","Display Size",{min:40,max:100,step:1}).button("Restore defaults and reload",function(){var yn=$s("local"),Dn=JSON.parse(JSON.stringify(yn));_t()(Dn,function(tr,vr){Ot()(tr)&&qo()(vr,"eruda")&&yn.removeItem(vr)}),window.location.reload()}).separator()}},{key:"notify",value:function(vt,jt){this._notification.notify(vt,jt)}},{key:"destroy",value:function(){Vn.remove(this._style),this.removeAll(),this._tab.destroy(),this._$el.remove(),window.removeEventListener("resize",this._checkSafeArea),ut.off(ut.SCALE,this._updateTabHeight)}},{key:"_setTheme",value:function(vt){var jt=this.$container;(function(Wt){return Pt()(Ln,Wt)})(vt)?jt.addClass(Tn("dark")):jt.rmClass(Tn("dark")),Vn.setTheme(vt)}},{key:"_setTransparency",value:function(vt){No()(vt)&&(this._opacity=vt,this._isShow&&this._$el.css({opacity:vt}))}},{key:"_setDisplaySize",value:function(vt){No()(vt)&&this._$el.css({height:vt+"%"})}},{key:"_initTpl",value:function(){var vt=this.$container;vt.append(Tn(` + `])))))}}]),En}(_n);(function(kn,vn){try{kn.exports=vn,kn.exports.default=vn}catch{}})(b,jn)},7049:function(b,_,d){d.d(_,{Z:function(){return wn}});var k=d(5671),j=d(3144),$=d(7326),et=d(1752),tt=d(9340),rt=d(2963),nt=d(1120),ot=d(1443),at=d.n(ot),it=d(1512),dt=d.n(it),ut=d(2461),ht=d.n(ut),ft=d(4331),lt=d.n(ft),ct=d(5610),gt=d.n(ct),st=d(7483),Ct=d.n(st),xt=(d(3990),d(6341)),wt=d.n(xt),Mt=(d(3875),d(6954)),kt=d.n(Mt);d(9585);function _t(Wn){var Vn="luna-".concat(Wn,"-");function bn(Yt){return ht()(lt()(Yt).split(/\s+/),function(bt){return wt()(bt,Vn)?bt:bt.replace(/[\w-]+/,function(pt){return"".concat(Vn).concat(pt)})}).join(" ")}return function(Yt){if(/<[^>]*>/g.test(Yt))try{var bt=Ct().parse(Yt);return Tt(bt,function(pt){pt.attrs&&pt.attrs.class&&(pt.attrs.class=bn(pt.attrs.class))}),Ct().stringify(bt)}catch{return bn(Yt)}return bn(Yt)}}function Tt(Wn,Vn){for(var bn=0,Yt=Wn.length;bn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var bn,Yt=(0,nt.Z)(Wn);if(Vn){var bt=(0,nt.Z)(this).constructor;bn=Reflect.construct(Yt,arguments,bt)}else bn=Yt.apply(this,arguments);return(0,rt.Z)(this,bn)}}var In=function(Wn){(0,tt.Z)(bn,Wn);var Vn=fn(bn);function bn(Yt,bt){var pt,yt=bt.compName,Ut=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,an=Ut===void 0?"light":Ut;return(0,k.Z)(this,bn),(pt=Vn.call(this)).subComponents=[],pt.compName=yt,pt.c=_t(yt),pt.options={},pt.container=Yt,pt.$container=dt()(Yt),pt.$container.addClass(["luna-".concat(yt),pt.c("platform-".concat(Et()))]),pt.on("optionChange",function(sn,Sn,or){var Rn=pt.c;sn==="theme"&&(pt.$container.rmClass(Rn("theme-".concat(or))).addClass(Rn("theme-".concat(Sn))),Lt()(pt.subComponents,function(Xn){return Xn.setOption("theme",Sn)}))}),pt.setOption("theme",an),pt}return(0,j.Z)(bn,[{key:"destroy",value:function(){this.destroySubComponents();var Yt=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(Yt("platform-".concat(Et()))).rmClass(Yt("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(Yt,bt){var pt=this,yt=this.options,Ut={};typeof Yt=="string"?Ut[Yt]=bt:Ut=Yt,Lt()(Ut,function(an,sn){var Sn=yt[sn];yt[sn]=an,pt.emit("optionChange",sn,an,Sn)})}},{key:"getOption",value:function(Yt){return this.options[Yt]}},{key:"addSubComponent",value:function(Yt){Yt.setOption("theme",this.options.theme),this.subComponents.push(Yt)}},{key:"removeSubComponent",value:function(Yt){Vt()(this.subComponents,function(bt){return bt===Yt})}},{key:"destroySubComponents",value:function(){Lt()(this.subComponents,function(Yt){return Yt.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(Yt){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};nn()(Yt,bt),Zt()(this.options,Yt)}},{key:"find",value:function(Yt){return this.$container.find(this.c(Yt))}}]),bn}(at()),On=d(9702),_n=d.n(On),Bn=d(8887),Yn=d.n(Bn),dn=d(2439),An=d.n(dn),mn=d(6049),jn=d.n(mn),kn=d(2327),vn=d.n(kn),En=d(8901),gn=d.n(En),Ln=d(7387),Fn=d.n(Ln),Un=d(8648),Mn=d.n(Un);function zn(Wn){var Vn=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var bn,Yt=(0,nt.Z)(Wn);if(Vn){var bt=(0,nt.Z)(this).constructor;bn=Reflect.construct(Yt,arguments,bt)}else bn=Yt.apply(this,arguments);return(0,rt.Z)(this,bn)}}b=d.hmd(b);var wn=function(Wn){(0,tt.Z)(bn,Wn);var Vn=zn(bn);function bn(Yt){var bt,pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,k.Z)(this,bn),(bt=Vn.call(this,Yt,{compName:"text-viewer"},pt)).lineNum=0,bt.copy=function(){var yt=(0,$.Z)(bt).c,Ut=bt.options,an=Ut.text,sn=Ut.escape;vn()(sn?an:Fn()(Mn()(an)));var Sn=bt.$copy.find(yt(".icon"));Sn.addClass(yt("icon-check")).rmClass(yt("icon-copy")),setTimeout(function(){Sn.rmClass(yt("icon-check")).addClass(yt("icon-copy"))},1e3)},bt._updateCopyPos=function(){var yt=(0,$.Z)(bt).container;bt.$copy.css({top:yt.scrollTop+5,right:5-yt.scrollLeft})},bt.initOptions(pt,{text:"",escape:!0,showLineNumbers:!0,wrapLongLines:!0,maxHeight:1/0}),bt.render=An()(function(){return bt._render()},16),bt.updateCopyPos=jn()(function(){return bt._updateCopyPos()},300),bt.initTpl(),bt.$text=bt.find(".text"),bt.$copy=bt.find(".copy"),At&&bt.$copy.css("opacity","1"),bt.options.text&&bt.render(),bt.bindEvent(),bt.updateHeight(),bt}return(0,j.Z)(bn,[{key:"append",value:function(Yt){var bt=this,pt=this.options,yt=this.$copy,Ut=this.c,an=this.$text,sn=pt.showLineNumbers;if(this.options.text+=Yt,!sn)return this.$text.append(pt.escape?gn()(Yt):Yt);var Sn=function(Rn){return Rn.length===0?[]:Rn.split(Nn)}(Yt);Yn()(Sn)&&(Sn=[" "]),lt()(_n()(Sn))||Sn.pop();var or="";Lt()(Sn,function(Rn,Xn){bt.lineNum+=1,or+='
    ').concat(bt.lineNum,'
    ').concat(pt.escape?gn()(Rn):Rn||" ","
    ")}),an.find(Ut(".table")).append(or),yt.hide(),an.offset().height>40&&yt.show(),this.updateCopyPos()}},{key:"destroy",value:function(){this.$container.off("scroll",this.updateCopyPos),(0,et.Z)((0,nt.Z)(bn.prototype),"destroy",this).call(this)}},{key:"updateHeight",value:function(){var Yt=this.options.maxHeight;Yt>0&&Yt!==1/0?this.$text.css("max-height",Yt):this.$text.css("max-height","none")}},{key:"initTpl",value:function(){this.$container.html(this.c('
    '))}},{key:"bindEvent",value:function(){var Yt=this;this.on("optionChange",function(bt){bt==="maxHeight"?Yt.updateHeight():Yt.render()}),this.$container.on("scroll",this.updateCopyPos),this.$copy.on("click",this.copy)}},{key:"_render",value:function(){var Yt=this.c,bt=this.$text,pt=this.options,yt=pt.text,Ut=pt.wrapLongLines,an=pt.showLineNumbers;Ut?bt.addClass(Yt("wrap-long-lines")):bt.rmClass(Yt("wrap-long-lines")),an?bt.addClass(Yt("line-numbers")):bt.rmClass(Yt("line-numbers")),bt.html('
    ')),this.lineNum=0,this.options.text="",this.append(yt)}}]),bn}(In),Nn=/\r\n|\r|\n/g;(function(Wn,Vn){try{Wn.exports=Vn,Wn.exports.default=Vn}catch{}})(b,wn)},6672:function(b,_,d){d.d(_,{Z:function(){return Np}});var k={};d.r(k),d.d(k,{$:function(){return st()},$attr:function(){return Sn()},$class:function(){return Rn()},$css:function(){return $n()},$data:function(){return Qn()},$event:function(){return fr()},$insert:function(){return pr()},$offset:function(){return kr()},$property:function(){return Br()},$remove:function(){return Ur()},$safeEls:function(){return Zr()},$show:function(){return St()},Class:function(){return lt()},Emitter:function(){return it()},Enum:function(){return $t()},LocalStore:function(){return xt()},Logger:function(){return Dt()},MediaQuery:function(){return It()},MutationObserver:function(){return Rt()},Select:function(){return Pt()},SingleEmitter:function(){return un()},Stack:function(){return Gt()},Store:function(){return Gn()},Url:function(){return er()},ajax:function(){return Kn()},allKeys:function(){return ur()},before:function(){return yr()},camelCase:function(){return Pn()},castPath:function(){return hr()},clamp:function(){return sr()},classPrefix:function(){return Tn},clone:function(){return rn()},cloneDeep:function(){return Ar()},concat:function(){return jr()},contain:function(){return Bt()},copy:function(){return pn()},create:function(){return Dr()},createAssigner:function(){return Pr()},dateFormat:function(){return Wr()},debounce:function(){return qr()},defaults:function(){return Bn()},defineProp:function(){return to()},delegate:function(){return io()},detectBrowser:function(){return so()},detectOs:function(){return zo()},difference:function(){return ys()},drag:function(){return ko},each:function(){return _t()},endWith:function(){return bs()},escape:function(){return Kr()},escapeJsStr:function(){return va()},escapeJsonStr:function(){return k0},escapeRegExp:function(){return Cs()},evalCss:function(){return A0},eventClient:function(){return $o},eventPage:function(){return M0},extend:function(){return dn()},extendOwn:function(){return As()},extractUrls:function(){return Ss()},filter:function(){return At()},flatten:function(){return Ts()},freeze:function(){return Is()},getFileName:function(){return ll},getProto:function(){return ts()},has:function(){return Rs()},hasSafeArea:function(){return sl},highlight:function(){return rs()},identity:function(){return Sr()},idxOf:function(){return Er()},inherits:function(){return Kt()},isArgs:function(){return Zn()},isArr:function(){return mn()},isArrLike:function(){return gr()},isBool:function(){return Cr()},isBrowser:function(){return Yr()},isBuffer:function(){return oo()},isChobitsuEl:function(){return cl},isDarkMode:function(){return Hr()},isDate:function(){return yo()},isEl:function(){return Eo()},isEmpty:function(){return vo()},isErr:function(){return So()},isErudaEl:function(){return Yo},isFn:function(){return Ao()},isHidden:function(){return Lo()},isMatch:function(){return Po()},isMiniProgram:function(){return Ho()},isMobile:function(){return Oo()},isNaN:function(){return Ps()},isNil:function(){return os()},isNull:function(){return Xr()},isNum:function(){return No()},isObj:function(){return Zs()},isPrimitive:function(){return jl()},isPromise:function(){return Rl()},isRegExp:function(){return Vs()},isSorted:function(){return Pl()},isStr:function(){return Ot()},isUndef:function(){return Ns()},kebabCase:function(){return On()},keys:function(){return fn()},last:function(){return as()},linkify:function(){return Fl()},loadJs:function(){return qs()},lowerCase:function(){return Gs()},lpad:function(){return Hl()},ltrim:function(){return Vl()},map:function(){return ho()},mapObj:function(){return Kl()},matcher:function(){return Ql()},memStorage:function(){return Ks()},memoize:function(){return eu()},mergeArr:function(){return nu()},meta:function(){return iu()},ms:function(){return Ys()},nextTick:function(){return yt()},noop:function(){return Qs()},now:function(){return Js()},objToStr:function(){return uu()},once:function(){return fu()},optimizeCb:function(){return pu()},orientation:function(){return an()},partial:function(){return mu()},perfNow:function(){return yu()},pick:function(){return Xs()},prefix:function(){return xu()},property:function(){return Cu()},pxToNum:function(){return Ko},query:function(){return Au()},raf:function(){return Su()},repeat:function(){return Mu()},restArgs:function(){return ju()},reverse:function(){return Ru()},root:function(){return el()},rtrim:function(){return Pu()},safeCb:function(){return $u()},safeGet:function(){return tl()},safeSet:function(){return Uu()},safeStorage:function(){return $s},sameOrigin:function(){return nl()},slice:function(){return Hu()},some:function(){return Vu()},sortKeys:function(){return rl()},splitCase:function(){return Ku()},startWith:function(){return qo()},stringify:function(){return Ju()},stringifyAll:function(){return e0()},throttle:function(){return ol()},toArr:function(){return ss()},toInt:function(){return o0()},toNum:function(){return ls()},toSrc:function(){return s0()},toStr:function(){return Qt()},trim:function(){return To()},type:function(){return u0()},types:function(){return f0()},uncaught:function(){return cs()},uniqId:function(){return Mt()},unique:function(){return Uo()},upperFirst:function(){return Go()},values:function(){return v0()},viewportScale:function(){return il()},wrap:function(){return w0()},xpath:function(){return _0()}}),d(1532),d(1150);var j=d(5671),$=d(3144),et=d(7326),tt=d(9340),rt=d(2963),nt=d(1120),ot=d(4942),at=d(1443),it=d.n(at),dt=new(it());dt.ADD="ADD",dt.SHOW="SHOW",dt.SCALE="SCALE";var ut=dt,ht=d(1752),ft=d(7496),lt=d.n(ft),ct=lt()({init:function(ln){this._$el=ln},show:function(){return this._$el.show(),this},hide:function(){return this._$el.hide(),this},destroy:function(){this._$el.remove()}}),gt=d(1512),st=d.n(gt),Ct=d(125),xt=d.n(Ct),wt=d(5229),Mt=d.n(wt),kt=d(3783),_t=d.n(kt),Tt=d(5972),At=d.n(Tt),Et=d(6768),Ot=d.n(Et),Lt=d(6341),Bt=d.n(Lt),Zt=d(4675),rn=d.n(Zt),nn=d(3367),Qt=d.n(nn),Vt=d(2533),fn=d.n(Vt),In=d(7622),On=d.n(In),_n=d(4193),Bn=d.n(_n),Yn=d(6329),dn=d.n(Yn),An=d(6472),mn=d.n(An),jn=["background","foreground","selectForeground","accent","highlight","border","primary","contrast","varColor","stringColor","keywordColor","numberColor","operatorColor","linkColor","textColor","tagNameColor","functionColor","attributeNameColor","commentColor"],kn=jn.length;function vn(ln){for(var Jt={},Ht=0;Ht"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ht,vt=(0,nt.Z)(ln);if(Jt){var jt=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,jt)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var bt=function(ln){(0,tt.Z)(Ht,ln);var Jt=Yt(Ht);function Ht(){var vt;return(0,j.Z)(this,Ht),(vt=Jt.call(this))._style=Vn(d(8011)),vt.name="settings",vt._settings=[],vt}return(0,$.Z)(Ht,[{key:"init",value:function(vt){(0,ht.Z)((0,nt.Z)(Ht.prototype),"init",this).call(this,vt),this._setting=new bn.Z(vt.get(0)),this._bindEvent()}},{key:"remove",value:function(vt,jt){var zt=this;if(Ot()(vt)){var yn=this;this._$el.find(".luna-setting-item-title").each(function(){st()(this).text()===vt&&yn._setting.remove(this.settingItem)})}else this._settings=At()(this._settings,function(Dn){return Dn.config!==vt||Dn.key!==jt||(zt._setting.remove(Dn.item),!1)});return this._cleanSeparator(),this}},{key:"destroy",value:function(){this._setting.destroy(),(0,ht.Z)((0,nt.Z)(Ht.prototype),"destroy",this).call(this),Vn.remove(this._style)}},{key:"clear",value:function(){this._settings=[],this._setting.clear()}},{key:"switch",value:function(vt,jt,zt){var yn=this._genId("settings"),Dn=this._setting.appendCheckbox(yn,!!vt.get(jt),zt);return this._settings.push({config:vt,key:jt,id:yn,item:Dn}),this}},{key:"select",value:function(vt,jt,zt,yn){var Dn=this._genId("settings"),tr={};_t()(yn,function(wr){return tr[wr]=wr});var vr=this._setting.appendSelect(Dn,vt.get(jt),"",zt,tr);return this._settings.push({config:vt,key:jt,id:Dn,item:vr}),this}},{key:"range",value:function(vt,jt,zt,yn){var Dn=yn.min,tr=Dn===void 0?0:Dn,vr=yn.max,wr=vr===void 0?1:vr,Nr=yn.step,Vr=Nr===void 0?.1:Nr,Jr=this._genId("settings"),lo=this._setting.appendNumber(Jr,vt.get(jt),zt,{max:wr,min:tr,step:Vr,range:!0});return this._settings.push({config:vt,key:jt,min:tr,max:wr,step:Vr,id:Jr,item:lo}),this}},{key:"button",value:function(vt,jt){return this._setting.appendButton(vt,jt),this}},{key:"separator",value:function(){return this._setting.appendSeparator(),this}},{key:"text",value:function(vt){return this._setting.appendTitle(vt),this}},{key:"_cleanSeparator",value:function(){var vt=rn()(this._$el.get(0).children);function jt(Dn){return Bt()(Dn.getAttribute("class"),"luna-setting-item-separator")}for(var zt=0,yn=vt.length;zt0)return!0}return!1}function k0(ln){return va()(ln).replace(/\\'/g,"'").replace(/\t/g,"\\t")}function $s(ln,Jt){var Ht;switch(Ns()(Jt)&&(Jt=!0),ln){case"local":Ht=window.localStorage;break;case"session":Ht=window.sessionStorage}try{var vt="test-localStorage-"+Date.now();Ht.setItem(vt,vt);var jt=Ht.getItem(vt);if(Ht.removeItem(vt),jt!==vt)throw new Error}catch{return Jt?Ks():void 0}return Ht}function ll(ln){var Jt=as()(ln.split("/"));return Jt===""&&(Jt=(ln=new(er())(ln)).hostname),Jt}function Ko(ln){return ls()(ln.replace("px",""))}function Yo(ln){for(;ln;){if(ln.id==="eruda")return!0;ln=ln.parentNode}return!1}function cl(ln){for(;ln;){var Jt="";if(ln.getAttribute&&(Jt=ln.getAttribute("class")||""),Bt()(Jt,"__chobitsu-hide__"))return!0;ln=ln.parentNode}return!1}var A0=Vn;function Tn(ln){if(/<[^>]*>/g.test(ln))try{var Jt=al().parse(ln);return ul(Jt,function(Ht){Ht.attrs&&Ht.attrs.class&&(Ht.attrs.class=Ds(Ht.attrs.class))}),al().stringify(Jt)}catch{return Ds(ln)}return Ds(ln)}function ul(ln,Jt){for(var Ht=0,vt=ln.length;Ht"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ht,vt=(0,nt.Z)(ln);if(Jt){var jt=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,jt)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var dl,us=st()(document),j0=function(ln){(0,tt.Z)(Ht,ln);var Jt=I0(Ht);function Ht(vt){var jt;return(0,j.Z)(this,Ht),jt=Jt.call(this),(0,ot.Z)((0,et.Z)(jt),"_onDragStart",function(zt){var yn=jt._$el;yn.addClass(Tn("active")),jt._isClick=!0,zt=zt.origEvent,jt._startX=$o("x",zt),jt._oldX=Ko(yn.css("left")),jt._oldY=Ko(yn.css("top")),jt._startY=$o("y",zt),us.on(ko("move"),jt._onDragMove),us.on(ko("end"),jt._onDragEnd)}),(0,ot.Z)((0,et.Z)(jt),"_onDragMove",function(zt){var yn=jt._$el.get(0).offsetWidth,Dn=jt._$container.get(0).offsetWidth,tr=jt._$container.get(0).offsetHeight,vr=$o("x",zt=zt.origEvent)-jt._startX,wr=$o("y",zt)-jt._startY;(Math.abs(vr)>3||Math.abs(wr)>3)&&(jt._isClick=!1);var Nr=jt._oldX+vr,Vr=jt._oldY+wr;Nr<0?Nr=0:Nr>Dn-yn&&(Nr=Dn-yn),Vr<0?Vr=0:Vr>tr-yn&&(Vr=tr-yn),jt._$el.css({left:Nr,top:Vr})}),(0,ot.Z)((0,et.Z)(jt),"_onDragEnd",function(zt){var yn=jt._$el;jt._isClick&&jt.emit("click"),jt._onDragMove(zt),us.off(ko("move"),jt._onDragMove),us.off(ko("end"),jt._onDragEnd);var Dn=jt.config;Dn.get("rememberPos")&&Dn.set("pos",{x:Ko(yn.css("left")),y:Ko(yn.css("top"))}),yn.rmClass("eruda-active")}),jt._style=Vn(d(9195)),jt._$container=vt,jt._initTpl(),jt._bindEvent(),jt._registerListener(),jt}return(0,$.Z)(Ht,[{key:"hide",value:function(){this._$el.hide()}},{key:"show",value:function(){this._$el.show()}},{key:"setPos",value:function(vt){this._isOutOfRange(vt)&&(vt=this._getDefPos()),this._$el.css({left:vt.x,top:vt.y}),this.config.set("pos",vt)}},{key:"getPos",value:function(){return this.config.get("pos")}},{key:"destroy",value:function(){Vn.remove(this._style),this._unregisterListener(),this._$el.remove()}},{key:"_isOutOfRange",value:function(vt){vt=vt||this.config.get("pos");var jt=this._getDefPos();return vt.x>jt.x+10||vt.x<0||vt.y<0||vt.y>jt.y+10}},{key:"_registerListener",value:function(){var vt=this;this._scaleListener=function(){return yt()(function(){vt._isOutOfRange()&&vt._resetPos()})},ut.on(ut.SCALE,this._scaleListener)}},{key:"_unregisterListener",value:function(){ut.off(ut.SCALE,this._scaleListener)}},{key:"_initTpl",value:function(){var vt=this._$container;vt.append(Tn('
    ')),this._$el=vt.find(".eruda-entry-btn")}},{key:"_resetPos",value:function(vt){var jt=this.config,zt=jt.get("pos"),yn=this._getDefPos();jt.get("rememberPos")&&!vt||(zt=yn),this.setPos(zt)}},{key:"_bindEvent",value:function(){var vt=this;this._$el.on(ko("start"),this._onDragStart),an().on("change",function(){return vt._resetPos(!0)}),window.addEventListener("resize",function(){return vt._resetPos()})}},{key:"initCfg",value:function(vt){var jt=this.config=bt.createCfg("entry-button",{rememberPos:!0,pos:this._getDefPos()});vt.switch(jt,"rememberPos","Remember Entry Button Position"),this._resetPos()}},{key:"_getDefPos",value:function(){var vt=this._$el.get(0).offsetWidth+10;return{x:window.innerWidth-vt,y:window.innerHeight-vt}}}]),Ht}(it()),Wo=dl=new(Dt())("[Eruda]","warn");dl.formatter=function(ln,Jt){return Jt.unshift(this.name),Jt};var O0=d(4270),R0=d.n(O0),L0=d(6093),B0=d.n(L0),Do=d(129),P0=d(7638);function N0(ln){var Jt=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ht,vt=(0,nt.Z)(ln);if(Jt){var jt=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,jt)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var $0=function(ln){(0,tt.Z)(Ht,ln);var Jt=N0(Ht);function Ht(vt){var jt,zt=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).defaults,yn=zt===void 0?{}:zt;return(0,j.Z)(this,Ht),jt=Jt.call(this),(0,ot.Z)((0,et.Z)(jt),"_checkSafeArea",function(){var Dn=(0,et.Z)(jt).$container;sl()?Dn.addClass(Tn("safe-area")):Dn.rmClass(Tn("safe-area"))}),(0,ot.Z)((0,et.Z)(jt),"_updateTabHeight",function(Dn){jt._tab.setOption("height",40*Dn),yt()(function(){jt._tab.updateSlider()})}),jt._defCfg=dn()({transparency:1,displaySize:80,theme:Hr()()?"Dark":"Light"},yn),jt._style=Vn(d(13)),jt.$container=vt,jt._isShow=!1,jt._opacity=1,jt._tools={},jt._isResizing=!1,jt._resizeTimer=null,jt._resizeStartY=0,jt._resizeStartSize=0,jt._initTpl(),jt._initTab(),jt._initNotification(),jt._initModal(),R0()(function(){return jt._checkSafeArea()}),jt._bindEvent(),jt}return(0,$.Z)(Ht,[{key:"show",value:function(){var vt=this;return this._isShow=!0,this._$el.show(),this._tab.updateSlider(),setTimeout(function(){vt._$el.css("opacity",vt._opacity)},50),this.emit("show"),this}},{key:"hide",value:function(){var vt=this;return this._isShow=!1,this.emit("hide"),this._$el.css({opacity:0}),setTimeout(function(){return vt._$el.hide()},300),this}},{key:"toggle",value:function(){return this._isShow?this.hide():this.show()}},{key:"add",value:function(vt){var jt=this._tab;if(!(vt instanceof ct)){var zt=new ct,yn=zt.init,Dn=zt.show,tr=zt.hide,vr=zt.destroy;Bn()(vt,{init:yn,show:Dn,hide:tr,destroy:vr})}var wr=vt.name;return wr?(wr=wr.toLowerCase(),this._tools[wr]?Wo.warn("Tool ".concat(wr," already exists")):(this._$tools.prepend('
    ')),vt.init(this._$tools.find(".".concat(Tn(wr),".").concat(Tn("tool"))),this),vt.active=!1,this._tools[wr]=vt,wr==="settings"?jt.append({id:wr,title:wr}):jt.insert(jt.length-1,{id:wr,title:wr}),this)):Wo.error("You must specify a name for a tool")}},{key:"remove",value:function(vt){var jt=this._tools;if(!jt[vt])return Wo.warn("Tool ".concat(vt," doesn't exist"));this._tab.remove(vt);var zt=jt[vt];if(delete jt[vt],zt.active){var yn=fn()(jt);yn.length>0&&this.showTool(jt[as()(yn)].name)}return zt.destroy(),this}},{key:"removeAll",value:function(){var vt=this;return _t()(this._tools,function(jt){return vt.remove(jt.name)}),this}},{key:"get",value:function(vt){var jt=this._tools[vt];if(jt)return jt}},{key:"showTool",value:function(vt){if(this._curTool===vt)return this;this._curTool=vt;var jt=this._tools,zt=jt[vt];if(zt){var yn={};return _t()(jt,function(Dn){Dn.active&&(yn=Dn,Dn.active=!1,Dn.hide())}),zt.active=!0,zt.show(),this._tab.select(vt),this.emit("showTool",vt,yn),this}}},{key:"initCfg",value:function(vt){var jt=this,zt=this.config=bt.createCfg("dev-tools",this._defCfg);this._setTransparency(zt.get("transparency")),this._setDisplaySize(zt.get("displaySize")),this._setTheme(zt.get("theme")),zt.on("change",function(yn,Dn){switch(yn){case"transparency":return jt._setTransparency(Dn);case"displaySize":return jt._setDisplaySize(Dn);case"theme":return jt._setTheme(Dn)}}),vt.separator().select(zt,"theme","Theme",fn()(Vn.getThemes())).range(zt,"transparency","Transparency",{min:.2,max:1,step:.01}).range(zt,"displaySize","Display Size",{min:40,max:100,step:1}).button("Restore defaults and reload",function(){var yn=$s("local"),Dn=JSON.parse(JSON.stringify(yn));_t()(Dn,function(tr,vr){Ot()(tr)&&qo()(vr,"eruda")&&yn.removeItem(vr)}),window.location.reload()}).separator()}},{key:"notify",value:function(vt,jt){this._notification.notify(vt,jt)}},{key:"destroy",value:function(){Vn.remove(this._style),this.removeAll(),this._tab.destroy(),this._$el.remove(),window.removeEventListener("resize",this._checkSafeArea),ut.off(ut.SCALE,this._updateTabHeight)}},{key:"_setTheme",value:function(vt){var jt=this.$container;(function(zt){return Bt()(Ln,zt)})(vt)?jt.addClass(Tn("dark")):jt.rmClass(Tn("dark")),Vn.setTheme(vt)}},{key:"_setTransparency",value:function(vt){No()(vt)&&(this._opacity=vt,this._isShow&&this._$el.css({opacity:vt}))}},{key:"_setDisplaySize",value:function(vt){No()(vt)&&this._$el.css({height:vt+"%"})}},{key:"_initTpl",value:function(){var vt=this.$container;vt.append(Tn(`
    @@ -115,7 +115,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
    - `)),this._$el=vt.find(Tn(".dev-tools")),this._$tools=this._$el.find(Tn(".tools"))}},{key:"_initTab",value:function(){var vt=this;this._tab=new B0.Z(this._$el.find(Tn(".tab")).get(0),{height:40}),this._tab.on("select",function(jt){return vt.showTool(jt)})}},{key:"_initNotification",value:function(){this._notification=new(P0())(this._$el.find(Tn(".notification")).get(0),{position:{x:"center",y:"top"}})}},{key:"_initModal",value:function(){Do.Z.setContainer(this._$el.find(Tn(".modal")).get(0))}},{key:"_bindEvent",value:function(){var vt=this,jt=this._$el.find(Tn(".resizer")),Wt=this._$el.find(Tn(".nav-bar")),yn=st()(document),Dn=function(vr){if(vt._isResizing){vr.preventDefault(),vr.stopPropagation(),vr=vr.origEvent;var wr=(vt._resizeStartY-$o("y",vr))/window.innerHeight*100,Nr=vt._resizeStartSize+wr;Nr<40?Nr=40:Nr>100&&(Nr=100),vt.config.set("displaySize",ls()(Nr.toFixed(2)))}},tr=function vr(){clearTimeout(vt._resizeTimer),vt._isResizing=!1,jt.css("height",10),yn.off(ko("move"),Dn),yn.off(ko("end"),vr)};jt.css("height",10),jt.on(ko("start"),function(vr){vr.preventDefault(),vr.stopPropagation(),vr=vr.origEvent,vt._isResizing=!0,vt._resizeStartSize=vt.config.get("displaySize"),vt._resizeStartY=$o("y",vr),jt.css("height","100%"),yn.on(ko("move"),Dn),yn.on(ko("end"),tr)}),Wt.on("contextmenu",function(vr){return vr.preventDefault()}),this.$container.on("click",function(vr){return vr.stopPropagation()}),window.addEventListener("resize",this._checkSafeArea),ut.on(ut.SCALE,this._updateTabHeight)}}]),Ht}(it()),D0=d(8816);function F0(ln){var Jt=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ht,vt=(0,nt.Z)(ln);if(Jt){var jt=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,jt)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}cs().start();var U0=function(ln){(0,tt.Z)(Ht,ln);var Jt=F0(Ht);function Ht(){var vt,jt=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).name,Wt=jt===void 0?"console":jt;return(0,j.Z)(this,Ht),vt=Jt.call(this),(0,ot.Z)((0,et.Z)(vt),"_handleShow",function(){Lo()(vt._$el.get(0))||vt._logger.renderViewport()}),(0,ot.Z)((0,et.Z)(vt),"_handleErr",function(yn){vt._logger.error(yn)}),it().mixin((0,et.Z)(vt)),vt.name=Wt,vt._selectedLog=null,vt}return(0,$.Z)(Ht,[{key:"init",value:function(vt,jt){(0,ht.Z)((0,nt.Z)(Ht.prototype),"init",this).call(this,vt),this._container=jt,this._appendTpl(),this._initCfg(),this._initLogger(),this._exposeLogger(),this._bindEvent()}},{key:"show",value:function(){(0,ht.Z)((0,nt.Z)(Ht.prototype),"show",this).call(this),this._handleShow()}},{key:"overrideConsole",value:function(){var vt=this,jt=this._origConsole={},Wt=window.console;return Fs.forEach(function(yn){var Dn=jt[yn]=Qs();Wt[yn]&&(Dn=jt[yn]=Wt[yn].bind(Wt)),Wt[yn]=function(){vt[yn].apply(vt,arguments),Dn.apply(void 0,arguments)}}),this}},{key:"setGlobal",value:function(vt,jt){this._logger.setGlobal(vt,jt)}},{key:"restoreConsole",value:function(){var vt=this;return this._origConsole?(Fs.forEach(function(jt){return window.console[jt]=vt._origConsole[jt]}),delete this._origConsole,this):this}},{key:"catchGlobalErr",value:function(){return cs().addListener(this._handleErr),this}},{key:"ignoreGlobalErr",value:function(){return cs().rmListener(this._handleErr),this}},{key:"filter",value:function(vt){var jt=this._$filterText,Wt=this._logger;Ot()(vt)?(jt.text(vt),Wt.setOption("filter",To()(vt))):Vs()(vt)?(jt.text(Qt()(vt)),Wt.setOption("filter",vt)):Ao()(vt)&&(jt.text("ƒ"),Wt.setOption("filter",vt))}},{key:"destroy",value:function(){this._logger.destroy(),(0,ht.Z)((0,nt.Z)(Ht.prototype),"destroy",this).call(this),this._container.off("show",this._handleShow),this._style&&Vn.remove(this._style),this.ignoreGlobalErr(),this.restoreConsole(),this._rmCfg()}},{key:"_enableJsExecution",value:function(vt){var jt=this._$el,Wt=jt.find(Tn(".js-input"));vt?(Wt.show(),jt.rmClass(Tn("js-input-hidden"))):(Wt.hide(),jt.addClass(Tn("js-input-hidden")))}},{key:"_appendTpl",value:function(){var vt=this._$el;this._style=Vn(d(3191)),vt.append(Tn(` + `)),this._$el=vt.find(Tn(".dev-tools")),this._$tools=this._$el.find(Tn(".tools"))}},{key:"_initTab",value:function(){var vt=this;this._tab=new P0.Z(this._$el.find(Tn(".tab")).get(0),{height:40}),this._tab.on("select",function(jt){return vt.showTool(jt)})}},{key:"_initNotification",value:function(){this._notification=new(B0())(this._$el.find(Tn(".notification")).get(0),{position:{x:"center",y:"top"}})}},{key:"_initModal",value:function(){Do.Z.setContainer(this._$el.find(Tn(".modal")).get(0))}},{key:"_bindEvent",value:function(){var vt=this,jt=this._$el.find(Tn(".resizer")),zt=this._$el.find(Tn(".nav-bar")),yn=st()(document),Dn=function(vr){if(vt._isResizing){vr.preventDefault(),vr.stopPropagation(),vr=vr.origEvent;var wr=(vt._resizeStartY-$o("y",vr))/window.innerHeight*100,Nr=vt._resizeStartSize+wr;Nr<40?Nr=40:Nr>100&&(Nr=100),vt.config.set("displaySize",ls()(Nr.toFixed(2)))}},tr=function vr(){clearTimeout(vt._resizeTimer),vt._isResizing=!1,jt.css("height",10),yn.off(ko("move"),Dn),yn.off(ko("end"),vr)};jt.css("height",10),jt.on(ko("start"),function(vr){vr.preventDefault(),vr.stopPropagation(),vr=vr.origEvent,vt._isResizing=!0,vt._resizeStartSize=vt.config.get("displaySize"),vt._resizeStartY=$o("y",vr),jt.css("height","100%"),yn.on(ko("move"),Dn),yn.on(ko("end"),tr)}),zt.on("contextmenu",function(vr){return vr.preventDefault()}),this.$container.on("click",function(vr){return vr.stopPropagation()}),window.addEventListener("resize",this._checkSafeArea),ut.on(ut.SCALE,this._updateTabHeight)}}]),Ht}(it()),D0=d(8816);function F0(ln){var Jt=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ht,vt=(0,nt.Z)(ln);if(Jt){var jt=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,jt)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}cs().start();var U0=function(ln){(0,tt.Z)(Ht,ln);var Jt=F0(Ht);function Ht(){var vt,jt=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).name,zt=jt===void 0?"console":jt;return(0,j.Z)(this,Ht),vt=Jt.call(this),(0,ot.Z)((0,et.Z)(vt),"_handleShow",function(){Lo()(vt._$el.get(0))||vt._logger.renderViewport()}),(0,ot.Z)((0,et.Z)(vt),"_handleErr",function(yn){vt._logger.error(yn)}),it().mixin((0,et.Z)(vt)),vt.name=zt,vt._selectedLog=null,vt}return(0,$.Z)(Ht,[{key:"init",value:function(vt,jt){(0,ht.Z)((0,nt.Z)(Ht.prototype),"init",this).call(this,vt),this._container=jt,this._appendTpl(),this._initCfg(),this._initLogger(),this._exposeLogger(),this._bindEvent()}},{key:"show",value:function(){(0,ht.Z)((0,nt.Z)(Ht.prototype),"show",this).call(this),this._handleShow()}},{key:"overrideConsole",value:function(){var vt=this,jt=this._origConsole={},zt=window.console;return Fs.forEach(function(yn){var Dn=jt[yn]=Qs();zt[yn]&&(Dn=jt[yn]=zt[yn].bind(zt)),zt[yn]=function(){vt[yn].apply(vt,arguments),Dn.apply(void 0,arguments)}}),this}},{key:"setGlobal",value:function(vt,jt){this._logger.setGlobal(vt,jt)}},{key:"restoreConsole",value:function(){var vt=this;return this._origConsole?(Fs.forEach(function(jt){return window.console[jt]=vt._origConsole[jt]}),delete this._origConsole,this):this}},{key:"catchGlobalErr",value:function(){return cs().addListener(this._handleErr),this}},{key:"ignoreGlobalErr",value:function(){return cs().rmListener(this._handleErr),this}},{key:"filter",value:function(vt){var jt=this._$filterText,zt=this._logger;Ot()(vt)?(jt.text(vt),zt.setOption("filter",To()(vt))):Vs()(vt)?(jt.text(Qt()(vt)),zt.setOption("filter",vt)):Ao()(vt)&&(jt.text("ƒ"),zt.setOption("filter",vt))}},{key:"destroy",value:function(){this._logger.destroy(),(0,ht.Z)((0,nt.Z)(Ht.prototype),"destroy",this).call(this),this._container.off("show",this._handleShow),this._style&&Vn.remove(this._style),this.ignoreGlobalErr(),this.restoreConsole(),this._rmCfg()}},{key:"_enableJsExecution",value:function(vt){var jt=this._$el,zt=jt.find(Tn(".js-input"));vt?(zt.show(),jt.rmClass(Tn("js-input-hidden"))):(zt.hide(),jt.addClass(Tn("js-input-hidden")))}},{key:"_appendTpl",value:function(){var vt=this._$el;this._style=Vn(d(3191)),vt.append(Tn(`
    All @@ -135,7 +135,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
    - `));var jt=vt.find(Tn(".js-input")),Wt=jt.find("textarea"),yn=jt.find(Tn(".buttons"));dn()(this,{_$control:vt.find(Tn(".control")),_$logs:vt.find(Tn(".logs-container")),_$inputContainer:jt,_$input:Wt,_$inputBtns:yn,_$filterText:vt.find(Tn(".filter-text"))})}},{key:"_initLogger",value:function(){var vt=this.config,jt=vt.get("maxLogNum");jt=jt==="infinite"?0:+jt;var Wt=this._$control.find(Tn(".level")),yn=new D0.Z(this._$logs.get(0),{asyncRender:vt.get("asyncRender"),maxNum:jt,showHeader:vt.get("displayExtraInfo"),unenumerable:vt.get("displayUnenumerable"),accessGetter:vt.get("displayGetterVal"),lazyEvaluation:vt.get("lazyEvaluation")});yn.on("optionChange",function(Dn,tr){Dn==="level"&&Wt.each(function(){var vr=st()(this),wr=vr.data("level");vr[wr===tr||wr==="all"&&mn()(tr)?"addClass":"rmClass"](Tn("active"))})}),vt.get("overrideConsole")&&this.overrideConsole(),this._logger=yn}},{key:"_exposeLogger",value:function(){var vt=this,jt=this._logger;["html"].concat(Fs).forEach(function(Wt){return vt[Wt]=function(){for(var yn=arguments.length,Dn=new Array(yn),tr=0;tr"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ht,vt=(0,nt.Z)(ln);if(Jt){var jt=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,jt)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var V0=function(ln){(0,tt.Z)(Ht,ln);var Jt=Z0(Ht);function Ht(vt,jt){var Wt;return(0,j.Z)(this,Ht),Wt=Jt.call(this),(0,ot.Z)((0,et.Z)(Wt),"_copyRes",function(){var yn=Wt._detailData,Dn="".concat(yn.method," ").concat(yn.url," ").concat(yn.status,` + `));var jt=vt.find(Tn(".js-input")),zt=jt.find("textarea"),yn=jt.find(Tn(".buttons"));dn()(this,{_$control:vt.find(Tn(".control")),_$logs:vt.find(Tn(".logs-container")),_$inputContainer:jt,_$input:zt,_$inputBtns:yn,_$filterText:vt.find(Tn(".filter-text"))})}},{key:"_initLogger",value:function(){var vt=this.config,jt=vt.get("maxLogNum");jt=jt==="infinite"?0:+jt;var zt=this._$control.find(Tn(".level")),yn=new D0.Z(this._$logs.get(0),{asyncRender:vt.get("asyncRender"),maxNum:jt,showHeader:vt.get("displayExtraInfo"),unenumerable:vt.get("displayUnenumerable"),accessGetter:vt.get("displayGetterVal"),lazyEvaluation:vt.get("lazyEvaluation")});yn.on("optionChange",function(Dn,tr){Dn==="level"&&zt.each(function(){var vr=st()(this),wr=vr.data("level");vr[wr===tr||wr==="all"&&mn()(tr)?"addClass":"rmClass"](Tn("active"))})}),vt.get("overrideConsole")&&this.overrideConsole(),this._logger=yn}},{key:"_exposeLogger",value:function(){var vt=this,jt=this._logger;["html"].concat(Fs).forEach(function(zt){return vt[zt]=function(){for(var yn=arguments.length,Dn=new Array(yn),tr=0;tr"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ht,vt=(0,nt.Z)(ln);if(Jt){var jt=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,jt)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var V0=function(ln){(0,tt.Z)(Ht,ln);var Jt=Z0(Ht);function Ht(vt,jt){var zt;return(0,j.Z)(this,Ht),zt=Jt.call(this),(0,ot.Z)((0,et.Z)(zt),"_copyRes",function(){var yn=zt._detailData,Dn="".concat(yn.method," ").concat(yn.url," ").concat(yn.status,` `);vo()(yn.reqHeaders)||(Dn+=` Request Headers @@ -146,7 +146,7 @@ Response Headers `,_t()(yn.resHeaders,function(tr,vr){return Dn+="".concat(vr,": ").concat(tr,` `)})),yn.resTxt&&(Dn+=` `.concat(yn.resTxt,` -`)),pn()(Dn),Wt._devtools.notify("Copied")}),Wt._$container=vt,Wt._devtools=jt,Wt._detailData={},Wt._bindEvent(),Wt}return(0,$.Z)(Ht,[{key:"show",value:function(vt){vt.resTxt&&To()(vt.resTxt)===""&&delete vt.resTxt,vo()(vt.resHeaders)&&delete vt.resHeaders,vo()(vt.reqHeaders)&&delete vt.reqHeaders;var jt="";vt.data&&(jt='
    ').concat(Kr()(vt.data),"
    "));var Wt="Empty";vt.reqHeaders&&(Wt=ho()(vt.reqHeaders,function(wr,Nr){return` +`)),pn()(Dn),zt._devtools.notify("Copied")}),zt._$container=vt,zt._devtools=jt,zt._detailData={},zt._bindEvent(),zt}return(0,$.Z)(Ht,[{key:"show",value:function(vt){vt.resTxt&&To()(vt.resTxt)===""&&delete vt.resTxt,vo()(vt.resHeaders)&&delete vt.resHeaders,vo()(vt.reqHeaders)&&delete vt.reqHeaders;var jt="";vt.data&&(jt='
    ').concat(Kr()(vt.data),"
    "));var zt="Empty";vt.reqHeaders&&(zt=ho()(vt.reqHeaders,function(wr,Nr){return` ').concat(Kr()(Nr),` `).concat(Kr()(wr),` `)}).join(""));var yn="Empty";vt.resHeaders&&(yn=ho()(vt.resHeaders,function(wr,Nr){return` @@ -172,16 +172,16 @@ Response Headers

    Request Headers

    - `).concat(Wt,` + `).concat(zt,`
    `).concat(Dn,` - `);this._$container.html(vr).show(),this._detailData=vt}},{key:"hide",value:function(){this._$container.hide(),this.emit("hide")}},{key:"_bindEvent",value:function(){var vt=this,jt=this._devtools;this._$container.on("click",Tn(".back"),function(){return vt.hide()}).on("click",Tn(".copy-res"),this._copyRes).on("click",Tn(".http .response"),function(){var yn=vt._detailData,Dn=yn.resTxt;if(W0()(Dn))return Wt("object",Dn);switch(yn.subType){case"css":return Wt("css",Dn);case"html":return Wt("html",Dn);case"javascript":return Wt("js",Dn);case"json":return Wt("object",Dn)}return yn.type==="image"?Wt("img",yn.url):void 0});var Wt=function(yn,Dn){var tr=jt.get("sources");tr&&(tr.set(yn,Dn),jt.showTool("sources"))}}}]),Ht}(it()),fl=1e5,q0=d(9143),G0=d.n(q0),K0=d(2139),Y0=d(8689),Us=d(7935),Q0=d(9119);function hl(ln,Jt){var Ht=Object.keys(ln);if(Object.getOwnPropertySymbols){var vt=Object.getOwnPropertySymbols(ln);Jt&&(vt=vt.filter(function(jt){return Object.getOwnPropertyDescriptor(ln,jt).enumerable})),Ht.push.apply(Ht,vt)}return Ht}function pl(ln){for(var Jt=1;Jt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ht,vt=(0,nt.Z)(ln);if(Jt){var jt=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,jt)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var rp=function(ln){(0,tt.Z)(Ht,ln);var Jt=np(Ht);function Ht(){var vt;return(0,j.Z)(this,Ht),vt=Jt.call(this),(0,ot.Z)((0,et.Z)(vt),"_reqWillBeSent",function(jt){if(vt._isRecording){var Wt,yn={name:ll(jt.request.url),url:jt.request.url,status:"pending",type:"unknown",subType:"unknown",size:0,data:jt.request.postData,method:jt.request.method,startTime:1e3*jt.timestamp,time:0,resTxt:"",done:!1,reqHeaders:jt.request.headers||{},resHeaders:{}};yn.render=function(){var Dn={name:yn.name,method:yn.method,status:yn.status,type:yn.subType,size:yn.size,time:yn.displayTime};Wt?(Wt.data=Dn,Wt.render()):(Wt=vt._requestDataGrid.append(Dn,{selectable:!0}),st()(Wt.container).data("id",jt.requestId)),yn.hasErr&&st()(Wt.container).addClass(Tn("request-error"))},yn.render(),vt._requests[jt.requestId]=yn}}),(0,ot.Z)((0,et.Z)(vt),"_resReceivedExtraInfo",function(jt){var Wt=vt._requests[jt.requestId];vt._isRecording&&Wt&&(Wt.resHeaders=jt.headers,vt._updateType(Wt),Wt.render())}),(0,ot.Z)((0,et.Z)(vt),"_resReceived",function(jt){var Wt=vt._requests[jt.requestId];if(vt._isRecording&&Wt){var yn=jt.response,Dn=yn.status,tr=yn.headers;Wt.status=Dn,(Dn<200||Dn>=300)&&(Wt.hasErr=!0),tr&&(Wt.resHeaders=tr,vt._updateType(Wt)),Wt.render()}}),(0,ot.Z)((0,et.Z)(vt),"_loadingFinished",function(jt){var Wt=vt._requests[jt.requestId];if(vt._isRecording&&Wt){var yn=1e3*jt.timestamp;Wt.time=yn-Wt.startTime,Wt.displayTime=Ys()(Wt.time),Wt.size=jt.encodedDataLength,Wt.done=!0,Wt.resTxt=uo.domain("Network").getResponseBody({requestId:jt.requestId}).body,Wt.render()}}),(0,ot.Z)((0,et.Z)(vt),"_copyCurl",function(){var jt=vt._selectedRequest;pn()(function(Wt){var yn=Wo()();yn==="windows"&&(yn="win");var Dn=[],tr=tp()(["accept-encoding","host","method","path","scheme","version"]),vr=yn==="win"?function(_o){var ms=/[\r\n]/.test(_o)?'^"':'"';return ms+_o.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/[^a-zA-Z0-9\s_\-:=+~'\/.',?;()*`&]/g,"^$&").replace(/%(?=[a-zA-Z0-9_])/g,"%^").replace(/\r?\n/g,`^ + `);this._$container.html(vr).show(),this._detailData=vt}},{key:"hide",value:function(){this._$container.hide(),this.emit("hide")}},{key:"_bindEvent",value:function(){var vt=this,jt=this._devtools;this._$container.on("click",Tn(".back"),function(){return vt.hide()}).on("click",Tn(".copy-res"),this._copyRes).on("click",Tn(".http .response"),function(){var yn=vt._detailData,Dn=yn.resTxt;if(z0()(Dn))return zt("object",Dn);switch(yn.subType){case"css":return zt("css",Dn);case"html":return zt("html",Dn);case"javascript":return zt("js",Dn);case"json":return zt("object",Dn)}return yn.type==="image"?zt("img",yn.url):void 0});var zt=function(yn,Dn){var tr=jt.get("sources");tr&&(tr.set(yn,Dn),jt.showTool("sources"))}}}]),Ht}(it()),fl=1e5,q0=d(9143),G0=d.n(q0),K0=d(2139),Y0=d(8689),Us=d(7935),Q0=d(9119);function hl(ln,Jt){var Ht=Object.keys(ln);if(Object.getOwnPropertySymbols){var vt=Object.getOwnPropertySymbols(ln);Jt&&(vt=vt.filter(function(jt){return Object.getOwnPropertyDescriptor(ln,jt).enumerable})),Ht.push.apply(Ht,vt)}return Ht}function pl(ln){for(var Jt=1;Jt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ht,vt=(0,nt.Z)(ln);if(Jt){var jt=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,jt)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var rp=function(ln){(0,tt.Z)(Ht,ln);var Jt=np(Ht);function Ht(){var vt;return(0,j.Z)(this,Ht),vt=Jt.call(this),(0,ot.Z)((0,et.Z)(vt),"_reqWillBeSent",function(jt){if(vt._isRecording){var zt,yn={name:ll(jt.request.url),url:jt.request.url,status:"pending",type:"unknown",subType:"unknown",size:0,data:jt.request.postData,method:jt.request.method,startTime:1e3*jt.timestamp,time:0,resTxt:"",done:!1,reqHeaders:jt.request.headers||{},resHeaders:{}};yn.render=function(){var Dn={name:yn.name,method:yn.method,status:yn.status,type:yn.subType,size:yn.size,time:yn.displayTime};zt?(zt.data=Dn,zt.render()):(zt=vt._requestDataGrid.append(Dn,{selectable:!0}),st()(zt.container).data("id",jt.requestId)),yn.hasErr&&st()(zt.container).addClass(Tn("request-error"))},yn.render(),vt._requests[jt.requestId]=yn}}),(0,ot.Z)((0,et.Z)(vt),"_resReceivedExtraInfo",function(jt){var zt=vt._requests[jt.requestId];vt._isRecording&&zt&&(zt.resHeaders=jt.headers,vt._updateType(zt),zt.render())}),(0,ot.Z)((0,et.Z)(vt),"_resReceived",function(jt){var zt=vt._requests[jt.requestId];if(vt._isRecording&&zt){var yn=jt.response,Dn=yn.status,tr=yn.headers;zt.status=Dn,(Dn<200||Dn>=300)&&(zt.hasErr=!0),tr&&(zt.resHeaders=tr,vt._updateType(zt)),zt.render()}}),(0,ot.Z)((0,et.Z)(vt),"_loadingFinished",function(jt){var zt=vt._requests[jt.requestId];if(vt._isRecording&&zt){var yn=1e3*jt.timestamp;zt.time=yn-zt.startTime,zt.displayTime=Ys()(zt.time),zt.size=jt.encodedDataLength,zt.done=!0,zt.resTxt=uo.domain("Network").getResponseBody({requestId:jt.requestId}).body,zt.render()}}),(0,ot.Z)((0,et.Z)(vt),"_copyCurl",function(){var jt=vt._selectedRequest;pn()(function(zt){var yn=zo()();yn==="windows"&&(yn="win");var Dn=[],tr=tp()(["accept-encoding","host","method","path","scheme","version"]),vr=yn==="win"?function(_o){var ms=/[\r\n]/.test(_o)?'^"':'"';return ms+_o.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/[^a-zA-Z0-9\s_\-:=+~'\/.',?;()*`&]/g,"^$&").replace(/%(?=[a-zA-Z0-9_])/g,"%^").replace(/\r?\n/g,`^ -`)+ms}:function(_o){return/[\0-\x1F\x7F-\x9F!]|\'/.test(_o)?"$'"+_o.replace(/\\/g,"\\\\").replace(/\'/g,"\\'").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\0-\x1F\x7F-\x9F!]/g,function(ms){for(var vs=ms.charCodeAt(0).toString(16);vs.length<4;)vs="0"+vs;return"\\u"+vs})+"'":"'"+_o+"'"};Dn.push(vr(Wt.url()).replace(/[[{}\]]/g,"\\$&"));var wr="GET",Nr=[],Vr=Wt.requestFormData();Vr&&(Nr.push("--data-raw "+vr(Vr)),tr["content-length"]=!0,wr="POST"),Wt.requestMethod!==wr&&Dn.push("-X "+vr(Wt.requestMethod));for(var Jr=Wt.requestHeaders(),lo=0;lo=3?yn==="win"?` ^ +`)+ms}:function(_o){return/[\0-\x1F\x7F-\x9F!]|\'/.test(_o)?"$'"+_o.replace(/\\/g,"\\\\").replace(/\'/g,"\\'").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\0-\x1F\x7F-\x9F!]/g,function(ms){for(var vs=ms.charCodeAt(0).toString(16);vs.length<4;)vs="0"+vs;return"\\u"+vs})+"'":"'"+_o+"'"};Dn.push(vr(zt.url()).replace(/[[{}\]]/g,"\\$&"));var wr="GET",Nr=[],Vr=zt.requestFormData();Vr&&(Nr.push("--data-raw "+vr(Vr)),tr["content-length"]=!0,wr="POST"),zt.requestMethod!==wr&&Dn.push("-X "+vr(zt.requestMethod));for(var Jr=zt.requestHeaders(),lo=0;lo=3?yn==="win"?` ^ `:` \\ - `:" ")}({requestMethod:jt.method,url:function(){return jt.url},requestFormData:function(){return jt.data},requestHeaders:function(){var Wt=jt.reqHeaders||{};return dn()(Wt,{"User-Agent":navigator.userAgent,Referer:location.href}),ho()(Wt,function(yn,Dn){return{name:Dn,value:yn}})}})),vt._container.notify("Copied")}),(0,ot.Z)((0,et.Z)(vt),"_toggleRecording",function(){vt._$control.find(Tn(".record")).toggleClass(Tn("recording")),vt._isRecording=!vt._isRecording}),(0,ot.Z)((0,et.Z)(vt),"_showDetail",function(){vt._selectedRequest&&(vt._splitMode&&vt._$network.css("width","50%"),vt._detail.show(vt._selectedRequest))}),(0,ot.Z)((0,et.Z)(vt),"_updateScale",function(jt){vt._splitMediaQuery.setQuery("screen and (min-width: ".concat(680*jt,"px)"))}),vt._style=Vn(d(3180)),vt.name="network",vt._requests={},vt._selectedRequest=null,vt._isRecording=!0,vt}return(0,$.Z)(Ht,[{key:"init",value:function(vt,jt){(0,ht.Z)((0,nt.Z)(Ht.prototype),"init",this).call(this,vt),this._container=jt,this._initTpl(),this._detail=new V0(this._$detail,jt),this._splitMediaQuery=new(It())("screen and (min-width: 680px)"),this._splitMode=this._splitMediaQuery.isMatch(),this._requestDataGrid=new zs.Z(this._$requests.get(0),{columns:[{id:"name",title:"Name",sortable:!0,weight:30},{id:"method",title:"Method",sortable:!0,weight:14},{id:"status",title:"Status",sortable:!0,weight:14},{id:"type",title:"Type",sortable:!0,weight:14},{id:"size",title:"Size",sortable:!0,weight:14},{id:"time",title:"Time",sortable:!0,weight:14}]}),this._resizeSensor=new(X0())(vt.get(0)),this._bindEvent()}},{key:"show",value:function(){(0,ht.Z)((0,nt.Z)(Ht.prototype),"show",this).call(this),this._updateDataGridHeight()}},{key:"clear",value:function(){this._requests={},this._requestDataGrid.clear()}},{key:"requests",value:function(){var vt=[];return _t()(this._requests,function(jt){vt.push(jt)}),vt}},{key:"_updateDataGridHeight",value:function(){var vt=this._$el.offset().height-this._$control.offset().height;this._requestDataGrid.setOption({minHeight:vt,maxHeight:vt})}},{key:"_updateType",value:function(vt){var jt=function(Dn){if(!Dn)return"unknown";var tr=Dn.split(";")[0].split("/");return{type:tr[0],subType:as()(tr)}}(vt.resHeaders["content-type"]||""),Wt=jt.type,yn=jt.subType;vt.type=Wt,vt.subType=yn}},{key:"_updateButtons",value:function(){var vt=this._$control,jt=vt.find(Tn(".show-detail")),Wt=vt.find(Tn(".copy-curl")),yn=Tn("icon-disabled");jt.addClass(yn),Wt.addClass(yn),this._selectedRequest&&(jt.rmClass(yn),Wt.rmClass(yn))}},{key:"_bindEvent",value:function(){var vt=this,jt=this._$control,Wt=this._$filterText,yn=this._requestDataGrid,Dn=this;jt.on("click",Tn(".clear-request"),function(){return vt.clear()}).on("click",Tn(".show-detail"),this._showDetail).on("click",Tn(".copy-curl"),this._copyCurl).on("click",Tn(".record"),this._toggleRecording).on("click",Tn(".filter"),function(){Do.Z.prompt("Filter").then(function(vr){Xr()(vr)||(Wt.text(vr),yn.setOption("filter",To()(vr)))})}),yn.on("select",function(vr){var wr=st()(vr.container).data("id"),Nr=Dn._requests[wr];vt._selectedRequest=Nr,vt._updateButtons(),vt._splitMode&&vt._showDetail()}),yn.on("deselect",function(){vt._selectedRequest=null,vt._updateButtons(),vt._detail.hide()}),this._resizeSensor.addListener(ol()(function(){return vt._updateDataGridHeight()},15)),this._splitMediaQuery.on("match",function(){vt._detail.hide(),vt._splitMode=!0}),this._splitMediaQuery.on("unmatch",function(){vt._detail.hide(),vt._splitMode=!1}),this._detail.on("hide",function(){vt._splitMode&&vt._$network.css("width","100%")}),uo.domain("Network").enable();var tr=uo.domain("Network");tr.on("requestWillBeSent",this._reqWillBeSent),tr.on("responseReceivedExtraInfo",this._resReceivedExtraInfo),tr.on("responseReceived",this._resReceived),tr.on("loadingFinished",this._loadingFinished),ut.on(ut.SCALE,this._updateScale)}},{key:"destroy",value:function(){(0,ht.Z)((0,nt.Z)(Ht.prototype),"destroy",this).call(this),this._resizeSensor.destroy(),Vn.remove(this._style),this._splitMediaQuery.removeAllListeners();var vt=uo.domain("Network");vt.off("requestWillBeSent",this._reqWillBeSent),vt.off("responseReceivedExtraInfo",this._resReceivedExtraInfo),vt.off("responseReceived",this._resReceived),vt.off("loadingFinished",this._loadingFinished),ut.off(ut.SCALE,this._updateScale)}},{key:"_initTpl",value:function(){var vt=this._$el;vt.html(Tn(`
    + `:" ")}({requestMethod:jt.method,url:function(){return jt.url},requestFormData:function(){return jt.data},requestHeaders:function(){var zt=jt.reqHeaders||{};return dn()(zt,{"User-Agent":navigator.userAgent,Referer:location.href}),ho()(zt,function(yn,Dn){return{name:Dn,value:yn}})}})),vt._container.notify("Copied")}),(0,ot.Z)((0,et.Z)(vt),"_toggleRecording",function(){vt._$control.find(Tn(".record")).toggleClass(Tn("recording")),vt._isRecording=!vt._isRecording}),(0,ot.Z)((0,et.Z)(vt),"_showDetail",function(){vt._selectedRequest&&(vt._splitMode&&vt._$network.css("width","50%"),vt._detail.show(vt._selectedRequest))}),(0,ot.Z)((0,et.Z)(vt),"_updateScale",function(jt){vt._splitMediaQuery.setQuery("screen and (min-width: ".concat(680*jt,"px)"))}),vt._style=Vn(d(3180)),vt.name="network",vt._requests={},vt._selectedRequest=null,vt._isRecording=!0,vt}return(0,$.Z)(Ht,[{key:"init",value:function(vt,jt){(0,ht.Z)((0,nt.Z)(Ht.prototype),"init",this).call(this,vt),this._container=jt,this._initTpl(),this._detail=new V0(this._$detail,jt),this._splitMediaQuery=new(It())("screen and (min-width: 680px)"),this._splitMode=this._splitMediaQuery.isMatch(),this._requestDataGrid=new Ws.Z(this._$requests.get(0),{columns:[{id:"name",title:"Name",sortable:!0,weight:30},{id:"method",title:"Method",sortable:!0,weight:14},{id:"status",title:"Status",sortable:!0,weight:14},{id:"type",title:"Type",sortable:!0,weight:14},{id:"size",title:"Size",sortable:!0,weight:14},{id:"time",title:"Time",sortable:!0,weight:14}]}),this._resizeSensor=new(X0())(vt.get(0)),this._bindEvent()}},{key:"show",value:function(){(0,ht.Z)((0,nt.Z)(Ht.prototype),"show",this).call(this),this._updateDataGridHeight()}},{key:"clear",value:function(){this._requests={},this._requestDataGrid.clear()}},{key:"requests",value:function(){var vt=[];return _t()(this._requests,function(jt){vt.push(jt)}),vt}},{key:"_updateDataGridHeight",value:function(){var vt=this._$el.offset().height-this._$control.offset().height;this._requestDataGrid.setOption({minHeight:vt,maxHeight:vt})}},{key:"_updateType",value:function(vt){var jt=function(Dn){if(!Dn)return"unknown";var tr=Dn.split(";")[0].split("/");return{type:tr[0],subType:as()(tr)}}(vt.resHeaders["content-type"]||""),zt=jt.type,yn=jt.subType;vt.type=zt,vt.subType=yn}},{key:"_updateButtons",value:function(){var vt=this._$control,jt=vt.find(Tn(".show-detail")),zt=vt.find(Tn(".copy-curl")),yn=Tn("icon-disabled");jt.addClass(yn),zt.addClass(yn),this._selectedRequest&&(jt.rmClass(yn),zt.rmClass(yn))}},{key:"_bindEvent",value:function(){var vt=this,jt=this._$control,zt=this._$filterText,yn=this._requestDataGrid,Dn=this;jt.on("click",Tn(".clear-request"),function(){return vt.clear()}).on("click",Tn(".show-detail"),this._showDetail).on("click",Tn(".copy-curl"),this._copyCurl).on("click",Tn(".record"),this._toggleRecording).on("click",Tn(".filter"),function(){Do.Z.prompt("Filter").then(function(vr){Xr()(vr)||(zt.text(vr),yn.setOption("filter",To()(vr)))})}),yn.on("select",function(vr){var wr=st()(vr.container).data("id"),Nr=Dn._requests[wr];vt._selectedRequest=Nr,vt._updateButtons(),vt._splitMode&&vt._showDetail()}),yn.on("deselect",function(){vt._selectedRequest=null,vt._updateButtons(),vt._detail.hide()}),this._resizeSensor.addListener(ol()(function(){return vt._updateDataGridHeight()},15)),this._splitMediaQuery.on("match",function(){vt._detail.hide(),vt._splitMode=!0}),this._splitMediaQuery.on("unmatch",function(){vt._detail.hide(),vt._splitMode=!1}),this._detail.on("hide",function(){vt._splitMode&&vt._$network.css("width","100%")}),uo.domain("Network").enable();var tr=uo.domain("Network");tr.on("requestWillBeSent",this._reqWillBeSent),tr.on("responseReceivedExtraInfo",this._resReceivedExtraInfo),tr.on("responseReceived",this._resReceived),tr.on("loadingFinished",this._loadingFinished),ut.on(ut.SCALE,this._updateScale)}},{key:"destroy",value:function(){(0,ht.Z)((0,nt.Z)(Ht.prototype),"destroy",this).call(this),this._resizeSensor.destroy(),Vn.remove(this._style),this._splitMediaQuery.removeAllListeners();var vt=uo.domain("Network");vt.off("requestWillBeSent",this._reqWillBeSent),vt.off("responseReceivedExtraInfo",this._resReceivedExtraInfo),vt.off("responseReceived",this._resReceived),vt.off("loadingFinished",this._loadingFinished),ut.off(ut.SCALE,this._updateScale)}},{key:"_initTpl",value:function(){var vt=this._$el;vt.html(Tn(`
    @@ -192,7 +192,7 @@ Response Headers
    -
    `)),this._$network=vt.find(Tn(".network")),this._$detail=vt.find(Tn(".detail")),this._$requests=vt.find(Tn(".requests")),this._$control=vt.find(Tn(".control")),this._$filterText=vt.find(Tn(".filter-text"))}}]),Ht}(ct),op=d(8209),ip=d(8613),ap=d.n(ip);function gl(ln){for(var Jt={},Ht=0,vt=ln.length;Htvr?vr:tr,Nr=0;Nrvr?1:tr(Jt=vl(Jt))?1:ln1&&arguments[1]!==void 0?arguments[1]:{}).noAttr,Ht=Jt!==void 0&&Jt;if(ln.nodeType===Node.TEXT_NODE)return'(text)');if(ln.nodeType===Node.COMMENT_NODE)return'');var vt=ln.id,jt=ln.className,Wt=ln.attributes,yn=''.concat(ln.tagName.toLowerCase(),"");if(vt!==""&&(yn+='#'.concat(vt,"")),Ot()(jt)){var Dn="";_t()(jt.split(/\s+/g),function(tr){tr.trim()!==""&&(Dn+=".".concat(tr))}),yn+=''.concat(Dn,"")}return Ht||_t()(Wt,function(tr){var vr=tr.name;vr!=="id"&&vr!=="class"&&vr!=="style"&&(yn+=' '.concat(vr,'="').concat(tr.value,'"'))}),yn}var up=function(){function ln(Jt,Ht){var vt=this;(0,j.Z)(this,ln),(0,ot.Z)(this,"hide",function(){vt._$container.hide(),vt._disableObserver(),uo.domain("Overlay").hideHighlight()}),this._$container=Jt,this._devtools=Ht,this._curEl=document.documentElement,this._bindEvent(),this._initObserver(),this._initCfg(),this._initTpl()}return(0,$.Z)(ln,[{key:"show",value:function(Jt){this._curEl=Jt,this._rmDefComputedStyle=!0,this._computedStyleSearchKeyword="",this._enableObserver(),this._render();var Ht=uo.domain("DOM").getNodeId({node:Jt}).nodeId;uo.domain("Overlay").highlightNode({nodeId:Ht,highlightConfig:{showInfo:!0,contentColor:"rgba(111, 168, 220, .66)",paddingColor:"rgba(147, 196, 125, .55)",borderColor:"rgba(255, 229, 153, .66)",marginColor:"rgba(246, 178, 107, .66)"}})}},{key:"destroy",value:function(){this._disableObserver(),this.restoreEventTarget(),this._rmCfg()}},{key:"overrideEventTarget",value:function(){var Jt=_l(),Ht=this._origAddEvent=Jt.addEventListener,vt=this._origRmEvent=Jt.removeEventListener;Jt.addEventListener=function(jt,Wt,yn){(function(Dn,tr,vr){var wr=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(!(!Eo()(Dn)||!Ao()(vr)||!Cr()(wr))){var Nr=Dn.erudaEvents=Dn.erudaEvents||{};Nr[tr]=Nr[tr]||[],Nr[tr].push({listener:vr,listenerStr:vr.toString(),useCapture:wr})}})(this,jt,Wt,yn),Ht.apply(this,arguments)},Jt.removeEventListener=function(jt,Wt,yn){(function(Dn,tr,vr){var wr=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(!(!Eo()(Dn)||!Ao()(vr)||!Cr()(wr))){var Nr=Dn.erudaEvents;if(!(!Nr||!Nr[tr])){for(var Vr=Nr[tr],Jr=0,lo=Vr.length;Jr +
    `)),this._$network=vt.find(Tn(".network")),this._$detail=vt.find(Tn(".detail")),this._$requests=vt.find(Tn(".requests")),this._$control=vt.find(Tn(".control")),this._$filterText=vt.find(Tn(".filter-text"))}}]),Ht}(ct),op=d(8209),ip=d(8613),ap=d.n(ip);function gl(ln){for(var Jt={},Ht=0,vt=ln.length;Htvr?vr:tr,Nr=0;Nrvr?1:tr(Jt=vl(Jt))?1:ln1&&arguments[1]!==void 0?arguments[1]:{}).noAttr,Ht=Jt!==void 0&&Jt;if(ln.nodeType===Node.TEXT_NODE)return'(text)');if(ln.nodeType===Node.COMMENT_NODE)return'');var vt=ln.id,jt=ln.className,zt=ln.attributes,yn=''.concat(ln.tagName.toLowerCase(),"");if(vt!==""&&(yn+='#'.concat(vt,"")),Ot()(jt)){var Dn="";_t()(jt.split(/\s+/g),function(tr){tr.trim()!==""&&(Dn+=".".concat(tr))}),yn+=''.concat(Dn,"")}return Ht||_t()(zt,function(tr){var vr=tr.name;vr!=="id"&&vr!=="class"&&vr!=="style"&&(yn+=' '.concat(vr,'="').concat(tr.value,'"'))}),yn}var up=function(){function ln(Jt,Ht){var vt=this;(0,j.Z)(this,ln),(0,ot.Z)(this,"hide",function(){vt._$container.hide(),vt._disableObserver(),uo.domain("Overlay").hideHighlight()}),this._$container=Jt,this._devtools=Ht,this._curEl=document.documentElement,this._bindEvent(),this._initObserver(),this._initCfg(),this._initTpl()}return(0,$.Z)(ln,[{key:"show",value:function(Jt){this._curEl=Jt,this._rmDefComputedStyle=!0,this._computedStyleSearchKeyword="",this._enableObserver(),this._render();var Ht=uo.domain("DOM").getNodeId({node:Jt}).nodeId;uo.domain("Overlay").highlightNode({nodeId:Ht,highlightConfig:{showInfo:!0,contentColor:"rgba(111, 168, 220, .66)",paddingColor:"rgba(147, 196, 125, .55)",borderColor:"rgba(255, 229, 153, .66)",marginColor:"rgba(246, 178, 107, .66)"}})}},{key:"destroy",value:function(){this._disableObserver(),this.restoreEventTarget(),this._rmCfg()}},{key:"overrideEventTarget",value:function(){var Jt=_l(),Ht=this._origAddEvent=Jt.addEventListener,vt=this._origRmEvent=Jt.removeEventListener;Jt.addEventListener=function(jt,zt,yn){(function(Dn,tr,vr){var wr=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(!(!Eo()(Dn)||!Ao()(vr)||!Cr()(wr))){var Nr=Dn.erudaEvents=Dn.erudaEvents||{};Nr[tr]=Nr[tr]||[],Nr[tr].push({listener:vr,listenerStr:vr.toString(),useCapture:wr})}})(this,jt,zt,yn),Ht.apply(this,arguments)},Jt.removeEventListener=function(jt,zt,yn){(function(Dn,tr,vr){var wr=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(!(!Eo()(Dn)||!Ao()(vr)||!Cr()(wr))){var Nr=Dn.erudaEvents;if(!(!Nr||!Nr[tr])){for(var Vr=Nr[tr],Jr=0,lo=Vr.length;Jr @@ -202,7 +202,7 @@ Response Headers
    -
    `);Jt.html(Ht),this._$elementName=Jt.find(Tn(".element-name")),this._$attributes=Jt.find(Tn(".attributes")),this._$styles=Jt.find(Tn(".styles")),this._$listeners=Jt.find(Tn(".listeners")),this._$computedStyle=Jt.find(Tn(".computed-style"));var vt=ap()("div");this._$boxModel=st()(vt),this._boxModel=new cp.Z(vt)}},{key:"_toggleAllComputedStyle",value:function(){this._rmDefComputedStyle=!this._rmDefComputedStyle,this._render()}},{key:"_render",value:function(){var Jt=this._getData(this._curEl),Ht=this._$attributes,vt=this._$elementName,jt=this._$styles,Wt=this._$computedStyle,yn=this._$listeners;vt.html(Jt.name);var Dn="Empty";vo()(Jt.attributes)||(Dn=ho()(Jt.attributes,function(Jr){var lo=Jr.name,go=Jr.value;return` + `);Jt.html(Ht),this._$elementName=Jt.find(Tn(".element-name")),this._$attributes=Jt.find(Tn(".attributes")),this._$styles=Jt.find(Tn(".styles")),this._$listeners=Jt.find(Tn(".listeners")),this._$computedStyle=Jt.find(Tn(".computed-style"));var vt=ap()("div");this._$boxModel=st()(vt),this._boxModel=new cp.Z(vt)}},{key:"_toggleAllComputedStyle",value:function(){this._rmDefComputedStyle=!this._rmDefComputedStyle,this._render()}},{key:"_render",value:function(){var Jt=this._getData(this._curEl),Ht=this._$attributes,vt=this._$elementName,jt=this._$styles,zt=this._$computedStyle,yn=this._$listeners;vt.html(Jt.name);var Dn="Empty";vo()(Jt.attributes)||(Dn=ho()(Jt.attributes,function(Jr){var lo=Jr.name,go=Jr.value;return` ').concat(Kr()(lo),` ').concat(go,` `)}).join("")),Dn=`

    Attributes

    @@ -241,7 +241,7 @@ Response Headers `)}).join(""),` - `),Wt.html(wr).show(),this._boxModel.setOption("element",this._curEl),Wt.find(Tn(".box-model")).append(this._$boxModel.get(0))}else Wt.text("").hide();var Vr="";Jt.listeners?(Vr=ho()(Jt.listeners,function(Jr,lo){return Jr=ho()(Jr,function(go){var xo=go.useCapture,_o=go.listenerStr;return"
  • ").concat(Kr()(_o),"
  • ")}).join(""),'
    +
    `),zt.html(wr).show(),this._boxModel.setOption("element",this._curEl),zt.find(Tn(".box-model")).append(this._$boxModel.get(0))}else zt.text("").hide();var Vr="";Jt.listeners?(Vr=ho()(Jt.listeners,function(Jr,lo){return Jr=ho()(Jr,function(go){var xo=go.useCapture,_o=go.listenerStr;return"
  • ").concat(Kr()(_o),"
  • ")}).join(""),'
    ').concat(Kr()(lo),`
      `).concat(Jr,` @@ -249,7 +249,7 @@ Response Headers
    `)}).join(""),Vr=`

    Event Listeners

    `).concat(Vr,` -
    `),yn.html(Vr).show()):yn.hide(),this._$container.show()}},{key:"_getData",value:function(Jt){var Ht={},vt=new sp(Jt),jt=Jt.className,Wt=Jt.id,yn=Jt.attributes,Dn=Jt.tagName;Ht.computedStyleSearchKeyword=this._computedStyleSearchKeyword,Ht.attributes=dp(yn),Ht.name=yl({tagName:Dn,id:Wt,className:jt,attributes:yn});var tr=Jt.erudaEvents;if(tr&&fn()(tr).length!==0&&(Ht.listeners=tr),gp(Dn))return Ht;var vr=vt.getComputedStyle(),wr=vt.getMatchedCSSRules();wr.unshift(function(Vr){for(var Jr={selectorText:"element.style",style:{}},lo=0,go=Vr.length;lo
    $&').replace(hp,function(Jt,Ht){return'url("'.concat(xl(Ht),'")')})}var pp=["script","style","meta","title","link","head"],gp=function(ln){return pp.indexOf(ln.toLowerCase())>-1},xl=function(ln){return'').concat(ln,"")},_l=function(){return tl()(window,"EventTarget.prototype")||window.Node.prototype};function mp(ln){var Jt=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ht,vt=(0,nt.Z)(ln);if(Jt){var jt=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,jt)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var vp=function(ln){(0,tt.Z)(Ht,ln);var Jt=mp(Ht);function Ht(){var vt;return(0,j.Z)(this,Ht),vt=Jt.call(this),(0,ot.Z)((0,et.Z)(vt),"_showDetail",function(){vt._isShow&&vt._curNode&&(vt._curNode.nodeType===Node.ELEMENT_NODE?vt._detail.show(vt._curNode):vt._detail.show(vt._curNode.parentNode))}),(0,ot.Z)((0,et.Z)(vt),"_back",function(){if(vt._curNode!==vt._htmlEl){for(var jt=vt._curParentQueue,Wt=jt.shift();!Cl(Wt);)Wt=jt.shift();vt.set(Wt)}}),(0,ot.Z)((0,et.Z)(vt),"_updateScale",function(jt){vt._splitMediaQuery.setQuery("screen and (min-width: ".concat(680*jt,"px)"))}),(0,ot.Z)((0,et.Z)(vt),"_deleteNode",function(){var jt=vt._curNode;jt.parentNode&&jt.parentNode.removeChild(jt)}),(0,ot.Z)((0,et.Z)(vt),"_copyNode",function(){var jt=vt._curNode;jt.nodeType===Node.ELEMENT_NODE?pn()(jt.outerHTML):pn()(jt.nodeValue),vt._container.notify("Copied")}),(0,ot.Z)((0,et.Z)(vt),"_toggleSelect",function(){vt._$el.find(Tn(".select")).toggleClass(Tn("active")),vt._selectElement=!vt._selectElement,vt._selectElement?(uo.domain("Overlay").setInspectMode({mode:"searchForNode",highlightConfig:{showInfo:!Oo()(),showRulers:!1,showAccessibilityInfo:!Oo()(),showExtensionLines:!1,contrastAlgorithm:"aa",contentColor:"rgba(111, 168, 220, .66)",paddingColor:"rgba(147, 196, 125, .55)",borderColor:"rgba(255, 229, 153, .66)",marginColor:"rgba(246, 178, 107, .66)"}}),vt._container.hide()):(uo.domain("Overlay").setInspectMode({mode:"none"}),uo.domain("Overlay").hideHighlight())}),(0,ot.Z)((0,et.Z)(vt),"_inspectNodeRequested",function(jt){var Wt=jt.backendNodeId;vt._container.show(),vt._toggleSelect();var yn=uo.domain("DOM").getNode({nodeId:Wt}).node;vt.select(yn)}),(0,ot.Z)((0,et.Z)(vt),"_setNode",function(jt){if(jt!==vt._curNode){vt._curNode=jt,vt._renderCrumbs();for(var Wt=[],yn=jt.parentNode;yn;)Wt.push(yn),yn=yn.parentNode;vt._curParentQueue=Wt,vt._splitMode&&vt._showDetail(),vt._updateButtons(),vt._updateHistory()}}),vt._style=Vn(d(5896)),vt.name="elements",vt._selectElement=!1,vt._observeElement=!0,vt._history=[],it().mixin((0,et.Z)(vt)),vt}return(0,$.Z)(Ht,[{key:"init",value:function(vt,jt){var Wt=this;(0,ht.Z)((0,nt.Z)(Ht.prototype),"init",this).call(this,vt),this._container=jt,this._initTpl(),this._htmlEl=document.documentElement,this._detail=new up(this._$detail,jt),this.config=this._detail.config,this._splitMediaQuery=new(It())("screen and (min-width: 680px)"),this._splitMode=this._splitMediaQuery.isMatch(),this._domViewer=new op.Z(this._$domViewer.get(0),{node:this._htmlEl,ignore:function(yn){return Yo(yn)||cl(yn)}}),this._domViewer.expand(),this._bindEvent(),uo.domain("Overlay").enable(),yt()(function(){return Wt._updateHistory()})}},{key:"show",value:function(){(0,ht.Z)((0,nt.Z)(Ht.prototype),"show",this).call(this),this._isShow=!0,this._curNode?this._splitMode&&this._showDetail():this.select(document.body)}},{key:"hide",value:function(){(0,ht.Z)((0,nt.Z)(Ht.prototype),"hide",this).call(this),this._isShow=!1,uo.domain("Overlay").hideHighlight()}},{key:"set",value:function(vt){return this.select(vt)}},{key:"select",value:function(vt){return this._domViewer.select(vt),this._setNode(vt),this.emit("change",vt),this}},{key:"destroy",value:function(){(0,ht.Z)((0,nt.Z)(Ht.prototype),"destroy",this).call(this),ut.off(ut.SCALE,this._updateScale),Vn.remove(this._style),this._detail.destroy(),uo.domain("Overlay").off("inspectNodeRequested",this._inspectNodeRequested),uo.domain("Overlay").disable(),this._splitMediaQuery.removeAllListeners()}},{key:"_updateButtons",value:function(){var vt=this._$control,jt=vt.find(Tn(".show-detail")),Wt=vt.find(Tn(".copy-node")),yn=vt.find(Tn(".delete-node")),Dn=Tn("icon-disabled");jt.addClass(Dn),Wt.addClass(Dn),yn.addClass(Dn);var tr=this._curNode;tr&&(tr!==document.documentElement&&tr!==document.body&&yn.rmClass(Dn),Wt.rmClass(Dn),tr.nodeType===Node.ELEMENT_NODE&&jt.rmClass(Dn))}},{key:"_initTpl",value:function(){var vt=this._$el;vt.html(Tn(`
    +
    `),yn.html(Vr).show()):yn.hide(),this._$container.show()}},{key:"_getData",value:function(Jt){var Ht={},vt=new sp(Jt),jt=Jt.className,zt=Jt.id,yn=Jt.attributes,Dn=Jt.tagName;Ht.computedStyleSearchKeyword=this._computedStyleSearchKeyword,Ht.attributes=dp(yn),Ht.name=yl({tagName:Dn,id:zt,className:jt,attributes:yn});var tr=Jt.erudaEvents;if(tr&&fn()(tr).length!==0&&(Ht.listeners=tr),gp(Dn))return Ht;var vr=vt.getComputedStyle(),wr=vt.getMatchedCSSRules();wr.unshift(function(Vr){for(var Jr={selectorText:"element.style",style:{}},lo=0,go=Vr.length;lo
    $&').replace(hp,function(Jt,Ht){return'url("'.concat(xl(Ht),'")')})}var pp=["script","style","meta","title","link","head"],gp=function(ln){return pp.indexOf(ln.toLowerCase())>-1},xl=function(ln){return'').concat(ln,"")},_l=function(){return tl()(window,"EventTarget.prototype")||window.Node.prototype};function mp(ln){var Jt=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ht,vt=(0,nt.Z)(ln);if(Jt){var jt=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,jt)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var vp=function(ln){(0,tt.Z)(Ht,ln);var Jt=mp(Ht);function Ht(){var vt;return(0,j.Z)(this,Ht),vt=Jt.call(this),(0,ot.Z)((0,et.Z)(vt),"_showDetail",function(){vt._isShow&&vt._curNode&&(vt._curNode.nodeType===Node.ELEMENT_NODE?vt._detail.show(vt._curNode):vt._detail.show(vt._curNode.parentNode))}),(0,ot.Z)((0,et.Z)(vt),"_back",function(){if(vt._curNode!==vt._htmlEl){for(var jt=vt._curParentQueue,zt=jt.shift();!Cl(zt);)zt=jt.shift();vt.set(zt)}}),(0,ot.Z)((0,et.Z)(vt),"_updateScale",function(jt){vt._splitMediaQuery.setQuery("screen and (min-width: ".concat(680*jt,"px)"))}),(0,ot.Z)((0,et.Z)(vt),"_deleteNode",function(){var jt=vt._curNode;jt.parentNode&&jt.parentNode.removeChild(jt)}),(0,ot.Z)((0,et.Z)(vt),"_copyNode",function(){var jt=vt._curNode;jt.nodeType===Node.ELEMENT_NODE?pn()(jt.outerHTML):pn()(jt.nodeValue),vt._container.notify("Copied")}),(0,ot.Z)((0,et.Z)(vt),"_toggleSelect",function(){vt._$el.find(Tn(".select")).toggleClass(Tn("active")),vt._selectElement=!vt._selectElement,vt._selectElement?(uo.domain("Overlay").setInspectMode({mode:"searchForNode",highlightConfig:{showInfo:!Oo()(),showRulers:!1,showAccessibilityInfo:!Oo()(),showExtensionLines:!1,contrastAlgorithm:"aa",contentColor:"rgba(111, 168, 220, .66)",paddingColor:"rgba(147, 196, 125, .55)",borderColor:"rgba(255, 229, 153, .66)",marginColor:"rgba(246, 178, 107, .66)"}}),vt._container.hide()):(uo.domain("Overlay").setInspectMode({mode:"none"}),uo.domain("Overlay").hideHighlight())}),(0,ot.Z)((0,et.Z)(vt),"_inspectNodeRequested",function(jt){var zt=jt.backendNodeId;vt._container.show(),vt._toggleSelect();var yn=uo.domain("DOM").getNode({nodeId:zt}).node;vt.select(yn)}),(0,ot.Z)((0,et.Z)(vt),"_setNode",function(jt){if(jt!==vt._curNode){vt._curNode=jt,vt._renderCrumbs();for(var zt=[],yn=jt.parentNode;yn;)zt.push(yn),yn=yn.parentNode;vt._curParentQueue=zt,vt._splitMode&&vt._showDetail(),vt._updateButtons(),vt._updateHistory()}}),vt._style=Vn(d(5896)),vt.name="elements",vt._selectElement=!1,vt._observeElement=!0,vt._history=[],it().mixin((0,et.Z)(vt)),vt}return(0,$.Z)(Ht,[{key:"init",value:function(vt,jt){var zt=this;(0,ht.Z)((0,nt.Z)(Ht.prototype),"init",this).call(this,vt),this._container=jt,this._initTpl(),this._htmlEl=document.documentElement,this._detail=new up(this._$detail,jt),this.config=this._detail.config,this._splitMediaQuery=new(It())("screen and (min-width: 680px)"),this._splitMode=this._splitMediaQuery.isMatch(),this._domViewer=new op.Z(this._$domViewer.get(0),{node:this._htmlEl,ignore:function(yn){return Yo(yn)||cl(yn)}}),this._domViewer.expand(),this._bindEvent(),uo.domain("Overlay").enable(),yt()(function(){return zt._updateHistory()})}},{key:"show",value:function(){(0,ht.Z)((0,nt.Z)(Ht.prototype),"show",this).call(this),this._isShow=!0,this._curNode?this._splitMode&&this._showDetail():this.select(document.body)}},{key:"hide",value:function(){(0,ht.Z)((0,nt.Z)(Ht.prototype),"hide",this).call(this),this._isShow=!1,uo.domain("Overlay").hideHighlight()}},{key:"set",value:function(vt){return this.select(vt)}},{key:"select",value:function(vt){return this._domViewer.select(vt),this._setNode(vt),this.emit("change",vt),this}},{key:"destroy",value:function(){(0,ht.Z)((0,nt.Z)(Ht.prototype),"destroy",this).call(this),ut.off(ut.SCALE,this._updateScale),Vn.remove(this._style),this._detail.destroy(),uo.domain("Overlay").off("inspectNodeRequested",this._inspectNodeRequested),uo.domain("Overlay").disable(),this._splitMediaQuery.removeAllListeners()}},{key:"_updateButtons",value:function(){var vt=this._$control,jt=vt.find(Tn(".show-detail")),zt=vt.find(Tn(".copy-node")),yn=vt.find(Tn(".delete-node")),Dn=Tn("icon-disabled");jt.addClass(Dn),zt.addClass(Dn),yn.addClass(Dn);var tr=this._curNode;tr&&(tr!==document.documentElement&&tr!==document.body&&yn.rmClass(Dn),zt.rmClass(Dn),tr.nodeType===Node.ELEMENT_NODE&&jt.rmClass(Dn))}},{key:"_initTpl",value:function(){var vt=this._$el;vt.html(Tn(`
    @@ -261,7 +261,7 @@ Response Headers
    -
    `)),this._$detail=vt.find(Tn(".detail")),this._$domViewer=vt.find(Tn(".dom-viewer")),this._$control=vt.find(Tn(".control")),this._$crumbs=vt.find(Tn(".crumbs"))}},{key:"_renderCrumbs",value:function(){var vt=function(Wt){for(var yn=[],Dn=0;Wt;)yn.push({text:yl(Wt,{noAttr:!0}),idx:Dn++}),Wt=Wt.parentElement;return yn.reverse()}(this._curNode),jt="";vo()(vt)||(jt=ho()(vt,function(Wt){var yn=Wt.text,Dn=Wt.idx;return'
  • ').concat(yn,"
  • ")}).join("")),this._$crumbs.html(jt)}},{key:"_bindEvent",value:function(){var vt=this,jt=this;this._$el.on("click",Tn(".crumb"),function(){for(var Wt=ls()(st()(this).data("idx")),yn=jt._curNode;Wt--&&yn.parentElement;)yn=yn.parentElement;Cl(yn)&&jt.select(yn)}),this._$control.on("click",Tn(".select"),this._toggleSelect).on("click",Tn(".show-detail"),this._showDetail).on("click",Tn(".copy-node"),this._copyNode).on("click",Tn(".delete-node"),this._deleteNode),this._domViewer.on("select",this._setNode).on("deselect",this._back),uo.domain("Overlay").on("inspectNodeRequested",this._inspectNodeRequested),this._splitMediaQuery.on("match",function(){vt._splitMode=!0,vt._showDetail()}),this._splitMediaQuery.on("unmatch",function(){vt._splitMode=!1,vt._detail.hide()}),ut.on(ut.SCALE,this._updateScale)}},{key:"_updateHistory",value:function(){var vt=this._container.get("console");if(vt){var jt=this._history;jt.unshift(this._curNode),jt.length>5&&jt.pop();for(var Wt=0;Wt<5;Wt++)vt.setGlobal("$".concat(Wt),jt[Wt])}}}]),Ht}(ct),Cl=function(ln){return Eo()(ln)&&ln.parentNode},fs=null,yp=[{name:"Border All",fn:function(){if(fs)return Vn.remove(fs),void(fs=null);fs=Vn("* { outline: 2px dashed #707d8b; outline-offset: -3px; }",document.head)},desc:"Add color borders to all elements"},{name:"Refresh Page",fn:function(){var ln=new(er());ln.setQuery("timestamp",Js()()),window.location.replace(ln.toString())},desc:"Add timestamp to url and refresh"},{name:"Search Text",fn:function(){Do.Z.prompt("Enter the text").then(function(ln){ln&&To()(ln)!==""&&function(Jt){var Ht=document.body,vt=new RegExp(Jt,"ig");Hs(Ht,function(jt){var Wt=st()(jt);if(Wt.hasClass("eruda-search-highlight-block"))return document.createTextNode(Wt.text())}),Hs(Ht,function(jt){if(jt.nodeType===3){var Wt=jt.nodeValue;if((Wt=Wt.replace(vt,function(Dn){return''.concat(Dn,"")}))!==jt.nodeValue){var yn=st()(document.createElement("div"));return yn.html(Wt),yn.addClass("eruda-search-highlight-block"),yn.get(0)}}})}(ln)})},desc:"Highlight given text on page"},{name:"Edit Page",fn:function(){var ln=document.body;ln.contentEditable=ln.contentEditable!=="true"},desc:"Toggle body contentEditable"},{name:"Fit Screen",fn:function(){var ln=document.body,Jt=document.documentElement,Ht=st()(ln);if(Ht.data("scaled"))window.scrollTo(0,+Ht.data("scaled")),Ht.rmAttr("data-scaled"),Ht.css("transform","none");else{var vt=Math.max(ln.scrollHeight,ln.offsetHeight,Jt.clientHeight,Jt.scrollHeight,Jt.offsetHeight),jt=Math.max(document.documentElement.clientHeight,window.innerHeight||0),Wt=jt/vt;Ht.css("transform","scale(".concat(Wt,")")),Ht.data("scaled",window.scrollY),window.scrollTo(0,vt/2-jt/2)}},desc:"Scale down the whole page to fit screen"},{name:"Load Fps Plugin",fn:function(){Mo("fps")},desc:"Display page fps"},{name:"Load Features Plugin",fn:function(){Mo("features")},desc:"Browser feature detections"},{name:"Load Timing Plugin",fn:function(){Mo("timing")},desc:"Show performance and resource timing"},{name:"Load Memory Plugin",fn:function(){Mo("memory")},desc:"Display memory"},{name:"Load Code Plugin",fn:function(){Mo("code")},desc:"Edit and run JavaScript"},{name:"Load Benchmark Plugin",fn:function(){Mo("benchmark")},desc:"Run JavaScript benchmarks"},{name:"Load Geolocation Plugin",fn:function(){Mo("geolocation")},desc:"Test geolocation"},{name:"Load Orientation Plugin",fn:function(){Mo("orientation")},desc:"Test orientation api"},{name:"Load Touches Plugin",fn:function(){Mo("touches")},desc:"Visualize screen touches"}];function Hs(ln,Jt){var Ht=ln.childNodes;if(!Yo(ln)){for(var vt=0,jt=Ht.length;vt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ht,vt=(0,nt.Z)(ln);if(Jt){var jt=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,jt)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var xp=function(ln){(0,tt.Z)(Ht,ln);var Jt=wp(Ht);function Ht(){var vt;return(0,j.Z)(this,Ht),(vt=Jt.call(this))._style=Vn(d(5571)),vt.name="snippets",vt._snippets=[],vt}return(0,$.Z)(Ht,[{key:"init",value:function(vt){(0,ht.Z)((0,nt.Z)(Ht.prototype),"init",this).call(this,vt),this._bindEvent(),this._addDefSnippets()}},{key:"destroy",value:function(){(0,ht.Z)((0,nt.Z)(Ht.prototype),"destroy",this).call(this),Vn.remove(this._style)}},{key:"add",value:function(vt,jt,Wt){return this._snippets.push({name:vt,fn:jt,desc:Wt}),this._render(),this}},{key:"remove",value:function(vt){for(var jt=this._snippets,Wt=0,yn=jt.length;Wt +
    `)),this._$detail=vt.find(Tn(".detail")),this._$domViewer=vt.find(Tn(".dom-viewer")),this._$control=vt.find(Tn(".control")),this._$crumbs=vt.find(Tn(".crumbs"))}},{key:"_renderCrumbs",value:function(){var vt=function(zt){for(var yn=[],Dn=0;zt;)yn.push({text:yl(zt,{noAttr:!0}),idx:Dn++}),zt=zt.parentElement;return yn.reverse()}(this._curNode),jt="";vo()(vt)||(jt=ho()(vt,function(zt){var yn=zt.text,Dn=zt.idx;return'
  • ').concat(yn,"
  • ")}).join("")),this._$crumbs.html(jt)}},{key:"_bindEvent",value:function(){var vt=this,jt=this;this._$el.on("click",Tn(".crumb"),function(){for(var zt=ls()(st()(this).data("idx")),yn=jt._curNode;zt--&&yn.parentElement;)yn=yn.parentElement;Cl(yn)&&jt.select(yn)}),this._$control.on("click",Tn(".select"),this._toggleSelect).on("click",Tn(".show-detail"),this._showDetail).on("click",Tn(".copy-node"),this._copyNode).on("click",Tn(".delete-node"),this._deleteNode),this._domViewer.on("select",this._setNode).on("deselect",this._back),uo.domain("Overlay").on("inspectNodeRequested",this._inspectNodeRequested),this._splitMediaQuery.on("match",function(){vt._splitMode=!0,vt._showDetail()}),this._splitMediaQuery.on("unmatch",function(){vt._splitMode=!1,vt._detail.hide()}),ut.on(ut.SCALE,this._updateScale)}},{key:"_updateHistory",value:function(){var vt=this._container.get("console");if(vt){var jt=this._history;jt.unshift(this._curNode),jt.length>5&&jt.pop();for(var zt=0;zt<5;zt++)vt.setGlobal("$".concat(zt),jt[zt])}}}]),Ht}(ct),Cl=function(ln){return Eo()(ln)&&ln.parentNode},fs=null,yp=[{name:"Border All",fn:function(){if(fs)return Vn.remove(fs),void(fs=null);fs=Vn("* { outline: 2px dashed #707d8b; outline-offset: -3px; }",document.head)},desc:"Add color borders to all elements"},{name:"Refresh Page",fn:function(){var ln=new(er());ln.setQuery("timestamp",Js()()),window.location.replace(ln.toString())},desc:"Add timestamp to url and refresh"},{name:"Search Text",fn:function(){Do.Z.prompt("Enter the text").then(function(ln){ln&&To()(ln)!==""&&function(Jt){var Ht=document.body,vt=new RegExp(Jt,"ig");Hs(Ht,function(jt){var zt=st()(jt);if(zt.hasClass("eruda-search-highlight-block"))return document.createTextNode(zt.text())}),Hs(Ht,function(jt){if(jt.nodeType===3){var zt=jt.nodeValue;if((zt=zt.replace(vt,function(Dn){return''.concat(Dn,"")}))!==jt.nodeValue){var yn=st()(document.createElement("div"));return yn.html(zt),yn.addClass("eruda-search-highlight-block"),yn.get(0)}}})}(ln)})},desc:"Highlight given text on page"},{name:"Edit Page",fn:function(){var ln=document.body;ln.contentEditable=ln.contentEditable!=="true"},desc:"Toggle body contentEditable"},{name:"Fit Screen",fn:function(){var ln=document.body,Jt=document.documentElement,Ht=st()(ln);if(Ht.data("scaled"))window.scrollTo(0,+Ht.data("scaled")),Ht.rmAttr("data-scaled"),Ht.css("transform","none");else{var vt=Math.max(ln.scrollHeight,ln.offsetHeight,Jt.clientHeight,Jt.scrollHeight,Jt.offsetHeight),jt=Math.max(document.documentElement.clientHeight,window.innerHeight||0),zt=jt/vt;Ht.css("transform","scale(".concat(zt,")")),Ht.data("scaled",window.scrollY),window.scrollTo(0,vt/2-jt/2)}},desc:"Scale down the whole page to fit screen"},{name:"Load Fps Plugin",fn:function(){Mo("fps")},desc:"Display page fps"},{name:"Load Features Plugin",fn:function(){Mo("features")},desc:"Browser feature detections"},{name:"Load Timing Plugin",fn:function(){Mo("timing")},desc:"Show performance and resource timing"},{name:"Load Memory Plugin",fn:function(){Mo("memory")},desc:"Display memory"},{name:"Load Code Plugin",fn:function(){Mo("code")},desc:"Edit and run JavaScript"},{name:"Load Benchmark Plugin",fn:function(){Mo("benchmark")},desc:"Run JavaScript benchmarks"},{name:"Load Geolocation Plugin",fn:function(){Mo("geolocation")},desc:"Test geolocation"},{name:"Load Orientation Plugin",fn:function(){Mo("orientation")},desc:"Test orientation api"},{name:"Load Touches Plugin",fn:function(){Mo("touches")},desc:"Visualize screen touches"}];function Hs(ln,Jt){var Ht=ln.childNodes;if(!Yo(ln)){for(var vt=0,jt=Ht.length;vt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ht,vt=(0,nt.Z)(ln);if(Jt){var jt=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,jt)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var xp=function(ln){(0,tt.Z)(Ht,ln);var Jt=wp(Ht);function Ht(){var vt;return(0,j.Z)(this,Ht),(vt=Jt.call(this))._style=Vn(d(5571)),vt.name="snippets",vt._snippets=[],vt}return(0,$.Z)(Ht,[{key:"init",value:function(vt){(0,ht.Z)((0,nt.Z)(Ht.prototype),"init",this).call(this,vt),this._bindEvent(),this._addDefSnippets()}},{key:"destroy",value:function(){(0,ht.Z)((0,nt.Z)(Ht.prototype),"destroy",this).call(this),Vn.remove(this._style)}},{key:"add",value:function(vt,jt,zt){return this._snippets.push({name:vt,fn:jt,desc:zt}),this._render(),this}},{key:"remove",value:function(vt){for(var jt=this._snippets,zt=0,yn=jt.length;zt

    ').concat(Kr()(jt.name),`
    @@ -270,7 +270,7 @@ Response Headers
    `).concat(Kr()(jt.desc),`
    -
    `)}).join("");this._renderHtml(vt)}},{key:"_renderHtml",value:function(vt){vt!==this._lastHtml&&(this._lastHtml=vt,this._$el.html(vt))}}]),Ht}(ct),kl=function(){function ln(Jt,Ht,vt,jt){var Wt=this;(0,j.Z)(this,ln),(0,ot.Z)(this,"_updateGridHeight",function(yn){Wt._dataGrid.setOption({minHeight:60*yn,maxHeight:223*yn})}),this._type=jt,this._$container=Jt,this._devtools=Ht,this._resources=vt,this._selectedItem=null,this._storeData=[],this._initTpl(),this._dataGrid=new zs.Z(this._$dataGrid.get(0),{columns:[{id:"key",title:"Key",weight:30},{id:"value",title:"Value",weight:90}],minHeight:60,maxHeight:223}),this._bindEvent()}return(0,$.Z)(ln,[{key:"destroy",value:function(){ut.off(ut.SCALE,this._updateGridHeight)}},{key:"refresh",value:function(){var Jt=this._dataGrid;this._refreshStorage(),Jt.clear(),_t()(this._storeData,function(Ht){var vt=Ht.key,jt=Ht.val;Jt.append({key:vt,value:jt},{selectable:!0})})}},{key:"_refreshStorage",value:function(){var Jt=this._resources,Ht=$s(this._type,!1);if(Ht){var vt=[];Ht=JSON.parse(JSON.stringify(Ht)),_t()(Ht,function(jt,Wt){Ot()(jt)&&(Jt.config.get("hideErudaSetting")&&(qo()(Wt,"eruda")||Wt==="active-eruda")||vt.push({key:Wt,val:ds()(jt,200)}))}),this._storeData=vt}}},{key:"_updateButtons",value:function(){var Jt=this._$container,Ht=Jt.find(Tn(".show-detail")),vt=Jt.find(Tn(".delete-storage")),jt=Jt.find(Tn(".copy-storage")),Wt=Tn("btn-disabled");Ht.addClass(Wt),vt.addClass(Wt),jt.addClass(Wt),this._selectedItem&&(Ht.rmClass(Wt),vt.rmClass(Wt),jt.rmClass(Wt))}},{key:"_initTpl",value:function(){var Jt=this._$container,Ht=this._type;Jt.html(Tn(`

    + `)}).join("");this._renderHtml(vt)}},{key:"_renderHtml",value:function(vt){vt!==this._lastHtml&&(this._lastHtml=vt,this._$el.html(vt))}}]),Ht}(ct),kl=function(){function ln(Jt,Ht,vt,jt){var zt=this;(0,j.Z)(this,ln),(0,ot.Z)(this,"_updateGridHeight",function(yn){zt._dataGrid.setOption({minHeight:60*yn,maxHeight:223*yn})}),this._type=jt,this._$container=Jt,this._devtools=Ht,this._resources=vt,this._selectedItem=null,this._storeData=[],this._initTpl(),this._dataGrid=new Ws.Z(this._$dataGrid.get(0),{columns:[{id:"key",title:"Key",weight:30},{id:"value",title:"Value",weight:90}],minHeight:60,maxHeight:223}),this._bindEvent()}return(0,$.Z)(ln,[{key:"destroy",value:function(){ut.off(ut.SCALE,this._updateGridHeight)}},{key:"refresh",value:function(){var Jt=this._dataGrid;this._refreshStorage(),Jt.clear(),_t()(this._storeData,function(Ht){var vt=Ht.key,jt=Ht.val;Jt.append({key:vt,value:jt},{selectable:!0})})}},{key:"_refreshStorage",value:function(){var Jt=this._resources,Ht=$s(this._type,!1);if(Ht){var vt=[];Ht=JSON.parse(JSON.stringify(Ht)),_t()(Ht,function(jt,zt){Ot()(jt)&&(Jt.config.get("hideErudaSetting")&&(qo()(zt,"eruda")||zt==="active-eruda")||vt.push({key:zt,val:ds()(jt,200)}))}),this._storeData=vt}}},{key:"_updateButtons",value:function(){var Jt=this._$container,Ht=Jt.find(Tn(".show-detail")),vt=Jt.find(Tn(".delete-storage")),jt=Jt.find(Tn(".copy-storage")),zt=Tn("btn-disabled");Ht.addClass(zt),vt.addClass(zt),jt.addClass(zt),this._selectedItem&&(Ht.rmClass(zt),vt.rmClass(zt),jt.rmClass(zt))}},{key:"_initTpl",value:function(){var Jt=this._$container,Ht=this._type;Jt.html(Tn(`

    `.concat(Ht==="local"?"Local":"Session",` Storage
    @@ -292,7 +292,7 @@ Response Headers

    -
    `))),this._$dataGrid=Jt.find(Tn(".data-grid")),this._$filterText=Jt.find(Tn(".filter-text"))}},{key:"_getVal",value:function(Jt){return this._type==="local"?localStorage.getItem(Jt):sessionStorage.getItem(Jt)}},{key:"_bindEvent",value:function(){var Jt=this,Ht=this._type,vt=this._devtools;function jt(Wt,yn){var Dn=vt.get("sources");if(Dn)return Dn.set(Wt,yn),vt.showTool("sources"),!0}this._$container.on("click",Tn(".refresh-storage"),function(){vt.notify("Refreshed"),Jt.refresh()}).on("click",Tn(".clear-storage"),function(){_t()(Jt._storeData,function(Wt){Ht==="local"?localStorage.removeItem(Wt.key):sessionStorage.removeItem(Wt.key)}),Jt.refresh()}).on("click",Tn(".show-detail"),function(){var Wt=Jt._selectedItem,yn=Jt._getVal(Wt);try{jt("object",JSON.parse(yn))}catch{jt("raw",yn)}}).on("click",Tn(".copy-storage"),function(){var Wt=Jt._selectedItem;pn()(Jt._getVal(Wt)),vt.notify("Copied")}).on("click",Tn(".filter"),function(){Do.Z.prompt("Filter").then(function(Wt){Xr()(Wt)||(Wt=To()(Wt),Jt._$filterText.text(Wt),Jt._dataGrid.setOption("filter",Wt))})}).on("click",Tn(".delete-storage"),function(){var Wt=Jt._selectedItem;Ht==="local"?localStorage.removeItem(Wt):sessionStorage.removeItem(Wt),Jt.refresh()}),this._dataGrid.on("select",function(Wt){Jt._selectedItem=Wt.data.key,Jt._updateButtons()}).on("deselect",function(){Jt._selectedItem=null,Jt._updateButtons()}),ut.on(ut.SCALE,this._updateGridHeight)}}]),ln}();function hs(ln,Jt){ln.rmClass(Tn("ok")).rmClass(Tn("danger")).rmClass(Tn("warn")).addClass(Tn(Jt))}function ps(ln,Jt){if(Jt===0)return"";var Ht=0,vt=0;switch(ln){case"cookie":Ht=30,vt=60;break;case"script":Ht=5,vt=10;break;case"stylesheet":Ht=4,vt=8;break;case"image":Ht=50,vt=100}return Jt>=vt?"danger":Jt>=Ht?"warn":"ok"}var _p=function(){function ln(Jt,Ht){(0,j.Z)(this,ln),this._$container=Jt,this._devtools=Ht,this._selectedItem=null,this._initTpl(),this._dataGrid=new zs.Z(this._$dataGrid.get(0),{columns:[{id:"key",title:"Key",weight:30},{id:"value",title:"Value",weight:90}],minHeight:60,maxHeight:223}),this._bindEvent()}return(0,$.Z)(ln,[{key:"refresh",value:function(){var Jt=this._$container,Ht=this._dataGrid,vt=uo.domain("Network").getCookies().cookies,jt=ho()(vt,function(Wt){return{key:Wt.name,val:Wt.value}});Ht.clear(),_t()(jt,function(Wt){var yn=Wt.key,Dn=Wt.val;Ht.append({key:yn,value:Dn},{selectable:!0})}),hs(Jt,ps("cookie",jt.length))}},{key:"_initTpl",value:function(){var Jt=this._$container;Jt.html(Tn(`

    +
    `))),this._$dataGrid=Jt.find(Tn(".data-grid")),this._$filterText=Jt.find(Tn(".filter-text"))}},{key:"_getVal",value:function(Jt){return this._type==="local"?localStorage.getItem(Jt):sessionStorage.getItem(Jt)}},{key:"_bindEvent",value:function(){var Jt=this,Ht=this._type,vt=this._devtools;function jt(zt,yn){var Dn=vt.get("sources");if(Dn)return Dn.set(zt,yn),vt.showTool("sources"),!0}this._$container.on("click",Tn(".refresh-storage"),function(){vt.notify("Refreshed"),Jt.refresh()}).on("click",Tn(".clear-storage"),function(){_t()(Jt._storeData,function(zt){Ht==="local"?localStorage.removeItem(zt.key):sessionStorage.removeItem(zt.key)}),Jt.refresh()}).on("click",Tn(".show-detail"),function(){var zt=Jt._selectedItem,yn=Jt._getVal(zt);try{jt("object",JSON.parse(yn))}catch{jt("raw",yn)}}).on("click",Tn(".copy-storage"),function(){var zt=Jt._selectedItem;pn()(Jt._getVal(zt)),vt.notify("Copied")}).on("click",Tn(".filter"),function(){Do.Z.prompt("Filter").then(function(zt){Xr()(zt)||(zt=To()(zt),Jt._$filterText.text(zt),Jt._dataGrid.setOption("filter",zt))})}).on("click",Tn(".delete-storage"),function(){var zt=Jt._selectedItem;Ht==="local"?localStorage.removeItem(zt):sessionStorage.removeItem(zt),Jt.refresh()}),this._dataGrid.on("select",function(zt){Jt._selectedItem=zt.data.key,Jt._updateButtons()}).on("deselect",function(){Jt._selectedItem=null,Jt._updateButtons()}),ut.on(ut.SCALE,this._updateGridHeight)}}]),ln}();function hs(ln,Jt){ln.rmClass(Tn("ok")).rmClass(Tn("danger")).rmClass(Tn("warn")).addClass(Tn(Jt))}function ps(ln,Jt){if(Jt===0)return"";var Ht=0,vt=0;switch(ln){case"cookie":Ht=30,vt=60;break;case"script":Ht=5,vt=10;break;case"stylesheet":Ht=4,vt=8;break;case"image":Ht=50,vt=100}return Jt>=vt?"danger":Jt>=Ht?"warn":"ok"}var _p=function(){function ln(Jt,Ht){(0,j.Z)(this,ln),this._$container=Jt,this._devtools=Ht,this._selectedItem=null,this._initTpl(),this._dataGrid=new Ws.Z(this._$dataGrid.get(0),{columns:[{id:"key",title:"Key",weight:30},{id:"value",title:"Value",weight:90}],minHeight:60,maxHeight:223}),this._bindEvent()}return(0,$.Z)(ln,[{key:"refresh",value:function(){var Jt=this._$container,Ht=this._dataGrid,vt=uo.domain("Network").getCookies().cookies,jt=ho()(vt,function(zt){return{key:zt.name,val:zt.value}});Ht.clear(),_t()(jt,function(zt){var yn=zt.key,Dn=zt.val;Ht.append({key:yn,value:Dn},{selectable:!0})}),hs(Jt,ps("cookie",jt.length))}},{key:"_initTpl",value:function(){var Jt=this._$container;Jt.html(Tn(`

    Cookie

    -
    `)),this._$dataGrid=Jt.find(Tn(".data-grid")),this._$filterText=Jt.find(Tn(".filter-text"))}},{key:"_updateButtons",value:function(){var Jt=this._$container,Ht=Jt.find(Tn(".show-detail")),vt=Jt.find(Tn(".delete-cookie")),jt=Jt.find(Tn(".copy-cookie")),Wt=Tn("btn-disabled");Ht.addClass(Wt),vt.addClass(Wt),jt.addClass(Wt),this._selectedItem&&(Ht.rmClass(Wt),vt.rmClass(Wt),jt.rmClass(Wt))}},{key:"_getVal",value:function(Jt){for(var Ht=uo.domain("Network").getCookies().cookies,vt=0,jt=Ht.length;vt=ln.length?{done:!0}:{done:!1,value:ln[vt++]}},e:function(tr){throw tr},f:jt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Wt,yn=!0,Dn=!1;return{s:function(){Ht=Ht.call(ln)},n:function(){var tr=Ht.next();return yn=tr.done,tr},e:function(tr){Dn=!0,Wt=tr},f:function(){try{yn||Ht.return==null||Ht.return()}finally{if(Dn)throw Wt}}}}function Al(ln,Jt){(Jt==null||Jt>ln.length)&&(Jt=ln.length);for(var Ht=0,vt=new Array(Jt);Ht"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ht,vt=(0,nt.Z)(ln);if(Jt){var jt=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,jt)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var Ap=function(ln){(0,tt.Z)(Ht,ln);var Jt=kp(Ht);function Ht(){var vt;return(0,j.Z)(this,Ht),(vt=Jt.call(this))._style=Vn(d(2488)),vt.name="resources",vt._hideErudaSetting=!1,vt._observeElement=!0,vt}return(0,$.Z)(Ht,[{key:"init",value:function(vt,jt){(0,ht.Z)((0,nt.Z)(Ht.prototype),"init",this).call(this,vt),this._container=jt,this._initTpl(),this._localStorage=new kl(this._$localStorage,jt,this,"local"),this._sessionStorage=new kl(this._$sessionStorage,jt,this,"session"),this._cookie=new _p(this._$cookie,jt),this._bindEvent(),this._initObserver(),this._initCfg()}},{key:"refresh",value:function(){return this.refreshLocalStorage().refreshSessionStorage().refreshCookie().refreshScript().refreshStylesheet().refreshIframe().refreshImage()}},{key:"destroy",value:function(){(0,ht.Z)((0,nt.Z)(Ht.prototype),"destroy",this).call(this),this._localStorage.destroy(),this._sessionStorage.destroy(),this._disableObserver(),Vn.remove(this._style),this._rmCfg()}},{key:"refreshScript",value:function(){var vt=[];st()("script").each(function(){var tr=this.src;tr!==""&&vt.push(tr)});var jt=ps("script",(vt=Uo()(vt)).length),Wt="
  • Empty
  • ";vo()(vt)||(Wt=ho()(vt,function(tr){return tr=Kr()(tr),'
  • ').concat(tr,"
  • ")}).join(""));var yn='

    +
    `)),this._$dataGrid=Jt.find(Tn(".data-grid")),this._$filterText=Jt.find(Tn(".filter-text"))}},{key:"_updateButtons",value:function(){var Jt=this._$container,Ht=Jt.find(Tn(".show-detail")),vt=Jt.find(Tn(".delete-cookie")),jt=Jt.find(Tn(".copy-cookie")),zt=Tn("btn-disabled");Ht.addClass(zt),vt.addClass(zt),jt.addClass(zt),this._selectedItem&&(Ht.rmClass(zt),vt.rmClass(zt),jt.rmClass(zt))}},{key:"_getVal",value:function(Jt){for(var Ht=uo.domain("Network").getCookies().cookies,vt=0,jt=Ht.length;vt=ln.length?{done:!0}:{done:!1,value:ln[vt++]}},e:function(tr){throw tr},f:jt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var zt,yn=!0,Dn=!1;return{s:function(){Ht=Ht.call(ln)},n:function(){var tr=Ht.next();return yn=tr.done,tr},e:function(tr){Dn=!0,zt=tr},f:function(){try{yn||Ht.return==null||Ht.return()}finally{if(Dn)throw zt}}}}function Al(ln,Jt){(Jt==null||Jt>ln.length)&&(Jt=ln.length);for(var Ht=0,vt=new Array(Jt);Ht"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ht,vt=(0,nt.Z)(ln);if(Jt){var jt=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,jt)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var Ap=function(ln){(0,tt.Z)(Ht,ln);var Jt=kp(Ht);function Ht(){var vt;return(0,j.Z)(this,Ht),(vt=Jt.call(this))._style=Vn(d(2488)),vt.name="resources",vt._hideErudaSetting=!1,vt._observeElement=!0,vt}return(0,$.Z)(Ht,[{key:"init",value:function(vt,jt){(0,ht.Z)((0,nt.Z)(Ht.prototype),"init",this).call(this,vt),this._container=jt,this._initTpl(),this._localStorage=new kl(this._$localStorage,jt,this,"local"),this._sessionStorage=new kl(this._$sessionStorage,jt,this,"session"),this._cookie=new _p(this._$cookie,jt),this._bindEvent(),this._initObserver(),this._initCfg()}},{key:"refresh",value:function(){return this.refreshLocalStorage().refreshSessionStorage().refreshCookie().refreshScript().refreshStylesheet().refreshIframe().refreshImage()}},{key:"destroy",value:function(){(0,ht.Z)((0,nt.Z)(Ht.prototype),"destroy",this).call(this),this._localStorage.destroy(),this._sessionStorage.destroy(),this._disableObserver(),Vn.remove(this._style),this._rmCfg()}},{key:"refreshScript",value:function(){var vt=[];st()("script").each(function(){var tr=this.src;tr!==""&&vt.push(tr)});var jt=ps("script",(vt=Uo()(vt)).length),zt="
  • Empty
  • ";vo()(vt)||(zt=ho()(vt,function(tr){return tr=Kr()(tr),'
  • ').concat(tr,"
  • ")}).join(""));var yn='

    Script

      - `).concat(Wt,` -
    `),Dn=this._$script;return hs(Dn,jt),Dn.html(yn),this}},{key:"refreshStylesheet",value:function(){var vt=[];st()("link").each(function(){this.rel==="stylesheet"&&vt.push(this.href)});var jt=ps("stylesheet",(vt=Uo()(vt)).length),Wt="
  • Empty
  • ";vt||(Wt=ho()(vt,function(tr){return tr=Kr()(tr),'
  • ').concat(tr,"
  • ")}).join(""));var yn='

    + `).concat(zt,` + `),Dn=this._$script;return hs(Dn,jt),Dn.html(yn),this}},{key:"refreshStylesheet",value:function(){var vt=[];st()("link").each(function(){this.rel==="stylesheet"&&vt.push(this.href)});var jt=ps("stylesheet",(vt=Uo()(vt)).length),zt="
  • Empty
  • ";vt||(zt=ho()(vt,function(tr){return tr=Kr()(tr),'
  • ').concat(tr,"
  • ")}).join(""));var yn='

    Stylesheet

      - `).concat(Wt,` -
    `),Dn=this._$stylesheet;return hs(Dn,jt),Dn.html(yn),this}},{key:"refreshIframe",value:function(){var vt=[];st()("iframe").each(function(){var yn=st()(this).attr("src");yn&&vt.push(yn)}),vt=Uo()(vt);var jt="
  • Empty
  • ";vo()(vt)||(jt=ho()(vt,function(yn){return yn=Kr()(yn),'
  • ').concat(yn,"
  • ")}).join(""));var Wt='

    + `).concat(zt,` + `),Dn=this._$stylesheet;return hs(Dn,jt),Dn.html(yn),this}},{key:"refreshIframe",value:function(){var vt=[];st()("iframe").each(function(){var yn=st()(this).attr("src");yn&&vt.push(yn)}),vt=Uo()(vt);var jt="
  • Empty
  • ";vo()(vt)||(jt=ho()(vt,function(yn){return yn=Kr()(yn),'
  • ').concat(yn,"
  • ")}).join(""));var zt='

    Iframe
    @@ -339,7 +339,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho

      `).concat(jt,` -
    `);return this._$iframe.html(Wt),this}},{key:"refreshLocalStorage",value:function(){return this._localStorage.refresh(),this}},{key:"refreshSessionStorage",value:function(){return this._sessionStorage.refresh(),this}},{key:"refreshCookie",value:function(){return this._cookie.refresh(),this}},{key:"refreshImage",value:function(){var vt=[],jt=this._performance=window.webkitPerformance||window.performance;jt&&jt.getEntries?this._performance.getEntries().forEach(function(vr){if(vr.initiatorType==="img"||Sp(vr.name)){if(Pt()(vr.name,"exclude=true"))return;vt.push(vr.name)}}):st()("img").each(function(){var vr=st()(this),wr=vr.attr("src");vr.data("exclude")!=="true"&&vt.push(wr)}),(vt=Uo()(vt)).sort();var Wt=ps("image",vt.length),yn="
  • Empty
  • ";vo()(vt)||(yn=ho()(vt,function(vr){return'
  • + `);return this._$iframe.html(zt),this}},{key:"refreshLocalStorage",value:function(){return this._localStorage.refresh(),this}},{key:"refreshSessionStorage",value:function(){return this._sessionStorage.refresh(),this}},{key:"refreshCookie",value:function(){return this._cookie.refresh(),this}},{key:"refreshImage",value:function(){var vt=[],jt=this._performance=window.webkitPerformance||window.performance;jt&&jt.getEntries?this._performance.getEntries().forEach(function(vr){if(vr.initiatorType==="img"||Sp(vr.name)){if(Bt()(vr.name,"exclude=true"))return;vt.push(vr.name)}}):st()("img").each(function(){var vr=st()(this),wr=vr.attr("src");vr.data("exclude")!=="true"&&vt.push(wr)}),(vt=Uo()(vt)).sort();var zt=ps("image",vt.length),yn="
  • Empty
  • ";vo()(vt)||(yn=ho()(vt,function(vr){return'
  • `)}).join(""));var Dn='

    Image @@ -349,30 +349,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho

      `).concat(yn,` -
    `),tr=this._$image;return hs(tr,Wt),tr.html(Dn),this}},{key:"show",value:function(){return(0,ht.Z)((0,nt.Z)(Ht.prototype),"show",this).call(this),this._observeElement&&this._enableObserver(),this.refresh()}},{key:"hide",value:function(){return this._disableObserver(),(0,ht.Z)((0,nt.Z)(Ht.prototype),"hide",this).call(this)}},{key:"_initTpl",value:function(){var vt=this._$el;vt.html(Tn(`
    + `),tr=this._$image;return hs(tr,zt),tr.html(Dn),this}},{key:"show",value:function(){return(0,ht.Z)((0,nt.Z)(Ht.prototype),"show",this).call(this),this._observeElement&&this._enableObserver(),this.refresh()}},{key:"hide",value:function(){return this._disableObserver(),(0,ht.Z)((0,nt.Z)(Ht.prototype),"hide",this).call(this)}},{key:"_initTpl",value:function(){var vt=this._$el;vt.html(Tn(`
    -
    `)),this._$localStorage=vt.find(Tn(".local-storage")),this._$sessionStorage=vt.find(Tn(".session-storage")),this._$cookie=vt.find(Tn(".cookie")),this._$script=vt.find(Tn(".script")),this._$stylesheet=vt.find(Tn(".stylesheet")),this._$iframe=vt.find(Tn(".iframe")),this._$image=vt.find(Tn(".image"))}},{key:"_bindEvent",value:function(){var vt=this,jt=this._$el,Wt=this._container;function yn(tr,vr){var wr=Wt.get("sources");if(wr)return wr.set(tr,vr),Wt.showTool("sources"),!0}function Dn(tr){return function(vr){if(Wt.get("sources")){vr.preventDefault();var wr=st()(this).attr("href");tr!=="iframe"&&nl()(location.href,wr)?Kn()({url:wr,success:function(Nr){yn(tr,Nr)},dataType:"raw"}):yn("iframe",wr)}}}jt.on("click",".eruda-refresh-script",function(){Wt.notify("Refreshed"),vt.refreshScript()}).on("click",".eruda-refresh-stylesheet",function(){Wt.notify("Refreshed"),vt.refreshStylesheet()}).on("click",".eruda-refresh-iframe",function(){Wt.notify("Refreshed"),vt.refreshIframe()}).on("click",".eruda-refresh-image",function(){Wt.notify("Refreshed"),vt.refreshImage()}).on("click",".eruda-img-link",function(){yn("img",st()(this).attr("src"))}).on("click",".eruda-css-link",Dn("css")).on("click",".eruda-js-link",Dn("js")).on("click",".eruda-iframe-link",Dn("iframe"))}},{key:"_rmCfg",value:function(){var vt=this.config,jt=this._container.get("settings");jt&&jt.remove(vt,"hideErudaSetting").remove(vt,"observeElement").remove("Resources")}},{key:"_initCfg",value:function(){var vt=this,jt=this.config=bt.createCfg("resources",{hideErudaSetting:!0,observeElement:!0});jt.get("hideErudaSetting")&&(this._hideErudaSetting=!0),jt.get("observeElement")||(this._observeElement=!1),jt.on("change",function(Wt,yn){switch(Wt){case"hideErudaSetting":return void(vt._hideErudaSetting=yn);case"observeElement":return vt._observeElement=yn,yn?vt._enableObserver():vt._disableObserver()}}),this._container.get("settings").text("Resources").switch(jt,"hideErudaSetting","Hide Eruda Setting").switch(jt,"observeElement","Auto Refresh Elements").separator()}},{key:"_initObserver",value:function(){var vt=this;this._observer=new(Rt())(function(jt){_t()(jt,function(Wt){vt._handleMutation(Wt)})})}},{key:"_handleMutation",value:function(vt){var jt=this;if(!Yo(vt.target)){var Wt=function(vr){var wr=function(Nr){return Nr.tagName?Nr.tagName.toLowerCase():""}(vr);switch(wr){case"script":jt.refreshScript();break;case"img":jt.refreshImage();break;case"link":jt.refreshStylesheet()}};if(vt.type==="attributes")Wt(vt.target);else if(vt.type==="childList"){Wt(vt.target);var yn,Dn=ss()(vt.addedNodes),tr=Cp(Dn=jr()(Dn,ss()(vt.removedNodes)));try{for(tr.s();!(yn=tr.n()).done;)Wt(yn.value)}catch(vr){tr.e(vr)}finally{tr.f()}}}}},{key:"_enableObserver",value:function(){this._observer.observe(document.documentElement,{attributes:!0,childList:!0,subtree:!0})}},{key:"_disableObserver",value:function(){this._observer.disconnect()}}]),Ht}(ct),Ep=/\.(jpeg|jpg|gif|png)$/,Sp=function(ln){return Ep.test(ln)},El=so()(),Tp=[{name:"Location",val:function(){return Kr()(location.href)}},{name:"User Agent",val:navigator.userAgent},{name:"Device",val:["",'"),""),""),"
    screen'.concat(screen.width," * ").concat(screen.height,"
    viewport".concat(window.innerWidth," * ").concat(window.innerHeight,"
    pixel ratio".concat(window.devicePixelRatio,"
    "].join("")},{name:"System",val:["",'"),""),"
    os'.concat(Wo()(),"
    browser".concat(El.name+" "+El.version,"
    "].join("")},{name:"About",val:'Eruda v2.11.3'},{name:"Backers",val:function(){return'')}}];function Mp(ln){var Jt=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ht,vt=(0,nt.Z)(ln);if(Jt){var jt=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,jt)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var Ip=function(ln){(0,tt.Z)(Ht,ln);var Jt=Mp(Ht);function Ht(){var vt;return(0,j.Z)(this,Ht),(vt=Jt.call(this))._style=Vn(d(879)),vt.name="info",vt._infos=[],vt}return(0,$.Z)(Ht,[{key:"init",value:function(vt,jt){(0,ht.Z)((0,nt.Z)(Ht.prototype),"init",this).call(this,vt),this._container=jt,this._addDefInfo(),this._bindEvent()}},{key:"destroy",value:function(){(0,ht.Z)((0,nt.Z)(Ht.prototype),"destroy",this).call(this),Vn.remove(this._style)}},{key:"add",value:function(vt,jt){var Wt=this._infos,yn=!1;return _t()(Wt,function(Dn){vt===Dn.name&&(Dn.val=jt,yn=!0)}),yn||Wt.push({name:vt,val:jt}),this._render(),this}},{key:"get",value:function(vt){var jt,Wt=this._infos;return Ns()(vt)?Ar()(Wt):(_t()(Wt,function(yn){vt===yn.name&&(jt=yn.val)}),jt)}},{key:"remove",value:function(vt){for(var jt=this._infos,Wt=jt.length-1;Wt>=0;Wt--)jt[Wt].name===vt&&jt.splice(Wt,1);return this._render(),this}},{key:"clear",value:function(){return this._infos=[],this._render(),this}},{key:"_addDefInfo",value:function(){var vt=this;_t()(Tp,function(jt){return vt.add(jt.name,jt.val)})}},{key:"_render",value:function(){var vt=[];_t()(this._infos,function(Wt){var yn=Wt.name,Dn=Wt.val;Ao()(Dn)&&(Dn=Dn()),vt.push({name:yn,val:Dn})});var jt="
      ".concat(ho()(vt,function(Wt){return'
    • ').concat(Kr()(Wt.name),'

      ').concat(Wt.val,"
    • ")}).join(""),"
    ");this._renderHtml(jt)}},{key:"_bindEvent",value:function(){var vt=this._container;this._$el.on("click",Tn(".copy"),function(){var jt=st()(this).parent().parent(),Wt=jt.find(Tn(".title")).text(),yn=jt.find(Tn(".content")).text();pn()("".concat(Wt,": ").concat(yn)),vt.notify("Copied")})}},{key:"_renderHtml",value:function(vt){vt!==this._lastHtml&&(this._lastHtml=vt,this._$el.html(vt))}}]),Ht}(ct),jp=d(8299),Op=d(8368),Rp=d.n(Op),Sl=d(7049);function Lp(ln){var Jt=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ht,vt=(0,nt.Z)(ln);if(Jt){var jt=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,jt)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var Pp=function(ln){(0,tt.Z)(Ht,ln);var Jt=Lp(Ht);function Ht(){var vt;return(0,j.Z)(this,Ht),(vt=Jt.call(this))._style=Vn(d(1344)),vt.name="sources",vt._showLineNum=!0,vt}return(0,$.Z)(Ht,[{key:"init",value:function(vt,jt){(0,ht.Z)((0,nt.Z)(Ht.prototype),"init",this).call(this,vt),this._container=jt,this._bindEvent(),this._initCfg()}},{key:"destroy",value:function(){(0,ht.Z)((0,nt.Z)(Ht.prototype),"destroy",this).call(this),Vn.remove(this._style),this._rmCfg()}},{key:"set",value:function(vt,jt){if(vt==="img"){this._isFetchingData=!0;var Wt=new Image,yn=this;return Wt.onload=function(){yn._isFetchingData=!1,yn._data={type:"img",val:{width:this.width,height:this.height,src:jt}},yn._render()},Wt.onerror=function(){yn._isFetchingData=!1},void(Wt.src=jt)}return this._data={type:vt,val:jt},this._render(),this}},{key:"show",value:function(){return(0,ht.Z)((0,nt.Z)(Ht.prototype),"show",this).call(this),this._data||this._isFetchingData||this._renderDef(),this}},{key:"_renderDef",value:function(){var vt=this;if(this._html)return this._data={type:"html",val:this._html},this._render();this._isGettingHtml||(this._isGettingHtml=!0,Kn()({url:location.href,success:function(jt){return vt._html=jt},error:function(){return vt._html="Sorry, unable to fetch source code:("},complete:function(){vt._isGettingHtml=!1,vt._renderDef()},dataType:"raw"}))}},{key:"_bindEvent",value:function(){var vt=this;this._container.on("showTool",function(jt,Wt){jt!==vt.name&&Wt.name===vt.name&&delete vt._data})}},{key:"_rmCfg",value:function(){var vt=this.config,jt=this._container.get("settings");jt&&jt.remove(vt,"showLineNum").remove("Sources")}},{key:"_initCfg",value:function(){var vt=this,jt=this.config=bt.createCfg("sources",{showLineNum:!0});jt.get("showLineNum")||(this._showLineNum=!1),jt.on("change",function(Wt,yn){Wt!=="showLineNum"||(vt._showLineNum=yn)}),this._container.get("settings").text("Sources").switch(jt,"showLineNum","Show Line Numbers").separator()}},{key:"_render",value:function(){switch(this._isInit=!0,this._data.type){case"html":case"js":case"css":return this._renderCode();case"img":return this._renderImg();case"object":return this._renderObj();case"raw":return this._renderRaw();case"iframe":return this._renderIframe()}}},{key:"_renderImg",value:function(){var vt=this._data.val,jt=vt.width,Wt=vt.height,yn=vt.src;this._renderHtml('
    +
    `)),this._$localStorage=vt.find(Tn(".local-storage")),this._$sessionStorage=vt.find(Tn(".session-storage")),this._$cookie=vt.find(Tn(".cookie")),this._$script=vt.find(Tn(".script")),this._$stylesheet=vt.find(Tn(".stylesheet")),this._$iframe=vt.find(Tn(".iframe")),this._$image=vt.find(Tn(".image"))}},{key:"_bindEvent",value:function(){var vt=this,jt=this._$el,zt=this._container;function yn(tr,vr){var wr=zt.get("sources");if(wr)return wr.set(tr,vr),zt.showTool("sources"),!0}function Dn(tr){return function(vr){if(zt.get("sources")){vr.preventDefault();var wr=st()(this).attr("href");tr!=="iframe"&&nl()(location.href,wr)?Kn()({url:wr,success:function(Nr){yn(tr,Nr)},dataType:"raw"}):yn("iframe",wr)}}}jt.on("click",".eruda-refresh-script",function(){zt.notify("Refreshed"),vt.refreshScript()}).on("click",".eruda-refresh-stylesheet",function(){zt.notify("Refreshed"),vt.refreshStylesheet()}).on("click",".eruda-refresh-iframe",function(){zt.notify("Refreshed"),vt.refreshIframe()}).on("click",".eruda-refresh-image",function(){zt.notify("Refreshed"),vt.refreshImage()}).on("click",".eruda-img-link",function(){yn("img",st()(this).attr("src"))}).on("click",".eruda-css-link",Dn("css")).on("click",".eruda-js-link",Dn("js")).on("click",".eruda-iframe-link",Dn("iframe"))}},{key:"_rmCfg",value:function(){var vt=this.config,jt=this._container.get("settings");jt&&jt.remove(vt,"hideErudaSetting").remove(vt,"observeElement").remove("Resources")}},{key:"_initCfg",value:function(){var vt=this,jt=this.config=bt.createCfg("resources",{hideErudaSetting:!0,observeElement:!0});jt.get("hideErudaSetting")&&(this._hideErudaSetting=!0),jt.get("observeElement")||(this._observeElement=!1),jt.on("change",function(zt,yn){switch(zt){case"hideErudaSetting":return void(vt._hideErudaSetting=yn);case"observeElement":return vt._observeElement=yn,yn?vt._enableObserver():vt._disableObserver()}}),this._container.get("settings").text("Resources").switch(jt,"hideErudaSetting","Hide Eruda Setting").switch(jt,"observeElement","Auto Refresh Elements").separator()}},{key:"_initObserver",value:function(){var vt=this;this._observer=new(Rt())(function(jt){_t()(jt,function(zt){vt._handleMutation(zt)})})}},{key:"_handleMutation",value:function(vt){var jt=this;if(!Yo(vt.target)){var zt=function(vr){var wr=function(Nr){return Nr.tagName?Nr.tagName.toLowerCase():""}(vr);switch(wr){case"script":jt.refreshScript();break;case"img":jt.refreshImage();break;case"link":jt.refreshStylesheet()}};if(vt.type==="attributes")zt(vt.target);else if(vt.type==="childList"){zt(vt.target);var yn,Dn=ss()(vt.addedNodes),tr=Cp(Dn=jr()(Dn,ss()(vt.removedNodes)));try{for(tr.s();!(yn=tr.n()).done;)zt(yn.value)}catch(vr){tr.e(vr)}finally{tr.f()}}}}},{key:"_enableObserver",value:function(){this._observer.observe(document.documentElement,{attributes:!0,childList:!0,subtree:!0})}},{key:"_disableObserver",value:function(){this._observer.disconnect()}}]),Ht}(ct),Ep=/\.(jpeg|jpg|gif|png)$/,Sp=function(ln){return Ep.test(ln)},El=so()(),Tp=[{name:"Location",val:function(){return Kr()(location.href)}},{name:"User Agent",val:navigator.userAgent},{name:"Device",val:["",'"),""),""),"
    screen'.concat(screen.width," * ").concat(screen.height,"
    viewport".concat(window.innerWidth," * ").concat(window.innerHeight,"
    pixel ratio".concat(window.devicePixelRatio,"
    "].join("")},{name:"System",val:["",'"),""),"
    os'.concat(zo()(),"
    browser".concat(El.name+" "+El.version,"
    "].join("")},{name:"About",val:'Eruda v2.11.3'},{name:"Backers",val:function(){return'')}}];function Mp(ln){var Jt=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ht,vt=(0,nt.Z)(ln);if(Jt){var jt=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,jt)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var Ip=function(ln){(0,tt.Z)(Ht,ln);var Jt=Mp(Ht);function Ht(){var vt;return(0,j.Z)(this,Ht),(vt=Jt.call(this))._style=Vn(d(879)),vt.name="info",vt._infos=[],vt}return(0,$.Z)(Ht,[{key:"init",value:function(vt,jt){(0,ht.Z)((0,nt.Z)(Ht.prototype),"init",this).call(this,vt),this._container=jt,this._addDefInfo(),this._bindEvent()}},{key:"destroy",value:function(){(0,ht.Z)((0,nt.Z)(Ht.prototype),"destroy",this).call(this),Vn.remove(this._style)}},{key:"add",value:function(vt,jt){var zt=this._infos,yn=!1;return _t()(zt,function(Dn){vt===Dn.name&&(Dn.val=jt,yn=!0)}),yn||zt.push({name:vt,val:jt}),this._render(),this}},{key:"get",value:function(vt){var jt,zt=this._infos;return Ns()(vt)?Ar()(zt):(_t()(zt,function(yn){vt===yn.name&&(jt=yn.val)}),jt)}},{key:"remove",value:function(vt){for(var jt=this._infos,zt=jt.length-1;zt>=0;zt--)jt[zt].name===vt&&jt.splice(zt,1);return this._render(),this}},{key:"clear",value:function(){return this._infos=[],this._render(),this}},{key:"_addDefInfo",value:function(){var vt=this;_t()(Tp,function(jt){return vt.add(jt.name,jt.val)})}},{key:"_render",value:function(){var vt=[];_t()(this._infos,function(zt){var yn=zt.name,Dn=zt.val;Ao()(Dn)&&(Dn=Dn()),vt.push({name:yn,val:Dn})});var jt="
      ".concat(ho()(vt,function(zt){return'
    • ').concat(Kr()(zt.name),'

      ').concat(zt.val,"
    • ")}).join(""),"
    ");this._renderHtml(jt)}},{key:"_bindEvent",value:function(){var vt=this._container;this._$el.on("click",Tn(".copy"),function(){var jt=st()(this).parent().parent(),zt=jt.find(Tn(".title")).text(),yn=jt.find(Tn(".content")).text();pn()("".concat(zt,": ").concat(yn)),vt.notify("Copied")})}},{key:"_renderHtml",value:function(vt){vt!==this._lastHtml&&(this._lastHtml=vt,this._$el.html(vt))}}]),Ht}(ct),jp=d(8299),Op=d(8368),Rp=d.n(Op),Sl=d(7049);function Lp(ln){var Jt=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ht,vt=(0,nt.Z)(ln);if(Jt){var jt=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,jt)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var Bp=function(ln){(0,tt.Z)(Ht,ln);var Jt=Lp(Ht);function Ht(){var vt;return(0,j.Z)(this,Ht),(vt=Jt.call(this))._style=Vn(d(1344)),vt.name="sources",vt._showLineNum=!0,vt}return(0,$.Z)(Ht,[{key:"init",value:function(vt,jt){(0,ht.Z)((0,nt.Z)(Ht.prototype),"init",this).call(this,vt),this._container=jt,this._bindEvent(),this._initCfg()}},{key:"destroy",value:function(){(0,ht.Z)((0,nt.Z)(Ht.prototype),"destroy",this).call(this),Vn.remove(this._style),this._rmCfg()}},{key:"set",value:function(vt,jt){if(vt==="img"){this._isFetchingData=!0;var zt=new Image,yn=this;return zt.onload=function(){yn._isFetchingData=!1,yn._data={type:"img",val:{width:this.width,height:this.height,src:jt}},yn._render()},zt.onerror=function(){yn._isFetchingData=!1},void(zt.src=jt)}return this._data={type:vt,val:jt},this._render(),this}},{key:"show",value:function(){return(0,ht.Z)((0,nt.Z)(Ht.prototype),"show",this).call(this),this._data||this._isFetchingData||this._renderDef(),this}},{key:"_renderDef",value:function(){var vt=this;if(this._html)return this._data={type:"html",val:this._html},this._render();this._isGettingHtml||(this._isGettingHtml=!0,Kn()({url:location.href,success:function(jt){return vt._html=jt},error:function(){return vt._html="Sorry, unable to fetch source code:("},complete:function(){vt._isGettingHtml=!1,vt._renderDef()},dataType:"raw"}))}},{key:"_bindEvent",value:function(){var vt=this;this._container.on("showTool",function(jt,zt){jt!==vt.name&&zt.name===vt.name&&delete vt._data})}},{key:"_rmCfg",value:function(){var vt=this.config,jt=this._container.get("settings");jt&&jt.remove(vt,"showLineNum").remove("Sources")}},{key:"_initCfg",value:function(){var vt=this,jt=this.config=bt.createCfg("sources",{showLineNum:!0});jt.get("showLineNum")||(this._showLineNum=!1),jt.on("change",function(zt,yn){zt!=="showLineNum"||(vt._showLineNum=yn)}),this._container.get("settings").text("Sources").switch(jt,"showLineNum","Show Line Numbers").separator()}},{key:"_render",value:function(){switch(this._isInit=!0,this._data.type){case"html":case"js":case"css":return this._renderCode();case"img":return this._renderImg();case"object":return this._renderObj();case"raw":return this._renderRaw();case"iframe":return this._renderIframe()}}},{key:"_renderImg",value:function(){var vt=this._data.val,jt=vt.width,zt=vt.height,yn=vt.src;this._renderHtml('
    ').concat(Kr()(yn),`
    -
    ').concat(Kr()(jt)," × ").concat(Kr()(Wt),`
    -
    `))}},{key:"_renderCode",value:function(){var vt=this._data;this._renderHtml('
    '),!1);var jt=vt.val,Wt=vt.val.length;Wt>gs&&(jt=ds()(jt,gs)),Wt'),!1);var vt=this._data.val;try{Ot()(vt)&&(vt=JSON.parse(vt))}catch{}new jp.Z(this._$el.find(".eruda-json").get(0),{unenumerable:!0,accessGetter:!0}).set(vt)}},{key:"_renderRaw",value:function(){var vt=this._data;this._renderHtml('
    +
    ').concat(Kr()(jt)," × ").concat(Kr()(zt),`
    +
    `))}},{key:"_renderCode",value:function(){var vt=this._data;this._renderHtml('
    '),!1);var jt=vt.val,zt=vt.val.length;zt>gs&&(jt=ds()(jt,gs)),zt'),!1);var vt=this._data.val;try{Ot()(vt)&&(vt=JSON.parse(vt))}catch{}new jp.Z(this._$el.find(".eruda-json").get(0),{unenumerable:!0,accessGetter:!0}).set(vt)}},{key:"_renderRaw",value:function(){var vt=this._data;this._renderHtml('
    -
    `));var jt=vt.val,Wt=this._$el.find(Tn(".raw")).get(0);jt.length>gs&&(jt=ds()(jt,gs)),new Sl.Z(Wt,{text:jt,wrapLongLines:!0,showLineNumbers:jt.length'))}},{key:"_renderHtml",value:function(vt){var jt=this;(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&vt===this._lastHtml||(this._lastHtml=vt,this._$el.html(vt),setTimeout(function(){return jt._$el.get(0).scrollTop=0},0))}}]),Ht}(ct),Bp=3e4,Tl=8e4,gs=1e5,Np={init:function(){var ln=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Jt=ln.container,Ht=ln.tool,vt=ln.autoScale,jt=vt===void 0||vt,Wt=ln.useShadowDom,yn=Wt===void 0||Wt,Dn=ln.defaults,tr=Dn===void 0?{}:Dn;this._isInit||(this._isInit=!0,this._scale=1,this._initContainer(Jt,yn),this._initStyle(),this._initDevTools(tr),this._initEntryBtn(),this._initSettings(),this._initTools(Ht),this._registerListener(),jt&&this._autoScale())},_isInit:!1,version:"2.11.3",util:k,chobitsu:uo,Tool:ct,Console:U0,Elements:vp,Network:rp,Sources:Pp,Resources:Ap,Info:Ip,Snippets:xp,Settings:bt,get:function(ln){if(this._checkInit()){if(ln==="entryBtn")return this._entryBtn;var Jt=this._devTools;return ln?Jt.get(ln):Jt}},add:function(ln){if(this._checkInit())return Ao()(ln)&&(ln=ln(this)),this._devTools.add(ln),this},remove:function(ln){return this._devTools.remove(ln),this},show:function(ln){if(this._checkInit()){var Jt=this._devTools;return ln?Jt.showTool(ln):Jt.show(),this}},hide:function(){if(this._checkInit())return this._devTools.hide(),this},destroy:function(){this._devTools.destroy(),delete this._devTools,this._entryBtn.destroy(),delete this._entryBtn,this._unregisterListener(),st()(this._container).remove(),Vn.clear(),this._isInit=!1,this._container=null,this._shadowRoot=null},scale:function(ln){return No()(ln)?(this._scale=ln,ut.emit(ut.SCALE,ln),this):this._scale},position:function(ln){var Jt=this._entryBtn;return Zs()(ln)?(Jt.setPos(ln),this):Jt.getPos()},_autoScale:function(){Oo()()&&this.scale(1/il()())},_registerListener:function(){var ln=this;this._addListener=function(){return ln.add.apply(ln,arguments)},this._showListener=function(){return ln.show.apply(ln,arguments)},ut.on(ut.ADD,this._addListener),ut.on(ut.SHOW,this._showListener),ut.on(ut.SCALE,Vn.setScale)},_unregisterListener:function(){ut.off(ut.ADD,this._addListener),ut.off(ut.SHOW,this._showListener),ut.off(ut.SCALE,Vn.setScale)},_checkInit:function(){return this._isInit||zo.error('Please call "eruda.init()" first'),this._isInit},_initContainer:function(ln,Jt){var Ht,vt;ln||(ln=document.createElement("div"),document.documentElement.appendChild(ln)),ln.id="eruda",ln.style.all="initial",this._container=ln,Jt&&(ln.attachShadow?Ht=ln.attachShadow({mode:"open"}):ln.createShadowRoot&&(Ht=ln.createShadowRoot()),Ht&&(Vn.container=document.head,Vn(d(5357)+d(9327)+d(4821)+d(8903)+d(5777)),vt=document.createElement("div"),Ht.appendChild(vt),this._shadowRoot=Ht)),this._shadowRoot||(vt=document.createElement("div"),ln.appendChild(vt)),dn()(vt,{className:"eruda-container __chobitsu-hide__",contentEditable:!1}),so()().name==="ios"&&vt.setAttribute("ontouchstart",""),this._$el=st()(vt)},_initDevTools:function(ln){this._devTools=new $0(this._$el,{defaults:ln})},_initStyle:function(){var ln="eruda-style-container",Jt=this._$el;this._shadowRoot?(Vn.container=this._shadowRoot,Vn(":host { all: initial }")):(Jt.append('
    ')),Vn.container=Jt.find(".".concat(ln)).get(0)),Vn(d(8020)+d(4821)+d(9327)+d(7591)+d(4987)+d(8903)+d(5512)+d(2156)+d(5777)+d(9819)+d(8094)+d(8516)+d(5357))},_initEntryBtn:function(){var ln=this;this._entryBtn=new j0(this._$el),this._entryBtn.on("click",function(){return ln._devTools.toggle()})},_initSettings:function(){var ln=this._devTools,Jt=new bt;ln.add(Jt),this._entryBtn.initCfg(Jt),ln.initCfg(Jt)},_initTools:function(){var ln=this,Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["console","elements","network","resources","sources","info","snippets"];Jt=ss()(Jt);var Ht=this._devTools;Jt.forEach(function(vt){var jt=ln[Go()(vt)];try{jt&&Ht.add(new jt)}catch(Wt){yt()(function(){zo.error("Something wrong when initializing tool ".concat(vt,":"),Wt.message)})}}),Ht.showTool(Jt[0]||"settings")}}},2027:function(b,_,d){var k=d(6672).Z;b.exports=k,b.exports.default=k},6610:function(b,_,d){d.r(_),_.default={}},9143:function(b,_,d){var k=this&&this.__awaiter||function(dt,ut,ht,ft){return new(ht||(ht=Promise))(function(lt,ct){function gt(xt){try{Ct(ft.next(xt))}catch(wt){ct(wt)}}function st(xt){try{Ct(ft.throw(xt))}catch(wt){ct(wt)}}function Ct(xt){var wt;xt.done?lt(xt.value):(wt=xt.value,wt instanceof ht?wt:new ht(function(Mt){Mt(wt)})).then(gt,st)}Ct((ft=ft.apply(dt,ut||[])).next())})},j=this&&this.__generator||function(dt,ut){var ht,ft,lt,ct,gt={label:0,sent:function(){if(1<[0])throw lt[1];return lt[1]},trys:[],ops:[]};return ct={next:st(0),throw:st(1),return:st(2)},typeof Symbol=="function"&&(ct[Symbol.iterator]=function(){return this}),ct;function st(Ct){return function(xt){return function(wt){if(ht)throw new TypeError("Generator is already executing.");for(;gt;)try{if(ht=1,ft&&(lt=2&wt[0]?ft.return:wt[0]?ft.throw||((lt=ft.return)&<.call(ft),0):ft.next)&&!(lt=lt.call(ft,wt[1])).done)return lt;switch(ft=0,lt&&(wt=[2&wt[0],lt.value]),wt[0]){case 0:case 1:lt=wt;break;case 4:return gt.label++,{value:wt[1],done:!1};case 5:gt.label++,ft=wt[1],wt=[0];continue;case 7:wt=gt.ops.pop(),gt.trys.pop();continue;default:if(lt=gt.trys,!((lt=lt.length>0&<[lt.length-1])||wt[0]!==6&&wt[0]!==2)){gt=0;continue}if(wt[0]===3&&(!lt||wt[1]>lt[0]&&wt[1]",Lt))return void Pt.push(rn);var Vt=[];st.default(rn.attributes,function(On){var _n=On.name,Pn=On.value;return Vt.push(_n,Pn)});for(var fn=0,In=Vt.length;fn
    ",ht.default.parse(Lt)[0].attrs))},_.setAttributeValue=function(Ot){var Lt=Ot.nodeId,Pt=Ot.name,Zt=Ot.value;nt.getNode(Lt).setAttribute(Pt,Zt)};var At=[];function Et(Ot,Lt){for(var Pt=rt.filterNodes(Ot.childNodes),Zt=0,rn=Pt.length;Zt5&&At.pop();for(var Pt=0;Pt<5;Pt++)Mt.setGlobal("$"+Pt,At[Pt])},_.setNodeValue=function(Ot){var Lt=Ot.nodeId,Pt=Ot.value;nt.getNode(Lt).nodeValue=Pt},_.setOuterHTML=function(Ot){var Lt=Ot.nodeId,Pt=Ot.outerHTML;nt.getNode(Lt).outerHTML=Pt},_.getDOMNodeId=function(Ot){var Lt=Ot.node;return{nodeId:rt.getOrCreateNodeId(Lt)}},_.getDOMNode=function(Ot){var Lt=Ot.nodeId;return{node:nt.getNode(Lt)}},at.default.on("attributes",function(Ot,Lt){var Pt=nt.getNodeId(Ot);if(Pt){var Zt=Ot.getAttribute(Lt);dt.default(Zt)?tt.default.trigger("DOM.attributeRemoved",{nodeId:Pt,name:Lt}):tt.default.trigger("DOM.attributeModified",{nodeId:Pt,name:Lt,value:Zt})}}),at.default.on("childList",function(Ot,Lt,Pt){var Zt=nt.getNodeId(Ot);if(Zt){if(Lt=rt.filterNodes(Lt),Pt=rt.filterNodes(Pt),!ut.default(Lt)){On();for(var rn=0,nn=Lt.length;rn0||Tt)&&(Mt.children=ft(gt,xt)),Mt}function ft(gt,st){var Ct=lt(gt.childNodes);return j.default(Ct,function(xt){return ht(xt,{depth:st-1})})}function lt(gt){return $.default(gt,function(st){return ct(st)})}function ct(gt){if(gt.nodeType===1){var st=gt.getAttribute("class")||"";if(rt.default(st,"__chobitsu-hide__")||rt.default(st,"html2canvas-container"))return!1}var Ct=!(gt.nodeType===3&&tt.default(gt.nodeValue||"")==="");return Ct&>.parentNode?ct(gt.parentNode):Ct}_.getOrCreateNodeId=ut,_.clear=function(){at.clear(),it.clear()},_.getNodeId=function(gt){return it.get(gt)},_.wrap=ht,_.getChildNodes=ft,_.getPreviousNode=function(gt){var st=gt.previousSibling;if(st){for(;!ct(st)&&st.previousSibling;)st=st.previousSibling;return st&&ct(st)?st:void 0}},_.filterNodes=lt,_.isValidNode=ct,_.getNode=function(gt){var st=at.get(gt);if(!st||st.nodeType===10)throw ot.createErr(-32e3,"Could not find node with given id");return st}},7923:function(b,_,d){var k=this&&this.__importDefault||function(Qt){return Qt&&Qt.__esModule?Qt:{default:Qt}};Object.defineProperty(_,"__esModule",{value:!0}),_.getProperties=_.releaseObj=_.getObj=_.wrap=_.clear=void 0;var j=k(d(3367)),$=k(d(6156)),et=k(d(6472)),tt=k(d(4777)),rt=k(d(9833)),nt=k(d(2749)),ot=k(d(3708)),at=k(d(7470)),it=k(d(1754)),dt=k(d(3085)),ut=k(d(2533)),ht=k(d(300)),ft=k(d(1116)),lt=k(d(8740)),ct=k(d(415)),gt=k(d(9804)),st=k(d(6257)),Ct=new Map,xt=new Map,wt=new Map,Mt=new Map,kt=1;function _t(Qt,Vt){var fn=xt.get(Qt);return fn||(fn=JSON.stringify({injectedScriptId:0,id:kt++}),xt.set(Qt,fn),Ct.set(fn,Qt),wt.set(fn,Vt),fn)}function Tt(Qt,Vt){var fn=Vt===void 0?{}:Vt,In=fn.generatePreview,On=In!==void 0&&In,_n=fn.self,Pn=_n===void 0?Qt:_n,Yn=Zt(Qt),dn=Yn.type,An=Yn.subtype;return dn==="undefined"?Yn:dn==="string"||dn==="boolean"||An==="null"?(Yn.value=Qt,Yn):(Yn.description=Pt(Qt,Pn),dn==="number"?(Yn.value=Qt,Yn):dn==="symbol"?(Yn.objectId=_t(Qt,Pn),Yn):(Yn.className=dn==="function"?"Function":An==="array"?"Array":An==="map"?"Map":An==="set"?"Set":An==="regexp"?"RegExp":An==="error"?Qt.name:dt.default(Qt,!1),On&&(Yn.preview=Ot(Qt,Pn)),Yn.objectId=_t(Qt,Pn),Yn))}function At(Qt){return Ct.get(Qt)}_.clear=function(){Ct.clear(),xt.clear(),wt.clear()},_.wrap=Tt,_.getObj=At,_.releaseObj=function(Qt){var Vt=At(Qt);xt.delete(Vt),wt.delete(Qt),Ct.delete(Qt)},_.getProperties=function(Qt){for(var Vt=Qt.accessorPropertiesOnly,fn=Qt.objectId,In=Qt.ownProperties,On=Qt.generatePreview,_n=[],Pn={prototype:!In,unenumerable:!0,symbol:!Vt},Yn=Ct.get(fn),dn=wt.get(fn),An=ft.default(Yn,Pn),mn=ct.default(Yn),jn=0,kn=An.length;jnEt&&(Pn=Et,In=!0);for(var Yn=0;YnEt){In=!0;break}An.push({key:Ot(jn),value:Ot(Qt.get(jn))}),Yn++,jn=mn.next().value}fn.entries=An}else if(at.default(Qt)){var kn=[],vn=(Yn=0,Qt.keys());for(jn=vn.next().value;jn;){if(Yn>Et){In=!0;break}kn.push({value:Ot(jn)}),Yn++,jn=vn.next().value}fn.entries=kn}return fn.overflow=In,fn}function Lt(Qt,Vt){var fn=Zt(Vt);fn.name=Qt;var In,On=fn.subtype;return In=fn.type==="object"?On==="null"?"null":On==="array"?"Array("+Vt.length+")":On==="map"?"Map("+Vt.size+")":On==="set"?"Set("+Vt.size+")":dt.default(Vt,!1):j.default(Vt),fn.value=In,fn}function Pt(Qt,Vt){Vt===void 0&&(Vt=Qt);var fn=Zt(Qt),In=fn.type,On=fn.subtype;return In==="string"?Qt:In==="number"||In==="symbol"?j.default(Qt):In==="function"?ht.default(Qt):On==="array"?"Array("+Qt.length+")":On==="map"?"Map("+Vt.size+")":On==="set"?"Set("+Vt.size+")":On==="regexp"?j.default(Qt):On==="error"?Qt.stack:On==="internal#entry"?Qt.name?'{"'+j.default(Qt.name)+'" => "'+j.default(Qt.value)+'"}':'"'+j.default(Qt.value)+'"':dt.default(Qt,!1)}function Zt(Qt){var Vt=typeof Qt,fn="object";if(Qt instanceof rn)fn="internal#entry";else if($.default(Qt))fn="null";else if(et.default(Qt))fn="array";else if(it.default(Qt))fn="regexp";else if(nt.default(Qt))fn="error";else if(ot.default(Qt))fn="map";else if(at.default(Qt))fn="set";else try{rt.default(Qt)&&(fn="node")}catch{}return{type:Vt,subtype:fn}}var rn=function(Qt,Vt){Vt&&(this.name=Vt),this.value=Qt};function nn(Qt){return Qt instanceof rn||!!(Qt[0]&&Qt[0]instanceof rn)}},2636:function(b,_,d){var k,j=this&&this.__extends||(k=function(Et,Ot){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Lt,Pt){Lt.__proto__=Pt}||function(Lt,Pt){for(var Zt in Pt)Pt.hasOwnProperty(Zt)&&(Lt[Zt]=Pt[Zt])},k(Et,Ot)},function(Et,Ot){function Lt(){this.constructor=Et}k(Et,Ot),Et.prototype=Ot===null?Object.create(Ot):(Lt.prototype=Ot.prototype,new Lt)}),$=this&&this.__importDefault||function(Et){return Et&&Et.__esModule?Et:{default:Et}};Object.defineProperty(_,"__esModule",{value:!0}),_.fullUrl=_.FetchRequest=_.XhrRequest=void 0;var et=$(d(1443)),tt=$(d(6768)),rt=$(d(9702)),nt=$(d(6334)),ot=$(d(8887)),at=$(d(4331)),it=$(d(8847)),dt=$(d(3783)),ut=$(d(6930)),ht=$(d(3875)),ft=d(316),lt=function(Et){function Ot(Lt,Pt,Zt){var rn=Et.call(this)||this;return rn.xhr=Lt,rn.reqHeaders={},rn.method=Pt,rn.url=Mt(Zt),rn.id=ft.createId(),rn}return j(Ot,Et),Ot.prototype.toJSON=function(){return{method:this.method,url:this.url,id:this.id}},Ot.prototype.handleSend=function(Lt){tt.default(Lt)||(Lt=""),Lt={name:kt(this.url),url:this.url,data:Lt,time:it.default(),reqHeaders:this.reqHeaders,method:this.method},ot.default(this.reqHeaders)||(Lt.reqHeaders=this.reqHeaders),this.emit("send",this.id,Lt)},Ot.prototype.handleReqHeadersSet=function(Lt,Pt){Lt&&Pt&&(this.reqHeaders[Lt]=Pt)},Ot.prototype.handleHeadersReceived=function(){var Lt=this.xhr,Pt=_t(Lt.getResponseHeader("Content-Type")||"");this.emit("headersReceived",this.id,{type:Pt.type,subType:Pt.subType,size:xt(Lt,!0,this.url),time:it.default(),resHeaders:Ct(Lt)})},Ot.prototype.handleDone=function(){var Lt,Pt,Zt,rn=this,nn=this.xhr,Qt=nn.responseType,Vt="",fn=function(){rn.emit("done",rn.id,{status:nn.status,size:xt(nn,!1,rn.url),time:it.default(),resTxt:Vt})},In=_t(nn.getResponseHeader("Content-Type")||"");Qt!=="blob"||In.type!=="text"&&In.subType!=="javascript"&&In.subType!=="json"?(Qt!==""&&Qt!=="text"||(Vt=nn.responseText),Qt==="json"&&(Vt=JSON.stringify(nn.response)),fn()):(Lt=nn.response,Pt=function(On,_n){_n&&(Vt=_n),fn()},(Zt=new FileReader).onload=function(){Pt(null,Zt.result)},Zt.onerror=function(On){Pt(On)},Zt.readAsText(Lt))},Ot}(et.default);_.XhrRequest=lt;var ct=function(Et){function Ot(Lt,Pt){Pt===void 0&&(Pt={});var Zt=Et.call(this)||this;return Lt instanceof window.Request&&(Lt=Lt.url),Zt.url=Mt(Lt),Zt.id=ft.createId(),Zt.options=Pt,Zt.reqHeaders=Pt.headers||{},Zt.method=Pt.method||"GET",Zt}return j(Ot,Et),Ot.prototype.send=function(Lt){var Pt=this,Zt=this.options,rn=tt.default(Zt.body)?Zt.body:"";this.emit("send",this.id,{name:kt(this.url),url:this.url,data:rn,reqHeaders:this.reqHeaders,time:it.default(),method:this.method}),Lt.then(function(nn){var Qt=_t((nn=nn.clone()).headers.get("Content-Type"));return nn.text().then(function(Vt){var fn={type:Qt.type,subType:Qt.subType,time:it.default(),size:gt(nn,Vt),resTxt:Vt,resHeaders:st(nn),status:nn.status};ot.default(Pt.reqHeaders)||(fn.reqHeaders=Pt.reqHeaders),Pt.emit("done",Pt.id,fn)}),nn})},Ot}(et.default);function gt(Et,Ot){var Lt=Et.headers.get("Content-length");return Lt?ht.default(Lt):At(Ot)}function st(Et){var Ot={};return Et.headers.forEach(function(Lt,Pt){return Ot[Pt]=Lt}),Ot}function Ct(Et){var Ot=Et.getAllResponseHeaders().split(` -`),Lt={};return dt.default(Ot,function(Pt){if((Pt=at.default(Pt))!==""){var Zt=Pt.split(":",2),rn=Zt[0],nn=Zt[1];Lt[rn]=at.default(nn)}}),Lt}function xt(Et,Ot,Lt){var Pt=0;function Zt(){if(!Ot){var rn=Et.responseType,nn="";rn!==""&&rn!=="text"||(nn=Et.responseText),nn&&(Pt=At(nn))}}if(function(rn){return!ut.default(rn,Tt)}(Lt))Zt();else try{Pt=ht.default(Et.getResponseHeader("Content-Length"))}catch{Zt()}return Pt===0&&Zt(),Pt}_.FetchRequest=ct;var wt=document.createElement("a");function Mt(Et){return wt.href=Et,wt.protocol+"//"+wt.host+wt.pathname+wt.search+wt.hash}function kt(Et){var Ot=rt.default(Et.split("/"));return Ot.indexOf("?")>-1&&(Ot=at.default(Ot.split("?")[0])),Ot===""&&(Ot=new nt.default(Et).hostname),Ot}function _t(Et){if(!Et)return{type:"unknown",subType:"unknown"};var Ot=Et.split(";")[0].split("/");return{type:Ot[0],subType:rt.default(Ot)}}_.fullUrl=Mt;var Tt=window.location.origin;function At(Et){var Ot=encodeURIComponent(Et).match(/%[89ABab]/g);return Et.length+(Ot?Ot.length:0)}},316:function(b,_,d){var k,j=this&&this.__extends||(k=function(ct,gt){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Ct){st.__proto__=Ct}||function(st,Ct){for(var xt in Ct)Ct.hasOwnProperty(xt)&&(st[xt]=Ct[xt])},k(ct,gt)},function(ct,gt){function st(){this.constructor=ct}k(ct,gt),ct.prototype=gt===null?Object.create(gt):(st.prototype=gt.prototype,new st)}),$=this&&this.__awaiter||function(ct,gt,st,Ct){return new(st||(st=Promise))(function(xt,wt){function Mt(Tt){try{_t(Ct.next(Tt))}catch(At){wt(At)}}function kt(Tt){try{_t(Ct.throw(Tt))}catch(At){wt(At)}}function _t(Tt){var At;Tt.done?xt(Tt.value):(At=Tt.value,At instanceof st?At:new st(function(Et){Et(At)})).then(Mt,kt)}_t((Ct=Ct.apply(ct,gt||[])).next())})},et=this&&this.__generator||function(ct,gt){var st,Ct,xt,wt,Mt={label:0,sent:function(){if(1&xt[0])throw xt[1];return xt[1]},trys:[],ops:[]};return wt={next:kt(0),throw:kt(1),return:kt(2)},typeof Symbol=="function"&&(wt[Symbol.iterator]=function(){return this}),wt;function kt(_t){return function(Tt){return function(At){if(st)throw new TypeError("Generator is already executing.");for(;Mt;)try{if(st=1,Ct&&(xt=2&At[0]?Ct.return:At[0]?Ct.throw||((xt=Ct.return)&&xt.call(Ct),0):Ct.next)&&!(xt=xt.call(Ct,At[1])).done)return xt;switch(Ct=0,xt&&(At=[2&At[0],xt.value]),At[0]){case 0:case 1:xt=At;break;case 4:return Mt.label++,{value:At[1],done:!1};case 5:Mt.label++,Ct=At[1],At=[0];continue;case 7:At=Mt.ops.pop(),Mt.trys.pop();continue;default:if(xt=Mt.trys,!((xt=xt.length>0&&xt[xt.length-1])||At[0]!==6&&At[0]!==2)){Mt=0;continue}if(At[0]===3&&(!xt||At[1]>xt[0]&&At[1]ut;)if((at=it[ut++])!=at)return!0}else for(;dt>ut;ut++)if((tt||ut in it)&&it[ut]===nt)return tt||ut||0;return!tt&&-1}};b.exports={includes:et(!0),indexOf:et(!1)}},1589:function(b,_,d){var k=d(1400),j=d(6244),$=d(6135),et=Array,tt=Math.max;b.exports=function(rt,nt,ot){for(var at=j(rt),it=k(nt,at),dt=k(ot===void 0?at:ot,at),ut=et(tt(dt-it,0)),ht=0;it1?arguments[1]:void 0);At=At?At.next:Et.first;)for(Ot(At.value,At.key,this);At&&At.removed;)At=At.previous},has:function(Tt){return!!_t(this,Tt)}}),$(wt,st?{get:function(Tt){var At=_t(this,Tt);return At&&At.value},set:function(Tt,At){return kt(this,Tt===0?0:Tt,At)}}:{add:function(Tt){return kt(this,Tt=Tt===0?0:Tt,Tt)}}),dt&&j(wt,"size",{configurable:!0,get:function(){return Mt(this).size}}),xt},setStrong:function(ct,gt,st){var Ct=gt+" Iterator",xt=lt(gt),wt=lt(Ct);ot(ct,gt,function(Mt,kt){ft(this,{type:Ct,target:Mt,state:xt(Mt),kind:kt,last:void 0})},function(){for(var Mt=wt(this),kt=Mt.kind,_t=Mt.last;_t&&_t.removed;)_t=_t.previous;return Mt.target&&(Mt.last=_t=_t?_t.next:Mt.state.first)?at(kt=="keys"?_t.key:kt=="values"?_t.value:[_t.key,_t.value],!1):(Mt.target=void 0,at(void 0,!0))},st?"entries":"values",!st,!0),it(gt)}}},7710:function(b,_,d){var k=d(2109),j=d(7854),$=d(1702),et=d(4705),tt=d(8052),rt=d(2423),nt=d(408),ot=d(5787),at=d(614),it=d(8554),dt=d(111),ut=d(7293),ht=d(7072),ft=d(8003),lt=d(9587);b.exports=function(ct,gt,st){var Ct=ct.indexOf("Map")!==-1,xt=ct.indexOf("Weak")!==-1,wt=Ct?"set":"add",Mt=j[ct],kt=Mt&&Mt.prototype,_t=Mt,Tt={},At=function(rn){var nn=$(kt[rn]);tt(kt,rn,rn=="add"?function(Qt){return nn(this,Qt===0?0:Qt),this}:rn=="delete"?function(Qt){return!(xt&&!dt(Qt))&&nn(this,Qt===0?0:Qt)}:rn=="get"?function(Qt){return xt&&!dt(Qt)?void 0:nn(this,Qt===0?0:Qt)}:rn=="has"?function(Qt){return!(xt&&!dt(Qt))&&nn(this,Qt===0?0:Qt)}:function(Qt,Vt){return nn(this,Qt===0?0:Qt,Vt),this})};if(et(ct,!at(Mt)||!(xt||kt.forEach&&!ut(function(){new Mt().entries().next()}))))_t=st.getConstructor(gt,ct,Ct,wt),rt.enable();else if(et(ct,!0)){var Et=new _t,Ot=Et[wt](xt?{}:-0,1)!=Et,Lt=ut(function(){Et.has(1)}),Pt=ht(function(rn){new Mt(rn)}),Zt=!xt&&ut(function(){for(var rn=new Mt,nn=5;nn--;)rn[wt](nn,nn);return!rn.has(-0)});Pt||((_t=gt(function(rn,nn){ot(rn,kt);var Qt=lt(new Mt,rn,_t);return it(nn)||nt(nn,Qt[wt],{that:Qt,AS_ENTRIES:Ct}),Qt})).prototype=kt,kt.constructor=_t),(Lt||Zt)&&(At("delete"),At("has"),Ct&&At("get")),(Zt||Ot)&&At(wt),xt&&kt.clear&&delete kt.clear}return Tt[ct]=_t,k({global:!0,constructor:!0,forced:_t!=Mt},Tt),ft(_t,ct),xt||st.setStrong(_t,ct,Ct),_t}},9920:function(b,_,d){var k=d(2597),j=d(3887),$=d(1236),et=d(3070);b.exports=function(tt,rt,nt){for(var ot=j(rt),at=et.f,it=$.f,dt=0;dt0&&k[0]<4?1:+(k[0]+k[1])),!j&&et&&(!(k=et.match(/Edge\/(\d+)/))||k[1]>=74)&&(k=et.match(/Chrome\/(\d+)/))&&(j=+k[1]),b.exports=j},748:function(b){b.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1060:function(b,_,d){var k=d(1702),j=Error,$=k("".replace),et=String(j("zxcasd").stack),tt=/\n\s*at [^:]*:[^\n]*/,rt=tt.test(et);b.exports=function(nt,ot){if(rt&&typeof nt=="string"&&!j.prepareStackTrace)for(;ot--;)nt=$(nt,tt,"");return nt}},5392:function(b,_,d){var k=d(8880),j=d(1060),$=d(2914),et=Error.captureStackTrace;b.exports=function(tt,rt,nt,ot){$&&(et?et(tt,rt):k(tt,"stack",j(nt,ot)))}},2914:function(b,_,d){var k=d(7293),j=d(9114);b.exports=!k(function(){var $=Error("a");return!("stack"in $)||(Object.defineProperty($,"stack",j(1,7)),$.stack!==7)})},2109:function(b,_,d){var k=d(7854),j=d(1236).f,$=d(8880),et=d(8052),tt=d(3072),rt=d(9920),nt=d(4705);b.exports=function(ot,at){var it,dt,ut,ht,ft,lt=ot.target,ct=ot.global,gt=ot.stat;if(it=ct?k:gt?k[lt]||tt(lt,{}):(k[lt]||{}).prototype)for(dt in at){if(ht=at[dt],ut=ot.dontCallGetSet?(ft=j(it,dt))&&ft.value:it[dt],!nt(ct?dt:lt+(gt?".":"#")+dt,ot.forced)&&ut!==void 0){if(typeof ht==typeof ut)continue;rt(ht,ut)}(ot.sham||ut&&ut.sham)&&$(ht,"sham",!0),et(it,dt,ht,ot)}}},7293:function(b){b.exports=function(_){try{return!!_()}catch{return!0}}},6677:function(b,_,d){var k=d(7293);b.exports=!k(function(){return Object.isExtensible(Object.preventExtensions({}))})},2104:function(b,_,d){var k=d(4374),j=Function.prototype,$=j.apply,et=j.call;b.exports=typeof Reflect=="object"&&Reflect.apply||(k?et.bind($):function(){return et.apply($,arguments)})},9974:function(b,_,d){var k=d(1470),j=d(9662),$=d(4374),et=k(k.bind);b.exports=function(tt,rt){return j(tt),rt===void 0?tt:$?et(tt,rt):function(){return tt.apply(rt,arguments)}}},4374:function(b,_,d){var k=d(7293);b.exports=!k(function(){var j=(function(){}).bind();return typeof j!="function"||j.hasOwnProperty("prototype")})},6916:function(b,_,d){var k=d(4374),j=Function.prototype.call;b.exports=k?j.bind(j):function(){return j.apply(j,arguments)}},6530:function(b,_,d){var k=d(9781),j=d(2597),$=Function.prototype,et=k&&Object.getOwnPropertyDescriptor,tt=j($,"name"),rt=tt&&(function(){}).name==="something",nt=tt&&(!k||k&&et($,"name").configurable);b.exports={EXISTS:tt,PROPER:rt,CONFIGURABLE:nt}},5668:function(b,_,d){var k=d(1702),j=d(9662);b.exports=function($,et,tt){try{return k(j(Object.getOwnPropertyDescriptor($,et)[tt]))}catch{}}},1470:function(b,_,d){var k=d(4326),j=d(1702);b.exports=function($){if(k($)==="Function")return j($)}},1702:function(b,_,d){var k=d(4374),j=Function.prototype,$=j.call,et=k&&j.bind.bind($,$);b.exports=k?et:function(tt){return function(){return $.apply(tt,arguments)}}},5005:function(b,_,d){var k=d(7854),j=d(614),$=function(et){return j(et)?et:void 0};b.exports=function(et,tt){return arguments.length<2?$(k[et]):k[et]&&k[et][tt]}},1246:function(b,_,d){var k=d(648),j=d(8173),$=d(8554),et=d(7497),tt=d(5112)("iterator");b.exports=function(rt){if(!$(rt))return j(rt,tt)||j(rt,"@@iterator")||et[k(rt)]}},4121:function(b,_,d){var k=d(6916),j=d(9662),$=d(9670),et=d(6330),tt=d(1246),rt=TypeError;b.exports=function(nt,ot){var at=arguments.length<2?tt(nt):ot;if(j(at))return $(k(at,nt));throw rt(et(nt)+" is not iterable")}},8173:function(b,_,d){var k=d(9662),j=d(8554);b.exports=function($,et){var tt=$[et];return j(tt)?void 0:k(tt)}},7854:function(b,_,d){var k=function(j){return j&&j.Math==Math&&j};b.exports=k(typeof globalThis=="object"&&globalThis)||k(typeof window=="object"&&window)||k(typeof self=="object"&&self)||k(typeof d.g=="object"&&d.g)||function(){return this}()||Function("return this")()},2597:function(b,_,d){var k=d(1702),j=d(7908),$=k({}.hasOwnProperty);b.exports=Object.hasOwn||function(et,tt){return $(j(et),tt)}},3501:function(b){b.exports={}},842:function(b){b.exports=function(_,d){try{arguments.length==1?console.error(_):console.error(_,d)}catch{}}},490:function(b,_,d){var k=d(5005);b.exports=k("document","documentElement")},4664:function(b,_,d){var k=d(9781),j=d(7293),$=d(317);b.exports=!k&&!j(function(){return Object.defineProperty($("div"),"a",{get:function(){return 7}}).a!=7})},8361:function(b,_,d){var k=d(1702),j=d(7293),$=d(4326),et=Object,tt=k("".split);b.exports=j(function(){return!et("z").propertyIsEnumerable(0)})?function(rt){return $(rt)=="String"?tt(rt,""):et(rt)}:et},9587:function(b,_,d){var k=d(614),j=d(111),$=d(7674);b.exports=function(et,tt,rt){var nt,ot;return $&&k(nt=tt.constructor)&&nt!==rt&&j(ot=nt.prototype)&&ot!==rt.prototype&&$(et,ot),et}},2788:function(b,_,d){var k=d(1702),j=d(614),$=d(5465),et=k(Function.toString);j($.inspectSource)||($.inspectSource=function(tt){return et(tt)}),b.exports=$.inspectSource},8340:function(b,_,d){var k=d(111),j=d(8880);b.exports=function($,et){k(et)&&"cause"in et&&j($,"cause",et.cause)}},2423:function(b,_,d){var k=d(2109),j=d(1702),$=d(3501),et=d(111),tt=d(2597),rt=d(3070).f,nt=d(8006),ot=d(1156),at=d(2050),it=d(9711),dt=d(6677),ut=!1,ht=it("meta"),ft=0,lt=function(gt){rt(gt,ht,{value:{objectID:"O"+ft++,weakData:{}}})},ct=b.exports={enable:function(){ct.enable=function(){},ut=!0;var gt=nt.f,st=j([].splice),Ct={};Ct[ht]=1,gt(Ct).length&&(nt.f=function(xt){for(var wt=gt(xt),Mt=0,kt=wt.length;MtCt;Ct++)if((wt=Zt(ft[Ct]))&&nt(ht,wt))return wt;return new ut(!1)}gt=ot(ft,st)}for(Mt=At?ft.next:gt.next;!(kt=j(Mt,gt)).done;){try{wt=Zt(kt.value)}catch(rn){it(gt,"throw",rn)}if(typeof wt=="object"&&wt&&nt(ht,wt))return wt}return new ut(!1)}},9212:function(b,_,d){var k=d(6916),j=d(9670),$=d(8173);b.exports=function(et,tt,rt){var nt,ot;j(et);try{if(!(nt=$(et,"return"))){if(tt==="throw")throw rt;return rt}nt=k(nt,et)}catch(at){ot=!0,nt=at}if(tt==="throw")throw rt;if(ot)throw nt;return j(nt),rt}},3061:function(b,_,d){var k=d(3383).IteratorPrototype,j=d(30),$=d(9114),et=d(8003),tt=d(7497),rt=function(){return this};b.exports=function(nt,ot,at,it){var dt=ot+" Iterator";return nt.prototype=j(k,{next:$(+!it,at)}),et(nt,dt,!1,!0),tt[dt]=rt,nt}},1656:function(b,_,d){var k=d(2109),j=d(6916),$=d(1913),et=d(6530),tt=d(614),rt=d(3061),nt=d(9518),ot=d(7674),at=d(8003),it=d(8880),dt=d(8052),ut=d(5112),ht=d(7497),ft=d(3383),lt=et.PROPER,ct=et.CONFIGURABLE,gt=ft.IteratorPrototype,st=ft.BUGGY_SAFARI_ITERATORS,Ct=ut("iterator"),xt="keys",wt="values",Mt="entries",kt=function(){return this};b.exports=function(_t,Tt,At,Et,Ot,Lt,Pt){rt(At,Tt,Et);var Zt,rn,nn,Qt=function(Yn){if(Yn===Ot&&_n)return _n;if(!st&&Yn in In)return In[Yn];switch(Yn){case xt:case wt:case Mt:return function(){return new At(this,Yn)}}return function(){return new At(this)}},Vt=Tt+" Iterator",fn=!1,In=_t.prototype,On=In[Ct]||In["@@iterator"]||Ot&&In[Ot],_n=!st&&On||Qt(Ot),Pn=Tt=="Array"&&In.entries||On;if(Pn&&(Zt=nt(Pn.call(new _t)))!==Object.prototype&&Zt.next&&($||nt(Zt)===gt||(ot?ot(Zt,gt):tt(Zt[Ct])||dt(Zt,Ct,kt)),at(Zt,Vt,!0,!0),$&&(ht[Vt]=kt)),lt&&Ot==wt&&On&&On.name!==wt&&(!$&&ct?it(In,"name",wt):(fn=!0,_n=function(){return j(On,this)})),Ot)if(rn={values:Qt(wt),keys:Lt?_n:Qt(xt),entries:Qt(Mt)},Pt)for(nn in rn)(st||fn||!(nn in In))&&dt(In,nn,rn[nn]);else k({target:Tt,proto:!0,forced:st||fn},rn);return $&&!Pt||In[Ct]===_n||dt(In,Ct,_n,{name:Ot}),ht[Tt]=_n,rn}},3383:function(b,_,d){var k,j,$,et=d(7293),tt=d(614),rt=d(111),nt=d(30),ot=d(9518),at=d(8052),it=d(5112),dt=d(1913),ut=it("iterator"),ht=!1;[].keys&&("next"in($=[].keys())?(j=ot(ot($)))!==Object.prototype&&(k=j):ht=!0),!rt(k)||et(function(){var ft={};return k[ut].call(ft)!==ft})?k={}:dt&&(k=nt(k)),tt(k[ut])||at(k,ut,function(){return this}),b.exports={IteratorPrototype:k,BUGGY_SAFARI_ITERATORS:ht}},7497:function(b){b.exports={}},6244:function(b,_,d){var k=d(7466);b.exports=function(j){return k(j.length)}},6339:function(b,_,d){var k=d(1702),j=d(7293),$=d(614),et=d(2597),tt=d(9781),rt=d(6530).CONFIGURABLE,nt=d(2788),ot=d(9909),at=ot.enforce,it=ot.get,dt=String,ut=Object.defineProperty,ht=k("".slice),ft=k("".replace),lt=k([].join),ct=tt&&!j(function(){return ut(function(){},"length",{value:8}).length!==8}),gt=String(String).split("String"),st=b.exports=function(Ct,xt,wt){ht(dt(xt),0,7)==="Symbol("&&(xt="["+ft(dt(xt),/^Symbol\(([^)]*)\)/,"$1")+"]"),wt&&wt.getter&&(xt="get "+xt),wt&&wt.setter&&(xt="set "+xt),(!et(Ct,"name")||rt&&Ct.name!==xt)&&(tt?ut(Ct,"name",{value:xt,configurable:!0}):Ct.name=xt),ct&&wt&&et(wt,"arity")&&Ct.length!==wt.arity&&ut(Ct,"length",{value:wt.arity});try{wt&&et(wt,"constructor")&&wt.constructor?tt&&ut(Ct,"prototype",{writable:!1}):Ct.prototype&&(Ct.prototype=void 0)}catch{}var Mt=at(Ct);return et(Mt,"source")||(Mt.source=lt(gt,typeof xt=="string"?xt:"")),Ct};Function.prototype.toString=st(function(){return $(this)&&it(this).source||nt(this)},"toString")},4758:function(b){var _=Math.ceil,d=Math.floor;b.exports=Math.trunc||function(k){var j=+k;return(j>0?d:_)(j)}},5948:function(b,_,d){var k,j,$,et,tt,rt=d(7854),nt=d(9974),ot=d(1236).f,at=d(261).set,it=d(8572),dt=d(6833),ut=d(1528),ht=d(1036),ft=d(5268),lt=rt.MutationObserver||rt.WebKitMutationObserver,ct=rt.document,gt=rt.process,st=rt.Promise,Ct=ot(rt,"queueMicrotask"),xt=Ct&&Ct.value;if(!xt){var wt=new it,Mt=function(){var kt,_t;for(ft&&(kt=gt.domain)&&kt.exit();_t=wt.get();)try{_t()}catch(Tt){throw wt.head&&k(),Tt}kt&&kt.enter()};dt||ft||ht||!lt||!ct?!ut&&st&&st.resolve?((et=st.resolve(void 0)).constructor=st,tt=nt(et.then,et),k=function(){tt(Mt)}):ft?k=function(){gt.nextTick(Mt)}:(at=nt(at,rt),k=function(){at(Mt)}):(j=!0,$=ct.createTextNode(""),new lt(Mt).observe($,{characterData:!0}),k=function(){$.data=j=!j}),xt=function(kt){wt.head||k(),wt.add(kt)}}b.exports=xt},8523:function(b,_,d){var k=d(9662),j=TypeError,$=function(et){var tt,rt;this.promise=new et(function(nt,ot){if(tt!==void 0||rt!==void 0)throw j("Bad Promise constructor");tt=nt,rt=ot}),this.resolve=k(tt),this.reject=k(rt)};b.exports.f=function(et){return new $(et)}},6277:function(b,_,d){var k=d(1340);b.exports=function(j,$){return j===void 0?arguments.length<2?"":$:k(j)}},30:function(b,_,d){var k,j=d(9670),$=d(6048),et=d(748),tt=d(3501),rt=d(490),nt=d(317),ot=d(6200),at="prototype",it="script",dt=ot("IE_PROTO"),ut=function(){},ht=function(ct){return"<"+it+">"+ct+""},ft=function(ct){ct.write(ht("")),ct.close();var gt=ct.parentWindow.Object;return ct=null,gt},lt=function(){try{k=new ActiveXObject("htmlfile")}catch{}var ct,gt,st;lt=typeof document<"u"?document.domain&&k?ft(k):(gt=nt("iframe"),st="java"+it+":",gt.style.display="none",rt.appendChild(gt),gt.src=String(st),(ct=gt.contentWindow.document).open(),ct.write(ht("document.F=Object")),ct.close(),ct.F):ft(k);for(var Ct=et.length;Ct--;)delete lt[at][et[Ct]];return lt()};tt[dt]=!0,b.exports=Object.create||function(ct,gt){var st;return ct!==null?(ut[at]=j(ct),st=new ut,ut[at]=null,st[dt]=ct):st=lt(),gt===void 0?st:$.f(st,gt)}},6048:function(b,_,d){var k=d(9781),j=d(3353),$=d(3070),et=d(9670),tt=d(5656),rt=d(1956);_.f=k&&!j?Object.defineProperties:function(nt,ot){et(nt);for(var at,it=tt(ot),dt=rt(ot),ut=dt.length,ht=0;ut>ht;)$.f(nt,at=dt[ht++],it[at]);return nt}},3070:function(b,_,d){var k=d(9781),j=d(4664),$=d(3353),et=d(9670),tt=d(4948),rt=TypeError,nt=Object.defineProperty,ot=Object.getOwnPropertyDescriptor,at="enumerable",it="configurable",dt="writable";_.f=k?$?function(ut,ht,ft){if(et(ut),ht=tt(ht),et(ft),typeof ut=="function"&&ht==="prototype"&&"value"in ft&&dt in ft&&!ft[dt]){var lt=ot(ut,ht);lt&<[dt]&&(ut[ht]=ft.value,ft={configurable:it in ft?ft[it]:lt[it],enumerable:at in ft?ft[at]:lt[at],writable:!1})}return nt(ut,ht,ft)}:nt:function(ut,ht,ft){if(et(ut),ht=tt(ht),et(ft),j)try{return nt(ut,ht,ft)}catch{}if("get"in ft||"set"in ft)throw rt("Accessors not supported");return"value"in ft&&(ut[ht]=ft.value),ut}},1236:function(b,_,d){var k=d(9781),j=d(6916),$=d(5296),et=d(9114),tt=d(5656),rt=d(4948),nt=d(2597),ot=d(4664),at=Object.getOwnPropertyDescriptor;_.f=k?at:function(it,dt){if(it=tt(it),dt=rt(dt),ot)try{return at(it,dt)}catch{}if(nt(it,dt))return et(!j($.f,it,dt),it[dt])}},1156:function(b,_,d){var k=d(4326),j=d(5656),$=d(8006).f,et=d(1589),tt=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];b.exports.f=function(rt){return tt&&k(rt)=="Window"?function(nt){try{return $(nt)}catch{return et(tt)}}(rt):$(j(rt))}},8006:function(b,_,d){var k=d(6324),j=d(748).concat("length","prototype");_.f=Object.getOwnPropertyNames||function($){return k($,j)}},5181:function(b,_){_.f=Object.getOwnPropertySymbols},9518:function(b,_,d){var k=d(2597),j=d(614),$=d(7908),et=d(6200),tt=d(8544),rt=et("IE_PROTO"),nt=Object,ot=nt.prototype;b.exports=tt?nt.getPrototypeOf:function(at){var it=$(at);if(k(it,rt))return it[rt];var dt=it.constructor;return j(dt)&&it instanceof dt?dt.prototype:it instanceof nt?ot:null}},2050:function(b,_,d){var k=d(7293),j=d(111),$=d(4326),et=d(7556),tt=Object.isExtensible,rt=k(function(){});b.exports=rt||et?function(nt){return!!j(nt)&&(!et||$(nt)!="ArrayBuffer")&&(!tt||tt(nt))}:tt},7976:function(b,_,d){var k=d(1702);b.exports=k({}.isPrototypeOf)},6324:function(b,_,d){var k=d(1702),j=d(2597),$=d(5656),et=d(1318).indexOf,tt=d(3501),rt=k([].push);b.exports=function(nt,ot){var at,it=$(nt),dt=0,ut=[];for(at in it)!j(tt,at)&&j(it,at)&&rt(ut,at);for(;ot.length>dt;)j(it,at=ot[dt++])&&(~et(ut,at)||rt(ut,at));return ut}},1956:function(b,_,d){var k=d(6324),j=d(748);b.exports=Object.keys||function($){return k($,j)}},5296:function(b,_){var d={}.propertyIsEnumerable,k=Object.getOwnPropertyDescriptor,j=k&&!d.call({1:2},1);_.f=j?function($){var et=k(this,$);return!!et&&et.enumerable}:d},7674:function(b,_,d){var k=d(5668),j=d(9670),$=d(6077);b.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var et,tt=!1,rt={};try{(et=k(Object.prototype,"__proto__","set"))(rt,[]),tt=rt instanceof Array}catch{}return function(nt,ot){return j(nt),$(ot),tt?et(nt,ot):nt.__proto__=ot,nt}}():void 0)},288:function(b,_,d){var k=d(1694),j=d(648);b.exports=k?{}.toString:function(){return"[object "+j(this)+"]"}},2140:function(b,_,d){var k=d(6916),j=d(614),$=d(111),et=TypeError;b.exports=function(tt,rt){var nt,ot;if(rt==="string"&&j(nt=tt.toString)&&!$(ot=k(nt,tt))||j(nt=tt.valueOf)&&!$(ot=k(nt,tt))||rt!=="string"&&j(nt=tt.toString)&&!$(ot=k(nt,tt)))return ot;throw et("Can't convert object to primitive value")}},3887:function(b,_,d){var k=d(5005),j=d(1702),$=d(8006),et=d(5181),tt=d(9670),rt=j([].concat);b.exports=k("Reflect","ownKeys")||function(nt){var ot=$.f(tt(nt)),at=et.f;return at?rt(ot,at(nt)):ot}},857:function(b,_,d){var k=d(7854);b.exports=k},2534:function(b){b.exports=function(_){try{return{error:!1,value:_()}}catch(d){return{error:!0,value:d}}}},3702:function(b,_,d){var k=d(7854),j=d(2492),$=d(614),et=d(4705),tt=d(2788),rt=d(5112),nt=d(7871),ot=d(3823),at=d(1913),it=d(7392),dt=j&&j.prototype,ut=rt("species"),ht=!1,ft=$(k.PromiseRejectionEvent),lt=et("Promise",function(){var ct=tt(j),gt=ct!==String(j);if(!gt&&it===66||at&&(!dt.catch||!dt.finally))return!0;if(!it||it<51||!/native code/.test(ct)){var st=new j(function(xt){xt(1)}),Ct=function(xt){xt(function(){},function(){})};if((st.constructor={})[ut]=Ct,!(ht=st.then(function(){})instanceof Ct))return!0}return!gt&&(nt||ot)&&!ft});b.exports={CONSTRUCTOR:lt,REJECTION_EVENT:ft,SUBCLASSING:ht}},2492:function(b,_,d){var k=d(7854);b.exports=k.Promise},9478:function(b,_,d){var k=d(9670),j=d(111),$=d(8523);b.exports=function(et,tt){if(k(et),j(tt)&&tt.constructor===et)return tt;var rt=$.f(et);return(0,rt.resolve)(tt),rt.promise}},612:function(b,_,d){var k=d(2492),j=d(7072),$=d(3702).CONSTRUCTOR;b.exports=$||!j(function(et){k.all(et).then(void 0,function(){})})},8572:function(b){var _=function(){this.head=null,this.tail=null};_.prototype={add:function(d){var k={item:d,next:null},j=this.tail;j?j.next=k:this.head=k,this.tail=k},get:function(){var d=this.head;if(d)return(this.head=d.next)===null&&(this.tail=null),d.item}},b.exports=_},4488:function(b,_,d){var k=d(8554),j=TypeError;b.exports=function($){if(k($))throw j("Can't call method on "+$);return $}},6340:function(b,_,d){var k=d(5005),j=d(7045),$=d(5112),et=d(9781),tt=$("species");b.exports=function(rt){var nt=k(rt);et&&nt&&!nt[tt]&&j(nt,tt,{configurable:!0,get:function(){return this}})}},8003:function(b,_,d){var k=d(3070).f,j=d(2597),$=d(5112)("toStringTag");b.exports=function(et,tt,rt){et&&!rt&&(et=et.prototype),et&&!j(et,$)&&k(et,$,{configurable:!0,value:tt})}},6200:function(b,_,d){var k=d(2309),j=d(9711),$=k("keys");b.exports=function(et){return $[et]||($[et]=j(et))}},5465:function(b,_,d){var k=d(7854),j=d(3072),$="__core-js_shared__",et=k[$]||j($,{});b.exports=et},2309:function(b,_,d){var k=d(1913),j=d(5465);(b.exports=function($,et){return j[$]||(j[$]=et!==void 0?et:{})})("versions",[]).push({version:"3.29.0",mode:k?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6707:function(b,_,d){var k=d(9670),j=d(9483),$=d(8554),et=d(5112)("species");b.exports=function(tt,rt){var nt,ot=k(tt).constructor;return ot===void 0||$(nt=k(ot)[et])?rt:j(nt)}},8710:function(b,_,d){var k=d(1702),j=d(9303),$=d(1340),et=d(4488),tt=k("".charAt),rt=k("".charCodeAt),nt=k("".slice),ot=function(at){return function(it,dt){var ut,ht,ft=$(et(it)),lt=j(dt),ct=ft.length;return lt<0||lt>=ct?at?"":void 0:(ut=rt(ft,lt))<55296||ut>56319||lt+1===ct||(ht=rt(ft,lt+1))<56320||ht>57343?at?tt(ft,lt):ut:at?nt(ft,lt,lt+2):ht-56320+(ut-55296<<10)+65536}};b.exports={codeAt:ot(!1),charAt:ot(!0)}},6293:function(b,_,d){var k=d(7392),j=d(7293);b.exports=!!Object.getOwnPropertySymbols&&!j(function(){var $=Symbol();return!String($)||!(Object($)instanceof Symbol)||!Symbol.sham&&k&&k<41})},261:function(b,_,d){var k,j,$,et,tt=d(7854),rt=d(2104),nt=d(9974),ot=d(614),at=d(2597),it=d(7293),dt=d(490),ut=d(206),ht=d(317),ft=d(8053),lt=d(6833),ct=d(5268),gt=tt.setImmediate,st=tt.clearImmediate,Ct=tt.process,xt=tt.Dispatch,wt=tt.Function,Mt=tt.MessageChannel,kt=tt.String,_t=0,Tt={},At="onreadystatechange";it(function(){k=tt.location});var Et=function(Zt){if(at(Tt,Zt)){var rn=Tt[Zt];delete Tt[Zt],rn()}},Ot=function(Zt){return function(){Et(Zt)}},Lt=function(Zt){Et(Zt.data)},Pt=function(Zt){tt.postMessage(kt(Zt),k.protocol+"//"+k.host)};gt&&st||(gt=function(Zt){ft(arguments.length,1);var rn=ot(Zt)?Zt:wt(Zt),nn=ut(arguments,1);return Tt[++_t]=function(){rt(rn,void 0,nn)},j(_t),_t},st=function(Zt){delete Tt[Zt]},ct?j=function(Zt){Ct.nextTick(Ot(Zt))}:xt&&xt.now?j=function(Zt){xt.now(Ot(Zt))}:Mt&&!lt?(et=($=new Mt).port2,$.port1.onmessage=Lt,j=nt(et.postMessage,et)):tt.addEventListener&&ot(tt.postMessage)&&!tt.importScripts&&k&&k.protocol!=="file:"&&!it(Pt)?(j=Pt,tt.addEventListener("message",Lt,!1)):j=At in ht("script")?function(Zt){dt.appendChild(ht("script"))[At]=function(){dt.removeChild(this),Et(Zt)}}:function(Zt){setTimeout(Ot(Zt),0)}),b.exports={set:gt,clear:st}},1400:function(b,_,d){var k=d(9303),j=Math.max,$=Math.min;b.exports=function(et,tt){var rt=k(et);return rt<0?j(rt+tt,0):$(rt,tt)}},5656:function(b,_,d){var k=d(8361),j=d(4488);b.exports=function($){return k(j($))}},9303:function(b,_,d){var k=d(4758);b.exports=function(j){var $=+j;return $!=$||$===0?0:k($)}},7466:function(b,_,d){var k=d(9303),j=Math.min;b.exports=function($){return $>0?j(k($),9007199254740991):0}},7908:function(b,_,d){var k=d(4488),j=Object;b.exports=function($){return j(k($))}},7593:function(b,_,d){var k=d(6916),j=d(111),$=d(2190),et=d(8173),tt=d(2140),rt=d(5112),nt=TypeError,ot=rt("toPrimitive");b.exports=function(at,it){if(!j(at)||$(at))return at;var dt,ut=et(at,ot);if(ut){if(it===void 0&&(it="default"),dt=k(ut,at,it),!j(dt)||$(dt))return dt;throw nt("Can't convert object to primitive value")}return it===void 0&&(it="number"),tt(at,it)}},4948:function(b,_,d){var k=d(7593),j=d(2190);b.exports=function($){var et=k($,"string");return j(et)?et:et+""}},1694:function(b,_,d){var k={};k[d(5112)("toStringTag")]="z",b.exports=String(k)==="[object z]"},1340:function(b,_,d){var k=d(648),j=String;b.exports=function($){if(k($)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return j($)}},6330:function(b){var _=String;b.exports=function(d){try{return _(d)}catch{return"Object"}}},9711:function(b,_,d){var k=d(1702),j=0,$=Math.random(),et=k(1 .toString);b.exports=function(tt){return"Symbol("+(tt===void 0?"":tt)+")_"+et(++j+$,36)}},3307:function(b,_,d){var k=d(6293);b.exports=k&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},3353:function(b,_,d){var k=d(9781),j=d(7293);b.exports=k&&j(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},8053:function(b){var _=TypeError;b.exports=function(d,k){if(d2&&at(xt,arguments[2]);var Mt=[];return dt(st,lt,{that:Mt}),nt(xt,"errors",Mt),xt};et?et(ct,ft):tt(ct,ft,{name:!0});var gt=ct.prototype=rt(ft.prototype,{constructor:ot(1,ct),message:ot(1,""),name:ot(1,"AggregateError")});k({global:!0,constructor:!0,arity:2},{AggregateError:ct})},9170:function(b,_,d){d(6967)},6992:function(b,_,d){var k=d(5656),j=d(1223),$=d(7497),et=d(9909),tt=d(3070).f,rt=d(1656),nt=d(6178),ot=d(1913),at=d(9781),it="Array Iterator",dt=et.set,ut=et.getterFor(it);b.exports=rt(Array,"Array",function(ft,lt){dt(this,{type:it,target:k(ft),index:0,kind:lt})},function(){var ft=ut(this),lt=ft.target,ct=ft.kind,gt=ft.index++;return!lt||gt>=lt.length?(ft.target=void 0,nt(void 0,!0)):nt(ct=="keys"?gt:ct=="values"?lt[gt]:[gt,lt[gt]],!1)},"values");var ht=$.Arguments=$.Array;if(j("keys"),j("values"),j("entries"),!ot&&at&&ht.name!=="values")try{tt(ht,"name",{value:"values"})}catch{}},9098:function(b,_,d){d(7710)("Map",function(k){return function(){return k(this,arguments.length?arguments[0]:void 0)}},d(5631))},1532:function(b,_,d){d(9098)},1539:function(b,_,d){var k=d(1694),j=d(8052),$=d(288);k||j(Object.prototype,"toString",$,{unsafe:!0})},7922:function(b,_,d){var k=d(2109),j=d(6916),$=d(9662),et=d(8523),tt=d(2534),rt=d(408);k({target:"Promise",stat:!0,forced:d(612)},{allSettled:function(nt){var ot=this,at=et.f(ot),it=at.resolve,dt=at.reject,ut=tt(function(){var ht=$(ot.resolve),ft=[],lt=0,ct=1;rt(nt,function(gt){var st=lt++,Ct=!1;ct++,j(ht,ot,gt).then(function(xt){Ct||(Ct=!0,ft[st]={status:"fulfilled",value:xt},--ct||it(ft))},function(xt){Ct||(Ct=!0,ft[st]={status:"rejected",reason:xt},--ct||it(ft))})}),--ct||it(ft)});return ut.error&&dt(ut.value),at.promise}})},821:function(b,_,d){var k=d(2109),j=d(6916),$=d(9662),et=d(8523),tt=d(2534),rt=d(408);k({target:"Promise",stat:!0,forced:d(612)},{all:function(nt){var ot=this,at=et.f(ot),it=at.resolve,dt=at.reject,ut=tt(function(){var ht=$(ot.resolve),ft=[],lt=0,ct=1;rt(nt,function(gt){var st=lt++,Ct=!1;ct++,j(ht,ot,gt).then(function(xt){Ct||(Ct=!0,ft[st]=xt,--ct||it(ft))},dt)}),--ct||it(ft)});return ut.error&&dt(ut.value),at.promise}})},4668:function(b,_,d){var k=d(2109),j=d(6916),$=d(9662),et=d(5005),tt=d(8523),rt=d(2534),nt=d(408),ot=d(612),at="No one promise resolved";k({target:"Promise",stat:!0,forced:ot},{any:function(it){var dt=this,ut=et("AggregateError"),ht=tt.f(dt),ft=ht.resolve,lt=ht.reject,ct=rt(function(){var gt=$(dt.resolve),st=[],Ct=0,xt=1,wt=!1;nt(it,function(Mt){var kt=Ct++,_t=!1;xt++,j(gt,dt,Mt).then(function(Tt){_t||wt||(wt=!0,ft(Tt))},function(Tt){_t||wt||(_t=!0,st[kt]=Tt,--xt||lt(new ut(st,at)))})}),--xt||lt(new ut(st,at))});return ct.error&<(ct.value),ht.promise}})},4164:function(b,_,d){var k=d(2109),j=d(1913),$=d(3702).CONSTRUCTOR,et=d(2492),tt=d(5005),rt=d(614),nt=d(8052),ot=et&&et.prototype;if(k({target:"Promise",proto:!0,forced:$,real:!0},{catch:function(it){return this.then(void 0,it)}}),!j&&rt(et)){var at=tt("Promise").prototype.catch;ot.catch!==at&&nt(ot,"catch",at,{unsafe:!0})}},3401:function(b,_,d){var k,j,$,et=d(2109),tt=d(1913),rt=d(5268),nt=d(7854),ot=d(6916),at=d(8052),it=d(7674),dt=d(8003),ut=d(6340),ht=d(9662),ft=d(614),lt=d(111),ct=d(5787),gt=d(6707),st=d(261).set,Ct=d(5948),xt=d(842),wt=d(2534),Mt=d(8572),kt=d(9909),_t=d(2492),Tt=d(3702),At=d(8523),Et="Promise",Ot=Tt.CONSTRUCTOR,Lt=Tt.REJECTION_EVENT,Pt=Tt.SUBCLASSING,Zt=kt.getterFor(Et),rn=kt.set,nn=_t&&_t.prototype,Qt=_t,Vt=nn,fn=nt.TypeError,In=nt.document,On=nt.process,_n=At.f,Pn=_n,Yn=!!(In&&In.createEvent&&nt.dispatchEvent),dn="unhandledrejection",An=function(Mn){var Wn;return!(!lt(Mn)||!ft(Wn=Mn.then))&&Wn},mn=function(Mn,Wn){var wn,Nn,zn,Vn=Wn.value,bn=Wn.state==1,Yt=bn?Mn.ok:Mn.fail,bt=Mn.resolve,pt=Mn.reject,yt=Mn.domain;try{Yt?(bn||(Wn.rejection===2&&gn(Wn),Wn.rejection=1),Yt===!0?wn=Vn:(yt&&yt.enter(),wn=Yt(Vn),yt&&(yt.exit(),zn=!0)),wn===Mn.promise?pt(fn("Promise-chain cycle")):(Nn=An(wn))?ot(Nn,wn,bt,pt):bt(wn)):pt(Vn)}catch(Ut){yt&&!zn&&yt.exit(),pt(Ut)}},jn=function(Mn,Wn){Mn.notified||(Mn.notified=!0,Ct(function(){for(var wn,Nn=Mn.reactions;wn=Nn.get();)mn(wn,Mn);Mn.notified=!1,Wn&&!Mn.rejection&&vn(Mn)}))},kn=function(Mn,Wn,wn){var Nn,zn;Yn?((Nn=In.createEvent("Event")).promise=Wn,Nn.reason=wn,Nn.initEvent(Mn,!1,!0),nt.dispatchEvent(Nn)):Nn={promise:Wn,reason:wn},!Lt&&(zn=nt["on"+Mn])?zn(Nn):Mn===dn&&xt("Unhandled promise rejection",wn)},vn=function(Mn){ot(st,nt,function(){var Wn,wn=Mn.facade,Nn=Mn.value;if(En(Mn)&&(Wn=wt(function(){rt?On.emit("unhandledRejection",Nn,wn):kn(dn,wn,Nn)}),Mn.rejection=rt||En(Mn)?2:1,Wn.error))throw Wn.value})},En=function(Mn){return Mn.rejection!==1&&!Mn.parent},gn=function(Mn){ot(st,nt,function(){var Wn=Mn.facade;rt?On.emit("rejectionHandled",Wn):kn("rejectionhandled",Wn,Mn.value)})},Ln=function(Mn,Wn,wn){return function(Nn){Mn(Wn,Nn,wn)}},Fn=function(Mn,Wn,wn){Mn.done||(Mn.done=!0,wn&&(Mn=wn),Mn.value=Wn,Mn.state=2,jn(Mn,!0))},Un=function(Mn,Wn,wn){if(!Mn.done){Mn.done=!0,wn&&(Mn=wn);try{if(Mn.facade===Wn)throw fn("Promise can't be resolved itself");var Nn=An(Wn);Nn?Ct(function(){var zn={done:!1};try{ot(Nn,Wn,Ln(Un,zn,Mn),Ln(Fn,zn,Mn))}catch(Vn){Fn(zn,Vn,Mn)}}):(Mn.value=Wn,Mn.state=1,jn(Mn,!1))}catch(zn){Fn({done:!1},zn,Mn)}}};if(Ot&&(Vt=(Qt=function(Mn){ct(this,Vt),ht(Mn),ot(k,this);var Wn=Zt(this);try{Mn(Ln(Un,Wn),Ln(Fn,Wn))}catch(wn){Fn(Wn,wn)}}).prototype,(k=function(Mn){rn(this,{type:Et,done:!1,notified:!1,parent:!1,reactions:new Mt,rejection:!1,state:0,value:void 0})}).prototype=at(Vt,"then",function(Mn,Wn){var wn=Zt(this),Nn=_n(gt(this,Qt));return wn.parent=!0,Nn.ok=!ft(Mn)||Mn,Nn.fail=ft(Wn)&&Wn,Nn.domain=rt?On.domain:void 0,wn.state==0?wn.reactions.add(Nn):Ct(function(){mn(Nn,wn)}),Nn.promise}),j=function(){var Mn=new k,Wn=Zt(Mn);this.promise=Mn,this.resolve=Ln(Un,Wn),this.reject=Ln(Fn,Wn)},At.f=_n=function(Mn){return Mn===Qt||Mn===void 0?new j(Mn):Pn(Mn)},!tt&&ft(_t)&&nn!==Object.prototype)){$=nn.then,Pt||at(nn,"then",function(Mn,Wn){var wn=this;return new Qt(function(Nn,zn){ot($,wn,Nn,zn)}).then(Mn,Wn)},{unsafe:!0});try{delete nn.constructor}catch{}it&&it(nn,Vt)}et({global:!0,constructor:!0,wrap:!0,forced:Ot},{Promise:Qt}),dt(Qt,Et,!1,!0),ut(Et)},7727:function(b,_,d){var k=d(2109),j=d(1913),$=d(2492),et=d(7293),tt=d(5005),rt=d(614),nt=d(6707),ot=d(9478),at=d(8052),it=$&&$.prototype;if(k({target:"Promise",proto:!0,real:!0,forced:!!$&&et(function(){it.finally.call({then:function(){}},function(){})})},{finally:function(ut){var ht=nt(this,tt("Promise")),ft=rt(ut);return this.then(ft?function(lt){return ot(ht,ut()).then(function(){return lt})}:ut,ft?function(lt){return ot(ht,ut()).then(function(){throw lt})}:ut)}}),!j&&rt($)){var dt=tt("Promise").prototype.finally;it.finally!==dt&&at(it,"finally",dt,{unsafe:!0})}},8674:function(b,_,d){d(3401),d(821),d(4164),d(6027),d(683),d(6294)},6027:function(b,_,d){var k=d(2109),j=d(6916),$=d(9662),et=d(8523),tt=d(2534),rt=d(408);k({target:"Promise",stat:!0,forced:d(612)},{race:function(nt){var ot=this,at=et.f(ot),it=at.reject,dt=tt(function(){var ut=$(ot.resolve);rt(nt,function(ht){j(ut,ot,ht).then(at.resolve,it)})});return dt.error&&it(dt.value),at.promise}})},683:function(b,_,d){var k=d(2109),j=d(6916),$=d(8523);k({target:"Promise",stat:!0,forced:d(3702).CONSTRUCTOR},{reject:function(et){var tt=$.f(this);return j(tt.reject,void 0,et),tt.promise}})},6294:function(b,_,d){var k=d(2109),j=d(5005),$=d(1913),et=d(2492),tt=d(3702).CONSTRUCTOR,rt=d(9478),nt=j("Promise"),ot=$&&!tt;k({target:"Promise",stat:!0,forced:$||tt},{resolve:function(at){return rt(ot&&this===nt?et:this,at)}})},8783:function(b,_,d){var k=d(8710).charAt,j=d(1340),$=d(9909),et=d(1656),tt=d(6178),rt="String Iterator",nt=$.set,ot=$.getterFor(rt);et(String,"String",function(at){nt(this,{type:rt,string:j(at),index:0})},function(){var at,it=ot(this),dt=it.string,ut=it.index;return ut>=dt.length?tt(void 0,!0):(at=k(dt,ut),it.index+=at.length,tt(at,!1))})},3948:function(b,_,d){var k=d(7854),j=d(8324),$=d(8509),et=d(6992),tt=d(8880),rt=d(5112),nt=rt("iterator"),ot=rt("toStringTag"),at=et.values,it=function(ut,ht){if(ut){if(ut[nt]!==at)try{tt(ut,nt,at)}catch{ut[nt]=at}if(ut[ot]||tt(ut,ot,ht),j[ht]){for(var ft in et)if(ut[ft]!==et[ft])try{tt(ut,ft,et[ft])}catch{ut[ft]=et[ft]}}}};for(var dt in j)it(k[dt]&&k[dt].prototype,dt);it($,"DOMTokenList")},1150:function(b,_,d){var k=d(7633);d(3948),b.exports=k},3191:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_console{padding-top:40px;padding-bottom:24px;width:100%;height:100%}#_console._js-input-hidden{padding-bottom:0}#_console ._control{position:absolute;width:100%;height:40px;left:0;top:0;cursor:default;font-size:0;background:var(--darker-background);color:var(--primary);line-height:20px;border-bottom:1px solid var(--border);padding:10px 10px 10px 35px}#_console ._control [class*=' _icon-'],#_console ._control [class^='_icon-']{display:inline-block;padding:10px;font-size:16px;position:absolute;top:0;cursor:pointer;transition:color .3s}#_console ._control [class*=' _icon-']._active,#_console ._control [class*=' _icon-']:active,#_console ._control [class^='_icon-']._active,#_console ._control [class^='_icon-']:active{color:var(--accent)}#_console ._control ._icon-clear{padding-right:0;left:0}#_console ._control ._icon-copy{right:0}#_console ._control ._icon-filter{right:23px}#_console ._control ._level{cursor:pointer;font-size:12px;height:20px;display:inline-block;margin:0 2px;padding:0 4px;line-height:20px;transition:background-color .3s,color .3s}#_console ._control ._level._active{background:var(--highlight);color:var(--select-foreground)}#_console ._control ._filter-text{white-space:nowrap;position:absolute;line-height:20px;max-width:80px;overflow:hidden;right:55px;font-size:14px;text-overflow:ellipsis}#_console ._js-input{pointer-events:none;position:absolute;z-index:100;left:0;bottom:0;width:100%;border-top:1px solid var(--border);height:24px}#_console ._js-input ._icon-arrow-right{line-height:23px;color:var(--accent);position:absolute;left:10px;top:0;z-index:10}#_console ._js-input._active{height:100%;padding-top:40px;padding-bottom:40px;border-top:none}#_console ._js-input._active ._icon-arrow-right{display:none}#_console ._js-input._active textarea{overflow:auto;padding-left:10px}#_console ._js-input ._buttons{display:none;position:absolute;left:0;bottom:0;width:100%;height:40px;color:var(--primary);background:var(--darker-background);font-size:12px;border-top:1px solid var(--border)}#_console ._js-input ._buttons ._button{pointer-events:all;cursor:pointer;flex:1;text-align:center;border-right:1px solid var(--border);height:40px;line-height:40px;transition:background-color .3s,color .3s}#_console ._js-input ._buttons ._button:last-child{border-right:none}#_console ._js-input ._buttons ._button:active{color:var(--select-foreground);background:var(--highlight)}#_console ._js-input textarea{overflow:hidden;pointer-events:all;padding:3px 10px;padding-left:25px;outline:0;border:none;font-size:14px;width:100%;height:100%;-webkit-user-select:text;user-select:text;resize:none;color:var(--primary);background:var(--background)}._safe-area #_console{padding-bottom:calc(24px + env(safe-area-inset-bottom))}._safe-area #_console._js-input-hidden{padding-bottom:0}._safe-area #_console ._js-input{height:calc(24px + env(safe-area-inset-bottom))}._safe-area #_console ._js-input._active{height:100%;padding-bottom:calc(40px + env(safe-area-inset-bottom))}._safe-area #_console ._js-input ._buttons{height:calc(40px + env(safe-area-inset-bottom))}._safe-area #_console ._js-input ._buttons ._button{height:calc(40px + env(safe-area-inset-bottom))}",""]),b.exports=_},13:function(b,_,d){(_=d(3645)(!1)).push([b.id,"._dev-tools{position:absolute;width:100%;height:100%;left:0;bottom:0;background:var(--background);z-index:500;display:none;padding-top:40px!important;opacity:0;transition:opacity .3s;border-top:1px solid var(--border)}._dev-tools ._resizer{position:absolute;width:100%;left:0;top:-8px;cursor:row-resize;z-index:120}._dev-tools ._tools{overflow:auto;-webkit-overflow-scrolling:touch;height:100%;width:100%;position:relative}._dev-tools ._tools ._tool{position:absolute;width:100%;height:100%;left:0;top:0;overflow:hidden;display:none}",""]),b.exports=_},5896:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_elements ._elements{position:absolute;width:100%;height:100%;left:0;top:0;padding-top:40px;padding-bottom:24px;font-size:14px}#_elements ._control{position:absolute;width:100%;height:40px;left:0;top:0;cursor:default;font-size:0;background:var(--darker-background);color:var(--primary);line-height:20px;border-bottom:1px solid var(--border);padding:10px 0}#_elements ._control [class*=' _icon-'],#_elements ._control [class^='_icon-']{display:inline-block;padding:10px;font-size:16px;position:absolute;top:0;cursor:pointer;transition:color .3s}#_elements ._control [class*=' _icon-']._active,#_elements ._control [class*=' _icon-']:active,#_elements ._control [class^='_icon-']._active,#_elements ._control [class^='_icon-']:active{color:var(--accent)}#_elements ._control ._icon-eye{right:0}#_elements ._control ._icon-copy{right:23px}#_elements ._control ._icon-delete{right:46px}#_elements ._dom-viewer-container{overflow-y:auto;-webkit-overflow-scrolling:touch;height:100%;padding:5px 0}#_elements ._crumbs{position:absolute;width:100%;height:24px;left:0;top:0;top:initial;line-height:24px;bottom:0;border-top:1px solid var(--border);background:var(--darker-background);color:var(--primary);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#_elements ._crumbs li{cursor:pointer;padding:0 7px;display:inline-block}#_elements ._crumbs li:hover,#_elements ._crumbs li:last-child{background:var(--highlight)}#_elements ._crumbs ._icon-arrow-right{font-size:12px;position:relative;top:1px}#_elements ._detail{position:absolute;width:100%;height:100%;left:0;top:0;z-index:10;padding-top:40px;display:none;background:var(--background)}#_elements ._detail ._control{padding:10px 35px}#_elements ._detail ._control ._element-name{font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%;display:inline-block}#_elements ._detail ._control ._icon-arrow-left{left:0}#_elements ._detail ._control ._icon-refresh{right:0}#_elements ._detail ._element{overflow-y:auto;-webkit-overflow-scrolling:touch;height:100%}#_elements ._section{border-bottom:1px solid var(--border);color:var(--foreground);margin:10px 0}#_elements ._section h2{color:var(--primary);background:var(--darker-background);border-top:1px solid var(--border);padding:10px;line-height:18px;font-size:14px;transition:background-color .3s}#_elements ._section h2 ._btn{margin-left:5px;float:right;color:var(--primary);width:18px;height:18px;font-size:16px;cursor:pointer;transition:color .3s}#_elements ._section h2 ._btn._filter-text{width:auto;max-width:80px;font-size:14px;overflow:hidden;font-weight:400;text-overflow:ellipsis;display:inline-block}#_elements ._section h2 ._btn:active{color:var(--accent)}#_elements ._section h2 ._btn._btn-disabled{color:inherit!important;cursor:default!important;pointer-events:none;opacity:.5}#_elements ._section h2 ._btn._btn-disabled *{pointer-events:none}#_elements ._section h2._active-effect{cursor:pointer}#_elements ._section h2._active-effect:active{background:var(--highlight);color:var(--select-foreground)}#_elements ._attributes{font-size:12px}#_elements ._attributes a{color:var(--link-color)}#_elements ._attributes ._table-wrapper{overflow-x:auto;-webkit-overflow-scrolling:touch}#_elements ._attributes table td{padding:5px 10px}#_elements ._text-content{background:#fff}#_elements ._text-content ._content{overflow-x:auto;-webkit-overflow-scrolling:touch;padding:10px}#_elements ._style-color{position:relative;top:1px;width:10px;height:10px;border-radius:50%;margin-right:2px;border:1px solid var(--border);display:inline-block}#_elements ._box-model{overflow-x:auto;-webkit-overflow-scrolling:touch;padding:10px;text-align:center;border-bottom:1px solid var(--color)}#_elements ._computed-style{font-size:12px}#_elements ._computed-style a{color:var(--link-color)}#_elements ._computed-style ._table-wrapper{overflow-y:auto;-webkit-overflow-scrolling:touch;max-height:200px;border-top:1px solid var(--border)}#_elements ._computed-style table td{padding:5px 10px}#_elements ._computed-style table td._key{white-space:nowrap;color:var(--var-color)}#_elements ._styles{font-size:12px}#_elements ._styles ._style-wrapper{padding:10px}#_elements ._styles ._style-wrapper ._style-rules{border:1px solid var(--border);padding:10px;margin-bottom:10px}#_elements ._styles ._style-wrapper ._style-rules ._rule{padding-left:2em;word-break:break-all}#_elements ._styles ._style-wrapper ._style-rules ._rule a{color:var(--link-color)}#_elements ._styles ._style-wrapper ._style-rules ._rule span{color:var(--var-color)}#_elements ._styles ._style-wrapper ._style-rules:last-child{margin-bottom:0}#_elements ._listeners{font-size:12px}#_elements ._listeners ._listener-wrapper{padding:10px}#_elements ._listeners ._listener-wrapper ._listener{margin-bottom:10px;overflow:hidden;border:1px solid var(--border)}#_elements ._listeners ._listener-wrapper ._listener ._listener-type{padding:10px;background:var(--darker-background);color:var(--primary)}#_elements ._listeners ._listener-wrapper ._listener ._listener-content li{overflow-x:auto;-webkit-overflow-scrolling:touch;padding:10px;border-top:none}._safe-area #_elements ._elements{padding-bottom:calc(24px + env(safe-area-inset-bottom))}._safe-area #_elements ._crumbs{height:calc(24px + env(safe-area-inset-bottom))}._safe-area #_elements ._element{padding-bottom:calc(0px + env(safe-area-inset-bottom))}@media screen and (min-width:680px){#_elements ._elements{width:50%}#_elements ._elements ._control ._icon-eye{display:none}#_elements ._elements ._control ._icon-copy{right:0}#_elements ._elements ._control ._icon-delete{right:23px}#_elements ._detail{width:50%;left:initial;right:0;border-left:1px solid var(--border)}#_elements ._detail ._control{padding-left:10px}#_elements ._detail ._control ._icon-arrow-left{display:none}}",""]),b.exports=_},9195:function(b,_,d){(_=d(3645)(!1)).push([b.id,"._container ._entry-btn{touch-action:none;width:40px;height:40px;display:flex;background:#000;opacity:.3;border-radius:10px;position:relative;z-index:1000;transition:opacity .3s;color:#fff;font-size:25px;align-items:center;justify-content:center}._container ._entry-btn._active,._container ._entry-btn:active{opacity:.8}",""]),b.exports=_},879:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_info{overflow-y:auto;-webkit-overflow-scrolling:touch}#_info li{margin:10px;border:1px solid var(--border)}#_info li ._content,#_info li ._title{padding:10px}#_info li ._title{position:relative;padding-bottom:0;color:var(--accent)}#_info li ._title ._icon-copy{position:absolute;right:10px;top:14px;color:var(--primary);cursor:pointer;transition:color .3s}#_info li ._title ._icon-copy:active{color:var(--accent)}#_info li ._content{margin:0;-webkit-user-select:text;user-select:text;color:var(--foreground);font-size:12px;word-break:break-all}#_info li ._content table{width:100%;border-collapse:collapse}#_info li ._content table td,#_info li ._content table th{border:1px solid var(--border);padding:10px}#_info li ._content *{-webkit-user-select:text;user-select:text}#_info li ._content a{color:var(--link-color)}#_info li ._device-key,#_info li ._system-key{width:100px}._safe-area #_info{padding-bottom:calc(10px + env(safe-area-inset-bottom))}",""]),b.exports=_},3180:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_network ._network{position:absolute;width:100%;height:100%;left:0;top:0;padding-top:39px}#_network ._control{position:absolute;width:100%;height:40px;left:0;top:0;cursor:default;font-size:0;background:var(--darker-background);color:var(--primary);line-height:20px;border-bottom:1px solid var(--border);padding:10px;border-bottom:none}#_network ._control [class*=' _icon-'],#_network ._control [class^='_icon-']{display:inline-block;padding:10px;font-size:16px;position:absolute;top:0;cursor:pointer;transition:color .3s}#_network ._control [class*=' _icon-']._active,#_network ._control [class*=' _icon-']:active,#_network ._control [class^='_icon-']._active,#_network ._control [class^='_icon-']:active{color:var(--accent)}#_network ._control ._title{font-size:14px}#_network ._control ._icon-clear{left:23px}#_network ._control ._icon-eye{right:0}#_network ._control ._icon-copy{right:23px}#_network ._control ._icon-filter{right:46px}#_network ._control ._filter-text{white-space:nowrap;position:absolute;line-height:20px;max-width:80px;overflow:hidden;right:88px;font-size:14px;text-overflow:ellipsis}#_network ._control ._icon-record{left:0}#_network ._control ._icon-record._recording{color:var(--console-error-foreground);text-shadow:0 0 4px var(--console-error-foreground)}#_network ._request-error{color:var(--console-error-foreground)}#_network .luna-data-grid:focus .luna-data-grid-data-container ._request-error.luna-data-grid-selected{background:var(--console-error-background)}#_network .luna-data-grid{border-left:none;border-right:none}#_network ._detail{position:absolute;width:100%;height:100%;left:0;top:0;z-index:10;display:none;padding-top:40px;background:var(--background)}#_network ._detail ._control{padding:10px 35px;border-bottom:1px solid var(--border)}#_network ._detail ._control ._url{font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%;display:inline-block}#_network ._detail ._control ._icon-arrow-left{left:0}#_network ._detail ._control ._icon-delete{left:0;display:none}#_network ._detail ._control ._icon-copy{right:0}#_network ._detail ._http{overflow-y:auto;-webkit-overflow-scrolling:touch;height:100%}#_network ._detail ._http ._section{border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin-top:10px;margin-bottom:10px}#_network ._detail ._http ._section h2{background:var(--darker-background);color:var(--primary);padding:10px;line-height:18px;font-size:14px}#_network ._detail ._http ._section table{color:var(--foreground)}#_network ._detail ._http ._section table *{-webkit-user-select:text;user-select:text}#_network ._detail ._http ._section table td{font-size:12px;padding:5px 10px;word-break:break-all}#_network ._detail ._http ._section table ._key{white-space:nowrap;font-weight:700;color:var(--accent)}#_network ._detail ._http ._data,#_network ._detail ._http ._response{-webkit-user-select:text;user-select:text;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:10px;font-size:12px;margin:10px 0;white-space:pre-wrap;border-top:1px solid var(--border);color:var(--foreground);border-bottom:1px solid var(--border)}._safe-area #_network ._http{padding-bottom:calc(0px + env(safe-area-inset-bottom))}@media screen and (min-width:680px){#_network ._network ._control ._icon-eye{display:none}#_network ._network ._control ._icon-copy{right:0}#_network ._network ._control ._icon-filter{right:23px}#_network ._network ._control ._filter-text{right:55px}#_network ._detail{width:50%;left:initial;right:0;border-left:1px solid var(--border)}#_network ._detail ._control ._icon-arrow-left{display:none}#_network ._detail ._control ._icon-delete{display:block}}",""]),b.exports=_},2488:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_resources{overflow-y:auto;-webkit-overflow-scrolling:touch;padding:10px;font-size:14px}#_resources ._section{margin-bottom:10px;overflow:hidden;border:1px solid var(--border)}#_resources ._section._warn{border:1px solid var(--console-warn-border)}#_resources ._section._warn ._title{background:var(--console-warn-background);color:var(--console-warn-foreground)}#_resources ._section._danger{border:1px solid var(--console-error-border)}#_resources ._section._danger ._title{background:var(--console-error-background);color:var(--console-error-foreground)}#_resources ._section._cookie,#_resources ._section._local-storage,#_resources ._section._session-storage{border:none}#_resources ._section._cookie ._title,#_resources ._section._local-storage ._title,#_resources ._section._session-storage ._title{border:1px solid var(--border);border-bottom:none}#_resources ._title{padding:10px;line-height:18px;color:var(--primary);background:var(--darker-background)}#_resources ._title ._btn{margin-left:5px;float:right;color:var(--primary);width:18px;height:18px;font-size:16px;cursor:pointer;transition:color .3s}#_resources ._title ._btn._filter-text{width:auto;max-width:80px;font-size:14px;overflow:hidden;font-weight:400;text-overflow:ellipsis;display:inline-block}#_resources ._title ._btn:active{color:var(--accent)}#_resources ._title ._btn._btn-disabled{color:inherit!important;cursor:default!important;pointer-events:none;opacity:.5}#_resources ._title ._btn._btn-disabled *{pointer-events:none}#_resources ._link-list{font-size:12px;color:var(--foreground)}#_resources ._link-list li{padding:10px;word-break:break-all}#_resources ._link-list li a{color:var(--link-color)!important}#_resources ._image-list{color:var(--foreground);font-size:12px;display:flex;flex-wrap:wrap;padding:10px!important}#_resources ._image-list:after{content:'';display:block;clear:both}#_resources ._image-list li{flex-grow:1;cursor:pointer;overflow-y:hidden}#_resources ._image-list li._image{height:100px;font-size:0}#_resources ._image-list li img{height:100px;min-width:100%;-o-object-fit:cover;object-fit:cover}._safe-area #_resources{padding-bottom:calc(10px + env(safe-area-inset-bottom))}",""]),b.exports=_},8011:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_settings{overflow-y:auto;-webkit-overflow-scrolling:touch}._safe-area #_settings{padding-bottom:calc(0px + env(safe-area-inset-bottom))}",""]),b.exports=_},5571:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_snippets{overflow-y:auto;-webkit-overflow-scrolling:touch;padding:10px}#_snippets ._section{margin-bottom:10px;border:1px solid var(--border);overflow:hidden;cursor:pointer}#_snippets ._section:active ._name{background:var(--highlight);color:var(--select-foreground)}#_snippets ._section ._name{padding:10px;line-height:18px;color:var(--primary);background:var(--darker-background);transition:background-color .3s}#_snippets ._section ._name ._btn{margin-left:10px;float:right;text-align:center;width:18px;height:18px;font-size:12px}#_snippets ._section ._description{font-size:12px;color:var(--foreground);padding:10px;transition:background-color .3s}._safe-area #_snippets{padding-bottom:calc(10px + env(safe-area-inset-bottom))}",""]),b.exports=_},7346:function(b,_,d){(_=d(3645)(!1)).push([b.id,"._search-highlight-block{display:inline}._search-highlight-block ._keyword{background:var(--console-warn-background);color:var(--console-warn-foreground)}",""]),b.exports=_},1344:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_sources{font-size:0;overflow-y:auto;-webkit-overflow-scrolling:touch;color:var(--foreground)}#_sources ._code-wrapper,#_sources ._raw-wrapper{overflow-x:auto;-webkit-overflow-scrolling:touch;width:100%;min-height:100%}#_sources ._code,#_sources ._raw{height:100%}#_sources ._code ._keyword,#_sources ._raw ._keyword{color:var(--keyword-color)}#_sources ._code ._comment,#_sources ._raw ._comment{color:var(--comment-color)}#_sources ._code ._number,#_sources ._raw ._number{color:var(--number-color)}#_sources ._code ._string,#_sources ._raw ._string{color:var(--string-color)}#_sources ._code ._operator,#_sources ._raw ._operator{color:var(--operator-color)}#_sources ._code[data-type=html] ._keyword,#_sources ._raw[data-type=html] ._keyword{color:var(--tag-name-color)}#_sources ._image{font-size:12px}#_sources ._image ._breadcrumb{background:var(--darker-background);color:var(--primary);-webkit-user-select:text;user-select:text;margin-bottom:10px;word-break:break-all;padding:10px;font-size:16px;min-height:40px;border-bottom:1px solid var(--border)}#_sources ._image ._img-container{text-align:center}#_sources ._image ._img-container img{max-width:100%}#_sources ._image ._img-info{text-align:center;margin:20px 0;color:var(--foreground)}#_sources ._json{padding:0 10px}#_sources ._json *{-webkit-user-select:text;user-select:text}#_sources iframe{width:100%;height:100%}",""]),b.exports=_},8020:function(b,_,d){(_=d(3645)(!1)).push([b.id,"._container a,._container abbr,._container acronym,._container address,._container applet,._container article,._container aside,._container audio,._container b,._container big,._container blockquote,._container canvas,._container caption,._container center,._container cite,._container code,._container dd,._container del,._container details,._container dfn,._container dl,._container dt,._container em,._container embed,._container fieldset,._container figcaption,._container figure,._container footer,._container form,._container h1,._container h2,._container h3,._container h4,._container h5,._container h6,._container header,._container hgroup,._container i,._container iframe,._container img,._container ins,._container kbd,._container label,._container legend,._container li,._container mark,._container menu,._container nav,._container object,._container ol,._container output,._container p,._container pre,._container q,._container ruby,._container s,._container samp,._container section,._container small,._container span,._container strike,._container strong,._container sub,._container summary,._container sup,._container table,._container tbody,._container td,._container tfoot,._container th,._container thead,._container time,._container tr,._container tt,._container u,._container ul,._container var,._container video{margin:0;padding:0;border:0;font-size:100%}._container article,._container aside,._container details,._container figcaption,._container figure,._container footer,._container header,._container hgroup,._container menu,._container nav,._container section{display:block}._container body{line-height:1}._container ol,._container ul{list-style:none}._container blockquote,._container q{quotes:none}._container blockquote:after,._container blockquote:before,._container q:after,._container q:before{content:'';content:none}._container table{border-collapse:collapse;border-spacing:0}",""]),b.exports=_},8516:function(b,_,d){(_=d(3645)(!1)).push([b.id,`.luna-console{background:var(--background)}.luna-console-header{color:var(--link-color);border-bottom-color:var(--border)}.luna-console-nesting-level{border-right-color:var(--border)}.luna-console-nesting-level::before{border-bottom-color:var(--border)}.luna-console-log-container.luna-console-selected .luna-console-log-item{background:var(--contrast)}.luna-console-log-container.luna-console-selected .luna-console-log-item:not(.luna-console-error):not(.luna-console-warn){border-color:var(--border)}.luna-console-log-item{border-bottom-color:var(--border);color:var(--foreground)}.luna-console-log-item a{color:var(--link-color)!important}.luna-console-log-item .luna-console-icon-container .luna-console-icon{color:var(--foreground)}.luna-console-log-item .luna-console-icon-container .luna-console-icon-error{color:#ef3842}.luna-console-log-item .luna-console-icon-container .luna-console-icon-warn{color:#e8a400}.luna-console-log-item .luna-console-count{color:var(--select-foreground);background:var(--highlight)}.luna-console-log-item.luna-console-warn{color:var(--console-warn-foreground);background:var(--console-warn-background);border-color:var(--console-warn-border)}.luna-console-log-item.luna-console-error{background:var(--console-error-background);color:var(--console-error-foreground);border-color:var(--console-error-border)}.luna-console-log-item.luna-console-error .luna-console-count{background:var(--console-error-foreground)}.luna-console-log-item .luna-console-code .luna-console-key{color:var(--var-color)}.luna-console-log-item .luna-console-code .luna-console-number{color:var(--number-color)}.luna-console-log-item .luna-console-code .luna-console-null{color:var(--operator-color)}.luna-console-log-item .luna-console-code .luna-console-string{color:var(--string-color)}.luna-console-log-item .luna-console-code .luna-console-boolean{color:var(--keyword-color)}.luna-console-log-item .luna-console-code .luna-console-special{color:var(--operator-color)}.luna-console-log-item .luna-console-code .luna-console-keyword{color:var(--keyword-color)}.luna-console-log-item .luna-console-code .luna-console-operator{color:var(--operator-color)}.luna-console-log-item .luna-console-code .luna-console-comment{color:var(--comment-color)}.luna-console-log-item .luna-console-log-content .luna-console-null,.luna-console-log-item .luna-console-log-content .luna-console-undefined{color:var(--operator-color)}.luna-console-log-item .luna-console-log-content .luna-console-number{color:var(--number-color)}.luna-console-log-item .luna-console-log-content .luna-console-boolean{color:var(--keyword-color)}.luna-console-log-item .luna-console-log-content .luna-console-regexp,.luna-console-log-item .luna-console-log-content .luna-console-symbol{color:var(--var-color)}.luna-console-preview .luna-console-key{color:var(--var-color)}.luna-console-preview .luna-console-number{color:var(--number-color)}.luna-console-preview .luna-console-null{color:var(--operator-color)}.luna-console-preview .luna-console-string{color:var(--string-color)}.luna-console-preview .luna-console-boolean{color:var(--keyword-color)}.luna-console-preview .luna-console-special{color:var(--operator-color)}.luna-console-preview .luna-console-keyword{color:var(--keyword-color)}.luna-console-preview .luna-console-operator{color:var(--operator-color)}.luna-console-preview .luna-console-comment{color:var(--comment-color)}.luna-object-viewer{color:var(--primary);font-size:12px!important}.luna-object-viewer-null{color:var(--operator-color)}.luna-object-viewer-regexp,.luna-object-viewer-string{color:var(--string-color)}.luna-object-viewer-number{color:var(--number-color)}.luna-object-viewer-boolean{color:var(--keyword-color)}.luna-object-viewer-special{color:var(--operator-color)}.luna-object-viewer-key,.luna-object-viewer-key-lighter{color:var(--var-color)}.luna-object-viewer-expanded:before{border-color:transparent;border-top-color:var(--foreground)}.luna-object-viewer-collapsed:before{border-top-color:transparent;border-left-color:var(--foreground)}.luna-notification{pointer-events:none!important;padding:10px;z-index:1000}.luna-notification-item{z-index:500;color:var(--foreground);background:var(--background);box-shadow:none;padding:5px 10px;border:1px solid var(--border)}.luna-notification-upper{margin-bottom:10px}.luna-notification-lower{margin-top:10px}.luna-data-grid{color:var(--foreground);background:var(--background);border-color:var(--border)}.luna-data-grid:focus .luna-data-grid-data-container .luna-data-grid-node.luna-data-grid-selected{background:var(--accent)}.luna-data-grid td,.luna-data-grid th{border-color:var(--border)}.luna-data-grid th{background:var(--darker-background)}.luna-data-grid th.luna-data-grid-sortable:active,.luna-data-grid th.luna-data-grid-sortable:hover{color:var(--select-foreground);background:var(--highlight)}.luna-data-grid .luna-data-grid-data-container .luna-data-grid-node.luna-data-grid-selected{background:var(--highlight)}.luna-data-grid .luna-data-grid-data-container tr:nth-child(even){background:var(--contrast)}.luna-dom-viewer{color:var(--foreground)}.luna-dom-viewer .luna-dom-viewer-html-tag,.luna-dom-viewer .luna-dom-viewer-tag-name{color:var(--tag-name-color)}.luna-dom-viewer .luna-dom-viewer-attribute-name{color:var(--attribute-name-color)}.luna-dom-viewer .luna-dom-viewer-attribute-value{color:var(--string-color)}.luna-dom-viewer .luna-dom-viewer-html-comment{color:var(--comment-color)}.luna-dom-viewer .luna-dom-viewer-tree-item:hover .luna-dom-viewer-selection{background:var(--contrast)}.luna-dom-viewer .luna-dom-viewer-tree-item.luna-dom-viewer-selected .luna-dom-viewer-selection{background:var(--highlight)}.luna-dom-viewer .luna-dom-viewer-tree-item.luna-dom-viewer-selected:focus .luna-dom-viewer-selection{background:var(--accent);opacity:.2}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-key{color:var(--var-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-number{color:var(--number-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-null{color:var(--operator-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-string{color:var(--string-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-boolean{color:var(--keyword-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-special{color:var(--operator-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-keyword{color:var(--keyword-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-operator{color:var(--operator-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-comment{color:var(--comment-color)}.luna-dom-viewer-children{margin:0;padding-left:15px!important}.luna-modal{z-index:9999999}.luna-modal-body,.luna-modal-input{color:var(--foreground);background:var(--background)}.luna-modal-input{-webkit-user-select:text!important;user-select:text!important;border-color:var(--border)}.luna-modal-button-group .luna-modal-secondary{border-color:var(--border);color:var(--foreground);background:var(--background)}.luna-modal-button-group .luna-modal-primary{background:var(--accent)}.luna-modal-button-group .luna-modal-button:active::before{background:var(--accent)}.luna-tab{position:absolute;left:0;top:0;color:var(--foreground);background:var(--darker-background)}.luna-tab-tabs-container{border-color:var(--border)}.luna-tab-item.luna-tab-selected,.luna-tab-item:hover{background:var(--highlight);color:var(--select-foreground)}.luna-tab-slider{background:var(--accent)}.luna-text-viewer{color:var(--foreground);border:none;border-bottom:1px solid var(--border);background:var(--background);font-size:12px}.luna-text-viewer .luna-text-viewer-line-text{-webkit-user-select:text;user-select:text}.luna-text-viewer .luna-text-viewer-line-text *{-webkit-user-select:text;user-select:text}.luna-text-viewer .luna-text-viewer-copy,.luna-text-viewer .luna-text-viewer-line-number{border-color:var(--border)}.luna-text-viewer .luna-text-viewer-copy .luna-text-viewer-icon-check{color:var(--accent)}.luna-text-viewer .luna-text-viewer-copy{background-color:var(--background)}.luna-setting{color:var(--foreground);background:var(--background)}.luna-setting-item.luna-setting-selected,.luna-setting-item:hover{background:var(--darker-background)}.luna-setting-item.luna-setting-selected:focus{outline:0}.luna-setting-item-title{font-size:14px}.luna-setting-item-separator{border-color:var(--border)}.luna-setting-item-checkbox input{border-color:var(--border)}.luna-setting-item-checkbox input:checked{background-color:var(--accent);border-color:var(--accent)}.luna-setting-item-select .luna-setting-select select{color:var(--foreground);border-color:var(--border);background:var(--background)}.luna-setting-item-select .luna-setting-select:after{border-top-color:var(--foreground)}.luna-setting-item-button button{color:var(--accent);background:var(--background);border-color:var(--border)}.luna-setting-item-button button:active,.luna-setting-item-button button:hover{background:var(--darker-background)}.luna-setting-item-button button:active{border:1px solid var(--accent)}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar{background:var(--border)}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar .luna-setting-range-track-progress{background:var(--accent)}.luna-setting-item-number .luna-setting-range-container input::-webkit-slider-thumb{border-color:var(--border);background:radial-gradient(circle at center,var(--dark) 0,var(--dark) 15%,var(--light) 22%,var(--light) 100%)}.luna-box-model{background:0 0}.luna-box-model-position{color:var(--foreground)}._container{min-width:320px;pointer-events:none;position:fixed;left:0;top:0;width:100%;height:100%;z-index:9999999;color:var(--foreground);font-family:".SFNSDisplay-Regular","Helvetica Neue","Lucida Grande","Segoe UI",Tahoma,sans-serif;font-size:14px;direction:ltr}._container._dark{color-scheme:dark}._container *{box-sizing:border-box;pointer-events:all;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:none}._container ul{list-style:none;padding:0;margin:0}._container h1,._container h2,._container h3,._container h4{margin:0}._container h2{font-size:14px}._container h2 [class*=' _icon-'],._container h2 [class^='_icon-']{font-weight:400}._hidden{display:none}._icon-disabled{opacity:.5;pointer-events:none;cursor:default!important}._icon-disabled:active{color:inherit!important}._tag-name-color{color:var(--tag-name-color)}._function-color{color:var(--function-color)}._attribute-name-color{color:var(--attribute-name-color)}._operator-color{color:var(--operator-color)}._string-color{color:var(--string-color)}`,""]),b.exports=_},8094:function(b,_,d){(_=d(3645)(!1)).push([b.id,".luna-box-model{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;display:inline-block;color:#222;font-size:12px;text-align:center;white-space:nowrap}.luna-box-model.luna-box-model-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-box-model.luna-box-model-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-box-model .luna-box-model-hidden,.luna-box-model.luna-box-model-hidden{display:none}.luna-box-model .luna-box-model-invisible,.luna-box-model.luna-box-model-invisible{visibility:hidden}.luna-box-model *{box-sizing:border-box}.luna-box-model.luna-box-model-theme-dark{color:#a5a5a5;background-color:#242424}.luna-box-model-label{position:absolute;margin-left:3px;padding:0 2px}.luna-box-model-bottom,.luna-box-model-left,.luna-box-model-right,.luna-box-model-top{display:inline-block}.luna-box-model-left,.luna-box-model-right{vertical-align:middle}.luna-box-model-border,.luna-box-model-content,.luna-box-model-margin,.luna-box-model-padding,.luna-box-model-position{position:relative;display:inline-block;text-align:center;vertical-align:middle;padding:3px;margin:3px}.luna-box-model-position{border:1px grey dotted}.luna-box-model-margin{color:#333;border:1px dashed;background:rgba(246,178,107,.66)}.luna-box-model-border{color:#333;border:1px #000 solid;background:rgba(255,229,153,.66)}.luna-box-model-padding{color:#333;border:1px grey dashed;background:rgba(147,196,125,.55)}.luna-box-model-content{color:#333;border:1px grey solid;min-width:100px;background:rgba(111,168,220,.66)}",""]),b.exports=_},9327:function(b,_,d){(_=d(3645)(!1)).push([b.id,"@font-face{font-family:luna-console-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAasAAsAAAAACnAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAI4AAADcIsYnIk9TLzIAAAGYAAAAPgAAAFZWmlGRY21hcAAAAdgAAAD2AAACyDioZ9NnbHlmAAAC0AAAAZgAAAH8Lq6nDGhlYWQAAARoAAAAMQAAADZ25cSzaGhlYQAABJwAAAAdAAAAJAgCBBRobXR4AAAEvAAAABkAAABYGAH//GxvY2EAAATYAAAAGAAAAC4J8glUbWF4cAAABPAAAAAfAAAAIAEjAFBuYW1lAAAFEAAAASkAAAIWm5e+CnBvc3QAAAY8AAAAcAAAAJ7qA/7MeJxNjTsOwjAQRJ8TJzE2hPBrKBBHQByAAiGqFBRcIBVCiqhyBA7O2AgRr9Y7M2+lxQCeAyeyy7W9U/fd8GKL5fsiH2vTPx8d7ufEbJpO/aagYc+RM7fEjBKnmiRuySmZUTNNf0wybYSRj9VoO4iU7NQh+Up8qelZs5EupP75Shfm2oz3Kmkvt/gARcgJKwAAeJxjYGQUZ5zAwMrAwNTJdIaBgaEfQjO+ZjBi5ACKMrAyM2AFAWmuKQwHGHQ/srGAuDEsTGBhRhABALQ1CMwAAHiczdJNbsIwEIbh1+QHQsJviNRFF1XX7aEQRZQNRQjEHXqgrnopn4B+E8+qqip117GeRB4nk4lloAAyeZIcwicBiw9lQ5/PGPf5nHfNV8yVyXlmzZY9R05cuMbydtOqZTfsOCh7Vjb02e8RVMXGHfc8aDxqwFKVF7QMtdLpmzUVDSOmTJjpnUH/3YJSBcofqv4Wyz8+b6FuWvXSjW1SV30r1sl/icYuofFZh+1+Yn+7dnPZuIW8uFa2big7t5JXZzX3znbh4Gp5c5UcnfVyciM5u6lc3ESuTnsZQ2JnLQ4S7J4ldjZjntj5jEVi5zaWCeUXWN4q9AAAeJxdUMFOU0EUnTMzb2o1FB5O5wENg31k5mExVEo7jSGBEuO6CStDmtbIBuiKBYg/gRu/ABO3/ocscOEXsHBpogtWvFfnvQgxJnduztx7zknuIXQyIYSDE9IgLwmBmIZI1pDYbTSxBqeW4KvrVKSmaaRKFZREE7YJIyONSLW6W37bLiRxscXNTH1zbnFqlnJ5Eu+G9MnT8JBy9l69ELx69Ohd9JCryrwcU07TbCU5H4y+jQbnyco/EF+8x1/eaX03bCzR8IgGwVn0WC/I8YOzaLGS+4+p4K8O/lcXkPhj/CP0ig1JQIhJyugCxz3o7LqH4YUH0L3swlMK3q+CV/HMbhkJAqlarm1jgd+97DpnfsKPeH15eT2+l9L5OJ/kcjZJfY6MU++wQPzI+PRECUJjo97aAtqupaqhFLHtRLHNf1Kwn9lAOid9L7tV9nzVldNL3dC+NmrGOGM+sme2VrO335Mda3foXlXravY57zemY23HkLs72RsW5JegDjZK99FnPPtwl8FX1i92IfAax6yfvkWf/AHb1F1JeJxjYGRgYABi3/mPYuP5bb4ycLOABKI4H+9rgNH//zIwsDCzMAElOBhAJAMAQ2IK+QAAAHicY2BkYGBhAAEWhv9///9lYWZgZEAFYgBbLQQgAAAAeJxjYGBgYGH4/58FTIPZf2FsSgAAM58EEwAAAHicY2AAgjyGJoYlDI8YPjD8ww8BeTMTR3icY2BkYGAQY3BhYGYAASYg5gJCBob/YD4DABGFAXQAeJxlkD1uwkAUhMdgSAJSghQpKbNVCiKZn5IDQE9Bl8KYtTGyvdZ6QaLLCXKEHCGniHKCHChj82hgLT9/M2/e7soABviFh3p5uG1qvVq4oTpxm/Qg7JOfhTvo40W4S38o3MMbpsJ9POKdO3j+HZ0BSuEW7vEh3Kb/KeyTv4Q7eMK3cJf+j3APK/wJ9/HqDdPIFLEp3FIn+yy0Z3n+rrStUlOoSTA+WwtdaBs6vVHro6oOydS5WMXW5GrOrs4yo0prdjpywda5cjYaxeIHkcmRIoJBgbipDktoJNgjQwh71b3UK6YtKvq1VpggwPgqtWCqaJIhlcaGyTWOrBUOPG1K1zGt+FrO5KS5zGreJCMr/u+6t6MT0Q+wbaZKzDDiE1/kg+YO+T89EV6oAAAAeJxtxksOgjAUQNF3kaIW/x9cBYtqgEAnLXlp0+1rwtQzuVcq2Vj5r6NiR42hYc+BI5aWE2cuXLlx58GTF286PmIm1ajGhzWnJub0S12cBjs4nVI/xhLabdXPS2JCiXgCK5lEwTHQMzKziHwBqnYYpg==') format('woff')}[class*=' luna-console-icon-'],[class^=luna-console-icon-]{display:inline-block;font-family:luna-console-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-console-icon-error:before{content:'\\f101'}.luna-console-icon-input:before{content:'\\f102'}.luna-console-icon-output:before{content:'\\f103'}.luna-console-icon-warn:before{content:'\\f104'}.luna-console-icon-caret-down:before{content:'\\f105'}.luna-console-icon-caret-right:before{content:'\\f106'}.luna-console{background:#fff;overflow-y:auto;-webkit-overflow-scrolling:touch;height:100%;position:relative;will-change:scroll-position;cursor:default;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.luna-console.luna-console-theme-dark{background-color:#242424}.luna-console-hidden{display:none}.luna-console-fake-logs{position:absolute;left:0;top:0;pointer-events:none;visibility:hidden;width:100%}.luna-console-logs{padding-top:1px;position:absolute;width:100%}.luna-console-log-container{box-sizing:content-box}.luna-console-log-container.luna-console-selected .luna-console-log-item{background:#ecf1f8}.luna-console-log-container.luna-console-selected .luna-console-log-item:not(.luna-console-error):not(.luna-console-warn){border-color:#ccdef5}.luna-console-header{white-space:nowrap;display:flex;font-size:11px;color:#545454;border-top:1px solid transparent;border-bottom:1px solid #ccc}.luna-console-header .luna-console-time-from-container{overflow-x:auto;-webkit-overflow-scrolling:touch;padding:3px 10px}.luna-console-nesting-level{width:14px;flex-shrink:0;margin-top:-1px;margin-bottom:-1px;position:relative;border-right:1px solid #ccc}.luna-console-nesting-level.luna-console-group-closed::before{content:''}.luna-console-nesting-level::before{border-bottom:1px solid #ccc;position:absolute;top:0;left:0;margin-left:100%;width:5px;height:100%;box-sizing:border-box}.luna-console-log-item{position:relative;display:flex;border-top:1px solid transparent;border-bottom:1px solid #ccc;margin-top:-1px;color:#333}.luna-console-log-item:after{content:'';display:block;clear:both}.luna-console-log-item .luna-console-code{display:inline;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.luna-console-log-item .luna-console-code .luna-console-keyword{color:#881280}.luna-console-log-item .luna-console-code .luna-console-number{color:#1c00cf}.luna-console-log-item .luna-console-code .luna-console-operator{color:grey}.luna-console-log-item .luna-console-code .luna-console-comment{color:#236e25}.luna-console-log-item .luna-console-code .luna-console-string{color:#1a1aa6}.luna-console-log-item a{color:#15c!important}.luna-console-log-item .luna-console-icon-container{margin:0 -6px 0 10px}.luna-console-log-item .luna-console-icon-container .luna-console-icon{line-height:20px;font-size:12px;color:#333;position:relative}.luna-console-log-item .luna-console-icon-container .luna-console-icon-caret-down,.luna-console-log-item .luna-console-icon-container .luna-console-icon-caret-right{top:0;left:-2px}.luna-console-log-item .luna-console-icon-container .luna-console-icon-error{top:0;color:#ef3842}.luna-console-log-item .luna-console-icon-container .luna-console-icon-warn{top:0;color:#e8a400}.luna-console-log-item .luna-console-count{background:#8097bd;color:#fff;padding:2px 4px;border-radius:10px;font-size:12px;float:left;margin:1px -6px 0 10px}.luna-console-log-item .luna-console-log-content-wrapper{flex:1;overflow:hidden}.luna-console-log-item .luna-console-log-content{padding:3px 0;margin:0 10px;overflow-x:auto;-webkit-overflow-scrolling:touch;white-space:pre-wrap;-webkit-user-select:text;user-select:text}.luna-console-log-item .luna-console-log-content *{-webkit-user-select:text;user-select:text}.luna-console-log-item .luna-console-log-content>*{vertical-align:top}.luna-console-log-item .luna-console-log-content .luna-console-null,.luna-console-log-item .luna-console-log-content .luna-console-undefined{color:#5e5e5e}.luna-console-log-item .luna-console-log-content .luna-console-number{color:#1c00cf}.luna-console-log-item .luna-console-log-content .luna-console-boolean{color:#0d22aa}.luna-console-log-item .luna-console-log-content .luna-console-regexp,.luna-console-log-item .luna-console-log-content .luna-console-symbol{color:#881391}.luna-console-log-item .luna-console-data-grid,.luna-console-log-item .luna-console-dom-viewer{white-space:initial}.luna-console-log-item.luna-console-error{z-index:50;background:#fff0f0;color:red;border-top:1px solid #ffd6d6;border-bottom:1px solid #ffd6d6}.luna-console-log-item.luna-console-error .luna-console-stack{padding-left:1.2em;white-space:nowrap}.luna-console-log-item.luna-console-error .luna-console-count{background:red}.luna-console-log-item.luna-console-debug{z-index:20}.luna-console-log-item.luna-console-input{border-bottom-color:transparent}.luna-console-log-item.luna-console-warn{z-index:40;color:#5c5c00;background:#fffbe5;border-top:1px solid #fff5c2;border-bottom:1px solid #fff5c2}.luna-console-log-item.luna-console-warn .luna-console-count{background:#e8a400}.luna-console-log-item.luna-console-info{z-index:30}.luna-console-log-item.luna-console-group,.luna-console-log-item.luna-console-groupCollapsed{font-weight:700}.luna-console-preview{display:inline-block}.luna-console-preview .luna-console-preview-container{display:flex;align-items:center}.luna-console-preview .luna-console-json{overflow-x:auto;-webkit-overflow-scrolling:touch;padding-left:12px}.luna-console-preview .luna-console-preview-icon-container{display:block}.luna-console-preview .luna-console-preview-icon-container .luna-console-icon{position:relative;font-size:12px}.luna-console-preview .luna-console-preview-icon-container .luna-console-icon-caret-down{top:2px}.luna-console-preview .luna-console-preview-icon-container .luna-console-icon-caret-right{top:1px}.luna-console-preview .luna-console-preview-content-container{word-break:break-all}.luna-console-preview .luna-console-descriptor,.luna-console-preview .luna-console-object-preview{font-style:italic}.luna-console-preview .luna-console-key{color:#881391}.luna-console-preview .luna-console-number{color:#1c00cf}.luna-console-preview .luna-console-null{color:#5e5e5e}.luna-console-preview .luna-console-string{color:#c41a16}.luna-console-preview .luna-console-boolean{color:#0d22aa}.luna-console-preview .luna-console-special{color:#5e5e5e}.luna-console-theme-dark{color-scheme:dark}.luna-console-theme-dark .luna-console-log-container.luna-console-selected .luna-console-log-item{background:#29323d}.luna-console-theme-dark .luna-console-log-container.luna-console-selected .luna-console-log-item:not(.luna-console-error):not(.luna-console-warn){border-color:#4173b4}.luna-console-theme-dark .luna-console-log-item{color:#a5a5a5;border-bottom-color:#3d3d3d}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-keyword{color:#e36eec}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-number{color:#9980ff}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-operator{color:#7f7f7f}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-comment{color:#747474}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-string{color:#f29766}.luna-console-theme-dark .luna-console-log-item.luna-console-error{background:#290000;color:#ff8080;border-top-color:#5c0000;border-bottom-color:#5c0000}.luna-console-theme-dark .luna-console-log-item.luna-console-error .luna-console-count{background:#ff8080}.luna-console-theme-dark .luna-console-log-item.luna-console-warn{color:#ffcb6b;background:#332a00;border-top-color:#650;border-bottom-color:#650}.luna-console-theme-dark .luna-console-log-item .luna-console-count{background:#42597f;color:#949494}.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-null,.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-undefined{color:#7f7f7f}.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-boolean,.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-number{color:#9980ff}.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-regexp,.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-symbol{color:#e36eec}.luna-console-theme-dark .luna-console-icon-container .luna-console-icon-caret-down,.luna-console-theme-dark .luna-console-icon-container .luna-console-icon-caret-right{color:#9aa0a6}.luna-console-theme-dark .luna-console-header{border-bottom-color:#3d3d3d}.luna-console-theme-dark .luna-console-nesting-level{border-right-color:#3d3d3d}.luna-console-theme-dark .luna-console-nesting-level::before{border-bottom-color:#3d3d3d}.luna-console-theme-dark .luna-console-preview .luna-console-key{color:#e36eec}.luna-console-theme-dark .luna-console-preview .luna-console-number{color:#9980ff}.luna-console-theme-dark .luna-console-preview .luna-console-null{color:#7f7f7f}.luna-console-theme-dark .luna-console-preview .luna-console-string{color:#f29766}.luna-console-theme-dark .luna-console-preview .luna-console-boolean{color:#9980ff}.luna-console-theme-dark .luna-console-preview .luna-console-special{color:#7f7f7f}",""]),b.exports=_},4987:function(b,_,d){(_=d(3645)(!1)).push([b.id,".luna-data-grid{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;position:relative;font-size:12px;border:1px solid #ccc;overflow:hidden;outline:0}.luna-data-grid.luna-data-grid-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-data-grid.luna-data-grid-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-data-grid .luna-data-grid-hidden,.luna-data-grid.luna-data-grid-hidden{display:none}.luna-data-grid .luna-data-grid-invisible,.luna-data-grid.luna-data-grid-invisible{visibility:hidden}.luna-data-grid *{box-sizing:border-box}.luna-data-grid.luna-data-grid-theme-dark{color:#a5a5a5;background-color:#242424}.luna-data-grid.luna-data-grid-theme-dark{color:#a5a5a5;background:#242424;border-color:#3d3d3d}.luna-data-grid table{width:100%;height:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.luna-data-grid td,.luna-data-grid th{padding:1px 4px;border-left:1px solid #ccc;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.luna-data-grid td:first-child,.luna-data-grid th:first-child{border-left:none}.luna-data-grid th{font-weight:400;border-bottom:1px solid #ccc;text-align:left;background:#f3f3f3}.luna-data-grid th.luna-data-grid-sortable:active,.luna-data-grid th.luna-data-grid-sortable:hover{background:#e6e6e6}.luna-data-grid td{height:20px;cursor:default;-webkit-user-select:text;user-select:text}.luna-data-grid:focus .luna-data-grid-node.luna-data-grid-selected{color:#fff;background:#1a73e8}.luna-data-grid:focus.luna-data-grid-theme-dark .luna-data-grid-node.luna-data-grid-selected{background:#0e639c}.luna-data-grid-data-container,.luna-data-grid-header-container{overflow:hidden}.luna-data-grid-header-container{height:21px}.luna-data-grid-data-container{overflow-y:auto}.luna-data-grid-data-container .luna-data-grid-node.luna-data-grid-selected{background:#ddd}.luna-data-grid-data-container tr:nth-child(even){background:#f2f7fd}.luna-data-grid-filler-row td{height:auto}.luna-data-grid-resizer{position:absolute;top:0;bottom:0;width:5px;z-index:500;cursor:col-resize}.luna-data-grid-resizing{cursor:col-resize!important}.luna-data-grid-resizing .luna-data-grid *{cursor:col-resize!important}.luna-data-grid-theme-dark{color-scheme:dark}.luna-data-grid-theme-dark td,.luna-data-grid-theme-dark th{border-color:#3d3d3d}.luna-data-grid-theme-dark th{background:#292a2d}.luna-data-grid-theme-dark th.luna-data-grid-sortable:hover{background:#303030}.luna-data-grid-theme-dark .luna-data-grid-data-container .luna-data-grid-node.luna-data-grid-selected{background:#393939}.luna-data-grid-theme-dark .luna-data-grid-data-container tr:nth-child(even){background:#0b2544}",""]),b.exports=_},8903:function(b,_,d){(_=d(3645)(!1)).push([b.id,"@font-face{font-family:luna-dom-viewer-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAASgAAsAAAAAB4QAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAFwAAACMIRYl8k9TLzIAAAFkAAAAPQAAAFZLxUkaY21hcAAAAaQAAADHAAACWBcU1KRnbHlmAAACbAAAAC4AAAAwabU7V2hlYWQAAAKcAAAALwAAADZzjr4faGhlYQAAAswAAAAYAAAAJAFyANdobXR4AAAC5AAAABAAAAA4AZAAAGxvY2EAAAL0AAAAEAAAAB4AnACQbWF4cAAAAwQAAAAfAAAAIAEZAA9uYW1lAAADJAAAASkAAAIWm5e+CnBvc3QAAARQAAAATgAAAG5m1cqleJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiC2AdNMDGwMckCSGyzHCuSxA2kuIJ+HgReoggtJnANMcwJFGRmYAXZLBkt4nGNgZJBlnMDAysDAUMfQAyRloHQCAyeDMQMDEwMrMwNWEJDmmsJwgEH3IxPDCSBXCEwyMDCCCABbzwhtAAAAeJy1kksKwjAQhr/0oX0JLlyIZ9BDCQXtRkEEwQO56uV6Av0nmZWI4MIJX2H+JvNIBiiBXGxFAWEkYPaQGqKe00S94C5/xVJKwY49PQNnLly5Tdnzqb9JPXByNUT13YKipLVm4wvmilvR0ilfrboKFsy0N9OB2Yco32z+437SLVTQdo05dUksgF8z/8+6+B3dU2m67YR1u3fsLXtH7egtEq04OhZpcKzbk1OLs2NzcXE0F3rNhOW9ObqbKSRsVqYsQfYC6fYeiQB4nGNgZACBlQzTGZgYGMyVxVc2O073AIpAxHsYloHFRc2dPZY2OTIwAACmEQesAAB4nGNgZGBgAOLeSTNM4/ltvjJwM5wACkRxPt7XgKCBYCXDMiDJwcAE4gAAQEgKxAB4nGNgZGBgOMHAACdXMjAyoAI+ADixAkp4nGNgAIITUEwCAABMyAGReJxjYAACHgYJ7BAADsoBLXicY2BkYGDgY2BmANEMDExAzAWEDAz/wXwGAAomASkAeJxlkD1uwkAUhMdgSAJSghQpKbNVCiKZn5IDQE9Bl8KYtTGyvdZ6QaLLCXKEHCGniHKCHChj82hgLT9/M2/e7soABviFh3p5uG1qvVq4oTpxm/Qg7JOfhTvo40W4S38o3MMbpsJ9POKdO3j+HZ0BSuEW7vEh3Kb/KeyTv4Q7eMK3cJf+j3APK/wJ9/HqDdPIFLEp3FIn+yy0Z3n+rrStUlOoSTA+WwtdaBs6vVHro6oOydS5WMXW5GrOrs4yo0prdjpywda5cjYaxeIHkcmRIoJBgbipDktoJNgjQwh71b3UK6YtKvq1VpggwPgqtWCqaJIhlcaGyTWOrBUOPG1K1zGt+FrO5KS5zGreJCMr/u+6t6MT0Q+wbaZKzDDiE1/kg+YO+T89EV6oAAAAeJxdxk0KgCAUAOE3/adlJ/FQgqBuFETw+i2kTd9mRiYZvv4ZJmYWVjZ2Dk4UmosbwyPK1Vq69aVnPbamEBuOSqFj8WQSgUgTeQGPtA2iAAA=') format('woff')}[class*=' luna-dom-viewer-icon-'],[class^=luna-dom-viewer-icon-]{display:inline-block;font-family:luna-dom-viewer-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-dom-viewer-icon-arrow-down:before{content:'\\f101'}.luna-dom-viewer-icon-arrow-right:before{content:'\\f102'}.luna-dom-viewer{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;overflow-y:auto;-webkit-overflow-scrolling:touch;background:0 0;overflow-x:hidden;word-wrap:break-word;padding:0 0 0 12px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;cursor:default;list-style:none}.luna-dom-viewer.luna-dom-viewer-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-dom-viewer.luna-dom-viewer-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-dom-viewer .luna-dom-viewer-hidden,.luna-dom-viewer.luna-dom-viewer-hidden{display:none}.luna-dom-viewer .luna-dom-viewer-invisible,.luna-dom-viewer.luna-dom-viewer-invisible{visibility:hidden}.luna-dom-viewer *{box-sizing:border-box}.luna-dom-viewer ul{list-style:none}.luna-dom-viewer.luna-dom-viewer-theme-dark{color:#e8eaed}.luna-dom-viewer-toggle{min-width:12px;margin-left:-12px}.luna-dom-viewer-icon-arrow-down,.luna-dom-viewer-icon-arrow-right{position:absolute!important;font-size:12px!important}.luna-dom-viewer-tree-item{line-height:16px;min-height:16px;position:relative;z-index:10;outline:0}.luna-dom-viewer-tree-item.luna-dom-viewer-selected .luna-dom-viewer-selection,.luna-dom-viewer-tree-item:hover .luna-dom-viewer-selection{display:block}.luna-dom-viewer-tree-item:hover .luna-dom-viewer-selection{background:#f2f7fd}.luna-dom-viewer-tree-item.luna-dom-viewer-selected .luna-dom-viewer-selection{background:#e0e0e0}.luna-dom-viewer-tree-item.luna-dom-viewer-selected:focus .luna-dom-viewer-selection{background:#cfe8fc}.luna-dom-viewer-tree-item .luna-dom-viewer-icon-arrow-down{display:none}.luna-dom-viewer-tree-item.luna-dom-viewer-expanded .luna-dom-viewer-icon-arrow-down{display:inline-block}.luna-dom-viewer-tree-item.luna-dom-viewer-expanded .luna-dom-viewer-icon-arrow-right{display:none}.luna-dom-viewer-html-tag{color:#881280}.luna-dom-viewer-tag-name{color:#881280}.luna-dom-viewer-attribute-name{color:#994500}.luna-dom-viewer-attribute-value{color:#1a1aa6}.luna-dom-viewer-attribute-value.luna-dom-viewer-attribute-underline{text-decoration:underline}.luna-dom-viewer-html-comment{color:#236e25}.luna-dom-viewer-selection{position:absolute;display:none;left:-10000px;right:-10000px;top:0;bottom:0;z-index:-1}.luna-dom-viewer-children{margin:0;overflow-x:visible;overflow-y:visible;padding-left:15px}.luna-dom-viewer-text-node .luna-dom-viewer-keyword{color:#881280}.luna-dom-viewer-text-node .luna-dom-viewer-number{color:#1c00cf}.luna-dom-viewer-text-node .luna-dom-viewer-operator{color:grey}.luna-dom-viewer-text-node .luna-dom-viewer-comment{color:#236e25}.luna-dom-viewer-text-node .luna-dom-viewer-string{color:#1a1aa6}.luna-dom-viewer-theme-dark .luna-dom-viewer-icon-arrow-down,.luna-dom-viewer-theme-dark .luna-dom-viewer-icon-arrow-right{color:#9aa0a6}.luna-dom-viewer-theme-dark .luna-dom-viewer-html-tag,.luna-dom-viewer-theme-dark .luna-dom-viewer-tag-name{color:#5db0d7}.luna-dom-viewer-theme-dark .luna-dom-viewer-attribute-name{color:#9bbbdc}.luna-dom-viewer-theme-dark .luna-dom-viewer-attribute-value{color:#f29766}.luna-dom-viewer-theme-dark .luna-dom-viewer-html-comment{color:#898989}.luna-dom-viewer-theme-dark .luna-dom-viewer-tree-item:hover .luna-dom-viewer-selection{background:#083c69}.luna-dom-viewer-theme-dark .luna-dom-viewer-tree-item.luna-dom-viewer-selected .luna-dom-viewer-selection{background:#454545}.luna-dom-viewer-theme-dark .luna-dom-viewer-tree-item.luna-dom-viewer-selected:focus .luna-dom-viewer-selection{background:#073d69}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-keyword{color:#e36eec}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-number{color:#9980ff}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-operator{color:#7f7f7f}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-comment{color:#747474}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-string{color:#f29766}",""]),b.exports=_},5512:function(b,_,d){(_=d(3645)(!1)).push([b.id,"@font-face{font-family:luna-modal-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAQwAAsAAAAABpQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAEkAAABoILgliE9TLzIAAAFUAAAAPQAAAFZL+0kZY21hcAAAAZQAAACBAAAB3sqmCy5nbHlmAAACGAAAAC0AAAA0Ftcaz2hlYWQAAAJIAAAALgAAADZzhL4YaGhlYQAAAngAAAAYAAAAJAFoANBobXR4AAACkAAAAA8AAAAcAMgAAGxvY2EAAAKgAAAADgAAABAATgBObWF4cAAAArAAAAAfAAAAIAESABhuYW1lAAAC0AAAASkAAAIWm5e+CnBvc3QAAAP8AAAAMQAAAEOplauDeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiCWgNIsQMzKwAykWRnYgGxGBiYAk+wFgwAAAHicY2BkkGWcwMDKwMBQx9ADJGWgdAIDJ4MxAwMTAyszA1YQkOaawnCAIfkjI8MJIFcITDIwMIIIAGAqCKIAAAB4nM2RQQqDQAxFXxyVUsST9DhduBd3ggsv0JX39QT6kwYED1D6hzeQD0nmM0ADFPESNdiG4frItfALz/Br3qp7HlS0jEzMLKy7HYf8e33J1HMdortoWuPzreUX8p2hEikj9f+oi3vIyl86JpWYEvfnxH9sSTzPmijXbl+wE7urE5sAAAB4nGNgZACB+UDIzcBgrs6uzi7OLm4ubq4+j1tfn1tPD0xOhjGAJAMDAKekBtMAAAB4nGNgZGBgAGLPuE0l8fw2Xxm4GU4ABaI4H+9rQNBAMB8IGRg4GJhAHAA5KgqUAAB4nGNgZGBgOMHAACfnMzAyoAJ2ADfsAjl4nGNgAIITDFgBABIUAMkAeJxjYAACKQQEAAO4AJ0AAHicY2BkYGBgZ+BhANEMDExAzAWEDAz/wXwGAApKASsAeJxlkD1uwkAUhMdgSAJSghQpKbNVCiKZn5IDQE9Bl8KYtTGyvdZ6QaLLCXKEHCGniHKCHChj82hgLT9/M2/e7soABviFh3p5uG1qvVq4oTpxm/Qg7JOfhTvo40W4S38o3MMbpsJ9POKdO3j+HZ0BSuEW7vEh3Kb/KeyTv4Q7eMK3cJf+j3APK/wJ9/HqDdPIFLEp3FIn+yy0Z3n+rrStUlOoSTA+WwtdaBs6vVHro6oOydS5WMXW5GrOrs4yo0prdjpywda5cjYaxeIHkcmRIoJBgbipDktoJNgjQwh71b3UK6YtKvq1VpggwPgqtWCqaJIhlcaGyTWOrBUOPG1K1zGt+FrO5KS5zGreJCMr/u+6t6MT0Q+wbaZKzDDiE1/kg+YO+T89EV6oAAAAeJxjYGKAABiNDtgZmRiZGVkYWRnZGNkZORhYk3Pyi1MZkxlzGPMZixlTGRgANIEEbAAAAA==') format('woff')}[class*=' luna-modal-icon-'],[class^=luna-modal-icon-]{display:inline-block;font-family:luna-modal-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-modal-icon-close:before{content:'\\f101'}.luna-modal{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;justify-content:center;align-items:center}.luna-modal.luna-modal-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-modal.luna-modal-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-modal .luna-modal-hidden,.luna-modal.luna-modal-hidden{display:none}.luna-modal .luna-modal-invisible,.luna-modal.luna-modal-invisible{visibility:hidden}.luna-modal *{box-sizing:border-box}.luna-modal-icon-close{position:absolute;right:16px;top:18px;cursor:pointer;font-size:20px}.luna-modal-body{position:relative;background:#fff;max-height:100%;display:flex;flex-direction:column;border-radius:4px}.luna-modal-body.luna-modal-no-title{position:static}.luna-modal-body.luna-modal-no-title .luna-modal-title{display:none}.luna-modal-body.luna-modal-no-title .luna-modal-icon-close{color:#fff}.luna-modal-body.luna-modal-no-footer .luna-modal-footer{display:none}.luna-modal-hidden{display:none}.luna-modal-title{padding:16px;padding-right:36px;padding-bottom:0;font-size:18px;height:46px;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.luna-modal-content{padding:16px;overflow-y:auto}.luna-modal-footer{padding:12px}.luna-modal-button-group{display:flex;justify-content:flex-end}.luna-modal-button{padding:0 12px;background:#e9ecef;cursor:default;position:relative;-webkit-user-select:none;user-select:none;margin:0 4px;font-size:12px;border-radius:4px;overflow:hidden;height:28px;line-height:28px}.luna-modal-button:active::before{background:#1a73e8;content:'';opacity:.4;position:absolute;top:0;left:0;width:100%;height:100%;z-index:2}.luna-modal-button.luna-modal-secondary{color:#1a73e8;border:1px solid #ccc;background:#fff}.luna-modal-button.luna-modal-primary{color:#fff;background:#1a73e8}.luna-modal-input{box-sizing:border-box;outline:0;width:100%;font-size:16px;padding:6px 12px;border:1px solid #ccc;-webkit-appearance:none;-moz-appearance:none}.luna-modal-theme-dark{color:#a5a5a5}.luna-modal-theme-dark .luna-modal-body{background:#242424}",""]),b.exports=_},7591:function(b,_,d){(_=d(3645)(!1)).push([b.id,".luna-notification{position:fixed;top:0;left:0;width:100%;height:100%;padding:20px;box-sizing:border-box;pointer-events:none;display:flex;flex-direction:column;font-size:14px;font-family:Arial,Helvetica,sans-serif}.luna-notification-item{display:flex;box-shadow:0 2px 2px 0 rgba(0,0,0,.07),0 1px 5px 0 rgba(0,0,0,.1);padding:10px 16px;color:#333;background:#fff}.luna-notification-lower{margin-top:16px}.luna-notification-upper{margin-bottom:16px}.luna-notification-theme-dark .luna-notification-item{box-shadow:0 2px 2px 0 rgba(255,255,255,.07),0 1px 5px 0 rgba(255,255,255,.1);color:#a5a5a5;background:#242424}",""]),b.exports=_},4821:function(b,_,d){(_=d(3645)(!1)).push([b.id,"@font-face{font-family:luna-object-viewer-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAS8AAsAAAAAB7QAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAGEAAACMISgl+k9TLzIAAAFsAAAAPQAAAFZLxUkWY21hcAAAAawAAADWAAACdBU42qdnbHlmAAAChAAAAC4AAAAwabU7V2hlYWQAAAK0AAAALwAAADZzjr4faGhlYQAAAuQAAAAYAAAAJAFyANlobXR4AAAC/AAAABAAAABAAZAAAGxvY2EAAAMMAAAAEAAAACIAtACobWF4cAAAAxwAAAAfAAAAIAEbAA9uYW1lAAADPAAAASkAAAIWm5e+CnBvc3QAAARoAAAAUwAAAHZW8MNZeJxNjTsOQFAQRc/z/+sV1mABohKV0gZeJRJR2X9cT4RJZu7nFIMBMjoGvHGaF6rdngcNAc/c/O/Nvq2W5E1igdNE2zv1iGh1c5FQPlYXUlJRyxt9+/pUKadQa/AveGEGZQAAAHicY2BkkGScwMDKwMBQx9ADJGWgdAIDJ4MxAwMTAyszA1YQkOaawnCAQfcjE8MJIFcITDIwMIIIAFqDCGkAAAB4nM2STQ4BQRCFv54ZP8MwFhYW4gQcShBsSERi50BWDuFCcwJedddKRGKnOt8k9aanqudVAy0gF3NRQLgTsLhJDVHP6UW94Kp8zEhKwYIlG/YcOXHm0mTPp96aumLLwdUQ1fcIqmJrwpSZL+iqak5JmyE1Ayr1bdGhr/2ZPmp/qPQtuj/uJzqQl+pfDyypesQD6AT/ElV8PjyrMccT9rdLR3PUFBI227VTio1jbm6dodg5VnPvmAsHxzofHfmi+Sbs/pwdWcXFkWdNSNg9arIE2QufuSCyAAB4nGNgZACBlQzTGZgYGMyVxVc2O073AIpAxHsYloHFRc2dPZY2OTIwAACmEQesAAB4nGNgZGBgAOINe2b6x/PbfGXgZjgBFIjifLyvAUEDwUqGZUCSg4EJxAEAUn4LLAB4nGNgZGBgOMHAACdXMjAyoAIBADizAkx4nGNgAIITUEwGAABZUAGReJxjYAACHgYJ3BAAE94BXXicY2BkYGAQYGBmANEMDExAzAWEDAz/wXwGAApcASsAeJxlkD1uwkAUhMdgSAJSghQpKbNVCiKZn5IDQE9Bl8KYtTGyvdZ6QaLLCXKEHCGniHKCHChj82hgLT9/M2/e7soABviFh3p5uG1qvVq4oTpxm/Qg7JOfhTvo40W4S38o3MMbpsJ9POKdO3j+HZ0BSuEW7vEh3Kb/KeyTv4Q7eMK3cJf+j3APK/wJ9/HqDdPIFLEp3FIn+yy0Z3n+rrStUlOoSTA+WwtdaBs6vVHro6oOydS5WMXW5GrOrs4yo0prdjpywda5cjYaxeIHkcmRIoJBgbipDktoJNgjQwh71b3UK6YtKvq1VpggwPgqtWCqaJIhlcaGyTWOrBUOPG1K1zGt+FrO5KS5zGreJCMr/u+6t6MT0Q+wbaZKzDDiE1/kg+YO+T89EV6oAAAAeJxdxjkOgCAUANE/uOOGB+FQBIjaaEJIuL6FsfE1M6Lk9fXPoKioaWjp6BnQjEzMLKwYNtHepZhtuMs1vpvO/ch4HIlIxhK4KVyc7BwiD8nvDlkA') format('woff')}[class*=' luna-object-viewer-icon-'],[class^=luna-object-viewer-icon-]{display:inline-block;font-family:luna-object-viewer-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-object-viewer-icon-caret-down:before{content:'\\f101'}.luna-object-viewer-icon-caret-right:before{content:'\\f102'}.luna-object-viewer{overflow-x:auto;-webkit-overflow-scrolling:touch;overflow-y:hidden;cursor:default;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;line-height:1.2;min-height:100%;color:#333;list-style:none!important}.luna-object-viewer ul{list-style:none!important;padding:0!important;padding-left:12px!important;margin:0!important}.luna-object-viewer li{position:relative;white-space:nowrap;line-height:16px;min-height:16px}.luna-object-viewer>li>.luna-object-viewer-key{display:none}.luna-object-viewer span{position:static!important}.luna-object-viewer li .luna-object-viewer-collapsed~.luna-object-viewer-close:before{color:#999}.luna-object-viewer-array .luna-object-viewer-object .luna-object-viewer-key{display:inline}.luna-object-viewer-null{color:#5e5e5e}.luna-object-viewer-regexp,.luna-object-viewer-string{color:#c41a16}.luna-object-viewer-number{color:#1c00cf}.luna-object-viewer-boolean{color:#0d22aa}.luna-object-viewer-special{color:#5e5e5e}.luna-object-viewer-key,.luna-object-viewer-key-lighter{color:#881391}.luna-object-viewer-key-lighter{opacity:.6}.luna-object-viewer-key-special{color:#5e5e5e}.luna-object-viewer-collapsed .luna-object-viewer-icon,.luna-object-viewer-expanded .luna-object-viewer-icon{position:absolute!important;left:-12px;color:#727272;font-size:12px}.luna-object-viewer-icon-caret-right{top:0}.luna-object-viewer-icon-caret-down{top:1px}.luna-object-viewer-expanded>.luna-object-viewer-icon-caret-down{display:inline}.luna-object-viewer-expanded>.luna-object-viewer-icon-caret-right{display:none}.luna-object-viewer-collapsed>.luna-object-viewer-icon-caret-down{display:none}.luna-object-viewer-collapsed>.luna-object-viewer-icon-caret-right{display:inline}.luna-object-viewer-hidden~ul{display:none}.luna-object-viewer-theme-dark{color:#fff}.luna-object-viewer-theme-dark .luna-object-viewer-null,.luna-object-viewer-theme-dark .luna-object-viewer-special{color:#a1a1a1}.luna-object-viewer-theme-dark .luna-object-viewer-regexp,.luna-object-viewer-theme-dark .luna-object-viewer-string{color:#f28b54}.luna-object-viewer-theme-dark .luna-object-viewer-boolean,.luna-object-viewer-theme-dark .luna-object-viewer-number{color:#9980ff}.luna-object-viewer-theme-dark .luna-object-viewer-key,.luna-object-viewer-theme-dark .luna-object-viewer-key-lighter{color:#5db0d7}",""]),b.exports=_},9819:function(b,_,d){(_=d(3645)(!1)).push([b.id,`.luna-setting{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;min-width:320px}.luna-setting.luna-setting-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-setting.luna-setting-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-setting .luna-setting-hidden,.luna-setting.luna-setting-hidden{display:none}.luna-setting .luna-setting-invisible,.luna-setting.luna-setting-invisible{visibility:hidden}.luna-setting *{box-sizing:border-box}.luna-setting-item.luna-setting-selected,.luna-setting-item:hover{background:#f3f3f3}.luna-setting-item.luna-setting-selected:focus{outline:1px solid #1a73e8}.luna-setting-item .luna-setting-title{line-height:1.4em;font-weight:600}.luna-setting-item .luna-setting-description{line-height:1.4em}.luna-setting-item .luna-setting-description *{margin:0}.luna-setting-item .luna-setting-description strong{font-weight:600}.luna-setting-item .luna-setting-description a{background-color:transparent;color:#0969da;text-decoration:none}.luna-setting-item .luna-setting-control,.luna-setting-item .luna-setting-description{font-size:12px}.luna-setting-item .luna-setting-description{margin-bottom:8px}.luna-setting-item .luna-setting-control{display:flex;align-items:center}.luna-setting-item-button,.luna-setting-item-checkbox,.luna-setting-item-input,.luna-setting-item-number,.luna-setting-item-select,.luna-setting-item-title{padding:10px}.luna-setting-item-title{font-size:18px;font-weight:600}.luna-setting-item-input input{-webkit-tap-highlight-color:transparent;color:#333;-webkit-appearance:none;appearance:none;border:1px solid #ccc;outline:0;padding:2px 8px;border-radius:0;font-size:14px;background:#fff;width:100%}.luna-setting-item-number input[type=number]{-webkit-tap-highlight-color:transparent;color:#333;-webkit-appearance:none;appearance:none;border:1px solid #ccc;outline:0;padding:2px 8px;border-radius:0;font-size:14px;background:#fff;width:200px;padding:2px}.luna-setting-item-number .luna-setting-range-container{flex:2;position:relative;top:1px}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track{height:4px;width:100%;padding:0 10px;position:absolute;left:0;top:4px}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar{background:#ccc;border-radius:2px;overflow:hidden;width:100%;height:4px}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar .luna-setting-range-track-progress{height:100%;background:#1a73e8;width:50%}.luna-setting-item-number .luna-setting-range-container input{-webkit-appearance:none;background:0 0;height:4px;width:100%;position:relative;top:-3px;margin:0 auto;outline:0;border-radius:2px}.luna-setting-item-number .luna-setting-range-container input::-webkit-slider-thumb{-webkit-appearance:none;position:relative;top:0;z-index:1;width:16px;border:none;height:16px;border-radius:10px;border:1px solid #ccc;background:radial-gradient(circle at center,#eee 0,#eee 15%,#fff 22%,#fff 100%)}.luna-setting-item-checkbox input{-webkit-appearance:none;appearance:none;width:14px;height:14px;border:1px solid #ccc;border-radius:0;position:relative;outline:0;margin-left:0;margin-right:8px;transition:background-color .1s;align-self:flex-start;flex-shrink:0}.luna-setting-item-checkbox input:checked{background-color:#1a73e8;border-color:#1a73e8}.luna-setting-item-checkbox input:checked:after{content:"";width:100%;height:100%;position:absolute;left:0;top:0;background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzMwMHB4JyB3aWR0aD0nMzAwcHgnICBmaWxsPSIjZmZmZmZmIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgdmVyc2lvbj0iMS4xIiB4PSIwcHgiIHk9IjBweCI+PHRpdGxlPmljb25fYnlfUG9zaGx5YWtvdjEwPC90aXRsZT48ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz48ZyBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyBmaWxsPSIjZmZmZmZmIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNi4wMDAwMDAsIDI2LjAwMDAwMCkiPjxwYXRoIGQ9Ik0xNy45OTk5ODc4LDMyLjQgTDEwLjk5OTk4NzgsMjUuNCBDMTAuMjI2Nzg5MSwyNC42MjY4MDE0IDguOTczMTg2NDQsMjQuNjI2ODAxNCA4LjE5OTk4Nzc5LDI1LjQgTDguMTk5OTg3NzksMjUuNCBDNy40MjY3ODkxNCwyNi4xNzMxOTg2IDcuNDI2Nzg5MTQsMjcuNDI2ODAxNCA4LjE5OTk4Nzc5LDI4LjIgTDE2LjU4NTc3NDIsMzYuNTg1Nzg2NCBDMTcuMzY2ODIyOCwzNy4zNjY4MzUgMTguNjMzMTUyOCwzNy4zNjY4MzUgMTkuNDE0MjAxNCwzNi41ODU3ODY0IEw0MC41OTk5ODc4LDE1LjQgQzQxLjM3MzE4NjQsMTQuNjI2ODAxNCA0MS4zNzMxODY0LDEzLjM3MzE5ODYgNDAuNTk5OTg3OCwxMi42IEw0MC41OTk5ODc4LDEyLjYgQzM5LjgyNjc4OTEsMTEuODI2ODAxNCAzOC41NzMxODY0LDExLjgyNjgwMTQgMzcuNzk5OTg3OCwxMi42IEwxNy45OTk5ODc4LDMyLjQgWiI+PC9wYXRoPjwvZz48L2c+PC9nPjwvc3ZnPg==);background-size:30px;background-repeat:no-repeat;background-position:center}.luna-setting-item-checkbox label{-webkit-tap-highlight-color:transparent}.luna-setting-item-checkbox label *{margin:0}.luna-setting-item-select .luna-setting-select{position:relative}.luna-setting-item-select .luna-setting-select select{margin:0;font-size:14px;background:#fff;-webkit-appearance:none;appearance:none;border:1px solid #ccc;padding:2px 8px;padding-right:18px;outline:0;color:#333;border-radius:0;-webkit-tap-highlight-color:transparent}.luna-setting-item-select .luna-setting-select:after{content:'';width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #333;position:absolute;top:0;bottom:0;right:6px;margin:auto;pointer-events:none}.luna-setting-item-select .luna-setting-select select{width:300px}.luna-setting-item-button button{-webkit-tap-highlight-color:transparent;background:#fff;border:1px solid #ccc;padding:2px 8px;color:#1a73e8;font-size:14px;border-radius:2px}.luna-setting-item-button button:active,.luna-setting-item-button button:hover{background:#f3f3f3}.luna-setting-item-button button:active{border:1px solid #1a73e8}.luna-setting-item-separator{border-bottom:1px solid #ccc}.luna-setting-theme-dark{color-scheme:dark;color:#a5a5a5;background:#242424}.luna-setting-theme-dark .luna-setting-item.luna-setting-selected,.luna-setting-theme-dark .luna-setting-item:hover{background:#292a2d}.luna-setting-theme-dark .luna-setting-item .luna-setting-description a{background-color:transparent;color:#58a6ff}.luna-setting-theme-dark .luna-setting-item-separator{border-color:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-input input{background:#3d3d3d;border-color:#3d3d3d;color:#a5a5a5}.luna-setting-theme-dark .luna-setting-item-checkbox input{border-color:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-select .luna-setting-select select{color:#a5a5a5;border-color:#3d3d3d;background:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-select .luna-setting-select:after{border-top-color:#a5a5a5}.luna-setting-theme-dark .luna-setting-item-button button{background:#242424;border-color:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-button button:active,.luna-setting-theme-dark .luna-setting-item-button button:hover{background:#292a2d}.luna-setting-theme-dark .luna-setting-item-button button:active{border:1px solid #1a73e8}.luna-setting-theme-dark .luna-setting-item-number input[type=number]{background:#3d3d3d;border-color:#3d3d3d;color:#a5a5a5}.luna-setting-theme-dark .luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar{background:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-number .luna-setting-range-container input::-webkit-slider-thumb{border-color:#3d3d3d;background:radial-gradient(circle at center,#aaa 0,#aaa 15%,#ccc 22%,#ccc 100%)}`,""]),b.exports=_},2156:function(b,_,d){(_=d(3645)(!1)).push([b.id,".luna-tab{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;position:relative;overflow:hidden;width:100%}.luna-tab.luna-tab-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-tab.luna-tab-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-tab .luna-tab-hidden,.luna-tab.luna-tab-hidden{display:none}.luna-tab .luna-tab-invisible,.luna-tab.luna-tab-invisible{visibility:hidden}.luna-tab *{box-sizing:border-box}.luna-tab.luna-tab-theme-dark{color:#a5a5a5;background-color:#242424}.luna-tab-tabs-container{border-bottom:1px solid #ccc}.luna-tab-tabs{overflow-x:auto;-webkit-overflow-scrolling:touch;overflow-y:hidden;width:100%;height:100%;font-size:0;white-space:nowrap}.luna-tab-tabs::-webkit-scrollbar{display:none;width:0;height:0}.luna-tab-item{cursor:pointer;display:inline-block;padding:0 10px;font-size:12px;text-align:center;text-transform:capitalize}.luna-tab-item:hover{background:#f3f3f3}.luna-tab-slider{transition:left .3s,width .3s;height:1px;background:#1a73e8;position:absolute;bottom:0;left:0}",""]),b.exports=_},5777:function(b,_,d){(_=d(3645)(!1)).push([b.id,"@font-face{font-family:luna-text-viewer-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAS0AAsAAAAAB2QAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAFQAAAB0INElr09TLzIAAAFcAAAAPQAAAFZL+0klY21hcAAAAZwAAACfAAACEAEewxRnbHlmAAACPAAAAIYAAACkNSDggmhlYWQAAALEAAAALgAAADZzrb4oaGhlYQAAAvQAAAAWAAAAJAGRANNobXR4AAADDAAAABAAAAAoAZAAAGxvY2EAAAMcAAAAEAAAABYBWgFIbWF4cAAAAywAAAAdAAAAIAEXADtuYW1lAAADTAAAASkAAAIWm5e+CnBvc3QAAAR4AAAAOwAAAFJIWdOleJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBWAdNMDGwMQkAWK1CGlYEZyGMCstiBMpxAUUYGZgDbGgXDeJxjYGTQYJzAwMrAwFDH0AMkZaB0AgMngzEDAxMDKzMDVhCQ5prCcIAh+SMTwwkgVwhMMjAwgggAY84IrgAAAHicvZFLCsMwDERHzsdJ6aL0HD1VQiDQRbIN9Axd9aI+QTpjq5Bdd5F4Bo1lybIBNAAq8iA1YB8YZG+qlvUKl6zXGBjf6MofMWHGEyu2FPb9oCxULCtHs3yy+J2urg1rtojo0HM/MKnFGabOGlbdYvdT+1N6/7drXl8e6Vajo3efHP3b7HAUvntBMy1OJKujMTeHNZMV9McpFBC+tLgY4QB4nGNgZACBEwzrGdgZGOwZxdnVDdXNPfKEGlhchO0KhZtZ3IQYmMFq1jCsZpBi0GLQY2AwNzGzZjQSk2UUYdNmVFID8UyVRUXYlNRMlVGlTM1FjU3tmZkTmVhYmFRBhHwoCyuzKgtTIjMzWJg3ZClIGMRlZQmVB7GhMixM0aGhQIsB52sTqgAAeJxjYGRgYADi2JNxkvH8Nl8ZuBlOAAWiOB/va0DQQHCCYT2Q5GBgAnEANJ0KnQAAeJxjYGRgYDjBwIBEMjKgAi4AOvoCZQAAeJxjYACCE1CMBwAAM7gBkXicY2AAAiGGIFQIABXIAqN4nGNgZGBg4GLQZ2BmAAEmMI8LSP4H8xkADjQBUwAAAHicZZA9bsJAFITHYEgCUoIUKSmzVQoimZ+SA0BPQZfCmLUxsr3WekGiywlyhBwhp4hyghwoY/NoYC0/fzNv3u7KAAb4hYd6ebhtar1auKE6cZv0IOyTn4U76ONFuEt/KNzDG6bCfTzinTt4/h2dAUrhFu7xIdym/ynsk7+EO3jCt3CX/o9wDyv8Cffx6g3TyBSxKdxSJ/sstGd5/q60rVJTqEkwPlsLXWgbOr1R66OqDsnUuVjF1uRqzq7OMqNKa3Y6csHWuXI2GsXiB5HJkSKCQYG4qQ5LaCTYI0MIe9W91CumLSr6tVaYIMD4KrVgqmiSIZXGhsk1jqwVDjxtStcxrfhazuSkucxq3iQjK/7vurejE9EPsG2mSsww4hNf5IPmDvk/PRFeqAAAAHicXcU7CsAgFEXBe4x/l/kQBAtt3X0KSZNpRk7X91/F8eAJRBKZQqUp2Og2va19MAadyWJzpBd4kgcWAA==') format('woff')}[class*=' luna-text-viewer-icon-'],[class^=luna-text-viewer-icon-]{display:inline-block;font-family:luna-text-viewer-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-text-viewer-icon-check:before{content:'\\f101'}.luna-text-viewer-icon-copy:before{content:'\\f102'}.luna-text-viewer{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;padding:0;unicode-bidi:embed;position:relative;overflow:auto;border:1px solid #ccc}.luna-text-viewer.luna-text-viewer-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-text-viewer.luna-text-viewer-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-text-viewer .luna-text-viewer-hidden,.luna-text-viewer.luna-text-viewer-hidden{display:none}.luna-text-viewer .luna-text-viewer-invisible,.luna-text-viewer.luna-text-viewer-invisible{visibility:hidden}.luna-text-viewer *{box-sizing:border-box}.luna-text-viewer.luna-text-viewer-theme-dark{color:#d9d9d9;border-color:#3d3d3d;background:#242424}.luna-text-viewer:hover .luna-text-viewer-copy{opacity:1}.luna-text-viewer-table{display:table}.luna-text-viewer-table .luna-text-viewer-line-number,.luna-text-viewer-table .luna-text-viewer-line-text{padding:0}.luna-text-viewer-table-row{display:table-row}.luna-text-viewer-line-number{display:table-cell;padding:0 3px 0 8px!important;text-align:right;vertical-align:top;-webkit-user-select:none;user-select:none;border-right:1px solid #ccc}.luna-text-viewer-line-text{display:table-cell;padding-left:4px!important;-webkit-user-select:text;user-select:text}.luna-text-viewer-copy{background:#fff;opacity:0;position:absolute;right:5px;top:5px;border:1px solid #ccc;border-radius:4px;width:25px;height:25px;text-align:center;line-height:25px;cursor:pointer;transition:opacity .3s,top .3s}.luna-text-viewer-copy .luna-text-viewer-icon-check{color:#188037}.luna-text-viewer-text{padding:4px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;box-sizing:border-box;white-space:pre;display:block}.luna-text-viewer-text.luna-text-viewer-line-numbers{padding:0}.luna-text-viewer-text.luna-text-viewer-wrap-long-lines{white-space:pre-wrap}.luna-text-viewer-text.luna-text-viewer-wrap-long-lines .luna-text-viewer-line-text{word-break:break-all}.luna-text-viewer-theme-dark{color-scheme:dark}.luna-text-viewer-theme-dark .luna-text-viewer-copy,.luna-text-viewer-theme-dark .luna-text-viewer-line-number{border-color:#3d3d3d}.luna-text-viewer-theme-dark .luna-text-viewer-copy .luna-text-viewer-icon-check{color:#81c995}.luna-text-viewer-theme-dark .luna-text-viewer-copy{background-color:#242424}",""]),b.exports=_},5357:function(b,_,d){(_=d(3645)(!1)).push([b.id,"@font-face{font-family:eruda-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAA6UAAsAAAAAGvAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAARoAAAHeLjoycE9TLzIAAAIkAAAAPwAAAFZWm1KoY21hcAAAAmQAAAFdAAADwhPu1O9nbHlmAAADxAAAB+wAAA9I7RPQpGhlYWQAAAuwAAAAMQAAADZ26MSyaGhlYQAAC+QAAAAdAAAAJAgEBC9obXR4AAAMBAAAAB0AAACwXAv//GxvY2EAAAwkAAAAOwAAAFpuVmoybWF4cAAADGAAAAAfAAAAIAE9AQ1uYW1lAAAMgAAAASkAAAIWm5e+CnBvc3QAAA2sAAAA5QAAAU4VMmUJeJxNkD1Ow0AQhb9NHGISCH9RiB0cErCNHRrqFFSIyqKiQHSpEFJERUnBCTgPZ+AEHIe34wDe1f69efPezOKAHldc07q5re4ZrFevL8QE1MPHm3e3fn5aEf6+FAvsDHHuTUoxd7zzwSdffLulq9wjLbaYau8TacZMONE554xzZsrtNfBEzFOhbSmOyTmga0ikvRR/37RSsSMyDukYPjWdgGOtsSK55Y/k0Bf/ksK0MrbFr70idsVZKNPnDcSay3umd2TISCvWTJSxI78lFQ/C+qbv/Zo9tNXDP55ZL7k0Q90u5F5XX0qrYx16btccCtXg/ULrKzGFuqY9rUTMhf3fkCNj+MxUnsM/frr5Qx+ZbH4vVQ0F5Q/ZQBvxAAB4nGNgZJJgnMDAysDA1Mt0hoGBoR9CM75mMGLkAIoysDIzYAUBaa4pDAcYdD+KsIC4MSxMDIxAGoQZALgnCOUAeJy1011SGlEQhuF3BFHxD5UUyr8gIJIsiiKJsSqJlrHKsJssKFeuxF6Bfj3dF96aqhzqoZnDzJyG8w2wCVTko1SheKLAx1/NFuV8hXo5X+WPjht6+fmfWHLDHQ+srfnykjMrvnPPoxXlzNtRlFc26HLBZblal1N9ntBnwIgx5/SYMaWt78+YM6TDgitduaEVq+q0xhbb7KifPQ441N2OOOaEJh9oaYka7xvdd57vQz1P+oPR+Bx6s2lbrc6H0Flc/cO9/sfY87fiOY8u8X0J/muX6VRW6UI+p4l8SX35mgZynUbyLY3lJukf0e6HnvxIM/mZpnKb2nKXvM/7dCa/0lwe0lAeU0d+p4Wsk3bBiuDptY2A10rw9Fo1eOJtM/iTYLWA162A1+2A152A13rwJ8R2g++AJaUU2w/KK3YQlFzsMCjDWCMozdhRUK6x46CEYydBWceagdYraihRngAAAHic7RdbbBxX9Z57Z2d2d2ZndryzM7ve9ax3NztjO/bann0lTuW16zoBJSWJ7Zg83NiUJCQ1Ik2ikKQJNC9FFQqVEG0RVLQoSpEKH2klqgpEIyWAUMRTNBJC/PUDhETgiwhQd8y5s1s7oqr624/srO6ce89zzjn3nHsJEPwxyn5GVEJKBTcCdc80pAiYhkjfNWL+NnhLdTKqfxVOqJlxFX6E84wb86/6X4+5GRLw0/vsOgkREoFGBFx62P/uFviBP78FWrC02d/r79vcpmMl+k2uBwwJxIILTrVeyXsmK8krRLb5YGqUaCb9ksYnMuBqMtnRcY6V1nidml6texaY9CxSRm3TtKNIjcxrUjhEWKD3OnuNJEgPKSG/I6nUpo06fxwXH8lmEoyDFQIVyrROs7254z990rj0u2PLez47WqG1yu69V7ZdfDxU9He4C6P+v+HN+vlnD9Uou0Zp+NnfvveT/XL0kbGFxT/u37tx7CTdeuGlKfiibcMr/gt9qfyu05e4+YEdb7A3iEVG0ArdEAvDIPHBqTbB7bgCDA0sdH0x3/nEHDT4YFJi9siz74iaOBkK3ZyRTRXwE+FGG15BeA0Pf14hqinP3AyFJnHhnVm5xzThmNSBNFjDdvwzw75GFJIlvWhZ1UHlYlI3zIputa3CSduiRF7P09e9on+jODpanPOKsJMDOPV2wU7/BqsVPcQ2ix41X/8ARKpbfhPVtHNgik1hXAhIlmQ1rIbbcCVIzN/7+65794KRTc13IBwJXVkhRACBkAEyhVyiBqJbRn81YRjKUDfRN9xHpoVBt0xJRZ+iS4ehZFg2utJrjCO2GrAUAizcj+c3pXpiXVQwThZmdNrbrx+hAjtjbhSF5FPyKSsqmGraWKYCbfl97vMLi79fXHje7XsAhBsoo0P35fyMPpCj+lM0FDptJexuYzl82upRufxlKgrTh/+fOwBXc+Jt9jZJBTnxUbH/yGT5j4jRT2pB9O1oO/oi3FyD2/ggU14LY/j5RuHTJIZf5LR/WVmbaB2CT6xdQa4KwJZIHPfyMFoWRNSmQZDLlJVpdRw8GwwVWEGlScOGijdOq2VKyfHDB7/d1/+d37zXeT/dXG42l7/Kh2a20pd0JpxsxTVNt8KWyuu/94Ujr+7uvFpvQXP5PCfEAU4l+6pZZ9Ix3eqGqmsGrvok28V+zi6TKEYyi/Udt0MNavkkJC1e+vQA1tGqil6EV93j/UBbY0AXm/2Vku+z53x/8MDT5879U9Nb4Cqq/yf/WEjReiECfS9+C2f/6umFS/77q3t7kp0nGu8DTrFTQrwG1KtsoHVXlnXL0qMKHTRpGbaJlt7aoVsSbO3aQFb5L7MTJElIwrBMvnWxQteCEl2QREn8Ci/Ef9i7u1IT6tX5Pb/ePV+rUXKEL3DMkUPzc6OeNzo3/6C8K2QdrzVlKAYyHhBcxGgUyoCRqXimJZXYwYO1y1tWxQWKLkyfunpqevrU5vJs4SQ02JUDw94qMlC6maORJpc9AR/Sm7C4cK7S4MoL/FNqFYy+Nw5VbpIoWaWXP0atf+fj1Lb36w12h6SxShIouuNQw+TCVDNsWvHqDStpNUoFnobUs6mhUvpmn+r2VxaeuXjmCc974vSjm44OxfytrXeH5iaKxYm5fXMThcLEHLwcGzq66dHTnObMxWcWKv2u2tfa1ipMzu7rEM5OFshqLfsFu4R9thszrVjAUoHFgH98DxRreb3CK74rMTh/bWmJTq9Pd0nCZOvsbfrYrVsTty9cOPc5Or2U6spq8rXbrbNAL9yeuHWLYuEnEiErK0JIAPIN8kNyl9wn/yUt7mioN6GGTi1jDQrypNPRxQ+8zREatnUsVtgbcDHAaZA0rc6TxOIWLPFVXLDbvYRT45CDSnBOqFhee4aTcWw8gapGnS+Z+EYrOuqh825jrY5WSVwPDSewh/OWqYueCJQFEjhELTdgcdEODjUCo5yge7lcAlJxRSgceyZyu5LFfqnaeldKlsyunnK6N6LEaUSqTSndgpZK7jC7NZaR7LGcGhXwgMNC+WFt0MxEomZcECQ9EY4JkgAQDilSNKnGuxXJ0u2hdG9YUZkiZcfWpaOWkUv0G6IaCseVVH81o0dEEClKGokassX0hKSk44PxBGOS4E8cmNk+OMSY5+2cXfz8zI4hrG4jI9tnFpW/hqKx7PCnH1O7wpFkqeANT4IUVhopPTUwnNJxzSlUzLASV+4YfUIkpoQFTYvoMUFkJgtJ/Z6VEIyymx4usdCW5CuDc9s+dZDm6GeiejTl1jN6VFKUdMHMlUIWzaQEOdyrKHIsL0VZJB0TE1rUlLvCo71yPKya3dW+ONBQRBajUdPuKoXFsBAOiYoUdx7JtSXlU3ZJNAW1O+4ktBCFqBjLJhMW97JgyonISE5kVIJQJJ6tO6nueCJj1TV/D6uMzu06tH/H44NlRr3RnbNPLu7cXh75sWOklURzi5ZI9dgqG6tuEAf0bkWX0/0j6S6+RjfaYiQsbkKHhuNdms6kUExWZNGSlJgzkjIGjPK61KjLxOvGc/1/27r9KOQe7omHe+LhnvjQnmArLTyHMYHiPbGbFLEL4Q1BxOsiHrfy2HIBz67BXQbPsVbB4TNDZP/wF4x63cAxUl/PRtbXI61f2QM2/iuZUqleKr3ABp1Mxnn/rjvpOJN0b9K2k/73+Xi/VHOcGl4qyf8AzjWNo3icY2BkYGAA4uhnXafj+W2+MnCzgASiOB/va4DR///+/8/CysIElOBgAJEMAHS2DWQAAAB4nGNgZGBgYQABFtb/f///ZWFlYGRABToAW+YEPQAAAHicY2BgYGAhiP//J6wGCbNCMcP/vwxUBgDl4QRhAAAAeJxjYAACBQYThiCGAoYtjAyMZowBjPuYuJjCmBYxvWNWYXZhzmFewfyIRYUliPUOexr7EmIhAF3rF0sAeJxjYGRgYNBhZGRgZwABJiDmAkIGhv9gPgMADcIBTAB4nGWQPW7CQBSEx2BIAlKCFCkps1UKIpmfkgNAT0GXwpi1MbK91npBossJcoQcIaeIcoIcKGPzaGAtP38zb97uygAG+IWHenm4bWq9WrihOnGb9CDsk5+FO+jjRbhLfyjcwxumwn084p07eP4dnQFK4Rbu8SHcpv8p7JO/hDt4wrdwl/6PcA8r/An38eoN08gUsSncUif7LLRnef6utK1SU6hJMD5bC11oGzq9Ueujqg7J1LlYxdbkas6uzjKjSmt2OnLB1rlyNhrF4geRyZEigkGBuKkOS2gk2CNDCHvVvdQrpi0q+rVWmCDA+Cq1YKpokiGVxobJNY6sFQ48bUrXMa34Ws7kpLnMat4kIyv+77q3oxPRD7BtpkrMMOITX+SD5g75Pz0RXqgAAAB4nG2MyW6DQBiD+RKYpKT7vqf7Gg55pNHwEyJNGDSMRHj70nKtD7Zly45G0YA0+h8LRoyJSVBMmLJDyoxd9tjngEOOOOaEU84454JLrrjmhlvuuGfOA4888cwLr7zxzgeffPHNgixKtfeuzawUYTZYv16VITXaS8hy11azwf7FibGi/dS4Te2laWLj6k7lYiVIIv3aK9nWusqng2TLsXR900m2VMXaBvFxbXWnvBjn84mXor8pk54kqKa/NmUvVkyIg3NW/VK2jFvtKzQeR0uGRSgIrFlRYsip2FDT0LGNoh/MCkh9AAAA') format('woff')}[class*=' _icon-'],[class^='_icon-']{display:inline-block;font-family:eruda-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}._icon-arrow-left:before{content:'\\f101'}._icon-arrow-right:before{content:'\\f102'}._icon-caret-down:before{content:'\\f103'}._icon-caret-right:before{content:'\\f104'}._icon-clear:before{content:'\\f105'}._icon-compress:before{content:'\\f106'}._icon-copy:before{content:'\\f107'}._icon-delete:before{content:'\\f108'}._icon-error:before{content:'\\f109'}._icon-expand:before{content:'\\f10a'}._icon-eye:before{content:'\\f10b'}._icon-filter:before{content:'\\f10c'}._icon-play:before{content:'\\f10d'}._icon-record:before{content:'\\f10e'}._icon-refresh:before{content:'\\f10f'}._icon-reset:before{content:'\\f110'}._icon-search:before{content:'\\f111'}._icon-select:before{content:'\\f112'}._icon-tool:before{content:'\\f113'}._icon-warn:before{content:'\\f114'}",""]),b.exports=_},3645:function(b){b.exports=function(_){var d=[];return d.toString=function(){return this.map(function(k){var j=function($,et){var tt=$[1]||"",rt=$[3];if(!rt)return tt;if(et&&typeof btoa=="function"){var nt=(at=rt,it=btoa(unescape(encodeURIComponent(JSON.stringify(at)))),dt="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(it),"/*# ".concat(dt," */")),ot=rt.sources.map(function(ut){return"/*# sourceURL=".concat(rt.sourceRoot||"").concat(ut," */")});return[tt].concat(ot).concat([nt]).join(` + `));var jt=vt.val,zt=this._$el.find(Tn(".raw")).get(0);jt.length>gs&&(jt=ds()(jt,gs)),new Sl.Z(zt,{text:jt,wrapLongLines:!0,showLineNumbers:jt.length'))}},{key:"_renderHtml",value:function(vt){var jt=this;(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&vt===this._lastHtml||(this._lastHtml=vt,this._$el.html(vt),setTimeout(function(){return jt._$el.get(0).scrollTop=0},0))}}]),Ht}(ct),Pp=3e4,Tl=8e4,gs=1e5,Np={init:function(){var ln=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Jt=ln.container,Ht=ln.tool,vt=ln.autoScale,jt=vt===void 0||vt,zt=ln.useShadowDom,yn=zt===void 0||zt,Dn=ln.defaults,tr=Dn===void 0?{}:Dn;this._isInit||(this._isInit=!0,this._scale=1,this._initContainer(Jt,yn),this._initStyle(),this._initDevTools(tr),this._initEntryBtn(),this._initSettings(),this._initTools(Ht),this._registerListener(),jt&&this._autoScale())},_isInit:!1,version:"2.11.3",util:k,chobitsu:uo,Tool:ct,Console:U0,Elements:vp,Network:rp,Sources:Bp,Resources:Ap,Info:Ip,Snippets:xp,Settings:bt,get:function(ln){if(this._checkInit()){if(ln==="entryBtn")return this._entryBtn;var Jt=this._devTools;return ln?Jt.get(ln):Jt}},add:function(ln){if(this._checkInit())return Ao()(ln)&&(ln=ln(this)),this._devTools.add(ln),this},remove:function(ln){return this._devTools.remove(ln),this},show:function(ln){if(this._checkInit()){var Jt=this._devTools;return ln?Jt.showTool(ln):Jt.show(),this}},hide:function(){if(this._checkInit())return this._devTools.hide(),this},destroy:function(){this._devTools.destroy(),delete this._devTools,this._entryBtn.destroy(),delete this._entryBtn,this._unregisterListener(),st()(this._container).remove(),Vn.clear(),this._isInit=!1,this._container=null,this._shadowRoot=null},scale:function(ln){return No()(ln)?(this._scale=ln,ut.emit(ut.SCALE,ln),this):this._scale},position:function(ln){var Jt=this._entryBtn;return Zs()(ln)?(Jt.setPos(ln),this):Jt.getPos()},_autoScale:function(){Oo()()&&this.scale(1/il()())},_registerListener:function(){var ln=this;this._addListener=function(){return ln.add.apply(ln,arguments)},this._showListener=function(){return ln.show.apply(ln,arguments)},ut.on(ut.ADD,this._addListener),ut.on(ut.SHOW,this._showListener),ut.on(ut.SCALE,Vn.setScale)},_unregisterListener:function(){ut.off(ut.ADD,this._addListener),ut.off(ut.SHOW,this._showListener),ut.off(ut.SCALE,Vn.setScale)},_checkInit:function(){return this._isInit||Wo.error('Please call "eruda.init()" first'),this._isInit},_initContainer:function(ln,Jt){var Ht,vt;ln||(ln=document.createElement("div"),document.documentElement.appendChild(ln)),ln.id="eruda",ln.style.all="initial",this._container=ln,Jt&&(ln.attachShadow?Ht=ln.attachShadow({mode:"open"}):ln.createShadowRoot&&(Ht=ln.createShadowRoot()),Ht&&(Vn.container=document.head,Vn(d(5357)+d(9327)+d(4821)+d(8903)+d(5777)),vt=document.createElement("div"),Ht.appendChild(vt),this._shadowRoot=Ht)),this._shadowRoot||(vt=document.createElement("div"),ln.appendChild(vt)),dn()(vt,{className:"eruda-container __chobitsu-hide__",contentEditable:!1}),so()().name==="ios"&&vt.setAttribute("ontouchstart",""),this._$el=st()(vt)},_initDevTools:function(ln){this._devTools=new $0(this._$el,{defaults:ln})},_initStyle:function(){var ln="eruda-style-container",Jt=this._$el;this._shadowRoot?(Vn.container=this._shadowRoot,Vn(":host { all: initial }")):(Jt.append('
    ')),Vn.container=Jt.find(".".concat(ln)).get(0)),Vn(d(8020)+d(4821)+d(9327)+d(7591)+d(4987)+d(8903)+d(5512)+d(2156)+d(5777)+d(9819)+d(8094)+d(8516)+d(5357))},_initEntryBtn:function(){var ln=this;this._entryBtn=new j0(this._$el),this._entryBtn.on("click",function(){return ln._devTools.toggle()})},_initSettings:function(){var ln=this._devTools,Jt=new bt;ln.add(Jt),this._entryBtn.initCfg(Jt),ln.initCfg(Jt)},_initTools:function(){var ln=this,Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["console","elements","network","resources","sources","info","snippets"];Jt=ss()(Jt);var Ht=this._devTools;Jt.forEach(function(vt){var jt=ln[Go()(vt)];try{jt&&Ht.add(new jt)}catch(zt){yt()(function(){Wo.error("Something wrong when initializing tool ".concat(vt,":"),zt.message)})}}),Ht.showTool(Jt[0]||"settings")}}},2027:function(b,_,d){var k=d(6672).Z;b.exports=k,b.exports.default=k},6610:function(b,_,d){d.r(_),_.default={}},9143:function(b,_,d){var k=this&&this.__awaiter||function(dt,ut,ht,ft){return new(ht||(ht=Promise))(function(lt,ct){function gt(xt){try{Ct(ft.next(xt))}catch(wt){ct(wt)}}function st(xt){try{Ct(ft.throw(xt))}catch(wt){ct(wt)}}function Ct(xt){var wt;xt.done?lt(xt.value):(wt=xt.value,wt instanceof ht?wt:new ht(function(Mt){Mt(wt)})).then(gt,st)}Ct((ft=ft.apply(dt,ut||[])).next())})},j=this&&this.__generator||function(dt,ut){var ht,ft,lt,ct,gt={label:0,sent:function(){if(1<[0])throw lt[1];return lt[1]},trys:[],ops:[]};return ct={next:st(0),throw:st(1),return:st(2)},typeof Symbol=="function"&&(ct[Symbol.iterator]=function(){return this}),ct;function st(Ct){return function(xt){return function(wt){if(ht)throw new TypeError("Generator is already executing.");for(;gt;)try{if(ht=1,ft&&(lt=2&wt[0]?ft.return:wt[0]?ft.throw||((lt=ft.return)&<.call(ft),0):ft.next)&&!(lt=lt.call(ft,wt[1])).done)return lt;switch(ft=0,lt&&(wt=[2&wt[0],lt.value]),wt[0]){case 0:case 1:lt=wt;break;case 4:return gt.label++,{value:wt[1],done:!1};case 5:gt.label++,ft=wt[1],wt=[0];continue;case 7:wt=gt.ops.pop(),gt.trys.pop();continue;default:if(lt=gt.trys,!((lt=lt.length>0&<[lt.length-1])||wt[0]!==6&&wt[0]!==2)){gt=0;continue}if(wt[0]===3&&(!lt||wt[1]>lt[0]&&wt[1]",Lt))return void Bt.push(rn);var Vt=[];st.default(rn.attributes,function(On){var _n=On.name,Bn=On.value;return Vt.push(_n,Bn)});for(var fn=0,In=Vt.length;fn",ht.default.parse(Lt)[0].attrs))},_.setAttributeValue=function(Ot){var Lt=Ot.nodeId,Bt=Ot.name,Zt=Ot.value;nt.getNode(Lt).setAttribute(Bt,Zt)};var At=[];function Et(Ot,Lt){for(var Bt=rt.filterNodes(Ot.childNodes),Zt=0,rn=Bt.length;Zt5&&At.pop();for(var Bt=0;Bt<5;Bt++)Mt.setGlobal("$"+Bt,At[Bt])},_.setNodeValue=function(Ot){var Lt=Ot.nodeId,Bt=Ot.value;nt.getNode(Lt).nodeValue=Bt},_.setOuterHTML=function(Ot){var Lt=Ot.nodeId,Bt=Ot.outerHTML;nt.getNode(Lt).outerHTML=Bt},_.getDOMNodeId=function(Ot){var Lt=Ot.node;return{nodeId:rt.getOrCreateNodeId(Lt)}},_.getDOMNode=function(Ot){var Lt=Ot.nodeId;return{node:nt.getNode(Lt)}},at.default.on("attributes",function(Ot,Lt){var Bt=nt.getNodeId(Ot);if(Bt){var Zt=Ot.getAttribute(Lt);dt.default(Zt)?tt.default.trigger("DOM.attributeRemoved",{nodeId:Bt,name:Lt}):tt.default.trigger("DOM.attributeModified",{nodeId:Bt,name:Lt,value:Zt})}}),at.default.on("childList",function(Ot,Lt,Bt){var Zt=nt.getNodeId(Ot);if(Zt){if(Lt=rt.filterNodes(Lt),Bt=rt.filterNodes(Bt),!ut.default(Lt)){On();for(var rn=0,nn=Lt.length;rn0||Tt)&&(Mt.children=ft(gt,xt)),Mt}function ft(gt,st){var Ct=lt(gt.childNodes);return j.default(Ct,function(xt){return ht(xt,{depth:st-1})})}function lt(gt){return $.default(gt,function(st){return ct(st)})}function ct(gt){if(gt.nodeType===1){var st=gt.getAttribute("class")||"";if(rt.default(st,"__chobitsu-hide__")||rt.default(st,"html2canvas-container"))return!1}var Ct=!(gt.nodeType===3&&tt.default(gt.nodeValue||"")==="");return Ct&>.parentNode?ct(gt.parentNode):Ct}_.getOrCreateNodeId=ut,_.clear=function(){at.clear(),it.clear()},_.getNodeId=function(gt){return it.get(gt)},_.wrap=ht,_.getChildNodes=ft,_.getPreviousNode=function(gt){var st=gt.previousSibling;if(st){for(;!ct(st)&&st.previousSibling;)st=st.previousSibling;return st&&ct(st)?st:void 0}},_.filterNodes=lt,_.isValidNode=ct,_.getNode=function(gt){var st=at.get(gt);if(!st||st.nodeType===10)throw ot.createErr(-32e3,"Could not find node with given id");return st}},7923:function(b,_,d){var k=this&&this.__importDefault||function(Qt){return Qt&&Qt.__esModule?Qt:{default:Qt}};Object.defineProperty(_,"__esModule",{value:!0}),_.getProperties=_.releaseObj=_.getObj=_.wrap=_.clear=void 0;var j=k(d(3367)),$=k(d(6156)),et=k(d(6472)),tt=k(d(4777)),rt=k(d(9833)),nt=k(d(2749)),ot=k(d(3708)),at=k(d(7470)),it=k(d(1754)),dt=k(d(3085)),ut=k(d(2533)),ht=k(d(300)),ft=k(d(1116)),lt=k(d(8740)),ct=k(d(415)),gt=k(d(9804)),st=k(d(6257)),Ct=new Map,xt=new Map,wt=new Map,Mt=new Map,kt=1;function _t(Qt,Vt){var fn=xt.get(Qt);return fn||(fn=JSON.stringify({injectedScriptId:0,id:kt++}),xt.set(Qt,fn),Ct.set(fn,Qt),wt.set(fn,Vt),fn)}function Tt(Qt,Vt){var fn=Vt===void 0?{}:Vt,In=fn.generatePreview,On=In!==void 0&&In,_n=fn.self,Bn=_n===void 0?Qt:_n,Yn=Zt(Qt),dn=Yn.type,An=Yn.subtype;return dn==="undefined"?Yn:dn==="string"||dn==="boolean"||An==="null"?(Yn.value=Qt,Yn):(Yn.description=Bt(Qt,Bn),dn==="number"?(Yn.value=Qt,Yn):dn==="symbol"?(Yn.objectId=_t(Qt,Bn),Yn):(Yn.className=dn==="function"?"Function":An==="array"?"Array":An==="map"?"Map":An==="set"?"Set":An==="regexp"?"RegExp":An==="error"?Qt.name:dt.default(Qt,!1),On&&(Yn.preview=Ot(Qt,Bn)),Yn.objectId=_t(Qt,Bn),Yn))}function At(Qt){return Ct.get(Qt)}_.clear=function(){Ct.clear(),xt.clear(),wt.clear()},_.wrap=Tt,_.getObj=At,_.releaseObj=function(Qt){var Vt=At(Qt);xt.delete(Vt),wt.delete(Qt),Ct.delete(Qt)},_.getProperties=function(Qt){for(var Vt=Qt.accessorPropertiesOnly,fn=Qt.objectId,In=Qt.ownProperties,On=Qt.generatePreview,_n=[],Bn={prototype:!In,unenumerable:!0,symbol:!Vt},Yn=Ct.get(fn),dn=wt.get(fn),An=ft.default(Yn,Bn),mn=ct.default(Yn),jn=0,kn=An.length;jnEt&&(Bn=Et,In=!0);for(var Yn=0;YnEt){In=!0;break}An.push({key:Ot(jn),value:Ot(Qt.get(jn))}),Yn++,jn=mn.next().value}fn.entries=An}else if(at.default(Qt)){var kn=[],vn=(Yn=0,Qt.keys());for(jn=vn.next().value;jn;){if(Yn>Et){In=!0;break}kn.push({value:Ot(jn)}),Yn++,jn=vn.next().value}fn.entries=kn}return fn.overflow=In,fn}function Lt(Qt,Vt){var fn=Zt(Vt);fn.name=Qt;var In,On=fn.subtype;return In=fn.type==="object"?On==="null"?"null":On==="array"?"Array("+Vt.length+")":On==="map"?"Map("+Vt.size+")":On==="set"?"Set("+Vt.size+")":dt.default(Vt,!1):j.default(Vt),fn.value=In,fn}function Bt(Qt,Vt){Vt===void 0&&(Vt=Qt);var fn=Zt(Qt),In=fn.type,On=fn.subtype;return In==="string"?Qt:In==="number"||In==="symbol"?j.default(Qt):In==="function"?ht.default(Qt):On==="array"?"Array("+Qt.length+")":On==="map"?"Map("+Vt.size+")":On==="set"?"Set("+Vt.size+")":On==="regexp"?j.default(Qt):On==="error"?Qt.stack:On==="internal#entry"?Qt.name?'{"'+j.default(Qt.name)+'" => "'+j.default(Qt.value)+'"}':'"'+j.default(Qt.value)+'"':dt.default(Qt,!1)}function Zt(Qt){var Vt=typeof Qt,fn="object";if(Qt instanceof rn)fn="internal#entry";else if($.default(Qt))fn="null";else if(et.default(Qt))fn="array";else if(it.default(Qt))fn="regexp";else if(nt.default(Qt))fn="error";else if(ot.default(Qt))fn="map";else if(at.default(Qt))fn="set";else try{rt.default(Qt)&&(fn="node")}catch{}return{type:Vt,subtype:fn}}var rn=function(Qt,Vt){Vt&&(this.name=Vt),this.value=Qt};function nn(Qt){return Qt instanceof rn||!!(Qt[0]&&Qt[0]instanceof rn)}},2636:function(b,_,d){var k,j=this&&this.__extends||(k=function(Et,Ot){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Lt,Bt){Lt.__proto__=Bt}||function(Lt,Bt){for(var Zt in Bt)Bt.hasOwnProperty(Zt)&&(Lt[Zt]=Bt[Zt])},k(Et,Ot)},function(Et,Ot){function Lt(){this.constructor=Et}k(Et,Ot),Et.prototype=Ot===null?Object.create(Ot):(Lt.prototype=Ot.prototype,new Lt)}),$=this&&this.__importDefault||function(Et){return Et&&Et.__esModule?Et:{default:Et}};Object.defineProperty(_,"__esModule",{value:!0}),_.fullUrl=_.FetchRequest=_.XhrRequest=void 0;var et=$(d(1443)),tt=$(d(6768)),rt=$(d(9702)),nt=$(d(6334)),ot=$(d(8887)),at=$(d(4331)),it=$(d(8847)),dt=$(d(3783)),ut=$(d(6930)),ht=$(d(3875)),ft=d(316),lt=function(Et){function Ot(Lt,Bt,Zt){var rn=Et.call(this)||this;return rn.xhr=Lt,rn.reqHeaders={},rn.method=Bt,rn.url=Mt(Zt),rn.id=ft.createId(),rn}return j(Ot,Et),Ot.prototype.toJSON=function(){return{method:this.method,url:this.url,id:this.id}},Ot.prototype.handleSend=function(Lt){tt.default(Lt)||(Lt=""),Lt={name:kt(this.url),url:this.url,data:Lt,time:it.default(),reqHeaders:this.reqHeaders,method:this.method},ot.default(this.reqHeaders)||(Lt.reqHeaders=this.reqHeaders),this.emit("send",this.id,Lt)},Ot.prototype.handleReqHeadersSet=function(Lt,Bt){Lt&&Bt&&(this.reqHeaders[Lt]=Bt)},Ot.prototype.handleHeadersReceived=function(){var Lt=this.xhr,Bt=_t(Lt.getResponseHeader("Content-Type")||"");this.emit("headersReceived",this.id,{type:Bt.type,subType:Bt.subType,size:xt(Lt,!0,this.url),time:it.default(),resHeaders:Ct(Lt)})},Ot.prototype.handleDone=function(){var Lt,Bt,Zt,rn=this,nn=this.xhr,Qt=nn.responseType,Vt="",fn=function(){rn.emit("done",rn.id,{status:nn.status,size:xt(nn,!1,rn.url),time:it.default(),resTxt:Vt})},In=_t(nn.getResponseHeader("Content-Type")||"");Qt!=="blob"||In.type!=="text"&&In.subType!=="javascript"&&In.subType!=="json"?(Qt!==""&&Qt!=="text"||(Vt=nn.responseText),Qt==="json"&&(Vt=JSON.stringify(nn.response)),fn()):(Lt=nn.response,Bt=function(On,_n){_n&&(Vt=_n),fn()},(Zt=new FileReader).onload=function(){Bt(null,Zt.result)},Zt.onerror=function(On){Bt(On)},Zt.readAsText(Lt))},Ot}(et.default);_.XhrRequest=lt;var ct=function(Et){function Ot(Lt,Bt){Bt===void 0&&(Bt={});var Zt=Et.call(this)||this;return Lt instanceof window.Request&&(Lt=Lt.url),Zt.url=Mt(Lt),Zt.id=ft.createId(),Zt.options=Bt,Zt.reqHeaders=Bt.headers||{},Zt.method=Bt.method||"GET",Zt}return j(Ot,Et),Ot.prototype.send=function(Lt){var Bt=this,Zt=this.options,rn=tt.default(Zt.body)?Zt.body:"";this.emit("send",this.id,{name:kt(this.url),url:this.url,data:rn,reqHeaders:this.reqHeaders,time:it.default(),method:this.method}),Lt.then(function(nn){var Qt=_t((nn=nn.clone()).headers.get("Content-Type"));return nn.text().then(function(Vt){var fn={type:Qt.type,subType:Qt.subType,time:it.default(),size:gt(nn,Vt),resTxt:Vt,resHeaders:st(nn),status:nn.status};ot.default(Bt.reqHeaders)||(fn.reqHeaders=Bt.reqHeaders),Bt.emit("done",Bt.id,fn)}),nn})},Ot}(et.default);function gt(Et,Ot){var Lt=Et.headers.get("Content-length");return Lt?ht.default(Lt):At(Ot)}function st(Et){var Ot={};return Et.headers.forEach(function(Lt,Bt){return Ot[Bt]=Lt}),Ot}function Ct(Et){var Ot=Et.getAllResponseHeaders().split(` +`),Lt={};return dt.default(Ot,function(Bt){if((Bt=at.default(Bt))!==""){var Zt=Bt.split(":",2),rn=Zt[0],nn=Zt[1];Lt[rn]=at.default(nn)}}),Lt}function xt(Et,Ot,Lt){var Bt=0;function Zt(){if(!Ot){var rn=Et.responseType,nn="";rn!==""&&rn!=="text"||(nn=Et.responseText),nn&&(Bt=At(nn))}}if(function(rn){return!ut.default(rn,Tt)}(Lt))Zt();else try{Bt=ht.default(Et.getResponseHeader("Content-Length"))}catch{Zt()}return Bt===0&&Zt(),Bt}_.FetchRequest=ct;var wt=document.createElement("a");function Mt(Et){return wt.href=Et,wt.protocol+"//"+wt.host+wt.pathname+wt.search+wt.hash}function kt(Et){var Ot=rt.default(Et.split("/"));return Ot.indexOf("?")>-1&&(Ot=at.default(Ot.split("?")[0])),Ot===""&&(Ot=new nt.default(Et).hostname),Ot}function _t(Et){if(!Et)return{type:"unknown",subType:"unknown"};var Ot=Et.split(";")[0].split("/");return{type:Ot[0],subType:rt.default(Ot)}}_.fullUrl=Mt;var Tt=window.location.origin;function At(Et){var Ot=encodeURIComponent(Et).match(/%[89ABab]/g);return Et.length+(Ot?Ot.length:0)}},316:function(b,_,d){var k,j=this&&this.__extends||(k=function(ct,gt){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Ct){st.__proto__=Ct}||function(st,Ct){for(var xt in Ct)Ct.hasOwnProperty(xt)&&(st[xt]=Ct[xt])},k(ct,gt)},function(ct,gt){function st(){this.constructor=ct}k(ct,gt),ct.prototype=gt===null?Object.create(gt):(st.prototype=gt.prototype,new st)}),$=this&&this.__awaiter||function(ct,gt,st,Ct){return new(st||(st=Promise))(function(xt,wt){function Mt(Tt){try{_t(Ct.next(Tt))}catch(At){wt(At)}}function kt(Tt){try{_t(Ct.throw(Tt))}catch(At){wt(At)}}function _t(Tt){var At;Tt.done?xt(Tt.value):(At=Tt.value,At instanceof st?At:new st(function(Et){Et(At)})).then(Mt,kt)}_t((Ct=Ct.apply(ct,gt||[])).next())})},et=this&&this.__generator||function(ct,gt){var st,Ct,xt,wt,Mt={label:0,sent:function(){if(1&xt[0])throw xt[1];return xt[1]},trys:[],ops:[]};return wt={next:kt(0),throw:kt(1),return:kt(2)},typeof Symbol=="function"&&(wt[Symbol.iterator]=function(){return this}),wt;function kt(_t){return function(Tt){return function(At){if(st)throw new TypeError("Generator is already executing.");for(;Mt;)try{if(st=1,Ct&&(xt=2&At[0]?Ct.return:At[0]?Ct.throw||((xt=Ct.return)&&xt.call(Ct),0):Ct.next)&&!(xt=xt.call(Ct,At[1])).done)return xt;switch(Ct=0,xt&&(At=[2&At[0],xt.value]),At[0]){case 0:case 1:xt=At;break;case 4:return Mt.label++,{value:At[1],done:!1};case 5:Mt.label++,Ct=At[1],At=[0];continue;case 7:At=Mt.ops.pop(),Mt.trys.pop();continue;default:if(xt=Mt.trys,!((xt=xt.length>0&&xt[xt.length-1])||At[0]!==6&&At[0]!==2)){Mt=0;continue}if(At[0]===3&&(!xt||At[1]>xt[0]&&At[1]ut;)if((at=it[ut++])!=at)return!0}else for(;dt>ut;ut++)if((tt||ut in it)&&it[ut]===nt)return tt||ut||0;return!tt&&-1}};b.exports={includes:et(!0),indexOf:et(!1)}},1589:function(b,_,d){var k=d(1400),j=d(6244),$=d(6135),et=Array,tt=Math.max;b.exports=function(rt,nt,ot){for(var at=j(rt),it=k(nt,at),dt=k(ot===void 0?at:ot,at),ut=et(tt(dt-it,0)),ht=0;it1?arguments[1]:void 0);At=At?At.next:Et.first;)for(Ot(At.value,At.key,this);At&&At.removed;)At=At.previous},has:function(Tt){return!!_t(this,Tt)}}),$(wt,st?{get:function(Tt){var At=_t(this,Tt);return At&&At.value},set:function(Tt,At){return kt(this,Tt===0?0:Tt,At)}}:{add:function(Tt){return kt(this,Tt=Tt===0?0:Tt,Tt)}}),dt&&j(wt,"size",{configurable:!0,get:function(){return Mt(this).size}}),xt},setStrong:function(ct,gt,st){var Ct=gt+" Iterator",xt=lt(gt),wt=lt(Ct);ot(ct,gt,function(Mt,kt){ft(this,{type:Ct,target:Mt,state:xt(Mt),kind:kt,last:void 0})},function(){for(var Mt=wt(this),kt=Mt.kind,_t=Mt.last;_t&&_t.removed;)_t=_t.previous;return Mt.target&&(Mt.last=_t=_t?_t.next:Mt.state.first)?at(kt=="keys"?_t.key:kt=="values"?_t.value:[_t.key,_t.value],!1):(Mt.target=void 0,at(void 0,!0))},st?"entries":"values",!st,!0),it(gt)}}},7710:function(b,_,d){var k=d(2109),j=d(7854),$=d(1702),et=d(4705),tt=d(8052),rt=d(2423),nt=d(408),ot=d(5787),at=d(614),it=d(8554),dt=d(111),ut=d(7293),ht=d(7072),ft=d(8003),lt=d(9587);b.exports=function(ct,gt,st){var Ct=ct.indexOf("Map")!==-1,xt=ct.indexOf("Weak")!==-1,wt=Ct?"set":"add",Mt=j[ct],kt=Mt&&Mt.prototype,_t=Mt,Tt={},At=function(rn){var nn=$(kt[rn]);tt(kt,rn,rn=="add"?function(Qt){return nn(this,Qt===0?0:Qt),this}:rn=="delete"?function(Qt){return!(xt&&!dt(Qt))&&nn(this,Qt===0?0:Qt)}:rn=="get"?function(Qt){return xt&&!dt(Qt)?void 0:nn(this,Qt===0?0:Qt)}:rn=="has"?function(Qt){return!(xt&&!dt(Qt))&&nn(this,Qt===0?0:Qt)}:function(Qt,Vt){return nn(this,Qt===0?0:Qt,Vt),this})};if(et(ct,!at(Mt)||!(xt||kt.forEach&&!ut(function(){new Mt().entries().next()}))))_t=st.getConstructor(gt,ct,Ct,wt),rt.enable();else if(et(ct,!0)){var Et=new _t,Ot=Et[wt](xt?{}:-0,1)!=Et,Lt=ut(function(){Et.has(1)}),Bt=ht(function(rn){new Mt(rn)}),Zt=!xt&&ut(function(){for(var rn=new Mt,nn=5;nn--;)rn[wt](nn,nn);return!rn.has(-0)});Bt||((_t=gt(function(rn,nn){ot(rn,kt);var Qt=lt(new Mt,rn,_t);return it(nn)||nt(nn,Qt[wt],{that:Qt,AS_ENTRIES:Ct}),Qt})).prototype=kt,kt.constructor=_t),(Lt||Zt)&&(At("delete"),At("has"),Ct&&At("get")),(Zt||Ot)&&At(wt),xt&&kt.clear&&delete kt.clear}return Tt[ct]=_t,k({global:!0,constructor:!0,forced:_t!=Mt},Tt),ft(_t,ct),xt||st.setStrong(_t,ct,Ct),_t}},9920:function(b,_,d){var k=d(2597),j=d(3887),$=d(1236),et=d(3070);b.exports=function(tt,rt,nt){for(var ot=j(rt),at=et.f,it=$.f,dt=0;dt0&&k[0]<4?1:+(k[0]+k[1])),!j&&et&&(!(k=et.match(/Edge\/(\d+)/))||k[1]>=74)&&(k=et.match(/Chrome\/(\d+)/))&&(j=+k[1]),b.exports=j},748:function(b){b.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1060:function(b,_,d){var k=d(1702),j=Error,$=k("".replace),et=String(j("zxcasd").stack),tt=/\n\s*at [^:]*:[^\n]*/,rt=tt.test(et);b.exports=function(nt,ot){if(rt&&typeof nt=="string"&&!j.prepareStackTrace)for(;ot--;)nt=$(nt,tt,"");return nt}},5392:function(b,_,d){var k=d(8880),j=d(1060),$=d(2914),et=Error.captureStackTrace;b.exports=function(tt,rt,nt,ot){$&&(et?et(tt,rt):k(tt,"stack",j(nt,ot)))}},2914:function(b,_,d){var k=d(7293),j=d(9114);b.exports=!k(function(){var $=Error("a");return!("stack"in $)||(Object.defineProperty($,"stack",j(1,7)),$.stack!==7)})},2109:function(b,_,d){var k=d(7854),j=d(1236).f,$=d(8880),et=d(8052),tt=d(3072),rt=d(9920),nt=d(4705);b.exports=function(ot,at){var it,dt,ut,ht,ft,lt=ot.target,ct=ot.global,gt=ot.stat;if(it=ct?k:gt?k[lt]||tt(lt,{}):(k[lt]||{}).prototype)for(dt in at){if(ht=at[dt],ut=ot.dontCallGetSet?(ft=j(it,dt))&&ft.value:it[dt],!nt(ct?dt:lt+(gt?".":"#")+dt,ot.forced)&&ut!==void 0){if(typeof ht==typeof ut)continue;rt(ht,ut)}(ot.sham||ut&&ut.sham)&&$(ht,"sham",!0),et(it,dt,ht,ot)}}},7293:function(b){b.exports=function(_){try{return!!_()}catch{return!0}}},6677:function(b,_,d){var k=d(7293);b.exports=!k(function(){return Object.isExtensible(Object.preventExtensions({}))})},2104:function(b,_,d){var k=d(4374),j=Function.prototype,$=j.apply,et=j.call;b.exports=typeof Reflect=="object"&&Reflect.apply||(k?et.bind($):function(){return et.apply($,arguments)})},9974:function(b,_,d){var k=d(1470),j=d(9662),$=d(4374),et=k(k.bind);b.exports=function(tt,rt){return j(tt),rt===void 0?tt:$?et(tt,rt):function(){return tt.apply(rt,arguments)}}},4374:function(b,_,d){var k=d(7293);b.exports=!k(function(){var j=(function(){}).bind();return typeof j!="function"||j.hasOwnProperty("prototype")})},6916:function(b,_,d){var k=d(4374),j=Function.prototype.call;b.exports=k?j.bind(j):function(){return j.apply(j,arguments)}},6530:function(b,_,d){var k=d(9781),j=d(2597),$=Function.prototype,et=k&&Object.getOwnPropertyDescriptor,tt=j($,"name"),rt=tt&&(function(){}).name==="something",nt=tt&&(!k||k&&et($,"name").configurable);b.exports={EXISTS:tt,PROPER:rt,CONFIGURABLE:nt}},5668:function(b,_,d){var k=d(1702),j=d(9662);b.exports=function($,et,tt){try{return k(j(Object.getOwnPropertyDescriptor($,et)[tt]))}catch{}}},1470:function(b,_,d){var k=d(4326),j=d(1702);b.exports=function($){if(k($)==="Function")return j($)}},1702:function(b,_,d){var k=d(4374),j=Function.prototype,$=j.call,et=k&&j.bind.bind($,$);b.exports=k?et:function(tt){return function(){return $.apply(tt,arguments)}}},5005:function(b,_,d){var k=d(7854),j=d(614),$=function(et){return j(et)?et:void 0};b.exports=function(et,tt){return arguments.length<2?$(k[et]):k[et]&&k[et][tt]}},1246:function(b,_,d){var k=d(648),j=d(8173),$=d(8554),et=d(7497),tt=d(5112)("iterator");b.exports=function(rt){if(!$(rt))return j(rt,tt)||j(rt,"@@iterator")||et[k(rt)]}},4121:function(b,_,d){var k=d(6916),j=d(9662),$=d(9670),et=d(6330),tt=d(1246),rt=TypeError;b.exports=function(nt,ot){var at=arguments.length<2?tt(nt):ot;if(j(at))return $(k(at,nt));throw rt(et(nt)+" is not iterable")}},8173:function(b,_,d){var k=d(9662),j=d(8554);b.exports=function($,et){var tt=$[et];return j(tt)?void 0:k(tt)}},7854:function(b,_,d){var k=function(j){return j&&j.Math==Math&&j};b.exports=k(typeof globalThis=="object"&&globalThis)||k(typeof window=="object"&&window)||k(typeof self=="object"&&self)||k(typeof d.g=="object"&&d.g)||function(){return this}()||Function("return this")()},2597:function(b,_,d){var k=d(1702),j=d(7908),$=k({}.hasOwnProperty);b.exports=Object.hasOwn||function(et,tt){return $(j(et),tt)}},3501:function(b){b.exports={}},842:function(b){b.exports=function(_,d){try{arguments.length==1?console.error(_):console.error(_,d)}catch{}}},490:function(b,_,d){var k=d(5005);b.exports=k("document","documentElement")},4664:function(b,_,d){var k=d(9781),j=d(7293),$=d(317);b.exports=!k&&!j(function(){return Object.defineProperty($("div"),"a",{get:function(){return 7}}).a!=7})},8361:function(b,_,d){var k=d(1702),j=d(7293),$=d(4326),et=Object,tt=k("".split);b.exports=j(function(){return!et("z").propertyIsEnumerable(0)})?function(rt){return $(rt)=="String"?tt(rt,""):et(rt)}:et},9587:function(b,_,d){var k=d(614),j=d(111),$=d(7674);b.exports=function(et,tt,rt){var nt,ot;return $&&k(nt=tt.constructor)&&nt!==rt&&j(ot=nt.prototype)&&ot!==rt.prototype&&$(et,ot),et}},2788:function(b,_,d){var k=d(1702),j=d(614),$=d(5465),et=k(Function.toString);j($.inspectSource)||($.inspectSource=function(tt){return et(tt)}),b.exports=$.inspectSource},8340:function(b,_,d){var k=d(111),j=d(8880);b.exports=function($,et){k(et)&&"cause"in et&&j($,"cause",et.cause)}},2423:function(b,_,d){var k=d(2109),j=d(1702),$=d(3501),et=d(111),tt=d(2597),rt=d(3070).f,nt=d(8006),ot=d(1156),at=d(2050),it=d(9711),dt=d(6677),ut=!1,ht=it("meta"),ft=0,lt=function(gt){rt(gt,ht,{value:{objectID:"O"+ft++,weakData:{}}})},ct=b.exports={enable:function(){ct.enable=function(){},ut=!0;var gt=nt.f,st=j([].splice),Ct={};Ct[ht]=1,gt(Ct).length&&(nt.f=function(xt){for(var wt=gt(xt),Mt=0,kt=wt.length;MtCt;Ct++)if((wt=Zt(ft[Ct]))&&nt(ht,wt))return wt;return new ut(!1)}gt=ot(ft,st)}for(Mt=At?ft.next:gt.next;!(kt=j(Mt,gt)).done;){try{wt=Zt(kt.value)}catch(rn){it(gt,"throw",rn)}if(typeof wt=="object"&&wt&&nt(ht,wt))return wt}return new ut(!1)}},9212:function(b,_,d){var k=d(6916),j=d(9670),$=d(8173);b.exports=function(et,tt,rt){var nt,ot;j(et);try{if(!(nt=$(et,"return"))){if(tt==="throw")throw rt;return rt}nt=k(nt,et)}catch(at){ot=!0,nt=at}if(tt==="throw")throw rt;if(ot)throw nt;return j(nt),rt}},3061:function(b,_,d){var k=d(3383).IteratorPrototype,j=d(30),$=d(9114),et=d(8003),tt=d(7497),rt=function(){return this};b.exports=function(nt,ot,at,it){var dt=ot+" Iterator";return nt.prototype=j(k,{next:$(+!it,at)}),et(nt,dt,!1,!0),tt[dt]=rt,nt}},1656:function(b,_,d){var k=d(2109),j=d(6916),$=d(1913),et=d(6530),tt=d(614),rt=d(3061),nt=d(9518),ot=d(7674),at=d(8003),it=d(8880),dt=d(8052),ut=d(5112),ht=d(7497),ft=d(3383),lt=et.PROPER,ct=et.CONFIGURABLE,gt=ft.IteratorPrototype,st=ft.BUGGY_SAFARI_ITERATORS,Ct=ut("iterator"),xt="keys",wt="values",Mt="entries",kt=function(){return this};b.exports=function(_t,Tt,At,Et,Ot,Lt,Bt){rt(At,Tt,Et);var Zt,rn,nn,Qt=function(Yn){if(Yn===Ot&&_n)return _n;if(!st&&Yn in In)return In[Yn];switch(Yn){case xt:case wt:case Mt:return function(){return new At(this,Yn)}}return function(){return new At(this)}},Vt=Tt+" Iterator",fn=!1,In=_t.prototype,On=In[Ct]||In["@@iterator"]||Ot&&In[Ot],_n=!st&&On||Qt(Ot),Bn=Tt=="Array"&&In.entries||On;if(Bn&&(Zt=nt(Bn.call(new _t)))!==Object.prototype&&Zt.next&&($||nt(Zt)===gt||(ot?ot(Zt,gt):tt(Zt[Ct])||dt(Zt,Ct,kt)),at(Zt,Vt,!0,!0),$&&(ht[Vt]=kt)),lt&&Ot==wt&&On&&On.name!==wt&&(!$&&ct?it(In,"name",wt):(fn=!0,_n=function(){return j(On,this)})),Ot)if(rn={values:Qt(wt),keys:Lt?_n:Qt(xt),entries:Qt(Mt)},Bt)for(nn in rn)(st||fn||!(nn in In))&&dt(In,nn,rn[nn]);else k({target:Tt,proto:!0,forced:st||fn},rn);return $&&!Bt||In[Ct]===_n||dt(In,Ct,_n,{name:Ot}),ht[Tt]=_n,rn}},3383:function(b,_,d){var k,j,$,et=d(7293),tt=d(614),rt=d(111),nt=d(30),ot=d(9518),at=d(8052),it=d(5112),dt=d(1913),ut=it("iterator"),ht=!1;[].keys&&("next"in($=[].keys())?(j=ot(ot($)))!==Object.prototype&&(k=j):ht=!0),!rt(k)||et(function(){var ft={};return k[ut].call(ft)!==ft})?k={}:dt&&(k=nt(k)),tt(k[ut])||at(k,ut,function(){return this}),b.exports={IteratorPrototype:k,BUGGY_SAFARI_ITERATORS:ht}},7497:function(b){b.exports={}},6244:function(b,_,d){var k=d(7466);b.exports=function(j){return k(j.length)}},6339:function(b,_,d){var k=d(1702),j=d(7293),$=d(614),et=d(2597),tt=d(9781),rt=d(6530).CONFIGURABLE,nt=d(2788),ot=d(9909),at=ot.enforce,it=ot.get,dt=String,ut=Object.defineProperty,ht=k("".slice),ft=k("".replace),lt=k([].join),ct=tt&&!j(function(){return ut(function(){},"length",{value:8}).length!==8}),gt=String(String).split("String"),st=b.exports=function(Ct,xt,wt){ht(dt(xt),0,7)==="Symbol("&&(xt="["+ft(dt(xt),/^Symbol\(([^)]*)\)/,"$1")+"]"),wt&&wt.getter&&(xt="get "+xt),wt&&wt.setter&&(xt="set "+xt),(!et(Ct,"name")||rt&&Ct.name!==xt)&&(tt?ut(Ct,"name",{value:xt,configurable:!0}):Ct.name=xt),ct&&wt&&et(wt,"arity")&&Ct.length!==wt.arity&&ut(Ct,"length",{value:wt.arity});try{wt&&et(wt,"constructor")&&wt.constructor?tt&&ut(Ct,"prototype",{writable:!1}):Ct.prototype&&(Ct.prototype=void 0)}catch{}var Mt=at(Ct);return et(Mt,"source")||(Mt.source=lt(gt,typeof xt=="string"?xt:"")),Ct};Function.prototype.toString=st(function(){return $(this)&&it(this).source||nt(this)},"toString")},4758:function(b){var _=Math.ceil,d=Math.floor;b.exports=Math.trunc||function(k){var j=+k;return(j>0?d:_)(j)}},5948:function(b,_,d){var k,j,$,et,tt,rt=d(7854),nt=d(9974),ot=d(1236).f,at=d(261).set,it=d(8572),dt=d(6833),ut=d(1528),ht=d(1036),ft=d(5268),lt=rt.MutationObserver||rt.WebKitMutationObserver,ct=rt.document,gt=rt.process,st=rt.Promise,Ct=ot(rt,"queueMicrotask"),xt=Ct&&Ct.value;if(!xt){var wt=new it,Mt=function(){var kt,_t;for(ft&&(kt=gt.domain)&&kt.exit();_t=wt.get();)try{_t()}catch(Tt){throw wt.head&&k(),Tt}kt&&kt.enter()};dt||ft||ht||!lt||!ct?!ut&&st&&st.resolve?((et=st.resolve(void 0)).constructor=st,tt=nt(et.then,et),k=function(){tt(Mt)}):ft?k=function(){gt.nextTick(Mt)}:(at=nt(at,rt),k=function(){at(Mt)}):(j=!0,$=ct.createTextNode(""),new lt(Mt).observe($,{characterData:!0}),k=function(){$.data=j=!j}),xt=function(kt){wt.head||k(),wt.add(kt)}}b.exports=xt},8523:function(b,_,d){var k=d(9662),j=TypeError,$=function(et){var tt,rt;this.promise=new et(function(nt,ot){if(tt!==void 0||rt!==void 0)throw j("Bad Promise constructor");tt=nt,rt=ot}),this.resolve=k(tt),this.reject=k(rt)};b.exports.f=function(et){return new $(et)}},6277:function(b,_,d){var k=d(1340);b.exports=function(j,$){return j===void 0?arguments.length<2?"":$:k(j)}},30:function(b,_,d){var k,j=d(9670),$=d(6048),et=d(748),tt=d(3501),rt=d(490),nt=d(317),ot=d(6200),at="prototype",it="script",dt=ot("IE_PROTO"),ut=function(){},ht=function(ct){return"<"+it+">"+ct+""},ft=function(ct){ct.write(ht("")),ct.close();var gt=ct.parentWindow.Object;return ct=null,gt},lt=function(){try{k=new ActiveXObject("htmlfile")}catch{}var ct,gt,st;lt=typeof document<"u"?document.domain&&k?ft(k):(gt=nt("iframe"),st="java"+it+":",gt.style.display="none",rt.appendChild(gt),gt.src=String(st),(ct=gt.contentWindow.document).open(),ct.write(ht("document.F=Object")),ct.close(),ct.F):ft(k);for(var Ct=et.length;Ct--;)delete lt[at][et[Ct]];return lt()};tt[dt]=!0,b.exports=Object.create||function(ct,gt){var st;return ct!==null?(ut[at]=j(ct),st=new ut,ut[at]=null,st[dt]=ct):st=lt(),gt===void 0?st:$.f(st,gt)}},6048:function(b,_,d){var k=d(9781),j=d(3353),$=d(3070),et=d(9670),tt=d(5656),rt=d(1956);_.f=k&&!j?Object.defineProperties:function(nt,ot){et(nt);for(var at,it=tt(ot),dt=rt(ot),ut=dt.length,ht=0;ut>ht;)$.f(nt,at=dt[ht++],it[at]);return nt}},3070:function(b,_,d){var k=d(9781),j=d(4664),$=d(3353),et=d(9670),tt=d(4948),rt=TypeError,nt=Object.defineProperty,ot=Object.getOwnPropertyDescriptor,at="enumerable",it="configurable",dt="writable";_.f=k?$?function(ut,ht,ft){if(et(ut),ht=tt(ht),et(ft),typeof ut=="function"&&ht==="prototype"&&"value"in ft&&dt in ft&&!ft[dt]){var lt=ot(ut,ht);lt&<[dt]&&(ut[ht]=ft.value,ft={configurable:it in ft?ft[it]:lt[it],enumerable:at in ft?ft[at]:lt[at],writable:!1})}return nt(ut,ht,ft)}:nt:function(ut,ht,ft){if(et(ut),ht=tt(ht),et(ft),j)try{return nt(ut,ht,ft)}catch{}if("get"in ft||"set"in ft)throw rt("Accessors not supported");return"value"in ft&&(ut[ht]=ft.value),ut}},1236:function(b,_,d){var k=d(9781),j=d(6916),$=d(5296),et=d(9114),tt=d(5656),rt=d(4948),nt=d(2597),ot=d(4664),at=Object.getOwnPropertyDescriptor;_.f=k?at:function(it,dt){if(it=tt(it),dt=rt(dt),ot)try{return at(it,dt)}catch{}if(nt(it,dt))return et(!j($.f,it,dt),it[dt])}},1156:function(b,_,d){var k=d(4326),j=d(5656),$=d(8006).f,et=d(1589),tt=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];b.exports.f=function(rt){return tt&&k(rt)=="Window"?function(nt){try{return $(nt)}catch{return et(tt)}}(rt):$(j(rt))}},8006:function(b,_,d){var k=d(6324),j=d(748).concat("length","prototype");_.f=Object.getOwnPropertyNames||function($){return k($,j)}},5181:function(b,_){_.f=Object.getOwnPropertySymbols},9518:function(b,_,d){var k=d(2597),j=d(614),$=d(7908),et=d(6200),tt=d(8544),rt=et("IE_PROTO"),nt=Object,ot=nt.prototype;b.exports=tt?nt.getPrototypeOf:function(at){var it=$(at);if(k(it,rt))return it[rt];var dt=it.constructor;return j(dt)&&it instanceof dt?dt.prototype:it instanceof nt?ot:null}},2050:function(b,_,d){var k=d(7293),j=d(111),$=d(4326),et=d(7556),tt=Object.isExtensible,rt=k(function(){});b.exports=rt||et?function(nt){return!!j(nt)&&(!et||$(nt)!="ArrayBuffer")&&(!tt||tt(nt))}:tt},7976:function(b,_,d){var k=d(1702);b.exports=k({}.isPrototypeOf)},6324:function(b,_,d){var k=d(1702),j=d(2597),$=d(5656),et=d(1318).indexOf,tt=d(3501),rt=k([].push);b.exports=function(nt,ot){var at,it=$(nt),dt=0,ut=[];for(at in it)!j(tt,at)&&j(it,at)&&rt(ut,at);for(;ot.length>dt;)j(it,at=ot[dt++])&&(~et(ut,at)||rt(ut,at));return ut}},1956:function(b,_,d){var k=d(6324),j=d(748);b.exports=Object.keys||function($){return k($,j)}},5296:function(b,_){var d={}.propertyIsEnumerable,k=Object.getOwnPropertyDescriptor,j=k&&!d.call({1:2},1);_.f=j?function($){var et=k(this,$);return!!et&&et.enumerable}:d},7674:function(b,_,d){var k=d(5668),j=d(9670),$=d(6077);b.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var et,tt=!1,rt={};try{(et=k(Object.prototype,"__proto__","set"))(rt,[]),tt=rt instanceof Array}catch{}return function(nt,ot){return j(nt),$(ot),tt?et(nt,ot):nt.__proto__=ot,nt}}():void 0)},288:function(b,_,d){var k=d(1694),j=d(648);b.exports=k?{}.toString:function(){return"[object "+j(this)+"]"}},2140:function(b,_,d){var k=d(6916),j=d(614),$=d(111),et=TypeError;b.exports=function(tt,rt){var nt,ot;if(rt==="string"&&j(nt=tt.toString)&&!$(ot=k(nt,tt))||j(nt=tt.valueOf)&&!$(ot=k(nt,tt))||rt!=="string"&&j(nt=tt.toString)&&!$(ot=k(nt,tt)))return ot;throw et("Can't convert object to primitive value")}},3887:function(b,_,d){var k=d(5005),j=d(1702),$=d(8006),et=d(5181),tt=d(9670),rt=j([].concat);b.exports=k("Reflect","ownKeys")||function(nt){var ot=$.f(tt(nt)),at=et.f;return at?rt(ot,at(nt)):ot}},857:function(b,_,d){var k=d(7854);b.exports=k},2534:function(b){b.exports=function(_){try{return{error:!1,value:_()}}catch(d){return{error:!0,value:d}}}},3702:function(b,_,d){var k=d(7854),j=d(2492),$=d(614),et=d(4705),tt=d(2788),rt=d(5112),nt=d(7871),ot=d(3823),at=d(1913),it=d(7392),dt=j&&j.prototype,ut=rt("species"),ht=!1,ft=$(k.PromiseRejectionEvent),lt=et("Promise",function(){var ct=tt(j),gt=ct!==String(j);if(!gt&&it===66||at&&(!dt.catch||!dt.finally))return!0;if(!it||it<51||!/native code/.test(ct)){var st=new j(function(xt){xt(1)}),Ct=function(xt){xt(function(){},function(){})};if((st.constructor={})[ut]=Ct,!(ht=st.then(function(){})instanceof Ct))return!0}return!gt&&(nt||ot)&&!ft});b.exports={CONSTRUCTOR:lt,REJECTION_EVENT:ft,SUBCLASSING:ht}},2492:function(b,_,d){var k=d(7854);b.exports=k.Promise},9478:function(b,_,d){var k=d(9670),j=d(111),$=d(8523);b.exports=function(et,tt){if(k(et),j(tt)&&tt.constructor===et)return tt;var rt=$.f(et);return(0,rt.resolve)(tt),rt.promise}},612:function(b,_,d){var k=d(2492),j=d(7072),$=d(3702).CONSTRUCTOR;b.exports=$||!j(function(et){k.all(et).then(void 0,function(){})})},8572:function(b){var _=function(){this.head=null,this.tail=null};_.prototype={add:function(d){var k={item:d,next:null},j=this.tail;j?j.next=k:this.head=k,this.tail=k},get:function(){var d=this.head;if(d)return(this.head=d.next)===null&&(this.tail=null),d.item}},b.exports=_},4488:function(b,_,d){var k=d(8554),j=TypeError;b.exports=function($){if(k($))throw j("Can't call method on "+$);return $}},6340:function(b,_,d){var k=d(5005),j=d(7045),$=d(5112),et=d(9781),tt=$("species");b.exports=function(rt){var nt=k(rt);et&&nt&&!nt[tt]&&j(nt,tt,{configurable:!0,get:function(){return this}})}},8003:function(b,_,d){var k=d(3070).f,j=d(2597),$=d(5112)("toStringTag");b.exports=function(et,tt,rt){et&&!rt&&(et=et.prototype),et&&!j(et,$)&&k(et,$,{configurable:!0,value:tt})}},6200:function(b,_,d){var k=d(2309),j=d(9711),$=k("keys");b.exports=function(et){return $[et]||($[et]=j(et))}},5465:function(b,_,d){var k=d(7854),j=d(3072),$="__core-js_shared__",et=k[$]||j($,{});b.exports=et},2309:function(b,_,d){var k=d(1913),j=d(5465);(b.exports=function($,et){return j[$]||(j[$]=et!==void 0?et:{})})("versions",[]).push({version:"3.29.0",mode:k?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6707:function(b,_,d){var k=d(9670),j=d(9483),$=d(8554),et=d(5112)("species");b.exports=function(tt,rt){var nt,ot=k(tt).constructor;return ot===void 0||$(nt=k(ot)[et])?rt:j(nt)}},8710:function(b,_,d){var k=d(1702),j=d(9303),$=d(1340),et=d(4488),tt=k("".charAt),rt=k("".charCodeAt),nt=k("".slice),ot=function(at){return function(it,dt){var ut,ht,ft=$(et(it)),lt=j(dt),ct=ft.length;return lt<0||lt>=ct?at?"":void 0:(ut=rt(ft,lt))<55296||ut>56319||lt+1===ct||(ht=rt(ft,lt+1))<56320||ht>57343?at?tt(ft,lt):ut:at?nt(ft,lt,lt+2):ht-56320+(ut-55296<<10)+65536}};b.exports={codeAt:ot(!1),charAt:ot(!0)}},6293:function(b,_,d){var k=d(7392),j=d(7293);b.exports=!!Object.getOwnPropertySymbols&&!j(function(){var $=Symbol();return!String($)||!(Object($)instanceof Symbol)||!Symbol.sham&&k&&k<41})},261:function(b,_,d){var k,j,$,et,tt=d(7854),rt=d(2104),nt=d(9974),ot=d(614),at=d(2597),it=d(7293),dt=d(490),ut=d(206),ht=d(317),ft=d(8053),lt=d(6833),ct=d(5268),gt=tt.setImmediate,st=tt.clearImmediate,Ct=tt.process,xt=tt.Dispatch,wt=tt.Function,Mt=tt.MessageChannel,kt=tt.String,_t=0,Tt={},At="onreadystatechange";it(function(){k=tt.location});var Et=function(Zt){if(at(Tt,Zt)){var rn=Tt[Zt];delete Tt[Zt],rn()}},Ot=function(Zt){return function(){Et(Zt)}},Lt=function(Zt){Et(Zt.data)},Bt=function(Zt){tt.postMessage(kt(Zt),k.protocol+"//"+k.host)};gt&&st||(gt=function(Zt){ft(arguments.length,1);var rn=ot(Zt)?Zt:wt(Zt),nn=ut(arguments,1);return Tt[++_t]=function(){rt(rn,void 0,nn)},j(_t),_t},st=function(Zt){delete Tt[Zt]},ct?j=function(Zt){Ct.nextTick(Ot(Zt))}:xt&&xt.now?j=function(Zt){xt.now(Ot(Zt))}:Mt&&!lt?(et=($=new Mt).port2,$.port1.onmessage=Lt,j=nt(et.postMessage,et)):tt.addEventListener&&ot(tt.postMessage)&&!tt.importScripts&&k&&k.protocol!=="file:"&&!it(Bt)?(j=Bt,tt.addEventListener("message",Lt,!1)):j=At in ht("script")?function(Zt){dt.appendChild(ht("script"))[At]=function(){dt.removeChild(this),Et(Zt)}}:function(Zt){setTimeout(Ot(Zt),0)}),b.exports={set:gt,clear:st}},1400:function(b,_,d){var k=d(9303),j=Math.max,$=Math.min;b.exports=function(et,tt){var rt=k(et);return rt<0?j(rt+tt,0):$(rt,tt)}},5656:function(b,_,d){var k=d(8361),j=d(4488);b.exports=function($){return k(j($))}},9303:function(b,_,d){var k=d(4758);b.exports=function(j){var $=+j;return $!=$||$===0?0:k($)}},7466:function(b,_,d){var k=d(9303),j=Math.min;b.exports=function($){return $>0?j(k($),9007199254740991):0}},7908:function(b,_,d){var k=d(4488),j=Object;b.exports=function($){return j(k($))}},7593:function(b,_,d){var k=d(6916),j=d(111),$=d(2190),et=d(8173),tt=d(2140),rt=d(5112),nt=TypeError,ot=rt("toPrimitive");b.exports=function(at,it){if(!j(at)||$(at))return at;var dt,ut=et(at,ot);if(ut){if(it===void 0&&(it="default"),dt=k(ut,at,it),!j(dt)||$(dt))return dt;throw nt("Can't convert object to primitive value")}return it===void 0&&(it="number"),tt(at,it)}},4948:function(b,_,d){var k=d(7593),j=d(2190);b.exports=function($){var et=k($,"string");return j(et)?et:et+""}},1694:function(b,_,d){var k={};k[d(5112)("toStringTag")]="z",b.exports=String(k)==="[object z]"},1340:function(b,_,d){var k=d(648),j=String;b.exports=function($){if(k($)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return j($)}},6330:function(b){var _=String;b.exports=function(d){try{return _(d)}catch{return"Object"}}},9711:function(b,_,d){var k=d(1702),j=0,$=Math.random(),et=k(1 .toString);b.exports=function(tt){return"Symbol("+(tt===void 0?"":tt)+")_"+et(++j+$,36)}},3307:function(b,_,d){var k=d(6293);b.exports=k&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},3353:function(b,_,d){var k=d(9781),j=d(7293);b.exports=k&&j(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},8053:function(b){var _=TypeError;b.exports=function(d,k){if(d2&&at(xt,arguments[2]);var Mt=[];return dt(st,lt,{that:Mt}),nt(xt,"errors",Mt),xt};et?et(ct,ft):tt(ct,ft,{name:!0});var gt=ct.prototype=rt(ft.prototype,{constructor:ot(1,ct),message:ot(1,""),name:ot(1,"AggregateError")});k({global:!0,constructor:!0,arity:2},{AggregateError:ct})},9170:function(b,_,d){d(6967)},6992:function(b,_,d){var k=d(5656),j=d(1223),$=d(7497),et=d(9909),tt=d(3070).f,rt=d(1656),nt=d(6178),ot=d(1913),at=d(9781),it="Array Iterator",dt=et.set,ut=et.getterFor(it);b.exports=rt(Array,"Array",function(ft,lt){dt(this,{type:it,target:k(ft),index:0,kind:lt})},function(){var ft=ut(this),lt=ft.target,ct=ft.kind,gt=ft.index++;return!lt||gt>=lt.length?(ft.target=void 0,nt(void 0,!0)):nt(ct=="keys"?gt:ct=="values"?lt[gt]:[gt,lt[gt]],!1)},"values");var ht=$.Arguments=$.Array;if(j("keys"),j("values"),j("entries"),!ot&&at&&ht.name!=="values")try{tt(ht,"name",{value:"values"})}catch{}},9098:function(b,_,d){d(7710)("Map",function(k){return function(){return k(this,arguments.length?arguments[0]:void 0)}},d(5631))},1532:function(b,_,d){d(9098)},1539:function(b,_,d){var k=d(1694),j=d(8052),$=d(288);k||j(Object.prototype,"toString",$,{unsafe:!0})},7922:function(b,_,d){var k=d(2109),j=d(6916),$=d(9662),et=d(8523),tt=d(2534),rt=d(408);k({target:"Promise",stat:!0,forced:d(612)},{allSettled:function(nt){var ot=this,at=et.f(ot),it=at.resolve,dt=at.reject,ut=tt(function(){var ht=$(ot.resolve),ft=[],lt=0,ct=1;rt(nt,function(gt){var st=lt++,Ct=!1;ct++,j(ht,ot,gt).then(function(xt){Ct||(Ct=!0,ft[st]={status:"fulfilled",value:xt},--ct||it(ft))},function(xt){Ct||(Ct=!0,ft[st]={status:"rejected",reason:xt},--ct||it(ft))})}),--ct||it(ft)});return ut.error&&dt(ut.value),at.promise}})},821:function(b,_,d){var k=d(2109),j=d(6916),$=d(9662),et=d(8523),tt=d(2534),rt=d(408);k({target:"Promise",stat:!0,forced:d(612)},{all:function(nt){var ot=this,at=et.f(ot),it=at.resolve,dt=at.reject,ut=tt(function(){var ht=$(ot.resolve),ft=[],lt=0,ct=1;rt(nt,function(gt){var st=lt++,Ct=!1;ct++,j(ht,ot,gt).then(function(xt){Ct||(Ct=!0,ft[st]=xt,--ct||it(ft))},dt)}),--ct||it(ft)});return ut.error&&dt(ut.value),at.promise}})},4668:function(b,_,d){var k=d(2109),j=d(6916),$=d(9662),et=d(5005),tt=d(8523),rt=d(2534),nt=d(408),ot=d(612),at="No one promise resolved";k({target:"Promise",stat:!0,forced:ot},{any:function(it){var dt=this,ut=et("AggregateError"),ht=tt.f(dt),ft=ht.resolve,lt=ht.reject,ct=rt(function(){var gt=$(dt.resolve),st=[],Ct=0,xt=1,wt=!1;nt(it,function(Mt){var kt=Ct++,_t=!1;xt++,j(gt,dt,Mt).then(function(Tt){_t||wt||(wt=!0,ft(Tt))},function(Tt){_t||wt||(_t=!0,st[kt]=Tt,--xt||lt(new ut(st,at)))})}),--xt||lt(new ut(st,at))});return ct.error&<(ct.value),ht.promise}})},4164:function(b,_,d){var k=d(2109),j=d(1913),$=d(3702).CONSTRUCTOR,et=d(2492),tt=d(5005),rt=d(614),nt=d(8052),ot=et&&et.prototype;if(k({target:"Promise",proto:!0,forced:$,real:!0},{catch:function(it){return this.then(void 0,it)}}),!j&&rt(et)){var at=tt("Promise").prototype.catch;ot.catch!==at&&nt(ot,"catch",at,{unsafe:!0})}},3401:function(b,_,d){var k,j,$,et=d(2109),tt=d(1913),rt=d(5268),nt=d(7854),ot=d(6916),at=d(8052),it=d(7674),dt=d(8003),ut=d(6340),ht=d(9662),ft=d(614),lt=d(111),ct=d(5787),gt=d(6707),st=d(261).set,Ct=d(5948),xt=d(842),wt=d(2534),Mt=d(8572),kt=d(9909),_t=d(2492),Tt=d(3702),At=d(8523),Et="Promise",Ot=Tt.CONSTRUCTOR,Lt=Tt.REJECTION_EVENT,Bt=Tt.SUBCLASSING,Zt=kt.getterFor(Et),rn=kt.set,nn=_t&&_t.prototype,Qt=_t,Vt=nn,fn=nt.TypeError,In=nt.document,On=nt.process,_n=At.f,Bn=_n,Yn=!!(In&&In.createEvent&&nt.dispatchEvent),dn="unhandledrejection",An=function(Mn){var zn;return!(!lt(Mn)||!ft(zn=Mn.then))&&zn},mn=function(Mn,zn){var wn,Nn,Wn,Vn=zn.value,bn=zn.state==1,Yt=bn?Mn.ok:Mn.fail,bt=Mn.resolve,pt=Mn.reject,yt=Mn.domain;try{Yt?(bn||(zn.rejection===2&&gn(zn),zn.rejection=1),Yt===!0?wn=Vn:(yt&&yt.enter(),wn=Yt(Vn),yt&&(yt.exit(),Wn=!0)),wn===Mn.promise?pt(fn("Promise-chain cycle")):(Nn=An(wn))?ot(Nn,wn,bt,pt):bt(wn)):pt(Vn)}catch(Ut){yt&&!Wn&&yt.exit(),pt(Ut)}},jn=function(Mn,zn){Mn.notified||(Mn.notified=!0,Ct(function(){for(var wn,Nn=Mn.reactions;wn=Nn.get();)mn(wn,Mn);Mn.notified=!1,zn&&!Mn.rejection&&vn(Mn)}))},kn=function(Mn,zn,wn){var Nn,Wn;Yn?((Nn=In.createEvent("Event")).promise=zn,Nn.reason=wn,Nn.initEvent(Mn,!1,!0),nt.dispatchEvent(Nn)):Nn={promise:zn,reason:wn},!Lt&&(Wn=nt["on"+Mn])?Wn(Nn):Mn===dn&&xt("Unhandled promise rejection",wn)},vn=function(Mn){ot(st,nt,function(){var zn,wn=Mn.facade,Nn=Mn.value;if(En(Mn)&&(zn=wt(function(){rt?On.emit("unhandledRejection",Nn,wn):kn(dn,wn,Nn)}),Mn.rejection=rt||En(Mn)?2:1,zn.error))throw zn.value})},En=function(Mn){return Mn.rejection!==1&&!Mn.parent},gn=function(Mn){ot(st,nt,function(){var zn=Mn.facade;rt?On.emit("rejectionHandled",zn):kn("rejectionhandled",zn,Mn.value)})},Ln=function(Mn,zn,wn){return function(Nn){Mn(zn,Nn,wn)}},Fn=function(Mn,zn,wn){Mn.done||(Mn.done=!0,wn&&(Mn=wn),Mn.value=zn,Mn.state=2,jn(Mn,!0))},Un=function(Mn,zn,wn){if(!Mn.done){Mn.done=!0,wn&&(Mn=wn);try{if(Mn.facade===zn)throw fn("Promise can't be resolved itself");var Nn=An(zn);Nn?Ct(function(){var Wn={done:!1};try{ot(Nn,zn,Ln(Un,Wn,Mn),Ln(Fn,Wn,Mn))}catch(Vn){Fn(Wn,Vn,Mn)}}):(Mn.value=zn,Mn.state=1,jn(Mn,!1))}catch(Wn){Fn({done:!1},Wn,Mn)}}};if(Ot&&(Vt=(Qt=function(Mn){ct(this,Vt),ht(Mn),ot(k,this);var zn=Zt(this);try{Mn(Ln(Un,zn),Ln(Fn,zn))}catch(wn){Fn(zn,wn)}}).prototype,(k=function(Mn){rn(this,{type:Et,done:!1,notified:!1,parent:!1,reactions:new Mt,rejection:!1,state:0,value:void 0})}).prototype=at(Vt,"then",function(Mn,zn){var wn=Zt(this),Nn=_n(gt(this,Qt));return wn.parent=!0,Nn.ok=!ft(Mn)||Mn,Nn.fail=ft(zn)&&zn,Nn.domain=rt?On.domain:void 0,wn.state==0?wn.reactions.add(Nn):Ct(function(){mn(Nn,wn)}),Nn.promise}),j=function(){var Mn=new k,zn=Zt(Mn);this.promise=Mn,this.resolve=Ln(Un,zn),this.reject=Ln(Fn,zn)},At.f=_n=function(Mn){return Mn===Qt||Mn===void 0?new j(Mn):Bn(Mn)},!tt&&ft(_t)&&nn!==Object.prototype)){$=nn.then,Bt||at(nn,"then",function(Mn,zn){var wn=this;return new Qt(function(Nn,Wn){ot($,wn,Nn,Wn)}).then(Mn,zn)},{unsafe:!0});try{delete nn.constructor}catch{}it&&it(nn,Vt)}et({global:!0,constructor:!0,wrap:!0,forced:Ot},{Promise:Qt}),dt(Qt,Et,!1,!0),ut(Et)},7727:function(b,_,d){var k=d(2109),j=d(1913),$=d(2492),et=d(7293),tt=d(5005),rt=d(614),nt=d(6707),ot=d(9478),at=d(8052),it=$&&$.prototype;if(k({target:"Promise",proto:!0,real:!0,forced:!!$&&et(function(){it.finally.call({then:function(){}},function(){})})},{finally:function(ut){var ht=nt(this,tt("Promise")),ft=rt(ut);return this.then(ft?function(lt){return ot(ht,ut()).then(function(){return lt})}:ut,ft?function(lt){return ot(ht,ut()).then(function(){throw lt})}:ut)}}),!j&&rt($)){var dt=tt("Promise").prototype.finally;it.finally!==dt&&at(it,"finally",dt,{unsafe:!0})}},8674:function(b,_,d){d(3401),d(821),d(4164),d(6027),d(683),d(6294)},6027:function(b,_,d){var k=d(2109),j=d(6916),$=d(9662),et=d(8523),tt=d(2534),rt=d(408);k({target:"Promise",stat:!0,forced:d(612)},{race:function(nt){var ot=this,at=et.f(ot),it=at.reject,dt=tt(function(){var ut=$(ot.resolve);rt(nt,function(ht){j(ut,ot,ht).then(at.resolve,it)})});return dt.error&&it(dt.value),at.promise}})},683:function(b,_,d){var k=d(2109),j=d(6916),$=d(8523);k({target:"Promise",stat:!0,forced:d(3702).CONSTRUCTOR},{reject:function(et){var tt=$.f(this);return j(tt.reject,void 0,et),tt.promise}})},6294:function(b,_,d){var k=d(2109),j=d(5005),$=d(1913),et=d(2492),tt=d(3702).CONSTRUCTOR,rt=d(9478),nt=j("Promise"),ot=$&&!tt;k({target:"Promise",stat:!0,forced:$||tt},{resolve:function(at){return rt(ot&&this===nt?et:this,at)}})},8783:function(b,_,d){var k=d(8710).charAt,j=d(1340),$=d(9909),et=d(1656),tt=d(6178),rt="String Iterator",nt=$.set,ot=$.getterFor(rt);et(String,"String",function(at){nt(this,{type:rt,string:j(at),index:0})},function(){var at,it=ot(this),dt=it.string,ut=it.index;return ut>=dt.length?tt(void 0,!0):(at=k(dt,ut),it.index+=at.length,tt(at,!1))})},3948:function(b,_,d){var k=d(7854),j=d(8324),$=d(8509),et=d(6992),tt=d(8880),rt=d(5112),nt=rt("iterator"),ot=rt("toStringTag"),at=et.values,it=function(ut,ht){if(ut){if(ut[nt]!==at)try{tt(ut,nt,at)}catch{ut[nt]=at}if(ut[ot]||tt(ut,ot,ht),j[ht]){for(var ft in et)if(ut[ft]!==et[ft])try{tt(ut,ft,et[ft])}catch{ut[ft]=et[ft]}}}};for(var dt in j)it(k[dt]&&k[dt].prototype,dt);it($,"DOMTokenList")},1150:function(b,_,d){var k=d(7633);d(3948),b.exports=k},3191:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_console{padding-top:40px;padding-bottom:24px;width:100%;height:100%}#_console._js-input-hidden{padding-bottom:0}#_console ._control{position:absolute;width:100%;height:40px;left:0;top:0;cursor:default;font-size:0;background:var(--darker-background);color:var(--primary);line-height:20px;border-bottom:1px solid var(--border);padding:10px 10px 10px 35px}#_console ._control [class*=' _icon-'],#_console ._control [class^='_icon-']{display:inline-block;padding:10px;font-size:16px;position:absolute;top:0;cursor:pointer;transition:color .3s}#_console ._control [class*=' _icon-']._active,#_console ._control [class*=' _icon-']:active,#_console ._control [class^='_icon-']._active,#_console ._control [class^='_icon-']:active{color:var(--accent)}#_console ._control ._icon-clear{padding-right:0;left:0}#_console ._control ._icon-copy{right:0}#_console ._control ._icon-filter{right:23px}#_console ._control ._level{cursor:pointer;font-size:12px;height:20px;display:inline-block;margin:0 2px;padding:0 4px;line-height:20px;transition:background-color .3s,color .3s}#_console ._control ._level._active{background:var(--highlight);color:var(--select-foreground)}#_console ._control ._filter-text{white-space:nowrap;position:absolute;line-height:20px;max-width:80px;overflow:hidden;right:55px;font-size:14px;text-overflow:ellipsis}#_console ._js-input{pointer-events:none;position:absolute;z-index:100;left:0;bottom:0;width:100%;border-top:1px solid var(--border);height:24px}#_console ._js-input ._icon-arrow-right{line-height:23px;color:var(--accent);position:absolute;left:10px;top:0;z-index:10}#_console ._js-input._active{height:100%;padding-top:40px;padding-bottom:40px;border-top:none}#_console ._js-input._active ._icon-arrow-right{display:none}#_console ._js-input._active textarea{overflow:auto;padding-left:10px}#_console ._js-input ._buttons{display:none;position:absolute;left:0;bottom:0;width:100%;height:40px;color:var(--primary);background:var(--darker-background);font-size:12px;border-top:1px solid var(--border)}#_console ._js-input ._buttons ._button{pointer-events:all;cursor:pointer;flex:1;text-align:center;border-right:1px solid var(--border);height:40px;line-height:40px;transition:background-color .3s,color .3s}#_console ._js-input ._buttons ._button:last-child{border-right:none}#_console ._js-input ._buttons ._button:active{color:var(--select-foreground);background:var(--highlight)}#_console ._js-input textarea{overflow:hidden;pointer-events:all;padding:3px 10px;padding-left:25px;outline:0;border:none;font-size:14px;width:100%;height:100%;-webkit-user-select:text;user-select:text;resize:none;color:var(--primary);background:var(--background)}._safe-area #_console{padding-bottom:calc(24px + env(safe-area-inset-bottom))}._safe-area #_console._js-input-hidden{padding-bottom:0}._safe-area #_console ._js-input{height:calc(24px + env(safe-area-inset-bottom))}._safe-area #_console ._js-input._active{height:100%;padding-bottom:calc(40px + env(safe-area-inset-bottom))}._safe-area #_console ._js-input ._buttons{height:calc(40px + env(safe-area-inset-bottom))}._safe-area #_console ._js-input ._buttons ._button{height:calc(40px + env(safe-area-inset-bottom))}",""]),b.exports=_},13:function(b,_,d){(_=d(3645)(!1)).push([b.id,"._dev-tools{position:absolute;width:100%;height:100%;left:0;bottom:0;background:var(--background);z-index:500;display:none;padding-top:40px!important;opacity:0;transition:opacity .3s;border-top:1px solid var(--border)}._dev-tools ._resizer{position:absolute;width:100%;left:0;top:-8px;cursor:row-resize;z-index:120}._dev-tools ._tools{overflow:auto;-webkit-overflow-scrolling:touch;height:100%;width:100%;position:relative}._dev-tools ._tools ._tool{position:absolute;width:100%;height:100%;left:0;top:0;overflow:hidden;display:none}",""]),b.exports=_},5896:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_elements ._elements{position:absolute;width:100%;height:100%;left:0;top:0;padding-top:40px;padding-bottom:24px;font-size:14px}#_elements ._control{position:absolute;width:100%;height:40px;left:0;top:0;cursor:default;font-size:0;background:var(--darker-background);color:var(--primary);line-height:20px;border-bottom:1px solid var(--border);padding:10px 0}#_elements ._control [class*=' _icon-'],#_elements ._control [class^='_icon-']{display:inline-block;padding:10px;font-size:16px;position:absolute;top:0;cursor:pointer;transition:color .3s}#_elements ._control [class*=' _icon-']._active,#_elements ._control [class*=' _icon-']:active,#_elements ._control [class^='_icon-']._active,#_elements ._control [class^='_icon-']:active{color:var(--accent)}#_elements ._control ._icon-eye{right:0}#_elements ._control ._icon-copy{right:23px}#_elements ._control ._icon-delete{right:46px}#_elements ._dom-viewer-container{overflow-y:auto;-webkit-overflow-scrolling:touch;height:100%;padding:5px 0}#_elements ._crumbs{position:absolute;width:100%;height:24px;left:0;top:0;top:initial;line-height:24px;bottom:0;border-top:1px solid var(--border);background:var(--darker-background);color:var(--primary);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#_elements ._crumbs li{cursor:pointer;padding:0 7px;display:inline-block}#_elements ._crumbs li:hover,#_elements ._crumbs li:last-child{background:var(--highlight)}#_elements ._crumbs ._icon-arrow-right{font-size:12px;position:relative;top:1px}#_elements ._detail{position:absolute;width:100%;height:100%;left:0;top:0;z-index:10;padding-top:40px;display:none;background:var(--background)}#_elements ._detail ._control{padding:10px 35px}#_elements ._detail ._control ._element-name{font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%;display:inline-block}#_elements ._detail ._control ._icon-arrow-left{left:0}#_elements ._detail ._control ._icon-refresh{right:0}#_elements ._detail ._element{overflow-y:auto;-webkit-overflow-scrolling:touch;height:100%}#_elements ._section{border-bottom:1px solid var(--border);color:var(--foreground);margin:10px 0}#_elements ._section h2{color:var(--primary);background:var(--darker-background);border-top:1px solid var(--border);padding:10px;line-height:18px;font-size:14px;transition:background-color .3s}#_elements ._section h2 ._btn{margin-left:5px;float:right;color:var(--primary);width:18px;height:18px;font-size:16px;cursor:pointer;transition:color .3s}#_elements ._section h2 ._btn._filter-text{width:auto;max-width:80px;font-size:14px;overflow:hidden;font-weight:400;text-overflow:ellipsis;display:inline-block}#_elements ._section h2 ._btn:active{color:var(--accent)}#_elements ._section h2 ._btn._btn-disabled{color:inherit!important;cursor:default!important;pointer-events:none;opacity:.5}#_elements ._section h2 ._btn._btn-disabled *{pointer-events:none}#_elements ._section h2._active-effect{cursor:pointer}#_elements ._section h2._active-effect:active{background:var(--highlight);color:var(--select-foreground)}#_elements ._attributes{font-size:12px}#_elements ._attributes a{color:var(--link-color)}#_elements ._attributes ._table-wrapper{overflow-x:auto;-webkit-overflow-scrolling:touch}#_elements ._attributes table td{padding:5px 10px}#_elements ._text-content{background:#fff}#_elements ._text-content ._content{overflow-x:auto;-webkit-overflow-scrolling:touch;padding:10px}#_elements ._style-color{position:relative;top:1px;width:10px;height:10px;border-radius:50%;margin-right:2px;border:1px solid var(--border);display:inline-block}#_elements ._box-model{overflow-x:auto;-webkit-overflow-scrolling:touch;padding:10px;text-align:center;border-bottom:1px solid var(--color)}#_elements ._computed-style{font-size:12px}#_elements ._computed-style a{color:var(--link-color)}#_elements ._computed-style ._table-wrapper{overflow-y:auto;-webkit-overflow-scrolling:touch;max-height:200px;border-top:1px solid var(--border)}#_elements ._computed-style table td{padding:5px 10px}#_elements ._computed-style table td._key{white-space:nowrap;color:var(--var-color)}#_elements ._styles{font-size:12px}#_elements ._styles ._style-wrapper{padding:10px}#_elements ._styles ._style-wrapper ._style-rules{border:1px solid var(--border);padding:10px;margin-bottom:10px}#_elements ._styles ._style-wrapper ._style-rules ._rule{padding-left:2em;word-break:break-all}#_elements ._styles ._style-wrapper ._style-rules ._rule a{color:var(--link-color)}#_elements ._styles ._style-wrapper ._style-rules ._rule span{color:var(--var-color)}#_elements ._styles ._style-wrapper ._style-rules:last-child{margin-bottom:0}#_elements ._listeners{font-size:12px}#_elements ._listeners ._listener-wrapper{padding:10px}#_elements ._listeners ._listener-wrapper ._listener{margin-bottom:10px;overflow:hidden;border:1px solid var(--border)}#_elements ._listeners ._listener-wrapper ._listener ._listener-type{padding:10px;background:var(--darker-background);color:var(--primary)}#_elements ._listeners ._listener-wrapper ._listener ._listener-content li{overflow-x:auto;-webkit-overflow-scrolling:touch;padding:10px;border-top:none}._safe-area #_elements ._elements{padding-bottom:calc(24px + env(safe-area-inset-bottom))}._safe-area #_elements ._crumbs{height:calc(24px + env(safe-area-inset-bottom))}._safe-area #_elements ._element{padding-bottom:calc(0px + env(safe-area-inset-bottom))}@media screen and (min-width:680px){#_elements ._elements{width:50%}#_elements ._elements ._control ._icon-eye{display:none}#_elements ._elements ._control ._icon-copy{right:0}#_elements ._elements ._control ._icon-delete{right:23px}#_elements ._detail{width:50%;left:initial;right:0;border-left:1px solid var(--border)}#_elements ._detail ._control{padding-left:10px}#_elements ._detail ._control ._icon-arrow-left{display:none}}",""]),b.exports=_},9195:function(b,_,d){(_=d(3645)(!1)).push([b.id,"._container ._entry-btn{touch-action:none;width:40px;height:40px;display:flex;background:#000;opacity:.3;border-radius:10px;position:relative;z-index:1000;transition:opacity .3s;color:#fff;font-size:25px;align-items:center;justify-content:center}._container ._entry-btn._active,._container ._entry-btn:active{opacity:.8}",""]),b.exports=_},879:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_info{overflow-y:auto;-webkit-overflow-scrolling:touch}#_info li{margin:10px;border:1px solid var(--border)}#_info li ._content,#_info li ._title{padding:10px}#_info li ._title{position:relative;padding-bottom:0;color:var(--accent)}#_info li ._title ._icon-copy{position:absolute;right:10px;top:14px;color:var(--primary);cursor:pointer;transition:color .3s}#_info li ._title ._icon-copy:active{color:var(--accent)}#_info li ._content{margin:0;-webkit-user-select:text;user-select:text;color:var(--foreground);font-size:12px;word-break:break-all}#_info li ._content table{width:100%;border-collapse:collapse}#_info li ._content table td,#_info li ._content table th{border:1px solid var(--border);padding:10px}#_info li ._content *{-webkit-user-select:text;user-select:text}#_info li ._content a{color:var(--link-color)}#_info li ._device-key,#_info li ._system-key{width:100px}._safe-area #_info{padding-bottom:calc(10px + env(safe-area-inset-bottom))}",""]),b.exports=_},3180:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_network ._network{position:absolute;width:100%;height:100%;left:0;top:0;padding-top:39px}#_network ._control{position:absolute;width:100%;height:40px;left:0;top:0;cursor:default;font-size:0;background:var(--darker-background);color:var(--primary);line-height:20px;border-bottom:1px solid var(--border);padding:10px;border-bottom:none}#_network ._control [class*=' _icon-'],#_network ._control [class^='_icon-']{display:inline-block;padding:10px;font-size:16px;position:absolute;top:0;cursor:pointer;transition:color .3s}#_network ._control [class*=' _icon-']._active,#_network ._control [class*=' _icon-']:active,#_network ._control [class^='_icon-']._active,#_network ._control [class^='_icon-']:active{color:var(--accent)}#_network ._control ._title{font-size:14px}#_network ._control ._icon-clear{left:23px}#_network ._control ._icon-eye{right:0}#_network ._control ._icon-copy{right:23px}#_network ._control ._icon-filter{right:46px}#_network ._control ._filter-text{white-space:nowrap;position:absolute;line-height:20px;max-width:80px;overflow:hidden;right:88px;font-size:14px;text-overflow:ellipsis}#_network ._control ._icon-record{left:0}#_network ._control ._icon-record._recording{color:var(--console-error-foreground);text-shadow:0 0 4px var(--console-error-foreground)}#_network ._request-error{color:var(--console-error-foreground)}#_network .luna-data-grid:focus .luna-data-grid-data-container ._request-error.luna-data-grid-selected{background:var(--console-error-background)}#_network .luna-data-grid{border-left:none;border-right:none}#_network ._detail{position:absolute;width:100%;height:100%;left:0;top:0;z-index:10;display:none;padding-top:40px;background:var(--background)}#_network ._detail ._control{padding:10px 35px;border-bottom:1px solid var(--border)}#_network ._detail ._control ._url{font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%;display:inline-block}#_network ._detail ._control ._icon-arrow-left{left:0}#_network ._detail ._control ._icon-delete{left:0;display:none}#_network ._detail ._control ._icon-copy{right:0}#_network ._detail ._http{overflow-y:auto;-webkit-overflow-scrolling:touch;height:100%}#_network ._detail ._http ._section{border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin-top:10px;margin-bottom:10px}#_network ._detail ._http ._section h2{background:var(--darker-background);color:var(--primary);padding:10px;line-height:18px;font-size:14px}#_network ._detail ._http ._section table{color:var(--foreground)}#_network ._detail ._http ._section table *{-webkit-user-select:text;user-select:text}#_network ._detail ._http ._section table td{font-size:12px;padding:5px 10px;word-break:break-all}#_network ._detail ._http ._section table ._key{white-space:nowrap;font-weight:700;color:var(--accent)}#_network ._detail ._http ._data,#_network ._detail ._http ._response{-webkit-user-select:text;user-select:text;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:10px;font-size:12px;margin:10px 0;white-space:pre-wrap;border-top:1px solid var(--border);color:var(--foreground);border-bottom:1px solid var(--border)}._safe-area #_network ._http{padding-bottom:calc(0px + env(safe-area-inset-bottom))}@media screen and (min-width:680px){#_network ._network ._control ._icon-eye{display:none}#_network ._network ._control ._icon-copy{right:0}#_network ._network ._control ._icon-filter{right:23px}#_network ._network ._control ._filter-text{right:55px}#_network ._detail{width:50%;left:initial;right:0;border-left:1px solid var(--border)}#_network ._detail ._control ._icon-arrow-left{display:none}#_network ._detail ._control ._icon-delete{display:block}}",""]),b.exports=_},2488:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_resources{overflow-y:auto;-webkit-overflow-scrolling:touch;padding:10px;font-size:14px}#_resources ._section{margin-bottom:10px;overflow:hidden;border:1px solid var(--border)}#_resources ._section._warn{border:1px solid var(--console-warn-border)}#_resources ._section._warn ._title{background:var(--console-warn-background);color:var(--console-warn-foreground)}#_resources ._section._danger{border:1px solid var(--console-error-border)}#_resources ._section._danger ._title{background:var(--console-error-background);color:var(--console-error-foreground)}#_resources ._section._cookie,#_resources ._section._local-storage,#_resources ._section._session-storage{border:none}#_resources ._section._cookie ._title,#_resources ._section._local-storage ._title,#_resources ._section._session-storage ._title{border:1px solid var(--border);border-bottom:none}#_resources ._title{padding:10px;line-height:18px;color:var(--primary);background:var(--darker-background)}#_resources ._title ._btn{margin-left:5px;float:right;color:var(--primary);width:18px;height:18px;font-size:16px;cursor:pointer;transition:color .3s}#_resources ._title ._btn._filter-text{width:auto;max-width:80px;font-size:14px;overflow:hidden;font-weight:400;text-overflow:ellipsis;display:inline-block}#_resources ._title ._btn:active{color:var(--accent)}#_resources ._title ._btn._btn-disabled{color:inherit!important;cursor:default!important;pointer-events:none;opacity:.5}#_resources ._title ._btn._btn-disabled *{pointer-events:none}#_resources ._link-list{font-size:12px;color:var(--foreground)}#_resources ._link-list li{padding:10px;word-break:break-all}#_resources ._link-list li a{color:var(--link-color)!important}#_resources ._image-list{color:var(--foreground);font-size:12px;display:flex;flex-wrap:wrap;padding:10px!important}#_resources ._image-list:after{content:'';display:block;clear:both}#_resources ._image-list li{flex-grow:1;cursor:pointer;overflow-y:hidden}#_resources ._image-list li._image{height:100px;font-size:0}#_resources ._image-list li img{height:100px;min-width:100%;-o-object-fit:cover;object-fit:cover}._safe-area #_resources{padding-bottom:calc(10px + env(safe-area-inset-bottom))}",""]),b.exports=_},8011:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_settings{overflow-y:auto;-webkit-overflow-scrolling:touch}._safe-area #_settings{padding-bottom:calc(0px + env(safe-area-inset-bottom))}",""]),b.exports=_},5571:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_snippets{overflow-y:auto;-webkit-overflow-scrolling:touch;padding:10px}#_snippets ._section{margin-bottom:10px;border:1px solid var(--border);overflow:hidden;cursor:pointer}#_snippets ._section:active ._name{background:var(--highlight);color:var(--select-foreground)}#_snippets ._section ._name{padding:10px;line-height:18px;color:var(--primary);background:var(--darker-background);transition:background-color .3s}#_snippets ._section ._name ._btn{margin-left:10px;float:right;text-align:center;width:18px;height:18px;font-size:12px}#_snippets ._section ._description{font-size:12px;color:var(--foreground);padding:10px;transition:background-color .3s}._safe-area #_snippets{padding-bottom:calc(10px + env(safe-area-inset-bottom))}",""]),b.exports=_},7346:function(b,_,d){(_=d(3645)(!1)).push([b.id,"._search-highlight-block{display:inline}._search-highlight-block ._keyword{background:var(--console-warn-background);color:var(--console-warn-foreground)}",""]),b.exports=_},1344:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_sources{font-size:0;overflow-y:auto;-webkit-overflow-scrolling:touch;color:var(--foreground)}#_sources ._code-wrapper,#_sources ._raw-wrapper{overflow-x:auto;-webkit-overflow-scrolling:touch;width:100%;min-height:100%}#_sources ._code,#_sources ._raw{height:100%}#_sources ._code ._keyword,#_sources ._raw ._keyword{color:var(--keyword-color)}#_sources ._code ._comment,#_sources ._raw ._comment{color:var(--comment-color)}#_sources ._code ._number,#_sources ._raw ._number{color:var(--number-color)}#_sources ._code ._string,#_sources ._raw ._string{color:var(--string-color)}#_sources ._code ._operator,#_sources ._raw ._operator{color:var(--operator-color)}#_sources ._code[data-type=html] ._keyword,#_sources ._raw[data-type=html] ._keyword{color:var(--tag-name-color)}#_sources ._image{font-size:12px}#_sources ._image ._breadcrumb{background:var(--darker-background);color:var(--primary);-webkit-user-select:text;user-select:text;margin-bottom:10px;word-break:break-all;padding:10px;font-size:16px;min-height:40px;border-bottom:1px solid var(--border)}#_sources ._image ._img-container{text-align:center}#_sources ._image ._img-container img{max-width:100%}#_sources ._image ._img-info{text-align:center;margin:20px 0;color:var(--foreground)}#_sources ._json{padding:0 10px}#_sources ._json *{-webkit-user-select:text;user-select:text}#_sources iframe{width:100%;height:100%}",""]),b.exports=_},8020:function(b,_,d){(_=d(3645)(!1)).push([b.id,"._container a,._container abbr,._container acronym,._container address,._container applet,._container article,._container aside,._container audio,._container b,._container big,._container blockquote,._container canvas,._container caption,._container center,._container cite,._container code,._container dd,._container del,._container details,._container dfn,._container dl,._container dt,._container em,._container embed,._container fieldset,._container figcaption,._container figure,._container footer,._container form,._container h1,._container h2,._container h3,._container h4,._container h5,._container h6,._container header,._container hgroup,._container i,._container iframe,._container img,._container ins,._container kbd,._container label,._container legend,._container li,._container mark,._container menu,._container nav,._container object,._container ol,._container output,._container p,._container pre,._container q,._container ruby,._container s,._container samp,._container section,._container small,._container span,._container strike,._container strong,._container sub,._container summary,._container sup,._container table,._container tbody,._container td,._container tfoot,._container th,._container thead,._container time,._container tr,._container tt,._container u,._container ul,._container var,._container video{margin:0;padding:0;border:0;font-size:100%}._container article,._container aside,._container details,._container figcaption,._container figure,._container footer,._container header,._container hgroup,._container menu,._container nav,._container section{display:block}._container body{line-height:1}._container ol,._container ul{list-style:none}._container blockquote,._container q{quotes:none}._container blockquote:after,._container blockquote:before,._container q:after,._container q:before{content:'';content:none}._container table{border-collapse:collapse;border-spacing:0}",""]),b.exports=_},8516:function(b,_,d){(_=d(3645)(!1)).push([b.id,`.luna-console{background:var(--background)}.luna-console-header{color:var(--link-color);border-bottom-color:var(--border)}.luna-console-nesting-level{border-right-color:var(--border)}.luna-console-nesting-level::before{border-bottom-color:var(--border)}.luna-console-log-container.luna-console-selected .luna-console-log-item{background:var(--contrast)}.luna-console-log-container.luna-console-selected .luna-console-log-item:not(.luna-console-error):not(.luna-console-warn){border-color:var(--border)}.luna-console-log-item{border-bottom-color:var(--border);color:var(--foreground)}.luna-console-log-item a{color:var(--link-color)!important}.luna-console-log-item .luna-console-icon-container .luna-console-icon{color:var(--foreground)}.luna-console-log-item .luna-console-icon-container .luna-console-icon-error{color:#ef3842}.luna-console-log-item .luna-console-icon-container .luna-console-icon-warn{color:#e8a400}.luna-console-log-item .luna-console-count{color:var(--select-foreground);background:var(--highlight)}.luna-console-log-item.luna-console-warn{color:var(--console-warn-foreground);background:var(--console-warn-background);border-color:var(--console-warn-border)}.luna-console-log-item.luna-console-error{background:var(--console-error-background);color:var(--console-error-foreground);border-color:var(--console-error-border)}.luna-console-log-item.luna-console-error .luna-console-count{background:var(--console-error-foreground)}.luna-console-log-item .luna-console-code .luna-console-key{color:var(--var-color)}.luna-console-log-item .luna-console-code .luna-console-number{color:var(--number-color)}.luna-console-log-item .luna-console-code .luna-console-null{color:var(--operator-color)}.luna-console-log-item .luna-console-code .luna-console-string{color:var(--string-color)}.luna-console-log-item .luna-console-code .luna-console-boolean{color:var(--keyword-color)}.luna-console-log-item .luna-console-code .luna-console-special{color:var(--operator-color)}.luna-console-log-item .luna-console-code .luna-console-keyword{color:var(--keyword-color)}.luna-console-log-item .luna-console-code .luna-console-operator{color:var(--operator-color)}.luna-console-log-item .luna-console-code .luna-console-comment{color:var(--comment-color)}.luna-console-log-item .luna-console-log-content .luna-console-null,.luna-console-log-item .luna-console-log-content .luna-console-undefined{color:var(--operator-color)}.luna-console-log-item .luna-console-log-content .luna-console-number{color:var(--number-color)}.luna-console-log-item .luna-console-log-content .luna-console-boolean{color:var(--keyword-color)}.luna-console-log-item .luna-console-log-content .luna-console-regexp,.luna-console-log-item .luna-console-log-content .luna-console-symbol{color:var(--var-color)}.luna-console-preview .luna-console-key{color:var(--var-color)}.luna-console-preview .luna-console-number{color:var(--number-color)}.luna-console-preview .luna-console-null{color:var(--operator-color)}.luna-console-preview .luna-console-string{color:var(--string-color)}.luna-console-preview .luna-console-boolean{color:var(--keyword-color)}.luna-console-preview .luna-console-special{color:var(--operator-color)}.luna-console-preview .luna-console-keyword{color:var(--keyword-color)}.luna-console-preview .luna-console-operator{color:var(--operator-color)}.luna-console-preview .luna-console-comment{color:var(--comment-color)}.luna-object-viewer{color:var(--primary);font-size:12px!important}.luna-object-viewer-null{color:var(--operator-color)}.luna-object-viewer-regexp,.luna-object-viewer-string{color:var(--string-color)}.luna-object-viewer-number{color:var(--number-color)}.luna-object-viewer-boolean{color:var(--keyword-color)}.luna-object-viewer-special{color:var(--operator-color)}.luna-object-viewer-key,.luna-object-viewer-key-lighter{color:var(--var-color)}.luna-object-viewer-expanded:before{border-color:transparent;border-top-color:var(--foreground)}.luna-object-viewer-collapsed:before{border-top-color:transparent;border-left-color:var(--foreground)}.luna-notification{pointer-events:none!important;padding:10px;z-index:1000}.luna-notification-item{z-index:500;color:var(--foreground);background:var(--background);box-shadow:none;padding:5px 10px;border:1px solid var(--border)}.luna-notification-upper{margin-bottom:10px}.luna-notification-lower{margin-top:10px}.luna-data-grid{color:var(--foreground);background:var(--background);border-color:var(--border)}.luna-data-grid:focus .luna-data-grid-data-container .luna-data-grid-node.luna-data-grid-selected{background:var(--accent)}.luna-data-grid td,.luna-data-grid th{border-color:var(--border)}.luna-data-grid th{background:var(--darker-background)}.luna-data-grid th.luna-data-grid-sortable:active,.luna-data-grid th.luna-data-grid-sortable:hover{color:var(--select-foreground);background:var(--highlight)}.luna-data-grid .luna-data-grid-data-container .luna-data-grid-node.luna-data-grid-selected{background:var(--highlight)}.luna-data-grid .luna-data-grid-data-container tr:nth-child(even){background:var(--contrast)}.luna-dom-viewer{color:var(--foreground)}.luna-dom-viewer .luna-dom-viewer-html-tag,.luna-dom-viewer .luna-dom-viewer-tag-name{color:var(--tag-name-color)}.luna-dom-viewer .luna-dom-viewer-attribute-name{color:var(--attribute-name-color)}.luna-dom-viewer .luna-dom-viewer-attribute-value{color:var(--string-color)}.luna-dom-viewer .luna-dom-viewer-html-comment{color:var(--comment-color)}.luna-dom-viewer .luna-dom-viewer-tree-item:hover .luna-dom-viewer-selection{background:var(--contrast)}.luna-dom-viewer .luna-dom-viewer-tree-item.luna-dom-viewer-selected .luna-dom-viewer-selection{background:var(--highlight)}.luna-dom-viewer .luna-dom-viewer-tree-item.luna-dom-viewer-selected:focus .luna-dom-viewer-selection{background:var(--accent);opacity:.2}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-key{color:var(--var-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-number{color:var(--number-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-null{color:var(--operator-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-string{color:var(--string-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-boolean{color:var(--keyword-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-special{color:var(--operator-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-keyword{color:var(--keyword-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-operator{color:var(--operator-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-comment{color:var(--comment-color)}.luna-dom-viewer-children{margin:0;padding-left:15px!important}.luna-modal{z-index:9999999}.luna-modal-body,.luna-modal-input{color:var(--foreground);background:var(--background)}.luna-modal-input{-webkit-user-select:text!important;user-select:text!important;border-color:var(--border)}.luna-modal-button-group .luna-modal-secondary{border-color:var(--border);color:var(--foreground);background:var(--background)}.luna-modal-button-group .luna-modal-primary{background:var(--accent)}.luna-modal-button-group .luna-modal-button:active::before{background:var(--accent)}.luna-tab{position:absolute;left:0;top:0;color:var(--foreground);background:var(--darker-background)}.luna-tab-tabs-container{border-color:var(--border)}.luna-tab-item.luna-tab-selected,.luna-tab-item:hover{background:var(--highlight);color:var(--select-foreground)}.luna-tab-slider{background:var(--accent)}.luna-text-viewer{color:var(--foreground);border:none;border-bottom:1px solid var(--border);background:var(--background);font-size:12px}.luna-text-viewer .luna-text-viewer-line-text{-webkit-user-select:text;user-select:text}.luna-text-viewer .luna-text-viewer-line-text *{-webkit-user-select:text;user-select:text}.luna-text-viewer .luna-text-viewer-copy,.luna-text-viewer .luna-text-viewer-line-number{border-color:var(--border)}.luna-text-viewer .luna-text-viewer-copy .luna-text-viewer-icon-check{color:var(--accent)}.luna-text-viewer .luna-text-viewer-copy{background-color:var(--background)}.luna-setting{color:var(--foreground);background:var(--background)}.luna-setting-item.luna-setting-selected,.luna-setting-item:hover{background:var(--darker-background)}.luna-setting-item.luna-setting-selected:focus{outline:0}.luna-setting-item-title{font-size:14px}.luna-setting-item-separator{border-color:var(--border)}.luna-setting-item-checkbox input{border-color:var(--border)}.luna-setting-item-checkbox input:checked{background-color:var(--accent);border-color:var(--accent)}.luna-setting-item-select .luna-setting-select select{color:var(--foreground);border-color:var(--border);background:var(--background)}.luna-setting-item-select .luna-setting-select:after{border-top-color:var(--foreground)}.luna-setting-item-button button{color:var(--accent);background:var(--background);border-color:var(--border)}.luna-setting-item-button button:active,.luna-setting-item-button button:hover{background:var(--darker-background)}.luna-setting-item-button button:active{border:1px solid var(--accent)}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar{background:var(--border)}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar .luna-setting-range-track-progress{background:var(--accent)}.luna-setting-item-number .luna-setting-range-container input::-webkit-slider-thumb{border-color:var(--border);background:radial-gradient(circle at center,var(--dark) 0,var(--dark) 15%,var(--light) 22%,var(--light) 100%)}.luna-box-model{background:0 0}.luna-box-model-position{color:var(--foreground)}._container{min-width:320px;pointer-events:none;position:fixed;left:0;top:0;width:100%;height:100%;z-index:9999999;color:var(--foreground);font-family:".SFNSDisplay-Regular","Helvetica Neue","Lucida Grande","Segoe UI",Tahoma,sans-serif;font-size:14px;direction:ltr}._container._dark{color-scheme:dark}._container *{box-sizing:border-box;pointer-events:all;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:none}._container ul{list-style:none;padding:0;margin:0}._container h1,._container h2,._container h3,._container h4{margin:0}._container h2{font-size:14px}._container h2 [class*=' _icon-'],._container h2 [class^='_icon-']{font-weight:400}._hidden{display:none}._icon-disabled{opacity:.5;pointer-events:none;cursor:default!important}._icon-disabled:active{color:inherit!important}._tag-name-color{color:var(--tag-name-color)}._function-color{color:var(--function-color)}._attribute-name-color{color:var(--attribute-name-color)}._operator-color{color:var(--operator-color)}._string-color{color:var(--string-color)}`,""]),b.exports=_},8094:function(b,_,d){(_=d(3645)(!1)).push([b.id,".luna-box-model{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;display:inline-block;color:#222;font-size:12px;text-align:center;white-space:nowrap}.luna-box-model.luna-box-model-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-box-model.luna-box-model-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-box-model .luna-box-model-hidden,.luna-box-model.luna-box-model-hidden{display:none}.luna-box-model .luna-box-model-invisible,.luna-box-model.luna-box-model-invisible{visibility:hidden}.luna-box-model *{box-sizing:border-box}.luna-box-model.luna-box-model-theme-dark{color:#a5a5a5;background-color:#242424}.luna-box-model-label{position:absolute;margin-left:3px;padding:0 2px}.luna-box-model-bottom,.luna-box-model-left,.luna-box-model-right,.luna-box-model-top{display:inline-block}.luna-box-model-left,.luna-box-model-right{vertical-align:middle}.luna-box-model-border,.luna-box-model-content,.luna-box-model-margin,.luna-box-model-padding,.luna-box-model-position{position:relative;display:inline-block;text-align:center;vertical-align:middle;padding:3px;margin:3px}.luna-box-model-position{border:1px grey dotted}.luna-box-model-margin{color:#333;border:1px dashed;background:rgba(246,178,107,.66)}.luna-box-model-border{color:#333;border:1px #000 solid;background:rgba(255,229,153,.66)}.luna-box-model-padding{color:#333;border:1px grey dashed;background:rgba(147,196,125,.55)}.luna-box-model-content{color:#333;border:1px grey solid;min-width:100px;background:rgba(111,168,220,.66)}",""]),b.exports=_},9327:function(b,_,d){(_=d(3645)(!1)).push([b.id,"@font-face{font-family:luna-console-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAasAAsAAAAACnAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAI4AAADcIsYnIk9TLzIAAAGYAAAAPgAAAFZWmlGRY21hcAAAAdgAAAD2AAACyDioZ9NnbHlmAAAC0AAAAZgAAAH8Lq6nDGhlYWQAAARoAAAAMQAAADZ25cSzaGhlYQAABJwAAAAdAAAAJAgCBBRobXR4AAAEvAAAABkAAABYGAH//GxvY2EAAATYAAAAGAAAAC4J8glUbWF4cAAABPAAAAAfAAAAIAEjAFBuYW1lAAAFEAAAASkAAAIWm5e+CnBvc3QAAAY8AAAAcAAAAJ7qA/7MeJxNjTsOwjAQRJ8TJzE2hPBrKBBHQByAAiGqFBRcIBVCiqhyBA7O2AgRr9Y7M2+lxQCeAyeyy7W9U/fd8GKL5fsiH2vTPx8d7ufEbJpO/aagYc+RM7fEjBKnmiRuySmZUTNNf0wybYSRj9VoO4iU7NQh+Up8qelZs5EupP75Shfm2oz3Kmkvt/gARcgJKwAAeJxjYGQUZ5zAwMrAwNTJdIaBgaEfQjO+ZjBi5ACKMrAyM2AFAWmuKQwHGHQ/srGAuDEsTGBhRhABALQ1CMwAAHiczdJNbsIwEIbh1+QHQsJviNRFF1XX7aEQRZQNRQjEHXqgrnopn4B+E8+qqip117GeRB4nk4lloAAyeZIcwicBiw9lQ5/PGPf5nHfNV8yVyXlmzZY9R05cuMbydtOqZTfsOCh7Vjb02e8RVMXGHfc8aDxqwFKVF7QMtdLpmzUVDSOmTJjpnUH/3YJSBcofqv4Wyz8+b6FuWvXSjW1SV30r1sl/icYuofFZh+1+Yn+7dnPZuIW8uFa2big7t5JXZzX3znbh4Gp5c5UcnfVyciM5u6lc3ESuTnsZQ2JnLQ4S7J4ldjZjntj5jEVi5zaWCeUXWN4q9AAAeJxdUMFOU0EUnTMzb2o1FB5O5wENg31k5mExVEo7jSGBEuO6CStDmtbIBuiKBYg/gRu/ABO3/ocscOEXsHBpogtWvFfnvQgxJnduztx7zknuIXQyIYSDE9IgLwmBmIZI1pDYbTSxBqeW4KvrVKSmaaRKFZREE7YJIyONSLW6W37bLiRxscXNTH1zbnFqlnJ5Eu+G9MnT8JBy9l69ELx69Ohd9JCryrwcU07TbCU5H4y+jQbnyco/EF+8x1/eaX03bCzR8IgGwVn0WC/I8YOzaLGS+4+p4K8O/lcXkPhj/CP0ig1JQIhJyugCxz3o7LqH4YUH0L3swlMK3q+CV/HMbhkJAqlarm1jgd+97DpnfsKPeH15eT2+l9L5OJ/kcjZJfY6MU++wQPzI+PRECUJjo97aAtqupaqhFLHtRLHNf1Kwn9lAOid9L7tV9nzVldNL3dC+NmrGOGM+sme2VrO335Mda3foXlXravY57zemY23HkLs72RsW5JegDjZK99FnPPtwl8FX1i92IfAax6yfvkWf/AHb1F1JeJxjYGRgYABi3/mPYuP5bb4ycLOABKI4H+9rgNH//zIwsDCzMAElOBhAJAMAQ2IK+QAAAHicY2BkYGBhAAEWhv9///9lYWZgZEAFYgBbLQQgAAAAeJxjYGBgYGH4/58FTIPZf2FsSgAAM58EEwAAAHicY2AAgjyGJoYlDI8YPjD8ww8BeTMTR3icY2BkYGAQY3BhYGYAASYg5gJCBob/YD4DABGFAXQAeJxlkD1uwkAUhMdgSAJSghQpKbNVCiKZn5IDQE9Bl8KYtTGyvdZ6QaLLCXKEHCGniHKCHChj82hgLT9/M2/e7soABviFh3p5uG1qvVq4oTpxm/Qg7JOfhTvo40W4S38o3MMbpsJ9POKdO3j+HZ0BSuEW7vEh3Kb/KeyTv4Q7eMK3cJf+j3APK/wJ9/HqDdPIFLEp3FIn+yy0Z3n+rrStUlOoSTA+WwtdaBs6vVHro6oOydS5WMXW5GrOrs4yo0prdjpywda5cjYaxeIHkcmRIoJBgbipDktoJNgjQwh71b3UK6YtKvq1VpggwPgqtWCqaJIhlcaGyTWOrBUOPG1K1zGt+FrO5KS5zGreJCMr/u+6t6MT0Q+wbaZKzDDiE1/kg+YO+T89EV6oAAAAeJxtxksOgjAUQNF3kaIW/x9cBYtqgEAnLXlp0+1rwtQzuVcq2Vj5r6NiR42hYc+BI5aWE2cuXLlx58GTF286PmIm1ajGhzWnJub0S12cBjs4nVI/xhLabdXPS2JCiXgCK5lEwTHQMzKziHwBqnYYpg==') format('woff')}[class*=' luna-console-icon-'],[class^=luna-console-icon-]{display:inline-block;font-family:luna-console-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-console-icon-error:before{content:'\\f101'}.luna-console-icon-input:before{content:'\\f102'}.luna-console-icon-output:before{content:'\\f103'}.luna-console-icon-warn:before{content:'\\f104'}.luna-console-icon-caret-down:before{content:'\\f105'}.luna-console-icon-caret-right:before{content:'\\f106'}.luna-console{background:#fff;overflow-y:auto;-webkit-overflow-scrolling:touch;height:100%;position:relative;will-change:scroll-position;cursor:default;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.luna-console.luna-console-theme-dark{background-color:#242424}.luna-console-hidden{display:none}.luna-console-fake-logs{position:absolute;left:0;top:0;pointer-events:none;visibility:hidden;width:100%}.luna-console-logs{padding-top:1px;position:absolute;width:100%}.luna-console-log-container{box-sizing:content-box}.luna-console-log-container.luna-console-selected .luna-console-log-item{background:#ecf1f8}.luna-console-log-container.luna-console-selected .luna-console-log-item:not(.luna-console-error):not(.luna-console-warn){border-color:#ccdef5}.luna-console-header{white-space:nowrap;display:flex;font-size:11px;color:#545454;border-top:1px solid transparent;border-bottom:1px solid #ccc}.luna-console-header .luna-console-time-from-container{overflow-x:auto;-webkit-overflow-scrolling:touch;padding:3px 10px}.luna-console-nesting-level{width:14px;flex-shrink:0;margin-top:-1px;margin-bottom:-1px;position:relative;border-right:1px solid #ccc}.luna-console-nesting-level.luna-console-group-closed::before{content:''}.luna-console-nesting-level::before{border-bottom:1px solid #ccc;position:absolute;top:0;left:0;margin-left:100%;width:5px;height:100%;box-sizing:border-box}.luna-console-log-item{position:relative;display:flex;border-top:1px solid transparent;border-bottom:1px solid #ccc;margin-top:-1px;color:#333}.luna-console-log-item:after{content:'';display:block;clear:both}.luna-console-log-item .luna-console-code{display:inline;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.luna-console-log-item .luna-console-code .luna-console-keyword{color:#881280}.luna-console-log-item .luna-console-code .luna-console-number{color:#1c00cf}.luna-console-log-item .luna-console-code .luna-console-operator{color:grey}.luna-console-log-item .luna-console-code .luna-console-comment{color:#236e25}.luna-console-log-item .luna-console-code .luna-console-string{color:#1a1aa6}.luna-console-log-item a{color:#15c!important}.luna-console-log-item .luna-console-icon-container{margin:0 -6px 0 10px}.luna-console-log-item .luna-console-icon-container .luna-console-icon{line-height:20px;font-size:12px;color:#333;position:relative}.luna-console-log-item .luna-console-icon-container .luna-console-icon-caret-down,.luna-console-log-item .luna-console-icon-container .luna-console-icon-caret-right{top:0;left:-2px}.luna-console-log-item .luna-console-icon-container .luna-console-icon-error{top:0;color:#ef3842}.luna-console-log-item .luna-console-icon-container .luna-console-icon-warn{top:0;color:#e8a400}.luna-console-log-item .luna-console-count{background:#8097bd;color:#fff;padding:2px 4px;border-radius:10px;font-size:12px;float:left;margin:1px -6px 0 10px}.luna-console-log-item .luna-console-log-content-wrapper{flex:1;overflow:hidden}.luna-console-log-item .luna-console-log-content{padding:3px 0;margin:0 10px;overflow-x:auto;-webkit-overflow-scrolling:touch;white-space:pre-wrap;-webkit-user-select:text;user-select:text}.luna-console-log-item .luna-console-log-content *{-webkit-user-select:text;user-select:text}.luna-console-log-item .luna-console-log-content>*{vertical-align:top}.luna-console-log-item .luna-console-log-content .luna-console-null,.luna-console-log-item .luna-console-log-content .luna-console-undefined{color:#5e5e5e}.luna-console-log-item .luna-console-log-content .luna-console-number{color:#1c00cf}.luna-console-log-item .luna-console-log-content .luna-console-boolean{color:#0d22aa}.luna-console-log-item .luna-console-log-content .luna-console-regexp,.luna-console-log-item .luna-console-log-content .luna-console-symbol{color:#881391}.luna-console-log-item .luna-console-data-grid,.luna-console-log-item .luna-console-dom-viewer{white-space:initial}.luna-console-log-item.luna-console-error{z-index:50;background:#fff0f0;color:red;border-top:1px solid #ffd6d6;border-bottom:1px solid #ffd6d6}.luna-console-log-item.luna-console-error .luna-console-stack{padding-left:1.2em;white-space:nowrap}.luna-console-log-item.luna-console-error .luna-console-count{background:red}.luna-console-log-item.luna-console-debug{z-index:20}.luna-console-log-item.luna-console-input{border-bottom-color:transparent}.luna-console-log-item.luna-console-warn{z-index:40;color:#5c5c00;background:#fffbe5;border-top:1px solid #fff5c2;border-bottom:1px solid #fff5c2}.luna-console-log-item.luna-console-warn .luna-console-count{background:#e8a400}.luna-console-log-item.luna-console-info{z-index:30}.luna-console-log-item.luna-console-group,.luna-console-log-item.luna-console-groupCollapsed{font-weight:700}.luna-console-preview{display:inline-block}.luna-console-preview .luna-console-preview-container{display:flex;align-items:center}.luna-console-preview .luna-console-json{overflow-x:auto;-webkit-overflow-scrolling:touch;padding-left:12px}.luna-console-preview .luna-console-preview-icon-container{display:block}.luna-console-preview .luna-console-preview-icon-container .luna-console-icon{position:relative;font-size:12px}.luna-console-preview .luna-console-preview-icon-container .luna-console-icon-caret-down{top:2px}.luna-console-preview .luna-console-preview-icon-container .luna-console-icon-caret-right{top:1px}.luna-console-preview .luna-console-preview-content-container{word-break:break-all}.luna-console-preview .luna-console-descriptor,.luna-console-preview .luna-console-object-preview{font-style:italic}.luna-console-preview .luna-console-key{color:#881391}.luna-console-preview .luna-console-number{color:#1c00cf}.luna-console-preview .luna-console-null{color:#5e5e5e}.luna-console-preview .luna-console-string{color:#c41a16}.luna-console-preview .luna-console-boolean{color:#0d22aa}.luna-console-preview .luna-console-special{color:#5e5e5e}.luna-console-theme-dark{color-scheme:dark}.luna-console-theme-dark .luna-console-log-container.luna-console-selected .luna-console-log-item{background:#29323d}.luna-console-theme-dark .luna-console-log-container.luna-console-selected .luna-console-log-item:not(.luna-console-error):not(.luna-console-warn){border-color:#4173b4}.luna-console-theme-dark .luna-console-log-item{color:#a5a5a5;border-bottom-color:#3d3d3d}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-keyword{color:#e36eec}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-number{color:#9980ff}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-operator{color:#7f7f7f}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-comment{color:#747474}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-string{color:#f29766}.luna-console-theme-dark .luna-console-log-item.luna-console-error{background:#290000;color:#ff8080;border-top-color:#5c0000;border-bottom-color:#5c0000}.luna-console-theme-dark .luna-console-log-item.luna-console-error .luna-console-count{background:#ff8080}.luna-console-theme-dark .luna-console-log-item.luna-console-warn{color:#ffcb6b;background:#332a00;border-top-color:#650;border-bottom-color:#650}.luna-console-theme-dark .luna-console-log-item .luna-console-count{background:#42597f;color:#949494}.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-null,.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-undefined{color:#7f7f7f}.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-boolean,.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-number{color:#9980ff}.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-regexp,.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-symbol{color:#e36eec}.luna-console-theme-dark .luna-console-icon-container .luna-console-icon-caret-down,.luna-console-theme-dark .luna-console-icon-container .luna-console-icon-caret-right{color:#9aa0a6}.luna-console-theme-dark .luna-console-header{border-bottom-color:#3d3d3d}.luna-console-theme-dark .luna-console-nesting-level{border-right-color:#3d3d3d}.luna-console-theme-dark .luna-console-nesting-level::before{border-bottom-color:#3d3d3d}.luna-console-theme-dark .luna-console-preview .luna-console-key{color:#e36eec}.luna-console-theme-dark .luna-console-preview .luna-console-number{color:#9980ff}.luna-console-theme-dark .luna-console-preview .luna-console-null{color:#7f7f7f}.luna-console-theme-dark .luna-console-preview .luna-console-string{color:#f29766}.luna-console-theme-dark .luna-console-preview .luna-console-boolean{color:#9980ff}.luna-console-theme-dark .luna-console-preview .luna-console-special{color:#7f7f7f}",""]),b.exports=_},4987:function(b,_,d){(_=d(3645)(!1)).push([b.id,".luna-data-grid{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;position:relative;font-size:12px;border:1px solid #ccc;overflow:hidden;outline:0}.luna-data-grid.luna-data-grid-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-data-grid.luna-data-grid-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-data-grid .luna-data-grid-hidden,.luna-data-grid.luna-data-grid-hidden{display:none}.luna-data-grid .luna-data-grid-invisible,.luna-data-grid.luna-data-grid-invisible{visibility:hidden}.luna-data-grid *{box-sizing:border-box}.luna-data-grid.luna-data-grid-theme-dark{color:#a5a5a5;background-color:#242424}.luna-data-grid.luna-data-grid-theme-dark{color:#a5a5a5;background:#242424;border-color:#3d3d3d}.luna-data-grid table{width:100%;height:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.luna-data-grid td,.luna-data-grid th{padding:1px 4px;border-left:1px solid #ccc;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.luna-data-grid td:first-child,.luna-data-grid th:first-child{border-left:none}.luna-data-grid th{font-weight:400;border-bottom:1px solid #ccc;text-align:left;background:#f3f3f3}.luna-data-grid th.luna-data-grid-sortable:active,.luna-data-grid th.luna-data-grid-sortable:hover{background:#e6e6e6}.luna-data-grid td{height:20px;cursor:default;-webkit-user-select:text;user-select:text}.luna-data-grid:focus .luna-data-grid-node.luna-data-grid-selected{color:#fff;background:#1a73e8}.luna-data-grid:focus.luna-data-grid-theme-dark .luna-data-grid-node.luna-data-grid-selected{background:#0e639c}.luna-data-grid-data-container,.luna-data-grid-header-container{overflow:hidden}.luna-data-grid-header-container{height:21px}.luna-data-grid-data-container{overflow-y:auto}.luna-data-grid-data-container .luna-data-grid-node.luna-data-grid-selected{background:#ddd}.luna-data-grid-data-container tr:nth-child(even){background:#f2f7fd}.luna-data-grid-filler-row td{height:auto}.luna-data-grid-resizer{position:absolute;top:0;bottom:0;width:5px;z-index:500;cursor:col-resize}.luna-data-grid-resizing{cursor:col-resize!important}.luna-data-grid-resizing .luna-data-grid *{cursor:col-resize!important}.luna-data-grid-theme-dark{color-scheme:dark}.luna-data-grid-theme-dark td,.luna-data-grid-theme-dark th{border-color:#3d3d3d}.luna-data-grid-theme-dark th{background:#292a2d}.luna-data-grid-theme-dark th.luna-data-grid-sortable:hover{background:#303030}.luna-data-grid-theme-dark .luna-data-grid-data-container .luna-data-grid-node.luna-data-grid-selected{background:#393939}.luna-data-grid-theme-dark .luna-data-grid-data-container tr:nth-child(even){background:#0b2544}",""]),b.exports=_},8903:function(b,_,d){(_=d(3645)(!1)).push([b.id,"@font-face{font-family:luna-dom-viewer-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAASgAAsAAAAAB4QAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAFwAAACMIRYl8k9TLzIAAAFkAAAAPQAAAFZLxUkaY21hcAAAAaQAAADHAAACWBcU1KRnbHlmAAACbAAAAC4AAAAwabU7V2hlYWQAAAKcAAAALwAAADZzjr4faGhlYQAAAswAAAAYAAAAJAFyANdobXR4AAAC5AAAABAAAAA4AZAAAGxvY2EAAAL0AAAAEAAAAB4AnACQbWF4cAAAAwQAAAAfAAAAIAEZAA9uYW1lAAADJAAAASkAAAIWm5e+CnBvc3QAAARQAAAATgAAAG5m1cqleJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiC2AdNMDGwMckCSGyzHCuSxA2kuIJ+HgReoggtJnANMcwJFGRmYAXZLBkt4nGNgZJBlnMDAysDAUMfQAyRloHQCAyeDMQMDEwMrMwNWEJDmmsJwgEH3IxPDCSBXCEwyMDCCCABbzwhtAAAAeJy1kksKwjAQhr/0oX0JLlyIZ9BDCQXtRkEEwQO56uV6Av0nmZWI4MIJX2H+JvNIBiiBXGxFAWEkYPaQGqKe00S94C5/xVJKwY49PQNnLly5Tdnzqb9JPXByNUT13YKipLVm4wvmilvR0ilfrboKFsy0N9OB2Yco32z+437SLVTQdo05dUksgF8z/8+6+B3dU2m67YR1u3fsLXtH7egtEq04OhZpcKzbk1OLs2NzcXE0F3rNhOW9ObqbKSRsVqYsQfYC6fYeiQB4nGNgZACBlQzTGZgYGMyVxVc2O073AIpAxHsYloHFRc2dPZY2OTIwAACmEQesAAB4nGNgZGBgAOLeSTNM4/ltvjJwM5wACkRxPt7XgKCBYCXDMiDJwcAE4gAAQEgKxAB4nGNgZGBgOMHAACdXMjAyoAI+ADixAkp4nGNgAIITUEwCAABMyAGReJxjYAACHgYJ7BAADsoBLXicY2BkYGDgY2BmANEMDExAzAWEDAz/wXwGAAomASkAeJxlkD1uwkAUhMdgSAJSghQpKbNVCiKZn5IDQE9Bl8KYtTGyvdZ6QaLLCXKEHCGniHKCHChj82hgLT9/M2/e7soABviFh3p5uG1qvVq4oTpxm/Qg7JOfhTvo40W4S38o3MMbpsJ9POKdO3j+HZ0BSuEW7vEh3Kb/KeyTv4Q7eMK3cJf+j3APK/wJ9/HqDdPIFLEp3FIn+yy0Z3n+rrStUlOoSTA+WwtdaBs6vVHro6oOydS5WMXW5GrOrs4yo0prdjpywda5cjYaxeIHkcmRIoJBgbipDktoJNgjQwh71b3UK6YtKvq1VpggwPgqtWCqaJIhlcaGyTWOrBUOPG1K1zGt+FrO5KS5zGreJCMr/u+6t6MT0Q+wbaZKzDDiE1/kg+YO+T89EV6oAAAAeJxdxk0KgCAUAOE3/adlJ/FQgqBuFETw+i2kTd9mRiYZvv4ZJmYWVjZ2Dk4UmosbwyPK1Vq69aVnPbamEBuOSqFj8WQSgUgTeQGPtA2iAAA=') format('woff')}[class*=' luna-dom-viewer-icon-'],[class^=luna-dom-viewer-icon-]{display:inline-block;font-family:luna-dom-viewer-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-dom-viewer-icon-arrow-down:before{content:'\\f101'}.luna-dom-viewer-icon-arrow-right:before{content:'\\f102'}.luna-dom-viewer{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;overflow-y:auto;-webkit-overflow-scrolling:touch;background:0 0;overflow-x:hidden;word-wrap:break-word;padding:0 0 0 12px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;cursor:default;list-style:none}.luna-dom-viewer.luna-dom-viewer-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-dom-viewer.luna-dom-viewer-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-dom-viewer .luna-dom-viewer-hidden,.luna-dom-viewer.luna-dom-viewer-hidden{display:none}.luna-dom-viewer .luna-dom-viewer-invisible,.luna-dom-viewer.luna-dom-viewer-invisible{visibility:hidden}.luna-dom-viewer *{box-sizing:border-box}.luna-dom-viewer ul{list-style:none}.luna-dom-viewer.luna-dom-viewer-theme-dark{color:#e8eaed}.luna-dom-viewer-toggle{min-width:12px;margin-left:-12px}.luna-dom-viewer-icon-arrow-down,.luna-dom-viewer-icon-arrow-right{position:absolute!important;font-size:12px!important}.luna-dom-viewer-tree-item{line-height:16px;min-height:16px;position:relative;z-index:10;outline:0}.luna-dom-viewer-tree-item.luna-dom-viewer-selected .luna-dom-viewer-selection,.luna-dom-viewer-tree-item:hover .luna-dom-viewer-selection{display:block}.luna-dom-viewer-tree-item:hover .luna-dom-viewer-selection{background:#f2f7fd}.luna-dom-viewer-tree-item.luna-dom-viewer-selected .luna-dom-viewer-selection{background:#e0e0e0}.luna-dom-viewer-tree-item.luna-dom-viewer-selected:focus .luna-dom-viewer-selection{background:#cfe8fc}.luna-dom-viewer-tree-item .luna-dom-viewer-icon-arrow-down{display:none}.luna-dom-viewer-tree-item.luna-dom-viewer-expanded .luna-dom-viewer-icon-arrow-down{display:inline-block}.luna-dom-viewer-tree-item.luna-dom-viewer-expanded .luna-dom-viewer-icon-arrow-right{display:none}.luna-dom-viewer-html-tag{color:#881280}.luna-dom-viewer-tag-name{color:#881280}.luna-dom-viewer-attribute-name{color:#994500}.luna-dom-viewer-attribute-value{color:#1a1aa6}.luna-dom-viewer-attribute-value.luna-dom-viewer-attribute-underline{text-decoration:underline}.luna-dom-viewer-html-comment{color:#236e25}.luna-dom-viewer-selection{position:absolute;display:none;left:-10000px;right:-10000px;top:0;bottom:0;z-index:-1}.luna-dom-viewer-children{margin:0;overflow-x:visible;overflow-y:visible;padding-left:15px}.luna-dom-viewer-text-node .luna-dom-viewer-keyword{color:#881280}.luna-dom-viewer-text-node .luna-dom-viewer-number{color:#1c00cf}.luna-dom-viewer-text-node .luna-dom-viewer-operator{color:grey}.luna-dom-viewer-text-node .luna-dom-viewer-comment{color:#236e25}.luna-dom-viewer-text-node .luna-dom-viewer-string{color:#1a1aa6}.luna-dom-viewer-theme-dark .luna-dom-viewer-icon-arrow-down,.luna-dom-viewer-theme-dark .luna-dom-viewer-icon-arrow-right{color:#9aa0a6}.luna-dom-viewer-theme-dark .luna-dom-viewer-html-tag,.luna-dom-viewer-theme-dark .luna-dom-viewer-tag-name{color:#5db0d7}.luna-dom-viewer-theme-dark .luna-dom-viewer-attribute-name{color:#9bbbdc}.luna-dom-viewer-theme-dark .luna-dom-viewer-attribute-value{color:#f29766}.luna-dom-viewer-theme-dark .luna-dom-viewer-html-comment{color:#898989}.luna-dom-viewer-theme-dark .luna-dom-viewer-tree-item:hover .luna-dom-viewer-selection{background:#083c69}.luna-dom-viewer-theme-dark .luna-dom-viewer-tree-item.luna-dom-viewer-selected .luna-dom-viewer-selection{background:#454545}.luna-dom-viewer-theme-dark .luna-dom-viewer-tree-item.luna-dom-viewer-selected:focus .luna-dom-viewer-selection{background:#073d69}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-keyword{color:#e36eec}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-number{color:#9980ff}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-operator{color:#7f7f7f}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-comment{color:#747474}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-string{color:#f29766}",""]),b.exports=_},5512:function(b,_,d){(_=d(3645)(!1)).push([b.id,"@font-face{font-family:luna-modal-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAQwAAsAAAAABpQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAEkAAABoILgliE9TLzIAAAFUAAAAPQAAAFZL+0kZY21hcAAAAZQAAACBAAAB3sqmCy5nbHlmAAACGAAAAC0AAAA0Ftcaz2hlYWQAAAJIAAAALgAAADZzhL4YaGhlYQAAAngAAAAYAAAAJAFoANBobXR4AAACkAAAAA8AAAAcAMgAAGxvY2EAAAKgAAAADgAAABAATgBObWF4cAAAArAAAAAfAAAAIAESABhuYW1lAAAC0AAAASkAAAIWm5e+CnBvc3QAAAP8AAAAMQAAAEOplauDeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiCWgNIsQMzKwAykWRnYgGxGBiYAk+wFgwAAAHicY2BkkGWcwMDKwMBQx9ADJGWgdAIDJ4MxAwMTAyszA1YQkOaawnCAIfkjI8MJIFcITDIwMIIIAGAqCKIAAAB4nM2RQQqDQAxFXxyVUsST9DhduBd3ggsv0JX39QT6kwYED1D6hzeQD0nmM0ADFPESNdiG4frItfALz/Br3qp7HlS0jEzMLKy7HYf8e33J1HMdortoWuPzreUX8p2hEikj9f+oi3vIyl86JpWYEvfnxH9sSTzPmijXbl+wE7urE5sAAAB4nGNgZACB+UDIzcBgrs6uzi7OLm4ubq4+j1tfn1tPD0xOhjGAJAMDAKekBtMAAAB4nGNgZGBgAGLPuE0l8fw2Xxm4GU4ABaI4H+9rQNBAMB8IGRg4GJhAHAA5KgqUAAB4nGNgZGBgOMHAACfnMzAyoAJ2ADfsAjl4nGNgAIITDFgBABIUAMkAeJxjYAACKQQEAAO4AJ0AAHicY2BkYGBgZ+BhANEMDExAzAWEDAz/wXwGAApKASsAeJxlkD1uwkAUhMdgSAJSghQpKbNVCiKZn5IDQE9Bl8KYtTGyvdZ6QaLLCXKEHCGniHKCHChj82hgLT9/M2/e7soABviFh3p5uG1qvVq4oTpxm/Qg7JOfhTvo40W4S38o3MMbpsJ9POKdO3j+HZ0BSuEW7vEh3Kb/KeyTv4Q7eMK3cJf+j3APK/wJ9/HqDdPIFLEp3FIn+yy0Z3n+rrStUlOoSTA+WwtdaBs6vVHro6oOydS5WMXW5GrOrs4yo0prdjpywda5cjYaxeIHkcmRIoJBgbipDktoJNgjQwh71b3UK6YtKvq1VpggwPgqtWCqaJIhlcaGyTWOrBUOPG1K1zGt+FrO5KS5zGreJCMr/u+6t6MT0Q+wbaZKzDDiE1/kg+YO+T89EV6oAAAAeJxjYGKAABiNDtgZmRiZGVkYWRnZGNkZORhYk3Pyi1MZkxlzGPMZixlTGRgANIEEbAAAAA==') format('woff')}[class*=' luna-modal-icon-'],[class^=luna-modal-icon-]{display:inline-block;font-family:luna-modal-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-modal-icon-close:before{content:'\\f101'}.luna-modal{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;justify-content:center;align-items:center}.luna-modal.luna-modal-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-modal.luna-modal-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-modal .luna-modal-hidden,.luna-modal.luna-modal-hidden{display:none}.luna-modal .luna-modal-invisible,.luna-modal.luna-modal-invisible{visibility:hidden}.luna-modal *{box-sizing:border-box}.luna-modal-icon-close{position:absolute;right:16px;top:18px;cursor:pointer;font-size:20px}.luna-modal-body{position:relative;background:#fff;max-height:100%;display:flex;flex-direction:column;border-radius:4px}.luna-modal-body.luna-modal-no-title{position:static}.luna-modal-body.luna-modal-no-title .luna-modal-title{display:none}.luna-modal-body.luna-modal-no-title .luna-modal-icon-close{color:#fff}.luna-modal-body.luna-modal-no-footer .luna-modal-footer{display:none}.luna-modal-hidden{display:none}.luna-modal-title{padding:16px;padding-right:36px;padding-bottom:0;font-size:18px;height:46px;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.luna-modal-content{padding:16px;overflow-y:auto}.luna-modal-footer{padding:12px}.luna-modal-button-group{display:flex;justify-content:flex-end}.luna-modal-button{padding:0 12px;background:#e9ecef;cursor:default;position:relative;-webkit-user-select:none;user-select:none;margin:0 4px;font-size:12px;border-radius:4px;overflow:hidden;height:28px;line-height:28px}.luna-modal-button:active::before{background:#1a73e8;content:'';opacity:.4;position:absolute;top:0;left:0;width:100%;height:100%;z-index:2}.luna-modal-button.luna-modal-secondary{color:#1a73e8;border:1px solid #ccc;background:#fff}.luna-modal-button.luna-modal-primary{color:#fff;background:#1a73e8}.luna-modal-input{box-sizing:border-box;outline:0;width:100%;font-size:16px;padding:6px 12px;border:1px solid #ccc;-webkit-appearance:none;-moz-appearance:none}.luna-modal-theme-dark{color:#a5a5a5}.luna-modal-theme-dark .luna-modal-body{background:#242424}",""]),b.exports=_},7591:function(b,_,d){(_=d(3645)(!1)).push([b.id,".luna-notification{position:fixed;top:0;left:0;width:100%;height:100%;padding:20px;box-sizing:border-box;pointer-events:none;display:flex;flex-direction:column;font-size:14px;font-family:Arial,Helvetica,sans-serif}.luna-notification-item{display:flex;box-shadow:0 2px 2px 0 rgba(0,0,0,.07),0 1px 5px 0 rgba(0,0,0,.1);padding:10px 16px;color:#333;background:#fff}.luna-notification-lower{margin-top:16px}.luna-notification-upper{margin-bottom:16px}.luna-notification-theme-dark .luna-notification-item{box-shadow:0 2px 2px 0 rgba(255,255,255,.07),0 1px 5px 0 rgba(255,255,255,.1);color:#a5a5a5;background:#242424}",""]),b.exports=_},4821:function(b,_,d){(_=d(3645)(!1)).push([b.id,"@font-face{font-family:luna-object-viewer-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAS8AAsAAAAAB7QAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAGEAAACMISgl+k9TLzIAAAFsAAAAPQAAAFZLxUkWY21hcAAAAawAAADWAAACdBU42qdnbHlmAAAChAAAAC4AAAAwabU7V2hlYWQAAAK0AAAALwAAADZzjr4faGhlYQAAAuQAAAAYAAAAJAFyANlobXR4AAAC/AAAABAAAABAAZAAAGxvY2EAAAMMAAAAEAAAACIAtACobWF4cAAAAxwAAAAfAAAAIAEbAA9uYW1lAAADPAAAASkAAAIWm5e+CnBvc3QAAARoAAAAUwAAAHZW8MNZeJxNjTsOQFAQRc/z/+sV1mABohKV0gZeJRJR2X9cT4RJZu7nFIMBMjoGvHGaF6rdngcNAc/c/O/Nvq2W5E1igdNE2zv1iGh1c5FQPlYXUlJRyxt9+/pUKadQa/AveGEGZQAAAHicY2BkkGScwMDKwMBQx9ADJGWgdAIDJ4MxAwMTAyszA1YQkOaawnCAQfcjE8MJIFcITDIwMIIIAFqDCGkAAAB4nM2STQ4BQRCFv54ZP8MwFhYW4gQcShBsSERi50BWDuFCcwJedddKRGKnOt8k9aanqudVAy0gF3NRQLgTsLhJDVHP6UW94Kp8zEhKwYIlG/YcOXHm0mTPp96aumLLwdUQ1fcIqmJrwpSZL+iqak5JmyE1Ayr1bdGhr/2ZPmp/qPQtuj/uJzqQl+pfDyypesQD6AT/ElV8PjyrMccT9rdLR3PUFBI227VTio1jbm6dodg5VnPvmAsHxzofHfmi+Sbs/pwdWcXFkWdNSNg9arIE2QufuSCyAAB4nGNgZACBlQzTGZgYGMyVxVc2O073AIpAxHsYloHFRc2dPZY2OTIwAACmEQesAAB4nGNgZGBgAOINe2b6x/PbfGXgZjgBFIjifLyvAUEDwUqGZUCSg4EJxAEAUn4LLAB4nGNgZGBgOMHAACdXMjAyoAIBADizAkx4nGNgAIITUEwGAABZUAGReJxjYAACHgYJ3BAAE94BXXicY2BkYGAQYGBmANEMDExAzAWEDAz/wXwGAApcASsAeJxlkD1uwkAUhMdgSAJSghQpKbNVCiKZn5IDQE9Bl8KYtTGyvdZ6QaLLCXKEHCGniHKCHChj82hgLT9/M2/e7soABviFh3p5uG1qvVq4oTpxm/Qg7JOfhTvo40W4S38o3MMbpsJ9POKdO3j+HZ0BSuEW7vEh3Kb/KeyTv4Q7eMK3cJf+j3APK/wJ9/HqDdPIFLEp3FIn+yy0Z3n+rrStUlOoSTA+WwtdaBs6vVHro6oOydS5WMXW5GrOrs4yo0prdjpywda5cjYaxeIHkcmRIoJBgbipDktoJNgjQwh71b3UK6YtKvq1VpggwPgqtWCqaJIhlcaGyTWOrBUOPG1K1zGt+FrO5KS5zGreJCMr/u+6t6MT0Q+wbaZKzDDiE1/kg+YO+T89EV6oAAAAeJxdxjkOgCAUANE/uOOGB+FQBIjaaEJIuL6FsfE1M6Lk9fXPoKioaWjp6BnQjEzMLKwYNtHepZhtuMs1vpvO/ch4HIlIxhK4KVyc7BwiD8nvDlkA') format('woff')}[class*=' luna-object-viewer-icon-'],[class^=luna-object-viewer-icon-]{display:inline-block;font-family:luna-object-viewer-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-object-viewer-icon-caret-down:before{content:'\\f101'}.luna-object-viewer-icon-caret-right:before{content:'\\f102'}.luna-object-viewer{overflow-x:auto;-webkit-overflow-scrolling:touch;overflow-y:hidden;cursor:default;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;line-height:1.2;min-height:100%;color:#333;list-style:none!important}.luna-object-viewer ul{list-style:none!important;padding:0!important;padding-left:12px!important;margin:0!important}.luna-object-viewer li{position:relative;white-space:nowrap;line-height:16px;min-height:16px}.luna-object-viewer>li>.luna-object-viewer-key{display:none}.luna-object-viewer span{position:static!important}.luna-object-viewer li .luna-object-viewer-collapsed~.luna-object-viewer-close:before{color:#999}.luna-object-viewer-array .luna-object-viewer-object .luna-object-viewer-key{display:inline}.luna-object-viewer-null{color:#5e5e5e}.luna-object-viewer-regexp,.luna-object-viewer-string{color:#c41a16}.luna-object-viewer-number{color:#1c00cf}.luna-object-viewer-boolean{color:#0d22aa}.luna-object-viewer-special{color:#5e5e5e}.luna-object-viewer-key,.luna-object-viewer-key-lighter{color:#881391}.luna-object-viewer-key-lighter{opacity:.6}.luna-object-viewer-key-special{color:#5e5e5e}.luna-object-viewer-collapsed .luna-object-viewer-icon,.luna-object-viewer-expanded .luna-object-viewer-icon{position:absolute!important;left:-12px;color:#727272;font-size:12px}.luna-object-viewer-icon-caret-right{top:0}.luna-object-viewer-icon-caret-down{top:1px}.luna-object-viewer-expanded>.luna-object-viewer-icon-caret-down{display:inline}.luna-object-viewer-expanded>.luna-object-viewer-icon-caret-right{display:none}.luna-object-viewer-collapsed>.luna-object-viewer-icon-caret-down{display:none}.luna-object-viewer-collapsed>.luna-object-viewer-icon-caret-right{display:inline}.luna-object-viewer-hidden~ul{display:none}.luna-object-viewer-theme-dark{color:#fff}.luna-object-viewer-theme-dark .luna-object-viewer-null,.luna-object-viewer-theme-dark .luna-object-viewer-special{color:#a1a1a1}.luna-object-viewer-theme-dark .luna-object-viewer-regexp,.luna-object-viewer-theme-dark .luna-object-viewer-string{color:#f28b54}.luna-object-viewer-theme-dark .luna-object-viewer-boolean,.luna-object-viewer-theme-dark .luna-object-viewer-number{color:#9980ff}.luna-object-viewer-theme-dark .luna-object-viewer-key,.luna-object-viewer-theme-dark .luna-object-viewer-key-lighter{color:#5db0d7}",""]),b.exports=_},9819:function(b,_,d){(_=d(3645)(!1)).push([b.id,`.luna-setting{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;min-width:320px}.luna-setting.luna-setting-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-setting.luna-setting-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-setting .luna-setting-hidden,.luna-setting.luna-setting-hidden{display:none}.luna-setting .luna-setting-invisible,.luna-setting.luna-setting-invisible{visibility:hidden}.luna-setting *{box-sizing:border-box}.luna-setting-item.luna-setting-selected,.luna-setting-item:hover{background:#f3f3f3}.luna-setting-item.luna-setting-selected:focus{outline:1px solid #1a73e8}.luna-setting-item .luna-setting-title{line-height:1.4em;font-weight:600}.luna-setting-item .luna-setting-description{line-height:1.4em}.luna-setting-item .luna-setting-description *{margin:0}.luna-setting-item .luna-setting-description strong{font-weight:600}.luna-setting-item .luna-setting-description a{background-color:transparent;color:#0969da;text-decoration:none}.luna-setting-item .luna-setting-control,.luna-setting-item .luna-setting-description{font-size:12px}.luna-setting-item .luna-setting-description{margin-bottom:8px}.luna-setting-item .luna-setting-control{display:flex;align-items:center}.luna-setting-item-button,.luna-setting-item-checkbox,.luna-setting-item-input,.luna-setting-item-number,.luna-setting-item-select,.luna-setting-item-title{padding:10px}.luna-setting-item-title{font-size:18px;font-weight:600}.luna-setting-item-input input{-webkit-tap-highlight-color:transparent;color:#333;-webkit-appearance:none;appearance:none;border:1px solid #ccc;outline:0;padding:2px 8px;border-radius:0;font-size:14px;background:#fff;width:100%}.luna-setting-item-number input[type=number]{-webkit-tap-highlight-color:transparent;color:#333;-webkit-appearance:none;appearance:none;border:1px solid #ccc;outline:0;padding:2px 8px;border-radius:0;font-size:14px;background:#fff;width:200px;padding:2px}.luna-setting-item-number .luna-setting-range-container{flex:2;position:relative;top:1px}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track{height:4px;width:100%;padding:0 10px;position:absolute;left:0;top:4px}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar{background:#ccc;border-radius:2px;overflow:hidden;width:100%;height:4px}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar .luna-setting-range-track-progress{height:100%;background:#1a73e8;width:50%}.luna-setting-item-number .luna-setting-range-container input{-webkit-appearance:none;background:0 0;height:4px;width:100%;position:relative;top:-3px;margin:0 auto;outline:0;border-radius:2px}.luna-setting-item-number .luna-setting-range-container input::-webkit-slider-thumb{-webkit-appearance:none;position:relative;top:0;z-index:1;width:16px;border:none;height:16px;border-radius:10px;border:1px solid #ccc;background:radial-gradient(circle at center,#eee 0,#eee 15%,#fff 22%,#fff 100%)}.luna-setting-item-checkbox input{-webkit-appearance:none;appearance:none;width:14px;height:14px;border:1px solid #ccc;border-radius:0;position:relative;outline:0;margin-left:0;margin-right:8px;transition:background-color .1s;align-self:flex-start;flex-shrink:0}.luna-setting-item-checkbox input:checked{background-color:#1a73e8;border-color:#1a73e8}.luna-setting-item-checkbox input:checked:after{content:"";width:100%;height:100%;position:absolute;left:0;top:0;background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzMwMHB4JyB3aWR0aD0nMzAwcHgnICBmaWxsPSIjZmZmZmZmIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgdmVyc2lvbj0iMS4xIiB4PSIwcHgiIHk9IjBweCI+PHRpdGxlPmljb25fYnlfUG9zaGx5YWtvdjEwPC90aXRsZT48ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz48ZyBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyBmaWxsPSIjZmZmZmZmIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNi4wMDAwMDAsIDI2LjAwMDAwMCkiPjxwYXRoIGQ9Ik0xNy45OTk5ODc4LDMyLjQgTDEwLjk5OTk4NzgsMjUuNCBDMTAuMjI2Nzg5MSwyNC42MjY4MDE0IDguOTczMTg2NDQsMjQuNjI2ODAxNCA4LjE5OTk4Nzc5LDI1LjQgTDguMTk5OTg3NzksMjUuNCBDNy40MjY3ODkxNCwyNi4xNzMxOTg2IDcuNDI2Nzg5MTQsMjcuNDI2ODAxNCA4LjE5OTk4Nzc5LDI4LjIgTDE2LjU4NTc3NDIsMzYuNTg1Nzg2NCBDMTcuMzY2ODIyOCwzNy4zNjY4MzUgMTguNjMzMTUyOCwzNy4zNjY4MzUgMTkuNDE0MjAxNCwzNi41ODU3ODY0IEw0MC41OTk5ODc4LDE1LjQgQzQxLjM3MzE4NjQsMTQuNjI2ODAxNCA0MS4zNzMxODY0LDEzLjM3MzE5ODYgNDAuNTk5OTg3OCwxMi42IEw0MC41OTk5ODc4LDEyLjYgQzM5LjgyNjc4OTEsMTEuODI2ODAxNCAzOC41NzMxODY0LDExLjgyNjgwMTQgMzcuNzk5OTg3OCwxMi42IEwxNy45OTk5ODc4LDMyLjQgWiI+PC9wYXRoPjwvZz48L2c+PC9nPjwvc3ZnPg==);background-size:30px;background-repeat:no-repeat;background-position:center}.luna-setting-item-checkbox label{-webkit-tap-highlight-color:transparent}.luna-setting-item-checkbox label *{margin:0}.luna-setting-item-select .luna-setting-select{position:relative}.luna-setting-item-select .luna-setting-select select{margin:0;font-size:14px;background:#fff;-webkit-appearance:none;appearance:none;border:1px solid #ccc;padding:2px 8px;padding-right:18px;outline:0;color:#333;border-radius:0;-webkit-tap-highlight-color:transparent}.luna-setting-item-select .luna-setting-select:after{content:'';width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #333;position:absolute;top:0;bottom:0;right:6px;margin:auto;pointer-events:none}.luna-setting-item-select .luna-setting-select select{width:300px}.luna-setting-item-button button{-webkit-tap-highlight-color:transparent;background:#fff;border:1px solid #ccc;padding:2px 8px;color:#1a73e8;font-size:14px;border-radius:2px}.luna-setting-item-button button:active,.luna-setting-item-button button:hover{background:#f3f3f3}.luna-setting-item-button button:active{border:1px solid #1a73e8}.luna-setting-item-separator{border-bottom:1px solid #ccc}.luna-setting-theme-dark{color-scheme:dark;color:#a5a5a5;background:#242424}.luna-setting-theme-dark .luna-setting-item.luna-setting-selected,.luna-setting-theme-dark .luna-setting-item:hover{background:#292a2d}.luna-setting-theme-dark .luna-setting-item .luna-setting-description a{background-color:transparent;color:#58a6ff}.luna-setting-theme-dark .luna-setting-item-separator{border-color:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-input input{background:#3d3d3d;border-color:#3d3d3d;color:#a5a5a5}.luna-setting-theme-dark .luna-setting-item-checkbox input{border-color:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-select .luna-setting-select select{color:#a5a5a5;border-color:#3d3d3d;background:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-select .luna-setting-select:after{border-top-color:#a5a5a5}.luna-setting-theme-dark .luna-setting-item-button button{background:#242424;border-color:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-button button:active,.luna-setting-theme-dark .luna-setting-item-button button:hover{background:#292a2d}.luna-setting-theme-dark .luna-setting-item-button button:active{border:1px solid #1a73e8}.luna-setting-theme-dark .luna-setting-item-number input[type=number]{background:#3d3d3d;border-color:#3d3d3d;color:#a5a5a5}.luna-setting-theme-dark .luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar{background:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-number .luna-setting-range-container input::-webkit-slider-thumb{border-color:#3d3d3d;background:radial-gradient(circle at center,#aaa 0,#aaa 15%,#ccc 22%,#ccc 100%)}`,""]),b.exports=_},2156:function(b,_,d){(_=d(3645)(!1)).push([b.id,".luna-tab{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;position:relative;overflow:hidden;width:100%}.luna-tab.luna-tab-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-tab.luna-tab-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-tab .luna-tab-hidden,.luna-tab.luna-tab-hidden{display:none}.luna-tab .luna-tab-invisible,.luna-tab.luna-tab-invisible{visibility:hidden}.luna-tab *{box-sizing:border-box}.luna-tab.luna-tab-theme-dark{color:#a5a5a5;background-color:#242424}.luna-tab-tabs-container{border-bottom:1px solid #ccc}.luna-tab-tabs{overflow-x:auto;-webkit-overflow-scrolling:touch;overflow-y:hidden;width:100%;height:100%;font-size:0;white-space:nowrap}.luna-tab-tabs::-webkit-scrollbar{display:none;width:0;height:0}.luna-tab-item{cursor:pointer;display:inline-block;padding:0 10px;font-size:12px;text-align:center;text-transform:capitalize}.luna-tab-item:hover{background:#f3f3f3}.luna-tab-slider{transition:left .3s,width .3s;height:1px;background:#1a73e8;position:absolute;bottom:0;left:0}",""]),b.exports=_},5777:function(b,_,d){(_=d(3645)(!1)).push([b.id,"@font-face{font-family:luna-text-viewer-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAS0AAsAAAAAB2QAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAFQAAAB0INElr09TLzIAAAFcAAAAPQAAAFZL+0klY21hcAAAAZwAAACfAAACEAEewxRnbHlmAAACPAAAAIYAAACkNSDggmhlYWQAAALEAAAALgAAADZzrb4oaGhlYQAAAvQAAAAWAAAAJAGRANNobXR4AAADDAAAABAAAAAoAZAAAGxvY2EAAAMcAAAAEAAAABYBWgFIbWF4cAAAAywAAAAdAAAAIAEXADtuYW1lAAADTAAAASkAAAIWm5e+CnBvc3QAAAR4AAAAOwAAAFJIWdOleJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBWAdNMDGwMQkAWK1CGlYEZyGMCstiBMpxAUUYGZgDbGgXDeJxjYGTQYJzAwMrAwFDH0AMkZaB0AgMngzEDAxMDKzMDVhCQ5prCcIAh+SMTwwkgVwhMMjAwgggAY84IrgAAAHicvZFLCsMwDERHzsdJ6aL0HD1VQiDQRbIN9Axd9aI+QTpjq5Bdd5F4Bo1lybIBNAAq8iA1YB8YZG+qlvUKl6zXGBjf6MofMWHGEyu2FPb9oCxULCtHs3yy+J2urg1rtojo0HM/MKnFGabOGlbdYvdT+1N6/7drXl8e6Vajo3efHP3b7HAUvntBMy1OJKujMTeHNZMV9McpFBC+tLgY4QB4nGNgZACBEwzrGdgZGOwZxdnVDdXNPfKEGlhchO0KhZtZ3IQYmMFq1jCsZpBi0GLQY2AwNzGzZjQSk2UUYdNmVFID8UyVRUXYlNRMlVGlTM1FjU3tmZkTmVhYmFRBhHwoCyuzKgtTIjMzWJg3ZClIGMRlZQmVB7GhMixM0aGhQIsB52sTqgAAeJxjYGRgYADi2JNxkvH8Nl8ZuBlOAAWiOB/va0DQQHCCYT2Q5GBgAnEANJ0KnQAAeJxjYGRgYDjBwIBEMjKgAi4AOvoCZQAAeJxjYACCE1CMBwAAM7gBkXicY2AAAiGGIFQIABXIAqN4nGNgZGBg4GLQZ2BmAAEmMI8LSP4H8xkADjQBUwAAAHicZZA9bsJAFITHYEgCUoIUKSmzVQoimZ+SA0BPQZfCmLUxsr3WekGiywlyhBwhp4hyghwoY/NoYC0/fzNv3u7KAAb4hYd6ebhtar1auKE6cZv0IOyTn4U76ONFuEt/KNzDG6bCfTzinTt4/h2dAUrhFu7xIdym/ynsk7+EO3jCt3CX/o9wDyv8Cffx6g3TyBSxKdxSJ/sstGd5/q60rVJTqEkwPlsLXWgbOr1R66OqDsnUuVjF1uRqzq7OMqNKa3Y6csHWuXI2GsXiB5HJkSKCQYG4qQ5LaCTYI0MIe9W91CumLSr6tVaYIMD4KrVgqmiSIZXGhsk1jqwVDjxtStcxrfhazuSkucxq3iQjK/7vurejE9EPsG2mSsww4hNf5IPmDvk/PRFeqAAAAHicXcU7CsAgFEXBe4x/l/kQBAtt3X0KSZNpRk7X91/F8eAJRBKZQqUp2Og2va19MAadyWJzpBd4kgcWAA==') format('woff')}[class*=' luna-text-viewer-icon-'],[class^=luna-text-viewer-icon-]{display:inline-block;font-family:luna-text-viewer-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-text-viewer-icon-check:before{content:'\\f101'}.luna-text-viewer-icon-copy:before{content:'\\f102'}.luna-text-viewer{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;padding:0;unicode-bidi:embed;position:relative;overflow:auto;border:1px solid #ccc}.luna-text-viewer.luna-text-viewer-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-text-viewer.luna-text-viewer-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-text-viewer .luna-text-viewer-hidden,.luna-text-viewer.luna-text-viewer-hidden{display:none}.luna-text-viewer .luna-text-viewer-invisible,.luna-text-viewer.luna-text-viewer-invisible{visibility:hidden}.luna-text-viewer *{box-sizing:border-box}.luna-text-viewer.luna-text-viewer-theme-dark{color:#d9d9d9;border-color:#3d3d3d;background:#242424}.luna-text-viewer:hover .luna-text-viewer-copy{opacity:1}.luna-text-viewer-table{display:table}.luna-text-viewer-table .luna-text-viewer-line-number,.luna-text-viewer-table .luna-text-viewer-line-text{padding:0}.luna-text-viewer-table-row{display:table-row}.luna-text-viewer-line-number{display:table-cell;padding:0 3px 0 8px!important;text-align:right;vertical-align:top;-webkit-user-select:none;user-select:none;border-right:1px solid #ccc}.luna-text-viewer-line-text{display:table-cell;padding-left:4px!important;-webkit-user-select:text;user-select:text}.luna-text-viewer-copy{background:#fff;opacity:0;position:absolute;right:5px;top:5px;border:1px solid #ccc;border-radius:4px;width:25px;height:25px;text-align:center;line-height:25px;cursor:pointer;transition:opacity .3s,top .3s}.luna-text-viewer-copy .luna-text-viewer-icon-check{color:#188037}.luna-text-viewer-text{padding:4px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;box-sizing:border-box;white-space:pre;display:block}.luna-text-viewer-text.luna-text-viewer-line-numbers{padding:0}.luna-text-viewer-text.luna-text-viewer-wrap-long-lines{white-space:pre-wrap}.luna-text-viewer-text.luna-text-viewer-wrap-long-lines .luna-text-viewer-line-text{word-break:break-all}.luna-text-viewer-theme-dark{color-scheme:dark}.luna-text-viewer-theme-dark .luna-text-viewer-copy,.luna-text-viewer-theme-dark .luna-text-viewer-line-number{border-color:#3d3d3d}.luna-text-viewer-theme-dark .luna-text-viewer-copy .luna-text-viewer-icon-check{color:#81c995}.luna-text-viewer-theme-dark .luna-text-viewer-copy{background-color:#242424}",""]),b.exports=_},5357:function(b,_,d){(_=d(3645)(!1)).push([b.id,"@font-face{font-family:eruda-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAA6UAAsAAAAAGvAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAARoAAAHeLjoycE9TLzIAAAIkAAAAPwAAAFZWm1KoY21hcAAAAmQAAAFdAAADwhPu1O9nbHlmAAADxAAAB+wAAA9I7RPQpGhlYWQAAAuwAAAAMQAAADZ26MSyaGhlYQAAC+QAAAAdAAAAJAgEBC9obXR4AAAMBAAAAB0AAACwXAv//GxvY2EAAAwkAAAAOwAAAFpuVmoybWF4cAAADGAAAAAfAAAAIAE9AQ1uYW1lAAAMgAAAASkAAAIWm5e+CnBvc3QAAA2sAAAA5QAAAU4VMmUJeJxNkD1Ow0AQhb9NHGISCH9RiB0cErCNHRrqFFSIyqKiQHSpEFJERUnBCTgPZ+AEHIe34wDe1f69efPezOKAHldc07q5re4ZrFevL8QE1MPHm3e3fn5aEf6+FAvsDHHuTUoxd7zzwSdffLulq9wjLbaYau8TacZMONE554xzZsrtNfBEzFOhbSmOyTmga0ikvRR/37RSsSMyDukYPjWdgGOtsSK55Y/k0Bf/ksK0MrbFr70idsVZKNPnDcSay3umd2TISCvWTJSxI78lFQ/C+qbv/Zo9tNXDP55ZL7k0Q90u5F5XX0qrYx16btccCtXg/ULrKzGFuqY9rUTMhf3fkCNj+MxUnsM/frr5Qx+ZbH4vVQ0F5Q/ZQBvxAAB4nGNgZJJgnMDAysDA1Mt0hoGBoR9CM75mMGLkAIoysDIzYAUBaa4pDAcYdD+KsIC4MSxMDIxAGoQZALgnCOUAeJy1011SGlEQhuF3BFHxD5UUyr8gIJIsiiKJsSqJlrHKsJssKFeuxF6Bfj3dF96aqhzqoZnDzJyG8w2wCVTko1SheKLAx1/NFuV8hXo5X+WPjht6+fmfWHLDHQ+srfnykjMrvnPPoxXlzNtRlFc26HLBZblal1N9ntBnwIgx5/SYMaWt78+YM6TDgitduaEVq+q0xhbb7KifPQ441N2OOOaEJh9oaYka7xvdd57vQz1P+oPR+Bx6s2lbrc6H0Flc/cO9/sfY87fiOY8u8X0J/muX6VRW6UI+p4l8SX35mgZynUbyLY3lJukf0e6HnvxIM/mZpnKb2nKXvM/7dCa/0lwe0lAeU0d+p4Wsk3bBiuDptY2A10rw9Fo1eOJtM/iTYLWA162A1+2A152A13rwJ8R2g++AJaUU2w/KK3YQlFzsMCjDWCMozdhRUK6x46CEYydBWceagdYraihRngAAAHic7RdbbBxX9Z57Z2d2d2ZndryzM7ve9ax3NztjO/bann0lTuW16zoBJSWJ7Zg83NiUJCQ1Ik2ikKQJNC9FFQqVEG0RVLQoSpEKH2klqgpEIyWAUMRTNBJC/PUDhETgiwhQd8y5s1s7oqr624/srO6ce89zzjn3nHsJEPwxyn5GVEJKBTcCdc80pAiYhkjfNWL+NnhLdTKqfxVOqJlxFX6E84wb86/6X4+5GRLw0/vsOgkREoFGBFx62P/uFviBP78FWrC02d/r79vcpmMl+k2uBwwJxIILTrVeyXsmK8krRLb5YGqUaCb9ksYnMuBqMtnRcY6V1nidml6texaY9CxSRm3TtKNIjcxrUjhEWKD3OnuNJEgPKSG/I6nUpo06fxwXH8lmEoyDFQIVyrROs7254z990rj0u2PLez47WqG1yu69V7ZdfDxU9He4C6P+v+HN+vlnD9Uou0Zp+NnfvveT/XL0kbGFxT/u37tx7CTdeuGlKfiibcMr/gt9qfyu05e4+YEdb7A3iEVG0ArdEAvDIPHBqTbB7bgCDA0sdH0x3/nEHDT4YFJi9siz74iaOBkK3ZyRTRXwE+FGG15BeA0Pf14hqinP3AyFJnHhnVm5xzThmNSBNFjDdvwzw75GFJIlvWhZ1UHlYlI3zIputa3CSduiRF7P09e9on+jODpanPOKsJMDOPV2wU7/BqsVPcQ2ix41X/8ARKpbfhPVtHNgik1hXAhIlmQ1rIbbcCVIzN/7+65794KRTc13IBwJXVkhRACBkAEyhVyiBqJbRn81YRjKUDfRN9xHpoVBt0xJRZ+iS4ehZFg2utJrjCO2GrAUAizcj+c3pXpiXVQwThZmdNrbrx+hAjtjbhSF5FPyKSsqmGraWKYCbfl97vMLi79fXHje7XsAhBsoo0P35fyMPpCj+lM0FDptJexuYzl82upRufxlKgrTh/+fOwBXc+Jt9jZJBTnxUbH/yGT5j4jRT2pB9O1oO/oi3FyD2/ggU14LY/j5RuHTJIZf5LR/WVmbaB2CT6xdQa4KwJZIHPfyMFoWRNSmQZDLlJVpdRw8GwwVWEGlScOGijdOq2VKyfHDB7/d1/+d37zXeT/dXG42l7/Kh2a20pd0JpxsxTVNt8KWyuu/94Ujr+7uvFpvQXP5PCfEAU4l+6pZZ9Ix3eqGqmsGrvok28V+zi6TKEYyi/Udt0MNavkkJC1e+vQA1tGqil6EV93j/UBbY0AXm/2Vku+z53x/8MDT5879U9Nb4Cqq/yf/WEjReiECfS9+C2f/6umFS/77q3t7kp0nGu8DTrFTQrwG1KtsoHVXlnXL0qMKHTRpGbaJlt7aoVsSbO3aQFb5L7MTJElIwrBMvnWxQteCEl2QREn8Ci/Ef9i7u1IT6tX5Pb/ePV+rUXKEL3DMkUPzc6OeNzo3/6C8K2QdrzVlKAYyHhBcxGgUyoCRqXimJZXYwYO1y1tWxQWKLkyfunpqevrU5vJs4SQ02JUDw94qMlC6maORJpc9AR/Sm7C4cK7S4MoL/FNqFYy+Nw5VbpIoWaWXP0atf+fj1Lb36w12h6SxShIouuNQw+TCVDNsWvHqDStpNUoFnobUs6mhUvpmn+r2VxaeuXjmCc974vSjm44OxfytrXeH5iaKxYm5fXMThcLEHLwcGzq66dHTnObMxWcWKv2u2tfa1ipMzu7rEM5OFshqLfsFu4R9thszrVjAUoHFgH98DxRreb3CK74rMTh/bWmJTq9Pd0nCZOvsbfrYrVsTty9cOPc5Or2U6spq8rXbrbNAL9yeuHWLYuEnEiErK0JIAPIN8kNyl9wn/yUt7mioN6GGTi1jDQrypNPRxQ+8zREatnUsVtgbcDHAaZA0rc6TxOIWLPFVXLDbvYRT45CDSnBOqFhee4aTcWw8gapGnS+Z+EYrOuqh825jrY5WSVwPDSewh/OWqYueCJQFEjhELTdgcdEODjUCo5yge7lcAlJxRSgceyZyu5LFfqnaeldKlsyunnK6N6LEaUSqTSndgpZK7jC7NZaR7LGcGhXwgMNC+WFt0MxEomZcECQ9EY4JkgAQDilSNKnGuxXJ0u2hdG9YUZkiZcfWpaOWkUv0G6IaCseVVH81o0dEEClKGokassX0hKSk44PxBGOS4E8cmNk+OMSY5+2cXfz8zI4hrG4jI9tnFpW/hqKx7PCnH1O7wpFkqeANT4IUVhopPTUwnNJxzSlUzLASV+4YfUIkpoQFTYvoMUFkJgtJ/Z6VEIyymx4usdCW5CuDc9s+dZDm6GeiejTl1jN6VFKUdMHMlUIWzaQEOdyrKHIsL0VZJB0TE1rUlLvCo71yPKya3dW+ONBQRBajUdPuKoXFsBAOiYoUdx7JtSXlU3ZJNAW1O+4ktBCFqBjLJhMW97JgyonISE5kVIJQJJ6tO6nueCJj1TV/D6uMzu06tH/H44NlRr3RnbNPLu7cXh75sWOklURzi5ZI9dgqG6tuEAf0bkWX0/0j6S6+RjfaYiQsbkKHhuNdms6kUExWZNGSlJgzkjIGjPK61KjLxOvGc/1/27r9KOQe7omHe+LhnvjQnmArLTyHMYHiPbGbFLEL4Q1BxOsiHrfy2HIBz67BXQbPsVbB4TNDZP/wF4x63cAxUl/PRtbXI61f2QM2/iuZUqleKr3ABp1Mxnn/rjvpOJN0b9K2k/73+Xi/VHOcGl4qyf8AzjWNo3icY2BkYGAA4uhnXafj+W2+MnCzgASiOB/va4DR///+/8/CysIElOBgAJEMAHS2DWQAAAB4nGNgZGBgYQABFtb/f///ZWFlYGRABToAW+YEPQAAAHicY2BgYGAhiP//J6wGCbNCMcP/vwxUBgDl4QRhAAAAeJxjYAACBQYThiCGAoYtjAyMZowBjPuYuJjCmBYxvWNWYXZhzmFewfyIRYUliPUOexr7EmIhAF3rF0sAeJxjYGRgYNBhZGRgZwABJiDmAkIGhv9gPgMADcIBTAB4nGWQPW7CQBSEx2BIAlKCFCkps1UKIpmfkgNAT0GXwpi1MbK91npBossJcoQcIaeIcoIcKGPzaGAtP38zb97uygAG+IWHenm4bWq9WrihOnGb9CDsk5+FO+jjRbhLfyjcwxumwn084p07eP4dnQFK4Rbu8SHcpv8p7JO/hDt4wrdwl/6PcA8r/An38eoN08gUsSncUif7LLRnef6utK1SU6hJMD5bC11oGzq9Ueujqg7J1LlYxdbkas6uzjKjSmt2OnLB1rlyNhrF4geRyZEigkGBuKkOS2gk2CNDCHvVvdQrpi0q+rVWmCDA+Cq1YKpokiGVxobJNY6sFQ48bUrXMa34Ws7kpLnMat4kIyv+77q3oxPRD7BtpkrMMOITX+SD5g75Pz0RXqgAAAB4nG2MyW6DQBiD+RKYpKT7vqf7Gg55pNHwEyJNGDSMRHj70nKtD7Zly45G0YA0+h8LRoyJSVBMmLJDyoxd9tjngEOOOOaEU84454JLrrjmhlvuuGfOA4888cwLr7zxzgeffPHNgixKtfeuzawUYTZYv16VITXaS8hy11azwf7FibGi/dS4Te2laWLj6k7lYiVIIv3aK9nWusqng2TLsXR900m2VMXaBvFxbXWnvBjn84mXor8pk54kqKa/NmUvVkyIg3NW/VK2jFvtKzQeR0uGRSgIrFlRYsip2FDT0LGNoh/MCkh9AAAA') format('woff')}[class*=' _icon-'],[class^='_icon-']{display:inline-block;font-family:eruda-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}._icon-arrow-left:before{content:'\\f101'}._icon-arrow-right:before{content:'\\f102'}._icon-caret-down:before{content:'\\f103'}._icon-caret-right:before{content:'\\f104'}._icon-clear:before{content:'\\f105'}._icon-compress:before{content:'\\f106'}._icon-copy:before{content:'\\f107'}._icon-delete:before{content:'\\f108'}._icon-error:before{content:'\\f109'}._icon-expand:before{content:'\\f10a'}._icon-eye:before{content:'\\f10b'}._icon-filter:before{content:'\\f10c'}._icon-play:before{content:'\\f10d'}._icon-record:before{content:'\\f10e'}._icon-refresh:before{content:'\\f10f'}._icon-reset:before{content:'\\f110'}._icon-search:before{content:'\\f111'}._icon-select:before{content:'\\f112'}._icon-tool:before{content:'\\f113'}._icon-warn:before{content:'\\f114'}",""]),b.exports=_},3645:function(b){b.exports=function(_){var d=[];return d.toString=function(){return this.map(function(k){var j=function($,et){var tt=$[1]||"",rt=$[3];if(!rt)return tt;if(et&&typeof btoa=="function"){var nt=(at=rt,it=btoa(unescape(encodeURIComponent(JSON.stringify(at)))),dt="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(it),"/*# ".concat(dt," */")),ot=rt.sources.map(function(ut){return"/*# sourceURL=".concat(rt.sourceRoot||"").concat(ut," */")});return[tt].concat(ot).concat([nt]).join(` `)}var at,it,dt;return[tt].join(` `)}(k,_);return k[2]?"@media ".concat(k[2]," {").concat(j,"}"):j}).join("")},d.i=function(k,j,$){typeof k=="string"&&(k=[[null,k,""]]);var et={};if($)for(var tt=0;tt-1&&at[nt].splice(it,1),this}},once:function(nt,ot){return this.on(nt,tt(ot)),this},emit:function(nt){var ot=this;if(j(this._events,nt)){var at=et(arguments,1),it=rt(this._events[nt]);return $(it,function(dt){return dt.apply(ot,at)},this),this}},removeAllListeners:function(nt){return nt?delete this._events[nt]:this._events={},this}},{mixin:function(nt){$(["on","off","once","emit","removeAllListeners"],function(ot){nt[ot]=_.prototype[ot]}),nt._events=nt._events||{}}}),b.exports=_},9640:function(b,_,d){var k=d(7496),j=d(4454),$=d(6472),et=d(3783),tt=d(2533);_=k({initialize:function(rt){$(rt)?(this.size=rt.length,et(rt,function(nt,ot){this[nt]=ot},this)):(this.size=tt(rt).length,et(rt,function(nt,ot){this[ot]=nt},this)),j(this)}}),b.exports=_},125:function(b,_,d){var k=d(5128),j=d(615),$=d(8887),et=d(4400),tt=d(4193),rt=d(5166),nt=j("local");_=k.extend({initialize:function(ot,at){this._name=ot,at=at||{};var it=nt.getItem(ot);try{it=JSON.parse(it)}catch{it={}}rt(it)||(it={}),at=tt(it,at),this.callSuper(k,"initialize",[at])},save:function(ot){if($(ot))return nt.removeItem(this._name);nt.setItem(this._name,et(ot))}}),b.exports=_},4989:function(b,_,d){var k=d(1443),j=d(9640),$=d(1352),et=d(1286),tt=d(4675),rt=d(6768),nt=d(3990);_=k.extend({initialize:function(ot,at){this.name=ot,this.setLevel(et(at)?_.level.DEBUG:at),this.callSuper(k,"initialize",arguments)},setLevel:function(ot){return rt(ot)?((ot=_.level[ot.toUpperCase()])&&(this._level=ot),this):(nt(ot)&&(this._level=ot),this)},getLevel:function(){return this._level},formatter:function(ot,at){return at},trace:function(){return this._log("trace",arguments)},debug:function(){return this._log("debug",arguments)},info:function(){return this._log("info",arguments)},warn:function(){return this._log("warn",arguments)},error:function(){return this._log("error",arguments)},_log:function(ot,at){return(at=$(at)).length===0?this:(this.emit("all",ot,tt(at)),_.level[ot.toUpperCase()]-1&&this._listeners.splice(rt,1)},rmAllListeners:function(){this._listeners=[]},emit:function(){var tt=this,rt=et(arguments),nt=j(this._listeners);$(nt,function(ot){return ot.apply(tt,rt)},this)}},{mixin:function(tt){$(["addListener","rmListener","emit","rmAllListeners"],function(rt){tt[rt]=_.prototype[rt]}),tt._listeners=tt._listeners||[]}}),b.exports=_},9001:function(b,_,d){var k=d(7496),j=d(1527);_=k({initialize:function(){this.clear()},clear:function(){this._items=[],this.size=0},push:function($){return this._items.push($),++this.size},pop:function(){if(this.size)return this.size--,this._items.pop()},peek:function(){return this._items[this.size-1]},forEach:function($,et){et=arguments.length>1?et:this;for(var tt=this._items,rt=this.size-1,nt=0;rt>=0;rt--,nt++)$.call(et,tt[rt],nt,this)},toArr:function(){return j(this._items)}}),b.exports=_},5128:function(b,_,d){var k=d(1443),j=d(6768),$=d(5166),et=d(3783),tt=d(1352);_=k.extend({initialize:function(rt){this.callSuper(k,"initialize",arguments),this._data=rt||{},this.save(this._data)},set:function(rt,nt){var ot;j(rt)?(ot={})[rt]=nt:$(rt)&&(ot=rt);var at=this;et(ot,function(it,dt){var ut=at._data[dt];at._data[dt]=it,at.emit("change",dt,it,ut)}),this.save(this._data)},get:function(rt){var nt=this._data;if(j(rt))return nt[rt];var ot={};return et(rt,function(at){ot[at]=nt[at]}),ot},remove:function(rt){rt=tt(rt);var nt=this._data;et(rt,function(ot){delete nt[ot]}),this.save(nt)},clear:function(){this._data={},this.save(this._data)},each:function(rt){et(this._data,rt)},save:function(rt){this._data=rt}}),b.exports=_},6334:function(b,_,d){var k=d(7496),j=d(6329),$=d(4331),et=d(1745),tt=d(8887),rt=d(3783),nt=d(6472),ot=d(1352),at=d(2727),it=d(5166),dt=d(3367);_=k({className:"Url",initialize:function(lt){!lt&&at&&(lt=window.location.href),j(this,_.parse(lt||""))},setQuery:function(lt,ct){var gt=this.query;return it(lt)?rt(lt,function(st,Ct){gt[Ct]=dt(st)}):gt[lt]=dt(ct),this},rmQuery:function(lt){var ct=this.query;return nt(lt)||(lt=ot(lt)),rt(lt,function(gt){delete ct[gt]}),this},toString:function(){return _.stringify(this)}},{parse:function(lt){var ct={protocol:"",auth:"",hostname:"",hash:"",query:{},port:"",pathname:"",slashes:!1},gt=$(lt),st=!1,Ct=gt.match(ut);if(Ct&&(Ct=Ct[0],ct.protocol=Ct.toLowerCase(),gt=gt.substr(Ct.length)),Ct&&(st=gt.substr(0,2)==="//")&&(gt=gt.slice(2),ct.slashes=!0),st){for(var xt=gt,wt=-1,Mt=0,kt=ft.length;Mt-1&&(xt=gt.slice(0,wt),gt=gt.slice(wt));var Tt=xt.lastIndexOf("@");Tt!==-1&&(ct.auth=decodeURIComponent(xt.slice(0,Tt)),xt=xt.slice(Tt+1)),ct.hostname=xt;var At=xt.match(ht);At&&((At=At[0])!==":"&&(ct.port=At.substr(1)),ct.hostname=xt.substr(0,xt.length-At.length))}var Et=gt.indexOf("#");Et!==-1&&(ct.hash=gt.substr(Et),gt=gt.slice(0,Et));var Ot=gt.indexOf("?");return Ot!==-1&&(ct.query=et.parse(gt.substr(Ot+1)),gt=gt.slice(0,Ot)),ct.pathname=gt||"/",ct},stringify:function(lt){var ct=lt.protocol+(lt.slashes?"//":"")+(lt.auth?encodeURIComponent(lt.auth)+"@":"")+lt.hostname+(lt.port?":"+lt.port:"")+lt.pathname;return tt(lt.query)||(ct+="?"+et.stringify(lt.query)),lt.hash&&(ct+=lt.hash),ct}});var ut=/^([a-z0-9.+-]+:)/i,ht=/:[0-9]*$/,ft=["/","?","#"];b.exports=_},8991:function(b,_,d){var k=d(4777),j=d(1214),$=d(4193),et=d(5166),tt=d(1745);function rt(nt,ot,at,it){return k(ot)&&(it=at,at=ot,ot={}),{url:nt,data:ot,success:at,dataType:it}}(_=function(nt){$(nt,_.setting);var ot,at=nt.type,it=nt.url,dt=nt.data,ut=nt.dataType,ht=nt.success,ft=nt.error,lt=nt.timeout,ct=nt.complete,gt=nt.xhr();return gt.onreadystatechange=function(){if(gt.readyState===4){var st;clearTimeout(ot);var Ct=gt.status;if(Ct>=200&&Ct<300||Ct===304){st=gt.responseText,ut==="xml"&&(st=gt.responseXML);try{ut==="json"&&(st=JSON.parse(st))}catch{}ht(st,gt)}else ft(gt);ct(gt)}},at==="GET"?(dt=tt.stringify(dt))&&(it+=it.indexOf("?")>-1?"&"+dt:"?"+dt):nt.contentType==="application/x-www-form-urlencoded"?et(dt)&&(dt=tt.stringify(dt)):nt.contentType==="application/json"&&et(dt)&&(dt=JSON.stringify(dt)),gt.open(at,it,!0),gt.setRequestHeader("Content-Type",nt.contentType),lt>0&&(ot=setTimeout(function(){gt.onreadystatechange=j,gt.abort(),ft(gt,"timeout"),ct(gt)},lt)),gt.send(at==="GET"?null:dt),gt}).setting={type:"GET",success:j,error:j,complete:j,dataType:"json",contentType:"application/x-www-form-urlencoded",data:{},xhr:function(){return new XMLHttpRequest},timeout:0},_.get=function(){return _(rt.apply(null,arguments))},_.post=function(){var nt=rt.apply(null,arguments);return nt.type="POST",_(nt)},b.exports=_},1116:function(b,_,d){var k=d(2533),j=d(415),$=d(42),et=Object.getOwnPropertyNames,tt=Object.getOwnPropertySymbols;_=function(rt){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ot=nt.prototype,at=ot===void 0||ot,it=nt.unenumerable,dt=it!==void 0&&it,ut=nt.symbol,ht=ut!==void 0&&ut,ft=[];if((dt||ht)&&et){var lt=k;dt&&et&&(lt=et);do ft=ft.concat(lt(rt)),ht&&tt&&(ft=ft.concat(tt(rt)));while(at&&(rt=j(rt))&&rt!==Object.prototype);ft=$(ft)}else if(at)for(var ct in rt)ft.push(ct);else ft=k(rt);return ft},b.exports=_},7913:function(b,_,d){var k=d(3783),j=d(1286),$=d(4777);_=function(et,tt){j(tt)&&(tt=!0);var rt=$(tt),nt={};return k(et,function(ot){nt[ot]=rt?tt(ot):tt}),nt},b.exports=_},3901:function(b,_){_={encode:function(et){var tt,rt,nt=[],ot=et.length,at=ot%3;ot-=at;for(var it=0;it>18&63]+k[tt>>12&63]+k[tt>>6&63]+k[63&tt]));return ot=et.length,at===1?(rt=et[ot-1],nt.push(k[rt>>2]),nt.push(k[rt<<4&63]),nt.push("==")):at===2&&(rt=(et[ot-2]<<8)+et[ot-1],nt.push(k[rt>>10]),nt.push(k[rt>>4&63]),nt.push(k[rt<<2&63]),nt.push("=")),nt.join("")},decode:function(et){var tt=et.length,rt=0;et[tt-2]==="="?rt=2:et[tt-1]==="="&&(rt=1);var nt,ot,at,it,dt,ut,ht,ft=new Array(3*tt/4-rt);for(tt=rt>0?tt-4:tt,nt=0,ot=0;nt>16&255,ft[ot++]=lt>>8&255,ft[ot++]=255<}return rt===2?(ht=d[et.charCodeAt(nt)]<<2|d[et.charCodeAt(nt+1)]>>4,ft[ot++]=255&ht):rt===1&&(ht=d[et.charCodeAt(nt)]<<10|d[et.charCodeAt(nt+1)]<<4|d[et.charCodeAt(nt+2)]>>2,ft[ot++]=ht>>8&255,ft[ot++]=255&ht),ft}};for(var d=[],k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",j=0,$=k.length;j<$;j++)d[k.charCodeAt(j)]=j;b.exports=_},5637:function(b,_){_=function(d,k){var j;return function(){return--d>0&&(j=k.apply(this,arguments)),d<=1&&(k=null),j}},b.exports=_},7494:function(b,_,d){var k=d(8935);function j($,et){this[et]=$.replace(/\w/,function(tt){return tt.toUpperCase()})}_=function($){var et=k($),tt=et[0];return et.shift(),et.forEach(j,et),tt+=et.join("")},b.exports=_},2848:function(b,_,d){var k=d(6257),j=d(6472);_=function(tt,rt){if(j(tt))return tt;if(rt&&k(rt,tt))return[tt];var nt=[];return tt.replace($,function(ot,at,it,dt){nt.push(it?dt.replace(et,"$1"):at||ot)}),nt};var $=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/\\(\\)?/g;b.exports=_},996:function(b,_){_=function(d,k){var j=[];k=k||1;for(var $=0,et=Math.ceil(d.length/k);$et?et:j},b.exports=_},4675:function(b,_,d){var k=d(5166),j=d(6472),$=d(6329);_=function(et){return k(et)?j(et)?et.slice():$({},et):et},b.exports=_},550:function(b,_,d){var k=d(5166),j=d(4777),$=d(6472),et=d(8820);_=function(tt){return $(tt)?tt.map(function(rt){return _(rt)}):k(tt)&&!j(tt)?et(tt,function(rt){return _(rt)}):tt},b.exports=_},8099:function(b,_,d){var k=d(1352);_=function(){for(var j=k(arguments),$=[],et=0,tt=j.length;et-1:($(tt)||(tt=et(tt)),k(tt,rt)>=0)},b.exports=_},1792:function(b,_,d){var k=d(6768),j=d(3901),$=d(385),et=d(6472),tt=d(2349),rt=d(3085),nt=d(3063);(_=function(ot,at){var it;if(at=nt(at),k(ot))it=new Uint8Array(j.decode(ot));else if($(ot))ot=ot.slice(0),it=new Uint8Array(ot);else if(et(ot))it=new Uint8Array(ot);else if(rt(ot)==="uint8array")it=ot.slice(0);else if(tt(ot)){it=new Uint8Array(ot.length);for(var dt=0;dt0?"-":"+")+tt(100*Math.floor(Math.abs(_t)/60)+Math.abs(_t)%60,4),S:["th","st","nd","rd"][ct%10>3?0:(ct%100-ct%10!=10)*ct%10]};return dt.replace(rt,function(At){return At in Tt?Tt[At]:At.slice(1,At.length-1)})};var tt=function(it){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return et($(it),dt,"0")},rt=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|"[^"]*"|'[^']*'/g,nt=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,ot=/\d/,at=/[^-+\dA-Z]/g;_.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},_.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},b.exports=_},6049:function(b,_){_=function(d,k,j){var $;return function(){var et=this,tt=arguments;j||clearTimeout($),j&&$||($=setTimeout(function(){$=null,d.apply(et,tt)},k))}},b.exports=_},1420:function(b,_,d){var k=d(3783),j=d(8166),$=d(2461),et=d(5742);function tt(nt){return+("0x"+nt)}_=function(nt){try{return decodeURIComponent(nt)}catch{var ot=nt.match(rt);return ot&&k(ot,function(it){nt=nt.replace(it,function(dt){dt=dt.split("%").slice(1);var ut=$(dt,tt);return dt=j.encode(ut),dt=et.decode(dt,!0),dt}(it))}),nt}};var rt=/(%[a-f0-9]{2})+/gi;b.exports=_},4193:function(b,_,d){_=d(4427)(d(1116),!0),b.exports=_},9803:function(b,_,d){var k=d(2848),j=d(6768),$=d(5166),et=d(3783);function tt(rt,nt,ot){for(var at=k(nt,rt),it=at.pop();nt=at.shift();)rt[nt]||(rt[nt]={}),rt=rt[nt];Object.defineProperty(rt,it,ot)}_=function(rt,nt,ot){return j(nt)?tt(rt,nt,ot):$(nt)&&et(nt,function(at,it){tt(rt,it,at)}),rt},b.exports=_},2443:function(b,_,d){var k=d(7496),j=d(6341);function $(){return!0}function et(){return!1}function tt(nt){var ot,at=this.events[nt.type],it=rt.call(this,nt,at);nt=new _.Event(nt);for(var dt,ut,ht=0;(ut=it[ht++])&&!nt.isPropagationStopped();)for(nt.curTarget=ut.el,dt=0;(ot=ut.handlers[dt++])&&!nt.isImmediatePropagationStopped();)ot.handler.apply(ut.el,[nt])===!1&&(nt.preventDefault(),nt.stopPropagation())}function rt(nt,ot){var at,it,dt,ut,ht=nt.target,ft=[],lt=ot.delegateCount;if(ht.nodeType)for(;ht!==this;ht=ht.parentNode||this){for(it=[],ut=0;ut-1)return j(ot.substring(it+at.length,ot.indexOf(".",it)))}b.exports=_},6954:function(b,_,d){var k=d(2727);_=function(j){if(j=(j=j||(k?navigator.userAgent:"")).toLowerCase(),$("windows phone"))return"windows phone";if($("win"))return"windows";if($("android"))return"android";if($("ipad")||$("iphone")||$("ipod"))return"ios";if($("mac"))return"os x";if($("linux"))return"linux";function $(et){return j.indexOf(et)>-1}return"unknown"},b.exports=_},801:function(b,_,d){var k=d(1137),j=d(1225),$=d(5972),et=d(6341);_=k(function(tt,rt){return rt=j(rt),$(tt,function(nt){return!et(rt,nt)})}),b.exports=_},3783:function(b,_,d){var k=d(1369),j=d(2533),$=d(3955);_=function(et,tt,rt){var nt,ot;if(tt=$(tt,rt),k(et))for(nt=0,ot=et.length;nt=0&&d.indexOf(k,j)===j},b.exports=_},8901:function(b,_,d){var k=d(2533),j=(_=function(nt){return et.test(nt)?nt.replace(tt,rt):nt}).map={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},$="(?:"+k(j).join("|")+")",et=new RegExp($),tt=new RegExp($,"g"),rt=function(nt){return j[nt]};b.exports=_},4187:function(b,_,d){var k=d(3367);_=function($){return k($).replace(j,function(et){switch(et){case'"':case"'":case"\\":return"\\"+et;case` -`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029"}})};var j=/["'\\\n\r\u2028\u2029]/g;b.exports=_},2337:function(b,_){_=function(d){return d.replace(/\W/g,"\\$&")},b.exports=_},642:function(b,_){_=function(d){var k=document.createElement("style");return k.textContent=d,k.type="text/css",document.head.appendChild(k),k},b.exports=_},1672:function(b,_,d){var k=d(2838),j=d(1369),$=d(2533);_=function(et,tt,rt){tt=k(tt,rt);for(var nt=!j(et)&&$(et),ot=(nt||et).length,at=0;at[\]\u2100-\uFFFF(),]*/gi;b.exports=_},5972:function(b,_,d){var k=d(2838),j=d(3783);_=function($,et,tt){var rt=[];return et=k(et,tt),j($,function(nt,ot,at){et(nt,ot,at)&&rt.push(nt)}),rt},b.exports=_},2244:function(b,_,d){var k=d(2267),j=d(4072),$=d(1369),et=d(1286);_=function(tt,rt,nt){var ot=($(tt)?j:k)(tt,rt,nt);if(!et(ot)&&ot!==-1)return tt[ot]},b.exports=_},4072:function(b,_,d){var k=d(2838);_=function(j,$,et,tt){tt=tt||1,$=k($,et);for(var rt=j.length,nt=tt>0?0:rt-1;nt>=0&&nt2?it-2:0),ut=2;ut>>4).toString(16)),$.push((15&rt).toString(16))}return $.join("")},decode:function(j){var $=[],et=j.length;k(et)&&et--;for(var tt=0;tt1&&arguments[1]!==void 0?arguments[1]:"js",nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};j(nt,$),tt=tt.replace(//g,">"),rt=et[rt];var ot=0,at=[];k(rt,function(dt){dt.language&&(tt=tt.replace(dt.re,function(ut,ht){return ht?(at[ot++]=_(ht,dt.language,nt),ut.replace(ht,"___subtmpl"+(ot-1)+"___")):ut}))}),k(rt,function(dt,ut){et[dt.language]||(tt=tt.replace(dt.re,"___"+ut+"___$1___end"+ut+"___"))});var it=[];return tt=tt.replace(/___(?!subtmpl)\w+?___/g,function(dt){var ut=dt.substr(3,3)==="end",ht=(ut?dt.substr(6):dt.substr(3)).replace(/_/g,""),ft=it.length>0?it[it.length-1]:null;return!ut&&(ft==null||ht==ft||ft!=null&&rt[ft]&&rt[ft].embed!=null&&rt[ft].embed.indexOf(ht)>-1)?(it.push(ht),dt):ut&&ht==ft?(it.pop(),dt):""}),k(rt,function(dt,ut){var ht=nt[dt.style]?' style="'.concat(nt[dt.style],'"'):"";tt=tt.replace(new RegExp("___end"+ut+"___","g"),"").replace(new RegExp("___"+ut+"___","g"),'"))}),k(rt,function(dt){dt.language&&(tt=tt.replace(/___subtmpl\d+___/g,function(ut){var ht=parseInt(ut.replace(/___subtmpl(\d+)___/,"$1"),10);return at[ht]}))}),tt};var $={comment:"color:#63a35c;",string:"color:#183691;",number:"color:#0086b3;",keyword:"color:#a71d5d;",operator:"color:#994500;"},et={js:{comment:{re:/(\/\/.*|\/\*([\s\S]*?)\*\/)/g,style:"comment"},string:{re:/(('.*?')|(".*?"))/g,style:"string"},numbers:{re:/(-?(\d+|\d+\.\d+|\.\d+))/g,style:"number"},keywords:{re:/(?:\b)(function|for|foreach|while|if|else|elseif|switch|break|as|return|this|class|self|default|var|const|let|false|true|null|undefined)(?:\b)/gi,style:"keyword"},operator:{re:/(\+|-|\/|\*|%|=|<|>|\||\?|\.)/g,style:"operator"}}};et.html={comment:{re:/(<!--([\s\S]*?)-->)/g,style:"comment"},tag:{re:/(<\/?\w(.|\n)*?\/?>)/g,style:"keyword",embed:["string"]},string:et.js.string,css:{re:/(?:<style.*?>)([\s\S]*)?(?:<\/style>)/gi,language:"css"},script:{re:/(?:<script.*?>)([\s\S]*?)(?:<\/script>)/gi,language:"js"}},et.css={comment:et.js.comment,string:et.js.string,numbers:{re:/((-?(\d+|\d+\.\d+|\.\d+)(%|px|em|pt|in)?)|#[0-9a-fA-F]{3}[0-9a-fA-F]{3})/g,style:"number"},keywords:{re:/(@\w+|:?:\w+|[a-z-]+:)/g,style:"keyword"}},b.exports=_},5925:function(b,_){_=function(k){var j,$,et,tt=k[0]/360,rt=k[1]/100,nt=k[2]/100,ot=[];if(k[3]&&(ot[3]=k[3]),rt===0)return et=d(255*nt),ot[0]=ot[1]=ot[2]=et,ot;for(var at=2*nt-(j=nt<.5?nt*(1+rt):nt+rt-nt*rt),it=0;it<3;it++)($=tt+.3333333333333333*-(it-1))<0&&$++,$>1&&$--,et=6*$<1?at+6*(j-at)*$:2*$<1?j:3*$<2?at+(j-at)*(.6666666666666666-$)*6:at,ot[it]=d(255*et);return ot};var d=Math.round;b.exports=_},7483:function(b,_,d){var k=d(8702),j=d(9001),$=d(6472),et=d(3783),tt=d(6768),rt=d(8820),nt=function(at){return at.replace(/"/g,'"')},ot=function(at){return at.replace(/"/g,""")};_={parse:function(at){var it=[],dt=new j;return k(at,{start:function(ut,ht){ht=rt(ht,function(ft){return nt(ft)}),dt.push({tag:ut,attrs:ht})},end:function(){var ut=dt.pop();if(dt.size){var ht=dt.peek();$(ht.content)||(ht.content=[]),ht.content.push(ut)}else it.push(ut)},comment:function(ut){var ht=""),ft=dt.peek();ft?(ft.content||(ft.content=[]),ft.content.push(ht)):it.push(ht)},text:function(ut){var ht=dt.peek();ht?(ht.content||(ht.content=[]),ht.content.push(ut)):it.push(ut)}}),it},stringify:function at(it){var dt="";return $(it)?et(it,function(ut){return dt+=at(ut)}):tt(it)?dt=it:(dt+="<".concat(it.tag),et(it.attrs,function(ut,ht){return dt+=" ".concat(ht,'="').concat(ot(ut),'"')}),dt+=">",it.content&&(dt+=at(it.content)),dt+="")),dt}},b.exports=_},6362:function(b,_){_=function(d){return d},b.exports=_},496:function(b,_){_=function(d,k,j){return Array.prototype.indexOf.call(d,k,j)},b.exports=_},5022:function(b,_,d){var k=d(1662);_=function(j,$){j.prototype=k($.prototype)},b.exports=_},7190:function(b,_,d){var k=d(3783);_=function(j){var $={};return k(j,function(et,tt){$[et]=tt}),$},b.exports=_},7403:function(b,_,d){var k=d(106);_=function(j){return k(j)==="[object Arguments]"},b.exports=_},6472:function(b,_,d){var k=d(106);_=Array.isArray?Array.isArray:function(j){return k(j)==="[object Array]"},b.exports=_},385:function(b,_,d){var k=d(106);_=function(j){return k(j)==="[object ArrayBuffer]"},b.exports=_},1369:function(b,_,d){var k=d(3990),j=d(4777),$=Math.pow(2,53)-1;_=function(et){if(!et)return!1;var tt=et.length;return k(tt)&&tt>=0&&tt<=$&&!j(et)},b.exports=_},4696:function(b,_){_=function(d){return d===!0||d===!1},b.exports=_},2727:function(b,_){_=typeof window=="object"&&typeof document=="object"&&document.nodeType===9,b.exports=_},2349:function(b,_,d){var k=d(4777);_=function(j){return j!=null&&(!!j._isBuffer||j.constructor&&k(j.constructor.isBuffer)&&j.constructor.isBuffer(j))},b.exports=_},2520:function(b,_,d){var k=new(d(2765))("(prefers-color-scheme: dark)");_=function(){return k.isMatch()},b.exports=_},2106:function(b,_,d){var k=d(106);_=function(j){return k(j)==="[object Date]"},b.exports=_},9833:function(b,_){_=function(d){return!(!d||d.nodeType!==1)},b.exports=_},8887:function(b,_,d){var k=d(1369),j=d(6472),$=d(6768),et=d(7403),tt=d(2533);_=function(rt){return rt==null||(k(rt)&&(j(rt)||$(rt)||et(rt))?rt.length===0:tt(rt).length===0)},b.exports=_},2749:function(b,_,d){var k=d(106);_=function(j){return k(j)==="[object Error]"},b.exports=_},4777:function(b,_,d){var k=d(106);_=function(j){var $=k(j);return $==="[object Function]"||$==="[object GeneratorFunction]"||$==="[object AsyncFunction]"},b.exports=_},9585:function(b,_,d){var k=d(5610),j=k.getComputedStyle,$=k.document;function et(tt,rt){return tt.rightrt.right||tt.bottomrt.bottom}_=function(tt){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},nt=rt.display,ot=nt===void 0||nt,at=rt.visibility,it=at!==void 0&&at,dt=rt.opacity,ut=dt!==void 0&&dt,ht=rt.size,ft=ht!==void 0&&ht,lt=rt.viewport,ct=lt!==void 0&<,gt=rt.overflow,st=gt!==void 0&>if(ot)return tt.offsetParent===null;var Ct=j(tt);if(it&&Ct.visibility==="hidden")return!0;if(ut){if(Ct.opacity==="0")return!0;for(var xt=tt;xt=xt.parentElement;)if(j(xt).opacity==="0")return!0}var wt=tt.getBoundingClientRect();if(ft&&(wt.width===0||wt.height===0))return!0;if(ct)return et(wt,{top:0,left:0,right:$.documentElement.clientWidth,bottom:$.documentElement.clientHeight});if(st)for(var Mt=tt;Mt=Mt.parentElement;){var kt=j(Mt).overflow;if((kt==="scroll"||kt==="hidden")&&et(wt,Mt.getBoundingClientRect()))return!0}return!1},b.exports=_},2246:function(b,_,d){var k=d(3990);_=function(j){return k(j)&&j%1==0},b.exports=_},4219:function(b,_){_=function(d){try{return JSON.parse(d),!0}catch{return!1}},b.exports=_},3708:function(b,_,d){var k=d(106);_=function(j){return k(j)==="[object Map]"},b.exports=_},7949:function(b,_,d){var k=d(2533);_=function(j,$){var et=k($),tt=et.length;if(j==null)return!tt;j=Object(j);for(var rt=0;rt1&&arguments[1]!==void 0?arguments[1]:_.defComparator,j=0,$=d.length;j<$-1;j++)if(k(d[j],d[j+1])>0)return!1;return!0},_.defComparator=function(d,k){return dk?1:0},b.exports=_},6768:function(b,_,d){var k=d(106);_=function(j){return k(j)==="[object String]"},b.exports=_},9804:function(b,_){_=function(d){return typeof d=="symbol"},b.exports=_},1286:function(b,_){_=function(d){return d===void 0},b.exports=_},7622:function(b,_,d){var k=d(8935);_=function(j){return k(j).join("-")},b.exports=_},2533:function(b,_,d){var k=d(6257);_=Object.keys?Object.keys:function(j){var $=[];for(var et in j)k(j,et)&&$.push(et);return $},b.exports=_},9702:function(b,_){_=function(d){var k=d?d.length:0;if(k)return d[k-1]},b.exports=_},3988:function(b,_,d){var k=d(2581),j=d(3783),$=d(2337);function et(tt){return''+tt+""}_=function(tt,rt){rt=rt||et;var nt=k(tt);return j(nt,function(ot){tt=tt.replace(new RegExp($(ot),"g"),rt)}),tt},b.exports=_},9622:function(b,_){_=function(d,k){var j=document.createElement("script");j.src=d,j.onload=function(){var $=j.readyState&&j.readyState!="complete"&&j.readyState!="loaded";k&&k(!$)},j.onerror=function(){k(!1)},document.body.appendChild(j)},b.exports=_},3063:function(b,_,d){var k=d(3367);_=function(j){return k(j).toLocaleLowerCase()},b.exports=_},5351:function(b,_,d){var k=d(4552),j=d(3367);_=function($,et,tt){var rt=($=j($)).length;return tt=tt||" ",rt=rt?"":k.substr(tt,rt)},b.exports=_},2461:function(b,_,d){var k=d(2838),j=d(2533),$=d(1369);_=function(et,tt,rt){tt=k(tt,rt);for(var nt=!$(et)&&j(et),ot=(nt||et).length,at=Array(ot),it=0;itk&&(k=d[j]);return k},b.exports=_},5026:function(b,_,d){var k=d(2533);_={getItem:function(nt){return($[nt]?j[nt]:this[nt])||null},setItem:function(nt,ot){$[nt]?j[nt]=ot:this[nt]=ot},removeItem:function(nt){$[nt]?delete j[nt]:delete this[nt]},key:function(nt){var ot=et();return nt>=0&&nt=$[et[it]]){at=et[it];break}return+(ot/$[at]).toFixed(2)+at};var $={ms:1,s:1e3};$.m=60*$.s,$.h=60*$.m,$.d=24*$.h,$.y=365.25*$.d;var et=["y","d","h","m","s"],tt=/^((?:\d+)?\.?\d+) *(s|m|h|d|y)?$/;b.exports=_},7658:function(b,_,d){var k=d(6930),j=d(5610),$=d(3367);function et(tt,rt){if(tt=$(tt),rt=$(rt),k(tt,"_")&&!k(rt,"_"))return 1;if(k(rt,"_")&&!k(tt,"_"))return-1;for(var nt,ot,at,it,dt=/^\d+|^\D+/;;){if(!tt)return rt?-1:0;if(!rt)return 1;if(nt=tt.match(dt)[0],ot=rt.match(dt)[0],at=!j.isNaN(nt),it=!j.isNaN(ot),at&&!it)return-1;if(it&&!at)return 1;if(at&&it){var ut=nt-ot;if(ut)return ut;if(nt.length!==ot.length)return+nt||+ot?ot.length-nt.length:nt.length-ot.length}else if(nt!==ot)return ntwindow.innerHeight?"landscape":"portrait"}},k.mixin(_),window.addEventListener("orientationchange",function(){setTimeout(function(){_.emit("change",_.get())},200)},!1),b.exports=_},8702:function(b,_,d){var k=d(9702),j=d(7913),$=d(6930),et=d(3063);_=function(it,dt){for(var ut,ht=[],ft=it;it;){if(ut=!0,k(ht)&&at[k(ht)]){var lt=new RegExp("]*>")).exec(it);if(lt){var ct=it.substring(0,lt.index);it=it.substring(lt.index+lt[0].length),ct&&dt.text&&dt.text(ct)}_t("",k(ht))}else{if($(it,"");gt>=0&&(dt.comment&&dt.comment(it.substring(4,gt)),it=it.substring(gt+3),ut=!1)}else if($(it,"=0&&ht[Et]!==At;Et--);else Et=0;if(Et>=0){for(var Ot=ht.length-1;Ot>=Et;Ot--)dt.end&&dt.end(ht[Ot]);ht.length=Et}}_t()};var tt=/^\s]+))?)*)\s*(\/?)>/i,rt=/^<\/([-A-Za-z0-9_]+)[^>]*>/,nt=/^<([-A-Za-z0-9_]+)((?:\s+[-A-Za-z0-9_:@.]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/i,ot=/([-A-Za-z0-9_:@.]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,at=j("script,style".split(","));b.exports=_},4198:function(b,_,d){var k=d(1137),j=d(1352);_=k(function($,et){return function(){var tt=[];return tt=(tt=tt.concat(et)).concat(j(arguments)),$.apply(this,tt)}}),b.exports=_},1194:function(b,_,d){var k,j=d(8847),$=d(5610),et=$.performance,tt=$.process;if(et&&et.now)_=function(){return et.now()};else if(tt&&tt.hrtime){var rt=function(){var nt=tt.hrtime();return 1e9*nt[0]+nt[1]};k=rt()-1e9*tt.uptime(),_=function(){return(rt()-k)/1e6}}else k=j(),_=function(){return j()-k};b.exports=_},3487:function(b,_,d){var k=d(6768),j=d(6472),$=d(6341),et=d(3783);_=function(tt,rt,nt){if(k(rt)&&(rt=[rt]),j(rt)){var ot=rt;rt=function(dt,ut){return $(ot,ut)}}var at={},it=function(dt,ut){rt(dt,ut)&&(at[ut]=dt)};return nt&&(it=function(dt,ut){rt(dt,ut)||(at[ut]=dt)}),et(tt,it),at},b.exports=_},747:function(b,_,d){var k=d(1475),j=d(7494),$=d(3023),et=d(6257),tt=d(7622);(_=k(function(at){if(at=at.replace(nt,""),at=j(at),et(ot,at))return at;for(var it=rt.length;it--;){var dt=rt[it]+$(at);if(et(ot,dt))return dt}return at})).dash=k(function(at){var it=_(at);return(nt.test(it)?"-":"")+tt(it)});var rt=["O","ms","Moz","Webkit"],nt=/^(O)|(ms)|(Moz)|(Webkit)|(-o-)|(-ms-)|(-moz-)|(-webkit-)/g,ot=document.createElement("p").style;b.exports=_},2994:function(b,_,d){var k=d(6472),j=d(7653);_=function($){return k($)?function(tt){return j(tt,$)}:(et=$,function(tt){return tt==null?void 0:tt[et]});var et},b.exports=_},1745:function(b,_,d){var k=d(4331),j=d(3783),$=d(1286),et=d(6472),tt=d(2461),rt=d(8887),nt=d(5972),ot=d(5166);_={parse:function(it){var dt={};return it=k(it).replace(at,""),j(it.split("&"),function(ut){var ht=ut.split("="),ft=ht.shift(),lt=ht.length>0?ht.join("="):null;ft=decodeURIComponent(ft),lt=decodeURIComponent(lt),$(dt[ft])?dt[ft]=lt:et(dt[ft])?dt[ft].push(lt):dt[ft]=[dt[ft],lt]}),dt},stringify:function(it,dt){return nt(tt(it,function(ut,ht){return ot(ut)&&rt(ut)?"":et(ut)?_.stringify(ut,ht):encodeURIComponent(dt||ht)+"="+encodeURIComponent(ut)}),function(ut){return ut.length>0}).join("&")}};var at=/^(\?|#|&)/g;b.exports=_},1571:function(b,_,d){var k,j,$=d(8847),et=d(2727),tt=0;if(et){k=window.requestAnimationFrame,j=window.cancelAnimationFrame;for(var rt=["ms","moz","webkit","o"],nt=0,ot=rt.length;nt0;)1&k&&(j+=d),k>>=1,d+=d;return j},b.exports=_},8368:function(b,_,d){var k=d(2337);_=function(j,$,et){return j.replace(new RegExp(k($),"g"),et)},b.exports=_},1137:function(b,_){_=function(d,k){return k=k==null?d.length-1:+k,function(){var j,$=Math.max(arguments.length-k,0),et=new Array($);for(j=0;j<$;j++)et[j]=arguments[j+k];switch(k){case 0:return d.call(this,et);case 1:return d.call(this,arguments[0],et);case 2:return d.call(this,arguments[0],arguments[1],et)}var tt=new Array(k+1);for(j=0;j=0;dt--){var ut=nt[dt];if(ut!==""){if(lt({domain:at=at===""?ut:ut+"."+at,path:$="/"})||lt({domain:at}))return;for(var ht=0;ht=0;)for(rt=!1,j=-1,$=d.charAt(et);++j=0?d.substring(0,et+1):""},b.exports=_},2838:function(b,_,d){var k=d(4777),j=d(5166),$=d(6472),et=d(3955),tt=d(4491),rt=d(6362),nt=d(2994);_=function(ot,at,it){return ot==null?rt:k(ot)?et(ot,at,it):j(ot)&&!$(ot)?tt(ot):nt(ot)},b.exports=_},7653:function(b,_,d){var k=d(1286),j=d(2848);_=function($,et){var tt;for(tt=(et=j(et,$)).shift();!k(tt);){if(($=$[tt])==null)return;tt=et.shift()}return $},b.exports=_},8079:function(b,_,d){var k=d(2848),j=d(1286),$=d(3367),et=d(9804),tt=d(6768);_=function(rt,nt,ot){var at,it=(nt=k(nt,rt)).pop();for(at=nt.shift();!j(at);){if(tt(at)||et(at)||(at=$(at)),at==="__proto__"||at==="constructor"||at==="prototype")return;rt[at]||(rt[at]={}),rt=rt[at],at=nt.shift()}rt[it]=ot},b.exports=_},615:function(b,_,d){var k=d(5026);_=function(j){var $;switch(j=j||"local"){case"local":$=window.localStorage;break;case"session":$=window.sessionStorage}try{var et="test-localStorage-"+Date.now();$.setItem(et,et);var tt=$.getItem(et);if($.removeItem(et),tt!==et)throw new Error}catch{return k}return $},b.exports=_},4224:function(b,_,d){var k=d(6334);_=function(j,$){return j=new k(j),$=new k($),j.port=0|j.port||(j.protocol==="https"?443:80),$.port=0|$.port||($.protocol==="https"?443:80),j.protocol===$.protocol&&j.hostname===$.hostname&&j.port===$.port},b.exports=_},9677:function(b,_){_=function(d,k,j){var $=d.length;k=k==null?0:k<0?Math.max($+k,0):Math.min(k,$),j=j==null?$:j<0?Math.max($+j,0):Math.min(j,$);for(var et=[];k1&&arguments[1]!==void 0?arguments[1]:{};j(ot,rt);var at=ot.deep,it=ot.comparator,dt=[],ut=[];return function ht(ft){var lt,ct=dt.indexOf(ft);if(ct>-1)return ut[ct];if(et(ft)){lt=[],dt.push(ft),ut.push(lt);for(var gt=0,st=ft.length;gt0){var ht=at.indexOf(this);ht>-1?(at.splice(ht+1),it.splice(ht,1/0,dt)):(at.push(this),it.push(dt));var ft=at.indexOf(ut);ft>-1&&(ut=at[0]===ut?"[Circular ~]":"[Circular ~."+it.slice(0,ft).join(".")+"]")}else at.push(ut);return rt(ut)||tt(ut)?ut="["+j(k(ut))+" "+$(ut)+"]":et(ut)&&(ut=null),ut}),ot);var at,it},b.exports=_},9963:function(b,_,d){var k=d(4187),j=d(3085),$=d(3367),et=d(4858),tt=d(300),rt=d(2533),nt=d(3783),ot=d(7496),at=d(415),it=d(801),dt=d(6329),ut=d(4321),ht=d(5972),ft=d(8847),lt=d(1116),ct=d(6341),gt=d(5166),st=d(9537),Ct=d(1662),xt=d(6930),wt=d(8079),Mt=d(9803),kt=d(3487),_t=d(1369);function Tt(rn,nn,Qt,Vt){var fn=[];return nt(nn,function(In){var On,_n=Object.getOwnPropertyDescriptor(Qt,In),Pn=_n&&_n.get,Yn=_n&&_n.set;if(!Vt.accessGetter&&Pn)On="(...)";else try{if(On=Qt[In],ct(Vt.ignore,On))return;ut(On)&&On.catch(function(){})}catch(dn){On=dn.message}fn.push("".concat(At(In),":").concat(_(On,Vt))),Pn&&fn.push("".concat(At("get "+$(In)),":").concat(_(_n.get,Vt))),Yn&&fn.push("".concat(At("set "+$(In)),":").concat(_(_n.set,Vt)))}),'"'.concat(rn,'":{')+fn.join(",")+"}"}function At(rn){return'"'.concat(Ot(rn),'"')}function Et(rn){return'"'.concat(Ot($(rn)),'"')}function Ot(rn){return k(rn).replace(/\\'/g,"'").replace(/\t/g,"\\t")}_=function(rn){var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Qt=nn.self,Vt=nn.startTime,fn=Vt===void 0?ft():Vt,In=nn.timeout,On=In===void 0?0:In,_n=nn.depth,Pn=_n===void 0?0:_n,Yn=nn.curDepth,dn=Yn===void 0?1:Yn,An=nn.visitor,mn=An===void 0?new Lt:An,jn=nn.unenumerable,kn=jn!==void 0&&jn,vn=nn.symbol,En=vn!==void 0&&vn,gn=nn.accessGetter,Ln=gn!==void 0&&gn,Fn=nn.ignore,Un=Fn===void 0?[]:Fn,Mn="",Wn={visitor:mn,unenumerable:kn,symbol:En,accessGetter:Ln,depth:Pn,curDepth:dn+1,timeout:On,startTime:fn,ignore:Un},wn=j(rn,!1);if(wn==="String")Mn=Et(rn);else if(wn==="Number")Mn=$(rn),et(Mn,"Infinity")&&(Mn='{"value":"'.concat(Mn,'","type":"Number"}'));else if(wn==="NaN")Mn='{"value":"NaN","type":"Number"}';else if(wn==="Boolean")Mn=rn?"true":"false";else if(wn==="Null")Mn="null";else if(wn==="Undefined")Mn='{"type":"Undefined"}';else if(wn==="Symbol"){var Nn="Symbol";try{Nn=$(rn)}catch{}Mn='{"value":'.concat(Et(Nn),',"type":"Symbol"}')}else{if(On&&ft()-fn>On)return Et("Timeout");if(Pn&&dn>Pn)return Et("{...}");Mn="{";var zn,Vn=[],bn=mn.get(rn);if(bn?(zn=bn.id,Vn.push('"reference":'.concat(zn))):(zn=mn.set(rn),Vn.push('"id":'.concat(zn))),Vn.push('"type":"'.concat(wn,'"')),et(wn,"Function")?Vn.push('"value":'.concat(Et(tt(rn)))):wn==="RegExp"&&Vn.push('"value":'.concat(Et(rn))),!bn){var Yt=rt(rn);if(Yt.length&&Vn.push(Tt("enumerable",Yt,Qt||rn,Wn)),kn){var bt=it(lt(rn,{prototype:!1,unenumerable:!0}),Yt);bt.length&&Vn.push(Tt("unenumerable",bt,Qt||rn,Wn))}if(En){var pt=ht(lt(rn,{prototype:!1,symbol:!0}),function(an){return typeof an=="symbol"});pt.length&&Vn.push(Tt("symbol",pt,Qt||rn,Wn))}var yt=at(rn);if(yt&&!ct(Un,yt)){var Ut='"proto":'.concat(_(yt,dt(Wn,{self:Qt||rn})));Vn.push(Ut)}}Mn+=Vn.join(",")+"}"}return Mn};var Lt=ot({initialize:function(){this.id=1,this.visited=[]},set:function(rn){var nn=this.visited,Qt=this.id,Vt={id:Qt,val:rn};return nn.push(Vt),this.id++,Qt},get:function(rn){for(var nn=this.visited,Qt=0,Vt=nn.length;Qt]*>/g;_=function(k){return k.replace(d,"")},b.exports=_},1907:function(b,_,d){var k=d(6768),j=d(1352),$=d(6435),et=d(2461),tt=d(4331);_=function(nt){k(nt)&&(nt=j(nt));for(var ot="",at=arguments.length,it=new Array(at>1?at-1:0),dt=1;dt[\]\u2100-\uFFFF(),]*/gi;b.exports=_},5972:function(b,_,d){var k=d(2838),j=d(3783);_=function($,et,tt){var rt=[];return et=k(et,tt),j($,function(nt,ot,at){et(nt,ot,at)&&rt.push(nt)}),rt},b.exports=_},2244:function(b,_,d){var k=d(2267),j=d(4072),$=d(1369),et=d(1286);_=function(tt,rt,nt){var ot=($(tt)?j:k)(tt,rt,nt);if(!et(ot)&&ot!==-1)return tt[ot]},b.exports=_},4072:function(b,_,d){var k=d(2838);_=function(j,$,et,tt){tt=tt||1,$=k($,et);for(var rt=j.length,nt=tt>0?0:rt-1;nt>=0&&nt2?it-2:0),ut=2;ut>>4).toString(16)),$.push((15&rt).toString(16))}return $.join("")},decode:function(j){var $=[],et=j.length;k(et)&&et--;for(var tt=0;tt1&&arguments[1]!==void 0?arguments[1]:"js",nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};j(nt,$),tt=tt.replace(//g,">"),rt=et[rt];var ot=0,at=[];k(rt,function(dt){dt.language&&(tt=tt.replace(dt.re,function(ut,ht){return ht?(at[ot++]=_(ht,dt.language,nt),ut.replace(ht,"___subtmpl"+(ot-1)+"___")):ut}))}),k(rt,function(dt,ut){et[dt.language]||(tt=tt.replace(dt.re,"___"+ut+"___$1___end"+ut+"___"))});var it=[];return tt=tt.replace(/___(?!subtmpl)\w+?___/g,function(dt){var ut=dt.substr(3,3)==="end",ht=(ut?dt.substr(6):dt.substr(3)).replace(/_/g,""),ft=it.length>0?it[it.length-1]:null;return!ut&&(ft==null||ht==ft||ft!=null&&rt[ft]&&rt[ft].embed!=null&&rt[ft].embed.indexOf(ht)>-1)?(it.push(ht),dt):ut&&ht==ft?(it.pop(),dt):""}),k(rt,function(dt,ut){var ht=nt[dt.style]?' style="'.concat(nt[dt.style],'"'):"";tt=tt.replace(new RegExp("___end"+ut+"___","g"),"").replace(new RegExp("___"+ut+"___","g"),'"))}),k(rt,function(dt){dt.language&&(tt=tt.replace(/___subtmpl\d+___/g,function(ut){var ht=parseInt(ut.replace(/___subtmpl(\d+)___/,"$1"),10);return at[ht]}))}),tt};var $={comment:"color:#63a35c;",string:"color:#183691;",number:"color:#0086b3;",keyword:"color:#a71d5d;",operator:"color:#994500;"},et={js:{comment:{re:/(\/\/.*|\/\*([\s\S]*?)\*\/)/g,style:"comment"},string:{re:/(('.*?')|(".*?"))/g,style:"string"},numbers:{re:/(-?(\d+|\d+\.\d+|\.\d+))/g,style:"number"},keywords:{re:/(?:\b)(function|for|foreach|while|if|else|elseif|switch|break|as|return|this|class|self|default|var|const|let|false|true|null|undefined)(?:\b)/gi,style:"keyword"},operator:{re:/(\+|-|\/|\*|%|=|<|>|\||\?|\.)/g,style:"operator"}}};et.html={comment:{re:/(<!--([\s\S]*?)-->)/g,style:"comment"},tag:{re:/(<\/?\w(.|\n)*?\/?>)/g,style:"keyword",embed:["string"]},string:et.js.string,css:{re:/(?:<style.*?>)([\s\S]*)?(?:<\/style>)/gi,language:"css"},script:{re:/(?:<script.*?>)([\s\S]*?)(?:<\/script>)/gi,language:"js"}},et.css={comment:et.js.comment,string:et.js.string,numbers:{re:/((-?(\d+|\d+\.\d+|\.\d+)(%|px|em|pt|in)?)|#[0-9a-fA-F]{3}[0-9a-fA-F]{3})/g,style:"number"},keywords:{re:/(@\w+|:?:\w+|[a-z-]+:)/g,style:"keyword"}},b.exports=_},5925:function(b,_){_=function(k){var j,$,et,tt=k[0]/360,rt=k[1]/100,nt=k[2]/100,ot=[];if(k[3]&&(ot[3]=k[3]),rt===0)return et=d(255*nt),ot[0]=ot[1]=ot[2]=et,ot;for(var at=2*nt-(j=nt<.5?nt*(1+rt):nt+rt-nt*rt),it=0;it<3;it++)($=tt+.3333333333333333*-(it-1))<0&&$++,$>1&&$--,et=6*$<1?at+6*(j-at)*$:2*$<1?j:3*$<2?at+(j-at)*(.6666666666666666-$)*6:at,ot[it]=d(255*et);return ot};var d=Math.round;b.exports=_},7483:function(b,_,d){var k=d(8702),j=d(9001),$=d(6472),et=d(3783),tt=d(6768),rt=d(8820),nt=function(at){return at.replace(/"/g,'"')},ot=function(at){return at.replace(/"/g,""")};_={parse:function(at){var it=[],dt=new j;return k(at,{start:function(ut,ht){ht=rt(ht,function(ft){return nt(ft)}),dt.push({tag:ut,attrs:ht})},end:function(){var ut=dt.pop();if(dt.size){var ht=dt.peek();$(ht.content)||(ht.content=[]),ht.content.push(ut)}else it.push(ut)},comment:function(ut){var ht=""),ft=dt.peek();ft?(ft.content||(ft.content=[]),ft.content.push(ht)):it.push(ht)},text:function(ut){var ht=dt.peek();ht?(ht.content||(ht.content=[]),ht.content.push(ut)):it.push(ut)}}),it},stringify:function at(it){var dt="";return $(it)?et(it,function(ut){return dt+=at(ut)}):tt(it)?dt=it:(dt+="<".concat(it.tag),et(it.attrs,function(ut,ht){return dt+=" ".concat(ht,'="').concat(ot(ut),'"')}),dt+=">",it.content&&(dt+=at(it.content)),dt+="")),dt}},b.exports=_},6362:function(b,_){_=function(d){return d},b.exports=_},496:function(b,_){_=function(d,k,j){return Array.prototype.indexOf.call(d,k,j)},b.exports=_},5022:function(b,_,d){var k=d(1662);_=function(j,$){j.prototype=k($.prototype)},b.exports=_},7190:function(b,_,d){var k=d(3783);_=function(j){var $={};return k(j,function(et,tt){$[et]=tt}),$},b.exports=_},7403:function(b,_,d){var k=d(106);_=function(j){return k(j)==="[object Arguments]"},b.exports=_},6472:function(b,_,d){var k=d(106);_=Array.isArray?Array.isArray:function(j){return k(j)==="[object Array]"},b.exports=_},385:function(b,_,d){var k=d(106);_=function(j){return k(j)==="[object ArrayBuffer]"},b.exports=_},1369:function(b,_,d){var k=d(3990),j=d(4777),$=Math.pow(2,53)-1;_=function(et){if(!et)return!1;var tt=et.length;return k(tt)&&tt>=0&&tt<=$&&!j(et)},b.exports=_},4696:function(b,_){_=function(d){return d===!0||d===!1},b.exports=_},2727:function(b,_){_=typeof window=="object"&&typeof document=="object"&&document.nodeType===9,b.exports=_},2349:function(b,_,d){var k=d(4777);_=function(j){return j!=null&&(!!j._isBuffer||j.constructor&&k(j.constructor.isBuffer)&&j.constructor.isBuffer(j))},b.exports=_},2520:function(b,_,d){var k=new(d(2765))("(prefers-color-scheme: dark)");_=function(){return k.isMatch()},b.exports=_},2106:function(b,_,d){var k=d(106);_=function(j){return k(j)==="[object Date]"},b.exports=_},9833:function(b,_){_=function(d){return!(!d||d.nodeType!==1)},b.exports=_},8887:function(b,_,d){var k=d(1369),j=d(6472),$=d(6768),et=d(7403),tt=d(2533);_=function(rt){return rt==null||(k(rt)&&(j(rt)||$(rt)||et(rt))?rt.length===0:tt(rt).length===0)},b.exports=_},2749:function(b,_,d){var k=d(106);_=function(j){return k(j)==="[object Error]"},b.exports=_},4777:function(b,_,d){var k=d(106);_=function(j){var $=k(j);return $==="[object Function]"||$==="[object GeneratorFunction]"||$==="[object AsyncFunction]"},b.exports=_},9585:function(b,_,d){var k=d(5610),j=k.getComputedStyle,$=k.document;function et(tt,rt){return tt.rightrt.right||tt.bottomrt.bottom}_=function(tt){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},nt=rt.display,ot=nt===void 0||nt,at=rt.visibility,it=at!==void 0&&at,dt=rt.opacity,ut=dt!==void 0&&dt,ht=rt.size,ft=ht!==void 0&&ht,lt=rt.viewport,ct=lt!==void 0&<,gt=rt.overflow,st=gt!==void 0&>if(ot)return tt.offsetParent===null;var Ct=j(tt);if(it&&Ct.visibility==="hidden")return!0;if(ut){if(Ct.opacity==="0")return!0;for(var xt=tt;xt=xt.parentElement;)if(j(xt).opacity==="0")return!0}var wt=tt.getBoundingClientRect();if(ft&&(wt.width===0||wt.height===0))return!0;if(ct)return et(wt,{top:0,left:0,right:$.documentElement.clientWidth,bottom:$.documentElement.clientHeight});if(st)for(var Mt=tt;Mt=Mt.parentElement;){var kt=j(Mt).overflow;if((kt==="scroll"||kt==="hidden")&&et(wt,Mt.getBoundingClientRect()))return!0}return!1},b.exports=_},2246:function(b,_,d){var k=d(3990);_=function(j){return k(j)&&j%1==0},b.exports=_},4219:function(b,_){_=function(d){try{return JSON.parse(d),!0}catch{return!1}},b.exports=_},3708:function(b,_,d){var k=d(106);_=function(j){return k(j)==="[object Map]"},b.exports=_},7949:function(b,_,d){var k=d(2533);_=function(j,$){var et=k($),tt=et.length;if(j==null)return!tt;j=Object(j);for(var rt=0;rt1&&arguments[1]!==void 0?arguments[1]:_.defComparator,j=0,$=d.length;j<$-1;j++)if(k(d[j],d[j+1])>0)return!1;return!0},_.defComparator=function(d,k){return dk?1:0},b.exports=_},6768:function(b,_,d){var k=d(106);_=function(j){return k(j)==="[object String]"},b.exports=_},9804:function(b,_){_=function(d){return typeof d=="symbol"},b.exports=_},1286:function(b,_){_=function(d){return d===void 0},b.exports=_},7622:function(b,_,d){var k=d(8935);_=function(j){return k(j).join("-")},b.exports=_},2533:function(b,_,d){var k=d(6257);_=Object.keys?Object.keys:function(j){var $=[];for(var et in j)k(j,et)&&$.push(et);return $},b.exports=_},9702:function(b,_){_=function(d){var k=d?d.length:0;if(k)return d[k-1]},b.exports=_},3988:function(b,_,d){var k=d(2581),j=d(3783),$=d(2337);function et(tt){return''+tt+""}_=function(tt,rt){rt=rt||et;var nt=k(tt);return j(nt,function(ot){tt=tt.replace(new RegExp($(ot),"g"),rt)}),tt},b.exports=_},9622:function(b,_){_=function(d,k){var j=document.createElement("script");j.src=d,j.onload=function(){var $=j.readyState&&j.readyState!="complete"&&j.readyState!="loaded";k&&k(!$)},j.onerror=function(){k(!1)},document.body.appendChild(j)},b.exports=_},3063:function(b,_,d){var k=d(3367);_=function(j){return k(j).toLocaleLowerCase()},b.exports=_},5351:function(b,_,d){var k=d(4552),j=d(3367);_=function($,et,tt){var rt=($=j($)).length;return tt=tt||" ",rt=rt?"":k.substr(tt,rt)},b.exports=_},2461:function(b,_,d){var k=d(2838),j=d(2533),$=d(1369);_=function(et,tt,rt){tt=k(tt,rt);for(var nt=!$(et)&&j(et),ot=(nt||et).length,at=Array(ot),it=0;itk&&(k=d[j]);return k},b.exports=_},5026:function(b,_,d){var k=d(2533);_={getItem:function(nt){return($[nt]?j[nt]:this[nt])||null},setItem:function(nt,ot){$[nt]?j[nt]=ot:this[nt]=ot},removeItem:function(nt){$[nt]?delete j[nt]:delete this[nt]},key:function(nt){var ot=et();return nt>=0&&nt=$[et[it]]){at=et[it];break}return+(ot/$[at]).toFixed(2)+at};var $={ms:1,s:1e3};$.m=60*$.s,$.h=60*$.m,$.d=24*$.h,$.y=365.25*$.d;var et=["y","d","h","m","s"],tt=/^((?:\d+)?\.?\d+) *(s|m|h|d|y)?$/;b.exports=_},7658:function(b,_,d){var k=d(6930),j=d(5610),$=d(3367);function et(tt,rt){if(tt=$(tt),rt=$(rt),k(tt,"_")&&!k(rt,"_"))return 1;if(k(rt,"_")&&!k(tt,"_"))return-1;for(var nt,ot,at,it,dt=/^\d+|^\D+/;;){if(!tt)return rt?-1:0;if(!rt)return 1;if(nt=tt.match(dt)[0],ot=rt.match(dt)[0],at=!j.isNaN(nt),it=!j.isNaN(ot),at&&!it)return-1;if(it&&!at)return 1;if(at&&it){var ut=nt-ot;if(ut)return ut;if(nt.length!==ot.length)return+nt||+ot?ot.length-nt.length:nt.length-ot.length}else if(nt!==ot)return ntwindow.innerHeight?"landscape":"portrait"}},k.mixin(_),window.addEventListener("orientationchange",function(){setTimeout(function(){_.emit("change",_.get())},200)},!1),b.exports=_},8702:function(b,_,d){var k=d(9702),j=d(7913),$=d(6930),et=d(3063);_=function(it,dt){for(var ut,ht=[],ft=it;it;){if(ut=!0,k(ht)&&at[k(ht)]){var lt=new RegExp("]*>")).exec(it);if(lt){var ct=it.substring(0,lt.index);it=it.substring(lt.index+lt[0].length),ct&&dt.text&&dt.text(ct)}_t("",k(ht))}else{if($(it,"");gt>=0&&(dt.comment&&dt.comment(it.substring(4,gt)),it=it.substring(gt+3),ut=!1)}else if($(it,"=0&&ht[Et]!==At;Et--);else Et=0;if(Et>=0){for(var Ot=ht.length-1;Ot>=Et;Ot--)dt.end&&dt.end(ht[Ot]);ht.length=Et}}_t()};var tt=/^\s]+))?)*)\s*(\/?)>/i,rt=/^<\/([-A-Za-z0-9_]+)[^>]*>/,nt=/^<([-A-Za-z0-9_]+)((?:\s+[-A-Za-z0-9_:@.]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/i,ot=/([-A-Za-z0-9_:@.]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,at=j("script,style".split(","));b.exports=_},4198:function(b,_,d){var k=d(1137),j=d(1352);_=k(function($,et){return function(){var tt=[];return tt=(tt=tt.concat(et)).concat(j(arguments)),$.apply(this,tt)}}),b.exports=_},1194:function(b,_,d){var k,j=d(8847),$=d(5610),et=$.performance,tt=$.process;if(et&&et.now)_=function(){return et.now()};else if(tt&&tt.hrtime){var rt=function(){var nt=tt.hrtime();return 1e9*nt[0]+nt[1]};k=rt()-1e9*tt.uptime(),_=function(){return(rt()-k)/1e6}}else k=j(),_=function(){return j()-k};b.exports=_},3487:function(b,_,d){var k=d(6768),j=d(6472),$=d(6341),et=d(3783);_=function(tt,rt,nt){if(k(rt)&&(rt=[rt]),j(rt)){var ot=rt;rt=function(dt,ut){return $(ot,ut)}}var at={},it=function(dt,ut){rt(dt,ut)&&(at[ut]=dt)};return nt&&(it=function(dt,ut){rt(dt,ut)||(at[ut]=dt)}),et(tt,it),at},b.exports=_},747:function(b,_,d){var k=d(1475),j=d(7494),$=d(3023),et=d(6257),tt=d(7622);(_=k(function(at){if(at=at.replace(nt,""),at=j(at),et(ot,at))return at;for(var it=rt.length;it--;){var dt=rt[it]+$(at);if(et(ot,dt))return dt}return at})).dash=k(function(at){var it=_(at);return(nt.test(it)?"-":"")+tt(it)});var rt=["O","ms","Moz","Webkit"],nt=/^(O)|(ms)|(Moz)|(Webkit)|(-o-)|(-ms-)|(-moz-)|(-webkit-)/g,ot=document.createElement("p").style;b.exports=_},2994:function(b,_,d){var k=d(6472),j=d(7653);_=function($){return k($)?function(tt){return j(tt,$)}:(et=$,function(tt){return tt==null?void 0:tt[et]});var et},b.exports=_},1745:function(b,_,d){var k=d(4331),j=d(3783),$=d(1286),et=d(6472),tt=d(2461),rt=d(8887),nt=d(5972),ot=d(5166);_={parse:function(it){var dt={};return it=k(it).replace(at,""),j(it.split("&"),function(ut){var ht=ut.split("="),ft=ht.shift(),lt=ht.length>0?ht.join("="):null;ft=decodeURIComponent(ft),lt=decodeURIComponent(lt),$(dt[ft])?dt[ft]=lt:et(dt[ft])?dt[ft].push(lt):dt[ft]=[dt[ft],lt]}),dt},stringify:function(it,dt){return nt(tt(it,function(ut,ht){return ot(ut)&&rt(ut)?"":et(ut)?_.stringify(ut,ht):encodeURIComponent(dt||ht)+"="+encodeURIComponent(ut)}),function(ut){return ut.length>0}).join("&")}};var at=/^(\?|#|&)/g;b.exports=_},1571:function(b,_,d){var k,j,$=d(8847),et=d(2727),tt=0;if(et){k=window.requestAnimationFrame,j=window.cancelAnimationFrame;for(var rt=["ms","moz","webkit","o"],nt=0,ot=rt.length;nt0;)1&k&&(j+=d),k>>=1,d+=d;return j},b.exports=_},8368:function(b,_,d){var k=d(2337);_=function(j,$,et){return j.replace(new RegExp(k($),"g"),et)},b.exports=_},1137:function(b,_){_=function(d,k){return k=k==null?d.length-1:+k,function(){var j,$=Math.max(arguments.length-k,0),et=new Array($);for(j=0;j<$;j++)et[j]=arguments[j+k];switch(k){case 0:return d.call(this,et);case 1:return d.call(this,arguments[0],et);case 2:return d.call(this,arguments[0],arguments[1],et)}var tt=new Array(k+1);for(j=0;j=0;dt--){var ut=nt[dt];if(ut!==""){if(lt({domain:at=at===""?ut:ut+"."+at,path:$="/"})||lt({domain:at}))return;for(var ht=0;ht=0;)for(rt=!1,j=-1,$=d.charAt(et);++j=0?d.substring(0,et+1):""},b.exports=_},2838:function(b,_,d){var k=d(4777),j=d(5166),$=d(6472),et=d(3955),tt=d(4491),rt=d(6362),nt=d(2994);_=function(ot,at,it){return ot==null?rt:k(ot)?et(ot,at,it):j(ot)&&!$(ot)?tt(ot):nt(ot)},b.exports=_},7653:function(b,_,d){var k=d(1286),j=d(2848);_=function($,et){var tt;for(tt=(et=j(et,$)).shift();!k(tt);){if(($=$[tt])==null)return;tt=et.shift()}return $},b.exports=_},8079:function(b,_,d){var k=d(2848),j=d(1286),$=d(3367),et=d(9804),tt=d(6768);_=function(rt,nt,ot){var at,it=(nt=k(nt,rt)).pop();for(at=nt.shift();!j(at);){if(tt(at)||et(at)||(at=$(at)),at==="__proto__"||at==="constructor"||at==="prototype")return;rt[at]||(rt[at]={}),rt=rt[at],at=nt.shift()}rt[it]=ot},b.exports=_},615:function(b,_,d){var k=d(5026);_=function(j){var $;switch(j=j||"local"){case"local":$=window.localStorage;break;case"session":$=window.sessionStorage}try{var et="test-localStorage-"+Date.now();$.setItem(et,et);var tt=$.getItem(et);if($.removeItem(et),tt!==et)throw new Error}catch{return k}return $},b.exports=_},4224:function(b,_,d){var k=d(6334);_=function(j,$){return j=new k(j),$=new k($),j.port=0|j.port||(j.protocol==="https"?443:80),$.port=0|$.port||($.protocol==="https"?443:80),j.protocol===$.protocol&&j.hostname===$.hostname&&j.port===$.port},b.exports=_},9677:function(b,_){_=function(d,k,j){var $=d.length;k=k==null?0:k<0?Math.max($+k,0):Math.min(k,$),j=j==null?$:j<0?Math.max($+j,0):Math.min(j,$);for(var et=[];k1&&arguments[1]!==void 0?arguments[1]:{};j(ot,rt);var at=ot.deep,it=ot.comparator,dt=[],ut=[];return function ht(ft){var lt,ct=dt.indexOf(ft);if(ct>-1)return ut[ct];if(et(ft)){lt=[],dt.push(ft),ut.push(lt);for(var gt=0,st=ft.length;gt0){var ht=at.indexOf(this);ht>-1?(at.splice(ht+1),it.splice(ht,1/0,dt)):(at.push(this),it.push(dt));var ft=at.indexOf(ut);ft>-1&&(ut=at[0]===ut?"[Circular ~]":"[Circular ~."+it.slice(0,ft).join(".")+"]")}else at.push(ut);return rt(ut)||tt(ut)?ut="["+j(k(ut))+" "+$(ut)+"]":et(ut)&&(ut=null),ut}),ot);var at,it},b.exports=_},9963:function(b,_,d){var k=d(4187),j=d(3085),$=d(3367),et=d(4858),tt=d(300),rt=d(2533),nt=d(3783),ot=d(7496),at=d(415),it=d(801),dt=d(6329),ut=d(4321),ht=d(5972),ft=d(8847),lt=d(1116),ct=d(6341),gt=d(5166),st=d(9537),Ct=d(1662),xt=d(6930),wt=d(8079),Mt=d(9803),kt=d(3487),_t=d(1369);function Tt(rn,nn,Qt,Vt){var fn=[];return nt(nn,function(In){var On,_n=Object.getOwnPropertyDescriptor(Qt,In),Bn=_n&&_n.get,Yn=_n&&_n.set;if(!Vt.accessGetter&&Bn)On="(...)";else try{if(On=Qt[In],ct(Vt.ignore,On))return;ut(On)&&On.catch(function(){})}catch(dn){On=dn.message}fn.push("".concat(At(In),":").concat(_(On,Vt))),Bn&&fn.push("".concat(At("get "+$(In)),":").concat(_(_n.get,Vt))),Yn&&fn.push("".concat(At("set "+$(In)),":").concat(_(_n.set,Vt)))}),'"'.concat(rn,'":{')+fn.join(",")+"}"}function At(rn){return'"'.concat(Ot(rn),'"')}function Et(rn){return'"'.concat(Ot($(rn)),'"')}function Ot(rn){return k(rn).replace(/\\'/g,"'").replace(/\t/g,"\\t")}_=function(rn){var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Qt=nn.self,Vt=nn.startTime,fn=Vt===void 0?ft():Vt,In=nn.timeout,On=In===void 0?0:In,_n=nn.depth,Bn=_n===void 0?0:_n,Yn=nn.curDepth,dn=Yn===void 0?1:Yn,An=nn.visitor,mn=An===void 0?new Lt:An,jn=nn.unenumerable,kn=jn!==void 0&&jn,vn=nn.symbol,En=vn!==void 0&&vn,gn=nn.accessGetter,Ln=gn!==void 0&&gn,Fn=nn.ignore,Un=Fn===void 0?[]:Fn,Mn="",zn={visitor:mn,unenumerable:kn,symbol:En,accessGetter:Ln,depth:Bn,curDepth:dn+1,timeout:On,startTime:fn,ignore:Un},wn=j(rn,!1);if(wn==="String")Mn=Et(rn);else if(wn==="Number")Mn=$(rn),et(Mn,"Infinity")&&(Mn='{"value":"'.concat(Mn,'","type":"Number"}'));else if(wn==="NaN")Mn='{"value":"NaN","type":"Number"}';else if(wn==="Boolean")Mn=rn?"true":"false";else if(wn==="Null")Mn="null";else if(wn==="Undefined")Mn='{"type":"Undefined"}';else if(wn==="Symbol"){var Nn="Symbol";try{Nn=$(rn)}catch{}Mn='{"value":'.concat(Et(Nn),',"type":"Symbol"}')}else{if(On&&ft()-fn>On)return Et("Timeout");if(Bn&&dn>Bn)return Et("{...}");Mn="{";var Wn,Vn=[],bn=mn.get(rn);if(bn?(Wn=bn.id,Vn.push('"reference":'.concat(Wn))):(Wn=mn.set(rn),Vn.push('"id":'.concat(Wn))),Vn.push('"type":"'.concat(wn,'"')),et(wn,"Function")?Vn.push('"value":'.concat(Et(tt(rn)))):wn==="RegExp"&&Vn.push('"value":'.concat(Et(rn))),!bn){var Yt=rt(rn);if(Yt.length&&Vn.push(Tt("enumerable",Yt,Qt||rn,zn)),kn){var bt=it(lt(rn,{prototype:!1,unenumerable:!0}),Yt);bt.length&&Vn.push(Tt("unenumerable",bt,Qt||rn,zn))}if(En){var pt=ht(lt(rn,{prototype:!1,symbol:!0}),function(an){return typeof an=="symbol"});pt.length&&Vn.push(Tt("symbol",pt,Qt||rn,zn))}var yt=at(rn);if(yt&&!ct(Un,yt)){var Ut='"proto":'.concat(_(yt,dt(zn,{self:Qt||rn})));Vn.push(Ut)}}Mn+=Vn.join(",")+"}"}return Mn};var Lt=ot({initialize:function(){this.id=1,this.visited=[]},set:function(rn){var nn=this.visited,Qt=this.id,Vt={id:Qt,val:rn};return nn.push(Vt),this.id++,Qt},get:function(rn){for(var nn=this.visited,Qt=0,Vt=nn.length;Qt]*>/g;_=function(k){return k.replace(d,"")},b.exports=_},1907:function(b,_,d){var k=d(6768),j=d(1352),$=d(6435),et=d(2461),tt=d(4331);_=function(nt){k(nt)&&(nt=j(nt));for(var ot="",at=arguments.length,it=new Array(at>1?at-1:0),dt=1;dt0?$.apply(null,lt):0;return tt(et(ft,function(xt){return xt[0]===" "?xt.slice(Ct):xt}).join(` `))};var rt=/^(\s+)\S+/;b.exports=_},2439:function(b,_,d){var k=d(6049);_=function(j,$){return k(j,$,!0)},b.exports=_},1352:function(b,_,d){var k=d(1369),j=d(2461),$=d(6472),et=d(6768);_=function(tt){return tt?$(tt)?tt:k(tt)&&!et(tt)?j(tt):[tt]:[]},b.exports=_},3474:function(b,_,d){var k=d(6768);_=function(j){return k(j)?(j=j.toLowerCase())!=="0"&&j!==""&&j!=="false":!!j},b.exports=_},4891:function(b,_){var d=document;if(_=function(j){var $=d.createElement("body");return $.innerHTML=j,$.childNodes[0]},d.createRange&&d.body){var k=d.createRange();k.selectNode(d.body),k.createContextualFragment&&(_=function(j){return k.createContextualFragment(j).childNodes[0]})}b.exports=_},9296:function(b,_,d){var k=d(3875);_=function(j){return j?(j=k(j))-j%1:j===0?j:0},b.exports=_},3875:function(b,_,d){var k=d(3990),j=d(5166),$=d(4777),et=d(6768);_=function(tt){if(k(tt))return tt;if(j(tt)){var rt=$(tt.valueOf)?tt.valueOf():tt;tt=j(rt)?rt+"":rt}return et(tt)?+tt:tt===0?tt:+tt},b.exports=_},300:function(b,_,d){var k=d(2763);_=function($){if(k($))return"";try{return j.call($)}catch{}try{return $+""}catch{}return""};var j=Function.prototype.toString;b.exports=_},3367:function(b,_){_=function(d){return d==null?"":d.toString()},b.exports=_},4331:function(b,_,d){var k=d(7767),j=d(3597);_=function($,et){return et==null&&$.trim?$.trim():k(j($,et),et)},b.exports=_},7756:function(b,_,d){var k=d(4193),j=d(1286);_=function(et,tt){var rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};k(rt,$);var nt=rt.ellipsis,ot=rt.separator;if(tt>et.length)return et;var at=tt-nt.length;if(at<1)return nt;var it=et.slice(0,at);if(j(ot))return it+nt;if(et.indexOf(ot,at)!==at){var dt=it.lastIndexOf(ot);dt>-1&&(it=it.slice(0,dt))}return it+nt};var $={ellipsis:"..."};b.exports=_},3085:function(b,_,d){var k=d(106),j=d(9433),$=d(3063),et=d(2349);_=function(rt){var nt,ot=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return rt===null&&(nt="Null"),rt===void 0&&(nt="Undefined"),j(rt)&&(nt="NaN"),et(rt)&&(nt="Buffer"),nt||(nt=k(rt).match(tt))&&(nt=nt[1]),nt?ot?$(nt):nt:""};var tt=/^\[object\s+(.*?)]$/;b.exports=_},9016:function(b,_){_={},b.exports=_},8166:function(b,_,d){var k=d(996),j=d(2461);_={encode:function($){return $.length<32768?String.fromCodePoint.apply(String,$):j(k($,32767),function(et){return String.fromCodePoint.apply(String,et)}).join("")},decode:function($){for(var et=[],tt=0,rt=$.length;tt=55296&&nt<=56319&&tt>6*lt)+ct);lt>0;)gt+=it(128|63&ft>>6*(lt-1)),lt--;return gt}function ut(ft){for(;;){if($>=et&&nt){if(ft)return ht();throw new Error("Invalid byte index")}if($===et)return!1;var lt=j[$];if($++,nt){if(ltat){if(ft)return $--,ht();throw new Error("Invalid continuation byte")}if(ot=128,at=191,tt=tt<<6|63<,++rt===nt){var ct=tt;return tt=0,nt=0,rt=0,ct}}else{if(!(128<))return lt;if((224<)==192)nt=1,tt=31<else if((240<)==224)lt===224&&(ot=160),lt===237&&(at=159),nt=2,tt=15<else{if((248<)!=240){if(ft)return ht();throw new Error("Invalid UTF-8 detected")}lt===240&&(ot=144),lt===244&&(at=143),nt=3,tt=7<}}}}function ht(){var ft=$-rt-1;return $=ft+1,tt=0,nt=0,rt=0,ot=128,at=191,j[ft]}b.exports=_},5936:function(b,_,d){var k=d(3366);_=function(){var et=k(16);return et[6]=15&et[6]|64,et[8]=63&et[8]|128,j[et[0]]+j[et[1]]+j[et[2]]+j[et[3]]+"-"+j[et[4]]+j[et[5]]+"-"+j[et[6]]+j[et[7]]+"-"+j[et[8]]+j[et[9]]+"-"+j[et[10]]+j[et[11]]+j[et[12]]+j[et[13]]+j[et[14]]+j[et[15]]};for(var j=[],$=0;$<256;$++)j[$]=($+256).toString(16).substr(1);b.exports=_},2578:function(b,_,d){var k=d(3783);_=function(j){var $=[];return k(j,function(et){$.push(et)}),$},b.exports=_},3514:function(b,_,d){var k=d(8573),j=d(9882),$=d(4331),et=d(3783),tt=d(2461),rt=d(9433);_=function(){var nt=k("viewport");if(!nt)return 1;nt=tt(nt.split(","),function(ut){return $(ut)});var ot=.25,at=5,it=1;et(nt,function(ut){var ht=(ut=ut.split("="))[0];ut=ut[1],ht==="initial-scale"&&(it=+ut),ht==="maximum-scale"&&(at=+ut),ht==="minimum-scale"&&(ot=+ut)});var dt=j(it,ot,at);return rt(dt)?1:dt},b.exports=_},5491:function(b,_,d){var k=d(4198);_=function(j,$){return k($,j)},b.exports=_},8933:function(b,_){_=function(d){for(var k=[],j=document.evaluate(d,document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),$=0;$=Et.length&&(Et=void 0),{value:Et&&Et[Pt++],done:!Et}}};throw new TypeError(Ot?"Object is not iterable.":"Symbol.iterator is not defined.")},tt=this&&this.__importDefault||function(Et){return Et&&Et.__esModule?Et:{default:Et}};Object.defineProperty(_,"__esModule",{value:!0});var rt=tt(d(1160)),nt=d(7669),ot=d(2062),at=tt(d(242)),it=tt(d(2439)),dt=tt(d(3063)),ut=tt(d(3783)),ht=tt(d(3009)),ft=tt(d(5044)),lt=tt(d(4502)),ct=tt(d(6329)),gt=tt(d(7494)),st=tt(d(6341)),Ct=tt(d(3875)),xt=tt(d(3577)),wt=tt(d(6768));d(8169);var Mt=function(Et){function Ot(Lt,Pt){Pt===void 0&&(Pt={});var Zt=Et.call(this,Lt,{compName:"dom-highlighter"},Pt)||this;return Zt.overlay=new nt.HighlightOverlay(window),Zt.reset=function(){var rn=document.documentElement.clientWidth,nn=document.documentElement.clientHeight;Zt.overlay.reset({viewportSize:{width:rn,height:nn},deviceScaleFactor:1,pageScaleFactor:1,pageZoomFactor:1,emulationScaleFactor:1,scrollX:window.scrollX,scrollY:window.scrollY})},Zt.initOptions(Pt,{showRulers:!1,showExtensionLines:!1,showInfo:!0,showStyles:!0,showAccessibilityInfo:!0,colorFormat:"hex",contentColor:"rgba(111, 168, 220, .66)",paddingColor:"rgba(147, 196, 125, .55)",borderColor:"rgba(255, 229, 153, .66)",marginColor:"rgba(246, 178, 107, .66)",monitorResize:!0}),Zt.overlay.setContainer(Lt),Zt.overlay.setPlatform("mac"),Zt.redraw=(0,it.default)(function(){Zt.reset(),Zt.draw()},16),Zt.redraw(),Zt.bindEvent(),Zt}return j(Ot,Et),Ot.prototype.highlight=function(Lt,Pt){Pt&&(0,ct.default)(this.options,Pt),this.target=Lt,Lt instanceof HTMLElement&&this.options.monitorResize&&(this.resizeSensor&&this.resizeSensor.destroy(),this.resizeSensor=new at.default(Lt),this.resizeSensor.addListener(this.redraw)),this.redraw()},Ot.prototype.hide=function(){this.target=null,this.redraw()},Ot.prototype.intercept=function(Lt){this.interceptor=Lt},Ot.prototype.destroy=function(){window.removeEventListener("resize",this.redraw),window.removeEventListener("scroll",this.redraw),this.resizeSensor&&this.resizeSensor.destroy(),Et.prototype.destroy.call(this)},Ot.prototype.draw=function(){var Lt=this.target;Lt&&(Lt instanceof Text?this.drawText(Lt):this.drawElement(Lt))},Ot.prototype.drawText=function(Lt){var Pt=this.options,Zt=document.createRange();Zt.selectNode(Lt);var rn=Zt.getBoundingClientRect(),nn=rn.left,Qt=rn.top,Vt=rn.width,fn=rn.height;Zt.detach();var In={paths:[{path:this.rectToPath({left:nn,top:Qt,width:Vt,height:fn}),fillColor:Tt(Pt.contentColor),name:"content"}],showExtensionLines:Pt.showExtensionLines,showRulers:Pt.showRulers};Pt.showInfo&&(In.elementInfo={tagName:"#text",nodeWidth:Vt,nodeHeight:fn}),this.overlay.drawHighlight(In)},Ot.prototype.drawElement=function(Lt){var Pt={paths:this.getPaths(Lt),showExtensionLines:this.options.showExtensionLines,showRulers:this.options.showRulers,colorFormat:this.options.colorFormat};if(this.options.showInfo&&(Pt.elementInfo=this.getElementInfo(Lt)),this.interceptor){var Zt=this.interceptor(Pt);Zt&&(Pt=Zt)}this.overlay.drawHighlight(Pt)},Ot.prototype.getPaths=function(Lt){var Pt=this.options,Zt=window.getComputedStyle(Lt),rn=Lt.getBoundingClientRect(),nn=rn.left,Qt=rn.top,Vt=rn.width,fn=rn.height,In=function(Ln){return(0,ot.pxToNum)(Zt.getPropertyValue(Ln))},On=In("margin-left"),_n=In("margin-right"),Pn=In("margin-top"),Yn=In("margin-bottom"),dn=In("border-left-width"),An=In("border-right-width"),mn=In("border-top-width"),jn=In("border-bottom-width"),kn=In("padding-left"),vn=In("padding-right"),En=In("padding-top"),gn=In("padding-bottom");return[{path:this.rectToPath({left:nn+dn+kn,top:Qt+mn+En,width:Vt-dn-kn-An-vn,height:fn-mn-En-jn-gn}),fillColor:Tt(Pt.contentColor),name:"content"},{path:this.rectToPath({left:nn+dn,top:Qt+mn,width:Vt-dn-An,height:fn-mn-jn}),fillColor:Tt(Pt.paddingColor),name:"padding"},{path:this.rectToPath({left:nn,top:Qt,width:Vt,height:fn}),fillColor:Tt(Pt.borderColor),name:"border"},{path:this.rectToPath({left:nn-On,top:Qt-Pn,width:Vt+On+_n,height:fn+Pn+Yn}),fillColor:Tt(Pt.marginColor),name:"margin"}]},Ot.prototype.getElementInfo=function(Lt){var Pt=Lt.getBoundingClientRect(),Zt=Pt.width,rn=Pt.height,nn=Lt.getAttribute("class")||"";nn=nn.split(/\s+/).map(function(Vt){return"."+Vt}).join("");var Qt={tagName:(0,dt.default)(Lt.tagName),className:nn,idValue:Lt.id,nodeWidth:Zt,nodeHeight:rn};return this.options.showStyles&&(Qt.style=this.getStyles(Lt)),this.options.showAccessibilityInfo&&(0,ct.default)(Qt,this.getAccessibilityInfo(Lt)),Qt},Ot.prototype.getStyles=function(Lt){for(var Pt=window.getComputedStyle(Lt),Zt=!1,rn=Lt.childNodes,nn=0,Qt=rn.length;nn-1)},Ot.prototype.getAccessibleNameAndRole=function(Lt){var Pt=Lt.getAttribute("labelledby")||Lt.getAttribute("aria-label"),Zt=Lt.getAttribute("role"),rn=(0,dt.default)(Lt.tagName);return xt.default.forEach(function(nn){var Qt,Vt;if(!Zt){var fn=nn[0],In=nn[2];if(fn===rn){if(In)try{for(var On=et(In),_n=On.next();!_n.done;_n=On.next()){var Pn=_n.value;if(Lt.getAttribute(Pn[0])!==Pn[1])return}}catch(Yn){Qt={error:Yn}}finally{try{_n&&!_n.done&&(Vt=On.return)&&Vt.call(On)}finally{if(Qt)throw Qt.error}}Zt=nn[1]}}}),{accessibleName:Pt||Lt.getAttribute("title")||"",accessibleRole:Zt||"generic"}},Ot.prototype.bindEvent=function(){var Lt=this;window.addEventListener("resize",this.redraw),window.addEventListener("scroll",this.redraw),this.on("optionChange",function(){return Lt.redraw()})},Ot.prototype.rectToPath=function(Lt){var Pt=Lt.left,Zt=Lt.top,rn=Lt.width,nn=Lt.height,Qt=[];return Qt.push("M",Pt,Zt),Qt.push("L",Pt+rn,Zt),Qt.push("L",Pt+rn,Zt+nn),Qt.push("L",Pt,Zt+nn),Qt.push("Z"),Qt},Ot}(rt.default);_.default=Mt,b.exports=Mt,b.exports.default=Mt;var kt=/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,_t=/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*(?:\.\d+)?)\)$/;function Tt(Et){return(0,wt.default)(Et)?Et:Et.a?"rgba(".concat(Et.r,", ").concat(Et.g,", ").concat(Et.b,", ").concat(Et.a,")"):"rgb(".concat(Et.r,", ").concat(Et.g,", ").concat(Et.b,")")}function At(Et,Ot,Lt){Lt===void 0&&(Lt=!1);var Pt={};return(0,ut.default)(Ot,function(Zt){var rn,nn=Et[Zt==="text-opacity"?"color":Zt];nn&&(rn=nn,(kt.test(rn)||_t.test(rn))&&(nn=function(Qt){var Vt=ht.default.parse(Qt),fn=Vt.val[3]||1;return Vt.val=Vt.val.slice(0,3),Vt.val.push(Math.round(255*fn)),"#"+(0,lt.default)(ft.default.encode(Vt.val))}(nn),Zt==="text-opacity"&&(nn=nn.slice(7),nn=ft.default.decode(nn)[0]/255)),Lt&&(Zt=(0,gt.default)(Zt)),Pt[Zt]=nn)}),Pt}},9706:function(b,_){var d=this&&this.__read||function(_t,Tt){var At=typeof Symbol=="function"&&_t[Symbol.iterator];if(!At)return _t;var Et,Ot,Lt=At.call(_t),Pt=[];try{for(;(Tt===void 0||Tt-- >0)&&!(Et=Lt.next()).done;)Pt.push(Et.value)}catch(Zt){Ot={error:Zt}}finally{try{Et&&!Et.done&&(At=Lt.return)&&At.call(Lt)}finally{if(Ot)throw Ot.error}}return Pt},k=this&&this.__values||function(_t){var Tt=typeof Symbol=="function"&&Symbol.iterator,At=Tt&&_t[Tt],Et=0;if(At)return At.call(_t);if(_t&&typeof _t.length=="number")return{next:function(){return _t&&Et>=_t.length&&(_t=void 0),{value:_t&&_t[Et++],done:!_t}}};throw new TypeError(Tt?"Object is not iterable.":"Symbol.iterator is not defined.")};function j(_t,Tt){var At=_t[3];return[(1-At)*Tt[0]+At*_t[0],(1-At)*Tt[1]+At*_t[1],(1-At)*Tt[2]+At*_t[2],At+Tt[3]*(1-At)]}function $(_t){var Tt=d(_t,3),At=Tt[0],Et=Tt[1],Ot=Tt[2];return .2126*(At<=.03928?At/12.92:Math.pow((At+.055)/1.055,2.4))+.7152*(Et<=.03928?Et/12.92:Math.pow((Et+.055)/1.055,2.4))+.0722*(Ot<=.03928?Ot/12.92:Math.pow((Ot+.055)/1.055,2.4))}Object.defineProperty(_,"__esModule",{value:!0}),_.getContrastThreshold=_.isLargeFont=_.getAPCAThreshold=_.desiredLuminanceAPCA=_.contrastRatioByLuminanceAPCA=_.contrastRatioAPCA=_.luminanceAPCA=_.contrastRatio=_.luminance=_.rgbaToHsla=_.blendColors=void 0,_.blendColors=j,_.rgbaToHsla=function(_t){var Tt=d(_t,4),At=Tt[0],Et=Tt[1],Ot=Tt[2],Lt=Tt[3],Pt=Math.max(At,Et,Ot),Zt=Math.min(At,Et,Ot),rn=Pt-Zt,nn=Pt+Zt,Qt=.5*nn;return[Zt===Pt?0:At===Pt?(.16666666666666666*(Et-Ot)/rn+1)%1:Et===Pt?.16666666666666666*(Ot-At)/rn+.3333333333333333:.16666666666666666*(At-Et)/rn+.6666666666666666,Qt===0||Qt===1?0:Qt<=.5?rn/nn:rn/(2-nn),Qt,Lt]},_.luminance=$,_.contrastRatio=function(_t,Tt){var At=$(j(_t,Tt)),Et=$(Tt);return(Math.max(At,Et)+.05)/(Math.min(At,Et)+.05)};var et=2.4,tt=.55,rt=.58,nt=.62,ot=.57,at=.03,it=1.45,dt=1.25,ut=1.25,ht=5e-4,ft=.078,lt=12.82051282051282,ct=.06,gt=.001;function st(_t){var Tt=d(_t,3),At=Tt[0],Et=Tt[1],Ot=Tt[2];return .2126729*Math.pow(At,et)+.7151522*Math.pow(Et,et)+.072175*Math.pow(Ot,et)}function Ct(_t){return _t>at?_t:_t+Math.pow(at-_t,it)}function xt(_t,Tt){if(_t=Ct(_t),Tt=Ct(Tt),Math.abs(_t-Tt)=_t?(At=(Math.pow(Tt,tt)-Math.pow(_t,rt))*dt)-gt?0:At>-ft?At-At*lt*ct:At+ct)}_.luminanceAPCA=st,_.contrastRatioAPCA=function(_t,Tt){return xt(st(_t),st(Tt))},_.contrastRatioByLuminanceAPCA=xt,_.desiredLuminanceAPCA=function(_t,Tt,At){function Et(){return At?Math.pow(Math.abs(Math.pow(_t,nt)-(-Tt-ct)/ut),1/ot):Math.pow(Math.abs(Math.pow(_t,tt)-(Tt+ct)/dt),1/rt)}_t=Ct(_t),Tt/=100;var Ot=Et();return(Ot<0||Ot>1)&&(At=!At,Ot=Et()),Ot};var wt=[[12,-1,-1,-1,-1,100,90,80,-1,-1],[14,-1,-1,-1,100,90,80,60,60,-1],[16,-1,-1,100,90,80,60,55,50,50],[18,-1,-1,90,80,60,55,50,40,40],[24,-1,100,80,60,55,50,40,38,35],[30,-1,90,70,55,50,40,38,35,40],[36,-1,80,60,50,40,38,35,30,25],[48,100,70,55,40,38,35,30,25,20],[60,90,60,50,38,35,30,25,20,20],[72,80,55,40,35,30,25,20,20,20],[96,70,50,35,30,25,20,20,20,20],[120,60,40,30,25,20,20,20,20,20]];function Mt(_t,Tt){var At=72*parseFloat(_t.replace("px",""))/96;return["bold","bolder","600","700","800","900"].indexOf(Tt)!==-1?At>=14:At>=18}wt.reverse(),_.getAPCAThreshold=function(_t,Tt){var At,Et,Ot,Lt,Pt=parseFloat(_t.replace("px","")),Zt=parseFloat(Tt);try{for(var rn=k(wt),nn=rn.next();!nn.done;nn=rn.next()){var Qt=d(nn.value),Vt=Qt[0],fn=Qt.slice(1);if(Pt>=Vt)try{for(var In=(Ot=void 0,k([900,800,700,600,500,400,300,200,100].entries())),On=In.next();!On.done;On=In.next()){var _n=d(On.value,2),Pn=_n[0];if(Zt>=_n[1]){var Yn=fn[fn.length-1-Pn];return Yn===-1?null:Yn}}}catch(dn){Ot={error:dn}}finally{try{On&&!On.done&&(Lt=In.return)&&Lt.call(In)}finally{if(Ot)throw Ot.error}}}}catch(dn){At={error:dn}}finally{try{nn&&!nn.done&&(Et=rn.return)&&Et.call(rn)}finally{if(At)throw At.error}}return null},_.isLargeFont=Mt;var kt={largeFont:{aa:3,aaa:4.5},normalFont:{aa:4.5,aaa:7}};_.getContrastThreshold=function(_t,Tt){return Mt(_t,Tt)?kt.largeFont:kt.normalFont}},9434:function(b,_){var d=this&&this.__values||function(nt){var ot=typeof Symbol=="function"&&Symbol.iterator,at=ot&&nt[ot],it=0;if(at)return at.call(nt);if(nt&&typeof nt.length=="number")return{next:function(){return nt&&it>=nt.length&&(nt=void 0),{value:nt&&nt[it++],done:!nt}}};throw new TypeError(ot?"Object is not iterable.":"Symbol.iterator is not defined.")},k=this&&this.__read||function(nt,ot){var at=typeof Symbol=="function"&&nt[Symbol.iterator];if(!at)return nt;var it,dt,ut=at.call(nt),ht=[];try{for(;(ot===void 0||ot-- >0)&&!(it=ut.next()).done;)ht.push(it.value)}catch(ft){dt={error:ft}}finally{try{it&&!it.done&&(at=ut.return)&&at.call(ut)}finally{if(dt)throw dt.error}}return ht},j=this&&this.__spreadArray||function(nt,ot,at){if(at||arguments.length===2)for(var it,dt=0,ut=ot.length;dtat&&(nt=at),nt},_.adoptStyleSheet=rt},1521:function(b,_,d){var k=this&&this.__values||function(lt){var ct=typeof Symbol=="function"&&Symbol.iterator,gt=ct&<[ct],st=0;if(gt)return gt.call(lt);if(lt&&typeof lt.length=="number")return{next:function(){return lt&&st>=lt.length&&(lt=void 0),{value:lt&<[st++],done:!lt}}};throw new TypeError(ct?"Object is not iterable.":"Symbol.iterator is not defined.")},j=this&&this.__read||function(lt,ct){var gt=typeof Symbol=="function"&<[Symbol.iterator];if(!gt)return lt;var st,Ct,xt=gt.call(lt),wt=[];try{for(;(ct===void 0||ct-- >0)&&!(st=xt.next()).done;)wt.push(st.value)}catch(Mt){Ct={error:Mt}}finally{try{st&&!st.done&&(gt=xt.return)&>.call(xt)}finally{if(Ct)throw Ct.error}}return wt},$=this&&this.__spreadArray||function(lt,ct,gt){if(gt||arguments.length===2)for(var st,Ct=0,xt=ct.length;CtIn&&PnOn,An=Pt-fn;An=(0,rt.constrainNumber)(An,Qt,Tt-Zt-Qt);var mn=_t.minY-nn-rn,jn=!0;mn<0?(mn=Math.min(At-rn,_t.maxY+nn),jn=!1):_t.minY>At&&(mn=At-nn-rn);var kn=An>=_t.minX&&An+Zt<=_t.maxX&&mn>=_t.minY&&mn+rn<=_t.maxY,vn=An<_t.maxX&&An+Zt>_t.minX&&mn<_t.maxY&&mn+rn>_t.minY;if(vn&&!kn)return void(Ot.style.display="none");if(Ot.style.top=mn+"px",Ot.style.left=An+"px",!dn){var En=(0,rt.createChild)(Ot,"div","tooltip-arrow");En.style.clipPath=jn?"polygon(0 0, 100% 0, 50% 100%)":"polygon(50% 0, 0 100%, 100% 100%)",En.style.top=(jn?rn-1:-nn)+"px",En.style.left=Pt-An+"px"}}(this.tooltip,lt.elementInfo,lt.colorFormat,ct,this.canvasWidth,this.canvasHeight)),this.context.restore(),{bounds:ct}},ft.prototype.drawAxis=function(lt,ct,gt){lt.save();var st=this.pageZoomFactor*this.pageScaleFactor*this.emulationScaleFactor,Ct=this.scrollX*this.pageScaleFactor,xt=this.scrollY*this.pageScaleFactor;function wt(Zt){return Math.round(Zt*st)}function Mt(Zt){return Math.round(Zt/st)}var kt=this.canvasWidth/st,_t=this.canvasHeight/st,Tt=50;lt.save(),lt.fillStyle=dt,gt?lt.fillRect(0,wt(_t)-15,wt(kt),wt(_t)):lt.fillRect(0,0,wt(kt),15),lt.globalCompositeOperation="destination-out",lt.fillStyle="red",ct?lt.fillRect(wt(kt)-15,0,wt(kt),wt(_t)):lt.fillRect(0,0,15,wt(_t)),lt.restore(),lt.fillStyle=dt,ct?lt.fillRect(wt(kt)-15,0,wt(kt),wt(_t)):lt.fillRect(0,0,15,wt(_t)),lt.lineWidth=1,lt.strokeStyle=it,lt.fillStyle=it,lt.save(),lt.translate(-Ct,.5-xt);for(var At=_t+Mt(xt),Et=100;Et]*>/g.test(Ct))try{var xt=tt.default.parse(Ct);return dt(xt,function(wt){wt.attrs&&wt.attrs.class&&(wt.attrs.class=st(wt.attrs.class))}),tt.default.stringify(xt)}catch{return st(Ct)}return st(Ct)}};var ut,ht="ontouchstart"in et.default,ft={start:"touchstart",move:"touchmove",end:"touchend"},lt={start:"mousedown",move:"mousemove",end:"mouseup"};_.drag=function(ct){return ht?ft[ct]:lt[ct]},_.eventClient=function(ct,gt){var st=ct==="x"?"clientX":"clientY";return gt[st]?gt[st]:gt.changedTouches?gt.changedTouches[0][st]:0},_.eventPage=function(ct,gt){var st=ct==="x"?"pageX":"pageY";return gt[st]?gt[st]:gt.changedTouches?gt.changedTouches[0][st]:0},_.measuredScrollbarWidth=function(){if((0,rt.default)(ut))return ut;if(!document)return 16;var ct=document.createElement("div"),gt=document.createElement("div");return ct.setAttribute("style","display: block; width: 100px; height: 100px; overflow: scroll;"),gt.setAttribute("style","height: 200px"),ct.appendChild(gt),document.body.appendChild(ct),ut=ct.offsetWidth-ct.clientWidth,document.body.removeChild(ct),ut},_.hasVerticalScrollbar=function(ct){return ct.scrollHeight>ct.offsetHeight},_.executeAfterTransition=function(ct,gt){if((0,it.default)(ct))return gt();var st=function(Ct){Ct.target===ct&&(ct.removeEventListener("transitionend",st),gt())};ct.addEventListener("transitionend",st)},_.pxToNum=function(ct){return(0,ot.default)(ct.replace("px",""))},_.getPlatform=function(){var ct=(0,at.default)();return ct==="os x"?"mac":ct},_.resetCanvasSize=function(ct){ct.width=Math.round(ct.offsetWidth*window.devicePixelRatio),ct.height=Math.round(ct.offsetHeight*window.devicePixelRatio)}},6093:function(b,_,d){var k,j=this&&this.__extends||(k=function(it,dt){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ut,ht){ut.__proto__=ht}||function(ut,ht){for(var ft in ht)Object.prototype.hasOwnProperty.call(ht,ft)&&(ut[ft]=ht[ft])},k(it,dt)},function(it,dt){if(typeof dt!="function"&&dt!==null)throw new TypeError("Class extends value "+String(dt)+" is not a constructor or null");function ut(){this.constructor=it}k(it,dt),it.prototype=dt===null?Object.create(dt):(ut.prototype=dt.prototype,new ut)}),$=this&&this.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(_,"__esModule",{value:!0});var et=$(d(1512)),tt=$(d(5229)),rt=$(d(2244)),nt=$(d(8613)),ot=function(it){function dt(ut,ht){ht===void 0&&(ht={});var ft=it.call(this,ut,{compName:"notification"},ht)||this;return ft.notifications=[],ft.initOptions(ht,{position:{x:"right",y:"bottom"},duration:2e3}),ft.initTpl(),ft}return j(dt,it),dt.prototype.notify=function(ut,ht){var ft=this;ht===void 0&&(ht={duration:this.options.duration});var lt=new at(this,ut);this.notifications.push(lt),this.add(lt),setTimeout(function(){return ft.remove(lt.id)},ht.duration)},dt.prototype.dismissAll=function(){for(var ut=this.notifications,ht=ut[0];ht;)this.remove(ht.id),ht=ut[0]},dt.prototype.add=function(ut){this.container.appendChild(ut.container)},dt.prototype.remove=function(ut){var ht=this.notifications,ft=(0,rt.default)(ht,function(ct){return ct.id===ut});if(ft){ft.destroy();var lt=ht.indexOf(ft);ht.splice(lt,1)}},dt.prototype.initTpl=function(){var ut=this.$container,ht=this.options.position,ft=ht.x,lt=ht.y,ct="flex-end",gt="flex-end";switch(ft){case"center":gt="center";break;case"left":gt="flex-start"}lt==="top"&&(ct="flex-start"),ut.attr("style","justify-content: ".concat(ct,"; align-items: ").concat(gt))},dt}($(d(5404)).default);_.default=ot;var at=function(){function it(dt,ut){this.container=(0,nt.default)("div"),this.$container=(0,et.default)(this.container),this.notification=dt,this.content=ut,this.id=(0,tt.default)("luna-notification-"),this.$container.attr({id:this.id,class:dt.c("item ".concat(dt.getOption("position").y==="bottom"?"lower":"upper"))}),this.initTpl()}return it.prototype.destroy=function(){this.$container.remove()},it.prototype.initTpl=function(){this.$container.html(this.notification.c('
    '.concat(this.content,"
    ")))},it}();b.exports=ot,b.exports.default=ot},5404:function(b,_,d){var k,j=this&&this.__extends||(k=function(ut,ht){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ft,lt){ft.__proto__=lt}||function(ft,lt){for(var ct in lt)Object.prototype.hasOwnProperty.call(lt,ct)&&(ft[ct]=lt[ct])},k(ut,ht)},function(ut,ht){if(typeof ht!="function"&&ht!==null)throw new TypeError("Class extends value "+String(ht)+" is not a constructor or null");function ft(){this.constructor=ut}k(ut,ht),ut.prototype=ht===null?Object.create(ht):(ft.prototype=ht.prototype,new ft)}),$=this&&this.__importDefault||function(ut){return ut&&ut.__esModule?ut:{default:ut}};Object.defineProperty(_,"__esModule",{value:!0});var et=$(d(1443)),tt=$(d(1512)),rt=d(164),nt=$(d(3783)),ot=$(d(6329)),at=$(d(4193)),it=$(d(5852)),dt=function(ut){function ht(ft,lt,ct){var gt=lt.compName,st=(ct===void 0?{}:ct).theme,Ct=st===void 0?"light":st,xt=ut.call(this)||this;return xt.subComponents=[],xt.compName=gt,xt.c=(0,rt.classPrefix)(gt),xt.options={},xt.container=ft,xt.$container=(0,tt.default)(ft),xt.$container.addClass(["luna-".concat(gt),xt.c("platform-".concat((0,rt.getPlatform)()))]),xt.on("optionChange",function(wt,Mt,kt){var _t=xt.c;wt==="theme"&&(xt.$container.rmClass(_t("theme-".concat(kt))).addClass(_t("theme-".concat(Mt))),(0,nt.default)(xt.subComponents,function(Tt){return Tt.setOption("theme",Mt)}))}),xt.setOption("theme",Ct),xt}return j(ht,ut),ht.prototype.destroy=function(){this.destroySubComponents();var ft=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(ft("platform-".concat((0,rt.getPlatform)()))).rmClass(ft("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()},ht.prototype.setOption=function(ft,lt){var ct=this,gt=this.options,st={};typeof ft=="string"?st[ft]=lt:st=ft,(0,nt.default)(st,function(Ct,xt){var wt=gt[xt];gt[xt]=Ct,ct.emit("optionChange",xt,Ct,wt)})},ht.prototype.getOption=function(ft){return this.options[ft]},ht.prototype.addSubComponent=function(ft){ft.setOption("theme",this.options.theme),this.subComponents.push(ft)},ht.prototype.removeSubComponent=function(ft){(0,it.default)(this.subComponents,function(lt){return lt===ft})},ht.prototype.destroySubComponents=function(){(0,nt.default)(this.subComponents,function(ft){return ft.destroy()}),this.subComponents=[]},ht.prototype.initOptions=function(ft,lt){lt===void 0&&(lt={}),(0,at.default)(ft,lt),(0,ot.default)(this.options,ft)},ht.prototype.find=function(ft){return this.$container.find(this.c(ft))},ht}(et.default);_.default=dt},164:function(b,_,d){var k=this&&this.__importDefault||function(ct){return ct&&ct.__esModule?ct:{default:ct}};Object.defineProperty(_,"__esModule",{value:!0}),_.resetCanvasSize=_.getPlatform=_.pxToNum=_.executeAfterTransition=_.hasVerticalScrollbar=_.measuredScrollbarWidth=_.eventClient=_.drag=_.classPrefix=void 0;var j=k(d(2461)),$=k(d(4331)),et=k(d(5610)),tt=k(d(7483)),rt=k(d(3990)),nt=k(d(6341)),ot=k(d(3875)),at=k(d(6954)),it=k(d(9585));function dt(ct,gt){for(var st=0,Ct=ct.length;st]*>/g.test(Ct))try{var xt=tt.default.parse(Ct);return dt(xt,function(wt){wt.attrs&&wt.attrs.class&&(wt.attrs.class=st(wt.attrs.class))}),tt.default.stringify(xt)}catch{return st(Ct)}return st(Ct)}};var ut,ht="ontouchstart"in et.default,ft={start:"touchstart",move:"touchmove",end:"touchend"},lt={start:"mousedown",move:"mousemove",end:"mouseup"};_.drag=function(ct){return ht?ft[ct]:lt[ct]},_.eventClient=function(ct,gt){var st=ct==="x"?"clientX":"clientY";return gt[st]?gt[st]:gt.changedTouches?gt.changedTouches[0][st]:0},_.measuredScrollbarWidth=function(){if((0,rt.default)(ut))return ut;if(!document)return 16;var ct=document.createElement("div"),gt=document.createElement("div");return ct.setAttribute("style","display: block; width: 100px; height: 100px; overflow: scroll;"),gt.setAttribute("style","height: 200px"),ct.appendChild(gt),document.body.appendChild(ct),ut=ct.offsetWidth-ct.clientWidth,document.body.removeChild(ct),ut},_.hasVerticalScrollbar=function(ct){return ct.scrollHeight>ct.offsetHeight},_.executeAfterTransition=function(ct,gt){if((0,it.default)(ct))return gt();var st=function(Ct){Ct.target===ct&&(ct.removeEventListener("transitionend",st),gt())};ct.addEventListener("transitionend",st)},_.pxToNum=function(ct){return(0,ot.default)(ct.replace("px",""))},_.getPlatform=function(){var ct=(0,at.default)();return ct==="os x"?"mac":ct},_.resetCanvasSize=function(ct){ct.width=Math.round(ct.offsetWidth*window.devicePixelRatio),ct.height=Math.round(ct.offsetHeight*window.devicePixelRatio)}},8169:function(b,_,d){d.r(_),d.d(_,{default:function(){return ft}});var k={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},j=/([astvzqmhlc])([^astvzqmhlc]*)/gi,$=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi,et=function(lt){var ct=[],gt=String(lt).trim();return gt[0]!=="M"&>[0]!=="m"||gt.replace(j,function(st,Ct,xt){var wt=Ct.toLowerCase(),Mt=function(_t){var Tt=_t.match($);return Tt?Tt.map(Number):[]}(xt),kt=Ct;if(wt==="m"&&Mt.length>2&&(ct.push([kt].concat(Mt.splice(0,2))),wt="l",kt=kt==="m"?"l":"L"),Mt.length=k[wt]&&Mt.length&&k[wt];)ct.push([kt].concat(Mt.splice(0,k[wt])));return""}),ct};function tt(lt,ct){for(var gt=0;gtlt.length)&&(ct=lt.length);for(var gt=0,st=new Array(ct);gt1&&(On*=Pt=Math.sqrt(Pt),_n*=Pt),Zt=On*On*_n*_n,rn=On*On*Ot.y*Ot.y+_n*_n*Ot.x*Ot.x,it(An={x:On*Ot.y/_n,y:-_n*Ot.x/On},At!==Tt?Math.sqrt((Zt-rn)/rn)||0:-Math.sqrt((Zt-rn)/rn)||0),_t=Math.atan2((Ot.y-An.y)/_n,(Ot.x-An.x)/On),kt=Math.atan2(-(Ot.y+An.y)/_n,-(Ot.x+An.x)/On),at(An,Lt),gn=An,Ln=(Et.x+Mn.x)/2,Fn=(Et.y+Mn.y)/2,gn.x+=Ln,gn.y+=Fn,wt.save(),wt.translate(An.x,An.y),wt.rotate(Lt),wt.scale(On,_n),wt.arc(0,0,1,_t,kt,!At),wt.restore();break;case"C":mn=wn[3],jn=wn[4],nn=wn[5],Vt=wn[6],wt.bezierCurveTo(wn[1],wn[2],mn,jn,nn,Vt);break;case"c":wt.bezierCurveTo(wn[1]+nn,wn[2]+Vt,wn[3]+nn,wn[4]+Vt,wn[5]+nn,wn[6]+Vt),mn=wn[3]+nn,jn=wn[4]+Vt,nn+=wn[5],Vt+=wn[6];break;case"S":mn!==null&&jn!==null||(mn=nn,jn=Vt),wt.bezierCurveTo(2*nn-mn,2*Vt-jn,wn[1],wn[2],wn[3],wn[4]),mn=wn[1],jn=wn[2],nn=wn[3],Vt=wn[4];break;case"s":mn!==null&&jn!==null||(mn=nn,jn=Vt),wt.bezierCurveTo(2*nn-mn,2*Vt-jn,wn[1]+nn,wn[2]+Vt,wn[3]+nn,wn[4]+Vt),mn=wn[1]+nn,jn=wn[2]+Vt,nn+=wn[3],Vt+=wn[4];break;case"Q":kn=wn[1],vn=wn[2],nn=wn[3],Vt=wn[4],wt.quadraticCurveTo(kn,vn,nn,Vt);break;case"q":kn=wn[1]+nn,vn=wn[2]+Vt,nn+=wn[3],Vt+=wn[4],wt.quadraticCurveTo(kn,vn,nn,Vt);break;case"T":kn!==null&&vn!==null||(kn=nn,vn=Vt),kn=2*nn-kn,vn=2*Vt-vn,nn=wn[1],Vt=wn[2],wt.quadraticCurveTo(kn,vn,nn,Vt);break;case"t":kn!==null&&vn!==null||(kn=nn,vn=Vt),kn=2*nn-kn,vn=2*Vt-vn,nn+=wn[1],Vt+=wn[2],wt.quadraticCurveTo(kn,vn,nn,Vt);break;case"z":case"Z":nn=Un.x,Vt=Un.y,Un=void 0,wt.closePath();break;case"AC":nn=wn[1],Vt=wn[2],In=wn[3],_t=wn[4],kt=wn[5],En=wn[6],wt.arc(nn,Vt,In,_t,kt,En);break;case"AT":Qt=wn[1],fn=wn[2],nn=wn[3],Vt=wn[4],In=wn[5],wt.arcTo(Qt,fn,nn,Vt,In);break;case"E":nn=wn[1],Vt=wn[2],On=wn[3],_n=wn[4],Lt=wn[5],_t=wn[6],kt=wn[7],En=wn[8],wt.save(),wt.translate(nn,Vt),wt.rotate(Lt),wt.scale(On,_n),wt.arc(0,0,1,_t,kt,En),wt.restore();break;case"R":nn=wn[1],Vt=wn[2],Pn=wn[3],Yn=wn[4],Un={x:nn,y:Vt},wt.rect(nn,Vt,Pn,Yn)}Mn.x=nn,Mn.y=Vt}}},ut=et,ht=dt;typeof window<"u"&&ht(window);var ft={path2dPolyfill:ht,parsePath:ut}},2777:function(b){b.exports=`.luna-dom-highlighter{position:fixed;left:0;top:0;width:100%;height:100%;z-index:100000;pointer-events:none;font-size:13px}.luna-dom-highlighter-fill{position:absolute;top:0;right:0;bottom:0;left:0}.luna-dom-highlighter-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-dom-highlighter-platform-mac{color:#303942;font-family:'.SFNSDisplay-Regular','Helvetica Neue','Lucida Grande',sans-serif}.luna-dom-highlighter-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-dom-highlighter-px{color:gray}#luna-dom-highlighter-element-title{position:absolute;z-index:10}.luna-dom-highlighter-tooltip-content{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:#fff;padding:5px 8px;border:1px solid #fff;border-radius:3px;box-sizing:border-box;min-width:100px;max-width:min(300px,100% - 4px);z-index:2;background-clip:padding-box;will-change:transform;text-rendering:optimizeLegibility;pointer-events:none;filter:drop-shadow(0 2px 4px rgba(0,0,0,.35))}.luna-dom-highlighter-tooltip-content .luna-dom-highlighter-tooltip-arrow{background:#fff;width:15px;height:8px;position:absolute}.luna-dom-highlighter-element-info-section{margin-top:12px;margin-bottom:6px}.luna-dom-highlighter-section-name{color:#333;font-weight:500;font-size:10px;text-transform:uppercase;letter-spacing:.05em;line-height:12px}.luna-dom-highlighter-element-info{display:flex;flex-direction:column}.luna-dom-highlighter-element-info-header{display:flex;align-items:center}.luna-dom-highlighter-element-info-body{display:flex;flex-direction:column;padding-top:2px;margin-top:2px}.luna-dom-highlighter-element-info-row{display:flex;line-height:19px}.luna-dom-highlighter-separator-container{display:flex;align-items:center;flex:auto;margin-left:7px}.luna-dom-highlighter-separator{border-top:1px solid #ddd;width:100%}.luna-dom-highlighter-element-info-name{flex-shrink:0;color:#666}.luna-dom-highlighter-element-info-gap{flex:auto}.luna-dom-highlighter-element-info-value-color{display:flex;color:#303942;margin-left:10px;align-items:baseline}.luna-dom-highlighter-a11y-icon{width:16px;height:16px;background-repeat:no-repeat;display:inline-block}.luna-dom-highlighter-element-info-value-contrast{display:flex;align-items:center;text-align:right;color:#303942;margin-left:10px}.luna-dom-highlighter-element-info-value-contrast .luna-dom-highlighter-a11y-icon{margin-left:8px}.luna-dom-highlighter-element-info-value-icon{display:flex;align-items:center}.luna-dom-highlighter-element-info-value-text{text-align:right;color:#303942;margin-left:10px;align-items:baseline;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.luna-dom-highlighter-color-swatch{display:flex;margin-right:2px;width:10px;height:10px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);line-height:10px}.luna-dom-highlighter-color-swatch-inner{flex:auto;border:1px solid #808002}.luna-dom-highlighter-element-layout-type{margin-right:10px;width:16px;height:16px}.luna-dom-highlighter-element-layout-type.luna-dom-highlighter-grid{background-image:url('data:image/svg+xml,')}.luna-dom-highlighter-element-layout-type.luna-dom-highlighter-flex{background-image:url('data:image/svg+xml,')}.luna-dom-highlighter-element-description{flex:1 1;font-weight:700;word-wrap:break-word;word-break:break-all}.luna-dom-highlighter-dimensions{color:#737373;text-align:right;margin-left:10px}.luna-dom-highlighter-material-node-width{margin-right:2px}.luna-dom-highlighter-material-node-height{margin-left:2px}.luna-dom-highlighter-material-tag-name{color:#881280}.luna-dom-highlighter-material-class-name,.luna-dom-highlighter-material-node-id{color:#1a1aa6}.luna-dom-highlighter-contrast-text{width:16px;height:16px;text-align:center;line-height:16px;margin-right:8px;border:1px solid #000;padding:0 1px}.luna-dom-highlighter-a11y-icon-not-ok{background-image:url('data:image/svg+xml,')}.luna-dom-highlighter-a11y-icon-warning{background-image:url('data:image/svg+xml,')}.luna-dom-highlighter-a11y-icon-ok{background-image:url('data:image/svg+xml,')}@media (forced-colors:active){:root,body{background-color:transparent;forced-color-adjust:none}.luna-dom-highlighter-tooltip-content{border-color:Highlight;background-color:canvas;color:text;forced-color-adjust:none}.luna-dom-highlighter-tooltip-content::after{background-color:Highlight}.luna-dom-highlighter-color-swatch-inner,.luna-dom-highlighter-contrast-text,.luna-dom-highlighter-separator{border-color:Highlight}.luna-dom-highlighter-section-name{color:Highlight}.luna-dom-highlighter-dimensions,.luna-dom-highlighter-element-info-name,.luna-dom-highlighter-element-info-value-color,.luna-dom-highlighter-element-info-value-contrast,.luna-dom-highlighter-element-info-value-icon,.luna-dom-highlighter-element-info-value-text,.luna-dom-highlighter-material-class-name,.luna-dom-highlighter-material-node-id,.luna-dom-highlighter-material-tag-name{color:canvastext}} + at `).concat(tt.filename,":").concat(tt.lineno,":").concat(tt.colno),et(rt)}}),window.addEventListener("unhandledrejection",function(tt){et(tt.reason)})):(process.on("uncaughtException",et),process.on("unhandledRejection",et)),b.exports=_},7387:function(b,_,d){var k=d(8901),j=d(2533);_=function(ot){return tt.test(ot)?ot.replace(rt,nt):ot};var $=d(7190)(k.map),et="(?:"+j($).join("|")+")",tt=new RegExp(et),rt=new RegExp(et,"g");function nt(ot){return $[ot]}b.exports=_},5229:function(b,_){var d=0;_=function(k){var j=++d+"";return k?k+j:j},b.exports=_},42:function(b,_,d){var k=d(5972);function j($,et){return $===et}_=function($,et){return et=et||j,k($,function(tt,rt,nt){for(var ot=nt.length;++rt>6*lt)+ct);lt>0;)gt+=it(128|63&ft>>6*(lt-1)),lt--;return gt}function ut(ft){for(;;){if($>=et&&nt){if(ft)return ht();throw new Error("Invalid byte index")}if($===et)return!1;var lt=j[$];if($++,nt){if(ltat){if(ft)return $--,ht();throw new Error("Invalid continuation byte")}if(ot=128,at=191,tt=tt<<6|63<,++rt===nt){var ct=tt;return tt=0,nt=0,rt=0,ct}}else{if(!(128<))return lt;if((224<)==192)nt=1,tt=31<else if((240<)==224)lt===224&&(ot=160),lt===237&&(at=159),nt=2,tt=15<else{if((248<)!=240){if(ft)return ht();throw new Error("Invalid UTF-8 detected")}lt===240&&(ot=144),lt===244&&(at=143),nt=3,tt=7<}}}}function ht(){var ft=$-rt-1;return $=ft+1,tt=0,nt=0,rt=0,ot=128,at=191,j[ft]}b.exports=_},5936:function(b,_,d){var k=d(3366);_=function(){var et=k(16);return et[6]=15&et[6]|64,et[8]=63&et[8]|128,j[et[0]]+j[et[1]]+j[et[2]]+j[et[3]]+"-"+j[et[4]]+j[et[5]]+"-"+j[et[6]]+j[et[7]]+"-"+j[et[8]]+j[et[9]]+"-"+j[et[10]]+j[et[11]]+j[et[12]]+j[et[13]]+j[et[14]]+j[et[15]]};for(var j=[],$=0;$<256;$++)j[$]=($+256).toString(16).substr(1);b.exports=_},2578:function(b,_,d){var k=d(3783);_=function(j){var $=[];return k(j,function(et){$.push(et)}),$},b.exports=_},3514:function(b,_,d){var k=d(8573),j=d(9882),$=d(4331),et=d(3783),tt=d(2461),rt=d(9433);_=function(){var nt=k("viewport");if(!nt)return 1;nt=tt(nt.split(","),function(ut){return $(ut)});var ot=.25,at=5,it=1;et(nt,function(ut){var ht=(ut=ut.split("="))[0];ut=ut[1],ht==="initial-scale"&&(it=+ut),ht==="maximum-scale"&&(at=+ut),ht==="minimum-scale"&&(ot=+ut)});var dt=j(it,ot,at);return rt(dt)?1:dt},b.exports=_},5491:function(b,_,d){var k=d(4198);_=function(j,$){return k($,j)},b.exports=_},8933:function(b,_){_=function(d){for(var k=[],j=document.evaluate(d,document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),$=0;$=Et.length&&(Et=void 0),{value:Et&&Et[Bt++],done:!Et}}};throw new TypeError(Ot?"Object is not iterable.":"Symbol.iterator is not defined.")},tt=this&&this.__importDefault||function(Et){return Et&&Et.__esModule?Et:{default:Et}};Object.defineProperty(_,"__esModule",{value:!0});var rt=tt(d(1160)),nt=d(7669),ot=d(2062),at=tt(d(242)),it=tt(d(2439)),dt=tt(d(3063)),ut=tt(d(3783)),ht=tt(d(3009)),ft=tt(d(5044)),lt=tt(d(4502)),ct=tt(d(6329)),gt=tt(d(7494)),st=tt(d(6341)),Ct=tt(d(3875)),xt=tt(d(3577)),wt=tt(d(6768));d(8169);var Mt=function(Et){function Ot(Lt,Bt){Bt===void 0&&(Bt={});var Zt=Et.call(this,Lt,{compName:"dom-highlighter"},Bt)||this;return Zt.overlay=new nt.HighlightOverlay(window),Zt.reset=function(){var rn=document.documentElement.clientWidth,nn=document.documentElement.clientHeight;Zt.overlay.reset({viewportSize:{width:rn,height:nn},deviceScaleFactor:1,pageScaleFactor:1,pageZoomFactor:1,emulationScaleFactor:1,scrollX:window.scrollX,scrollY:window.scrollY})},Zt.initOptions(Bt,{showRulers:!1,showExtensionLines:!1,showInfo:!0,showStyles:!0,showAccessibilityInfo:!0,colorFormat:"hex",contentColor:"rgba(111, 168, 220, .66)",paddingColor:"rgba(147, 196, 125, .55)",borderColor:"rgba(255, 229, 153, .66)",marginColor:"rgba(246, 178, 107, .66)",monitorResize:!0}),Zt.overlay.setContainer(Lt),Zt.overlay.setPlatform("mac"),Zt.redraw=(0,it.default)(function(){Zt.reset(),Zt.draw()},16),Zt.redraw(),Zt.bindEvent(),Zt}return j(Ot,Et),Ot.prototype.highlight=function(Lt,Bt){Bt&&(0,ct.default)(this.options,Bt),this.target=Lt,Lt instanceof HTMLElement&&this.options.monitorResize&&(this.resizeSensor&&this.resizeSensor.destroy(),this.resizeSensor=new at.default(Lt),this.resizeSensor.addListener(this.redraw)),this.redraw()},Ot.prototype.hide=function(){this.target=null,this.redraw()},Ot.prototype.intercept=function(Lt){this.interceptor=Lt},Ot.prototype.destroy=function(){window.removeEventListener("resize",this.redraw),window.removeEventListener("scroll",this.redraw),this.resizeSensor&&this.resizeSensor.destroy(),Et.prototype.destroy.call(this)},Ot.prototype.draw=function(){var Lt=this.target;Lt&&(Lt instanceof Text?this.drawText(Lt):this.drawElement(Lt))},Ot.prototype.drawText=function(Lt){var Bt=this.options,Zt=document.createRange();Zt.selectNode(Lt);var rn=Zt.getBoundingClientRect(),nn=rn.left,Qt=rn.top,Vt=rn.width,fn=rn.height;Zt.detach();var In={paths:[{path:this.rectToPath({left:nn,top:Qt,width:Vt,height:fn}),fillColor:Tt(Bt.contentColor),name:"content"}],showExtensionLines:Bt.showExtensionLines,showRulers:Bt.showRulers};Bt.showInfo&&(In.elementInfo={tagName:"#text",nodeWidth:Vt,nodeHeight:fn}),this.overlay.drawHighlight(In)},Ot.prototype.drawElement=function(Lt){var Bt={paths:this.getPaths(Lt),showExtensionLines:this.options.showExtensionLines,showRulers:this.options.showRulers,colorFormat:this.options.colorFormat};if(this.options.showInfo&&(Bt.elementInfo=this.getElementInfo(Lt)),this.interceptor){var Zt=this.interceptor(Bt);Zt&&(Bt=Zt)}this.overlay.drawHighlight(Bt)},Ot.prototype.getPaths=function(Lt){var Bt=this.options,Zt=window.getComputedStyle(Lt),rn=Lt.getBoundingClientRect(),nn=rn.left,Qt=rn.top,Vt=rn.width,fn=rn.height,In=function(Ln){return(0,ot.pxToNum)(Zt.getPropertyValue(Ln))},On=In("margin-left"),_n=In("margin-right"),Bn=In("margin-top"),Yn=In("margin-bottom"),dn=In("border-left-width"),An=In("border-right-width"),mn=In("border-top-width"),jn=In("border-bottom-width"),kn=In("padding-left"),vn=In("padding-right"),En=In("padding-top"),gn=In("padding-bottom");return[{path:this.rectToPath({left:nn+dn+kn,top:Qt+mn+En,width:Vt-dn-kn-An-vn,height:fn-mn-En-jn-gn}),fillColor:Tt(Bt.contentColor),name:"content"},{path:this.rectToPath({left:nn+dn,top:Qt+mn,width:Vt-dn-An,height:fn-mn-jn}),fillColor:Tt(Bt.paddingColor),name:"padding"},{path:this.rectToPath({left:nn,top:Qt,width:Vt,height:fn}),fillColor:Tt(Bt.borderColor),name:"border"},{path:this.rectToPath({left:nn-On,top:Qt-Bn,width:Vt+On+_n,height:fn+Bn+Yn}),fillColor:Tt(Bt.marginColor),name:"margin"}]},Ot.prototype.getElementInfo=function(Lt){var Bt=Lt.getBoundingClientRect(),Zt=Bt.width,rn=Bt.height,nn=Lt.getAttribute("class")||"";nn=nn.split(/\s+/).map(function(Vt){return"."+Vt}).join("");var Qt={tagName:(0,dt.default)(Lt.tagName),className:nn,idValue:Lt.id,nodeWidth:Zt,nodeHeight:rn};return this.options.showStyles&&(Qt.style=this.getStyles(Lt)),this.options.showAccessibilityInfo&&(0,ct.default)(Qt,this.getAccessibilityInfo(Lt)),Qt},Ot.prototype.getStyles=function(Lt){for(var Bt=window.getComputedStyle(Lt),Zt=!1,rn=Lt.childNodes,nn=0,Qt=rn.length;nn-1)},Ot.prototype.getAccessibleNameAndRole=function(Lt){var Bt=Lt.getAttribute("labelledby")||Lt.getAttribute("aria-label"),Zt=Lt.getAttribute("role"),rn=(0,dt.default)(Lt.tagName);return xt.default.forEach(function(nn){var Qt,Vt;if(!Zt){var fn=nn[0],In=nn[2];if(fn===rn){if(In)try{for(var On=et(In),_n=On.next();!_n.done;_n=On.next()){var Bn=_n.value;if(Lt.getAttribute(Bn[0])!==Bn[1])return}}catch(Yn){Qt={error:Yn}}finally{try{_n&&!_n.done&&(Vt=On.return)&&Vt.call(On)}finally{if(Qt)throw Qt.error}}Zt=nn[1]}}}),{accessibleName:Bt||Lt.getAttribute("title")||"",accessibleRole:Zt||"generic"}},Ot.prototype.bindEvent=function(){var Lt=this;window.addEventListener("resize",this.redraw),window.addEventListener("scroll",this.redraw),this.on("optionChange",function(){return Lt.redraw()})},Ot.prototype.rectToPath=function(Lt){var Bt=Lt.left,Zt=Lt.top,rn=Lt.width,nn=Lt.height,Qt=[];return Qt.push("M",Bt,Zt),Qt.push("L",Bt+rn,Zt),Qt.push("L",Bt+rn,Zt+nn),Qt.push("L",Bt,Zt+nn),Qt.push("Z"),Qt},Ot}(rt.default);_.default=Mt,b.exports=Mt,b.exports.default=Mt;var kt=/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,_t=/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*(?:\.\d+)?)\)$/;function Tt(Et){return(0,wt.default)(Et)?Et:Et.a?"rgba(".concat(Et.r,", ").concat(Et.g,", ").concat(Et.b,", ").concat(Et.a,")"):"rgb(".concat(Et.r,", ").concat(Et.g,", ").concat(Et.b,")")}function At(Et,Ot,Lt){Lt===void 0&&(Lt=!1);var Bt={};return(0,ut.default)(Ot,function(Zt){var rn,nn=Et[Zt==="text-opacity"?"color":Zt];nn&&(rn=nn,(kt.test(rn)||_t.test(rn))&&(nn=function(Qt){var Vt=ht.default.parse(Qt),fn=Vt.val[3]||1;return Vt.val=Vt.val.slice(0,3),Vt.val.push(Math.round(255*fn)),"#"+(0,lt.default)(ft.default.encode(Vt.val))}(nn),Zt==="text-opacity"&&(nn=nn.slice(7),nn=ft.default.decode(nn)[0]/255)),Lt&&(Zt=(0,gt.default)(Zt)),Bt[Zt]=nn)}),Bt}},9706:function(b,_){var d=this&&this.__read||function(_t,Tt){var At=typeof Symbol=="function"&&_t[Symbol.iterator];if(!At)return _t;var Et,Ot,Lt=At.call(_t),Bt=[];try{for(;(Tt===void 0||Tt-- >0)&&!(Et=Lt.next()).done;)Bt.push(Et.value)}catch(Zt){Ot={error:Zt}}finally{try{Et&&!Et.done&&(At=Lt.return)&&At.call(Lt)}finally{if(Ot)throw Ot.error}}return Bt},k=this&&this.__values||function(_t){var Tt=typeof Symbol=="function"&&Symbol.iterator,At=Tt&&_t[Tt],Et=0;if(At)return At.call(_t);if(_t&&typeof _t.length=="number")return{next:function(){return _t&&Et>=_t.length&&(_t=void 0),{value:_t&&_t[Et++],done:!_t}}};throw new TypeError(Tt?"Object is not iterable.":"Symbol.iterator is not defined.")};function j(_t,Tt){var At=_t[3];return[(1-At)*Tt[0]+At*_t[0],(1-At)*Tt[1]+At*_t[1],(1-At)*Tt[2]+At*_t[2],At+Tt[3]*(1-At)]}function $(_t){var Tt=d(_t,3),At=Tt[0],Et=Tt[1],Ot=Tt[2];return .2126*(At<=.03928?At/12.92:Math.pow((At+.055)/1.055,2.4))+.7152*(Et<=.03928?Et/12.92:Math.pow((Et+.055)/1.055,2.4))+.0722*(Ot<=.03928?Ot/12.92:Math.pow((Ot+.055)/1.055,2.4))}Object.defineProperty(_,"__esModule",{value:!0}),_.getContrastThreshold=_.isLargeFont=_.getAPCAThreshold=_.desiredLuminanceAPCA=_.contrastRatioByLuminanceAPCA=_.contrastRatioAPCA=_.luminanceAPCA=_.contrastRatio=_.luminance=_.rgbaToHsla=_.blendColors=void 0,_.blendColors=j,_.rgbaToHsla=function(_t){var Tt=d(_t,4),At=Tt[0],Et=Tt[1],Ot=Tt[2],Lt=Tt[3],Bt=Math.max(At,Et,Ot),Zt=Math.min(At,Et,Ot),rn=Bt-Zt,nn=Bt+Zt,Qt=.5*nn;return[Zt===Bt?0:At===Bt?(.16666666666666666*(Et-Ot)/rn+1)%1:Et===Bt?.16666666666666666*(Ot-At)/rn+.3333333333333333:.16666666666666666*(At-Et)/rn+.6666666666666666,Qt===0||Qt===1?0:Qt<=.5?rn/nn:rn/(2-nn),Qt,Lt]},_.luminance=$,_.contrastRatio=function(_t,Tt){var At=$(j(_t,Tt)),Et=$(Tt);return(Math.max(At,Et)+.05)/(Math.min(At,Et)+.05)};var et=2.4,tt=.55,rt=.58,nt=.62,ot=.57,at=.03,it=1.45,dt=1.25,ut=1.25,ht=5e-4,ft=.078,lt=12.82051282051282,ct=.06,gt=.001;function st(_t){var Tt=d(_t,3),At=Tt[0],Et=Tt[1],Ot=Tt[2];return .2126729*Math.pow(At,et)+.7151522*Math.pow(Et,et)+.072175*Math.pow(Ot,et)}function Ct(_t){return _t>at?_t:_t+Math.pow(at-_t,it)}function xt(_t,Tt){if(_t=Ct(_t),Tt=Ct(Tt),Math.abs(_t-Tt)=_t?(At=(Math.pow(Tt,tt)-Math.pow(_t,rt))*dt)-gt?0:At>-ft?At-At*lt*ct:At+ct)}_.luminanceAPCA=st,_.contrastRatioAPCA=function(_t,Tt){return xt(st(_t),st(Tt))},_.contrastRatioByLuminanceAPCA=xt,_.desiredLuminanceAPCA=function(_t,Tt,At){function Et(){return At?Math.pow(Math.abs(Math.pow(_t,nt)-(-Tt-ct)/ut),1/ot):Math.pow(Math.abs(Math.pow(_t,tt)-(Tt+ct)/dt),1/rt)}_t=Ct(_t),Tt/=100;var Ot=Et();return(Ot<0||Ot>1)&&(At=!At,Ot=Et()),Ot};var wt=[[12,-1,-1,-1,-1,100,90,80,-1,-1],[14,-1,-1,-1,100,90,80,60,60,-1],[16,-1,-1,100,90,80,60,55,50,50],[18,-1,-1,90,80,60,55,50,40,40],[24,-1,100,80,60,55,50,40,38,35],[30,-1,90,70,55,50,40,38,35,40],[36,-1,80,60,50,40,38,35,30,25],[48,100,70,55,40,38,35,30,25,20],[60,90,60,50,38,35,30,25,20,20],[72,80,55,40,35,30,25,20,20,20],[96,70,50,35,30,25,20,20,20,20],[120,60,40,30,25,20,20,20,20,20]];function Mt(_t,Tt){var At=72*parseFloat(_t.replace("px",""))/96;return["bold","bolder","600","700","800","900"].indexOf(Tt)!==-1?At>=14:At>=18}wt.reverse(),_.getAPCAThreshold=function(_t,Tt){var At,Et,Ot,Lt,Bt=parseFloat(_t.replace("px","")),Zt=parseFloat(Tt);try{for(var rn=k(wt),nn=rn.next();!nn.done;nn=rn.next()){var Qt=d(nn.value),Vt=Qt[0],fn=Qt.slice(1);if(Bt>=Vt)try{for(var In=(Ot=void 0,k([900,800,700,600,500,400,300,200,100].entries())),On=In.next();!On.done;On=In.next()){var _n=d(On.value,2),Bn=_n[0];if(Zt>=_n[1]){var Yn=fn[fn.length-1-Bn];return Yn===-1?null:Yn}}}catch(dn){Ot={error:dn}}finally{try{On&&!On.done&&(Lt=In.return)&&Lt.call(In)}finally{if(Ot)throw Ot.error}}}}catch(dn){At={error:dn}}finally{try{nn&&!nn.done&&(Et=rn.return)&&Et.call(rn)}finally{if(At)throw At.error}}return null},_.isLargeFont=Mt;var kt={largeFont:{aa:3,aaa:4.5},normalFont:{aa:4.5,aaa:7}};_.getContrastThreshold=function(_t,Tt){return Mt(_t,Tt)?kt.largeFont:kt.normalFont}},9434:function(b,_){var d=this&&this.__values||function(nt){var ot=typeof Symbol=="function"&&Symbol.iterator,at=ot&&nt[ot],it=0;if(at)return at.call(nt);if(nt&&typeof nt.length=="number")return{next:function(){return nt&&it>=nt.length&&(nt=void 0),{value:nt&&nt[it++],done:!nt}}};throw new TypeError(ot?"Object is not iterable.":"Symbol.iterator is not defined.")},k=this&&this.__read||function(nt,ot){var at=typeof Symbol=="function"&&nt[Symbol.iterator];if(!at)return nt;var it,dt,ut=at.call(nt),ht=[];try{for(;(ot===void 0||ot-- >0)&&!(it=ut.next()).done;)ht.push(it.value)}catch(ft){dt={error:ft}}finally{try{it&&!it.done&&(at=ut.return)&&at.call(ut)}finally{if(dt)throw dt.error}}return ht},j=this&&this.__spreadArray||function(nt,ot,at){if(at||arguments.length===2)for(var it,dt=0,ut=ot.length;dtat&&(nt=at),nt},_.adoptStyleSheet=rt},1521:function(b,_,d){var k=this&&this.__values||function(lt){var ct=typeof Symbol=="function"&&Symbol.iterator,gt=ct&<[ct],st=0;if(gt)return gt.call(lt);if(lt&&typeof lt.length=="number")return{next:function(){return lt&&st>=lt.length&&(lt=void 0),{value:lt&<[st++],done:!lt}}};throw new TypeError(ct?"Object is not iterable.":"Symbol.iterator is not defined.")},j=this&&this.__read||function(lt,ct){var gt=typeof Symbol=="function"&<[Symbol.iterator];if(!gt)return lt;var st,Ct,xt=gt.call(lt),wt=[];try{for(;(ct===void 0||ct-- >0)&&!(st=xt.next()).done;)wt.push(st.value)}catch(Mt){Ct={error:Mt}}finally{try{st&&!st.done&&(gt=xt.return)&>.call(xt)}finally{if(Ct)throw Ct.error}}return wt},$=this&&this.__spreadArray||function(lt,ct,gt){if(gt||arguments.length===2)for(var st,Ct=0,xt=ct.length;CtIn&&BnOn,An=Bt-fn;An=(0,rt.constrainNumber)(An,Qt,Tt-Zt-Qt);var mn=_t.minY-nn-rn,jn=!0;mn<0?(mn=Math.min(At-rn,_t.maxY+nn),jn=!1):_t.minY>At&&(mn=At-nn-rn);var kn=An>=_t.minX&&An+Zt<=_t.maxX&&mn>=_t.minY&&mn+rn<=_t.maxY,vn=An<_t.maxX&&An+Zt>_t.minX&&mn<_t.maxY&&mn+rn>_t.minY;if(vn&&!kn)return void(Ot.style.display="none");if(Ot.style.top=mn+"px",Ot.style.left=An+"px",!dn){var En=(0,rt.createChild)(Ot,"div","tooltip-arrow");En.style.clipPath=jn?"polygon(0 0, 100% 0, 50% 100%)":"polygon(50% 0, 0 100%, 100% 100%)",En.style.top=(jn?rn-1:-nn)+"px",En.style.left=Bt-An+"px"}}(this.tooltip,lt.elementInfo,lt.colorFormat,ct,this.canvasWidth,this.canvasHeight)),this.context.restore(),{bounds:ct}},ft.prototype.drawAxis=function(lt,ct,gt){lt.save();var st=this.pageZoomFactor*this.pageScaleFactor*this.emulationScaleFactor,Ct=this.scrollX*this.pageScaleFactor,xt=this.scrollY*this.pageScaleFactor;function wt(Zt){return Math.round(Zt*st)}function Mt(Zt){return Math.round(Zt/st)}var kt=this.canvasWidth/st,_t=this.canvasHeight/st,Tt=50;lt.save(),lt.fillStyle=dt,gt?lt.fillRect(0,wt(_t)-15,wt(kt),wt(_t)):lt.fillRect(0,0,wt(kt),15),lt.globalCompositeOperation="destination-out",lt.fillStyle="red",ct?lt.fillRect(wt(kt)-15,0,wt(kt),wt(_t)):lt.fillRect(0,0,15,wt(_t)),lt.restore(),lt.fillStyle=dt,ct?lt.fillRect(wt(kt)-15,0,wt(kt),wt(_t)):lt.fillRect(0,0,15,wt(_t)),lt.lineWidth=1,lt.strokeStyle=it,lt.fillStyle=it,lt.save(),lt.translate(-Ct,.5-xt);for(var At=_t+Mt(xt),Et=100;Et]*>/g.test(Ct))try{var xt=tt.default.parse(Ct);return dt(xt,function(wt){wt.attrs&&wt.attrs.class&&(wt.attrs.class=st(wt.attrs.class))}),tt.default.stringify(xt)}catch{return st(Ct)}return st(Ct)}};var ut,ht="ontouchstart"in et.default,ft={start:"touchstart",move:"touchmove",end:"touchend"},lt={start:"mousedown",move:"mousemove",end:"mouseup"};_.drag=function(ct){return ht?ft[ct]:lt[ct]},_.eventClient=function(ct,gt){var st=ct==="x"?"clientX":"clientY";return gt[st]?gt[st]:gt.changedTouches?gt.changedTouches[0][st]:0},_.eventPage=function(ct,gt){var st=ct==="x"?"pageX":"pageY";return gt[st]?gt[st]:gt.changedTouches?gt.changedTouches[0][st]:0},_.measuredScrollbarWidth=function(){if((0,rt.default)(ut))return ut;if(!document)return 16;var ct=document.createElement("div"),gt=document.createElement("div");return ct.setAttribute("style","display: block; width: 100px; height: 100px; overflow: scroll;"),gt.setAttribute("style","height: 200px"),ct.appendChild(gt),document.body.appendChild(ct),ut=ct.offsetWidth-ct.clientWidth,document.body.removeChild(ct),ut},_.hasVerticalScrollbar=function(ct){return ct.scrollHeight>ct.offsetHeight},_.executeAfterTransition=function(ct,gt){if((0,it.default)(ct))return gt();var st=function(Ct){Ct.target===ct&&(ct.removeEventListener("transitionend",st),gt())};ct.addEventListener("transitionend",st)},_.pxToNum=function(ct){return(0,ot.default)(ct.replace("px",""))},_.getPlatform=function(){var ct=(0,at.default)();return ct==="os x"?"mac":ct},_.resetCanvasSize=function(ct){ct.width=Math.round(ct.offsetWidth*window.devicePixelRatio),ct.height=Math.round(ct.offsetHeight*window.devicePixelRatio)}},6093:function(b,_,d){var k,j=this&&this.__extends||(k=function(it,dt){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ut,ht){ut.__proto__=ht}||function(ut,ht){for(var ft in ht)Object.prototype.hasOwnProperty.call(ht,ft)&&(ut[ft]=ht[ft])},k(it,dt)},function(it,dt){if(typeof dt!="function"&&dt!==null)throw new TypeError("Class extends value "+String(dt)+" is not a constructor or null");function ut(){this.constructor=it}k(it,dt),it.prototype=dt===null?Object.create(dt):(ut.prototype=dt.prototype,new ut)}),$=this&&this.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(_,"__esModule",{value:!0});var et=$(d(1512)),tt=$(d(5229)),rt=$(d(2244)),nt=$(d(8613)),ot=function(it){function dt(ut,ht){ht===void 0&&(ht={});var ft=it.call(this,ut,{compName:"notification"},ht)||this;return ft.notifications=[],ft.initOptions(ht,{position:{x:"right",y:"bottom"},duration:2e3}),ft.initTpl(),ft}return j(dt,it),dt.prototype.notify=function(ut,ht){var ft=this;ht===void 0&&(ht={duration:this.options.duration});var lt=new at(this,ut);this.notifications.push(lt),this.add(lt),setTimeout(function(){return ft.remove(lt.id)},ht.duration)},dt.prototype.dismissAll=function(){for(var ut=this.notifications,ht=ut[0];ht;)this.remove(ht.id),ht=ut[0]},dt.prototype.add=function(ut){this.container.appendChild(ut.container)},dt.prototype.remove=function(ut){var ht=this.notifications,ft=(0,rt.default)(ht,function(ct){return ct.id===ut});if(ft){ft.destroy();var lt=ht.indexOf(ft);ht.splice(lt,1)}},dt.prototype.initTpl=function(){var ut=this.$container,ht=this.options.position,ft=ht.x,lt=ht.y,ct="flex-end",gt="flex-end";switch(ft){case"center":gt="center";break;case"left":gt="flex-start"}lt==="top"&&(ct="flex-start"),ut.attr("style","justify-content: ".concat(ct,"; align-items: ").concat(gt))},dt}($(d(5404)).default);_.default=ot;var at=function(){function it(dt,ut){this.container=(0,nt.default)("div"),this.$container=(0,et.default)(this.container),this.notification=dt,this.content=ut,this.id=(0,tt.default)("luna-notification-"),this.$container.attr({id:this.id,class:dt.c("item ".concat(dt.getOption("position").y==="bottom"?"lower":"upper"))}),this.initTpl()}return it.prototype.destroy=function(){this.$container.remove()},it.prototype.initTpl=function(){this.$container.html(this.notification.c('
    '.concat(this.content,"
    ")))},it}();b.exports=ot,b.exports.default=ot},5404:function(b,_,d){var k,j=this&&this.__extends||(k=function(ut,ht){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ft,lt){ft.__proto__=lt}||function(ft,lt){for(var ct in lt)Object.prototype.hasOwnProperty.call(lt,ct)&&(ft[ct]=lt[ct])},k(ut,ht)},function(ut,ht){if(typeof ht!="function"&&ht!==null)throw new TypeError("Class extends value "+String(ht)+" is not a constructor or null");function ft(){this.constructor=ut}k(ut,ht),ut.prototype=ht===null?Object.create(ht):(ft.prototype=ht.prototype,new ft)}),$=this&&this.__importDefault||function(ut){return ut&&ut.__esModule?ut:{default:ut}};Object.defineProperty(_,"__esModule",{value:!0});var et=$(d(1443)),tt=$(d(1512)),rt=d(164),nt=$(d(3783)),ot=$(d(6329)),at=$(d(4193)),it=$(d(5852)),dt=function(ut){function ht(ft,lt,ct){var gt=lt.compName,st=(ct===void 0?{}:ct).theme,Ct=st===void 0?"light":st,xt=ut.call(this)||this;return xt.subComponents=[],xt.compName=gt,xt.c=(0,rt.classPrefix)(gt),xt.options={},xt.container=ft,xt.$container=(0,tt.default)(ft),xt.$container.addClass(["luna-".concat(gt),xt.c("platform-".concat((0,rt.getPlatform)()))]),xt.on("optionChange",function(wt,Mt,kt){var _t=xt.c;wt==="theme"&&(xt.$container.rmClass(_t("theme-".concat(kt))).addClass(_t("theme-".concat(Mt))),(0,nt.default)(xt.subComponents,function(Tt){return Tt.setOption("theme",Mt)}))}),xt.setOption("theme",Ct),xt}return j(ht,ut),ht.prototype.destroy=function(){this.destroySubComponents();var ft=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(ft("platform-".concat((0,rt.getPlatform)()))).rmClass(ft("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()},ht.prototype.setOption=function(ft,lt){var ct=this,gt=this.options,st={};typeof ft=="string"?st[ft]=lt:st=ft,(0,nt.default)(st,function(Ct,xt){var wt=gt[xt];gt[xt]=Ct,ct.emit("optionChange",xt,Ct,wt)})},ht.prototype.getOption=function(ft){return this.options[ft]},ht.prototype.addSubComponent=function(ft){ft.setOption("theme",this.options.theme),this.subComponents.push(ft)},ht.prototype.removeSubComponent=function(ft){(0,it.default)(this.subComponents,function(lt){return lt===ft})},ht.prototype.destroySubComponents=function(){(0,nt.default)(this.subComponents,function(ft){return ft.destroy()}),this.subComponents=[]},ht.prototype.initOptions=function(ft,lt){lt===void 0&&(lt={}),(0,at.default)(ft,lt),(0,ot.default)(this.options,ft)},ht.prototype.find=function(ft){return this.$container.find(this.c(ft))},ht}(et.default);_.default=dt},164:function(b,_,d){var k=this&&this.__importDefault||function(ct){return ct&&ct.__esModule?ct:{default:ct}};Object.defineProperty(_,"__esModule",{value:!0}),_.resetCanvasSize=_.getPlatform=_.pxToNum=_.executeAfterTransition=_.hasVerticalScrollbar=_.measuredScrollbarWidth=_.eventClient=_.drag=_.classPrefix=void 0;var j=k(d(2461)),$=k(d(4331)),et=k(d(5610)),tt=k(d(7483)),rt=k(d(3990)),nt=k(d(6341)),ot=k(d(3875)),at=k(d(6954)),it=k(d(9585));function dt(ct,gt){for(var st=0,Ct=ct.length;st]*>/g.test(Ct))try{var xt=tt.default.parse(Ct);return dt(xt,function(wt){wt.attrs&&wt.attrs.class&&(wt.attrs.class=st(wt.attrs.class))}),tt.default.stringify(xt)}catch{return st(Ct)}return st(Ct)}};var ut,ht="ontouchstart"in et.default,ft={start:"touchstart",move:"touchmove",end:"touchend"},lt={start:"mousedown",move:"mousemove",end:"mouseup"};_.drag=function(ct){return ht?ft[ct]:lt[ct]},_.eventClient=function(ct,gt){var st=ct==="x"?"clientX":"clientY";return gt[st]?gt[st]:gt.changedTouches?gt.changedTouches[0][st]:0},_.measuredScrollbarWidth=function(){if((0,rt.default)(ut))return ut;if(!document)return 16;var ct=document.createElement("div"),gt=document.createElement("div");return ct.setAttribute("style","display: block; width: 100px; height: 100px; overflow: scroll;"),gt.setAttribute("style","height: 200px"),ct.appendChild(gt),document.body.appendChild(ct),ut=ct.offsetWidth-ct.clientWidth,document.body.removeChild(ct),ut},_.hasVerticalScrollbar=function(ct){return ct.scrollHeight>ct.offsetHeight},_.executeAfterTransition=function(ct,gt){if((0,it.default)(ct))return gt();var st=function(Ct){Ct.target===ct&&(ct.removeEventListener("transitionend",st),gt())};ct.addEventListener("transitionend",st)},_.pxToNum=function(ct){return(0,ot.default)(ct.replace("px",""))},_.getPlatform=function(){var ct=(0,at.default)();return ct==="os x"?"mac":ct},_.resetCanvasSize=function(ct){ct.width=Math.round(ct.offsetWidth*window.devicePixelRatio),ct.height=Math.round(ct.offsetHeight*window.devicePixelRatio)}},8169:function(b,_,d){d.r(_),d.d(_,{default:function(){return ft}});var k={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},j=/([astvzqmhlc])([^astvzqmhlc]*)/gi,$=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi,et=function(lt){var ct=[],gt=String(lt).trim();return gt[0]!=="M"&>[0]!=="m"||gt.replace(j,function(st,Ct,xt){var wt=Ct.toLowerCase(),Mt=function(_t){var Tt=_t.match($);return Tt?Tt.map(Number):[]}(xt),kt=Ct;if(wt==="m"&&Mt.length>2&&(ct.push([kt].concat(Mt.splice(0,2))),wt="l",kt=kt==="m"?"l":"L"),Mt.length=k[wt]&&Mt.length&&k[wt];)ct.push([kt].concat(Mt.splice(0,k[wt])));return""}),ct};function tt(lt,ct){for(var gt=0;gtlt.length)&&(ct=lt.length);for(var gt=0,st=new Array(ct);gt1&&(On*=Bt=Math.sqrt(Bt),_n*=Bt),Zt=On*On*_n*_n,rn=On*On*Ot.y*Ot.y+_n*_n*Ot.x*Ot.x,it(An={x:On*Ot.y/_n,y:-_n*Ot.x/On},At!==Tt?Math.sqrt((Zt-rn)/rn)||0:-Math.sqrt((Zt-rn)/rn)||0),_t=Math.atan2((Ot.y-An.y)/_n,(Ot.x-An.x)/On),kt=Math.atan2(-(Ot.y+An.y)/_n,-(Ot.x+An.x)/On),at(An,Lt),gn=An,Ln=(Et.x+Mn.x)/2,Fn=(Et.y+Mn.y)/2,gn.x+=Ln,gn.y+=Fn,wt.save(),wt.translate(An.x,An.y),wt.rotate(Lt),wt.scale(On,_n),wt.arc(0,0,1,_t,kt,!At),wt.restore();break;case"C":mn=wn[3],jn=wn[4],nn=wn[5],Vt=wn[6],wt.bezierCurveTo(wn[1],wn[2],mn,jn,nn,Vt);break;case"c":wt.bezierCurveTo(wn[1]+nn,wn[2]+Vt,wn[3]+nn,wn[4]+Vt,wn[5]+nn,wn[6]+Vt),mn=wn[3]+nn,jn=wn[4]+Vt,nn+=wn[5],Vt+=wn[6];break;case"S":mn!==null&&jn!==null||(mn=nn,jn=Vt),wt.bezierCurveTo(2*nn-mn,2*Vt-jn,wn[1],wn[2],wn[3],wn[4]),mn=wn[1],jn=wn[2],nn=wn[3],Vt=wn[4];break;case"s":mn!==null&&jn!==null||(mn=nn,jn=Vt),wt.bezierCurveTo(2*nn-mn,2*Vt-jn,wn[1]+nn,wn[2]+Vt,wn[3]+nn,wn[4]+Vt),mn=wn[1]+nn,jn=wn[2]+Vt,nn+=wn[3],Vt+=wn[4];break;case"Q":kn=wn[1],vn=wn[2],nn=wn[3],Vt=wn[4],wt.quadraticCurveTo(kn,vn,nn,Vt);break;case"q":kn=wn[1]+nn,vn=wn[2]+Vt,nn+=wn[3],Vt+=wn[4],wt.quadraticCurveTo(kn,vn,nn,Vt);break;case"T":kn!==null&&vn!==null||(kn=nn,vn=Vt),kn=2*nn-kn,vn=2*Vt-vn,nn=wn[1],Vt=wn[2],wt.quadraticCurveTo(kn,vn,nn,Vt);break;case"t":kn!==null&&vn!==null||(kn=nn,vn=Vt),kn=2*nn-kn,vn=2*Vt-vn,nn+=wn[1],Vt+=wn[2],wt.quadraticCurveTo(kn,vn,nn,Vt);break;case"z":case"Z":nn=Un.x,Vt=Un.y,Un=void 0,wt.closePath();break;case"AC":nn=wn[1],Vt=wn[2],In=wn[3],_t=wn[4],kt=wn[5],En=wn[6],wt.arc(nn,Vt,In,_t,kt,En);break;case"AT":Qt=wn[1],fn=wn[2],nn=wn[3],Vt=wn[4],In=wn[5],wt.arcTo(Qt,fn,nn,Vt,In);break;case"E":nn=wn[1],Vt=wn[2],On=wn[3],_n=wn[4],Lt=wn[5],_t=wn[6],kt=wn[7],En=wn[8],wt.save(),wt.translate(nn,Vt),wt.rotate(Lt),wt.scale(On,_n),wt.arc(0,0,1,_t,kt,En),wt.restore();break;case"R":nn=wn[1],Vt=wn[2],Bn=wn[3],Yn=wn[4],Un={x:nn,y:Vt},wt.rect(nn,Vt,Bn,Yn)}Mn.x=nn,Mn.y=Vt}}},ut=et,ht=dt;typeof window<"u"&&ht(window);var ft={path2dPolyfill:ht,parsePath:ut}},2777:function(b){b.exports=`.luna-dom-highlighter{position:fixed;left:0;top:0;width:100%;height:100%;z-index:100000;pointer-events:none;font-size:13px}.luna-dom-highlighter-fill{position:absolute;top:0;right:0;bottom:0;left:0}.luna-dom-highlighter-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-dom-highlighter-platform-mac{color:#303942;font-family:'.SFNSDisplay-Regular','Helvetica Neue','Lucida Grande',sans-serif}.luna-dom-highlighter-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-dom-highlighter-px{color:gray}#luna-dom-highlighter-element-title{position:absolute;z-index:10}.luna-dom-highlighter-tooltip-content{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:#fff;padding:5px 8px;border:1px solid #fff;border-radius:3px;box-sizing:border-box;min-width:100px;max-width:min(300px,100% - 4px);z-index:2;background-clip:padding-box;will-change:transform;text-rendering:optimizeLegibility;pointer-events:none;filter:drop-shadow(0 2px 4px rgba(0,0,0,.35))}.luna-dom-highlighter-tooltip-content .luna-dom-highlighter-tooltip-arrow{background:#fff;width:15px;height:8px;position:absolute}.luna-dom-highlighter-element-info-section{margin-top:12px;margin-bottom:6px}.luna-dom-highlighter-section-name{color:#333;font-weight:500;font-size:10px;text-transform:uppercase;letter-spacing:.05em;line-height:12px}.luna-dom-highlighter-element-info{display:flex;flex-direction:column}.luna-dom-highlighter-element-info-header{display:flex;align-items:center}.luna-dom-highlighter-element-info-body{display:flex;flex-direction:column;padding-top:2px;margin-top:2px}.luna-dom-highlighter-element-info-row{display:flex;line-height:19px}.luna-dom-highlighter-separator-container{display:flex;align-items:center;flex:auto;margin-left:7px}.luna-dom-highlighter-separator{border-top:1px solid #ddd;width:100%}.luna-dom-highlighter-element-info-name{flex-shrink:0;color:#666}.luna-dom-highlighter-element-info-gap{flex:auto}.luna-dom-highlighter-element-info-value-color{display:flex;color:#303942;margin-left:10px;align-items:baseline}.luna-dom-highlighter-a11y-icon{width:16px;height:16px;background-repeat:no-repeat;display:inline-block}.luna-dom-highlighter-element-info-value-contrast{display:flex;align-items:center;text-align:right;color:#303942;margin-left:10px}.luna-dom-highlighter-element-info-value-contrast .luna-dom-highlighter-a11y-icon{margin-left:8px}.luna-dom-highlighter-element-info-value-icon{display:flex;align-items:center}.luna-dom-highlighter-element-info-value-text{text-align:right;color:#303942;margin-left:10px;align-items:baseline;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.luna-dom-highlighter-color-swatch{display:flex;margin-right:2px;width:10px;height:10px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);line-height:10px}.luna-dom-highlighter-color-swatch-inner{flex:auto;border:1px solid #808002}.luna-dom-highlighter-element-layout-type{margin-right:10px;width:16px;height:16px}.luna-dom-highlighter-element-layout-type.luna-dom-highlighter-grid{background-image:url('data:image/svg+xml,')}.luna-dom-highlighter-element-layout-type.luna-dom-highlighter-flex{background-image:url('data:image/svg+xml,')}.luna-dom-highlighter-element-description{flex:1 1;font-weight:700;word-wrap:break-word;word-break:break-all}.luna-dom-highlighter-dimensions{color:#737373;text-align:right;margin-left:10px}.luna-dom-highlighter-material-node-width{margin-right:2px}.luna-dom-highlighter-material-node-height{margin-left:2px}.luna-dom-highlighter-material-tag-name{color:#881280}.luna-dom-highlighter-material-class-name,.luna-dom-highlighter-material-node-id{color:#1a1aa6}.luna-dom-highlighter-contrast-text{width:16px;height:16px;text-align:center;line-height:16px;margin-right:8px;border:1px solid #000;padding:0 1px}.luna-dom-highlighter-a11y-icon-not-ok{background-image:url('data:image/svg+xml,')}.luna-dom-highlighter-a11y-icon-warning{background-image:url('data:image/svg+xml,')}.luna-dom-highlighter-a11y-icon-ok{background-image:url('data:image/svg+xml,')}@media (forced-colors:active){:root,body{background-color:transparent;forced-color-adjust:none}.luna-dom-highlighter-tooltip-content{border-color:Highlight;background-color:canvas;color:text;forced-color-adjust:none}.luna-dom-highlighter-tooltip-content::after{background-color:Highlight}.luna-dom-highlighter-color-swatch-inner,.luna-dom-highlighter-contrast-text,.luna-dom-highlighter-separator{border-color:Highlight}.luna-dom-highlighter-section-name{color:Highlight}.luna-dom-highlighter-dimensions,.luna-dom-highlighter-element-info-name,.luna-dom-highlighter-element-info-value-color,.luna-dom-highlighter-element-info-value-contrast,.luna-dom-highlighter-element-info-value-icon,.luna-dom-highlighter-element-info-value-text,.luna-dom-highlighter-material-class-name,.luna-dom-highlighter-material-node-id,.luna-dom-highlighter-material-tag-name{color:canvastext}} /*# sourceMappingURL=luna-dom-highlighter.css.map*/`},907:function(b,_,d){function k(j,$){($==null||$>j.length)&&($=j.length);for(var et=0,tt=new Array($);et<$;et++)tt[et]=j[et];return tt}d.d(_,{Z:function(){return k}})},7326:function(b,_,d){function k(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}d.d(_,{Z:function(){return k}})},5671:function(b,_,d){function k(j,$){if(!(j instanceof $))throw new TypeError("Cannot call a class as a function")}d.d(_,{Z:function(){return k}})},3144:function(b,_,d){d.d(_,{Z:function(){return $}});var k=d(9142);function j(et,tt){for(var rt=0;rt"u"||typeof MessageChannel!="function"){var rt=null,nt=null,ot=function(){if(rt!==null)try{var Vt=b.unstable_now();rt(!0,Vt),rt=null}catch(fn){throw setTimeout(ot,0),fn}};_=function(Vt){rt!==null?setTimeout(_,0,Vt):(rt=Vt,setTimeout(ot,0))},d=function(Vt,fn){nt=setTimeout(Vt,fn)},k=function(){clearTimeout(nt)},b.unstable_shouldYield=function(){return!1},j=b.unstable_forceFrameRate=function(){}}else{var at=window.setTimeout,it=window.clearTimeout;if(typeof console<"u"){var dt=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof dt!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var ut=!1,ht=null,ft=-1,lt=5,ct=0;b.unstable_shouldYield=function(){return b.unstable_now()>=ct},j=function(){},b.unstable_forceFrameRate=function(Vt){0>Vt||125>>1,_n=Vt[On];if(_n!==void 0&&0Mt(Yn,In))An!==void 0&&0>Mt(An,Yn)?(Vt[On]=An,Vt[dn]=In,On=dn):(Vt[On]=Yn,Vt[Pn]=In,On=Pn);else if(An!==void 0&&0>Mt(An,In))Vt[On]=An,Vt[dn]=In,On=dn;else break e}}return fn}return null}function Mt(Vt,fn){var In=Vt.sortIndex-fn.sortIndex;return In!==0?In:Vt.id-fn.id}var kt=[],_t=[],Tt=1,At=null,Et=3,Ot=!1,Lt=!1,Pt=!1;function Zt(Vt){for(var fn=xt(_t);fn!==null;){if(fn.callback===null)wt(_t);else if(fn.startTime<=Vt)wt(_t),fn.sortIndex=fn.expirationTime,Ct(kt,fn);else break;fn=xt(_t)}}function rn(Vt){if(Pt=!1,Zt(Vt),!Lt)if(xt(kt)!==null)Lt=!0,_(nn);else{var fn=xt(_t);fn!==null&&d(rn,fn.startTime-Vt)}}function nn(Vt,fn){Lt=!1,Pt&&(Pt=!1,k()),Ot=!0;var In=Et;try{for(Zt(fn),At=xt(kt);At!==null&&(!(At.expirationTime>fn)||Vt&&!b.unstable_shouldYield());){var On=At.callback;if(typeof On=="function"){At.callback=null,Et=At.priorityLevel;var _n=On(At.expirationTime<=fn);fn=b.unstable_now(),typeof _n=="function"?At.callback=_n:At===xt(kt)&&wt(kt),Zt(fn)}else wt(kt);At=xt(kt)}if(At!==null)var Pn=!0;else{var Yn=xt(_t);Yn!==null&&d(rn,Yn.startTime-fn),Pn=!1}return Pn}finally{At=null,Et=In,Ot=!1}}var Qt=j;b.unstable_IdlePriority=5,b.unstable_ImmediatePriority=1,b.unstable_LowPriority=4,b.unstable_NormalPriority=3,b.unstable_Profiling=null,b.unstable_UserBlockingPriority=2,b.unstable_cancelCallback=function(Vt){Vt.callback=null},b.unstable_continueExecution=function(){Lt||Ot||(Lt=!0,_(nn))},b.unstable_getCurrentPriorityLevel=function(){return Et},b.unstable_getFirstCallbackNode=function(){return xt(kt)},b.unstable_next=function(Vt){switch(Et){case 1:case 2:case 3:var fn=3;break;default:fn=Et}var In=Et;Et=fn;try{return Vt()}finally{Et=In}},b.unstable_pauseExecution=function(){},b.unstable_requestPaint=Qt,b.unstable_runWithPriority=function(Vt,fn){switch(Vt){case 1:case 2:case 3:case 4:case 5:break;default:Vt=3}var In=Et;Et=Vt;try{return fn()}finally{Et=In}},b.unstable_scheduleCallback=function(Vt,fn,In){var On=b.unstable_now();switch(typeof In=="object"&&In!==null?(In=In.delay,In=typeof In=="number"&&0On?(Vt.sortIndex=In,Ct(_t,Vt),xt(kt)===null&&Vt===xt(_t)&&(Pt?k():Pt=!0,d(rn,In-On))):(Vt.sortIndex=_n,Ct(kt,Vt),Lt||Ot||(Lt=!0,_(nn))),Vt},b.unstable_wrapCallback=function(Vt){var fn=Et;return function(){var In=Et;Et=fn;try{return Vt.apply(this,arguments)}finally{Et=In}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** @license React v17.0.2 + */(function(b){var _,d,k,j;if(typeof performance=="object"&&typeof performance.now=="function"){var $=performance;b.unstable_now=function(){return $.now()}}else{var et=Date,tt=et.now();b.unstable_now=function(){return et.now()-tt}}if(typeof window>"u"||typeof MessageChannel!="function"){var rt=null,nt=null,ot=function(){if(rt!==null)try{var Vt=b.unstable_now();rt(!0,Vt),rt=null}catch(fn){throw setTimeout(ot,0),fn}};_=function(Vt){rt!==null?setTimeout(_,0,Vt):(rt=Vt,setTimeout(ot,0))},d=function(Vt,fn){nt=setTimeout(Vt,fn)},k=function(){clearTimeout(nt)},b.unstable_shouldYield=function(){return!1},j=b.unstable_forceFrameRate=function(){}}else{var at=window.setTimeout,it=window.clearTimeout;if(typeof console<"u"){var dt=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof dt!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var ut=!1,ht=null,ft=-1,lt=5,ct=0;b.unstable_shouldYield=function(){return b.unstable_now()>=ct},j=function(){},b.unstable_forceFrameRate=function(Vt){0>Vt||125>>1,_n=Vt[On];if(_n!==void 0&&0Mt(Yn,In))An!==void 0&&0>Mt(An,Yn)?(Vt[On]=An,Vt[dn]=In,On=dn):(Vt[On]=Yn,Vt[Bn]=In,On=Bn);else if(An!==void 0&&0>Mt(An,In))Vt[On]=An,Vt[dn]=In,On=dn;else break e}}return fn}return null}function Mt(Vt,fn){var In=Vt.sortIndex-fn.sortIndex;return In!==0?In:Vt.id-fn.id}var kt=[],_t=[],Tt=1,At=null,Et=3,Ot=!1,Lt=!1,Bt=!1;function Zt(Vt){for(var fn=xt(_t);fn!==null;){if(fn.callback===null)wt(_t);else if(fn.startTime<=Vt)wt(_t),fn.sortIndex=fn.expirationTime,Ct(kt,fn);else break;fn=xt(_t)}}function rn(Vt){if(Bt=!1,Zt(Vt),!Lt)if(xt(kt)!==null)Lt=!0,_(nn);else{var fn=xt(_t);fn!==null&&d(rn,fn.startTime-Vt)}}function nn(Vt,fn){Lt=!1,Bt&&(Bt=!1,k()),Ot=!0;var In=Et;try{for(Zt(fn),At=xt(kt);At!==null&&(!(At.expirationTime>fn)||Vt&&!b.unstable_shouldYield());){var On=At.callback;if(typeof On=="function"){At.callback=null,Et=At.priorityLevel;var _n=On(At.expirationTime<=fn);fn=b.unstable_now(),typeof _n=="function"?At.callback=_n:At===xt(kt)&&wt(kt),Zt(fn)}else wt(kt);At=xt(kt)}if(At!==null)var Bn=!0;else{var Yn=xt(_t);Yn!==null&&d(rn,Yn.startTime-fn),Bn=!1}return Bn}finally{At=null,Et=In,Ot=!1}}var Qt=j;b.unstable_IdlePriority=5,b.unstable_ImmediatePriority=1,b.unstable_LowPriority=4,b.unstable_NormalPriority=3,b.unstable_Profiling=null,b.unstable_UserBlockingPriority=2,b.unstable_cancelCallback=function(Vt){Vt.callback=null},b.unstable_continueExecution=function(){Lt||Ot||(Lt=!0,_(nn))},b.unstable_getCurrentPriorityLevel=function(){return Et},b.unstable_getFirstCallbackNode=function(){return xt(kt)},b.unstable_next=function(Vt){switch(Et){case 1:case 2:case 3:var fn=3;break;default:fn=Et}var In=Et;Et=fn;try{return Vt()}finally{Et=In}},b.unstable_pauseExecution=function(){},b.unstable_requestPaint=Qt,b.unstable_runWithPriority=function(Vt,fn){switch(Vt){case 1:case 2:case 3:case 4:case 5:break;default:Vt=3}var In=Et;Et=Vt;try{return fn()}finally{Et=In}},b.unstable_scheduleCallback=function(Vt,fn,In){var On=b.unstable_now();switch(typeof In=="object"&&In!==null?(In=In.delay,In=typeof In=="number"&&0On?(Vt.sortIndex=In,Ct(_t,Vt),xt(kt)===null&&Vt===xt(_t)&&(Bt?k():Bt=!0,d(rn,In-On))):(Vt.sortIndex=_n,Ct(kt,Vt),Lt||Ot||(Lt=!0,_(nn))),Vt},b.unstable_wrapCallback=function(Vt){var fn=Et;return function(){var In=Et;Et=fn;try{return Vt.apply(this,arguments)}finally{Et=In}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** @license React v17.0.2 * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. @@ -396,7 +396,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho Error generating stack: `+$.message+` `+$.stack}return{value:b,source:_,stack:j}}function Ni(b,_){try{console.error(_.value)}catch(d){setTimeout(function(){throw d})}}var Oi=typeof WeakMap=="function"?WeakMap:Map;function Pi(b,_,d){d=zg(-1,d),d.tag=3,d.payload={element:null};var k=_.value;return d.callback=function(){Qi||(Qi=!0,Ri=k),Ni(b,_)},d}function Si(b,_,d){d=zg(-1,d),d.tag=3;var k=b.type.getDerivedStateFromError;if(typeof k=="function"){var j=_.value;d.payload=function(){return Ni(b,_),k(j)}}var $=b.stateNode;return $!==null&&typeof $.componentDidCatch=="function"&&(d.callback=function(){typeof k!="function"&&(Ti===null?Ti=new Set([this]):Ti.add(this),Ni(b,_));var et=_.stack;this.componentDidCatch(_.value,{componentStack:et!==null?et:""})}),d}var Ui=typeof WeakSet=="function"?WeakSet:Set;function Vi(b){var _=b.ref;if(_!==null)if(typeof _=="function")try{_(null)}catch(d){Wi(b,d)}else _.current=null}function Xi(b,_){switch(_.tag){case 0:case 11:case 15:case 22:return;case 1:if(_.flags&256&&b!==null){var d=b.memoizedProps,k=b.memoizedState;b=_.stateNode,_=b.getSnapshotBeforeUpdate(_.elementType===_.type?d:lg(_.type,d),k),b.__reactInternalSnapshotBeforeUpdate=_}return;case 3:_.flags&256&&qf(_.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(y(163))}function Yi(b,_,d){switch(d.tag){case 0:case 11:case 15:case 22:if(_=d.updateQueue,_=_!==null?_.lastEffect:null,_!==null){b=_=_.next;do{if((b.tag&3)===3){var k=b.create;b.destroy=k()}b=b.next}while(b!==_)}if(_=d.updateQueue,_=_!==null?_.lastEffect:null,_!==null){b=_=_.next;do{var j=b;k=j.next,j=j.tag,j&4&&j&1&&(Zi(d,b),$i(d,b)),b=k}while(b!==_)}return;case 1:b=d.stateNode,d.flags&4&&(_===null?b.componentDidMount():(k=d.elementType===d.type?_.memoizedProps:lg(d.type,_.memoizedProps),b.componentDidUpdate(k,_.memoizedState,b.__reactInternalSnapshotBeforeUpdate))),_=d.updateQueue,_!==null&&Eg(d,_,b);return;case 3:if(_=d.updateQueue,_!==null){if(b=null,d.child!==null)switch(d.child.tag){case 5:b=d.child.stateNode;break;case 1:b=d.child.stateNode}Eg(d,_,b)}return;case 5:b=d.stateNode,_===null&&d.flags&4&&mf(d.type,d.memoizedProps)&&b.focus();return;case 6:return;case 4:return;case 12:return;case 13:d.memoizedState===null&&(d=d.alternate,d!==null&&(d=d.memoizedState,d!==null&&(d=d.dehydrated,d!==null&&Cc(d))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(y(163))}function aj(b,_){for(var d=b;;){if(d.tag===5){var k=d.stateNode;if(_)k=k.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none";else{k=d.stateNode;var j=d.memoizedProps.style;j=j!=null&&j.hasOwnProperty("display")?j.display:null,k.style.display=sb("display",j)}}else if(d.tag===6)d.stateNode.nodeValue=_?"":d.memoizedProps;else if((d.tag!==23&&d.tag!==24||d.memoizedState===null||d===b)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===b)break;for(;d.sibling===null;){if(d.return===null||d.return===b)return;d=d.return}d.sibling.return=d.return,d=d.sibling}}function bj(b,_){if(Mf&&typeof Mf.onCommitFiberUnmount=="function")try{Mf.onCommitFiberUnmount(Lf,_)}catch{}switch(_.tag){case 0:case 11:case 14:case 15:case 22:if(b=_.updateQueue,b!==null&&(b=b.lastEffect,b!==null)){var d=b=b.next;do{var k=d,j=k.destroy;if(k=k.tag,j!==void 0)if(k&4)Zi(_,d);else{k=_;try{j()}catch($){Wi(k,$)}}d=d.next}while(d!==b)}break;case 1:if(Vi(_),b=_.stateNode,typeof b.componentWillUnmount=="function")try{b.props=_.memoizedProps,b.state=_.memoizedState,b.componentWillUnmount()}catch($){Wi(_,$)}break;case 5:Vi(_);break;case 4:cj(b,_)}}function dj(b){b.alternate=null,b.child=null,b.dependencies=null,b.firstEffect=null,b.lastEffect=null,b.memoizedProps=null,b.memoizedState=null,b.pendingProps=null,b.return=null,b.updateQueue=null}function ej(b){return b.tag===5||b.tag===3||b.tag===4}function fj(b){e:{for(var _=b.return;_!==null;){if(ej(_))break e;_=_.return}throw Error(y(160))}var d=_;switch(_=d.stateNode,d.tag){case 5:var k=!1;break;case 3:_=_.containerInfo,k=!0;break;case 4:_=_.containerInfo,k=!0;break;default:throw Error(y(161))}d.flags&16&&(pb(_,""),d.flags&=-17);e:t:for(d=b;;){for(;d.sibling===null;){if(d.return===null||ej(d.return)){d=null;break e}d=d.return}for(d.sibling.return=d.return,d=d.sibling;d.tag!==5&&d.tag!==6&&d.tag!==18;){if(d.flags&2||d.child===null||d.tag===4)continue t;d.child.return=d,d=d.child}if(!(d.flags&2)){d=d.stateNode;break e}}k?gj(b,d,_):hj(b,d,_)}function gj(b,_,d){var k=b.tag,j=k===5||k===6;if(j)b=j?b.stateNode:b.stateNode.instance,_?d.nodeType===8?d.parentNode.insertBefore(b,_):d.insertBefore(b,_):(d.nodeType===8?(_=d.parentNode,_.insertBefore(b,d)):(_=d,_.appendChild(b)),d=d._reactRootContainer,d!=null||_.onclick!==null||(_.onclick=jf));else if(k!==4&&(b=b.child,b!==null))for(gj(b,_,d),b=b.sibling;b!==null;)gj(b,_,d),b=b.sibling}function hj(b,_,d){var k=b.tag,j=k===5||k===6;if(j)b=j?b.stateNode:b.stateNode.instance,_?d.insertBefore(b,_):d.appendChild(b);else if(k!==4&&(b=b.child,b!==null))for(hj(b,_,d),b=b.sibling;b!==null;)hj(b,_,d),b=b.sibling}function cj(b,_){for(var d=_,k=!1,j,$;;){if(!k){k=d.return;e:for(;;){if(k===null)throw Error(y(160));switch(j=k.stateNode,k.tag){case 5:$=!1;break e;case 3:j=j.containerInfo,$=!0;break e;case 4:j=j.containerInfo,$=!0;break e}k=k.return}k=!0}if(d.tag===5||d.tag===6){e:for(var et=b,tt=d,rt=tt;;)if(bj(et,rt),rt.child!==null&&rt.tag!==4)rt.child.return=rt,rt=rt.child;else{if(rt===tt)break e;for(;rt.sibling===null;){if(rt.return===null||rt.return===tt)break e;rt=rt.return}rt.sibling.return=rt.return,rt=rt.sibling}$?(et=j,tt=d.stateNode,et.nodeType===8?et.parentNode.removeChild(tt):et.removeChild(tt)):j.removeChild(d.stateNode)}else if(d.tag===4){if(d.child!==null){j=d.stateNode.containerInfo,$=!0,d.child.return=d,d=d.child;continue}}else if(bj(b,d),d.child!==null){d.child.return=d,d=d.child;continue}if(d===_)break;for(;d.sibling===null;){if(d.return===null||d.return===_)return;d=d.return,d.tag===4&&(k=!1)}d.sibling.return=d.return,d=d.sibling}}function ij(b,_){switch(_.tag){case 0:case 11:case 14:case 15:case 22:var d=_.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var k=d=d.next;do(k.tag&3)===3&&(b=k.destroy,k.destroy=void 0,b!==void 0&&b()),k=k.next;while(k!==d)}return;case 1:return;case 5:if(d=_.stateNode,d!=null){k=_.memoizedProps;var j=b!==null?b.memoizedProps:k;b=_.type;var $=_.updateQueue;if(_.updateQueue=null,$!==null){for(d[xf]=k,b==="input"&&k.type==="radio"&&k.name!=null&&$a(d,k),wb(b,j),_=wb(b,k),j=0;j<$.length;j+=2){var et=$[j],tt=$[j+1];et==="style"?tb(d,tt):et==="dangerouslySetInnerHTML"?ob(d,tt):et==="children"?pb(d,tt):qa(d,et,tt,_)}switch(b){case"input":ab(d,k);break;case"textarea":ib(d,k);break;case"select":b=d._wrapperState.wasMultiple,d._wrapperState.wasMultiple=!!k.multiple,$=k.value,$!=null?fb(d,!!k.multiple,$,!1):b!==!!k.multiple&&(k.defaultValue!=null?fb(d,!!k.multiple,k.defaultValue,!0):fb(d,!!k.multiple,k.multiple?[]:"",!1))}}}return;case 6:if(_.stateNode===null)throw Error(y(162));_.stateNode.nodeValue=_.memoizedProps;return;case 3:d=_.stateNode,d.hydrate&&(d.hydrate=!1,Cc(d.containerInfo));return;case 12:return;case 13:_.memoizedState!==null&&(jj=O(),aj(_.child,!0)),kj(_);return;case 19:kj(_);return;case 17:return;case 23:case 24:aj(_,_.memoizedState!==null);return}throw Error(y(163))}function kj(b){var _=b.updateQueue;if(_!==null){b.updateQueue=null;var d=b.stateNode;d===null&&(d=b.stateNode=new Ui),_.forEach(function(k){var j=lj.bind(null,b,k);d.has(k)||(d.add(k),k.then(j,j))})}}function mj(b,_){return b!==null&&(b=b.memoizedState,b===null||b.dehydrated!==null)?(_=_.memoizedState,_!==null&&_.dehydrated===null):!1}var nj=Math.ceil,oj=ra.ReactCurrentDispatcher,pj=ra.ReactCurrentOwner,X=0,U=null,Y=null,W=0,qj=0,rj=Bf(0),V=0,sj=null,tj=0,Dg=0,Hi=0,uj=0,vj=null,jj=0,Ji=1/0;function wj(){Ji=O()+500}var Z=null,Qi=!1,Ri=null,Ti=null,xj=!1,yj=null,zj=90,Aj=[],Bj=[],Cj=null,Dj=0,Ej=null,Fj=-1,Gj=0,Hj=0,Ij=null,Jj=!1;function Hg(){return X&48?O():Fj!==-1?Fj:Fj=O()}function Ig(b){if(b=b.mode,!(b&2))return 1;if(!(b&4))return eg()===99?1:2;if(Gj===0&&(Gj=tj),kg.transition!==0){Hj!==0&&(Hj=vj!==null?vj.pendingLanes:0),b=Gj;var _=4186112&~Hj;return _&=-_,_===0&&(b=4186112&~b,_=b&-b,_===0&&(_=8192)),_}return b=eg(),X&4&&b===98?b=Xc(12,Gj):(b=Sc(b),b=Xc(b,Gj)),b}function Jg(b,_,d){if(50j&&(j=et),d&=~$}if(d=j,d=O()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*nj(d/1960))-d,10 component higher in the tree to provide a loading indicator or placeholder to display.`)}V!==5&&(V=2),rt=Mi(rt,tt),it=et;do{switch(it.tag){case 3:$=rt,it.flags|=4096,_&=-_,it.lanes|=_;var Ct=Pi(it,$,_);Bg(it,Ct);break e;case 1:$=rt;var xt=it.type,wt=it.stateNode;if(!(it.flags&64)&&(typeof xt.getDerivedStateFromError=="function"||wt!==null&&typeof wt.componentDidCatch=="function"&&(Ti===null||!Ti.has(wt)))){it.flags|=4096,_&=-_,it.lanes|=_;var Mt=Si(it,$,_);Bg(it,Mt);break e}}it=it.return}while(it!==null)}Zj(d)}catch(kt){_=kt,Y===d&&d!==null&&(Y=d=d.return);continue}break}while(1)}function Pj(){var b=oj.current;return oj.current=Gh,b===null?Gh:b}function Tj(b,_){var d=X;X|=16;var k=Pj();U===b&&W===_||Qj(b,_);do try{ak();break}catch(j){Sj(b,j)}while(1);if(qg(),X=d,oj.current=k,Y!==null)throw Error(y(261));return U=null,W=0,V}function ak(){for(;Y!==null;)bk(Y)}function Rj(){for(;Y!==null&&!Qf();)bk(Y)}function bk(b){var _=ck(b.alternate,b,qj);b.memoizedProps=b.pendingProps,_===null?Zj(b):Y=_,pj.current=null}function Zj(b){var _=b;do{var d=_.alternate;if(b=_.return,_.flags&2048){if(d=Li(_),d!==null){d.flags&=2047,Y=d;return}b!==null&&(b.firstEffect=b.lastEffect=null,b.flags|=2048)}else{if(d=Gi(d,_,qj),d!==null){Y=d;return}if(d=_,d.tag!==24&&d.tag!==23||d.memoizedState===null||qj&1073741824||!(d.mode&4)){for(var k=0,j=d.child;j!==null;)k|=j.lanes|j.childLanes,j=j.sibling;d.childLanes=k}b!==null&&!(b.flags&2048)&&(b.firstEffect===null&&(b.firstEffect=_.firstEffect),_.lastEffect!==null&&(b.lastEffect!==null&&(b.lastEffect.nextEffect=_.firstEffect),b.lastEffect=_.lastEffect),1<_.flags&&(b.lastEffect!==null?b.lastEffect.nextEffect=_:b.firstEffect=_,b.lastEffect=_))}if(_=_.sibling,_!==null){Y=_;return}Y=_=b}while(_!==null);V===0&&(V=5)}function Uj(b){var _=eg();return gg(99,dk.bind(null,b,_)),null}function dk(b,_){do Oj();while(yj!==null);if(X&48)throw Error(y(327));var d=b.finishedWork;if(d===null)return null;if(b.finishedWork=null,b.finishedLanes=0,d===b.current)throw Error(y(177));b.callbackNode=null;var k=d.lanes|d.childLanes,j=k,$=b.pendingLanes&~j;b.pendingLanes=j,b.suspendedLanes=0,b.pingedLanes=0,b.expiredLanes&=j,b.mutableReadLanes&=j,b.entangledLanes&=j,j=b.entanglements;for(var et=b.eventTimes,tt=b.expirationTimes;0<$;){var rt=31-Vc($),nt=1<et&&(tt=et,et=Ct,Ct=tt),tt=Le(ct,Ct),$=Le(ct,et),tt&&$&&(st.rangeCount!==1||st.anchorNode!==tt.node||st.anchorOffset!==tt.offset||st.focusNode!==$.node||st.focusOffset!==$.offset)&&(gt=gt.createRange(),gt.setStart(tt.node,tt.offset),st.removeAllRanges(),Ct>et?(st.addRange(gt),st.extend($.node,$.offset)):(gt.setEnd($.node,$.offset),st.addRange(gt)))))),gt=[],st=ct;st=st.parentNode;)st.nodeType===1&>.push({element:st,left:st.scrollLeft,top:st.scrollTop});for(typeof ct.focus=="function"&&ct.focus(),ct=0;ctO()-jj?Qj(b,0):uj|=d),Mj(b,_)}function lj(b,_){var d=b.stateNode;d!==null&&d.delete(_),_=0,_===0&&(_=b.mode,_&2?_&4?(Gj===0&&(Gj=tj),_=Yc(62914560&~Gj),_===0&&(_=4194304)):_=eg()===99?1:2:_=1),d=Hg(),b=Kj(b,_),b!==null&&($c(b,_,d),Mj(b,d))}var ck;ck=function(b,_,d){var k=_.lanes;if(b!==null)if(b.memoizedProps!==_.pendingProps||N.current)ug=!0;else if(d&k)ug=!!(b.flags&16384);else{switch(ug=!1,_.tag){case 3:ri(_),sh();break;case 5:gh(_);break;case 1:Ff(_.type)&&Jf(_);break;case 4:eh(_,_.stateNode.containerInfo);break;case 10:k=_.memoizedProps.value;var j=_.type._context;I(mg,j._currentValue),j._currentValue=k;break;case 13:if(_.memoizedState!==null)return d&_.child.childLanes?ti(b,_,d):(I(P$1,P$1.current&1),_=hi(b,_,d),_!==null?_.sibling:null);I(P$1,P$1.current&1);break;case 19:if(k=(d&_.childLanes)!==0,b.flags&64){if(k)return Ai(b,_,d);_.flags|=64}if(j=_.memoizedState,j!==null&&(j.rendering=null,j.tail=null,j.lastEffect=null),I(P$1,P$1.current),k)break;return null;case 23:case 24:return _.lanes=0,mi(b,_,d)}return hi(b,_,d)}else ug=!1;switch(_.lanes=0,_.tag){case 2:if(k=_.type,b!==null&&(b.alternate=null,_.alternate=null,_.flags|=2),b=_.pendingProps,j=Ef(_,M.current),tg(_,d),j=Ch(null,_,k,b,j,d),_.flags|=1,typeof j=="object"&&j!==null&&typeof j.render=="function"&&j.$$typeof===void 0){if(_.tag=1,_.memoizedState=null,_.updateQueue=null,Ff(k)){var $=!0;Jf(_)}else $=!1;_.memoizedState=j.state!==null&&j.state!==void 0?j.state:null,xg(_);var et=k.getDerivedStateFromProps;typeof et=="function"&&Gg(_,k,et,b),j.updater=Kg,_.stateNode=j,j._reactInternals=_,Og(_,k,b,d),_=qi(null,_,k,!0,$,d)}else _.tag=0,fi(null,_,j,d),_=_.child;return _;case 16:j=_.elementType;e:{switch(b!==null&&(b.alternate=null,_.alternate=null,_.flags|=2),b=_.pendingProps,$=j._init,j=$(j._payload),_.type=j,$=_.tag=hk(j),b=lg(j,b),$){case 0:_=li(null,_,j,b,d);break e;case 1:_=pi(null,_,j,b,d);break e;case 11:_=gi(null,_,j,b,d);break e;case 14:_=ii(null,_,j,lg(j.type,b),k,d);break e}throw Error(y(306,j,""))}return _;case 0:return k=_.type,j=_.pendingProps,j=_.elementType===k?j:lg(k,j),li(b,_,k,j,d);case 1:return k=_.type,j=_.pendingProps,j=_.elementType===k?j:lg(k,j),pi(b,_,k,j,d);case 3:if(ri(_),k=_.updateQueue,b===null||k===null)throw Error(y(282));if(k=_.pendingProps,j=_.memoizedState,j=j!==null?j.element:null,yg(b,_),Cg(_,k,null,d),k=_.memoizedState.element,k===j)sh(),_=hi(b,_,d);else{if(j=_.stateNode,($=j.hydrate)&&(kh=rf(_.stateNode.containerInfo.firstChild),jh=_,$=lh=!0),$){if(b=j.mutableSourceEagerHydrationData,b!=null)for(j=0;j"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(b){console.error(b)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const App$2="";var naclUtil={exports:{}};(function(b){(function(_,d){b.exports?b.exports=d():(_.nacl||(_.nacl={}),_.nacl.util=d())})(commonjsGlobal,function(){var _={};function d(k){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(k))throw new TypeError("invalid encoding")}return _.decodeUTF8=function(k){if(typeof k!="string")throw new TypeError("expected string");var j,$=unescape(encodeURIComponent(k)),et=new Uint8Array($.length);for(j=0;j<$.length;j++)et[j]=$.charCodeAt(j);return et},_.encodeUTF8=function(k){var j,$=[];for(j=0;j"u"?typeof Buffer.from<"u"?(_.encodeBase64=function(k){return Buffer.from(k).toString("base64")},_.decodeBase64=function(k){return d(k),new Uint8Array(Array.prototype.slice.call(Buffer.from(k,"base64"),0))}):(_.encodeBase64=function(k){return new Buffer(k).toString("base64")},_.decodeBase64=function(k){return d(k),new Uint8Array(Array.prototype.slice.call(new Buffer(k,"base64"),0))}):(_.encodeBase64=function(k){var j,$=[],et=k.length;for(j=0;j>24&255,St[Ft+1]=$t>>16&255,St[Ft+2]=$t>>8&255,St[Ft+3]=$t&255,St[Ft+4]=mt>>24&255,St[Ft+5]=mt>>16&255,St[Ft+6]=mt>>8&255,St[Ft+7]=mt&255}function ht(St,Ft,$t,mt,Dt){var Xt,It=0;for(Xt=0;Xt>>8)-1}function ft(St,Ft,$t,mt){return ht(St,Ft,$t,mt,16)}function lt(St,Ft,$t,mt){return ht(St,Ft,$t,mt,32)}function ct(St,Ft,$t,mt){for(var Dt=mt[0]&255|(mt[1]&255)<<8|(mt[2]&255)<<16|(mt[3]&255)<<24,Xt=$t[0]&255|($t[1]&255)<<8|($t[2]&255)<<16|($t[3]&255)<<24,It=$t[4]&255|($t[5]&255)<<8|($t[6]&255)<<16|($t[7]&255)<<24,Nt=$t[8]&255|($t[9]&255)<<8|($t[10]&255)<<16|($t[11]&255)<<24,Rt=$t[12]&255|($t[13]&255)<<8|($t[14]&255)<<16|($t[15]&255)<<24,zt=mt[4]&255|(mt[5]&255)<<8|(mt[6]&255)<<16|(mt[7]&255)<<24,Bt=Ft[0]&255|(Ft[1]&255)<<8|(Ft[2]&255)<<16|(Ft[3]&255)<<24,hn=Ft[4]&255|(Ft[5]&255)<<8|(Ft[6]&255)<<16|(Ft[7]&255)<<24,un=Ft[8]&255|(Ft[9]&255)<<8|(Ft[10]&255)<<16|(Ft[11]&255)<<24,tn=Ft[12]&255|(Ft[13]&255)<<8|(Ft[14]&255)<<16|(Ft[15]&255)<<24,Gt=mt[8]&255|(mt[9]&255)<<8|(mt[10]&255)<<16|(mt[11]&255)<<24,xn=$t[16]&255|($t[17]&255)<<8|($t[18]&255)<<16|($t[19]&255)<<24,Gn=$t[20]&255|($t[21]&255)<<8|($t[22]&255)<<16|($t[23]&255)<<24,Jn=$t[24]&255|($t[25]&255)<<8|($t[26]&255)<<16|($t[27]&255)<<24,er=$t[28]&255|($t[29]&255)<<8|($t[30]&255)<<16|($t[31]&255)<<24,ir=mt[12]&255|(mt[13]&255)<<8|(mt[14]&255)<<16|(mt[15]&255)<<24,Kn=Dt,nr=Xt,ur=It,rr=Nt,yr=Rt,mr=zt,Bn=Bt,Hn=hn,hr=un,lr=tn,sr=Gt,dr=xn,Ar=Gn,Mr=Jn,jr=er,Ir=ir,pn,Lr=0;Lr<20;Lr+=2)pn=Kn+Ar|0,yr^=pn<<7|pn>>>32-7,pn=yr+Kn|0,hr^=pn<<9|pn>>>32-9,pn=hr+yr|0,Ar^=pn<<13|pn>>>32-13,pn=Ar+hr|0,Kn^=pn<<18|pn>>>32-18,pn=mr+nr|0,lr^=pn<<7|pn>>>32-7,pn=lr+mr|0,Mr^=pn<<9|pn>>>32-9,pn=Mr+lr|0,nr^=pn<<13|pn>>>32-13,pn=nr+Mr|0,mr^=pn<<18|pn>>>32-18,pn=sr+Bn|0,jr^=pn<<7|pn>>>32-7,pn=jr+sr|0,ur^=pn<<9|pn>>>32-9,pn=ur+jr|0,Bn^=pn<<13|pn>>>32-13,pn=Bn+ur|0,sr^=pn<<18|pn>>>32-18,pn=Ir+dr|0,rr^=pn<<7|pn>>>32-7,pn=rr+Ir|0,Hn^=pn<<9|pn>>>32-9,pn=Hn+rr|0,dr^=pn<<13|pn>>>32-13,pn=dr+Hn|0,Ir^=pn<<18|pn>>>32-18,pn=Kn+rr|0,nr^=pn<<7|pn>>>32-7,pn=nr+Kn|0,ur^=pn<<9|pn>>>32-9,pn=ur+nr|0,rr^=pn<<13|pn>>>32-13,pn=rr+ur|0,Kn^=pn<<18|pn>>>32-18,pn=mr+yr|0,Bn^=pn<<7|pn>>>32-7,pn=Bn+mr|0,Hn^=pn<<9|pn>>>32-9,pn=Hn+Bn|0,yr^=pn<<13|pn>>>32-13,pn=yr+Hn|0,mr^=pn<<18|pn>>>32-18,pn=sr+lr|0,dr^=pn<<7|pn>>>32-7,pn=dr+sr|0,hr^=pn<<9|pn>>>32-9,pn=hr+dr|0,lr^=pn<<13|pn>>>32-13,pn=lr+hr|0,sr^=pn<<18|pn>>>32-18,pn=Ir+jr|0,Ar^=pn<<7|pn>>>32-7,pn=Ar+Ir|0,Mr^=pn<<9|pn>>>32-9,pn=Mr+Ar|0,jr^=pn<<13|pn>>>32-13,pn=jr+Mr|0,Ir^=pn<<18|pn>>>32-18;Kn=Kn+Dt|0,nr=nr+Xt|0,ur=ur+It|0,rr=rr+Nt|0,yr=yr+Rt|0,mr=mr+zt|0,Bn=Bn+Bt|0,Hn=Hn+hn|0,hr=hr+un|0,lr=lr+tn|0,sr=sr+Gt|0,dr=dr+xn|0,Ar=Ar+Gn|0,Mr=Mr+Jn|0,jr=jr+er|0,Ir=Ir+ir|0,St[0]=Kn>>>0&255,St[1]=Kn>>>8&255,St[2]=Kn>>>16&255,St[3]=Kn>>>24&255,St[4]=nr>>>0&255,St[5]=nr>>>8&255,St[6]=nr>>>16&255,St[7]=nr>>>24&255,St[8]=ur>>>0&255,St[9]=ur>>>8&255,St[10]=ur>>>16&255,St[11]=ur>>>24&255,St[12]=rr>>>0&255,St[13]=rr>>>8&255,St[14]=rr>>>16&255,St[15]=rr>>>24&255,St[16]=yr>>>0&255,St[17]=yr>>>8&255,St[18]=yr>>>16&255,St[19]=yr>>>24&255,St[20]=mr>>>0&255,St[21]=mr>>>8&255,St[22]=mr>>>16&255,St[23]=mr>>>24&255,St[24]=Bn>>>0&255,St[25]=Bn>>>8&255,St[26]=Bn>>>16&255,St[27]=Bn>>>24&255,St[28]=Hn>>>0&255,St[29]=Hn>>>8&255,St[30]=Hn>>>16&255,St[31]=Hn>>>24&255,St[32]=hr>>>0&255,St[33]=hr>>>8&255,St[34]=hr>>>16&255,St[35]=hr>>>24&255,St[36]=lr>>>0&255,St[37]=lr>>>8&255,St[38]=lr>>>16&255,St[39]=lr>>>24&255,St[40]=sr>>>0&255,St[41]=sr>>>8&255,St[42]=sr>>>16&255,St[43]=sr>>>24&255,St[44]=dr>>>0&255,St[45]=dr>>>8&255,St[46]=dr>>>16&255,St[47]=dr>>>24&255,St[48]=Ar>>>0&255,St[49]=Ar>>>8&255,St[50]=Ar>>>16&255,St[51]=Ar>>>24&255,St[52]=Mr>>>0&255,St[53]=Mr>>>8&255,St[54]=Mr>>>16&255,St[55]=Mr>>>24&255,St[56]=jr>>>0&255,St[57]=jr>>>8&255,St[58]=jr>>>16&255,St[59]=jr>>>24&255,St[60]=Ir>>>0&255,St[61]=Ir>>>8&255,St[62]=Ir>>>16&255,St[63]=Ir>>>24&255}function gt(St,Ft,$t,mt){for(var Dt=mt[0]&255|(mt[1]&255)<<8|(mt[2]&255)<<16|(mt[3]&255)<<24,Xt=$t[0]&255|($t[1]&255)<<8|($t[2]&255)<<16|($t[3]&255)<<24,It=$t[4]&255|($t[5]&255)<<8|($t[6]&255)<<16|($t[7]&255)<<24,Nt=$t[8]&255|($t[9]&255)<<8|($t[10]&255)<<16|($t[11]&255)<<24,Rt=$t[12]&255|($t[13]&255)<<8|($t[14]&255)<<16|($t[15]&255)<<24,zt=mt[4]&255|(mt[5]&255)<<8|(mt[6]&255)<<16|(mt[7]&255)<<24,Bt=Ft[0]&255|(Ft[1]&255)<<8|(Ft[2]&255)<<16|(Ft[3]&255)<<24,hn=Ft[4]&255|(Ft[5]&255)<<8|(Ft[6]&255)<<16|(Ft[7]&255)<<24,un=Ft[8]&255|(Ft[9]&255)<<8|(Ft[10]&255)<<16|(Ft[11]&255)<<24,tn=Ft[12]&255|(Ft[13]&255)<<8|(Ft[14]&255)<<16|(Ft[15]&255)<<24,Gt=mt[8]&255|(mt[9]&255)<<8|(mt[10]&255)<<16|(mt[11]&255)<<24,xn=$t[16]&255|($t[17]&255)<<8|($t[18]&255)<<16|($t[19]&255)<<24,Gn=$t[20]&255|($t[21]&255)<<8|($t[22]&255)<<16|($t[23]&255)<<24,Jn=$t[24]&255|($t[25]&255)<<8|($t[26]&255)<<16|($t[27]&255)<<24,er=$t[28]&255|($t[29]&255)<<8|($t[30]&255)<<16|($t[31]&255)<<24,ir=mt[12]&255|(mt[13]&255)<<8|(mt[14]&255)<<16|(mt[15]&255)<<24,Kn=Dt,nr=Xt,ur=It,rr=Nt,yr=Rt,mr=zt,Bn=Bt,Hn=hn,hr=un,lr=tn,sr=Gt,dr=xn,Ar=Gn,Mr=Jn,jr=er,Ir=ir,pn,Lr=0;Lr<20;Lr+=2)pn=Kn+Ar|0,yr^=pn<<7|pn>>>32-7,pn=yr+Kn|0,hr^=pn<<9|pn>>>32-9,pn=hr+yr|0,Ar^=pn<<13|pn>>>32-13,pn=Ar+hr|0,Kn^=pn<<18|pn>>>32-18,pn=mr+nr|0,lr^=pn<<7|pn>>>32-7,pn=lr+mr|0,Mr^=pn<<9|pn>>>32-9,pn=Mr+lr|0,nr^=pn<<13|pn>>>32-13,pn=nr+Mr|0,mr^=pn<<18|pn>>>32-18,pn=sr+Bn|0,jr^=pn<<7|pn>>>32-7,pn=jr+sr|0,ur^=pn<<9|pn>>>32-9,pn=ur+jr|0,Bn^=pn<<13|pn>>>32-13,pn=Bn+ur|0,sr^=pn<<18|pn>>>32-18,pn=Ir+dr|0,rr^=pn<<7|pn>>>32-7,pn=rr+Ir|0,Hn^=pn<<9|pn>>>32-9,pn=Hn+rr|0,dr^=pn<<13|pn>>>32-13,pn=dr+Hn|0,Ir^=pn<<18|pn>>>32-18,pn=Kn+rr|0,nr^=pn<<7|pn>>>32-7,pn=nr+Kn|0,ur^=pn<<9|pn>>>32-9,pn=ur+nr|0,rr^=pn<<13|pn>>>32-13,pn=rr+ur|0,Kn^=pn<<18|pn>>>32-18,pn=mr+yr|0,Bn^=pn<<7|pn>>>32-7,pn=Bn+mr|0,Hn^=pn<<9|pn>>>32-9,pn=Hn+Bn|0,yr^=pn<<13|pn>>>32-13,pn=yr+Hn|0,mr^=pn<<18|pn>>>32-18,pn=sr+lr|0,dr^=pn<<7|pn>>>32-7,pn=dr+sr|0,hr^=pn<<9|pn>>>32-9,pn=hr+dr|0,lr^=pn<<13|pn>>>32-13,pn=lr+hr|0,sr^=pn<<18|pn>>>32-18,pn=Ir+jr|0,Ar^=pn<<7|pn>>>32-7,pn=Ar+Ir|0,Mr^=pn<<9|pn>>>32-9,pn=Mr+Ar|0,jr^=pn<<13|pn>>>32-13,pn=jr+Mr|0,Ir^=pn<<18|pn>>>32-18;St[0]=Kn>>>0&255,St[1]=Kn>>>8&255,St[2]=Kn>>>16&255,St[3]=Kn>>>24&255,St[4]=mr>>>0&255,St[5]=mr>>>8&255,St[6]=mr>>>16&255,St[7]=mr>>>24&255,St[8]=sr>>>0&255,St[9]=sr>>>8&255,St[10]=sr>>>16&255,St[11]=sr>>>24&255,St[12]=Ir>>>0&255,St[13]=Ir>>>8&255,St[14]=Ir>>>16&255,St[15]=Ir>>>24&255,St[16]=Bn>>>0&255,St[17]=Bn>>>8&255,St[18]=Bn>>>16&255,St[19]=Bn>>>24&255,St[20]=Hn>>>0&255,St[21]=Hn>>>8&255,St[22]=Hn>>>16&255,St[23]=Hn>>>24&255,St[24]=hr>>>0&255,St[25]=hr>>>8&255,St[26]=hr>>>16&255,St[27]=hr>>>24&255,St[28]=lr>>>0&255,St[29]=lr>>>8&255,St[30]=lr>>>16&255,St[31]=lr>>>24&255}function st(St,Ft,$t,mt){ct(St,Ft,$t,mt)}function Ct(St,Ft,$t,mt){gt(St,Ft,$t,mt)}var xt=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function wt(St,Ft,$t,mt,Dt,Xt,It){var Nt=new Uint8Array(16),Rt=new Uint8Array(64),zt,Bt;for(Bt=0;Bt<16;Bt++)Nt[Bt]=0;for(Bt=0;Bt<8;Bt++)Nt[Bt]=Xt[Bt];for(;Dt>=64;){for(st(Rt,Nt,It,xt),Bt=0;Bt<64;Bt++)St[Ft+Bt]=$t[mt+Bt]^Rt[Bt];for(zt=1,Bt=8;Bt<16;Bt++)zt=zt+(Nt[Bt]&255)|0,Nt[Bt]=zt&255,zt>>>=8;Dt-=64,Ft+=64,mt+=64}if(Dt>0)for(st(Rt,Nt,It,xt),Bt=0;Bt=64;){for(st(It,Xt,Dt,xt),Rt=0;Rt<64;Rt++)St[Ft+Rt]=It[Rt];for(Nt=1,Rt=8;Rt<16;Rt++)Nt=Nt+(Xt[Rt]&255)|0,Xt[Rt]=Nt&255,Nt>>>=8;$t-=64,Ft+=64}if($t>0)for(st(It,Xt,Dt,xt),Rt=0;Rt<$t;Rt++)St[Ft+Rt]=It[Rt];return 0}function kt(St,Ft,$t,mt,Dt){var Xt=new Uint8Array(32);Ct(Xt,mt,Dt,xt);for(var It=new Uint8Array(8),Nt=0;Nt<8;Nt++)It[Nt]=mt[Nt+16];return Mt(St,Ft,$t,It,Xt)}function _t(St,Ft,$t,mt,Dt,Xt,It){var Nt=new Uint8Array(32);Ct(Nt,Xt,It,xt);for(var Rt=new Uint8Array(8),zt=0;zt<8;zt++)Rt[zt]=Xt[zt+16];return wt(St,Ft,$t,mt,Dt,Rt,Nt)}var Tt=function(St){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var Ft,$t,mt,Dt,Xt,It,Nt,Rt;Ft=St[0]&255|(St[1]&255)<<8,this.r[0]=Ft&8191,$t=St[2]&255|(St[3]&255)<<8,this.r[1]=(Ft>>>13|$t<<3)&8191,mt=St[4]&255|(St[5]&255)<<8,this.r[2]=($t>>>10|mt<<6)&7939,Dt=St[6]&255|(St[7]&255)<<8,this.r[3]=(mt>>>7|Dt<<9)&8191,Xt=St[8]&255|(St[9]&255)<<8,this.r[4]=(Dt>>>4|Xt<<12)&255,this.r[5]=Xt>>>1&8190,It=St[10]&255|(St[11]&255)<<8,this.r[6]=(Xt>>>14|It<<2)&8191,Nt=St[12]&255|(St[13]&255)<<8,this.r[7]=(It>>>11|Nt<<5)&8065,Rt=St[14]&255|(St[15]&255)<<8,this.r[8]=(Nt>>>8|Rt<<8)&8191,this.r[9]=Rt>>>5&127,this.pad[0]=St[16]&255|(St[17]&255)<<8,this.pad[1]=St[18]&255|(St[19]&255)<<8,this.pad[2]=St[20]&255|(St[21]&255)<<8,this.pad[3]=St[22]&255|(St[23]&255)<<8,this.pad[4]=St[24]&255|(St[25]&255)<<8,this.pad[5]=St[26]&255|(St[27]&255)<<8,this.pad[6]=St[28]&255|(St[29]&255)<<8,this.pad[7]=St[30]&255|(St[31]&255)<<8};Tt.prototype.blocks=function(St,Ft,$t){for(var mt=this.fin?0:2048,Dt,Xt,It,Nt,Rt,zt,Bt,hn,un,tn,Gt,xn,Gn,Jn,er,ir,Kn,nr,ur,rr=this.h[0],yr=this.h[1],mr=this.h[2],Bn=this.h[3],Hn=this.h[4],hr=this.h[5],lr=this.h[6],sr=this.h[7],dr=this.h[8],Ar=this.h[9],Mr=this.r[0],jr=this.r[1],Ir=this.r[2],pn=this.r[3],Lr=this.r[4],Dr=this.r[5],Fr=this.r[6],Br=this.r[7],$r=this.r[8],zr=this.r[9];$t>=16;)Dt=St[Ft+0]&255|(St[Ft+1]&255)<<8,rr+=Dt&8191,Xt=St[Ft+2]&255|(St[Ft+3]&255)<<8,yr+=(Dt>>>13|Xt<<3)&8191,It=St[Ft+4]&255|(St[Ft+5]&255)<<8,mr+=(Xt>>>10|It<<6)&8191,Nt=St[Ft+6]&255|(St[Ft+7]&255)<<8,Bn+=(It>>>7|Nt<<9)&8191,Rt=St[Ft+8]&255|(St[Ft+9]&255)<<8,Hn+=(Nt>>>4|Rt<<12)&8191,hr+=Rt>>>1&8191,zt=St[Ft+10]&255|(St[Ft+11]&255)<<8,lr+=(Rt>>>14|zt<<2)&8191,Bt=St[Ft+12]&255|(St[Ft+13]&255)<<8,sr+=(zt>>>11|Bt<<5)&8191,hn=St[Ft+14]&255|(St[Ft+15]&255)<<8,dr+=(Bt>>>8|hn<<8)&8191,Ar+=hn>>>5|mt,un=0,tn=un,tn+=rr*Mr,tn+=yr*(5*zr),tn+=mr*(5*$r),tn+=Bn*(5*Br),tn+=Hn*(5*Fr),un=tn>>>13,tn&=8191,tn+=hr*(5*Dr),tn+=lr*(5*Lr),tn+=sr*(5*pn),tn+=dr*(5*Ir),tn+=Ar*(5*jr),un+=tn>>>13,tn&=8191,Gt=un,Gt+=rr*jr,Gt+=yr*Mr,Gt+=mr*(5*zr),Gt+=Bn*(5*$r),Gt+=Hn*(5*Br),un=Gt>>>13,Gt&=8191,Gt+=hr*(5*Fr),Gt+=lr*(5*Dr),Gt+=sr*(5*Lr),Gt+=dr*(5*pn),Gt+=Ar*(5*Ir),un+=Gt>>>13,Gt&=8191,xn=un,xn+=rr*Ir,xn+=yr*jr,xn+=mr*Mr,xn+=Bn*(5*zr),xn+=Hn*(5*$r),un=xn>>>13,xn&=8191,xn+=hr*(5*Br),xn+=lr*(5*Fr),xn+=sr*(5*Dr),xn+=dr*(5*Lr),xn+=Ar*(5*pn),un+=xn>>>13,xn&=8191,Gn=un,Gn+=rr*pn,Gn+=yr*Ir,Gn+=mr*jr,Gn+=Bn*Mr,Gn+=Hn*(5*zr),un=Gn>>>13,Gn&=8191,Gn+=hr*(5*$r),Gn+=lr*(5*Br),Gn+=sr*(5*Fr),Gn+=dr*(5*Dr),Gn+=Ar*(5*Lr),un+=Gn>>>13,Gn&=8191,Jn=un,Jn+=rr*Lr,Jn+=yr*pn,Jn+=mr*Ir,Jn+=Bn*jr,Jn+=Hn*Mr,un=Jn>>>13,Jn&=8191,Jn+=hr*(5*zr),Jn+=lr*(5*$r),Jn+=sr*(5*Br),Jn+=dr*(5*Fr),Jn+=Ar*(5*Dr),un+=Jn>>>13,Jn&=8191,er=un,er+=rr*Dr,er+=yr*Lr,er+=mr*pn,er+=Bn*Ir,er+=Hn*jr,un=er>>>13,er&=8191,er+=hr*Mr,er+=lr*(5*zr),er+=sr*(5*$r),er+=dr*(5*Br),er+=Ar*(5*Fr),un+=er>>>13,er&=8191,ir=un,ir+=rr*Fr,ir+=yr*Dr,ir+=mr*Lr,ir+=Bn*pn,ir+=Hn*Ir,un=ir>>>13,ir&=8191,ir+=hr*jr,ir+=lr*Mr,ir+=sr*(5*zr),ir+=dr*(5*$r),ir+=Ar*(5*Br),un+=ir>>>13,ir&=8191,Kn=un,Kn+=rr*Br,Kn+=yr*Fr,Kn+=mr*Dr,Kn+=Bn*Lr,Kn+=Hn*pn,un=Kn>>>13,Kn&=8191,Kn+=hr*Ir,Kn+=lr*jr,Kn+=sr*Mr,Kn+=dr*(5*zr),Kn+=Ar*(5*$r),un+=Kn>>>13,Kn&=8191,nr=un,nr+=rr*$r,nr+=yr*Br,nr+=mr*Fr,nr+=Bn*Dr,nr+=Hn*Lr,un=nr>>>13,nr&=8191,nr+=hr*pn,nr+=lr*Ir,nr+=sr*jr,nr+=dr*Mr,nr+=Ar*(5*zr),un+=nr>>>13,nr&=8191,ur=un,ur+=rr*zr,ur+=yr*$r,ur+=mr*Br,ur+=Bn*Fr,ur+=Hn*Dr,un=ur>>>13,ur&=8191,ur+=hr*Lr,ur+=lr*pn,ur+=sr*Ir,ur+=dr*jr,ur+=Ar*Mr,un+=ur>>>13,ur&=8191,un=(un<<2)+un|0,un=un+tn|0,tn=un&8191,un=un>>>13,Gt+=un,rr=tn,yr=Gt,mr=xn,Bn=Gn,Hn=Jn,hr=er,lr=ir,sr=Kn,dr=nr,Ar=ur,Ft+=16,$t-=16;this.h[0]=rr,this.h[1]=yr,this.h[2]=mr,this.h[3]=Bn,this.h[4]=Hn,this.h[5]=hr,this.h[6]=lr,this.h[7]=sr,this.h[8]=dr,this.h[9]=Ar},Tt.prototype.finish=function(St,Ft){var $t=new Uint16Array(10),mt,Dt,Xt,It;if(this.leftover){for(It=this.leftover,this.buffer[It++]=1;It<16;It++)this.buffer[It]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(mt=this.h[1]>>>13,this.h[1]&=8191,It=2;It<10;It++)this.h[It]+=mt,mt=this.h[It]>>>13,this.h[It]&=8191;for(this.h[0]+=mt*5,mt=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=mt,mt=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=mt,$t[0]=this.h[0]+5,mt=$t[0]>>>13,$t[0]&=8191,It=1;It<10;It++)$t[It]=this.h[It]+mt,mt=$t[It]>>>13,$t[It]&=8191;for($t[9]-=8192,Dt=(mt^1)-1,It=0;It<10;It++)$t[It]&=Dt;for(Dt=~Dt,It=0;It<10;It++)this.h[It]=this.h[It]&Dt|$t[It];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,Xt=this.h[0]+this.pad[0],this.h[0]=Xt&65535,It=1;It<8;It++)Xt=(this.h[It]+this.pad[It]|0)+(Xt>>>16)|0,this.h[It]=Xt&65535;St[Ft+0]=this.h[0]>>>0&255,St[Ft+1]=this.h[0]>>>8&255,St[Ft+2]=this.h[1]>>>0&255,St[Ft+3]=this.h[1]>>>8&255,St[Ft+4]=this.h[2]>>>0&255,St[Ft+5]=this.h[2]>>>8&255,St[Ft+6]=this.h[3]>>>0&255,St[Ft+7]=this.h[3]>>>8&255,St[Ft+8]=this.h[4]>>>0&255,St[Ft+9]=this.h[4]>>>8&255,St[Ft+10]=this.h[5]>>>0&255,St[Ft+11]=this.h[5]>>>8&255,St[Ft+12]=this.h[6]>>>0&255,St[Ft+13]=this.h[6]>>>8&255,St[Ft+14]=this.h[7]>>>0&255,St[Ft+15]=this.h[7]>>>8&255},Tt.prototype.update=function(St,Ft,$t){var mt,Dt;if(this.leftover){for(Dt=16-this.leftover,Dt>$t&&(Dt=$t),mt=0;mt=16&&(Dt=$t-$t%16,this.blocks(St,Ft,Dt),Ft+=Dt,$t-=Dt),$t){for(mt=0;mt<$t;mt++)this.buffer[this.leftover+mt]=St[Ft+mt];this.leftover+=$t}};function At(St,Ft,$t,mt,Dt,Xt){var It=new Tt(Xt);return It.update($t,mt,Dt),It.finish(St,Ft),0}function Et(St,Ft,$t,mt,Dt,Xt){var It=new Uint8Array(16);return At(It,0,$t,mt,Dt,Xt),ft(St,Ft,It,0)}function Ot(St,Ft,$t,mt,Dt){var Xt;if($t<32)return-1;for(_t(St,0,Ft,0,$t,mt,Dt),At(St,16,St,32,$t-32,St),Xt=0;Xt<16;Xt++)St[Xt]=0;return 0}function Lt(St,Ft,$t,mt,Dt){var Xt,It=new Uint8Array(32);if($t<32||(kt(It,0,32,mt,Dt),Et(Ft,16,Ft,32,$t-32,It)!==0))return-1;for(_t(St,0,Ft,0,$t,mt,Dt),Xt=0;Xt<32;Xt++)St[Xt]=0;return 0}function Pt(St,Ft){var $t;for($t=0;$t<16;$t++)St[$t]=Ft[$t]|0}function Zt(St){var Ft,$t,mt=1;for(Ft=0;Ft<16;Ft++)$t=St[Ft]+mt+65535,mt=Math.floor($t/65536),St[Ft]=$t-mt*65536;St[0]+=mt-1+37*(mt-1)}function rn(St,Ft,$t){for(var mt,Dt=~($t-1),Xt=0;Xt<16;Xt++)mt=Dt&(St[Xt]^Ft[Xt]),St[Xt]^=mt,Ft[Xt]^=mt}function nn(St,Ft){var $t,mt,Dt,Xt=d(),It=d();for($t=0;$t<16;$t++)It[$t]=Ft[$t];for(Zt(It),Zt(It),Zt(It),mt=0;mt<2;mt++){for(Xt[0]=It[0]-65517,$t=1;$t<15;$t++)Xt[$t]=It[$t]-65535-(Xt[$t-1]>>16&1),Xt[$t-1]&=65535;Xt[15]=It[15]-32767-(Xt[14]>>16&1),Dt=Xt[15]>>16&1,Xt[14]&=65535,rn(It,Xt,1-Dt)}for($t=0;$t<16;$t++)St[2*$t]=It[$t]&255,St[2*$t+1]=It[$t]>>8}function Qt(St,Ft){var $t=new Uint8Array(32),mt=new Uint8Array(32);return nn($t,St),nn(mt,Ft),lt($t,0,mt,0)}function Vt(St){var Ft=new Uint8Array(32);return nn(Ft,St),Ft[0]&1}function fn(St,Ft){var $t;for($t=0;$t<16;$t++)St[$t]=Ft[2*$t]+(Ft[2*$t+1]<<8);St[15]&=32767}function In(St,Ft,$t){for(var mt=0;mt<16;mt++)St[mt]=Ft[mt]+$t[mt]}function On(St,Ft,$t){for(var mt=0;mt<16;mt++)St[mt]=Ft[mt]-$t[mt]}function _n(St,Ft,$t){var mt,Dt,Xt=0,It=0,Nt=0,Rt=0,zt=0,Bt=0,hn=0,un=0,tn=0,Gt=0,xn=0,Gn=0,Jn=0,er=0,ir=0,Kn=0,nr=0,ur=0,rr=0,yr=0,mr=0,Bn=0,Hn=0,hr=0,lr=0,sr=0,dr=0,Ar=0,Mr=0,jr=0,Ir=0,pn=$t[0],Lr=$t[1],Dr=$t[2],Fr=$t[3],Br=$t[4],$r=$t[5],zr=$t[6],ro=$t[7],qr=$t[8],eo=$t[9],to=$t[10],no=$t[11],io=$t[12],co=$t[13],so=$t[14],fo=$t[15];mt=Ft[0],Xt+=mt*pn,It+=mt*Lr,Nt+=mt*Dr,Rt+=mt*Fr,zt+=mt*Br,Bt+=mt*$r,hn+=mt*zr,un+=mt*ro,tn+=mt*qr,Gt+=mt*eo,xn+=mt*to,Gn+=mt*no,Jn+=mt*io,er+=mt*co,ir+=mt*so,Kn+=mt*fo,mt=Ft[1],It+=mt*pn,Nt+=mt*Lr,Rt+=mt*Dr,zt+=mt*Fr,Bt+=mt*Br,hn+=mt*$r,un+=mt*zr,tn+=mt*ro,Gt+=mt*qr,xn+=mt*eo,Gn+=mt*to,Jn+=mt*no,er+=mt*io,ir+=mt*co,Kn+=mt*so,nr+=mt*fo,mt=Ft[2],Nt+=mt*pn,Rt+=mt*Lr,zt+=mt*Dr,Bt+=mt*Fr,hn+=mt*Br,un+=mt*$r,tn+=mt*zr,Gt+=mt*ro,xn+=mt*qr,Gn+=mt*eo,Jn+=mt*to,er+=mt*no,ir+=mt*io,Kn+=mt*co,nr+=mt*so,ur+=mt*fo,mt=Ft[3],Rt+=mt*pn,zt+=mt*Lr,Bt+=mt*Dr,hn+=mt*Fr,un+=mt*Br,tn+=mt*$r,Gt+=mt*zr,xn+=mt*ro,Gn+=mt*qr,Jn+=mt*eo,er+=mt*to,ir+=mt*no,Kn+=mt*io,nr+=mt*co,ur+=mt*so,rr+=mt*fo,mt=Ft[4],zt+=mt*pn,Bt+=mt*Lr,hn+=mt*Dr,un+=mt*Fr,tn+=mt*Br,Gt+=mt*$r,xn+=mt*zr,Gn+=mt*ro,Jn+=mt*qr,er+=mt*eo,ir+=mt*to,Kn+=mt*no,nr+=mt*io,ur+=mt*co,rr+=mt*so,yr+=mt*fo,mt=Ft[5],Bt+=mt*pn,hn+=mt*Lr,un+=mt*Dr,tn+=mt*Fr,Gt+=mt*Br,xn+=mt*$r,Gn+=mt*zr,Jn+=mt*ro,er+=mt*qr,ir+=mt*eo,Kn+=mt*to,nr+=mt*no,ur+=mt*io,rr+=mt*co,yr+=mt*so,mr+=mt*fo,mt=Ft[6],hn+=mt*pn,un+=mt*Lr,tn+=mt*Dr,Gt+=mt*Fr,xn+=mt*Br,Gn+=mt*$r,Jn+=mt*zr,er+=mt*ro,ir+=mt*qr,Kn+=mt*eo,nr+=mt*to,ur+=mt*no,rr+=mt*io,yr+=mt*co,mr+=mt*so,Bn+=mt*fo,mt=Ft[7],un+=mt*pn,tn+=mt*Lr,Gt+=mt*Dr,xn+=mt*Fr,Gn+=mt*Br,Jn+=mt*$r,er+=mt*zr,ir+=mt*ro,Kn+=mt*qr,nr+=mt*eo,ur+=mt*to,rr+=mt*no,yr+=mt*io,mr+=mt*co,Bn+=mt*so,Hn+=mt*fo,mt=Ft[8],tn+=mt*pn,Gt+=mt*Lr,xn+=mt*Dr,Gn+=mt*Fr,Jn+=mt*Br,er+=mt*$r,ir+=mt*zr,Kn+=mt*ro,nr+=mt*qr,ur+=mt*eo,rr+=mt*to,yr+=mt*no,mr+=mt*io,Bn+=mt*co,Hn+=mt*so,hr+=mt*fo,mt=Ft[9],Gt+=mt*pn,xn+=mt*Lr,Gn+=mt*Dr,Jn+=mt*Fr,er+=mt*Br,ir+=mt*$r,Kn+=mt*zr,nr+=mt*ro,ur+=mt*qr,rr+=mt*eo,yr+=mt*to,mr+=mt*no,Bn+=mt*io,Hn+=mt*co,hr+=mt*so,lr+=mt*fo,mt=Ft[10],xn+=mt*pn,Gn+=mt*Lr,Jn+=mt*Dr,er+=mt*Fr,ir+=mt*Br,Kn+=mt*$r,nr+=mt*zr,ur+=mt*ro,rr+=mt*qr,yr+=mt*eo,mr+=mt*to,Bn+=mt*no,Hn+=mt*io,hr+=mt*co,lr+=mt*so,sr+=mt*fo,mt=Ft[11],Gn+=mt*pn,Jn+=mt*Lr,er+=mt*Dr,ir+=mt*Fr,Kn+=mt*Br,nr+=mt*$r,ur+=mt*zr,rr+=mt*ro,yr+=mt*qr,mr+=mt*eo,Bn+=mt*to,Hn+=mt*no,hr+=mt*io,lr+=mt*co,sr+=mt*so,dr+=mt*fo,mt=Ft[12],Jn+=mt*pn,er+=mt*Lr,ir+=mt*Dr,Kn+=mt*Fr,nr+=mt*Br,ur+=mt*$r,rr+=mt*zr,yr+=mt*ro,mr+=mt*qr,Bn+=mt*eo,Hn+=mt*to,hr+=mt*no,lr+=mt*io,sr+=mt*co,dr+=mt*so,Ar+=mt*fo,mt=Ft[13],er+=mt*pn,ir+=mt*Lr,Kn+=mt*Dr,nr+=mt*Fr,ur+=mt*Br,rr+=mt*$r,yr+=mt*zr,mr+=mt*ro,Bn+=mt*qr,Hn+=mt*eo,hr+=mt*to,lr+=mt*no,sr+=mt*io,dr+=mt*co,Ar+=mt*so,Mr+=mt*fo,mt=Ft[14],ir+=mt*pn,Kn+=mt*Lr,nr+=mt*Dr,ur+=mt*Fr,rr+=mt*Br,yr+=mt*$r,mr+=mt*zr,Bn+=mt*ro,Hn+=mt*qr,hr+=mt*eo,lr+=mt*to,sr+=mt*no,dr+=mt*io,Ar+=mt*co,Mr+=mt*so,jr+=mt*fo,mt=Ft[15],Kn+=mt*pn,nr+=mt*Lr,ur+=mt*Dr,rr+=mt*Fr,yr+=mt*Br,mr+=mt*$r,Bn+=mt*zr,Hn+=mt*ro,hr+=mt*qr,lr+=mt*eo,sr+=mt*to,dr+=mt*no,Ar+=mt*io,Mr+=mt*co,jr+=mt*so,Ir+=mt*fo,Xt+=38*nr,It+=38*ur,Nt+=38*rr,Rt+=38*yr,zt+=38*mr,Bt+=38*Bn,hn+=38*Hn,un+=38*hr,tn+=38*lr,Gt+=38*sr,xn+=38*dr,Gn+=38*Ar,Jn+=38*Mr,er+=38*jr,ir+=38*Ir,Dt=1,mt=Xt+Dt+65535,Dt=Math.floor(mt/65536),Xt=mt-Dt*65536,mt=It+Dt+65535,Dt=Math.floor(mt/65536),It=mt-Dt*65536,mt=Nt+Dt+65535,Dt=Math.floor(mt/65536),Nt=mt-Dt*65536,mt=Rt+Dt+65535,Dt=Math.floor(mt/65536),Rt=mt-Dt*65536,mt=zt+Dt+65535,Dt=Math.floor(mt/65536),zt=mt-Dt*65536,mt=Bt+Dt+65535,Dt=Math.floor(mt/65536),Bt=mt-Dt*65536,mt=hn+Dt+65535,Dt=Math.floor(mt/65536),hn=mt-Dt*65536,mt=un+Dt+65535,Dt=Math.floor(mt/65536),un=mt-Dt*65536,mt=tn+Dt+65535,Dt=Math.floor(mt/65536),tn=mt-Dt*65536,mt=Gt+Dt+65535,Dt=Math.floor(mt/65536),Gt=mt-Dt*65536,mt=xn+Dt+65535,Dt=Math.floor(mt/65536),xn=mt-Dt*65536,mt=Gn+Dt+65535,Dt=Math.floor(mt/65536),Gn=mt-Dt*65536,mt=Jn+Dt+65535,Dt=Math.floor(mt/65536),Jn=mt-Dt*65536,mt=er+Dt+65535,Dt=Math.floor(mt/65536),er=mt-Dt*65536,mt=ir+Dt+65535,Dt=Math.floor(mt/65536),ir=mt-Dt*65536,mt=Kn+Dt+65535,Dt=Math.floor(mt/65536),Kn=mt-Dt*65536,Xt+=Dt-1+37*(Dt-1),Dt=1,mt=Xt+Dt+65535,Dt=Math.floor(mt/65536),Xt=mt-Dt*65536,mt=It+Dt+65535,Dt=Math.floor(mt/65536),It=mt-Dt*65536,mt=Nt+Dt+65535,Dt=Math.floor(mt/65536),Nt=mt-Dt*65536,mt=Rt+Dt+65535,Dt=Math.floor(mt/65536),Rt=mt-Dt*65536,mt=zt+Dt+65535,Dt=Math.floor(mt/65536),zt=mt-Dt*65536,mt=Bt+Dt+65535,Dt=Math.floor(mt/65536),Bt=mt-Dt*65536,mt=hn+Dt+65535,Dt=Math.floor(mt/65536),hn=mt-Dt*65536,mt=un+Dt+65535,Dt=Math.floor(mt/65536),un=mt-Dt*65536,mt=tn+Dt+65535,Dt=Math.floor(mt/65536),tn=mt-Dt*65536,mt=Gt+Dt+65535,Dt=Math.floor(mt/65536),Gt=mt-Dt*65536,mt=xn+Dt+65535,Dt=Math.floor(mt/65536),xn=mt-Dt*65536,mt=Gn+Dt+65535,Dt=Math.floor(mt/65536),Gn=mt-Dt*65536,mt=Jn+Dt+65535,Dt=Math.floor(mt/65536),Jn=mt-Dt*65536,mt=er+Dt+65535,Dt=Math.floor(mt/65536),er=mt-Dt*65536,mt=ir+Dt+65535,Dt=Math.floor(mt/65536),ir=mt-Dt*65536,mt=Kn+Dt+65535,Dt=Math.floor(mt/65536),Kn=mt-Dt*65536,Xt+=Dt-1+37*(Dt-1),St[0]=Xt,St[1]=It,St[2]=Nt,St[3]=Rt,St[4]=zt,St[5]=Bt,St[6]=hn,St[7]=un,St[8]=tn,St[9]=Gt,St[10]=xn,St[11]=Gn,St[12]=Jn,St[13]=er,St[14]=ir,St[15]=Kn}function Pn(St,Ft){_n(St,Ft,Ft)}function Yn(St,Ft){var $t=d(),mt;for(mt=0;mt<16;mt++)$t[mt]=Ft[mt];for(mt=253;mt>=0;mt--)Pn($t,$t),mt!==2&&mt!==4&&_n($t,$t,Ft);for(mt=0;mt<16;mt++)St[mt]=$t[mt]}function dn(St,Ft){var $t=d(),mt;for(mt=0;mt<16;mt++)$t[mt]=Ft[mt];for(mt=250;mt>=0;mt--)Pn($t,$t),mt!==1&&_n($t,$t,Ft);for(mt=0;mt<16;mt++)St[mt]=$t[mt]}function An(St,Ft,$t){var mt=new Uint8Array(32),Dt=new Float64Array(80),Xt,It,Nt=d(),Rt=d(),zt=d(),Bt=d(),hn=d(),un=d();for(It=0;It<31;It++)mt[It]=Ft[It];for(mt[31]=Ft[31]&127|64,mt[0]&=248,fn(Dt,$t),It=0;It<16;It++)Rt[It]=Dt[It],Bt[It]=Nt[It]=zt[It]=0;for(Nt[0]=Bt[0]=1,It=254;It>=0;--It)Xt=mt[It>>>3]>>>(It&7)&1,rn(Nt,Rt,Xt),rn(zt,Bt,Xt),In(hn,Nt,zt),On(Nt,Nt,zt),In(zt,Rt,Bt),On(Rt,Rt,Bt),Pn(Bt,hn),Pn(un,Nt),_n(Nt,zt,Nt),_n(zt,Rt,hn),In(hn,Nt,zt),On(Nt,Nt,zt),Pn(Rt,Nt),On(zt,Bt,un),_n(Nt,zt,rt),In(Nt,Nt,Bt),_n(zt,zt,Nt),_n(Nt,Bt,un),_n(Bt,Rt,Dt),Pn(Rt,hn),rn(Nt,Rt,Xt),rn(zt,Bt,Xt);for(It=0;It<16;It++)Dt[It+16]=Nt[It],Dt[It+32]=zt[It],Dt[It+48]=Rt[It],Dt[It+64]=Bt[It];var tn=Dt.subarray(32),Gt=Dt.subarray(16);return Yn(tn,tn),_n(Gt,Gt,tn),nn(St,Gt),0}function mn(St,Ft){return An(St,Ft,$)}function jn(St,Ft){return k(Ft,32),mn(St,Ft)}function kn(St,Ft,$t){var mt=new Uint8Array(32);return An(mt,$t,Ft),Ct(St,j,mt,xt)}var vn=Ot,En=Lt;function gn(St,Ft,$t,mt,Dt,Xt){var It=new Uint8Array(32);return kn(It,Dt,Xt),vn(St,Ft,$t,mt,It)}function Ln(St,Ft,$t,mt,Dt,Xt){var It=new Uint8Array(32);return kn(It,Dt,Xt),En(St,Ft,$t,mt,It)}var Fn=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Un(St,Ft,$t,mt){for(var Dt=new Int32Array(16),Xt=new Int32Array(16),It,Nt,Rt,zt,Bt,hn,un,tn,Gt,xn,Gn,Jn,er,ir,Kn,nr,ur,rr,yr,mr,Bn,Hn,hr,lr,sr,dr,Ar=St[0],Mr=St[1],jr=St[2],Ir=St[3],pn=St[4],Lr=St[5],Dr=St[6],Fr=St[7],Br=Ft[0],$r=Ft[1],zr=Ft[2],ro=Ft[3],qr=Ft[4],eo=Ft[5],to=Ft[6],no=Ft[7],io=0;mt>=128;){for(yr=0;yr<16;yr++)mr=8*yr+io,Dt[yr]=$t[mr+0]<<24|$t[mr+1]<<16|$t[mr+2]<<8|$t[mr+3],Xt[yr]=$t[mr+4]<<24|$t[mr+5]<<16|$t[mr+6]<<8|$t[mr+7];for(yr=0;yr<80;yr++)if(It=Ar,Nt=Mr,Rt=jr,zt=Ir,Bt=pn,hn=Lr,un=Dr,tn=Fr,Gt=Br,xn=$r,Gn=zr,Jn=ro,er=qr,ir=eo,Kn=to,nr=no,Bn=Fr,Hn=no,hr=Hn&65535,lr=Hn>>>16,sr=Bn&65535,dr=Bn>>>16,Bn=(pn>>>14|qr<<32-14)^(pn>>>18|qr<<32-18)^(qr>>>41-32|pn<<32-(41-32)),Hn=(qr>>>14|pn<<32-14)^(qr>>>18|pn<<32-18)^(pn>>>41-32|qr<<32-(41-32)),hr+=Hn&65535,lr+=Hn>>>16,sr+=Bn&65535,dr+=Bn>>>16,Bn=pn&Lr^~pn&Dr,Hn=qr&eo^~qr&to,hr+=Hn&65535,lr+=Hn>>>16,sr+=Bn&65535,dr+=Bn>>>16,Bn=Fn[yr*2],Hn=Fn[yr*2+1],hr+=Hn&65535,lr+=Hn>>>16,sr+=Bn&65535,dr+=Bn>>>16,Bn=Dt[yr%16],Hn=Xt[yr%16],hr+=Hn&65535,lr+=Hn>>>16,sr+=Bn&65535,dr+=Bn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,ur=sr&65535|dr<<16,rr=hr&65535|lr<<16,Bn=ur,Hn=rr,hr=Hn&65535,lr=Hn>>>16,sr=Bn&65535,dr=Bn>>>16,Bn=(Ar>>>28|Br<<32-28)^(Br>>>34-32|Ar<<32-(34-32))^(Br>>>39-32|Ar<<32-(39-32)),Hn=(Br>>>28|Ar<<32-28)^(Ar>>>34-32|Br<<32-(34-32))^(Ar>>>39-32|Br<<32-(39-32)),hr+=Hn&65535,lr+=Hn>>>16,sr+=Bn&65535,dr+=Bn>>>16,Bn=Ar&Mr^Ar&jr^Mr&jr,Hn=Br&$r^Br&zr^$r&zr,hr+=Hn&65535,lr+=Hn>>>16,sr+=Bn&65535,dr+=Bn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,tn=sr&65535|dr<<16,nr=hr&65535|lr<<16,Bn=zt,Hn=Jn,hr=Hn&65535,lr=Hn>>>16,sr=Bn&65535,dr=Bn>>>16,Bn=ur,Hn=rr,hr+=Hn&65535,lr+=Hn>>>16,sr+=Bn&65535,dr+=Bn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,zt=sr&65535|dr<<16,Jn=hr&65535|lr<<16,Mr=It,jr=Nt,Ir=Rt,pn=zt,Lr=Bt,Dr=hn,Fr=un,Ar=tn,$r=Gt,zr=xn,ro=Gn,qr=Jn,eo=er,to=ir,no=Kn,Br=nr,yr%16===15)for(mr=0;mr<16;mr++)Bn=Dt[mr],Hn=Xt[mr],hr=Hn&65535,lr=Hn>>>16,sr=Bn&65535,dr=Bn>>>16,Bn=Dt[(mr+9)%16],Hn=Xt[(mr+9)%16],hr+=Hn&65535,lr+=Hn>>>16,sr+=Bn&65535,dr+=Bn>>>16,ur=Dt[(mr+1)%16],rr=Xt[(mr+1)%16],Bn=(ur>>>1|rr<<32-1)^(ur>>>8|rr<<32-8)^ur>>>7,Hn=(rr>>>1|ur<<32-1)^(rr>>>8|ur<<32-8)^(rr>>>7|ur<<32-7),hr+=Hn&65535,lr+=Hn>>>16,sr+=Bn&65535,dr+=Bn>>>16,ur=Dt[(mr+14)%16],rr=Xt[(mr+14)%16],Bn=(ur>>>19|rr<<32-19)^(rr>>>61-32|ur<<32-(61-32))^ur>>>6,Hn=(rr>>>19|ur<<32-19)^(ur>>>61-32|rr<<32-(61-32))^(rr>>>6|ur<<32-6),hr+=Hn&65535,lr+=Hn>>>16,sr+=Bn&65535,dr+=Bn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,Dt[mr]=sr&65535|dr<<16,Xt[mr]=hr&65535|lr<<16;Bn=Ar,Hn=Br,hr=Hn&65535,lr=Hn>>>16,sr=Bn&65535,dr=Bn>>>16,Bn=St[0],Hn=Ft[0],hr+=Hn&65535,lr+=Hn>>>16,sr+=Bn&65535,dr+=Bn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,St[0]=Ar=sr&65535|dr<<16,Ft[0]=Br=hr&65535|lr<<16,Bn=Mr,Hn=$r,hr=Hn&65535,lr=Hn>>>16,sr=Bn&65535,dr=Bn>>>16,Bn=St[1],Hn=Ft[1],hr+=Hn&65535,lr+=Hn>>>16,sr+=Bn&65535,dr+=Bn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,St[1]=Mr=sr&65535|dr<<16,Ft[1]=$r=hr&65535|lr<<16,Bn=jr,Hn=zr,hr=Hn&65535,lr=Hn>>>16,sr=Bn&65535,dr=Bn>>>16,Bn=St[2],Hn=Ft[2],hr+=Hn&65535,lr+=Hn>>>16,sr+=Bn&65535,dr+=Bn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,St[2]=jr=sr&65535|dr<<16,Ft[2]=zr=hr&65535|lr<<16,Bn=Ir,Hn=ro,hr=Hn&65535,lr=Hn>>>16,sr=Bn&65535,dr=Bn>>>16,Bn=St[3],Hn=Ft[3],hr+=Hn&65535,lr+=Hn>>>16,sr+=Bn&65535,dr+=Bn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,St[3]=Ir=sr&65535|dr<<16,Ft[3]=ro=hr&65535|lr<<16,Bn=pn,Hn=qr,hr=Hn&65535,lr=Hn>>>16,sr=Bn&65535,dr=Bn>>>16,Bn=St[4],Hn=Ft[4],hr+=Hn&65535,lr+=Hn>>>16,sr+=Bn&65535,dr+=Bn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,St[4]=pn=sr&65535|dr<<16,Ft[4]=qr=hr&65535|lr<<16,Bn=Lr,Hn=eo,hr=Hn&65535,lr=Hn>>>16,sr=Bn&65535,dr=Bn>>>16,Bn=St[5],Hn=Ft[5],hr+=Hn&65535,lr+=Hn>>>16,sr+=Bn&65535,dr+=Bn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,St[5]=Lr=sr&65535|dr<<16,Ft[5]=eo=hr&65535|lr<<16,Bn=Dr,Hn=to,hr=Hn&65535,lr=Hn>>>16,sr=Bn&65535,dr=Bn>>>16,Bn=St[6],Hn=Ft[6],hr+=Hn&65535,lr+=Hn>>>16,sr+=Bn&65535,dr+=Bn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,St[6]=Dr=sr&65535|dr<<16,Ft[6]=to=hr&65535|lr<<16,Bn=Fr,Hn=no,hr=Hn&65535,lr=Hn>>>16,sr=Bn&65535,dr=Bn>>>16,Bn=St[7],Hn=Ft[7],hr+=Hn&65535,lr+=Hn>>>16,sr+=Bn&65535,dr+=Bn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,St[7]=Fr=sr&65535|dr<<16,Ft[7]=no=hr&65535|lr<<16,io+=128,mt-=128}return mt}function Mn(St,Ft,$t){var mt=new Int32Array(8),Dt=new Int32Array(8),Xt=new Uint8Array(256),It,Nt=$t;for(mt[0]=1779033703,mt[1]=3144134277,mt[2]=1013904242,mt[3]=2773480762,mt[4]=1359893119,mt[5]=2600822924,mt[6]=528734635,mt[7]=1541459225,Dt[0]=4089235720,Dt[1]=2227873595,Dt[2]=4271175723,Dt[3]=1595750129,Dt[4]=2917565137,Dt[5]=725511199,Dt[6]=4215389547,Dt[7]=327033209,Un(mt,Dt,Ft,$t),$t%=128,It=0;It<$t;It++)Xt[It]=Ft[Nt-$t+It];for(Xt[$t]=128,$t=256-128*($t<112?1:0),Xt[$t-9]=0,ut(Xt,$t-8,Nt/536870912|0,Nt<<3),Un(mt,Dt,Xt,$t),It=0;It<8;It++)ut(St,8*It,mt[It],Dt[It]);return 0}function Wn(St,Ft){var $t=d(),mt=d(),Dt=d(),Xt=d(),It=d(),Nt=d(),Rt=d(),zt=d(),Bt=d();On($t,St[1],St[0]),On(Bt,Ft[1],Ft[0]),_n($t,$t,Bt),In(mt,St[0],St[1]),In(Bt,Ft[0],Ft[1]),_n(mt,mt,Bt),_n(Dt,St[3],Ft[3]),_n(Dt,Dt,ot),_n(Xt,St[2],Ft[2]),In(Xt,Xt,Xt),On(It,mt,$t),On(Nt,Xt,Dt),In(Rt,Xt,Dt),In(zt,mt,$t),_n(St[0],It,Nt),_n(St[1],zt,Rt),_n(St[2],Rt,Nt),_n(St[3],It,zt)}function wn(St,Ft,$t){var mt;for(mt=0;mt<4;mt++)rn(St[mt],Ft[mt],$t)}function Nn(St,Ft){var $t=d(),mt=d(),Dt=d();Yn(Dt,Ft[2]),_n($t,Ft[0],Dt),_n(mt,Ft[1],Dt),nn(St,mt),St[31]^=Vt($t)<<7}function zn(St,Ft,$t){var mt,Dt;for(Pt(St[0],et),Pt(St[1],tt),Pt(St[2],tt),Pt(St[3],et),Dt=255;Dt>=0;--Dt)mt=$t[Dt/8|0]>>(Dt&7)&1,wn(St,Ft,mt),Wn(Ft,St),Wn(St,St),wn(St,Ft,mt)}function Vn(St,Ft){var $t=[d(),d(),d(),d()];Pt($t[0],at),Pt($t[1],it),Pt($t[2],tt),_n($t[3],at,it),zn(St,$t,Ft)}function bn(St,Ft,$t){var mt=new Uint8Array(64),Dt=[d(),d(),d(),d()],Xt;for($t||k(Ft,32),Mn(mt,Ft,32),mt[0]&=248,mt[31]&=127,mt[31]|=64,Vn(Dt,mt),Nn(St,Dt),Xt=0;Xt<32;Xt++)Ft[Xt+32]=St[Xt];return 0}var Yt=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function bt(St,Ft){var $t,mt,Dt,Xt;for(mt=63;mt>=32;--mt){for($t=0,Dt=mt-32,Xt=mt-12;Dt>4)*Yt[Dt],$t=Ft[Dt]>>8,Ft[Dt]&=255;for(Dt=0;Dt<32;Dt++)Ft[Dt]-=$t*Yt[Dt];for(mt=0;mt<32;mt++)Ft[mt+1]+=Ft[mt]>>8,St[mt]=Ft[mt]&255}function pt(St){var Ft=new Float64Array(64),$t;for($t=0;$t<64;$t++)Ft[$t]=St[$t];for($t=0;$t<64;$t++)St[$t]=0;bt(St,Ft)}function yt(St,Ft,$t,mt){var Dt=new Uint8Array(64),Xt=new Uint8Array(64),It=new Uint8Array(64),Nt,Rt,zt=new Float64Array(64),Bt=[d(),d(),d(),d()];Mn(Dt,mt,32),Dt[0]&=248,Dt[31]&=127,Dt[31]|=64;var hn=$t+64;for(Nt=0;Nt<$t;Nt++)St[64+Nt]=Ft[Nt];for(Nt=0;Nt<32;Nt++)St[32+Nt]=Dt[32+Nt];for(Mn(It,St.subarray(32),$t+32),pt(It),Vn(Bt,It),Nn(St,Bt),Nt=32;Nt<64;Nt++)St[Nt]=mt[Nt];for(Mn(Xt,St,$t+64),pt(Xt),Nt=0;Nt<64;Nt++)zt[Nt]=0;for(Nt=0;Nt<32;Nt++)zt[Nt]=It[Nt];for(Nt=0;Nt<32;Nt++)for(Rt=0;Rt<32;Rt++)zt[Nt+Rt]+=Xt[Nt]*Dt[Rt];return bt(St.subarray(32),zt),hn}function Ut(St,Ft){var $t=d(),mt=d(),Dt=d(),Xt=d(),It=d(),Nt=d(),Rt=d();return Pt(St[2],tt),fn(St[1],Ft),Pn(Dt,St[1]),_n(Xt,Dt,nt),On(Dt,Dt,St[2]),In(Xt,St[2],Xt),Pn(It,Xt),Pn(Nt,It),_n(Rt,Nt,It),_n($t,Rt,Dt),_n($t,$t,Xt),dn($t,$t),_n($t,$t,Dt),_n($t,$t,Xt),_n($t,$t,Xt),_n(St[0],$t,Xt),Pn(mt,St[0]),_n(mt,mt,Xt),Qt(mt,Dt)&&_n(St[0],St[0],dt),Pn(mt,St[0]),_n(mt,mt,Xt),Qt(mt,Dt)?-1:(Vt(St[0])===Ft[31]>>7&&On(St[0],et,St[0]),_n(St[3],St[0],St[1]),0)}function an(St,Ft,$t,mt){var Dt,Xt=new Uint8Array(32),It=new Uint8Array(64),Nt=[d(),d(),d(),d()],Rt=[d(),d(),d(),d()];if($t<64||Ut(Rt,mt))return-1;for(Dt=0;Dt<$t;Dt++)St[Dt]=Ft[Dt];for(Dt=0;Dt<32;Dt++)St[Dt+32]=mt[Dt];if(Mn(It,St,$t),pt(It),zn(Nt,Rt,It),Vn(Rt,Ft.subarray(32)),Wn(Nt,Rt),Nn(Xt,Nt),$t-=64,lt(Ft,0,Xt,0)){for(Dt=0;Dt<$t;Dt++)St[Dt]=0;return-1}for(Dt=0;Dt<$t;Dt++)St[Dt]=Ft[Dt+64];return $t}var sn=32,Sn=24,or=32,Rn=16,Xn=32,$n=32,ar=32,Qn=32,qn=32,fr=Sn,cr=or,pr=Rn,xr=64,kr=32,Tr=64,Pr=32,Rr=64;_.lowlevel={crypto_core_hsalsa20:Ct,crypto_stream_xor:_t,crypto_stream:kt,crypto_stream_salsa20_xor:wt,crypto_stream_salsa20:Mt,crypto_onetimeauth:At,crypto_onetimeauth_verify:Et,crypto_verify_16:ft,crypto_verify_32:lt,crypto_secretbox:Ot,crypto_secretbox_open:Lt,crypto_scalarmult:An,crypto_scalarmult_base:mn,crypto_box_beforenm:kn,crypto_box_afternm:vn,crypto_box:gn,crypto_box_open:Ln,crypto_box_keypair:jn,crypto_hash:Mn,crypto_sign:yt,crypto_sign_keypair:bn,crypto_sign_open:an,crypto_secretbox_KEYBYTES:sn,crypto_secretbox_NONCEBYTES:Sn,crypto_secretbox_ZEROBYTES:or,crypto_secretbox_BOXZEROBYTES:Rn,crypto_scalarmult_BYTES:Xn,crypto_scalarmult_SCALARBYTES:$n,crypto_box_PUBLICKEYBYTES:ar,crypto_box_SECRETKEYBYTES:Qn,crypto_box_BEFORENMBYTES:qn,crypto_box_NONCEBYTES:fr,crypto_box_ZEROBYTES:cr,crypto_box_BOXZEROBYTES:pr,crypto_sign_BYTES:xr,crypto_sign_PUBLICKEYBYTES:kr,crypto_sign_SECRETKEYBYTES:Tr,crypto_sign_SEEDBYTES:Pr,crypto_hash_BYTES:Rr,gf:d,D:nt,L:Yt,pack25519:nn,unpack25519:fn,M:_n,A:In,S:Pn,Z:On,pow2523:dn,add:Wn,set25519:Pt,modL:bt,scalarmult:zn,scalarbase:Vn};function Ur(St,Ft){if(St.length!==sn)throw new Error("bad key size");if(Ft.length!==Sn)throw new Error("bad nonce size")}function Qr(St,Ft){if(St.length!==ar)throw new Error("bad public key size");if(Ft.length!==Qn)throw new Error("bad secret key size")}function Zr(){for(var St=0;St=0},_.sign.keyPair=function(){var St=new Uint8Array(kr),Ft=new Uint8Array(Tr);return bn(St,Ft),{publicKey:St,secretKey:Ft}},_.sign.keyPair.fromSecretKey=function(St){if(Zr(St),St.length!==Tr)throw new Error("bad secret key size");for(var Ft=new Uint8Array(kr),$t=0;$t=b.length)throw new Error("Index is out of buffer");const d=b.slice(0,_),k=b.slice(_);return[d,k]}function toHexString(b){let _="";return b.forEach(d=>{_+=("0"+(d&255).toString(16)).slice(-2)}),_}function hexToByteArray(b){if(b.length%2!==0)throw new Error(`Cannot convert ${b} to bytesArray`);const _=new Uint8Array(b.length/2);for(let d=0;d component higher in the tree to provide a loading indicator or placeholder to display.`)}V!==5&&(V=2),rt=Mi(rt,tt),it=et;do{switch(it.tag){case 3:$=rt,it.flags|=4096,_&=-_,it.lanes|=_;var Ct=Pi(it,$,_);Bg(it,Ct);break e;case 1:$=rt;var xt=it.type,wt=it.stateNode;if(!(it.flags&64)&&(typeof xt.getDerivedStateFromError=="function"||wt!==null&&typeof wt.componentDidCatch=="function"&&(Ti===null||!Ti.has(wt)))){it.flags|=4096,_&=-_,it.lanes|=_;var Mt=Si(it,$,_);Bg(it,Mt);break e}}it=it.return}while(it!==null)}Zj(d)}catch(kt){_=kt,Y===d&&d!==null&&(Y=d=d.return);continue}break}while(1)}function Pj(){var b=oj.current;return oj.current=Gh,b===null?Gh:b}function Tj(b,_){var d=X;X|=16;var k=Pj();U===b&&W===_||Qj(b,_);do try{ak();break}catch(j){Sj(b,j)}while(1);if(qg(),X=d,oj.current=k,Y!==null)throw Error(y(261));return U=null,W=0,V}function ak(){for(;Y!==null;)bk(Y)}function Rj(){for(;Y!==null&&!Qf();)bk(Y)}function bk(b){var _=ck(b.alternate,b,qj);b.memoizedProps=b.pendingProps,_===null?Zj(b):Y=_,pj.current=null}function Zj(b){var _=b;do{var d=_.alternate;if(b=_.return,_.flags&2048){if(d=Li(_),d!==null){d.flags&=2047,Y=d;return}b!==null&&(b.firstEffect=b.lastEffect=null,b.flags|=2048)}else{if(d=Gi(d,_,qj),d!==null){Y=d;return}if(d=_,d.tag!==24&&d.tag!==23||d.memoizedState===null||qj&1073741824||!(d.mode&4)){for(var k=0,j=d.child;j!==null;)k|=j.lanes|j.childLanes,j=j.sibling;d.childLanes=k}b!==null&&!(b.flags&2048)&&(b.firstEffect===null&&(b.firstEffect=_.firstEffect),_.lastEffect!==null&&(b.lastEffect!==null&&(b.lastEffect.nextEffect=_.firstEffect),b.lastEffect=_.lastEffect),1<_.flags&&(b.lastEffect!==null?b.lastEffect.nextEffect=_:b.firstEffect=_,b.lastEffect=_))}if(_=_.sibling,_!==null){Y=_;return}Y=_=b}while(_!==null);V===0&&(V=5)}function Uj(b){var _=eg();return gg(99,dk.bind(null,b,_)),null}function dk(b,_){do Oj();while(yj!==null);if(X&48)throw Error(y(327));var d=b.finishedWork;if(d===null)return null;if(b.finishedWork=null,b.finishedLanes=0,d===b.current)throw Error(y(177));b.callbackNode=null;var k=d.lanes|d.childLanes,j=k,$=b.pendingLanes&~j;b.pendingLanes=j,b.suspendedLanes=0,b.pingedLanes=0,b.expiredLanes&=j,b.mutableReadLanes&=j,b.entangledLanes&=j,j=b.entanglements;for(var et=b.eventTimes,tt=b.expirationTimes;0<$;){var rt=31-Vc($),nt=1<et&&(tt=et,et=Ct,Ct=tt),tt=Le(ct,Ct),$=Le(ct,et),tt&&$&&(st.rangeCount!==1||st.anchorNode!==tt.node||st.anchorOffset!==tt.offset||st.focusNode!==$.node||st.focusOffset!==$.offset)&&(gt=gt.createRange(),gt.setStart(tt.node,tt.offset),st.removeAllRanges(),Ct>et?(st.addRange(gt),st.extend($.node,$.offset)):(gt.setEnd($.node,$.offset),st.addRange(gt)))))),gt=[],st=ct;st=st.parentNode;)st.nodeType===1&>.push({element:st,left:st.scrollLeft,top:st.scrollTop});for(typeof ct.focus=="function"&&ct.focus(),ct=0;ctO()-jj?Qj(b,0):uj|=d),Mj(b,_)}function lj(b,_){var d=b.stateNode;d!==null&&d.delete(_),_=0,_===0&&(_=b.mode,_&2?_&4?(Gj===0&&(Gj=tj),_=Yc(62914560&~Gj),_===0&&(_=4194304)):_=eg()===99?1:2:_=1),d=Hg(),b=Kj(b,_),b!==null&&($c(b,_,d),Mj(b,d))}var ck;ck=function(b,_,d){var k=_.lanes;if(b!==null)if(b.memoizedProps!==_.pendingProps||N.current)ug=!0;else if(d&k)ug=!!(b.flags&16384);else{switch(ug=!1,_.tag){case 3:ri(_),sh();break;case 5:gh(_);break;case 1:Ff(_.type)&&Jf(_);break;case 4:eh(_,_.stateNode.containerInfo);break;case 10:k=_.memoizedProps.value;var j=_.type._context;I(mg,j._currentValue),j._currentValue=k;break;case 13:if(_.memoizedState!==null)return d&_.child.childLanes?ti(b,_,d):(I(P$1,P$1.current&1),_=hi(b,_,d),_!==null?_.sibling:null);I(P$1,P$1.current&1);break;case 19:if(k=(d&_.childLanes)!==0,b.flags&64){if(k)return Ai(b,_,d);_.flags|=64}if(j=_.memoizedState,j!==null&&(j.rendering=null,j.tail=null,j.lastEffect=null),I(P$1,P$1.current),k)break;return null;case 23:case 24:return _.lanes=0,mi(b,_,d)}return hi(b,_,d)}else ug=!1;switch(_.lanes=0,_.tag){case 2:if(k=_.type,b!==null&&(b.alternate=null,_.alternate=null,_.flags|=2),b=_.pendingProps,j=Ef(_,M.current),tg(_,d),j=Ch(null,_,k,b,j,d),_.flags|=1,typeof j=="object"&&j!==null&&typeof j.render=="function"&&j.$$typeof===void 0){if(_.tag=1,_.memoizedState=null,_.updateQueue=null,Ff(k)){var $=!0;Jf(_)}else $=!1;_.memoizedState=j.state!==null&&j.state!==void 0?j.state:null,xg(_);var et=k.getDerivedStateFromProps;typeof et=="function"&&Gg(_,k,et,b),j.updater=Kg,_.stateNode=j,j._reactInternals=_,Og(_,k,b,d),_=qi(null,_,k,!0,$,d)}else _.tag=0,fi(null,_,j,d),_=_.child;return _;case 16:j=_.elementType;e:{switch(b!==null&&(b.alternate=null,_.alternate=null,_.flags|=2),b=_.pendingProps,$=j._init,j=$(j._payload),_.type=j,$=_.tag=hk(j),b=lg(j,b),$){case 0:_=li(null,_,j,b,d);break e;case 1:_=pi(null,_,j,b,d);break e;case 11:_=gi(null,_,j,b,d);break e;case 14:_=ii(null,_,j,lg(j.type,b),k,d);break e}throw Error(y(306,j,""))}return _;case 0:return k=_.type,j=_.pendingProps,j=_.elementType===k?j:lg(k,j),li(b,_,k,j,d);case 1:return k=_.type,j=_.pendingProps,j=_.elementType===k?j:lg(k,j),pi(b,_,k,j,d);case 3:if(ri(_),k=_.updateQueue,b===null||k===null)throw Error(y(282));if(k=_.pendingProps,j=_.memoizedState,j=j!==null?j.element:null,yg(b,_),Cg(_,k,null,d),k=_.memoizedState.element,k===j)sh(),_=hi(b,_,d);else{if(j=_.stateNode,($=j.hydrate)&&(kh=rf(_.stateNode.containerInfo.firstChild),jh=_,$=lh=!0),$){if(b=j.mutableSourceEagerHydrationData,b!=null)for(j=0;j"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(b){console.error(b)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const App$2="";var naclUtil={exports:{}};(function(b){(function(_,d){b.exports?b.exports=d():(_.nacl||(_.nacl={}),_.nacl.util=d())})(commonjsGlobal,function(){var _={};function d(k){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(k))throw new TypeError("invalid encoding")}return _.decodeUTF8=function(k){if(typeof k!="string")throw new TypeError("expected string");var j,$=unescape(encodeURIComponent(k)),et=new Uint8Array($.length);for(j=0;j<$.length;j++)et[j]=$.charCodeAt(j);return et},_.encodeUTF8=function(k){var j,$=[];for(j=0;j"u"?typeof Buffer.from<"u"?(_.encodeBase64=function(k){return Buffer.from(k).toString("base64")},_.decodeBase64=function(k){return d(k),new Uint8Array(Array.prototype.slice.call(Buffer.from(k,"base64"),0))}):(_.encodeBase64=function(k){return new Buffer(k).toString("base64")},_.decodeBase64=function(k){return d(k),new Uint8Array(Array.prototype.slice.call(new Buffer(k,"base64"),0))}):(_.encodeBase64=function(k){var j,$=[],et=k.length;for(j=0;j>24&255,St[Ft+1]=$t>>16&255,St[Ft+2]=$t>>8&255,St[Ft+3]=$t&255,St[Ft+4]=mt>>24&255,St[Ft+5]=mt>>16&255,St[Ft+6]=mt>>8&255,St[Ft+7]=mt&255}function ht(St,Ft,$t,mt,Dt){var Xt,It=0;for(Xt=0;Xt>>8)-1}function ft(St,Ft,$t,mt){return ht(St,Ft,$t,mt,16)}function lt(St,Ft,$t,mt){return ht(St,Ft,$t,mt,32)}function ct(St,Ft,$t,mt){for(var Dt=mt[0]&255|(mt[1]&255)<<8|(mt[2]&255)<<16|(mt[3]&255)<<24,Xt=$t[0]&255|($t[1]&255)<<8|($t[2]&255)<<16|($t[3]&255)<<24,It=$t[4]&255|($t[5]&255)<<8|($t[6]&255)<<16|($t[7]&255)<<24,Nt=$t[8]&255|($t[9]&255)<<8|($t[10]&255)<<16|($t[11]&255)<<24,Rt=$t[12]&255|($t[13]&255)<<8|($t[14]&255)<<16|($t[15]&255)<<24,Wt=mt[4]&255|(mt[5]&255)<<8|(mt[6]&255)<<16|(mt[7]&255)<<24,Pt=Ft[0]&255|(Ft[1]&255)<<8|(Ft[2]&255)<<16|(Ft[3]&255)<<24,hn=Ft[4]&255|(Ft[5]&255)<<8|(Ft[6]&255)<<16|(Ft[7]&255)<<24,un=Ft[8]&255|(Ft[9]&255)<<8|(Ft[10]&255)<<16|(Ft[11]&255)<<24,tn=Ft[12]&255|(Ft[13]&255)<<8|(Ft[14]&255)<<16|(Ft[15]&255)<<24,Gt=mt[8]&255|(mt[9]&255)<<8|(mt[10]&255)<<16|(mt[11]&255)<<24,xn=$t[16]&255|($t[17]&255)<<8|($t[18]&255)<<16|($t[19]&255)<<24,Gn=$t[20]&255|($t[21]&255)<<8|($t[22]&255)<<16|($t[23]&255)<<24,Jn=$t[24]&255|($t[25]&255)<<8|($t[26]&255)<<16|($t[27]&255)<<24,er=$t[28]&255|($t[29]&255)<<8|($t[30]&255)<<16|($t[31]&255)<<24,ir=mt[12]&255|(mt[13]&255)<<8|(mt[14]&255)<<16|(mt[15]&255)<<24,Kn=Dt,nr=Xt,ur=It,rr=Nt,yr=Rt,mr=Wt,Pn=Pt,Hn=hn,hr=un,lr=tn,sr=Gt,dr=xn,Ar=Gn,Mr=Jn,jr=er,Ir=ir,pn,Lr=0;Lr<20;Lr+=2)pn=Kn+Ar|0,yr^=pn<<7|pn>>>32-7,pn=yr+Kn|0,hr^=pn<<9|pn>>>32-9,pn=hr+yr|0,Ar^=pn<<13|pn>>>32-13,pn=Ar+hr|0,Kn^=pn<<18|pn>>>32-18,pn=mr+nr|0,lr^=pn<<7|pn>>>32-7,pn=lr+mr|0,Mr^=pn<<9|pn>>>32-9,pn=Mr+lr|0,nr^=pn<<13|pn>>>32-13,pn=nr+Mr|0,mr^=pn<<18|pn>>>32-18,pn=sr+Pn|0,jr^=pn<<7|pn>>>32-7,pn=jr+sr|0,ur^=pn<<9|pn>>>32-9,pn=ur+jr|0,Pn^=pn<<13|pn>>>32-13,pn=Pn+ur|0,sr^=pn<<18|pn>>>32-18,pn=Ir+dr|0,rr^=pn<<7|pn>>>32-7,pn=rr+Ir|0,Hn^=pn<<9|pn>>>32-9,pn=Hn+rr|0,dr^=pn<<13|pn>>>32-13,pn=dr+Hn|0,Ir^=pn<<18|pn>>>32-18,pn=Kn+rr|0,nr^=pn<<7|pn>>>32-7,pn=nr+Kn|0,ur^=pn<<9|pn>>>32-9,pn=ur+nr|0,rr^=pn<<13|pn>>>32-13,pn=rr+ur|0,Kn^=pn<<18|pn>>>32-18,pn=mr+yr|0,Pn^=pn<<7|pn>>>32-7,pn=Pn+mr|0,Hn^=pn<<9|pn>>>32-9,pn=Hn+Pn|0,yr^=pn<<13|pn>>>32-13,pn=yr+Hn|0,mr^=pn<<18|pn>>>32-18,pn=sr+lr|0,dr^=pn<<7|pn>>>32-7,pn=dr+sr|0,hr^=pn<<9|pn>>>32-9,pn=hr+dr|0,lr^=pn<<13|pn>>>32-13,pn=lr+hr|0,sr^=pn<<18|pn>>>32-18,pn=Ir+jr|0,Ar^=pn<<7|pn>>>32-7,pn=Ar+Ir|0,Mr^=pn<<9|pn>>>32-9,pn=Mr+Ar|0,jr^=pn<<13|pn>>>32-13,pn=jr+Mr|0,Ir^=pn<<18|pn>>>32-18;Kn=Kn+Dt|0,nr=nr+Xt|0,ur=ur+It|0,rr=rr+Nt|0,yr=yr+Rt|0,mr=mr+Wt|0,Pn=Pn+Pt|0,Hn=Hn+hn|0,hr=hr+un|0,lr=lr+tn|0,sr=sr+Gt|0,dr=dr+xn|0,Ar=Ar+Gn|0,Mr=Mr+Jn|0,jr=jr+er|0,Ir=Ir+ir|0,St[0]=Kn>>>0&255,St[1]=Kn>>>8&255,St[2]=Kn>>>16&255,St[3]=Kn>>>24&255,St[4]=nr>>>0&255,St[5]=nr>>>8&255,St[6]=nr>>>16&255,St[7]=nr>>>24&255,St[8]=ur>>>0&255,St[9]=ur>>>8&255,St[10]=ur>>>16&255,St[11]=ur>>>24&255,St[12]=rr>>>0&255,St[13]=rr>>>8&255,St[14]=rr>>>16&255,St[15]=rr>>>24&255,St[16]=yr>>>0&255,St[17]=yr>>>8&255,St[18]=yr>>>16&255,St[19]=yr>>>24&255,St[20]=mr>>>0&255,St[21]=mr>>>8&255,St[22]=mr>>>16&255,St[23]=mr>>>24&255,St[24]=Pn>>>0&255,St[25]=Pn>>>8&255,St[26]=Pn>>>16&255,St[27]=Pn>>>24&255,St[28]=Hn>>>0&255,St[29]=Hn>>>8&255,St[30]=Hn>>>16&255,St[31]=Hn>>>24&255,St[32]=hr>>>0&255,St[33]=hr>>>8&255,St[34]=hr>>>16&255,St[35]=hr>>>24&255,St[36]=lr>>>0&255,St[37]=lr>>>8&255,St[38]=lr>>>16&255,St[39]=lr>>>24&255,St[40]=sr>>>0&255,St[41]=sr>>>8&255,St[42]=sr>>>16&255,St[43]=sr>>>24&255,St[44]=dr>>>0&255,St[45]=dr>>>8&255,St[46]=dr>>>16&255,St[47]=dr>>>24&255,St[48]=Ar>>>0&255,St[49]=Ar>>>8&255,St[50]=Ar>>>16&255,St[51]=Ar>>>24&255,St[52]=Mr>>>0&255,St[53]=Mr>>>8&255,St[54]=Mr>>>16&255,St[55]=Mr>>>24&255,St[56]=jr>>>0&255,St[57]=jr>>>8&255,St[58]=jr>>>16&255,St[59]=jr>>>24&255,St[60]=Ir>>>0&255,St[61]=Ir>>>8&255,St[62]=Ir>>>16&255,St[63]=Ir>>>24&255}function gt(St,Ft,$t,mt){for(var Dt=mt[0]&255|(mt[1]&255)<<8|(mt[2]&255)<<16|(mt[3]&255)<<24,Xt=$t[0]&255|($t[1]&255)<<8|($t[2]&255)<<16|($t[3]&255)<<24,It=$t[4]&255|($t[5]&255)<<8|($t[6]&255)<<16|($t[7]&255)<<24,Nt=$t[8]&255|($t[9]&255)<<8|($t[10]&255)<<16|($t[11]&255)<<24,Rt=$t[12]&255|($t[13]&255)<<8|($t[14]&255)<<16|($t[15]&255)<<24,Wt=mt[4]&255|(mt[5]&255)<<8|(mt[6]&255)<<16|(mt[7]&255)<<24,Pt=Ft[0]&255|(Ft[1]&255)<<8|(Ft[2]&255)<<16|(Ft[3]&255)<<24,hn=Ft[4]&255|(Ft[5]&255)<<8|(Ft[6]&255)<<16|(Ft[7]&255)<<24,un=Ft[8]&255|(Ft[9]&255)<<8|(Ft[10]&255)<<16|(Ft[11]&255)<<24,tn=Ft[12]&255|(Ft[13]&255)<<8|(Ft[14]&255)<<16|(Ft[15]&255)<<24,Gt=mt[8]&255|(mt[9]&255)<<8|(mt[10]&255)<<16|(mt[11]&255)<<24,xn=$t[16]&255|($t[17]&255)<<8|($t[18]&255)<<16|($t[19]&255)<<24,Gn=$t[20]&255|($t[21]&255)<<8|($t[22]&255)<<16|($t[23]&255)<<24,Jn=$t[24]&255|($t[25]&255)<<8|($t[26]&255)<<16|($t[27]&255)<<24,er=$t[28]&255|($t[29]&255)<<8|($t[30]&255)<<16|($t[31]&255)<<24,ir=mt[12]&255|(mt[13]&255)<<8|(mt[14]&255)<<16|(mt[15]&255)<<24,Kn=Dt,nr=Xt,ur=It,rr=Nt,yr=Rt,mr=Wt,Pn=Pt,Hn=hn,hr=un,lr=tn,sr=Gt,dr=xn,Ar=Gn,Mr=Jn,jr=er,Ir=ir,pn,Lr=0;Lr<20;Lr+=2)pn=Kn+Ar|0,yr^=pn<<7|pn>>>32-7,pn=yr+Kn|0,hr^=pn<<9|pn>>>32-9,pn=hr+yr|0,Ar^=pn<<13|pn>>>32-13,pn=Ar+hr|0,Kn^=pn<<18|pn>>>32-18,pn=mr+nr|0,lr^=pn<<7|pn>>>32-7,pn=lr+mr|0,Mr^=pn<<9|pn>>>32-9,pn=Mr+lr|0,nr^=pn<<13|pn>>>32-13,pn=nr+Mr|0,mr^=pn<<18|pn>>>32-18,pn=sr+Pn|0,jr^=pn<<7|pn>>>32-7,pn=jr+sr|0,ur^=pn<<9|pn>>>32-9,pn=ur+jr|0,Pn^=pn<<13|pn>>>32-13,pn=Pn+ur|0,sr^=pn<<18|pn>>>32-18,pn=Ir+dr|0,rr^=pn<<7|pn>>>32-7,pn=rr+Ir|0,Hn^=pn<<9|pn>>>32-9,pn=Hn+rr|0,dr^=pn<<13|pn>>>32-13,pn=dr+Hn|0,Ir^=pn<<18|pn>>>32-18,pn=Kn+rr|0,nr^=pn<<7|pn>>>32-7,pn=nr+Kn|0,ur^=pn<<9|pn>>>32-9,pn=ur+nr|0,rr^=pn<<13|pn>>>32-13,pn=rr+ur|0,Kn^=pn<<18|pn>>>32-18,pn=mr+yr|0,Pn^=pn<<7|pn>>>32-7,pn=Pn+mr|0,Hn^=pn<<9|pn>>>32-9,pn=Hn+Pn|0,yr^=pn<<13|pn>>>32-13,pn=yr+Hn|0,mr^=pn<<18|pn>>>32-18,pn=sr+lr|0,dr^=pn<<7|pn>>>32-7,pn=dr+sr|0,hr^=pn<<9|pn>>>32-9,pn=hr+dr|0,lr^=pn<<13|pn>>>32-13,pn=lr+hr|0,sr^=pn<<18|pn>>>32-18,pn=Ir+jr|0,Ar^=pn<<7|pn>>>32-7,pn=Ar+Ir|0,Mr^=pn<<9|pn>>>32-9,pn=Mr+Ar|0,jr^=pn<<13|pn>>>32-13,pn=jr+Mr|0,Ir^=pn<<18|pn>>>32-18;St[0]=Kn>>>0&255,St[1]=Kn>>>8&255,St[2]=Kn>>>16&255,St[3]=Kn>>>24&255,St[4]=mr>>>0&255,St[5]=mr>>>8&255,St[6]=mr>>>16&255,St[7]=mr>>>24&255,St[8]=sr>>>0&255,St[9]=sr>>>8&255,St[10]=sr>>>16&255,St[11]=sr>>>24&255,St[12]=Ir>>>0&255,St[13]=Ir>>>8&255,St[14]=Ir>>>16&255,St[15]=Ir>>>24&255,St[16]=Pn>>>0&255,St[17]=Pn>>>8&255,St[18]=Pn>>>16&255,St[19]=Pn>>>24&255,St[20]=Hn>>>0&255,St[21]=Hn>>>8&255,St[22]=Hn>>>16&255,St[23]=Hn>>>24&255,St[24]=hr>>>0&255,St[25]=hr>>>8&255,St[26]=hr>>>16&255,St[27]=hr>>>24&255,St[28]=lr>>>0&255,St[29]=lr>>>8&255,St[30]=lr>>>16&255,St[31]=lr>>>24&255}function st(St,Ft,$t,mt){ct(St,Ft,$t,mt)}function Ct(St,Ft,$t,mt){gt(St,Ft,$t,mt)}var xt=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function wt(St,Ft,$t,mt,Dt,Xt,It){var Nt=new Uint8Array(16),Rt=new Uint8Array(64),Wt,Pt;for(Pt=0;Pt<16;Pt++)Nt[Pt]=0;for(Pt=0;Pt<8;Pt++)Nt[Pt]=Xt[Pt];for(;Dt>=64;){for(st(Rt,Nt,It,xt),Pt=0;Pt<64;Pt++)St[Ft+Pt]=$t[mt+Pt]^Rt[Pt];for(Wt=1,Pt=8;Pt<16;Pt++)Wt=Wt+(Nt[Pt]&255)|0,Nt[Pt]=Wt&255,Wt>>>=8;Dt-=64,Ft+=64,mt+=64}if(Dt>0)for(st(Rt,Nt,It,xt),Pt=0;Pt=64;){for(st(It,Xt,Dt,xt),Rt=0;Rt<64;Rt++)St[Ft+Rt]=It[Rt];for(Nt=1,Rt=8;Rt<16;Rt++)Nt=Nt+(Xt[Rt]&255)|0,Xt[Rt]=Nt&255,Nt>>>=8;$t-=64,Ft+=64}if($t>0)for(st(It,Xt,Dt,xt),Rt=0;Rt<$t;Rt++)St[Ft+Rt]=It[Rt];return 0}function kt(St,Ft,$t,mt,Dt){var Xt=new Uint8Array(32);Ct(Xt,mt,Dt,xt);for(var It=new Uint8Array(8),Nt=0;Nt<8;Nt++)It[Nt]=mt[Nt+16];return Mt(St,Ft,$t,It,Xt)}function _t(St,Ft,$t,mt,Dt,Xt,It){var Nt=new Uint8Array(32);Ct(Nt,Xt,It,xt);for(var Rt=new Uint8Array(8),Wt=0;Wt<8;Wt++)Rt[Wt]=Xt[Wt+16];return wt(St,Ft,$t,mt,Dt,Rt,Nt)}var Tt=function(St){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var Ft,$t,mt,Dt,Xt,It,Nt,Rt;Ft=St[0]&255|(St[1]&255)<<8,this.r[0]=Ft&8191,$t=St[2]&255|(St[3]&255)<<8,this.r[1]=(Ft>>>13|$t<<3)&8191,mt=St[4]&255|(St[5]&255)<<8,this.r[2]=($t>>>10|mt<<6)&7939,Dt=St[6]&255|(St[7]&255)<<8,this.r[3]=(mt>>>7|Dt<<9)&8191,Xt=St[8]&255|(St[9]&255)<<8,this.r[4]=(Dt>>>4|Xt<<12)&255,this.r[5]=Xt>>>1&8190,It=St[10]&255|(St[11]&255)<<8,this.r[6]=(Xt>>>14|It<<2)&8191,Nt=St[12]&255|(St[13]&255)<<8,this.r[7]=(It>>>11|Nt<<5)&8065,Rt=St[14]&255|(St[15]&255)<<8,this.r[8]=(Nt>>>8|Rt<<8)&8191,this.r[9]=Rt>>>5&127,this.pad[0]=St[16]&255|(St[17]&255)<<8,this.pad[1]=St[18]&255|(St[19]&255)<<8,this.pad[2]=St[20]&255|(St[21]&255)<<8,this.pad[3]=St[22]&255|(St[23]&255)<<8,this.pad[4]=St[24]&255|(St[25]&255)<<8,this.pad[5]=St[26]&255|(St[27]&255)<<8,this.pad[6]=St[28]&255|(St[29]&255)<<8,this.pad[7]=St[30]&255|(St[31]&255)<<8};Tt.prototype.blocks=function(St,Ft,$t){for(var mt=this.fin?0:2048,Dt,Xt,It,Nt,Rt,Wt,Pt,hn,un,tn,Gt,xn,Gn,Jn,er,ir,Kn,nr,ur,rr=this.h[0],yr=this.h[1],mr=this.h[2],Pn=this.h[3],Hn=this.h[4],hr=this.h[5],lr=this.h[6],sr=this.h[7],dr=this.h[8],Ar=this.h[9],Mr=this.r[0],jr=this.r[1],Ir=this.r[2],pn=this.r[3],Lr=this.r[4],Dr=this.r[5],Fr=this.r[6],Pr=this.r[7],$r=this.r[8],Wr=this.r[9];$t>=16;)Dt=St[Ft+0]&255|(St[Ft+1]&255)<<8,rr+=Dt&8191,Xt=St[Ft+2]&255|(St[Ft+3]&255)<<8,yr+=(Dt>>>13|Xt<<3)&8191,It=St[Ft+4]&255|(St[Ft+5]&255)<<8,mr+=(Xt>>>10|It<<6)&8191,Nt=St[Ft+6]&255|(St[Ft+7]&255)<<8,Pn+=(It>>>7|Nt<<9)&8191,Rt=St[Ft+8]&255|(St[Ft+9]&255)<<8,Hn+=(Nt>>>4|Rt<<12)&8191,hr+=Rt>>>1&8191,Wt=St[Ft+10]&255|(St[Ft+11]&255)<<8,lr+=(Rt>>>14|Wt<<2)&8191,Pt=St[Ft+12]&255|(St[Ft+13]&255)<<8,sr+=(Wt>>>11|Pt<<5)&8191,hn=St[Ft+14]&255|(St[Ft+15]&255)<<8,dr+=(Pt>>>8|hn<<8)&8191,Ar+=hn>>>5|mt,un=0,tn=un,tn+=rr*Mr,tn+=yr*(5*Wr),tn+=mr*(5*$r),tn+=Pn*(5*Pr),tn+=Hn*(5*Fr),un=tn>>>13,tn&=8191,tn+=hr*(5*Dr),tn+=lr*(5*Lr),tn+=sr*(5*pn),tn+=dr*(5*Ir),tn+=Ar*(5*jr),un+=tn>>>13,tn&=8191,Gt=un,Gt+=rr*jr,Gt+=yr*Mr,Gt+=mr*(5*Wr),Gt+=Pn*(5*$r),Gt+=Hn*(5*Pr),un=Gt>>>13,Gt&=8191,Gt+=hr*(5*Fr),Gt+=lr*(5*Dr),Gt+=sr*(5*Lr),Gt+=dr*(5*pn),Gt+=Ar*(5*Ir),un+=Gt>>>13,Gt&=8191,xn=un,xn+=rr*Ir,xn+=yr*jr,xn+=mr*Mr,xn+=Pn*(5*Wr),xn+=Hn*(5*$r),un=xn>>>13,xn&=8191,xn+=hr*(5*Pr),xn+=lr*(5*Fr),xn+=sr*(5*Dr),xn+=dr*(5*Lr),xn+=Ar*(5*pn),un+=xn>>>13,xn&=8191,Gn=un,Gn+=rr*pn,Gn+=yr*Ir,Gn+=mr*jr,Gn+=Pn*Mr,Gn+=Hn*(5*Wr),un=Gn>>>13,Gn&=8191,Gn+=hr*(5*$r),Gn+=lr*(5*Pr),Gn+=sr*(5*Fr),Gn+=dr*(5*Dr),Gn+=Ar*(5*Lr),un+=Gn>>>13,Gn&=8191,Jn=un,Jn+=rr*Lr,Jn+=yr*pn,Jn+=mr*Ir,Jn+=Pn*jr,Jn+=Hn*Mr,un=Jn>>>13,Jn&=8191,Jn+=hr*(5*Wr),Jn+=lr*(5*$r),Jn+=sr*(5*Pr),Jn+=dr*(5*Fr),Jn+=Ar*(5*Dr),un+=Jn>>>13,Jn&=8191,er=un,er+=rr*Dr,er+=yr*Lr,er+=mr*pn,er+=Pn*Ir,er+=Hn*jr,un=er>>>13,er&=8191,er+=hr*Mr,er+=lr*(5*Wr),er+=sr*(5*$r),er+=dr*(5*Pr),er+=Ar*(5*Fr),un+=er>>>13,er&=8191,ir=un,ir+=rr*Fr,ir+=yr*Dr,ir+=mr*Lr,ir+=Pn*pn,ir+=Hn*Ir,un=ir>>>13,ir&=8191,ir+=hr*jr,ir+=lr*Mr,ir+=sr*(5*Wr),ir+=dr*(5*$r),ir+=Ar*(5*Pr),un+=ir>>>13,ir&=8191,Kn=un,Kn+=rr*Pr,Kn+=yr*Fr,Kn+=mr*Dr,Kn+=Pn*Lr,Kn+=Hn*pn,un=Kn>>>13,Kn&=8191,Kn+=hr*Ir,Kn+=lr*jr,Kn+=sr*Mr,Kn+=dr*(5*Wr),Kn+=Ar*(5*$r),un+=Kn>>>13,Kn&=8191,nr=un,nr+=rr*$r,nr+=yr*Pr,nr+=mr*Fr,nr+=Pn*Dr,nr+=Hn*Lr,un=nr>>>13,nr&=8191,nr+=hr*pn,nr+=lr*Ir,nr+=sr*jr,nr+=dr*Mr,nr+=Ar*(5*Wr),un+=nr>>>13,nr&=8191,ur=un,ur+=rr*Wr,ur+=yr*$r,ur+=mr*Pr,ur+=Pn*Fr,ur+=Hn*Dr,un=ur>>>13,ur&=8191,ur+=hr*Lr,ur+=lr*pn,ur+=sr*Ir,ur+=dr*jr,ur+=Ar*Mr,un+=ur>>>13,ur&=8191,un=(un<<2)+un|0,un=un+tn|0,tn=un&8191,un=un>>>13,Gt+=un,rr=tn,yr=Gt,mr=xn,Pn=Gn,Hn=Jn,hr=er,lr=ir,sr=Kn,dr=nr,Ar=ur,Ft+=16,$t-=16;this.h[0]=rr,this.h[1]=yr,this.h[2]=mr,this.h[3]=Pn,this.h[4]=Hn,this.h[5]=hr,this.h[6]=lr,this.h[7]=sr,this.h[8]=dr,this.h[9]=Ar},Tt.prototype.finish=function(St,Ft){var $t=new Uint16Array(10),mt,Dt,Xt,It;if(this.leftover){for(It=this.leftover,this.buffer[It++]=1;It<16;It++)this.buffer[It]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(mt=this.h[1]>>>13,this.h[1]&=8191,It=2;It<10;It++)this.h[It]+=mt,mt=this.h[It]>>>13,this.h[It]&=8191;for(this.h[0]+=mt*5,mt=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=mt,mt=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=mt,$t[0]=this.h[0]+5,mt=$t[0]>>>13,$t[0]&=8191,It=1;It<10;It++)$t[It]=this.h[It]+mt,mt=$t[It]>>>13,$t[It]&=8191;for($t[9]-=8192,Dt=(mt^1)-1,It=0;It<10;It++)$t[It]&=Dt;for(Dt=~Dt,It=0;It<10;It++)this.h[It]=this.h[It]&Dt|$t[It];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,Xt=this.h[0]+this.pad[0],this.h[0]=Xt&65535,It=1;It<8;It++)Xt=(this.h[It]+this.pad[It]|0)+(Xt>>>16)|0,this.h[It]=Xt&65535;St[Ft+0]=this.h[0]>>>0&255,St[Ft+1]=this.h[0]>>>8&255,St[Ft+2]=this.h[1]>>>0&255,St[Ft+3]=this.h[1]>>>8&255,St[Ft+4]=this.h[2]>>>0&255,St[Ft+5]=this.h[2]>>>8&255,St[Ft+6]=this.h[3]>>>0&255,St[Ft+7]=this.h[3]>>>8&255,St[Ft+8]=this.h[4]>>>0&255,St[Ft+9]=this.h[4]>>>8&255,St[Ft+10]=this.h[5]>>>0&255,St[Ft+11]=this.h[5]>>>8&255,St[Ft+12]=this.h[6]>>>0&255,St[Ft+13]=this.h[6]>>>8&255,St[Ft+14]=this.h[7]>>>0&255,St[Ft+15]=this.h[7]>>>8&255},Tt.prototype.update=function(St,Ft,$t){var mt,Dt;if(this.leftover){for(Dt=16-this.leftover,Dt>$t&&(Dt=$t),mt=0;mt=16&&(Dt=$t-$t%16,this.blocks(St,Ft,Dt),Ft+=Dt,$t-=Dt),$t){for(mt=0;mt<$t;mt++)this.buffer[this.leftover+mt]=St[Ft+mt];this.leftover+=$t}};function At(St,Ft,$t,mt,Dt,Xt){var It=new Tt(Xt);return It.update($t,mt,Dt),It.finish(St,Ft),0}function Et(St,Ft,$t,mt,Dt,Xt){var It=new Uint8Array(16);return At(It,0,$t,mt,Dt,Xt),ft(St,Ft,It,0)}function Ot(St,Ft,$t,mt,Dt){var Xt;if($t<32)return-1;for(_t(St,0,Ft,0,$t,mt,Dt),At(St,16,St,32,$t-32,St),Xt=0;Xt<16;Xt++)St[Xt]=0;return 0}function Lt(St,Ft,$t,mt,Dt){var Xt,It=new Uint8Array(32);if($t<32||(kt(It,0,32,mt,Dt),Et(Ft,16,Ft,32,$t-32,It)!==0))return-1;for(_t(St,0,Ft,0,$t,mt,Dt),Xt=0;Xt<32;Xt++)St[Xt]=0;return 0}function Bt(St,Ft){var $t;for($t=0;$t<16;$t++)St[$t]=Ft[$t]|0}function Zt(St){var Ft,$t,mt=1;for(Ft=0;Ft<16;Ft++)$t=St[Ft]+mt+65535,mt=Math.floor($t/65536),St[Ft]=$t-mt*65536;St[0]+=mt-1+37*(mt-1)}function rn(St,Ft,$t){for(var mt,Dt=~($t-1),Xt=0;Xt<16;Xt++)mt=Dt&(St[Xt]^Ft[Xt]),St[Xt]^=mt,Ft[Xt]^=mt}function nn(St,Ft){var $t,mt,Dt,Xt=d(),It=d();for($t=0;$t<16;$t++)It[$t]=Ft[$t];for(Zt(It),Zt(It),Zt(It),mt=0;mt<2;mt++){for(Xt[0]=It[0]-65517,$t=1;$t<15;$t++)Xt[$t]=It[$t]-65535-(Xt[$t-1]>>16&1),Xt[$t-1]&=65535;Xt[15]=It[15]-32767-(Xt[14]>>16&1),Dt=Xt[15]>>16&1,Xt[14]&=65535,rn(It,Xt,1-Dt)}for($t=0;$t<16;$t++)St[2*$t]=It[$t]&255,St[2*$t+1]=It[$t]>>8}function Qt(St,Ft){var $t=new Uint8Array(32),mt=new Uint8Array(32);return nn($t,St),nn(mt,Ft),lt($t,0,mt,0)}function Vt(St){var Ft=new Uint8Array(32);return nn(Ft,St),Ft[0]&1}function fn(St,Ft){var $t;for($t=0;$t<16;$t++)St[$t]=Ft[2*$t]+(Ft[2*$t+1]<<8);St[15]&=32767}function In(St,Ft,$t){for(var mt=0;mt<16;mt++)St[mt]=Ft[mt]+$t[mt]}function On(St,Ft,$t){for(var mt=0;mt<16;mt++)St[mt]=Ft[mt]-$t[mt]}function _n(St,Ft,$t){var mt,Dt,Xt=0,It=0,Nt=0,Rt=0,Wt=0,Pt=0,hn=0,un=0,tn=0,Gt=0,xn=0,Gn=0,Jn=0,er=0,ir=0,Kn=0,nr=0,ur=0,rr=0,yr=0,mr=0,Pn=0,Hn=0,hr=0,lr=0,sr=0,dr=0,Ar=0,Mr=0,jr=0,Ir=0,pn=$t[0],Lr=$t[1],Dr=$t[2],Fr=$t[3],Pr=$t[4],$r=$t[5],Wr=$t[6],ro=$t[7],qr=$t[8],eo=$t[9],to=$t[10],no=$t[11],io=$t[12],co=$t[13],so=$t[14],fo=$t[15];mt=Ft[0],Xt+=mt*pn,It+=mt*Lr,Nt+=mt*Dr,Rt+=mt*Fr,Wt+=mt*Pr,Pt+=mt*$r,hn+=mt*Wr,un+=mt*ro,tn+=mt*qr,Gt+=mt*eo,xn+=mt*to,Gn+=mt*no,Jn+=mt*io,er+=mt*co,ir+=mt*so,Kn+=mt*fo,mt=Ft[1],It+=mt*pn,Nt+=mt*Lr,Rt+=mt*Dr,Wt+=mt*Fr,Pt+=mt*Pr,hn+=mt*$r,un+=mt*Wr,tn+=mt*ro,Gt+=mt*qr,xn+=mt*eo,Gn+=mt*to,Jn+=mt*no,er+=mt*io,ir+=mt*co,Kn+=mt*so,nr+=mt*fo,mt=Ft[2],Nt+=mt*pn,Rt+=mt*Lr,Wt+=mt*Dr,Pt+=mt*Fr,hn+=mt*Pr,un+=mt*$r,tn+=mt*Wr,Gt+=mt*ro,xn+=mt*qr,Gn+=mt*eo,Jn+=mt*to,er+=mt*no,ir+=mt*io,Kn+=mt*co,nr+=mt*so,ur+=mt*fo,mt=Ft[3],Rt+=mt*pn,Wt+=mt*Lr,Pt+=mt*Dr,hn+=mt*Fr,un+=mt*Pr,tn+=mt*$r,Gt+=mt*Wr,xn+=mt*ro,Gn+=mt*qr,Jn+=mt*eo,er+=mt*to,ir+=mt*no,Kn+=mt*io,nr+=mt*co,ur+=mt*so,rr+=mt*fo,mt=Ft[4],Wt+=mt*pn,Pt+=mt*Lr,hn+=mt*Dr,un+=mt*Fr,tn+=mt*Pr,Gt+=mt*$r,xn+=mt*Wr,Gn+=mt*ro,Jn+=mt*qr,er+=mt*eo,ir+=mt*to,Kn+=mt*no,nr+=mt*io,ur+=mt*co,rr+=mt*so,yr+=mt*fo,mt=Ft[5],Pt+=mt*pn,hn+=mt*Lr,un+=mt*Dr,tn+=mt*Fr,Gt+=mt*Pr,xn+=mt*$r,Gn+=mt*Wr,Jn+=mt*ro,er+=mt*qr,ir+=mt*eo,Kn+=mt*to,nr+=mt*no,ur+=mt*io,rr+=mt*co,yr+=mt*so,mr+=mt*fo,mt=Ft[6],hn+=mt*pn,un+=mt*Lr,tn+=mt*Dr,Gt+=mt*Fr,xn+=mt*Pr,Gn+=mt*$r,Jn+=mt*Wr,er+=mt*ro,ir+=mt*qr,Kn+=mt*eo,nr+=mt*to,ur+=mt*no,rr+=mt*io,yr+=mt*co,mr+=mt*so,Pn+=mt*fo,mt=Ft[7],un+=mt*pn,tn+=mt*Lr,Gt+=mt*Dr,xn+=mt*Fr,Gn+=mt*Pr,Jn+=mt*$r,er+=mt*Wr,ir+=mt*ro,Kn+=mt*qr,nr+=mt*eo,ur+=mt*to,rr+=mt*no,yr+=mt*io,mr+=mt*co,Pn+=mt*so,Hn+=mt*fo,mt=Ft[8],tn+=mt*pn,Gt+=mt*Lr,xn+=mt*Dr,Gn+=mt*Fr,Jn+=mt*Pr,er+=mt*$r,ir+=mt*Wr,Kn+=mt*ro,nr+=mt*qr,ur+=mt*eo,rr+=mt*to,yr+=mt*no,mr+=mt*io,Pn+=mt*co,Hn+=mt*so,hr+=mt*fo,mt=Ft[9],Gt+=mt*pn,xn+=mt*Lr,Gn+=mt*Dr,Jn+=mt*Fr,er+=mt*Pr,ir+=mt*$r,Kn+=mt*Wr,nr+=mt*ro,ur+=mt*qr,rr+=mt*eo,yr+=mt*to,mr+=mt*no,Pn+=mt*io,Hn+=mt*co,hr+=mt*so,lr+=mt*fo,mt=Ft[10],xn+=mt*pn,Gn+=mt*Lr,Jn+=mt*Dr,er+=mt*Fr,ir+=mt*Pr,Kn+=mt*$r,nr+=mt*Wr,ur+=mt*ro,rr+=mt*qr,yr+=mt*eo,mr+=mt*to,Pn+=mt*no,Hn+=mt*io,hr+=mt*co,lr+=mt*so,sr+=mt*fo,mt=Ft[11],Gn+=mt*pn,Jn+=mt*Lr,er+=mt*Dr,ir+=mt*Fr,Kn+=mt*Pr,nr+=mt*$r,ur+=mt*Wr,rr+=mt*ro,yr+=mt*qr,mr+=mt*eo,Pn+=mt*to,Hn+=mt*no,hr+=mt*io,lr+=mt*co,sr+=mt*so,dr+=mt*fo,mt=Ft[12],Jn+=mt*pn,er+=mt*Lr,ir+=mt*Dr,Kn+=mt*Fr,nr+=mt*Pr,ur+=mt*$r,rr+=mt*Wr,yr+=mt*ro,mr+=mt*qr,Pn+=mt*eo,Hn+=mt*to,hr+=mt*no,lr+=mt*io,sr+=mt*co,dr+=mt*so,Ar+=mt*fo,mt=Ft[13],er+=mt*pn,ir+=mt*Lr,Kn+=mt*Dr,nr+=mt*Fr,ur+=mt*Pr,rr+=mt*$r,yr+=mt*Wr,mr+=mt*ro,Pn+=mt*qr,Hn+=mt*eo,hr+=mt*to,lr+=mt*no,sr+=mt*io,dr+=mt*co,Ar+=mt*so,Mr+=mt*fo,mt=Ft[14],ir+=mt*pn,Kn+=mt*Lr,nr+=mt*Dr,ur+=mt*Fr,rr+=mt*Pr,yr+=mt*$r,mr+=mt*Wr,Pn+=mt*ro,Hn+=mt*qr,hr+=mt*eo,lr+=mt*to,sr+=mt*no,dr+=mt*io,Ar+=mt*co,Mr+=mt*so,jr+=mt*fo,mt=Ft[15],Kn+=mt*pn,nr+=mt*Lr,ur+=mt*Dr,rr+=mt*Fr,yr+=mt*Pr,mr+=mt*$r,Pn+=mt*Wr,Hn+=mt*ro,hr+=mt*qr,lr+=mt*eo,sr+=mt*to,dr+=mt*no,Ar+=mt*io,Mr+=mt*co,jr+=mt*so,Ir+=mt*fo,Xt+=38*nr,It+=38*ur,Nt+=38*rr,Rt+=38*yr,Wt+=38*mr,Pt+=38*Pn,hn+=38*Hn,un+=38*hr,tn+=38*lr,Gt+=38*sr,xn+=38*dr,Gn+=38*Ar,Jn+=38*Mr,er+=38*jr,ir+=38*Ir,Dt=1,mt=Xt+Dt+65535,Dt=Math.floor(mt/65536),Xt=mt-Dt*65536,mt=It+Dt+65535,Dt=Math.floor(mt/65536),It=mt-Dt*65536,mt=Nt+Dt+65535,Dt=Math.floor(mt/65536),Nt=mt-Dt*65536,mt=Rt+Dt+65535,Dt=Math.floor(mt/65536),Rt=mt-Dt*65536,mt=Wt+Dt+65535,Dt=Math.floor(mt/65536),Wt=mt-Dt*65536,mt=Pt+Dt+65535,Dt=Math.floor(mt/65536),Pt=mt-Dt*65536,mt=hn+Dt+65535,Dt=Math.floor(mt/65536),hn=mt-Dt*65536,mt=un+Dt+65535,Dt=Math.floor(mt/65536),un=mt-Dt*65536,mt=tn+Dt+65535,Dt=Math.floor(mt/65536),tn=mt-Dt*65536,mt=Gt+Dt+65535,Dt=Math.floor(mt/65536),Gt=mt-Dt*65536,mt=xn+Dt+65535,Dt=Math.floor(mt/65536),xn=mt-Dt*65536,mt=Gn+Dt+65535,Dt=Math.floor(mt/65536),Gn=mt-Dt*65536,mt=Jn+Dt+65535,Dt=Math.floor(mt/65536),Jn=mt-Dt*65536,mt=er+Dt+65535,Dt=Math.floor(mt/65536),er=mt-Dt*65536,mt=ir+Dt+65535,Dt=Math.floor(mt/65536),ir=mt-Dt*65536,mt=Kn+Dt+65535,Dt=Math.floor(mt/65536),Kn=mt-Dt*65536,Xt+=Dt-1+37*(Dt-1),Dt=1,mt=Xt+Dt+65535,Dt=Math.floor(mt/65536),Xt=mt-Dt*65536,mt=It+Dt+65535,Dt=Math.floor(mt/65536),It=mt-Dt*65536,mt=Nt+Dt+65535,Dt=Math.floor(mt/65536),Nt=mt-Dt*65536,mt=Rt+Dt+65535,Dt=Math.floor(mt/65536),Rt=mt-Dt*65536,mt=Wt+Dt+65535,Dt=Math.floor(mt/65536),Wt=mt-Dt*65536,mt=Pt+Dt+65535,Dt=Math.floor(mt/65536),Pt=mt-Dt*65536,mt=hn+Dt+65535,Dt=Math.floor(mt/65536),hn=mt-Dt*65536,mt=un+Dt+65535,Dt=Math.floor(mt/65536),un=mt-Dt*65536,mt=tn+Dt+65535,Dt=Math.floor(mt/65536),tn=mt-Dt*65536,mt=Gt+Dt+65535,Dt=Math.floor(mt/65536),Gt=mt-Dt*65536,mt=xn+Dt+65535,Dt=Math.floor(mt/65536),xn=mt-Dt*65536,mt=Gn+Dt+65535,Dt=Math.floor(mt/65536),Gn=mt-Dt*65536,mt=Jn+Dt+65535,Dt=Math.floor(mt/65536),Jn=mt-Dt*65536,mt=er+Dt+65535,Dt=Math.floor(mt/65536),er=mt-Dt*65536,mt=ir+Dt+65535,Dt=Math.floor(mt/65536),ir=mt-Dt*65536,mt=Kn+Dt+65535,Dt=Math.floor(mt/65536),Kn=mt-Dt*65536,Xt+=Dt-1+37*(Dt-1),St[0]=Xt,St[1]=It,St[2]=Nt,St[3]=Rt,St[4]=Wt,St[5]=Pt,St[6]=hn,St[7]=un,St[8]=tn,St[9]=Gt,St[10]=xn,St[11]=Gn,St[12]=Jn,St[13]=er,St[14]=ir,St[15]=Kn}function Bn(St,Ft){_n(St,Ft,Ft)}function Yn(St,Ft){var $t=d(),mt;for(mt=0;mt<16;mt++)$t[mt]=Ft[mt];for(mt=253;mt>=0;mt--)Bn($t,$t),mt!==2&&mt!==4&&_n($t,$t,Ft);for(mt=0;mt<16;mt++)St[mt]=$t[mt]}function dn(St,Ft){var $t=d(),mt;for(mt=0;mt<16;mt++)$t[mt]=Ft[mt];for(mt=250;mt>=0;mt--)Bn($t,$t),mt!==1&&_n($t,$t,Ft);for(mt=0;mt<16;mt++)St[mt]=$t[mt]}function An(St,Ft,$t){var mt=new Uint8Array(32),Dt=new Float64Array(80),Xt,It,Nt=d(),Rt=d(),Wt=d(),Pt=d(),hn=d(),un=d();for(It=0;It<31;It++)mt[It]=Ft[It];for(mt[31]=Ft[31]&127|64,mt[0]&=248,fn(Dt,$t),It=0;It<16;It++)Rt[It]=Dt[It],Pt[It]=Nt[It]=Wt[It]=0;for(Nt[0]=Pt[0]=1,It=254;It>=0;--It)Xt=mt[It>>>3]>>>(It&7)&1,rn(Nt,Rt,Xt),rn(Wt,Pt,Xt),In(hn,Nt,Wt),On(Nt,Nt,Wt),In(Wt,Rt,Pt),On(Rt,Rt,Pt),Bn(Pt,hn),Bn(un,Nt),_n(Nt,Wt,Nt),_n(Wt,Rt,hn),In(hn,Nt,Wt),On(Nt,Nt,Wt),Bn(Rt,Nt),On(Wt,Pt,un),_n(Nt,Wt,rt),In(Nt,Nt,Pt),_n(Wt,Wt,Nt),_n(Nt,Pt,un),_n(Pt,Rt,Dt),Bn(Rt,hn),rn(Nt,Rt,Xt),rn(Wt,Pt,Xt);for(It=0;It<16;It++)Dt[It+16]=Nt[It],Dt[It+32]=Wt[It],Dt[It+48]=Rt[It],Dt[It+64]=Pt[It];var tn=Dt.subarray(32),Gt=Dt.subarray(16);return Yn(tn,tn),_n(Gt,Gt,tn),nn(St,Gt),0}function mn(St,Ft){return An(St,Ft,$)}function jn(St,Ft){return k(Ft,32),mn(St,Ft)}function kn(St,Ft,$t){var mt=new Uint8Array(32);return An(mt,$t,Ft),Ct(St,j,mt,xt)}var vn=Ot,En=Lt;function gn(St,Ft,$t,mt,Dt,Xt){var It=new Uint8Array(32);return kn(It,Dt,Xt),vn(St,Ft,$t,mt,It)}function Ln(St,Ft,$t,mt,Dt,Xt){var It=new Uint8Array(32);return kn(It,Dt,Xt),En(St,Ft,$t,mt,It)}var Fn=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Un(St,Ft,$t,mt){for(var Dt=new Int32Array(16),Xt=new Int32Array(16),It,Nt,Rt,Wt,Pt,hn,un,tn,Gt,xn,Gn,Jn,er,ir,Kn,nr,ur,rr,yr,mr,Pn,Hn,hr,lr,sr,dr,Ar=St[0],Mr=St[1],jr=St[2],Ir=St[3],pn=St[4],Lr=St[5],Dr=St[6],Fr=St[7],Pr=Ft[0],$r=Ft[1],Wr=Ft[2],ro=Ft[3],qr=Ft[4],eo=Ft[5],to=Ft[6],no=Ft[7],io=0;mt>=128;){for(yr=0;yr<16;yr++)mr=8*yr+io,Dt[yr]=$t[mr+0]<<24|$t[mr+1]<<16|$t[mr+2]<<8|$t[mr+3],Xt[yr]=$t[mr+4]<<24|$t[mr+5]<<16|$t[mr+6]<<8|$t[mr+7];for(yr=0;yr<80;yr++)if(It=Ar,Nt=Mr,Rt=jr,Wt=Ir,Pt=pn,hn=Lr,un=Dr,tn=Fr,Gt=Pr,xn=$r,Gn=Wr,Jn=ro,er=qr,ir=eo,Kn=to,nr=no,Pn=Fr,Hn=no,hr=Hn&65535,lr=Hn>>>16,sr=Pn&65535,dr=Pn>>>16,Pn=(pn>>>14|qr<<32-14)^(pn>>>18|qr<<32-18)^(qr>>>41-32|pn<<32-(41-32)),Hn=(qr>>>14|pn<<32-14)^(qr>>>18|pn<<32-18)^(pn>>>41-32|qr<<32-(41-32)),hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,Pn=pn&Lr^~pn&Dr,Hn=qr&eo^~qr&to,hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,Pn=Fn[yr*2],Hn=Fn[yr*2+1],hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,Pn=Dt[yr%16],Hn=Xt[yr%16],hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,ur=sr&65535|dr<<16,rr=hr&65535|lr<<16,Pn=ur,Hn=rr,hr=Hn&65535,lr=Hn>>>16,sr=Pn&65535,dr=Pn>>>16,Pn=(Ar>>>28|Pr<<32-28)^(Pr>>>34-32|Ar<<32-(34-32))^(Pr>>>39-32|Ar<<32-(39-32)),Hn=(Pr>>>28|Ar<<32-28)^(Ar>>>34-32|Pr<<32-(34-32))^(Ar>>>39-32|Pr<<32-(39-32)),hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,Pn=Ar&Mr^Ar&jr^Mr&jr,Hn=Pr&$r^Pr&Wr^$r&Wr,hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,tn=sr&65535|dr<<16,nr=hr&65535|lr<<16,Pn=Wt,Hn=Jn,hr=Hn&65535,lr=Hn>>>16,sr=Pn&65535,dr=Pn>>>16,Pn=ur,Hn=rr,hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,Wt=sr&65535|dr<<16,Jn=hr&65535|lr<<16,Mr=It,jr=Nt,Ir=Rt,pn=Wt,Lr=Pt,Dr=hn,Fr=un,Ar=tn,$r=Gt,Wr=xn,ro=Gn,qr=Jn,eo=er,to=ir,no=Kn,Pr=nr,yr%16===15)for(mr=0;mr<16;mr++)Pn=Dt[mr],Hn=Xt[mr],hr=Hn&65535,lr=Hn>>>16,sr=Pn&65535,dr=Pn>>>16,Pn=Dt[(mr+9)%16],Hn=Xt[(mr+9)%16],hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,ur=Dt[(mr+1)%16],rr=Xt[(mr+1)%16],Pn=(ur>>>1|rr<<32-1)^(ur>>>8|rr<<32-8)^ur>>>7,Hn=(rr>>>1|ur<<32-1)^(rr>>>8|ur<<32-8)^(rr>>>7|ur<<32-7),hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,ur=Dt[(mr+14)%16],rr=Xt[(mr+14)%16],Pn=(ur>>>19|rr<<32-19)^(rr>>>61-32|ur<<32-(61-32))^ur>>>6,Hn=(rr>>>19|ur<<32-19)^(ur>>>61-32|rr<<32-(61-32))^(rr>>>6|ur<<32-6),hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,Dt[mr]=sr&65535|dr<<16,Xt[mr]=hr&65535|lr<<16;Pn=Ar,Hn=Pr,hr=Hn&65535,lr=Hn>>>16,sr=Pn&65535,dr=Pn>>>16,Pn=St[0],Hn=Ft[0],hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,St[0]=Ar=sr&65535|dr<<16,Ft[0]=Pr=hr&65535|lr<<16,Pn=Mr,Hn=$r,hr=Hn&65535,lr=Hn>>>16,sr=Pn&65535,dr=Pn>>>16,Pn=St[1],Hn=Ft[1],hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,St[1]=Mr=sr&65535|dr<<16,Ft[1]=$r=hr&65535|lr<<16,Pn=jr,Hn=Wr,hr=Hn&65535,lr=Hn>>>16,sr=Pn&65535,dr=Pn>>>16,Pn=St[2],Hn=Ft[2],hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,St[2]=jr=sr&65535|dr<<16,Ft[2]=Wr=hr&65535|lr<<16,Pn=Ir,Hn=ro,hr=Hn&65535,lr=Hn>>>16,sr=Pn&65535,dr=Pn>>>16,Pn=St[3],Hn=Ft[3],hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,St[3]=Ir=sr&65535|dr<<16,Ft[3]=ro=hr&65535|lr<<16,Pn=pn,Hn=qr,hr=Hn&65535,lr=Hn>>>16,sr=Pn&65535,dr=Pn>>>16,Pn=St[4],Hn=Ft[4],hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,St[4]=pn=sr&65535|dr<<16,Ft[4]=qr=hr&65535|lr<<16,Pn=Lr,Hn=eo,hr=Hn&65535,lr=Hn>>>16,sr=Pn&65535,dr=Pn>>>16,Pn=St[5],Hn=Ft[5],hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,St[5]=Lr=sr&65535|dr<<16,Ft[5]=eo=hr&65535|lr<<16,Pn=Dr,Hn=to,hr=Hn&65535,lr=Hn>>>16,sr=Pn&65535,dr=Pn>>>16,Pn=St[6],Hn=Ft[6],hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,St[6]=Dr=sr&65535|dr<<16,Ft[6]=to=hr&65535|lr<<16,Pn=Fr,Hn=no,hr=Hn&65535,lr=Hn>>>16,sr=Pn&65535,dr=Pn>>>16,Pn=St[7],Hn=Ft[7],hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,St[7]=Fr=sr&65535|dr<<16,Ft[7]=no=hr&65535|lr<<16,io+=128,mt-=128}return mt}function Mn(St,Ft,$t){var mt=new Int32Array(8),Dt=new Int32Array(8),Xt=new Uint8Array(256),It,Nt=$t;for(mt[0]=1779033703,mt[1]=3144134277,mt[2]=1013904242,mt[3]=2773480762,mt[4]=1359893119,mt[5]=2600822924,mt[6]=528734635,mt[7]=1541459225,Dt[0]=4089235720,Dt[1]=2227873595,Dt[2]=4271175723,Dt[3]=1595750129,Dt[4]=2917565137,Dt[5]=725511199,Dt[6]=4215389547,Dt[7]=327033209,Un(mt,Dt,Ft,$t),$t%=128,It=0;It<$t;It++)Xt[It]=Ft[Nt-$t+It];for(Xt[$t]=128,$t=256-128*($t<112?1:0),Xt[$t-9]=0,ut(Xt,$t-8,Nt/536870912|0,Nt<<3),Un(mt,Dt,Xt,$t),It=0;It<8;It++)ut(St,8*It,mt[It],Dt[It]);return 0}function zn(St,Ft){var $t=d(),mt=d(),Dt=d(),Xt=d(),It=d(),Nt=d(),Rt=d(),Wt=d(),Pt=d();On($t,St[1],St[0]),On(Pt,Ft[1],Ft[0]),_n($t,$t,Pt),In(mt,St[0],St[1]),In(Pt,Ft[0],Ft[1]),_n(mt,mt,Pt),_n(Dt,St[3],Ft[3]),_n(Dt,Dt,ot),_n(Xt,St[2],Ft[2]),In(Xt,Xt,Xt),On(It,mt,$t),On(Nt,Xt,Dt),In(Rt,Xt,Dt),In(Wt,mt,$t),_n(St[0],It,Nt),_n(St[1],Wt,Rt),_n(St[2],Rt,Nt),_n(St[3],It,Wt)}function wn(St,Ft,$t){var mt;for(mt=0;mt<4;mt++)rn(St[mt],Ft[mt],$t)}function Nn(St,Ft){var $t=d(),mt=d(),Dt=d();Yn(Dt,Ft[2]),_n($t,Ft[0],Dt),_n(mt,Ft[1],Dt),nn(St,mt),St[31]^=Vt($t)<<7}function Wn(St,Ft,$t){var mt,Dt;for(Bt(St[0],et),Bt(St[1],tt),Bt(St[2],tt),Bt(St[3],et),Dt=255;Dt>=0;--Dt)mt=$t[Dt/8|0]>>(Dt&7)&1,wn(St,Ft,mt),zn(Ft,St),zn(St,St),wn(St,Ft,mt)}function Vn(St,Ft){var $t=[d(),d(),d(),d()];Bt($t[0],at),Bt($t[1],it),Bt($t[2],tt),_n($t[3],at,it),Wn(St,$t,Ft)}function bn(St,Ft,$t){var mt=new Uint8Array(64),Dt=[d(),d(),d(),d()],Xt;for($t||k(Ft,32),Mn(mt,Ft,32),mt[0]&=248,mt[31]&=127,mt[31]|=64,Vn(Dt,mt),Nn(St,Dt),Xt=0;Xt<32;Xt++)Ft[Xt+32]=St[Xt];return 0}var Yt=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function bt(St,Ft){var $t,mt,Dt,Xt;for(mt=63;mt>=32;--mt){for($t=0,Dt=mt-32,Xt=mt-12;Dt>4)*Yt[Dt],$t=Ft[Dt]>>8,Ft[Dt]&=255;for(Dt=0;Dt<32;Dt++)Ft[Dt]-=$t*Yt[Dt];for(mt=0;mt<32;mt++)Ft[mt+1]+=Ft[mt]>>8,St[mt]=Ft[mt]&255}function pt(St){var Ft=new Float64Array(64),$t;for($t=0;$t<64;$t++)Ft[$t]=St[$t];for($t=0;$t<64;$t++)St[$t]=0;bt(St,Ft)}function yt(St,Ft,$t,mt){var Dt=new Uint8Array(64),Xt=new Uint8Array(64),It=new Uint8Array(64),Nt,Rt,Wt=new Float64Array(64),Pt=[d(),d(),d(),d()];Mn(Dt,mt,32),Dt[0]&=248,Dt[31]&=127,Dt[31]|=64;var hn=$t+64;for(Nt=0;Nt<$t;Nt++)St[64+Nt]=Ft[Nt];for(Nt=0;Nt<32;Nt++)St[32+Nt]=Dt[32+Nt];for(Mn(It,St.subarray(32),$t+32),pt(It),Vn(Pt,It),Nn(St,Pt),Nt=32;Nt<64;Nt++)St[Nt]=mt[Nt];for(Mn(Xt,St,$t+64),pt(Xt),Nt=0;Nt<64;Nt++)Wt[Nt]=0;for(Nt=0;Nt<32;Nt++)Wt[Nt]=It[Nt];for(Nt=0;Nt<32;Nt++)for(Rt=0;Rt<32;Rt++)Wt[Nt+Rt]+=Xt[Nt]*Dt[Rt];return bt(St.subarray(32),Wt),hn}function Ut(St,Ft){var $t=d(),mt=d(),Dt=d(),Xt=d(),It=d(),Nt=d(),Rt=d();return Bt(St[2],tt),fn(St[1],Ft),Bn(Dt,St[1]),_n(Xt,Dt,nt),On(Dt,Dt,St[2]),In(Xt,St[2],Xt),Bn(It,Xt),Bn(Nt,It),_n(Rt,Nt,It),_n($t,Rt,Dt),_n($t,$t,Xt),dn($t,$t),_n($t,$t,Dt),_n($t,$t,Xt),_n($t,$t,Xt),_n(St[0],$t,Xt),Bn(mt,St[0]),_n(mt,mt,Xt),Qt(mt,Dt)&&_n(St[0],St[0],dt),Bn(mt,St[0]),_n(mt,mt,Xt),Qt(mt,Dt)?-1:(Vt(St[0])===Ft[31]>>7&&On(St[0],et,St[0]),_n(St[3],St[0],St[1]),0)}function an(St,Ft,$t,mt){var Dt,Xt=new Uint8Array(32),It=new Uint8Array(64),Nt=[d(),d(),d(),d()],Rt=[d(),d(),d(),d()];if($t<64||Ut(Rt,mt))return-1;for(Dt=0;Dt<$t;Dt++)St[Dt]=Ft[Dt];for(Dt=0;Dt<32;Dt++)St[Dt+32]=mt[Dt];if(Mn(It,St,$t),pt(It),Wn(Nt,Rt,It),Vn(Rt,Ft.subarray(32)),zn(Nt,Rt),Nn(Xt,Nt),$t-=64,lt(Ft,0,Xt,0)){for(Dt=0;Dt<$t;Dt++)St[Dt]=0;return-1}for(Dt=0;Dt<$t;Dt++)St[Dt]=Ft[Dt+64];return $t}var sn=32,Sn=24,or=32,Rn=16,Xn=32,$n=32,ar=32,Qn=32,qn=32,fr=Sn,cr=or,pr=Rn,xr=64,kr=32,Tr=64,Br=32,Rr=64;_.lowlevel={crypto_core_hsalsa20:Ct,crypto_stream_xor:_t,crypto_stream:kt,crypto_stream_salsa20_xor:wt,crypto_stream_salsa20:Mt,crypto_onetimeauth:At,crypto_onetimeauth_verify:Et,crypto_verify_16:ft,crypto_verify_32:lt,crypto_secretbox:Ot,crypto_secretbox_open:Lt,crypto_scalarmult:An,crypto_scalarmult_base:mn,crypto_box_beforenm:kn,crypto_box_afternm:vn,crypto_box:gn,crypto_box_open:Ln,crypto_box_keypair:jn,crypto_hash:Mn,crypto_sign:yt,crypto_sign_keypair:bn,crypto_sign_open:an,crypto_secretbox_KEYBYTES:sn,crypto_secretbox_NONCEBYTES:Sn,crypto_secretbox_ZEROBYTES:or,crypto_secretbox_BOXZEROBYTES:Rn,crypto_scalarmult_BYTES:Xn,crypto_scalarmult_SCALARBYTES:$n,crypto_box_PUBLICKEYBYTES:ar,crypto_box_SECRETKEYBYTES:Qn,crypto_box_BEFORENMBYTES:qn,crypto_box_NONCEBYTES:fr,crypto_box_ZEROBYTES:cr,crypto_box_BOXZEROBYTES:pr,crypto_sign_BYTES:xr,crypto_sign_PUBLICKEYBYTES:kr,crypto_sign_SECRETKEYBYTES:Tr,crypto_sign_SEEDBYTES:Br,crypto_hash_BYTES:Rr,gf:d,D:nt,L:Yt,pack25519:nn,unpack25519:fn,M:_n,A:In,S:Bn,Z:On,pow2523:dn,add:zn,set25519:Bt,modL:bt,scalarmult:Wn,scalarbase:Vn};function Ur(St,Ft){if(St.length!==sn)throw new Error("bad key size");if(Ft.length!==Sn)throw new Error("bad nonce size")}function Qr(St,Ft){if(St.length!==ar)throw new Error("bad public key size");if(Ft.length!==Qn)throw new Error("bad secret key size")}function Zr(){for(var St=0;St=0},_.sign.keyPair=function(){var St=new Uint8Array(kr),Ft=new Uint8Array(Tr);return bn(St,Ft),{publicKey:St,secretKey:Ft}},_.sign.keyPair.fromSecretKey=function(St){if(Zr(St),St.length!==Tr)throw new Error("bad secret key size");for(var Ft=new Uint8Array(kr),$t=0;$t=b.length)throw new Error("Index is out of buffer");const d=b.slice(0,_),k=b.slice(_);return[d,k]}function toHexString(b){let _="";return b.forEach(d=>{_+=("0"+(d&255).toString(16)).slice(-2)}),_}function hexToByteArray(b){if(b.length%2!==0)throw new Error(`Cannot convert ${b} to bytesArray`);const _=new Uint8Array(b.length/2);for(let d=0;d{var j,$;if(!((j=_==null?void 0:_.signal)===null||j===void 0)&&j.aborted){k(new TonConnectError("Delay aborted"));return}const et=setTimeout(()=>d(),b);($=_==null?void 0:_.signal)===null||$===void 0||$.addEventListener("abort",()=>{clearTimeout(et),k(new TonConnectError("Delay aborted"))})})})}function createAbortController(b){const _=new AbortController;return b!=null&&b.aborted?_.abort():b==null||b.addEventListener("abort",()=>_.abort(),{once:!0}),_}function callForSuccess(b,_){var d,k;return __awaiter(this,void 0,void 0,function*(){const j=(d=_==null?void 0:_.attempts)!==null&&d!==void 0?d:10,$=(k=_==null?void 0:_.delayMs)!==null&&k!==void 0?k:200,et=createAbortController(_==null?void 0:_.signal);if(typeof b!="function")throw new TonConnectError(`Expected a function, got ${typeof b}`);let tt=0,rt;for(;tt__awaiter(this,void 0,void 0,function*(){if($=at??null,et==null||et.abort(),et=createAbortController(at),et.signal.aborted)throw new TonConnectError("Resource creation was aborted");k=it??null;const dt=b(et.signal,...it);j=dt;const ut=yield dt;if(j!==dt&&ut!==d)throw yield _(ut),new TonConnectError("Resource creation was aborted by a new resource creation");return d=ut,d});return{create:tt,current:()=>d??null,dispose:()=>__awaiter(this,void 0,void 0,function*(){try{const at=d;d=null;const it=j;j=null;try{et==null||et.abort()}catch{}yield Promise.allSettled([at?_(at):Promise.resolve(),it?_(yield it):Promise.resolve()])}catch{}}),recreate:at=>__awaiter(this,void 0,void 0,function*(){const it=d,dt=j,ut=k,ht=$;if(yield delay(at),it===d&&dt===j&&ut===k&&ht===$)return yield tt($,...ut??[]);throw new TonConnectError("Resource recreation was aborted by a new resource creation")})}}function timeout(b,_){const d=_==null?void 0:_.timeout,k=_==null?void 0:_.signal,j=createAbortController(k);return new Promise(($,et)=>{if(j.signal.aborted){et(new TonConnectError("Operation aborted"));return}let tt;typeof d<"u"&&(tt=setTimeout(()=>{j.abort(),et(new TonConnectError(`Timeout after ${d}ms`))},d)),j.signal.addEventListener("abort",()=>{clearTimeout(tt),et(new TonConnectError("Operation aborted"))},{once:!0});const rt={timeout:d,abort:j.signal};b($,et,rt).finally(()=>clearTimeout(tt))})}class BridgeGateway{constructor(_,d,k,j,$){this.bridgeUrl=d,this.sessionId=k,this.listener=j,this.errorsListener=$,this.ssePath="events",this.postPath="message",this.heartbeatMessage="heartbeat",this.defaultTtl=300,this.defaultReconnectDelay=2e3,this.defaultResendDelay=5e3,this.eventSource=createResource$1((et,tt)=>__awaiter(this,void 0,void 0,function*(){const rt={bridgeUrl:this.bridgeUrl,ssePath:this.ssePath,sessionId:this.sessionId,bridgeGatewayStorage:this.bridgeGatewayStorage,errorHandler:this.errorsHandler.bind(this),messageHandler:this.messagesHandler.bind(this),signal:et,openingDeadlineMS:tt};return yield createEventSource(rt)}),et=>__awaiter(this,void 0,void 0,function*(){et.close()})),this.bridgeGatewayStorage=new HttpBridgeGatewayStorage(_,d)}get isReady(){const _=this.eventSource.current();return(_==null?void 0:_.readyState)===EventSource.OPEN}get isClosed(){const _=this.eventSource.current();return(_==null?void 0:_.readyState)!==EventSource.OPEN}get isConnecting(){const _=this.eventSource.current();return(_==null?void 0:_.readyState)===EventSource.CONNECTING}registerSession(_){return __awaiter(this,void 0,void 0,function*(){yield this.eventSource.create(_==null?void 0:_.signal,_==null?void 0:_.openingDeadlineMS)})}send(_,d,k,j){var $;return __awaiter(this,void 0,void 0,function*(){const et={};typeof j=="number"?et.ttl=j:(et.ttl=j==null?void 0:j.ttl,et.signal=j==null?void 0:j.signal,et.attempts=j==null?void 0:j.attempts);const tt=new URL(addPathToUrl(this.bridgeUrl,this.postPath));tt.searchParams.append("client_id",this.sessionId),tt.searchParams.append("to",d),tt.searchParams.append("ttl",((et==null?void 0:et.ttl)||this.defaultTtl).toString()),tt.searchParams.append("topic",k);const rt=Base64.encode(_);yield callForSuccess(nt=>__awaiter(this,void 0,void 0,function*(){const ot=yield this.post(tt,rt,nt.signal);if(!ot.ok)throw new TonConnectError(`Bridge send failed, status ${ot.status}`)}),{attempts:($=et==null?void 0:et.attempts)!==null&&$!==void 0?$:Number.MAX_SAFE_INTEGER,delayMs:this.defaultResendDelay,signal:et==null?void 0:et.signal})})}pause(){this.eventSource.dispose().catch(_=>logError$1(`Bridge pause failed, ${_}`))}unPause(){return __awaiter(this,void 0,void 0,function*(){yield this.eventSource.recreate(0)})}close(){return __awaiter(this,void 0,void 0,function*(){yield this.eventSource.dispose().catch(_=>logError$1(`Bridge close failed, ${_}`))})}setListener(_){this.listener=_}setErrorsListener(_){this.errorsListener=_}post(_,d,k){return __awaiter(this,void 0,void 0,function*(){const j=yield fetch(_,{method:"post",body:d,signal:k});if(!j.ok)throw new TonConnectError(`Bridge send failed, status ${j.status}`);return j})}errorsHandler(_,d){return __awaiter(this,void 0,void 0,function*(){if(this.isConnecting)return _.close(),logDebug$1(`Bridge reconnecting, ${this.defaultReconnectDelay}ms delay`),yield this.eventSource.recreate(this.defaultReconnectDelay);if(this.isReady){try{this.errorsListener(d)}catch{}return}if(this.isClosed)return _.close(),logDebug$1(`Bridge reconnecting, ${this.defaultReconnectDelay}ms delay`),yield this.eventSource.recreate(this.defaultReconnectDelay);throw new TonConnectError("Bridge error, unknown state")})}messagesHandler(_){return __awaiter(this,void 0,void 0,function*(){if(_.data===this.heartbeatMessage||(yield this.bridgeGatewayStorage.storeLastEventId(_.lastEventId),this.isClosed))return;let d;try{d=JSON.parse(_.data)}catch(k){throw new TonConnectError(`Bridge message parse failed, message ${k.data}`)}this.listener(d)})}}function createEventSource(b){return __awaiter(this,void 0,void 0,function*(){return yield timeout((_,d,k)=>__awaiter(this,void 0,void 0,function*(){var j;const et=createAbortController(k.signal).signal;if(et.aborted){d(new TonConnectError("Bridge connection aborted"));return}const tt=new URL(addPathToUrl(b.bridgeUrl,b.ssePath));tt.searchParams.append("client_id",b.sessionId);const rt=yield b.bridgeGatewayStorage.getLastEventId();if(rt&&tt.searchParams.append("last_event_id",rt),et.aborted){d(new TonConnectError("Bridge connection aborted"));return}const nt=new EventSource(tt.toString());nt.onerror=ot=>__awaiter(this,void 0,void 0,function*(){if(et.aborted){nt.close(),d(new TonConnectError("Bridge connection aborted"));return}try{const at=yield b.errorHandler(nt,ot);at!==nt&&nt.close(),at&&at!==nt&&_(at)}catch(at){nt.close(),d(at)}}),nt.onopen=()=>{if(et.aborted){nt.close(),d(new TonConnectError("Bridge connection aborted"));return}_(nt)},nt.onmessage=ot=>{if(et.aborted){nt.close(),d(new TonConnectError("Bridge connection aborted"));return}b.messageHandler(ot)},(j=b.signal)===null||j===void 0||j.addEventListener("abort",()=>{nt.close(),d(new TonConnectError("Bridge connection aborted"))})}),{timeout:b.openingDeadlineMS,signal:b.signal})})}function isPendingConnectionHttp(b){return!("connectEvent"in b)}class BridgeConnectionStorage{constructor(_){this.storage=_,this.storeKey="ton-connect-storage_bridge-connection"}storeConnection(_){return __awaiter(this,void 0,void 0,function*(){if(_.type==="injected")return this.storage.setItem(this.storeKey,JSON.stringify(_));if(!isPendingConnectionHttp(_)){const k={sessionKeyPair:_.session.sessionCrypto.stringifyKeypair(),walletPublicKey:_.session.walletPublicKey,bridgeUrl:_.session.bridgeUrl},j={type:"http",connectEvent:_.connectEvent,session:k,lastWalletEventId:_.lastWalletEventId,nextRpcRequestId:_.nextRpcRequestId};return this.storage.setItem(this.storeKey,JSON.stringify(j))}const d={type:"http",connectionSource:_.connectionSource,sessionCrypto:_.sessionCrypto.stringifyKeypair()};return this.storage.setItem(this.storeKey,JSON.stringify(d))})}removeConnection(){return __awaiter(this,void 0,void 0,function*(){return this.storage.removeItem(this.storeKey)})}getConnection(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.storage.getItem(this.storeKey);if(!_)return null;const d=JSON.parse(_);if(d.type==="injected")return d;if("connectEvent"in d){const k=new SessionCrypto(d.session.sessionKeyPair);return{type:"http",connectEvent:d.connectEvent,lastWalletEventId:d.lastWalletEventId,nextRpcRequestId:d.nextRpcRequestId,session:{sessionCrypto:k,bridgeUrl:d.session.bridgeUrl,walletPublicKey:d.session.walletPublicKey}}}return{type:"http",sessionCrypto:new SessionCrypto(d.sessionCrypto),connectionSource:d.connectionSource}})}getHttpConnection(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.getConnection();if(!_)throw new TonConnectError("Trying to read HTTP connection source while nothing is stored");if(_.type==="injected")throw new TonConnectError("Trying to read HTTP connection source while injected connection is stored");return _})}getHttpPendingConnection(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.getConnection();if(!_)throw new TonConnectError("Trying to read HTTP connection source while nothing is stored");if(_.type==="injected")throw new TonConnectError("Trying to read HTTP connection source while injected connection is stored");if(!isPendingConnectionHttp(_))throw new TonConnectError("Trying to read HTTP-pending connection while http connection is stored");return _})}getInjectedConnection(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.getConnection();if(!_)throw new TonConnectError("Trying to read Injected bridge connection source while nothing is stored");if((_==null?void 0:_.type)==="http")throw new TonConnectError("Trying to read Injected bridge connection source while HTTP connection is stored");return _})}storedConnectionType(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.storage.getItem(this.storeKey);return _?JSON.parse(_).type:null})}storeLastWalletEventId(_){return __awaiter(this,void 0,void 0,function*(){const d=yield this.getConnection();if(d&&d.type==="http"&&!isPendingConnectionHttp(d))return d.lastWalletEventId=_,this.storeConnection(d)})}getLastWalletEventId(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.getConnection();if(_&&"lastWalletEventId"in _)return _.lastWalletEventId})}increaseNextRpcRequestId(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.getConnection();if(_&&"nextRpcRequestId"in _){const d=_.nextRpcRequestId||0;return _.nextRpcRequestId=d+1,this.storeConnection(_)}})}getNextRpcRequestId(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.getConnection();return _&&"nextRpcRequestId"in _&&_.nextRpcRequestId||0})}}const PROTOCOL_VERSION=2;class BridgeProvider{constructor(_,d){this.storage=_,this.walletConnectionSource=d,this.type="http",this.standardUniversalLink="tc://",this.pendingRequests=new Map,this.session=null,this.gateway=null,this.pendingGateways=[],this.listeners=[],this.defaultOpeningDeadlineMS=12e3,this.defaultRetryTimeoutMS=2e3,this.connectionStorage=new BridgeConnectionStorage(_)}static fromStorage(_){return __awaiter(this,void 0,void 0,function*(){const k=yield new BridgeConnectionStorage(_).getHttpConnection();return isPendingConnectionHttp(k)?new BridgeProvider(_,k.connectionSource):new BridgeProvider(_,{bridgeUrl:k.session.bridgeUrl})})}connect(_,d){var k;const j=createAbortController(d==null?void 0:d.signal);(k=this.abortController)===null||k===void 0||k.abort(),this.abortController=j,this.closeGateways();const $=new SessionCrypto;this.session={sessionCrypto:$,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},this.connectionStorage.storeConnection({type:"http",connectionSource:this.walletConnectionSource,sessionCrypto:$}).then(()=>__awaiter(this,void 0,void 0,function*(){j.signal.aborted||(yield callForSuccess(tt=>{var rt;return this.openGateways($,{openingDeadlineMS:(rt=d==null?void 0:d.openingDeadlineMS)!==null&&rt!==void 0?rt:this.defaultOpeningDeadlineMS,signal:tt==null?void 0:tt.signal})},{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:j.signal}))}));const et="universalLink"in this.walletConnectionSource&&this.walletConnectionSource.universalLink?this.walletConnectionSource.universalLink:this.standardUniversalLink;return this.generateUniversalLink(et,_)}restoreConnection(_){var d,k;return __awaiter(this,void 0,void 0,function*(){const j=createAbortController(_==null?void 0:_.signal);if((d=this.abortController)===null||d===void 0||d.abort(),this.abortController=j,j.signal.aborted)return;this.closeGateways();const $=yield this.connectionStorage.getHttpConnection();if(!$||j.signal.aborted)return;const et=(k=_==null?void 0:_.openingDeadlineMS)!==null&&k!==void 0?k:this.defaultOpeningDeadlineMS;if(isPendingConnectionHttp($))return this.session={sessionCrypto:$.sessionCrypto,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},yield this.openGateways($.sessionCrypto,{openingDeadlineMS:et,signal:j==null?void 0:j.signal});if(Array.isArray(this.walletConnectionSource))throw new TonConnectError("Internal error. Connection source is array while WalletConnectionSourceHTTP was expected.");if(this.session=$.session,this.gateway&&(logDebug$1("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new BridgeGateway(this.storage,this.walletConnectionSource.bridgeUrl,$.session.sessionCrypto.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),!j.signal.aborted){this.listeners.forEach(tt=>tt($.connectEvent));try{yield callForSuccess(tt=>this.gateway.registerSession({openingDeadlineMS:et,signal:tt.signal}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:j.signal})}catch{yield this.disconnect({signal:j.signal});return}}})}sendRequest(_,d){const k={};return typeof d=="function"?k.onRequestSent=d:(k.onRequestSent=d==null?void 0:d.onRequestSent,k.signal=d==null?void 0:d.signal,k.attempts=d==null?void 0:d.attempts),new Promise((j,$)=>__awaiter(this,void 0,void 0,function*(){var et;if(!this.gateway||!this.session||!("walletPublicKey"in this.session))throw new TonConnectError("Trying to send bridge request without session");const tt=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),logDebug$1("Send http-bridge request:",Object.assign(Object.assign({},_),{id:tt}));const rt=this.session.sessionCrypto.encrypt(JSON.stringify(Object.assign(Object.assign({},_),{id:tt})),hexToByteArray(this.session.walletPublicKey));try{yield this.gateway.send(rt,this.session.walletPublicKey,_.method,{attempts:k==null?void 0:k.attempts,signal:k==null?void 0:k.signal}),(et=k==null?void 0:k.onRequestSent)===null||et===void 0||et.call(k),this.pendingRequests.set(tt.toString(),j)}catch(nt){$(nt)}}))}closeConnection(){this.closeGateways(),this.listeners=[],this.session=null,this.gateway=null}disconnect(_){return __awaiter(this,void 0,void 0,function*(){return new Promise(d=>__awaiter(this,void 0,void 0,function*(){let k=!1,j=null;const $=()=>{k||(k=!0,this.removeBridgeAndSession().then(d))};try{this.closeGateways();const et=createAbortController(_==null?void 0:_.signal);j=setTimeout(()=>{et.abort()},this.defaultOpeningDeadlineMS),yield this.sendRequest({method:"disconnect",params:[]},{onRequestSent:$,signal:et.signal,attempts:1})}catch(et){logDebug$1("Disconnect error:",et),k||this.removeBridgeAndSession().then(d)}finally{j&&clearTimeout(j),$()}}))})}listen(_){return this.listeners.push(_),()=>this.listeners=this.listeners.filter(d=>d!==_)}pause(){var _;(_=this.gateway)===null||_===void 0||_.pause(),this.pendingGateways.forEach(d=>d.pause())}unPause(){return __awaiter(this,void 0,void 0,function*(){const _=this.pendingGateways.map(d=>d.unPause());this.gateway&&_.push(this.gateway.unPause()),yield Promise.all(_)})}pendingGatewaysListener(_,d,k){return __awaiter(this,void 0,void 0,function*(){if(!this.pendingGateways.includes(_)){yield _.close();return}return this.closeGateways({except:_}),this.gateway&&(logDebug$1("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.session.bridgeUrl=d,this.gateway=_,this.gateway.setErrorsListener(this.gatewayErrorsListener.bind(this)),this.gateway.setListener(this.gatewayListener.bind(this)),this.gatewayListener(k)})}gatewayListener(_){return __awaiter(this,void 0,void 0,function*(){const d=JSON.parse(this.session.sessionCrypto.decrypt(Base64.decode(_.message).toUint8Array(),hexToByteArray(_.from)));if(logDebug$1("Wallet message received:",d),!("event"in d)){const j=d.id.toString(),$=this.pendingRequests.get(j);if(!$){logDebug$1(`Response id ${j} doesn't match any request's id`);return}$(d),this.pendingRequests.delete(j);return}if(d.id!==void 0){const j=yield this.connectionStorage.getLastWalletEventId();if(j!==void 0&&d.id<=j){logError$1(`Received event id (=${d.id}) must be greater than stored last wallet event id (=${j}) `);return}d.event!=="connect"&&(yield this.connectionStorage.storeLastWalletEventId(d.id))}const k=this.listeners;d.event==="connect"&&(yield this.updateSession(d,_.from)),d.event==="disconnect"&&(logDebug$1("Removing bridge and session: received disconnect event"),yield this.removeBridgeAndSession()),k.forEach(j=>j(d))})}gatewayErrorsListener(_){return __awaiter(this,void 0,void 0,function*(){throw new TonConnectError(`Bridge error ${JSON.stringify(_)}`)})}updateSession(_,d){return __awaiter(this,void 0,void 0,function*(){this.session=Object.assign(Object.assign({},this.session),{walletPublicKey:d});const k=_.payload.items.find($=>$.name==="ton_addr"),j=Object.assign(Object.assign({},_),{payload:Object.assign(Object.assign({},_.payload),{items:[k]})});yield this.connectionStorage.storeConnection({type:"http",session:this.session,lastWalletEventId:_.id,connectEvent:j,nextRpcRequestId:0})})}removeBridgeAndSession(){return __awaiter(this,void 0,void 0,function*(){this.closeConnection(),yield this.connectionStorage.removeConnection()})}generateUniversalLink(_,d){return isTelegramUrl(_)?this.generateTGUniversalLink(_,d):this.generateRegularUniversalLink(_,d)}generateRegularUniversalLink(_,d){const k=new URL(_);return k.searchParams.append("v",PROTOCOL_VERSION.toString()),k.searchParams.append("id",this.session.sessionCrypto.sessionId),k.searchParams.append("r",JSON.stringify(d)),k.toString()}generateTGUniversalLink(_,d){const j=this.generateRegularUniversalLink("about:blank",d).split("?")[1],$="tonconnect-"+encodeTelegramUrlParameters(j),et=this.convertToDirectLink(_),tt=new URL(et);return tt.searchParams.append("startapp",$),tt.toString()}convertToDirectLink(_){const d=new URL(_);return d.searchParams.has("attach")&&(d.searchParams.delete("attach"),d.pathname+="/start"),d.toString()}openGateways(_,d){return __awaiter(this,void 0,void 0,function*(){if(Array.isArray(this.walletConnectionSource)){this.pendingGateways.map(k=>k.close().catch()),this.pendingGateways=this.walletConnectionSource.map(k=>{const j=new BridgeGateway(this.storage,k.bridgeUrl,_.sessionId,()=>{},()=>{});return j.setListener($=>this.pendingGatewaysListener(j,k.bridgeUrl,$)),j}),yield Promise.allSettled(this.pendingGateways.map(k=>callForSuccess(j=>this.pendingGateways.some($=>$===k)?k.registerSession({openingDeadlineMS:d==null?void 0:d.openingDeadlineMS,signal:j.signal}):k.close(),{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:d==null?void 0:d.signal})));return}else return this.gateway&&(logDebug$1("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new BridgeGateway(this.storage,this.walletConnectionSource.bridgeUrl,_.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),yield this.gateway.registerSession({openingDeadlineMS:d==null?void 0:d.openingDeadlineMS,signal:d==null?void 0:d.signal})})}closeGateways(_){var d;(d=this.gateway)===null||d===void 0||d.close(),this.pendingGateways.filter(k=>k!==(_==null?void 0:_.except)).forEach(k=>k.close()),this.pendingGateways=[]}}function hasProperty(b,_){return hasProperties(b,[_])}function hasProperties(b,_){return!b||typeof b!="object"?!1:_.every(d=>d in b)}function isJSBridgeWithMetadata(b){try{return!hasProperty(b,"tonconnect")||!hasProperty(b.tonconnect,"walletInfo")?!1:hasProperties(b.tonconnect.walletInfo,["name","app_name","image","about_url","platforms"])}catch{return!1}}let InMemoryStorage$1=class Xo{constructor(){this.storage={}}static getInstance(){return Xo.instance||(Xo.instance=new Xo),Xo.instance}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(_){var d;return(d=this.storage[_])!==null&&d!==void 0?d:null}key(_){var d;const k=Object.keys(this.storage);return _<0||_>=k.length?null:(d=k[_])!==null&&d!==void 0?d:null}removeItem(_){delete this.storage[_]}setItem(_,d){this.storage[_]=d}};function getWindow$2(){if(!(typeof window>"u"))return window}function tryGetWindowKeys(){const b=getWindow$2();if(!b)return[];try{return Object.keys(b)}catch{return[]}}function getDocument(){if(!(typeof document>"u"))return document}function getWebPageManifest(){var b;const _=(b=getWindow$2())===null||b===void 0?void 0:b.location.origin;return _?_+"/tonconnect-manifest.json":""}function tryGetLocalStorage$1(){if(isLocalStorageAvailable$1())return localStorage;if(isNodeJs$1())throw new TonConnectError("`localStorage` is unavailable, but it is required for TonConnect. For more details, see https://github.com/ton-connect/sdk/tree/main/packages/sdk#init-connector");return InMemoryStorage$1.getInstance()}function isLocalStorageAvailable$1(){try{return typeof localStorage<"u"}catch{return!1}}function isNodeJs$1(){return typeof process<"u"&&process.versions!=null&&process.versions.node!=null}class InjectedProvider{constructor(_,d){this.injectedWalletKey=d,this.type="injected",this.unsubscribeCallback=null,this.listenSubscriptions=!1,this.listeners=[];const k=InjectedProvider.window;if(!InjectedProvider.isWindowContainsWallet(k,d))throw new WalletNotInjectedError;this.connectionStorage=new BridgeConnectionStorage(_),this.injectedWallet=k[d].tonconnect}static fromStorage(_){return __awaiter(this,void 0,void 0,function*(){const k=yield new BridgeConnectionStorage(_).getInjectedConnection();return new InjectedProvider(_,k.jsBridgeKey)})}static isWalletInjected(_){return InjectedProvider.isWindowContainsWallet(this.window,_)}static isInsideWalletBrowser(_){return InjectedProvider.isWindowContainsWallet(this.window,_)?this.window[_].tonconnect.isWalletBrowser:!1}static getCurrentlyInjectedWallets(){return this.window?tryGetWindowKeys().filter(([k,j])=>isJSBridgeWithMetadata(j)).map(([k,j])=>({name:j.tonconnect.walletInfo.name,appName:j.tonconnect.walletInfo.app_name,aboutUrl:j.tonconnect.walletInfo.about_url,imageUrl:j.tonconnect.walletInfo.image,tondns:j.tonconnect.walletInfo.tondns,jsBridgeKey:k,injected:!0,embedded:j.tonconnect.isWalletBrowser,platforms:j.tonconnect.walletInfo.platforms})):[]}static isWindowContainsWallet(_,d){return!!_&&d in _&&typeof _[d]=="object"&&"tonconnect"in _[d]}connect(_){this._connect(PROTOCOL_VERSION,_)}restoreConnection(){return __awaiter(this,void 0,void 0,function*(){try{logDebug$1("Injected Provider restoring connection...");const _=yield this.injectedWallet.restoreConnection();logDebug$1("Injected Provider restoring connection response",_),_.event==="connect"?(this.makeSubscriptions(),this.listeners.forEach(d=>d(_))):yield this.connectionStorage.removeConnection()}catch(_){yield this.connectionStorage.removeConnection(),console.error(_)}})}closeConnection(){this.listenSubscriptions&&this.injectedWallet.disconnect(),this.closeAllListeners()}disconnect(){return __awaiter(this,void 0,void 0,function*(){return new Promise(_=>{const d=()=>{this.closeAllListeners(),this.connectionStorage.removeConnection().then(_)};try{this.injectedWallet.disconnect(),d()}catch(k){logDebug$1(k),this.sendRequest({method:"disconnect",params:[]},d)}})})}closeAllListeners(){var _;this.listenSubscriptions=!1,this.listeners=[],(_=this.unsubscribeCallback)===null||_===void 0||_.call(this)}listen(_){return this.listeners.push(_),()=>this.listeners=this.listeners.filter(d=>d!==_)}sendRequest(_,d){var k;return __awaiter(this,void 0,void 0,function*(){const j={};typeof d=="function"?j.onRequestSent=d:(j.onRequestSent=d==null?void 0:d.onRequestSent,j.signal=d==null?void 0:d.signal);const $=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),logDebug$1("Send injected-bridge request:",Object.assign(Object.assign({},_),{id:$}));const et=this.injectedWallet.send(Object.assign(Object.assign({},_),{id:$}));return et.then(tt=>logDebug$1("Wallet message received:",tt)),(k=j==null?void 0:j.onRequestSent)===null||k===void 0||k.call(j),et})}_connect(_,d){return __awaiter(this,void 0,void 0,function*(){try{logDebug$1(`Injected Provider connect request: protocolVersion: ${_}, message:`,d);const k=yield this.injectedWallet.connect(_,d);logDebug$1("Injected Provider connect response:",k),k.event==="connect"&&(yield this.updateSession(),this.makeSubscriptions()),this.listeners.forEach(j=>j(k))}catch(k){logDebug$1("Injected Provider connect error:",k);const j={event:"connect_error",payload:{code:0,message:k==null?void 0:k.toString()}};this.listeners.forEach($=>$(j))}})}makeSubscriptions(){this.listenSubscriptions=!0,this.unsubscribeCallback=this.injectedWallet.listen(_=>{logDebug$1("Wallet message received:",_),this.listenSubscriptions&&this.listeners.forEach(d=>d(_)),_.event==="disconnect"&&this.disconnect()})}updateSession(){return this.connectionStorage.storeConnection({type:"injected",jsBridgeKey:this.injectedWalletKey,nextRpcRequestId:0})}}InjectedProvider.window=getWindow$2();class DefaultStorage{constructor(){this.localStorage=tryGetLocalStorage$1()}getItem(_){return __awaiter(this,void 0,void 0,function*(){return this.localStorage.getItem(_)})}removeItem(_){return __awaiter(this,void 0,void 0,function*(){this.localStorage.removeItem(_)})}setItem(_,d){return __awaiter(this,void 0,void 0,function*(){this.localStorage.setItem(_,d)})}}function isWalletInfoCurrentlyInjected(b){return isWalletInfoInjectable(b)&&b.injected}function isWalletInfoCurrentlyEmbedded(b){return isWalletInfoCurrentlyInjected(b)&&b.embedded}function isWalletInfoInjectable(b){return"jsBridgeKey"in b}function isWalletInfoRemote(b){return"bridgeUrl"in b}const FALLBACK_WALLETS_LIST=[{app_name:"telegram-wallet",name:"Wallet",image:"https://wallet.tg/images/logo-288.png",about_url:"https://wallet.tg/",universal_url:"https://t.me/wallet?attach=wallet",bridge:[{type:"sse",url:"https://bridge.tonapi.io/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"tonkeeper",name:"Tonkeeper",image:"https://tonkeeper.com/assets/tonconnect-icon.png",tondns:"tonkeeper.ton",about_url:"https://tonkeeper.com",universal_url:"https://app.tonkeeper.com/ton-connect",deepLink:"tonkeeper-tc://",bridge:[{type:"sse",url:"https://bridge.tonapi.io/bridge"},{type:"js",key:"tonkeeper"}],platforms:["ios","android","chrome","firefox","macos"]},{app_name:"mytonwallet",name:"MyTonWallet",image:"https://mytonwallet.io/icon-256.png",about_url:"https://mytonwallet.io",universal_url:"https://connect.mytonwallet.org",bridge:[{type:"js",key:"mytonwallet"},{type:"sse",url:"https://tonconnectbridge.mytonwallet.org/bridge/"}],platforms:["chrome","windows","macos","linux","ios","android","firefox"]},{app_name:"openmask",name:"OpenMask",image:"https://raw.githubusercontent.com/OpenProduct/openmask-extension/main/public/openmask-logo-288.png",about_url:"https://www.openmask.app/",bridge:[{type:"js",key:"openmask"}],platforms:["chrome"]},{app_name:"tonhub",name:"Tonhub",image:"https://tonhub.com/tonconnect_logo.png",about_url:"https://tonhub.com",universal_url:"https://tonhub.com/ton-connect",bridge:[{type:"js",key:"tonhub"},{type:"sse",url:"https://connect.tonhubapi.com/tonconnect"}],platforms:["ios","android"]},{app_name:"dewallet",name:"DeWallet",image:"https://app.delabwallet.com/logo_black.png",about_url:"https://delabwallet.com",bridge:[{type:"js",key:"dewallet"}],platforms:["chrome"]},{app_name:"xtonwallet",name:"XTONWallet",image:"https://xtonwallet.com/assets/img/icon-256-back.png",about_url:"https://xtonwallet.com",bridge:[{type:"js",key:"xtonwallet"}],platforms:["chrome","firefox"]},{app_name:"tonwallet",name:"TON Wallet",image:"https://wallet.ton.org/assets/ui/qr-logo.png",about_url:"https://chrome.google.com/webstore/detail/ton-wallet/nphplpgoakhhjchkkhmiggakijnkhfnd",bridge:[{type:"js",key:"tonwallet"}],platforms:["chrome"]}];class WalletsListManager{constructor(_){this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null,this.walletsListSource="https://raw.githubusercontent.com/ton-blockchain/wallets-list/main/wallets-v2.json",_!=null&&_.walletsListSource&&(this.walletsListSource=_.walletsListSource),_!=null&&_.cacheTTLMs&&(this.cacheTTLMs=_.cacheTTLMs)}getWallets(){return __awaiter(this,void 0,void 0,function*(){return this.cacheTTLMs&&this.walletsListCacheCreationTimestamp&&Date.now()>this.walletsListCacheCreationTimestamp+this.cacheTTLMs&&(this.walletsListCache=null),this.walletsListCache||(this.walletsListCache=this.fetchWalletsList(),this.walletsListCache.then(()=>{this.walletsListCacheCreationTimestamp=Date.now()}).catch(()=>{this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null})),this.walletsListCache})}getEmbeddedWallet(){return __awaiter(this,void 0,void 0,function*(){const d=(yield this.getWallets()).filter(isWalletInfoCurrentlyEmbedded);return d.length!==1?null:d[0]})}fetchWalletsList(){return __awaiter(this,void 0,void 0,function*(){let _=[];try{if(_=yield(yield fetch(this.walletsListSource)).json(),!Array.isArray(_))throw new FetchWalletsError("Wrong wallets list format, wallets list must be an array.");const j=_.filter($=>!this.isCorrectWalletConfigDTO($));j.length&&(logError$1(`Wallet(s) ${j.map($=>$.name).join(", ")} config format is wrong. They were removed from the wallets list.`),_=_.filter($=>this.isCorrectWalletConfigDTO($)))}catch(k){logError$1(k),_=FALLBACK_WALLETS_LIST}let d=[];try{d=InjectedProvider.getCurrentlyInjectedWallets()}catch(k){logError$1(k)}return this.mergeWalletsLists(this.walletConfigDTOListToWalletConfigList(_),d)})}walletConfigDTOListToWalletConfigList(_){return _.map(d=>{const j={name:d.name,appName:d.app_name,imageUrl:d.image,aboutUrl:d.about_url,tondns:d.tondns,platforms:d.platforms};return d.bridge.forEach($=>{if($.type==="sse"&&(j.bridgeUrl=$.url,j.universalLink=d.universal_url,j.deepLink=d.deepLink),$.type==="js"){const et=$.key;j.jsBridgeKey=et,j.injected=InjectedProvider.isWalletInjected(et),j.embedded=InjectedProvider.isInsideWalletBrowser(et)}}),j})}mergeWalletsLists(_,d){return[...new Set(_.concat(d).map(j=>j.name)).values()].map(j=>{const $=_.find(tt=>tt.name===j),et=d.find(tt=>tt.name===j);return Object.assign(Object.assign({},$&&Object.assign({},$)),et&&Object.assign({},et))})}isCorrectWalletConfigDTO(_){if(!_||typeof _!="object")return!1;const d="name"in _,k="app_name"in _,j="image"in _,$="about_url"in _,et="platforms"in _;if(!d||!j||!$||!et||!k||!_.platforms||!Array.isArray(_.platforms)||!_.platforms.length||!("bridge"in _)||!Array.isArray(_.bridge)||!_.bridge.length)return!1;const tt=_.bridge;if(tt.some(ot=>!ot||typeof ot!="object"||!("type"in ot)))return!1;const rt=tt.find(ot=>ot.type==="sse");if(rt&&(!("url"in rt)||!rt.url||!_.universal_url))return!1;const nt=tt.find(ot=>ot.type==="js");return!(nt&&(!("key"in nt)||!nt.key))}}class WalletNotSupportFeatureError extends TonConnectError{get info(){return"Wallet doesn't support requested feature method."}constructor(..._){super(..._),Object.setPrototypeOf(this,WalletNotSupportFeatureError.prototype)}}function checkSendTransactionSupport(b,_){const d=b.includes("SendTransaction"),k=b.find(j=>j&&typeof j=="object"&&j.name==="SendTransaction");if(!d&&!k)throw new WalletNotSupportFeatureError("Wallet doesn't support SendTransaction feature.");if(k&&k.maxMessages!==void 0){if(k.maxMessages<_.requiredMessagesNumber)throw new WalletNotSupportFeatureError(`Wallet is not able to handle such SendTransaction request. Max support messages number is ${k.maxMessages}, but ${_.requiredMessagesNumber} is required.`);return}logWarning$1("Connected wallet didn't provide information about max allowed messages in the SendTransaction request. Request may be rejected by the wallet.")}function createRequestVersionEvent(){return{type:"request-version"}}function createResponseVersionEvent(b){return{type:"response-version",version:b}}function createVersionInfo(b){return{ton_connect_sdk_lib:b.ton_connect_sdk_lib,ton_connect_ui_lib:b.ton_connect_ui_lib}}function createConnectionInfo(b,_){var d,k,j,$,et,tt,rt,nt;const at=((d=_==null?void 0:_.connectItems)===null||d===void 0?void 0:d.tonProof)&&"proof"in _.connectItems.tonProof?"ton_proof":"ton_addr";return{wallet_address:(j=(k=_==null?void 0:_.account)===null||k===void 0?void 0:k.address)!==null&&j!==void 0?j:null,wallet_type:($=_==null?void 0:_.device.appName)!==null&&$!==void 0?$:null,wallet_version:(et=_==null?void 0:_.device.appVersion)!==null&&et!==void 0?et:null,auth_type:at,custom_data:Object.assign({chain_id:(rt=(tt=_==null?void 0:_.account)===null||tt===void 0?void 0:tt.chain)!==null&&rt!==void 0?rt:null,provider:(nt=_==null?void 0:_.provider)!==null&&nt!==void 0?nt:null},createVersionInfo(b))}}function createConnectionStartedEvent(b){return{type:"connection-started",custom_data:createVersionInfo(b)}}function createConnectionCompletedEvent(b,_){return Object.assign({type:"connection-completed",is_success:!0},createConnectionInfo(b,_))}function createConnectionErrorEvent(b,_,d){return{type:"connection-error",is_success:!1,error_message:_,error_code:d??null,custom_data:createVersionInfo(b)}}function createConnectionRestoringStartedEvent(b){return{type:"connection-restoring-started",custom_data:createVersionInfo(b)}}function createConnectionRestoringCompletedEvent(b,_){return Object.assign({type:"connection-restoring-completed",is_success:!0},createConnectionInfo(b,_))}function createConnectionRestoringErrorEvent(b,_){return{type:"connection-restoring-error",is_success:!1,error_message:_,custom_data:createVersionInfo(b)}}function createTransactionInfo(b,_){var d,k,j,$;return{valid_until:(d=String(_.validUntil))!==null&&d!==void 0?d:null,from:($=(k=_.from)!==null&&k!==void 0?k:(j=b==null?void 0:b.account)===null||j===void 0?void 0:j.address)!==null&&$!==void 0?$:null,messages:_.messages.map(et=>{var tt,rt;return{address:(tt=et.address)!==null&&tt!==void 0?tt:null,amount:(rt=et.amount)!==null&&rt!==void 0?rt:null}})}}function createTransactionSentForSignatureEvent(b,_,d){return Object.assign(Object.assign({type:"transaction-sent-for-signature"},createConnectionInfo(b,_)),createTransactionInfo(_,d))}function createTransactionSignedEvent(b,_,d,k){return Object.assign(Object.assign({type:"transaction-signed",is_success:!0,signed_transaction:k.boc},createConnectionInfo(b,_)),createTransactionInfo(_,d))}function createTransactionSigningFailedEvent(b,_,d,k,j){return Object.assign(Object.assign({type:"transaction-signing-failed",is_success:!1,error_message:k,error_code:j??null},createConnectionInfo(b,_)),createTransactionInfo(_,d))}function createDisconnectionEvent(b,_,d){return Object.assign({type:"disconnection",scope:d},createConnectionInfo(b,_))}class BrowserEventDispatcher{constructor(){this.window=getWindow$2()}dispatchEvent(_,d){var k;return __awaiter(this,void 0,void 0,function*(){const j=new CustomEvent(_,{detail:d});(k=this.window)===null||k===void 0||k.dispatchEvent(j)})}addEventListener(_,d,k){var j;return __awaiter(this,void 0,void 0,function*(){return(j=this.window)===null||j===void 0||j.addEventListener(_,d,k),()=>{var $;return($=this.window)===null||$===void 0?void 0:$.removeEventListener(_,d)}})}}class TonConnectTracker{constructor(_){var d;this.eventPrefix="ton-connect-",this.tonConnectUiVersion=null,this.eventDispatcher=(d=_==null?void 0:_.eventDispatcher)!==null&&d!==void 0?d:new BrowserEventDispatcher,this.tonConnectSdkVersion=_.tonConnectSdkVersion,this.init().catch()}get version(){return createVersionInfo({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return __awaiter(this,void 0,void 0,function*(){try{yield this.setRequestVersionHandler(),this.tonConnectUiVersion=yield this.requestTonConnectUiVersion()}catch{}})}setRequestVersionHandler(){return __awaiter(this,void 0,void 0,function*(){yield this.eventDispatcher.addEventListener("ton-connect-request-version",()=>__awaiter(this,void 0,void 0,function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-response-version",createResponseVersionEvent(this.tonConnectSdkVersion))}))})}requestTonConnectUiVersion(){return __awaiter(this,void 0,void 0,function*(){return new Promise((_,d)=>__awaiter(this,void 0,void 0,function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-ui-response-version",k=>{_(k.detail.version)},{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-ui-request-version",createRequestVersionEvent())}catch(k){d(k)}}))})}dispatchUserActionEvent(_){try{this.eventDispatcher.dispatchEvent(`${this.eventPrefix}${_.type}`,_).catch()}catch{}}trackConnectionStarted(..._){try{const d=createConnectionStartedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionCompleted(..._){try{const d=createConnectionCompletedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionError(..._){try{const d=createConnectionErrorEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionRestoringStarted(..._){try{const d=createConnectionRestoringStartedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionRestoringCompleted(..._){try{const d=createConnectionRestoringCompletedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionRestoringError(..._){try{const d=createConnectionRestoringErrorEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackDisconnection(..._){try{const d=createDisconnectionEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackTransactionSentForSignature(..._){try{const d=createTransactionSentForSignatureEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackTransactionSigned(..._){try{const d=createTransactionSignedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackTransactionSigningFailed(..._){try{const d=createTransactionSigningFailedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}}const tonConnectSdkVersion="3.0.4-beta.0";class TonConnect{constructor(_){if(this.walletsList=new WalletsListManager,this._wallet=null,this.provider=null,this.statusChangeSubscriptions=[],this.statusChangeErrorSubscriptions=[],this.dappSettings={manifestUrl:(_==null?void 0:_.manifestUrl)||getWebPageManifest(),storage:(_==null?void 0:_.storage)||new DefaultStorage},this.walletsList=new WalletsListManager({walletsListSource:_==null?void 0:_.walletsListSource,cacheTTLMs:_==null?void 0:_.walletsListCacheTTLMs}),this.tracker=new TonConnectTracker({eventDispatcher:_==null?void 0:_.eventDispatcher,tonConnectSdkVersion}),!this.dappSettings.manifestUrl)throw new DappMetadataError("Dapp tonconnect-manifest.json must be specified if window.location.origin is undefined. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest");this.bridgeConnectionStorage=new BridgeConnectionStorage(this.dappSettings.storage),_!=null&&_.disableAutoPauseConnection||this.addWindowFocusAndBlurSubscriptions()}static getWallets(){return this.walletsList.getWallets()}get connected(){return this._wallet!==null}get account(){var _;return((_=this._wallet)===null||_===void 0?void 0:_.account)||null}get wallet(){return this._wallet}set wallet(_){this._wallet=_,this.statusChangeSubscriptions.forEach(d=>d(this._wallet))}getWallets(){return this.walletsList.getWallets()}onStatusChange(_,d){return this.statusChangeSubscriptions.push(_),d&&this.statusChangeErrorSubscriptions.push(d),()=>{this.statusChangeSubscriptions=this.statusChangeSubscriptions.filter(k=>k!==_),d&&(this.statusChangeErrorSubscriptions=this.statusChangeErrorSubscriptions.filter(k=>k!==d))}}connect(_,d){var k,j;const $={};if(typeof d=="object"&&"tonProof"in d&&($.request=d),typeof d=="object"&&("openingDeadlineMS"in d||"signal"in d||"request"in d)&&($.request=d==null?void 0:d.request,$.openingDeadlineMS=d==null?void 0:d.openingDeadlineMS,$.signal=d==null?void 0:d.signal),this.connected)throw new WalletAlreadyConnectedError;const et=createAbortController($==null?void 0:$.signal);if((k=this.abortController)===null||k===void 0||k.abort(),this.abortController=et,et.signal.aborted)throw new TonConnectError("Connection was aborted");return(j=this.provider)===null||j===void 0||j.closeConnection(),this.provider=this.createProvider(_),et.signal.addEventListener("abort",()=>{var tt;(tt=this.provider)===null||tt===void 0||tt.closeConnection(),this.provider=null}),this.tracker.trackConnectionStarted(),this.provider.connect(this.createConnectRequest($==null?void 0:$.request),{openingDeadlineMS:$==null?void 0:$.openingDeadlineMS,signal:et.signal})}restoreConnection(_){var d,k;return __awaiter(this,void 0,void 0,function*(){this.tracker.trackConnectionRestoringStarted();const j=createAbortController(_==null?void 0:_.signal);if((d=this.abortController)===null||d===void 0||d.abort(),this.abortController=j,j.signal.aborted){this.tracker.trackConnectionRestoringError("Connection restoring was aborted");return}const[$,et]=yield Promise.all([this.bridgeConnectionStorage.storedConnectionType(),this.walletsList.getEmbeddedWallet()]);if(j.signal.aborted){this.tracker.trackConnectionRestoringError("Connection restoring was aborted");return}let tt=null;try{switch($){case"http":tt=yield BridgeProvider.fromStorage(this.dappSettings.storage);break;case"injected":tt=yield InjectedProvider.fromStorage(this.dappSettings.storage);break;default:if(et)tt=this.createProvider(et);else return}}catch{this.tracker.trackConnectionRestoringError("Provider is not restored"),yield this.bridgeConnectionStorage.removeConnection(),tt==null||tt.closeConnection(),tt=null;return}if(j.signal.aborted){tt==null||tt.closeConnection(),this.tracker.trackConnectionRestoringError("Connection restoring was aborted");return}if(!tt){logError$1("Provider is not restored"),this.tracker.trackConnectionRestoringError("Provider is not restored");return}(k=this.provider)===null||k===void 0||k.closeConnection(),this.provider=tt,tt.listen(this.walletEventsListener.bind(this));const rt=()=>{this.tracker.trackConnectionRestoringError("Connection restoring was aborted"),tt==null||tt.closeConnection(),tt=null};return j.signal.addEventListener("abort",rt),yield callForSuccess(nt=>__awaiter(this,void 0,void 0,function*(){yield tt==null?void 0:tt.restoreConnection({openingDeadlineMS:_==null?void 0:_.openingDeadlineMS,signal:nt.signal}),j.signal.removeEventListener("abort",rt),this.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):this.tracker.trackConnectionRestoringError("Connection restoring failed")}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:5e3,signal:_==null?void 0:_.signal})})}sendTransaction(_,d){return __awaiter(this,void 0,void 0,function*(){const k={};typeof d=="function"?k.onRequestSent=d:(k.onRequestSent=d==null?void 0:d.onRequestSent,k.signal=d==null?void 0:d.signal);const j=createAbortController(k==null?void 0:k.signal);if(j.signal.aborted)throw new TonConnectError("Transaction sending was aborted");this.checkConnection(),checkSendTransactionSupport(this.wallet.device.features,{requiredMessagesNumber:_.messages.length}),this.tracker.trackTransactionSentForSignature(this.wallet,_);const{validUntil:$}=_,et=__rest(_,["validUntil"]),tt=_.from||this.account.address,rt=_.network||this.account.chain,nt=yield this.provider.sendRequest(sendTransactionParser.convertToRpcRequest(Object.assign(Object.assign({},et),{valid_until:$,from:tt,network:rt})),{onRequestSent:k.onRequestSent,signal:j.signal});if(sendTransactionParser.isError(nt))return this.tracker.trackTransactionSigningFailed(this.wallet,_,nt.error.message,nt.error.code),sendTransactionParser.parseAndThrowError(nt);const ot=sendTransactionParser.convertFromRpcResponse(nt);return this.tracker.trackTransactionSigned(this.wallet,_,ot),ot})}disconnect(_){var d;return __awaiter(this,void 0,void 0,function*(){if(!this.connected)throw new WalletNotConnectedError;const k=createAbortController(_==null?void 0:_.signal),j=this.abortController;if(this.abortController=k,k.signal.aborted)throw new TonConnectError("Disconnect was aborted");this.onWalletDisconnected("dapp"),yield(d=this.provider)===null||d===void 0?void 0:d.disconnect({signal:k.signal}),j==null||j.abort()})}pauseConnection(){var _;((_=this.provider)===null||_===void 0?void 0:_.type)==="http"&&this.provider.pause()}unPauseConnection(){var _;return((_=this.provider)===null||_===void 0?void 0:_.type)!=="http"?Promise.resolve():this.provider.unPause()}addWindowFocusAndBlurSubscriptions(){const _=getDocument();if(_)try{_.addEventListener("visibilitychange",()=>{_.hidden?this.pauseConnection():this.unPauseConnection().catch()})}catch(d){logError$1("Cannot subscribe to the document.visibilitychange: ",d)}}createProvider(_){let d;return!Array.isArray(_)&&isWalletConnectionSourceJS(_)?d=new InjectedProvider(this.dappSettings.storage,_.jsBridgeKey):d=new BridgeProvider(this.dappSettings.storage,_),d.listen(this.walletEventsListener.bind(this)),d}walletEventsListener(_){switch(_.event){case"connect":this.onWalletConnected(_.payload);break;case"connect_error":this.onWalletConnectError(_.payload);break;case"disconnect":this.onWalletDisconnected("wallet")}}onWalletConnected(_){const d=_.items.find($=>$.name==="ton_addr"),k=_.items.find($=>$.name==="ton_proof");if(!d)throw new TonConnectError("ton_addr connection item was not found");const j={device:_.device,provider:this.provider.type,account:{address:d.address,chain:d.network,walletStateInit:d.walletStateInit,publicKey:d.publicKey}};k&&(j.connectItems={tonProof:k}),this.wallet=j,this.tracker.trackConnectionCompleted(j)}onWalletConnectError(_){const d=connectErrorsParser.parseError(_);if(this.statusChangeErrorSubscriptions.forEach(k=>k(d)),logDebug$1(d),this.tracker.trackConnectionError(_.message,_.code),d instanceof ManifestNotFoundError||d instanceof ManifestContentErrorError)throw logError$1(d),d}onWalletDisconnected(_){this.tracker.trackDisconnection(this.wallet,_),this.wallet=null}checkConnection(){if(!this.connected)throw new WalletNotConnectedError}createConnectRequest(_){const d=[{name:"ton_addr"}];return _!=null&&_.tonProof&&d.push({name:"ton_proof",payload:_.tonProof}),{manifestUrl:this.dappSettings.manifestUrl,items:d}}}TonConnect.walletsList=new WalletsListManager;TonConnect.isWalletInjected=b=>InjectedProvider.isWalletInjected(b);TonConnect.isInsideWalletBrowser=b=>InjectedProvider.isInsideWalletBrowser(b);const noBounceableTag=81,testOnlyTag=128;function toUserFriendlyAddress(b,_=!1){const{wc:d,hex:k}=parseHexAddress(b);let j=noBounceableTag;_&&(j|=testOnlyTag);const $=new Int8Array(34);$[0]=j,$[1]=d,$.set(k,2);const et=new Uint8Array(36);return et.set($),et.set(crc16($),34),Base64.encode(et).replace(/\+/g,"-").replace(/\//g,"_")}function parseHexAddress(b){if(!b.includes(":"))throw new WrongAddressError(`Wrong address ${b}. Address must include ":".`);const _=b.split(":");if(_.length!==2)throw new WrongAddressError(`Wrong address ${b}. Address must include ":" only once.`);const d=parseInt(_[0]);if(d!==0&&d!==-1)throw new WrongAddressError(`Wrong address ${b}. WC must be eq 0 or -1, but ${d} received.`);const k=_[1];if((k==null?void 0:k.length)!==64)throw new WrongAddressError(`Wrong address ${b}. Hex part must be 64bytes length, but ${k==null?void 0:k.length} received.`);return{wc:d,hex:hexToBytes(k)}}function crc16(b){let d=0;const k=new Uint8Array(b.length+2);k.set(b);for(let j of k){let $=128;for(;$>0;)d<<=1,j&$&&(d+=1),$>>=1,d>65535&&(d&=65535,d^=4129)}return new Uint8Array([Math.floor(d/256),d%256])}const toByteMap={};for(let b=0;b<=255;b++){let _=b.toString(16);_.length<2&&(_="0"+_),toByteMap[_]=b}function hexToBytes(b){b=b.toLowerCase();const _=b.length;if(_%2!==0)throw new ParseHexError("Hex string must have length a multiple of 2: "+b);const d=_/2,k=new Uint8Array(d);for(let j=0;j0?an.length===2?typeof an[1]==tt?this[an[0]]=an[1].call(this,Sn):this[an[0]]=an[1]:an.length===3?typeof an[1]===tt&&!(an[1].exec&&an[1].test)?this[an[0]]=Sn?an[1].call(this,Sn,an[2]):k:this[an[0]]=Sn?Sn.replace(an[1],an[2]):k:an.length===4&&(this[an[0]]=Sn?an[3].call(this,Sn.replace(an[1],an[2])):k):this[an]=Sn||k;bt+=2}},Un=function(bn,Yt){for(var bt in Yt)if(typeof Yt[bt]===nt&&Yt[bt].length>0){for(var pt=0;pt2&&(sn[it]="iPad",sn[ut]=st),sn},this.getEngine=function(){var sn={};return sn[dt]=k,sn[ft]=k,Fn.call(sn,pt,Ut.engine),sn},this.getOS=function(){var sn={};return sn[dt]=k,sn[ft]=k,Fn.call(sn,pt,Ut.os),an&&!sn[dt]&&yt&&yt.platform!="Unknown"&&(sn[dt]=yt.platform.replace(/chrome os/i,An).replace(/macos/i,mn)),sn},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return pt},this.setUA=function(sn){return pt=typeof sn===ot&&sn.length>Mt?Ln(sn,Mt):sn,this},this.setUA(pt),this};Nn.VERSION=j,Nn.BROWSER=kn([dt,ft,at]),Nn.CPU=kn([lt]),Nn.DEVICE=kn([it,ht,ut,ct,gt,Ct,st,xt,wt]),Nn.ENGINE=Nn.OS=kn([dt,ft]),b.exports&&(_=b.exports=Nn),_.UAParser=Nn;var zn=typeof d!==rt&&(d.jQuery||d.Zepto);if(zn&&!zn.ua){var Vn=new Nn;zn.ua=Vn.getResult(),zn.ua.get=function(){return Vn.getUA()},zn.ua.set=function(bn){Vn.setUA(bn);var Yt=Vn.getResult();for(var bt in Yt)zn.ua[bt]=Yt[bt]}}})(typeof window=="object"?window:commonjsGlobal)})(uaParser,uaParser.exports);var uaParserExports=uaParser.exports;const UAParser=getDefaultExportFromCjs(uaParserExports);var isMergeableObject=function b(_){return isNonNullObject(_)&&!isSpecial(_)};function isNonNullObject(b){return!!b&&typeof b=="object"}function isSpecial(b){var _=Object.prototype.toString.call(b);return _==="[object RegExp]"||_==="[object Date]"||isReactElement(b)}var canUseSymbol=typeof Symbol=="function"&&Symbol.for,REACT_ELEMENT_TYPE=canUseSymbol?Symbol.for("react.element"):60103;function isReactElement(b){return b.$$typeof===REACT_ELEMENT_TYPE}function emptyTarget(b){return Array.isArray(b)?[]:{}}function cloneUnlessOtherwiseSpecified(b,_){return _.clone!==!1&&_.isMergeableObject(b)?deepmerge(emptyTarget(b),b,_):b}function defaultArrayMerge(b,_,d){return b.concat(_).map(function(k){return cloneUnlessOtherwiseSpecified(k,d)})}function getMergeFunction(b,_){if(!_.customMerge)return deepmerge;var d=_.customMerge(b);return typeof d=="function"?d:deepmerge}function getEnumerableOwnPropertySymbols(b){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(b).filter(function(_){return Object.propertyIsEnumerable.call(b,_)}):[]}function getKeys(b){return Object.keys(b).concat(getEnumerableOwnPropertySymbols(b))}function propertyIsOnObject(b,_){try{return _ in b}catch{return!1}}function propertyIsUnsafe(b,_){return propertyIsOnObject(b,_)&&!(Object.hasOwnProperty.call(b,_)&&Object.propertyIsEnumerable.call(b,_))}function mergeObject(b,_,d){var k={};return d.isMergeableObject(b)&&getKeys(b).forEach(function(j){k[j]=cloneUnlessOtherwiseSpecified(b[j],d)}),getKeys(_).forEach(function(j){propertyIsUnsafe(b,j)||(propertyIsOnObject(b,j)&&d.isMergeableObject(_[j])?k[j]=getMergeFunction(j,d)(b[j],_[j],d):k[j]=cloneUnlessOtherwiseSpecified(_[j],d))}),k}function deepmerge(b,_,d){d=d||{},d.arrayMerge=d.arrayMerge||defaultArrayMerge,d.isMergeableObject=d.isMergeableObject||isMergeableObject,d.cloneUnlessOtherwiseSpecified=cloneUnlessOtherwiseSpecified;var k=Array.isArray(_),j=Array.isArray(b),$=k===j;return $?k?d.arrayMerge(b,_,d):mergeObject(b,_,d):cloneUnlessOtherwiseSpecified(_,d)}deepmerge.all=function b(_,d){if(!Array.isArray(_))throw new Error("first argument should be an array");return _.reduce(function(k,j){return deepmerge(k,j,d)},{})};var deepmerge_1=deepmerge,cjs=deepmerge_1;const deepmerge$1=getDefaultExportFromCjs(cjs);var classnames={exports:{}};/*! +`+_:""}`,Object.setPrototypeOf(this,TonConnectError.prototype)}get info(){return""}}TonConnectError.prefix="[TON_CONNECT_SDK_ERROR]";class DappMetadataError extends TonConnectError{get info(){return"Passed DappMetadata is in incorrect format."}constructor(..._){super(..._),Object.setPrototypeOf(this,DappMetadataError.prototype)}}class ManifestContentErrorError extends TonConnectError{get info(){return"Passed `tonconnect-manifest.json` contains errors. Check format of your manifest. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest"}constructor(..._){super(..._),Object.setPrototypeOf(this,ManifestContentErrorError.prototype)}}class ManifestNotFoundError extends TonConnectError{get info(){return"Manifest not found. Make sure you added `tonconnect-manifest.json` to the root of your app or passed correct manifestUrl. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest"}constructor(..._){super(..._),Object.setPrototypeOf(this,ManifestNotFoundError.prototype)}}class WalletAlreadyConnectedError extends TonConnectError{get info(){return"Wallet connection called but wallet already connected. To avoid the error, disconnect the wallet before doing a new connection."}constructor(..._){super(..._),Object.setPrototypeOf(this,WalletAlreadyConnectedError.prototype)}}class WalletNotConnectedError extends TonConnectError{get info(){return"Send transaction or other protocol methods called while wallet is not connected."}constructor(..._){super(..._),Object.setPrototypeOf(this,WalletNotConnectedError.prototype)}}function isWalletConnectionSourceJS(b){return"jsBridgeKey"in b}class UserRejectsError extends TonConnectError{get info(){return"User rejects the action in the wallet."}constructor(..._){super(..._),Object.setPrototypeOf(this,UserRejectsError.prototype)}}class BadRequestError extends TonConnectError{get info(){return"Request to the wallet contains errors."}constructor(..._){super(..._),Object.setPrototypeOf(this,BadRequestError.prototype)}}class UnknownAppError extends TonConnectError{get info(){return"App tries to send rpc request to the injected wallet while not connected."}constructor(..._){super(..._),Object.setPrototypeOf(this,UnknownAppError.prototype)}}class WalletNotInjectedError extends TonConnectError{get info(){return"There is an attempt to connect to the injected wallet while it is not exists in the webpage."}constructor(..._){super(..._),Object.setPrototypeOf(this,WalletNotInjectedError.prototype)}}class FetchWalletsError extends TonConnectError{get info(){return"An error occurred while fetching the wallets list."}constructor(..._){super(..._),Object.setPrototypeOf(this,FetchWalletsError.prototype)}}class WrongAddressError extends TonConnectError{get info(){return"Passed address is in incorrect format."}constructor(..._){super(..._),Object.setPrototypeOf(this,WrongAddressError.prototype)}}class ParseHexError extends TonConnectError{get info(){return"Passed hex is in incorrect format."}constructor(..._){super(..._),Object.setPrototypeOf(this,ParseHexError.prototype)}}class UnknownError extends TonConnectError{constructor(..._){super(..._),Object.setPrototypeOf(this,UnknownError.prototype)}}const connectEventErrorsCodes={[CONNECT_EVENT_ERROR_CODES.UNKNOWN_ERROR]:UnknownError,[CONNECT_EVENT_ERROR_CODES.USER_REJECTS_ERROR]:UserRejectsError,[CONNECT_EVENT_ERROR_CODES.BAD_REQUEST_ERROR]:BadRequestError,[CONNECT_EVENT_ERROR_CODES.UNKNOWN_APP_ERROR]:UnknownAppError,[CONNECT_EVENT_ERROR_CODES.MANIFEST_NOT_FOUND_ERROR]:ManifestNotFoundError,[CONNECT_EVENT_ERROR_CODES.MANIFEST_CONTENT_ERROR]:ManifestContentErrorError};class ConnectErrorsParser{parseError(_){let d=UnknownError;return _.code in connectEventErrorsCodes&&(d=connectEventErrorsCodes[_.code]||UnknownError),new d(_.message)}}const connectErrorsParser=new ConnectErrorsParser;class RpcParser{isError(_){return"error"in _}}const sendTransactionErrors={[SEND_TRANSACTION_ERROR_CODES.UNKNOWN_ERROR]:UnknownError,[SEND_TRANSACTION_ERROR_CODES.USER_REJECTS_ERROR]:UserRejectsError,[SEND_TRANSACTION_ERROR_CODES.BAD_REQUEST_ERROR]:BadRequestError,[SEND_TRANSACTION_ERROR_CODES.UNKNOWN_APP_ERROR]:UnknownAppError};class SendTransactionParser extends RpcParser{convertToRpcRequest(_){return{method:"sendTransaction",params:[JSON.stringify(_)]}}parseAndThrowError(_){let d=UnknownError;throw _.error.code in sendTransactionErrors&&(d=sendTransactionErrors[_.error.code]||UnknownError),new d(_.error.message)}convertFromRpcResponse(_){return{boc:_.result}}}const sendTransactionParser=new SendTransactionParser;class HttpBridgeGatewayStorage{constructor(_,d){this.storage=_,this.storeKey="ton-connect-storage_http-bridge-gateway::"+d}storeLastEventId(_){return __awaiter(this,void 0,void 0,function*(){return this.storage.setItem(this.storeKey,_)})}removeLastEventId(){return __awaiter(this,void 0,void 0,function*(){return this.storage.removeItem(this.storeKey)})}getLastEventId(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.storage.getItem(this.storeKey);return _||null})}}function removeUrlLastSlash(b){return b.slice(-1)==="/"?b.slice(0,-1):b}function addPathToUrl(b,_){return removeUrlLastSlash(b)+"/"+_}function isTelegramUrl(b){if(!b)return!1;const _=new URL(b);return _.protocol==="tg:"||_.hostname==="t.me"}function encodeTelegramUrlParameters(b){return b.replaceAll(".","%2E").replaceAll("-","%2D").replaceAll("_","%5F").replaceAll("&","-").replaceAll("=","__").replaceAll("%","--")}function delay(b,_){return __awaiter(this,void 0,void 0,function*(){return new Promise((d,k)=>{var j,$;if(!((j=_==null?void 0:_.signal)===null||j===void 0)&&j.aborted){k(new TonConnectError("Delay aborted"));return}const et=setTimeout(()=>d(),b);($=_==null?void 0:_.signal)===null||$===void 0||$.addEventListener("abort",()=>{clearTimeout(et),k(new TonConnectError("Delay aborted"))})})})}function createAbortController(b){const _=new AbortController;return b!=null&&b.aborted?_.abort():b==null||b.addEventListener("abort",()=>_.abort(),{once:!0}),_}function callForSuccess(b,_){var d,k;return __awaiter(this,void 0,void 0,function*(){const j=(d=_==null?void 0:_.attempts)!==null&&d!==void 0?d:10,$=(k=_==null?void 0:_.delayMs)!==null&&k!==void 0?k:200,et=createAbortController(_==null?void 0:_.signal);if(typeof b!="function")throw new TonConnectError(`Expected a function, got ${typeof b}`);let tt=0,rt;for(;tt__awaiter(this,void 0,void 0,function*(){if($=at??null,et==null||et.abort(),et=createAbortController(at),et.signal.aborted)throw new TonConnectError("Resource creation was aborted");k=it??null;const dt=b(et.signal,...it);j=dt;const ut=yield dt;if(j!==dt&&ut!==d)throw yield _(ut),new TonConnectError("Resource creation was aborted by a new resource creation");return d=ut,d});return{create:tt,current:()=>d??null,dispose:()=>__awaiter(this,void 0,void 0,function*(){try{const at=d;d=null;const it=j;j=null;try{et==null||et.abort()}catch{}yield Promise.allSettled([at?_(at):Promise.resolve(),it?_(yield it):Promise.resolve()])}catch{}}),recreate:at=>__awaiter(this,void 0,void 0,function*(){const it=d,dt=j,ut=k,ht=$;if(yield delay(at),it===d&&dt===j&&ut===k&&ht===$)return yield tt($,...ut??[]);throw new TonConnectError("Resource recreation was aborted by a new resource creation")})}}function timeout(b,_){const d=_==null?void 0:_.timeout,k=_==null?void 0:_.signal,j=createAbortController(k);return new Promise(($,et)=>{if(j.signal.aborted){et(new TonConnectError("Operation aborted"));return}let tt;typeof d<"u"&&(tt=setTimeout(()=>{j.abort(),et(new TonConnectError(`Timeout after ${d}ms`))},d)),j.signal.addEventListener("abort",()=>{clearTimeout(tt),et(new TonConnectError("Operation aborted"))},{once:!0});const rt={timeout:d,abort:j.signal};b($,et,rt).finally(()=>clearTimeout(tt))})}class BridgeGateway{constructor(_,d,k,j,$){this.bridgeUrl=d,this.sessionId=k,this.listener=j,this.errorsListener=$,this.ssePath="events",this.postPath="message",this.heartbeatMessage="heartbeat",this.defaultTtl=300,this.defaultReconnectDelay=2e3,this.defaultResendDelay=5e3,this.eventSource=createResource$1((et,tt)=>__awaiter(this,void 0,void 0,function*(){const rt={bridgeUrl:this.bridgeUrl,ssePath:this.ssePath,sessionId:this.sessionId,bridgeGatewayStorage:this.bridgeGatewayStorage,errorHandler:this.errorsHandler.bind(this),messageHandler:this.messagesHandler.bind(this),signal:et,openingDeadlineMS:tt};return yield createEventSource(rt)}),et=>__awaiter(this,void 0,void 0,function*(){et.close()})),this.bridgeGatewayStorage=new HttpBridgeGatewayStorage(_,d)}get isReady(){const _=this.eventSource.current();return(_==null?void 0:_.readyState)===EventSource.OPEN}get isClosed(){const _=this.eventSource.current();return(_==null?void 0:_.readyState)!==EventSource.OPEN}get isConnecting(){const _=this.eventSource.current();return(_==null?void 0:_.readyState)===EventSource.CONNECTING}registerSession(_){return __awaiter(this,void 0,void 0,function*(){yield this.eventSource.create(_==null?void 0:_.signal,_==null?void 0:_.openingDeadlineMS)})}send(_,d,k,j){var $;return __awaiter(this,void 0,void 0,function*(){const et={};typeof j=="number"?et.ttl=j:(et.ttl=j==null?void 0:j.ttl,et.signal=j==null?void 0:j.signal,et.attempts=j==null?void 0:j.attempts);const tt=new URL(addPathToUrl(this.bridgeUrl,this.postPath));tt.searchParams.append("client_id",this.sessionId),tt.searchParams.append("to",d),tt.searchParams.append("ttl",((et==null?void 0:et.ttl)||this.defaultTtl).toString()),tt.searchParams.append("topic",k);const rt=Base64.encode(_);yield callForSuccess(nt=>__awaiter(this,void 0,void 0,function*(){const ot=yield this.post(tt,rt,nt.signal);if(!ot.ok)throw new TonConnectError(`Bridge send failed, status ${ot.status}`)}),{attempts:($=et==null?void 0:et.attempts)!==null&&$!==void 0?$:Number.MAX_SAFE_INTEGER,delayMs:this.defaultResendDelay,signal:et==null?void 0:et.signal})})}pause(){this.eventSource.dispose().catch(_=>logError$1(`Bridge pause failed, ${_}`))}unPause(){return __awaiter(this,void 0,void 0,function*(){yield this.eventSource.recreate(0)})}close(){return __awaiter(this,void 0,void 0,function*(){yield this.eventSource.dispose().catch(_=>logError$1(`Bridge close failed, ${_}`))})}setListener(_){this.listener=_}setErrorsListener(_){this.errorsListener=_}post(_,d,k){return __awaiter(this,void 0,void 0,function*(){const j=yield fetch(_,{method:"post",body:d,signal:k});if(!j.ok)throw new TonConnectError(`Bridge send failed, status ${j.status}`);return j})}errorsHandler(_,d){return __awaiter(this,void 0,void 0,function*(){if(this.isConnecting)return _.close(),logDebug$1(`Bridge reconnecting, ${this.defaultReconnectDelay}ms delay`),yield this.eventSource.recreate(this.defaultReconnectDelay);if(this.isReady){try{this.errorsListener(d)}catch{}return}if(this.isClosed)return _.close(),logDebug$1(`Bridge reconnecting, ${this.defaultReconnectDelay}ms delay`),yield this.eventSource.recreate(this.defaultReconnectDelay);throw new TonConnectError("Bridge error, unknown state")})}messagesHandler(_){return __awaiter(this,void 0,void 0,function*(){if(_.data===this.heartbeatMessage||(yield this.bridgeGatewayStorage.storeLastEventId(_.lastEventId),this.isClosed))return;let d;try{d=JSON.parse(_.data)}catch(k){throw new TonConnectError(`Bridge message parse failed, message ${k.data}`)}this.listener(d)})}}function createEventSource(b){return __awaiter(this,void 0,void 0,function*(){return yield timeout((_,d,k)=>__awaiter(this,void 0,void 0,function*(){var j;const et=createAbortController(k.signal).signal;if(et.aborted){d(new TonConnectError("Bridge connection aborted"));return}const tt=new URL(addPathToUrl(b.bridgeUrl,b.ssePath));tt.searchParams.append("client_id",b.sessionId);const rt=yield b.bridgeGatewayStorage.getLastEventId();if(rt&&tt.searchParams.append("last_event_id",rt),et.aborted){d(new TonConnectError("Bridge connection aborted"));return}const nt=new EventSource(tt.toString());nt.onerror=ot=>__awaiter(this,void 0,void 0,function*(){if(et.aborted){nt.close(),d(new TonConnectError("Bridge connection aborted"));return}try{const at=yield b.errorHandler(nt,ot);at!==nt&&nt.close(),at&&at!==nt&&_(at)}catch(at){nt.close(),d(at)}}),nt.onopen=()=>{if(et.aborted){nt.close(),d(new TonConnectError("Bridge connection aborted"));return}_(nt)},nt.onmessage=ot=>{if(et.aborted){nt.close(),d(new TonConnectError("Bridge connection aborted"));return}b.messageHandler(ot)},(j=b.signal)===null||j===void 0||j.addEventListener("abort",()=>{nt.close(),d(new TonConnectError("Bridge connection aborted"))})}),{timeout:b.openingDeadlineMS,signal:b.signal})})}function isPendingConnectionHttp(b){return!("connectEvent"in b)}class BridgeConnectionStorage{constructor(_){this.storage=_,this.storeKey="ton-connect-storage_bridge-connection"}storeConnection(_){return __awaiter(this,void 0,void 0,function*(){if(_.type==="injected")return this.storage.setItem(this.storeKey,JSON.stringify(_));if(!isPendingConnectionHttp(_)){const k={sessionKeyPair:_.session.sessionCrypto.stringifyKeypair(),walletPublicKey:_.session.walletPublicKey,bridgeUrl:_.session.bridgeUrl},j={type:"http",connectEvent:_.connectEvent,session:k,lastWalletEventId:_.lastWalletEventId,nextRpcRequestId:_.nextRpcRequestId};return this.storage.setItem(this.storeKey,JSON.stringify(j))}const d={type:"http",connectionSource:_.connectionSource,sessionCrypto:_.sessionCrypto.stringifyKeypair()};return this.storage.setItem(this.storeKey,JSON.stringify(d))})}removeConnection(){return __awaiter(this,void 0,void 0,function*(){return this.storage.removeItem(this.storeKey)})}getConnection(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.storage.getItem(this.storeKey);if(!_)return null;const d=JSON.parse(_);if(d.type==="injected")return d;if("connectEvent"in d){const k=new SessionCrypto(d.session.sessionKeyPair);return{type:"http",connectEvent:d.connectEvent,lastWalletEventId:d.lastWalletEventId,nextRpcRequestId:d.nextRpcRequestId,session:{sessionCrypto:k,bridgeUrl:d.session.bridgeUrl,walletPublicKey:d.session.walletPublicKey}}}return{type:"http",sessionCrypto:new SessionCrypto(d.sessionCrypto),connectionSource:d.connectionSource}})}getHttpConnection(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.getConnection();if(!_)throw new TonConnectError("Trying to read HTTP connection source while nothing is stored");if(_.type==="injected")throw new TonConnectError("Trying to read HTTP connection source while injected connection is stored");return _})}getHttpPendingConnection(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.getConnection();if(!_)throw new TonConnectError("Trying to read HTTP connection source while nothing is stored");if(_.type==="injected")throw new TonConnectError("Trying to read HTTP connection source while injected connection is stored");if(!isPendingConnectionHttp(_))throw new TonConnectError("Trying to read HTTP-pending connection while http connection is stored");return _})}getInjectedConnection(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.getConnection();if(!_)throw new TonConnectError("Trying to read Injected bridge connection source while nothing is stored");if((_==null?void 0:_.type)==="http")throw new TonConnectError("Trying to read Injected bridge connection source while HTTP connection is stored");return _})}storedConnectionType(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.storage.getItem(this.storeKey);return _?JSON.parse(_).type:null})}storeLastWalletEventId(_){return __awaiter(this,void 0,void 0,function*(){const d=yield this.getConnection();if(d&&d.type==="http"&&!isPendingConnectionHttp(d))return d.lastWalletEventId=_,this.storeConnection(d)})}getLastWalletEventId(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.getConnection();if(_&&"lastWalletEventId"in _)return _.lastWalletEventId})}increaseNextRpcRequestId(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.getConnection();if(_&&"nextRpcRequestId"in _){const d=_.nextRpcRequestId||0;return _.nextRpcRequestId=d+1,this.storeConnection(_)}})}getNextRpcRequestId(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.getConnection();return _&&"nextRpcRequestId"in _&&_.nextRpcRequestId||0})}}const PROTOCOL_VERSION=2;class BridgeProvider{constructor(_,d){this.storage=_,this.walletConnectionSource=d,this.type="http",this.standardUniversalLink="tc://",this.pendingRequests=new Map,this.session=null,this.gateway=null,this.pendingGateways=[],this.listeners=[],this.defaultOpeningDeadlineMS=12e3,this.defaultRetryTimeoutMS=2e3,this.connectionStorage=new BridgeConnectionStorage(_)}static fromStorage(_){return __awaiter(this,void 0,void 0,function*(){const k=yield new BridgeConnectionStorage(_).getHttpConnection();return isPendingConnectionHttp(k)?new BridgeProvider(_,k.connectionSource):new BridgeProvider(_,{bridgeUrl:k.session.bridgeUrl})})}connect(_,d){var k;const j=createAbortController(d==null?void 0:d.signal);(k=this.abortController)===null||k===void 0||k.abort(),this.abortController=j,this.closeGateways();const $=new SessionCrypto;this.session={sessionCrypto:$,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},this.connectionStorage.storeConnection({type:"http",connectionSource:this.walletConnectionSource,sessionCrypto:$}).then(()=>__awaiter(this,void 0,void 0,function*(){j.signal.aborted||(yield callForSuccess(tt=>{var rt;return this.openGateways($,{openingDeadlineMS:(rt=d==null?void 0:d.openingDeadlineMS)!==null&&rt!==void 0?rt:this.defaultOpeningDeadlineMS,signal:tt==null?void 0:tt.signal})},{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:j.signal}))}));const et="universalLink"in this.walletConnectionSource&&this.walletConnectionSource.universalLink?this.walletConnectionSource.universalLink:this.standardUniversalLink;return this.generateUniversalLink(et,_)}restoreConnection(_){var d,k;return __awaiter(this,void 0,void 0,function*(){const j=createAbortController(_==null?void 0:_.signal);if((d=this.abortController)===null||d===void 0||d.abort(),this.abortController=j,j.signal.aborted)return;this.closeGateways();const $=yield this.connectionStorage.getHttpConnection();if(!$||j.signal.aborted)return;const et=(k=_==null?void 0:_.openingDeadlineMS)!==null&&k!==void 0?k:this.defaultOpeningDeadlineMS;if(isPendingConnectionHttp($))return this.session={sessionCrypto:$.sessionCrypto,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},yield this.openGateways($.sessionCrypto,{openingDeadlineMS:et,signal:j==null?void 0:j.signal});if(Array.isArray(this.walletConnectionSource))throw new TonConnectError("Internal error. Connection source is array while WalletConnectionSourceHTTP was expected.");if(this.session=$.session,this.gateway&&(logDebug$1("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new BridgeGateway(this.storage,this.walletConnectionSource.bridgeUrl,$.session.sessionCrypto.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),!j.signal.aborted){this.listeners.forEach(tt=>tt($.connectEvent));try{yield callForSuccess(tt=>this.gateway.registerSession({openingDeadlineMS:et,signal:tt.signal}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:j.signal})}catch{yield this.disconnect({signal:j.signal});return}}})}sendRequest(_,d){const k={};return typeof d=="function"?k.onRequestSent=d:(k.onRequestSent=d==null?void 0:d.onRequestSent,k.signal=d==null?void 0:d.signal,k.attempts=d==null?void 0:d.attempts),new Promise((j,$)=>__awaiter(this,void 0,void 0,function*(){var et;if(!this.gateway||!this.session||!("walletPublicKey"in this.session))throw new TonConnectError("Trying to send bridge request without session");const tt=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),logDebug$1("Send http-bridge request:",Object.assign(Object.assign({},_),{id:tt}));const rt=this.session.sessionCrypto.encrypt(JSON.stringify(Object.assign(Object.assign({},_),{id:tt})),hexToByteArray(this.session.walletPublicKey));try{yield this.gateway.send(rt,this.session.walletPublicKey,_.method,{attempts:k==null?void 0:k.attempts,signal:k==null?void 0:k.signal}),(et=k==null?void 0:k.onRequestSent)===null||et===void 0||et.call(k),this.pendingRequests.set(tt.toString(),j)}catch(nt){$(nt)}}))}closeConnection(){this.closeGateways(),this.listeners=[],this.session=null,this.gateway=null}disconnect(_){return __awaiter(this,void 0,void 0,function*(){return new Promise(d=>__awaiter(this,void 0,void 0,function*(){let k=!1,j=null;const $=()=>{k||(k=!0,this.removeBridgeAndSession().then(d))};try{this.closeGateways();const et=createAbortController(_==null?void 0:_.signal);j=setTimeout(()=>{et.abort()},this.defaultOpeningDeadlineMS),yield this.sendRequest({method:"disconnect",params:[]},{onRequestSent:$,signal:et.signal,attempts:1})}catch(et){logDebug$1("Disconnect error:",et),k||this.removeBridgeAndSession().then(d)}finally{j&&clearTimeout(j),$()}}))})}listen(_){return this.listeners.push(_),()=>this.listeners=this.listeners.filter(d=>d!==_)}pause(){var _;(_=this.gateway)===null||_===void 0||_.pause(),this.pendingGateways.forEach(d=>d.pause())}unPause(){return __awaiter(this,void 0,void 0,function*(){const _=this.pendingGateways.map(d=>d.unPause());this.gateway&&_.push(this.gateway.unPause()),yield Promise.all(_)})}pendingGatewaysListener(_,d,k){return __awaiter(this,void 0,void 0,function*(){if(!this.pendingGateways.includes(_)){yield _.close();return}return this.closeGateways({except:_}),this.gateway&&(logDebug$1("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.session.bridgeUrl=d,this.gateway=_,this.gateway.setErrorsListener(this.gatewayErrorsListener.bind(this)),this.gateway.setListener(this.gatewayListener.bind(this)),this.gatewayListener(k)})}gatewayListener(_){return __awaiter(this,void 0,void 0,function*(){const d=JSON.parse(this.session.sessionCrypto.decrypt(Base64.decode(_.message).toUint8Array(),hexToByteArray(_.from)));if(logDebug$1("Wallet message received:",d),!("event"in d)){const j=d.id.toString(),$=this.pendingRequests.get(j);if(!$){logDebug$1(`Response id ${j} doesn't match any request's id`);return}$(d),this.pendingRequests.delete(j);return}if(d.id!==void 0){const j=yield this.connectionStorage.getLastWalletEventId();if(j!==void 0&&d.id<=j){logError$1(`Received event id (=${d.id}) must be greater than stored last wallet event id (=${j}) `);return}d.event!=="connect"&&(yield this.connectionStorage.storeLastWalletEventId(d.id))}const k=this.listeners;d.event==="connect"&&(yield this.updateSession(d,_.from)),d.event==="disconnect"&&(logDebug$1("Removing bridge and session: received disconnect event"),yield this.removeBridgeAndSession()),k.forEach(j=>j(d))})}gatewayErrorsListener(_){return __awaiter(this,void 0,void 0,function*(){throw new TonConnectError(`Bridge error ${JSON.stringify(_)}`)})}updateSession(_,d){return __awaiter(this,void 0,void 0,function*(){this.session=Object.assign(Object.assign({},this.session),{walletPublicKey:d});const k=_.payload.items.find($=>$.name==="ton_addr"),j=Object.assign(Object.assign({},_),{payload:Object.assign(Object.assign({},_.payload),{items:[k]})});yield this.connectionStorage.storeConnection({type:"http",session:this.session,lastWalletEventId:_.id,connectEvent:j,nextRpcRequestId:0})})}removeBridgeAndSession(){return __awaiter(this,void 0,void 0,function*(){this.closeConnection(),yield this.connectionStorage.removeConnection()})}generateUniversalLink(_,d){return isTelegramUrl(_)?this.generateTGUniversalLink(_,d):this.generateRegularUniversalLink(_,d)}generateRegularUniversalLink(_,d){const k=new URL(_);return k.searchParams.append("v",PROTOCOL_VERSION.toString()),k.searchParams.append("id",this.session.sessionCrypto.sessionId),k.searchParams.append("r",JSON.stringify(d)),k.toString()}generateTGUniversalLink(_,d){const j=this.generateRegularUniversalLink("about:blank",d).split("?")[1],$="tonconnect-"+encodeTelegramUrlParameters(j),et=this.convertToDirectLink(_),tt=new URL(et);return tt.searchParams.append("startapp",$),tt.toString()}convertToDirectLink(_){const d=new URL(_);return d.searchParams.has("attach")&&(d.searchParams.delete("attach"),d.pathname+="/start"),d.toString()}openGateways(_,d){return __awaiter(this,void 0,void 0,function*(){if(Array.isArray(this.walletConnectionSource)){this.pendingGateways.map(k=>k.close().catch()),this.pendingGateways=this.walletConnectionSource.map(k=>{const j=new BridgeGateway(this.storage,k.bridgeUrl,_.sessionId,()=>{},()=>{});return j.setListener($=>this.pendingGatewaysListener(j,k.bridgeUrl,$)),j}),yield Promise.allSettled(this.pendingGateways.map(k=>callForSuccess(j=>this.pendingGateways.some($=>$===k)?k.registerSession({openingDeadlineMS:d==null?void 0:d.openingDeadlineMS,signal:j.signal}):k.close(),{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:d==null?void 0:d.signal})));return}else return this.gateway&&(logDebug$1("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new BridgeGateway(this.storage,this.walletConnectionSource.bridgeUrl,_.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),yield this.gateway.registerSession({openingDeadlineMS:d==null?void 0:d.openingDeadlineMS,signal:d==null?void 0:d.signal})})}closeGateways(_){var d;(d=this.gateway)===null||d===void 0||d.close(),this.pendingGateways.filter(k=>k!==(_==null?void 0:_.except)).forEach(k=>k.close()),this.pendingGateways=[]}}function hasProperty(b,_){return hasProperties(b,[_])}function hasProperties(b,_){return!b||typeof b!="object"?!1:_.every(d=>d in b)}function isJSBridgeWithMetadata(b){try{return!hasProperty(b,"tonconnect")||!hasProperty(b.tonconnect,"walletInfo")?!1:hasProperties(b.tonconnect.walletInfo,["name","app_name","image","about_url","platforms"])}catch{return!1}}let InMemoryStorage$1=class Xo{constructor(){this.storage={}}static getInstance(){return Xo.instance||(Xo.instance=new Xo),Xo.instance}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(_){var d;return(d=this.storage[_])!==null&&d!==void 0?d:null}key(_){var d;const k=Object.keys(this.storage);return _<0||_>=k.length?null:(d=k[_])!==null&&d!==void 0?d:null}removeItem(_){delete this.storage[_]}setItem(_,d){this.storage[_]=d}};function getWindow$2(){if(!(typeof window>"u"))return window}function tryGetWindowKeys(){const b=getWindow$2();if(!b)return[];try{return Object.keys(b)}catch{return[]}}function getDocument(){if(!(typeof document>"u"))return document}function getWebPageManifest(){var b;const _=(b=getWindow$2())===null||b===void 0?void 0:b.location.origin;return _?_+"/tonconnect-manifest.json":""}function tryGetLocalStorage$1(){if(isLocalStorageAvailable$1())return localStorage;if(isNodeJs$1())throw new TonConnectError("`localStorage` is unavailable, but it is required for TonConnect. For more details, see https://github.com/ton-connect/sdk/tree/main/packages/sdk#init-connector");return InMemoryStorage$1.getInstance()}function isLocalStorageAvailable$1(){try{return typeof localStorage<"u"}catch{return!1}}function isNodeJs$1(){return typeof process<"u"&&process.versions!=null&&process.versions.node!=null}class InjectedProvider{constructor(_,d){this.injectedWalletKey=d,this.type="injected",this.unsubscribeCallback=null,this.listenSubscriptions=!1,this.listeners=[];const k=InjectedProvider.window;if(!InjectedProvider.isWindowContainsWallet(k,d))throw new WalletNotInjectedError;this.connectionStorage=new BridgeConnectionStorage(_),this.injectedWallet=k[d].tonconnect}static fromStorage(_){return __awaiter(this,void 0,void 0,function*(){const k=yield new BridgeConnectionStorage(_).getInjectedConnection();return new InjectedProvider(_,k.jsBridgeKey)})}static isWalletInjected(_){return InjectedProvider.isWindowContainsWallet(this.window,_)}static isInsideWalletBrowser(_){return InjectedProvider.isWindowContainsWallet(this.window,_)?this.window[_].tonconnect.isWalletBrowser:!1}static getCurrentlyInjectedWallets(){return this.window?tryGetWindowKeys().filter(([k,j])=>isJSBridgeWithMetadata(j)).map(([k,j])=>({name:j.tonconnect.walletInfo.name,appName:j.tonconnect.walletInfo.app_name,aboutUrl:j.tonconnect.walletInfo.about_url,imageUrl:j.tonconnect.walletInfo.image,tondns:j.tonconnect.walletInfo.tondns,jsBridgeKey:k,injected:!0,embedded:j.tonconnect.isWalletBrowser,platforms:j.tonconnect.walletInfo.platforms})):[]}static isWindowContainsWallet(_,d){return!!_&&d in _&&typeof _[d]=="object"&&"tonconnect"in _[d]}connect(_){this._connect(PROTOCOL_VERSION,_)}restoreConnection(){return __awaiter(this,void 0,void 0,function*(){try{logDebug$1("Injected Provider restoring connection...");const _=yield this.injectedWallet.restoreConnection();logDebug$1("Injected Provider restoring connection response",_),_.event==="connect"?(this.makeSubscriptions(),this.listeners.forEach(d=>d(_))):yield this.connectionStorage.removeConnection()}catch(_){yield this.connectionStorage.removeConnection(),console.error(_)}})}closeConnection(){this.listenSubscriptions&&this.injectedWallet.disconnect(),this.closeAllListeners()}disconnect(){return __awaiter(this,void 0,void 0,function*(){return new Promise(_=>{const d=()=>{this.closeAllListeners(),this.connectionStorage.removeConnection().then(_)};try{this.injectedWallet.disconnect(),d()}catch(k){logDebug$1(k),this.sendRequest({method:"disconnect",params:[]},d)}})})}closeAllListeners(){var _;this.listenSubscriptions=!1,this.listeners=[],(_=this.unsubscribeCallback)===null||_===void 0||_.call(this)}listen(_){return this.listeners.push(_),()=>this.listeners=this.listeners.filter(d=>d!==_)}sendRequest(_,d){var k;return __awaiter(this,void 0,void 0,function*(){const j={};typeof d=="function"?j.onRequestSent=d:(j.onRequestSent=d==null?void 0:d.onRequestSent,j.signal=d==null?void 0:d.signal);const $=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),logDebug$1("Send injected-bridge request:",Object.assign(Object.assign({},_),{id:$}));const et=this.injectedWallet.send(Object.assign(Object.assign({},_),{id:$}));return et.then(tt=>logDebug$1("Wallet message received:",tt)),(k=j==null?void 0:j.onRequestSent)===null||k===void 0||k.call(j),et})}_connect(_,d){return __awaiter(this,void 0,void 0,function*(){try{logDebug$1(`Injected Provider connect request: protocolVersion: ${_}, message:`,d);const k=yield this.injectedWallet.connect(_,d);logDebug$1("Injected Provider connect response:",k),k.event==="connect"&&(yield this.updateSession(),this.makeSubscriptions()),this.listeners.forEach(j=>j(k))}catch(k){logDebug$1("Injected Provider connect error:",k);const j={event:"connect_error",payload:{code:0,message:k==null?void 0:k.toString()}};this.listeners.forEach($=>$(j))}})}makeSubscriptions(){this.listenSubscriptions=!0,this.unsubscribeCallback=this.injectedWallet.listen(_=>{logDebug$1("Wallet message received:",_),this.listenSubscriptions&&this.listeners.forEach(d=>d(_)),_.event==="disconnect"&&this.disconnect()})}updateSession(){return this.connectionStorage.storeConnection({type:"injected",jsBridgeKey:this.injectedWalletKey,nextRpcRequestId:0})}}InjectedProvider.window=getWindow$2();class DefaultStorage{constructor(){this.localStorage=tryGetLocalStorage$1()}getItem(_){return __awaiter(this,void 0,void 0,function*(){return this.localStorage.getItem(_)})}removeItem(_){return __awaiter(this,void 0,void 0,function*(){this.localStorage.removeItem(_)})}setItem(_,d){return __awaiter(this,void 0,void 0,function*(){this.localStorage.setItem(_,d)})}}function isWalletInfoCurrentlyInjected(b){return isWalletInfoInjectable(b)&&b.injected}function isWalletInfoCurrentlyEmbedded(b){return isWalletInfoCurrentlyInjected(b)&&b.embedded}function isWalletInfoInjectable(b){return"jsBridgeKey"in b}function isWalletInfoRemote(b){return"bridgeUrl"in b}const FALLBACK_WALLETS_LIST=[{app_name:"telegram-wallet",name:"Wallet",image:"https://wallet.tg/images/logo-288.png",about_url:"https://wallet.tg/",universal_url:"https://t.me/wallet?attach=wallet",bridge:[{type:"sse",url:"https://bridge.tonapi.io/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"tonkeeper",name:"Tonkeeper",image:"https://tonkeeper.com/assets/tonconnect-icon.png",tondns:"tonkeeper.ton",about_url:"https://tonkeeper.com",universal_url:"https://app.tonkeeper.com/ton-connect",deepLink:"tonkeeper-tc://",bridge:[{type:"sse",url:"https://bridge.tonapi.io/bridge"},{type:"js",key:"tonkeeper"}],platforms:["ios","android","chrome","firefox","macos"]},{app_name:"mytonwallet",name:"MyTonWallet",image:"https://mytonwallet.io/icon-256.png",about_url:"https://mytonwallet.io",universal_url:"https://connect.mytonwallet.org",bridge:[{type:"js",key:"mytonwallet"},{type:"sse",url:"https://tonconnectbridge.mytonwallet.org/bridge/"}],platforms:["chrome","windows","macos","linux","ios","android","firefox"]},{app_name:"openmask",name:"OpenMask",image:"https://raw.githubusercontent.com/OpenProduct/openmask-extension/main/public/openmask-logo-288.png",about_url:"https://www.openmask.app/",bridge:[{type:"js",key:"openmask"}],platforms:["chrome"]},{app_name:"tonhub",name:"Tonhub",image:"https://tonhub.com/tonconnect_logo.png",about_url:"https://tonhub.com",universal_url:"https://tonhub.com/ton-connect",bridge:[{type:"js",key:"tonhub"},{type:"sse",url:"https://connect.tonhubapi.com/tonconnect"}],platforms:["ios","android"]},{app_name:"dewallet",name:"DeWallet",image:"https://app.delabwallet.com/logo_black.png",about_url:"https://delabwallet.com",bridge:[{type:"js",key:"dewallet"}],platforms:["chrome"]},{app_name:"xtonwallet",name:"XTONWallet",image:"https://xtonwallet.com/assets/img/icon-256-back.png",about_url:"https://xtonwallet.com",bridge:[{type:"js",key:"xtonwallet"}],platforms:["chrome","firefox"]},{app_name:"tonwallet",name:"TON Wallet",image:"https://wallet.ton.org/assets/ui/qr-logo.png",about_url:"https://chrome.google.com/webstore/detail/ton-wallet/nphplpgoakhhjchkkhmiggakijnkhfnd",bridge:[{type:"js",key:"tonwallet"}],platforms:["chrome"]}];class WalletsListManager{constructor(_){this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null,this.walletsListSource="https://raw.githubusercontent.com/ton-blockchain/wallets-list/main/wallets-v2.json",_!=null&&_.walletsListSource&&(this.walletsListSource=_.walletsListSource),_!=null&&_.cacheTTLMs&&(this.cacheTTLMs=_.cacheTTLMs)}getWallets(){return __awaiter(this,void 0,void 0,function*(){return this.cacheTTLMs&&this.walletsListCacheCreationTimestamp&&Date.now()>this.walletsListCacheCreationTimestamp+this.cacheTTLMs&&(this.walletsListCache=null),this.walletsListCache||(this.walletsListCache=this.fetchWalletsList(),this.walletsListCache.then(()=>{this.walletsListCacheCreationTimestamp=Date.now()}).catch(()=>{this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null})),this.walletsListCache})}getEmbeddedWallet(){return __awaiter(this,void 0,void 0,function*(){const d=(yield this.getWallets()).filter(isWalletInfoCurrentlyEmbedded);return d.length!==1?null:d[0]})}fetchWalletsList(){return __awaiter(this,void 0,void 0,function*(){let _=[];try{if(_=yield(yield fetch(this.walletsListSource)).json(),!Array.isArray(_))throw new FetchWalletsError("Wrong wallets list format, wallets list must be an array.");const j=_.filter($=>!this.isCorrectWalletConfigDTO($));j.length&&(logError$1(`Wallet(s) ${j.map($=>$.name).join(", ")} config format is wrong. They were removed from the wallets list.`),_=_.filter($=>this.isCorrectWalletConfigDTO($)))}catch(k){logError$1(k),_=FALLBACK_WALLETS_LIST}let d=[];try{d=InjectedProvider.getCurrentlyInjectedWallets()}catch(k){logError$1(k)}return this.mergeWalletsLists(this.walletConfigDTOListToWalletConfigList(_),d)})}walletConfigDTOListToWalletConfigList(_){return _.map(d=>{const j={name:d.name,appName:d.app_name,imageUrl:d.image,aboutUrl:d.about_url,tondns:d.tondns,platforms:d.platforms};return d.bridge.forEach($=>{if($.type==="sse"&&(j.bridgeUrl=$.url,j.universalLink=d.universal_url,j.deepLink=d.deepLink),$.type==="js"){const et=$.key;j.jsBridgeKey=et,j.injected=InjectedProvider.isWalletInjected(et),j.embedded=InjectedProvider.isInsideWalletBrowser(et)}}),j})}mergeWalletsLists(_,d){return[...new Set(_.concat(d).map(j=>j.name)).values()].map(j=>{const $=_.find(tt=>tt.name===j),et=d.find(tt=>tt.name===j);return Object.assign(Object.assign({},$&&Object.assign({},$)),et&&Object.assign({},et))})}isCorrectWalletConfigDTO(_){if(!_||typeof _!="object")return!1;const d="name"in _,k="app_name"in _,j="image"in _,$="about_url"in _,et="platforms"in _;if(!d||!j||!$||!et||!k||!_.platforms||!Array.isArray(_.platforms)||!_.platforms.length||!("bridge"in _)||!Array.isArray(_.bridge)||!_.bridge.length)return!1;const tt=_.bridge;if(tt.some(ot=>!ot||typeof ot!="object"||!("type"in ot)))return!1;const rt=tt.find(ot=>ot.type==="sse");if(rt&&(!("url"in rt)||!rt.url||!_.universal_url))return!1;const nt=tt.find(ot=>ot.type==="js");return!(nt&&(!("key"in nt)||!nt.key))}}class WalletNotSupportFeatureError extends TonConnectError{get info(){return"Wallet doesn't support requested feature method."}constructor(..._){super(..._),Object.setPrototypeOf(this,WalletNotSupportFeatureError.prototype)}}function checkSendTransactionSupport(b,_){const d=b.includes("SendTransaction"),k=b.find(j=>j&&typeof j=="object"&&j.name==="SendTransaction");if(!d&&!k)throw new WalletNotSupportFeatureError("Wallet doesn't support SendTransaction feature.");if(k&&k.maxMessages!==void 0){if(k.maxMessages<_.requiredMessagesNumber)throw new WalletNotSupportFeatureError(`Wallet is not able to handle such SendTransaction request. Max support messages number is ${k.maxMessages}, but ${_.requiredMessagesNumber} is required.`);return}logWarning$1("Connected wallet didn't provide information about max allowed messages in the SendTransaction request. Request may be rejected by the wallet.")}function createRequestVersionEvent(){return{type:"request-version"}}function createResponseVersionEvent(b){return{type:"response-version",version:b}}function createVersionInfo(b){return{ton_connect_sdk_lib:b.ton_connect_sdk_lib,ton_connect_ui_lib:b.ton_connect_ui_lib}}function createConnectionInfo(b,_){var d,k,j,$,et,tt,rt,nt;const at=((d=_==null?void 0:_.connectItems)===null||d===void 0?void 0:d.tonProof)&&"proof"in _.connectItems.tonProof?"ton_proof":"ton_addr";return{wallet_address:(j=(k=_==null?void 0:_.account)===null||k===void 0?void 0:k.address)!==null&&j!==void 0?j:null,wallet_type:($=_==null?void 0:_.device.appName)!==null&&$!==void 0?$:null,wallet_version:(et=_==null?void 0:_.device.appVersion)!==null&&et!==void 0?et:null,auth_type:at,custom_data:Object.assign({chain_id:(rt=(tt=_==null?void 0:_.account)===null||tt===void 0?void 0:tt.chain)!==null&&rt!==void 0?rt:null,provider:(nt=_==null?void 0:_.provider)!==null&&nt!==void 0?nt:null},createVersionInfo(b))}}function createConnectionStartedEvent(b){return{type:"connection-started",custom_data:createVersionInfo(b)}}function createConnectionCompletedEvent(b,_){return Object.assign({type:"connection-completed",is_success:!0},createConnectionInfo(b,_))}function createConnectionErrorEvent(b,_,d){return{type:"connection-error",is_success:!1,error_message:_,error_code:d??null,custom_data:createVersionInfo(b)}}function createConnectionRestoringStartedEvent(b){return{type:"connection-restoring-started",custom_data:createVersionInfo(b)}}function createConnectionRestoringCompletedEvent(b,_){return Object.assign({type:"connection-restoring-completed",is_success:!0},createConnectionInfo(b,_))}function createConnectionRestoringErrorEvent(b,_){return{type:"connection-restoring-error",is_success:!1,error_message:_,custom_data:createVersionInfo(b)}}function createTransactionInfo(b,_){var d,k,j,$;return{valid_until:(d=String(_.validUntil))!==null&&d!==void 0?d:null,from:($=(k=_.from)!==null&&k!==void 0?k:(j=b==null?void 0:b.account)===null||j===void 0?void 0:j.address)!==null&&$!==void 0?$:null,messages:_.messages.map(et=>{var tt,rt;return{address:(tt=et.address)!==null&&tt!==void 0?tt:null,amount:(rt=et.amount)!==null&&rt!==void 0?rt:null}})}}function createTransactionSentForSignatureEvent(b,_,d){return Object.assign(Object.assign({type:"transaction-sent-for-signature"},createConnectionInfo(b,_)),createTransactionInfo(_,d))}function createTransactionSignedEvent(b,_,d,k){return Object.assign(Object.assign({type:"transaction-signed",is_success:!0,signed_transaction:k.boc},createConnectionInfo(b,_)),createTransactionInfo(_,d))}function createTransactionSigningFailedEvent(b,_,d,k,j){return Object.assign(Object.assign({type:"transaction-signing-failed",is_success:!1,error_message:k,error_code:j??null},createConnectionInfo(b,_)),createTransactionInfo(_,d))}function createDisconnectionEvent(b,_,d){return Object.assign({type:"disconnection",scope:d},createConnectionInfo(b,_))}class BrowserEventDispatcher{constructor(){this.window=getWindow$2()}dispatchEvent(_,d){var k;return __awaiter(this,void 0,void 0,function*(){const j=new CustomEvent(_,{detail:d});(k=this.window)===null||k===void 0||k.dispatchEvent(j)})}addEventListener(_,d,k){var j;return __awaiter(this,void 0,void 0,function*(){return(j=this.window)===null||j===void 0||j.addEventListener(_,d,k),()=>{var $;return($=this.window)===null||$===void 0?void 0:$.removeEventListener(_,d)}})}}class TonConnectTracker{constructor(_){var d;this.eventPrefix="ton-connect-",this.tonConnectUiVersion=null,this.eventDispatcher=(d=_==null?void 0:_.eventDispatcher)!==null&&d!==void 0?d:new BrowserEventDispatcher,this.tonConnectSdkVersion=_.tonConnectSdkVersion,this.init().catch()}get version(){return createVersionInfo({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return __awaiter(this,void 0,void 0,function*(){try{yield this.setRequestVersionHandler(),this.tonConnectUiVersion=yield this.requestTonConnectUiVersion()}catch{}})}setRequestVersionHandler(){return __awaiter(this,void 0,void 0,function*(){yield this.eventDispatcher.addEventListener("ton-connect-request-version",()=>__awaiter(this,void 0,void 0,function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-response-version",createResponseVersionEvent(this.tonConnectSdkVersion))}))})}requestTonConnectUiVersion(){return __awaiter(this,void 0,void 0,function*(){return new Promise((_,d)=>__awaiter(this,void 0,void 0,function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-ui-response-version",k=>{_(k.detail.version)},{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-ui-request-version",createRequestVersionEvent())}catch(k){d(k)}}))})}dispatchUserActionEvent(_){try{this.eventDispatcher.dispatchEvent(`${this.eventPrefix}${_.type}`,_).catch()}catch{}}trackConnectionStarted(..._){try{const d=createConnectionStartedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionCompleted(..._){try{const d=createConnectionCompletedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionError(..._){try{const d=createConnectionErrorEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionRestoringStarted(..._){try{const d=createConnectionRestoringStartedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionRestoringCompleted(..._){try{const d=createConnectionRestoringCompletedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionRestoringError(..._){try{const d=createConnectionRestoringErrorEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackDisconnection(..._){try{const d=createDisconnectionEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackTransactionSentForSignature(..._){try{const d=createTransactionSentForSignatureEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackTransactionSigned(..._){try{const d=createTransactionSignedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackTransactionSigningFailed(..._){try{const d=createTransactionSigningFailedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}}const tonConnectSdkVersion="3.0.4-beta.0";class TonConnect{constructor(_){if(this.walletsList=new WalletsListManager,this._wallet=null,this.provider=null,this.statusChangeSubscriptions=[],this.statusChangeErrorSubscriptions=[],this.dappSettings={manifestUrl:(_==null?void 0:_.manifestUrl)||getWebPageManifest(),storage:(_==null?void 0:_.storage)||new DefaultStorage},this.walletsList=new WalletsListManager({walletsListSource:_==null?void 0:_.walletsListSource,cacheTTLMs:_==null?void 0:_.walletsListCacheTTLMs}),this.tracker=new TonConnectTracker({eventDispatcher:_==null?void 0:_.eventDispatcher,tonConnectSdkVersion}),!this.dappSettings.manifestUrl)throw new DappMetadataError("Dapp tonconnect-manifest.json must be specified if window.location.origin is undefined. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest");this.bridgeConnectionStorage=new BridgeConnectionStorage(this.dappSettings.storage),_!=null&&_.disableAutoPauseConnection||this.addWindowFocusAndBlurSubscriptions()}static getWallets(){return this.walletsList.getWallets()}get connected(){return this._wallet!==null}get account(){var _;return((_=this._wallet)===null||_===void 0?void 0:_.account)||null}get wallet(){return this._wallet}set wallet(_){this._wallet=_,this.statusChangeSubscriptions.forEach(d=>d(this._wallet))}getWallets(){return this.walletsList.getWallets()}onStatusChange(_,d){return this.statusChangeSubscriptions.push(_),d&&this.statusChangeErrorSubscriptions.push(d),()=>{this.statusChangeSubscriptions=this.statusChangeSubscriptions.filter(k=>k!==_),d&&(this.statusChangeErrorSubscriptions=this.statusChangeErrorSubscriptions.filter(k=>k!==d))}}connect(_,d){var k,j;const $={};if(typeof d=="object"&&"tonProof"in d&&($.request=d),typeof d=="object"&&("openingDeadlineMS"in d||"signal"in d||"request"in d)&&($.request=d==null?void 0:d.request,$.openingDeadlineMS=d==null?void 0:d.openingDeadlineMS,$.signal=d==null?void 0:d.signal),this.connected)throw new WalletAlreadyConnectedError;const et=createAbortController($==null?void 0:$.signal);if((k=this.abortController)===null||k===void 0||k.abort(),this.abortController=et,et.signal.aborted)throw new TonConnectError("Connection was aborted");return(j=this.provider)===null||j===void 0||j.closeConnection(),this.provider=this.createProvider(_),et.signal.addEventListener("abort",()=>{var tt;(tt=this.provider)===null||tt===void 0||tt.closeConnection(),this.provider=null}),this.tracker.trackConnectionStarted(),this.provider.connect(this.createConnectRequest($==null?void 0:$.request),{openingDeadlineMS:$==null?void 0:$.openingDeadlineMS,signal:et.signal})}restoreConnection(_){var d,k;return __awaiter(this,void 0,void 0,function*(){this.tracker.trackConnectionRestoringStarted();const j=createAbortController(_==null?void 0:_.signal);if((d=this.abortController)===null||d===void 0||d.abort(),this.abortController=j,j.signal.aborted){this.tracker.trackConnectionRestoringError("Connection restoring was aborted");return}const[$,et]=yield Promise.all([this.bridgeConnectionStorage.storedConnectionType(),this.walletsList.getEmbeddedWallet()]);if(j.signal.aborted){this.tracker.trackConnectionRestoringError("Connection restoring was aborted");return}let tt=null;try{switch($){case"http":tt=yield BridgeProvider.fromStorage(this.dappSettings.storage);break;case"injected":tt=yield InjectedProvider.fromStorage(this.dappSettings.storage);break;default:if(et)tt=this.createProvider(et);else return}}catch{this.tracker.trackConnectionRestoringError("Provider is not restored"),yield this.bridgeConnectionStorage.removeConnection(),tt==null||tt.closeConnection(),tt=null;return}if(j.signal.aborted){tt==null||tt.closeConnection(),this.tracker.trackConnectionRestoringError("Connection restoring was aborted");return}if(!tt){logError$1("Provider is not restored"),this.tracker.trackConnectionRestoringError("Provider is not restored");return}(k=this.provider)===null||k===void 0||k.closeConnection(),this.provider=tt,tt.listen(this.walletEventsListener.bind(this));const rt=()=>{this.tracker.trackConnectionRestoringError("Connection restoring was aborted"),tt==null||tt.closeConnection(),tt=null};return j.signal.addEventListener("abort",rt),yield callForSuccess(nt=>__awaiter(this,void 0,void 0,function*(){yield tt==null?void 0:tt.restoreConnection({openingDeadlineMS:_==null?void 0:_.openingDeadlineMS,signal:nt.signal}),j.signal.removeEventListener("abort",rt),this.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):this.tracker.trackConnectionRestoringError("Connection restoring failed")}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:5e3,signal:_==null?void 0:_.signal})})}sendTransaction(_,d){return __awaiter(this,void 0,void 0,function*(){const k={};typeof d=="function"?k.onRequestSent=d:(k.onRequestSent=d==null?void 0:d.onRequestSent,k.signal=d==null?void 0:d.signal);const j=createAbortController(k==null?void 0:k.signal);if(j.signal.aborted)throw new TonConnectError("Transaction sending was aborted");this.checkConnection(),checkSendTransactionSupport(this.wallet.device.features,{requiredMessagesNumber:_.messages.length}),this.tracker.trackTransactionSentForSignature(this.wallet,_);const{validUntil:$}=_,et=__rest(_,["validUntil"]),tt=_.from||this.account.address,rt=_.network||this.account.chain,nt=yield this.provider.sendRequest(sendTransactionParser.convertToRpcRequest(Object.assign(Object.assign({},et),{valid_until:$,from:tt,network:rt})),{onRequestSent:k.onRequestSent,signal:j.signal});if(sendTransactionParser.isError(nt))return this.tracker.trackTransactionSigningFailed(this.wallet,_,nt.error.message,nt.error.code),sendTransactionParser.parseAndThrowError(nt);const ot=sendTransactionParser.convertFromRpcResponse(nt);return this.tracker.trackTransactionSigned(this.wallet,_,ot),ot})}disconnect(_){var d;return __awaiter(this,void 0,void 0,function*(){if(!this.connected)throw new WalletNotConnectedError;const k=createAbortController(_==null?void 0:_.signal),j=this.abortController;if(this.abortController=k,k.signal.aborted)throw new TonConnectError("Disconnect was aborted");this.onWalletDisconnected("dapp"),yield(d=this.provider)===null||d===void 0?void 0:d.disconnect({signal:k.signal}),j==null||j.abort()})}pauseConnection(){var _;((_=this.provider)===null||_===void 0?void 0:_.type)==="http"&&this.provider.pause()}unPauseConnection(){var _;return((_=this.provider)===null||_===void 0?void 0:_.type)!=="http"?Promise.resolve():this.provider.unPause()}addWindowFocusAndBlurSubscriptions(){const _=getDocument();if(_)try{_.addEventListener("visibilitychange",()=>{_.hidden?this.pauseConnection():this.unPauseConnection().catch()})}catch(d){logError$1("Cannot subscribe to the document.visibilitychange: ",d)}}createProvider(_){let d;return!Array.isArray(_)&&isWalletConnectionSourceJS(_)?d=new InjectedProvider(this.dappSettings.storage,_.jsBridgeKey):d=new BridgeProvider(this.dappSettings.storage,_),d.listen(this.walletEventsListener.bind(this)),d}walletEventsListener(_){switch(_.event){case"connect":this.onWalletConnected(_.payload);break;case"connect_error":this.onWalletConnectError(_.payload);break;case"disconnect":this.onWalletDisconnected("wallet")}}onWalletConnected(_){const d=_.items.find($=>$.name==="ton_addr"),k=_.items.find($=>$.name==="ton_proof");if(!d)throw new TonConnectError("ton_addr connection item was not found");const j={device:_.device,provider:this.provider.type,account:{address:d.address,chain:d.network,walletStateInit:d.walletStateInit,publicKey:d.publicKey}};k&&(j.connectItems={tonProof:k}),this.wallet=j,this.tracker.trackConnectionCompleted(j)}onWalletConnectError(_){const d=connectErrorsParser.parseError(_);if(this.statusChangeErrorSubscriptions.forEach(k=>k(d)),logDebug$1(d),this.tracker.trackConnectionError(_.message,_.code),d instanceof ManifestNotFoundError||d instanceof ManifestContentErrorError)throw logError$1(d),d}onWalletDisconnected(_){this.tracker.trackDisconnection(this.wallet,_),this.wallet=null}checkConnection(){if(!this.connected)throw new WalletNotConnectedError}createConnectRequest(_){const d=[{name:"ton_addr"}];return _!=null&&_.tonProof&&d.push({name:"ton_proof",payload:_.tonProof}),{manifestUrl:this.dappSettings.manifestUrl,items:d}}}TonConnect.walletsList=new WalletsListManager;TonConnect.isWalletInjected=b=>InjectedProvider.isWalletInjected(b);TonConnect.isInsideWalletBrowser=b=>InjectedProvider.isInsideWalletBrowser(b);const noBounceableTag=81,testOnlyTag=128;function toUserFriendlyAddress(b,_=!1){const{wc:d,hex:k}=parseHexAddress(b);let j=noBounceableTag;_&&(j|=testOnlyTag);const $=new Int8Array(34);$[0]=j,$[1]=d,$.set(k,2);const et=new Uint8Array(36);return et.set($),et.set(crc16($),34),Base64.encode(et).replace(/\+/g,"-").replace(/\//g,"_")}function parseHexAddress(b){if(!b.includes(":"))throw new WrongAddressError(`Wrong address ${b}. Address must include ":".`);const _=b.split(":");if(_.length!==2)throw new WrongAddressError(`Wrong address ${b}. Address must include ":" only once.`);const d=parseInt(_[0]);if(d!==0&&d!==-1)throw new WrongAddressError(`Wrong address ${b}. WC must be eq 0 or -1, but ${d} received.`);const k=_[1];if((k==null?void 0:k.length)!==64)throw new WrongAddressError(`Wrong address ${b}. Hex part must be 64bytes length, but ${k==null?void 0:k.length} received.`);return{wc:d,hex:hexToBytes(k)}}function crc16(b){let d=0;const k=new Uint8Array(b.length+2);k.set(b);for(let j of k){let $=128;for(;$>0;)d<<=1,j&$&&(d+=1),$>>=1,d>65535&&(d&=65535,d^=4129)}return new Uint8Array([Math.floor(d/256),d%256])}const toByteMap={};for(let b=0;b<=255;b++){let _=b.toString(16);_.length<2&&(_="0"+_),toByteMap[_]=b}function hexToBytes(b){b=b.toLowerCase();const _=b.length;if(_%2!==0)throw new ParseHexError("Hex string must have length a multiple of 2: "+b);const d=_/2,k=new Uint8Array(d);for(let j=0;j0?an.length===2?typeof an[1]==tt?this[an[0]]=an[1].call(this,Sn):this[an[0]]=an[1]:an.length===3?typeof an[1]===tt&&!(an[1].exec&&an[1].test)?this[an[0]]=Sn?an[1].call(this,Sn,an[2]):k:this[an[0]]=Sn?Sn.replace(an[1],an[2]):k:an.length===4&&(this[an[0]]=Sn?an[3].call(this,Sn.replace(an[1],an[2])):k):this[an]=Sn||k;bt+=2}},Un=function(bn,Yt){for(var bt in Yt)if(typeof Yt[bt]===nt&&Yt[bt].length>0){for(var pt=0;pt2&&(sn[it]="iPad",sn[ut]=st),sn},this.getEngine=function(){var sn={};return sn[dt]=k,sn[ft]=k,Fn.call(sn,pt,Ut.engine),sn},this.getOS=function(){var sn={};return sn[dt]=k,sn[ft]=k,Fn.call(sn,pt,Ut.os),an&&!sn[dt]&&yt&&yt.platform!="Unknown"&&(sn[dt]=yt.platform.replace(/chrome os/i,An).replace(/macos/i,mn)),sn},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return pt},this.setUA=function(sn){return pt=typeof sn===ot&&sn.length>Mt?Ln(sn,Mt):sn,this},this.setUA(pt),this};Nn.VERSION=j,Nn.BROWSER=kn([dt,ft,at]),Nn.CPU=kn([lt]),Nn.DEVICE=kn([it,ht,ut,ct,gt,Ct,st,xt,wt]),Nn.ENGINE=Nn.OS=kn([dt,ft]),b.exports&&(_=b.exports=Nn),_.UAParser=Nn;var Wn=typeof d!==rt&&(d.jQuery||d.Zepto);if(Wn&&!Wn.ua){var Vn=new Nn;Wn.ua=Vn.getResult(),Wn.ua.get=function(){return Vn.getUA()},Wn.ua.set=function(bn){Vn.setUA(bn);var Yt=Vn.getResult();for(var bt in Yt)Wn.ua[bt]=Yt[bt]}}})(typeof window=="object"?window:commonjsGlobal)})(uaParser,uaParser.exports);var uaParserExports=uaParser.exports;const UAParser=getDefaultExportFromCjs(uaParserExports);var isMergeableObject=function b(_){return isNonNullObject(_)&&!isSpecial(_)};function isNonNullObject(b){return!!b&&typeof b=="object"}function isSpecial(b){var _=Object.prototype.toString.call(b);return _==="[object RegExp]"||_==="[object Date]"||isReactElement(b)}var canUseSymbol=typeof Symbol=="function"&&Symbol.for,REACT_ELEMENT_TYPE=canUseSymbol?Symbol.for("react.element"):60103;function isReactElement(b){return b.$$typeof===REACT_ELEMENT_TYPE}function emptyTarget(b){return Array.isArray(b)?[]:{}}function cloneUnlessOtherwiseSpecified(b,_){return _.clone!==!1&&_.isMergeableObject(b)?deepmerge(emptyTarget(b),b,_):b}function defaultArrayMerge(b,_,d){return b.concat(_).map(function(k){return cloneUnlessOtherwiseSpecified(k,d)})}function getMergeFunction(b,_){if(!_.customMerge)return deepmerge;var d=_.customMerge(b);return typeof d=="function"?d:deepmerge}function getEnumerableOwnPropertySymbols(b){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(b).filter(function(_){return Object.propertyIsEnumerable.call(b,_)}):[]}function getKeys(b){return Object.keys(b).concat(getEnumerableOwnPropertySymbols(b))}function propertyIsOnObject(b,_){try{return _ in b}catch{return!1}}function propertyIsUnsafe(b,_){return propertyIsOnObject(b,_)&&!(Object.hasOwnProperty.call(b,_)&&Object.propertyIsEnumerable.call(b,_))}function mergeObject(b,_,d){var k={};return d.isMergeableObject(b)&&getKeys(b).forEach(function(j){k[j]=cloneUnlessOtherwiseSpecified(b[j],d)}),getKeys(_).forEach(function(j){propertyIsUnsafe(b,j)||(propertyIsOnObject(b,j)&&d.isMergeableObject(_[j])?k[j]=getMergeFunction(j,d)(b[j],_[j],d):k[j]=cloneUnlessOtherwiseSpecified(_[j],d))}),k}function deepmerge(b,_,d){d=d||{},d.arrayMerge=d.arrayMerge||defaultArrayMerge,d.isMergeableObject=d.isMergeableObject||isMergeableObject,d.cloneUnlessOtherwiseSpecified=cloneUnlessOtherwiseSpecified;var k=Array.isArray(_),j=Array.isArray(b),$=k===j;return $?k?d.arrayMerge(b,_,d):mergeObject(b,_,d):cloneUnlessOtherwiseSpecified(_,d)}deepmerge.all=function b(_,d){if(!Array.isArray(_))throw new Error("first argument should be an array");return _.reduce(function(k,j){return deepmerge(k,j,d)},{})};var deepmerge_1=deepmerge,cjs=deepmerge_1;const deepmerge$1=getDefaultExportFromCjs(cjs);var classnames={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames @@ -730,9 +730,9 @@ PERFORMANCE OF THIS SOFTWARE. filter: drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.08)); background-color: ${b=>b.theme.colors.background.segment}; -`;var qrcode$1={exports:{}};(function(b,_){var d=function(){var k=function(Ct,xt){var wt=236,Mt=17,kt=Ct,_t=$[xt],Tt=null,At=0,Et=null,Ot=[],Lt={},Pt=function(dn,An){At=kt*4+17,Tt=function(mn){for(var jn=new Array(mn),kn=0;kn=7&&Vt(dn),Et==null&&(Et=_n(kt,_t,Ot)),In(Et,An)},Zt=function(dn,An){for(var mn=-1;mn<=7;mn+=1)if(!(dn+mn<=-1||At<=dn+mn))for(var jn=-1;jn<=7;jn+=1)An+jn<=-1||At<=An+jn||(0<=mn&&mn<=6&&(jn==0||jn==6)||0<=jn&&jn<=6&&(mn==0||mn==6)||2<=mn&&mn<=4&&2<=jn&&jn<=4?Tt[dn+mn][An+jn]=!0:Tt[dn+mn][An+jn]=!1)},rn=function(){for(var dn=0,An=0,mn=0;mn<8;mn+=1){Pt(!0,mn);var jn=tt.getLostPoint(Lt);(mn==0||dn>jn)&&(dn=jn,An=mn)}return An},nn=function(){for(var dn=8;dn>mn&1)==1;Tt[Math.floor(mn/3)][mn%3+At-8-3]=jn}for(var mn=0;mn<18;mn+=1){var jn=!dn&&(An>>mn&1)==1;Tt[mn%3+At-8-3][Math.floor(mn/3)]=jn}},fn=function(dn,An){for(var mn=_t<<3|An,jn=tt.getBCHTypeInfo(mn),kn=0;kn<15;kn+=1){var vn=!dn&&(jn>>kn&1)==1;kn<6?Tt[kn][8]=vn:kn<8?Tt[kn+1][8]=vn:Tt[At-15+kn][8]=vn}for(var kn=0;kn<15;kn+=1){var vn=!dn&&(jn>>kn&1)==1;kn<8?Tt[8][At-kn-1]=vn:kn<9?Tt[8][15-kn-1+1]=vn:Tt[8][15-kn-1]=vn}Tt[At-8][8]=!dn},In=function(dn,An){for(var mn=-1,jn=At-1,kn=7,vn=0,En=tt.getMaskFunction(An),gn=At-1;gn>0;gn-=2)for(gn==6&&(gn-=1);;){for(var Ln=0;Ln<2;Ln+=1)if(Tt[jn][gn-Ln]==null){var Fn=!1;vn>>kn&1)==1);var Un=En(jn,gn-Ln);Un&&(Fn=!Fn),Tt[jn][gn-Ln]=Fn,kn-=1,kn==-1&&(vn+=1,kn=7)}if(jn+=mn,jn<0||At<=jn){jn-=mn,mn=-mn;break}}},On=function(dn,An){for(var mn=0,jn=0,kn=0,vn=new Array(An.length),En=new Array(An.length),gn=0;gn=0?wn.getAt(Nn):0}}for(var zn=0,Un=0;Ungn*8)throw"code length overflow. ("+kn.getLengthInBits()+">"+gn*8+")";for(kn.getLengthInBits()+4<=gn*8&&kn.put(0,4);kn.getLengthInBits()%8!=0;)kn.putBit(!1);for(;!(kn.getLengthInBits()>=gn*8||(kn.put(wt,8),kn.getLengthInBits()>=gn*8));)kn.put(Mt,8);return On(kn,jn)};Lt.addData=function(dn,An){An=An||"Byte";var mn=null;switch(An){case"Numeric":mn=it(dn);break;case"Alphanumeric":mn=dt(dn);break;case"Byte":mn=ut(dn);break;case"Kanji":mn=ht(dn);break;default:throw"mode:"+An}Ot.push(mn),Et=null},Lt.isDark=function(dn,An){if(dn<0||At<=dn||An<0||At<=An)throw dn+","+An;return Tt[dn][An]},Lt.getModuleCount=function(){return At},Lt.make=function(){if(kt<1){for(var dn=1;dn<40;dn++){for(var An=ot.getRSBlocks(dn,_t),mn=at(),jn=0;jn"u"?dn*4:An;var mn="";mn+='";for(var kn=0;kn';mn+=""}return mn+="",mn+="
    ",mn},Lt.createSvgTag=function(dn,An,mn,jn){var kn={};typeof arguments[0]=="object"&&(kn=arguments[0],dn=kn.cellSize,An=kn.margin,mn=kn.alt,jn=kn.title),dn=dn||2,An=typeof An>"u"?dn*4:An,mn=typeof mn=="string"?{text:mn}:mn||{},mn.text=mn.text||null,mn.id=mn.text?mn.id||"qrcode-description":null,jn=typeof jn=="string"?{text:jn}:jn||{},jn.text=jn.text||null,jn.id=jn.text?jn.id||"qrcode-title":null;var vn=Lt.getModuleCount()*dn+An*2,En,gn,Ln,Fn,Un="",Mn;for(Mn="l"+dn+",0 0,"+dn+" -"+dn+",0 0,-"+dn+"z ",Un+=''+Pn(jn.text)+"":"",Un+=mn.text?''+Pn(mn.text)+"":"",Un+='',Un+='"u"?dn*4:An;var mn=Lt.getModuleCount()*dn+An*2,jn=An,kn=mn-An;return st(mn,mn,function(vn,En){if(jn<=vn&&vn"u"?dn*4:An;var jn=Lt.getModuleCount()*dn+An*2,kn="";return kn+="",kn};var Pn=function(dn){for(var An="",mn=0;mn":An+=">";break;case"&":An+="&";break;case'"':An+=""";break;default:An+=jn;break}}return An},Yn=function(dn){var An=1;dn=typeof dn>"u"?An*2:dn;var mn=Lt.getModuleCount()*An+dn*2,jn=dn,kn=mn-dn,vn,En,gn,Ln,Fn,Un={"██":"█","█ ":"▀"," █":"▄"," ":" "},Mn={"██":"▀","█ ":"▀"," █":" "," ":" "},Wn="";for(vn=0;vn=kn?Mn[Fn]:Un[Fn];Wn+=` -`}return mn%2&&dn>0?Wn.substring(0,Wn.length-mn-1)+Array(mn+1).join("▀"):Wn.substring(0,Wn.length-1)};return Lt.createASCII=function(dn,An){if(dn=dn||1,dn<2)return Yn(An);dn-=1,An=typeof An>"u"?dn*2:An;var mn=Lt.getModuleCount()*dn+An*2,jn=An,kn=mn-An,vn,En,gn,Ln,Fn=Array(dn+1).join("██"),Un=Array(dn+1).join(" "),Mn="",Wn="";for(vn=0;vn>>8),_t.push(Et&255)):_t.push(Mt)}}return _t}};var j={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},$={L:1,M:0,Q:3,H:2},et={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},tt=function(){var Ct=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],xt=1335,wt=7973,Mt=21522,kt={},_t=function(Tt){for(var At=0;Tt!=0;)At+=1,Tt>>>=1;return At};return kt.getBCHTypeInfo=function(Tt){for(var At=Tt<<10;_t(At)-_t(xt)>=0;)At^=xt<<_t(At)-_t(xt);return(Tt<<10|At)^Mt},kt.getBCHTypeNumber=function(Tt){for(var At=Tt<<12;_t(At)-_t(wt)>=0;)At^=wt<<_t(At)-_t(wt);return Tt<<12|At},kt.getPatternPosition=function(Tt){return Ct[Tt-1]},kt.getMaskFunction=function(Tt){switch(Tt){case et.PATTERN000:return function(At,Et){return(At+Et)%2==0};case et.PATTERN001:return function(At,Et){return At%2==0};case et.PATTERN010:return function(At,Et){return Et%3==0};case et.PATTERN011:return function(At,Et){return(At+Et)%3==0};case et.PATTERN100:return function(At,Et){return(Math.floor(At/2)+Math.floor(Et/3))%2==0};case et.PATTERN101:return function(At,Et){return At*Et%2+At*Et%3==0};case et.PATTERN110:return function(At,Et){return(At*Et%2+At*Et%3)%2==0};case et.PATTERN111:return function(At,Et){return(At*Et%3+(At+Et)%2)%2==0};default:throw"bad maskPattern:"+Tt}},kt.getErrorCorrectPolynomial=function(Tt){for(var At=nt([1],0),Et=0;Et5&&(Et+=3+Pt-5)}for(var Ot=0;Ot=256;)kt-=255;return Ct[kt]},Mt}();function nt(Ct,xt){if(typeof Ct.length>"u")throw Ct.length+"/"+xt;var wt=function(){for(var kt=0;kt"u")throw"bad rs block @ typeNumber:"+kt+"/errorCorrectionLevel:"+_t;for(var At=Tt.length/3,Et=[],Ot=0;Ot>>7-Mt%8&1)==1},wt.put=function(Mt,kt){for(var _t=0;_t>>kt-_t-1&1)==1)},wt.getLengthInBits=function(){return xt},wt.putBit=function(Mt){var kt=Math.floor(xt/8);Ct.length<=kt&&Ct.push(0),Mt&&(Ct[kt]|=128>>>xt%8),xt+=1},wt},it=function(Ct){var xt=j.MODE_NUMBER,wt=Ct,Mt={};Mt.getMode=function(){return xt},Mt.getLength=function(Tt){return wt.length},Mt.write=function(Tt){for(var At=wt,Et=0;Et+2>>8&255)*192+(Et&255),_t.put(Et,13),At+=2}if(At>>8)},xt.writeBytes=function(wt,Mt,kt){Mt=Mt||0,kt=kt||wt.length;for(var _t=0;_t0&&(wt+=","),wt+=Ct[Mt];return wt+="]",wt},xt},lt=function(){var Ct=0,xt=0,wt=0,Mt="",kt={},_t=function(At){Mt+=String.fromCharCode(Tt(At&63))},Tt=function(At){if(!(At<0)){if(At<26)return 65+At;if(At<52)return 97+(At-26);if(At<62)return 48+(At-52);if(At==62)return 43;if(At==63)return 47}throw"n:"+At};return kt.writeByte=function(At){for(Ct=Ct<<8|At&255,xt+=8,wt+=1;xt>=6;)_t(Ct>>>xt-6),xt-=6},kt.flush=function(){if(xt>0&&(_t(Ct<<6-xt),Ct=0,xt=0),wt%3!=0)for(var At=3-wt%3,Et=0;Et=xt.length){if(kt==0)return-1;throw"unexpected end of file./"+kt}var At=xt.charAt(wt);if(wt+=1,At=="=")return kt=0,-1;if(At.match(/^\s$/))continue;Mt=Mt<<6|Tt(At.charCodeAt(0)),kt+=6}var Et=Mt>>>kt-8&255;return kt-=8,Et};var Tt=function(At){if(65<=At&&At<=90)return At-65;if(97<=At&&At<=122)return At-97+26;if(48<=At&&At<=57)return At-48+52;if(At==43)return 62;if(At==47)return 63;throw"c:"+At};return _t},gt=function(Ct,xt){var wt=Ct,Mt=xt,kt=new Array(Ct*xt),_t={};_t.setPixel=function(Ot,Lt,Pt){kt[Lt*wt+Ot]=Pt},_t.write=function(Ot){Ot.writeString("GIF87a"),Ot.writeShort(wt),Ot.writeShort(Mt),Ot.writeByte(128),Ot.writeByte(0),Ot.writeByte(0),Ot.writeByte(0),Ot.writeByte(0),Ot.writeByte(0),Ot.writeByte(255),Ot.writeByte(255),Ot.writeByte(255),Ot.writeString(","),Ot.writeShort(0),Ot.writeShort(0),Ot.writeShort(wt),Ot.writeShort(Mt),Ot.writeByte(0);var Lt=2,Pt=At(Lt);Ot.writeByte(Lt);for(var Zt=0;Pt.length-Zt>255;)Ot.writeByte(255),Ot.writeBytes(Pt,Zt,255),Zt+=255;Ot.writeByte(Pt.length-Zt),Ot.writeBytes(Pt,Zt,Pt.length-Zt),Ot.writeByte(0),Ot.writeString(";")};var Tt=function(Ot){var Lt=Ot,Pt=0,Zt=0,rn={};return rn.write=function(nn,Qt){if(nn>>>Qt)throw"length over";for(;Pt+Qt>=8;)Lt.writeByte(255&(nn<>>=8-Pt,Zt=0,Pt=0;Zt=nn<0&&Lt.writeByte(Zt)},rn},At=function(Ot){for(var Lt=1<>6,128|rt&63):rt<55296||rt>=57344?et.push(224|rt>>12,128|rt>>6&63,128|rt&63):(tt++,rt=65536+((rt&1023)<<10|$.charCodeAt(tt)&1023),et.push(240|rt>>18,128|rt>>12&63,128|rt>>6&63,128|rt&63))}return et}return j(k)}})(),function(k){b.exports=k()}(function(){return d})})(qrcode$1);const qrcode=qrcode$1.exports;function copyToClipboard(b){return __async(this,null,function*(){try{if(!(navigator!=null&&navigator.clipboard))throw new TonConnectUIError("Clipboard API not available");return yield navigator.clipboard.writeText(b)}catch{}fallbackCopyTextToClipboard(b)})}function fallbackCopyTextToClipboard(b){const _=document.createElement("textarea");_.value=b,_.style.top="0",_.style.left="0",_.style.position="fixed",document.body.appendChild(_),_.focus(),_.select();try{document.execCommand("copy")}finally{document.body.removeChild(_)}}const _tmpl$$t=template$1("
    "),QRCode=b=>{let _,d,k;const[j,$]=createSignal(!1),[et,tt]=createSignal(picSizeDefault);createEffect(()=>{const it=qrcode(0,"L");it.addData(b.sourceUrl),it.make(),_.innerHTML=it.createSvgTag(4,0);const dt=_.firstElementChild.clientWidth,ut=Math.round(qrNormalSize/dt*1e5)/1e5;if(k){const ht=Math.ceil(imgSizeDefault/(ut*4))*4,ft=toPx(Math.ceil((dt-ht)/(2*4))*4);k.style.top=ft,k.style.left=ft,k.style.height=toPx(ht),k.style.width=toPx(ht),tt(Math.round(picSizeDefault/ut))}d.style.transform=`scale(${ut})`});let rt=null;return createComponent(QrCodeBackground,{get class(){return b.class},onClick:()=>{$(!0),copyToClipboard(b.sourceUrl),rt!=null&&clearTimeout(rt),rt=setTimeout(()=>$(!1),1500)},get children(){return[createComponent(QrCodeWrapper$2,{ref(ot){const at=d;typeof at=="function"?at(ot):d=ot},get children(){return[(()=>{const ot=_tmpl$$t.cloneNode(!0),at=_;return typeof at=="function"?use(at,ot):_=ot,ot})(),createComponent(Show,{get when(){return b.imageUrl},get children(){return createComponent(ImageBackground,{ref(ot){const at=k;typeof at=="function"?at(ot):k=ot},get children(){return createComponent(ImageStyled$3,{get src(){return b.imageUrl},alt:"",get size(){return et()}})}})}})]}}),createComponent(Transition,{onBeforeEnter:ot=>{animate(ot,[{opacity:0,transform:"translate(-50%, 44px)"},{opacity:1,transform:"translate(-50%, 0)"}],{duration:150,easing:"ease-out"})},onExit:(ot,at)=>{animate(ot,[{opacity:1,transform:"translate(-50%, 0)"},{opacity:0,transform:"translate(-50%, 44px)"}],{duration:150,easing:"ease-out"}).finished.then(()=>{at()})},get children(){return createComponent(Show,{get when(){return j()&&!b.disableCopy},get children(){return createComponent(CopiedBoxStyled,{get children(){return[createComponent(SuccessIcon,{size:"xs"}),createComponent(Text$1,{translationKey:"common.linkCopied",children:"Link Copied"})]}})}})}}),createComponent(Show,{get when(){return!b.disableCopy},get children(){return createComponent(CopyIconButton,{get children(){return createComponent(CopyLightIcon,{})}})}})]}})};var deepReadObject=(b,_,d)=>{const k=_.trim().split(".").reduce((j,$)=>j?j[$]:void 0,b);return k!==void 0?k:d},template=(b,_,d=/{{(.*?)}}/g)=>b.replace(d,(k,j)=>deepReadObject(_,j,"")),createI18nContext=(b={},_=navigator.language in b?navigator.language:Object.keys(b)[0])=>{const[d,k]=createSignal(_),[j,$]=createStore(b);return[(rt,nt,ot)=>{const at=deepReadObject(j[d()],rt,ot||"");return typeof at=="function"?at(nt):typeof at=="string"?template(at,nt||{}):at},{add(rt,nt){$(rt,ot=>Object.assign(ot||{},nt))},locale:rt=>rt?k(rt):d(),dict:rt=>deepReadObject(j,rt)}]},I18nContext=createContext({}),useI18n=()=>useContext(I18nContext);const TextStyled$3=styled.div` +`;var qrcode$1={exports:{}};(function(b,_){var d=function(){var k=function(Ct,xt){var wt=236,Mt=17,kt=Ct,_t=$[xt],Tt=null,At=0,Et=null,Ot=[],Lt={},Bt=function(dn,An){At=kt*4+17,Tt=function(mn){for(var jn=new Array(mn),kn=0;kn=7&&Vt(dn),Et==null&&(Et=_n(kt,_t,Ot)),In(Et,An)},Zt=function(dn,An){for(var mn=-1;mn<=7;mn+=1)if(!(dn+mn<=-1||At<=dn+mn))for(var jn=-1;jn<=7;jn+=1)An+jn<=-1||At<=An+jn||(0<=mn&&mn<=6&&(jn==0||jn==6)||0<=jn&&jn<=6&&(mn==0||mn==6)||2<=mn&&mn<=4&&2<=jn&&jn<=4?Tt[dn+mn][An+jn]=!0:Tt[dn+mn][An+jn]=!1)},rn=function(){for(var dn=0,An=0,mn=0;mn<8;mn+=1){Bt(!0,mn);var jn=tt.getLostPoint(Lt);(mn==0||dn>jn)&&(dn=jn,An=mn)}return An},nn=function(){for(var dn=8;dn>mn&1)==1;Tt[Math.floor(mn/3)][mn%3+At-8-3]=jn}for(var mn=0;mn<18;mn+=1){var jn=!dn&&(An>>mn&1)==1;Tt[mn%3+At-8-3][Math.floor(mn/3)]=jn}},fn=function(dn,An){for(var mn=_t<<3|An,jn=tt.getBCHTypeInfo(mn),kn=0;kn<15;kn+=1){var vn=!dn&&(jn>>kn&1)==1;kn<6?Tt[kn][8]=vn:kn<8?Tt[kn+1][8]=vn:Tt[At-15+kn][8]=vn}for(var kn=0;kn<15;kn+=1){var vn=!dn&&(jn>>kn&1)==1;kn<8?Tt[8][At-kn-1]=vn:kn<9?Tt[8][15-kn-1+1]=vn:Tt[8][15-kn-1]=vn}Tt[At-8][8]=!dn},In=function(dn,An){for(var mn=-1,jn=At-1,kn=7,vn=0,En=tt.getMaskFunction(An),gn=At-1;gn>0;gn-=2)for(gn==6&&(gn-=1);;){for(var Ln=0;Ln<2;Ln+=1)if(Tt[jn][gn-Ln]==null){var Fn=!1;vn>>kn&1)==1);var Un=En(jn,gn-Ln);Un&&(Fn=!Fn),Tt[jn][gn-Ln]=Fn,kn-=1,kn==-1&&(vn+=1,kn=7)}if(jn+=mn,jn<0||At<=jn){jn-=mn,mn=-mn;break}}},On=function(dn,An){for(var mn=0,jn=0,kn=0,vn=new Array(An.length),En=new Array(An.length),gn=0;gn=0?wn.getAt(Nn):0}}for(var Wn=0,Un=0;Ungn*8)throw"code length overflow. ("+kn.getLengthInBits()+">"+gn*8+")";for(kn.getLengthInBits()+4<=gn*8&&kn.put(0,4);kn.getLengthInBits()%8!=0;)kn.putBit(!1);for(;!(kn.getLengthInBits()>=gn*8||(kn.put(wt,8),kn.getLengthInBits()>=gn*8));)kn.put(Mt,8);return On(kn,jn)};Lt.addData=function(dn,An){An=An||"Byte";var mn=null;switch(An){case"Numeric":mn=it(dn);break;case"Alphanumeric":mn=dt(dn);break;case"Byte":mn=ut(dn);break;case"Kanji":mn=ht(dn);break;default:throw"mode:"+An}Ot.push(mn),Et=null},Lt.isDark=function(dn,An){if(dn<0||At<=dn||An<0||At<=An)throw dn+","+An;return Tt[dn][An]},Lt.getModuleCount=function(){return At},Lt.make=function(){if(kt<1){for(var dn=1;dn<40;dn++){for(var An=ot.getRSBlocks(dn,_t),mn=at(),jn=0;jn"u"?dn*4:An;var mn="";mn+='";for(var kn=0;kn';mn+=""}return mn+="",mn+="
    ",mn},Lt.createSvgTag=function(dn,An,mn,jn){var kn={};typeof arguments[0]=="object"&&(kn=arguments[0],dn=kn.cellSize,An=kn.margin,mn=kn.alt,jn=kn.title),dn=dn||2,An=typeof An>"u"?dn*4:An,mn=typeof mn=="string"?{text:mn}:mn||{},mn.text=mn.text||null,mn.id=mn.text?mn.id||"qrcode-description":null,jn=typeof jn=="string"?{text:jn}:jn||{},jn.text=jn.text||null,jn.id=jn.text?jn.id||"qrcode-title":null;var vn=Lt.getModuleCount()*dn+An*2,En,gn,Ln,Fn,Un="",Mn;for(Mn="l"+dn+",0 0,"+dn+" -"+dn+",0 0,-"+dn+"z ",Un+=''+Bn(jn.text)+"":"",Un+=mn.text?''+Bn(mn.text)+"":"",Un+='',Un+='"u"?dn*4:An;var mn=Lt.getModuleCount()*dn+An*2,jn=An,kn=mn-An;return st(mn,mn,function(vn,En){if(jn<=vn&&vn"u"?dn*4:An;var jn=Lt.getModuleCount()*dn+An*2,kn="";return kn+="",kn};var Bn=function(dn){for(var An="",mn=0;mn":An+=">";break;case"&":An+="&";break;case'"':An+=""";break;default:An+=jn;break}}return An},Yn=function(dn){var An=1;dn=typeof dn>"u"?An*2:dn;var mn=Lt.getModuleCount()*An+dn*2,jn=dn,kn=mn-dn,vn,En,gn,Ln,Fn,Un={"██":"█","█ ":"▀"," █":"▄"," ":" "},Mn={"██":"▀","█ ":"▀"," █":" "," ":" "},zn="";for(vn=0;vn=kn?Mn[Fn]:Un[Fn];zn+=` +`}return mn%2&&dn>0?zn.substring(0,zn.length-mn-1)+Array(mn+1).join("▀"):zn.substring(0,zn.length-1)};return Lt.createASCII=function(dn,An){if(dn=dn||1,dn<2)return Yn(An);dn-=1,An=typeof An>"u"?dn*2:An;var mn=Lt.getModuleCount()*dn+An*2,jn=An,kn=mn-An,vn,En,gn,Ln,Fn=Array(dn+1).join("██"),Un=Array(dn+1).join(" "),Mn="",zn="";for(vn=0;vn>>8),_t.push(Et&255)):_t.push(Mt)}}return _t}};var j={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},$={L:1,M:0,Q:3,H:2},et={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},tt=function(){var Ct=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],xt=1335,wt=7973,Mt=21522,kt={},_t=function(Tt){for(var At=0;Tt!=0;)At+=1,Tt>>>=1;return At};return kt.getBCHTypeInfo=function(Tt){for(var At=Tt<<10;_t(At)-_t(xt)>=0;)At^=xt<<_t(At)-_t(xt);return(Tt<<10|At)^Mt},kt.getBCHTypeNumber=function(Tt){for(var At=Tt<<12;_t(At)-_t(wt)>=0;)At^=wt<<_t(At)-_t(wt);return Tt<<12|At},kt.getPatternPosition=function(Tt){return Ct[Tt-1]},kt.getMaskFunction=function(Tt){switch(Tt){case et.PATTERN000:return function(At,Et){return(At+Et)%2==0};case et.PATTERN001:return function(At,Et){return At%2==0};case et.PATTERN010:return function(At,Et){return Et%3==0};case et.PATTERN011:return function(At,Et){return(At+Et)%3==0};case et.PATTERN100:return function(At,Et){return(Math.floor(At/2)+Math.floor(Et/3))%2==0};case et.PATTERN101:return function(At,Et){return At*Et%2+At*Et%3==0};case et.PATTERN110:return function(At,Et){return(At*Et%2+At*Et%3)%2==0};case et.PATTERN111:return function(At,Et){return(At*Et%3+(At+Et)%2)%2==0};default:throw"bad maskPattern:"+Tt}},kt.getErrorCorrectPolynomial=function(Tt){for(var At=nt([1],0),Et=0;Et5&&(Et+=3+Bt-5)}for(var Ot=0;Ot=256;)kt-=255;return Ct[kt]},Mt}();function nt(Ct,xt){if(typeof Ct.length>"u")throw Ct.length+"/"+xt;var wt=function(){for(var kt=0;kt"u")throw"bad rs block @ typeNumber:"+kt+"/errorCorrectionLevel:"+_t;for(var At=Tt.length/3,Et=[],Ot=0;Ot>>7-Mt%8&1)==1},wt.put=function(Mt,kt){for(var _t=0;_t>>kt-_t-1&1)==1)},wt.getLengthInBits=function(){return xt},wt.putBit=function(Mt){var kt=Math.floor(xt/8);Ct.length<=kt&&Ct.push(0),Mt&&(Ct[kt]|=128>>>xt%8),xt+=1},wt},it=function(Ct){var xt=j.MODE_NUMBER,wt=Ct,Mt={};Mt.getMode=function(){return xt},Mt.getLength=function(Tt){return wt.length},Mt.write=function(Tt){for(var At=wt,Et=0;Et+2>>8&255)*192+(Et&255),_t.put(Et,13),At+=2}if(At>>8)},xt.writeBytes=function(wt,Mt,kt){Mt=Mt||0,kt=kt||wt.length;for(var _t=0;_t0&&(wt+=","),wt+=Ct[Mt];return wt+="]",wt},xt},lt=function(){var Ct=0,xt=0,wt=0,Mt="",kt={},_t=function(At){Mt+=String.fromCharCode(Tt(At&63))},Tt=function(At){if(!(At<0)){if(At<26)return 65+At;if(At<52)return 97+(At-26);if(At<62)return 48+(At-52);if(At==62)return 43;if(At==63)return 47}throw"n:"+At};return kt.writeByte=function(At){for(Ct=Ct<<8|At&255,xt+=8,wt+=1;xt>=6;)_t(Ct>>>xt-6),xt-=6},kt.flush=function(){if(xt>0&&(_t(Ct<<6-xt),Ct=0,xt=0),wt%3!=0)for(var At=3-wt%3,Et=0;Et=xt.length){if(kt==0)return-1;throw"unexpected end of file./"+kt}var At=xt.charAt(wt);if(wt+=1,At=="=")return kt=0,-1;if(At.match(/^\s$/))continue;Mt=Mt<<6|Tt(At.charCodeAt(0)),kt+=6}var Et=Mt>>>kt-8&255;return kt-=8,Et};var Tt=function(At){if(65<=At&&At<=90)return At-65;if(97<=At&&At<=122)return At-97+26;if(48<=At&&At<=57)return At-48+52;if(At==43)return 62;if(At==47)return 63;throw"c:"+At};return _t},gt=function(Ct,xt){var wt=Ct,Mt=xt,kt=new Array(Ct*xt),_t={};_t.setPixel=function(Ot,Lt,Bt){kt[Lt*wt+Ot]=Bt},_t.write=function(Ot){Ot.writeString("GIF87a"),Ot.writeShort(wt),Ot.writeShort(Mt),Ot.writeByte(128),Ot.writeByte(0),Ot.writeByte(0),Ot.writeByte(0),Ot.writeByte(0),Ot.writeByte(0),Ot.writeByte(255),Ot.writeByte(255),Ot.writeByte(255),Ot.writeString(","),Ot.writeShort(0),Ot.writeShort(0),Ot.writeShort(wt),Ot.writeShort(Mt),Ot.writeByte(0);var Lt=2,Bt=At(Lt);Ot.writeByte(Lt);for(var Zt=0;Bt.length-Zt>255;)Ot.writeByte(255),Ot.writeBytes(Bt,Zt,255),Zt+=255;Ot.writeByte(Bt.length-Zt),Ot.writeBytes(Bt,Zt,Bt.length-Zt),Ot.writeByte(0),Ot.writeString(";")};var Tt=function(Ot){var Lt=Ot,Bt=0,Zt=0,rn={};return rn.write=function(nn,Qt){if(nn>>>Qt)throw"length over";for(;Bt+Qt>=8;)Lt.writeByte(255&(nn<>>=8-Bt,Zt=0,Bt=0;Zt=nn<0&&Lt.writeByte(Zt)},rn},At=function(Ot){for(var Lt=1<>6,128|rt&63):rt<55296||rt>=57344?et.push(224|rt>>12,128|rt>>6&63,128|rt&63):(tt++,rt=65536+((rt&1023)<<10|$.charCodeAt(tt)&1023),et.push(240|rt>>18,128|rt>>12&63,128|rt>>6&63,128|rt&63))}return et}return j(k)}})(),function(k){b.exports=k()}(function(){return d})})(qrcode$1);const qrcode=qrcode$1.exports;function copyToClipboard(b){return __async(this,null,function*(){try{if(!(navigator!=null&&navigator.clipboard))throw new TonConnectUIError("Clipboard API not available");return yield navigator.clipboard.writeText(b)}catch{}fallbackCopyTextToClipboard(b)})}function fallbackCopyTextToClipboard(b){const _=document.createElement("textarea");_.value=b,_.style.top="0",_.style.left="0",_.style.position="fixed",document.body.appendChild(_),_.focus(),_.select();try{document.execCommand("copy")}finally{document.body.removeChild(_)}}const _tmpl$$t=template$1("
    "),QRCode=b=>{let _,d,k;const[j,$]=createSignal(!1),[et,tt]=createSignal(picSizeDefault);createEffect(()=>{const it=qrcode(0,"L");it.addData(b.sourceUrl),it.make(),_.innerHTML=it.createSvgTag(4,0);const dt=_.firstElementChild.clientWidth,ut=Math.round(qrNormalSize/dt*1e5)/1e5;if(k){const ht=Math.ceil(imgSizeDefault/(ut*4))*4,ft=toPx(Math.ceil((dt-ht)/(2*4))*4);k.style.top=ft,k.style.left=ft,k.style.height=toPx(ht),k.style.width=toPx(ht),tt(Math.round(picSizeDefault/ut))}d.style.transform=`scale(${ut})`});let rt=null;return createComponent(QrCodeBackground,{get class(){return b.class},onClick:()=>{$(!0),copyToClipboard(b.sourceUrl),rt!=null&&clearTimeout(rt),rt=setTimeout(()=>$(!1),1500)},get children(){return[createComponent(QrCodeWrapper$2,{ref(ot){const at=d;typeof at=="function"?at(ot):d=ot},get children(){return[(()=>{const ot=_tmpl$$t.cloneNode(!0),at=_;return typeof at=="function"?use(at,ot):_=ot,ot})(),createComponent(Show,{get when(){return b.imageUrl},get children(){return createComponent(ImageBackground,{ref(ot){const at=k;typeof at=="function"?at(ot):k=ot},get children(){return createComponent(ImageStyled$3,{get src(){return b.imageUrl},alt:"",get size(){return et()}})}})}})]}}),createComponent(Transition,{onBeforeEnter:ot=>{animate(ot,[{opacity:0,transform:"translate(-50%, 44px)"},{opacity:1,transform:"translate(-50%, 0)"}],{duration:150,easing:"ease-out"})},onExit:(ot,at)=>{animate(ot,[{opacity:1,transform:"translate(-50%, 0)"},{opacity:0,transform:"translate(-50%, 44px)"}],{duration:150,easing:"ease-out"}).finished.then(()=>{at()})},get children(){return createComponent(Show,{get when(){return j()&&!b.disableCopy},get children(){return createComponent(CopiedBoxStyled,{get children(){return[createComponent(SuccessIcon,{size:"xs"}),createComponent(Text$1,{translationKey:"common.linkCopied",children:"Link Copied"})]}})}})}}),createComponent(Show,{get when(){return!b.disableCopy},get children(){return createComponent(CopyIconButton,{get children(){return createComponent(CopyLightIcon,{})}})}})]}})};var deepReadObject=(b,_,d)=>{const k=_.trim().split(".").reduce((j,$)=>j?j[$]:void 0,b);return k!==void 0?k:d},template=(b,_,d=/{{(.*?)}}/g)=>b.replace(d,(k,j)=>deepReadObject(_,j,"")),createI18nContext=(b={},_=navigator.language in b?navigator.language:Object.keys(b)[0])=>{const[d,k]=createSignal(_),[j,$]=createStore(b);return[(rt,nt,ot)=>{const at=deepReadObject(j[d()],rt,ot||"");return typeof at=="function"?at(nt):typeof at=="string"?template(at,nt||{}):at},{add(rt,nt){$(rt,ot=>Object.assign(ot||{},nt))},locale:rt=>rt?k(rt):d(),dict:rt=>deepReadObject(j,rt)}]},I18nContext=createContext({}),useI18n=()=>useContext(I18nContext);const TextStyled$3=styled.div` font-style: normal; font-weight: ${b=>b.fontWeight}; font-size: ${b=>b.fontSize}; @@ -1459,16 +1459,16 @@ PERFORMANCE OF THIS SOFTWARE. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var hasRequiredReactJsxRuntime_production_min;function requireReactJsxRuntime_production_min(){if(hasRequiredReactJsxRuntime_production_min)return reactJsxRuntime_production_min;hasRequiredReactJsxRuntime_production_min=1;var b=require$$0,_=Symbol.for("react.element"),d=Symbol.for("react.fragment"),k=Object.prototype.hasOwnProperty,j=b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$={key:!0,ref:!0,__self:!0,__source:!0};function et(tt,rt,nt){var ot,at={},it=null,dt=null;nt!==void 0&&(it=""+nt),rt.key!==void 0&&(it=""+rt.key),rt.ref!==void 0&&(dt=rt.ref);for(ot in rt)k.call(rt,ot)&&!$.hasOwnProperty(ot)&&(at[ot]=rt[ot]);if(tt&&tt.defaultProps)for(ot in rt=tt.defaultProps,rt)at[ot]===void 0&&(at[ot]=rt[ot]);return{$$typeof:_,type:tt,key:it,ref:dt,props:at,_owner:j.current}}return reactJsxRuntime_production_min.Fragment=d,reactJsxRuntime_production_min.jsx=et,reactJsxRuntime_production_min.jsxs=et,reactJsxRuntime_production_min}(function(b){b.exports=requireReactJsxRuntime_production_min()})(jsxRuntime);const jsx=jsxRuntime.exports.jsx;function isClientSide(){return typeof window<"u"}function isServerSide(){return!isClientSide()}const TonConnectUIContext=reactExports.createContext(null);let tonConnectUI=null;const TonConnectUIProvider=b=>{var _=b,{children:d}=_,k=__objRest(_,["children"]);return isClientSide()&&!tonConnectUI&&(tonConnectUI=new TonConnectUI(k)),jsx(TonConnectUIContext.Provider,{value:tonConnectUI,children:d})},TonConnectUIProvider$1=reactExports.memo(TonConnectUIProvider);class TonConnectUIReactError extends TonConnectUIError{constructor(..._){super(..._),Object.setPrototypeOf(this,TonConnectUIReactError.prototype)}}class TonConnectProviderNotSetError extends TonConnectUIReactError{constructor(..._){super(..._),Object.setPrototypeOf(this,TonConnectProviderNotSetError.prototype)}}function checkProvider(b){if(!b)throw new TonConnectProviderNotSetError("You should add on the top of the app to use TonConnect");return!0}function useTonConnectUI(){const b=reactExports.useContext(TonConnectUIContext),_=reactExports.useCallback(d=>{b&&(b.uiOptions=d)},[b]);return isServerSide()?[null,()=>{}]:(checkProvider(b),[b,_])}const buttonRootId="ton-connect-button",TonConnectButton=({className:b,style:_})=>{const[d,k]=useTonConnectUI();return reactExports.useEffect(()=>(k({buttonRootId}),()=>k({buttonRootId:null})),[k]),jsx("div",{id:buttonRootId,className:b,style:__spreadValues({width:"fit-content"},_)})},TonConnectButton$1=reactExports.memo(TonConnectButton);function useTonWallet(){const[b]=useTonConnectUI(),[_,d]=reactExports.useState((b==null?void 0:b.wallet)||null);return reactExports.useEffect(()=>{if(b)return d(b.wallet),b.onStatusChange(k=>{d(k)})},[b]),_}const header="",Header=()=>jsxs("header",{children:[jsx$1("span",{children:"My App with React UI"}),jsx$1(TonConnectButton$1,{})]});var main={exports:{}};(function(b,_){(function(d,k){b.exports=k(reactExports)})(commonjsGlobal,function(d){return function(k){var j={};function $(et){if(j[et])return j[et].exports;var tt=j[et]={i:et,l:!1,exports:{}};return k[et].call(tt.exports,tt,tt.exports,$),tt.l=!0,tt.exports}return $.m=k,$.c=j,$.d=function(et,tt,rt){$.o(et,tt)||Object.defineProperty(et,tt,{enumerable:!0,get:rt})},$.r=function(et){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(et,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(et,"__esModule",{value:!0})},$.t=function(et,tt){if(1&tt&&(et=$(et)),8&tt||4&tt&&typeof et=="object"&&et&&et.__esModule)return et;var rt=Object.create(null);if($.r(rt),Object.defineProperty(rt,"default",{enumerable:!0,value:et}),2&tt&&typeof et!="string")for(var nt in et)$.d(rt,nt,(function(ot){return et[ot]}).bind(null,nt));return rt},$.n=function(et){var tt=et&&et.__esModule?function(){return et.default}:function(){return et};return $.d(tt,"a",tt),tt},$.o=function(et,tt){return Object.prototype.hasOwnProperty.call(et,tt)},$.p="",$($.s=48)}([function(k,j){k.exports=d},function(k,j){var $=k.exports={version:"2.6.12"};typeof __e=="number"&&(__e=$)},function(k,j,$){var et=$(26)("wks"),tt=$(17),rt=$(3).Symbol,nt=typeof rt=="function";(k.exports=function(ot){return et[ot]||(et[ot]=nt&&rt[ot]||(nt?rt:tt)("Symbol."+ot))}).store=et},function(k,j){var $=k.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=$)},function(k,j,$){k.exports=!$(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(k,j){var $={}.hasOwnProperty;k.exports=function(et,tt){return $.call(et,tt)}},function(k,j,$){var et=$(7),tt=$(16);k.exports=$(4)?function(rt,nt,ot){return et.f(rt,nt,tt(1,ot))}:function(rt,nt,ot){return rt[nt]=ot,rt}},function(k,j,$){var et=$(10),tt=$(35),rt=$(23),nt=Object.defineProperty;j.f=$(4)?Object.defineProperty:function(ot,at,it){if(et(ot),at=rt(at,!0),et(it),tt)try{return nt(ot,at,it)}catch{}if("get"in it||"set"in it)throw TypeError("Accessors not supported!");return"value"in it&&(ot[at]=it.value),ot}},function(k,j){k.exports=function($){try{return!!$()}catch{return!0}}},function(k,j,$){var et=$(40),tt=$(22);k.exports=function(rt){return et(tt(rt))}},function(k,j,$){var et=$(11);k.exports=function(tt){if(!et(tt))throw TypeError(tt+" is not an object!");return tt}},function(k,j){k.exports=function($){return typeof $=="object"?$!==null:typeof $=="function"}},function(k,j){k.exports={}},function(k,j,$){var et=$(39),tt=$(27);k.exports=Object.keys||function(rt){return et(rt,tt)}},function(k,j){k.exports=!0},function(k,j,$){var et=$(3),tt=$(1),rt=$(53),nt=$(6),ot=$(5),at=function(it,dt,ut){var ht,ft,lt,ct=it&at.F,gt=it&at.G,st=it&at.S,Ct=it&at.P,xt=it&at.B,wt=it&at.W,Mt=gt?tt:tt[dt]||(tt[dt]={}),kt=Mt.prototype,_t=gt?et:st?et[dt]:(et[dt]||{}).prototype;for(ht in gt&&(ut=dt),ut)(ft=!ct&&_t&&_t[ht]!==void 0)&&ot(Mt,ht)||(lt=ft?_t[ht]:ut[ht],Mt[ht]=gt&&typeof _t[ht]!="function"?ut[ht]:xt&&ft?rt(lt,et):wt&&_t[ht]==lt?function(Tt){var At=function(Et,Ot,Lt){if(this instanceof Tt){switch(arguments.length){case 0:return new Tt;case 1:return new Tt(Et);case 2:return new Tt(Et,Ot)}return new Tt(Et,Ot,Lt)}return Tt.apply(this,arguments)};return At.prototype=Tt.prototype,At}(lt):Ct&&typeof lt=="function"?rt(Function.call,lt):lt,Ct&&((Mt.virtual||(Mt.virtual={}))[ht]=lt,it&at.R&&kt&&!kt[ht]&&nt(kt,ht,lt)))};at.F=1,at.G=2,at.S=4,at.P=8,at.B=16,at.W=32,at.U=64,at.R=128,k.exports=at},function(k,j){k.exports=function($,et){return{enumerable:!(1&$),configurable:!(2&$),writable:!(4&$),value:et}}},function(k,j){var $=0,et=Math.random();k.exports=function(tt){return"Symbol(".concat(tt===void 0?"":tt,")_",(++$+et).toString(36))}},function(k,j,$){var et=$(22);k.exports=function(tt){return Object(et(tt))}},function(k,j){j.f={}.propertyIsEnumerable},function(k,j,$){var et=$(52)(!0);$(34)(String,"String",function(tt){this._t=String(tt),this._i=0},function(){var tt,rt=this._t,nt=this._i;return nt>=rt.length?{value:void 0,done:!0}:(tt=et(rt,nt),this._i+=tt.length,{value:tt,done:!1})})},function(k,j){var $=Math.ceil,et=Math.floor;k.exports=function(tt){return isNaN(tt=+tt)?0:(tt>0?et:$)(tt)}},function(k,j){k.exports=function($){if($==null)throw TypeError("Can't call method on "+$);return $}},function(k,j,$){var et=$(11);k.exports=function(tt,rt){if(!et(tt))return tt;var nt,ot;if(rt&&typeof(nt=tt.toString)=="function"&&!et(ot=nt.call(tt))||typeof(nt=tt.valueOf)=="function"&&!et(ot=nt.call(tt))||!rt&&typeof(nt=tt.toString)=="function"&&!et(ot=nt.call(tt)))return ot;throw TypeError("Can't convert object to primitive value")}},function(k,j){var $={}.toString;k.exports=function(et){return $.call(et).slice(8,-1)}},function(k,j,$){var et=$(26)("keys"),tt=$(17);k.exports=function(rt){return et[rt]||(et[rt]=tt(rt))}},function(k,j,$){var et=$(1),tt=$(3),rt=tt["__core-js_shared__"]||(tt["__core-js_shared__"]={});(k.exports=function(nt,ot){return rt[nt]||(rt[nt]=ot!==void 0?ot:{})})("versions",[]).push({version:et.version,mode:$(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(k,j){k.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(k,j,$){var et=$(7).f,tt=$(5),rt=$(2)("toStringTag");k.exports=function(nt,ot,at){nt&&!tt(nt=at?nt:nt.prototype,rt)&&et(nt,rt,{configurable:!0,value:ot})}},function(k,j,$){$(62);for(var et=$(3),tt=$(6),rt=$(12),nt=$(2)("toStringTag"),ot="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),at=0;atdocument.F=Object<\/script>"),it.close(),at=it.F;ut--;)delete at.prototype[rt[ut]];return at()};k.exports=Object.create||function(it,dt){var ut;return it!==null?(ot.prototype=et(it),ut=new ot,ot.prototype=null,ut[nt]=it):ut=at(),dt===void 0?ut:tt(ut,dt)}},function(k,j,$){var et=$(5),tt=$(9),rt=$(57)(!1),nt=$(25)("IE_PROTO");k.exports=function(ot,at){var it,dt=tt(ot),ut=0,ht=[];for(it in dt)it!=nt&&et(dt,it)&&ht.push(it);for(;at.length>ut;)et(dt,it=at[ut++])&&(~rt(ht,it)||ht.push(it));return ht}},function(k,j,$){var et=$(24);k.exports=Object("z").propertyIsEnumerable(0)?Object:function(tt){return et(tt)=="String"?tt.split(""):Object(tt)}},function(k,j,$){var et=$(39),tt=$(27).concat("length","prototype");j.f=Object.getOwnPropertyNames||function(rt){return et(rt,tt)}},function(k,j,$){var et=$(24),tt=$(2)("toStringTag"),rt=et(function(){return arguments}())=="Arguments";k.exports=function(nt){var ot,at,it;return nt===void 0?"Undefined":nt===null?"Null":typeof(at=function(dt,ut){try{return dt[ut]}catch{}}(ot=Object(nt),tt))=="string"?at:rt?et(ot):(it=et(ot))=="Object"&&typeof ot.callee=="function"?"Arguments":it}},function(k,j){var $;$=function(){return this}();try{$=$||new Function("return this")()}catch{typeof window=="object"&&($=window)}k.exports=$},function(k,j){var $=/-?\d+(\.\d+)?%?/g;k.exports=function(et){return et.match($)}},function(k,j,$){Object.defineProperty(j,"__esModule",{value:!0}),j.getBase16Theme=j.createStyling=j.invertTheme=void 0;var et=ft($(49)),tt=ft($(76)),rt=ft($(81)),nt=ft($(89)),ot=ft($(93)),at=function(kt){if(kt&&kt.__esModule)return kt;var _t={};if(kt!=null)for(var Tt in kt)Object.prototype.hasOwnProperty.call(kt,Tt)&&(_t[Tt]=kt[Tt]);return _t.default=kt,_t}($(94)),it=ft($(132)),dt=ft($(133)),ut=ft($(138)),ht=$(139);function ft(kt){return kt&&kt.__esModule?kt:{default:kt}}var lt=at.default,ct=(0,nt.default)(lt),gt=(0,ut.default)(dt.default,ht.rgb2yuv,function(kt){var _t,Tt=(0,rt.default)(kt,3),At=Tt[0],Et=Tt[1],Ot=Tt[2];return[(_t=At,_t<.25?1:_t<.5?.9-_t:1.1-_t),Et,Ot]},ht.yuv2rgb,it.default),st=function(kt){return function(_t){return{className:[_t.className,kt.className].filter(Boolean).join(" "),style:(0,tt.default)({},_t.style||{},kt.style||{})}}},Ct=function(kt,_t){var Tt=(0,nt.default)(_t);for(var At in kt)Tt.indexOf(At)===-1&&Tt.push(At);return Tt.reduce(function(Et,Ot){return Et[Ot]=function(Lt,Pt){if(Lt===void 0)return Pt;if(Pt===void 0)return Lt;var Zt=Lt===void 0?"undefined":(0,et.default)(Lt),rn=Pt===void 0?"undefined":(0,et.default)(Pt);switch(Zt){case"string":switch(rn){case"string":return[Pt,Lt].filter(Boolean).join(" ");case"object":return st({className:Lt,style:Pt});case"function":return function(nn){for(var Qt=arguments.length,Vt=Array(Qt>1?Qt-1:0),fn=1;fn1?Qt-1:0),fn=1;fn1?Qt-1:0),fn=1;fn1?Qt-1:0),fn=1;fn1?Qt-1:0),fn=1;fn2?Tt-2:0),Et=2;Et3?_t-3:0),At=3;At<_t;At++)Tt[At-3]=arguments[At];var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Lt=Et.defaultBase16,Pt=Lt===void 0?lt:Lt,Zt=Et.base16Themes,rn=Zt===void 0?null:Zt,nn=Mt(Ot,rn);nn&&(Ot=(0,tt.default)({},nn,Ot));var Qt=ct.reduce(function(On,_n){return On[_n]=Ot[_n]||Pt[_n],On},{}),Vt=(0,nt.default)(Ot).reduce(function(On,_n){return ct.indexOf(_n)===-1&&(On[_n]=Ot[_n]),On},{}),fn=kt(Qt),In=Ct(Vt,fn);return(0,ot.default)(xt,2).apply(void 0,[In].concat(Tt))},3),j.getBase16Theme=function(kt,_t){if(kt&&kt.extend&&(kt=kt.extend),typeof kt=="string"){var Tt=kt.split(":"),At=(0,rt.default)(Tt,2),Et=At[0],Ot=At[1];kt=(_t||{})[Et]||at[Et],Ot==="inverted"&&(kt=wt(kt))}return kt&&kt.hasOwnProperty("base00")?kt:void 0})},function(k,j,$){var et,tt=typeof Reflect=="object"?Reflect:null,rt=tt&&typeof tt.apply=="function"?tt.apply:function(st,Ct,xt){return Function.prototype.apply.call(st,Ct,xt)};et=tt&&typeof tt.ownKeys=="function"?tt.ownKeys:Object.getOwnPropertySymbols?function(st){return Object.getOwnPropertyNames(st).concat(Object.getOwnPropertySymbols(st))}:function(st){return Object.getOwnPropertyNames(st)};var nt=Number.isNaN||function(st){return st!=st};function ot(){ot.init.call(this)}k.exports=ot,k.exports.once=function(st,Ct){return new Promise(function(xt,wt){function Mt(){kt!==void 0&&st.removeListener("error",kt),xt([].slice.call(arguments))}var kt;Ct!=="error"&&(kt=function(_t){st.removeListener(Ct,Mt),wt(_t)},st.once("error",kt)),st.once(Ct,Mt)})},ot.EventEmitter=ot,ot.prototype._events=void 0,ot.prototype._eventsCount=0,ot.prototype._maxListeners=void 0;var at=10;function it(st){if(typeof st!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof st)}function dt(st){return st._maxListeners===void 0?ot.defaultMaxListeners:st._maxListeners}function ut(st,Ct,xt,wt){var Mt,kt,_t,Tt;if(it(xt),(kt=st._events)===void 0?(kt=st._events=Object.create(null),st._eventsCount=0):(kt.newListener!==void 0&&(st.emit("newListener",Ct,xt.listener?xt.listener:xt),kt=st._events),_t=kt[Ct]),_t===void 0)_t=kt[Ct]=xt,++st._eventsCount;else if(typeof _t=="function"?_t=kt[Ct]=wt?[xt,_t]:[_t,xt]:wt?_t.unshift(xt):_t.push(xt),(Mt=dt(st))>0&&_t.length>Mt&&!_t.warned){_t.warned=!0;var At=new Error("Possible EventEmitter memory leak detected. "+_t.length+" "+String(Ct)+" listeners added. Use emitter.setMaxListeners() to increase limit");At.name="MaxListenersExceededWarning",At.emitter=st,At.type=Ct,At.count=_t.length,Tt=At,console&&console.warn&&console.warn(Tt)}return st}function ht(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function ft(st,Ct,xt){var wt={fired:!1,wrapFn:void 0,target:st,type:Ct,listener:xt},Mt=ht.bind(wt);return Mt.listener=xt,wt.wrapFn=Mt,Mt}function lt(st,Ct,xt){var wt=st._events;if(wt===void 0)return[];var Mt=wt[Ct];return Mt===void 0?[]:typeof Mt=="function"?xt?[Mt.listener||Mt]:[Mt]:xt?function(kt){for(var _t=new Array(kt.length),Tt=0;Tt<_t.length;++Tt)_t[Tt]=kt[Tt].listener||kt[Tt];return _t}(Mt):gt(Mt,Mt.length)}function ct(st){var Ct=this._events;if(Ct!==void 0){var xt=Ct[st];if(typeof xt=="function")return 1;if(xt!==void 0)return xt.length}return 0}function gt(st,Ct){for(var xt=new Array(Ct),wt=0;wt0&&(kt=Ct[0]),kt instanceof Error)throw kt;var _t=new Error("Unhandled error."+(kt?" ("+kt.message+")":""));throw _t.context=kt,_t}var Tt=Mt[st];if(Tt===void 0)return!1;if(typeof Tt=="function")rt(Tt,this,Ct);else{var At=Tt.length,Et=gt(Tt,At);for(xt=0;xt=0;kt--)if(xt[kt]===Ct||xt[kt].listener===Ct){_t=xt[kt].listener,Mt=kt;break}if(Mt<0)return this;Mt===0?xt.shift():function(Tt,At){for(;At+1=0;wt--)this.removeListener(st,Ct[wt]);return this},ot.prototype.listeners=function(st){return lt(this,st,!0)},ot.prototype.rawListeners=function(st){return lt(this,st,!1)},ot.listenerCount=function(st,Ct){return typeof st.listenerCount=="function"?st.listenerCount(Ct):ct.call(st,Ct)},ot.prototype.listenerCount=ct,ot.prototype.eventNames=function(){return this._eventsCount>0?et(this._events):[]}},function(k,j,$){k.exports.Dispatcher=$(140)},function(k,j,$){k.exports=$(142)},function(k,j,$){j.__esModule=!0;var et=nt($(50)),tt=nt($(65)),rt=typeof tt.default=="function"&&typeof et.default=="symbol"?function(ot){return typeof ot}:function(ot){return ot&&typeof tt.default=="function"&&ot.constructor===tt.default&&ot!==tt.default.prototype?"symbol":typeof ot};function nt(ot){return ot&&ot.__esModule?ot:{default:ot}}j.default=typeof tt.default=="function"&&rt(et.default)==="symbol"?function(ot){return ot===void 0?"undefined":rt(ot)}:function(ot){return ot&&typeof tt.default=="function"&&ot.constructor===tt.default&&ot!==tt.default.prototype?"symbol":ot===void 0?"undefined":rt(ot)}},function(k,j,$){k.exports={default:$(51),__esModule:!0}},function(k,j,$){$(20),$(29),k.exports=$(30).f("iterator")},function(k,j,$){var et=$(21),tt=$(22);k.exports=function(rt){return function(nt,ot){var at,it,dt=String(tt(nt)),ut=et(ot),ht=dt.length;return ut<0||ut>=ht?rt?"":void 0:(at=dt.charCodeAt(ut))<55296||at>56319||ut+1===ht||(it=dt.charCodeAt(ut+1))<56320||it>57343?rt?dt.charAt(ut):at:rt?dt.slice(ut,ut+2):it-56320+(at-55296<<10)+65536}}},function(k,j,$){var et=$(54);k.exports=function(tt,rt,nt){if(et(tt),rt===void 0)return tt;switch(nt){case 1:return function(ot){return tt.call(rt,ot)};case 2:return function(ot,at){return tt.call(rt,ot,at)};case 3:return function(ot,at,it){return tt.call(rt,ot,at,it)}}return function(){return tt.apply(rt,arguments)}}},function(k,j){k.exports=function($){if(typeof $!="function")throw TypeError($+" is not a function!");return $}},function(k,j,$){var et=$(38),tt=$(16),rt=$(28),nt={};$(6)(nt,$(2)("iterator"),function(){return this}),k.exports=function(ot,at,it){ot.prototype=et(nt,{next:tt(1,it)}),rt(ot,at+" Iterator")}},function(k,j,$){var et=$(7),tt=$(10),rt=$(13);k.exports=$(4)?Object.defineProperties:function(nt,ot){tt(nt);for(var at,it=rt(ot),dt=it.length,ut=0;dt>ut;)et.f(nt,at=it[ut++],ot[at]);return nt}},function(k,j,$){var et=$(9),tt=$(58),rt=$(59);k.exports=function(nt){return function(ot,at,it){var dt,ut=et(ot),ht=tt(ut.length),ft=rt(it,ht);if(nt&&at!=at){for(;ht>ft;)if((dt=ut[ft++])!=dt)return!0}else for(;ht>ft;ft++)if((nt||ft in ut)&&ut[ft]===at)return nt||ft||0;return!nt&&-1}}},function(k,j,$){var et=$(21),tt=Math.min;k.exports=function(rt){return rt>0?tt(et(rt),9007199254740991):0}},function(k,j,$){var et=$(21),tt=Math.max,rt=Math.min;k.exports=function(nt,ot){return(nt=et(nt))<0?tt(nt+ot,0):rt(nt,ot)}},function(k,j,$){var et=$(3).document;k.exports=et&&et.documentElement},function(k,j,$){var et=$(5),tt=$(18),rt=$(25)("IE_PROTO"),nt=Object.prototype;k.exports=Object.getPrototypeOf||function(ot){return ot=tt(ot),et(ot,rt)?ot[rt]:typeof ot.constructor=="function"&&ot instanceof ot.constructor?ot.constructor.prototype:ot instanceof Object?nt:null}},function(k,j,$){var et=$(63),tt=$(64),rt=$(12),nt=$(9);k.exports=$(34)(Array,"Array",function(ot,at){this._t=nt(ot),this._i=0,this._k=at},function(){var ot=this._t,at=this._k,it=this._i++;return!ot||it>=ot.length?(this._t=void 0,tt(1)):tt(0,at=="keys"?it:at=="values"?ot[it]:[it,ot[it]])},"values"),rt.Arguments=rt.Array,et("keys"),et("values"),et("entries")},function(k,j){k.exports=function(){}},function(k,j){k.exports=function($,et){return{value:et,done:!!$}}},function(k,j,$){k.exports={default:$(66),__esModule:!0}},function(k,j,$){$(67),$(73),$(74),$(75),k.exports=$(1).Symbol},function(k,j,$){var et=$(3),tt=$(5),rt=$(4),nt=$(15),ot=$(37),at=$(68).KEY,it=$(8),dt=$(26),ut=$(28),ht=$(17),ft=$(2),lt=$(30),ct=$(31),gt=$(69),st=$(70),Ct=$(10),xt=$(11),wt=$(18),Mt=$(9),kt=$(23),_t=$(16),Tt=$(38),At=$(71),Et=$(72),Ot=$(32),Lt=$(7),Pt=$(13),Zt=Et.f,rn=Lt.f,nn=At.f,Qt=et.Symbol,Vt=et.JSON,fn=Vt&&Vt.stringify,In=ft("_hidden"),On=ft("toPrimitive"),_n={}.propertyIsEnumerable,Pn=dt("symbol-registry"),Yn=dt("symbols"),dn=dt("op-symbols"),An=Object.prototype,mn=typeof Qt=="function"&&!!Ot.f,jn=et.QObject,kn=!jn||!jn.prototype||!jn.prototype.findChild,vn=rt&&it(function(){return Tt(rn({},"a",{get:function(){return rn(this,"a",{value:7}).a}})).a!=7})?function(bt,pt,yt){var Ut=Zt(An,pt);Ut&&delete An[pt],rn(bt,pt,yt),Ut&&bt!==An&&rn(An,pt,Ut)}:rn,En=function(bt){var pt=Yn[bt]=Tt(Qt.prototype);return pt._k=bt,pt},gn=mn&&typeof Qt.iterator=="symbol"?function(bt){return typeof bt=="symbol"}:function(bt){return bt instanceof Qt},Ln=function(bt,pt,yt){return bt===An&&Ln(dn,pt,yt),Ct(bt),pt=kt(pt,!0),Ct(yt),tt(Yn,pt)?(yt.enumerable?(tt(bt,In)&&bt[In][pt]&&(bt[In][pt]=!1),yt=Tt(yt,{enumerable:_t(0,!1)})):(tt(bt,In)||rn(bt,In,_t(1,{})),bt[In][pt]=!0),vn(bt,pt,yt)):rn(bt,pt,yt)},Fn=function(bt,pt){Ct(bt);for(var yt,Ut=gt(pt=Mt(pt)),an=0,sn=Ut.length;sn>an;)Ln(bt,yt=Ut[an++],pt[yt]);return bt},Un=function(bt){var pt=_n.call(this,bt=kt(bt,!0));return!(this===An&&tt(Yn,bt)&&!tt(dn,bt))&&(!(pt||!tt(this,bt)||!tt(Yn,bt)||tt(this,In)&&this[In][bt])||pt)},Mn=function(bt,pt){if(bt=Mt(bt),pt=kt(pt,!0),bt!==An||!tt(Yn,pt)||tt(dn,pt)){var yt=Zt(bt,pt);return!yt||!tt(Yn,pt)||tt(bt,In)&&bt[In][pt]||(yt.enumerable=!0),yt}},Wn=function(bt){for(var pt,yt=nn(Mt(bt)),Ut=[],an=0;yt.length>an;)tt(Yn,pt=yt[an++])||pt==In||pt==at||Ut.push(pt);return Ut},wn=function(bt){for(var pt,yt=bt===An,Ut=nn(yt?dn:Mt(bt)),an=[],sn=0;Ut.length>sn;)!tt(Yn,pt=Ut[sn++])||yt&&!tt(An,pt)||an.push(Yn[pt]);return an};mn||(ot((Qt=function(){if(this instanceof Qt)throw TypeError("Symbol is not a constructor!");var bt=ht(arguments.length>0?arguments[0]:void 0),pt=function(yt){this===An&&pt.call(dn,yt),tt(this,In)&&tt(this[In],bt)&&(this[In][bt]=!1),vn(this,bt,_t(1,yt))};return rt&&kn&&vn(An,bt,{configurable:!0,set:pt}),En(bt)}).prototype,"toString",function(){return this._k}),Et.f=Mn,Lt.f=Ln,$(41).f=At.f=Wn,$(19).f=Un,Ot.f=wn,rt&&!$(14)&&ot(An,"propertyIsEnumerable",Un,!0),lt.f=function(bt){return En(ft(bt))}),nt(nt.G+nt.W+nt.F*!mn,{Symbol:Qt});for(var Nn="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),zn=0;Nn.length>zn;)ft(Nn[zn++]);for(var Vn=Pt(ft.store),bn=0;Vn.length>bn;)ct(Vn[bn++]);nt(nt.S+nt.F*!mn,"Symbol",{for:function(bt){return tt(Pn,bt+="")?Pn[bt]:Pn[bt]=Qt(bt)},keyFor:function(bt){if(!gn(bt))throw TypeError(bt+" is not a symbol!");for(var pt in Pn)if(Pn[pt]===bt)return pt},useSetter:function(){kn=!0},useSimple:function(){kn=!1}}),nt(nt.S+nt.F*!mn,"Object",{create:function(bt,pt){return pt===void 0?Tt(bt):Fn(Tt(bt),pt)},defineProperty:Ln,defineProperties:Fn,getOwnPropertyDescriptor:Mn,getOwnPropertyNames:Wn,getOwnPropertySymbols:wn});var Yt=it(function(){Ot.f(1)});nt(nt.S+nt.F*Yt,"Object",{getOwnPropertySymbols:function(bt){return Ot.f(wt(bt))}}),Vt&&nt(nt.S+nt.F*(!mn||it(function(){var bt=Qt();return fn([bt])!="[null]"||fn({a:bt})!="{}"||fn(Object(bt))!="{}"})),"JSON",{stringify:function(bt){for(var pt,yt,Ut=[bt],an=1;arguments.length>an;)Ut.push(arguments[an++]);if(yt=pt=Ut[1],(xt(pt)||bt!==void 0)&&!gn(bt))return st(pt)||(pt=function(sn,Sn){if(typeof yt=="function"&&(Sn=yt.call(this,sn,Sn)),!gn(Sn))return Sn}),Ut[1]=pt,fn.apply(Vt,Ut)}}),Qt.prototype[On]||$(6)(Qt.prototype,On,Qt.prototype.valueOf),ut(Qt,"Symbol"),ut(Math,"Math",!0),ut(et.JSON,"JSON",!0)},function(k,j,$){var et=$(17)("meta"),tt=$(11),rt=$(5),nt=$(7).f,ot=0,at=Object.isExtensible||function(){return!0},it=!$(8)(function(){return at(Object.preventExtensions({}))}),dt=function(ht){nt(ht,et,{value:{i:"O"+ ++ot,w:{}}})},ut=k.exports={KEY:et,NEED:!1,fastKey:function(ht,ft){if(!tt(ht))return typeof ht=="symbol"?ht:(typeof ht=="string"?"S":"P")+ht;if(!rt(ht,et)){if(!at(ht))return"F";if(!ft)return"E";dt(ht)}return ht[et].i},getWeak:function(ht,ft){if(!rt(ht,et)){if(!at(ht))return!0;if(!ft)return!1;dt(ht)}return ht[et].w},onFreeze:function(ht){return it&&ut.NEED&&at(ht)&&!rt(ht,et)&&dt(ht),ht}}},function(k,j,$){var et=$(13),tt=$(32),rt=$(19);k.exports=function(nt){var ot=et(nt),at=tt.f;if(at)for(var it,dt=at(nt),ut=rt.f,ht=0;dt.length>ht;)ut.call(nt,it=dt[ht++])&&ot.push(it);return ot}},function(k,j,$){var et=$(24);k.exports=Array.isArray||function(tt){return et(tt)=="Array"}},function(k,j,$){var et=$(9),tt=$(41).f,rt={}.toString,nt=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];k.exports.f=function(ot){return nt&&rt.call(ot)=="[object Window]"?function(at){try{return tt(at)}catch{return nt.slice()}}(ot):tt(et(ot))}},function(k,j,$){var et=$(19),tt=$(16),rt=$(9),nt=$(23),ot=$(5),at=$(35),it=Object.getOwnPropertyDescriptor;j.f=$(4)?it:function(dt,ut){if(dt=rt(dt),ut=nt(ut,!0),at)try{return it(dt,ut)}catch{}if(ot(dt,ut))return tt(!et.f.call(dt,ut),dt[ut])}},function(k,j){},function(k,j,$){$(31)("asyncIterator")},function(k,j,$){$(31)("observable")},function(k,j,$){j.__esModule=!0;var et,tt=$(77),rt=(et=tt)&&et.__esModule?et:{default:et};j.default=rt.default||function(nt){for(var ot=1;otlt;)for(var st,Ct=at(arguments[lt++]),xt=ct?tt(Ct).concat(ct(Ct)):tt(Ct),wt=xt.length,Mt=0;wt>Mt;)st=xt[Mt++],et&&!gt.call(Ct,st)||(ht[st]=Ct[st]);return ht}:it},function(k,j,$){j.__esModule=!0;var et=rt($(82)),tt=rt($(85));function rt(nt){return nt&&nt.__esModule?nt:{default:nt}}j.default=function(nt,ot){if(Array.isArray(nt))return nt;if((0,et.default)(Object(nt)))return function(at,it){var dt=[],ut=!0,ht=!1,ft=void 0;try{for(var lt,ct=(0,tt.default)(at);!(ut=(lt=ct.next()).done)&&(dt.push(lt.value),!it||dt.length!==it);ut=!0);}catch(gt){ht=!0,ft=gt}finally{try{!ut&&ct.return&&ct.return()}finally{if(ht)throw ft}}return dt}(nt,ot);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(k,j,$){k.exports={default:$(83),__esModule:!0}},function(k,j,$){$(29),$(20),k.exports=$(84)},function(k,j,$){var et=$(42),tt=$(2)("iterator"),rt=$(12);k.exports=$(1).isIterable=function(nt){var ot=Object(nt);return ot[tt]!==void 0||"@@iterator"in ot||rt.hasOwnProperty(et(ot))}},function(k,j,$){k.exports={default:$(86),__esModule:!0}},function(k,j,$){$(29),$(20),k.exports=$(87)},function(k,j,$){var et=$(10),tt=$(88);k.exports=$(1).getIterator=function(rt){var nt=tt(rt);if(typeof nt!="function")throw TypeError(rt+" is not iterable!");return et(nt.call(rt))}},function(k,j,$){var et=$(42),tt=$(2)("iterator"),rt=$(12);k.exports=$(1).getIteratorMethod=function(nt){if(nt!=null)return nt[tt]||nt["@@iterator"]||rt[et(nt)]}},function(k,j,$){k.exports={default:$(90),__esModule:!0}},function(k,j,$){$(91),k.exports=$(1).Object.keys},function(k,j,$){var et=$(18),tt=$(13);$(92)("keys",function(){return function(rt){return tt(et(rt))}})},function(k,j,$){var et=$(15),tt=$(1),rt=$(8);k.exports=function(nt,ot){var at=(tt.Object||{})[nt]||Object[nt],it={};it[nt]=ot(at),et(et.S+et.F*rt(function(){at(1)}),"Object",it)}},function(k,j,$){(function(et){var tt=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],rt=/^\s+|\s+$/g,nt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,it=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,ut=/^\[object .+?Constructor\]$/,ht=/^0o[0-7]+$/i,ft=/^(?:0|[1-9]\d*)$/,lt=parseInt,ct=typeof et=="object"&&et&&et.Object===Object&&et,gt=typeof self=="object"&&self&&self.Object===Object&&self,st=ct||gt||Function("return this")();function Ct(bn,Yt,bt){switch(bt.length){case 0:return bn.call(Yt);case 1:return bn.call(Yt,bt[0]);case 2:return bn.call(Yt,bt[0],bt[1]);case 3:return bn.call(Yt,bt[0],bt[1],bt[2])}return bn.apply(Yt,bt)}function xt(bn,Yt){return!!(bn&&bn.length)&&function(bt,pt,yt){if(pt!=pt)return function(sn,Sn,or,Rn){for(var Xn=sn.length,$n=or+(Rn?1:-1);Rn?$n--:++$n-1}function wt(bn){return bn!=bn}function Mt(bn,Yt){for(var bt=bn.length,pt=0;bt--;)bn[bt]===Yt&&pt++;return pt}function kt(bn,Yt){for(var bt=-1,pt=bn.length,yt=0,Ut=[];++bt2?Tt:void 0);function _n(bn){return Nn(bn)?Vt(bn):{}}function Pn(bn){return!(!Nn(bn)||function(Yt){return!!Pt&&Pt in Yt}(bn))&&(function(Yt){var bt=Nn(Yt)?nn.call(Yt):"";return bt=="[object Function]"||bt=="[object GeneratorFunction]"}(bn)||function(Yt){var bt=!1;if(Yt!=null&&typeof Yt.toString!="function")try{bt=!!(Yt+"")}catch{}return bt}(bn)?Qt:ut).test(function(Yt){if(Yt!=null){try{return Zt.call(Yt)}catch{}try{return Yt+""}catch{}}return""}(bn))}function Yn(bn,Yt,bt,pt){for(var yt=-1,Ut=bn.length,an=bt.length,sn=-1,Sn=Yt.length,or=fn(Ut-an,0),Rn=Array(Sn+or),Xn=!pt;++sn1&&pr.reverse(),Rn&&Sn1?"& ":"")+Yt[pt],Yt=Yt.join(bt>2?", ":" "),bn.replace(nt,`{ + */var hasRequiredReactJsxRuntime_production_min;function requireReactJsxRuntime_production_min(){if(hasRequiredReactJsxRuntime_production_min)return reactJsxRuntime_production_min;hasRequiredReactJsxRuntime_production_min=1;var b=require$$0,_=Symbol.for("react.element"),d=Symbol.for("react.fragment"),k=Object.prototype.hasOwnProperty,j=b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$={key:!0,ref:!0,__self:!0,__source:!0};function et(tt,rt,nt){var ot,at={},it=null,dt=null;nt!==void 0&&(it=""+nt),rt.key!==void 0&&(it=""+rt.key),rt.ref!==void 0&&(dt=rt.ref);for(ot in rt)k.call(rt,ot)&&!$.hasOwnProperty(ot)&&(at[ot]=rt[ot]);if(tt&&tt.defaultProps)for(ot in rt=tt.defaultProps,rt)at[ot]===void 0&&(at[ot]=rt[ot]);return{$$typeof:_,type:tt,key:it,ref:dt,props:at,_owner:j.current}}return reactJsxRuntime_production_min.Fragment=d,reactJsxRuntime_production_min.jsx=et,reactJsxRuntime_production_min.jsxs=et,reactJsxRuntime_production_min}(function(b){b.exports=requireReactJsxRuntime_production_min()})(jsxRuntime);const jsx=jsxRuntime.exports.jsx;function isClientSide(){return typeof window<"u"}function isServerSide(){return!isClientSide()}const TonConnectUIContext=reactExports.createContext(null);let tonConnectUI=null;const TonConnectUIProvider=b=>{var _=b,{children:d}=_,k=__objRest(_,["children"]);return isClientSide()&&!tonConnectUI&&(tonConnectUI=new TonConnectUI(k)),jsx(TonConnectUIContext.Provider,{value:tonConnectUI,children:d})},TonConnectUIProvider$1=reactExports.memo(TonConnectUIProvider);class TonConnectUIReactError extends TonConnectUIError{constructor(..._){super(..._),Object.setPrototypeOf(this,TonConnectUIReactError.prototype)}}class TonConnectProviderNotSetError extends TonConnectUIReactError{constructor(..._){super(..._),Object.setPrototypeOf(this,TonConnectProviderNotSetError.prototype)}}function checkProvider(b){if(!b)throw new TonConnectProviderNotSetError("You should add on the top of the app to use TonConnect");return!0}function useTonConnectUI(){const b=reactExports.useContext(TonConnectUIContext),_=reactExports.useCallback(d=>{b&&(b.uiOptions=d)},[b]);return isServerSide()?[null,()=>{}]:(checkProvider(b),[b,_])}const buttonRootId="ton-connect-button",TonConnectButton=({className:b,style:_})=>{const[d,k]=useTonConnectUI();return reactExports.useEffect(()=>(k({buttonRootId}),()=>k({buttonRootId:null})),[k]),jsx("div",{id:buttonRootId,className:b,style:__spreadValues({width:"fit-content"},_)})},TonConnectButton$1=reactExports.memo(TonConnectButton);function useTonWallet(){const[b]=useTonConnectUI(),[_,d]=reactExports.useState((b==null?void 0:b.wallet)||null);return reactExports.useEffect(()=>{if(b)return d(b.wallet),b.onStatusChange(k=>{d(k)})},[b]),_}const header="",Header=()=>jsxs("header",{children:[jsx$1("span",{children:"My App with React UI"}),jsx$1(TonConnectButton$1,{})]});var main={exports:{}};(function(b,_){(function(d,k){b.exports=k(reactExports)})(commonjsGlobal,function(d){return function(k){var j={};function $(et){if(j[et])return j[et].exports;var tt=j[et]={i:et,l:!1,exports:{}};return k[et].call(tt.exports,tt,tt.exports,$),tt.l=!0,tt.exports}return $.m=k,$.c=j,$.d=function(et,tt,rt){$.o(et,tt)||Object.defineProperty(et,tt,{enumerable:!0,get:rt})},$.r=function(et){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(et,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(et,"__esModule",{value:!0})},$.t=function(et,tt){if(1&tt&&(et=$(et)),8&tt||4&tt&&typeof et=="object"&&et&&et.__esModule)return et;var rt=Object.create(null);if($.r(rt),Object.defineProperty(rt,"default",{enumerable:!0,value:et}),2&tt&&typeof et!="string")for(var nt in et)$.d(rt,nt,(function(ot){return et[ot]}).bind(null,nt));return rt},$.n=function(et){var tt=et&&et.__esModule?function(){return et.default}:function(){return et};return $.d(tt,"a",tt),tt},$.o=function(et,tt){return Object.prototype.hasOwnProperty.call(et,tt)},$.p="",$($.s=48)}([function(k,j){k.exports=d},function(k,j){var $=k.exports={version:"2.6.12"};typeof __e=="number"&&(__e=$)},function(k,j,$){var et=$(26)("wks"),tt=$(17),rt=$(3).Symbol,nt=typeof rt=="function";(k.exports=function(ot){return et[ot]||(et[ot]=nt&&rt[ot]||(nt?rt:tt)("Symbol."+ot))}).store=et},function(k,j){var $=k.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=$)},function(k,j,$){k.exports=!$(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(k,j){var $={}.hasOwnProperty;k.exports=function(et,tt){return $.call(et,tt)}},function(k,j,$){var et=$(7),tt=$(16);k.exports=$(4)?function(rt,nt,ot){return et.f(rt,nt,tt(1,ot))}:function(rt,nt,ot){return rt[nt]=ot,rt}},function(k,j,$){var et=$(10),tt=$(35),rt=$(23),nt=Object.defineProperty;j.f=$(4)?Object.defineProperty:function(ot,at,it){if(et(ot),at=rt(at,!0),et(it),tt)try{return nt(ot,at,it)}catch{}if("get"in it||"set"in it)throw TypeError("Accessors not supported!");return"value"in it&&(ot[at]=it.value),ot}},function(k,j){k.exports=function($){try{return!!$()}catch{return!0}}},function(k,j,$){var et=$(40),tt=$(22);k.exports=function(rt){return et(tt(rt))}},function(k,j,$){var et=$(11);k.exports=function(tt){if(!et(tt))throw TypeError(tt+" is not an object!");return tt}},function(k,j){k.exports=function($){return typeof $=="object"?$!==null:typeof $=="function"}},function(k,j){k.exports={}},function(k,j,$){var et=$(39),tt=$(27);k.exports=Object.keys||function(rt){return et(rt,tt)}},function(k,j){k.exports=!0},function(k,j,$){var et=$(3),tt=$(1),rt=$(53),nt=$(6),ot=$(5),at=function(it,dt,ut){var ht,ft,lt,ct=it&at.F,gt=it&at.G,st=it&at.S,Ct=it&at.P,xt=it&at.B,wt=it&at.W,Mt=gt?tt:tt[dt]||(tt[dt]={}),kt=Mt.prototype,_t=gt?et:st?et[dt]:(et[dt]||{}).prototype;for(ht in gt&&(ut=dt),ut)(ft=!ct&&_t&&_t[ht]!==void 0)&&ot(Mt,ht)||(lt=ft?_t[ht]:ut[ht],Mt[ht]=gt&&typeof _t[ht]!="function"?ut[ht]:xt&&ft?rt(lt,et):wt&&_t[ht]==lt?function(Tt){var At=function(Et,Ot,Lt){if(this instanceof Tt){switch(arguments.length){case 0:return new Tt;case 1:return new Tt(Et);case 2:return new Tt(Et,Ot)}return new Tt(Et,Ot,Lt)}return Tt.apply(this,arguments)};return At.prototype=Tt.prototype,At}(lt):Ct&&typeof lt=="function"?rt(Function.call,lt):lt,Ct&&((Mt.virtual||(Mt.virtual={}))[ht]=lt,it&at.R&&kt&&!kt[ht]&&nt(kt,ht,lt)))};at.F=1,at.G=2,at.S=4,at.P=8,at.B=16,at.W=32,at.U=64,at.R=128,k.exports=at},function(k,j){k.exports=function($,et){return{enumerable:!(1&$),configurable:!(2&$),writable:!(4&$),value:et}}},function(k,j){var $=0,et=Math.random();k.exports=function(tt){return"Symbol(".concat(tt===void 0?"":tt,")_",(++$+et).toString(36))}},function(k,j,$){var et=$(22);k.exports=function(tt){return Object(et(tt))}},function(k,j){j.f={}.propertyIsEnumerable},function(k,j,$){var et=$(52)(!0);$(34)(String,"String",function(tt){this._t=String(tt),this._i=0},function(){var tt,rt=this._t,nt=this._i;return nt>=rt.length?{value:void 0,done:!0}:(tt=et(rt,nt),this._i+=tt.length,{value:tt,done:!1})})},function(k,j){var $=Math.ceil,et=Math.floor;k.exports=function(tt){return isNaN(tt=+tt)?0:(tt>0?et:$)(tt)}},function(k,j){k.exports=function($){if($==null)throw TypeError("Can't call method on "+$);return $}},function(k,j,$){var et=$(11);k.exports=function(tt,rt){if(!et(tt))return tt;var nt,ot;if(rt&&typeof(nt=tt.toString)=="function"&&!et(ot=nt.call(tt))||typeof(nt=tt.valueOf)=="function"&&!et(ot=nt.call(tt))||!rt&&typeof(nt=tt.toString)=="function"&&!et(ot=nt.call(tt)))return ot;throw TypeError("Can't convert object to primitive value")}},function(k,j){var $={}.toString;k.exports=function(et){return $.call(et).slice(8,-1)}},function(k,j,$){var et=$(26)("keys"),tt=$(17);k.exports=function(rt){return et[rt]||(et[rt]=tt(rt))}},function(k,j,$){var et=$(1),tt=$(3),rt=tt["__core-js_shared__"]||(tt["__core-js_shared__"]={});(k.exports=function(nt,ot){return rt[nt]||(rt[nt]=ot!==void 0?ot:{})})("versions",[]).push({version:et.version,mode:$(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(k,j){k.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(k,j,$){var et=$(7).f,tt=$(5),rt=$(2)("toStringTag");k.exports=function(nt,ot,at){nt&&!tt(nt=at?nt:nt.prototype,rt)&&et(nt,rt,{configurable:!0,value:ot})}},function(k,j,$){$(62);for(var et=$(3),tt=$(6),rt=$(12),nt=$(2)("toStringTag"),ot="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),at=0;atdocument.F=Object<\/script>"),it.close(),at=it.F;ut--;)delete at.prototype[rt[ut]];return at()};k.exports=Object.create||function(it,dt){var ut;return it!==null?(ot.prototype=et(it),ut=new ot,ot.prototype=null,ut[nt]=it):ut=at(),dt===void 0?ut:tt(ut,dt)}},function(k,j,$){var et=$(5),tt=$(9),rt=$(57)(!1),nt=$(25)("IE_PROTO");k.exports=function(ot,at){var it,dt=tt(ot),ut=0,ht=[];for(it in dt)it!=nt&&et(dt,it)&&ht.push(it);for(;at.length>ut;)et(dt,it=at[ut++])&&(~rt(ht,it)||ht.push(it));return ht}},function(k,j,$){var et=$(24);k.exports=Object("z").propertyIsEnumerable(0)?Object:function(tt){return et(tt)=="String"?tt.split(""):Object(tt)}},function(k,j,$){var et=$(39),tt=$(27).concat("length","prototype");j.f=Object.getOwnPropertyNames||function(rt){return et(rt,tt)}},function(k,j,$){var et=$(24),tt=$(2)("toStringTag"),rt=et(function(){return arguments}())=="Arguments";k.exports=function(nt){var ot,at,it;return nt===void 0?"Undefined":nt===null?"Null":typeof(at=function(dt,ut){try{return dt[ut]}catch{}}(ot=Object(nt),tt))=="string"?at:rt?et(ot):(it=et(ot))=="Object"&&typeof ot.callee=="function"?"Arguments":it}},function(k,j){var $;$=function(){return this}();try{$=$||new Function("return this")()}catch{typeof window=="object"&&($=window)}k.exports=$},function(k,j){var $=/-?\d+(\.\d+)?%?/g;k.exports=function(et){return et.match($)}},function(k,j,$){Object.defineProperty(j,"__esModule",{value:!0}),j.getBase16Theme=j.createStyling=j.invertTheme=void 0;var et=ft($(49)),tt=ft($(76)),rt=ft($(81)),nt=ft($(89)),ot=ft($(93)),at=function(kt){if(kt&&kt.__esModule)return kt;var _t={};if(kt!=null)for(var Tt in kt)Object.prototype.hasOwnProperty.call(kt,Tt)&&(_t[Tt]=kt[Tt]);return _t.default=kt,_t}($(94)),it=ft($(132)),dt=ft($(133)),ut=ft($(138)),ht=$(139);function ft(kt){return kt&&kt.__esModule?kt:{default:kt}}var lt=at.default,ct=(0,nt.default)(lt),gt=(0,ut.default)(dt.default,ht.rgb2yuv,function(kt){var _t,Tt=(0,rt.default)(kt,3),At=Tt[0],Et=Tt[1],Ot=Tt[2];return[(_t=At,_t<.25?1:_t<.5?.9-_t:1.1-_t),Et,Ot]},ht.yuv2rgb,it.default),st=function(kt){return function(_t){return{className:[_t.className,kt.className].filter(Boolean).join(" "),style:(0,tt.default)({},_t.style||{},kt.style||{})}}},Ct=function(kt,_t){var Tt=(0,nt.default)(_t);for(var At in kt)Tt.indexOf(At)===-1&&Tt.push(At);return Tt.reduce(function(Et,Ot){return Et[Ot]=function(Lt,Bt){if(Lt===void 0)return Bt;if(Bt===void 0)return Lt;var Zt=Lt===void 0?"undefined":(0,et.default)(Lt),rn=Bt===void 0?"undefined":(0,et.default)(Bt);switch(Zt){case"string":switch(rn){case"string":return[Bt,Lt].filter(Boolean).join(" ");case"object":return st({className:Lt,style:Bt});case"function":return function(nn){for(var Qt=arguments.length,Vt=Array(Qt>1?Qt-1:0),fn=1;fn1?Qt-1:0),fn=1;fn1?Qt-1:0),fn=1;fn1?Qt-1:0),fn=1;fn1?Qt-1:0),fn=1;fn2?Tt-2:0),Et=2;Et3?_t-3:0),At=3;At<_t;At++)Tt[At-3]=arguments[At];var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Lt=Et.defaultBase16,Bt=Lt===void 0?lt:Lt,Zt=Et.base16Themes,rn=Zt===void 0?null:Zt,nn=Mt(Ot,rn);nn&&(Ot=(0,tt.default)({},nn,Ot));var Qt=ct.reduce(function(On,_n){return On[_n]=Ot[_n]||Bt[_n],On},{}),Vt=(0,nt.default)(Ot).reduce(function(On,_n){return ct.indexOf(_n)===-1&&(On[_n]=Ot[_n]),On},{}),fn=kt(Qt),In=Ct(Vt,fn);return(0,ot.default)(xt,2).apply(void 0,[In].concat(Tt))},3),j.getBase16Theme=function(kt,_t){if(kt&&kt.extend&&(kt=kt.extend),typeof kt=="string"){var Tt=kt.split(":"),At=(0,rt.default)(Tt,2),Et=At[0],Ot=At[1];kt=(_t||{})[Et]||at[Et],Ot==="inverted"&&(kt=wt(kt))}return kt&&kt.hasOwnProperty("base00")?kt:void 0})},function(k,j,$){var et,tt=typeof Reflect=="object"?Reflect:null,rt=tt&&typeof tt.apply=="function"?tt.apply:function(st,Ct,xt){return Function.prototype.apply.call(st,Ct,xt)};et=tt&&typeof tt.ownKeys=="function"?tt.ownKeys:Object.getOwnPropertySymbols?function(st){return Object.getOwnPropertyNames(st).concat(Object.getOwnPropertySymbols(st))}:function(st){return Object.getOwnPropertyNames(st)};var nt=Number.isNaN||function(st){return st!=st};function ot(){ot.init.call(this)}k.exports=ot,k.exports.once=function(st,Ct){return new Promise(function(xt,wt){function Mt(){kt!==void 0&&st.removeListener("error",kt),xt([].slice.call(arguments))}var kt;Ct!=="error"&&(kt=function(_t){st.removeListener(Ct,Mt),wt(_t)},st.once("error",kt)),st.once(Ct,Mt)})},ot.EventEmitter=ot,ot.prototype._events=void 0,ot.prototype._eventsCount=0,ot.prototype._maxListeners=void 0;var at=10;function it(st){if(typeof st!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof st)}function dt(st){return st._maxListeners===void 0?ot.defaultMaxListeners:st._maxListeners}function ut(st,Ct,xt,wt){var Mt,kt,_t,Tt;if(it(xt),(kt=st._events)===void 0?(kt=st._events=Object.create(null),st._eventsCount=0):(kt.newListener!==void 0&&(st.emit("newListener",Ct,xt.listener?xt.listener:xt),kt=st._events),_t=kt[Ct]),_t===void 0)_t=kt[Ct]=xt,++st._eventsCount;else if(typeof _t=="function"?_t=kt[Ct]=wt?[xt,_t]:[_t,xt]:wt?_t.unshift(xt):_t.push(xt),(Mt=dt(st))>0&&_t.length>Mt&&!_t.warned){_t.warned=!0;var At=new Error("Possible EventEmitter memory leak detected. "+_t.length+" "+String(Ct)+" listeners added. Use emitter.setMaxListeners() to increase limit");At.name="MaxListenersExceededWarning",At.emitter=st,At.type=Ct,At.count=_t.length,Tt=At,console&&console.warn&&console.warn(Tt)}return st}function ht(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function ft(st,Ct,xt){var wt={fired:!1,wrapFn:void 0,target:st,type:Ct,listener:xt},Mt=ht.bind(wt);return Mt.listener=xt,wt.wrapFn=Mt,Mt}function lt(st,Ct,xt){var wt=st._events;if(wt===void 0)return[];var Mt=wt[Ct];return Mt===void 0?[]:typeof Mt=="function"?xt?[Mt.listener||Mt]:[Mt]:xt?function(kt){for(var _t=new Array(kt.length),Tt=0;Tt<_t.length;++Tt)_t[Tt]=kt[Tt].listener||kt[Tt];return _t}(Mt):gt(Mt,Mt.length)}function ct(st){var Ct=this._events;if(Ct!==void 0){var xt=Ct[st];if(typeof xt=="function")return 1;if(xt!==void 0)return xt.length}return 0}function gt(st,Ct){for(var xt=new Array(Ct),wt=0;wt0&&(kt=Ct[0]),kt instanceof Error)throw kt;var _t=new Error("Unhandled error."+(kt?" ("+kt.message+")":""));throw _t.context=kt,_t}var Tt=Mt[st];if(Tt===void 0)return!1;if(typeof Tt=="function")rt(Tt,this,Ct);else{var At=Tt.length,Et=gt(Tt,At);for(xt=0;xt=0;kt--)if(xt[kt]===Ct||xt[kt].listener===Ct){_t=xt[kt].listener,Mt=kt;break}if(Mt<0)return this;Mt===0?xt.shift():function(Tt,At){for(;At+1=0;wt--)this.removeListener(st,Ct[wt]);return this},ot.prototype.listeners=function(st){return lt(this,st,!0)},ot.prototype.rawListeners=function(st){return lt(this,st,!1)},ot.listenerCount=function(st,Ct){return typeof st.listenerCount=="function"?st.listenerCount(Ct):ct.call(st,Ct)},ot.prototype.listenerCount=ct,ot.prototype.eventNames=function(){return this._eventsCount>0?et(this._events):[]}},function(k,j,$){k.exports.Dispatcher=$(140)},function(k,j,$){k.exports=$(142)},function(k,j,$){j.__esModule=!0;var et=nt($(50)),tt=nt($(65)),rt=typeof tt.default=="function"&&typeof et.default=="symbol"?function(ot){return typeof ot}:function(ot){return ot&&typeof tt.default=="function"&&ot.constructor===tt.default&&ot!==tt.default.prototype?"symbol":typeof ot};function nt(ot){return ot&&ot.__esModule?ot:{default:ot}}j.default=typeof tt.default=="function"&&rt(et.default)==="symbol"?function(ot){return ot===void 0?"undefined":rt(ot)}:function(ot){return ot&&typeof tt.default=="function"&&ot.constructor===tt.default&&ot!==tt.default.prototype?"symbol":ot===void 0?"undefined":rt(ot)}},function(k,j,$){k.exports={default:$(51),__esModule:!0}},function(k,j,$){$(20),$(29),k.exports=$(30).f("iterator")},function(k,j,$){var et=$(21),tt=$(22);k.exports=function(rt){return function(nt,ot){var at,it,dt=String(tt(nt)),ut=et(ot),ht=dt.length;return ut<0||ut>=ht?rt?"":void 0:(at=dt.charCodeAt(ut))<55296||at>56319||ut+1===ht||(it=dt.charCodeAt(ut+1))<56320||it>57343?rt?dt.charAt(ut):at:rt?dt.slice(ut,ut+2):it-56320+(at-55296<<10)+65536}}},function(k,j,$){var et=$(54);k.exports=function(tt,rt,nt){if(et(tt),rt===void 0)return tt;switch(nt){case 1:return function(ot){return tt.call(rt,ot)};case 2:return function(ot,at){return tt.call(rt,ot,at)};case 3:return function(ot,at,it){return tt.call(rt,ot,at,it)}}return function(){return tt.apply(rt,arguments)}}},function(k,j){k.exports=function($){if(typeof $!="function")throw TypeError($+" is not a function!");return $}},function(k,j,$){var et=$(38),tt=$(16),rt=$(28),nt={};$(6)(nt,$(2)("iterator"),function(){return this}),k.exports=function(ot,at,it){ot.prototype=et(nt,{next:tt(1,it)}),rt(ot,at+" Iterator")}},function(k,j,$){var et=$(7),tt=$(10),rt=$(13);k.exports=$(4)?Object.defineProperties:function(nt,ot){tt(nt);for(var at,it=rt(ot),dt=it.length,ut=0;dt>ut;)et.f(nt,at=it[ut++],ot[at]);return nt}},function(k,j,$){var et=$(9),tt=$(58),rt=$(59);k.exports=function(nt){return function(ot,at,it){var dt,ut=et(ot),ht=tt(ut.length),ft=rt(it,ht);if(nt&&at!=at){for(;ht>ft;)if((dt=ut[ft++])!=dt)return!0}else for(;ht>ft;ft++)if((nt||ft in ut)&&ut[ft]===at)return nt||ft||0;return!nt&&-1}}},function(k,j,$){var et=$(21),tt=Math.min;k.exports=function(rt){return rt>0?tt(et(rt),9007199254740991):0}},function(k,j,$){var et=$(21),tt=Math.max,rt=Math.min;k.exports=function(nt,ot){return(nt=et(nt))<0?tt(nt+ot,0):rt(nt,ot)}},function(k,j,$){var et=$(3).document;k.exports=et&&et.documentElement},function(k,j,$){var et=$(5),tt=$(18),rt=$(25)("IE_PROTO"),nt=Object.prototype;k.exports=Object.getPrototypeOf||function(ot){return ot=tt(ot),et(ot,rt)?ot[rt]:typeof ot.constructor=="function"&&ot instanceof ot.constructor?ot.constructor.prototype:ot instanceof Object?nt:null}},function(k,j,$){var et=$(63),tt=$(64),rt=$(12),nt=$(9);k.exports=$(34)(Array,"Array",function(ot,at){this._t=nt(ot),this._i=0,this._k=at},function(){var ot=this._t,at=this._k,it=this._i++;return!ot||it>=ot.length?(this._t=void 0,tt(1)):tt(0,at=="keys"?it:at=="values"?ot[it]:[it,ot[it]])},"values"),rt.Arguments=rt.Array,et("keys"),et("values"),et("entries")},function(k,j){k.exports=function(){}},function(k,j){k.exports=function($,et){return{value:et,done:!!$}}},function(k,j,$){k.exports={default:$(66),__esModule:!0}},function(k,j,$){$(67),$(73),$(74),$(75),k.exports=$(1).Symbol},function(k,j,$){var et=$(3),tt=$(5),rt=$(4),nt=$(15),ot=$(37),at=$(68).KEY,it=$(8),dt=$(26),ut=$(28),ht=$(17),ft=$(2),lt=$(30),ct=$(31),gt=$(69),st=$(70),Ct=$(10),xt=$(11),wt=$(18),Mt=$(9),kt=$(23),_t=$(16),Tt=$(38),At=$(71),Et=$(72),Ot=$(32),Lt=$(7),Bt=$(13),Zt=Et.f,rn=Lt.f,nn=At.f,Qt=et.Symbol,Vt=et.JSON,fn=Vt&&Vt.stringify,In=ft("_hidden"),On=ft("toPrimitive"),_n={}.propertyIsEnumerable,Bn=dt("symbol-registry"),Yn=dt("symbols"),dn=dt("op-symbols"),An=Object.prototype,mn=typeof Qt=="function"&&!!Ot.f,jn=et.QObject,kn=!jn||!jn.prototype||!jn.prototype.findChild,vn=rt&&it(function(){return Tt(rn({},"a",{get:function(){return rn(this,"a",{value:7}).a}})).a!=7})?function(bt,pt,yt){var Ut=Zt(An,pt);Ut&&delete An[pt],rn(bt,pt,yt),Ut&&bt!==An&&rn(An,pt,Ut)}:rn,En=function(bt){var pt=Yn[bt]=Tt(Qt.prototype);return pt._k=bt,pt},gn=mn&&typeof Qt.iterator=="symbol"?function(bt){return typeof bt=="symbol"}:function(bt){return bt instanceof Qt},Ln=function(bt,pt,yt){return bt===An&&Ln(dn,pt,yt),Ct(bt),pt=kt(pt,!0),Ct(yt),tt(Yn,pt)?(yt.enumerable?(tt(bt,In)&&bt[In][pt]&&(bt[In][pt]=!1),yt=Tt(yt,{enumerable:_t(0,!1)})):(tt(bt,In)||rn(bt,In,_t(1,{})),bt[In][pt]=!0),vn(bt,pt,yt)):rn(bt,pt,yt)},Fn=function(bt,pt){Ct(bt);for(var yt,Ut=gt(pt=Mt(pt)),an=0,sn=Ut.length;sn>an;)Ln(bt,yt=Ut[an++],pt[yt]);return bt},Un=function(bt){var pt=_n.call(this,bt=kt(bt,!0));return!(this===An&&tt(Yn,bt)&&!tt(dn,bt))&&(!(pt||!tt(this,bt)||!tt(Yn,bt)||tt(this,In)&&this[In][bt])||pt)},Mn=function(bt,pt){if(bt=Mt(bt),pt=kt(pt,!0),bt!==An||!tt(Yn,pt)||tt(dn,pt)){var yt=Zt(bt,pt);return!yt||!tt(Yn,pt)||tt(bt,In)&&bt[In][pt]||(yt.enumerable=!0),yt}},zn=function(bt){for(var pt,yt=nn(Mt(bt)),Ut=[],an=0;yt.length>an;)tt(Yn,pt=yt[an++])||pt==In||pt==at||Ut.push(pt);return Ut},wn=function(bt){for(var pt,yt=bt===An,Ut=nn(yt?dn:Mt(bt)),an=[],sn=0;Ut.length>sn;)!tt(Yn,pt=Ut[sn++])||yt&&!tt(An,pt)||an.push(Yn[pt]);return an};mn||(ot((Qt=function(){if(this instanceof Qt)throw TypeError("Symbol is not a constructor!");var bt=ht(arguments.length>0?arguments[0]:void 0),pt=function(yt){this===An&&pt.call(dn,yt),tt(this,In)&&tt(this[In],bt)&&(this[In][bt]=!1),vn(this,bt,_t(1,yt))};return rt&&kn&&vn(An,bt,{configurable:!0,set:pt}),En(bt)}).prototype,"toString",function(){return this._k}),Et.f=Mn,Lt.f=Ln,$(41).f=At.f=zn,$(19).f=Un,Ot.f=wn,rt&&!$(14)&&ot(An,"propertyIsEnumerable",Un,!0),lt.f=function(bt){return En(ft(bt))}),nt(nt.G+nt.W+nt.F*!mn,{Symbol:Qt});for(var Nn="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Wn=0;Nn.length>Wn;)ft(Nn[Wn++]);for(var Vn=Bt(ft.store),bn=0;Vn.length>bn;)ct(Vn[bn++]);nt(nt.S+nt.F*!mn,"Symbol",{for:function(bt){return tt(Bn,bt+="")?Bn[bt]:Bn[bt]=Qt(bt)},keyFor:function(bt){if(!gn(bt))throw TypeError(bt+" is not a symbol!");for(var pt in Bn)if(Bn[pt]===bt)return pt},useSetter:function(){kn=!0},useSimple:function(){kn=!1}}),nt(nt.S+nt.F*!mn,"Object",{create:function(bt,pt){return pt===void 0?Tt(bt):Fn(Tt(bt),pt)},defineProperty:Ln,defineProperties:Fn,getOwnPropertyDescriptor:Mn,getOwnPropertyNames:zn,getOwnPropertySymbols:wn});var Yt=it(function(){Ot.f(1)});nt(nt.S+nt.F*Yt,"Object",{getOwnPropertySymbols:function(bt){return Ot.f(wt(bt))}}),Vt&&nt(nt.S+nt.F*(!mn||it(function(){var bt=Qt();return fn([bt])!="[null]"||fn({a:bt})!="{}"||fn(Object(bt))!="{}"})),"JSON",{stringify:function(bt){for(var pt,yt,Ut=[bt],an=1;arguments.length>an;)Ut.push(arguments[an++]);if(yt=pt=Ut[1],(xt(pt)||bt!==void 0)&&!gn(bt))return st(pt)||(pt=function(sn,Sn){if(typeof yt=="function"&&(Sn=yt.call(this,sn,Sn)),!gn(Sn))return Sn}),Ut[1]=pt,fn.apply(Vt,Ut)}}),Qt.prototype[On]||$(6)(Qt.prototype,On,Qt.prototype.valueOf),ut(Qt,"Symbol"),ut(Math,"Math",!0),ut(et.JSON,"JSON",!0)},function(k,j,$){var et=$(17)("meta"),tt=$(11),rt=$(5),nt=$(7).f,ot=0,at=Object.isExtensible||function(){return!0},it=!$(8)(function(){return at(Object.preventExtensions({}))}),dt=function(ht){nt(ht,et,{value:{i:"O"+ ++ot,w:{}}})},ut=k.exports={KEY:et,NEED:!1,fastKey:function(ht,ft){if(!tt(ht))return typeof ht=="symbol"?ht:(typeof ht=="string"?"S":"P")+ht;if(!rt(ht,et)){if(!at(ht))return"F";if(!ft)return"E";dt(ht)}return ht[et].i},getWeak:function(ht,ft){if(!rt(ht,et)){if(!at(ht))return!0;if(!ft)return!1;dt(ht)}return ht[et].w},onFreeze:function(ht){return it&&ut.NEED&&at(ht)&&!rt(ht,et)&&dt(ht),ht}}},function(k,j,$){var et=$(13),tt=$(32),rt=$(19);k.exports=function(nt){var ot=et(nt),at=tt.f;if(at)for(var it,dt=at(nt),ut=rt.f,ht=0;dt.length>ht;)ut.call(nt,it=dt[ht++])&&ot.push(it);return ot}},function(k,j,$){var et=$(24);k.exports=Array.isArray||function(tt){return et(tt)=="Array"}},function(k,j,$){var et=$(9),tt=$(41).f,rt={}.toString,nt=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];k.exports.f=function(ot){return nt&&rt.call(ot)=="[object Window]"?function(at){try{return tt(at)}catch{return nt.slice()}}(ot):tt(et(ot))}},function(k,j,$){var et=$(19),tt=$(16),rt=$(9),nt=$(23),ot=$(5),at=$(35),it=Object.getOwnPropertyDescriptor;j.f=$(4)?it:function(dt,ut){if(dt=rt(dt),ut=nt(ut,!0),at)try{return it(dt,ut)}catch{}if(ot(dt,ut))return tt(!et.f.call(dt,ut),dt[ut])}},function(k,j){},function(k,j,$){$(31)("asyncIterator")},function(k,j,$){$(31)("observable")},function(k,j,$){j.__esModule=!0;var et,tt=$(77),rt=(et=tt)&&et.__esModule?et:{default:et};j.default=rt.default||function(nt){for(var ot=1;otlt;)for(var st,Ct=at(arguments[lt++]),xt=ct?tt(Ct).concat(ct(Ct)):tt(Ct),wt=xt.length,Mt=0;wt>Mt;)st=xt[Mt++],et&&!gt.call(Ct,st)||(ht[st]=Ct[st]);return ht}:it},function(k,j,$){j.__esModule=!0;var et=rt($(82)),tt=rt($(85));function rt(nt){return nt&&nt.__esModule?nt:{default:nt}}j.default=function(nt,ot){if(Array.isArray(nt))return nt;if((0,et.default)(Object(nt)))return function(at,it){var dt=[],ut=!0,ht=!1,ft=void 0;try{for(var lt,ct=(0,tt.default)(at);!(ut=(lt=ct.next()).done)&&(dt.push(lt.value),!it||dt.length!==it);ut=!0);}catch(gt){ht=!0,ft=gt}finally{try{!ut&&ct.return&&ct.return()}finally{if(ht)throw ft}}return dt}(nt,ot);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(k,j,$){k.exports={default:$(83),__esModule:!0}},function(k,j,$){$(29),$(20),k.exports=$(84)},function(k,j,$){var et=$(42),tt=$(2)("iterator"),rt=$(12);k.exports=$(1).isIterable=function(nt){var ot=Object(nt);return ot[tt]!==void 0||"@@iterator"in ot||rt.hasOwnProperty(et(ot))}},function(k,j,$){k.exports={default:$(86),__esModule:!0}},function(k,j,$){$(29),$(20),k.exports=$(87)},function(k,j,$){var et=$(10),tt=$(88);k.exports=$(1).getIterator=function(rt){var nt=tt(rt);if(typeof nt!="function")throw TypeError(rt+" is not iterable!");return et(nt.call(rt))}},function(k,j,$){var et=$(42),tt=$(2)("iterator"),rt=$(12);k.exports=$(1).getIteratorMethod=function(nt){if(nt!=null)return nt[tt]||nt["@@iterator"]||rt[et(nt)]}},function(k,j,$){k.exports={default:$(90),__esModule:!0}},function(k,j,$){$(91),k.exports=$(1).Object.keys},function(k,j,$){var et=$(18),tt=$(13);$(92)("keys",function(){return function(rt){return tt(et(rt))}})},function(k,j,$){var et=$(15),tt=$(1),rt=$(8);k.exports=function(nt,ot){var at=(tt.Object||{})[nt]||Object[nt],it={};it[nt]=ot(at),et(et.S+et.F*rt(function(){at(1)}),"Object",it)}},function(k,j,$){(function(et){var tt=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],rt=/^\s+|\s+$/g,nt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,it=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,ut=/^\[object .+?Constructor\]$/,ht=/^0o[0-7]+$/i,ft=/^(?:0|[1-9]\d*)$/,lt=parseInt,ct=typeof et=="object"&&et&&et.Object===Object&&et,gt=typeof self=="object"&&self&&self.Object===Object&&self,st=ct||gt||Function("return this")();function Ct(bn,Yt,bt){switch(bt.length){case 0:return bn.call(Yt);case 1:return bn.call(Yt,bt[0]);case 2:return bn.call(Yt,bt[0],bt[1]);case 3:return bn.call(Yt,bt[0],bt[1],bt[2])}return bn.apply(Yt,bt)}function xt(bn,Yt){return!!(bn&&bn.length)&&function(bt,pt,yt){if(pt!=pt)return function(sn,Sn,or,Rn){for(var Xn=sn.length,$n=or+(Rn?1:-1);Rn?$n--:++$n-1}function wt(bn){return bn!=bn}function Mt(bn,Yt){for(var bt=bn.length,pt=0;bt--;)bn[bt]===Yt&&pt++;return pt}function kt(bn,Yt){for(var bt=-1,pt=bn.length,yt=0,Ut=[];++bt2?Tt:void 0);function _n(bn){return Nn(bn)?Vt(bn):{}}function Bn(bn){return!(!Nn(bn)||function(Yt){return!!Bt&&Bt in Yt}(bn))&&(function(Yt){var bt=Nn(Yt)?nn.call(Yt):"";return bt=="[object Function]"||bt=="[object GeneratorFunction]"}(bn)||function(Yt){var bt=!1;if(Yt!=null&&typeof Yt.toString!="function")try{bt=!!(Yt+"")}catch{}return bt}(bn)?Qt:ut).test(function(Yt){if(Yt!=null){try{return Zt.call(Yt)}catch{}try{return Yt+""}catch{}}return""}(bn))}function Yn(bn,Yt,bt,pt){for(var yt=-1,Ut=bn.length,an=bt.length,sn=-1,Sn=Yt.length,or=fn(Ut-an,0),Rn=Array(Sn+or),Xn=!pt;++sn1&&pr.reverse(),Rn&&Sn1?"& ":"")+Yt[pt],Yt=Yt.join(bt>2?", ":" "),bn.replace(nt,`{ /* [wrapped with `+Yt+`] */ -`)}function Fn(bn,Yt){return!!(Yt=Yt??9007199254740991)&&(typeof bn=="number"||ft.test(bn))&&bn>-1&&bn%1==0&&bn1&&rt--,ot=6*rt<1?et+6*(tt-et)*rt:2*rt<1?tt:3*rt<2?et+(tt-et)*(2/3-rt)*6:et,nt[ut]=255*ot;return nt}},function(k,j,$){(function(et){var tt=typeof et=="object"&&et&&et.Object===Object&&et,rt=typeof self=="object"&&self&&self.Object===Object&&self,nt=tt||rt||Function("return this")();function ot(kt,_t,Tt){switch(Tt.length){case 0:return kt.call(_t);case 1:return kt.call(_t,Tt[0]);case 2:return kt.call(_t,Tt[0],Tt[1]);case 3:return kt.call(_t,Tt[0],Tt[1],Tt[2])}return kt.apply(_t,Tt)}function at(kt,_t){for(var Tt=-1,At=_t.length,Et=kt.length;++Tt-1&&Et%1==0&&Et<=9007199254740991}(At.length)&&!function(Et){var Ot=function(Lt){var Pt=typeof Lt;return!!Lt&&(Pt=="object"||Pt=="function")}(Et)?ut.call(Et):"";return Ot=="[object Function]"||Ot=="[object GeneratorFunction]"}(At)}(Tt)}(_t)&&dt.call(_t,"callee")&&(!ft.call(_t,"callee")||ut.call(_t)=="[object Arguments]")}(kt)||!!(lt&&kt&&kt[lt])}var st=Array.isArray,Ct,xt,wt,Mt=(xt=function(kt){var _t=(kt=function At(Et,Ot,Lt,Pt,Zt){var rn=-1,nn=Et.length;for(Lt||(Lt=gt),Zt||(Zt=[]);++rn0&&Lt(Qt)?Ot>1?At(Qt,Ot-1,Lt,Pt,Zt):at(Zt,Qt):Pt||(Zt[Zt.length]=Qt)}return Zt}(kt,1)).length,Tt=_t;for(Ct;Tt--;)if(typeof kt[Tt]!="function")throw new TypeError("Expected a function");return function(){for(var At=0,Et=_t?kt[At].apply(this,arguments):arguments[0];++At<_t;)Et=kt[At].call(this,Et);return Et}},wt=ct(wt===void 0?xt.length-1:wt,0),function(){for(var kt=arguments,_t=-1,Tt=ct(kt.length-wt,0),At=Array(Tt);++_t2?rt-2:0),ot=2;ot"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var Rt,zt=ut(It);if(Nt){var Bt=ut(this).constructor;Rt=Reflect.construct(zt,arguments,Bt)}else Rt=zt.apply(this,arguments);return lt(this,Rt)}}$.r(j);var gt=$(0),st=$.n(gt);function Ct(){var It=this.constructor.getDerivedStateFromProps(this.props,this.state);It!=null&&this.setState(It)}function xt(It){this.setState((function(Nt){var Rt=this.constructor.getDerivedStateFromProps(It,Nt);return Rt??null}).bind(this))}function wt(It,Nt){try{var Rt=this.props,zt=this.state;this.props=It,this.state=Nt,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(Rt,zt)}finally{this.props=Rt,this.state=zt}}function Mt(It){var Nt=It.prototype;if(!Nt||!Nt.isReactComponent)throw new Error("Can only polyfill class components");if(typeof It.getDerivedStateFromProps!="function"&&typeof Nt.getSnapshotBeforeUpdate!="function")return It;var Rt=null,zt=null,Bt=null;if(typeof Nt.componentWillMount=="function"?Rt="componentWillMount":typeof Nt.UNSAFE_componentWillMount=="function"&&(Rt="UNSAFE_componentWillMount"),typeof Nt.componentWillReceiveProps=="function"?zt="componentWillReceiveProps":typeof Nt.UNSAFE_componentWillReceiveProps=="function"&&(zt="UNSAFE_componentWillReceiveProps"),typeof Nt.componentWillUpdate=="function"?Bt="componentWillUpdate":typeof Nt.UNSAFE_componentWillUpdate=="function"&&(Bt="UNSAFE_componentWillUpdate"),Rt!==null||zt!==null||Bt!==null){var hn=It.displayName||It.name,un=typeof It.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. +`)}function Fn(bn,Yt){return!!(Yt=Yt??9007199254740991)&&(typeof bn=="number"||ft.test(bn))&&bn>-1&&bn%1==0&&bn1&&rt--,ot=6*rt<1?et+6*(tt-et)*rt:2*rt<1?tt:3*rt<2?et+(tt-et)*(2/3-rt)*6:et,nt[ut]=255*ot;return nt}},function(k,j,$){(function(et){var tt=typeof et=="object"&&et&&et.Object===Object&&et,rt=typeof self=="object"&&self&&self.Object===Object&&self,nt=tt||rt||Function("return this")();function ot(kt,_t,Tt){switch(Tt.length){case 0:return kt.call(_t);case 1:return kt.call(_t,Tt[0]);case 2:return kt.call(_t,Tt[0],Tt[1]);case 3:return kt.call(_t,Tt[0],Tt[1],Tt[2])}return kt.apply(_t,Tt)}function at(kt,_t){for(var Tt=-1,At=_t.length,Et=kt.length;++Tt-1&&Et%1==0&&Et<=9007199254740991}(At.length)&&!function(Et){var Ot=function(Lt){var Bt=typeof Lt;return!!Lt&&(Bt=="object"||Bt=="function")}(Et)?ut.call(Et):"";return Ot=="[object Function]"||Ot=="[object GeneratorFunction]"}(At)}(Tt)}(_t)&&dt.call(_t,"callee")&&(!ft.call(_t,"callee")||ut.call(_t)=="[object Arguments]")}(kt)||!!(lt&&kt&&kt[lt])}var st=Array.isArray,Ct,xt,wt,Mt=(xt=function(kt){var _t=(kt=function At(Et,Ot,Lt,Bt,Zt){var rn=-1,nn=Et.length;for(Lt||(Lt=gt),Zt||(Zt=[]);++rn0&&Lt(Qt)?Ot>1?At(Qt,Ot-1,Lt,Bt,Zt):at(Zt,Qt):Bt||(Zt[Zt.length]=Qt)}return Zt}(kt,1)).length,Tt=_t;for(Ct;Tt--;)if(typeof kt[Tt]!="function")throw new TypeError("Expected a function");return function(){for(var At=0,Et=_t?kt[At].apply(this,arguments):arguments[0];++At<_t;)Et=kt[At].call(this,Et);return Et}},wt=ct(wt===void 0?xt.length-1:wt,0),function(){for(var kt=arguments,_t=-1,Tt=ct(kt.length-wt,0),At=Array(Tt);++_t2?rt-2:0),ot=2;ot"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var Rt,Wt=ut(It);if(Nt){var Pt=ut(this).constructor;Rt=Reflect.construct(Wt,arguments,Pt)}else Rt=Wt.apply(this,arguments);return lt(this,Rt)}}$.r(j);var gt=$(0),st=$.n(gt);function Ct(){var It=this.constructor.getDerivedStateFromProps(this.props,this.state);It!=null&&this.setState(It)}function xt(It){this.setState((function(Nt){var Rt=this.constructor.getDerivedStateFromProps(It,Nt);return Rt??null}).bind(this))}function wt(It,Nt){try{var Rt=this.props,Wt=this.state;this.props=It,this.state=Nt,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(Rt,Wt)}finally{this.props=Rt,this.state=Wt}}function Mt(It){var Nt=It.prototype;if(!Nt||!Nt.isReactComponent)throw new Error("Can only polyfill class components");if(typeof It.getDerivedStateFromProps!="function"&&typeof Nt.getSnapshotBeforeUpdate!="function")return It;var Rt=null,Wt=null,Pt=null;if(typeof Nt.componentWillMount=="function"?Rt="componentWillMount":typeof Nt.UNSAFE_componentWillMount=="function"&&(Rt="UNSAFE_componentWillMount"),typeof Nt.componentWillReceiveProps=="function"?Wt="componentWillReceiveProps":typeof Nt.UNSAFE_componentWillReceiveProps=="function"&&(Wt="UNSAFE_componentWillReceiveProps"),typeof Nt.componentWillUpdate=="function"?Pt="componentWillUpdate":typeof Nt.UNSAFE_componentWillUpdate=="function"&&(Pt="UNSAFE_componentWillUpdate"),Rt!==null||Wt!==null||Pt!==null){var hn=It.displayName||It.name,un=typeof It.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. `+hn+" uses "+un+" but also contains the following legacy lifecycles:"+(Rt!==null?` - `+Rt:"")+(zt!==null?` - `+zt:"")+(Bt!==null?` - `+Bt:"")+` + `+Rt:"")+(Wt!==null?` + `+Wt:"")+(Pt!==null?` + `+Pt:"")+` The above lifecycles should be removed. Learn more about this warning here: -https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof It.getDerivedStateFromProps=="function"&&(Nt.componentWillMount=Ct,Nt.componentWillReceiveProps=xt),typeof Nt.getSnapshotBeforeUpdate=="function"){if(typeof Nt.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");Nt.componentWillUpdate=wt;var tn=Nt.componentDidUpdate;Nt.componentDidUpdate=function(Gt,xn,Gn){var Jn=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:Gn;tn.call(this,Gt,xn,Jn)}}return It}function kt(It,Nt){if(It==null)return{};var Rt,zt,Bt=function(un,tn){if(un==null)return{};var Gt,xn,Gn={},Jn=Object.keys(un);for(xn=0;xn=0||(Gn[Gt]=un[Gt]);return Gn}(It,Nt);if(Object.getOwnPropertySymbols){var hn=Object.getOwnPropertySymbols(It);for(zt=0;zt=0||Object.prototype.propertyIsEnumerable.call(It,Rt)&&(Bt[Rt]=It[Rt])}return Bt}function _t(It){var Nt=function(Rt){return{}.toString.call(Rt).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(It);return Nt==="number"&&(Nt=isNaN(It)?"nan":(0|It)!=It?"float":"integer"),Nt}Ct.__suppressDeprecationWarning=!0,xt.__suppressDeprecationWarning=!0,wt.__suppressDeprecationWarning=!0;var Tt={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},At={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},Et={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},Ot=$(45),Lt=function(It){var Nt=function(Rt){return{backgroundColor:Rt.base00,ellipsisColor:Rt.base09,braceColor:Rt.base07,expandedIcon:Rt.base0D,collapsedIcon:Rt.base0E,keyColor:Rt.base07,arrayKeyColor:Rt.base0C,objectSize:Rt.base04,copyToClipboard:Rt.base0F,copyToClipboardCheck:Rt.base0D,objectBorder:Rt.base02,dataTypes:{boolean:Rt.base0E,date:Rt.base0D,float:Rt.base0B,function:Rt.base0D,integer:Rt.base0F,string:Rt.base09,nan:Rt.base08,null:Rt.base0A,undefined:Rt.base05,regexp:Rt.base0A,background:Rt.base02},editVariable:{editIcon:Rt.base0E,cancelIcon:Rt.base09,removeIcon:Rt.base09,addIcon:Rt.base0E,checkIcon:Rt.base0E,background:Rt.base01,color:Rt.base0A,border:Rt.base07},addKeyModal:{background:Rt.base05,border:Rt.base04,color:Rt.base0A,labelColor:Rt.base01},validationFailure:{background:Rt.base09,iconColor:Rt.base01,fontColor:Rt.base01}}}(It);return{"app-container":{fontFamily:Et.globalFontFamily,cursor:Et.globalCursor,backgroundColor:Nt.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:Nt.ellipsisColor,fontSize:Et.ellipsisFontSize,lineHeight:Et.ellipsisLineHeight,cursor:Et.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:Et.braceCursor,fontWeight:Et.braceFontWeight,color:Nt.braceColor},"expanded-icon":{color:Nt.expandedIcon},"collapsed-icon":{color:Nt.collapsedIcon},colon:{display:"inline-block",margin:Et.keyMargin,color:Nt.keyColor,verticalAlign:"top"},objectKeyVal:function(Rt,zt){return{style:rt({paddingTop:Et.keyValPaddingTop,paddingRight:Et.keyValPaddingRight,paddingBottom:Et.keyValPaddingBottom,borderLeft:Et.keyValBorderLeft+" "+Nt.objectBorder,":hover":{paddingLeft:zt.paddingLeft-1+"px",borderLeft:Et.keyValBorderHover+" "+Nt.objectBorder}},zt)}},"object-key-val-no-border":{padding:Et.keyValPadding},"pushed-content":{marginLeft:Et.pushedContentMarginLeft},variableValue:function(Rt,zt){return{style:rt({display:"inline-block",paddingRight:Et.variableValuePaddingRight,position:"relative"},zt)}},"object-name":{display:"inline-block",color:Nt.keyColor,letterSpacing:Et.keyLetterSpacing,fontStyle:Et.keyFontStyle,verticalAlign:Et.keyVerticalAlign,opacity:Et.keyOpacity,":hover":{opacity:Et.keyOpacityHover}},"array-key":{display:"inline-block",color:Nt.arrayKeyColor,letterSpacing:Et.keyLetterSpacing,fontStyle:Et.keyFontStyle,verticalAlign:Et.keyVerticalAlign,opacity:Et.keyOpacity,":hover":{opacity:Et.keyOpacityHover}},"object-size":{color:Nt.objectSize,borderRadius:Et.objectSizeBorderRadius,fontStyle:Et.objectSizeFontStyle,margin:Et.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:Et.dataTypeFontSize,marginRight:Et.dataTypeMarginRight,opacity:Et.datatypeOpacity},boolean:{display:"inline-block",color:Nt.dataTypes.boolean},date:{display:"inline-block",color:Nt.dataTypes.date},"date-value":{marginLeft:Et.dateValueMarginLeft},float:{display:"inline-block",color:Nt.dataTypes.float},function:{display:"inline-block",color:Nt.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:Nt.dataTypes.integer},string:{display:"inline-block",color:Nt.dataTypes.string},nan:{display:"inline-block",color:Nt.dataTypes.nan,fontSize:Et.nanFontSize,fontWeight:Et.nanFontWeight,backgroundColor:Nt.dataTypes.background,padding:Et.nanPadding,borderRadius:Et.nanBorderRadius},null:{display:"inline-block",color:Nt.dataTypes.null,fontSize:Et.nullFontSize,fontWeight:Et.nullFontWeight,backgroundColor:Nt.dataTypes.background,padding:Et.nullPadding,borderRadius:Et.nullBorderRadius},undefined:{display:"inline-block",color:Nt.dataTypes.undefined,fontSize:Et.undefinedFontSize,padding:Et.undefinedPadding,borderRadius:Et.undefinedBorderRadius,backgroundColor:Nt.dataTypes.background},regexp:{display:"inline-block",color:Nt.dataTypes.regexp},"copy-to-clipboard":{cursor:Et.clipboardCursor},"copy-icon":{color:Nt.copyToClipboard,fontSize:Et.iconFontSize,marginRight:Et.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:Nt.copyToClipboardCheck,marginLeft:Et.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:Et.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:Et.metaDataPadding},"icon-container":{display:"inline-block",width:Et.iconContainerWidth},tooltip:{padding:Et.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:Nt.editVariable.removeIcon,cursor:Et.iconCursor,fontSize:Et.iconFontSize,marginRight:Et.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:Nt.editVariable.addIcon,cursor:Et.iconCursor,fontSize:Et.iconFontSize,marginRight:Et.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:Nt.editVariable.editIcon,cursor:Et.iconCursor,fontSize:Et.iconFontSize,marginRight:Et.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:Et.iconCursor,color:Nt.editVariable.checkIcon,fontSize:Et.iconFontSize,paddingRight:Et.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:Et.iconCursor,color:Nt.editVariable.cancelIcon,fontSize:Et.iconFontSize,paddingRight:Et.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:Et.editInputMinWidth,borderRadius:Et.editInputBorderRadius,backgroundColor:Nt.editVariable.background,color:Nt.editVariable.color,padding:Et.editInputPadding,marginRight:Et.editInputMarginRight,fontFamily:Et.editInputFontFamily},"detected-row":{paddingTop:Et.detectedRowPaddingTop},"key-modal-request":{position:Et.addKeyCoverPosition,top:Et.addKeyCoverPositionPx,left:Et.addKeyCoverPositionPx,right:Et.addKeyCoverPositionPx,bottom:Et.addKeyCoverPositionPx,backgroundColor:Et.addKeyCoverBackground},"key-modal":{width:Et.addKeyModalWidth,backgroundColor:Nt.addKeyModal.background,marginLeft:Et.addKeyModalMargin,marginRight:Et.addKeyModalMargin,padding:Et.addKeyModalPadding,borderRadius:Et.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:Nt.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:Nt.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:Nt.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:Nt.addKeyModal.labelColor,fontSize:Et.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:Nt.editVariable.addIcon,fontSize:Et.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:Nt.ellipsisColor,fontSize:Et.ellipsisFontSize,lineHeight:Et.ellipsisLineHeight,cursor:Et.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:Nt.validationFailure.fontColor,backgroundColor:Nt.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:Nt.validationFailure.iconColor,fontSize:Et.iconFontSize,transform:"rotate(45deg)"}}};function Pt(It,Nt,Rt){return It||console.error("theme has not been set"),function(zt){var Bt=Tt;return zt!==!1&&zt!=="none"||(Bt=At),Object(Ot.createStyling)(Lt,{defaultBase16:Bt})(zt)}(It)(Nt,Rt)}var Zt=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var zt=this.props,Bt=(zt.rjvId,zt.type_name),hn=zt.displayDataTypes,un=zt.theme;return hn?st.a.createElement("span",Object.assign({className:"data-type-label"},Pt(un,"data-type-label")),Bt):null}}]),Rt}(st.a.PureComponent),rn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var zt=this.props;return st.a.createElement("div",Pt(zt.theme,"boolean"),st.a.createElement(Zt,Object.assign({type_name:"bool"},zt)),zt.value?"true":"false")}}]),Rt}(st.a.PureComponent),nn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var zt=this.props;return st.a.createElement("div",Pt(zt.theme,"date"),st.a.createElement(Zt,Object.assign({type_name:"date"},zt)),st.a.createElement("span",Object.assign({className:"date-value"},Pt(zt.theme,"date-value")),zt.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),Rt}(st.a.PureComponent),Qt=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var zt=this.props;return st.a.createElement("div",Pt(zt.theme,"float"),st.a.createElement(Zt,Object.assign({type_name:"float"},zt)),this.props.value)}}]),Rt}(st.a.PureComponent);function Vt(It,Nt){(Nt==null||Nt>It.length)&&(Nt=It.length);for(var Rt=0,zt=new Array(Nt);Rt"u"||It[Symbol.iterator]==null){if(Array.isArray(It)||(Rt=fn(It))||Nt&&It&&typeof It.length=="number"){Rt&&(It=Rt);var zt=0,Bt=function(){};return{s:Bt,n:function(){return zt>=It.length?{done:!0}:{done:!1,value:It[zt++]}},e:function(Gt){throw Gt},f:Bt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof It.getDerivedStateFromProps=="function"&&(Nt.componentWillMount=Ct,Nt.componentWillReceiveProps=xt),typeof Nt.getSnapshotBeforeUpdate=="function"){if(typeof Nt.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");Nt.componentWillUpdate=wt;var tn=Nt.componentDidUpdate;Nt.componentDidUpdate=function(Gt,xn,Gn){var Jn=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:Gn;tn.call(this,Gt,xn,Jn)}}return It}function kt(It,Nt){if(It==null)return{};var Rt,Wt,Pt=function(un,tn){if(un==null)return{};var Gt,xn,Gn={},Jn=Object.keys(un);for(xn=0;xn=0||(Gn[Gt]=un[Gt]);return Gn}(It,Nt);if(Object.getOwnPropertySymbols){var hn=Object.getOwnPropertySymbols(It);for(Wt=0;Wt=0||Object.prototype.propertyIsEnumerable.call(It,Rt)&&(Pt[Rt]=It[Rt])}return Pt}function _t(It){var Nt=function(Rt){return{}.toString.call(Rt).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(It);return Nt==="number"&&(Nt=isNaN(It)?"nan":(0|It)!=It?"float":"integer"),Nt}Ct.__suppressDeprecationWarning=!0,xt.__suppressDeprecationWarning=!0,wt.__suppressDeprecationWarning=!0;var Tt={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},At={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},Et={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},Ot=$(45),Lt=function(It){var Nt=function(Rt){return{backgroundColor:Rt.base00,ellipsisColor:Rt.base09,braceColor:Rt.base07,expandedIcon:Rt.base0D,collapsedIcon:Rt.base0E,keyColor:Rt.base07,arrayKeyColor:Rt.base0C,objectSize:Rt.base04,copyToClipboard:Rt.base0F,copyToClipboardCheck:Rt.base0D,objectBorder:Rt.base02,dataTypes:{boolean:Rt.base0E,date:Rt.base0D,float:Rt.base0B,function:Rt.base0D,integer:Rt.base0F,string:Rt.base09,nan:Rt.base08,null:Rt.base0A,undefined:Rt.base05,regexp:Rt.base0A,background:Rt.base02},editVariable:{editIcon:Rt.base0E,cancelIcon:Rt.base09,removeIcon:Rt.base09,addIcon:Rt.base0E,checkIcon:Rt.base0E,background:Rt.base01,color:Rt.base0A,border:Rt.base07},addKeyModal:{background:Rt.base05,border:Rt.base04,color:Rt.base0A,labelColor:Rt.base01},validationFailure:{background:Rt.base09,iconColor:Rt.base01,fontColor:Rt.base01}}}(It);return{"app-container":{fontFamily:Et.globalFontFamily,cursor:Et.globalCursor,backgroundColor:Nt.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:Nt.ellipsisColor,fontSize:Et.ellipsisFontSize,lineHeight:Et.ellipsisLineHeight,cursor:Et.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:Et.braceCursor,fontWeight:Et.braceFontWeight,color:Nt.braceColor},"expanded-icon":{color:Nt.expandedIcon},"collapsed-icon":{color:Nt.collapsedIcon},colon:{display:"inline-block",margin:Et.keyMargin,color:Nt.keyColor,verticalAlign:"top"},objectKeyVal:function(Rt,Wt){return{style:rt({paddingTop:Et.keyValPaddingTop,paddingRight:Et.keyValPaddingRight,paddingBottom:Et.keyValPaddingBottom,borderLeft:Et.keyValBorderLeft+" "+Nt.objectBorder,":hover":{paddingLeft:Wt.paddingLeft-1+"px",borderLeft:Et.keyValBorderHover+" "+Nt.objectBorder}},Wt)}},"object-key-val-no-border":{padding:Et.keyValPadding},"pushed-content":{marginLeft:Et.pushedContentMarginLeft},variableValue:function(Rt,Wt){return{style:rt({display:"inline-block",paddingRight:Et.variableValuePaddingRight,position:"relative"},Wt)}},"object-name":{display:"inline-block",color:Nt.keyColor,letterSpacing:Et.keyLetterSpacing,fontStyle:Et.keyFontStyle,verticalAlign:Et.keyVerticalAlign,opacity:Et.keyOpacity,":hover":{opacity:Et.keyOpacityHover}},"array-key":{display:"inline-block",color:Nt.arrayKeyColor,letterSpacing:Et.keyLetterSpacing,fontStyle:Et.keyFontStyle,verticalAlign:Et.keyVerticalAlign,opacity:Et.keyOpacity,":hover":{opacity:Et.keyOpacityHover}},"object-size":{color:Nt.objectSize,borderRadius:Et.objectSizeBorderRadius,fontStyle:Et.objectSizeFontStyle,margin:Et.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:Et.dataTypeFontSize,marginRight:Et.dataTypeMarginRight,opacity:Et.datatypeOpacity},boolean:{display:"inline-block",color:Nt.dataTypes.boolean},date:{display:"inline-block",color:Nt.dataTypes.date},"date-value":{marginLeft:Et.dateValueMarginLeft},float:{display:"inline-block",color:Nt.dataTypes.float},function:{display:"inline-block",color:Nt.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:Nt.dataTypes.integer},string:{display:"inline-block",color:Nt.dataTypes.string},nan:{display:"inline-block",color:Nt.dataTypes.nan,fontSize:Et.nanFontSize,fontWeight:Et.nanFontWeight,backgroundColor:Nt.dataTypes.background,padding:Et.nanPadding,borderRadius:Et.nanBorderRadius},null:{display:"inline-block",color:Nt.dataTypes.null,fontSize:Et.nullFontSize,fontWeight:Et.nullFontWeight,backgroundColor:Nt.dataTypes.background,padding:Et.nullPadding,borderRadius:Et.nullBorderRadius},undefined:{display:"inline-block",color:Nt.dataTypes.undefined,fontSize:Et.undefinedFontSize,padding:Et.undefinedPadding,borderRadius:Et.undefinedBorderRadius,backgroundColor:Nt.dataTypes.background},regexp:{display:"inline-block",color:Nt.dataTypes.regexp},"copy-to-clipboard":{cursor:Et.clipboardCursor},"copy-icon":{color:Nt.copyToClipboard,fontSize:Et.iconFontSize,marginRight:Et.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:Nt.copyToClipboardCheck,marginLeft:Et.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:Et.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:Et.metaDataPadding},"icon-container":{display:"inline-block",width:Et.iconContainerWidth},tooltip:{padding:Et.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:Nt.editVariable.removeIcon,cursor:Et.iconCursor,fontSize:Et.iconFontSize,marginRight:Et.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:Nt.editVariable.addIcon,cursor:Et.iconCursor,fontSize:Et.iconFontSize,marginRight:Et.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:Nt.editVariable.editIcon,cursor:Et.iconCursor,fontSize:Et.iconFontSize,marginRight:Et.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:Et.iconCursor,color:Nt.editVariable.checkIcon,fontSize:Et.iconFontSize,paddingRight:Et.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:Et.iconCursor,color:Nt.editVariable.cancelIcon,fontSize:Et.iconFontSize,paddingRight:Et.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:Et.editInputMinWidth,borderRadius:Et.editInputBorderRadius,backgroundColor:Nt.editVariable.background,color:Nt.editVariable.color,padding:Et.editInputPadding,marginRight:Et.editInputMarginRight,fontFamily:Et.editInputFontFamily},"detected-row":{paddingTop:Et.detectedRowPaddingTop},"key-modal-request":{position:Et.addKeyCoverPosition,top:Et.addKeyCoverPositionPx,left:Et.addKeyCoverPositionPx,right:Et.addKeyCoverPositionPx,bottom:Et.addKeyCoverPositionPx,backgroundColor:Et.addKeyCoverBackground},"key-modal":{width:Et.addKeyModalWidth,backgroundColor:Nt.addKeyModal.background,marginLeft:Et.addKeyModalMargin,marginRight:Et.addKeyModalMargin,padding:Et.addKeyModalPadding,borderRadius:Et.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:Nt.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:Nt.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:Nt.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:Nt.addKeyModal.labelColor,fontSize:Et.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:Nt.editVariable.addIcon,fontSize:Et.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:Nt.ellipsisColor,fontSize:Et.ellipsisFontSize,lineHeight:Et.ellipsisLineHeight,cursor:Et.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:Nt.validationFailure.fontColor,backgroundColor:Nt.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:Nt.validationFailure.iconColor,fontSize:Et.iconFontSize,transform:"rotate(45deg)"}}};function Bt(It,Nt,Rt){return It||console.error("theme has not been set"),function(Wt){var Pt=Tt;return Wt!==!1&&Wt!=="none"||(Pt=At),Object(Ot.createStyling)(Lt,{defaultBase16:Pt})(Wt)}(It)(Nt,Rt)}var Zt=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=(Wt.rjvId,Wt.type_name),hn=Wt.displayDataTypes,un=Wt.theme;return hn?st.a.createElement("span",Object.assign({className:"data-type-label"},Bt(un,"data-type-label")),Pt):null}}]),Rt}(st.a.PureComponent),rn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props;return st.a.createElement("div",Bt(Wt.theme,"boolean"),st.a.createElement(Zt,Object.assign({type_name:"bool"},Wt)),Wt.value?"true":"false")}}]),Rt}(st.a.PureComponent),nn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props;return st.a.createElement("div",Bt(Wt.theme,"date"),st.a.createElement(Zt,Object.assign({type_name:"date"},Wt)),st.a.createElement("span",Object.assign({className:"date-value"},Bt(Wt.theme,"date-value")),Wt.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),Rt}(st.a.PureComponent),Qt=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props;return st.a.createElement("div",Bt(Wt.theme,"float"),st.a.createElement(Zt,Object.assign({type_name:"float"},Wt)),this.props.value)}}]),Rt}(st.a.PureComponent);function Vt(It,Nt){(Nt==null||Nt>It.length)&&(Nt=It.length);for(var Rt=0,Wt=new Array(Nt);Rt"u"||It[Symbol.iterator]==null){if(Array.isArray(It)||(Rt=fn(It))||Nt&&It&&typeof It.length=="number"){Rt&&(It=Rt);var Wt=0,Pt=function(){};return{s:Pt,n:function(){return Wt>=It.length?{done:!0}:{done:!1,value:It[Wt++]}},e:function(Gt){throw Gt},f:Pt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var hn,un=!0,tn=!1;return{s:function(){Rt=It[Symbol.iterator]()},n:function(){var Gt=Rt.next();return un=Gt.done,Gt},e:function(Gt){tn=!0,hn=Gt},f:function(){try{un||Rt.return==null||Rt.return()}finally{if(tn)throw hn}}}}function On(It){return function(Nt){if(Array.isArray(Nt))return Vt(Nt)}(It)||function(Nt){if(typeof Symbol<"u"&&Symbol.iterator in Object(Nt))return Array.from(Nt)}(It)||fn(It)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var _n=$(46),Pn=new($(47)).Dispatcher,Yn=new(function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){var zt;nt(this,Rt);for(var Bt=arguments.length,hn=new Array(Bt),un=0;unBt&&(tn.style.cursor="pointer",this.state.collapsed&&(un=st.a.createElement("span",null,un.substring(0,Bt),st.a.createElement("span",Pt(hn,"ellipsis")," ...")))),st.a.createElement("div",Pt(hn,"string"),st.a.createElement(Zt,Object.assign({type_name:"string"},zt)),st.a.createElement("span",Object.assign({className:"string-value"},tn,{onClick:this.toggleCollapsed}),'"',un,'"'))}}]),Rt}(st.a.PureComponent),gn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){return st.a.createElement("div",Pt(this.props.theme,"undefined"),"undefined")}}]),Rt}(st.a.PureComponent);function Ln(){return(Ln=Object.assign||function(It){for(var Nt=1;Nt=0||(Hn[mr]=rr[mr]);return Hn}(It,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),Gn,Jn=xn.value!==void 0,er=Object(gt.useRef)(null),ir=Wn(er,Nt),Kn=Object(gt.useRef)(0),nr=Object(gt.useRef)(),ur=function(){var rr=er.current,yr=Rt&&nr.current?nr.current:function(hr){var lr=window.getComputedStyle(hr);if(lr===null)return null;var sr,dr=(sr=lr,bn.reduce(function(Mr,jr){return Mr[jr]=sr[jr],Mr},{})),Ar=dr.boxSizing;return Ar===""?null:(Yt&&Ar==="border-box"&&(dr.width=parseFloat(dr.width)+parseFloat(dr.borderRightWidth)+parseFloat(dr.borderLeftWidth)+parseFloat(dr.paddingRight)+parseFloat(dr.paddingLeft)+"px"),{sizingStyle:dr,paddingSize:parseFloat(dr.paddingBottom)+parseFloat(dr.paddingTop),borderSize:parseFloat(dr.borderBottomWidth)+parseFloat(dr.borderTopWidth)})}(rr);if(yr){nr.current=yr;var mr=function(hr,lr,sr,dr){sr===void 0&&(sr=1),dr===void 0&&(dr=1/0),zn||((zn=document.createElement("textarea")).setAttribute("tab-index","-1"),zn.setAttribute("aria-hidden","true"),Nn(zn)),zn.parentNode===null&&document.body.appendChild(zn);var Ar=hr.paddingSize,Mr=hr.borderSize,jr=hr.sizingStyle,Ir=jr.boxSizing;Object.keys(jr).forEach(function(Br){var $r=Br;zn.style[$r]=jr[$r]}),Nn(zn),zn.value=lr;var pn=function(Br,$r){var zr=Br.scrollHeight;return $r.sizingStyle.boxSizing==="border-box"?zr+$r.borderSize:zr-$r.paddingSize}(zn,hr);zn.value="x";var Lr=zn.scrollHeight-Ar,Dr=Lr*sr;Ir==="border-box"&&(Dr=Dr+Ar+Mr),pn=Math.max(Dr,pn);var Fr=Lr*dr;return Ir==="border-box"&&(Fr=Fr+Ar+Mr),[pn=Math.min(Fr,pn),Lr]}(yr,rr.value||rr.placeholder||"x",Bt,zt),Bn=mr[0],Hn=mr[1];Kn.current!==Bn&&(Kn.current=Bn,rr.style.setProperty("height",Bn+"px","important"),Gt(Bn,{rowHeight:Hn}))}};return Object(gt.useLayoutEffect)(ur),Gn=Un(ur),Object(gt.useLayoutEffect)(function(){var rr=function(yr){Gn.current(yr)};return window.addEventListener("resize",rr),function(){window.removeEventListener("resize",rr)}},[]),Object(gt.createElement)("textarea",Ln({},xn,{onChange:function(rr){Jn||ur(),un(rr)},ref:ir}))},pt=Object(gt.forwardRef)(bt);function yt(It){It=It.trim();try{if((It=JSON.stringify(JSON.parse(It)))[0]==="[")return Ut("array",JSON.parse(It));if(It[0]==="{")return Ut("object",JSON.parse(It));if(It.match(/\-?\d+\.\d+/)&&It.match(/\-?\d+\.\d+/)[0]===It)return Ut("float",parseFloat(It));if(It.match(/\-?\d+e-\d+/)&&It.match(/\-?\d+e-\d+/)[0]===It)return Ut("float",Number(It));if(It.match(/\-?\d+/)&&It.match(/\-?\d+/)[0]===It)return Ut("integer",parseInt(It));if(It.match(/\-?\d+e\+\d+/)&&It.match(/\-?\d+e\+\d+/)[0]===It)return Ut("integer",Number(It))}catch{}switch(It=It.toLowerCase()){case"undefined":return Ut("undefined",void 0);case"nan":return Ut("nan",NaN);case"null":return Ut("null",null);case"true":return Ut("boolean",!0);case"false":return Ut("boolean",!1);default:if(It=Date.parse(It))return Ut("date",new Date(It))}return Ut(!1,null)}function Ut(It,Nt){return{type:It,value:Nt}}var an=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var zt=this.props,Bt=zt.style,hn=kt(zt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Bt),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),Rt}(st.a.PureComponent),sn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var zt=this.props,Bt=zt.style,hn=kt(zt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Bt),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),Rt}(st.a.PureComponent),Sn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var zt=this.props,Bt=zt.style,hn=kt(zt,["style"]),un=pr(Bt).style;return st.a.createElement("span",hn,st.a.createElement("svg",{fill:un.color,width:un.height,height:un.width,style:un,viewBox:"0 0 1792 1792"},st.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),Rt}(st.a.PureComponent),or=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var zt=this.props,Bt=zt.style,hn=kt(zt,["style"]),un=pr(Bt).style;return st.a.createElement("span",hn,st.a.createElement("svg",{fill:un.color,width:un.height,height:un.width,style:un,viewBox:"0 0 1792 1792"},st.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),Rt}(st.a.PureComponent),Rn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var zt=this.props,Bt=zt.style,hn=kt(zt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",{style:rt(rt({},pr(Bt).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},st.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),Rt}(st.a.PureComponent),Xn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var zt=this.props,Bt=zt.style,hn=kt(zt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",{style:rt(rt({},pr(Bt).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},st.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),Rt}(st.a.PureComponent),$n=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var zt=this.props,Bt=zt.style,hn=kt(zt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Bt),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("g",null,st.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),Rt}(st.a.PureComponent),ar=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var zt=this.props,Bt=zt.style,hn=kt(zt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Bt),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("g",null,st.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),Rt}(st.a.PureComponent),Qn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var zt=this.props,Bt=zt.style,hn=kt(zt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Bt),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("g",null,st.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),Rt}(st.a.PureComponent),qn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var zt=this.props,Bt=zt.style,hn=kt(zt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Bt),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("g",null,st.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),Rt}(st.a.PureComponent),fr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var zt=this.props,Bt=zt.style,hn=kt(zt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Bt),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("g",null,st.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),Rt}(st.a.PureComponent),cr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var zt=this.props,Bt=zt.style,hn=kt(zt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Bt),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("g",null,st.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),Rt}(st.a.PureComponent);function pr(It){return It||(It={}),{style:rt(rt({verticalAlign:"middle"},It),{},{color:It.color?It.color:"#000000",height:"1em",width:"1em"})}}var xr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(zt){var Bt;return nt(this,Rt),(Bt=Nt.call(this,zt)).copiedTimer=null,Bt.handleCopy=function(){var hn=document.createElement("textarea"),un=Bt.props,tn=un.clickCallback,Gt=un.src,xn=un.namespace;hn.innerHTML=JSON.stringify(Bt.clipboardValue(Gt),null," "),document.body.appendChild(hn),hn.select(),document.execCommand("copy"),document.body.removeChild(hn),Bt.copiedTimer=setTimeout(function(){Bt.setState({copied:!1})},5500),Bt.setState({copied:!0},function(){typeof tn=="function"&&tn({src:Gt,namespace:xn,name:xn[xn.length-1]})})},Bt.getClippyIcon=function(){var hn=Bt.props.theme;return Bt.state.copied?st.a.createElement("span",null,st.a.createElement($n,Object.assign({className:"copy-icon"},Pt(hn,"copy-icon"))),st.a.createElement("span",Pt(hn,"copy-icon-copied"),"✔")):st.a.createElement($n,Object.assign({className:"copy-icon"},Pt(hn,"copy-icon")))},Bt.clipboardValue=function(hn){switch(_t(hn)){case"function":case"regexp":return hn.toString();default:return hn}},Bt.state={copied:!1},Bt}return at(Rt,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var zt=this.props,Bt=(zt.src,zt.theme),hn=zt.hidden,un=zt.rowHovered,tn=Pt(Bt,"copy-to-clipboard").style,Gt="inline";return hn&&(Gt="none"),st.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:un?"inline-block":"none"}},st.a.createElement("span",{style:rt(rt({},tn),{},{display:Gt}),onClick:this.handleCopy},this.getClippyIcon()))}}]),Rt}(st.a.PureComponent),kr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(zt){var Bt;return nt(this,Rt),(Bt=Nt.call(this,zt)).getEditIcon=function(){var hn=Bt.props,un=hn.variable,tn=hn.theme;return st.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:Bt.state.hovered?"inline-block":"none"}},st.a.createElement(fr,Object.assign({className:"click-to-edit-icon"},Pt(tn,"editVarIcon"),{onClick:function(){Bt.prepopInput(un)}})))},Bt.prepopInput=function(hn){if(Bt.props.onEdit!==!1){var un=function(Gt){var xn;switch(_t(Gt)){case"undefined":xn="undefined";break;case"nan":xn="NaN";break;case"string":xn=Gt;break;case"date":case"function":case"regexp":xn=Gt.toString();break;default:try{xn=JSON.stringify(Gt,null," ")}catch{xn=""}}return xn}(hn.value),tn=yt(un);Bt.setState({editMode:!0,editValue:un,parsedInput:{type:tn.type,value:tn.value}})}},Bt.getRemoveIcon=function(){var hn=Bt.props,un=hn.variable,tn=hn.namespace,Gt=hn.theme,xn=hn.rjvId;return st.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:Bt.state.hovered?"inline-block":"none"}},st.a.createElement(ar,Object.assign({className:"click-to-remove-icon"},Pt(Gt,"removeVarIcon"),{onClick:function(){Pn.dispatch({name:"VARIABLE_REMOVED",rjvId:xn,data:{name:un.name,namespace:tn,existing_value:un.value,variable_removed:!0}})}})))},Bt.getValue=function(hn,un){var tn=!un&&hn.type,Gt=ft(Bt).props;switch(tn){case!1:return Bt.getEditInput();case"string":return st.a.createElement(En,Object.assign({value:hn.value},Gt));case"integer":return st.a.createElement(kn,Object.assign({value:hn.value},Gt));case"float":return st.a.createElement(Qt,Object.assign({value:hn.value},Gt));case"boolean":return st.a.createElement(rn,Object.assign({value:hn.value},Gt));case"function":return st.a.createElement(An,Object.assign({value:hn.value},Gt));case"null":return st.a.createElement(jn,Gt);case"nan":return st.a.createElement(mn,Gt);case"undefined":return st.a.createElement(gn,Gt);case"date":return st.a.createElement(nn,Object.assign({value:hn.value},Gt));case"regexp":return st.a.createElement(vn,Object.assign({value:hn.value},Gt));default:return st.a.createElement("div",{className:"object-value"},JSON.stringify(hn.value))}},Bt.getEditInput=function(){var hn=Bt.props.theme,un=Bt.state.editValue;return st.a.createElement("div",null,st.a.createElement(pt,Object.assign({type:"text",inputRef:function(tn){return tn&&tn.focus()},value:un,className:"variable-editor",onChange:function(tn){var Gt=tn.target.value,xn=yt(Gt);Bt.setState({editValue:Gt,parsedInput:{type:xn.type,value:xn.value}})},onKeyDown:function(tn){switch(tn.key){case"Escape":Bt.setState({editMode:!1,editValue:""});break;case"Enter":(tn.ctrlKey||tn.metaKey)&&Bt.submitEdit(!0)}tn.stopPropagation()},placeholder:"update this value",minRows:2},Pt(hn,"edit-input"))),st.a.createElement("div",Pt(hn,"edit-icon-container"),st.a.createElement(ar,Object.assign({className:"edit-cancel"},Pt(hn,"cancel-icon"),{onClick:function(){Bt.setState({editMode:!1,editValue:""})}})),st.a.createElement(cr,Object.assign({className:"edit-check string-value"},Pt(hn,"check-icon"),{onClick:function(){Bt.submitEdit()}})),st.a.createElement("div",null,Bt.showDetected())))},Bt.submitEdit=function(hn){var un=Bt.props,tn=un.variable,Gt=un.namespace,xn=un.rjvId,Gn=Bt.state,Jn=Gn.editValue,er=Gn.parsedInput,ir=Jn;hn&&er.type&&(ir=er.value),Bt.setState({editMode:!1}),Pn.dispatch({name:"VARIABLE_UPDATED",rjvId:xn,data:{name:tn.name,namespace:Gt,existing_value:tn.value,new_value:ir,variable_removed:!1}})},Bt.showDetected=function(){var hn=Bt.props,un=hn.theme,tn=(hn.variable,hn.namespace,hn.rjvId,Bt.state.parsedInput),Gt=(tn.type,tn.value,Bt.getDetectedInput());if(Gt)return st.a.createElement("div",null,st.a.createElement("div",Pt(un,"detected-row"),Gt,st.a.createElement(cr,{className:"edit-check detected",style:rt({verticalAlign:"top",paddingLeft:"3px"},Pt(un,"check-icon").style),onClick:function(){Bt.submitEdit(!0)}})))},Bt.getDetectedInput=function(){var hn=Bt.state.parsedInput,un=hn.type,tn=hn.value,Gt=ft(Bt).props,xn=Gt.theme;if(un!==!1)switch(un.toLowerCase()){case"object":return st.a.createElement("span",null,st.a.createElement("span",{style:rt(rt({},Pt(xn,"brace").style),{},{cursor:"default"})},"{"),st.a.createElement("span",{style:rt(rt({},Pt(xn,"ellipsis").style),{},{cursor:"default"})},"..."),st.a.createElement("span",{style:rt(rt({},Pt(xn,"brace").style),{},{cursor:"default"})},"}"));case"array":return st.a.createElement("span",null,st.a.createElement("span",{style:rt(rt({},Pt(xn,"brace").style),{},{cursor:"default"})},"["),st.a.createElement("span",{style:rt(rt({},Pt(xn,"ellipsis").style),{},{cursor:"default"})},"..."),st.a.createElement("span",{style:rt(rt({},Pt(xn,"brace").style),{},{cursor:"default"})},"]"));case"string":return st.a.createElement(En,Object.assign({value:tn},Gt));case"integer":return st.a.createElement(kn,Object.assign({value:tn},Gt));case"float":return st.a.createElement(Qt,Object.assign({value:tn},Gt));case"boolean":return st.a.createElement(rn,Object.assign({value:tn},Gt));case"function":return st.a.createElement(An,Object.assign({value:tn},Gt));case"null":return st.a.createElement(jn,Gt);case"nan":return st.a.createElement(mn,Gt);case"undefined":return st.a.createElement(gn,Gt);case"date":return st.a.createElement(nn,Object.assign({value:new Date(tn)},Gt))}},Bt.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},Bt}return at(Rt,[{key:"render",value:function(){var zt=this,Bt=this.props,hn=Bt.variable,un=Bt.singleIndent,tn=Bt.type,Gt=Bt.theme,xn=Bt.namespace,Gn=Bt.indentWidth,Jn=Bt.enableClipboard,er=Bt.onEdit,ir=Bt.onDelete,Kn=Bt.onSelect,nr=Bt.displayArrayKey,ur=Bt.quotesOnKeys,rr=this.state.editMode;return st.a.createElement("div",Object.assign({},Pt(Gt,"objectKeyVal",{paddingLeft:Gn*un}),{onMouseEnter:function(){return zt.setState(rt(rt({},zt.state),{},{hovered:!0}))},onMouseLeave:function(){return zt.setState(rt(rt({},zt.state),{},{hovered:!1}))},className:"variable-row",key:hn.name}),tn=="array"?nr?st.a.createElement("span",Object.assign({},Pt(Gt,"array-key"),{key:hn.name+"_"+xn}),hn.name,st.a.createElement("div",Pt(Gt,"colon"),":")):null:st.a.createElement("span",null,st.a.createElement("span",Object.assign({},Pt(Gt,"object-name"),{className:"object-key",key:hn.name+"_"+xn}),!!ur&&st.a.createElement("span",{style:{verticalAlign:"top"}},'"'),st.a.createElement("span",{style:{display:"inline-block"}},hn.name),!!ur&&st.a.createElement("span",{style:{verticalAlign:"top"}},'"')),st.a.createElement("span",Pt(Gt,"colon"),":")),st.a.createElement("div",Object.assign({className:"variable-value",onClick:Kn===!1&&er===!1?null:function(yr){var mr=On(xn);(yr.ctrlKey||yr.metaKey)&&er!==!1?zt.prepopInput(hn):Kn!==!1&&(mr.shift(),Kn(rt(rt({},hn),{},{namespace:mr})))}},Pt(Gt,"variableValue",{cursor:Kn===!1?"default":"pointer"})),this.getValue(hn,rr)),Jn?st.a.createElement(xr,{rowHovered:this.state.hovered,hidden:rr,src:hn.value,clickCallback:Jn,theme:Gt,namespace:[].concat(On(xn),[hn.name])}):null,er!==!1&&rr==0?this.getEditIcon():null,ir!==!1&&rr==0?this.getRemoveIcon():null)}}]),Rt}(st.a.PureComponent),Tr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){var zt;nt(this,Rt);for(var Bt=arguments.length,hn=new Array(Bt),un=0;un0?Jn:null,namespace:Gn.splice(0,Gn.length-1),existing_value:er,variable_removed:!1,key_name:null};_t(er)==="object"?Pn.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:ir,data:nr}):Pn.dispatch({name:"VARIABLE_ADDED",rjvId:ir,data:rt(rt({},nr),{},{new_value:[].concat(On(er),[null])})})}})))},zt.getRemoveObject=function(tn){var Gt=zt.props,xn=Gt.theme,Gn=(Gt.hover,Gt.namespace),Jn=Gt.name,er=Gt.src,ir=Gt.rjvId;if(Gn.length!==1)return st.a.createElement("span",{className:"click-to-remove",style:{display:tn?"inline-block":"none"}},st.a.createElement(ar,Object.assign({className:"click-to-remove-icon"},Pt(xn,"removeVarIcon"),{onClick:function(){Pn.dispatch({name:"VARIABLE_REMOVED",rjvId:ir,data:{name:Jn,namespace:Gn.splice(0,Gn.length-1),existing_value:er,variable_removed:!0}})}})))},zt.render=function(){var tn=zt.props,Gt=tn.theme,xn=tn.onDelete,Gn=tn.onAdd,Jn=tn.enableClipboard,er=tn.src,ir=tn.namespace,Kn=tn.rowHovered;return st.a.createElement("div",Object.assign({},Pt(Gt,"object-meta-data"),{className:"object-meta-data",onClick:function(nr){nr.stopPropagation()}}),zt.getObjectSize(),Jn?st.a.createElement(xr,{rowHovered:Kn,clickCallback:Jn,src:er,theme:Gt,namespace:ir}):null,Gn!==!1?zt.getAddAttribute(Kn):null,xn!==!1?zt.getRemoveObject(Kn):null)},zt}return Rt}(st.a.PureComponent);function Pr(It){var Nt=It.parent_type,Rt=It.namespace,zt=It.quotesOnKeys,Bt=It.theme,hn=It.jsvRoot,un=It.name,tn=It.displayArrayKey,Gt=It.name?It.name:"";return!hn||un!==!1&&un!==null?Nt=="array"?tn?st.a.createElement("span",Object.assign({},Pt(Bt,"array-key"),{key:Rt}),st.a.createElement("span",{className:"array-key"},Gt),st.a.createElement("span",Pt(Bt,"colon"),":")):st.a.createElement("span",null):st.a.createElement("span",Object.assign({},Pt(Bt,"object-name"),{key:Rt}),st.a.createElement("span",{className:"object-key"},zt&&st.a.createElement("span",{style:{verticalAlign:"top"}},'"'),st.a.createElement("span",null,Gt),zt&&st.a.createElement("span",{style:{verticalAlign:"top"}},'"')),st.a.createElement("span",Pt(Bt,"colon"),":")):st.a.createElement("span",null)}function Rr(It){var Nt=It.theme;switch(It.iconStyle){case"triangle":return st.a.createElement(Xn,Object.assign({},Pt(Nt,"expanded-icon"),{className:"expanded-icon"}));case"square":return st.a.createElement(Sn,Object.assign({},Pt(Nt,"expanded-icon"),{className:"expanded-icon"}));default:return st.a.createElement(an,Object.assign({},Pt(Nt,"expanded-icon"),{className:"expanded-icon"}))}}function Ur(It){var Nt=It.theme;switch(It.iconStyle){case"triangle":return st.a.createElement(Rn,Object.assign({},Pt(Nt,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return st.a.createElement(or,Object.assign({},Pt(Nt,"collapsed-icon"),{className:"collapsed-icon"}));default:return st.a.createElement(sn,Object.assign({},Pt(Nt,"collapsed-icon"),{className:"collapsed-icon"}))}}var Qr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(zt){var Bt;return nt(this,Rt),(Bt=Nt.call(this,zt)).toggleCollapsed=function(hn){var un=[];for(var tn in Bt.state.expanded)un.push(Bt.state.expanded[tn]);un[hn]=!un[hn],Bt.setState({expanded:un})},Bt.state={expanded:[]},Bt}return at(Rt,[{key:"getExpandedIcon",value:function(zt){var Bt=this.props,hn=Bt.theme,un=Bt.iconStyle;return this.state.expanded[zt]?st.a.createElement(Rr,{theme:hn,iconStyle:un}):st.a.createElement(Ur,{theme:hn,iconStyle:un})}},{key:"render",value:function(){var zt=this,Bt=this.props,hn=Bt.src,un=Bt.groupArraysAfterLength,tn=(Bt.depth,Bt.name),Gt=Bt.theme,xn=Bt.jsvRoot,Gn=Bt.namespace,Jn=(Bt.parent_type,kt(Bt,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),er=0,ir=5*this.props.indentWidth;xn||(er=5*this.props.indentWidth);var Kn=un,nr=Math.ceil(hn.length/Kn);return st.a.createElement("div",Object.assign({className:"object-key-val"},Pt(Gt,xn?"jsv-root":"objectKeyVal",{paddingLeft:er})),st.a.createElement(Pr,this.props),st.a.createElement("span",null,st.a.createElement(Tr,Object.assign({size:hn.length},this.props))),On(Array(nr)).map(function(ur,rr){return st.a.createElement("div",Object.assign({key:rr,className:"object-key-val array-group"},Pt(Gt,"objectKeyVal",{marginLeft:6,paddingLeft:ir})),st.a.createElement("span",Pt(Gt,"brace-row"),st.a.createElement("div",Object.assign({className:"icon-container"},Pt(Gt,"icon-container"),{onClick:function(yr){zt.toggleCollapsed(rr)}}),zt.getExpandedIcon(rr)),zt.state.expanded[rr]?st.a.createElement(St,Object.assign({key:tn+rr,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:Kn,index_offset:rr*Kn,src:hn.slice(rr*Kn,rr*Kn+Kn),namespace:Gn,type:"array",parent_type:"array_group",theme:Gt},Jn)):st.a.createElement("span",Object.assign({},Pt(Gt,"brace"),{onClick:function(yr){zt.toggleCollapsed(rr)},className:"array-group-brace"}),"[",st.a.createElement("div",Object.assign({},Pt(Gt,"array-group-meta-data"),{className:"array-group-meta-data"}),st.a.createElement("span",Object.assign({className:"object-size"},Pt(Gt,"object-size")),rr*Kn," - ",rr*Kn+Kn>hn.length?hn.length:rr*Kn+Kn)),"]")))}))}}]),Rt}(st.a.PureComponent),Zr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(zt){var Bt;nt(this,Rt),(Bt=Nt.call(this,zt)).toggleCollapsed=function(){Bt.setState({expanded:!Bt.state.expanded},function(){dn.set(Bt.props.rjvId,Bt.props.namespace,"expanded",Bt.state.expanded)})},Bt.getObjectContent=function(un,tn,Gt){return st.a.createElement("div",{className:"pushed-content object-container"},st.a.createElement("div",Object.assign({className:"object-content"},Pt(Bt.props.theme,"pushed-content")),Bt.renderObjectContents(tn,Gt)))},Bt.getEllipsis=function(){return Bt.state.size===0?null:st.a.createElement("div",Object.assign({},Pt(Bt.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:Bt.toggleCollapsed}),"...")},Bt.getObjectMetaData=function(un){var tn=Bt.props,Gt=(tn.rjvId,tn.theme,Bt.state),xn=Gt.size,Gn=Gt.hovered;return st.a.createElement(Tr,Object.assign({rowHovered:Gn,size:xn},Bt.props))},Bt.renderObjectContents=function(un,tn){var Gt,xn=Bt.props,Gn=xn.depth,Jn=xn.parent_type,er=xn.index_offset,ir=xn.groupArraysAfterLength,Kn=xn.namespace,nr=Bt.state.object_type,ur=[],rr=Object.keys(un||{});return Bt.props.sortKeys&&nr!=="array"&&(rr=rr.sort()),rr.forEach(function(yr){if(Gt=new mo(yr,un[yr]),Jn==="array_group"&&er&&(Gt.name=parseInt(Gt.name)+er),un.hasOwnProperty(yr))if(Gt.type==="object")ur.push(st.a.createElement(St,Object.assign({key:Gt.name,depth:Gn+1,name:Gt.name,src:Gt.value,namespace:Kn.concat(Gt.name),parent_type:nr},tn)));else if(Gt.type==="array"){var mr=St;ir&&Gt.value.length>ir&&(mr=Qr),ur.push(st.a.createElement(mr,Object.assign({key:Gt.name,depth:Gn+1,name:Gt.name,src:Gt.value,namespace:Kn.concat(Gt.name),type:"array",parent_type:nr},tn)))}else ur.push(st.a.createElement(kr,Object.assign({key:Gt.name+"_"+Kn,variable:Gt,singleIndent:5,namespace:Kn,type:Bt.props.type},tn)))}),ur};var hn=Rt.getState(zt);return Bt.state=rt(rt({},hn),{},{prevProps:{}}),Bt}return at(Rt,[{key:"getBraceStart",value:function(zt,Bt){var hn=this,un=this.props,tn=un.src,Gt=un.theme,xn=un.iconStyle;if(un.parent_type==="array_group")return st.a.createElement("span",null,st.a.createElement("span",Pt(Gt,"brace"),zt==="array"?"[":"{"),Bt?this.getObjectMetaData(tn):null);var Gn=Bt?Rr:Ur;return st.a.createElement("span",null,st.a.createElement("span",Object.assign({onClick:function(Jn){hn.toggleCollapsed()}},Pt(Gt,"brace-row")),st.a.createElement("div",Object.assign({className:"icon-container"},Pt(Gt,"icon-container")),st.a.createElement(Gn,{theme:Gt,iconStyle:xn})),st.a.createElement(Pr,this.props),st.a.createElement("span",Pt(Gt,"brace"),zt==="array"?"[":"{")),Bt?this.getObjectMetaData(tn):null)}},{key:"render",value:function(){var zt=this,Bt=this.props,hn=Bt.depth,un=Bt.src,tn=(Bt.namespace,Bt.name,Bt.type,Bt.parent_type),Gt=Bt.theme,xn=Bt.jsvRoot,Gn=Bt.iconStyle,Jn=kt(Bt,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),er=this.state,ir=er.object_type,Kn=er.expanded,nr={};return xn||tn==="array_group"?tn==="array_group"&&(nr.borderLeft=0,nr.display="inline"):nr.paddingLeft=5*this.props.indentWidth,st.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return zt.setState(rt(rt({},zt.state),{},{hovered:!0}))},onMouseLeave:function(){return zt.setState(rt(rt({},zt.state),{},{hovered:!1}))}},Pt(Gt,xn?"jsv-root":"objectKeyVal",nr)),this.getBraceStart(ir,Kn),Kn?this.getObjectContent(hn,un,rt({theme:Gt,iconStyle:Gn},Jn)):this.getEllipsis(),st.a.createElement("span",{className:"brace-row"},st.a.createElement("span",{style:rt(rt({},Pt(Gt,"brace").style),{},{paddingLeft:Kn?"3px":"0px"})},ir==="array"?"]":"}"),Kn?null:this.getObjectMetaData(un)))}}],[{key:"getDerivedStateFromProps",value:function(zt,Bt){var hn=Bt.prevProps;return zt.src!==hn.src||zt.collapsed!==hn.collapsed||zt.name!==hn.name||zt.namespace!==hn.namespace||zt.rjvId!==hn.rjvId?rt(rt({},Rt.getState(zt)),{},{prevProps:zt}):null}}]),Rt}(st.a.PureComponent);Zr.getState=function(It){var Nt=Object.keys(It.src).length,Rt=(It.collapsed===!1||It.collapsed!==!0&&It.collapsed>It.depth)&&(!It.shouldCollapse||It.shouldCollapse({name:It.name,src:It.src,type:_t(It.src),namespace:It.namespace})===!1)&&Nt!==0;return{expanded:dn.get(It.rjvId,It.namespace,"expanded",Rt),object_type:It.type==="array"?"array":"object",parent_type:It.type==="array"?"array":"object",size:Nt,hovered:!1}};var mo=function It(Nt,Rt){nt(this,It),this.name=Nt,this.value=Rt,this.type=_t(Rt)};Mt(Zr);var St=Zr,Ft=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){var zt;nt(this,Rt);for(var Bt=arguments.length,hn=new Array(Bt),un=0;untn.groupArraysAfterLength&&(xn=Qr),st.a.createElement("div",{className:"pretty-json-container object-container"},st.a.createElement("div",{className:"object-content"},st.a.createElement(xn,Object.assign({namespace:Gt,depth:0,jsvRoot:!0},tn))))},zt}return Rt}(st.a.PureComponent),$t=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(zt){var Bt;return nt(this,Rt),(Bt=Nt.call(this,zt)).closeModal=function(){Pn.dispatch({rjvId:Bt.props.rjvId,name:"RESET"})},Bt.submit=function(){Bt.props.submit(Bt.state.input)},Bt.state={input:zt.input?zt.input:""},Bt}return at(Rt,[{key:"render",value:function(){var zt=this,Bt=this.props,hn=Bt.theme,un=Bt.rjvId,tn=Bt.isValid,Gt=this.state.input,xn=tn(Gt);return st.a.createElement("div",Object.assign({className:"key-modal-request"},Pt(hn,"key-modal-request"),{onClick:this.closeModal}),st.a.createElement("div",Object.assign({},Pt(hn,"key-modal"),{onClick:function(Gn){Gn.stopPropagation()}}),st.a.createElement("div",Pt(hn,"key-modal-label"),"Key Name:"),st.a.createElement("div",{style:{position:"relative"}},st.a.createElement("input",Object.assign({},Pt(hn,"key-modal-input"),{className:"key-modal-input",ref:function(Gn){return Gn&&Gn.focus()},spellCheck:!1,value:Gt,placeholder:"...",onChange:function(Gn){zt.setState({input:Gn.target.value})},onKeyPress:function(Gn){xn&&Gn.key==="Enter"?zt.submit():Gn.key==="Escape"&&zt.closeModal()}})),xn?st.a.createElement(cr,Object.assign({},Pt(hn,"key-modal-submit"),{className:"key-modal-submit",onClick:function(Gn){return zt.submit()}})):null),st.a.createElement("span",Pt(hn,"key-modal-cancel"),st.a.createElement(qn,Object.assign({},Pt(hn,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){Pn.dispatch({rjvId:un,name:"RESET"})}})))))}}]),Rt}(st.a.PureComponent),mt=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){var zt;nt(this,Rt);for(var Bt=arguments.length,hn=new Array(Bt),un=0;un{_($.updated_src)},[]);return jsxs("div",{className:"send-tx-form",children:[jsx$1("h3",{children:"Configure and send transaction"}),jsx$1(ReactJson,{theme:"ocean",src:defaultTx,onEdit:j,onAdd:j,onDelete:j}),d?jsx$1("button",{onClick:()=>k.sendTransaction(b),children:"Send transaction"}):jsx$1("button",{onClick:()=>k.openModal(),children:"Connect wallet to send the transaction"})]})}const footer="",style$3="",defaultColors={[THEME.LIGHT]:{constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#0098EA",telegramButton:"#0098EA",icon:{primary:"#0F0F0F",secondary:"#7A8999",tertiary:"#C1CAD2",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#FFFFFF",secondary:"#F1F3F5",segment:"#FFFFFF",tint:"#F1F3F5",qr:"#F1F3F5"},text:{primary:"#0F0F0F",secondary:"#6A7785"}},[THEME.DARK]:{constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#E5E5EA",telegramButton:"#31A6F5",icon:{primary:"#E5E5EA",secondary:"#909099",tertiary:"#434347",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#121214",secondary:"#18181A",segment:"#262629",tint:"#222224",qr:"#F1F3F5"},text:{primary:"#E5E5EA",secondary:"#7D7D85"}}},ColorsSelect=({theme:b})=>{const[_,d]=useTonConnectUI(),[k,j]=reactExports.useState(defaultColors[b]);reactExports.useEffect(()=>{j(defaultColors[b])},[b]);const $=(et,tt,rt)=>{d({uiPreferences:{colorsSet:{[b]:{[tt]:rt?{...k[tt],[rt]:et}:et}}}}),j(nt=>({...nt,[tt]:rt?{...nt[tt],[rt]:et}:et})),defaultColors[b]={...defaultColors[b],[tt]:rt?{...k[tt],[rt]:et}:et}};return jsx$1("div",{className:"colors-container",children:Object.entries(k).map(([et,tt])=>typeof tt=="object"?jsxs("div",{children:[jsxs("span",{children:[et,":"]}),Object.entries(tt).map(([rt,nt])=>jsxs("label",{children:[rt,jsx$1("input",{type:"color",value:k[et][rt],onChange:ot=>$(ot.target.value,et,rt)})]},et+rt))]},et):jsxs("div",{children:[jsxs("span",{children:[et,":"]}),jsx$1("label",{children:jsx$1("input",{type:"color",value:k[et],onChange:rt=>$(rt.target.value,et)})})]}))})},style$2="",ColorsModal=()=>{const[b,_]=reactExports.useState(!1),[d,k]=reactExports.useState(THEME.LIGHT);return jsxs(Fragment,{children:[jsx$1("button",{onClick:()=>_(!0),children:"change colors"}),b&&jsxs("div",{className:"modal",children:[jsx$1("button",{onClick:()=>_(!1),children:"close"}),jsxs("div",{className:"modal__toggle",children:[jsx$1("a",{href:"#",style:{color:d===THEME.LIGHT?"blue":"white"},onClick:()=>k(THEME.LIGHT),children:"LIGHT"}),jsx$1("a",{href:"#",style:{color:d===THEME.DARK?"blue":"white"},onClick:()=>k(THEME.DARK),children:"DARK"})]}),jsx$1(ColorsSelect,{theme:d})]})]})},Footer=()=>{const[b,_]=reactExports.useState([!0,!1,!1,!0,!0,!0]),[d,k]=reactExports.useState("back"),[j,$]=reactExports.useState("ios"),[et,tt]=reactExports.useState(!0),[rt,nt]=useTonConnectUI(),ot=lt=>{nt({language:lt})},at=lt=>{nt({uiPreferences:{theme:lt}})},it=lt=>{nt({uiPreferences:{borderRadius:lt}})},dt=lt=>{_(ct=>ct.map((gt,st)=>st===lt?!gt:gt))},ut=lt=>{tt(lt)},ht=()=>{if(!d){k("back");return}nt({actionsConfiguration:{returnStrategy:d}})},ft=()=>{if(!j){$("ios");return}nt({actionsConfiguration:{skipRedirectToWallet:j}})};return reactExports.useEffect(()=>{const lt=["before","success","error"],ct=lt.map((st,Ct)=>b[Ct]?st:void 0).filter(st=>st),gt=lt.map((st,Ct)=>b[Ct+3]?st:void 0).filter(st=>st);nt({actionsConfiguration:{modals:ct,notifications:gt}})},[b]),reactExports.useEffect(()=>{nt({enableAndroidBackHandler:et})},[et]),jsxs("footer",{className:"footer",children:[jsxs("div",{children:[jsx$1("label",{children:"language"}),jsxs("select",{onChange:lt=>ot(lt.target.value),children:[jsx$1("option",{value:"en",children:"en"}),jsx$1("option",{value:"ru",children:"ru"})]})]}),jsxs("div",{children:[jsx$1("label",{children:"theme"}),jsxs("select",{onChange:lt=>at(lt.target.value),children:[jsx$1("option",{value:THEME.DARK,children:"dark"}),jsx$1("option",{value:THEME.LIGHT,children:"light"}),jsx$1("option",{value:"SYSTEM",children:"system"})]})]}),jsxs("div",{children:[jsx$1("label",{children:"borders"}),jsxs("select",{onChange:lt=>it(lt.target.value),children:[jsx$1("option",{value:"m",children:"m"}),jsx$1("option",{value:"s",children:"s"}),jsx$1("option",{value:"none",children:"none"})]})]}),jsxs("div",{children:[jsx$1("label",{children:"enable android back handler"}),jsxs("select",{onChange:lt=>ut(lt.target.value==="true"),value:et.toString(),children:[jsx$1("option",{value:"true",children:"true"}),jsx$1("option",{value:"false",children:"false"})]})]}),jsxs("div",{className:"footer-checkbox-container",children:[jsx$1("span",{children:"modals"}),jsxs("label",{children:["before",jsx$1("input",{type:"checkbox",checked:b[0],onChange:()=>dt(0)})]}),jsxs("label",{children:["success",jsx$1("input",{type:"checkbox",checked:b[1],onChange:()=>dt(1)})]}),jsxs("label",{children:["error",jsx$1("input",{type:"checkbox",checked:b[2],onChange:()=>dt(2)})]})]}),jsxs("div",{className:"footer-checkbox-container",children:[jsx$1("span",{children:"notifications"}),jsxs("label",{children:["before",jsx$1("input",{type:"checkbox",checked:b[3],onChange:()=>dt(3)})]}),jsxs("label",{children:["success",jsx$1("input",{type:"checkbox",checked:b[4],onChange:()=>dt(4)})]}),jsxs("label",{children:["error",jsx$1("input",{type:"checkbox",checked:b[5],onChange:()=>dt(5)})]})]}),jsx$1("div",{children:jsx$1(ColorsModal,{})}),jsx$1("div",{children:jsxs("label",{children:["return strategy:",jsx$1("input",{style:{width:"200px"},value:d,onChange:lt=>k(lt.target.value),onBlur:ht})]})}),jsx$1("div",{children:jsxs("label",{children:[jsx$1("div",{children:"skip redirect to wallet:"}),jsx$1("div",{children:"('ios', 'never', 'always')"}),jsx$1("input",{style:{width:"200px"},value:j,onChange:lt=>$(lt.target.value),onBlur:ft})]})})]})},style$1="";class TonProofDemoApiService{constructor(){Jo(this,"localStorageKey","demo-api-access-token");Jo(this,"host",document.baseURI.replace(/\/$/,""));Jo(this,"accessToken",null);Jo(this,"refreshIntervalMs",9*60*1e3);this.accessToken=localStorage.getItem(this.localStorageKey),this.accessToken||this.generatePayload()}async generatePayload(){try{return{tonProof:(await(await fetch(`${this.host}/api/generate_payload`,{method:"POST"})).json()).payload}}catch{return null}}async checkProof(_,d){try{const k={address:d.address,network:d.chain,public_key:d.publicKey,proof:{..._,state_init:d.walletStateInit}},j=await(await fetch(`${this.host}/api/check_proof`,{method:"POST",body:JSON.stringify(k)})).json();j!=null&&j.token&&(localStorage.setItem(this.localStorageKey,j.token),this.accessToken=j.token)}catch(k){console.log("checkProof error:",k)}}async getAccountInfo(_){return await(await fetch(`${this.host}/api/get_account_info`,{headers:{Authorization:`Bearer ${this.accessToken}`,"Content-Type":"application/json"}})).json()}async createJetton(_){return await(await fetch(`${this.host}/api/create_jetton`,{body:JSON.stringify(_),headers:{Authorization:`Bearer ${this.accessToken}`,"Content-Type":"application/json"},method:"POST"})).json()}reset(){this.accessToken=null,localStorage.removeItem(this.localStorageKey),this.generatePayload()}}const TonProofDemoApi=new TonProofDemoApiService;function useInterval(b,_){const d=reactExports.useRef(b);reactExports.useLayoutEffect(()=>{d.current=b},[b]),reactExports.useEffect(()=>{if(!_&&_!==0)return;const k=setInterval(()=>d.current(),_);return()=>clearInterval(k)},[_])}const TonProofDemo=()=>{const b=reactExports.useRef(!0),[_,d]=reactExports.useState({}),k=useTonWallet(),[j,$]=reactExports.useState(!1),[et]=useTonConnectUI(),tt=reactExports.useCallback(async()=>{b.current&&(et.setConnectRequestParameters({state:"loading"}),b.current=!1);const nt=await TonProofDemoApi.generatePayload();nt?et.setConnectRequestParameters({state:"ready",value:nt}):et.setConnectRequestParameters(null)},[et,b]);b.current&&tt(),useInterval(tt,TonProofDemoApi.refreshIntervalMs),reactExports.useEffect(()=>et.onStatusChange(async nt=>{var ot;if(!nt){TonProofDemoApi.reset(),$(!1);return}if((ot=nt.connectItems)!=null&&ot.tonProof&&"proof"in nt.connectItems.tonProof&&await TonProofDemoApi.checkProof(nt.connectItems.tonProof.proof,nt.account),!TonProofDemoApi.accessToken){et.disconnect(),$(!1);return}$(!0)}),[et]);const rt=reactExports.useCallback(async()=>{if(!k)return;const nt=await TonProofDemoApi.getAccountInfo(k.account);d(nt)},[k]);return j?jsxs("div",{className:"ton-proof-demo",children:[jsx$1("h3",{children:"Demo backend API with ton_proof verification"}),j?jsx$1("button",{onClick:rt,children:"Call backend getAccountInfo()"}):jsx$1("div",{className:"ton-proof-demo__error",children:"Connect wallet to call API"}),jsx$1(ReactJson,{src:_,name:"response",theme:"ocean"})]}):null},style="",jetton={name:"Joint Photographic Experts Group",description:"JPEG is a commonly used method of lossy compression for digital images, particularly for those images produced by digital photography. The degree of compression can be adjusted, allowing a selectable tradeoff between storage size and image quality.",image_data:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAdVBMVEX///8rKytSUlITExPT09Pm5uYcHBzKysqXl5cZGRmnp6cnJydISEjr6+tOTk5LS0swMDAhISHa2tq3t7fg4OBra2sKCgrw8PB3d3dCQkJeXl49PT29vb2goKCvr68AAADOzs5jY2ODg4ONjY1wcHA2NjaSkpJ0yRZUAAAFXklEQVR4nO3de3eaMBgGcCEIxkgVCiiIVG3t9/+IS8LFS+1ERy665/ljZwW3k99yeV9x5zgaIQiCIAiCIAiCIAiCIAhiLGFQTf85iWnF7wkKQui/Z2Yt8TuLnCEyn1tKnGSD+BznzbVzFuOPgYBc6Fo5i1/DLNFa+PZmIZEMBRRC152NTYMuMx5YaN9e9IYWurYtVAVCy46b4YW27UUVQrv2ohKhVUVDidCqhapIaNFCVSW0p4FTJrSmaCgTWrMXFQot2YsqhXY0cGqFNuxFpUIrFqpioQVFQ7XQfAOnWmi+aKgXmt6LGoSG96IOodmioUNodi/qEZrci5qEBhs4bUJjs6hLaG6h6hOaKhoahYYaOI1CQ0VDq9DIXtQrNFE0dAv1HzeahQb2onah9r2oX6i7aOgX8gZO60I1INS8UI0ItTZwZoQ696IZoc6iYUqoby8aE2pr4AwKNR03Awrn9wl1LdQBhbN7hXqIAwrXdwu1FI0BhYu7hVqKxoDCByZRx0IdUsjyB4jKT9QhhY/Nouq9OKzQcQ757N4cwqcS3h+WBS8udAiEEEJoGgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQWCJmM3cIFz/F34gdCaMROb5/llEejfO6689whfb+Uz4CQlHEczyQoiD2ZIKj2efNSWjUXm8QTv/ORYrpNxstwnHhVyvoZTQi34TicS2EcjuuEYTiu6rVH3tuLza1NKyRFEHb3wtBbZX0WqwlhwAfYCGtcKAcexmvWCsNjlo2Q0c2yvtP8Ml4Ghx7TaF64X61WmyoR4962cxhWk2NS+VLmlJIWTNKiSPel/AOxe5toXpj7UeSTw7cY8affCHfE71IvRSqnNiiIHzEWRWQ9FT8nhycQ1mcOIxM+4rgVppdzQ8XtcEO76/zU4dPY42tObRE6bCF2Vs6uC9laAs++edefe4Xv3Iw1QifzuCH9RSgvBvSC3avw2yaMrgpZLia4eOibd+0RMoGYX5/DaCWm8LEO0Boh+eQ7LaHtSUOjLk5zbdJj01kpzIXCJ6u2fak1qy7iuCRbPr+7O9ptq4SrNE33E08W8AP70dMsY3GAij0664R+1uX2yjUvPOnaZu2KPG1LvYzXikRMdiv0N8su3s3Tx7ywa73LtRytFB7fXsT8gLkUTo7/BsGTCJO43BTNO8T6pHHO3x6erdJ2DsMnEYqBM+bTdvzXqoU4aY7X2KyQSZPnEZ7dviIUbTdvStsf6wcZ0fqFhKLij7cXfxfLX0jI1qLh+dHKvZDQIRWfRM85e+lrCdlBtAHv9PS17JX2Ia8Q8hlAuTj2pkw2ek8r3GW0S42ilezrVhnvyZloZNfywrMKx+W06rKpr0fvdWs33afu12ojHyyG2/xmO26p8ORpYui1NyZ1+8q78bB5pvje412+YSEf6FXhWevd3qFFuTx5Irws+zymMSwsgyC4XGf+Zhuc5b27xWix8Zq3IsG3S29PoBlhtO3WJuH5MUyfnOf0+ROj2drdpUXuE7/nG2ITnz3xNwrJ7RPit4iO1O5P1+Rzs3hxZSxqolkY+X72yetdqe+zYb3CaL/5rMRBuH/o0ecTCOl0KQuZ98toXkPIK1n9QeFLCtmuCoLyM9II1H3SMMoLnL49aEBoIBBC+N8LEwuEnlLhKLs9BMXJlmqFO72l4WfYTC1wtP0wLPwoFQtHe7M7kaaqgaPRV6//X6cmjOzUA0ej6pBR30RotpjqAPJ404mJTLeKj1EEQRAEQRAEQRAEQRAEQf6SP4jPv7WHGoGuAAAAAElFTkSuQmCC",symbol:"JPEG",decimals:9,amount:"1000000000000000"},CreateJettonDemo=()=>{const[b,_]=reactExports.useState({}),[d]=useTonConnectUI(),k=useTonWallet();return jsxs("div",{className:"create-jetton-demo",children:[jsx$1("h3",{children:"Create Jetton"}),k?jsx$1("button",{onClick:async()=>{const $=await TonProofDemoApi.createJetton(jetton);_($),"error"in $||await d.sendTransaction($)},children:"Send create jetton"}):jsx$1("div",{className:"ton-proof-demo__error",children:"Connect wallet to send transaction"}),jsx$1(ReactJson,{src:b,name:"response",theme:"ocean"})]})};function App(){return jsx$1(TonConnectUIProvider$1,{manifestUrl:"https://ton-connect.github.io/demo-dapp-with-react-ui/tonconnect-manifest.json",uiPreferences:{theme:THEME.DARK},walletsListConfiguration:{includeWallets:[{appName:"tonwallet",name:"TON Wallet",imageUrl:"https://wallet.ton.org/assets/ui/qr-logo.png",aboutUrl:"https://chrome.google.com/webstore/detail/ton-wallet/nphplpgoakhhjchkkhmiggakijnkhfnd",universalLink:"https://wallet.ton.org/ton-connect",jsBridgeKey:"tonwallet",bridgeUrl:"https://bridge.tonapi.io/bridge",platforms:["chrome","android"]},{appName:"nicegramWallet",name:"Nicegram Wallet",imageUrl:"https://static.nicegram.app/icon.png",aboutUrl:"https://nicegram.app",universalLink:"https://nicegram.app/tc",deepLink:"nicegram-tc://",jsBridgeKey:"nicegramWallet",bridgeUrl:"https://bridge.tonapi.io/bridge",platforms:["ios","android"]},{appName:"binanceTonWeb3Wallet",name:"Binance Web3 Wallet",imageUrl:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHZpZXdCb3g9IjAgMCAzMCAzMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjMwIiBoZWlnaHQ9IjMwIiBmaWxsPSIjMEIwRTExIi8+CjxwYXRoIGQ9Ik01IDE1TDcuMjU4MDYgMTIuNzQxOUw5LjUxNjEzIDE1TDcuMjU4MDYgMTcuMjU4MUw1IDE1WiIgZmlsbD0iI0YwQjkwQiIvPgo8cGF0aCBkPSJNOC44NzA5NyAxMS4xMjlMMTUgNUwyMS4xMjkgMTEuMTI5TDE4Ljg3MSAxMy4zODcxTDE1IDkuNTE2MTNMMTEuMTI5IDEzLjM4NzFMOC44NzA5NyAxMS4xMjlaIiBmaWxsPSIjRjBCOTBCIi8+CjxwYXRoIGQ9Ik0xMi43NDE5IDE1TDE1IDEyLjc0MTlMMTcuMjU4MSAxNUwxNSAxNy4yNTgxTDEyLjc0MTkgMTVaIiBmaWxsPSIjRjBCOTBCIi8+CjxwYXRoIGQ9Ik0xMS4xMjkgMTYuNjEyOUw4Ljg3MDk3IDE4Ljg3MUwxNSAyNUwyMS4xMjkgMTguODcxTDE4Ljg3MSAxNi42MTI5TDE1IDIwLjQ4MzlMMTEuMTI5IDE2LjYxMjlaIiBmaWxsPSIjRjBCOTBCIi8+CjxwYXRoIGQ9Ik0yMC40ODM5IDE1TDIyLjc0MTkgMTIuNzQxOUwyNSAxNUwyMi43NDE5IDE3LjI1ODFMMjAuNDgzOSAxNVoiIGZpbGw9IiNGMEI5MEIiLz4KPC9zdmc+Cg==",aboutUrl:"https://www.binance.com/en/web3wallet",deepLink:"bnc://app.binance.com/cedefi/ton-connect",bridgeUrl:"https://bridge.tonapi.io/bridge",platforms:["chrome","safari","ios","android"],universalLink:"https://app.binance.com/cedefi/ton-connect"},{appName:"fintopio-tg",name:"Fintopio Telegram",imageUrl:"https://fintopio.com/favicons/favicon-196x196.png",aboutUrl:"https://fintopio.com",universalLink:"https://t.me/fintopio?attach=wallet",bridgeUrl:"https://wallet-bridge.fintopio.com/bridge",platforms:["ios","android","macos","windows","linux"]}]},actionsConfiguration:{twaReturnUrl:"https://t.me/DemoDappWithTonConnectBot/demo"},children:jsxs("div",{className:"app",children:[jsx$1(Header,{}),jsx$1(TxForm,{}),jsx$1(CreateJettonDemo,{}),jsx$1(TonProofDemo,{}),jsx$1(Footer,{})]})})}const index="";function runSingleInstance(b){let _=!1;return async()=>{if(!_){_=!0;try{await b()}catch(d){console.error(d)}finally{_=!1}}}}eruda.init();async function enableMocking(){return new Promise(async b=>{const{worker:_}=await __vitePreload(()=>import("./worker-952da4b5.js"),[]),d=()=>_.start({onUnhandledRequest:"bypass",quiet:!1,serviceWorker:{url:"/demo-dapp-with-react-ui/mockServiceWorker.js"}});let k=await d();b(k);const j=runSingleInstance(async()=>{var $;try{const tt=(await(($=navigator.serviceWorker)==null?void 0:$.getRegistrations())||[]).length>0,rt=await fetch("/api/healthz").then(nt=>nt.status===200?nt.json().then(ot=>ot.ok).catch(()=>!1):!1).catch(()=>!1);(!tt||!rt)&&(await(k==null?void 0:k.unregister().catch(()=>{})),k=await d().catch(()=>null))}catch(et){console.error("Error in verifyAndRestartWorker:",et),k=await d().catch(()=>null)}});setInterval(j,1e3)})}enableMocking().then(()=>reactDomExports.render(jsx$1(reactExports.StrictMode,{children:jsx$1(App,{})}),document.getElementById("root")));export{CHAIN as C,buffer as b,commonjsGlobal as c,getAugmentedNamespace as g,naclFastExports as n,require$$4 as r}; +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var _n=$(46),Bn=new($(47)).Dispatcher,Yn=new(function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){var Wt;nt(this,Rt);for(var Pt=arguments.length,hn=new Array(Pt),un=0;unPt&&(tn.style.cursor="pointer",this.state.collapsed&&(un=st.a.createElement("span",null,un.substring(0,Pt),st.a.createElement("span",Bt(hn,"ellipsis")," ...")))),st.a.createElement("div",Bt(hn,"string"),st.a.createElement(Zt,Object.assign({type_name:"string"},Wt)),st.a.createElement("span",Object.assign({className:"string-value"},tn,{onClick:this.toggleCollapsed}),'"',un,'"'))}}]),Rt}(st.a.PureComponent),gn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){return st.a.createElement("div",Bt(this.props.theme,"undefined"),"undefined")}}]),Rt}(st.a.PureComponent);function Ln(){return(Ln=Object.assign||function(It){for(var Nt=1;Nt=0||(Hn[mr]=rr[mr]);return Hn}(It,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),Gn,Jn=xn.value!==void 0,er=Object(gt.useRef)(null),ir=zn(er,Nt),Kn=Object(gt.useRef)(0),nr=Object(gt.useRef)(),ur=function(){var rr=er.current,yr=Rt&&nr.current?nr.current:function(hr){var lr=window.getComputedStyle(hr);if(lr===null)return null;var sr,dr=(sr=lr,bn.reduce(function(Mr,jr){return Mr[jr]=sr[jr],Mr},{})),Ar=dr.boxSizing;return Ar===""?null:(Yt&&Ar==="border-box"&&(dr.width=parseFloat(dr.width)+parseFloat(dr.borderRightWidth)+parseFloat(dr.borderLeftWidth)+parseFloat(dr.paddingRight)+parseFloat(dr.paddingLeft)+"px"),{sizingStyle:dr,paddingSize:parseFloat(dr.paddingBottom)+parseFloat(dr.paddingTop),borderSize:parseFloat(dr.borderBottomWidth)+parseFloat(dr.borderTopWidth)})}(rr);if(yr){nr.current=yr;var mr=function(hr,lr,sr,dr){sr===void 0&&(sr=1),dr===void 0&&(dr=1/0),Wn||((Wn=document.createElement("textarea")).setAttribute("tab-index","-1"),Wn.setAttribute("aria-hidden","true"),Nn(Wn)),Wn.parentNode===null&&document.body.appendChild(Wn);var Ar=hr.paddingSize,Mr=hr.borderSize,jr=hr.sizingStyle,Ir=jr.boxSizing;Object.keys(jr).forEach(function(Pr){var $r=Pr;Wn.style[$r]=jr[$r]}),Nn(Wn),Wn.value=lr;var pn=function(Pr,$r){var Wr=Pr.scrollHeight;return $r.sizingStyle.boxSizing==="border-box"?Wr+$r.borderSize:Wr-$r.paddingSize}(Wn,hr);Wn.value="x";var Lr=Wn.scrollHeight-Ar,Dr=Lr*sr;Ir==="border-box"&&(Dr=Dr+Ar+Mr),pn=Math.max(Dr,pn);var Fr=Lr*dr;return Ir==="border-box"&&(Fr=Fr+Ar+Mr),[pn=Math.min(Fr,pn),Lr]}(yr,rr.value||rr.placeholder||"x",Pt,Wt),Pn=mr[0],Hn=mr[1];Kn.current!==Pn&&(Kn.current=Pn,rr.style.setProperty("height",Pn+"px","important"),Gt(Pn,{rowHeight:Hn}))}};return Object(gt.useLayoutEffect)(ur),Gn=Un(ur),Object(gt.useLayoutEffect)(function(){var rr=function(yr){Gn.current(yr)};return window.addEventListener("resize",rr),function(){window.removeEventListener("resize",rr)}},[]),Object(gt.createElement)("textarea",Ln({},xn,{onChange:function(rr){Jn||ur(),un(rr)},ref:ir}))},pt=Object(gt.forwardRef)(bt);function yt(It){It=It.trim();try{if((It=JSON.stringify(JSON.parse(It)))[0]==="[")return Ut("array",JSON.parse(It));if(It[0]==="{")return Ut("object",JSON.parse(It));if(It.match(/\-?\d+\.\d+/)&&It.match(/\-?\d+\.\d+/)[0]===It)return Ut("float",parseFloat(It));if(It.match(/\-?\d+e-\d+/)&&It.match(/\-?\d+e-\d+/)[0]===It)return Ut("float",Number(It));if(It.match(/\-?\d+/)&&It.match(/\-?\d+/)[0]===It)return Ut("integer",parseInt(It));if(It.match(/\-?\d+e\+\d+/)&&It.match(/\-?\d+e\+\d+/)[0]===It)return Ut("integer",Number(It))}catch{}switch(It=It.toLowerCase()){case"undefined":return Ut("undefined",void 0);case"nan":return Ut("nan",NaN);case"null":return Ut("null",null);case"true":return Ut("boolean",!0);case"false":return Ut("boolean",!1);default:if(It=Date.parse(It))return Ut("date",new Date(It))}return Ut(!1,null)}function Ut(It,Nt){return{type:It,value:Nt}}var an=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Pt),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),Rt}(st.a.PureComponent),sn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Pt),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),Rt}(st.a.PureComponent),Sn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]),un=pr(Pt).style;return st.a.createElement("span",hn,st.a.createElement("svg",{fill:un.color,width:un.height,height:un.width,style:un,viewBox:"0 0 1792 1792"},st.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),Rt}(st.a.PureComponent),or=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]),un=pr(Pt).style;return st.a.createElement("span",hn,st.a.createElement("svg",{fill:un.color,width:un.height,height:un.width,style:un,viewBox:"0 0 1792 1792"},st.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),Rt}(st.a.PureComponent),Rn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",{style:rt(rt({},pr(Pt).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},st.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),Rt}(st.a.PureComponent),Xn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",{style:rt(rt({},pr(Pt).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},st.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),Rt}(st.a.PureComponent),$n=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Pt),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("g",null,st.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),Rt}(st.a.PureComponent),ar=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Pt),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("g",null,st.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),Rt}(st.a.PureComponent),Qn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Pt),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("g",null,st.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),Rt}(st.a.PureComponent),qn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Pt),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("g",null,st.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),Rt}(st.a.PureComponent),fr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Pt),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("g",null,st.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),Rt}(st.a.PureComponent),cr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Pt),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("g",null,st.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),Rt}(st.a.PureComponent);function pr(It){return It||(It={}),{style:rt(rt({verticalAlign:"middle"},It),{},{color:It.color?It.color:"#000000",height:"1em",width:"1em"})}}var xr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(Wt){var Pt;return nt(this,Rt),(Pt=Nt.call(this,Wt)).copiedTimer=null,Pt.handleCopy=function(){var hn=document.createElement("textarea"),un=Pt.props,tn=un.clickCallback,Gt=un.src,xn=un.namespace;hn.innerHTML=JSON.stringify(Pt.clipboardValue(Gt),null," "),document.body.appendChild(hn),hn.select(),document.execCommand("copy"),document.body.removeChild(hn),Pt.copiedTimer=setTimeout(function(){Pt.setState({copied:!1})},5500),Pt.setState({copied:!0},function(){typeof tn=="function"&&tn({src:Gt,namespace:xn,name:xn[xn.length-1]})})},Pt.getClippyIcon=function(){var hn=Pt.props.theme;return Pt.state.copied?st.a.createElement("span",null,st.a.createElement($n,Object.assign({className:"copy-icon"},Bt(hn,"copy-icon"))),st.a.createElement("span",Bt(hn,"copy-icon-copied"),"✔")):st.a.createElement($n,Object.assign({className:"copy-icon"},Bt(hn,"copy-icon")))},Pt.clipboardValue=function(hn){switch(_t(hn)){case"function":case"regexp":return hn.toString();default:return hn}},Pt.state={copied:!1},Pt}return at(Rt,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var Wt=this.props,Pt=(Wt.src,Wt.theme),hn=Wt.hidden,un=Wt.rowHovered,tn=Bt(Pt,"copy-to-clipboard").style,Gt="inline";return hn&&(Gt="none"),st.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:un?"inline-block":"none"}},st.a.createElement("span",{style:rt(rt({},tn),{},{display:Gt}),onClick:this.handleCopy},this.getClippyIcon()))}}]),Rt}(st.a.PureComponent),kr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(Wt){var Pt;return nt(this,Rt),(Pt=Nt.call(this,Wt)).getEditIcon=function(){var hn=Pt.props,un=hn.variable,tn=hn.theme;return st.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:Pt.state.hovered?"inline-block":"none"}},st.a.createElement(fr,Object.assign({className:"click-to-edit-icon"},Bt(tn,"editVarIcon"),{onClick:function(){Pt.prepopInput(un)}})))},Pt.prepopInput=function(hn){if(Pt.props.onEdit!==!1){var un=function(Gt){var xn;switch(_t(Gt)){case"undefined":xn="undefined";break;case"nan":xn="NaN";break;case"string":xn=Gt;break;case"date":case"function":case"regexp":xn=Gt.toString();break;default:try{xn=JSON.stringify(Gt,null," ")}catch{xn=""}}return xn}(hn.value),tn=yt(un);Pt.setState({editMode:!0,editValue:un,parsedInput:{type:tn.type,value:tn.value}})}},Pt.getRemoveIcon=function(){var hn=Pt.props,un=hn.variable,tn=hn.namespace,Gt=hn.theme,xn=hn.rjvId;return st.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:Pt.state.hovered?"inline-block":"none"}},st.a.createElement(ar,Object.assign({className:"click-to-remove-icon"},Bt(Gt,"removeVarIcon"),{onClick:function(){Bn.dispatch({name:"VARIABLE_REMOVED",rjvId:xn,data:{name:un.name,namespace:tn,existing_value:un.value,variable_removed:!0}})}})))},Pt.getValue=function(hn,un){var tn=!un&&hn.type,Gt=ft(Pt).props;switch(tn){case!1:return Pt.getEditInput();case"string":return st.a.createElement(En,Object.assign({value:hn.value},Gt));case"integer":return st.a.createElement(kn,Object.assign({value:hn.value},Gt));case"float":return st.a.createElement(Qt,Object.assign({value:hn.value},Gt));case"boolean":return st.a.createElement(rn,Object.assign({value:hn.value},Gt));case"function":return st.a.createElement(An,Object.assign({value:hn.value},Gt));case"null":return st.a.createElement(jn,Gt);case"nan":return st.a.createElement(mn,Gt);case"undefined":return st.a.createElement(gn,Gt);case"date":return st.a.createElement(nn,Object.assign({value:hn.value},Gt));case"regexp":return st.a.createElement(vn,Object.assign({value:hn.value},Gt));default:return st.a.createElement("div",{className:"object-value"},JSON.stringify(hn.value))}},Pt.getEditInput=function(){var hn=Pt.props.theme,un=Pt.state.editValue;return st.a.createElement("div",null,st.a.createElement(pt,Object.assign({type:"text",inputRef:function(tn){return tn&&tn.focus()},value:un,className:"variable-editor",onChange:function(tn){var Gt=tn.target.value,xn=yt(Gt);Pt.setState({editValue:Gt,parsedInput:{type:xn.type,value:xn.value}})},onKeyDown:function(tn){switch(tn.key){case"Escape":Pt.setState({editMode:!1,editValue:""});break;case"Enter":(tn.ctrlKey||tn.metaKey)&&Pt.submitEdit(!0)}tn.stopPropagation()},placeholder:"update this value",minRows:2},Bt(hn,"edit-input"))),st.a.createElement("div",Bt(hn,"edit-icon-container"),st.a.createElement(ar,Object.assign({className:"edit-cancel"},Bt(hn,"cancel-icon"),{onClick:function(){Pt.setState({editMode:!1,editValue:""})}})),st.a.createElement(cr,Object.assign({className:"edit-check string-value"},Bt(hn,"check-icon"),{onClick:function(){Pt.submitEdit()}})),st.a.createElement("div",null,Pt.showDetected())))},Pt.submitEdit=function(hn){var un=Pt.props,tn=un.variable,Gt=un.namespace,xn=un.rjvId,Gn=Pt.state,Jn=Gn.editValue,er=Gn.parsedInput,ir=Jn;hn&&er.type&&(ir=er.value),Pt.setState({editMode:!1}),Bn.dispatch({name:"VARIABLE_UPDATED",rjvId:xn,data:{name:tn.name,namespace:Gt,existing_value:tn.value,new_value:ir,variable_removed:!1}})},Pt.showDetected=function(){var hn=Pt.props,un=hn.theme,tn=(hn.variable,hn.namespace,hn.rjvId,Pt.state.parsedInput),Gt=(tn.type,tn.value,Pt.getDetectedInput());if(Gt)return st.a.createElement("div",null,st.a.createElement("div",Bt(un,"detected-row"),Gt,st.a.createElement(cr,{className:"edit-check detected",style:rt({verticalAlign:"top",paddingLeft:"3px"},Bt(un,"check-icon").style),onClick:function(){Pt.submitEdit(!0)}})))},Pt.getDetectedInput=function(){var hn=Pt.state.parsedInput,un=hn.type,tn=hn.value,Gt=ft(Pt).props,xn=Gt.theme;if(un!==!1)switch(un.toLowerCase()){case"object":return st.a.createElement("span",null,st.a.createElement("span",{style:rt(rt({},Bt(xn,"brace").style),{},{cursor:"default"})},"{"),st.a.createElement("span",{style:rt(rt({},Bt(xn,"ellipsis").style),{},{cursor:"default"})},"..."),st.a.createElement("span",{style:rt(rt({},Bt(xn,"brace").style),{},{cursor:"default"})},"}"));case"array":return st.a.createElement("span",null,st.a.createElement("span",{style:rt(rt({},Bt(xn,"brace").style),{},{cursor:"default"})},"["),st.a.createElement("span",{style:rt(rt({},Bt(xn,"ellipsis").style),{},{cursor:"default"})},"..."),st.a.createElement("span",{style:rt(rt({},Bt(xn,"brace").style),{},{cursor:"default"})},"]"));case"string":return st.a.createElement(En,Object.assign({value:tn},Gt));case"integer":return st.a.createElement(kn,Object.assign({value:tn},Gt));case"float":return st.a.createElement(Qt,Object.assign({value:tn},Gt));case"boolean":return st.a.createElement(rn,Object.assign({value:tn},Gt));case"function":return st.a.createElement(An,Object.assign({value:tn},Gt));case"null":return st.a.createElement(jn,Gt);case"nan":return st.a.createElement(mn,Gt);case"undefined":return st.a.createElement(gn,Gt);case"date":return st.a.createElement(nn,Object.assign({value:new Date(tn)},Gt))}},Pt.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},Pt}return at(Rt,[{key:"render",value:function(){var Wt=this,Pt=this.props,hn=Pt.variable,un=Pt.singleIndent,tn=Pt.type,Gt=Pt.theme,xn=Pt.namespace,Gn=Pt.indentWidth,Jn=Pt.enableClipboard,er=Pt.onEdit,ir=Pt.onDelete,Kn=Pt.onSelect,nr=Pt.displayArrayKey,ur=Pt.quotesOnKeys,rr=this.state.editMode;return st.a.createElement("div",Object.assign({},Bt(Gt,"objectKeyVal",{paddingLeft:Gn*un}),{onMouseEnter:function(){return Wt.setState(rt(rt({},Wt.state),{},{hovered:!0}))},onMouseLeave:function(){return Wt.setState(rt(rt({},Wt.state),{},{hovered:!1}))},className:"variable-row",key:hn.name}),tn=="array"?nr?st.a.createElement("span",Object.assign({},Bt(Gt,"array-key"),{key:hn.name+"_"+xn}),hn.name,st.a.createElement("div",Bt(Gt,"colon"),":")):null:st.a.createElement("span",null,st.a.createElement("span",Object.assign({},Bt(Gt,"object-name"),{className:"object-key",key:hn.name+"_"+xn}),!!ur&&st.a.createElement("span",{style:{verticalAlign:"top"}},'"'),st.a.createElement("span",{style:{display:"inline-block"}},hn.name),!!ur&&st.a.createElement("span",{style:{verticalAlign:"top"}},'"')),st.a.createElement("span",Bt(Gt,"colon"),":")),st.a.createElement("div",Object.assign({className:"variable-value",onClick:Kn===!1&&er===!1?null:function(yr){var mr=On(xn);(yr.ctrlKey||yr.metaKey)&&er!==!1?Wt.prepopInput(hn):Kn!==!1&&(mr.shift(),Kn(rt(rt({},hn),{},{namespace:mr})))}},Bt(Gt,"variableValue",{cursor:Kn===!1?"default":"pointer"})),this.getValue(hn,rr)),Jn?st.a.createElement(xr,{rowHovered:this.state.hovered,hidden:rr,src:hn.value,clickCallback:Jn,theme:Gt,namespace:[].concat(On(xn),[hn.name])}):null,er!==!1&&rr==0?this.getEditIcon():null,ir!==!1&&rr==0?this.getRemoveIcon():null)}}]),Rt}(st.a.PureComponent),Tr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){var Wt;nt(this,Rt);for(var Pt=arguments.length,hn=new Array(Pt),un=0;un0?Jn:null,namespace:Gn.splice(0,Gn.length-1),existing_value:er,variable_removed:!1,key_name:null};_t(er)==="object"?Bn.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:ir,data:nr}):Bn.dispatch({name:"VARIABLE_ADDED",rjvId:ir,data:rt(rt({},nr),{},{new_value:[].concat(On(er),[null])})})}})))},Wt.getRemoveObject=function(tn){var Gt=Wt.props,xn=Gt.theme,Gn=(Gt.hover,Gt.namespace),Jn=Gt.name,er=Gt.src,ir=Gt.rjvId;if(Gn.length!==1)return st.a.createElement("span",{className:"click-to-remove",style:{display:tn?"inline-block":"none"}},st.a.createElement(ar,Object.assign({className:"click-to-remove-icon"},Bt(xn,"removeVarIcon"),{onClick:function(){Bn.dispatch({name:"VARIABLE_REMOVED",rjvId:ir,data:{name:Jn,namespace:Gn.splice(0,Gn.length-1),existing_value:er,variable_removed:!0}})}})))},Wt.render=function(){var tn=Wt.props,Gt=tn.theme,xn=tn.onDelete,Gn=tn.onAdd,Jn=tn.enableClipboard,er=tn.src,ir=tn.namespace,Kn=tn.rowHovered;return st.a.createElement("div",Object.assign({},Bt(Gt,"object-meta-data"),{className:"object-meta-data",onClick:function(nr){nr.stopPropagation()}}),Wt.getObjectSize(),Jn?st.a.createElement(xr,{rowHovered:Kn,clickCallback:Jn,src:er,theme:Gt,namespace:ir}):null,Gn!==!1?Wt.getAddAttribute(Kn):null,xn!==!1?Wt.getRemoveObject(Kn):null)},Wt}return Rt}(st.a.PureComponent);function Br(It){var Nt=It.parent_type,Rt=It.namespace,Wt=It.quotesOnKeys,Pt=It.theme,hn=It.jsvRoot,un=It.name,tn=It.displayArrayKey,Gt=It.name?It.name:"";return!hn||un!==!1&&un!==null?Nt=="array"?tn?st.a.createElement("span",Object.assign({},Bt(Pt,"array-key"),{key:Rt}),st.a.createElement("span",{className:"array-key"},Gt),st.a.createElement("span",Bt(Pt,"colon"),":")):st.a.createElement("span",null):st.a.createElement("span",Object.assign({},Bt(Pt,"object-name"),{key:Rt}),st.a.createElement("span",{className:"object-key"},Wt&&st.a.createElement("span",{style:{verticalAlign:"top"}},'"'),st.a.createElement("span",null,Gt),Wt&&st.a.createElement("span",{style:{verticalAlign:"top"}},'"')),st.a.createElement("span",Bt(Pt,"colon"),":")):st.a.createElement("span",null)}function Rr(It){var Nt=It.theme;switch(It.iconStyle){case"triangle":return st.a.createElement(Xn,Object.assign({},Bt(Nt,"expanded-icon"),{className:"expanded-icon"}));case"square":return st.a.createElement(Sn,Object.assign({},Bt(Nt,"expanded-icon"),{className:"expanded-icon"}));default:return st.a.createElement(an,Object.assign({},Bt(Nt,"expanded-icon"),{className:"expanded-icon"}))}}function Ur(It){var Nt=It.theme;switch(It.iconStyle){case"triangle":return st.a.createElement(Rn,Object.assign({},Bt(Nt,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return st.a.createElement(or,Object.assign({},Bt(Nt,"collapsed-icon"),{className:"collapsed-icon"}));default:return st.a.createElement(sn,Object.assign({},Bt(Nt,"collapsed-icon"),{className:"collapsed-icon"}))}}var Qr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(Wt){var Pt;return nt(this,Rt),(Pt=Nt.call(this,Wt)).toggleCollapsed=function(hn){var un=[];for(var tn in Pt.state.expanded)un.push(Pt.state.expanded[tn]);un[hn]=!un[hn],Pt.setState({expanded:un})},Pt.state={expanded:[]},Pt}return at(Rt,[{key:"getExpandedIcon",value:function(Wt){var Pt=this.props,hn=Pt.theme,un=Pt.iconStyle;return this.state.expanded[Wt]?st.a.createElement(Rr,{theme:hn,iconStyle:un}):st.a.createElement(Ur,{theme:hn,iconStyle:un})}},{key:"render",value:function(){var Wt=this,Pt=this.props,hn=Pt.src,un=Pt.groupArraysAfterLength,tn=(Pt.depth,Pt.name),Gt=Pt.theme,xn=Pt.jsvRoot,Gn=Pt.namespace,Jn=(Pt.parent_type,kt(Pt,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),er=0,ir=5*this.props.indentWidth;xn||(er=5*this.props.indentWidth);var Kn=un,nr=Math.ceil(hn.length/Kn);return st.a.createElement("div",Object.assign({className:"object-key-val"},Bt(Gt,xn?"jsv-root":"objectKeyVal",{paddingLeft:er})),st.a.createElement(Br,this.props),st.a.createElement("span",null,st.a.createElement(Tr,Object.assign({size:hn.length},this.props))),On(Array(nr)).map(function(ur,rr){return st.a.createElement("div",Object.assign({key:rr,className:"object-key-val array-group"},Bt(Gt,"objectKeyVal",{marginLeft:6,paddingLeft:ir})),st.a.createElement("span",Bt(Gt,"brace-row"),st.a.createElement("div",Object.assign({className:"icon-container"},Bt(Gt,"icon-container"),{onClick:function(yr){Wt.toggleCollapsed(rr)}}),Wt.getExpandedIcon(rr)),Wt.state.expanded[rr]?st.a.createElement(St,Object.assign({key:tn+rr,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:Kn,index_offset:rr*Kn,src:hn.slice(rr*Kn,rr*Kn+Kn),namespace:Gn,type:"array",parent_type:"array_group",theme:Gt},Jn)):st.a.createElement("span",Object.assign({},Bt(Gt,"brace"),{onClick:function(yr){Wt.toggleCollapsed(rr)},className:"array-group-brace"}),"[",st.a.createElement("div",Object.assign({},Bt(Gt,"array-group-meta-data"),{className:"array-group-meta-data"}),st.a.createElement("span",Object.assign({className:"object-size"},Bt(Gt,"object-size")),rr*Kn," - ",rr*Kn+Kn>hn.length?hn.length:rr*Kn+Kn)),"]")))}))}}]),Rt}(st.a.PureComponent),Zr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(Wt){var Pt;nt(this,Rt),(Pt=Nt.call(this,Wt)).toggleCollapsed=function(){Pt.setState({expanded:!Pt.state.expanded},function(){dn.set(Pt.props.rjvId,Pt.props.namespace,"expanded",Pt.state.expanded)})},Pt.getObjectContent=function(un,tn,Gt){return st.a.createElement("div",{className:"pushed-content object-container"},st.a.createElement("div",Object.assign({className:"object-content"},Bt(Pt.props.theme,"pushed-content")),Pt.renderObjectContents(tn,Gt)))},Pt.getEllipsis=function(){return Pt.state.size===0?null:st.a.createElement("div",Object.assign({},Bt(Pt.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:Pt.toggleCollapsed}),"...")},Pt.getObjectMetaData=function(un){var tn=Pt.props,Gt=(tn.rjvId,tn.theme,Pt.state),xn=Gt.size,Gn=Gt.hovered;return st.a.createElement(Tr,Object.assign({rowHovered:Gn,size:xn},Pt.props))},Pt.renderObjectContents=function(un,tn){var Gt,xn=Pt.props,Gn=xn.depth,Jn=xn.parent_type,er=xn.index_offset,ir=xn.groupArraysAfterLength,Kn=xn.namespace,nr=Pt.state.object_type,ur=[],rr=Object.keys(un||{});return Pt.props.sortKeys&&nr!=="array"&&(rr=rr.sort()),rr.forEach(function(yr){if(Gt=new mo(yr,un[yr]),Jn==="array_group"&&er&&(Gt.name=parseInt(Gt.name)+er),un.hasOwnProperty(yr))if(Gt.type==="object")ur.push(st.a.createElement(St,Object.assign({key:Gt.name,depth:Gn+1,name:Gt.name,src:Gt.value,namespace:Kn.concat(Gt.name),parent_type:nr},tn)));else if(Gt.type==="array"){var mr=St;ir&&Gt.value.length>ir&&(mr=Qr),ur.push(st.a.createElement(mr,Object.assign({key:Gt.name,depth:Gn+1,name:Gt.name,src:Gt.value,namespace:Kn.concat(Gt.name),type:"array",parent_type:nr},tn)))}else ur.push(st.a.createElement(kr,Object.assign({key:Gt.name+"_"+Kn,variable:Gt,singleIndent:5,namespace:Kn,type:Pt.props.type},tn)))}),ur};var hn=Rt.getState(Wt);return Pt.state=rt(rt({},hn),{},{prevProps:{}}),Pt}return at(Rt,[{key:"getBraceStart",value:function(Wt,Pt){var hn=this,un=this.props,tn=un.src,Gt=un.theme,xn=un.iconStyle;if(un.parent_type==="array_group")return st.a.createElement("span",null,st.a.createElement("span",Bt(Gt,"brace"),Wt==="array"?"[":"{"),Pt?this.getObjectMetaData(tn):null);var Gn=Pt?Rr:Ur;return st.a.createElement("span",null,st.a.createElement("span",Object.assign({onClick:function(Jn){hn.toggleCollapsed()}},Bt(Gt,"brace-row")),st.a.createElement("div",Object.assign({className:"icon-container"},Bt(Gt,"icon-container")),st.a.createElement(Gn,{theme:Gt,iconStyle:xn})),st.a.createElement(Br,this.props),st.a.createElement("span",Bt(Gt,"brace"),Wt==="array"?"[":"{")),Pt?this.getObjectMetaData(tn):null)}},{key:"render",value:function(){var Wt=this,Pt=this.props,hn=Pt.depth,un=Pt.src,tn=(Pt.namespace,Pt.name,Pt.type,Pt.parent_type),Gt=Pt.theme,xn=Pt.jsvRoot,Gn=Pt.iconStyle,Jn=kt(Pt,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),er=this.state,ir=er.object_type,Kn=er.expanded,nr={};return xn||tn==="array_group"?tn==="array_group"&&(nr.borderLeft=0,nr.display="inline"):nr.paddingLeft=5*this.props.indentWidth,st.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return Wt.setState(rt(rt({},Wt.state),{},{hovered:!0}))},onMouseLeave:function(){return Wt.setState(rt(rt({},Wt.state),{},{hovered:!1}))}},Bt(Gt,xn?"jsv-root":"objectKeyVal",nr)),this.getBraceStart(ir,Kn),Kn?this.getObjectContent(hn,un,rt({theme:Gt,iconStyle:Gn},Jn)):this.getEllipsis(),st.a.createElement("span",{className:"brace-row"},st.a.createElement("span",{style:rt(rt({},Bt(Gt,"brace").style),{},{paddingLeft:Kn?"3px":"0px"})},ir==="array"?"]":"}"),Kn?null:this.getObjectMetaData(un)))}}],[{key:"getDerivedStateFromProps",value:function(Wt,Pt){var hn=Pt.prevProps;return Wt.src!==hn.src||Wt.collapsed!==hn.collapsed||Wt.name!==hn.name||Wt.namespace!==hn.namespace||Wt.rjvId!==hn.rjvId?rt(rt({},Rt.getState(Wt)),{},{prevProps:Wt}):null}}]),Rt}(st.a.PureComponent);Zr.getState=function(It){var Nt=Object.keys(It.src).length,Rt=(It.collapsed===!1||It.collapsed!==!0&&It.collapsed>It.depth)&&(!It.shouldCollapse||It.shouldCollapse({name:It.name,src:It.src,type:_t(It.src),namespace:It.namespace})===!1)&&Nt!==0;return{expanded:dn.get(It.rjvId,It.namespace,"expanded",Rt),object_type:It.type==="array"?"array":"object",parent_type:It.type==="array"?"array":"object",size:Nt,hovered:!1}};var mo=function It(Nt,Rt){nt(this,It),this.name=Nt,this.value=Rt,this.type=_t(Rt)};Mt(Zr);var St=Zr,Ft=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){var Wt;nt(this,Rt);for(var Pt=arguments.length,hn=new Array(Pt),un=0;untn.groupArraysAfterLength&&(xn=Qr),st.a.createElement("div",{className:"pretty-json-container object-container"},st.a.createElement("div",{className:"object-content"},st.a.createElement(xn,Object.assign({namespace:Gt,depth:0,jsvRoot:!0},tn))))},Wt}return Rt}(st.a.PureComponent),$t=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(Wt){var Pt;return nt(this,Rt),(Pt=Nt.call(this,Wt)).closeModal=function(){Bn.dispatch({rjvId:Pt.props.rjvId,name:"RESET"})},Pt.submit=function(){Pt.props.submit(Pt.state.input)},Pt.state={input:Wt.input?Wt.input:""},Pt}return at(Rt,[{key:"render",value:function(){var Wt=this,Pt=this.props,hn=Pt.theme,un=Pt.rjvId,tn=Pt.isValid,Gt=this.state.input,xn=tn(Gt);return st.a.createElement("div",Object.assign({className:"key-modal-request"},Bt(hn,"key-modal-request"),{onClick:this.closeModal}),st.a.createElement("div",Object.assign({},Bt(hn,"key-modal"),{onClick:function(Gn){Gn.stopPropagation()}}),st.a.createElement("div",Bt(hn,"key-modal-label"),"Key Name:"),st.a.createElement("div",{style:{position:"relative"}},st.a.createElement("input",Object.assign({},Bt(hn,"key-modal-input"),{className:"key-modal-input",ref:function(Gn){return Gn&&Gn.focus()},spellCheck:!1,value:Gt,placeholder:"...",onChange:function(Gn){Wt.setState({input:Gn.target.value})},onKeyPress:function(Gn){xn&&Gn.key==="Enter"?Wt.submit():Gn.key==="Escape"&&Wt.closeModal()}})),xn?st.a.createElement(cr,Object.assign({},Bt(hn,"key-modal-submit"),{className:"key-modal-submit",onClick:function(Gn){return Wt.submit()}})):null),st.a.createElement("span",Bt(hn,"key-modal-cancel"),st.a.createElement(qn,Object.assign({},Bt(hn,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){Bn.dispatch({rjvId:un,name:"RESET"})}})))))}}]),Rt}(st.a.PureComponent),mt=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){var Wt;nt(this,Rt);for(var Pt=arguments.length,hn=new Array(Pt),un=0;un{_($.updated_src)},[]);return jsxs("div",{className:"send-tx-form",children:[jsx$1("h3",{children:"Configure and send transaction"}),jsx$1(ReactJson,{theme:"ocean",src:defaultTx,onEdit:j,onAdd:j,onDelete:j}),d?jsx$1("button",{onClick:()=>k.sendTransaction(b),children:"Send transaction"}):jsx$1("button",{onClick:()=>k.openModal(),children:"Connect wallet to send the transaction"})]})}const footer="",style$3="",defaultColors={[THEME.LIGHT]:{constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#0098EA",telegramButton:"#0098EA",icon:{primary:"#0F0F0F",secondary:"#7A8999",tertiary:"#C1CAD2",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#FFFFFF",secondary:"#F1F3F5",segment:"#FFFFFF",tint:"#F1F3F5",qr:"#F1F3F5"},text:{primary:"#0F0F0F",secondary:"#6A7785"}},[THEME.DARK]:{constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#E5E5EA",telegramButton:"#31A6F5",icon:{primary:"#E5E5EA",secondary:"#909099",tertiary:"#434347",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#121214",secondary:"#18181A",segment:"#262629",tint:"#222224",qr:"#F1F3F5"},text:{primary:"#E5E5EA",secondary:"#7D7D85"}}},ColorsSelect=({theme:b})=>{const[_,d]=useTonConnectUI(),[k,j]=reactExports.useState(defaultColors[b]);reactExports.useEffect(()=>{j(defaultColors[b])},[b]);const $=(et,tt,rt)=>{d({uiPreferences:{colorsSet:{[b]:{[tt]:rt?{...k[tt],[rt]:et}:et}}}}),j(nt=>({...nt,[tt]:rt?{...nt[tt],[rt]:et}:et})),defaultColors[b]={...defaultColors[b],[tt]:rt?{...k[tt],[rt]:et}:et}};return jsx$1("div",{className:"colors-container",children:Object.entries(k).map(([et,tt])=>typeof tt=="object"?jsxs("div",{children:[jsxs("span",{children:[et,":"]}),Object.entries(tt).map(([rt,nt])=>jsxs("label",{children:[rt,jsx$1("input",{type:"color",value:k[et][rt],onChange:ot=>$(ot.target.value,et,rt)})]},et+rt))]},et):jsxs("div",{children:[jsxs("span",{children:[et,":"]}),jsx$1("label",{children:jsx$1("input",{type:"color",value:k[et],onChange:rt=>$(rt.target.value,et)})})]}))})},style$2="",ColorsModal=()=>{const[b,_]=reactExports.useState(!1),[d,k]=reactExports.useState(THEME.LIGHT);return jsxs(Fragment,{children:[jsx$1("button",{onClick:()=>_(!0),children:"change colors"}),b&&jsxs("div",{className:"modal",children:[jsx$1("button",{onClick:()=>_(!1),children:"close"}),jsxs("div",{className:"modal__toggle",children:[jsx$1("a",{href:"#",style:{color:d===THEME.LIGHT?"blue":"white"},onClick:()=>k(THEME.LIGHT),children:"LIGHT"}),jsx$1("a",{href:"#",style:{color:d===THEME.DARK?"blue":"white"},onClick:()=>k(THEME.DARK),children:"DARK"})]}),jsx$1(ColorsSelect,{theme:d})]})]})},Footer=()=>{const[b,_]=reactExports.useState([!0,!1,!1,!0,!0,!0]),[d,k]=reactExports.useState("back"),[j,$]=reactExports.useState("ios"),[et,tt]=reactExports.useState(!0),[rt,nt]=useTonConnectUI(),ot=lt=>{nt({language:lt})},at=lt=>{nt({uiPreferences:{theme:lt}})},it=lt=>{nt({uiPreferences:{borderRadius:lt}})},dt=lt=>{_(ct=>ct.map((gt,st)=>st===lt?!gt:gt))},ut=lt=>{tt(lt)},ht=()=>{if(!d){k("back");return}nt({actionsConfiguration:{returnStrategy:d}})},ft=()=>{if(!j){$("ios");return}nt({actionsConfiguration:{skipRedirectToWallet:j}})};return reactExports.useEffect(()=>{const lt=["before","success","error"],ct=lt.map((st,Ct)=>b[Ct]?st:void 0).filter(st=>st),gt=lt.map((st,Ct)=>b[Ct+3]?st:void 0).filter(st=>st);nt({actionsConfiguration:{modals:ct,notifications:gt}})},[b]),reactExports.useEffect(()=>{nt({enableAndroidBackHandler:et})},[et]),jsxs("footer",{className:"footer",children:[jsxs("div",{children:[jsx$1("label",{children:"language"}),jsxs("select",{onChange:lt=>ot(lt.target.value),children:[jsx$1("option",{value:"en",children:"en"}),jsx$1("option",{value:"ru",children:"ru"})]})]}),jsxs("div",{children:[jsx$1("label",{children:"theme"}),jsxs("select",{onChange:lt=>at(lt.target.value),children:[jsx$1("option",{value:THEME.DARK,children:"dark"}),jsx$1("option",{value:THEME.LIGHT,children:"light"}),jsx$1("option",{value:"SYSTEM",children:"system"})]})]}),jsxs("div",{children:[jsx$1("label",{children:"borders"}),jsxs("select",{onChange:lt=>it(lt.target.value),children:[jsx$1("option",{value:"m",children:"m"}),jsx$1("option",{value:"s",children:"s"}),jsx$1("option",{value:"none",children:"none"})]})]}),jsxs("div",{children:[jsx$1("label",{children:"enable android back handler"}),jsxs("select",{onChange:lt=>ut(lt.target.value==="true"),value:et.toString(),children:[jsx$1("option",{value:"true",children:"true"}),jsx$1("option",{value:"false",children:"false"})]})]}),jsxs("div",{className:"footer-checkbox-container",children:[jsx$1("span",{children:"modals"}),jsxs("label",{children:["before",jsx$1("input",{type:"checkbox",checked:b[0],onChange:()=>dt(0)})]}),jsxs("label",{children:["success",jsx$1("input",{type:"checkbox",checked:b[1],onChange:()=>dt(1)})]}),jsxs("label",{children:["error",jsx$1("input",{type:"checkbox",checked:b[2],onChange:()=>dt(2)})]})]}),jsxs("div",{className:"footer-checkbox-container",children:[jsx$1("span",{children:"notifications"}),jsxs("label",{children:["before",jsx$1("input",{type:"checkbox",checked:b[3],onChange:()=>dt(3)})]}),jsxs("label",{children:["success",jsx$1("input",{type:"checkbox",checked:b[4],onChange:()=>dt(4)})]}),jsxs("label",{children:["error",jsx$1("input",{type:"checkbox",checked:b[5],onChange:()=>dt(5)})]})]}),jsx$1("div",{children:jsx$1(ColorsModal,{})}),jsx$1("div",{children:jsxs("label",{children:["return strategy:",jsx$1("input",{style:{width:"200px"},value:d,onChange:lt=>k(lt.target.value),onBlur:ht})]})}),jsx$1("div",{children:jsxs("label",{children:[jsx$1("div",{children:"skip redirect to wallet:"}),jsx$1("div",{children:"('ios', 'never', 'always')"}),jsx$1("input",{style:{width:"200px"},value:j,onChange:lt=>$(lt.target.value),onBlur:ft})]})})]})},style$1="";class TonProofDemoApiService{constructor(){Jo(this,"localStorageKey","demo-api-access-token");Jo(this,"host",document.baseURI.replace(/\/$/,""));Jo(this,"accessToken",null);Jo(this,"refreshIntervalMs",9*60*1e3);this.accessToken=localStorage.getItem(this.localStorageKey),this.accessToken||this.generatePayload()}async generatePayload(){try{return{tonProof:(await(await fetch(`${this.host}/api/generate_payload`,{method:"POST"})).json()).payload}}catch{return null}}async checkProof(_,d){try{const k={address:d.address,network:d.chain,public_key:d.publicKey,proof:{..._,state_init:d.walletStateInit}},j=await(await fetch(`${this.host}/api/check_proof`,{method:"POST",body:JSON.stringify(k)})).json();j!=null&&j.token&&(localStorage.setItem(this.localStorageKey,j.token),this.accessToken=j.token)}catch(k){console.log("checkProof error:",k)}}async getAccountInfo(_){return await(await fetch(`${this.host}/api/get_account_info`,{headers:{Authorization:`Bearer ${this.accessToken}`,"Content-Type":"application/json"}})).json()}async createJetton(_){return await(await fetch(`${this.host}/api/create_jetton`,{body:JSON.stringify(_),headers:{Authorization:`Bearer ${this.accessToken}`,"Content-Type":"application/json"},method:"POST"})).json()}reset(){this.accessToken=null,localStorage.removeItem(this.localStorageKey),this.generatePayload()}}const TonProofDemoApi=new TonProofDemoApiService;function useInterval(b,_){const d=reactExports.useRef(b);reactExports.useLayoutEffect(()=>{d.current=b},[b]),reactExports.useEffect(()=>{if(!_&&_!==0)return;const k=setInterval(()=>d.current(),_);return()=>clearInterval(k)},[_])}const TonProofDemo=()=>{const b=reactExports.useRef(!0),[_,d]=reactExports.useState({}),k=useTonWallet(),[j,$]=reactExports.useState(!1),[et]=useTonConnectUI(),tt=reactExports.useCallback(async()=>{b.current&&(et.setConnectRequestParameters({state:"loading"}),b.current=!1);const nt=await TonProofDemoApi.generatePayload();nt?et.setConnectRequestParameters({state:"ready",value:nt}):et.setConnectRequestParameters(null)},[et,b]);b.current&&tt(),useInterval(tt,TonProofDemoApi.refreshIntervalMs),reactExports.useEffect(()=>et.onStatusChange(async nt=>{var ot;if(!nt){TonProofDemoApi.reset(),$(!1);return}if((ot=nt.connectItems)!=null&&ot.tonProof&&"proof"in nt.connectItems.tonProof&&await TonProofDemoApi.checkProof(nt.connectItems.tonProof.proof,nt.account),!TonProofDemoApi.accessToken){et.disconnect(),$(!1);return}$(!0)}),[et]);const rt=reactExports.useCallback(async()=>{if(!k)return;const nt=await TonProofDemoApi.getAccountInfo(k.account);d(nt)},[k]);return j?jsxs("div",{className:"ton-proof-demo",children:[jsx$1("h3",{children:"Demo backend API with ton_proof verification"}),j?jsx$1("button",{onClick:rt,children:"Call backend getAccountInfo()"}):jsx$1("div",{className:"ton-proof-demo__error",children:"Connect wallet to call API"}),jsx$1(ReactJson,{src:_,name:"response",theme:"ocean"})]}):null},style="",jetton={name:"Joint Photographic Experts Group",description:"JPEG is a commonly used method of lossy compression for digital images, particularly for those images produced by digital photography. The degree of compression can be adjusted, allowing a selectable tradeoff between storage size and image quality.",image_data:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAdVBMVEX///8rKytSUlITExPT09Pm5uYcHBzKysqXl5cZGRmnp6cnJydISEjr6+tOTk5LS0swMDAhISHa2tq3t7fg4OBra2sKCgrw8PB3d3dCQkJeXl49PT29vb2goKCvr68AAADOzs5jY2ODg4ONjY1wcHA2NjaSkpJ0yRZUAAAFXklEQVR4nO3de3eaMBgGcCEIxkgVCiiIVG3t9/+IS8LFS+1ERy665/ljZwW3k99yeV9x5zgaIQiCIAiCIAiCIAiCIAhiLGFQTf85iWnF7wkKQui/Z2Yt8TuLnCEyn1tKnGSD+BznzbVzFuOPgYBc6Fo5i1/DLNFa+PZmIZEMBRRC152NTYMuMx5YaN9e9IYWurYtVAVCy46b4YW27UUVQrv2ohKhVUVDidCqhapIaNFCVSW0p4FTJrSmaCgTWrMXFQot2YsqhXY0cGqFNuxFpUIrFqpioQVFQ7XQfAOnWmi+aKgXmt6LGoSG96IOodmioUNodi/qEZrci5qEBhs4bUJjs6hLaG6h6hOaKhoahYYaOI1CQ0VDq9DIXtQrNFE0dAv1HzeahQb2onah9r2oX6i7aOgX8gZO60I1INS8UI0ItTZwZoQ696IZoc6iYUqoby8aE2pr4AwKNR03Awrn9wl1LdQBhbN7hXqIAwrXdwu1FI0BhYu7hVqKxoDCByZRx0IdUsjyB4jKT9QhhY/Nouq9OKzQcQ757N4cwqcS3h+WBS8udAiEEEJoGgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQWCJmM3cIFz/F34gdCaMROb5/llEejfO6689whfb+Uz4CQlHEczyQoiD2ZIKj2efNSWjUXm8QTv/ORYrpNxstwnHhVyvoZTQi34TicS2EcjuuEYTiu6rVH3tuLza1NKyRFEHb3wtBbZX0WqwlhwAfYCGtcKAcexmvWCsNjlo2Q0c2yvtP8Ml4Ghx7TaF64X61WmyoR4962cxhWk2NS+VLmlJIWTNKiSPel/AOxe5toXpj7UeSTw7cY8affCHfE71IvRSqnNiiIHzEWRWQ9FT8nhycQ1mcOIxM+4rgVppdzQ8XtcEO76/zU4dPY42tObRE6bCF2Vs6uC9laAs++edefe4Xv3Iw1QifzuCH9RSgvBvSC3avw2yaMrgpZLia4eOibd+0RMoGYX5/DaCWm8LEO0Boh+eQ7LaHtSUOjLk5zbdJj01kpzIXCJ6u2fak1qy7iuCRbPr+7O9ptq4SrNE33E08W8AP70dMsY3GAij0664R+1uX2yjUvPOnaZu2KPG1LvYzXikRMdiv0N8su3s3Tx7ywa73LtRytFB7fXsT8gLkUTo7/BsGTCJO43BTNO8T6pHHO3x6erdJ2DsMnEYqBM+bTdvzXqoU4aY7X2KyQSZPnEZ7dviIUbTdvStsf6wcZ0fqFhKLij7cXfxfLX0jI1qLh+dHKvZDQIRWfRM85e+lrCdlBtAHv9PS17JX2Ia8Q8hlAuTj2pkw2ek8r3GW0S42ilezrVhnvyZloZNfywrMKx+W06rKpr0fvdWs33afu12ojHyyG2/xmO26p8ORpYui1NyZ1+8q78bB5pvje412+YSEf6FXhWevd3qFFuTx5Irws+zymMSwsgyC4XGf+Zhuc5b27xWix8Zq3IsG3S29PoBlhtO3WJuH5MUyfnOf0+ROj2drdpUXuE7/nG2ITnz3xNwrJ7RPit4iO1O5P1+Rzs3hxZSxqolkY+X72yetdqe+zYb3CaL/5rMRBuH/o0ecTCOl0KQuZ98toXkPIK1n9QeFLCtmuCoLyM9II1H3SMMoLnL49aEBoIBBC+N8LEwuEnlLhKLs9BMXJlmqFO72l4WfYTC1wtP0wLPwoFQtHe7M7kaaqgaPRV6//X6cmjOzUA0ej6pBR30RotpjqAPJ404mJTLeKj1EEQRAEQRAEQRAEQRAEQf6SP4jPv7WHGoGuAAAAAElFTkSuQmCC",symbol:"JPEG",decimals:9,amount:"1000000000000000"},CreateJettonDemo=()=>{const[b,_]=reactExports.useState({}),[d]=useTonConnectUI(),k=useTonWallet();return jsxs("div",{className:"create-jetton-demo",children:[jsx$1("h3",{children:"Create Jetton"}),k?jsx$1("button",{onClick:async()=>{const $=await TonProofDemoApi.createJetton(jetton);_($),"error"in $||await d.sendTransaction($)},children:"Send create jetton"}):jsx$1("div",{className:"ton-proof-demo__error",children:"Connect wallet to send transaction"}),jsx$1(ReactJson,{src:b,name:"response",theme:"ocean"})]})};function App(){return jsx$1(TonConnectUIProvider$1,{manifestUrl:"https://ton-connect.github.io/demo-dapp-with-react-ui/tonconnect-manifest.json",uiPreferences:{theme:THEME.DARK},walletsListConfiguration:{includeWallets:[{appName:"tonwallet",name:"TON Wallet",imageUrl:"https://wallet.ton.org/assets/ui/qr-logo.png",aboutUrl:"https://chrome.google.com/webstore/detail/ton-wallet/nphplpgoakhhjchkkhmiggakijnkhfnd",universalLink:"https://wallet.ton.org/ton-connect",jsBridgeKey:"tonwallet",bridgeUrl:"https://bridge.tonapi.io/bridge",platforms:["chrome","android"]},{appName:"nicegramWallet",name:"Nicegram Wallet",imageUrl:"https://static.nicegram.app/icon.png",aboutUrl:"https://nicegram.app",universalLink:"https://nicegram.app/tc",deepLink:"nicegram-tc://",jsBridgeKey:"nicegramWallet",bridgeUrl:"https://bridge.tonapi.io/bridge",platforms:["ios","android"]},{appName:"binanceTonWeb3Wallet",name:"Binance Web3 Wallet",imageUrl:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHZpZXdCb3g9IjAgMCAzMCAzMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjMwIiBoZWlnaHQ9IjMwIiBmaWxsPSIjMEIwRTExIi8+CjxwYXRoIGQ9Ik01IDE1TDcuMjU4MDYgMTIuNzQxOUw5LjUxNjEzIDE1TDcuMjU4MDYgMTcuMjU4MUw1IDE1WiIgZmlsbD0iI0YwQjkwQiIvPgo8cGF0aCBkPSJNOC44NzA5NyAxMS4xMjlMMTUgNUwyMS4xMjkgMTEuMTI5TDE4Ljg3MSAxMy4zODcxTDE1IDkuNTE2MTNMMTEuMTI5IDEzLjM4NzFMOC44NzA5NyAxMS4xMjlaIiBmaWxsPSIjRjBCOTBCIi8+CjxwYXRoIGQ9Ik0xMi43NDE5IDE1TDE1IDEyLjc0MTlMMTcuMjU4MSAxNUwxNSAxNy4yNTgxTDEyLjc0MTkgMTVaIiBmaWxsPSIjRjBCOTBCIi8+CjxwYXRoIGQ9Ik0xMS4xMjkgMTYuNjEyOUw4Ljg3MDk3IDE4Ljg3MUwxNSAyNUwyMS4xMjkgMTguODcxTDE4Ljg3MSAxNi42MTI5TDE1IDIwLjQ4MzlMMTEuMTI5IDE2LjYxMjlaIiBmaWxsPSIjRjBCOTBCIi8+CjxwYXRoIGQ9Ik0yMC40ODM5IDE1TDIyLjc0MTkgMTIuNzQxOUwyNSAxNUwyMi43NDE5IDE3LjI1ODFMMjAuNDgzOSAxNVoiIGZpbGw9IiNGMEI5MEIiLz4KPC9zdmc+Cg==",aboutUrl:"https://www.binance.com/en/web3wallet",deepLink:"bnc://app.binance.com/cedefi/ton-connect",bridgeUrl:"https://bridge.tonapi.io/bridge",platforms:["chrome","safari","ios","android"],universalLink:"https://app.binance.com/cedefi/ton-connect"},{appName:"fintopio-tg",name:"Fintopio Telegram",imageUrl:"https://fintopio.com/favicons/favicon-196x196.png",aboutUrl:"https://fintopio.com",universalLink:"https://t.me/fintopio?attach=wallet",bridgeUrl:"https://wallet-bridge.fintopio.com/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"okxTonWallet2",name:"New OKX Wallet",imageUrl:"https://static.okx.com/cdn/assets/imgs/247/58E63FEA47A2B7D7.png",aboutUrl:"https://www.okx.com/web3",universalLink:"https://www.okx.com/download?appendQuery=true&deeplink=okx://web3/wallet/tonconnect",bridgeUrl:"https://www.okx.com/tonbridge/discover/rpc/bridge",jsBridgeKey:"okxTonWallet",platforms:["chrome","safari","firefox","ios","android"]},{appName:"okxTonWalletTr2",name:"New OKX TR Wallet",imageUrl:"https://static.okx.com/cdn/assets/imgs/247/587A8296F0BB640F.png",aboutUrl:"https://tr.okx.com/web3",universalLink:"https://tr.okx.com/download?appendQuery=true&deeplink=okxtr://web3/wallet/tonconnect",jsBridgeKey:"okxTonWallet",bridgeUrl:"https://www.okx.com/tonbridge/discover/rpc/bridge",platforms:["chrome","safari","firefox","ios","android"]}]},actionsConfiguration:{twaReturnUrl:"https://t.me/DemoDappWithTonConnectBot/demo"},children:jsxs("div",{className:"app",children:[jsx$1(Header,{}),jsx$1(TxForm,{}),jsx$1(CreateJettonDemo,{}),jsx$1(TonProofDemo,{}),jsx$1(Footer,{})]})})}const index="";function runSingleInstance(b){let _=!1;return async()=>{if(!_){_=!0;try{await b()}catch(d){console.error(d)}finally{_=!1}}}}eruda.init();async function enableMocking(){return new Promise(async b=>{const{worker:_}=await __vitePreload(()=>import("./worker-d6e95f73.js"),[]),d=()=>_.start({onUnhandledRequest:"bypass",quiet:!1,serviceWorker:{url:"/demo-dapp-with-react-ui/mockServiceWorker.js"}});let k=await d();b(k);const j=runSingleInstance(async()=>{var $;try{const tt=(await(($=navigator.serviceWorker)==null?void 0:$.getRegistrations())||[]).length>0,rt=await fetch("/api/healthz").then(nt=>nt.status===200?nt.json().then(ot=>ot.ok).catch(()=>!1):!1).catch(()=>!1);(!tt||!rt)&&(await(k==null?void 0:k.unregister().catch(()=>{})),k=await d().catch(()=>null))}catch(et){console.error("Error in verifyAndRestartWorker:",et),k=await d().catch(()=>null)}});setInterval(j,1e3)})}enableMocking().then(()=>reactDomExports.render(jsx$1(reactExports.StrictMode,{children:jsx$1(App,{})}),document.getElementById("root")));export{CHAIN as C,buffer as b,commonjsGlobal as c,getAugmentedNamespace as g,naclFastExports as n,require$$4 as r}; diff --git a/docs/assets/worker-952da4b5.js b/docs/assets/worker-d6e95f73.js similarity index 99% rename from docs/assets/worker-952da4b5.js rename to docs/assets/worker-d6e95f73.js index 0894f47..f06bff3 100644 --- a/docs/assets/worker-952da4b5.js +++ b/docs/assets/worker-d6e95f73.js @@ -1,4 +1,4 @@ -var yy=Object.defineProperty;var by=(e,t,r)=>t in e?yy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var we=(e,t,r)=>(by(e,typeof t!="symbol"?t+"":t,r),r),Bl=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var ao=(e,t,r)=>(Bl(e,t,"read from private field"),r?r.call(e):t.get(e)),Il=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Ru=(e,t,r,n)=>(Bl(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Rs=(e,t,r)=>(Bl(e,t,"access private method"),r);import{C as Lo,c as K,n as Vs,g as wy,b as Ue,r as qo}from"./index-8189e743.js";var vy=/(%?)(%([sdijo]))/g;function _y(e,t){switch(t){case"s":return e;case"d":case"i":return Number(e);case"j":return JSON.stringify(e);case"o":{if(typeof e=="string")return e;const r=JSON.stringify(e);return r==="{}"||r==="[]"||/^\[object .+?\]$/.test(r)?e:r}}}function Nc(e,...t){if(t.length===0)return e;let r=0,n=e.replace(vy,(a,o,s,i)=>{const l=t[r],c=_y(l,i);return o?a:(r++,c)});return rt in e?yy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var we=(e,t,r)=>(by(e,typeof t!="symbol"?t+"":t,r),r),Bl=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var ao=(e,t,r)=>(Bl(e,t,"read from private field"),r?r.call(e):t.get(e)),Il=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Ru=(e,t,r,n)=>(Bl(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Rs=(e,t,r)=>(Bl(e,t,"access private method"),r);import{C as Lo,c as K,n as Vs,g as wy,b as Ue,r as qo}from"./index-2d99f4e6.js";var vy=/(%?)(%([sdijo]))/g;function _y(e,t){switch(t){case"s":return e;case"d":case"i":return Number(e);case"j":return JSON.stringify(e);case"o":{if(typeof e=="string")return e;const r=JSON.stringify(e);return r==="{}"||r==="[]"||/^\[object .+?\]$/.test(r)?e:r}}}function Nc(e,...t){if(t.length===0)return e;let r=0,n=e.replace(vy,(a,o,s,i)=>{const l=t[r],c=_y(l,i);return o?a:(r++,c)});return r{if(!e)throw new Ey(t,...r)};$o.as=(e,t,r,...n)=>{if(!t){const a=n.length===0?r:Nc(r,n);let o;try{o=Reflect.construct(e,[a])}catch{o=e(a)}throw o}};const ky="[MSW]";function Rc(e,...t){const r=Nc(e,...t);return`${ky} ${r}`}function Sy(e,...t){console.warn(Rc(e,...t))}function Py(e,...t){console.error(Rc(e,...t))}const Se={formatMessage:Rc,warn:Sy,error:Py};class ju extends Error{constructor(t){super(t),this.name="InternalError"}}function Ty(){$o(typeof URL<"u",Se.formatMessage(`Global "URL" class is not defined. This likely means that you're running MSW in an environment that doesn't support all Node.js standard API (e.g. React Native). If that's the case, please use an appropriate polyfill for the "URL" class, like "react-native-url-polyfill".`))}var My=class extends Error{constructor(t,r,n){super(`Possible EventEmitter memory leak detected. ${n} ${r.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`),this.emitter=t,this.type=r,this.count=n,this.name="MaxListenersExceededWarning"}},Af=class{static listenerCount(t,r){return t.listenerCount(r)}constructor(){this.events=new Map,this.maxListeners=Af.defaultMaxListeners,this.hasWarnedAboutPotentialMemoryLeak=!1}_emitInternalEvent(t,r,n){this.emit(t,r,n)}_getListeners(t){return Array.prototype.concat.apply([],this.events.get(t))||[]}_removeListener(t,r){const n=t.indexOf(r);return n>-1&&t.splice(n,1),[]}_wrapOnceListener(t,r){const n=(...a)=>(this.removeListener(t,n),r.apply(this,a));return Object.defineProperty(n,"name",{value:r.name}),n}setMaxListeners(t){return this.maxListeners=t,this}getMaxListeners(){return this.maxListeners}eventNames(){return Array.from(this.events.keys())}emit(t,...r){const n=this._getListeners(t);return n.forEach(a=>{a.apply(this,r)}),n.length>0}addListener(t,r){this._emitInternalEvent("newListener",t,r);const n=this._getListeners(t).concat(r);if(this.events.set(t,n),this.maxListeners>0&&this.listenerCount(t)>this.maxListeners&&!this.hasWarnedAboutPotentialMemoryLeak){this.hasWarnedAboutPotentialMemoryLeak=!0;const a=new My(this,t,this.listenerCount(t));console.warn(a)}return this}on(t,r){return this.addListener(t,r)}once(t,r){return this.addListener(t,this._wrapOnceListener(t,r))}prependListener(t,r){const n=this._getListeners(t);if(n.length>0){const a=[r].concat(n);this.events.set(t,a)}else this.events.set(t,n.concat(r));return this}prependOnceListener(t,r){return this.prependListener(t,this._wrapOnceListener(t,r))}removeListener(t,r){const n=this._getListeners(t);return n.length>0&&(this._removeListener(n,r),this.events.set(t,n),this._emitInternalEvent("removeListener",t,r)),this}off(t,r){return this.removeListener(t,r)}removeAllListeners(t){return t?this.events.delete(t):this.events.clear(),this}listeners(t){return Array.from(this._getListeners(t))}listenerCount(t){return this._getListeners(t).length}rawListeners(t){return this.listeners(t)}},ac=Af;ac.defaultMaxListeners=10;function By(e,t){const r=e.emit;if(r._isPiped)return;const n=function(o,...s){return t.emit(o,...s),r.call(this,o,...s)};n._isPiped=!0,e.emit=n}function Iy(e){const t=[...e];return Object.freeze(t),t}class Oy{constructor(){we(this,"subscriptions",[])}dispose(){let t;for(;t=this.subscriptions.shift();)t()}}class Ny{constructor(t){we(this,"handlers");this.initialHandlers=t,this.handlers=[...t]}prepend(t){this.handlers.unshift(...t)}reset(t){this.handlers=t.length>0?[...t]:[...this.initialHandlers]}currentHandlers(){return this.handlers}}class Ry extends Oy{constructor(...r){super();we(this,"handlersController");we(this,"emitter");we(this,"publicEmitter");we(this,"events");$o(this.validateHandlers(r),Se.formatMessage("Failed to apply given request handlers: invalid input. Did you forget to spread the request handlers Array?")),this.handlersController=new Ny(r),this.emitter=new ac,this.publicEmitter=new ac,By(this.emitter,this.publicEmitter),this.events=this.createLifeCycleEvents(),this.subscriptions.push(()=>{this.emitter.removeAllListeners(),this.publicEmitter.removeAllListeners()})}validateHandlers(r){return r.every(n=>!Array.isArray(n))}use(...r){$o(this.validateHandlers(r),Se.formatMessage('Failed to call "use()" with the given request handlers: invalid input. Did you forget to spread the array of request handlers?')),this.handlersController.prepend(r)}restoreHandlers(){this.handlersController.currentHandlers().forEach(r=>{r.isUsed=!1})}resetHandlers(...r){this.handlersController.reset(r)}listHandlers(){return Iy(this.handlersController.currentHandlers())}createLifeCycleEvents(){return{on:(...r)=>this.publicEmitter.on(...r),removeListener:(...r)=>this.publicEmitter.removeListener(...r),removeAllListeners:(...r)=>this.publicEmitter.removeAllListeners(...r)}}}const jy=/[\/\\]msw[\/\\]src[\/\\](.+)/,Uy=/(node_modules)?[\/\\]lib[\/\\](core|browser|node|native|iife)[\/\\]|^[^\/\\]*$/;function xy(e){const t=e.stack;if(!t)return;const n=t.split(` `).slice(1).find(o=>!(jy.test(o)||Uy.test(o)));return n?n.replace(/\s*at [^()]*\(([^)]+)\)/,"$1").replace(/^@/,""):void 0}function Dy(e){return e?typeof e[Symbol.iterator]=="function":!1}const Fo=class Fo{constructor(t){we(this,"info");we(this,"isUsed");we(this,"resolver");we(this,"resolverGenerator");we(this,"resolverGeneratorResult");we(this,"options");this.resolver=t.resolver,this.options=t.options;const r=xy(new Error);this.info={...t.info,callFrame:r},this.isUsed=!1}async parse(t){return{}}async test(t){const r=await this.parse({request:t.request,resolutionContext:t.resolutionContext});return this.predicate({request:t.request,parsedResult:r,resolutionContext:t.resolutionContext})}extendResolverArgs(t){return{}}cloneRequestOrGetFromCache(t){const r=Fo.cache.get(t);if(typeof r<"u")return r;const n=t.clone();return Fo.cache.set(t,n),n}async run(t){var u,d;if(this.isUsed&&((u=this.options)!=null&&u.once))return null;const r=this.cloneRequestOrGetFromCache(t.request),n=await this.parse({request:t.request,resolutionContext:t.resolutionContext});if(!this.predicate({request:t.request,parsedResult:n,resolutionContext:t.resolutionContext})||this.isUsed&&((d=this.options)!=null&&d.once))return null;this.isUsed=!0;const o=this.wrapResolver(this.resolver),s=this.extendResolverArgs({request:t.request,parsedResult:n}),l=await o({...s,requestId:t.requestId,request:t.request}).catch(h=>{if(h instanceof Response)return h;throw h});return this.createExecutionResult({request:r,requestId:t.requestId,response:l,parsedResult:n})}wrapResolver(t){return async r=>{const n=this.resolverGenerator||await t(r);if(Dy(n)){this.isUsed=!1;const{value:a,done:o}=n[Symbol.iterator]().next(),s=await a;return o&&(this.isUsed=!0),!s&&o?($o(this.resolverGeneratorResult,"Failed to returned a previously stored generator response: the value is not a valid Response."),this.resolverGeneratorResult.clone()):(this.resolverGenerator||(this.resolverGenerator=n),s&&(this.resolverGeneratorResult=s==null?void 0:s.clone()),s)}return n}}createExecutionResult(t){return{handler:this,request:t.request,requestId:t.requestId,response:t.response,parsedResult:t.parsedResult}}};we(Fo,"cache",new WeakMap);let Ks=Fo;function zy(e,t){return e.toLowerCase()===t.toLowerCase()}function Fy(e){return e<300?"#69AB32":e<400?"#F0BB4B":"#E95F5D"}function Ly(){const e=new Date;return[e.getHours(),e.getMinutes(),e.getSeconds()].map(String).map(t=>t.slice(0,2)).map(t=>t.padStart(2,"0")).join(":")}async function qy(e){const r=await e.clone().text();return{url:new URL(e.url),method:e.method,headers:Object.fromEntries(e.headers.entries()),body:r}}var $y=Object.create,Ef=Object.defineProperty,Hy=Object.getOwnPropertyDescriptor,kf=Object.getOwnPropertyNames,Jy=Object.getPrototypeOf,Wy=Object.prototype.hasOwnProperty,Sf=(e,t)=>function(){return t||(0,e[kf(e)[0]])((t={exports:{}}).exports,t),t.exports},Vy=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of kf(t))!Wy.call(e,a)&&a!==r&&Ef(e,a,{get:()=>t[a],enumerable:!(n=Hy(t,a))||n.enumerable});return e},Ky=(e,t,r)=>(r=e!=null?$y(Jy(e)):{},Vy(t||!e||!e.__esModule?Ef(r,"default",{value:e,enumerable:!0}):r,e)),Gy=Sf({"node_modules/statuses/codes.json"(e,t){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a Teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}}}),Qy=Sf({"node_modules/statuses/index.js"(e,t){var r=Gy();t.exports=i,i.message=r,i.code=n(r),i.codes=a(r),i.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},i.empty={204:!0,205:!0,304:!0},i.retry={502:!0,503:!0,504:!0};function n(l){var c={};return Object.keys(l).forEach(function(d){var h=l[d],y=Number(d);c[h.toLowerCase()]=y}),c}function a(l){return Object.keys(l).map(function(u){return Number(u)})}function o(l){var c=l.toLowerCase();if(!Object.prototype.hasOwnProperty.call(i.code,c))throw new Error('invalid status message: "'+l+'"');return i.code[c]}function s(l){if(!Object.prototype.hasOwnProperty.call(i.message,l))throw new Error("invalid status code: "+l);return i.message[l]}function i(l){if(typeof l=="number")return s(l);if(typeof l!="string")throw new TypeError("code must be a number or string");var c=parseInt(l,10);return isNaN(c)?o(l):s(c)}}}),Yy=Ky(Qy(),1),Pf=Yy.default;/*! Bundled license information: diff --git a/docs/index.html b/docs/index.html index 125d90c..2d789a8 100644 --- a/docs/index.html +++ b/docs/index.html @@ -8,7 +8,7 @@ Demo Dapp React UI - +