From 40910f7ae969e20c82122d4fd1d14ce42bdd8dd3 Mon Sep 17 00:00:00 2001 From: thekiba Date: Tue, 3 Dec 2024 23:05:45 +0400 Subject: [PATCH] chore: rebuild --- .../{index-8e57572c.js => index-b72b64fc.js} | 104 +++++++++--------- ...{worker-e2bd57de.js => worker-25072bf6.js} | 4 +- docs/index.html | 2 +- 3 files changed, 55 insertions(+), 55 deletions(-) rename docs/assets/{index-8e57572c.js => index-b72b64fc.js} (91%) rename docs/assets/{worker-e2bd57de.js => worker-25072bf6.js} (99%) diff --git a/docs/assets/index-8e57572c.js b/docs/assets/index-b72b64fc.js similarity index 91% rename from docs/assets/index-8e57572c.js rename to docs/assets/index-b72b64fc.js index 256b5c4..e36c99f 100644 --- a/docs/assets/index-8e57572c.js +++ b/docs/assets/index-b72b64fc.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(Wn(bt,ArrayBuffer)||bt&&Wn(bt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Wn(bt,SharedArrayBuffer)||bt&&Wn(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 sn=ft(bt);if(sn)return sn;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 sn=Ut.write(bt,pt);return sn!==yt&&(Ut=Ut.slice(0,sn)),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(Wn(pt,Uint8Array)&&(pt=tt.from(pt,pt.offset,pt.byteLength)),Wn(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,sn=yt.length;for(let ln=0,mn=Math.min(Ut,sn);lnsn.length?(tt.isBuffer(mn)||(mn=tt.from(mn)),mn.copy(sn,ln)):Uint8Array.prototype.set.call(sn,mn,ln);else if(tt.isBuffer(mn))mn.copy(sn,ln);else throw new TypeError('"list" argument must be an Array of Buffers');ln+=mn.length}return sn};function gt(bt,pt){if(tt.isBuffer(bt))return bt.length;if(ArrayBuffer.isView(bt)||Wn(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 sn=!1;for(;;)switch(pt){case"ascii":case"latin1":case"binary":return yt;case"utf8":case"utf-8":return Dn(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(sn)return Ut?-1:Dn(bt).length;pt=(""+pt).toLowerCase(),sn=!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 jt(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,sn,ln){if(Wn(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),sn===void 0&&(sn=0),ln===void 0&&(ln=this.length),yt<0||Ut>pt.length||sn<0||ln>this.length)throw new RangeError("out of range index");if(sn>=ln&&yt>=Ut)return 0;if(sn>=ln)return-1;if(yt>=Ut)return 1;if(yt>>>=0,Ut>>>=0,sn>>>=0,ln>>>=0,this===pt)return 0;let mn=ln-sn,Qn=Ut-yt;const Rn=Math.min(mn,Qn),Jn=this.slice(sn,ln),Nn=pt.slice(yt,Ut);for(let ar=0;ar2147483647?yt=2147483647:yt<-2147483648&&(yt=-2147483648),yt=+yt,Fn(yt)&&(yt=sn?0:bt.length-1),yt<0&&(yt=bt.length+yt),yt>=bt.length){if(sn)return-1;yt=bt.length-1}else if(yt<0)if(sn)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,sn);if(typeof pt=="number")return pt=pt&255,typeof Uint8Array.prototype.indexOf=="function"?sn?Uint8Array.prototype.indexOf.call(bt,pt,yt):Uint8Array.prototype.lastIndexOf.call(bt,pt,yt):wt(bt,[pt],yt,Ut,sn);throw new TypeError("val must be string, number or Buffer")}function wt(bt,pt,yt,Ut,sn){let ln=1,mn=bt.length,Qn=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;ln=2,mn/=2,Qn/=2,yt/=2}function Rn(Nn,ar){return ln===1?Nn[ar]:Nn.readUInt16BE(ar*ln)}let Jn;if(sn){let Nn=-1;for(Jn=yt;Jnmn&&(yt=mn-Qn),Jn=yt;Jn>=0;Jn--){let Nn=!0;for(let ar=0;arsn&&(Ut=sn)):Ut=sn;const ln=pt.length;Ut>ln/2&&(Ut=ln/2);let mn;for(mn=0;mn>>0,isFinite(Ut)?(Ut=Ut>>>0,sn===void 0&&(sn="utf8")):(sn=Ut,Ut=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ln=this.length-yt;if((Ut===void 0||Ut>ln)&&(Ut=ln),pt.length>0&&(Ut<0||yt<0)||yt>this.length)throw new RangeError("Attempt to write outside buffer bounds");sn||(sn="utf8");let mn=!1;for(;;)switch(sn){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(mn)throw new TypeError("Unknown encoding: "+sn);sn=(""+sn).toLowerCase(),mn=!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 jt(bt,pt,yt){yt=Math.min(bt.length,yt);const Ut=[];let sn=pt;for(;sn239?4:ln>223?3:ln>191?2:1;if(sn+Qn<=yt){let Rn,Jn,Nn,ar;switch(Qn){case 1:ln<128&&(mn=ln);break;case 2:Rn=bt[sn+1],(Rn&192)===128&&(ar=(ln&31)<<6|Rn&63,ar>127&&(mn=ar));break;case 3:Rn=bt[sn+1],Jn=bt[sn+2],(Rn&192)===128&&(Jn&192)===128&&(ar=(ln&15)<<12|(Rn&63)<<6|Jn&63,ar>2047&&(ar<55296||ar>57343)&&(mn=ar));break;case 4:Rn=bt[sn+1],Jn=bt[sn+2],Nn=bt[sn+3],(Rn&192)===128&&(Jn&192)===128&&(Nn&192)===128&&(ar=(ln&15)<<18|(Rn&63)<<12|(Jn&63)<<6|Nn&63,ar>65535&&ar<1114112&&(mn=ar))}}mn===null?(mn=65533,Qn=1):mn>65535&&(mn-=65536,Ut.push(mn>>>10&1023|55296),mn=56320|mn&1023),Ut.push(mn),sn+=Qn}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 sn="";for(let ln=pt;lnUt&&(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 sn=this[pt],ln=1,mn=0;for(;++mn>>0,yt=yt>>>0,Ut||Vt(pt,yt,this.length);let sn=this[pt+--yt],ln=1;for(;yt>0&&(ln*=256);)sn+=this[pt+--yt]*ln;return sn},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=Tn(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 sn=yt+this[++pt]*2**8+this[++pt]*2**16+this[++pt]*2**24,ln=this[++pt]+this[++pt]*2**8+this[++pt]*2**16+Ut*2**24;return BigInt(sn)+(BigInt(ln)<>>0,vn(pt,"offset");const yt=this[pt],Ut=this[pt+7];(yt===void 0||Ut===void 0)&&En(pt,this.length-8);const sn=yt*2**24+this[++pt]*2**16+this[++pt]*2**8+this[++pt],ln=this[++pt]*2**24+this[++pt]*2**16+this[++pt]*2**8+Ut;return(BigInt(sn)<>>0,yt=yt>>>0,Ut||Vt(pt,yt,this.length);let sn=this[pt],ln=1,mn=0;for(;++mn=ln&&(sn-=Math.pow(2,8*yt)),sn},tt.prototype.readIntBE=function(pt,yt,Ut){pt=pt>>>0,yt=yt>>>0,Ut||Vt(pt,yt,this.length);let sn=yt,ln=1,mn=this[pt+--sn];for(;sn>0&&(ln*=256);)mn+=this[pt+--sn]*ln;return ln*=128,mn>=ln&&(mn-=Math.pow(2,8*yt)),mn},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=Tn(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 sn=this[pt+4]+this[pt+5]*2**8+this[pt+6]*2**16+(Ut<<24);return(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 sn=(yt<<24)+this[++pt]*2**16+this[++pt]*2**8+this[++pt];return(BigInt(sn)<>>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,sn,ln){if(!tt.isBuffer(bt))throw new TypeError('"buffer" argument must be a Buffer instance');if(pt>sn||ptbt.length)throw new RangeError("Index out of range")}tt.prototype.writeUintLE=tt.prototype.writeUIntLE=function(pt,yt,Ut,sn){if(pt=+pt,yt=yt>>>0,Ut=Ut>>>0,!sn){const Qn=Math.pow(2,8*Ut)-1;fn(this,pt,yt,Ut,Qn,0)}let ln=1,mn=0;for(this[yt]=pt&255;++mn>>0,Ut=Ut>>>0,!sn){const Qn=Math.pow(2,8*Ut)-1;fn(this,pt,yt,Ut,Qn,0)}let ln=Ut-1,mn=1;for(this[yt+ln]=pt&255;--ln>=0&&(mn*=256);)this[yt+ln]=pt/mn&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,sn){kn(pt,Ut,sn,bt,yt,7);let ln=Number(pt&BigInt(4294967295));bt[yt++]=ln,ln=ln>>8,bt[yt++]=ln,ln=ln>>8,bt[yt++]=ln,ln=ln>>8,bt[yt++]=ln;let mn=Number(pt>>BigInt(32)&BigInt(4294967295));return bt[yt++]=mn,mn=mn>>8,bt[yt++]=mn,mn=mn>>8,bt[yt++]=mn,mn=mn>>8,bt[yt++]=mn,yt}function jn(bt,pt,yt,Ut,sn){kn(pt,Ut,sn,bt,yt,7);let ln=Number(pt&BigInt(4294967295));bt[yt+7]=ln,ln=ln>>8,bt[yt+6]=ln,ln=ln>>8,bt[yt+5]=ln,ln=ln>>8,bt[yt+4]=ln;let mn=Number(pt>>BigInt(32)&BigInt(4294967295));return bt[yt+3]=mn,mn=mn>>8,bt[yt+2]=mn,mn=mn>>8,bt[yt+1]=mn,mn=mn>>8,bt[yt]=mn,yt+8}tt.prototype.writeBigUInt64LE=Tn(function(pt,yt=0){return In(this,pt,yt,BigInt(0),BigInt("0xffffffffffffffff"))}),tt.prototype.writeBigUInt64BE=Tn(function(pt,yt=0){return jn(this,pt,yt,BigInt(0),BigInt("0xffffffffffffffff"))}),tt.prototype.writeIntLE=function(pt,yt,Ut,sn){if(pt=+pt,yt=yt>>>0,!sn){const Rn=Math.pow(2,8*Ut-1);fn(this,pt,yt,Ut,Rn-1,-Rn)}let ln=0,mn=1,Qn=0;for(this[yt]=pt&255;++ln>0)-Qn&255;return yt+Ut},tt.prototype.writeIntBE=function(pt,yt,Ut,sn){if(pt=+pt,yt=yt>>>0,!sn){const Rn=Math.pow(2,8*Ut-1);fn(this,pt,yt,Ut,Rn-1,-Rn)}let ln=Ut-1,mn=1,Qn=0;for(this[yt+ln]=pt&255;--ln>=0&&(mn*=256);)pt<0&&Qn===0&&this[yt+ln+1]!==0&&(Qn=1),this[yt+ln]=(pt/mn>>0)-Qn&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=Tn(function(pt,yt=0){return In(this,pt,yt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),tt.prototype.writeBigInt64BE=Tn(function(pt,yt=0){return jn(this,pt,yt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function _n(bt,pt,yt,Ut,sn,ln){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,sn){return pt=+pt,yt=yt>>>0,sn||_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,sn){return pt=+pt,yt=yt>>>0,sn||_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,sn){if(!tt.isBuffer(pt))throw new TypeError("argument should be a Buffer");if(Ut||(Ut=0),!sn&&sn!==0&&(sn=this.length),yt>=pt.length&&(yt=pt.length),yt||(yt=0),sn>0&&sn=this.length)throw new RangeError("Index out of range");if(sn<0)throw new RangeError("sourceEnd out of bounds");sn>this.length&&(sn=this.length),pt.length-yt>>0,Ut=Ut===void 0?this.length:Ut>>>0,pt||(pt=0);let ln;if(typeof pt=="number")for(ln=yt;ln2**32?sn=yn(String(yt)):typeof yt=="bigint"&&(sn=String(yt),(yt>BigInt(2)**BigInt(32)||yt<-(BigInt(2)**BigInt(32)))&&(sn=yn(sn)),sn+="n"),Ut+=` It must be ${pt}. Received ${sn}`,Ut},RangeError);function yn(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 On(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,sn,ln){if(bt>yt||bt3?pt===0||pt===BigInt(0)?Qn=`>= 0${mn} and < 2${mn} ** ${(ln+1)*8}${mn}`:Qn=`>= -(2${mn} ** ${(ln+1)*8-1}${mn}) and < 2 ** ${(ln+1)*8-1}${mn}`:Qn=`>= ${pt}${mn} and <= ${yt}${mn}`,new dn.ERR_OUT_OF_RANGE("value",Qn,bt)}On(Ut,sn,ln)}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 Dn(bt,pt){pt=pt||1/0;let yt;const Ut=bt.length;let sn=null;const ln=[];for(let mn=0;mn55295&&yt<57344){if(!sn){if(yt>56319){(pt-=3)>-1&&ln.push(239,191,189);continue}else if(mn+1===Ut){(pt-=3)>-1&&ln.push(239,191,189);continue}sn=yt;continue}if(yt<56320){(pt-=3)>-1&&ln.push(239,191,189),sn=yt;continue}yt=(sn-55296<<10|yt-56320)+65536}else sn&&(pt-=3)>-1&&ln.push(239,191,189);if(sn=null,yt<128){if((pt-=1)<0)break;ln.push(yt)}else if(yt<2048){if((pt-=2)<0)break;ln.push(yt>>6|192,yt&63|128)}else if(yt<65536){if((pt-=3)<0)break;ln.push(yt>>12|224,yt>>6&63|128,yt&63|128)}else if(yt<1114112){if((pt-=4)<0)break;ln.push(yt>>18|240,yt>>12&63|128,yt>>6&63|128,yt&63|128)}else throw new Error("Invalid code point")}return ln}function Un(bt){const pt=[];for(let yt=0;yt>8,sn=yt%256,ln.push(sn),ln.push(Ut);return ln}function Zn(bt){return _.toByteArray(Ln(bt))}function wn(bt,pt,yt,Ut){let sn;for(sn=0;sn=pt.length||sn>=bt.length);++sn)pt[sn+yt]=bt[sn];return sn}function Wn(bt,pt){return bt instanceof pt||bt!=null&&bt.constructor!=null&&bt.constructor.name!=null&&bt.constructor.name===pt.name}function Fn(bt){return bt!==bt}const zn=function(){const bt="0123456789abcdef",pt=new Array(256);for(let yt=0;yt<16;++yt){const Ut=yt*16;for(let sn=0;sn<16;++sn)pt[Ut+sn]=bt[yt]+bt[sn]}return pt}();function Tn(bt){return typeof BigInt>"u"?Kt:bt}function Kt(){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(yn){var On="luna-".concat(yn,"-");function kn(vn){return nt()(ht()(vn).split(/\s+/),function(En){return Ct()(En,On)?En:En.replace(/[\w-]+/,function(gn){return"".concat(On).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(yn,On){for(var kn=0,vn=yn.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)(yn);if(On){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(yn){(0,$.Z)(kn,yn);var On=_n(kn);function kn(vn,En){var gn,Ln=En.compName,Dn=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Un=Dn===void 0?"light":Dn;return(0,k.Z)(this,kn),(gn=On.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(Sn,Zn,wn){var Wn=gn.c;Sn==="theme"&&(gn.$container.rmClass(Wn("theme-".concat(wn))).addClass(Wn("theme-".concat(Zn))),rn()(gn.subComponents,function(Fn){return Fn.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,Dn={};typeof vn=="string"?Dn[vn]=En:Dn=vn,rn()(Dn,function(Un,Sn){var Zn=Ln[Sn];Ln[Sn]=Un,gn.emit("optionChange",Sn,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){jn()(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}(jt());function Yn(yn){var On=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)(yn);if(On){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(yn){(0,$.Z)(kn,yn);var On=Yn(kn);function kn(vn){var En,gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,k.Z)(this,kn),(En=On.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(Dn){var Un=["top","left","right","bottom"];return Dn!=="position"&&(Un=nt()(Un,function(Sn){return"".concat(Dn,"-").concat(Sn)})),Dn==="border"&&(Un=nt()(Un,function(Sn){return"".concat(Sn,"-width")})),{top:An(En[Un[0]],Dn),left:An(En[Un[1]],Dn),right:An(En[Un[2]],Dn),bottom:An(En[Un[3]],Dn)}}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(yn,On){if(at()(yn))return yn;if(!dt()(yn))return"‒";var kn,vn=(kn=yn,wt()(kn.replace("px","")));return isNaN(vn)?yn:On==="position"?vn:vn===0?"‒":vn}(function(yn,On){try{yn.exports=On,yn.exports.default=On}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 Yt=Er==null?null:typeof Symbol<"u"&&Er[Symbol.iterator]||Er["@@iterator"];if(Yt!=null){var Cn,Vn,br,gr,_r=[],Cr=!0,jr=!1;try{if(br=(Yt=Yt.call(Er)).next,qt===0){if(Object(Yt)!==Yt)return;Cr=!1}else for(;!(Cr=(Cn=br.call(Yt)).done)&&(_r.push(Cn.value),_r.length!==qt);Cr=!0);}catch(Yr){jr=!0,Vn=Yr}finally{try{if(!Cr&&Yt.return!=null&&(gr=Yt.return(),Object(gr)!==gr))return}finally{if(jr)throw Vn}}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),jt=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),jn=d(7483),_n=d.n(jn),Bn=d(3990),Yn=d.n(Bn),dn=d(3875),An=d.n(dn),yn=d(6954),On=d.n(yn),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(Yt){return ct()(Yt,zr)?Yt:Yt.replace(/[\w-]+/,function(Cn){return"".concat(zr).concat(Cn)})}).join(" ")}return function(qt){if(/<[^>]*>/g.test(qt))try{var Yt=_n().parse(qt);return gn(Yt,function(Cn){Cn.attrs&&Cn.attrs.class&&(Cn.attrs.class=Er(Cn.attrs.class))}),_n().stringify(Yt)}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,Yt=Er.level,Cn=Yt===void 0?0:Yt,Vn=Er.getterVal,br=Vn!==void 0&&Vn,gr=Er.unenumerable,_r=gr===void 0||gr,Cr="",jr="",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()(Sn,Xr)||st()(Xr,"Array[")?Io+So(Xr)+wo:(Xr.length>100&&(Xr=jt()(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{jr={}.toString.call(Sr)}catch{jr="[object Object]"}var Bo,Po=jr=="[object Array]",Do=jr=="[object Object]",Ho=jr=="[object Number]",Oo=jr=="[object RegExp]",jo=jr=="[object Symbol]",Bs=jr=="[object Function]",Ps=jr=="[object Boolean]";if(jr=="[object String]")Cr=Co(wn(Sr));else if(Oo)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 Yt=(0,at.Z)(this).constructor;Er=Reflect.construct(qt,arguments,Yt)}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,Yt){var Cn,Vn=Yt.type,br=Vn===void 0?"log":Vn,gr=Yt.args,_r=gr===void 0?[]:gr,Cr=Yt.id,jr=Yt.group,Yr=Yt.targetGroup,Gr=Yt.header,oo=Yt.ignoreFilter,po=oo!==void 0&&oo,Hr=Yt.accessGetter,ao=Yt.unenumerable,yo=Yt.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=jr,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,Yt=!1;qt;){if(qt.collapsed){Yt=!0;break}qt=qt.parent}return Yt!==this.collapsed&&(this.collapsed=Yt,!0)}},{key:"updateIcon",value:function(qt){var Yt=this.console.c;return this.$container.find(Yt(".icon-container")).find(Yt(".icon")).rmAttr("class").addClass([Yt("icon"),Yt("icon-".concat(qt))]),this}},{key:"addCount",value:function(){this.count++;var qt=this.$container,Yt=this.count,Cn=this.console.c,Vn=qt.find(Cn(".count-container")),br=qt.find(Cn(".icon-container")),gr=Vn.find(Cn(".count"));return Yt===2&&Vn.rmClass(Cn("hidden")),gr.text(ft()(Yt)),br.addClass(Cn("hidden")),this}},{key:"groupEnd",value:function(){var qt=this.$container,Yt=this.console.c;return qt.find(".".concat(Yt("nesting-level"),":not(.").concat(Yt("group-closed"),")")).last().addClass(Yt("group-closed")),this}},{key:"updateTime",value:function(qt){var Yt=this.$container.find(this.console.c(".time-container"));return this.header&&(Yt.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],Yt=this.container.getBoundingClientRect(),Cn=Yt.width,Vn=Yt.height-1;this.height!==Vn&&(this.height=Vn,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,Yt="";Mt()(qt,function(Cn,Vn){Vn!==0&&(Yt+=" "),yt()(Cn)?Yt+=tr()(Cn):Yt+=ft()(Cn)}),Kn()(Yt)}},{key:"bindEvent",value:function(){var qt=this,Yt=this.console.c,Cn=this;this.resizeSensor.addListener(this.onResize),this.$container.on("click",Yt(".dom-viewer"),function(Vn){return Vn.stopPropagation()}).on("click",Yt(".preview"),function(Vn){Vn.stopPropagation();var br=Pt()(this).find(Yt(".preview-icon-container")).find(Yt(".icon")),gr="caret-down";br.hasClass(Yt("icon-caret-down"))&&(gr="caret-right"),br.rmAttr("class").addClass([Yt("icon"),Yt("icon-".concat(gr))]),Cn.renderObjectViewer(this)}).on("click",function(){return qt.click()})}},{key:"renderEl",value:function(){var qt=this.elements,Yt=this.console.c,Cn=this;this.$container.find(Yt(".dom-viewer")).each(function(){var Vn=Pt()(this).data("id");new Tn.Z(this,{node:qt[Vn],theme:Cn.console.getOption("theme")})})}},{key:"renderObjectViewer",value:function(qt){var Yt=this.console,Cn=this.unenumerable,Vn=this.accessGetter,br=this.lazyEvaluation,gr=Yt.c,_r=Pt()(qt),Cr=_r.data("id");if(Cr){var jr=this.objects[Cr],Yr=_r.find(gr(".json"));if(Yr.hasClass(gr("hidden"))){if(Yr.data("init")!=="true"){if(br){var Gr=new Fn.Z(Yr.get(0),{unenumerable:Cn,accessGetter:Vn});Gr.setOption("theme",Yt.getOption("theme")),Gr.set(jr)}else{var oo=new Fn.q(Yr.get(0));oo.setOption("theme",Yt.getOption("theme")),oo.set(jr)}Yr.data("init","true")}Yr.rmClass(gr("hidden"))}else Yr.addClass(gr("hidden"))}}},{key:"renderTable",value:function(qt){var Yt=this,Cn="__LunaConsoleValue",Vn=this.columns,br=this.$container,gr=this.console,_r=gr.c,Cr=br.find(_r(".data-grid")),jr=qt[0],Yr=new zn.Z(Cr.get(0),{columns:pr()([{id:"(index)",title:"(index)",sortable:!0}],nn()(Vn,function(Gr){return{id:Gr,title:Gr===Cn?"Value":Gr,sortable:!0}})),theme:gr.getOption("theme")});Mt()(jr,function(Gr,oo){var po={"(index)":ft()(oo)};Vn.forEach(function(Hr){yt()(Gr)?po[Hr]=Hr===Cn?"":Yt.formatTableVal(Gr[Hr]):Rn()(Gr)&&(po[Hr]=Hr===Cn?Yt.formatTableVal(Gr):"")}),Yr.append(po)})}},{key:"extractObj",value:function(qt){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Cn=arguments.length>2?arguments[2]:void 0,Vn=this.accessGetter,br=this.unenumerable;Nn()(Yt,{accessGetter:Vn,unenumerable:br,symbol:br,timeout:1e3}),function(gr,_r,Cr){var jr=ur()(gr,_r);yr()(function(){return Cr(jr)})}(qt,Yt,function(gr){return Cn(JSON.parse(gr))})}},{key:"click",value:function(){var qt=this.type,Yt=this.$container,Cn=this.console,Vn=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":Yt.find(Vn(".stack")).toggleClass(Vn("hidden"))}}},{key:"formatMsg",value:function(){var qt=this.args,Yt=this.type,Cn=this.id,Vn=this.header,br=this.group,gr=this.console.c;qt=Ft()(qt);var _r,Cr,jr="";switch(Yt!=="group"&&Yt!=="groupCollapsed"||qt.length===0&&(qt=["console.group"]),Yt){case"log":case"info":case"debug":jr=this.formatCommon(qt);break;case"dir":jr=this.formatDir(qt);break;case"warn":_r="warn",jr=this.formatCommon(qt);break;case"error":sn()(qt[0])&&qt.length!==1&&(qt=this.substituteStr(qt)),Cr=qt[0],_r="error",Cr=mn()(Cr)?Cr:new Error(this.formatCommon(qt)),jr=this.formatErr(Cr);break;case"table":jr=this.formatTable(qt);break;case"html":jr=qt[0];break;case"input":jr=this.formatJs(qt[0]),_r="input";break;case"output":jr=this.formatCommon(qt),_r="output";break;case"groupCollapsed":jr=this.formatCommon(qt),_r="caret-right";break;case"group":jr=this.formatCommon(qt),_r="caret-down"}ct()(["log","debug","warn"],Yt)&&this.isSimple()&&(jr=Pn()(jr,function(Yr){return'').concat(Yr,"")})),jr=this.render({msg:jr,type:Yt,icon:_r,id:Cn,header:Vn,group:br}),this.$container.addClass("".concat(gr("log-container"))).html(jr),Yt==="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 Yt=this.console.c,Cn="",Vn="";if(qt.group)for(var br=qt.group.indentLevel,gr=0;gr');qt.header&&(Cn+=Ar()(Wn||(Wn=(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(Wn(bt,ArrayBuffer)||bt&&Wn(bt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Wn(bt,SharedArrayBuffer)||bt&&Wn(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 sn=ft(bt);if(sn)return sn;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 sn=Ut.write(bt,pt);return sn!==yt&&(Ut=Ut.slice(0,sn)),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(Wn(pt,Uint8Array)&&(pt=tt.from(pt,pt.offset,pt.byteLength)),Wn(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,sn=yt.length;for(let ln=0,mn=Math.min(Ut,sn);lnsn.length?(tt.isBuffer(mn)||(mn=tt.from(mn)),mn.copy(sn,ln)):Uint8Array.prototype.set.call(sn,mn,ln);else if(tt.isBuffer(mn))mn.copy(sn,ln);else throw new TypeError('"list" argument must be an Array of Buffers');ln+=mn.length}return sn};function gt(bt,pt){if(tt.isBuffer(bt))return bt.length;if(ArrayBuffer.isView(bt)||Wn(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 sn=!1;for(;;)switch(pt){case"ascii":case"latin1":case"binary":return yt;case"utf8":case"utf-8":return Dn(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(sn)return Ut?-1:Dn(bt).length;pt=(""+pt).toLowerCase(),sn=!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,sn,ln){if(Wn(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),sn===void 0&&(sn=0),ln===void 0&&(ln=this.length),yt<0||Ut>pt.length||sn<0||ln>this.length)throw new RangeError("out of range index");if(sn>=ln&&yt>=Ut)return 0;if(sn>=ln)return-1;if(yt>=Ut)return 1;if(yt>>>=0,Ut>>>=0,sn>>>=0,ln>>>=0,this===pt)return 0;let mn=ln-sn,Qn=Ut-yt;const Rn=Math.min(mn,Qn),Jn=this.slice(sn,ln),Nn=pt.slice(yt,Ut);for(let ar=0;ar2147483647?yt=2147483647:yt<-2147483648&&(yt=-2147483648),yt=+yt,Fn(yt)&&(yt=sn?0:bt.length-1),yt<0&&(yt=bt.length+yt),yt>=bt.length){if(sn)return-1;yt=bt.length-1}else if(yt<0)if(sn)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,sn);if(typeof pt=="number")return pt=pt&255,typeof Uint8Array.prototype.indexOf=="function"?sn?Uint8Array.prototype.indexOf.call(bt,pt,yt):Uint8Array.prototype.lastIndexOf.call(bt,pt,yt):wt(bt,[pt],yt,Ut,sn);throw new TypeError("val must be string, number or Buffer")}function wt(bt,pt,yt,Ut,sn){let ln=1,mn=bt.length,Qn=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;ln=2,mn/=2,Qn/=2,yt/=2}function Rn(Nn,ar){return ln===1?Nn[ar]:Nn.readUInt16BE(ar*ln)}let Jn;if(sn){let Nn=-1;for(Jn=yt;Jnmn&&(yt=mn-Qn),Jn=yt;Jn>=0;Jn--){let Nn=!0;for(let ar=0;arsn&&(Ut=sn)):Ut=sn;const ln=pt.length;Ut>ln/2&&(Ut=ln/2);let mn;for(mn=0;mn>>0,isFinite(Ut)?(Ut=Ut>>>0,sn===void 0&&(sn="utf8")):(sn=Ut,Ut=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ln=this.length-yt;if((Ut===void 0||Ut>ln)&&(Ut=ln),pt.length>0&&(Ut<0||yt<0)||yt>this.length)throw new RangeError("Attempt to write outside buffer bounds");sn||(sn="utf8");let mn=!1;for(;;)switch(sn){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(mn)throw new TypeError("Unknown encoding: "+sn);sn=(""+sn).toLowerCase(),mn=!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 sn=pt;for(;sn239?4:ln>223?3:ln>191?2:1;if(sn+Qn<=yt){let Rn,Jn,Nn,ar;switch(Qn){case 1:ln<128&&(mn=ln);break;case 2:Rn=bt[sn+1],(Rn&192)===128&&(ar=(ln&31)<<6|Rn&63,ar>127&&(mn=ar));break;case 3:Rn=bt[sn+1],Jn=bt[sn+2],(Rn&192)===128&&(Jn&192)===128&&(ar=(ln&15)<<12|(Rn&63)<<6|Jn&63,ar>2047&&(ar<55296||ar>57343)&&(mn=ar));break;case 4:Rn=bt[sn+1],Jn=bt[sn+2],Nn=bt[sn+3],(Rn&192)===128&&(Jn&192)===128&&(Nn&192)===128&&(ar=(ln&15)<<18|(Rn&63)<<12|(Jn&63)<<6|Nn&63,ar>65535&&ar<1114112&&(mn=ar))}}mn===null?(mn=65533,Qn=1):mn>65535&&(mn-=65536,Ut.push(mn>>>10&1023|55296),mn=56320|mn&1023),Ut.push(mn),sn+=Qn}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 sn="";for(let ln=pt;lnUt&&(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 sn=this[pt],ln=1,mn=0;for(;++mn>>0,yt=yt>>>0,Ut||Vt(pt,yt,this.length);let sn=this[pt+--yt],ln=1;for(;yt>0&&(ln*=256);)sn+=this[pt+--yt]*ln;return sn},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=Tn(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 sn=yt+this[++pt]*2**8+this[++pt]*2**16+this[++pt]*2**24,ln=this[++pt]+this[++pt]*2**8+this[++pt]*2**16+Ut*2**24;return BigInt(sn)+(BigInt(ln)<>>0,vn(pt,"offset");const yt=this[pt],Ut=this[pt+7];(yt===void 0||Ut===void 0)&&En(pt,this.length-8);const sn=yt*2**24+this[++pt]*2**16+this[++pt]*2**8+this[++pt],ln=this[++pt]*2**24+this[++pt]*2**16+this[++pt]*2**8+Ut;return(BigInt(sn)<>>0,yt=yt>>>0,Ut||Vt(pt,yt,this.length);let sn=this[pt],ln=1,mn=0;for(;++mn=ln&&(sn-=Math.pow(2,8*yt)),sn},tt.prototype.readIntBE=function(pt,yt,Ut){pt=pt>>>0,yt=yt>>>0,Ut||Vt(pt,yt,this.length);let sn=yt,ln=1,mn=this[pt+--sn];for(;sn>0&&(ln*=256);)mn+=this[pt+--sn]*ln;return ln*=128,mn>=ln&&(mn-=Math.pow(2,8*yt)),mn},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=Tn(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 sn=this[pt+4]+this[pt+5]*2**8+this[pt+6]*2**16+(Ut<<24);return(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 sn=(yt<<24)+this[++pt]*2**16+this[++pt]*2**8+this[++pt];return(BigInt(sn)<>>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,sn,ln){if(!tt.isBuffer(bt))throw new TypeError('"buffer" argument must be a Buffer instance');if(pt>sn||ptbt.length)throw new RangeError("Index out of range")}tt.prototype.writeUintLE=tt.prototype.writeUIntLE=function(pt,yt,Ut,sn){if(pt=+pt,yt=yt>>>0,Ut=Ut>>>0,!sn){const Qn=Math.pow(2,8*Ut)-1;fn(this,pt,yt,Ut,Qn,0)}let ln=1,mn=0;for(this[yt]=pt&255;++mn>>0,Ut=Ut>>>0,!sn){const Qn=Math.pow(2,8*Ut)-1;fn(this,pt,yt,Ut,Qn,0)}let ln=Ut-1,mn=1;for(this[yt+ln]=pt&255;--ln>=0&&(mn*=256);)this[yt+ln]=pt/mn&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,sn){kn(pt,Ut,sn,bt,yt,7);let ln=Number(pt&BigInt(4294967295));bt[yt++]=ln,ln=ln>>8,bt[yt++]=ln,ln=ln>>8,bt[yt++]=ln,ln=ln>>8,bt[yt++]=ln;let mn=Number(pt>>BigInt(32)&BigInt(4294967295));return bt[yt++]=mn,mn=mn>>8,bt[yt++]=mn,mn=mn>>8,bt[yt++]=mn,mn=mn>>8,bt[yt++]=mn,yt}function On(bt,pt,yt,Ut,sn){kn(pt,Ut,sn,bt,yt,7);let ln=Number(pt&BigInt(4294967295));bt[yt+7]=ln,ln=ln>>8,bt[yt+6]=ln,ln=ln>>8,bt[yt+5]=ln,ln=ln>>8,bt[yt+4]=ln;let mn=Number(pt>>BigInt(32)&BigInt(4294967295));return bt[yt+3]=mn,mn=mn>>8,bt[yt+2]=mn,mn=mn>>8,bt[yt+1]=mn,mn=mn>>8,bt[yt]=mn,yt+8}tt.prototype.writeBigUInt64LE=Tn(function(pt,yt=0){return In(this,pt,yt,BigInt(0),BigInt("0xffffffffffffffff"))}),tt.prototype.writeBigUInt64BE=Tn(function(pt,yt=0){return On(this,pt,yt,BigInt(0),BigInt("0xffffffffffffffff"))}),tt.prototype.writeIntLE=function(pt,yt,Ut,sn){if(pt=+pt,yt=yt>>>0,!sn){const Rn=Math.pow(2,8*Ut-1);fn(this,pt,yt,Ut,Rn-1,-Rn)}let ln=0,mn=1,Qn=0;for(this[yt]=pt&255;++ln>0)-Qn&255;return yt+Ut},tt.prototype.writeIntBE=function(pt,yt,Ut,sn){if(pt=+pt,yt=yt>>>0,!sn){const Rn=Math.pow(2,8*Ut-1);fn(this,pt,yt,Ut,Rn-1,-Rn)}let ln=Ut-1,mn=1,Qn=0;for(this[yt+ln]=pt&255;--ln>=0&&(mn*=256);)pt<0&&Qn===0&&this[yt+ln+1]!==0&&(Qn=1),this[yt+ln]=(pt/mn>>0)-Qn&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=Tn(function(pt,yt=0){return In(this,pt,yt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),tt.prototype.writeBigInt64BE=Tn(function(pt,yt=0){return On(this,pt,yt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function _n(bt,pt,yt,Ut,sn,ln){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,sn){return pt=+pt,yt=yt>>>0,sn||_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,sn){return pt=+pt,yt=yt>>>0,sn||_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,sn){if(!tt.isBuffer(pt))throw new TypeError("argument should be a Buffer");if(Ut||(Ut=0),!sn&&sn!==0&&(sn=this.length),yt>=pt.length&&(yt=pt.length),yt||(yt=0),sn>0&&sn=this.length)throw new RangeError("Index out of range");if(sn<0)throw new RangeError("sourceEnd out of bounds");sn>this.length&&(sn=this.length),pt.length-yt>>0,Ut=Ut===void 0?this.length:Ut>>>0,pt||(pt=0);let ln;if(typeof pt=="number")for(ln=yt;ln2**32?sn=yn(String(yt)):typeof yt=="bigint"&&(sn=String(yt),(yt>BigInt(2)**BigInt(32)||yt<-(BigInt(2)**BigInt(32)))&&(sn=yn(sn)),sn+="n"),Ut+=` It must be ${pt}. Received ${sn}`,Ut},RangeError);function yn(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,sn,ln){if(bt>yt||bt3?pt===0||pt===BigInt(0)?Qn=`>= 0${mn} and < 2${mn} ** ${(ln+1)*8}${mn}`:Qn=`>= -(2${mn} ** ${(ln+1)*8-1}${mn}) and < 2 ** ${(ln+1)*8-1}${mn}`:Qn=`>= ${pt}${mn} and <= ${yt}${mn}`,new dn.ERR_OUT_OF_RANGE("value",Qn,bt)}jn(Ut,sn,ln)}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 Dn(bt,pt){pt=pt||1/0;let yt;const Ut=bt.length;let sn=null;const ln=[];for(let mn=0;mn55295&&yt<57344){if(!sn){if(yt>56319){(pt-=3)>-1&&ln.push(239,191,189);continue}else if(mn+1===Ut){(pt-=3)>-1&&ln.push(239,191,189);continue}sn=yt;continue}if(yt<56320){(pt-=3)>-1&&ln.push(239,191,189),sn=yt;continue}yt=(sn-55296<<10|yt-56320)+65536}else sn&&(pt-=3)>-1&&ln.push(239,191,189);if(sn=null,yt<128){if((pt-=1)<0)break;ln.push(yt)}else if(yt<2048){if((pt-=2)<0)break;ln.push(yt>>6|192,yt&63|128)}else if(yt<65536){if((pt-=3)<0)break;ln.push(yt>>12|224,yt>>6&63|128,yt&63|128)}else if(yt<1114112){if((pt-=4)<0)break;ln.push(yt>>18|240,yt>>12&63|128,yt>>6&63|128,yt&63|128)}else throw new Error("Invalid code point")}return ln}function Un(bt){const pt=[];for(let yt=0;yt>8,sn=yt%256,ln.push(sn),ln.push(Ut);return ln}function Zn(bt){return _.toByteArray(Ln(bt))}function wn(bt,pt,yt,Ut){let sn;for(sn=0;sn=pt.length||sn>=bt.length);++sn)pt[sn+yt]=bt[sn];return sn}function Wn(bt,pt){return bt instanceof pt||bt!=null&&bt.constructor!=null&&bt.constructor.name!=null&&bt.constructor.name===pt.name}function Fn(bt){return bt!==bt}const zn=function(){const bt="0123456789abcdef",pt=new Array(256);for(let yt=0;yt<16;++yt){const Ut=yt*16;for(let sn=0;sn<16;++sn)pt[Ut+sn]=bt[yt]+bt[sn]}return pt}();function Tn(bt){return typeof BigInt>"u"?Kt:bt}function Kt(){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(yn){var jn="luna-".concat(yn,"-");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(yn,jn){for(var kn=0,vn=yn.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)(yn);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(yn){(0,$.Z)(kn,yn);var jn=_n(kn);function kn(vn,En){var gn,Ln=En.compName,Dn=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Un=Dn===void 0?"light":Dn;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(Sn,Zn,wn){var Wn=gn.c;Sn==="theme"&&(gn.$container.rmClass(Wn("theme-".concat(wn))).addClass(Wn("theme-".concat(Zn))),rn()(gn.subComponents,function(Fn){return Fn.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,Dn={};typeof vn=="string"?Dn[vn]=En:Dn=vn,rn()(Dn,function(Un,Sn){var Zn=Ln[Sn];Ln[Sn]=Un,gn.emit("optionChange",Sn,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(yn){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)(yn);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(yn){(0,$.Z)(kn,yn);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(Dn){var Un=["top","left","right","bottom"];return Dn!=="position"&&(Un=nt()(Un,function(Sn){return"".concat(Dn,"-").concat(Sn)})),Dn==="border"&&(Un=nt()(Un,function(Sn){return"".concat(Sn,"-width")})),{top:An(En[Un[0]],Dn),left:An(En[Un[1]],Dn),right:An(En[Un[2]],Dn),bottom:An(En[Un[3]],Dn)}}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(yn,jn){if(at()(yn))return yn;if(!dt()(yn))return"‒";var kn,vn=(kn=yn,wt()(kn.replace("px","")));return isNaN(vn)?yn:jn==="position"?vn:vn===0?"‒":vn}(function(yn,jn){try{yn.exports=jn,yn.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 Yt=Er==null?null:typeof Symbol<"u"&&Er[Symbol.iterator]||Er["@@iterator"];if(Yt!=null){var Cn,Vn,br,gr,_r=[],Cr=!0,Or=!1;try{if(br=(Yt=Yt.call(Er)).next,qt===0){if(Object(Yt)!==Yt)return;Cr=!1}else for(;!(Cr=(Cn=br.call(Yt)).done)&&(_r.push(Cn.value),_r.length!==qt);Cr=!0);}catch(Yr){Or=!0,Vn=Yr}finally{try{if(!Cr&&Yt.return!=null&&(gr=Yt.return(),Object(gr)!==gr))return}finally{if(Or)throw Vn}}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),yn=d(6954),jn=d.n(yn),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(Yt){return ct()(Yt,zr)?Yt:Yt.replace(/[\w-]+/,function(Cn){return"".concat(zr).concat(Cn)})}).join(" ")}return function(qt){if(/<[^>]*>/g.test(qt))try{var Yt=_n().parse(qt);return gn(Yt,function(Cn){Cn.attrs&&Cn.attrs.class&&(Cn.attrs.class=Er(Cn.attrs.class))}),_n().stringify(Yt)}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,Yt=Er.level,Cn=Yt===void 0?0:Yt,Vn=Er.getterVal,br=Vn!==void 0&&Vn,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()(Sn,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]",Do=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 Yt=(0,at.Z)(this).constructor;Er=Reflect.construct(qt,arguments,Yt)}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,Yt){var Cn,Vn=Yt.type,br=Vn===void 0?"log":Vn,gr=Yt.args,_r=gr===void 0?[]:gr,Cr=Yt.id,Or=Yt.group,Yr=Yt.targetGroup,Gr=Yt.header,oo=Yt.ignoreFilter,po=oo!==void 0&&oo,Hr=Yt.accessGetter,ao=Yt.unenumerable,yo=Yt.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,Yt=!1;qt;){if(qt.collapsed){Yt=!0;break}qt=qt.parent}return Yt!==this.collapsed&&(this.collapsed=Yt,!0)}},{key:"updateIcon",value:function(qt){var Yt=this.console.c;return this.$container.find(Yt(".icon-container")).find(Yt(".icon")).rmAttr("class").addClass([Yt("icon"),Yt("icon-".concat(qt))]),this}},{key:"addCount",value:function(){this.count++;var qt=this.$container,Yt=this.count,Cn=this.console.c,Vn=qt.find(Cn(".count-container")),br=qt.find(Cn(".icon-container")),gr=Vn.find(Cn(".count"));return Yt===2&&Vn.rmClass(Cn("hidden")),gr.text(ft()(Yt)),br.addClass(Cn("hidden")),this}},{key:"groupEnd",value:function(){var qt=this.$container,Yt=this.console.c;return qt.find(".".concat(Yt("nesting-level"),":not(.").concat(Yt("group-closed"),")")).last().addClass(Yt("group-closed")),this}},{key:"updateTime",value:function(qt){var Yt=this.$container.find(this.console.c(".time-container"));return this.header&&(Yt.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],Yt=this.container.getBoundingClientRect(),Cn=Yt.width,Vn=Yt.height-1;this.height!==Vn&&(this.height=Vn,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,Yt="";Mt()(qt,function(Cn,Vn){Vn!==0&&(Yt+=" "),yt()(Cn)?Yt+=tr()(Cn):Yt+=ft()(Cn)}),Kn()(Yt)}},{key:"bindEvent",value:function(){var qt=this,Yt=this.console.c,Cn=this;this.resizeSensor.addListener(this.onResize),this.$container.on("click",Yt(".dom-viewer"),function(Vn){return Vn.stopPropagation()}).on("click",Yt(".preview"),function(Vn){Vn.stopPropagation();var br=Pt()(this).find(Yt(".preview-icon-container")).find(Yt(".icon")),gr="caret-down";br.hasClass(Yt("icon-caret-down"))&&(gr="caret-right"),br.rmAttr("class").addClass([Yt("icon"),Yt("icon-".concat(gr))]),Cn.renderObjectViewer(this)}).on("click",function(){return qt.click()})}},{key:"renderEl",value:function(){var qt=this.elements,Yt=this.console.c,Cn=this;this.$container.find(Yt(".dom-viewer")).each(function(){var Vn=Pt()(this).data("id");new Tn.Z(this,{node:qt[Vn],theme:Cn.console.getOption("theme")})})}},{key:"renderObjectViewer",value:function(qt){var Yt=this.console,Cn=this.unenumerable,Vn=this.accessGetter,br=this.lazyEvaluation,gr=Yt.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 Fn.Z(Yr.get(0),{unenumerable:Cn,accessGetter:Vn});Gr.setOption("theme",Yt.getOption("theme")),Gr.set(Or)}else{var oo=new Fn.q(Yr.get(0));oo.setOption("theme",Yt.getOption("theme")),oo.set(Or)}Yr.data("init","true")}Yr.rmClass(gr("hidden"))}else Yr.addClass(gr("hidden"))}}},{key:"renderTable",value:function(qt){var Yt=this,Cn="__LunaConsoleValue",Vn=this.columns,br=this.$container,gr=this.console,_r=gr.c,Cr=br.find(_r(".data-grid")),Or=qt[0],Yr=new zn.Z(Cr.get(0),{columns:pr()([{id:"(index)",title:"(index)",sortable:!0}],nn()(Vn,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)};Vn.forEach(function(Hr){yt()(Gr)?po[Hr]=Hr===Cn?"":Yt.formatTableVal(Gr[Hr]):Rn()(Gr)&&(po[Hr]=Hr===Cn?Yt.formatTableVal(Gr):"")}),Yr.append(po)})}},{key:"extractObj",value:function(qt){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Cn=arguments.length>2?arguments[2]:void 0,Vn=this.accessGetter,br=this.unenumerable;Nn()(Yt,{accessGetter:Vn,unenumerable:br,symbol:br,timeout:1e3}),function(gr,_r,Cr){var Or=ur()(gr,_r);yr()(function(){return Cr(Or)})}(qt,Yt,function(gr){return Cn(JSON.parse(gr))})}},{key:"click",value:function(){var qt=this.type,Yt=this.$container,Cn=this.console,Vn=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":Yt.find(Vn(".stack")).toggleClass(Vn("hidden"))}}},{key:"formatMsg",value:function(){var qt=this.args,Yt=this.type,Cn=this.id,Vn=this.header,br=this.group,gr=this.console.c;qt=Ft()(qt);var _r,Cr,Or="";switch(Yt!=="group"&&Yt!=="groupCollapsed"||qt.length===0&&(qt=["console.group"]),Yt){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":sn()(qt[0])&&qt.length!==1&&(qt=this.substituteStr(qt)),Cr=qt[0],_r="error",Cr=mn()(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"],Yt)&&this.isSimple()&&(Or=Pn()(Or,function(Yr){return'').concat(Yr,"")})),Or=this.render({msg:Or,type:Yt,icon:_r,id:Cn,header:Vn,group:br}),this.$container.addClass("".concat(gr("log-container"))).html(Or),Yt==="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 Yt=this.console.c,Cn="",Vn="";if(qt.group)for(var br=qt.group.indentLevel,gr=0;gr');qt.header&&(Cn+=Ar()(Wn||(Wn=(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 Yt=qt[0],Cn=qt[1],Vn=[];return sn()(Cn)&&(Cn=Zr()(Cn)),St()(Cn)||(Cn=null),yt()(Yt)?(Mt()(Yt,function(br){Rn()(br)?Vn.push("__LunaConsoleValue"):yt()(br)&&(Vn=Vn.concat(Rt()(br)))}),(Vn=$t()(Vn)).sort(),Cn&&(Vn=Vn.filter(function(br){return ct()(Cn,br)})),Vn.length>20&&(Vn=Vn.slice(0,20)),At()(Vn)?this.formatCommon(qt):(this.columns=Vn,this.console.c('
')+this.formatPreview(Yt))):this.formatCommon(qt)}},{key:"formatErr",value:function(qt){var Yt=qt.stack?qt.stack.split(` -`):[],Cn="".concat(qt.message||Yt[0],"
");return Yt=Yt.map(function(Vn){return ut()(Vn)}),Cn+'
').concat(Yt.slice(1).join("
"),"
").replace(qr,function(Vn){return'').concat(Vn,"")})}},{key:"formatCommon",value:function(qt){var Yt=this.console.c,Cn=sn()(qt[0])&&qt.length!==1;Cn&&(qt=this.substituteStr(qt));for(var Vn=0,br=qt.length;Vn').concat(ut()(ft()(gr)),"
"):yt()(gr)?qt[Vn]=this.formatPreview(gr):Br()(gr)?qt[Vn]='undefined'):kr()(gr)?qt[Vn]='null'):Yn()(gr)?qt[Vn]='').concat(ft()(gr),""):typeof gr=="bigint"?qt[Vn]='').concat(ft()(gr),"n"):Fr()(gr)?qt[Vn]='').concat(ft()(gr),""):Pr()(gr)?qt[Vn]='').concat(ut()(ft()(gr)),""):(gr=ft()(gr),Vn===0&&Cn||(gr=ut()(gr)),gr.length>5e3&&(gr=jt()(gr,5e3,{separator:" ",ellipsis:"…"})),qt[Vn]=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 Yt=this.console.c;return yt()(qt)?"{…}":Rn()(qt)?Or()('
').concat(Un(qt),"
")):ft()(qt)}},{key:"formatPreview",value:function(qt){var Yt=this,Cn=this.console.c,Vn=pn()();this.lazyEvaluation?this.objects[Vn]=qt:this.extractObj(qt,{},function(_r){Yt.objects[Vn]=_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):Xn()(qt)&&(gr=this.formatElName(qt)),'
')+'
')+'
')+'')+'').concat(ut()(gr)," ")+'').concat(br?"":Un(qt,{getterVal:this.accessGetter,unenumerable:!1}),"")+"
"+'
')}},{key:"substituteStr",value:function(qt){var Yt=ut()(qt[0]),Cn=!1,Vn="";qt.shift();for(var br=0,gr=Yt.length;br"),Cn=!0,Vn+='');break;default:br--,qt.unshift(Cr),Vn+=_r}}else Vn+=_r}return Cn&&(Vn+=""),qt.unshift(Vn),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 Yt=qt.id,Cn=qt.className,Vn=qt.tagName.toLowerCase();if(Yt!==""&&(Vn+="#".concat(Yt)),sn()(Cn)){var br="";Mt()(Cn.split(/\s+/g),function(gr){gr.trim()!==""&&(br+=".".concat(gr))}),Vn+=br}return Vn}},{key:"formatEl",value:function(qt){var Yt=pn()();return this.elements[Yt]=qt,this.console.c('
'))}}]),Er}(Gt());function no(Sr){var zr=(Sr=It()(Sr)).split(";"),Er={};Mt()(zr,function(Yt){if(ct()(Yt,":")){var Cn=$(Yt.split(":"),2),Vn=Cn[0],br=Cn[1];Er[Vt()(Vn)]=Vt()(br)}}),Er.display="inline-block",Er["max-width"]="100%",delete Er.width,delete Er.height;var qt="";return Mt()(Er,function(Yt,Cn){qt+="".concat(Cn,":").concat(Yt,";")}),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 Yt=(0,at.Z)(this).constructor;Er=Reflect.construct(qt,arguments,Yt)}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,Yt){var Cn,Vn=Yt.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=Vn,Cn.c=En(Vn),Cn.options={},Cn.container=qt,Cn.$container=Pt()(qt),Cn.$container.addClass(["luna-".concat(Vn),Cn.c("platform-".concat(Ln()))]),Cn.on("optionChange",function(_r,Cr,jr){var Yr=Cn.c;_r==="theme"&&(Cn.$container.rmClass(Yr("theme-".concat(jr))).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,Yt){var Cn=this,Vn=this.options,br={};typeof qt=="string"?br[qt]=Yt:br=qt,Mt()(br,function(gr,_r){var Cr=Vn[_r];Vn[_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(Yt){return Yt===qt})}},{key:"destroySubComponents",value:function(){Mt()(this.subComponents,function(qt){return qt.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(qt){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Nn()(qt,Yt),_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 Os(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 Yt=(0,at.Z)(this).constructor;Er=Reflect.construct(qt,arguments,Yt)}else Er=qt.apply(this,arguments);return(0,ot.Z)(this,Er)}}b=d.hmd(b);var ts=navigator.userAgent,js=ts.indexOf("Android")>-1||ts.indexOf("Adr")>-1,Rs=0,ns=function(Sr){(0,nt.Z)(Er,Sr);var zr=Os(Er);function Er(qt){var Yt,Cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,et.Z)(this,Er),(Yt=zr.call(this,qt,{compName:"console"},Cn)).spaceHeight=0,Yt.topSpaceHeight=0,Yt.bottomSpaceHeight=0,Yt.lastScrollTop=0,Yt.lastTimestamp=0,Yt.speedToleranceFactor=100,Yt.maxSpeedTolerance=2e3,Yt.minSpeedTolerance=100,Yt.logs=[],Yt.displayLogs=[],Yt.timer={},Yt.counter={},Yt.asyncList=[],Yt.asyncTimer=null,Yt.isAtBottom=!0,Yt.groupStack=new(ga()),Yt.selectedLog=null,Yt.onScroll=function(){var Vn=Yt.container,br=Vn.scrollHeight,gr=Vn.offsetHeight,_r=Vn.scrollTop;if(!(_r<=0||gr+_r>br)){var Cr=!1;(br===gr||_r===br-gr)&&(Cr=!0),Yt.isAtBottom=Cr;var jr=Yt.lastScrollTop,Yr=Yt.lastTimestamp,Gr=fo()(),oo=Gr-Yr,po=_r-jr,Hr=Math.abs(po/oo)*Yt.speedToleranceFactor;oo>1e3&&(Hr=1e3),Hr>Yt.maxSpeedTolerance&&(Hr=Yt.maxSpeedTolerance),Hr_r+gr+yo||Yt.renderViewport({topTolerance:2*ao,bottomTolerance:2*yo})}},Yt.initTpl(),Yt.initOptions(Cn,{maxNum:0,asyncRender:!0,showHeader:!1,filter:"",level:["verbose","info","warning","error"],accessGetter:!1,unenumerable:!0,lazyEvaluation:!0}),Yt.$el=Yt.find(".logs"),Yt.el=Yt.$el.get(0),Yt.$fakeEl=Yt.find(".fake-logs"),Yt.fakeEl=Yt.$fakeEl.get(0),Yt.$space=Yt.find(".logs-space"),Yt.space=Yt.$space.get(0),js&&(Yt.speedToleranceFactor=800,Yt.maxSpeedTolerance=3e3,Yt.minSpeedTolerance=800),Yt.resizeSensor=new(bt())(qt),Yt.renderViewport=xs()(function(Vn){Yt._renderViewport(Vn)},16),Yt.global={copy:function(Vn){sn()(Vn)||(Vn=JSON.stringify(Vn,null,2)),Kn()(Vn)},$:function(Vn){return document.querySelector(Vn)},$$:function(Vn){return Zr()(document.querySelectorAll(Vn))},$x:function(Vn){return _s()(Vn)},clear:function(){Yt.clear()},dir:function(Vn){Yt.dir(Vn)},table:function(Vn,br){Yt.table(Vn,br)},keys:Rt()},Yt.bindEvent(),Yt}return(0,tt.Z)(Er,[{key:"setGlobal",value:function(qt,Yt){this.global[qt]=Yt}},{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",Yt=this.counter;Br()(Yt[qt])?Yt[qt]=1:Yt[qt]++,this.info("".concat(qt,": ").concat(Yt[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,Yt=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",Yt=this.timer[qt];if(!Yt)return this.insert("warn",["Timer '".concat(qt,"' does not exist")]);this.info("".concat(qt,": ").concat(co()()-Yt,"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,Yt=new Array(qt),Cn=0;Cn0&&(Vn.group=_r.peek()),_i()(Vn,{id:++Rs,accessGetter:Yr,unenumerable:Gr,lazyEvaluation:oo}),Vn.type==="group"||Vn.type==="groupCollapsed"){var po={id:pn()("group"),collapsed:!1,parent:_r.peek(),indentLevel:_r.size+1};Vn.type==="groupCollapsed"&&(po.collapsed=!0),Vn.targetGroup=po,_r.push(po)}var Hr=new to(this,Vn);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),jr!==0&&gr.length>jr){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 Yt=this.displayLogs,Cn=Yt.indexOf(qt);Cn>-1&&(Yt.splice(Cn,1),this.renderViewport())}},{key:"attachLog",value:function(qt){if(this.filterLog(qt)&&!qt.collapsed){var Yt=this.displayLogs;if(Yt.length===0)return Yt.push(qt),void this.renderViewport();var Cn=ws()(Yt);if(qt.id>Cn.id)return Yt.push(qt),void this.renderViewport();for(var Vn,br=0,gr=Yt.length-1,_r=0;br<=gr;){if((Vn=Yt[_r=br+Math.floor((gr-br)/2)]).id===qt.id)return;Vn.id0&&arguments[0]!==void 0?arguments[0]:20,Cn=this.asyncList;this.asyncTimer||(this.asyncTimer=setTimeout(function(){qt.asyncTimer=null;var Vn,br,gr=!1,_r=Cn.length;_r<1e3?(br=200,Vn=400):_r<5e3?(br=500,Vn=800):_r<1e4?(br=800,Vn=1e3):_r<25e3?(br=1e3,Vn=1200):_r<5e4?(br=1500,Vn=1500):(br=2e3,Vn=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]:{},Yt=qt.topTolerance,Cn=Yt===void 0?500:Yt,Vn=qt.bottomTolerance,br=Vn===void 0?500:Vn,gr=this.el,_r=this.container,Cr=this.space;if(!vn()(_r)){for(var jr=_r.scrollTop,Yr=_r.offsetHeight,Gr=Cr.getBoundingClientRect().width,oo=jr-Cn,po=jr+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+=Oo:bo+Oo>oo?Bo.appendChild(Ho):bo");return Yt=Yt.map(function(Vn){return ut()(Vn)}),Cn+'
').concat(Yt.slice(1).join("
"),"
").replace(qr,function(Vn){return'').concat(Vn,"")})}},{key:"formatCommon",value:function(qt){var Yt=this.console.c,Cn=sn()(qt[0])&&qt.length!==1;Cn&&(qt=this.substituteStr(qt));for(var Vn=0,br=qt.length;Vn').concat(ut()(ft()(gr)),"
"):yt()(gr)?qt[Vn]=this.formatPreview(gr):Br()(gr)?qt[Vn]='undefined'):kr()(gr)?qt[Vn]='null'):Yn()(gr)?qt[Vn]='').concat(ft()(gr),""):typeof gr=="bigint"?qt[Vn]='').concat(ft()(gr),"n"):Fr()(gr)?qt[Vn]='').concat(ft()(gr),""):Pr()(gr)?qt[Vn]='').concat(ut()(ft()(gr)),""):(gr=ft()(gr),Vn===0&&Cn||(gr=ut()(gr)),gr.length>5e3&&(gr=Ot()(gr,5e3,{separator:" ",ellipsis:"…"})),qt[Vn]=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 Yt=this.console.c;return yt()(qt)?"{…}":Rn()(qt)?jr()('
').concat(Un(qt),"
")):ft()(qt)}},{key:"formatPreview",value:function(qt){var Yt=this,Cn=this.console.c,Vn=pn()();this.lazyEvaluation?this.objects[Vn]=qt:this.extractObj(qt,{},function(_r){Yt.objects[Vn]=_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):Xn()(qt)&&(gr=this.formatElName(qt)),'
')+'
')+'
')+'')+'').concat(ut()(gr)," ")+'').concat(br?"":Un(qt,{getterVal:this.accessGetter,unenumerable:!1}),"")+"
"+'
')}},{key:"substituteStr",value:function(qt){var Yt=ut()(qt[0]),Cn=!1,Vn="";qt.shift();for(var br=0,gr=Yt.length;br"),Cn=!0,Vn+='');break;default:br--,qt.unshift(Cr),Vn+=_r}}else Vn+=_r}return Cn&&(Vn+=""),qt.unshift(Vn),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 Yt=qt.id,Cn=qt.className,Vn=qt.tagName.toLowerCase();if(Yt!==""&&(Vn+="#".concat(Yt)),sn()(Cn)){var br="";Mt()(Cn.split(/\s+/g),function(gr){gr.trim()!==""&&(br+=".".concat(gr))}),Vn+=br}return Vn}},{key:"formatEl",value:function(qt){var Yt=pn()();return this.elements[Yt]=qt,this.console.c('
'))}}]),Er}(Gt());function no(Sr){var zr=(Sr=It()(Sr)).split(";"),Er={};Mt()(zr,function(Yt){if(ct()(Yt,":")){var Cn=$(Yt.split(":"),2),Vn=Cn[0],br=Cn[1];Er[Vt()(Vn)]=Vt()(br)}}),Er.display="inline-block",Er["max-width"]="100%",delete Er.width,delete Er.height;var qt="";return Mt()(Er,function(Yt,Cn){qt+="".concat(Cn,":").concat(Yt,";")}),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 Yt=(0,at.Z)(this).constructor;Er=Reflect.construct(qt,arguments,Yt)}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,Yt){var Cn,Vn=Yt.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=Vn,Cn.c=En(Vn),Cn.options={},Cn.container=qt,Cn.$container=Pt()(qt),Cn.$container.addClass(["luna-".concat(Vn),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,Yt){var Cn=this,Vn=this.options,br={};typeof qt=="string"?br[qt]=Yt:br=qt,Mt()(br,function(gr,_r){var Cr=Vn[_r];Vn[_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(Yt){return Yt===qt})}},{key:"destroySubComponents",value:function(){Mt()(this.subComponents,function(qt){return qt.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(qt){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Nn()(qt,Yt),_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 Yt=(0,at.Z)(this).constructor;Er=Reflect.construct(qt,arguments,Yt)}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 Yt,Cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,et.Z)(this,Er),(Yt=zr.call(this,qt,{compName:"console"},Cn)).spaceHeight=0,Yt.topSpaceHeight=0,Yt.bottomSpaceHeight=0,Yt.lastScrollTop=0,Yt.lastTimestamp=0,Yt.speedToleranceFactor=100,Yt.maxSpeedTolerance=2e3,Yt.minSpeedTolerance=100,Yt.logs=[],Yt.displayLogs=[],Yt.timer={},Yt.counter={},Yt.asyncList=[],Yt.asyncTimer=null,Yt.isAtBottom=!0,Yt.groupStack=new(ga()),Yt.selectedLog=null,Yt.onScroll=function(){var Vn=Yt.container,br=Vn.scrollHeight,gr=Vn.offsetHeight,_r=Vn.scrollTop;if(!(_r<=0||gr+_r>br)){var Cr=!1;(br===gr||_r===br-gr)&&(Cr=!0),Yt.isAtBottom=Cr;var Or=Yt.lastScrollTop,Yr=Yt.lastTimestamp,Gr=fo()(),oo=Gr-Yr,po=_r-Or,Hr=Math.abs(po/oo)*Yt.speedToleranceFactor;oo>1e3&&(Hr=1e3),Hr>Yt.maxSpeedTolerance&&(Hr=Yt.maxSpeedTolerance),Hr_r+gr+yo||Yt.renderViewport({topTolerance:2*ao,bottomTolerance:2*yo})}},Yt.initTpl(),Yt.initOptions(Cn,{maxNum:0,asyncRender:!0,showHeader:!1,filter:"",level:["verbose","info","warning","error"],accessGetter:!1,unenumerable:!0,lazyEvaluation:!0}),Yt.$el=Yt.find(".logs"),Yt.el=Yt.$el.get(0),Yt.$fakeEl=Yt.find(".fake-logs"),Yt.fakeEl=Yt.$fakeEl.get(0),Yt.$space=Yt.find(".logs-space"),Yt.space=Yt.$space.get(0),Os&&(Yt.speedToleranceFactor=800,Yt.maxSpeedTolerance=3e3,Yt.minSpeedTolerance=800),Yt.resizeSensor=new(bt())(qt),Yt.renderViewport=xs()(function(Vn){Yt._renderViewport(Vn)},16),Yt.global={copy:function(Vn){sn()(Vn)||(Vn=JSON.stringify(Vn,null,2)),Kn()(Vn)},$:function(Vn){return document.querySelector(Vn)},$$:function(Vn){return Zr()(document.querySelectorAll(Vn))},$x:function(Vn){return _s()(Vn)},clear:function(){Yt.clear()},dir:function(Vn){Yt.dir(Vn)},table:function(Vn,br){Yt.table(Vn,br)},keys:Rt()},Yt.bindEvent(),Yt}return(0,tt.Z)(Er,[{key:"setGlobal",value:function(qt,Yt){this.global[qt]=Yt}},{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",Yt=this.counter;Br()(Yt[qt])?Yt[qt]=1:Yt[qt]++,this.info("".concat(qt,": ").concat(Yt[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,Yt=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",Yt=this.timer[qt];if(!Yt)return this.insert("warn",["Timer '".concat(qt,"' does not exist")]);this.info("".concat(qt,": ").concat(co()()-Yt,"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,Yt=new Array(qt),Cn=0;Cn0&&(Vn.group=_r.peek()),_i()(Vn,{id:++Rs,accessGetter:Yr,unenumerable:Gr,lazyEvaluation:oo}),Vn.type==="group"||Vn.type==="groupCollapsed"){var po={id:pn()("group"),collapsed:!1,parent:_r.peek(),indentLevel:_r.size+1};Vn.type==="groupCollapsed"&&(po.collapsed=!0),Vn.targetGroup=po,_r.push(po)}var Hr=new to(this,Vn);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 Yt=this.displayLogs,Cn=Yt.indexOf(qt);Cn>-1&&(Yt.splice(Cn,1),this.renderViewport())}},{key:"attachLog",value:function(qt){if(this.filterLog(qt)&&!qt.collapsed){var Yt=this.displayLogs;if(Yt.length===0)return Yt.push(qt),void this.renderViewport();var Cn=ws()(Yt);if(qt.id>Cn.id)return Yt.push(qt),void this.renderViewport();for(var Vn,br=0,gr=Yt.length-1,_r=0;br<=gr;){if((Vn=Yt[_r=br+Math.floor((gr-br)/2)]).id===qt.id)return;Vn.id0&&arguments[0]!==void 0?arguments[0]:20,Cn=this.asyncList;this.asyncTimer||(this.asyncTimer=setTimeout(function(){qt.asyncTimer=null;var Vn,br,gr=!1,_r=Cn.length;_r<1e3?(br=200,Vn=400):_r<5e3?(br=500,Vn=800):_r<1e4?(br=800,Vn=1e3):_r<25e3?(br=1e3,Vn=1200):_r<5e4?(br=1500,Vn=1500):(br=2e3,Vn=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]:{},Yt=qt.topTolerance,Cn=Yt===void 0?500:Yt,Vn=qt.bottomTolerance,br=Vn===void 0?500:Vn,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,zr="",Er=Sr.stack?Sr.stack.split(` -`):"",qt=0,Yt=Er.length;qt-1&&qt]*>/g.test(mt))try{var Ft=Mt().parse(mt);return Bt(Ft,function(Xt){Xt.attrs&&Xt.attrs.class&&(Xt.attrs.class=$t(Xt.attrs.class))}),Mt().stringify(Ft)}catch{return $t(mt)}return $t(mt)}}function Bt(St,Dt){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(Dt){var Ft=(0,ot.Z)(this).constructor;$t=Reflect.construct(mt,arguments,Ft)}else $t=mt.apply(this,arguments);return(0,nt.Z)(this,$t)}}var vn,En=function(St){(0,rt.Z)($t,St);var Dt=kn($t);function $t(mt,Ft){var Xt,It=Ft.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=Dt.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,Ft){var Xt=this,It=this.options,Nt={};typeof mt=="string"?Nt[mt]=Ft: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){On()(this.subComponents,function(Ft){return Ft===mt})}},{key:"destroySubComponents",value:function(){_n()(this.subComponents,function(mt){return mt.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(mt){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};An()(mt,Ft),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),Dn=d(8613),Un=d.n(Dn),Sn=d(3367),Zn=d.n(Sn),wn=d(9833),Wn=d.n(wn),Fn=d(1286),zn=d.n(Fn),Tn=d(242),Kt=d.n(Tn),bt=d(2439),pt=d.n(bt),yt=d(6930),Ut=d.n(yt),sn=d(6156),ln=d.n(sn),mn=d(4777),Qn=d.n(mn),Rn=d(1754),Jn=d.n(Rn),Nn=d(6768),ar=d.n(Nn),Xn=d(3063),qn=d.n(Xn),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 Dt=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(Dt){var Ft=(0,ot.Z)(this).constructor;$t=Reflect.construct(mt,arguments,Ft)}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 Dt=Br($t);function $t(mt,Ft){var Xt;(0,j.Z)(this,$t),(Xt=Dt.call(this,mt,{compName:"data-grid"},Ft)).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,er=Gt[un],tr=Gt[un+1],ir=Tr()(-er+Ur,0),Kn=xr()(tr-Ur,0);Gn=cr()(Gn,ir,Kn),xn.each(function(){var ur=it()(this).find("col");ur.eq(un).css("width",er+Gn+"px"),ur.eq(un+1).css("width",tr-Gn+"px")}),Xt.resizeDeltaX=Gn;var rr=Xt.resizeStartLeft+Gn;tn.eq(un).css("left","".concat(rr,"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,er=Gn[Gt],tr=Gn[Gt+1],ir=tn[Gt]+xn,Kn=ir+(tn[Gt+1]-xn),rr=er.weight+tr.weight,ur=rr*(ir/Kn),or=rr-ur;er.weight=ur,tr.weight=or,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(Kt())(mt),Xt.onResize=pt()(function(){Xt.updateHeight(),Xt.updateWeights()},16),Ft.height&&(Ft.maxHeight=Ft.height,Ft.minHeight=Ft.height),Xt.initOptions(Ft,{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(),Ft.splice(Xt,1),mt===this.selectedNode&&this.selectNode(Ft[Xt]||Ft[Xt-1]||null),this.updateHeight())}},{key:"append",value:function(mt,Ft){var Xt=new Zr(this,mt,Ft);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,Ft=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(Ft(".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 Ft;(ln()(mt)||mt!=null&&mt.selectable)&&(this.selectedNode&&(this.selectedNode.deselect(),this.selectedNode=null),ln()(mt)?this.emit("deselect"):(this.selectedNode=mt,(Ft=this.selectedNode)===null||Ft===void 0||Ft.select(),this.emit("select",mt)))}},{key:"onResizeColStart",value:function(mt){var Ft=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(Ft("resizing")),Rr.on(Qt("move"),this.onResizeColMove),Rr.on(Qt("end"),this.onResizeColEnd)}},{key:"bindEvent",value:function(){var mt=this,Ft=this.c,Xt=this.$headerRow,It=this.$tableBody,Nt=this.$resizers;this.resizeSensor.addListener(this.onResize);var Rt=this;It.on("click",Ft(".node"),function(){Rt.selectNode(this.dataGridNode)}),Xt.on("click",Ft(".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,Ft){var Xt=this.colMap[mt].comparator||mo;this.nodes.sort(function(It,Nt){var Rt=It.data[mt],Wt=Nt.data[mt];return Wn()(Rt)&&(Rt=Rt.innerText),Wn()(Wt)&&(Wt=Wt.innerText),Ft?Xt(Rt,Wt):Xt(Wt,Rt)}),this.renderData(),this.sortId=mt,this.isAscending=Ft}},{key:"updateWeights",value:function(){var mt=this.container,Ft=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}Ft.html(Pt),this.positionResizers()}}},{key:"positionResizers",value:function(){for(var mt=this.colWidths,Ft=[],Xt=mt.length-1,It=0;It').concat(Nt,"")):Ft+="".concat(Nt,""),Xt+=""}),this.$headerRow.html(Ft),this.$fillerRow.html(Xt)}},{key:"renderResizers",value:function(){for(var mt="",Ft=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)([` +`):"",qt=0,Yt=Er.length;qt-1&&qt]*>/g.test(mt))try{var Ft=Mt().parse(mt);return Bt(Ft,function(Xt){Xt.attrs&&Xt.attrs.class&&(Xt.attrs.class=$t(Xt.attrs.class))}),Mt().stringify(Ft)}catch{return $t(mt)}return $t(mt)}}function Bt(St,Dt){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(Dt){var Ft=(0,ot.Z)(this).constructor;$t=Reflect.construct(mt,arguments,Ft)}else $t=mt.apply(this,arguments);return(0,nt.Z)(this,$t)}}var vn,En=function(St){(0,rt.Z)($t,St);var Dt=kn($t);function $t(mt,Ft){var Xt,It=Ft.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=Dt.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,Ft){var Xt=this,It=this.options,Nt={};typeof mt=="string"?Nt[mt]=Ft: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(Ft){return Ft===mt})}},{key:"destroySubComponents",value:function(){_n()(this.subComponents,function(mt){return mt.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(mt){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};An()(mt,Ft),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),Dn=d(8613),Un=d.n(Dn),Sn=d(3367),Zn=d.n(Sn),wn=d(9833),Wn=d.n(wn),Fn=d(1286),zn=d.n(Fn),Tn=d(242),Kt=d.n(Tn),bt=d(2439),pt=d.n(bt),yt=d(6930),Ut=d.n(yt),sn=d(6156),ln=d.n(sn),mn=d(4777),Qn=d.n(mn),Rn=d(1754),Jn=d.n(Rn),Nn=d(6768),ar=d.n(Nn),Xn=d(3063),qn=d.n(Xn),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 Dt=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(Dt){var Ft=(0,ot.Z)(this).constructor;$t=Reflect.construct(mt,arguments,Ft)}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 Dt=Br($t);function $t(mt,Ft){var Xt;(0,j.Z)(this,$t),(Xt=Dt.call(this,mt,{compName:"data-grid"},Ft)).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,er=Gt[un],tr=Gt[un+1],ir=Tr()(-er+Ur,0),Kn=xr()(tr-Ur,0);Gn=cr()(Gn,ir,Kn),xn.each(function(){var ur=it()(this).find("col");ur.eq(un).css("width",er+Gn+"px"),ur.eq(un+1).css("width",tr-Gn+"px")}),Xt.resizeDeltaX=Gn;var rr=Xt.resizeStartLeft+Gn;tn.eq(un).css("left","".concat(rr,"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,er=Gn[Gt],tr=Gn[Gt+1],ir=tn[Gt]+xn,Kn=ir+(tn[Gt+1]-xn),rr=er.weight+tr.weight,ur=rr*(ir/Kn),or=rr-ur;er.weight=ur,tr.weight=or,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(Kt())(mt),Xt.onResize=pt()(function(){Xt.updateHeight(),Xt.updateWeights()},16),Ft.height&&(Ft.maxHeight=Ft.height,Ft.minHeight=Ft.height),Xt.initOptions(Ft,{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(),Ft.splice(Xt,1),mt===this.selectedNode&&this.selectNode(Ft[Xt]||Ft[Xt-1]||null),this.updateHeight())}},{key:"append",value:function(mt,Ft){var Xt=new Zr(this,mt,Ft);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,Ft=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(Ft(".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 Ft;(ln()(mt)||mt!=null&&mt.selectable)&&(this.selectedNode&&(this.selectedNode.deselect(),this.selectedNode=null),ln()(mt)?this.emit("deselect"):(this.selectedNode=mt,(Ft=this.selectedNode)===null||Ft===void 0||Ft.select(),this.emit("select",mt)))}},{key:"onResizeColStart",value:function(mt){var Ft=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(Ft("resizing")),Rr.on(Qt("move"),this.onResizeColMove),Rr.on(Qt("end"),this.onResizeColEnd)}},{key:"bindEvent",value:function(){var mt=this,Ft=this.c,Xt=this.$headerRow,It=this.$tableBody,Nt=this.$resizers;this.resizeSensor.addListener(this.onResize);var Rt=this;It.on("click",Ft(".node"),function(){Rt.selectNode(this.dataGridNode)}),Xt.on("click",Ft(".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,Ft){var Xt=this.colMap[mt].comparator||mo;this.nodes.sort(function(It,Nt){var Rt=It.data[mt],Wt=Nt.data[mt];return Wn()(Rt)&&(Rt=Rt.innerText),Wn()(Wt)&&(Wt=Wt.innerText),Ft?Xt(Rt,Wt):Xt(Wt,Rt)}),this.renderData(),this.sortId=mt,this.isAscending=Ft}},{key:"updateWeights",value:function(){var mt=this.container,Ft=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}Ft.html(Pt),this.positionResizers()}}},{key:"positionResizers",value:function(){for(var mt=this.colWidths,Ft=[],Xt=mt.length-1,It=0;It').concat(Nt,"")):Ft+="".concat(Nt,""),Xt+=""}),this.$headerRow.html(Ft),this.$fillerRow.html(Xt)}},{key:"renderResizers",value:function(){for(var mt="",Ft=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,19 +62,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
- `])))))}}]),$t}(En),Zr=function(){function St(Dt,$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(Dt.c("node")),this.dataGrid=Dt,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 Dt=this.data,$t=this.$container,mt=this.container,Ft=this.dataGrid.getOption("columns");$t.html(""),_n()(Ft,function(Xt){var It=Un()("td"),Nt=Dt[Xt.id];zn()(Nt)||(Wn()(Nt)?It.appendChild(Nt):It.innerText=Zn()(Nt)),mt.appendChild(It)})}}]),St}();function mo(St,Dt){if(St=Zn()(St),Dt=Zn()(Dt),Ut()(St,"_")&&!Ut()(Dt,"_"))return 1;if(Ut()(Dt,"_")&&!Ut()(St,"_"))return-1;for(var $t,mt,Ft,Xt,It=/^\d+|^\D+/;;){if(!St)return Dt?-1:0;if(!Dt)return 1;if($t=St.match(It)[0],mt=Dt.match(It)[0],Ft=!isNaN($t),Xt=!isNaN(mt),Ft&&!Xt)return-1;if(Xt&&!Ft)return 1;if(Ft&&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 Jn=wt().parse(Rn);return Et(Jn,function(Nn){Nn.attrs&&Nn.attrs.class&&(Nn.attrs.class=Qn(Nn.attrs.class))}),wt().stringify(Jn)}catch{return Qn(Rn)}return Qn(Rn)}}function Et(ln,mn){for(var Qn=0,Rn=ln.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,Rn=(0,at.Z)(ln);if(mn){var Jn=(0,at.Z)(this).constructor;Qn=Reflect.construct(Rn,arguments,Jn)}else Qn=Rn.apply(this,arguments);return(0,ot.Z)(this,Qn)}}var _n,Bn=function(ln){(0,nt.Z)(Qn,ln);var mn=jn(Qn);function Qn(Rn,Jn){var Nn,ar=Jn.compName,Xn=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,qn=Xn===void 0?"light":Xn;return(0,et.Z)(this,Qn),(Nn=mn.call(this)).subComponents=[],Nn.compName=ar,Nn.c=At(ar),Nn.options={},Nn.container=Rn,Nn.$container=ht()(Rn),Nn.$container.addClass(["luna-".concat(ar),Nn.c("platform-".concat(Lt()))]),Nn.on("optionChange",function(fr,cr,pr){var xr=Nn.c;fr==="theme"&&(Nn.$container.rmClass(xr("theme-".concat(pr))).addClass(xr("theme-".concat(cr))),Zt()(Nn.subComponents,function(kr){return kr.setOption("theme",cr)}))}),Nn.setOption("theme",qn),Nn}return(0,tt.Z)(Qn,[{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,Jn){var Nn=this,ar=this.options,Xn={};typeof Rn=="string"?Xn[Rn]=Jn:Xn=Rn,Zt()(Xn,function(qn,fr){var cr=ar[fr];ar[fr]=qn,Nn.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(Jn){return Jn===Rn})}},{key:"destroySubComponents",value:function(){Zt()(this.subComponents,function(Rn){return Rn.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(Rn){var Jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Vt()(Rn,Jn),nn()(this.options,Rn)}},{key:"find",value:function(Rn){return this.$container.find(this.c(Rn))}}]),Qn}(dt()),Yn=d(8613),dn=d.n(Yn),An=d(5972),yn=d.n(An),On=d(1907),kn=d.n(On),vn=d(1352),En=d.n(vn),gn=d(2289),Ln=d.n(gn),Dn=d(3651),Un=d.n(Dn),Sn=d(7756),Zn=d.n(Sn),wn=d(8901),Wn=d.n(wn),Fn=d(1672),zn=d.n(Fn);function Tn(ln,mn){var Qn=Object.keys(ln);if(Object.getOwnPropertySymbols){var Rn=Object.getOwnPropertySymbols(ln);mn&&(Rn=Rn.filter(function(Jn){return Object.getOwnPropertyDescriptor(ln,Jn).enumerable})),Qn.push.apply(Qn,Rn)}return Qn}function Kt(ln){for(var mn=1;mn"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,Rn=(0,at.Z)(ln);if(mn){var Jn=(0,at.Z)(this).constructor;Qn=Reflect.construct(Rn,arguments,Jn)}else Qn=Rn.apply(this,arguments);return(0,ot.Z)(this,Qn)}}b=d.hmd(b);var pt={comment:"",string:"",number:"",keyword:"",operator:""},yt=function(ln){(0,nt.Z)(Qn,ln);var mn=bt(Qn);function Qn(Rn){var Jn,Nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,et.Z)(this,Qn),(Jn=mn.call(this,Rn,{compName:"dom-viewer"},Nn)).isExpanded=!1,Jn.childNodes=[],Jn.childNodeDomViewers=[],Jn.toggle=function(){Jn.isExpanded?Jn.collapse():Jn.expand()},Jn.initOptions(Nn,{node:document.documentElement,parent:null,isEndTag:!1,rootContainer:Rn,rootDomViewer:(0,rt.Z)(Jn),ignore:function(){return!1}}),Jn.initTpl(),Jn.bindEvent(),Jn.options.isEndTag||Jn.initObserver(),Jn}return(0,tt.Z)(Qn,[{key:"select",value:function(Rn){var Jn=this.c,Nn=this.options;if(!Rn||Rn&&Nn.node===Rn)return this.$tag.hasClass(Jn("selected"))?void 0:(ht()(this.options.rootContainer).find(Jn(".selected")).rmClass(Jn("selected")).rmAttr("tabindex"),this.$tag.attr("tabindex","0").get(0).focus(),this.$tag.addClass(Jn("selected")),void Nn.rootDomViewer.emit("select",Nn.node));if(Rn.nodeType===Node.ELEMENT_NODE)for(var ar=Rn,Xn=Rn.parentElement;Xn;){if(Xn===Nn.node){this.expand(),this.childNodeDomViewers[this.childNodes.indexOf(ar)].select(Rn);break}ar=Xn,Xn=Xn.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,Jn=this.c,Nn=this.options.node;Rn.html(this.renderHtmlTag(Kt(Kt({},Ut(Nn)),{},{hasTail:!1,hasToggleButton:!0}))),Rn.addClass(Jn("expanded")),this.$children.rmClass(Jn("hidden"))}},{key:"renderCollapseTag",value:function(){var Rn=this.$tag,Jn=this.c,Nn=this.options.node;this.$children.addClass(Jn("hidden")),this.$tag.html(this.renderHtmlTag(Kt(Kt({},Ut(Nn)),{},{hasTail:!0,hasToggleButton:!0}))),Rn.rmClass(Jn("expanded"))}},{key:"initObserver",value:function(){var Rn=this;this.observer=new(Ln())(function(Jn){Zt()(Jn,function(Nn){Rn.handleMutation(Nn)})}),this.observer.observe(this.options.node,{attributes:!0,childList:!0,characterData:!0})}},{key:"handleMutation",value:function(Rn){var Jn=this.$tag,Nn=this.c,ar=this.options,Xn=ar.node,qn=ar.ignore;if(kt()(["attributes","childList"],Rn.type)){if(Rn.type==="childList"){if(zn()(Rn.addedNodes,qn)&&zn()(Rn.removedNodes,qn))return;this.renderChildNodes()}this.isExpandable()?this.isExpanded?this.renderExpandTag():this.renderCollapseTag():(this.$children.addClass(Nn("hidden")),Jn.html(this.renderHtmlTag(Kt(Kt({},Ut(Xn)),{},{hasTail:!1}))))}else Rn.type==="characterData"&&(Xn.nodeType===Node.TEXT_NODE?Jn.html(this.renderTextNode(Xn)):Xn.nodeType===Node.COMMENT_NODE&&Jn.html(this.renderHtmlComment(Xn.nodeValue)))}},{key:"bindEvent",value:function(){var Rn=this,Jn=this.c,Nn=this.$tag;this.options.node.nodeType===Node.ELEMENT_NODE&&Nn.on("click",Jn(".toggle"),function(ar){ar.stopPropagation(),Rn.toggle()}),jt?Nn.on("click",function(){return Rn.select()}):Nn.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,Jn=Rn.rootContainer,Nn=Rn.ignore,ar=this.options.node,Xn=En()(ar.childNodes);return Xn=yn()(Xn,function(qn){if(qn.nodeType===Node.TEXT_NODE||qn.nodeType===Node.COMMENT_NODE){var fr=qn.nodeValue;if(gt()(fr)==="")return!1}return qn!==Jn&&!Nn(qn)})}},{key:"initTpl",value:function(){var Rn=this.container,Jn=this.c,Nn=this.options,ar=Nn.node,Xn=Nn.isEndTag,qn=ht()(dn()("li"));if(qn.addClass(Jn("tree-item")),this.$tag=qn,Xn)qn.html(Jn('</'.concat(ar.tagName.toLocaleLowerCase(),'>')));else if(ar.nodeType===Node.ELEMENT_NODE){var fr=this.isExpandable(),cr=Kt(Kt({},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([Jn("children"),Jn("hidden")]),Rn.appendChild(xr.get(0)),this.$children=xr}}},{key:"renderChildNodes",value:function(){var Rn=this,Jn=this.options.node,Nn=this.options,ar=Nn.rootContainer,Xn=Nn.ignore,qn=Nn.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 Qn(fr,{node:Tr,parent:Rn,rootContainer:ar,rootDomViewer:qn,ignore:Xn})).attach(),kr[Br]=Rr,Rn.addSubComponent(Rr)}),Zt()(pr,function(Tr){Tr.isAttached()||Tr.destroy()}),Jn&&(this.endTagDomViewer?this.endTagDomViewer.attach():(this.endTagDomViewer=new Qn(fr,{node:Jn,parent:this,isEndTag:!0,rootContainer:ar,rootDomViewer:qn,ignore:Xn}),this.addSubComponent(this.endTagDomViewer)))}},{key:"renderHtmlTag",value:function(Rn){var Jn=lt()(Rn.attributes,function(Xn){var qn=Xn.name,fr=Xn.value,cr=Xn.isLink;return` + `])))))}}]),$t}(En),Zr=function(){function St(Dt,$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(Dt.c("node")),this.dataGrid=Dt,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 Dt=this.data,$t=this.$container,mt=this.container,Ft=this.dataGrid.getOption("columns");$t.html(""),_n()(Ft,function(Xt){var It=Un()("td"),Nt=Dt[Xt.id];zn()(Nt)||(Wn()(Nt)?It.appendChild(Nt):It.innerText=Zn()(Nt)),mt.appendChild(It)})}}]),St}();function mo(St,Dt){if(St=Zn()(St),Dt=Zn()(Dt),Ut()(St,"_")&&!Ut()(Dt,"_"))return 1;if(Ut()(Dt,"_")&&!Ut()(St,"_"))return-1;for(var $t,mt,Ft,Xt,It=/^\d+|^\D+/;;){if(!St)return Dt?-1:0;if(!Dt)return 1;if($t=St.match(It)[0],mt=Dt.match(It)[0],Ft=!isNaN($t),Xt=!isNaN(mt),Ft&&!Xt)return-1;if(Xt&&!Ft)return 1;if(Ft&&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 Jn=wt().parse(Rn);return Et(Jn,function(Nn){Nn.attrs&&Nn.attrs.class&&(Nn.attrs.class=Qn(Nn.attrs.class))}),wt().stringify(Jn)}catch{return Qn(Rn)}return Qn(Rn)}}function Et(ln,mn){for(var Qn=0,Rn=ln.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,Rn=(0,at.Z)(ln);if(mn){var Jn=(0,at.Z)(this).constructor;Qn=Reflect.construct(Rn,arguments,Jn)}else Qn=Rn.apply(this,arguments);return(0,ot.Z)(this,Qn)}}var _n,Bn=function(ln){(0,nt.Z)(Qn,ln);var mn=On(Qn);function Qn(Rn,Jn){var Nn,ar=Jn.compName,Xn=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,qn=Xn===void 0?"light":Xn;return(0,et.Z)(this,Qn),(Nn=mn.call(this)).subComponents=[],Nn.compName=ar,Nn.c=At(ar),Nn.options={},Nn.container=Rn,Nn.$container=ht()(Rn),Nn.$container.addClass(["luna-".concat(ar),Nn.c("platform-".concat(Lt()))]),Nn.on("optionChange",function(fr,cr,pr){var xr=Nn.c;fr==="theme"&&(Nn.$container.rmClass(xr("theme-".concat(pr))).addClass(xr("theme-".concat(cr))),Zt()(Nn.subComponents,function(kr){return kr.setOption("theme",cr)}))}),Nn.setOption("theme",qn),Nn}return(0,tt.Z)(Qn,[{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,Jn){var Nn=this,ar=this.options,Xn={};typeof Rn=="string"?Xn[Rn]=Jn:Xn=Rn,Zt()(Xn,function(qn,fr){var cr=ar[fr];ar[fr]=qn,Nn.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(Jn){return Jn===Rn})}},{key:"destroySubComponents",value:function(){Zt()(this.subComponents,function(Rn){return Rn.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(Rn){var Jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Vt()(Rn,Jn),nn()(this.options,Rn)}},{key:"find",value:function(Rn){return this.$container.find(this.c(Rn))}}]),Qn}(dt()),Yn=d(8613),dn=d.n(Yn),An=d(5972),yn=d.n(An),jn=d(1907),kn=d.n(jn),vn=d(1352),En=d.n(vn),gn=d(2289),Ln=d.n(gn),Dn=d(3651),Un=d.n(Dn),Sn=d(7756),Zn=d.n(Sn),wn=d(8901),Wn=d.n(wn),Fn=d(1672),zn=d.n(Fn);function Tn(ln,mn){var Qn=Object.keys(ln);if(Object.getOwnPropertySymbols){var Rn=Object.getOwnPropertySymbols(ln);mn&&(Rn=Rn.filter(function(Jn){return Object.getOwnPropertyDescriptor(ln,Jn).enumerable})),Qn.push.apply(Qn,Rn)}return Qn}function Kt(ln){for(var mn=1;mn"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,Rn=(0,at.Z)(ln);if(mn){var Jn=(0,at.Z)(this).constructor;Qn=Reflect.construct(Rn,arguments,Jn)}else Qn=Rn.apply(this,arguments);return(0,ot.Z)(this,Qn)}}b=d.hmd(b);var pt={comment:"",string:"",number:"",keyword:"",operator:""},yt=function(ln){(0,nt.Z)(Qn,ln);var mn=bt(Qn);function Qn(Rn){var Jn,Nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,et.Z)(this,Qn),(Jn=mn.call(this,Rn,{compName:"dom-viewer"},Nn)).isExpanded=!1,Jn.childNodes=[],Jn.childNodeDomViewers=[],Jn.toggle=function(){Jn.isExpanded?Jn.collapse():Jn.expand()},Jn.initOptions(Nn,{node:document.documentElement,parent:null,isEndTag:!1,rootContainer:Rn,rootDomViewer:(0,rt.Z)(Jn),ignore:function(){return!1}}),Jn.initTpl(),Jn.bindEvent(),Jn.options.isEndTag||Jn.initObserver(),Jn}return(0,tt.Z)(Qn,[{key:"select",value:function(Rn){var Jn=this.c,Nn=this.options;if(!Rn||Rn&&Nn.node===Rn)return this.$tag.hasClass(Jn("selected"))?void 0:(ht()(this.options.rootContainer).find(Jn(".selected")).rmClass(Jn("selected")).rmAttr("tabindex"),this.$tag.attr("tabindex","0").get(0).focus(),this.$tag.addClass(Jn("selected")),void Nn.rootDomViewer.emit("select",Nn.node));if(Rn.nodeType===Node.ELEMENT_NODE)for(var ar=Rn,Xn=Rn.parentElement;Xn;){if(Xn===Nn.node){this.expand(),this.childNodeDomViewers[this.childNodes.indexOf(ar)].select(Rn);break}ar=Xn,Xn=Xn.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,Jn=this.c,Nn=this.options.node;Rn.html(this.renderHtmlTag(Kt(Kt({},Ut(Nn)),{},{hasTail:!1,hasToggleButton:!0}))),Rn.addClass(Jn("expanded")),this.$children.rmClass(Jn("hidden"))}},{key:"renderCollapseTag",value:function(){var Rn=this.$tag,Jn=this.c,Nn=this.options.node;this.$children.addClass(Jn("hidden")),this.$tag.html(this.renderHtmlTag(Kt(Kt({},Ut(Nn)),{},{hasTail:!0,hasToggleButton:!0}))),Rn.rmClass(Jn("expanded"))}},{key:"initObserver",value:function(){var Rn=this;this.observer=new(Ln())(function(Jn){Zt()(Jn,function(Nn){Rn.handleMutation(Nn)})}),this.observer.observe(this.options.node,{attributes:!0,childList:!0,characterData:!0})}},{key:"handleMutation",value:function(Rn){var Jn=this.$tag,Nn=this.c,ar=this.options,Xn=ar.node,qn=ar.ignore;if(kt()(["attributes","childList"],Rn.type)){if(Rn.type==="childList"){if(zn()(Rn.addedNodes,qn)&&zn()(Rn.removedNodes,qn))return;this.renderChildNodes()}this.isExpandable()?this.isExpanded?this.renderExpandTag():this.renderCollapseTag():(this.$children.addClass(Nn("hidden")),Jn.html(this.renderHtmlTag(Kt(Kt({},Ut(Xn)),{},{hasTail:!1}))))}else Rn.type==="characterData"&&(Xn.nodeType===Node.TEXT_NODE?Jn.html(this.renderTextNode(Xn)):Xn.nodeType===Node.COMMENT_NODE&&Jn.html(this.renderHtmlComment(Xn.nodeValue)))}},{key:"bindEvent",value:function(){var Rn=this,Jn=this.c,Nn=this.$tag;this.options.node.nodeType===Node.ELEMENT_NODE&&Nn.on("click",Jn(".toggle"),function(ar){ar.stopPropagation(),Rn.toggle()}),Ot?Nn.on("click",function(){return Rn.select()}):Nn.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,Jn=Rn.rootContainer,Nn=Rn.ignore,ar=this.options.node,Xn=En()(ar.childNodes);return Xn=yn()(Xn,function(qn){if(qn.nodeType===Node.TEXT_NODE||qn.nodeType===Node.COMMENT_NODE){var fr=qn.nodeValue;if(gt()(fr)==="")return!1}return qn!==Jn&&!Nn(qn)})}},{key:"initTpl",value:function(){var Rn=this.container,Jn=this.c,Nn=this.options,ar=Nn.node,Xn=Nn.isEndTag,qn=ht()(dn()("li"));if(qn.addClass(Jn("tree-item")),this.$tag=qn,Xn)qn.html(Jn('</'.concat(ar.tagName.toLocaleLowerCase(),'>')));else if(ar.nodeType===Node.ELEMENT_NODE){var fr=this.isExpandable(),cr=Kt(Kt({},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([Jn("children"),Jn("hidden")]),Rn.appendChild(xr.get(0)),this.$children=xr}}},{key:"renderChildNodes",value:function(){var Rn=this,Jn=this.options.node,Nn=this.options,ar=Nn.rootContainer,Xn=Nn.ignore,qn=Nn.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 Qn(fr,{node:Tr,parent:Rn,rootContainer:ar,rootDomViewer:qn,ignore:Xn})).attach(),kr[Br]=Rr,Rn.addSubComponent(Rr)}),Zt()(pr,function(Tr){Tr.isAttached()||Tr.destroy()}),Jn&&(this.endTagDomViewer?this.endTagDomViewer.attach():(this.endTagDomViewer=new Qn(fr,{node:Jn,parent:this,isEndTag:!0,rootContainer:ar,rootDomViewer:qn,ignore:Xn}),this.addSubComponent(this.endTagDomViewer)))}},{key:"renderHtmlTag",value:function(Rn){var Jn=lt()(Rn.attributes,function(Xn){var qn=Xn.name,fr=Xn.value,cr=Xn.isLink;return` `.concat(Wn()(qn),"").concat(fr?'="').concat(Wn()(fr),'"'):"","")}).join(""),Nn="";Rn.hasTail?Nn="".concat(Rn.hasTail?"…":"",'</').concat(Rn.tagName,">"):this.isExpandable()||(Nn='</'.concat(Rn.tagName,">"));var ar="";return Rn.hasToggleButton&&(ar='
'),this.c(kn()(_n||(_n=(0,j.Z)([` `,` <`,"",">",` `])),ar,Rn.tagName,Jn,Nn))}},{key:"renderTextNode",value:function(Rn){var Jn=this.c,Nn=Rn.nodeValue,ar=Rn.parentElement,Xn='',qn='';if(ar&&Nn.length<1e4){if(ar.tagName==="STYLE")return Jn("".concat(Xn).concat(Un()(Nn,"css",pt)).concat(qn));if(ar.tagName==="SCRIPT")return Jn("".concat(Xn).concat(Un()(Nn,"js",pt)).concat(qn))}return Jn('"'.concat(Xn).concat(Wn()(Zn()(Nn,1e4,{separator:" ",ellipsis:"…"}))).concat(qn,'"'))}},{key:"renderHtmlComment",value:function(Rn){return this.c('<!-- '.concat(Wn()(Rn),' -->'))}}]),Qn}(Bn);function Ut(ln){var mn={tagName:"",attributes:[]};mn.tagName=ln.tagName.toLocaleLowerCase();var Qn=[];return Zt()(ln.attributes,function(Rn){var Jn=Rn.name,Nn=Rn.value;Qn.push({name:Jn,value:Nn,isLink:sn(ln,Jn)})}),mn.attributes=Qn,mn}function sn(ln,mn){var Qn=ln.tagName;return(Qn==="SCRIPT"||Qn==="IMAGE"||Qn==="VIDEO"||Qn==="AUDIO")&&mn==="src"||Qn==="LINK"&&mn==="href"}(0,k.Z)(b)!==void 0&&function(ln,mn){try{ln.exports=mn,ln.exports.default=mn}catch{}}(b,yt)},129:function(b,_,d){d.d(_,{Z:function(){return vn}});var k=d(907),j=d(181);function $(Sn){return function(Zn){if(Array.isArray(Zn))return(0,k.Z)(Zn)}(Sn)||function(Zn){if(typeof Symbol<"u"&&Zn[Symbol.iterator]!=null||Zn["@@iterator"]!=null)return Array.from(Zn)}(Sn)||(0,j.Z)(Sn)||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 jt(Sn){var Zn="luna-".concat(Sn,"-");function wn(Wn){return gt()(Ct()(Wn).split(/\s+/),function(Fn){return Tt()(Fn,Zn)?Fn:Fn.replace(/[\w-]+/,function(zn){return"".concat(Zn).concat(zn)})}).join(" ")}return function(Wn){if(/<[^>]*>/g.test(Wn))try{var Fn=kt().parse(Wn);return Lt(Fn,function(zn){zn.attrs&&zn.attrs.class&&(zn.attrs.class=wn(zn.attrs.class))}),kt().stringify(Fn)}catch{return wn(Wn)}return wn(Wn)}}function Lt(Sn,Zn){for(var wn=0,Wn=Sn.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,Wn=(0,dt.Z)(Sn);if(Zn){var Fn=(0,dt.Z)(this).constructor;wn=Reflect.construct(Wn,arguments,Fn)}else wn=Wn.apply(this,arguments);return(0,it.Z)(this,wn)}}var Bn,Yn=function(Sn){(0,at.Z)(wn,Sn);var Zn=_n(wn);function wn(Wn,Fn){var zn,Tn=Fn.compName,Kt=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,bt=Kt===void 0?"light":Kt;return(0,tt.Z)(this,wn),(zn=Zn.call(this)).subComponents=[],zn.compName=Tn,zn.c=jt(Tn),zn.options={},zn.container=Wn,zn.$container=lt()(Wn),zn.$container.addClass(["luna-".concat(Tn),zn.c("platform-".concat(Bt()))]),zn.on("optionChange",function(pt,yt,Ut){var sn=zn.c;pt==="theme"&&(zn.$container.rmClass(sn("theme-".concat(Ut))).addClass(sn("theme-".concat(yt))),rn()(zn.subComponents,function(ln){return ln.setOption("theme",yt)}))}),zn.setOption("theme",bt),zn}return(0,rt.Z)(wn,[{key:"destroy",value:function(){this.destroySubComponents();var Wn=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(Wn("platform-".concat(Bt()))).rmClass(Wn("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(Wn,Fn){var zn=this,Tn=this.options,Kt={};typeof Wn=="string"?Kt[Wn]=Fn:Kt=Wn,rn()(Kt,function(bt,pt){var yt=Tn[pt];Tn[pt]=bt,zn.emit("optionChange",pt,bt,yt)})}},{key:"getOption",value:function(Wn){return this.options[Wn]}},{key:"addSubComponent",value:function(Wn){Wn.setOption("theme",this.options.theme),this.subComponents.push(Wn)}},{key:"removeSubComponent",value:function(Wn){jn()(this.subComponents,function(Fn){return Fn===Wn})}},{key:"destroySubComponents",value:function(){rn()(this.subComponents,function(Wn){return Wn.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(Wn){var Fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};fn()(Wn,Fn),Qt()(this.options,Wn)}},{key:"find",value:function(Wn){return this.$container.find(this.c(Wn))}}]),wn}(ht()),dn=d(1907),An=d.n(dn),yn=d(8613),On=d.n(yn);function kn(Sn){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,Wn=(0,dt.Z)(Sn);if(Zn){var Fn=(0,dt.Z)(this).constructor;wn=Reflect.construct(Wn,arguments,Fn)}else wn=Wn.apply(this,arguments);return(0,it.Z)(this,wn)}}b=d.hmd(b);var vn=function(Sn){(0,at.Z)(wn,Sn);var Zn=kn(wn);function wn(Wn){var Fn,zn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,tt.Z)(this,wn),(Fn=Zn.call(this,Wn,{compName:"modal"},zn)).hide=function(){Fn.$container.addClass(Fn.c("hidden"))},Fn.render=function(){var Tn=(0,nt.Z)(Fn),Kt=Tn.options,bt=Tn.c,pt=Tn.$body;Kt.title?(pt.rmClass(bt("no-title")),Fn.$title.text(Kt.title)):pt.addClass(bt("no-title")),Kt.footer?(pt.rmClass(bt("no-footer")),Fn.$footer.html("").append(Kt.footer)):pt.addClass(bt("no-footer")),Kt.showClose?Fn.$close.show():Fn.$close.hide(),Fn.$body.css("width",Kt.width+"px"),Fn.$content.html("").append(Kt.content)},Fn.hide(),Fn.initOptions(zn,{title:"",content:"",footer:"",showClose:!0,width:Un()}),Fn.initTpl(),Fn.$title=Fn.find(".title"),Fn.$content=Fn.find(".content"),Fn.$body=Fn.find(".body"),Fn.$footer=Fn.find(".footer"),Fn.$close=Fn.find(".icon-close"),Fn.bindEvent(),Fn}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)([` +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(Sn){var Zn="luna-".concat(Sn,"-");function wn(Wn){return gt()(Ct()(Wn).split(/\s+/),function(Fn){return Tt()(Fn,Zn)?Fn:Fn.replace(/[\w-]+/,function(zn){return"".concat(Zn).concat(zn)})}).join(" ")}return function(Wn){if(/<[^>]*>/g.test(Wn))try{var Fn=kt().parse(Wn);return Lt(Fn,function(zn){zn.attrs&&zn.attrs.class&&(zn.attrs.class=wn(zn.attrs.class))}),kt().stringify(Fn)}catch{return wn(Wn)}return wn(Wn)}}function Lt(Sn,Zn){for(var wn=0,Wn=Sn.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,Wn=(0,dt.Z)(Sn);if(Zn){var Fn=(0,dt.Z)(this).constructor;wn=Reflect.construct(Wn,arguments,Fn)}else wn=Wn.apply(this,arguments);return(0,it.Z)(this,wn)}}var Bn,Yn=function(Sn){(0,at.Z)(wn,Sn);var Zn=_n(wn);function wn(Wn,Fn){var zn,Tn=Fn.compName,Kt=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,bt=Kt===void 0?"light":Kt;return(0,tt.Z)(this,wn),(zn=Zn.call(this)).subComponents=[],zn.compName=Tn,zn.c=Ot(Tn),zn.options={},zn.container=Wn,zn.$container=lt()(Wn),zn.$container.addClass(["luna-".concat(Tn),zn.c("platform-".concat(Bt()))]),zn.on("optionChange",function(pt,yt,Ut){var sn=zn.c;pt==="theme"&&(zn.$container.rmClass(sn("theme-".concat(Ut))).addClass(sn("theme-".concat(yt))),rn()(zn.subComponents,function(ln){return ln.setOption("theme",yt)}))}),zn.setOption("theme",bt),zn}return(0,rt.Z)(wn,[{key:"destroy",value:function(){this.destroySubComponents();var Wn=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(Wn("platform-".concat(Bt()))).rmClass(Wn("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(Wn,Fn){var zn=this,Tn=this.options,Kt={};typeof Wn=="string"?Kt[Wn]=Fn:Kt=Wn,rn()(Kt,function(bt,pt){var yt=Tn[pt];Tn[pt]=bt,zn.emit("optionChange",pt,bt,yt)})}},{key:"getOption",value:function(Wn){return this.options[Wn]}},{key:"addSubComponent",value:function(Wn){Wn.setOption("theme",this.options.theme),this.subComponents.push(Wn)}},{key:"removeSubComponent",value:function(Wn){On()(this.subComponents,function(Fn){return Fn===Wn})}},{key:"destroySubComponents",value:function(){rn()(this.subComponents,function(Wn){return Wn.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(Wn){var Fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};fn()(Wn,Fn),Qt()(this.options,Wn)}},{key:"find",value:function(Wn){return this.$container.find(this.c(Wn))}}]),wn}(ht()),dn=d(1907),An=d.n(dn),yn=d(8613),jn=d.n(yn);function kn(Sn){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,Wn=(0,dt.Z)(Sn);if(Zn){var Fn=(0,dt.Z)(this).constructor;wn=Reflect.construct(Wn,arguments,Fn)}else wn=Wn.apply(this,arguments);return(0,it.Z)(this,wn)}}b=d.hmd(b);var vn=function(Sn){(0,at.Z)(wn,Sn);var Zn=kn(wn);function wn(Wn){var Fn,zn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,tt.Z)(this,wn),(Fn=Zn.call(this,Wn,{compName:"modal"},zn)).hide=function(){Fn.$container.addClass(Fn.c("hidden"))},Fn.render=function(){var Tn=(0,nt.Z)(Fn),Kt=Tn.options,bt=Tn.c,pt=Tn.$body;Kt.title?(pt.rmClass(bt("no-title")),Fn.$title.text(Kt.title)):pt.addClass(bt("no-title")),Kt.footer?(pt.rmClass(bt("no-footer")),Fn.$footer.html("").append(Kt.footer)):pt.addClass(bt("no-footer")),Kt.showClose?Fn.$close.show():Fn.$close.hide(),Fn.$body.css("width",Kt.width+"px"),Fn.$content.html("").append(Kt.content)},Fn.hide(),Fn.initOptions(zn,{title:"",content:"",footer:"",showClose:!0,width:Un()}),Fn.initTpl(),Fn.$title=Fn.find(".title"),Fn.$content=Fn.find(".content"),Fn.$body=Fn.find(".body"),Fn.$footer=Fn.find(".footer"),Fn.$close=Fn.find(".icon-close"),Fn.bindEvent(),Fn}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(Wn){var Fn=Ln(),zn=Fn.c;Fn.setOption({title:"",content:Wn,width:Un(),footer:Dn({OK:{type:"primary",onclick:function(){Fn.hide()}}},zn)}),Fn.show()}},{key:"confirm",value:function(Wn){return new Promise(function(Fn){var zn=Ln(),Tn=zn.c;zn.setOption({title:"",content:Wn,width:Un(),footer:Dn({Cancel:{type:"secondary",onclick:function(){zn.hide(),Fn(!1)}},OK:{type:"primary",onclick:function(){zn.hide(),Fn(!0)}}},Tn)}),zn.show()})}},{key:"prompt",value:function(){var Wn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return new Promise(function(zn){var Tn=Ln(),Kt=Tn.c,bt=On()("input"+Kt(".input"),{value:Fn});function pt(){Tn.hide(),zn(bt.value)}lt()(bt).on("keypress",function(Ut){(Ut=Ut.origEvent).key==="Enter"&&pt()}),Tn.setOption({title:Wn,content:bt,width:Un(),footer:Dn({Cancel:{type:"secondary",onclick:function(){Tn.hide(),zn(null)}},OK:{type:"primary",onclick:pt}},Kt)}),Tn.show();var yt=bt.value.length;bt.setSelectionRange(yt,yt),bt.focus()})}},{key:"setContainer",value:function(Wn){gn=Wn}}]),wn}(Yn),En=null,gn=null;function Ln(){return gn||(gn=On()("div"),document.body.append(gn)),En||(En=new vn(gn,{showClose:!1})),En}function Dn(Sn,Zn){var wn=gt()(Sn,function(Wn,Fn){return On()(Zn(".button")+Zn("."+Wn.type),{onclick:Wn.onclick},Fn)});return On().apply(void 0,[Zn(".button-group"),{}].concat($(wn)))}function Un(){return window.innerWidth<500?window.innerWidth-32:500}(function(Sn,Zn){try{Sn.exports=Zn,Sn.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),jt=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),jn=d.n(In),_n=d(6768),Bn=d.n(_n),Yn=d(1116),dn=d.n(Yn),An=d(5972),yn=d.n(An),On=d(996),kn=d.n(On),vn=d(3367),En=d.n(vn),gn=d(1214),Ln=d.n(gn),Dn=d(7658),Un=d.n(Dn),Sn=d(6329),Zn=d.n(Sn),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)+"..."),"ƒ "+Fn()(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),sn=d(5229),ln=d.n(sn),mn=d(3875),Qn=d.n(mn),Rn=d(9433),Jn=d.n(Rn),Nn=d(1443),ar=d.n(Nn),Xn=d(2461),qn=d.n(Xn),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()(Fn()(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 Ft=function(Pt){(0,rt.Z)(un,Pt);var hn=mt(un);function un(tn,Gt){var xn,Gn=Gt.compName,er=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,tr=er===void 0?"light":er;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,rr){var ur=xn.c;ir==="theme"&&(xn.$container.rmClass(ur("theme-".concat(rr))).addClass(ur("theme-".concat(Kn))),At()(xn.subComponents,function(or){return or.setOption("theme",Kn)}))}),xn.setOption("theme",tr),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,er={};typeof tn=="string"?er[tn]=Gt:er=tn,At()(er,function(tr,ir){var Kn=Gn[ir];Gn[ir]=tr,xn.emit("optionChange",ir,tr,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),er=Gn.map,tr=Gn.c,ir=Qt()(xn.curTarget),Kn=ir.data("object-id"),rr=ir.find("span").eq(0);if(!ir.data("first-level")&&(Kn&&(ir.find("ul").html(Gt.objToHtml(er[Kn],!1)),ir.rmAttr("data-object-id")),xn.stopImmediatePropagation(),rr.hasClass(tr("expanded")))){var ur=ir.find("ul").eq(0);rr.hasClass(tr("collapsed"))?(rr.rmClass(tr("collapsed")),ur.show()):(rr.addClass(tr("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:ln()("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(er){if(tn[er]){var tr=_t()(tn[er]);Un()(tr);for(var ir=0,Kn=tr.length;ir3&&arguments[3]!==void 0&&arguments[3],er=this.c,tr=(0,k.Z)(Gt);if(Gt===null)return"
  • ".concat(yr(tn),'null
  • ');if(ut()(Gt)||ft()(Gt))return"
  • ".concat(yr(tn),'').concat(Kt(Gt),"
  • ");if(Gt.type==="RegExp"&&(tr="regexp"),Gt.type==="Number"&&(tr="number"),Gt.type==="Number"||Gt.type==="RegExp")return"
  • ".concat(yr(tn),'').concat(Kt(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,rr=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()(tr),ur=Gn?"":''),or="
  • ").concat(ur).concat(yr(tn),'').concat(Gn?"":rr,'
      ");return Gn&&(or+=this.objToHtml(this.map[ir])),or+'
  • ')}function yr(mr){if(Gn||st()(Gt)&&Gt.jsonSplitArr)return"";var Pn=er("key");return xn==="unenumerable"||xn==="symbol"?Pn=er("key-lighter"):xn==="proto"&&(Pn=er("key-special")),'').concat(Kt(mr),": ")}return Bn()(Gt)&&Gt.length>1e4&&(Gt=jn()(Gt,50,{separator:" ",ellipsis:"…"})),"
  • ".concat(yr(tn),'"').concat(Kt(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}(Ft);function Nt(Pt,hn){var un=hn.id;if(un||un===0){if(hn.type&&Ut()(hn.type,"Array")&&hn.enumerable){var tn=function(tr,ir,Kn){var rr=[],ur={};return At()(tr.enumerable,function(or,yr){var mr=Qn()(yr);Jn()(mr)?ur[yr]=or:rr[mr]=or}),rr.enumerable=ur,rr.type=Kn,rr.id=ir,tr.unenumerable&&(rr.unenumerable=tr.unenumerable),tr.symbol&&(rr.symbol=tr.symbol),tr.proto&&(rr.proto=tr.proto),rr}(hn,un,hn.type);tn.length>100&&(hn=function(tr){var ir=0,Kn={};At()(kn()(tr,100),function(ur){var or={},yr=ir;or.type="["+yr,or.enumerable={},At()(ur,function(Pn){or.enumerable[ir]=Pn,ir+=1});var mr=ir-1;or.type+=(mr-yr>0?" … "+mr:"")+"]",or.id=ln()("json"),or.jsonSplitArr=!0,Kn[ir]=or});var rr={};return rr.enumerable=Kn,rr.id=tr.id,rr.type=tr.type,tr.unenumerable&&(rr.unenumerable=tr.unenumerable),tr.symbol&&(rr.symbol=tr.symbol),tr.proto&&(rr.proto=tr.proto),rr}(tn))}Pt[un]=hn;var Gt=[];At()(["enumerable","unenumerable","symbol"],function(tr){if(hn[tr])for(var ir in hn[tr])Gt.push(hn[tr][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 er=(0,et.Z)(Gt),tr=er.map,ir=er.c,Kn=Qt()(Gn.curTarget),rr=Kn.data("object-id"),ur=Kn.find("span").eq(0);if(!Kn.data("first-level")&&(rr&&(Kn.find("ul").html(Gt.objToHtml(tr[rr],!1)),Kn.rmAttr("data-object-id")),Gn.stopImmediatePropagation(),ur.hasClass(ir("expanded")))){var or=Kn.find("ul").eq(0);ur.hasClass(ir("collapsed"))?(ur.rmClass(ir("collapsed")),or.show()):(ur.addClass(ir("collapsed")),or.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,er=tn,tr=!1,ir=Gn.get(tn);ir&&ir.self&&(er=ir.self);var Kn="",rr=["enumerable"],ur=_t()(tn),or=[],yr=[],mr=[],Pn={};if(this.options.unenumerable&&!Gt&&(rr.push("unenumerable"),rr.push("symbol"),or=fn()(dn()(tn,{prototype:!1,unenumerable:!0}),ur),yr=yn()(dn()(tn,{prototype:!1,symbol:!0}),function(dr){return(0,k.Z)(dr)==="symbol"})),xt()(tn)&&tn.length>100){rr.unshift("virtual"),tr=!0;var Hn=0,hr={};At()(kn()(tn,100),function(dr){var Ar=Object.create(null),Mr=Hn,Or="["+Mr;At()(dr,function(pn){Ar[Hn]=pn,hr[Hn]=!0,Hn++});var Ir=Hn-1;Pn[Or+=(Ir-Mr>0?" … "+Ir:"")+"]"]=Ar}),mr=_t()(Pn),ur=yn()(ur,function(dr){return!hr[dr]})}At()(rr,function(dr){var Ar=[];Ar=dr==="symbol"?yr:dr==="unenumerable"?or:dr==="virtual"?mr:ur,tr||Un()(Ar);for(var Mr=0,Or=Ar.length;Mr4&&arguments[4]!==void 0&&arguments[4],tr=this.visitor,ir=this.c,Kn=(0,k.Z)(xn),rr=rn()(xn,!1);if(Gn==="virtual"&&(rr=tn),xn===null)return"
  • ".concat(hr(tn),'null
  • ');if(ut()(xn)||ft()(xn))return"
  • ".concat(hr(tn),'').concat(Kt(xn),"
  • ");if(rr==="RegExp"&&(Kn="regexp"),rr==="Number"&&(Kn="number"),rr==="Undefined"||rr==="Symbol")return"
  • ".concat(hr(tn),'').concat(ct()(rr),"
  • ");if(xn==="(...)")return"
  • ".concat(hr(tn),'').concat(xn,"
  • ");if(st()(xn)){var ur,or=tr.get(xn);if(or)ur=or.id;else{var yr={};Gn==="proto"&&(yr.self=Gt),ur=tr.set(xn,yr),this.map[ur]=xn}var mr="Object";mr=Kn==="regexp"?'').concat(Kt(xn)):Kt(function(lr,sr){if(sr)return sr==="Function"?bt(jt()(lr)):sr==="Array"?"Array(".concat(lr.length,")"):sr}(xn,rr)||Mt()(Kn));var Pn=er?"":''),Hn="
  • ").concat(Pn).concat(hr(tn),'').concat(er?"":mr,'
      ");return er&&(Hn+=this.objToHtml(xn)),Hn+'
  • ')}function hr(lr){if(er||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(Kt(lr),": ")}return Bn()(xn)&&xn.length>1e4&&(xn=jn()(xn,50,{separator:" ",ellipsis:"…"})),"
  • ".concat(hr(tn),'"').concat(Kt(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}(Ft);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),jt=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),jn=d.n(In),_n=d(6156),Bn=d.n(_n),Yn=d(3783),dn=d.n(Yn),An=d(1443),yn=d.n(An),On=d(5610),kn=d.n(On),vn=d(7483),En=d.n(vn),gn=(d(3990),d(6954)),Ln=d.n(gn);d(9585);function Dn(Nn){var ar="luna-".concat(Nn,"-");function Xn(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=Xn(cr.attrs.class))}),En().stringify(fr)}catch{return Xn(qn)}return Xn(qn)}}function Un(Nn,ar){for(var Xn=0,qn=Nn.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 Xn,qn=(0,rt.Z)(Nn);if(ar){var fr=(0,rt.Z)(this).constructor;Xn=Reflect.construct(qn,arguments,fr)}else Xn=qn.apply(this,arguments);return(0,tt.Z)(this,Xn)}}var Tn=function(Nn){(0,et.Z)(Xn,Nn);var ar=zn(Xn);function Xn(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,Xn),(cr=ar.call(this)).subComponents=[],cr.compName=pr,cr.c=Dn(pr),cr.options={},cr.container=qn,cr.$container=ot()(qn),cr.$container.addClass(["luna-".concat(pr),cr.c("platform-".concat(Sn()))]),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)(Xn,[{key:"destroy",value:function(){this.destroySubComponents();var qn=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(qn("platform-".concat(Sn()))).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){Fn()(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))}}]),Xn}(yn());function Kt(Nn){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 Xn,qn=(0,rt.Z)(Nn);if(ar){var fr=(0,rt.Z)(this).constructor;Xn=Reflect.construct(qn,arguments,fr)}else Xn=qn.apply(this,arguments);return(0,tt.Z)(this,Xn)}}b=d.hmd(b);var bt=function(Nn){(0,et.Z)(Xn,Nn);var ar=Kt(Xn);function Xn(qn){var fr,cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,j.Z)(this,Xn),(fr=ar.call(this,qn,{compName:"setting"},cr)).items=[],fr.selectedItem=null,fr.initOptions(cr,{separatorCollapse:!0,filter:""}),fr.bindEvent(),fr}return(0,$.Z)(Xn,[{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=jt()(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 ln(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 Jn(this,qn,fr,cr);return this.append(pr),pr}},{key:"appendInput",value:function(qn,fr,cr){var pr=new sn(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 Qn(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()(jn()(qn.text()),jn()(fr))}return!0}},{key:"append",value:function(qn){this.items.push(qn),this.filterItem(qn)&&this.$container.append(qn.container)}}]),Xn}(Tn),pt=function(){function Nn(ar,Xn,qn,fr){(0,j.Z)(this,Nn),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=Xn,this.value=qn}return(0,$.Z)(Nn,[{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}}]),Nn}(),yt=function(Nn){(0,et.Z)(Xn,Nn);var ar=Kt(Xn);function Xn(qn,fr){var cr;return(0,j.Z)(this,Xn),(cr=ar.call(this,qn,"","","title")).$container.text(fr),cr}return(0,$.Z)(Xn)}(pt),Ut=function(Nn){(0,et.Z)(Xn,Nn);var ar=Kt(Xn);function Xn(qn){return(0,j.Z)(this,Xn),ar.call(this,qn,"","","separator")}return(0,$.Z)(Xn)}(pt),sn=function(Nn){(0,et.Z)(Xn,Nn);var ar=Kt(Xn);function Xn(qn,fr,cr,pr,xr){var kr;(0,j.Z)(this,Xn),kr=ar.call(this,qn,fr,cr,"input");var Tr=qn.c;kr.$container.html('
    ').concat(ut()(pr),`
    + `])))))}}],[{key:"alert",value:function(Wn){var Fn=Ln(),zn=Fn.c;Fn.setOption({title:"",content:Wn,width:Un(),footer:Dn({OK:{type:"primary",onclick:function(){Fn.hide()}}},zn)}),Fn.show()}},{key:"confirm",value:function(Wn){return new Promise(function(Fn){var zn=Ln(),Tn=zn.c;zn.setOption({title:"",content:Wn,width:Un(),footer:Dn({Cancel:{type:"secondary",onclick:function(){zn.hide(),Fn(!1)}},OK:{type:"primary",onclick:function(){zn.hide(),Fn(!0)}}},Tn)}),zn.show()})}},{key:"prompt",value:function(){var Wn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return new Promise(function(zn){var Tn=Ln(),Kt=Tn.c,bt=jn()("input"+Kt(".input"),{value:Fn});function pt(){Tn.hide(),zn(bt.value)}lt()(bt).on("keypress",function(Ut){(Ut=Ut.origEvent).key==="Enter"&&pt()}),Tn.setOption({title:Wn,content:bt,width:Un(),footer:Dn({Cancel:{type:"secondary",onclick:function(){Tn.hide(),zn(null)}},OK:{type:"primary",onclick:pt}},Kt)}),Tn.show();var yt=bt.value.length;bt.setSelectionRange(yt,yt),bt.focus()})}},{key:"setContainer",value:function(Wn){gn=Wn}}]),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 Dn(Sn,Zn){var wn=gt()(Sn,function(Wn,Fn){return jn()(Zn(".button")+Zn("."+Wn.type),{onclick:Wn.onclick},Fn)});return jn().apply(void 0,[Zn(".button-group"),{}].concat($(wn)))}function Un(){return window.innerWidth<500?window.innerWidth-32:500}(function(Sn,Zn){try{Sn.exports=Zn,Sn.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),yn=d.n(An),jn=d(996),kn=d.n(jn),vn=d(3367),En=d.n(vn),gn=d(1214),Ln=d.n(gn),Dn=d(7658),Un=d.n(Dn),Sn=d(6329),Zn=d.n(Sn),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)+"..."),"ƒ "+Fn()(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),sn=d(5229),ln=d.n(sn),mn=d(3875),Qn=d.n(mn),Rn=d(9433),Jn=d.n(Rn),Nn=d(1443),ar=d.n(Nn),Xn=d(2461),qn=d.n(Xn),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()(Fn()(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 Ft=function(Pt){(0,rt.Z)(un,Pt);var hn=mt(un);function un(tn,Gt){var xn,Gn=Gt.compName,er=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,tr=er===void 0?"light":er;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,rr){var ur=xn.c;ir==="theme"&&(xn.$container.rmClass(ur("theme-".concat(rr))).addClass(ur("theme-".concat(Kn))),At()(xn.subComponents,function(or){return or.setOption("theme",Kn)}))}),xn.setOption("theme",tr),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,er={};typeof tn=="string"?er[tn]=Gt:er=tn,At()(er,function(tr,ir){var Kn=Gn[ir];Gn[ir]=tr,xn.emit("optionChange",ir,tr,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),er=Gn.map,tr=Gn.c,ir=Qt()(xn.curTarget),Kn=ir.data("object-id"),rr=ir.find("span").eq(0);if(!ir.data("first-level")&&(Kn&&(ir.find("ul").html(Gt.objToHtml(er[Kn],!1)),ir.rmAttr("data-object-id")),xn.stopImmediatePropagation(),rr.hasClass(tr("expanded")))){var ur=ir.find("ul").eq(0);rr.hasClass(tr("collapsed"))?(rr.rmClass(tr("collapsed")),ur.show()):(rr.addClass(tr("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:ln()("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(er){if(tn[er]){var tr=_t()(tn[er]);Un()(tr);for(var ir=0,Kn=tr.length;ir3&&arguments[3]!==void 0&&arguments[3],er=this.c,tr=(0,k.Z)(Gt);if(Gt===null)return"
  • ".concat(yr(tn),'null
  • ');if(ut()(Gt)||ft()(Gt))return"
  • ".concat(yr(tn),'').concat(Kt(Gt),"
  • ");if(Gt.type==="RegExp"&&(tr="regexp"),Gt.type==="Number"&&(tr="number"),Gt.type==="Number"||Gt.type==="RegExp")return"
  • ".concat(yr(tn),'').concat(Kt(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,rr=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()(tr),ur=Gn?"":''),or="
  • ").concat(ur).concat(yr(tn),'').concat(Gn?"":rr,'
      ");return Gn&&(or+=this.objToHtml(this.map[ir])),or+'
  • ')}function yr(mr){if(Gn||st()(Gt)&&Gt.jsonSplitArr)return"";var Pn=er("key");return xn==="unenumerable"||xn==="symbol"?Pn=er("key-lighter"):xn==="proto"&&(Pn=er("key-special")),'').concat(Kt(mr),": ")}return Bn()(Gt)&&Gt.length>1e4&&(Gt=On()(Gt,50,{separator:" ",ellipsis:"…"})),"
  • ".concat(yr(tn),'"').concat(Kt(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}(Ft);function Nt(Pt,hn){var un=hn.id;if(un||un===0){if(hn.type&&Ut()(hn.type,"Array")&&hn.enumerable){var tn=function(tr,ir,Kn){var rr=[],ur={};return At()(tr.enumerable,function(or,yr){var mr=Qn()(yr);Jn()(mr)?ur[yr]=or:rr[mr]=or}),rr.enumerable=ur,rr.type=Kn,rr.id=ir,tr.unenumerable&&(rr.unenumerable=tr.unenumerable),tr.symbol&&(rr.symbol=tr.symbol),tr.proto&&(rr.proto=tr.proto),rr}(hn,un,hn.type);tn.length>100&&(hn=function(tr){var ir=0,Kn={};At()(kn()(tr,100),function(ur){var or={},yr=ir;or.type="["+yr,or.enumerable={},At()(ur,function(Pn){or.enumerable[ir]=Pn,ir+=1});var mr=ir-1;or.type+=(mr-yr>0?" … "+mr:"")+"]",or.id=ln()("json"),or.jsonSplitArr=!0,Kn[ir]=or});var rr={};return rr.enumerable=Kn,rr.id=tr.id,rr.type=tr.type,tr.unenumerable&&(rr.unenumerable=tr.unenumerable),tr.symbol&&(rr.symbol=tr.symbol),tr.proto&&(rr.proto=tr.proto),rr}(tn))}Pt[un]=hn;var Gt=[];At()(["enumerable","unenumerable","symbol"],function(tr){if(hn[tr])for(var ir in hn[tr])Gt.push(hn[tr][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 er=(0,et.Z)(Gt),tr=er.map,ir=er.c,Kn=Qt()(Gn.curTarget),rr=Kn.data("object-id"),ur=Kn.find("span").eq(0);if(!Kn.data("first-level")&&(rr&&(Kn.find("ul").html(Gt.objToHtml(tr[rr],!1)),Kn.rmAttr("data-object-id")),Gn.stopImmediatePropagation(),ur.hasClass(ir("expanded")))){var or=Kn.find("ul").eq(0);ur.hasClass(ir("collapsed"))?(ur.rmClass(ir("collapsed")),or.show()):(ur.addClass(ir("collapsed")),or.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,er=tn,tr=!1,ir=Gn.get(tn);ir&&ir.self&&(er=ir.self);var Kn="",rr=["enumerable"],ur=_t()(tn),or=[],yr=[],mr=[],Pn={};if(this.options.unenumerable&&!Gt&&(rr.push("unenumerable"),rr.push("symbol"),or=fn()(dn()(tn,{prototype:!1,unenumerable:!0}),ur),yr=yn()(dn()(tn,{prototype:!1,symbol:!0}),function(dr){return(0,k.Z)(dr)==="symbol"})),xt()(tn)&&tn.length>100){rr.unshift("virtual"),tr=!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=yn()(ur,function(dr){return!hr[dr]})}At()(rr,function(dr){var Ar=[];Ar=dr==="symbol"?yr:dr==="unenumerable"?or:dr==="virtual"?mr:ur,tr||Un()(Ar);for(var Mr=0,jr=Ar.length;Mr4&&arguments[4]!==void 0&&arguments[4],tr=this.visitor,ir=this.c,Kn=(0,k.Z)(xn),rr=rn()(xn,!1);if(Gn==="virtual"&&(rr=tn),xn===null)return"
  • ".concat(hr(tn),'null
  • ');if(ut()(xn)||ft()(xn))return"
  • ".concat(hr(tn),'').concat(Kt(xn),"
  • ");if(rr==="RegExp"&&(Kn="regexp"),rr==="Number"&&(Kn="number"),rr==="Undefined"||rr==="Symbol")return"
  • ".concat(hr(tn),'').concat(ct()(rr),"
  • ");if(xn==="(...)")return"
  • ".concat(hr(tn),'').concat(xn,"
  • ");if(st()(xn)){var ur,or=tr.get(xn);if(or)ur=or.id;else{var yr={};Gn==="proto"&&(yr.self=Gt),ur=tr.set(xn,yr),this.map[ur]=xn}var mr="Object";mr=Kn==="regexp"?'').concat(Kt(xn)):Kt(function(lr,sr){if(sr)return sr==="Function"?bt(Ot()(lr)):sr==="Array"?"Array(".concat(lr.length,")"):sr}(xn,rr)||Mt()(Kn));var Pn=er?"":''),Hn="
  • ").concat(Pn).concat(hr(tn),'').concat(er?"":mr,'
      ");return er&&(Hn+=this.objToHtml(xn)),Hn+'
  • ')}function hr(lr){if(er||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(Kt(lr),": ")}return Bn()(xn)&&xn.length>1e4&&(xn=On()(xn,50,{separator:" ",ellipsis:"…"})),"
  • ".concat(hr(tn),'"').concat(Kt(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}(Ft);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),yn=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 Dn(Nn){var ar="luna-".concat(Nn,"-");function Xn(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=Xn(cr.attrs.class))}),En().stringify(fr)}catch{return Xn(qn)}return Xn(qn)}}function Un(Nn,ar){for(var Xn=0,qn=Nn.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 Xn,qn=(0,rt.Z)(Nn);if(ar){var fr=(0,rt.Z)(this).constructor;Xn=Reflect.construct(qn,arguments,fr)}else Xn=qn.apply(this,arguments);return(0,tt.Z)(this,Xn)}}var Tn=function(Nn){(0,et.Z)(Xn,Nn);var ar=zn(Xn);function Xn(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,Xn),(cr=ar.call(this)).subComponents=[],cr.compName=pr,cr.c=Dn(pr),cr.options={},cr.container=qn,cr.$container=ot()(qn),cr.$container.addClass(["luna-".concat(pr),cr.c("platform-".concat(Sn()))]),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)(Xn,[{key:"destroy",value:function(){this.destroySubComponents();var qn=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(qn("platform-".concat(Sn()))).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){Fn()(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))}}]),Xn}(yn());function Kt(Nn){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 Xn,qn=(0,rt.Z)(Nn);if(ar){var fr=(0,rt.Z)(this).constructor;Xn=Reflect.construct(qn,arguments,fr)}else Xn=qn.apply(this,arguments);return(0,tt.Z)(this,Xn)}}b=d.hmd(b);var bt=function(Nn){(0,et.Z)(Xn,Nn);var ar=Kt(Xn);function Xn(qn){var fr,cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,j.Z)(this,Xn),(fr=ar.call(this,qn,{compName:"setting"},cr)).items=[],fr.selectedItem=null,fr.initOptions(cr,{separatorCollapse:!0,filter:""}),fr.bindEvent(),fr}return(0,$.Z)(Xn,[{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 ln(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 Jn(this,qn,fr,cr);return this.append(pr),pr}},{key:"appendInput",value:function(qn,fr,cr){var pr=new sn(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 Qn(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)}}]),Xn}(Tn),pt=function(){function Nn(ar,Xn,qn,fr){(0,j.Z)(this,Nn),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=Xn,this.value=qn}return(0,$.Z)(Nn,[{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}}]),Nn}(),yt=function(Nn){(0,et.Z)(Xn,Nn);var ar=Kt(Xn);function Xn(qn,fr){var cr;return(0,j.Z)(this,Xn),(cr=ar.call(this,qn,"","","title")).$container.text(fr),cr}return(0,$.Z)(Xn)}(pt),Ut=function(Nn){(0,et.Z)(Xn,Nn);var ar=Kt(Xn);function Xn(qn){return(0,j.Z)(this,Xn),ar.call(this,qn,"","","separator")}return(0,$.Z)(Xn)}(pt),sn=function(Nn){(0,et.Z)(Xn,Nn);var ar=Kt(Xn);function Xn(qn,fr,cr,pr,xr){var kr;(0,j.Z)(this,Xn),kr=ar.call(this,qn,fr,cr,"input");var Tr=qn.c;kr.$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)(Xn)}(pt),Jn=function(Nn){(0,et.Z)(Xn,Nn);var ar=Kt(Xn);function Xn(qn,fr,cr,pr){var xr;return(0,j.Z)(this,Xn),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)(Xn)}(pt);(function(Nn,ar){try{Nn.exports=ar,Nn.exports.default=ar}catch{}})(b,bt)},7638:function(b,_,d){d.d(_,{Z:function(){return On}});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(Dn){return"".concat(vn).concat(Dn)})}).join(" ")}return function(gn){if(/<[^>]*>/g.test(gn))try{var Ln=st().parse(gn);return At(Ln,function(Dn){Dn.attrs&&Dn.attrs.class&&(Dn.attrs.class=En(Dn.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 jn,_n=function(kn){(0,et.Z)(En,kn);var vn=In(En);function En(gn,Ln){var Dn,Un=Ln.compName,Sn=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Zn=Sn===void 0?"light":Sn;return(0,j.Z)(this,En),(Dn=vn.call(this)).subComponents=[],Dn.compName=Un,Dn.c=Tt(Un),Dn.options={},Dn.container=gn,Dn.$container=it()(gn),Dn.$container.addClass(["luna-".concat(Un),Dn.c("platform-".concat(jt()))]),Dn.on("optionChange",function(wn,Wn,Fn){var zn=Dn.c;wn==="theme"&&(Dn.$container.rmClass(zn("theme-".concat(Fn))).addClass(zn("theme-".concat(Wn))),Bt()(Dn.subComponents,function(Tn){return Tn.setOption("theme",Wn)}))}),Dn.setOption("theme",Zn),Dn}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(jt()))).rmClass(gn("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(gn,Ln){var Dn=this,Un=this.options,Sn={};typeof gn=="string"?Sn[gn]=Ln:Sn=gn,Bt()(Sn,function(Zn,wn){var Wn=Un[wn];Un[wn]=Zn,Dn.emit("optionChange",wn,Zn,Wn)})}},{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 yn(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 On=function(kn){(0,et.Z)(En,kn);var vn=yn(En);function En(gn){var Ln,Dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,j.Z)(this,En),(Ln=vn.call(this,gn,{compName:"tab"},Dn)).initOptions(Dn,{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 Dn=this.c,Un=this.$tabs,Sn=this.options.height-1,Zn=Un.find(Dn(".item")),wn=Zn.length,Wn='
    ').concat(An()(Ln.title),"
    ");gn>wn-1?Un.append(Wn):Zn.eq(gn).before(Wn),this.updateSlider()}},{key:"append",value:function(gn){this.insert(this.length,gn)}},{key:"remove",value:function(gn){var Ln=this.c,Dn=this;this.$tabs.find(Ln(".item")).each(function(){var Un=it()(this);if(Un.data("id")===gn){if(Un.hasClass(Ln("selected")))if(Dn.length>0){var Sn=Dn.$tabs.find(Ln(".item")).eq(0).data("id");Dn.select(Sn)}else Dn.emit("deselect");Un.remove()}}),this.updateSlider()}},{key:"select",value:function(gn){var Ln=this.c,Dn=this;this.$tabs.find(Ln(".item")).each(function(){var Un=it()(this);Un.data("id")===gn?(Un.addClass(Ln("selected")),Dn.updateSlider(),Dn.scrollToSelected(),Dn.emit("select",gn)):Un.rmClass(Ln("selected"))})}},{key:"scrollToSelected",value:function(){var gn,Ln=this.$tabs,Dn=this.tabs,Un=this.c,Sn=Ln.find(Un(".selected")).get(0),Zn=Sn.offsetLeft,wn=Sn.offsetWidth,Wn=Dn.offsetWidth,Fn=Dn.scrollLeft;ZnWn+Fn&&(gn=Zn+wn-Wn),xt()(gn)&&(Dn.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 Dn=document.createElement("div"),Un=document.createElement("div");Dn.setAttribute("style","display: block; width: 100px; height: 100px; overflow: scroll;"),Un.setAttribute("style","height: 200px"),Dn.appendChild(Un);var Sn=document.body||document.documentElement;return Sn.appendChild(Dn),Et=Dn.offsetWidth-Dn.clientWidth,Sn.removeChild(Dn),Et}();gn.css("height",this.options.height-1+Ln+"px")}}},{key:"updateSlider",value:function(){var gn=this.$slider,Ln=this.$tabs,Dn=this.c,Un=Ln.find(Dn(".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,Dn=this.c;this.on("optionChange",function(Sn){Sn==="height"&&gn.updateHeight()});var Un=this;this.$tabs.on("wheel",function(Sn){Sn.preventDefault(),Ln.scrollLeft+=Sn.origEvent.deltaY}).on("click",Dn(".item"),function(){var Sn=it()(this);Un.select(Sn.data("id"))}).on("scroll",function(){gn.updateSlider()})}},{key:"initTpl",value:function(){this.$container.html(this.c(Yn()(jn||(jn=(0,k.Z)([` + `))),xr.$container.find("button").on("click",pr),xr}return(0,$.Z)(Xn)}(pt);(function(Nn,ar){try{Nn.exports=ar,Nn.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(Dn){return"".concat(vn).concat(Dn)})}).join(" ")}return function(gn){if(/<[^>]*>/g.test(gn))try{var Ln=st().parse(gn);return At(Ln,function(Dn){Dn.attrs&&Dn.attrs.class&&(Dn.attrs.class=En(Dn.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 Dn,Un=Ln.compName,Sn=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Zn=Sn===void 0?"light":Sn;return(0,j.Z)(this,En),(Dn=vn.call(this)).subComponents=[],Dn.compName=Un,Dn.c=Tt(Un),Dn.options={},Dn.container=gn,Dn.$container=it()(gn),Dn.$container.addClass(["luna-".concat(Un),Dn.c("platform-".concat(Ot()))]),Dn.on("optionChange",function(wn,Wn,Fn){var zn=Dn.c;wn==="theme"&&(Dn.$container.rmClass(zn("theme-".concat(Fn))).addClass(zn("theme-".concat(Wn))),Bt()(Dn.subComponents,function(Tn){return Tn.setOption("theme",Wn)}))}),Dn.setOption("theme",Zn),Dn}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 Dn=this,Un=this.options,Sn={};typeof gn=="string"?Sn[gn]=Ln:Sn=gn,Bt()(Sn,function(Zn,wn){var Wn=Un[wn];Un[wn]=Zn,Dn.emit("optionChange",wn,Zn,Wn)})}},{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 yn(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=yn(En);function En(gn){var Ln,Dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,j.Z)(this,En),(Ln=vn.call(this,gn,{compName:"tab"},Dn)).initOptions(Dn,{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 Dn=this.c,Un=this.$tabs,Sn=this.options.height-1,Zn=Un.find(Dn(".item")),wn=Zn.length,Wn='
    ').concat(An()(Ln.title),"
    ");gn>wn-1?Un.append(Wn):Zn.eq(gn).before(Wn),this.updateSlider()}},{key:"append",value:function(gn){this.insert(this.length,gn)}},{key:"remove",value:function(gn){var Ln=this.c,Dn=this;this.$tabs.find(Ln(".item")).each(function(){var Un=it()(this);if(Un.data("id")===gn){if(Un.hasClass(Ln("selected")))if(Dn.length>0){var Sn=Dn.$tabs.find(Ln(".item")).eq(0).data("id");Dn.select(Sn)}else Dn.emit("deselect");Un.remove()}}),this.updateSlider()}},{key:"select",value:function(gn){var Ln=this.c,Dn=this;this.$tabs.find(Ln(".item")).each(function(){var Un=it()(this);Un.data("id")===gn?(Un.addClass(Ln("selected")),Dn.updateSlider(),Dn.scrollToSelected(),Dn.emit("select",gn)):Un.rmClass(Ln("selected"))})}},{key:"scrollToSelected",value:function(){var gn,Ln=this.$tabs,Dn=this.tabs,Un=this.c,Sn=Ln.find(Un(".selected")).get(0),Zn=Sn.offsetLeft,wn=Sn.offsetWidth,Wn=Dn.offsetWidth,Fn=Dn.scrollLeft;ZnWn+Fn&&(gn=Zn+wn-Wn),xt()(gn)&&(Dn.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 Dn=document.createElement("div"),Un=document.createElement("div");Dn.setAttribute("style","display: block; width: 100px; height: 100px; overflow: scroll;"),Un.setAttribute("style","height: 200px"),Dn.appendChild(Un);var Sn=document.body||document.documentElement;return Sn.appendChild(Dn),Et=Dn.offsetWidth-Dn.clientWidth,Sn.removeChild(Dn),Et}();gn.css("height",this.options.height-1+Ln+"px")}}},{key:"updateSlider",value:function(){var gn=this.$slider,Ln=this.$tabs,Dn=this.c,Un=Ln.find(Dn(".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,Dn=this.c;this.on("optionChange",function(Sn){Sn==="height"&&gn.updateHeight()});var Un=this;this.$tabs.on("wheel",function(Sn){Sn.preventDefault(),Ln.scrollLeft+=Sn.origEvent.deltaY}).on("click",Dn(".item"),function(){var Sn=it()(this);Un.select(Sn.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,On)},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(Fn){var zn="luna-".concat(Fn,"-");function Tn(Kt){return ht()(lt()(Kt).split(/\s+/),function(bt){return wt()(bt,zn)?bt:bt.replace(/[\w-]+/,function(pt){return"".concat(zn).concat(pt)})}).join(" ")}return function(Kt){if(/<[^>]*>/g.test(Kt))try{var bt=Ct().parse(Kt);return Tt(bt,function(pt){pt.attrs&&pt.attrs.class&&(pt.attrs.class=Tn(pt.attrs.class))}),Ct().stringify(bt)}catch{return Tn(Kt)}return Tn(Kt)}}function Tt(Fn,zn){for(var Tn=0,Kt=Fn.length;Tn"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 Tn,Kt=(0,nt.Z)(Fn);if(zn){var bt=(0,nt.Z)(this).constructor;Tn=Reflect.construct(Kt,arguments,bt)}else Tn=Kt.apply(this,arguments);return(0,rt.Z)(this,Tn)}}var In=function(Fn){(0,tt.Z)(Tn,Fn);var zn=fn(Tn);function Tn(Kt,bt){var pt,yt=bt.compName,Ut=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,sn=Ut===void 0?"light":Ut;return(0,k.Z)(this,Tn),(pt=zn.call(this)).subComponents=[],pt.compName=yt,pt.c=_t(yt),pt.options={},pt.container=Kt,pt.$container=dt()(Kt),pt.$container.addClass(["luna-".concat(yt),pt.c("platform-".concat(Et()))]),pt.on("optionChange",function(ln,mn,Qn){var Rn=pt.c;ln==="theme"&&(pt.$container.rmClass(Rn("theme-".concat(Qn))).addClass(Rn("theme-".concat(mn))),Lt()(pt.subComponents,function(Jn){return Jn.setOption("theme",mn)}))}),pt.setOption("theme",sn),pt}return(0,j.Z)(Tn,[{key:"destroy",value:function(){this.destroySubComponents();var Kt=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(Kt("platform-".concat(Et()))).rmClass(Kt("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(Kt,bt){var pt=this,yt=this.options,Ut={};typeof Kt=="string"?Ut[Kt]=bt:Ut=Kt,Lt()(Ut,function(sn,ln){var mn=yt[ln];yt[ln]=sn,pt.emit("optionChange",ln,sn,mn)})}},{key:"getOption",value:function(Kt){return this.options[Kt]}},{key:"addSubComponent",value:function(Kt){Kt.setOption("theme",this.options.theme),this.subComponents.push(Kt)}},{key:"removeSubComponent",value:function(Kt){Vt()(this.subComponents,function(bt){return bt===Kt})}},{key:"destroySubComponents",value:function(){Lt()(this.subComponents,function(Kt){return Kt.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(Kt){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};nn()(Kt,bt),Zt()(this.options,Kt)}},{key:"find",value:function(Kt){return this.$container.find(this.c(Kt))}}]),Tn}(at()),jn=d(9702),_n=d.n(jn),Bn=d(8887),Yn=d.n(Bn),dn=d(2439),An=d.n(dn),yn=d(6049),On=d.n(yn),kn=d(2327),vn=d.n(kn),En=d(8901),gn=d.n(En),Ln=d(7387),Dn=d.n(Ln),Un=d(8648),Sn=d.n(Un);function Zn(Fn){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 Tn,Kt=(0,nt.Z)(Fn);if(zn){var bt=(0,nt.Z)(this).constructor;Tn=Reflect.construct(Kt,arguments,bt)}else Tn=Kt.apply(this,arguments);return(0,rt.Z)(this,Tn)}}b=d.hmd(b);var wn=function(Fn){(0,tt.Z)(Tn,Fn);var zn=Zn(Tn);function Tn(Kt){var bt,pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,k.Z)(this,Tn),(bt=zn.call(this,Kt,{compName:"text-viewer"},pt)).lineNum=0,bt.copy=function(){var yt=(0,$.Z)(bt).c,Ut=bt.options,sn=Ut.text,ln=Ut.escape;vn()(ln?sn:Dn()(Sn()(sn)));var mn=bt.$copy.find(yt(".icon"));mn.addClass(yt("icon-check")).rmClass(yt("icon-copy")),setTimeout(function(){mn.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=On()(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)(Tn,[{key:"append",value:function(Kt){var bt=this,pt=this.options,yt=this.$copy,Ut=this.c,sn=this.$text,ln=pt.showLineNumbers;if(this.options.text+=Kt,!ln)return this.$text.append(pt.escape?gn()(Kt):Kt);var mn=function(Rn){return Rn.length===0?[]:Rn.split(Wn)}(Kt);Yn()(mn)&&(mn=[" "]),lt()(_n()(mn))||mn.pop();var Qn="";Lt()(mn,function(Rn,Jn){bt.lineNum+=1,Qn+='
    ').concat(bt.lineNum,'
    ').concat(pt.escape?gn()(Rn):Rn||" ","
    ")}),sn.find(Ut(".table")).append(Qn),yt.hide(),sn.offset().height>40&&yt.show(),this.updateCopyPos()}},{key:"destroy",value:function(){this.$container.off("scroll",this.updateCopyPos),(0,et.Z)((0,nt.Z)(Tn.prototype),"destroy",this).call(this)}},{key:"updateHeight",value:function(){var Kt=this.options.maxHeight;Kt>0&&Kt!==1/0?this.$text.css("max-height",Kt):this.$text.css("max-height","none")}},{key:"initTpl",value:function(){this.$container.html(this.c('
    '))}},{key:"bindEvent",value:function(){var Kt=this;this.on("optionChange",function(bt){bt==="maxHeight"?Kt.updateHeight():Kt.render()}),this.$container.on("scroll",this.updateCopyPos),this.$copy.on("click",this.copy)}},{key:"_render",value:function(){var Kt=this.c,bt=this.$text,pt=this.options,yt=pt.text,Ut=pt.wrapLongLines,sn=pt.showLineNumbers;Ut?bt.addClass(Kt("wrap-long-lines")):bt.rmClass(Kt("wrap-long-lines")),sn?bt.addClass(Kt("line-numbers")):bt.rmClass(Kt("line-numbers")),bt.html('
    ')),this.lineNum=0,this.options.text="",this.append(yt)}}]),Tn}(In),Wn=/\r\n|\r|\n/g;(function(Fn,zn){try{Fn.exports=zn,Fn.exports.default=zn}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 mn()},$class:function(){return Rn()},$css:function(){return Nn()},$data:function(){return Xn()},$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 Ft()},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 tr()},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 Mn},clone:function(){return rn()},cloneDeep:function(){return Ar()},concat:function(){return Or()},contain:function(){return Bt()},copy:function(){return pn()},create:function(){return Fr()},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 Yt()},isArgs:function(){return Vn()},isArr:function(){return yn()},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 jo()},isNaN:function(){return Ps()},isNil:function(){return os()},isNull:function(){return Xr()},isNum:function(){return No()},isObj:function(){return Zs()},isPrimitive:function(){return Ol()},isPromise:function(){return Rl()},isRegExp:function(){return Vs()},isSorted:function(){return Pl()},isStr:function(){return jt()},isUndef:function(){return Ns()},kebabCase:function(){return jn()},keys:function(){return fn()},last:function(){return as()},linkify:function(){return Dl()},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 sn()},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 Ou()},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(an){this._$el=an},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),jt=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),jn=d.n(In),_n=d(4193),Bn=d.n(_n),Yn=d(6329),dn=d.n(Yn),An=d(6472),yn=d.n(An),On=["background","foreground","selectForeground","accent","highlight","border","primary","contrast","varColor","stringColor","keywordColor","numberColor","operatorColor","linkColor","textColor","tagNameColor","functionColor","attributeNameColor","commentColor"],kn=On.length;function vn(an){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)(an);if(Jt){var Ot=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,Ot)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var bt=function(an){(0,tt.Z)(Ht,an);var Jt=Kt(Ht);function Ht(){var vt;return(0,j.Z)(this,Ht),(vt=Jt.call(this))._style=zn(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 Tn.Z(vt.get(0)),this._bindEvent()}},{key:"remove",value:function(vt,Ot){var zt=this;if(jt()(vt)){var bn=this;this._$el.find(".luna-setting-item-title").each(function(){st()(this).text()===vt&&bn._setting.remove(this.settingItem)})}else this._settings=At()(this._settings,function($n){return $n.config!==vt||$n.key!==Ot||(zt._setting.remove($n.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),zn.remove(this._style)}},{key:"clear",value:function(){this._settings=[],this._setting.clear()}},{key:"switch",value:function(vt,Ot,zt){var bn=this._genId("settings"),$n=this._setting.appendCheckbox(bn,!!vt.get(Ot),zt);return this._settings.push({config:vt,key:Ot,id:bn,item:$n}),this}},{key:"select",value:function(vt,Ot,zt,bn){var $n=this._genId("settings"),nr={};_t()(bn,function(wr){return nr[wr]=wr});var vr=this._setting.appendSelect($n,vt.get(Ot),"",zt,nr);return this._settings.push({config:vt,key:Ot,id:$n,item:vr}),this}},{key:"range",value:function(vt,Ot,zt,bn){var $n=bn.min,nr=$n===void 0?0:$n,vr=bn.max,wr=vr===void 0?1:vr,Nr=bn.step,Vr=Nr===void 0?.1:Nr,Jr=this._genId("settings"),lo=this._setting.appendNumber(Jr,vt.get(Ot),zt,{max:wr,min:nr,step:Vr,range:!0});return this._settings.push({config:vt,key:Ot,min:nr,max:wr,step:Vr,id:Jr,item:lo}),this}},{key:"button",value:function(vt,Ot){return this._setting.appendButton(vt,Ot),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 Ot($n){return Bt()($n.getAttribute("class"),"luna-setting-item-separator")}for(var zt=0,bn=vt.length;zt0)return!0}return!1}function k0(an){return va()(an).replace(/\\'/g,"'").replace(/\t/g,"\\t")}function $s(an,Jt){var Ht;switch(Ns()(Jt)&&(Jt=!0),an){case"local":Ht=window.localStorage;break;case"session":Ht=window.sessionStorage}try{var vt="test-localStorage-"+Date.now();Ht.setItem(vt,vt);var Ot=Ht.getItem(vt);if(Ht.removeItem(vt),Ot!==vt)throw new Error}catch{return Jt?Ks():void 0}return Ht}function ll(an){var Jt=as()(an.split("/"));return Jt===""&&(Jt=(an=new(tr())(an)).hostname),Jt}function Ko(an){return ls()(an.replace("px",""))}function Yo(an){for(;an;){if(an.id==="eruda")return!0;an=an.parentNode}return!1}function cl(an){for(;an;){var Jt="";if(an.getAttribute&&(Jt=an.getAttribute("class")||""),Bt()(Jt,"__chobitsu-hide__"))return!0;an=an.parentNode}return!1}var A0=zn;function Mn(an){if(/<[^>]*>/g.test(an))try{var Jt=al().parse(an);return ul(Jt,function(Ht){Ht.attrs&&Ht.attrs.class&&(Ht.attrs.class=Fs(Ht.attrs.class))}),al().stringify(Jt)}catch{return Fs(an)}return Fs(an)}function ul(an,Jt){for(var Ht=0,vt=an.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)(an);if(Jt){var Ot=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,Ot)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var dl,us=st()(document),O0=function(an){(0,tt.Z)(Ht,an);var Jt=I0(Ht);function Ht(vt){var Ot;return(0,j.Z)(this,Ht),Ot=Jt.call(this),(0,ot.Z)((0,et.Z)(Ot),"_onDragStart",function(zt){var bn=Ot._$el;bn.addClass(Mn("active")),Ot._isClick=!0,zt=zt.origEvent,Ot._startX=$o("x",zt),Ot._oldX=Ko(bn.css("left")),Ot._oldY=Ko(bn.css("top")),Ot._startY=$o("y",zt),us.on(ko("move"),Ot._onDragMove),us.on(ko("end"),Ot._onDragEnd)}),(0,ot.Z)((0,et.Z)(Ot),"_onDragMove",function(zt){var bn=Ot._$el.get(0).offsetWidth,$n=Ot._$container.get(0).offsetWidth,nr=Ot._$container.get(0).offsetHeight,vr=$o("x",zt=zt.origEvent)-Ot._startX,wr=$o("y",zt)-Ot._startY;(Math.abs(vr)>3||Math.abs(wr)>3)&&(Ot._isClick=!1);var Nr=Ot._oldX+vr,Vr=Ot._oldY+wr;Nr<0?Nr=0:Nr>$n-bn&&(Nr=$n-bn),Vr<0?Vr=0:Vr>nr-bn&&(Vr=nr-bn),Ot._$el.css({left:Nr,top:Vr})}),(0,ot.Z)((0,et.Z)(Ot),"_onDragEnd",function(zt){var bn=Ot._$el;Ot._isClick&&Ot.emit("click"),Ot._onDragMove(zt),us.off(ko("move"),Ot._onDragMove),us.off(ko("end"),Ot._onDragEnd);var $n=Ot.config;$n.get("rememberPos")&&$n.set("pos",{x:Ko(bn.css("left")),y:Ko(bn.css("top"))}),bn.rmClass("eruda-active")}),Ot._style=zn(d(9195)),Ot._$container=vt,Ot._initTpl(),Ot._bindEvent(),Ot._registerListener(),Ot}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(){zn.remove(this._style),this._unregisterListener(),this._$el.remove()}},{key:"_isOutOfRange",value:function(vt){vt=vt||this.config.get("pos");var Ot=this._getDefPos();return vt.x>Ot.x+10||vt.x<0||vt.y<0||vt.y>Ot.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(Mn('
    ')),this._$el=vt.find(".eruda-entry-btn")}},{key:"_resetPos",value:function(vt){var Ot=this.config,zt=Ot.get("pos"),bn=this._getDefPos();Ot.get("rememberPos")&&!vt||(zt=bn),this.setPos(zt)}},{key:"_bindEvent",value:function(){var vt=this;this._$el.on(ko("start"),this._onDragStart),sn().on("change",function(){return vt._resetPos(!0)}),window.addEventListener("resize",function(){return vt._resetPos()})}},{key:"initCfg",value:function(vt){var Ot=this.config=bt.createCfg("entry-button",{rememberPos:!0,pos:this._getDefPos()});vt.switch(Ot,"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(Ft())("[Eruda]","warn");dl.formatter=function(an,Jt){return Jt.unshift(this.name),Jt};var j0=d(4270),R0=d.n(j0),L0=d(6093),B0=d.n(L0),Fo=d(129),P0=d(7638);function N0(an){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)(an);if(Jt){var Ot=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,Ot)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var $0=function(an){(0,tt.Z)(Ht,an);var Jt=N0(Ht);function Ht(vt){var Ot,zt=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).defaults,bn=zt===void 0?{}:zt;return(0,j.Z)(this,Ht),Ot=Jt.call(this),(0,ot.Z)((0,et.Z)(Ot),"_checkSafeArea",function(){var $n=(0,et.Z)(Ot).$container;sl()?$n.addClass(Mn("safe-area")):$n.rmClass(Mn("safe-area"))}),(0,ot.Z)((0,et.Z)(Ot),"_updateTabHeight",function($n){Ot._tab.setOption("height",40*$n),yt()(function(){Ot._tab.updateSlider()})}),Ot._defCfg=dn()({transparency:1,displaySize:80,theme:Hr()()?"Dark":"Light"},bn),Ot._style=zn(d(13)),Ot.$container=vt,Ot._isShow=!1,Ot._opacity=1,Ot._tools={},Ot._isResizing=!1,Ot._resizeTimer=null,Ot._resizeStartY=0,Ot._resizeStartSize=0,Ot._initTpl(),Ot._initTab(),Ot._initNotification(),Ot._initModal(),R0()(function(){return Ot._checkSafeArea()}),Ot._bindEvent(),Ot}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 Ot=this._tab;if(!(vt instanceof ct)){var zt=new ct,bn=zt.init,$n=zt.show,nr=zt.hide,vr=zt.destroy;Bn()(vt,{init:bn,show:$n,hide:nr,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(Mn(wr),".").concat(Mn("tool"))),this),vt.active=!1,this._tools[wr]=vt,wr==="settings"?Ot.append({id:wr,title:wr}):Ot.insert(Ot.length-1,{id:wr,title:wr}),this)):Wo.error("You must specify a name for a tool")}},{key:"remove",value:function(vt){var Ot=this._tools;if(!Ot[vt])return Wo.warn("Tool ".concat(vt," doesn't exist"));this._tab.remove(vt);var zt=Ot[vt];if(delete Ot[vt],zt.active){var bn=fn()(Ot);bn.length>0&&this.showTool(Ot[as()(bn)].name)}return zt.destroy(),this}},{key:"removeAll",value:function(){var vt=this;return _t()(this._tools,function(Ot){return vt.remove(Ot.name)}),this}},{key:"get",value:function(vt){var Ot=this._tools[vt];if(Ot)return Ot}},{key:"showTool",value:function(vt){if(this._curTool===vt)return this;this._curTool=vt;var Ot=this._tools,zt=Ot[vt];if(zt){var bn={};return _t()(Ot,function($n){$n.active&&(bn=$n,$n.active=!1,$n.hide())}),zt.active=!0,zt.show(),this._tab.select(vt),this.emit("showTool",vt,bn),this}}},{key:"initCfg",value:function(vt){var Ot=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(bn,$n){switch(bn){case"transparency":return Ot._setTransparency($n);case"displaySize":return Ot._setDisplaySize($n);case"theme":return Ot._setTheme($n)}}),vt.separator().select(zt,"theme","Theme",fn()(zn.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 bn=$s("local"),$n=JSON.parse(JSON.stringify(bn));_t()($n,function(nr,vr){jt()(nr)&&qo()(vr,"eruda")&&bn.removeItem(vr)}),window.location.reload()}).separator()}},{key:"notify",value:function(vt,Ot){this._notification.notify(vt,Ot)}},{key:"destroy",value:function(){zn.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 Ot=this.$container;(function(zt){return Bt()(Ln,zt)})(vt)?Ot.addClass(Mn("dark")):Ot.rmClass(Mn("dark")),zn.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(Mn(` + `])))))}}]),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(Fn){var zn="luna-".concat(Fn,"-");function Tn(Kt){return ht()(lt()(Kt).split(/\s+/),function(bt){return wt()(bt,zn)?bt:bt.replace(/[\w-]+/,function(pt){return"".concat(zn).concat(pt)})}).join(" ")}return function(Kt){if(/<[^>]*>/g.test(Kt))try{var bt=Ct().parse(Kt);return Tt(bt,function(pt){pt.attrs&&pt.attrs.class&&(pt.attrs.class=Tn(pt.attrs.class))}),Ct().stringify(bt)}catch{return Tn(Kt)}return Tn(Kt)}}function Tt(Fn,zn){for(var Tn=0,Kt=Fn.length;Tn"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 Tn,Kt=(0,nt.Z)(Fn);if(zn){var bt=(0,nt.Z)(this).constructor;Tn=Reflect.construct(Kt,arguments,bt)}else Tn=Kt.apply(this,arguments);return(0,rt.Z)(this,Tn)}}var In=function(Fn){(0,tt.Z)(Tn,Fn);var zn=fn(Tn);function Tn(Kt,bt){var pt,yt=bt.compName,Ut=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,sn=Ut===void 0?"light":Ut;return(0,k.Z)(this,Tn),(pt=zn.call(this)).subComponents=[],pt.compName=yt,pt.c=_t(yt),pt.options={},pt.container=Kt,pt.$container=dt()(Kt),pt.$container.addClass(["luna-".concat(yt),pt.c("platform-".concat(Et()))]),pt.on("optionChange",function(ln,mn,Qn){var Rn=pt.c;ln==="theme"&&(pt.$container.rmClass(Rn("theme-".concat(Qn))).addClass(Rn("theme-".concat(mn))),Lt()(pt.subComponents,function(Jn){return Jn.setOption("theme",mn)}))}),pt.setOption("theme",sn),pt}return(0,j.Z)(Tn,[{key:"destroy",value:function(){this.destroySubComponents();var Kt=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(Kt("platform-".concat(Et()))).rmClass(Kt("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(Kt,bt){var pt=this,yt=this.options,Ut={};typeof Kt=="string"?Ut[Kt]=bt:Ut=Kt,Lt()(Ut,function(sn,ln){var mn=yt[ln];yt[ln]=sn,pt.emit("optionChange",ln,sn,mn)})}},{key:"getOption",value:function(Kt){return this.options[Kt]}},{key:"addSubComponent",value:function(Kt){Kt.setOption("theme",this.options.theme),this.subComponents.push(Kt)}},{key:"removeSubComponent",value:function(Kt){Vt()(this.subComponents,function(bt){return bt===Kt})}},{key:"destroySubComponents",value:function(){Lt()(this.subComponents,function(Kt){return Kt.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(Kt){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};nn()(Kt,bt),Zt()(this.options,Kt)}},{key:"find",value:function(Kt){return this.$container.find(this.c(Kt))}}]),Tn}(at()),On=d(9702),_n=d.n(On),Bn=d(8887),Yn=d.n(Bn),dn=d(2439),An=d.n(dn),yn=d(6049),jn=d.n(yn),kn=d(2327),vn=d.n(kn),En=d(8901),gn=d.n(En),Ln=d(7387),Dn=d.n(Ln),Un=d(8648),Sn=d.n(Un);function Zn(Fn){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 Tn,Kt=(0,nt.Z)(Fn);if(zn){var bt=(0,nt.Z)(this).constructor;Tn=Reflect.construct(Kt,arguments,bt)}else Tn=Kt.apply(this,arguments);return(0,rt.Z)(this,Tn)}}b=d.hmd(b);var wn=function(Fn){(0,tt.Z)(Tn,Fn);var zn=Zn(Tn);function Tn(Kt){var bt,pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,k.Z)(this,Tn),(bt=zn.call(this,Kt,{compName:"text-viewer"},pt)).lineNum=0,bt.copy=function(){var yt=(0,$.Z)(bt).c,Ut=bt.options,sn=Ut.text,ln=Ut.escape;vn()(ln?sn:Dn()(Sn()(sn)));var mn=bt.$copy.find(yt(".icon"));mn.addClass(yt("icon-check")).rmClass(yt("icon-copy")),setTimeout(function(){mn.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)(Tn,[{key:"append",value:function(Kt){var bt=this,pt=this.options,yt=this.$copy,Ut=this.c,sn=this.$text,ln=pt.showLineNumbers;if(this.options.text+=Kt,!ln)return this.$text.append(pt.escape?gn()(Kt):Kt);var mn=function(Rn){return Rn.length===0?[]:Rn.split(Wn)}(Kt);Yn()(mn)&&(mn=[" "]),lt()(_n()(mn))||mn.pop();var Qn="";Lt()(mn,function(Rn,Jn){bt.lineNum+=1,Qn+='
    ').concat(bt.lineNum,'
    ').concat(pt.escape?gn()(Rn):Rn||" ","
    ")}),sn.find(Ut(".table")).append(Qn),yt.hide(),sn.offset().height>40&&yt.show(),this.updateCopyPos()}},{key:"destroy",value:function(){this.$container.off("scroll",this.updateCopyPos),(0,et.Z)((0,nt.Z)(Tn.prototype),"destroy",this).call(this)}},{key:"updateHeight",value:function(){var Kt=this.options.maxHeight;Kt>0&&Kt!==1/0?this.$text.css("max-height",Kt):this.$text.css("max-height","none")}},{key:"initTpl",value:function(){this.$container.html(this.c('
    '))}},{key:"bindEvent",value:function(){var Kt=this;this.on("optionChange",function(bt){bt==="maxHeight"?Kt.updateHeight():Kt.render()}),this.$container.on("scroll",this.updateCopyPos),this.$copy.on("click",this.copy)}},{key:"_render",value:function(){var Kt=this.c,bt=this.$text,pt=this.options,yt=pt.text,Ut=pt.wrapLongLines,sn=pt.showLineNumbers;Ut?bt.addClass(Kt("wrap-long-lines")):bt.rmClass(Kt("wrap-long-lines")),sn?bt.addClass(Kt("line-numbers")):bt.rmClass(Kt("line-numbers")),bt.html('
    ')),this.lineNum=0,this.options.text="",this.append(yt)}}]),Tn}(In),Wn=/\r\n|\r|\n/g;(function(Fn,zn){try{Fn.exports=zn,Fn.exports.default=zn}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 mn()},$class:function(){return Rn()},$css:function(){return Nn()},$data:function(){return Xn()},$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 Ft()},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 tr()},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 Mn},clone:function(){return rn()},cloneDeep:function(){return Ar()},concat:function(){return jr()},contain:function(){return Bt()},copy:function(){return pn()},create:function(){return Fr()},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 Yt()},isArgs:function(){return Vn()},isArr:function(){return yn()},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 Dl()},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 sn()},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(an){this._$el=an},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),yn=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(an){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)(an);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(an){(0,tt.Z)(Ht,an);var Jt=Kt(Ht);function Ht(){var vt;return(0,j.Z)(this,Ht),(vt=Jt.call(this))._style=zn(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 Tn.Z(vt.get(0)),this._bindEvent()}},{key:"remove",value:function(vt,jt){var zt=this;if(Ot()(vt)){var bn=this;this._$el.find(".luna-setting-item-title").each(function(){st()(this).text()===vt&&bn._setting.remove(this.settingItem)})}else this._settings=At()(this._settings,function($n){return $n.config!==vt||$n.key!==jt||(zt._setting.remove($n.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),zn.remove(this._style)}},{key:"clear",value:function(){this._settings=[],this._setting.clear()}},{key:"switch",value:function(vt,jt,zt){var bn=this._genId("settings"),$n=this._setting.appendCheckbox(bn,!!vt.get(jt),zt);return this._settings.push({config:vt,key:jt,id:bn,item:$n}),this}},{key:"select",value:function(vt,jt,zt,bn){var $n=this._genId("settings"),nr={};_t()(bn,function(wr){return nr[wr]=wr});var vr=this._setting.appendSelect($n,vt.get(jt),"",zt,nr);return this._settings.push({config:vt,key:jt,id:$n,item:vr}),this}},{key:"range",value:function(vt,jt,zt,bn){var $n=bn.min,nr=$n===void 0?0:$n,vr=bn.max,wr=vr===void 0?1:vr,Nr=bn.step,Vr=Nr===void 0?.1:Nr,Jr=this._genId("settings"),lo=this._setting.appendNumber(Jr,vt.get(jt),zt,{max:wr,min:nr,step:Vr,range:!0});return this._settings.push({config:vt,key:jt,min:nr,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($n){return Bt()($n.getAttribute("class"),"luna-setting-item-separator")}for(var zt=0,bn=vt.length;zt0)return!0}return!1}function k0(an){return va()(an).replace(/\\'/g,"'").replace(/\t/g,"\\t")}function $s(an,Jt){var Ht;switch(Ns()(Jt)&&(Jt=!0),an){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(an){var Jt=as()(an.split("/"));return Jt===""&&(Jt=(an=new(tr())(an)).hostname),Jt}function Ko(an){return ls()(an.replace("px",""))}function Yo(an){for(;an;){if(an.id==="eruda")return!0;an=an.parentNode}return!1}function cl(an){for(;an;){var Jt="";if(an.getAttribute&&(Jt=an.getAttribute("class")||""),Bt()(Jt,"__chobitsu-hide__"))return!0;an=an.parentNode}return!1}var A0=zn;function Mn(an){if(/<[^>]*>/g.test(an))try{var Jt=al().parse(an);return ul(Jt,function(Ht){Ht.attrs&&Ht.attrs.class&&(Ht.attrs.class=Fs(Ht.attrs.class))}),al().stringify(Jt)}catch{return Fs(an)}return Fs(an)}function ul(an,Jt){for(var Ht=0,vt=an.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)(an);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(an){(0,tt.Z)(Ht,an);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 bn=jt._$el;bn.addClass(Mn("active")),jt._isClick=!0,zt=zt.origEvent,jt._startX=$o("x",zt),jt._oldX=Ko(bn.css("left")),jt._oldY=Ko(bn.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 bn=jt._$el.get(0).offsetWidth,$n=jt._$container.get(0).offsetWidth,nr=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>$n-bn&&(Nr=$n-bn),Vr<0?Vr=0:Vr>nr-bn&&(Vr=nr-bn),jt._$el.css({left:Nr,top:Vr})}),(0,ot.Z)((0,et.Z)(jt),"_onDragEnd",function(zt){var bn=jt._$el;jt._isClick&&jt.emit("click"),jt._onDragMove(zt),us.off(ko("move"),jt._onDragMove),us.off(ko("end"),jt._onDragEnd);var $n=jt.config;$n.get("rememberPos")&&$n.set("pos",{x:Ko(bn.css("left")),y:Ko(bn.css("top"))}),bn.rmClass("eruda-active")}),jt._style=zn(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(){zn.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(Mn('
    ')),this._$el=vt.find(".eruda-entry-btn")}},{key:"_resetPos",value:function(vt){var jt=this.config,zt=jt.get("pos"),bn=this._getDefPos();jt.get("rememberPos")&&!vt||(zt=bn),this.setPos(zt)}},{key:"_bindEvent",value:function(){var vt=this;this._$el.on(ko("start"),this._onDragStart),sn().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(Ft())("[Eruda]","warn");dl.formatter=function(an,Jt){return Jt.unshift(this.name),Jt};var O0=d(4270),R0=d.n(O0),L0=d(6093),B0=d.n(L0),Fo=d(129),P0=d(7638);function N0(an){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)(an);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(an){(0,tt.Z)(Ht,an);var Jt=N0(Ht);function Ht(vt){var jt,zt=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).defaults,bn=zt===void 0?{}:zt;return(0,j.Z)(this,Ht),jt=Jt.call(this),(0,ot.Z)((0,et.Z)(jt),"_checkSafeArea",function(){var $n=(0,et.Z)(jt).$container;sl()?$n.addClass(Mn("safe-area")):$n.rmClass(Mn("safe-area"))}),(0,ot.Z)((0,et.Z)(jt),"_updateTabHeight",function($n){jt._tab.setOption("height",40*$n),yt()(function(){jt._tab.updateSlider()})}),jt._defCfg=dn()({transparency:1,displaySize:80,theme:Hr()()?"Dark":"Light"},bn),jt._style=zn(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,bn=zt.init,$n=zt.show,nr=zt.hide,vr=zt.destroy;Bn()(vt,{init:bn,show:$n,hide:nr,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(Mn(wr),".").concat(Mn("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 bn=fn()(jt);bn.length>0&&this.showTool(jt[as()(bn)].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 bn={};return _t()(jt,function($n){$n.active&&(bn=$n,$n.active=!1,$n.hide())}),zt.active=!0,zt.show(),this._tab.select(vt),this.emit("showTool",vt,bn),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(bn,$n){switch(bn){case"transparency":return jt._setTransparency($n);case"displaySize":return jt._setDisplaySize($n);case"theme":return jt._setTheme($n)}}),vt.separator().select(zt,"theme","Theme",fn()(zn.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 bn=$s("local"),$n=JSON.parse(JSON.stringify(bn));_t()($n,function(nr,vr){Ot()(nr)&&qo()(vr,"eruda")&&bn.removeItem(vr)}),window.location.reload()}).separator()}},{key:"notify",value:function(vt,jt){this._notification.notify(vt,jt)}},{key:"destroy",value:function(){zn.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(Mn("dark")):jt.rmClass(Mn("dark")),zn.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(Mn(`
    @@ -115,7 +115,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
    - `)),this._$el=vt.find(Mn(".dev-tools")),this._$tools=this._$el.find(Mn(".tools"))}},{key:"_initTab",value:function(){var vt=this;this._tab=new P0.Z(this._$el.find(Mn(".tab")).get(0),{height:40}),this._tab.on("select",function(Ot){return vt.showTool(Ot)})}},{key:"_initNotification",value:function(){this._notification=new(B0())(this._$el.find(Mn(".notification")).get(0),{position:{x:"center",y:"top"}})}},{key:"_initModal",value:function(){Fo.Z.setContainer(this._$el.find(Mn(".modal")).get(0))}},{key:"_bindEvent",value:function(){var vt=this,Ot=this._$el.find(Mn(".resizer")),zt=this._$el.find(Mn(".nav-bar")),bn=st()(document),$n=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)))}},nr=function vr(){clearTimeout(vt._resizeTimer),vt._isResizing=!1,Ot.css("height",10),bn.off(ko("move"),$n),bn.off(ko("end"),vr)};Ot.css("height",10),Ot.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),Ot.css("height","100%"),bn.on(ko("move"),$n),bn.on(ko("end"),nr)}),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()),F0=d(8816);function D0(an){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)(an);if(Jt){var Ot=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,Ot)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}cs().start();var U0=function(an){(0,tt.Z)(Ht,an);var Jt=D0(Ht);function Ht(){var vt,Ot=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).name,zt=Ot===void 0?"console":Ot;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(bn){vt._logger.error(bn)}),it().mixin((0,et.Z)(vt)),vt.name=zt,vt._selectedLog=null,vt}return(0,$.Z)(Ht,[{key:"init",value:function(vt,Ot){(0,ht.Z)((0,nt.Z)(Ht.prototype),"init",this).call(this,vt),this._container=Ot,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,Ot=this._origConsole={},zt=window.console;return Ds.forEach(function(bn){var $n=Ot[bn]=Qs();zt[bn]&&($n=Ot[bn]=zt[bn].bind(zt)),zt[bn]=function(){vt[bn].apply(vt,arguments),$n.apply(void 0,arguments)}}),this}},{key:"setGlobal",value:function(vt,Ot){this._logger.setGlobal(vt,Ot)}},{key:"restoreConsole",value:function(){var vt=this;return this._origConsole?(Ds.forEach(function(Ot){return window.console[Ot]=vt._origConsole[Ot]}),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 Ot=this._$filterText,zt=this._logger;jt()(vt)?(Ot.text(vt),zt.setOption("filter",To()(vt))):Vs()(vt)?(Ot.text(Qt()(vt)),zt.setOption("filter",vt)):Ao()(vt)&&(Ot.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&&zn.remove(this._style),this.ignoreGlobalErr(),this.restoreConsole(),this._rmCfg()}},{key:"_enableJsExecution",value:function(vt){var Ot=this._$el,zt=Ot.find(Mn(".js-input"));vt?(zt.show(),Ot.rmClass(Mn("js-input-hidden"))):(zt.hide(),Ot.addClass(Mn("js-input-hidden")))}},{key:"_appendTpl",value:function(){var vt=this._$el;this._style=zn(d(3191)),vt.append(Mn(` + `)),this._$el=vt.find(Mn(".dev-tools")),this._$tools=this._$el.find(Mn(".tools"))}},{key:"_initTab",value:function(){var vt=this;this._tab=new P0.Z(this._$el.find(Mn(".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(Mn(".notification")).get(0),{position:{x:"center",y:"top"}})}},{key:"_initModal",value:function(){Fo.Z.setContainer(this._$el.find(Mn(".modal")).get(0))}},{key:"_bindEvent",value:function(){var vt=this,jt=this._$el.find(Mn(".resizer")),zt=this._$el.find(Mn(".nav-bar")),bn=st()(document),$n=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)))}},nr=function vr(){clearTimeout(vt._resizeTimer),vt._isResizing=!1,jt.css("height",10),bn.off(ko("move"),$n),bn.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%"),bn.on(ko("move"),$n),bn.on(ko("end"),nr)}),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()),F0=d(8816);function D0(an){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)(an);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(an){(0,tt.Z)(Ht,an);var Jt=D0(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(bn){vt._logger.error(bn)}),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 Ds.forEach(function(bn){var $n=jt[bn]=Qs();zt[bn]&&($n=jt[bn]=zt[bn].bind(zt)),zt[bn]=function(){vt[bn].apply(vt,arguments),$n.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?(Ds.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&&zn.remove(this._style),this.ignoreGlobalErr(),this.restoreConsole(),this._rmCfg()}},{key:"_enableJsExecution",value:function(vt){var jt=this._$el,zt=jt.find(Mn(".js-input"));vt?(zt.show(),jt.rmClass(Mn("js-input-hidden"))):(zt.hide(),jt.addClass(Mn("js-input-hidden")))}},{key:"_appendTpl",value:function(){var vt=this._$el;this._style=zn(d(3191)),vt.append(Mn(`
    All @@ -135,7 +135,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
    - `));var Ot=vt.find(Mn(".js-input")),zt=Ot.find("textarea"),bn=Ot.find(Mn(".buttons"));dn()(this,{_$control:vt.find(Mn(".control")),_$logs:vt.find(Mn(".logs-container")),_$inputContainer:Ot,_$input:zt,_$inputBtns:bn,_$filterText:vt.find(Mn(".filter-text"))})}},{key:"_initLogger",value:function(){var vt=this.config,Ot=vt.get("maxLogNum");Ot=Ot==="infinite"?0:+Ot;var zt=this._$control.find(Mn(".level")),bn=new F0.Z(this._$logs.get(0),{asyncRender:vt.get("asyncRender"),maxNum:Ot,showHeader:vt.get("displayExtraInfo"),unenumerable:vt.get("displayUnenumerable"),accessGetter:vt.get("displayGetterVal"),lazyEvaluation:vt.get("lazyEvaluation")});bn.on("optionChange",function($n,nr){$n==="level"&&zt.each(function(){var vr=st()(this),wr=vr.data("level");vr[wr===nr||wr==="all"&&yn()(nr)?"addClass":"rmClass"](Mn("active"))})}),vt.get("overrideConsole")&&this.overrideConsole(),this._logger=bn}},{key:"_exposeLogger",value:function(){var vt=this,Ot=this._logger;["html"].concat(Ds).forEach(function(zt){return vt[zt]=function(){for(var bn=arguments.length,$n=new Array(bn),nr=0;nr"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)(an);if(Jt){var Ot=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,Ot)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var V0=function(an){(0,tt.Z)(Ht,an);var Jt=Z0(Ht);function Ht(vt,Ot){var zt;return(0,j.Z)(this,Ht),zt=Jt.call(this),(0,ot.Z)((0,et.Z)(zt),"_copyRes",function(){var bn=zt._detailData,$n="".concat(bn.method," ").concat(bn.url," ").concat(bn.status,` + `));var jt=vt.find(Mn(".js-input")),zt=jt.find("textarea"),bn=jt.find(Mn(".buttons"));dn()(this,{_$control:vt.find(Mn(".control")),_$logs:vt.find(Mn(".logs-container")),_$inputContainer:jt,_$input:zt,_$inputBtns:bn,_$filterText:vt.find(Mn(".filter-text"))})}},{key:"_initLogger",value:function(){var vt=this.config,jt=vt.get("maxLogNum");jt=jt==="infinite"?0:+jt;var zt=this._$control.find(Mn(".level")),bn=new F0.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")});bn.on("optionChange",function($n,nr){$n==="level"&&zt.each(function(){var vr=st()(this),wr=vr.data("level");vr[wr===nr||wr==="all"&&yn()(nr)?"addClass":"rmClass"](Mn("active"))})}),vt.get("overrideConsole")&&this.overrideConsole(),this._logger=bn}},{key:"_exposeLogger",value:function(){var vt=this,jt=this._logger;["html"].concat(Ds).forEach(function(zt){return vt[zt]=function(){for(var bn=arguments.length,$n=new Array(bn),nr=0;nr"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)(an);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(an){(0,tt.Z)(Ht,an);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 bn=zt._detailData,$n="".concat(bn.method," ").concat(bn.url," ").concat(bn.status,` `);vo()(bn.reqHeaders)||($n+=` Request Headers @@ -146,7 +146,7 @@ Response Headers `,_t()(bn.resHeaders,function(nr,vr){return $n+="".concat(vr,": ").concat(nr,` `)})),bn.resTxt&&($n+=` `.concat(bn.resTxt,` -`)),pn()($n),zt._devtools.notify("Copied")}),zt._$container=vt,zt._devtools=Ot,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 Ot="";vt.data&&(Ot='
    ').concat(Kr()(vt.data),"
    "));var zt="Empty";vt.reqHeaders&&(zt=ho()(vt.reqHeaders,function(wr,Nr){return` +`)),pn()($n),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 bn="Empty";vt.resHeaders&&(bn=ho()(vt.resHeaders,function(wr,Nr){return` @@ -159,7 +159,7 @@ Response Headers
    - `).concat(Ot,` + `).concat(jt,`

    Response Headers

    @@ -177,11 +177,11 @@ Response Headers
    `).concat($n,` -
    `);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,Ot=this._devtools;this._$container.on("click",Mn(".back"),function(){return vt.hide()}).on("click",Mn(".copy-res"),this._copyRes).on("click",Mn(".http .response"),function(){var bn=vt._detailData,$n=bn.resTxt;if(z0()($n))return zt("object",$n);switch(bn.subType){case"css":return zt("css",$n);case"html":return zt("html",$n);case"javascript":return zt("js",$n);case"json":return zt("object",$n)}return bn.type==="image"?zt("img",bn.url):void 0});var zt=function(bn,$n){var nr=Ot.get("sources");nr&&(nr.set(bn,$n),Ot.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(an,Jt){var Ht=Object.keys(an);if(Object.getOwnPropertySymbols){var vt=Object.getOwnPropertySymbols(an);Jt&&(vt=vt.filter(function(Ot){return Object.getOwnPropertyDescriptor(an,Ot).enumerable})),Ht.push.apply(Ht,vt)}return Ht}function pl(an){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)(an);if(Jt){var Ot=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,Ot)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var rp=function(an){(0,tt.Z)(Ht,an);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(Ot){if(vt._isRecording){var zt,bn={name:ll(Ot.request.url),url:Ot.request.url,status:"pending",type:"unknown",subType:"unknown",size:0,data:Ot.request.postData,method:Ot.request.method,startTime:1e3*Ot.timestamp,time:0,resTxt:"",done:!1,reqHeaders:Ot.request.headers||{},resHeaders:{}};bn.render=function(){var $n={name:bn.name,method:bn.method,status:bn.status,type:bn.subType,size:bn.size,time:bn.displayTime};zt?(zt.data=$n,zt.render()):(zt=vt._requestDataGrid.append($n,{selectable:!0}),st()(zt.container).data("id",Ot.requestId)),bn.hasErr&&st()(zt.container).addClass(Mn("request-error"))},bn.render(),vt._requests[Ot.requestId]=bn}}),(0,ot.Z)((0,et.Z)(vt),"_resReceivedExtraInfo",function(Ot){var zt=vt._requests[Ot.requestId];vt._isRecording&&zt&&(zt.resHeaders=Ot.headers,vt._updateType(zt),zt.render())}),(0,ot.Z)((0,et.Z)(vt),"_resReceived",function(Ot){var zt=vt._requests[Ot.requestId];if(vt._isRecording&&zt){var bn=Ot.response,$n=bn.status,nr=bn.headers;zt.status=$n,($n<200||$n>=300)&&(zt.hasErr=!0),nr&&(zt.resHeaders=nr,vt._updateType(zt)),zt.render()}}),(0,ot.Z)((0,et.Z)(vt),"_loadingFinished",function(Ot){var zt=vt._requests[Ot.requestId];if(vt._isRecording&&zt){var bn=1e3*Ot.timestamp;zt.time=bn-zt.startTime,zt.displayTime=Ys()(zt.time),zt.size=Ot.encodedDataLength,zt.done=!0,zt.resTxt=uo.domain("Network").getResponseBody({requestId:Ot.requestId}).body,zt.render()}}),(0,ot.Z)((0,et.Z)(vt),"_copyCurl",function(){var Ot=vt._selectedRequest;pn()(function(zt){var bn=zo()();bn==="windows"&&(bn="win");var $n=[],nr=tp()(["accept-encoding","host","method","path","scheme","version"]),vr=bn==="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",Mn(".back"),function(){return vt.hide()}).on("click",Mn(".copy-res"),this._copyRes).on("click",Mn(".http .response"),function(){var bn=vt._detailData,$n=bn.resTxt;if(z0()($n))return zt("object",$n);switch(bn.subType){case"css":return zt("css",$n);case"html":return zt("html",$n);case"javascript":return zt("js",$n);case"json":return zt("object",$n)}return bn.type==="image"?zt("img",bn.url):void 0});var zt=function(bn,$n){var nr=jt.get("sources");nr&&(nr.set(bn,$n),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(an,Jt){var Ht=Object.keys(an);if(Object.getOwnPropertySymbols){var vt=Object.getOwnPropertySymbols(an);Jt&&(vt=vt.filter(function(jt){return Object.getOwnPropertyDescriptor(an,jt).enumerable})),Ht.push.apply(Ht,vt)}return Ht}function pl(an){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)(an);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(an){(0,tt.Z)(Ht,an);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,bn={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:{}};bn.render=function(){var $n={name:bn.name,method:bn.method,status:bn.status,type:bn.subType,size:bn.size,time:bn.displayTime};zt?(zt.data=$n,zt.render()):(zt=vt._requestDataGrid.append($n,{selectable:!0}),st()(zt.container).data("id",jt.requestId)),bn.hasErr&&st()(zt.container).addClass(Mn("request-error"))},bn.render(),vt._requests[jt.requestId]=bn}}),(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 bn=jt.response,$n=bn.status,nr=bn.headers;zt.status=$n,($n<200||$n>=300)&&(zt.hasErr=!0),nr&&(zt.resHeaders=nr,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 bn=1e3*jt.timestamp;zt.time=bn-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 bn=zo()();bn==="windows"&&(bn="win");var $n=[],nr=tp()(["accept-encoding","host","method","path","scheme","version"]),vr=bn==="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+"'"};$n.push(vr(zt.url()).replace(/[[{}\]]/g,"\\$&"));var wr="GET",Nr=[],Vr=zt.requestFormData();Vr&&(Nr.push("--data-raw "+vr(Vr)),nr["content-length"]=!0,wr="POST"),zt.requestMethod!==wr&&$n.push("-X "+vr(zt.requestMethod));for(var Jr=zt.requestHeaders(),lo=0;lo=3?bn==="win"?` ^ `:` \\ - `:" ")}({requestMethod:Ot.method,url:function(){return Ot.url},requestFormData:function(){return Ot.data},requestHeaders:function(){var zt=Ot.reqHeaders||{};return dn()(zt,{"User-Agent":navigator.userAgent,Referer:location.href}),ho()(zt,function(bn,$n){return{name:$n,value:bn}})}})),vt._container.notify("Copied")}),(0,ot.Z)((0,et.Z)(vt),"_toggleRecording",function(){vt._$control.find(Mn(".record")).toggleClass(Mn("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(Ot){vt._splitMediaQuery.setQuery("screen and (min-width: ".concat(680*Ot,"px)"))}),vt._style=zn(d(3180)),vt.name="network",vt._requests={},vt._selectedRequest=null,vt._isRecording=!0,vt}return(0,$.Z)(Ht,[{key:"init",value:function(vt,Ot){(0,ht.Z)((0,nt.Z)(Ht.prototype),"init",this).call(this,vt),this._container=Ot,this._initTpl(),this._detail=new V0(this._$detail,Ot),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(Ot){vt.push(Ot)}),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 Ot=function($n){if(!$n)return"unknown";var nr=$n.split(";")[0].split("/");return{type:nr[0],subType:as()(nr)}}(vt.resHeaders["content-type"]||""),zt=Ot.type,bn=Ot.subType;vt.type=zt,vt.subType=bn}},{key:"_updateButtons",value:function(){var vt=this._$control,Ot=vt.find(Mn(".show-detail")),zt=vt.find(Mn(".copy-curl")),bn=Mn("icon-disabled");Ot.addClass(bn),zt.addClass(bn),this._selectedRequest&&(Ot.rmClass(bn),zt.rmClass(bn))}},{key:"_bindEvent",value:function(){var vt=this,Ot=this._$control,zt=this._$filterText,bn=this._requestDataGrid,$n=this;Ot.on("click",Mn(".clear-request"),function(){return vt.clear()}).on("click",Mn(".show-detail"),this._showDetail).on("click",Mn(".copy-curl"),this._copyCurl).on("click",Mn(".record"),this._toggleRecording).on("click",Mn(".filter"),function(){Fo.Z.prompt("Filter").then(function(vr){Xr()(vr)||(zt.text(vr),bn.setOption("filter",To()(vr)))})}),bn.on("select",function(vr){var wr=st()(vr.container).data("id"),Nr=$n._requests[wr];vt._selectedRequest=Nr,vt._updateButtons(),vt._splitMode&&vt._showDetail()}),bn.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 nr=uo.domain("Network");nr.on("requestWillBeSent",this._reqWillBeSent),nr.on("responseReceivedExtraInfo",this._resReceivedExtraInfo),nr.on("responseReceived",this._resReceived),nr.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(),zn.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(Mn(`
    + `:" ")}({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(bn,$n){return{name:$n,value:bn}})}})),vt._container.notify("Copied")}),(0,ot.Z)((0,et.Z)(vt),"_toggleRecording",function(){vt._$control.find(Mn(".record")).toggleClass(Mn("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=zn(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($n){if(!$n)return"unknown";var nr=$n.split(";")[0].split("/");return{type:nr[0],subType:as()(nr)}}(vt.resHeaders["content-type"]||""),zt=jt.type,bn=jt.subType;vt.type=zt,vt.subType=bn}},{key:"_updateButtons",value:function(){var vt=this._$control,jt=vt.find(Mn(".show-detail")),zt=vt.find(Mn(".copy-curl")),bn=Mn("icon-disabled");jt.addClass(bn),zt.addClass(bn),this._selectedRequest&&(jt.rmClass(bn),zt.rmClass(bn))}},{key:"_bindEvent",value:function(){var vt=this,jt=this._$control,zt=this._$filterText,bn=this._requestDataGrid,$n=this;jt.on("click",Mn(".clear-request"),function(){return vt.clear()}).on("click",Mn(".show-detail"),this._showDetail).on("click",Mn(".copy-curl"),this._copyCurl).on("click",Mn(".record"),this._toggleRecording).on("click",Mn(".filter"),function(){Fo.Z.prompt("Filter").then(function(vr){Xr()(vr)||(zt.text(vr),bn.setOption("filter",To()(vr)))})}),bn.on("select",function(vr){var wr=st()(vr.container).data("id"),Nr=$n._requests[wr];vt._selectedRequest=Nr,vt._updateButtons(),vt._splitMode&&vt._showDetail()}),bn.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 nr=uo.domain("Network");nr.on("requestWillBeSent",this._reqWillBeSent),nr.on("responseReceivedExtraInfo",this._resReceivedExtraInfo),nr.on("responseReceived",this._resReceived),nr.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(),zn.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(Mn(`
    @@ -192,7 +192,7 @@ Response Headers
    -
    `)),this._$network=vt.find(Mn(".network")),this._$detail=vt.find(Mn(".detail")),this._$requests=vt.find(Mn(".requests")),this._$control=vt.find(Mn(".control")),this._$filterText=vt.find(Mn(".filter-text"))}}]),Ht}(ct),op=d(8209),ip=d(8613),ap=d.n(ip);function gl(an){for(var Jt={},Ht=0,vt=an.length;Htvr?vr:nr,Nr=0;Nrvr?1:nr(Jt=vl(Jt))?1:an1&&arguments[1]!==void 0?arguments[1]:{}).noAttr,Ht=Jt!==void 0&&Jt;if(an.nodeType===Node.TEXT_NODE)return'(text)');if(an.nodeType===Node.COMMENT_NODE)return'');var vt=an.id,Ot=an.className,zt=an.attributes,bn=''.concat(an.tagName.toLowerCase(),"");if(vt!==""&&(bn+='#'.concat(vt,"")),jt()(Ot)){var $n="";_t()(Ot.split(/\s+/g),function(nr){nr.trim()!==""&&($n+=".".concat(nr))}),bn+=''.concat($n,"")}return Ht||_t()(zt,function(nr){var vr=nr.name;vr!=="id"&&vr!=="class"&&vr!=="style"&&(bn+=' '.concat(vr,'="').concat(nr.value,'"'))}),bn}var up=function(){function an(Jt,Ht){var vt=this;(0,j.Z)(this,an),(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)(an,[{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(Ot,zt,bn){(function($n,nr,vr){var wr=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(!(!Eo()($n)||!Ao()(vr)||!Cr()(wr))){var Nr=$n.erudaEvents=$n.erudaEvents||{};Nr[nr]=Nr[nr]||[],Nr[nr].push({listener:vr,listenerStr:vr.toString(),useCapture:wr})}})(this,Ot,zt,bn),Ht.apply(this,arguments)},Jt.removeEventListener=function(Ot,zt,bn){(function($n,nr,vr){var wr=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(!(!Eo()($n)||!Ao()(vr)||!Cr()(wr))){var Nr=$n.erudaEvents;if(!(!Nr||!Nr[nr])){for(var Vr=Nr[nr],Jr=0,lo=Vr.length;Jr +
    `)),this._$network=vt.find(Mn(".network")),this._$detail=vt.find(Mn(".detail")),this._$requests=vt.find(Mn(".requests")),this._$control=vt.find(Mn(".control")),this._$filterText=vt.find(Mn(".filter-text"))}}]),Ht}(ct),op=d(8209),ip=d(8613),ap=d.n(ip);function gl(an){for(var Jt={},Ht=0,vt=an.length;Htvr?vr:nr,Nr=0;Nrvr?1:nr(Jt=vl(Jt))?1:an1&&arguments[1]!==void 0?arguments[1]:{}).noAttr,Ht=Jt!==void 0&&Jt;if(an.nodeType===Node.TEXT_NODE)return'(text)');if(an.nodeType===Node.COMMENT_NODE)return'');var vt=an.id,jt=an.className,zt=an.attributes,bn=''.concat(an.tagName.toLowerCase(),"");if(vt!==""&&(bn+='#'.concat(vt,"")),Ot()(jt)){var $n="";_t()(jt.split(/\s+/g),function(nr){nr.trim()!==""&&($n+=".".concat(nr))}),bn+=''.concat($n,"")}return Ht||_t()(zt,function(nr){var vr=nr.name;vr!=="id"&&vr!=="class"&&vr!=="style"&&(bn+=' '.concat(vr,'="').concat(nr.value,'"'))}),bn}var up=function(){function an(Jt,Ht){var vt=this;(0,j.Z)(this,an),(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)(an,[{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,bn){(function($n,nr,vr){var wr=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(!(!Eo()($n)||!Ao()(vr)||!Cr()(wr))){var Nr=$n.erudaEvents=$n.erudaEvents||{};Nr[nr]=Nr[nr]||[],Nr[nr].push({listener:vr,listenerStr:vr.toString(),useCapture:wr})}})(this,jt,zt,bn),Ht.apply(this,arguments)},Jt.removeEventListener=function(jt,zt,bn){(function($n,nr,vr){var wr=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(!(!Eo()($n)||!Ao()(vr)||!Cr()(wr))){var Nr=$n.erudaEvents;if(!(!Nr||!Nr[nr])){for(var Vr=Nr[nr],Jr=0,lo=Vr.length;Jr @@ -202,7 +202,7 @@ Response Headers
    -
    `);Jt.html(Ht),this._$elementName=Jt.find(Mn(".element-name")),this._$attributes=Jt.find(Mn(".attributes")),this._$styles=Jt.find(Mn(".styles")),this._$listeners=Jt.find(Mn(".listeners")),this._$computedStyle=Jt.find(Mn(".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,Ot=this._$styles,zt=this._$computedStyle,bn=this._$listeners;vt.html(Jt.name);var $n="Empty";vo()(Jt.attributes)||($n=ho()(Jt.attributes,function(Jr){var lo=Jr.name,go=Jr.value;return` + `);Jt.html(Ht),this._$elementName=Jt.find(Mn(".element-name")),this._$attributes=Jt.find(Mn(".attributes")),this._$styles=Jt.find(Mn(".styles")),this._$listeners=Jt.find(Mn(".listeners")),this._$computedStyle=Jt.find(Mn(".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,bn=this._$listeners;vt.html(Jt.name);var $n="Empty";vo()(Jt.attributes)||($n=ho()(Jt.attributes,function(Jr){var lo=Jr.name,go=Jr.value;return` ').concat(Kr()(lo),` ').concat(go,` `)}).join("")),$n=`

    Attributes

    @@ -212,14 +212,14 @@ Response Headers `).concat($n,` - `),Ht.html($n);var nr="";if(vo()(Jt.styles))Ot.hide();else{var vr=ho()(Jt.styles,function(Jr){var lo=Jr.selectorText,go=Jr.style;return go=ho()(go,function(xo,_o){return'
    ').concat(Kr()(_o),": ").concat(xo,";
    ")}).join(""),'
    +
    `),Ht.html($n);var nr="";if(vo()(Jt.styles))jt.hide();else{var vr=ho()(Jt.styles,function(Jr){var lo=Jr.selectorText,go=Jr.style;return go=ho()(go,function(xo,_o){return'
    ').concat(Kr()(_o),": ").concat(xo,";
    ")}).join(""),'
    `).concat(Kr()(lo),` {
    `).concat(go,`
    }
    `)}).join("");nr=`

    Styles

    `).concat(vr,` -
    `),Ot.html(nr).show()}var wr="";if(Jt.computedStyle){var Nr=Mn(`
    +
    `),jt.html(nr).show()}var wr="";if(Jt.computedStyle){var Nr=Mn(`
    `);Jt.rmDefComputedStyle&&(Nr=Mn(`
    @@ -249,7 +249,7 @@ Response Headers
    `)}).join(""),Vr=`

    Event Listeners

    `).concat(Vr,` -
    `),bn.html(Vr).show()):bn.hide(),this._$container.show()}},{key:"_getData",value:function(Jt){var Ht={},vt=new sp(Jt),Ot=Jt.className,zt=Jt.id,bn=Jt.attributes,$n=Jt.tagName;Ht.computedStyleSearchKeyword=this._computedStyleSearchKeyword,Ht.attributes=dp(bn),Ht.name=yl({tagName:$n,id:zt,className:Ot,attributes:bn});var nr=Jt.erudaEvents;if(nr&&fn()(nr).length!==0&&(Ht.listeners=nr),gp($n))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(an){return pp.indexOf(an.toLowerCase())>-1},xl=function(an){return'').concat(an,"")},_l=function(){return tl()(window,"EventTarget.prototype")||window.Node.prototype};function mp(an){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)(an);if(Jt){var Ot=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,Ot)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var vp=function(an){(0,tt.Z)(Ht,an);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 Ot=vt._curParentQueue,zt=Ot.shift();!Cl(zt);)zt=Ot.shift();vt.set(zt)}}),(0,ot.Z)((0,et.Z)(vt),"_updateScale",function(Ot){vt._splitMediaQuery.setQuery("screen and (min-width: ".concat(680*Ot,"px)"))}),(0,ot.Z)((0,et.Z)(vt),"_deleteNode",function(){var Ot=vt._curNode;Ot.parentNode&&Ot.parentNode.removeChild(Ot)}),(0,ot.Z)((0,et.Z)(vt),"_copyNode",function(){var Ot=vt._curNode;Ot.nodeType===Node.ELEMENT_NODE?pn()(Ot.outerHTML):pn()(Ot.nodeValue),vt._container.notify("Copied")}),(0,ot.Z)((0,et.Z)(vt),"_toggleSelect",function(){vt._$el.find(Mn(".select")).toggleClass(Mn("active")),vt._selectElement=!vt._selectElement,vt._selectElement?(uo.domain("Overlay").setInspectMode({mode:"searchForNode",highlightConfig:{showInfo:!jo()(),showRulers:!1,showAccessibilityInfo:!jo()(),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(Ot){var zt=Ot.backendNodeId;vt._container.show(),vt._toggleSelect();var bn=uo.domain("DOM").getNode({nodeId:zt}).node;vt.select(bn)}),(0,ot.Z)((0,et.Z)(vt),"_setNode",function(Ot){if(Ot!==vt._curNode){vt._curNode=Ot,vt._renderCrumbs();for(var zt=[],bn=Ot.parentNode;bn;)zt.push(bn),bn=bn.parentNode;vt._curParentQueue=zt,vt._splitMode&&vt._showDetail(),vt._updateButtons(),vt._updateHistory()}}),vt._style=zn(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,Ot){var zt=this;(0,ht.Z)((0,nt.Z)(Ht.prototype),"init",this).call(this,vt),this._container=Ot,this._initTpl(),this._htmlEl=document.documentElement,this._detail=new up(this._$detail,Ot),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(bn){return Yo(bn)||cl(bn)}}),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),zn.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,Ot=vt.find(Mn(".show-detail")),zt=vt.find(Mn(".copy-node")),bn=vt.find(Mn(".delete-node")),$n=Mn("icon-disabled");Ot.addClass($n),zt.addClass($n),bn.addClass($n);var nr=this._curNode;nr&&(nr!==document.documentElement&&nr!==document.body&&bn.rmClass($n),zt.rmClass($n),nr.nodeType===Node.ELEMENT_NODE&&Ot.rmClass($n))}},{key:"_initTpl",value:function(){var vt=this._$el;vt.html(Mn(`
    +
    `),bn.html(Vr).show()):bn.hide(),this._$container.show()}},{key:"_getData",value:function(Jt){var Ht={},vt=new sp(Jt),jt=Jt.className,zt=Jt.id,bn=Jt.attributes,$n=Jt.tagName;Ht.computedStyleSearchKeyword=this._computedStyleSearchKeyword,Ht.attributes=dp(bn),Ht.name=yl({tagName:$n,id:zt,className:jt,attributes:bn});var nr=Jt.erudaEvents;if(nr&&fn()(nr).length!==0&&(Ht.listeners=nr),gp($n))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(an){return pp.indexOf(an.toLowerCase())>-1},xl=function(an){return'').concat(an,"")},_l=function(){return tl()(window,"EventTarget.prototype")||window.Node.prototype};function mp(an){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)(an);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(an){(0,tt.Z)(Ht,an);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(Mn(".select")).toggleClass(Mn("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 bn=uo.domain("DOM").getNode({nodeId:zt}).node;vt.select(bn)}),(0,ot.Z)((0,et.Z)(vt),"_setNode",function(jt){if(jt!==vt._curNode){vt._curNode=jt,vt._renderCrumbs();for(var zt=[],bn=jt.parentNode;bn;)zt.push(bn),bn=bn.parentNode;vt._curParentQueue=zt,vt._splitMode&&vt._showDetail(),vt._updateButtons(),vt._updateHistory()}}),vt._style=zn(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(bn){return Yo(bn)||cl(bn)}}),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),zn.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(Mn(".show-detail")),zt=vt.find(Mn(".copy-node")),bn=vt.find(Mn(".delete-node")),$n=Mn("icon-disabled");jt.addClass($n),zt.addClass($n),bn.addClass($n);var nr=this._curNode;nr&&(nr!==document.documentElement&&nr!==document.body&&bn.rmClass($n),zt.rmClass($n),nr.nodeType===Node.ELEMENT_NODE&&jt.rmClass($n))}},{key:"_initTpl",value:function(){var vt=this._$el;vt.html(Mn(`
    @@ -261,16 +261,16 @@ Response Headers
    -
    `)),this._$detail=vt.find(Mn(".detail")),this._$domViewer=vt.find(Mn(".dom-viewer")),this._$control=vt.find(Mn(".control")),this._$crumbs=vt.find(Mn(".crumbs"))}},{key:"_renderCrumbs",value:function(){var vt=function(zt){for(var bn=[],$n=0;zt;)bn.push({text:yl(zt,{noAttr:!0}),idx:$n++}),zt=zt.parentElement;return bn.reverse()}(this._curNode),Ot="";vo()(vt)||(Ot=ho()(vt,function(zt){var bn=zt.text,$n=zt.idx;return'
  • ').concat(bn,"
  • ")}).join("")),this._$crumbs.html(Ot)}},{key:"_bindEvent",value:function(){var vt=this,Ot=this;this._$el.on("click",Mn(".crumb"),function(){for(var zt=ls()(st()(this).data("idx")),bn=Ot._curNode;zt--&&bn.parentElement;)bn=bn.parentElement;Cl(bn)&&Ot.select(bn)}),this._$control.on("click",Mn(".select"),this._toggleSelect).on("click",Mn(".show-detail"),this._showDetail).on("click",Mn(".copy-node"),this._copyNode).on("click",Mn(".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 Ot=this._history;Ot.unshift(this._curNode),Ot.length>5&&Ot.pop();for(var zt=0;zt<5;zt++)vt.setGlobal("$".concat(zt),Ot[zt])}}}]),Ht}(ct),Cl=function(an){return Eo()(an)&&an.parentNode},fs=null,yp=[{name:"Border All",fn:function(){if(fs)return zn.remove(fs),void(fs=null);fs=zn("* { outline: 2px dashed #707d8b; outline-offset: -3px; }",document.head)},desc:"Add color borders to all elements"},{name:"Refresh Page",fn:function(){var an=new(tr());an.setQuery("timestamp",Js()()),window.location.replace(an.toString())},desc:"Add timestamp to url and refresh"},{name:"Search Text",fn:function(){Fo.Z.prompt("Enter the text").then(function(an){an&&To()(an)!==""&&function(Jt){var Ht=document.body,vt=new RegExp(Jt,"ig");Hs(Ht,function(Ot){var zt=st()(Ot);if(zt.hasClass("eruda-search-highlight-block"))return document.createTextNode(zt.text())}),Hs(Ht,function(Ot){if(Ot.nodeType===3){var zt=Ot.nodeValue;if((zt=zt.replace(vt,function($n){return''.concat($n,"")}))!==Ot.nodeValue){var bn=st()(document.createElement("div"));return bn.html(zt),bn.addClass("eruda-search-highlight-block"),bn.get(0)}}})}(an)})},desc:"Highlight given text on page"},{name:"Edit Page",fn:function(){var an=document.body;an.contentEditable=an.contentEditable!=="true"},desc:"Toggle body contentEditable"},{name:"Fit Screen",fn:function(){var an=document.body,Jt=document.documentElement,Ht=st()(an);if(Ht.data("scaled"))window.scrollTo(0,+Ht.data("scaled")),Ht.rmAttr("data-scaled"),Ht.css("transform","none");else{var vt=Math.max(an.scrollHeight,an.offsetHeight,Jt.clientHeight,Jt.scrollHeight,Jt.offsetHeight),Ot=Math.max(document.documentElement.clientHeight,window.innerHeight||0),zt=Ot/vt;Ht.css("transform","scale(".concat(zt,")")),Ht.data("scaled",window.scrollY),window.scrollTo(0,vt/2-Ot/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(an,Jt){var Ht=an.childNodes;if(!Yo(an)){for(var vt=0,Ot=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)(an);if(Jt){var Ot=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,Ot)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var xp=function(an){(0,tt.Z)(Ht,an);var Jt=wp(Ht);function Ht(){var vt;return(0,j.Z)(this,Ht),(vt=Jt.call(this))._style=zn(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),zn.remove(this._style)}},{key:"add",value:function(vt,Ot,zt){return this._snippets.push({name:vt,fn:Ot,desc:zt}),this._render(),this}},{key:"remove",value:function(vt){for(var Ot=this._snippets,zt=0,bn=Ot.length;zt -

    ').concat(Kr()(Ot.name),` +
    `)),this._$detail=vt.find(Mn(".detail")),this._$domViewer=vt.find(Mn(".dom-viewer")),this._$control=vt.find(Mn(".control")),this._$crumbs=vt.find(Mn(".crumbs"))}},{key:"_renderCrumbs",value:function(){var vt=function(zt){for(var bn=[],$n=0;zt;)bn.push({text:yl(zt,{noAttr:!0}),idx:$n++}),zt=zt.parentElement;return bn.reverse()}(this._curNode),jt="";vo()(vt)||(jt=ho()(vt,function(zt){var bn=zt.text,$n=zt.idx;return'
  • ').concat(bn,"
  • ")}).join("")),this._$crumbs.html(jt)}},{key:"_bindEvent",value:function(){var vt=this,jt=this;this._$el.on("click",Mn(".crumb"),function(){for(var zt=ls()(st()(this).data("idx")),bn=jt._curNode;zt--&&bn.parentElement;)bn=bn.parentElement;Cl(bn)&&jt.select(bn)}),this._$control.on("click",Mn(".select"),this._toggleSelect).on("click",Mn(".show-detail"),this._showDetail).on("click",Mn(".copy-node"),this._copyNode).on("click",Mn(".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(an){return Eo()(an)&&an.parentNode},fs=null,yp=[{name:"Border All",fn:function(){if(fs)return zn.remove(fs),void(fs=null);fs=zn("* { outline: 2px dashed #707d8b; outline-offset: -3px; }",document.head)},desc:"Add color borders to all elements"},{name:"Refresh Page",fn:function(){var an=new(tr());an.setQuery("timestamp",Js()()),window.location.replace(an.toString())},desc:"Add timestamp to url and refresh"},{name:"Search Text",fn:function(){Fo.Z.prompt("Enter the text").then(function(an){an&&To()(an)!==""&&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($n){return''.concat($n,"")}))!==jt.nodeValue){var bn=st()(document.createElement("div"));return bn.html(zt),bn.addClass("eruda-search-highlight-block"),bn.get(0)}}})}(an)})},desc:"Highlight given text on page"},{name:"Edit Page",fn:function(){var an=document.body;an.contentEditable=an.contentEditable!=="true"},desc:"Toggle body contentEditable"},{name:"Fit Screen",fn:function(){var an=document.body,Jt=document.documentElement,Ht=st()(an);if(Ht.data("scaled"))window.scrollTo(0,+Ht.data("scaled")),Ht.rmAttr("data-scaled"),Ht.css("transform","none");else{var vt=Math.max(an.scrollHeight,an.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(an,Jt){var Ht=an.childNodes;if(!Yo(an)){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)(an);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(an){(0,tt.Z)(Ht,an);var Jt=wp(Ht);function Ht(){var vt;return(0,j.Z)(this,Ht),(vt=Jt.call(this))._style=zn(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),zn.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,bn=jt.length;zt +

    ').concat(Kr()(jt.name),`

    - `).concat(Kr()(Ot.desc),` + `).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 an(Jt,Ht,vt,Ot){var zt=this;(0,j.Z)(this,an),(0,ot.Z)(this,"_updateGridHeight",function(bn){zt._dataGrid.setOption({minHeight:60*bn,maxHeight:223*bn})}),this._type=Ot,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)(an,[{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,Ot=Ht.val;Jt.append({key:vt,value:Ot},{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(Ot,zt){jt()(Ot)&&(Jt.config.get("hideErudaSetting")&&(qo()(zt,"eruda")||zt==="active-eruda")||vt.push({key:zt,val:ds()(Ot,200)}))}),this._storeData=vt}}},{key:"_updateButtons",value:function(){var Jt=this._$container,Ht=Jt.find(Mn(".show-detail")),vt=Jt.find(Mn(".delete-storage")),Ot=Jt.find(Mn(".copy-storage")),zt=Mn("btn-disabled");Ht.addClass(zt),vt.addClass(zt),Ot.addClass(zt),this._selectedItem&&(Ht.rmClass(zt),vt.rmClass(zt),Ot.rmClass(zt))}},{key:"_initTpl",value:function(){var Jt=this._$container,Ht=this._type;Jt.html(Mn(`

    + `)}).join("");this._renderHtml(vt)}},{key:"_renderHtml",value:function(vt){vt!==this._lastHtml&&(this._lastHtml=vt,this._$el.html(vt))}}]),Ht}(ct),kl=function(){function an(Jt,Ht,vt,jt){var zt=this;(0,j.Z)(this,an),(0,ot.Z)(this,"_updateGridHeight",function(bn){zt._dataGrid.setOption({minHeight:60*bn,maxHeight:223*bn})}),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)(an,[{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(Mn(".show-detail")),vt=Jt.find(Mn(".delete-storage")),jt=Jt.find(Mn(".copy-storage")),zt=Mn("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(Mn(`

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

    -
    `))),this._$dataGrid=Jt.find(Mn(".data-grid")),this._$filterText=Jt.find(Mn(".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 Ot(zt,bn){var $n=vt.get("sources");if($n)return $n.set(zt,bn),vt.showTool("sources"),!0}this._$container.on("click",Mn(".refresh-storage"),function(){vt.notify("Refreshed"),Jt.refresh()}).on("click",Mn(".clear-storage"),function(){_t()(Jt._storeData,function(zt){Ht==="local"?localStorage.removeItem(zt.key):sessionStorage.removeItem(zt.key)}),Jt.refresh()}).on("click",Mn(".show-detail"),function(){var zt=Jt._selectedItem,bn=Jt._getVal(zt);try{Ot("object",JSON.parse(bn))}catch{Ot("raw",bn)}}).on("click",Mn(".copy-storage"),function(){var zt=Jt._selectedItem;pn()(Jt._getVal(zt)),vt.notify("Copied")}).on("click",Mn(".filter"),function(){Fo.Z.prompt("Filter").then(function(zt){Xr()(zt)||(zt=To()(zt),Jt._$filterText.text(zt),Jt._dataGrid.setOption("filter",zt))})}).on("click",Mn(".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)}}]),an}();function hs(an,Jt){an.rmClass(Mn("ok")).rmClass(Mn("danger")).rmClass(Mn("warn")).addClass(Mn(Jt))}function ps(an,Jt){if(Jt===0)return"";var Ht=0,vt=0;switch(an){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 an(Jt,Ht){(0,j.Z)(this,an),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)(an,[{key:"refresh",value:function(){var Jt=this._$container,Ht=this._dataGrid,vt=uo.domain("Network").getCookies().cookies,Ot=ho()(vt,function(zt){return{key:zt.name,val:zt.value}});Ht.clear(),_t()(Ot,function(zt){var bn=zt.key,$n=zt.val;Ht.append({key:bn,value:$n},{selectable:!0})}),hs(Jt,ps("cookie",Ot.length))}},{key:"_initTpl",value:function(){var Jt=this._$container;Jt.html(Mn(`

    +
    `))),this._$dataGrid=Jt.find(Mn(".data-grid")),this._$filterText=Jt.find(Mn(".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,bn){var $n=vt.get("sources");if($n)return $n.set(zt,bn),vt.showTool("sources"),!0}this._$container.on("click",Mn(".refresh-storage"),function(){vt.notify("Refreshed"),Jt.refresh()}).on("click",Mn(".clear-storage"),function(){_t()(Jt._storeData,function(zt){Ht==="local"?localStorage.removeItem(zt.key):sessionStorage.removeItem(zt.key)}),Jt.refresh()}).on("click",Mn(".show-detail"),function(){var zt=Jt._selectedItem,bn=Jt._getVal(zt);try{jt("object",JSON.parse(bn))}catch{jt("raw",bn)}}).on("click",Mn(".copy-storage"),function(){var zt=Jt._selectedItem;pn()(Jt._getVal(zt)),vt.notify("Copied")}).on("click",Mn(".filter"),function(){Fo.Z.prompt("Filter").then(function(zt){Xr()(zt)||(zt=To()(zt),Jt._$filterText.text(zt),Jt._dataGrid.setOption("filter",zt))})}).on("click",Mn(".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)}}]),an}();function hs(an,Jt){an.rmClass(Mn("ok")).rmClass(Mn("danger")).rmClass(Mn("warn")).addClass(Mn(Jt))}function ps(an,Jt){if(Jt===0)return"";var Ht=0,vt=0;switch(an){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 an(Jt,Ht){(0,j.Z)(this,an),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)(an,[{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 bn=zt.key,$n=zt.val;Ht.append({key:bn,value:$n},{selectable:!0})}),hs(Jt,ps("cookie",jt.length))}},{key:"_initTpl",value:function(){var Jt=this._$container;Jt.html(Mn(`

    Cookie

    -
    `)),this._$dataGrid=Jt.find(Mn(".data-grid")),this._$filterText=Jt.find(Mn(".filter-text"))}},{key:"_updateButtons",value:function(){var Jt=this._$container,Ht=Jt.find(Mn(".show-detail")),vt=Jt.find(Mn(".delete-cookie")),Ot=Jt.find(Mn(".copy-cookie")),zt=Mn("btn-disabled");Ht.addClass(zt),vt.addClass(zt),Ot.addClass(zt),this._selectedItem&&(Ht.rmClass(zt),vt.rmClass(zt),Ot.rmClass(zt))}},{key:"_getVal",value:function(Jt){for(var Ht=uo.domain("Network").getCookies().cookies,vt=0,Ot=Ht.length;vt=an.length?{done:!0}:{done:!1,value:an[vt++]}},e:function(nr){throw nr},f:Ot}}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,bn=!0,$n=!1;return{s:function(){Ht=Ht.call(an)},n:function(){var nr=Ht.next();return bn=nr.done,nr},e:function(nr){$n=!0,zt=nr},f:function(){try{bn||Ht.return==null||Ht.return()}finally{if($n)throw zt}}}}function Al(an,Jt){(Jt==null||Jt>an.length)&&(Jt=an.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)(an);if(Jt){var Ot=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,Ot)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var Ap=function(an){(0,tt.Z)(Ht,an);var Jt=kp(Ht);function Ht(){var vt;return(0,j.Z)(this,Ht),(vt=Jt.call(this))._style=zn(d(2488)),vt.name="resources",vt._hideErudaSetting=!1,vt._observeElement=!0,vt}return(0,$.Z)(Ht,[{key:"init",value:function(vt,Ot){(0,ht.Z)((0,nt.Z)(Ht.prototype),"init",this).call(this,vt),this._container=Ot,this._initTpl(),this._localStorage=new kl(this._$localStorage,Ot,this,"local"),this._sessionStorage=new kl(this._$sessionStorage,Ot,this,"session"),this._cookie=new _p(this._$cookie,Ot),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(),zn.remove(this._style),this._rmCfg()}},{key:"refreshScript",value:function(){var vt=[];st()("script").each(function(){var nr=this.src;nr!==""&&vt.push(nr)});var Ot=ps("script",(vt=Uo()(vt)).length),zt="
  • Empty
  • ";vo()(vt)||(zt=ho()(vt,function(nr){return nr=Kr()(nr),'
  • ').concat(nr,"
  • ")}).join(""));var bn='

    +
    `)),this._$dataGrid=Jt.find(Mn(".data-grid")),this._$filterText=Jt.find(Mn(".filter-text"))}},{key:"_updateButtons",value:function(){var Jt=this._$container,Ht=Jt.find(Mn(".show-detail")),vt=Jt.find(Mn(".delete-cookie")),jt=Jt.find(Mn(".copy-cookie")),zt=Mn("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=an.length?{done:!0}:{done:!1,value:an[vt++]}},e:function(nr){throw nr},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,bn=!0,$n=!1;return{s:function(){Ht=Ht.call(an)},n:function(){var nr=Ht.next();return bn=nr.done,nr},e:function(nr){$n=!0,zt=nr},f:function(){try{bn||Ht.return==null||Ht.return()}finally{if($n)throw zt}}}}function Al(an,Jt){(Jt==null||Jt>an.length)&&(Jt=an.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)(an);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(an){(0,tt.Z)(Ht,an);var Jt=kp(Ht);function Ht(){var vt;return(0,j.Z)(this,Ht),(vt=Jt.call(this))._style=zn(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(),zn.remove(this._style),this._rmCfg()}},{key:"refreshScript",value:function(){var vt=[];st()("script").each(function(){var nr=this.src;nr!==""&&vt.push(nr)});var jt=ps("script",(vt=Uo()(vt)).length),zt="
  • Empty
  • ";vo()(vt)||(zt=ho()(vt,function(nr){return nr=Kr()(nr),'
  • ').concat(nr,"
  • ")}).join(""));var bn='

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

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

    + `),$n=this._$script;return hs($n,jt),$n.html(bn),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(nr){return nr=Kr()(nr),'
  • ').concat(nr,"
  • ")}).join(""));var bn='

    Stylesheet
    @@ -331,15 +331,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho

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

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

    Iframe

      - `).concat(Ot,` -
    `);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=[],Ot=this._performance=window.webkitPerformance||window.performance;Ot&&Ot.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),bn="
  • Empty
  • ";vo()(vt)||(bn=ho()(vt,function(vr){return'
  • + `).concat(jt,` + `);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),bn="
  • Empty
  • ";vo()(vt)||(bn=ho()(vt,function(vr){return'
  • `)}).join(""));var $n='

    Image @@ -355,24 +355,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
    -
    `)),this._$localStorage=vt.find(Mn(".local-storage")),this._$sessionStorage=vt.find(Mn(".session-storage")),this._$cookie=vt.find(Mn(".cookie")),this._$script=vt.find(Mn(".script")),this._$stylesheet=vt.find(Mn(".stylesheet")),this._$iframe=vt.find(Mn(".iframe")),this._$image=vt.find(Mn(".image"))}},{key:"_bindEvent",value:function(){var vt=this,Ot=this._$el,zt=this._container;function bn(nr,vr){var wr=zt.get("sources");if(wr)return wr.set(nr,vr),zt.showTool("sources"),!0}function $n(nr){return function(vr){if(zt.get("sources")){vr.preventDefault();var wr=st()(this).attr("href");nr!=="iframe"&&nl()(location.href,wr)?Kn()({url:wr,success:function(Nr){bn(nr,Nr)},dataType:"raw"}):bn("iframe",wr)}}}Ot.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(){bn("img",st()(this).attr("src"))}).on("click",".eruda-css-link",$n("css")).on("click",".eruda-js-link",$n("js")).on("click",".eruda-iframe-link",$n("iframe"))}},{key:"_rmCfg",value:function(){var vt=this.config,Ot=this._container.get("settings");Ot&&Ot.remove(vt,"hideErudaSetting").remove(vt,"observeElement").remove("Resources")}},{key:"_initCfg",value:function(){var vt=this,Ot=this.config=bt.createCfg("resources",{hideErudaSetting:!0,observeElement:!0});Ot.get("hideErudaSetting")&&(this._hideErudaSetting=!0),Ot.get("observeElement")||(this._observeElement=!1),Ot.on("change",function(zt,bn){switch(zt){case"hideErudaSetting":return void(vt._hideErudaSetting=bn);case"observeElement":return vt._observeElement=bn,bn?vt._enableObserver():vt._disableObserver()}}),this._container.get("settings").text("Resources").switch(Ot,"hideErudaSetting","Hide Eruda Setting").switch(Ot,"observeElement","Auto Refresh Elements").separator()}},{key:"_initObserver",value:function(){var vt=this;this._observer=new(Rt())(function(Ot){_t()(Ot,function(zt){vt._handleMutation(zt)})})}},{key:"_handleMutation",value:function(vt){var Ot=this;if(!Yo(vt.target)){var zt=function(vr){var wr=function(Nr){return Nr.tagName?Nr.tagName.toLowerCase():""}(vr);switch(wr){case"script":Ot.refreshScript();break;case"img":Ot.refreshImage();break;case"link":Ot.refreshStylesheet()}};if(vt.type==="attributes")zt(vt.target);else if(vt.type==="childList"){zt(vt.target);var bn,$n=ss()(vt.addedNodes),nr=Cp($n=Or()($n,ss()(vt.removedNodes)));try{for(nr.s();!(bn=nr.n()).done;)zt(bn.value)}catch(vr){nr.e(vr)}finally{nr.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(an){return Ep.test(an)},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(an){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)(an);if(Jt){var Ot=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,Ot)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var Ip=function(an){(0,tt.Z)(Ht,an);var Jt=Mp(Ht);function Ht(){var vt;return(0,j.Z)(this,Ht),(vt=Jt.call(this))._style=zn(d(879)),vt.name="info",vt._infos=[],vt}return(0,$.Z)(Ht,[{key:"init",value:function(vt,Ot){(0,ht.Z)((0,nt.Z)(Ht.prototype),"init",this).call(this,vt),this._container=Ot,this._addDefInfo(),this._bindEvent()}},{key:"destroy",value:function(){(0,ht.Z)((0,nt.Z)(Ht.prototype),"destroy",this).call(this),zn.remove(this._style)}},{key:"add",value:function(vt,Ot){var zt=this._infos,bn=!1;return _t()(zt,function($n){vt===$n.name&&($n.val=Ot,bn=!0)}),bn||zt.push({name:vt,val:Ot}),this._render(),this}},{key:"get",value:function(vt){var Ot,zt=this._infos;return Ns()(vt)?Ar()(zt):(_t()(zt,function(bn){vt===bn.name&&(Ot=bn.val)}),Ot)}},{key:"remove",value:function(vt){for(var Ot=this._infos,zt=Ot.length-1;zt>=0;zt--)Ot[zt].name===vt&&Ot.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(Ot){return vt.add(Ot.name,Ot.val)})}},{key:"_render",value:function(){var vt=[];_t()(this._infos,function(zt){var bn=zt.name,$n=zt.val;Ao()($n)&&($n=$n()),vt.push({name:bn,val:$n})});var Ot="
      ".concat(ho()(vt,function(zt){return'
    • ').concat(Kr()(zt.name),'

      ').concat(zt.val,"
    • ")}).join(""),"
    ");this._renderHtml(Ot)}},{key:"_bindEvent",value:function(){var vt=this._container;this._$el.on("click",Mn(".copy"),function(){var Ot=st()(this).parent().parent(),zt=Ot.find(Mn(".title")).text(),bn=Ot.find(Mn(".content")).text();pn()("".concat(zt,": ").concat(bn)),vt.notify("Copied")})}},{key:"_renderHtml",value:function(vt){vt!==this._lastHtml&&(this._lastHtml=vt,this._$el.html(vt))}}]),Ht}(ct),Op=d(8299),jp=d(8368),Rp=d.n(jp),Sl=d(7049);function Lp(an){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)(an);if(Jt){var Ot=(0,nt.Z)(this).constructor;Ht=Reflect.construct(vt,arguments,Ot)}else Ht=vt.apply(this,arguments);return(0,rt.Z)(this,Ht)}}var Bp=function(an){(0,tt.Z)(Ht,an);var Jt=Lp(Ht);function Ht(){var vt;return(0,j.Z)(this,Ht),(vt=Jt.call(this))._style=zn(d(1344)),vt.name="sources",vt._showLineNum=!0,vt}return(0,$.Z)(Ht,[{key:"init",value:function(vt,Ot){(0,ht.Z)((0,nt.Z)(Ht.prototype),"init",this).call(this,vt),this._container=Ot,this._bindEvent(),this._initCfg()}},{key:"destroy",value:function(){(0,ht.Z)((0,nt.Z)(Ht.prototype),"destroy",this).call(this),zn.remove(this._style),this._rmCfg()}},{key:"set",value:function(vt,Ot){if(vt==="img"){this._isFetchingData=!0;var zt=new Image,bn=this;return zt.onload=function(){bn._isFetchingData=!1,bn._data={type:"img",val:{width:this.width,height:this.height,src:Ot}},bn._render()},zt.onerror=function(){bn._isFetchingData=!1},void(zt.src=Ot)}return this._data={type:vt,val:Ot},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(Ot){return vt._html=Ot},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(Ot,zt){Ot!==vt.name&&zt.name===vt.name&&delete vt._data})}},{key:"_rmCfg",value:function(){var vt=this.config,Ot=this._container.get("settings");Ot&&Ot.remove(vt,"showLineNum").remove("Sources")}},{key:"_initCfg",value:function(){var vt=this,Ot=this.config=bt.createCfg("sources",{showLineNum:!0});Ot.get("showLineNum")||(this._showLineNum=!1),Ot.on("change",function(zt,bn){zt!=="showLineNum"||(vt._showLineNum=bn)}),this._container.get("settings").text("Sources").switch(Ot,"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,Ot=vt.width,zt=vt.height,bn=vt.src;this._renderHtml('
    +
    `)),this._$localStorage=vt.find(Mn(".local-storage")),this._$sessionStorage=vt.find(Mn(".session-storage")),this._$cookie=vt.find(Mn(".cookie")),this._$script=vt.find(Mn(".script")),this._$stylesheet=vt.find(Mn(".stylesheet")),this._$iframe=vt.find(Mn(".iframe")),this._$image=vt.find(Mn(".image"))}},{key:"_bindEvent",value:function(){var vt=this,jt=this._$el,zt=this._container;function bn(nr,vr){var wr=zt.get("sources");if(wr)return wr.set(nr,vr),zt.showTool("sources"),!0}function $n(nr){return function(vr){if(zt.get("sources")){vr.preventDefault();var wr=st()(this).attr("href");nr!=="iframe"&&nl()(location.href,wr)?Kn()({url:wr,success:function(Nr){bn(nr,Nr)},dataType:"raw"}):bn("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(){bn("img",st()(this).attr("src"))}).on("click",".eruda-css-link",$n("css")).on("click",".eruda-js-link",$n("js")).on("click",".eruda-iframe-link",$n("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,bn){switch(zt){case"hideErudaSetting":return void(vt._hideErudaSetting=bn);case"observeElement":return vt._observeElement=bn,bn?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 bn,$n=ss()(vt.addedNodes),nr=Cp($n=jr()($n,ss()(vt.removedNodes)));try{for(nr.s();!(bn=nr.n()).done;)zt(bn.value)}catch(vr){nr.e(vr)}finally{nr.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(an){return Ep.test(an)},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(an){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)(an);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(an){(0,tt.Z)(Ht,an);var Jt=Mp(Ht);function Ht(){var vt;return(0,j.Z)(this,Ht),(vt=Jt.call(this))._style=zn(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),zn.remove(this._style)}},{key:"add",value:function(vt,jt){var zt=this._infos,bn=!1;return _t()(zt,function($n){vt===$n.name&&($n.val=jt,bn=!0)}),bn||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(bn){vt===bn.name&&(jt=bn.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 bn=zt.name,$n=zt.val;Ao()($n)&&($n=$n()),vt.push({name:bn,val:$n})});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",Mn(".copy"),function(){var jt=st()(this).parent().parent(),zt=jt.find(Mn(".title")).text(),bn=jt.find(Mn(".content")).text();pn()("".concat(zt,": ").concat(bn)),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(an){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)(an);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(an){(0,tt.Z)(Ht,an);var Jt=Lp(Ht);function Ht(){var vt;return(0,j.Z)(this,Ht),(vt=Jt.call(this))._style=zn(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),zn.remove(this._style),this._rmCfg()}},{key:"set",value:function(vt,jt){if(vt==="img"){this._isFetchingData=!0;var zt=new Image,bn=this;return zt.onload=function(){bn._isFetchingData=!1,bn._data={type:"img",val:{width:this.width,height:this.height,src:jt}},bn._render()},zt.onerror=function(){bn._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,bn){zt!=="showLineNum"||(vt._showLineNum=bn)}),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,bn=vt.src;this._renderHtml('
    ').concat(Kr()(bn),`
    -
    ').concat(Kr()(Ot)," × ").concat(Kr()(zt),`
    -
    `))}},{key:"_renderCode",value:function(){var vt=this._data;this._renderHtml('
    '),!1);var Ot=vt.val,zt=vt.val.length;zt>gs&&(Ot=ds()(Ot,gs)),zt'),!1);var vt=this._data.val;try{jt()(vt)&&(vt=JSON.parse(vt))}catch{}new Op.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 Ot=vt.val,zt=this._$el.find(Mn(".raw")).get(0);Ot.length>gs&&(Ot=ds()(Ot,gs)),new Sl.Z(zt,{text:Ot,wrapLongLines:!0,showLineNumbers:Ot.length'))}},{key:"_renderHtml",value:function(vt){var Ot=this;(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&vt===this._lastHtml||(this._lastHtml=vt,this._$el.html(vt),setTimeout(function(){return Ot._$el.get(0).scrollTop=0},0))}}]),Ht}(ct),Pp=3e4,Tl=8e4,gs=1e5,Np={init:function(){var an=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Jt=an.container,Ht=an.tool,vt=an.autoScale,Ot=vt===void 0||vt,zt=an.useShadowDom,bn=zt===void 0||zt,$n=an.defaults,nr=$n===void 0?{}:$n;this._isInit||(this._isInit=!0,this._scale=1,this._initContainer(Jt,bn),this._initStyle(),this._initDevTools(nr),this._initEntryBtn(),this._initSettings(),this._initTools(Ht),this._registerListener(),Ot&&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(an){if(this._checkInit()){if(an==="entryBtn")return this._entryBtn;var Jt=this._devTools;return an?Jt.get(an):Jt}},add:function(an){if(this._checkInit())return Ao()(an)&&(an=an(this)),this._devTools.add(an),this},remove:function(an){return this._devTools.remove(an),this},show:function(an){if(this._checkInit()){var Jt=this._devTools;return an?Jt.showTool(an):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(),zn.clear(),this._isInit=!1,this._container=null,this._shadowRoot=null},scale:function(an){return No()(an)?(this._scale=an,ut.emit(ut.SCALE,an),this):this._scale},position:function(an){var Jt=this._entryBtn;return Zs()(an)?(Jt.setPos(an),this):Jt.getPos()},_autoScale:function(){jo()()&&this.scale(1/il()())},_registerListener:function(){var an=this;this._addListener=function(){return an.add.apply(an,arguments)},this._showListener=function(){return an.show.apply(an,arguments)},ut.on(ut.ADD,this._addListener),ut.on(ut.SHOW,this._showListener),ut.on(ut.SCALE,zn.setScale)},_unregisterListener:function(){ut.off(ut.ADD,this._addListener),ut.off(ut.SHOW,this._showListener),ut.off(ut.SCALE,zn.setScale)},_checkInit:function(){return this._isInit||Wo.error('Please call "eruda.init()" first'),this._isInit},_initContainer:function(an,Jt){var Ht,vt;an||(an=document.createElement("div"),document.documentElement.appendChild(an)),an.id="eruda",an.style.all="initial",this._container=an,Jt&&(an.attachShadow?Ht=an.attachShadow({mode:"open"}):an.createShadowRoot&&(Ht=an.createShadowRoot()),Ht&&(zn.container=document.head,zn(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"),an.appendChild(vt)),dn()(vt,{className:"eruda-container __chobitsu-hide__",contentEditable:!1}),so()().name==="ios"&&vt.setAttribute("ontouchstart",""),this._$el=st()(vt)},_initDevTools:function(an){this._devTools=new $0(this._$el,{defaults:an})},_initStyle:function(){var an="eruda-style-container",Jt=this._$el;this._shadowRoot?(zn.container=this._shadowRoot,zn(":host { all: initial }")):(Jt.append('
    ')),zn.container=Jt.find(".".concat(an)).get(0)),zn(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 an=this;this._entryBtn=new O0(this._$el),this._entryBtn.on("click",function(){return an._devTools.toggle()})},_initSettings:function(){var an=this._devTools,Jt=new bt;an.add(Jt),this._entryBtn.initCfg(Jt),an.initCfg(Jt)},_initTools:function(){var an=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 Ot=an[Go()(vt)];try{Ot&&Ht.add(new Ot)}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(jn){var _n=jn.name,Bn=jn.value;return Vt.push(_n,Bn)});for(var fn=0,In=Vt.length;fn
    ",ht.default.parse(Lt)[0].attrs))},_.setAttributeValue=function(jt){var Lt=jt.nodeId,Bt=jt.name,Zt=jt.value;nt.getNode(Lt).setAttribute(Bt,Zt)};var At=[];function Et(jt,Lt){for(var Bt=rt.filterNodes(jt.childNodes),Zt=0,rn=Bt.length;Zt5&&At.pop();for(var Bt=0;Bt<5;Bt++)Mt.setGlobal("$"+Bt,At[Bt])},_.setNodeValue=function(jt){var Lt=jt.nodeId,Bt=jt.value;nt.getNode(Lt).nodeValue=Bt},_.setOuterHTML=function(jt){var Lt=jt.nodeId,Bt=jt.outerHTML;nt.getNode(Lt).outerHTML=Bt},_.getDOMNodeId=function(jt){var Lt=jt.node;return{nodeId:rt.getOrCreateNodeId(Lt)}},_.getDOMNode=function(jt){var Lt=jt.nodeId;return{node:nt.getNode(Lt)}},at.default.on("attributes",function(jt,Lt){var Bt=nt.getNodeId(jt);if(Bt){var Zt=jt.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(jt,Lt,Bt){var Zt=nt.getNodeId(jt);if(Zt){if(Lt=rt.filterNodes(Lt),Bt=rt.filterNodes(Bt),!ut.default(Lt)){jn();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,jn=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),jn&&(Yn.preview=jt(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,jn=Qt.generatePreview,_n=[],Bn={prototype:!In,unenumerable:!0,symbol:!Vt},Yn=Ct.get(fn),dn=wt.get(fn),An=ft.default(Yn,Bn),yn=ct.default(Yn),On=0,kn=An.length;OnEt&&(Bn=Et,In=!0);for(var Yn=0;YnEt){In=!0;break}An.push({key:jt(On),value:jt(Qt.get(On))}),Yn++,On=yn.next().value}fn.entries=An}else if(at.default(Qt)){var kn=[],vn=(Yn=0,Qt.keys());for(On=vn.next().value;On;){if(Yn>Et){In=!0;break}kn.push({value:jt(On)}),Yn++,On=vn.next().value}fn.entries=kn}return fn.overflow=In,fn}function Lt(Qt,Vt){var fn=Zt(Vt);fn.name=Qt;var In,jn=fn.subtype;return In=fn.type==="object"?jn==="null"?"null":jn==="array"?"Array("+Vt.length+")":jn==="map"?"Map("+Vt.size+")":jn==="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,jn=fn.subtype;return In==="string"?Qt:In==="number"||In==="symbol"?j.default(Qt):In==="function"?ht.default(Qt):jn==="array"?"Array("+Qt.length+")":jn==="map"?"Map("+Vt.size+")":jn==="set"?"Set("+Vt.size+")":jn==="regexp"?j.default(Qt):jn==="error"?Qt.stack:jn==="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,jt){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,jt)},function(Et,jt){function Lt(){this.constructor=Et}k(Et,jt),Et.prototype=jt===null?Object.create(jt):(Lt.prototype=jt.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 jt(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(jt,Et),jt.prototype.toJSON=function(){return{method:this.method,url:this.url,id:this.id}},jt.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)},jt.prototype.handleReqHeadersSet=function(Lt,Bt){Lt&&Bt&&(this.reqHeaders[Lt]=Bt)},jt.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)})},jt.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(jn,_n){_n&&(Vt=_n),fn()},(Zt=new FileReader).onload=function(){Bt(null,Zt.result)},Zt.onerror=function(jn){Bt(jn)},Zt.readAsText(Lt))},jt}(et.default);_.XhrRequest=lt;var ct=function(Et){function jt(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(jt,Et),jt.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})},jt}(et.default);function gt(Et,jt){var Lt=Et.headers.get("Content-length");return Lt?ht.default(Lt):At(jt)}function st(Et){var jt={};return Et.headers.forEach(function(Lt,Bt){return jt[Bt]=Lt}),jt}function Ct(Et){var jt=Et.getAllResponseHeaders().split(` -`),Lt={};return dt.default(jt,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,jt,Lt){var Bt=0;function Zt(){if(!jt){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 jt=rt.default(Et.split("/"));return jt.indexOf("?")>-1&&(jt=at.default(jt.split("?")[0])),jt===""&&(jt=new nt.default(Et).hostname),jt}function _t(Et){if(!Et)return{type:"unknown",subType:"unknown"};var jt=Et.split(";")[0].split("/");return{type:jt[0],subType:rt.default(jt)}}_.fullUrl=Mt;var Tt=window.location.origin;function At(Et){var jt=encodeURIComponent(Et).match(/%[89ABab]/g);return Et.length+(jt?jt.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(jt(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,jt=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||jt)&&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,jt,Lt,Bt){rt(At,Tt,Et);var Zt,rn,nn,Qt=function(Yn){if(Yn===jt&&_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,jn=In[Ct]||In["@@iterator"]||jt&&In[jt],_n=!st&&jn||Qt(jt),Bn=Tt=="Array"&&In.entries||jn;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&&jt==wt&&jn&&jn.name!==wt&&(!$&&ct?it(In,"name",wt):(fn=!0,_n=function(){return j(jn,this)})),jt)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:jt}),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()}},jt=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(jt(Zt))}:xt&&xt.now?j=function(Zt){xt.now(jt(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(jt(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",jt=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,jn=nt.process,_n=At.f,Bn=_n,Yn=!!(In&&In.createEvent&&nt.dispatchEvent),dn="unhandledrejection",An=function(Sn){var Zn;return!(!lt(Sn)||!ft(Zn=Sn.then))&&Zn},yn=function(Sn,Zn){var wn,Wn,Fn,zn=Zn.value,Tn=Zn.state==1,Kt=Tn?Sn.ok:Sn.fail,bt=Sn.resolve,pt=Sn.reject,yt=Sn.domain;try{Kt?(Tn||(Zn.rejection===2&&gn(Zn),Zn.rejection=1),Kt===!0?wn=zn:(yt&&yt.enter(),wn=Kt(zn),yt&&(yt.exit(),Fn=!0)),wn===Sn.promise?pt(fn("Promise-chain cycle")):(Wn=An(wn))?ot(Wn,wn,bt,pt):bt(wn)):pt(zn)}catch(Ut){yt&&!Fn&&yt.exit(),pt(Ut)}},On=function(Sn,Zn){Sn.notified||(Sn.notified=!0,Ct(function(){for(var wn,Wn=Sn.reactions;wn=Wn.get();)yn(wn,Sn);Sn.notified=!1,Zn&&!Sn.rejection&&vn(Sn)}))},kn=function(Sn,Zn,wn){var Wn,Fn;Yn?((Wn=In.createEvent("Event")).promise=Zn,Wn.reason=wn,Wn.initEvent(Sn,!1,!0),nt.dispatchEvent(Wn)):Wn={promise:Zn,reason:wn},!Lt&&(Fn=nt["on"+Sn])?Fn(Wn):Sn===dn&&xt("Unhandled promise rejection",wn)},vn=function(Sn){ot(st,nt,function(){var Zn,wn=Sn.facade,Wn=Sn.value;if(En(Sn)&&(Zn=wt(function(){rt?jn.emit("unhandledRejection",Wn,wn):kn(dn,wn,Wn)}),Sn.rejection=rt||En(Sn)?2:1,Zn.error))throw Zn.value})},En=function(Sn){return Sn.rejection!==1&&!Sn.parent},gn=function(Sn){ot(st,nt,function(){var Zn=Sn.facade;rt?jn.emit("rejectionHandled",Zn):kn("rejectionhandled",Zn,Sn.value)})},Ln=function(Sn,Zn,wn){return function(Wn){Sn(Zn,Wn,wn)}},Dn=function(Sn,Zn,wn){Sn.done||(Sn.done=!0,wn&&(Sn=wn),Sn.value=Zn,Sn.state=2,On(Sn,!0))},Un=function(Sn,Zn,wn){if(!Sn.done){Sn.done=!0,wn&&(Sn=wn);try{if(Sn.facade===Zn)throw fn("Promise can't be resolved itself");var Wn=An(Zn);Wn?Ct(function(){var Fn={done:!1};try{ot(Wn,Zn,Ln(Un,Fn,Sn),Ln(Dn,Fn,Sn))}catch(zn){Dn(Fn,zn,Sn)}}):(Sn.value=Zn,Sn.state=1,On(Sn,!1))}catch(Fn){Dn({done:!1},Fn,Sn)}}};if(jt&&(Vt=(Qt=function(Sn){ct(this,Vt),ht(Sn),ot(k,this);var Zn=Zt(this);try{Sn(Ln(Un,Zn),Ln(Dn,Zn))}catch(wn){Dn(Zn,wn)}}).prototype,(k=function(Sn){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(Sn,Zn){var wn=Zt(this),Wn=_n(gt(this,Qt));return wn.parent=!0,Wn.ok=!ft(Sn)||Sn,Wn.fail=ft(Zn)&&Zn,Wn.domain=rt?jn.domain:void 0,wn.state==0?wn.reactions.add(Wn):Ct(function(){yn(Wn,wn)}),Wn.promise}),j=function(){var Sn=new k,Zn=Zt(Sn);this.promise=Sn,this.resolve=Ln(Un,Zn),this.reject=Ln(Dn,Zn)},At.f=_n=function(Sn){return Sn===Qt||Sn===void 0?new j(Sn):Bn(Sn)},!tt&&ft(_t)&&nn!==Object.prototype)){$=nn.then,Bt||at(nn,"then",function(Sn,Zn){var wn=this;return new Qt(function(Wn,Fn){ot($,wn,Wn,Fn)}).then(Sn,Zn)},{unsafe:!0});try{delete nn.constructor}catch{}it&&it(nn,Vt)}et({global:!0,constructor:!0,wrap:!0,forced:jt},{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(Mn(".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 an=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Jt=an.container,Ht=an.tool,vt=an.autoScale,jt=vt===void 0||vt,zt=an.useShadowDom,bn=zt===void 0||zt,$n=an.defaults,nr=$n===void 0?{}:$n;this._isInit||(this._isInit=!0,this._scale=1,this._initContainer(Jt,bn),this._initStyle(),this._initDevTools(nr),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(an){if(this._checkInit()){if(an==="entryBtn")return this._entryBtn;var Jt=this._devTools;return an?Jt.get(an):Jt}},add:function(an){if(this._checkInit())return Ao()(an)&&(an=an(this)),this._devTools.add(an),this},remove:function(an){return this._devTools.remove(an),this},show:function(an){if(this._checkInit()){var Jt=this._devTools;return an?Jt.showTool(an):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(),zn.clear(),this._isInit=!1,this._container=null,this._shadowRoot=null},scale:function(an){return No()(an)?(this._scale=an,ut.emit(ut.SCALE,an),this):this._scale},position:function(an){var Jt=this._entryBtn;return Zs()(an)?(Jt.setPos(an),this):Jt.getPos()},_autoScale:function(){Oo()()&&this.scale(1/il()())},_registerListener:function(){var an=this;this._addListener=function(){return an.add.apply(an,arguments)},this._showListener=function(){return an.show.apply(an,arguments)},ut.on(ut.ADD,this._addListener),ut.on(ut.SHOW,this._showListener),ut.on(ut.SCALE,zn.setScale)},_unregisterListener:function(){ut.off(ut.ADD,this._addListener),ut.off(ut.SHOW,this._showListener),ut.off(ut.SCALE,zn.setScale)},_checkInit:function(){return this._isInit||Wo.error('Please call "eruda.init()" first'),this._isInit},_initContainer:function(an,Jt){var Ht,vt;an||(an=document.createElement("div"),document.documentElement.appendChild(an)),an.id="eruda",an.style.all="initial",this._container=an,Jt&&(an.attachShadow?Ht=an.attachShadow({mode:"open"}):an.createShadowRoot&&(Ht=an.createShadowRoot()),Ht&&(zn.container=document.head,zn(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"),an.appendChild(vt)),dn()(vt,{className:"eruda-container __chobitsu-hide__",contentEditable:!1}),so()().name==="ios"&&vt.setAttribute("ontouchstart",""),this._$el=st()(vt)},_initDevTools:function(an){this._devTools=new $0(this._$el,{defaults:an})},_initStyle:function(){var an="eruda-style-container",Jt=this._$el;this._shadowRoot?(zn.container=this._shadowRoot,zn(":host { all: initial }")):(Jt.append('
    ')),zn.container=Jt.find(".".concat(an)).get(0)),zn(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 an=this;this._entryBtn=new j0(this._$el),this._entryBtn.on("click",function(){return an._devTools.toggle()})},_initSettings:function(){var an=this._devTools,Jt=new bt;an.add(Jt),this._entryBtn.initCfg(Jt),an.initCfg(Jt)},_initTools:function(){var an=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=an[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),yn=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=yn.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(Sn){var Zn;return!(!lt(Sn)||!ft(Zn=Sn.then))&&Zn},yn=function(Sn,Zn){var wn,Wn,Fn,zn=Zn.value,Tn=Zn.state==1,Kt=Tn?Sn.ok:Sn.fail,bt=Sn.resolve,pt=Sn.reject,yt=Sn.domain;try{Kt?(Tn||(Zn.rejection===2&&gn(Zn),Zn.rejection=1),Kt===!0?wn=zn:(yt&&yt.enter(),wn=Kt(zn),yt&&(yt.exit(),Fn=!0)),wn===Sn.promise?pt(fn("Promise-chain cycle")):(Wn=An(wn))?ot(Wn,wn,bt,pt):bt(wn)):pt(zn)}catch(Ut){yt&&!Fn&&yt.exit(),pt(Ut)}},jn=function(Sn,Zn){Sn.notified||(Sn.notified=!0,Ct(function(){for(var wn,Wn=Sn.reactions;wn=Wn.get();)yn(wn,Sn);Sn.notified=!1,Zn&&!Sn.rejection&&vn(Sn)}))},kn=function(Sn,Zn,wn){var Wn,Fn;Yn?((Wn=In.createEvent("Event")).promise=Zn,Wn.reason=wn,Wn.initEvent(Sn,!1,!0),nt.dispatchEvent(Wn)):Wn={promise:Zn,reason:wn},!Lt&&(Fn=nt["on"+Sn])?Fn(Wn):Sn===dn&&xt("Unhandled promise rejection",wn)},vn=function(Sn){ot(st,nt,function(){var Zn,wn=Sn.facade,Wn=Sn.value;if(En(Sn)&&(Zn=wt(function(){rt?On.emit("unhandledRejection",Wn,wn):kn(dn,wn,Wn)}),Sn.rejection=rt||En(Sn)?2:1,Zn.error))throw Zn.value})},En=function(Sn){return Sn.rejection!==1&&!Sn.parent},gn=function(Sn){ot(st,nt,function(){var Zn=Sn.facade;rt?On.emit("rejectionHandled",Zn):kn("rejectionhandled",Zn,Sn.value)})},Ln=function(Sn,Zn,wn){return function(Wn){Sn(Zn,Wn,wn)}},Dn=function(Sn,Zn,wn){Sn.done||(Sn.done=!0,wn&&(Sn=wn),Sn.value=Zn,Sn.state=2,jn(Sn,!0))},Un=function(Sn,Zn,wn){if(!Sn.done){Sn.done=!0,wn&&(Sn=wn);try{if(Sn.facade===Zn)throw fn("Promise can't be resolved itself");var Wn=An(Zn);Wn?Ct(function(){var Fn={done:!1};try{ot(Wn,Zn,Ln(Un,Fn,Sn),Ln(Dn,Fn,Sn))}catch(zn){Dn(Fn,zn,Sn)}}):(Sn.value=Zn,Sn.state=1,jn(Sn,!1))}catch(Fn){Dn({done:!1},Fn,Sn)}}};if(Ot&&(Vt=(Qt=function(Sn){ct(this,Vt),ht(Sn),ot(k,this);var Zn=Zt(this);try{Sn(Ln(Un,Zn),Ln(Dn,Zn))}catch(wn){Dn(Zn,wn)}}).prototype,(k=function(Sn){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(Sn,Zn){var wn=Zt(this),Wn=_n(gt(this,Qt));return wn.parent=!0,Wn.ok=!ft(Sn)||Sn,Wn.fail=ft(Zn)&&Zn,Wn.domain=rt?On.domain:void 0,wn.state==0?wn.reactions.add(Wn):Ct(function(){yn(Wn,wn)}),Wn.promise}),j=function(){var Sn=new k,Zn=Zt(Sn);this.promise=Sn,this.resolve=Ln(Un,Zn),this.reject=Ln(Dn,Zn)},At.f=_n=function(Sn){return Sn===Qt||Sn===void 0?new j(Sn):Bn(Sn)},!tt&&ft(_t)&&nn!==Object.prototype)){$=nn.then,Bt||at(nn,"then",function(Sn,Zn){var wn=this;return new Qt(function(Wn,Fn){ot($,wn,Wn,Fn)}).then(Sn,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 jt=gt.indexOf("?");return jt!==-1&&(ct.query=et.parse(gt.substr(jt+1)),gt=gt.slice(0,jt)),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 jt=ht.length-1;jt>=Et;jt--)dt.end&&dt.end(ht[jt]);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 jn,_n=Object.getOwnPropertyDescriptor(Qt,In),Bn=_n&&_n.get,Yn=_n&&_n.set;if(!Vt.accessGetter&&Bn)jn="(...)";else try{if(jn=Qt[In],ct(Vt.ignore,jn))return;ut(jn)&&jn.catch(function(){})}catch(dn){jn=dn.message}fn.push("".concat(At(In),":").concat(_(jn,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(jt(rn),'"')}function Et(rn){return'"'.concat(jt($(rn)),'"')}function jt(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,jn=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,yn=An===void 0?new Lt:An,On=nn.unenumerable,kn=On!==void 0&&On,vn=nn.symbol,En=vn!==void 0&&vn,gn=nn.accessGetter,Ln=gn!==void 0&&gn,Dn=nn.ignore,Un=Dn===void 0?[]:Dn,Sn="",Zn={visitor:yn,unenumerable:kn,symbol:En,accessGetter:Ln,depth:Bn,curDepth:dn+1,timeout:jn,startTime:fn,ignore:Un},wn=j(rn,!1);if(wn==="String")Sn=Et(rn);else if(wn==="Number")Sn=$(rn),et(Sn,"Infinity")&&(Sn='{"value":"'.concat(Sn,'","type":"Number"}'));else if(wn==="NaN")Sn='{"value":"NaN","type":"Number"}';else if(wn==="Boolean")Sn=rn?"true":"false";else if(wn==="Null")Sn="null";else if(wn==="Undefined")Sn='{"type":"Undefined"}';else if(wn==="Symbol"){var Wn="Symbol";try{Wn=$(rn)}catch{}Sn='{"value":'.concat(Et(Wn),',"type":"Symbol"}')}else{if(jn&&ft()-fn>jn)return Et("Timeout");if(Bn&&dn>Bn)return Et("{...}");Sn="{";var Fn,zn=[],Tn=yn.get(rn);if(Tn?(Fn=Tn.id,zn.push('"reference":'.concat(Fn))):(Fn=yn.set(rn),zn.push('"id":'.concat(Fn))),zn.push('"type":"'.concat(wn,'"')),et(wn,"Function")?zn.push('"value":'.concat(Et(tt(rn)))):wn==="RegExp"&&zn.push('"value":'.concat(Et(rn))),!Tn){var Kt=rt(rn);if(Kt.length&&zn.push(Tt("enumerable",Kt,Qt||rn,Zn)),kn){var bt=it(lt(rn,{prototype:!1,unenumerable:!0}),Kt);bt.length&&zn.push(Tt("unenumerable",bt,Qt||rn,Zn))}if(En){var pt=ht(lt(rn,{prototype:!1,symbol:!0}),function(sn){return typeof sn=="symbol"});pt.length&&zn.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})));zn.push(Ut)}}Sn+=zn.join(",")+"}"}return Sn};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-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),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,yn=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,Dn=nn.ignore,Un=Dn===void 0?[]:Dn,Sn="",Zn={visitor:yn,unenumerable:kn,symbol:En,accessGetter:Ln,depth:Bn,curDepth:dn+1,timeout:On,startTime:fn,ignore:Un},wn=j(rn,!1);if(wn==="String")Sn=Et(rn);else if(wn==="Number")Sn=$(rn),et(Sn,"Infinity")&&(Sn='{"value":"'.concat(Sn,'","type":"Number"}'));else if(wn==="NaN")Sn='{"value":"NaN","type":"Number"}';else if(wn==="Boolean")Sn=rn?"true":"false";else if(wn==="Null")Sn="null";else if(wn==="Undefined")Sn='{"type":"Undefined"}';else if(wn==="Symbol"){var Wn="Symbol";try{Wn=$(rn)}catch{}Sn='{"value":'.concat(Et(Wn),',"type":"Symbol"}')}else{if(On&&ft()-fn>On)return Et("Timeout");if(Bn&&dn>Bn)return Et("{...}");Sn="{";var Fn,zn=[],Tn=yn.get(rn);if(Tn?(Fn=Tn.id,zn.push('"reference":'.concat(Fn))):(Fn=yn.set(rn),zn.push('"id":'.concat(Fn))),zn.push('"type":"'.concat(wn,'"')),et(wn,"Function")?zn.push('"value":'.concat(Et(tt(rn)))):wn==="RegExp"&&zn.push('"value":'.concat(Et(rn))),!Tn){var Kt=rt(rn);if(Kt.length&&zn.push(Tt("enumerable",Kt,Qt||rn,Zn)),kn){var bt=it(lt(rn,{prototype:!1,unenumerable:!0}),Kt);bt.length&&zn.push(Tt("unenumerable",bt,Qt||rn,Zn))}if(En){var pt=ht(lt(rn,{prototype:!1,symbol:!0}),function(sn){return typeof sn=="symbol"});pt.length&&zn.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})));zn.push(Ut)}}Sn+=zn.join(",")+"}"}return Sn};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[Bt++],done:!Et}}};throw new TypeError(jt?"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 jt(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(jt,Et),jt.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()},jt.prototype.hide=function(){this.target=null,this.redraw()},jt.prototype.intercept=function(Lt){this.interceptor=Lt},jt.prototype.destroy=function(){window.removeEventListener("resize",this.redraw),window.removeEventListener("scroll",this.redraw),this.resizeSensor&&this.resizeSensor.destroy(),Et.prototype.destroy.call(this)},jt.prototype.draw=function(){var Lt=this.target;Lt&&(Lt instanceof Text?this.drawText(Lt):this.drawElement(Lt))},jt.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)},jt.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)},jt.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))},jn=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"),yn=In("border-top-width"),On=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+yn+En,width:Vt-dn-kn-An-vn,height:fn-yn-En-On-gn}),fillColor:Tt(Bt.contentColor),name:"content"},{path:this.rectToPath({left:nn+dn,top:Qt+yn,width:Vt-dn-An,height:fn-yn-On}),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-jn,top:Qt-Bn,width:Vt+jn+_n,height:fn+Bn+Yn}),fillColor:Tt(Bt.marginColor),name:"margin"}]},jt.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},jt.prototype.getStyles=function(Lt){for(var Bt=window.getComputedStyle(Lt),Zt=!1,rn=Lt.childNodes,nn=0,Qt=rn.length;nn-1)},jt.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 jn=et(In),_n=jn.next();!_n.done;_n=jn.next()){var Bn=_n.value;if(Lt.getAttribute(Bn[0])!==Bn[1])return}}catch(Yn){Qt={error:Yn}}finally{try{_n&&!_n.done&&(Vt=jn.return)&&Vt.call(jn)}finally{if(Qt)throw Qt.error}}Zt=nn[1]}}}),{accessibleName:Bt||Lt.getAttribute("title")||"",accessibleRole:Zt||"generic"}},jt.prototype.bindEvent=function(){var Lt=this;window.addEventListener("resize",this.redraw),window.addEventListener("scroll",this.redraw),this.on("optionChange",function(){return Lt.redraw()})},jt.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},jt}(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,jt,Lt){Lt===void 0&&(Lt=!1);var Bt={};return(0,ut.default)(jt,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,jt,Lt=At.call(_t),Bt=[];try{for(;(Tt===void 0||Tt-- >0)&&!(Et=Lt.next()).done;)Bt.push(Et.value)}catch(Zt){jt={error:Zt}}finally{try{Et&&!Et.done&&(At=Lt.return)&&At.call(Lt)}finally{if(jt)throw jt.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],jt=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*(jt<=.03928?jt/12.92:Math.pow((jt+.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],jt=Tt[2],Lt=Tt[3],Bt=Math.max(At,Et,jt),Zt=Math.min(At,Et,jt),rn=Bt-Zt,nn=Bt+Zt,Qt=.5*nn;return[Zt===Bt?0:At===Bt?(.16666666666666666*(Et-jt)/rn+1)%1:Et===Bt?.16666666666666666*(jt-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],jt=Tt[2];return .2126729*Math.pow(At,et)+.7151522*Math.pow(Et,et)+.072175*Math.pow(jt,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 jt=Et();return(jt<0||jt>1)&&(At=!At,jt=Et()),jt};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,jt,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=(jt=void 0,k([900,800,700,600,500,400,300,200,100].entries())),jn=In.next();!jn.done;jn=In.next()){var _n=d(jn.value,2),Bn=_n[0];if(Zt>=_n[1]){var Yn=fn[fn.length-1-Bn];return Yn===-1?null:Yn}}}catch(dn){jt={error:dn}}finally{try{jn&&!jn.done&&(Lt=In.return)&&Lt.call(In)}finally{if(jt)throw jt.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&&Bnjn,An=Bt-fn;An=(0,rt.constrainNumber)(An,Qt,Tt-Zt-Qt);var yn=_t.minY-nn-rn,On=!0;yn<0?(yn=Math.min(At-rn,_t.maxY+nn),On=!1):_t.minY>At&&(yn=At-nn-rn);var kn=An>=_t.minX&&An+Zt<=_t.maxX&&yn>=_t.minY&&yn+rn<=_t.maxY,vn=An<_t.maxX&&An+Zt>_t.minX&&yn<_t.maxY&&yn+rn>_t.minY;if(vn&&!kn)return void(jt.style.display="none");if(jt.style.top=yn+"px",jt.style.left=An+"px",!dn){var En=(0,rt.createChild)(jt,"div","tooltip-arrow");En.style.clipPath=On?"polygon(0 0, 100% 0, 50% 100%)":"polygon(50% 0, 0 100%, 100% 100%)",En.style.top=(On?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&&(jn*=Bt=Math.sqrt(Bt),_n*=Bt),Zt=jn*jn*_n*_n,rn=jn*jn*jt.y*jt.y+_n*_n*jt.x*jt.x,it(An={x:jn*jt.y/_n,y:-_n*jt.x/jn},At!==Tt?Math.sqrt((Zt-rn)/rn)||0:-Math.sqrt((Zt-rn)/rn)||0),_t=Math.atan2((jt.y-An.y)/_n,(jt.x-An.x)/jn),kt=Math.atan2(-(jt.y+An.y)/_n,-(jt.x+An.x)/jn),at(An,Lt),gn=An,Ln=(Et.x+Sn.x)/2,Dn=(Et.y+Sn.y)/2,gn.x+=Ln,gn.y+=Dn,wt.save(),wt.translate(An.x,An.y),wt.rotate(Lt),wt.scale(jn,_n),wt.arc(0,0,1,_t,kt,!At),wt.restore();break;case"C":yn=wn[3],On=wn[4],nn=wn[5],Vt=wn[6],wt.bezierCurveTo(wn[1],wn[2],yn,On,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),yn=wn[3]+nn,On=wn[4]+Vt,nn+=wn[5],Vt+=wn[6];break;case"S":yn!==null&&On!==null||(yn=nn,On=Vt),wt.bezierCurveTo(2*nn-yn,2*Vt-On,wn[1],wn[2],wn[3],wn[4]),yn=wn[1],On=wn[2],nn=wn[3],Vt=wn[4];break;case"s":yn!==null&&On!==null||(yn=nn,On=Vt),wt.bezierCurveTo(2*nn-yn,2*Vt-On,wn[1]+nn,wn[2]+Vt,wn[3]+nn,wn[4]+Vt),yn=wn[1]+nn,On=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],jn=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(jn,_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)}Sn.x=nn,Sn.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"),yn=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+yn+En,width:Vt-dn-kn-An-vn,height:fn-yn-En-jn-gn}),fillColor:Tt(Bt.contentColor),name:"content"},{path:this.rectToPath({left:nn+dn,top:Qt+yn,width:Vt-dn-An,height:fn-yn-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 yn=_t.minY-nn-rn,jn=!0;yn<0?(yn=Math.min(At-rn,_t.maxY+nn),jn=!1):_t.minY>At&&(yn=At-nn-rn);var kn=An>=_t.minX&&An+Zt<=_t.maxX&&yn>=_t.minY&&yn+rn<=_t.maxY,vn=An<_t.maxX&&An+Zt>_t.minX&&yn<_t.maxY&&yn+rn>_t.minY;if(vn&&!kn)return void(Ot.style.display="none");if(Ot.style.top=yn+"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+Sn.x)/2,Dn=(Et.y+Sn.y)/2,gn.x+=Ln,gn.y+=Dn,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":yn=wn[3],jn=wn[4],nn=wn[5],Vt=wn[6],wt.bezierCurveTo(wn[1],wn[2],yn,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),yn=wn[3]+nn,jn=wn[4]+Vt,nn+=wn[5],Vt+=wn[6];break;case"S":yn!==null&&jn!==null||(yn=nn,jn=Vt),wt.bezierCurveTo(2*nn-yn,2*Vt-jn,wn[1],wn[2],wn[3],wn[4]),yn=wn[1],jn=wn[2],nn=wn[3],Vt=wn[4];break;case"s":yn!==null&&jn!==null||(yn=nn,jn=Vt),wt.bezierCurveTo(2*nn-yn,2*Vt-jn,wn[1]+nn,wn[2]+Vt,wn[3]+nn,wn[4]+Vt),yn=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)}Sn.x=nn,Sn.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[jn];if(_n!==void 0&&0Mt(Yn,In))An!==void 0&&0>Mt(An,Yn)?(Vt[jn]=An,Vt[dn]=In,jn=dn):(Vt[jn]=Yn,Vt[Bn]=In,jn=Bn);else if(An!==void 0&&0>Mt(An,In))Vt[jn]=An,Vt[dn]=In,jn=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,jt=!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()),jt=!0;var In=Et;try{for(Zt(fn),At=xt(kt);At!==null&&(!(At.expirationTime>fn)||Vt&&!b.unstable_shouldYield());){var jn=At.callback;if(typeof jn=="function"){At.callback=null,Et=At.priorityLevel;var _n=jn(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,jt=!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||jt||(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 jn=b.unstable_now();switch(typeof In=="object"&&In!==null?(In=In.delay,In=typeof In=="number"&&0jn?(Vt.sortIndex=In,Ct(_t,Vt),xt(kt)===null&&Vt===xt(_t)&&(Bt?k():Bt=!0,d(rn,In-jn))):(Vt.sortIndex=_n,Ct(kt,Vt),Lt||jt||(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[Dt+1]=$t>>16&255,St[Dt+2]=$t>>8&255,St[Dt+3]=$t&255,St[Dt+4]=mt>>24&255,St[Dt+5]=mt>>16&255,St[Dt+6]=mt>>8&255,St[Dt+7]=mt&255}function ht(St,Dt,$t,mt,Ft){var Xt,It=0;for(Xt=0;Xt>>8)-1}function ft(St,Dt,$t,mt){return ht(St,Dt,$t,mt,16)}function lt(St,Dt,$t,mt){return ht(St,Dt,$t,mt,32)}function ct(St,Dt,$t,mt){for(var Ft=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=Dt[0]&255|(Dt[1]&255)<<8|(Dt[2]&255)<<16|(Dt[3]&255)<<24,hn=Dt[4]&255|(Dt[5]&255)<<8|(Dt[6]&255)<<16|(Dt[7]&255)<<24,un=Dt[8]&255|(Dt[9]&255)<<8|(Dt[10]&255)<<16|(Dt[11]&255)<<24,tn=Dt[12]&255|(Dt[13]&255)<<8|(Dt[14]&255)<<16|(Dt[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,er=$t[24]&255|($t[25]&255)<<8|($t[26]&255)<<16|($t[27]&255)<<24,tr=$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=Ft,rr=Xt,ur=It,or=Nt,yr=Rt,mr=Wt,Pn=Pt,Hn=hn,hr=un,lr=tn,sr=Gt,dr=xn,Ar=Gn,Mr=er,Or=tr,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+rr|0,lr^=pn<<7|pn>>>32-7,pn=lr+mr|0,Mr^=pn<<9|pn>>>32-9,pn=Mr+lr|0,rr^=pn<<13|pn>>>32-13,pn=rr+Mr|0,mr^=pn<<18|pn>>>32-18,pn=sr+Pn|0,Or^=pn<<7|pn>>>32-7,pn=Or+sr|0,ur^=pn<<9|pn>>>32-9,pn=ur+Or|0,Pn^=pn<<13|pn>>>32-13,pn=Pn+ur|0,sr^=pn<<18|pn>>>32-18,pn=Ir+dr|0,or^=pn<<7|pn>>>32-7,pn=or+Ir|0,Hn^=pn<<9|pn>>>32-9,pn=Hn+or|0,dr^=pn<<13|pn>>>32-13,pn=dr+Hn|0,Ir^=pn<<18|pn>>>32-18,pn=Kn+or|0,rr^=pn<<7|pn>>>32-7,pn=rr+Kn|0,ur^=pn<<9|pn>>>32-9,pn=ur+rr|0,or^=pn<<13|pn>>>32-13,pn=or+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+Or|0,Ar^=pn<<7|pn>>>32-7,pn=Ar+Ir|0,Mr^=pn<<9|pn>>>32-9,pn=Mr+Ar|0,Or^=pn<<13|pn>>>32-13,pn=Or+Mr|0,Ir^=pn<<18|pn>>>32-18;Kn=Kn+Ft|0,rr=rr+Xt|0,ur=ur+It|0,or=or+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+er|0,Or=Or+tr|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]=rr>>>0&255,St[5]=rr>>>8&255,St[6]=rr>>>16&255,St[7]=rr>>>24&255,St[8]=ur>>>0&255,St[9]=ur>>>8&255,St[10]=ur>>>16&255,St[11]=ur>>>24&255,St[12]=or>>>0&255,St[13]=or>>>8&255,St[14]=or>>>16&255,St[15]=or>>>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]=Or>>>0&255,St[57]=Or>>>8&255,St[58]=Or>>>16&255,St[59]=Or>>>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,Dt,$t,mt){for(var Ft=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=Dt[0]&255|(Dt[1]&255)<<8|(Dt[2]&255)<<16|(Dt[3]&255)<<24,hn=Dt[4]&255|(Dt[5]&255)<<8|(Dt[6]&255)<<16|(Dt[7]&255)<<24,un=Dt[8]&255|(Dt[9]&255)<<8|(Dt[10]&255)<<16|(Dt[11]&255)<<24,tn=Dt[12]&255|(Dt[13]&255)<<8|(Dt[14]&255)<<16|(Dt[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,er=$t[24]&255|($t[25]&255)<<8|($t[26]&255)<<16|($t[27]&255)<<24,tr=$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=Ft,rr=Xt,ur=It,or=Nt,yr=Rt,mr=Wt,Pn=Pt,Hn=hn,hr=un,lr=tn,sr=Gt,dr=xn,Ar=Gn,Mr=er,Or=tr,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+rr|0,lr^=pn<<7|pn>>>32-7,pn=lr+mr|0,Mr^=pn<<9|pn>>>32-9,pn=Mr+lr|0,rr^=pn<<13|pn>>>32-13,pn=rr+Mr|0,mr^=pn<<18|pn>>>32-18,pn=sr+Pn|0,Or^=pn<<7|pn>>>32-7,pn=Or+sr|0,ur^=pn<<9|pn>>>32-9,pn=ur+Or|0,Pn^=pn<<13|pn>>>32-13,pn=Pn+ur|0,sr^=pn<<18|pn>>>32-18,pn=Ir+dr|0,or^=pn<<7|pn>>>32-7,pn=or+Ir|0,Hn^=pn<<9|pn>>>32-9,pn=Hn+or|0,dr^=pn<<13|pn>>>32-13,pn=dr+Hn|0,Ir^=pn<<18|pn>>>32-18,pn=Kn+or|0,rr^=pn<<7|pn>>>32-7,pn=rr+Kn|0,ur^=pn<<9|pn>>>32-9,pn=ur+rr|0,or^=pn<<13|pn>>>32-13,pn=or+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+Or|0,Ar^=pn<<7|pn>>>32-7,pn=Ar+Ir|0,Mr^=pn<<9|pn>>>32-9,pn=Mr+Ar|0,Or^=pn<<13|pn>>>32-13,pn=Or+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,Dt,$t,mt){ct(St,Dt,$t,mt)}function Ct(St,Dt,$t,mt){gt(St,Dt,$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,Dt,$t,mt,Ft,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(;Ft>=64;){for(st(Rt,Nt,It,xt),Pt=0;Pt<64;Pt++)St[Dt+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;Ft-=64,Dt+=64,mt+=64}if(Ft>0)for(st(Rt,Nt,It,xt),Pt=0;Pt=64;){for(st(It,Xt,Ft,xt),Rt=0;Rt<64;Rt++)St[Dt+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,Dt+=64}if($t>0)for(st(It,Xt,Ft,xt),Rt=0;Rt<$t;Rt++)St[Dt+Rt]=It[Rt];return 0}function kt(St,Dt,$t,mt,Ft){var Xt=new Uint8Array(32);Ct(Xt,mt,Ft,xt);for(var It=new Uint8Array(8),Nt=0;Nt<8;Nt++)It[Nt]=mt[Nt+16];return Mt(St,Dt,$t,It,Xt)}function _t(St,Dt,$t,mt,Ft,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,Dt,$t,mt,Ft,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 Dt,$t,mt,Ft,Xt,It,Nt,Rt;Dt=St[0]&255|(St[1]&255)<<8,this.r[0]=Dt&8191,$t=St[2]&255|(St[3]&255)<<8,this.r[1]=(Dt>>>13|$t<<3)&8191,mt=St[4]&255|(St[5]&255)<<8,this.r[2]=($t>>>10|mt<<6)&7939,Ft=St[6]&255|(St[7]&255)<<8,this.r[3]=(mt>>>7|Ft<<9)&8191,Xt=St[8]&255|(St[9]&255)<<8,this.r[4]=(Ft>>>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,Dt,$t){for(var mt=this.fin?0:2048,Ft,Xt,It,Nt,Rt,Wt,Pt,hn,un,tn,Gt,xn,Gn,er,tr,ir,Kn,rr,ur,or=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],Or=this.r[1],Ir=this.r[2],pn=this.r[3],Lr=this.r[4],Fr=this.r[5],Dr=this.r[6],Pr=this.r[7],$r=this.r[8],Wr=this.r[9];$t>=16;)Ft=St[Dt+0]&255|(St[Dt+1]&255)<<8,or+=Ft&8191,Xt=St[Dt+2]&255|(St[Dt+3]&255)<<8,yr+=(Ft>>>13|Xt<<3)&8191,It=St[Dt+4]&255|(St[Dt+5]&255)<<8,mr+=(Xt>>>10|It<<6)&8191,Nt=St[Dt+6]&255|(St[Dt+7]&255)<<8,Pn+=(It>>>7|Nt<<9)&8191,Rt=St[Dt+8]&255|(St[Dt+9]&255)<<8,Hn+=(Nt>>>4|Rt<<12)&8191,hr+=Rt>>>1&8191,Wt=St[Dt+10]&255|(St[Dt+11]&255)<<8,lr+=(Rt>>>14|Wt<<2)&8191,Pt=St[Dt+12]&255|(St[Dt+13]&255)<<8,sr+=(Wt>>>11|Pt<<5)&8191,hn=St[Dt+14]&255|(St[Dt+15]&255)<<8,dr+=(Pt>>>8|hn<<8)&8191,Ar+=hn>>>5|mt,un=0,tn=un,tn+=or*Mr,tn+=yr*(5*Wr),tn+=mr*(5*$r),tn+=Pn*(5*Pr),tn+=Hn*(5*Dr),un=tn>>>13,tn&=8191,tn+=hr*(5*Fr),tn+=lr*(5*Lr),tn+=sr*(5*pn),tn+=dr*(5*Ir),tn+=Ar*(5*Or),un+=tn>>>13,tn&=8191,Gt=un,Gt+=or*Or,Gt+=yr*Mr,Gt+=mr*(5*Wr),Gt+=Pn*(5*$r),Gt+=Hn*(5*Pr),un=Gt>>>13,Gt&=8191,Gt+=hr*(5*Dr),Gt+=lr*(5*Fr),Gt+=sr*(5*Lr),Gt+=dr*(5*pn),Gt+=Ar*(5*Ir),un+=Gt>>>13,Gt&=8191,xn=un,xn+=or*Ir,xn+=yr*Or,xn+=mr*Mr,xn+=Pn*(5*Wr),xn+=Hn*(5*$r),un=xn>>>13,xn&=8191,xn+=hr*(5*Pr),xn+=lr*(5*Dr),xn+=sr*(5*Fr),xn+=dr*(5*Lr),xn+=Ar*(5*pn),un+=xn>>>13,xn&=8191,Gn=un,Gn+=or*pn,Gn+=yr*Ir,Gn+=mr*Or,Gn+=Pn*Mr,Gn+=Hn*(5*Wr),un=Gn>>>13,Gn&=8191,Gn+=hr*(5*$r),Gn+=lr*(5*Pr),Gn+=sr*(5*Dr),Gn+=dr*(5*Fr),Gn+=Ar*(5*Lr),un+=Gn>>>13,Gn&=8191,er=un,er+=or*Lr,er+=yr*pn,er+=mr*Ir,er+=Pn*Or,er+=Hn*Mr,un=er>>>13,er&=8191,er+=hr*(5*Wr),er+=lr*(5*$r),er+=sr*(5*Pr),er+=dr*(5*Dr),er+=Ar*(5*Fr),un+=er>>>13,er&=8191,tr=un,tr+=or*Fr,tr+=yr*Lr,tr+=mr*pn,tr+=Pn*Ir,tr+=Hn*Or,un=tr>>>13,tr&=8191,tr+=hr*Mr,tr+=lr*(5*Wr),tr+=sr*(5*$r),tr+=dr*(5*Pr),tr+=Ar*(5*Dr),un+=tr>>>13,tr&=8191,ir=un,ir+=or*Dr,ir+=yr*Fr,ir+=mr*Lr,ir+=Pn*pn,ir+=Hn*Ir,un=ir>>>13,ir&=8191,ir+=hr*Or,ir+=lr*Mr,ir+=sr*(5*Wr),ir+=dr*(5*$r),ir+=Ar*(5*Pr),un+=ir>>>13,ir&=8191,Kn=un,Kn+=or*Pr,Kn+=yr*Dr,Kn+=mr*Fr,Kn+=Pn*Lr,Kn+=Hn*pn,un=Kn>>>13,Kn&=8191,Kn+=hr*Ir,Kn+=lr*Or,Kn+=sr*Mr,Kn+=dr*(5*Wr),Kn+=Ar*(5*$r),un+=Kn>>>13,Kn&=8191,rr=un,rr+=or*$r,rr+=yr*Pr,rr+=mr*Dr,rr+=Pn*Fr,rr+=Hn*Lr,un=rr>>>13,rr&=8191,rr+=hr*pn,rr+=lr*Ir,rr+=sr*Or,rr+=dr*Mr,rr+=Ar*(5*Wr),un+=rr>>>13,rr&=8191,ur=un,ur+=or*Wr,ur+=yr*$r,ur+=mr*Pr,ur+=Pn*Dr,ur+=Hn*Fr,un=ur>>>13,ur&=8191,ur+=hr*Lr,ur+=lr*pn,ur+=sr*Ir,ur+=dr*Or,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,or=tn,yr=Gt,mr=xn,Pn=Gn,Hn=er,hr=tr,lr=ir,sr=Kn,dr=rr,Ar=ur,Dt+=16,$t-=16;this.h[0]=or,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,Dt){var $t=new Uint16Array(10),mt,Ft,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,Ft=(mt^1)-1,It=0;It<10;It++)$t[It]&=Ft;for(Ft=~Ft,It=0;It<10;It++)this.h[It]=this.h[It]&Ft|$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[Dt+0]=this.h[0]>>>0&255,St[Dt+1]=this.h[0]>>>8&255,St[Dt+2]=this.h[1]>>>0&255,St[Dt+3]=this.h[1]>>>8&255,St[Dt+4]=this.h[2]>>>0&255,St[Dt+5]=this.h[2]>>>8&255,St[Dt+6]=this.h[3]>>>0&255,St[Dt+7]=this.h[3]>>>8&255,St[Dt+8]=this.h[4]>>>0&255,St[Dt+9]=this.h[4]>>>8&255,St[Dt+10]=this.h[5]>>>0&255,St[Dt+11]=this.h[5]>>>8&255,St[Dt+12]=this.h[6]>>>0&255,St[Dt+13]=this.h[6]>>>8&255,St[Dt+14]=this.h[7]>>>0&255,St[Dt+15]=this.h[7]>>>8&255},Tt.prototype.update=function(St,Dt,$t){var mt,Ft;if(this.leftover){for(Ft=16-this.leftover,Ft>$t&&(Ft=$t),mt=0;mt=16&&(Ft=$t-$t%16,this.blocks(St,Dt,Ft),Dt+=Ft,$t-=Ft),$t){for(mt=0;mt<$t;mt++)this.buffer[this.leftover+mt]=St[Dt+mt];this.leftover+=$t}};function At(St,Dt,$t,mt,Ft,Xt){var It=new Tt(Xt);return It.update($t,mt,Ft),It.finish(St,Dt),0}function Et(St,Dt,$t,mt,Ft,Xt){var It=new Uint8Array(16);return At(It,0,$t,mt,Ft,Xt),ft(St,Dt,It,0)}function jt(St,Dt,$t,mt,Ft){var Xt;if($t<32)return-1;for(_t(St,0,Dt,0,$t,mt,Ft),At(St,16,St,32,$t-32,St),Xt=0;Xt<16;Xt++)St[Xt]=0;return 0}function Lt(St,Dt,$t,mt,Ft){var Xt,It=new Uint8Array(32);if($t<32||(kt(It,0,32,mt,Ft),Et(Dt,16,Dt,32,$t-32,It)!==0))return-1;for(_t(St,0,Dt,0,$t,mt,Ft),Xt=0;Xt<32;Xt++)St[Xt]=0;return 0}function Bt(St,Dt){var $t;for($t=0;$t<16;$t++)St[$t]=Dt[$t]|0}function Zt(St){var Dt,$t,mt=1;for(Dt=0;Dt<16;Dt++)$t=St[Dt]+mt+65535,mt=Math.floor($t/65536),St[Dt]=$t-mt*65536;St[0]+=mt-1+37*(mt-1)}function rn(St,Dt,$t){for(var mt,Ft=~($t-1),Xt=0;Xt<16;Xt++)mt=Ft&(St[Xt]^Dt[Xt]),St[Xt]^=mt,Dt[Xt]^=mt}function nn(St,Dt){var $t,mt,Ft,Xt=d(),It=d();for($t=0;$t<16;$t++)It[$t]=Dt[$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),Ft=Xt[15]>>16&1,Xt[14]&=65535,rn(It,Xt,1-Ft)}for($t=0;$t<16;$t++)St[2*$t]=It[$t]&255,St[2*$t+1]=It[$t]>>8}function Qt(St,Dt){var $t=new Uint8Array(32),mt=new Uint8Array(32);return nn($t,St),nn(mt,Dt),lt($t,0,mt,0)}function Vt(St){var Dt=new Uint8Array(32);return nn(Dt,St),Dt[0]&1}function fn(St,Dt){var $t;for($t=0;$t<16;$t++)St[$t]=Dt[2*$t]+(Dt[2*$t+1]<<8);St[15]&=32767}function In(St,Dt,$t){for(var mt=0;mt<16;mt++)St[mt]=Dt[mt]+$t[mt]}function jn(St,Dt,$t){for(var mt=0;mt<16;mt++)St[mt]=Dt[mt]-$t[mt]}function _n(St,Dt,$t){var mt,Ft,Xt=0,It=0,Nt=0,Rt=0,Wt=0,Pt=0,hn=0,un=0,tn=0,Gt=0,xn=0,Gn=0,er=0,tr=0,ir=0,Kn=0,rr=0,ur=0,or=0,yr=0,mr=0,Pn=0,Hn=0,hr=0,lr=0,sr=0,dr=0,Ar=0,Mr=0,Or=0,Ir=0,pn=$t[0],Lr=$t[1],Fr=$t[2],Dr=$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=Dt[0],Xt+=mt*pn,It+=mt*Lr,Nt+=mt*Fr,Rt+=mt*Dr,Wt+=mt*Pr,Pt+=mt*$r,hn+=mt*Wr,un+=mt*ro,tn+=mt*qr,Gt+=mt*eo,xn+=mt*to,Gn+=mt*no,er+=mt*io,tr+=mt*co,ir+=mt*so,Kn+=mt*fo,mt=Dt[1],It+=mt*pn,Nt+=mt*Lr,Rt+=mt*Fr,Wt+=mt*Dr,Pt+=mt*Pr,hn+=mt*$r,un+=mt*Wr,tn+=mt*ro,Gt+=mt*qr,xn+=mt*eo,Gn+=mt*to,er+=mt*no,tr+=mt*io,ir+=mt*co,Kn+=mt*so,rr+=mt*fo,mt=Dt[2],Nt+=mt*pn,Rt+=mt*Lr,Wt+=mt*Fr,Pt+=mt*Dr,hn+=mt*Pr,un+=mt*$r,tn+=mt*Wr,Gt+=mt*ro,xn+=mt*qr,Gn+=mt*eo,er+=mt*to,tr+=mt*no,ir+=mt*io,Kn+=mt*co,rr+=mt*so,ur+=mt*fo,mt=Dt[3],Rt+=mt*pn,Wt+=mt*Lr,Pt+=mt*Fr,hn+=mt*Dr,un+=mt*Pr,tn+=mt*$r,Gt+=mt*Wr,xn+=mt*ro,Gn+=mt*qr,er+=mt*eo,tr+=mt*to,ir+=mt*no,Kn+=mt*io,rr+=mt*co,ur+=mt*so,or+=mt*fo,mt=Dt[4],Wt+=mt*pn,Pt+=mt*Lr,hn+=mt*Fr,un+=mt*Dr,tn+=mt*Pr,Gt+=mt*$r,xn+=mt*Wr,Gn+=mt*ro,er+=mt*qr,tr+=mt*eo,ir+=mt*to,Kn+=mt*no,rr+=mt*io,ur+=mt*co,or+=mt*so,yr+=mt*fo,mt=Dt[5],Pt+=mt*pn,hn+=mt*Lr,un+=mt*Fr,tn+=mt*Dr,Gt+=mt*Pr,xn+=mt*$r,Gn+=mt*Wr,er+=mt*ro,tr+=mt*qr,ir+=mt*eo,Kn+=mt*to,rr+=mt*no,ur+=mt*io,or+=mt*co,yr+=mt*so,mr+=mt*fo,mt=Dt[6],hn+=mt*pn,un+=mt*Lr,tn+=mt*Fr,Gt+=mt*Dr,xn+=mt*Pr,Gn+=mt*$r,er+=mt*Wr,tr+=mt*ro,ir+=mt*qr,Kn+=mt*eo,rr+=mt*to,ur+=mt*no,or+=mt*io,yr+=mt*co,mr+=mt*so,Pn+=mt*fo,mt=Dt[7],un+=mt*pn,tn+=mt*Lr,Gt+=mt*Fr,xn+=mt*Dr,Gn+=mt*Pr,er+=mt*$r,tr+=mt*Wr,ir+=mt*ro,Kn+=mt*qr,rr+=mt*eo,ur+=mt*to,or+=mt*no,yr+=mt*io,mr+=mt*co,Pn+=mt*so,Hn+=mt*fo,mt=Dt[8],tn+=mt*pn,Gt+=mt*Lr,xn+=mt*Fr,Gn+=mt*Dr,er+=mt*Pr,tr+=mt*$r,ir+=mt*Wr,Kn+=mt*ro,rr+=mt*qr,ur+=mt*eo,or+=mt*to,yr+=mt*no,mr+=mt*io,Pn+=mt*co,Hn+=mt*so,hr+=mt*fo,mt=Dt[9],Gt+=mt*pn,xn+=mt*Lr,Gn+=mt*Fr,er+=mt*Dr,tr+=mt*Pr,ir+=mt*$r,Kn+=mt*Wr,rr+=mt*ro,ur+=mt*qr,or+=mt*eo,yr+=mt*to,mr+=mt*no,Pn+=mt*io,Hn+=mt*co,hr+=mt*so,lr+=mt*fo,mt=Dt[10],xn+=mt*pn,Gn+=mt*Lr,er+=mt*Fr,tr+=mt*Dr,ir+=mt*Pr,Kn+=mt*$r,rr+=mt*Wr,ur+=mt*ro,or+=mt*qr,yr+=mt*eo,mr+=mt*to,Pn+=mt*no,Hn+=mt*io,hr+=mt*co,lr+=mt*so,sr+=mt*fo,mt=Dt[11],Gn+=mt*pn,er+=mt*Lr,tr+=mt*Fr,ir+=mt*Dr,Kn+=mt*Pr,rr+=mt*$r,ur+=mt*Wr,or+=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=Dt[12],er+=mt*pn,tr+=mt*Lr,ir+=mt*Fr,Kn+=mt*Dr,rr+=mt*Pr,ur+=mt*$r,or+=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=Dt[13],tr+=mt*pn,ir+=mt*Lr,Kn+=mt*Fr,rr+=mt*Dr,ur+=mt*Pr,or+=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=Dt[14],ir+=mt*pn,Kn+=mt*Lr,rr+=mt*Fr,ur+=mt*Dr,or+=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,Or+=mt*fo,mt=Dt[15],Kn+=mt*pn,rr+=mt*Lr,ur+=mt*Fr,or+=mt*Dr,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,Or+=mt*so,Ir+=mt*fo,Xt+=38*rr,It+=38*ur,Nt+=38*or,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,er+=38*Mr,tr+=38*Or,ir+=38*Ir,Ft=1,mt=Xt+Ft+65535,Ft=Math.floor(mt/65536),Xt=mt-Ft*65536,mt=It+Ft+65535,Ft=Math.floor(mt/65536),It=mt-Ft*65536,mt=Nt+Ft+65535,Ft=Math.floor(mt/65536),Nt=mt-Ft*65536,mt=Rt+Ft+65535,Ft=Math.floor(mt/65536),Rt=mt-Ft*65536,mt=Wt+Ft+65535,Ft=Math.floor(mt/65536),Wt=mt-Ft*65536,mt=Pt+Ft+65535,Ft=Math.floor(mt/65536),Pt=mt-Ft*65536,mt=hn+Ft+65535,Ft=Math.floor(mt/65536),hn=mt-Ft*65536,mt=un+Ft+65535,Ft=Math.floor(mt/65536),un=mt-Ft*65536,mt=tn+Ft+65535,Ft=Math.floor(mt/65536),tn=mt-Ft*65536,mt=Gt+Ft+65535,Ft=Math.floor(mt/65536),Gt=mt-Ft*65536,mt=xn+Ft+65535,Ft=Math.floor(mt/65536),xn=mt-Ft*65536,mt=Gn+Ft+65535,Ft=Math.floor(mt/65536),Gn=mt-Ft*65536,mt=er+Ft+65535,Ft=Math.floor(mt/65536),er=mt-Ft*65536,mt=tr+Ft+65535,Ft=Math.floor(mt/65536),tr=mt-Ft*65536,mt=ir+Ft+65535,Ft=Math.floor(mt/65536),ir=mt-Ft*65536,mt=Kn+Ft+65535,Ft=Math.floor(mt/65536),Kn=mt-Ft*65536,Xt+=Ft-1+37*(Ft-1),Ft=1,mt=Xt+Ft+65535,Ft=Math.floor(mt/65536),Xt=mt-Ft*65536,mt=It+Ft+65535,Ft=Math.floor(mt/65536),It=mt-Ft*65536,mt=Nt+Ft+65535,Ft=Math.floor(mt/65536),Nt=mt-Ft*65536,mt=Rt+Ft+65535,Ft=Math.floor(mt/65536),Rt=mt-Ft*65536,mt=Wt+Ft+65535,Ft=Math.floor(mt/65536),Wt=mt-Ft*65536,mt=Pt+Ft+65535,Ft=Math.floor(mt/65536),Pt=mt-Ft*65536,mt=hn+Ft+65535,Ft=Math.floor(mt/65536),hn=mt-Ft*65536,mt=un+Ft+65535,Ft=Math.floor(mt/65536),un=mt-Ft*65536,mt=tn+Ft+65535,Ft=Math.floor(mt/65536),tn=mt-Ft*65536,mt=Gt+Ft+65535,Ft=Math.floor(mt/65536),Gt=mt-Ft*65536,mt=xn+Ft+65535,Ft=Math.floor(mt/65536),xn=mt-Ft*65536,mt=Gn+Ft+65535,Ft=Math.floor(mt/65536),Gn=mt-Ft*65536,mt=er+Ft+65535,Ft=Math.floor(mt/65536),er=mt-Ft*65536,mt=tr+Ft+65535,Ft=Math.floor(mt/65536),tr=mt-Ft*65536,mt=ir+Ft+65535,Ft=Math.floor(mt/65536),ir=mt-Ft*65536,mt=Kn+Ft+65535,Ft=Math.floor(mt/65536),Kn=mt-Ft*65536,Xt+=Ft-1+37*(Ft-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]=er,St[13]=tr,St[14]=ir,St[15]=Kn}function Bn(St,Dt){_n(St,Dt,Dt)}function Yn(St,Dt){var $t=d(),mt;for(mt=0;mt<16;mt++)$t[mt]=Dt[mt];for(mt=253;mt>=0;mt--)Bn($t,$t),mt!==2&&mt!==4&&_n($t,$t,Dt);for(mt=0;mt<16;mt++)St[mt]=$t[mt]}function dn(St,Dt){var $t=d(),mt;for(mt=0;mt<16;mt++)$t[mt]=Dt[mt];for(mt=250;mt>=0;mt--)Bn($t,$t),mt!==1&&_n($t,$t,Dt);for(mt=0;mt<16;mt++)St[mt]=$t[mt]}function An(St,Dt,$t){var mt=new Uint8Array(32),Ft=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]=Dt[It];for(mt[31]=Dt[31]&127|64,mt[0]&=248,fn(Ft,$t),It=0;It<16;It++)Rt[It]=Ft[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),jn(Nt,Nt,Wt),In(Wt,Rt,Pt),jn(Rt,Rt,Pt),Bn(Pt,hn),Bn(un,Nt),_n(Nt,Wt,Nt),_n(Wt,Rt,hn),In(hn,Nt,Wt),jn(Nt,Nt,Wt),Bn(Rt,Nt),jn(Wt,Pt,un),_n(Nt,Wt,rt),In(Nt,Nt,Pt),_n(Wt,Wt,Nt),_n(Nt,Pt,un),_n(Pt,Rt,Ft),Bn(Rt,hn),rn(Nt,Rt,Xt),rn(Wt,Pt,Xt);for(It=0;It<16;It++)Ft[It+16]=Nt[It],Ft[It+32]=Wt[It],Ft[It+48]=Rt[It],Ft[It+64]=Pt[It];var tn=Ft.subarray(32),Gt=Ft.subarray(16);return Yn(tn,tn),_n(Gt,Gt,tn),nn(St,Gt),0}function yn(St,Dt){return An(St,Dt,$)}function On(St,Dt){return k(Dt,32),yn(St,Dt)}function kn(St,Dt,$t){var mt=new Uint8Array(32);return An(mt,$t,Dt),Ct(St,j,mt,xt)}var vn=jt,En=Lt;function gn(St,Dt,$t,mt,Ft,Xt){var It=new Uint8Array(32);return kn(It,Ft,Xt),vn(St,Dt,$t,mt,It)}function Ln(St,Dt,$t,mt,Ft,Xt){var It=new Uint8Array(32);return kn(It,Ft,Xt),En(St,Dt,$t,mt,It)}var Dn=[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,Dt,$t,mt){for(var Ft=new Int32Array(16),Xt=new Int32Array(16),It,Nt,Rt,Wt,Pt,hn,un,tn,Gt,xn,Gn,er,tr,ir,Kn,rr,ur,or,yr,mr,Pn,Hn,hr,lr,sr,dr,Ar=St[0],Mr=St[1],Or=St[2],Ir=St[3],pn=St[4],Lr=St[5],Fr=St[6],Dr=St[7],Pr=Dt[0],$r=Dt[1],Wr=Dt[2],ro=Dt[3],qr=Dt[4],eo=Dt[5],to=Dt[6],no=Dt[7],io=0;mt>=128;){for(yr=0;yr<16;yr++)mr=8*yr+io,Ft[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=Or,Wt=Ir,Pt=pn,hn=Lr,un=Fr,tn=Dr,Gt=Pr,xn=$r,Gn=Wr,er=ro,tr=qr,ir=eo,Kn=to,rr=no,Pn=Dr,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&Fr,Hn=qr&eo^~qr&to,hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,Pn=Dn[yr*2],Hn=Dn[yr*2+1],hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,Pn=Ft[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,or=hr&65535|lr<<16,Pn=ur,Hn=or,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&Or^Mr&Or,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,rr=hr&65535|lr<<16,Pn=Wt,Hn=er,hr=Hn&65535,lr=Hn>>>16,sr=Pn&65535,dr=Pn>>>16,Pn=ur,Hn=or,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,er=hr&65535|lr<<16,Mr=It,Or=Nt,Ir=Rt,pn=Wt,Lr=Pt,Fr=hn,Dr=un,Ar=tn,$r=Gt,Wr=xn,ro=Gn,qr=er,eo=tr,to=ir,no=Kn,Pr=rr,yr%16===15)for(mr=0;mr<16;mr++)Pn=Ft[mr],Hn=Xt[mr],hr=Hn&65535,lr=Hn>>>16,sr=Pn&65535,dr=Pn>>>16,Pn=Ft[(mr+9)%16],Hn=Xt[(mr+9)%16],hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,ur=Ft[(mr+1)%16],or=Xt[(mr+1)%16],Pn=(ur>>>1|or<<32-1)^(ur>>>8|or<<32-8)^ur>>>7,Hn=(or>>>1|ur<<32-1)^(or>>>8|ur<<32-8)^(or>>>7|ur<<32-7),hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,ur=Ft[(mr+14)%16],or=Xt[(mr+14)%16],Pn=(ur>>>19|or<<32-19)^(or>>>61-32|ur<<32-(61-32))^ur>>>6,Hn=(or>>>19|ur<<32-19)^(ur>>>61-32|or<<32-(61-32))^(or>>>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,Ft[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=Dt[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,Dt[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=Dt[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,Dt[1]=$r=hr&65535|lr<<16,Pn=Or,Hn=Wr,hr=Hn&65535,lr=Hn>>>16,sr=Pn&65535,dr=Pn>>>16,Pn=St[2],Hn=Dt[2],hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,St[2]=Or=sr&65535|dr<<16,Dt[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=Dt[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,Dt[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=Dt[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,Dt[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=Dt[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,Dt[5]=eo=hr&65535|lr<<16,Pn=Fr,Hn=to,hr=Hn&65535,lr=Hn>>>16,sr=Pn&65535,dr=Pn>>>16,Pn=St[6],Hn=Dt[6],hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,St[6]=Fr=sr&65535|dr<<16,Dt[6]=to=hr&65535|lr<<16,Pn=Dr,Hn=no,hr=Hn&65535,lr=Hn>>>16,sr=Pn&65535,dr=Pn>>>16,Pn=St[7],Hn=Dt[7],hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,St[7]=Dr=sr&65535|dr<<16,Dt[7]=no=hr&65535|lr<<16,io+=128,mt-=128}return mt}function Sn(St,Dt,$t){var mt=new Int32Array(8),Ft=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,Ft[0]=4089235720,Ft[1]=2227873595,Ft[2]=4271175723,Ft[3]=1595750129,Ft[4]=2917565137,Ft[5]=725511199,Ft[6]=4215389547,Ft[7]=327033209,Un(mt,Ft,Dt,$t),$t%=128,It=0;It<$t;It++)Xt[It]=Dt[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,Ft,Xt,$t),It=0;It<8;It++)ut(St,8*It,mt[It],Ft[It]);return 0}function Zn(St,Dt){var $t=d(),mt=d(),Ft=d(),Xt=d(),It=d(),Nt=d(),Rt=d(),Wt=d(),Pt=d();jn($t,St[1],St[0]),jn(Pt,Dt[1],Dt[0]),_n($t,$t,Pt),In(mt,St[0],St[1]),In(Pt,Dt[0],Dt[1]),_n(mt,mt,Pt),_n(Ft,St[3],Dt[3]),_n(Ft,Ft,ot),_n(Xt,St[2],Dt[2]),In(Xt,Xt,Xt),jn(It,mt,$t),jn(Nt,Xt,Ft),In(Rt,Xt,Ft),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,Dt,$t){var mt;for(mt=0;mt<4;mt++)rn(St[mt],Dt[mt],$t)}function Wn(St,Dt){var $t=d(),mt=d(),Ft=d();Yn(Ft,Dt[2]),_n($t,Dt[0],Ft),_n(mt,Dt[1],Ft),nn(St,mt),St[31]^=Vt($t)<<7}function Fn(St,Dt,$t){var mt,Ft;for(Bt(St[0],et),Bt(St[1],tt),Bt(St[2],tt),Bt(St[3],et),Ft=255;Ft>=0;--Ft)mt=$t[Ft/8|0]>>(Ft&7)&1,wn(St,Dt,mt),Zn(Dt,St),Zn(St,St),wn(St,Dt,mt)}function zn(St,Dt){var $t=[d(),d(),d(),d()];Bt($t[0],at),Bt($t[1],it),Bt($t[2],tt),_n($t[3],at,it),Fn(St,$t,Dt)}function Tn(St,Dt,$t){var mt=new Uint8Array(64),Ft=[d(),d(),d(),d()],Xt;for($t||k(Dt,32),Sn(mt,Dt,32),mt[0]&=248,mt[31]&=127,mt[31]|=64,zn(Ft,mt),Wn(St,Ft),Xt=0;Xt<32;Xt++)Dt[Xt+32]=St[Xt];return 0}var Kt=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,Dt){var $t,mt,Ft,Xt;for(mt=63;mt>=32;--mt){for($t=0,Ft=mt-32,Xt=mt-12;Ft>4)*Kt[Ft],$t=Dt[Ft]>>8,Dt[Ft]&=255;for(Ft=0;Ft<32;Ft++)Dt[Ft]-=$t*Kt[Ft];for(mt=0;mt<32;mt++)Dt[mt+1]+=Dt[mt]>>8,St[mt]=Dt[mt]&255}function pt(St){var Dt=new Float64Array(64),$t;for($t=0;$t<64;$t++)Dt[$t]=St[$t];for($t=0;$t<64;$t++)St[$t]=0;bt(St,Dt)}function yt(St,Dt,$t,mt){var Ft=new Uint8Array(64),Xt=new Uint8Array(64),It=new Uint8Array(64),Nt,Rt,Wt=new Float64Array(64),Pt=[d(),d(),d(),d()];Sn(Ft,mt,32),Ft[0]&=248,Ft[31]&=127,Ft[31]|=64;var hn=$t+64;for(Nt=0;Nt<$t;Nt++)St[64+Nt]=Dt[Nt];for(Nt=0;Nt<32;Nt++)St[32+Nt]=Ft[32+Nt];for(Sn(It,St.subarray(32),$t+32),pt(It),zn(Pt,It),Wn(St,Pt),Nt=32;Nt<64;Nt++)St[Nt]=mt[Nt];for(Sn(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]*Ft[Rt];return bt(St.subarray(32),Wt),hn}function Ut(St,Dt){var $t=d(),mt=d(),Ft=d(),Xt=d(),It=d(),Nt=d(),Rt=d();return Bt(St[2],tt),fn(St[1],Dt),Bn(Ft,St[1]),_n(Xt,Ft,nt),jn(Ft,Ft,St[2]),In(Xt,St[2],Xt),Bn(It,Xt),Bn(Nt,It),_n(Rt,Nt,It),_n($t,Rt,Ft),_n($t,$t,Xt),dn($t,$t),_n($t,$t,Ft),_n($t,$t,Xt),_n($t,$t,Xt),_n(St[0],$t,Xt),Bn(mt,St[0]),_n(mt,mt,Xt),Qt(mt,Ft)&&_n(St[0],St[0],dt),Bn(mt,St[0]),_n(mt,mt,Xt),Qt(mt,Ft)?-1:(Vt(St[0])===Dt[31]>>7&&jn(St[0],et,St[0]),_n(St[3],St[0],St[1]),0)}function sn(St,Dt,$t,mt){var Ft,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(Ft=0;Ft<$t;Ft++)St[Ft]=Dt[Ft];for(Ft=0;Ft<32;Ft++)St[Ft+32]=mt[Ft];if(Sn(It,St,$t),pt(It),Fn(Nt,Rt,It),zn(Rt,Dt.subarray(32)),Zn(Nt,Rt),Wn(Xt,Nt),$t-=64,lt(Dt,0,Xt,0)){for(Ft=0;Ft<$t;Ft++)St[Ft]=0;return-1}for(Ft=0;Ft<$t;Ft++)St[Ft]=Dt[Ft+64];return $t}var ln=32,mn=24,Qn=32,Rn=16,Jn=32,Nn=32,ar=32,Xn=32,qn=32,fr=mn,cr=Qn,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:jt,crypto_secretbox_open:Lt,crypto_scalarmult:An,crypto_scalarmult_base:yn,crypto_box_beforenm:kn,crypto_box_afternm:vn,crypto_box:gn,crypto_box_open:Ln,crypto_box_keypair:On,crypto_hash:Sn,crypto_sign:yt,crypto_sign_keypair:Tn,crypto_sign_open:sn,crypto_secretbox_KEYBYTES:ln,crypto_secretbox_NONCEBYTES:mn,crypto_secretbox_ZEROBYTES:Qn,crypto_secretbox_BOXZEROBYTES:Rn,crypto_scalarmult_BYTES:Jn,crypto_scalarmult_SCALARBYTES:Nn,crypto_box_PUBLICKEYBYTES:ar,crypto_box_SECRETKEYBYTES:Xn,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:Kt,pack25519:nn,unpack25519:fn,M:_n,A:In,S:Bn,Z:jn,pow2523:dn,add:Zn,set25519:Bt,modL:bt,scalarmult:Fn,scalarbase:zn};function Ur(St,Dt){if(St.length!==ln)throw new Error("bad key size");if(Dt.length!==mn)throw new Error("bad nonce size")}function Qr(St,Dt){if(St.length!==ar)throw new Error("bad public key size");if(Dt.length!==Xn)throw new Error("bad secret key size")}function Zr(){for(var St=0;St=0},_.sign.keyPair=function(){var St=new Uint8Array(kr),Dt=new Uint8Array(Tr);return Tn(St,Dt),{publicKey:St,secretKey:Dt}},_.sign.keyPair.fromSecretKey=function(St){if(Zr(St),St.length!==Tr)throw new Error("bad secret key size");for(var Dt=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[Dt+1]=$t>>16&255,St[Dt+2]=$t>>8&255,St[Dt+3]=$t&255,St[Dt+4]=mt>>24&255,St[Dt+5]=mt>>16&255,St[Dt+6]=mt>>8&255,St[Dt+7]=mt&255}function ht(St,Dt,$t,mt,Ft){var Xt,It=0;for(Xt=0;Xt>>8)-1}function ft(St,Dt,$t,mt){return ht(St,Dt,$t,mt,16)}function lt(St,Dt,$t,mt){return ht(St,Dt,$t,mt,32)}function ct(St,Dt,$t,mt){for(var Ft=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=Dt[0]&255|(Dt[1]&255)<<8|(Dt[2]&255)<<16|(Dt[3]&255)<<24,hn=Dt[4]&255|(Dt[5]&255)<<8|(Dt[6]&255)<<16|(Dt[7]&255)<<24,un=Dt[8]&255|(Dt[9]&255)<<8|(Dt[10]&255)<<16|(Dt[11]&255)<<24,tn=Dt[12]&255|(Dt[13]&255)<<8|(Dt[14]&255)<<16|(Dt[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,er=$t[24]&255|($t[25]&255)<<8|($t[26]&255)<<16|($t[27]&255)<<24,tr=$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=Ft,rr=Xt,ur=It,or=Nt,yr=Rt,mr=Wt,Pn=Pt,Hn=hn,hr=un,lr=tn,sr=Gt,dr=xn,Ar=Gn,Mr=er,jr=tr,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+rr|0,lr^=pn<<7|pn>>>32-7,pn=lr+mr|0,Mr^=pn<<9|pn>>>32-9,pn=Mr+lr|0,rr^=pn<<13|pn>>>32-13,pn=rr+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,or^=pn<<7|pn>>>32-7,pn=or+Ir|0,Hn^=pn<<9|pn>>>32-9,pn=Hn+or|0,dr^=pn<<13|pn>>>32-13,pn=dr+Hn|0,Ir^=pn<<18|pn>>>32-18,pn=Kn+or|0,rr^=pn<<7|pn>>>32-7,pn=rr+Kn|0,ur^=pn<<9|pn>>>32-9,pn=ur+rr|0,or^=pn<<13|pn>>>32-13,pn=or+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+Ft|0,rr=rr+Xt|0,ur=ur+It|0,or=or+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+er|0,jr=jr+tr|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]=rr>>>0&255,St[5]=rr>>>8&255,St[6]=rr>>>16&255,St[7]=rr>>>24&255,St[8]=ur>>>0&255,St[9]=ur>>>8&255,St[10]=ur>>>16&255,St[11]=ur>>>24&255,St[12]=or>>>0&255,St[13]=or>>>8&255,St[14]=or>>>16&255,St[15]=or>>>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,Dt,$t,mt){for(var Ft=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=Dt[0]&255|(Dt[1]&255)<<8|(Dt[2]&255)<<16|(Dt[3]&255)<<24,hn=Dt[4]&255|(Dt[5]&255)<<8|(Dt[6]&255)<<16|(Dt[7]&255)<<24,un=Dt[8]&255|(Dt[9]&255)<<8|(Dt[10]&255)<<16|(Dt[11]&255)<<24,tn=Dt[12]&255|(Dt[13]&255)<<8|(Dt[14]&255)<<16|(Dt[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,er=$t[24]&255|($t[25]&255)<<8|($t[26]&255)<<16|($t[27]&255)<<24,tr=$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=Ft,rr=Xt,ur=It,or=Nt,yr=Rt,mr=Wt,Pn=Pt,Hn=hn,hr=un,lr=tn,sr=Gt,dr=xn,Ar=Gn,Mr=er,jr=tr,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+rr|0,lr^=pn<<7|pn>>>32-7,pn=lr+mr|0,Mr^=pn<<9|pn>>>32-9,pn=Mr+lr|0,rr^=pn<<13|pn>>>32-13,pn=rr+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,or^=pn<<7|pn>>>32-7,pn=or+Ir|0,Hn^=pn<<9|pn>>>32-9,pn=Hn+or|0,dr^=pn<<13|pn>>>32-13,pn=dr+Hn|0,Ir^=pn<<18|pn>>>32-18,pn=Kn+or|0,rr^=pn<<7|pn>>>32-7,pn=rr+Kn|0,ur^=pn<<9|pn>>>32-9,pn=ur+rr|0,or^=pn<<13|pn>>>32-13,pn=or+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,Dt,$t,mt){ct(St,Dt,$t,mt)}function Ct(St,Dt,$t,mt){gt(St,Dt,$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,Dt,$t,mt,Ft,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(;Ft>=64;){for(st(Rt,Nt,It,xt),Pt=0;Pt<64;Pt++)St[Dt+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;Ft-=64,Dt+=64,mt+=64}if(Ft>0)for(st(Rt,Nt,It,xt),Pt=0;Pt=64;){for(st(It,Xt,Ft,xt),Rt=0;Rt<64;Rt++)St[Dt+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,Dt+=64}if($t>0)for(st(It,Xt,Ft,xt),Rt=0;Rt<$t;Rt++)St[Dt+Rt]=It[Rt];return 0}function kt(St,Dt,$t,mt,Ft){var Xt=new Uint8Array(32);Ct(Xt,mt,Ft,xt);for(var It=new Uint8Array(8),Nt=0;Nt<8;Nt++)It[Nt]=mt[Nt+16];return Mt(St,Dt,$t,It,Xt)}function _t(St,Dt,$t,mt,Ft,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,Dt,$t,mt,Ft,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 Dt,$t,mt,Ft,Xt,It,Nt,Rt;Dt=St[0]&255|(St[1]&255)<<8,this.r[0]=Dt&8191,$t=St[2]&255|(St[3]&255)<<8,this.r[1]=(Dt>>>13|$t<<3)&8191,mt=St[4]&255|(St[5]&255)<<8,this.r[2]=($t>>>10|mt<<6)&7939,Ft=St[6]&255|(St[7]&255)<<8,this.r[3]=(mt>>>7|Ft<<9)&8191,Xt=St[8]&255|(St[9]&255)<<8,this.r[4]=(Ft>>>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,Dt,$t){for(var mt=this.fin?0:2048,Ft,Xt,It,Nt,Rt,Wt,Pt,hn,un,tn,Gt,xn,Gn,er,tr,ir,Kn,rr,ur,or=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],Fr=this.r[5],Dr=this.r[6],Pr=this.r[7],$r=this.r[8],Wr=this.r[9];$t>=16;)Ft=St[Dt+0]&255|(St[Dt+1]&255)<<8,or+=Ft&8191,Xt=St[Dt+2]&255|(St[Dt+3]&255)<<8,yr+=(Ft>>>13|Xt<<3)&8191,It=St[Dt+4]&255|(St[Dt+5]&255)<<8,mr+=(Xt>>>10|It<<6)&8191,Nt=St[Dt+6]&255|(St[Dt+7]&255)<<8,Pn+=(It>>>7|Nt<<9)&8191,Rt=St[Dt+8]&255|(St[Dt+9]&255)<<8,Hn+=(Nt>>>4|Rt<<12)&8191,hr+=Rt>>>1&8191,Wt=St[Dt+10]&255|(St[Dt+11]&255)<<8,lr+=(Rt>>>14|Wt<<2)&8191,Pt=St[Dt+12]&255|(St[Dt+13]&255)<<8,sr+=(Wt>>>11|Pt<<5)&8191,hn=St[Dt+14]&255|(St[Dt+15]&255)<<8,dr+=(Pt>>>8|hn<<8)&8191,Ar+=hn>>>5|mt,un=0,tn=un,tn+=or*Mr,tn+=yr*(5*Wr),tn+=mr*(5*$r),tn+=Pn*(5*Pr),tn+=Hn*(5*Dr),un=tn>>>13,tn&=8191,tn+=hr*(5*Fr),tn+=lr*(5*Lr),tn+=sr*(5*pn),tn+=dr*(5*Ir),tn+=Ar*(5*jr),un+=tn>>>13,tn&=8191,Gt=un,Gt+=or*jr,Gt+=yr*Mr,Gt+=mr*(5*Wr),Gt+=Pn*(5*$r),Gt+=Hn*(5*Pr),un=Gt>>>13,Gt&=8191,Gt+=hr*(5*Dr),Gt+=lr*(5*Fr),Gt+=sr*(5*Lr),Gt+=dr*(5*pn),Gt+=Ar*(5*Ir),un+=Gt>>>13,Gt&=8191,xn=un,xn+=or*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*Dr),xn+=sr*(5*Fr),xn+=dr*(5*Lr),xn+=Ar*(5*pn),un+=xn>>>13,xn&=8191,Gn=un,Gn+=or*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*Dr),Gn+=dr*(5*Fr),Gn+=Ar*(5*Lr),un+=Gn>>>13,Gn&=8191,er=un,er+=or*Lr,er+=yr*pn,er+=mr*Ir,er+=Pn*jr,er+=Hn*Mr,un=er>>>13,er&=8191,er+=hr*(5*Wr),er+=lr*(5*$r),er+=sr*(5*Pr),er+=dr*(5*Dr),er+=Ar*(5*Fr),un+=er>>>13,er&=8191,tr=un,tr+=or*Fr,tr+=yr*Lr,tr+=mr*pn,tr+=Pn*Ir,tr+=Hn*jr,un=tr>>>13,tr&=8191,tr+=hr*Mr,tr+=lr*(5*Wr),tr+=sr*(5*$r),tr+=dr*(5*Pr),tr+=Ar*(5*Dr),un+=tr>>>13,tr&=8191,ir=un,ir+=or*Dr,ir+=yr*Fr,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+=or*Pr,Kn+=yr*Dr,Kn+=mr*Fr,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,rr=un,rr+=or*$r,rr+=yr*Pr,rr+=mr*Dr,rr+=Pn*Fr,rr+=Hn*Lr,un=rr>>>13,rr&=8191,rr+=hr*pn,rr+=lr*Ir,rr+=sr*jr,rr+=dr*Mr,rr+=Ar*(5*Wr),un+=rr>>>13,rr&=8191,ur=un,ur+=or*Wr,ur+=yr*$r,ur+=mr*Pr,ur+=Pn*Dr,ur+=Hn*Fr,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,or=tn,yr=Gt,mr=xn,Pn=Gn,Hn=er,hr=tr,lr=ir,sr=Kn,dr=rr,Ar=ur,Dt+=16,$t-=16;this.h[0]=or,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,Dt){var $t=new Uint16Array(10),mt,Ft,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,Ft=(mt^1)-1,It=0;It<10;It++)$t[It]&=Ft;for(Ft=~Ft,It=0;It<10;It++)this.h[It]=this.h[It]&Ft|$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[Dt+0]=this.h[0]>>>0&255,St[Dt+1]=this.h[0]>>>8&255,St[Dt+2]=this.h[1]>>>0&255,St[Dt+3]=this.h[1]>>>8&255,St[Dt+4]=this.h[2]>>>0&255,St[Dt+5]=this.h[2]>>>8&255,St[Dt+6]=this.h[3]>>>0&255,St[Dt+7]=this.h[3]>>>8&255,St[Dt+8]=this.h[4]>>>0&255,St[Dt+9]=this.h[4]>>>8&255,St[Dt+10]=this.h[5]>>>0&255,St[Dt+11]=this.h[5]>>>8&255,St[Dt+12]=this.h[6]>>>0&255,St[Dt+13]=this.h[6]>>>8&255,St[Dt+14]=this.h[7]>>>0&255,St[Dt+15]=this.h[7]>>>8&255},Tt.prototype.update=function(St,Dt,$t){var mt,Ft;if(this.leftover){for(Ft=16-this.leftover,Ft>$t&&(Ft=$t),mt=0;mt=16&&(Ft=$t-$t%16,this.blocks(St,Dt,Ft),Dt+=Ft,$t-=Ft),$t){for(mt=0;mt<$t;mt++)this.buffer[this.leftover+mt]=St[Dt+mt];this.leftover+=$t}};function At(St,Dt,$t,mt,Ft,Xt){var It=new Tt(Xt);return It.update($t,mt,Ft),It.finish(St,Dt),0}function Et(St,Dt,$t,mt,Ft,Xt){var It=new Uint8Array(16);return At(It,0,$t,mt,Ft,Xt),ft(St,Dt,It,0)}function Ot(St,Dt,$t,mt,Ft){var Xt;if($t<32)return-1;for(_t(St,0,Dt,0,$t,mt,Ft),At(St,16,St,32,$t-32,St),Xt=0;Xt<16;Xt++)St[Xt]=0;return 0}function Lt(St,Dt,$t,mt,Ft){var Xt,It=new Uint8Array(32);if($t<32||(kt(It,0,32,mt,Ft),Et(Dt,16,Dt,32,$t-32,It)!==0))return-1;for(_t(St,0,Dt,0,$t,mt,Ft),Xt=0;Xt<32;Xt++)St[Xt]=0;return 0}function Bt(St,Dt){var $t;for($t=0;$t<16;$t++)St[$t]=Dt[$t]|0}function Zt(St){var Dt,$t,mt=1;for(Dt=0;Dt<16;Dt++)$t=St[Dt]+mt+65535,mt=Math.floor($t/65536),St[Dt]=$t-mt*65536;St[0]+=mt-1+37*(mt-1)}function rn(St,Dt,$t){for(var mt,Ft=~($t-1),Xt=0;Xt<16;Xt++)mt=Ft&(St[Xt]^Dt[Xt]),St[Xt]^=mt,Dt[Xt]^=mt}function nn(St,Dt){var $t,mt,Ft,Xt=d(),It=d();for($t=0;$t<16;$t++)It[$t]=Dt[$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),Ft=Xt[15]>>16&1,Xt[14]&=65535,rn(It,Xt,1-Ft)}for($t=0;$t<16;$t++)St[2*$t]=It[$t]&255,St[2*$t+1]=It[$t]>>8}function Qt(St,Dt){var $t=new Uint8Array(32),mt=new Uint8Array(32);return nn($t,St),nn(mt,Dt),lt($t,0,mt,0)}function Vt(St){var Dt=new Uint8Array(32);return nn(Dt,St),Dt[0]&1}function fn(St,Dt){var $t;for($t=0;$t<16;$t++)St[$t]=Dt[2*$t]+(Dt[2*$t+1]<<8);St[15]&=32767}function In(St,Dt,$t){for(var mt=0;mt<16;mt++)St[mt]=Dt[mt]+$t[mt]}function On(St,Dt,$t){for(var mt=0;mt<16;mt++)St[mt]=Dt[mt]-$t[mt]}function _n(St,Dt,$t){var mt,Ft,Xt=0,It=0,Nt=0,Rt=0,Wt=0,Pt=0,hn=0,un=0,tn=0,Gt=0,xn=0,Gn=0,er=0,tr=0,ir=0,Kn=0,rr=0,ur=0,or=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],Fr=$t[2],Dr=$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=Dt[0],Xt+=mt*pn,It+=mt*Lr,Nt+=mt*Fr,Rt+=mt*Dr,Wt+=mt*Pr,Pt+=mt*$r,hn+=mt*Wr,un+=mt*ro,tn+=mt*qr,Gt+=mt*eo,xn+=mt*to,Gn+=mt*no,er+=mt*io,tr+=mt*co,ir+=mt*so,Kn+=mt*fo,mt=Dt[1],It+=mt*pn,Nt+=mt*Lr,Rt+=mt*Fr,Wt+=mt*Dr,Pt+=mt*Pr,hn+=mt*$r,un+=mt*Wr,tn+=mt*ro,Gt+=mt*qr,xn+=mt*eo,Gn+=mt*to,er+=mt*no,tr+=mt*io,ir+=mt*co,Kn+=mt*so,rr+=mt*fo,mt=Dt[2],Nt+=mt*pn,Rt+=mt*Lr,Wt+=mt*Fr,Pt+=mt*Dr,hn+=mt*Pr,un+=mt*$r,tn+=mt*Wr,Gt+=mt*ro,xn+=mt*qr,Gn+=mt*eo,er+=mt*to,tr+=mt*no,ir+=mt*io,Kn+=mt*co,rr+=mt*so,ur+=mt*fo,mt=Dt[3],Rt+=mt*pn,Wt+=mt*Lr,Pt+=mt*Fr,hn+=mt*Dr,un+=mt*Pr,tn+=mt*$r,Gt+=mt*Wr,xn+=mt*ro,Gn+=mt*qr,er+=mt*eo,tr+=mt*to,ir+=mt*no,Kn+=mt*io,rr+=mt*co,ur+=mt*so,or+=mt*fo,mt=Dt[4],Wt+=mt*pn,Pt+=mt*Lr,hn+=mt*Fr,un+=mt*Dr,tn+=mt*Pr,Gt+=mt*$r,xn+=mt*Wr,Gn+=mt*ro,er+=mt*qr,tr+=mt*eo,ir+=mt*to,Kn+=mt*no,rr+=mt*io,ur+=mt*co,or+=mt*so,yr+=mt*fo,mt=Dt[5],Pt+=mt*pn,hn+=mt*Lr,un+=mt*Fr,tn+=mt*Dr,Gt+=mt*Pr,xn+=mt*$r,Gn+=mt*Wr,er+=mt*ro,tr+=mt*qr,ir+=mt*eo,Kn+=mt*to,rr+=mt*no,ur+=mt*io,or+=mt*co,yr+=mt*so,mr+=mt*fo,mt=Dt[6],hn+=mt*pn,un+=mt*Lr,tn+=mt*Fr,Gt+=mt*Dr,xn+=mt*Pr,Gn+=mt*$r,er+=mt*Wr,tr+=mt*ro,ir+=mt*qr,Kn+=mt*eo,rr+=mt*to,ur+=mt*no,or+=mt*io,yr+=mt*co,mr+=mt*so,Pn+=mt*fo,mt=Dt[7],un+=mt*pn,tn+=mt*Lr,Gt+=mt*Fr,xn+=mt*Dr,Gn+=mt*Pr,er+=mt*$r,tr+=mt*Wr,ir+=mt*ro,Kn+=mt*qr,rr+=mt*eo,ur+=mt*to,or+=mt*no,yr+=mt*io,mr+=mt*co,Pn+=mt*so,Hn+=mt*fo,mt=Dt[8],tn+=mt*pn,Gt+=mt*Lr,xn+=mt*Fr,Gn+=mt*Dr,er+=mt*Pr,tr+=mt*$r,ir+=mt*Wr,Kn+=mt*ro,rr+=mt*qr,ur+=mt*eo,or+=mt*to,yr+=mt*no,mr+=mt*io,Pn+=mt*co,Hn+=mt*so,hr+=mt*fo,mt=Dt[9],Gt+=mt*pn,xn+=mt*Lr,Gn+=mt*Fr,er+=mt*Dr,tr+=mt*Pr,ir+=mt*$r,Kn+=mt*Wr,rr+=mt*ro,ur+=mt*qr,or+=mt*eo,yr+=mt*to,mr+=mt*no,Pn+=mt*io,Hn+=mt*co,hr+=mt*so,lr+=mt*fo,mt=Dt[10],xn+=mt*pn,Gn+=mt*Lr,er+=mt*Fr,tr+=mt*Dr,ir+=mt*Pr,Kn+=mt*$r,rr+=mt*Wr,ur+=mt*ro,or+=mt*qr,yr+=mt*eo,mr+=mt*to,Pn+=mt*no,Hn+=mt*io,hr+=mt*co,lr+=mt*so,sr+=mt*fo,mt=Dt[11],Gn+=mt*pn,er+=mt*Lr,tr+=mt*Fr,ir+=mt*Dr,Kn+=mt*Pr,rr+=mt*$r,ur+=mt*Wr,or+=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=Dt[12],er+=mt*pn,tr+=mt*Lr,ir+=mt*Fr,Kn+=mt*Dr,rr+=mt*Pr,ur+=mt*$r,or+=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=Dt[13],tr+=mt*pn,ir+=mt*Lr,Kn+=mt*Fr,rr+=mt*Dr,ur+=mt*Pr,or+=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=Dt[14],ir+=mt*pn,Kn+=mt*Lr,rr+=mt*Fr,ur+=mt*Dr,or+=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=Dt[15],Kn+=mt*pn,rr+=mt*Lr,ur+=mt*Fr,or+=mt*Dr,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*rr,It+=38*ur,Nt+=38*or,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,er+=38*Mr,tr+=38*jr,ir+=38*Ir,Ft=1,mt=Xt+Ft+65535,Ft=Math.floor(mt/65536),Xt=mt-Ft*65536,mt=It+Ft+65535,Ft=Math.floor(mt/65536),It=mt-Ft*65536,mt=Nt+Ft+65535,Ft=Math.floor(mt/65536),Nt=mt-Ft*65536,mt=Rt+Ft+65535,Ft=Math.floor(mt/65536),Rt=mt-Ft*65536,mt=Wt+Ft+65535,Ft=Math.floor(mt/65536),Wt=mt-Ft*65536,mt=Pt+Ft+65535,Ft=Math.floor(mt/65536),Pt=mt-Ft*65536,mt=hn+Ft+65535,Ft=Math.floor(mt/65536),hn=mt-Ft*65536,mt=un+Ft+65535,Ft=Math.floor(mt/65536),un=mt-Ft*65536,mt=tn+Ft+65535,Ft=Math.floor(mt/65536),tn=mt-Ft*65536,mt=Gt+Ft+65535,Ft=Math.floor(mt/65536),Gt=mt-Ft*65536,mt=xn+Ft+65535,Ft=Math.floor(mt/65536),xn=mt-Ft*65536,mt=Gn+Ft+65535,Ft=Math.floor(mt/65536),Gn=mt-Ft*65536,mt=er+Ft+65535,Ft=Math.floor(mt/65536),er=mt-Ft*65536,mt=tr+Ft+65535,Ft=Math.floor(mt/65536),tr=mt-Ft*65536,mt=ir+Ft+65535,Ft=Math.floor(mt/65536),ir=mt-Ft*65536,mt=Kn+Ft+65535,Ft=Math.floor(mt/65536),Kn=mt-Ft*65536,Xt+=Ft-1+37*(Ft-1),Ft=1,mt=Xt+Ft+65535,Ft=Math.floor(mt/65536),Xt=mt-Ft*65536,mt=It+Ft+65535,Ft=Math.floor(mt/65536),It=mt-Ft*65536,mt=Nt+Ft+65535,Ft=Math.floor(mt/65536),Nt=mt-Ft*65536,mt=Rt+Ft+65535,Ft=Math.floor(mt/65536),Rt=mt-Ft*65536,mt=Wt+Ft+65535,Ft=Math.floor(mt/65536),Wt=mt-Ft*65536,mt=Pt+Ft+65535,Ft=Math.floor(mt/65536),Pt=mt-Ft*65536,mt=hn+Ft+65535,Ft=Math.floor(mt/65536),hn=mt-Ft*65536,mt=un+Ft+65535,Ft=Math.floor(mt/65536),un=mt-Ft*65536,mt=tn+Ft+65535,Ft=Math.floor(mt/65536),tn=mt-Ft*65536,mt=Gt+Ft+65535,Ft=Math.floor(mt/65536),Gt=mt-Ft*65536,mt=xn+Ft+65535,Ft=Math.floor(mt/65536),xn=mt-Ft*65536,mt=Gn+Ft+65535,Ft=Math.floor(mt/65536),Gn=mt-Ft*65536,mt=er+Ft+65535,Ft=Math.floor(mt/65536),er=mt-Ft*65536,mt=tr+Ft+65535,Ft=Math.floor(mt/65536),tr=mt-Ft*65536,mt=ir+Ft+65535,Ft=Math.floor(mt/65536),ir=mt-Ft*65536,mt=Kn+Ft+65535,Ft=Math.floor(mt/65536),Kn=mt-Ft*65536,Xt+=Ft-1+37*(Ft-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]=er,St[13]=tr,St[14]=ir,St[15]=Kn}function Bn(St,Dt){_n(St,Dt,Dt)}function Yn(St,Dt){var $t=d(),mt;for(mt=0;mt<16;mt++)$t[mt]=Dt[mt];for(mt=253;mt>=0;mt--)Bn($t,$t),mt!==2&&mt!==4&&_n($t,$t,Dt);for(mt=0;mt<16;mt++)St[mt]=$t[mt]}function dn(St,Dt){var $t=d(),mt;for(mt=0;mt<16;mt++)$t[mt]=Dt[mt];for(mt=250;mt>=0;mt--)Bn($t,$t),mt!==1&&_n($t,$t,Dt);for(mt=0;mt<16;mt++)St[mt]=$t[mt]}function An(St,Dt,$t){var mt=new Uint8Array(32),Ft=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]=Dt[It];for(mt[31]=Dt[31]&127|64,mt[0]&=248,fn(Ft,$t),It=0;It<16;It++)Rt[It]=Ft[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,Ft),Bn(Rt,hn),rn(Nt,Rt,Xt),rn(Wt,Pt,Xt);for(It=0;It<16;It++)Ft[It+16]=Nt[It],Ft[It+32]=Wt[It],Ft[It+48]=Rt[It],Ft[It+64]=Pt[It];var tn=Ft.subarray(32),Gt=Ft.subarray(16);return Yn(tn,tn),_n(Gt,Gt,tn),nn(St,Gt),0}function yn(St,Dt){return An(St,Dt,$)}function jn(St,Dt){return k(Dt,32),yn(St,Dt)}function kn(St,Dt,$t){var mt=new Uint8Array(32);return An(mt,$t,Dt),Ct(St,j,mt,xt)}var vn=Ot,En=Lt;function gn(St,Dt,$t,mt,Ft,Xt){var It=new Uint8Array(32);return kn(It,Ft,Xt),vn(St,Dt,$t,mt,It)}function Ln(St,Dt,$t,mt,Ft,Xt){var It=new Uint8Array(32);return kn(It,Ft,Xt),En(St,Dt,$t,mt,It)}var Dn=[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,Dt,$t,mt){for(var Ft=new Int32Array(16),Xt=new Int32Array(16),It,Nt,Rt,Wt,Pt,hn,un,tn,Gt,xn,Gn,er,tr,ir,Kn,rr,ur,or,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],Fr=St[6],Dr=St[7],Pr=Dt[0],$r=Dt[1],Wr=Dt[2],ro=Dt[3],qr=Dt[4],eo=Dt[5],to=Dt[6],no=Dt[7],io=0;mt>=128;){for(yr=0;yr<16;yr++)mr=8*yr+io,Ft[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=Fr,tn=Dr,Gt=Pr,xn=$r,Gn=Wr,er=ro,tr=qr,ir=eo,Kn=to,rr=no,Pn=Dr,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&Fr,Hn=qr&eo^~qr&to,hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,Pn=Dn[yr*2],Hn=Dn[yr*2+1],hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,Pn=Ft[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,or=hr&65535|lr<<16,Pn=ur,Hn=or,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,rr=hr&65535|lr<<16,Pn=Wt,Hn=er,hr=Hn&65535,lr=Hn>>>16,sr=Pn&65535,dr=Pn>>>16,Pn=ur,Hn=or,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,er=hr&65535|lr<<16,Mr=It,jr=Nt,Ir=Rt,pn=Wt,Lr=Pt,Fr=hn,Dr=un,Ar=tn,$r=Gt,Wr=xn,ro=Gn,qr=er,eo=tr,to=ir,no=Kn,Pr=rr,yr%16===15)for(mr=0;mr<16;mr++)Pn=Ft[mr],Hn=Xt[mr],hr=Hn&65535,lr=Hn>>>16,sr=Pn&65535,dr=Pn>>>16,Pn=Ft[(mr+9)%16],Hn=Xt[(mr+9)%16],hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,ur=Ft[(mr+1)%16],or=Xt[(mr+1)%16],Pn=(ur>>>1|or<<32-1)^(ur>>>8|or<<32-8)^ur>>>7,Hn=(or>>>1|ur<<32-1)^(or>>>8|ur<<32-8)^(or>>>7|ur<<32-7),hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,ur=Ft[(mr+14)%16],or=Xt[(mr+14)%16],Pn=(ur>>>19|or<<32-19)^(or>>>61-32|ur<<32-(61-32))^ur>>>6,Hn=(or>>>19|ur<<32-19)^(ur>>>61-32|or<<32-(61-32))^(or>>>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,Ft[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=Dt[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,Dt[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=Dt[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,Dt[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=Dt[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,Dt[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=Dt[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,Dt[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=Dt[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,Dt[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=Dt[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,Dt[5]=eo=hr&65535|lr<<16,Pn=Fr,Hn=to,hr=Hn&65535,lr=Hn>>>16,sr=Pn&65535,dr=Pn>>>16,Pn=St[6],Hn=Dt[6],hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,St[6]=Fr=sr&65535|dr<<16,Dt[6]=to=hr&65535|lr<<16,Pn=Dr,Hn=no,hr=Hn&65535,lr=Hn>>>16,sr=Pn&65535,dr=Pn>>>16,Pn=St[7],Hn=Dt[7],hr+=Hn&65535,lr+=Hn>>>16,sr+=Pn&65535,dr+=Pn>>>16,lr+=hr>>>16,sr+=lr>>>16,dr+=sr>>>16,St[7]=Dr=sr&65535|dr<<16,Dt[7]=no=hr&65535|lr<<16,io+=128,mt-=128}return mt}function Sn(St,Dt,$t){var mt=new Int32Array(8),Ft=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,Ft[0]=4089235720,Ft[1]=2227873595,Ft[2]=4271175723,Ft[3]=1595750129,Ft[4]=2917565137,Ft[5]=725511199,Ft[6]=4215389547,Ft[7]=327033209,Un(mt,Ft,Dt,$t),$t%=128,It=0;It<$t;It++)Xt[It]=Dt[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,Ft,Xt,$t),It=0;It<8;It++)ut(St,8*It,mt[It],Ft[It]);return 0}function Zn(St,Dt){var $t=d(),mt=d(),Ft=d(),Xt=d(),It=d(),Nt=d(),Rt=d(),Wt=d(),Pt=d();On($t,St[1],St[0]),On(Pt,Dt[1],Dt[0]),_n($t,$t,Pt),In(mt,St[0],St[1]),In(Pt,Dt[0],Dt[1]),_n(mt,mt,Pt),_n(Ft,St[3],Dt[3]),_n(Ft,Ft,ot),_n(Xt,St[2],Dt[2]),In(Xt,Xt,Xt),On(It,mt,$t),On(Nt,Xt,Ft),In(Rt,Xt,Ft),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,Dt,$t){var mt;for(mt=0;mt<4;mt++)rn(St[mt],Dt[mt],$t)}function Wn(St,Dt){var $t=d(),mt=d(),Ft=d();Yn(Ft,Dt[2]),_n($t,Dt[0],Ft),_n(mt,Dt[1],Ft),nn(St,mt),St[31]^=Vt($t)<<7}function Fn(St,Dt,$t){var mt,Ft;for(Bt(St[0],et),Bt(St[1],tt),Bt(St[2],tt),Bt(St[3],et),Ft=255;Ft>=0;--Ft)mt=$t[Ft/8|0]>>(Ft&7)&1,wn(St,Dt,mt),Zn(Dt,St),Zn(St,St),wn(St,Dt,mt)}function zn(St,Dt){var $t=[d(),d(),d(),d()];Bt($t[0],at),Bt($t[1],it),Bt($t[2],tt),_n($t[3],at,it),Fn(St,$t,Dt)}function Tn(St,Dt,$t){var mt=new Uint8Array(64),Ft=[d(),d(),d(),d()],Xt;for($t||k(Dt,32),Sn(mt,Dt,32),mt[0]&=248,mt[31]&=127,mt[31]|=64,zn(Ft,mt),Wn(St,Ft),Xt=0;Xt<32;Xt++)Dt[Xt+32]=St[Xt];return 0}var Kt=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,Dt){var $t,mt,Ft,Xt;for(mt=63;mt>=32;--mt){for($t=0,Ft=mt-32,Xt=mt-12;Ft>4)*Kt[Ft],$t=Dt[Ft]>>8,Dt[Ft]&=255;for(Ft=0;Ft<32;Ft++)Dt[Ft]-=$t*Kt[Ft];for(mt=0;mt<32;mt++)Dt[mt+1]+=Dt[mt]>>8,St[mt]=Dt[mt]&255}function pt(St){var Dt=new Float64Array(64),$t;for($t=0;$t<64;$t++)Dt[$t]=St[$t];for($t=0;$t<64;$t++)St[$t]=0;bt(St,Dt)}function yt(St,Dt,$t,mt){var Ft=new Uint8Array(64),Xt=new Uint8Array(64),It=new Uint8Array(64),Nt,Rt,Wt=new Float64Array(64),Pt=[d(),d(),d(),d()];Sn(Ft,mt,32),Ft[0]&=248,Ft[31]&=127,Ft[31]|=64;var hn=$t+64;for(Nt=0;Nt<$t;Nt++)St[64+Nt]=Dt[Nt];for(Nt=0;Nt<32;Nt++)St[32+Nt]=Ft[32+Nt];for(Sn(It,St.subarray(32),$t+32),pt(It),zn(Pt,It),Wn(St,Pt),Nt=32;Nt<64;Nt++)St[Nt]=mt[Nt];for(Sn(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]*Ft[Rt];return bt(St.subarray(32),Wt),hn}function Ut(St,Dt){var $t=d(),mt=d(),Ft=d(),Xt=d(),It=d(),Nt=d(),Rt=d();return Bt(St[2],tt),fn(St[1],Dt),Bn(Ft,St[1]),_n(Xt,Ft,nt),On(Ft,Ft,St[2]),In(Xt,St[2],Xt),Bn(It,Xt),Bn(Nt,It),_n(Rt,Nt,It),_n($t,Rt,Ft),_n($t,$t,Xt),dn($t,$t),_n($t,$t,Ft),_n($t,$t,Xt),_n($t,$t,Xt),_n(St[0],$t,Xt),Bn(mt,St[0]),_n(mt,mt,Xt),Qt(mt,Ft)&&_n(St[0],St[0],dt),Bn(mt,St[0]),_n(mt,mt,Xt),Qt(mt,Ft)?-1:(Vt(St[0])===Dt[31]>>7&&On(St[0],et,St[0]),_n(St[3],St[0],St[1]),0)}function sn(St,Dt,$t,mt){var Ft,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(Ft=0;Ft<$t;Ft++)St[Ft]=Dt[Ft];for(Ft=0;Ft<32;Ft++)St[Ft+32]=mt[Ft];if(Sn(It,St,$t),pt(It),Fn(Nt,Rt,It),zn(Rt,Dt.subarray(32)),Zn(Nt,Rt),Wn(Xt,Nt),$t-=64,lt(Dt,0,Xt,0)){for(Ft=0;Ft<$t;Ft++)St[Ft]=0;return-1}for(Ft=0;Ft<$t;Ft++)St[Ft]=Dt[Ft+64];return $t}var ln=32,mn=24,Qn=32,Rn=16,Jn=32,Nn=32,ar=32,Xn=32,qn=32,fr=mn,cr=Qn,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:yn,crypto_box_beforenm:kn,crypto_box_afternm:vn,crypto_box:gn,crypto_box_open:Ln,crypto_box_keypair:jn,crypto_hash:Sn,crypto_sign:yt,crypto_sign_keypair:Tn,crypto_sign_open:sn,crypto_secretbox_KEYBYTES:ln,crypto_secretbox_NONCEBYTES:mn,crypto_secretbox_ZEROBYTES:Qn,crypto_secretbox_BOXZEROBYTES:Rn,crypto_scalarmult_BYTES:Jn,crypto_scalarmult_SCALARBYTES:Nn,crypto_box_PUBLICKEYBYTES:ar,crypto_box_SECRETKEYBYTES:Xn,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:Kt,pack25519:nn,unpack25519:fn,M:_n,A:In,S:Bn,Z:On,pow2523:dn,add:Zn,set25519:Bt,modL:bt,scalarmult:Fn,scalarbase:zn};function Ur(St,Dt){if(St.length!==ln)throw new Error("bad key size");if(Dt.length!==mn)throw new Error("bad nonce size")}function Qr(St,Dt){if(St.length!==ar)throw new Error("bad public key size");if(Dt.length!==Xn)throw new Error("bad secret key size")}function Zr(){for(var St=0;St=0},_.sign.keyPair=function(){var St=new Uint8Array(kr),Dt=new Uint8Array(Tr);return Tn(St,Dt),{publicKey:St,secretKey:Dt}},_.sign.keyPair.fromSecretKey=function(St){if(Zr(St),St.length!==Tr)throw new Error("bad secret key size");for(var Dt=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)=>__awaiter(this,void 0,void 0,function*(){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};yield b((...nt)=>{clearTimeout(tt),$(...nt)},()=>{clearTimeout(tt),et()},rt)}))}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)throw _.close(),new TonConnectError("Bridge error, failed to connect");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=>{var $;return this.pendingGateways.some(et=>et===k)?k.registerSession({openingDeadlineMS:($=d==null?void 0:d.openingDeadlineMS)!==null&&$!==void 0?$:this.defaultOpeningDeadlineMS,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=>isJSBridgeWithMetadata(k)).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.ton.space/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://static.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://raw.githubusercontent.com/delab-team/manifests-images/main/WalletAvatar.png",about_url:"https://delabwallet.com",universal_url:"https://t.me/dewallet?attach=wallet",bridge:[{type:"sse",url:"https://sse-bridge.delab.team/bridge"}],platforms:["ios","android"]},{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"]},{app_name:"bitgetTonWallet",name:"Bitget Wallet",image:"https://raw.githubusercontent.com/bitkeepwallet/download/main/logo/png/bitget_wallet_logo_0_gas_fee.png",about_url:"https://web3.bitget.com",deepLink:"bitkeep://",bridge:[{type:"js",key:"bitgetTonWallet"},{type:"sse",url:"https://bridge.tonapi.io/bridge"}],platforms:["ios","android","chrome"],universal_url:"https://bkcode.vip/ton-connect"},{app_name:"safepalwallet",name:"SafePal",image:"https://s.pvcliping.com/web/public_image/SafePal_x288.png",tondns:"",about_url:"https://www.safepal.com",universal_url:"https://link.safepal.io/ton-connect",deepLink:"safepal-tc://",bridge:[{type:"sse",url:"https://ton-bridge.safepal.com/tonbridge/v1/bridge"},{type:"js",key:"safepalwallet"}],platforms:["ios","android","chrome","firefox"]},{app_name:"okxTonWallet",name:"OKX Wallet",image:"https://static.okx.com/cdn/assets/imgs/247/58E63FEA47A2B7D7.png",about_url:"https://www.okx.com/web3",universal_url:"https://www.okx.com/download?appendQuery=true&deeplink=okx://web3/wallet/tonconnect",bridge:[{type:"js",key:"okxTonWallet"},{type:"sse",url:"https://www.okx.com/tonbridge/discover/rpc/bridge"}],platforms:["chrome","safari","firefox","ios","android"]},{app_name:"okxTonWalletTr",name:"OKX TR Wallet",image:"https://static.okx.com/cdn/assets/imgs/247/587A8296F0BB640F.png",about_url:"https://tr.okx.com/web3",universal_url:"https://tr.okx.com/download?appendQuery=true&deeplink=okxtr://web3/wallet/tonconnect",bridge:[{type:"js",key:"okxTonWallet"},{type:"sse",url:"https://www.okx.com/tonbridge/discover/rpc/bridge"}],platforms:["chrome","safari","firefox","ios","android"]}];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(),_.push({app_name:"hpyTonWallet",name:"HyperPay Wallet",image:"https://onchain-oss.hyperpay.online/images/logo.png",about_url:"https://www.hyperpay.tech",universal_url:"https://www.hyperpay.tech/download&deeplink=hyperpay://web3/wallet/tonconnect",bridge:[{type:"js",key:"hpyTonWallet"},{type:"sse",url:"https://onchain-wallet.hyperpay.online/bridge"}],platforms:["ios","android","windows","macos","linux"]}),_.push({app_name:"nicegramWallet",name:"Nicegram Wallet",image:"https://static.nicegram.app/icon.png",about_url:"https://nicegram.app",universal_url:"https://nicegram.app/tc",deepLink:"nicegram-tc://",bridge:[{type:"sse",url:"https://tc.nicegram.app/bridge"},{type:"js",key:"nicegramWallet"}],platforms:["ios","android","macos","windows","linux"]}),_.push({app_name:"foxwallet",name:"FoxWallet",image:"https://hc.foxwallet.com/img/logo.png",about_url:"https://foxwallet.com/",bridge:[{type:"js",key:"foxwallet"}],platforms:["ios","android","macos","windows","linux"]}),_.push({app_name:"trustwalletTon",name:"Trust",image:"https://assets-cdn.trustwallet.com/dapps/trust.logo.png",about_url:"https://trustwallet.com/about-us",deepLink:"trust://ton-connect",universal_url:"https://trustwallet.com",bridge:[{type:"js",key:"trustwalletTon"},{type:"sse",url:"https://tonconnect.trustwallet.com/bridge"}],platforms:["chrome","ios","android"]}),!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.5";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};j.signal.addEventListener("abort",rt);const nt=callForSuccess(at=>__awaiter(this,void 0,void 0,function*(){yield tt==null?void 0:tt.restoreConnection({openingDeadlineMS:_==null?void 0:_.openingDeadlineMS,signal:at.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:2e3,signal:_==null?void 0:_.signal}),ot=new Promise(at=>setTimeout(()=>at(),12e3));return Promise.race([nt,ot])})}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?ln.length===2?typeof ln[1]==tt?this[ln[0]]=ln[1].call(this,Qn):this[ln[0]]=ln[1]:ln.length===3?typeof ln[1]===tt&&!(ln[1].exec&&ln[1].test)?this[ln[0]]=Qn?ln[1].call(this,Qn,ln[2]):k:this[ln[0]]=Qn?Qn.replace(ln[1],ln[2]):k:ln.length===4&&(this[ln[0]]=Qn?ln[3].call(this,Qn.replace(ln[1],ln[2])):k):this[ln]=Qn||k;pt+=2}},Sn=function(Kt,bt){for(var pt in bt)if(typeof bt[pt]===nt&&bt[pt].length>0){for(var yt=0;yt2&&(mn[it]="iPad",mn[ut]=st),mn},this.getEngine=function(){var mn={};return mn[dt]=k,mn[ft]=k,Un.call(mn,yt,sn.engine),mn},this.getOS=function(){var mn={};return mn[dt]=k,mn[ft]=k,Un.call(mn,yt,sn.os),ln&&!mn[dt]&&Ut&&Ut.platform&&Ut.platform!="Unknown"&&(mn[dt]=Ut.platform.replace(/chrome os/i,An).replace(/macos/i,yn)),mn},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 yt},this.setUA=function(mn){return yt=typeof mn===ot&&mn.length>Mt?Dn(mn,Mt):mn,this},this.setUA(yt),this};Fn.VERSION=j,Fn.BROWSER=vn([dt,ft,at]),Fn.CPU=vn([lt]),Fn.DEVICE=vn([it,ht,ut,ct,gt,Ct,st,xt,wt]),Fn.ENGINE=Fn.OS=vn([dt,ft]),b.exports&&(_=b.exports=Fn),_.UAParser=Fn;var zn=typeof d!==rt&&(d.jQuery||d.Zepto);if(zn&&!zn.ua){var Tn=new Fn;zn.ua=Tn.getResult(),zn.ua.get=function(){return Tn.getUA()},zn.ua.set=function(Kt){Tn.setUA(Kt);var bt=Tn.getResult();for(var pt in bt)zn.ua[pt]=bt[pt]}}})(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)=>__awaiter(this,void 0,void 0,function*(){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};yield b((...nt)=>{clearTimeout(tt),$(...nt)},()=>{clearTimeout(tt),et()},rt)}))}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)throw _.close(),new TonConnectError("Bridge error, failed to connect");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=>{var $;return this.pendingGateways.some(et=>et===k)?k.registerSession({openingDeadlineMS:($=d==null?void 0:d.openingDeadlineMS)!==null&&$!==void 0?$:this.defaultOpeningDeadlineMS,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=>isJSBridgeWithMetadata(k)).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.ton.space/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://static.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://raw.githubusercontent.com/delab-team/manifests-images/main/WalletAvatar.png",about_url:"https://delabwallet.com",universal_url:"https://t.me/dewallet?attach=wallet",bridge:[{type:"sse",url:"https://sse-bridge.delab.team/bridge"}],platforms:["ios","android"]},{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"]},{app_name:"bitgetTonWallet",name:"Bitget Wallet",image:"https://raw.githubusercontent.com/bitkeepwallet/download/main/logo/png/bitget_wallet_logo_0_gas_fee.png",about_url:"https://web3.bitget.com",deepLink:"bitkeep://",bridge:[{type:"js",key:"bitgetTonWallet"},{type:"sse",url:"https://bridge.tonapi.io/bridge"}],platforms:["ios","android","chrome"],universal_url:"https://bkcode.vip/ton-connect"},{app_name:"safepalwallet",name:"SafePal",image:"https://s.pvcliping.com/web/public_image/SafePal_x288.png",tondns:"",about_url:"https://www.safepal.com",universal_url:"https://link.safepal.io/ton-connect",deepLink:"safepal-tc://",bridge:[{type:"sse",url:"https://ton-bridge.safepal.com/tonbridge/v1/bridge"},{type:"js",key:"safepalwallet"}],platforms:["ios","android","chrome","firefox"]},{app_name:"okxTonWallet",name:"OKX Wallet",image:"https://static.okx.com/cdn/assets/imgs/247/58E63FEA47A2B7D7.png",about_url:"https://www.okx.com/web3",universal_url:"https://www.okx.com/download?appendQuery=true&deeplink=okx://web3/wallet/tonconnect",bridge:[{type:"js",key:"okxTonWallet"},{type:"sse",url:"https://www.okx.com/tonbridge/discover/rpc/bridge"}],platforms:["chrome","safari","firefox","ios","android"]},{app_name:"okxTonWalletTr",name:"OKX TR Wallet",image:"https://static.okx.com/cdn/assets/imgs/247/587A8296F0BB640F.png",about_url:"https://tr.okx.com/web3",universal_url:"https://tr.okx.com/download?appendQuery=true&deeplink=okxtr://web3/wallet/tonconnect",bridge:[{type:"js",key:"okxTonWallet"},{type:"sse",url:"https://www.okx.com/tonbridge/discover/rpc/bridge"}],platforms:["chrome","safari","firefox","ios","android"]}];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(),_.push({app_name:"hpyTonWallet",name:"HyperPay Wallet",image:"https://onchain-oss.hyperpay.online/images/logo.png",about_url:"https://www.hyperpay.tech",universal_url:"https://www.hyperpay.tech/download&deeplink=hyperpay://web3/wallet/tonconnect",bridge:[{type:"js",key:"hpyTonWallet"},{type:"sse",url:"https://onchain-wallet.hyperpay.online/bridge"}],platforms:["ios","android","windows","macos","linux"]}),_.push({app_name:"nicegramWallet",name:"Nicegram Wallet",image:"https://static.nicegram.app/icon.png",about_url:"https://nicegram.app",universal_url:"https://nicegram.app/tc",deepLink:"nicegram-tc://",bridge:[{type:"sse",url:"https://tc.nicegram.app/bridge"},{type:"js",key:"nicegramWallet"}],platforms:["ios","android","macos","windows","linux"]}),_.push({app_name:"foxwallet",name:"FoxWallet",image:"https://hc.foxwallet.com/img/logo.png",about_url:"https://foxwallet.com/",bridge:[{type:"js",key:"foxwallet"}],platforms:["ios","android","macos","windows","linux"]}),_.push({app_name:"trustwalletTon",name:"Trust",image:"https://assets-cdn.trustwallet.com/dapps/trust.logo.png",about_url:"https://trustwallet.com/about-us",deepLink:"trust://ton-connect",universal_url:"https://trustwallet.com",bridge:[{type:"js",key:"trustwalletTon"},{type:"sse",url:"https://tonconnect.trustwallet.com/bridge"}],platforms:["chrome","ios","android"]}),_.push({app_name:"jambo",name:"Jambo",image:"https://cdn-prod.jambotechnology.xyz/content/jambo_288x288_02da416a6c.png",about_url:"https://www.jambo.technology/",deepLink:"jambotc://",universal_url:"https://jambophone.xyz/",bridge:[{type:"js",key:"jambowallet"},{type:"sse",url:"https://bridge.tonapi.io/bridge"}],platforms:["android"]}),!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.5";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};j.signal.addEventListener("abort",rt);const nt=callForSuccess(at=>__awaiter(this,void 0,void 0,function*(){yield tt==null?void 0:tt.restoreConnection({openingDeadlineMS:_==null?void 0:_.openingDeadlineMS,signal:at.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:2e3,signal:_==null?void 0:_.signal}),ot=new Promise(at=>setTimeout(()=>at(),12e3));return Promise.race([nt,ot])})}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?ln.length===2?typeof ln[1]==tt?this[ln[0]]=ln[1].call(this,Qn):this[ln[0]]=ln[1]:ln.length===3?typeof ln[1]===tt&&!(ln[1].exec&&ln[1].test)?this[ln[0]]=Qn?ln[1].call(this,Qn,ln[2]):k:this[ln[0]]=Qn?Qn.replace(ln[1],ln[2]):k:ln.length===4&&(this[ln[0]]=Qn?ln[3].call(this,Qn.replace(ln[1],ln[2])):k):this[ln]=Qn||k;pt+=2}},Sn=function(Kt,bt){for(var pt in bt)if(typeof bt[pt]===nt&&bt[pt].length>0){for(var yt=0;yt2&&(mn[it]="iPad",mn[ut]=st),mn},this.getEngine=function(){var mn={};return mn[dt]=k,mn[ft]=k,Un.call(mn,yt,sn.engine),mn},this.getOS=function(){var mn={};return mn[dt]=k,mn[ft]=k,Un.call(mn,yt,sn.os),ln&&!mn[dt]&&Ut&&Ut.platform&&Ut.platform!="Unknown"&&(mn[dt]=Ut.platform.replace(/chrome os/i,An).replace(/macos/i,yn)),mn},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 yt},this.setUA=function(mn){return yt=typeof mn===ot&&mn.length>Mt?Dn(mn,Mt):mn,this},this.setUA(yt),this};Fn.VERSION=j,Fn.BROWSER=vn([dt,ft,at]),Fn.CPU=vn([lt]),Fn.DEVICE=vn([it,ht,ut,ct,gt,Ct,st,xt,wt]),Fn.ENGINE=Fn.OS=vn([dt,ft]),b.exports&&(_=b.exports=Fn),_.UAParser=Fn;var zn=typeof d!==rt&&(d.jQuery||d.Zepto);if(zn&&!zn.ua){var Tn=new Fn;zn.ua=Tn.getResult(),zn.ua.get=function(){return Tn.getUA()},zn.ua.set=function(Kt){Tn.setUA(Kt);var bt=Tn.getResult();for(var pt in bt)zn.ua[pt]=bt[pt]}}})(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,jt=[],Lt={},Bt=function(dn,An){At=kt*4+17,Tt=function(yn){for(var On=new Array(yn),kn=0;kn=7&&Vt(dn),Et==null&&(Et=_n(kt,_t,jt)),In(Et,An)},Zt=function(dn,An){for(var yn=-1;yn<=7;yn+=1)if(!(dn+yn<=-1||At<=dn+yn))for(var On=-1;On<=7;On+=1)An+On<=-1||At<=An+On||(0<=yn&&yn<=6&&(On==0||On==6)||0<=On&&On<=6&&(yn==0||yn==6)||2<=yn&&yn<=4&&2<=On&&On<=4?Tt[dn+yn][An+On]=!0:Tt[dn+yn][An+On]=!1)},rn=function(){for(var dn=0,An=0,yn=0;yn<8;yn+=1){Bt(!0,yn);var On=tt.getLostPoint(Lt);(yn==0||dn>On)&&(dn=On,An=yn)}return An},nn=function(){for(var dn=8;dn>yn&1)==1;Tt[Math.floor(yn/3)][yn%3+At-8-3]=On}for(var yn=0;yn<18;yn+=1){var On=!dn&&(An>>yn&1)==1;Tt[yn%3+At-8-3][Math.floor(yn/3)]=On}},fn=function(dn,An){for(var yn=_t<<3|An,On=tt.getBCHTypeInfo(yn),kn=0;kn<15;kn+=1){var vn=!dn&&(On>>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&&(On>>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 yn=-1,On=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[On][gn-Ln]==null){var Dn=!1;vn>>kn&1)==1);var Un=En(On,gn-Ln);Un&&(Dn=!Dn),Tt[On][gn-Ln]=Dn,kn-=1,kn==-1&&(vn+=1,kn=7)}if(On+=yn,On<0||At<=On){On-=yn,yn=-yn;break}}},jn=function(dn,An){for(var yn=0,On=0,kn=0,vn=new Array(An.length),En=new Array(An.length),gn=0;gn=0?wn.getAt(Wn):0}}for(var Fn=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 jn(kn,On)};Lt.addData=function(dn,An){An=An||"Byte";var yn=null;switch(An){case"Numeric":yn=it(dn);break;case"Alphanumeric":yn=dt(dn);break;case"Byte":yn=ut(dn);break;case"Kanji":yn=ht(dn);break;default:throw"mode:"+An}jt.push(yn),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),yn=at(),On=0;On"u"?dn*4:An;var yn="";yn+='";for(var kn=0;kn';yn+=""}return yn+="",yn+="
    ",yn},Lt.createSvgTag=function(dn,An,yn,On){var kn={};typeof arguments[0]=="object"&&(kn=arguments[0],dn=kn.cellSize,An=kn.margin,yn=kn.alt,On=kn.title),dn=dn||2,An=typeof An>"u"?dn*4:An,yn=typeof yn=="string"?{text:yn}:yn||{},yn.text=yn.text||null,yn.id=yn.text?yn.id||"qrcode-description":null,On=typeof On=="string"?{text:On}:On||{},On.text=On.text||null,On.id=On.text?On.id||"qrcode-title":null;var vn=Lt.getModuleCount()*dn+An*2,En,gn,Ln,Dn,Un="",Sn;for(Sn="l"+dn+",0 0,"+dn+" -"+dn+",0 0,-"+dn+"z ",Un+=''+Bn(On.text)+"":"",Un+=yn.text?''+Bn(yn.text)+"":"",Un+='',Un+='"u"?dn*4:An;var yn=Lt.getModuleCount()*dn+An*2,On=An,kn=yn-An;return st(yn,yn,function(vn,En){if(On<=vn&&vn"u"?dn*4:An;var On=Lt.getModuleCount()*dn+An*2,kn="";return kn+="",kn};var Bn=function(dn){for(var An="",yn=0;yn":An+=">";break;case"&":An+="&";break;case'"':An+=""";break;default:An+=On;break}}return An},Yn=function(dn){var An=1;dn=typeof dn>"u"?An*2:dn;var yn=Lt.getModuleCount()*An+dn*2,On=dn,kn=yn-dn,vn,En,gn,Ln,Dn,Un={"██":"█","█ ":"▀"," █":"▄"," ":" "},Sn={"██":"▀","█ ":"▀"," █":" "," ":" "},Zn="";for(vn=0;vn=kn?Sn[Dn]:Un[Dn];Zn+=` -`}return yn%2&&dn>0?Zn.substring(0,Zn.length-yn-1)+Array(yn+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 yn=Lt.getModuleCount()*dn+An*2,On=An,kn=yn-An,vn,En,gn,Ln,Dn=Array(dn+1).join("██"),Un=Array(dn+1).join(" "),Sn="",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 jt=0;jt=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=[],jt=0;jt>>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(jt,Lt,Bt){kt[Lt*wt+jt]=Bt},_t.write=function(jt){jt.writeString("GIF87a"),jt.writeShort(wt),jt.writeShort(Mt),jt.writeByte(128),jt.writeByte(0),jt.writeByte(0),jt.writeByte(0),jt.writeByte(0),jt.writeByte(0),jt.writeByte(255),jt.writeByte(255),jt.writeByte(255),jt.writeString(","),jt.writeShort(0),jt.writeShort(0),jt.writeShort(wt),jt.writeShort(Mt),jt.writeByte(0);var Lt=2,Bt=At(Lt);jt.writeByte(Lt);for(var Zt=0;Bt.length-Zt>255;)jt.writeByte(255),jt.writeBytes(Bt,Zt,255),Zt+=255;jt.writeByte(Bt.length-Zt),jt.writeBytes(Bt,Zt,Bt.length-Zt),jt.writeByte(0),jt.writeString(";")};var Tt=function(jt){var Lt=jt,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(jt){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(yn){for(var jn=new Array(yn),kn=0;kn=7&&Vt(dn),Et==null&&(Et=_n(kt,_t,Ot)),In(Et,An)},Zt=function(dn,An){for(var yn=-1;yn<=7;yn+=1)if(!(dn+yn<=-1||At<=dn+yn))for(var jn=-1;jn<=7;jn+=1)An+jn<=-1||At<=An+jn||(0<=yn&&yn<=6&&(jn==0||jn==6)||0<=jn&&jn<=6&&(yn==0||yn==6)||2<=yn&&yn<=4&&2<=jn&&jn<=4?Tt[dn+yn][An+jn]=!0:Tt[dn+yn][An+jn]=!1)},rn=function(){for(var dn=0,An=0,yn=0;yn<8;yn+=1){Bt(!0,yn);var jn=tt.getLostPoint(Lt);(yn==0||dn>jn)&&(dn=jn,An=yn)}return An},nn=function(){for(var dn=8;dn>yn&1)==1;Tt[Math.floor(yn/3)][yn%3+At-8-3]=jn}for(var yn=0;yn<18;yn+=1){var jn=!dn&&(An>>yn&1)==1;Tt[yn%3+At-8-3][Math.floor(yn/3)]=jn}},fn=function(dn,An){for(var yn=_t<<3|An,jn=tt.getBCHTypeInfo(yn),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 yn=-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 Dn=!1;vn>>kn&1)==1);var Un=En(jn,gn-Ln);Un&&(Dn=!Dn),Tt[jn][gn-Ln]=Dn,kn-=1,kn==-1&&(vn+=1,kn=7)}if(jn+=yn,jn<0||At<=jn){jn-=yn,yn=-yn;break}}},On=function(dn,An){for(var yn=0,jn=0,kn=0,vn=new Array(An.length),En=new Array(An.length),gn=0;gn=0?wn.getAt(Wn):0}}for(var Fn=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 yn=null;switch(An){case"Numeric":yn=it(dn);break;case"Alphanumeric":yn=dt(dn);break;case"Byte":yn=ut(dn);break;case"Kanji":yn=ht(dn);break;default:throw"mode:"+An}Ot.push(yn),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),yn=at(),jn=0;jn"u"?dn*4:An;var yn="";yn+='";for(var kn=0;kn';yn+=""}return yn+="",yn+="
    ",yn},Lt.createSvgTag=function(dn,An,yn,jn){var kn={};typeof arguments[0]=="object"&&(kn=arguments[0],dn=kn.cellSize,An=kn.margin,yn=kn.alt,jn=kn.title),dn=dn||2,An=typeof An>"u"?dn*4:An,yn=typeof yn=="string"?{text:yn}:yn||{},yn.text=yn.text||null,yn.id=yn.text?yn.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,Dn,Un="",Sn;for(Sn="l"+dn+",0 0,"+dn+" -"+dn+",0 0,-"+dn+"z ",Un+=''+Bn(jn.text)+"":"",Un+=yn.text?''+Bn(yn.text)+"":"",Un+='',Un+='"u"?dn*4:An;var yn=Lt.getModuleCount()*dn+An*2,jn=An,kn=yn-An;return st(yn,yn,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="",yn=0;yn":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 yn=Lt.getModuleCount()*An+dn*2,jn=dn,kn=yn-dn,vn,En,gn,Ln,Dn,Un={"██":"█","█ ":"▀"," █":"▄"," ":" "},Sn={"██":"▀","█ ":"▀"," █":" "," ":" "},Zn="";for(vn=0;vn=kn?Sn[Dn]:Un[Dn];Zn+=` +`}return yn%2&&dn>0?Zn.substring(0,Zn.length-yn-1)+Array(yn+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 yn=Lt.getModuleCount()*dn+An*2,jn=An,kn=yn-An,vn,En,gn,Ln,Dn=Array(dn+1).join("██"),Un=Array(dn+1).join(" "),Sn="",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,9 +1459,9 @@ 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,jt,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,jt)}return new Tt(Et,jt,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],jt=Tt[2];return[(_t=At,_t<.25?1:_t<.5?.9-_t:1.1-_t),Et,jt]},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,jt){return Et[jt]=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]:{},jt=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(jt,rn);nn&&(jt=(0,tt.default)({},nn,jt));var Qt=ct.reduce(function(jn,_n){return jn[_n]=jt[_n]||Bt[_n],jn},{}),Vt=(0,nt.default)(jt).reduce(function(jn,_n){return ct.indexOf(_n)===-1&&(jn[_n]=jt[_n]),jn},{}),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],jt=At[1];kt=(_t||{})[Et]||at[Et],jt==="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),jt=$(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"),jn=ft("toPrimitive"),_n={}.propertyIsEnumerable,Bn=dt("symbol-registry"),Yn=dt("symbols"),dn=dt("op-symbols"),An=Object.prototype,yn=typeof Qt=="function"&&!!jt.f,On=et.QObject,kn=!On||!On.prototype||!On.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=yn&&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)},Dn=function(bt,pt){Ct(bt);for(var yt,Ut=gt(pt=Mt(pt)),sn=0,ln=Ut.length;ln>sn;)Ln(bt,yt=Ut[sn++],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)},Sn=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=[],sn=0;yt.length>sn;)tt(Yn,pt=yt[sn++])||pt==In||pt==at||Ut.push(pt);return Ut},wn=function(bt){for(var pt,yt=bt===An,Ut=nn(yt?dn:Mt(bt)),sn=[],ln=0;Ut.length>ln;)!tt(Yn,pt=Ut[ln++])||yt&&!tt(An,pt)||sn.push(Yn[pt]);return sn};yn||(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=Sn,Lt.f=Ln,$(41).f=At.f=Zn,$(19).f=Un,jt.f=wn,rt&&!$(14)&&ot(An,"propertyIsEnumerable",Un,!0),lt.f=function(bt){return En(ft(bt))}),nt(nt.G+nt.W+nt.F*!yn,{Symbol:Qt});for(var Wn="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Fn=0;Wn.length>Fn;)ft(Wn[Fn++]);for(var zn=Bt(ft.store),Tn=0;zn.length>Tn;)ct(zn[Tn++]);nt(nt.S+nt.F*!yn,"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*!yn,"Object",{create:function(bt,pt){return pt===void 0?Tt(bt):Dn(Tt(bt),pt)},defineProperty:Ln,defineProperties:Dn,getOwnPropertyDescriptor:Sn,getOwnPropertyNames:Zn,getOwnPropertySymbols:wn});var Kt=it(function(){jt.f(1)});nt(nt.S+nt.F*Kt,"Object",{getOwnPropertySymbols:function(bt){return jt.f(wt(bt))}}),Vt&&nt(nt.S+nt.F*(!yn||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],sn=1;arguments.length>sn;)Ut.push(arguments[sn++]);if(yt=pt=Ut[1],(xt(pt)||bt!==void 0)&&!gn(bt))return st(pt)||(pt=function(ln,mn){if(typeof yt=="function"&&(mn=yt.call(this,ln,mn)),!gn(mn))return mn}),Ut[1]=pt,fn.apply(Vt,Ut)}}),Qt.prototype[jn]||$(6)(Qt.prototype,jn,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(Tn,Kt,bt){switch(bt.length){case 0:return Tn.call(Kt);case 1:return Tn.call(Kt,bt[0]);case 2:return Tn.call(Kt,bt[0],bt[1]);case 3:return Tn.call(Kt,bt[0],bt[1],bt[2])}return Tn.apply(Kt,bt)}function xt(Tn,Kt){return!!(Tn&&Tn.length)&&function(bt,pt,yt){if(pt!=pt)return function(ln,mn,Qn,Rn){for(var Jn=ln.length,Nn=Qn+(Rn?1:-1);Rn?Nn--:++Nn-1}function wt(Tn){return Tn!=Tn}function Mt(Tn,Kt){for(var bt=Tn.length,pt=0;bt--;)Tn[bt]===Kt&&pt++;return pt}function kt(Tn,Kt){for(var bt=-1,pt=Tn.length,yt=0,Ut=[];++bt2?Tt:void 0);function _n(Tn){return Wn(Tn)?Vt(Tn):{}}function Bn(Tn){return!(!Wn(Tn)||function(Kt){return!!Bt&&Bt in Kt}(Tn))&&(function(Kt){var bt=Wn(Kt)?nn.call(Kt):"";return bt=="[object Function]"||bt=="[object GeneratorFunction]"}(Tn)||function(Kt){var bt=!1;if(Kt!=null&&typeof Kt.toString!="function")try{bt=!!(Kt+"")}catch{}return bt}(Tn)?Qt:ut).test(function(Kt){if(Kt!=null){try{return Zt.call(Kt)}catch{}try{return Kt+""}catch{}}return""}(Tn))}function Yn(Tn,Kt,bt,pt){for(var yt=-1,Ut=Tn.length,sn=bt.length,ln=-1,mn=Kt.length,Qn=fn(Ut-sn,0),Rn=Array(mn+Qn),Jn=!pt;++ln1&&pr.reverse(),Rn&&mn1?"& ":"")+Kt[pt],Kt=Kt.join(bt>2?", ":" "),Tn.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,yn=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=yn&&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)},Dn=function(bt,pt){Ct(bt);for(var yt,Ut=gt(pt=Mt(pt)),sn=0,ln=Ut.length;ln>sn;)Ln(bt,yt=Ut[sn++],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)},Sn=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=[],sn=0;yt.length>sn;)tt(Yn,pt=yt[sn++])||pt==In||pt==at||Ut.push(pt);return Ut},wn=function(bt){for(var pt,yt=bt===An,Ut=nn(yt?dn:Mt(bt)),sn=[],ln=0;Ut.length>ln;)!tt(Yn,pt=Ut[ln++])||yt&&!tt(An,pt)||sn.push(Yn[pt]);return sn};yn||(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=Sn,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*!yn,{Symbol:Qt});for(var Wn="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Fn=0;Wn.length>Fn;)ft(Wn[Fn++]);for(var zn=Bt(ft.store),Tn=0;zn.length>Tn;)ct(zn[Tn++]);nt(nt.S+nt.F*!yn,"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*!yn,"Object",{create:function(bt,pt){return pt===void 0?Tt(bt):Dn(Tt(bt),pt)},defineProperty:Ln,defineProperties:Dn,getOwnPropertyDescriptor:Sn,getOwnPropertyNames:Zn,getOwnPropertySymbols:wn});var Kt=it(function(){Ot.f(1)});nt(nt.S+nt.F*Kt,"Object",{getOwnPropertySymbols:function(bt){return Ot.f(wt(bt))}}),Vt&&nt(nt.S+nt.F*(!yn||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],sn=1;arguments.length>sn;)Ut.push(arguments[sn++]);if(yt=pt=Ut[1],(xt(pt)||bt!==void 0)&&!gn(bt))return st(pt)||(pt=function(ln,mn){if(typeof yt=="function"&&(mn=yt.call(this,ln,mn)),!gn(mn))return mn}),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(Tn,Kt,bt){switch(bt.length){case 0:return Tn.call(Kt);case 1:return Tn.call(Kt,bt[0]);case 2:return Tn.call(Kt,bt[0],bt[1]);case 3:return Tn.call(Kt,bt[0],bt[1],bt[2])}return Tn.apply(Kt,bt)}function xt(Tn,Kt){return!!(Tn&&Tn.length)&&function(bt,pt,yt){if(pt!=pt)return function(ln,mn,Qn,Rn){for(var Jn=ln.length,Nn=Qn+(Rn?1:-1);Rn?Nn--:++Nn-1}function wt(Tn){return Tn!=Tn}function Mt(Tn,Kt){for(var bt=Tn.length,pt=0;bt--;)Tn[bt]===Kt&&pt++;return pt}function kt(Tn,Kt){for(var bt=-1,pt=Tn.length,yt=0,Ut=[];++bt2?Tt:void 0);function _n(Tn){return Wn(Tn)?Vt(Tn):{}}function Bn(Tn){return!(!Wn(Tn)||function(Kt){return!!Bt&&Bt in Kt}(Tn))&&(function(Kt){var bt=Wn(Kt)?nn.call(Kt):"";return bt=="[object Function]"||bt=="[object GeneratorFunction]"}(Tn)||function(Kt){var bt=!1;if(Kt!=null&&typeof Kt.toString!="function")try{bt=!!(Kt+"")}catch{}return bt}(Tn)?Qt:ut).test(function(Kt){if(Kt!=null){try{return Zt.call(Kt)}catch{}try{return Kt+""}catch{}}return""}(Tn))}function Yn(Tn,Kt,bt,pt){for(var yt=-1,Ut=Tn.length,sn=bt.length,ln=-1,mn=Kt.length,Qn=fn(Ut-sn,0),Rn=Array(mn+Qn),Jn=!pt;++ln1&&pr.reverse(),Rn&&mn1?"& ":"")+Kt[pt],Kt=Kt.join(bt>2?", ":" "),Tn.replace(nt,`{ /* [wrapped with `+Kt+`] */ -`)}function Dn(Tn,Kt){return!!(Kt=Kt??9007199254740991)&&(typeof Tn=="number"||ft.test(Tn))&&Tn>-1&&Tn%1==0&&Tn1&&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 jt=function(Lt){var Bt=typeof Lt;return!!Lt&&(Bt=="object"||Bt=="function")}(Et)?ut.call(Et):"";return jt=="[object Function]"||jt=="[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,jt,Lt,Bt,Zt){var rn=-1,nn=Et.length;for(Lt||(Lt=gt),Zt||(Zt=[]);++rn0&&Lt(Qt)?jt>1?At(Qt,jt-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. +`)}function Dn(Tn,Kt){return!!(Kt=Kt??9007199254740991)&&(typeof Tn=="number"||ft.test(Tn))&&Tn>-1&&Tn%1==0&&Tn1&&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:"")+(Wt!==null?` @@ -1469,6 +1469,6 @@ PERFORMANCE OF THIS SOFTWARE. `+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 er=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:Gn;tn.call(this,Gt,xn,er)}}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={},er=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"},jt=$(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(jt.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 jn(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),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]=or[mr]);return Hn}(It,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),Gn,er=xn.value!==void 0,tr=Object(gt.useRef)(null),ir=Zn(tr,Nt),Kn=Object(gt.useRef)(0),rr=Object(gt.useRef)(),ur=function(){var or=tr.current,yr=Rt&&rr.current?rr.current:function(hr){var lr=window.getComputedStyle(hr);if(lr===null)return null;var sr,dr=(sr=lr,Tn.reduce(function(Mr,Or){return Mr[Or]=sr[Or],Mr},{})),Ar=dr.boxSizing;return Ar===""?null:(Kt&&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)})}(or);if(yr){rr.current=yr;var mr=function(hr,lr,sr,dr){sr===void 0&&(sr=1),dr===void 0&&(dr=1/0),Fn||((Fn=document.createElement("textarea")).setAttribute("tab-index","-1"),Fn.setAttribute("aria-hidden","true"),Wn(Fn)),Fn.parentNode===null&&document.body.appendChild(Fn);var Ar=hr.paddingSize,Mr=hr.borderSize,Or=hr.sizingStyle,Ir=Or.boxSizing;Object.keys(Or).forEach(function(Pr){var $r=Pr;Fn.style[$r]=Or[$r]}),Wn(Fn),Fn.value=lr;var pn=function(Pr,$r){var Wr=Pr.scrollHeight;return $r.sizingStyle.boxSizing==="border-box"?Wr+$r.borderSize:Wr-$r.paddingSize}(Fn,hr);Fn.value="x";var Lr=Fn.scrollHeight-Ar,Fr=Lr*sr;Ir==="border-box"&&(Fr=Fr+Ar+Mr),pn=Math.max(Fr,pn);var Dr=Lr*dr;return Ir==="border-box"&&(Dr=Dr+Ar+Mr),[pn=Math.min(Dr,pn),Lr]}(yr,or.value||or.placeholder||"x",Pt,Wt),Pn=mr[0],Hn=mr[1];Kn.current!==Pn&&(Kn.current=Pn,or.style.setProperty("height",Pn+"px","important"),Gt(Pn,{rowHeight:Hn}))}};return Object(gt.useLayoutEffect)(ur),Gn=Un(ur),Object(gt.useLayoutEffect)(function(){var or=function(yr){Gn.current(yr)};return window.addEventListener("resize",or),function(){window.removeEventListener("resize",or)}},[]),Object(gt.createElement)("textarea",Ln({},xn,{onChange:function(or){er||ur(),un(or)},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 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,2M7,13H17V11H7"})))}}]),Rt}(st.a.PureComponent),ln=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),mn=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),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"]),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),Jn=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),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,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),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",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(Nn,Object.assign({className:"copy-icon"},Bt(hn,"copy-icon"))),st.a.createElement("span",Bt(hn,"copy-icon-copied"),"✔")):st.a.createElement(Nn,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(On,Gt);case"nan":return st.a.createElement(yn,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,er=Gn.editValue,tr=Gn.parsedInput,ir=er;hn&&tr.type&&(ir=tr.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(On,Gt);case"nan":return st.a.createElement(yn,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,er=Pt.enableClipboard,tr=Pt.onEdit,ir=Pt.onDelete,Kn=Pt.onSelect,rr=Pt.displayArrayKey,ur=Pt.quotesOnKeys,or=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"?rr?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&&tr===!1?null:function(yr){var mr=jn(xn);(yr.ctrlKey||yr.metaKey)&&tr!==!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,or)),er?st.a.createElement(xr,{rowHovered:this.state.hovered,hidden:or,src:hn.value,clickCallback:er,theme:Gt,namespace:[].concat(jn(xn),[hn.name])}):null,tr!==!1&&or==0?this.getEditIcon():null,ir!==!1&&or==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?er:null,namespace:Gn.splice(0,Gn.length-1),existing_value:tr,variable_removed:!1,key_name:null};_t(tr)==="object"?Bn.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:ir,data:rr}):Bn.dispatch({name:"VARIABLE_ADDED",rjvId:ir,data:rt(rt({},rr),{},{new_value:[].concat(jn(tr),[null])})})}})))},Wt.getRemoveObject=function(tn){var Gt=Wt.props,xn=Gt.theme,Gn=(Gt.hover,Gt.namespace),er=Gt.name,tr=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:er,namespace:Gn.splice(0,Gn.length-1),existing_value:tr,variable_removed:!0}})}})))},Wt.render=function(){var tn=Wt.props,Gt=tn.theme,xn=tn.onDelete,Gn=tn.onAdd,er=tn.enableClipboard,tr=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(rr){rr.stopPropagation()}}),Wt.getObjectSize(),er?st.a.createElement(xr,{rowHovered:Kn,clickCallback:er,src:tr,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(Jn,Object.assign({},Bt(Nt,"expanded-icon"),{className:"expanded-icon"}));case"square":return st.a.createElement(mn,Object.assign({},Bt(Nt,"expanded-icon"),{className:"expanded-icon"}));default:return st.a.createElement(sn,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(Qn,Object.assign({},Bt(Nt,"collapsed-icon"),{className:"collapsed-icon"}));default:return st.a.createElement(ln,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,er=(Pt.parent_type,kt(Pt,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),tr=0,ir=5*this.props.indentWidth;xn||(tr=5*this.props.indentWidth);var Kn=un,rr=Math.ceil(hn.length/Kn);return st.a.createElement("div",Object.assign({className:"object-key-val"},Bt(Gt,xn?"jsv-root":"objectKeyVal",{paddingLeft:tr})),st.a.createElement(Br,this.props),st.a.createElement("span",null,st.a.createElement(Tr,Object.assign({size:hn.length},this.props))),jn(Array(rr)).map(function(ur,or){return st.a.createElement("div",Object.assign({key:or,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(or)}}),Wt.getExpandedIcon(or)),Wt.state.expanded[or]?st.a.createElement(St,Object.assign({key:tn+or,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:Kn,index_offset:or*Kn,src:hn.slice(or*Kn,or*Kn+Kn),namespace:Gn,type:"array",parent_type:"array_group",theme:Gt},er)):st.a.createElement("span",Object.assign({},Bt(Gt,"brace"),{onClick:function(yr){Wt.toggleCollapsed(or)},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")),or*Kn," - ",or*Kn+Kn>hn.length?hn.length:or*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,er=xn.parent_type,tr=xn.index_offset,ir=xn.groupArraysAfterLength,Kn=xn.namespace,rr=Pt.state.object_type,ur=[],or=Object.keys(un||{});return Pt.props.sortKeys&&rr!=="array"&&(or=or.sort()),or.forEach(function(yr){if(Gt=new mo(yr,un[yr]),er==="array_group"&&tr&&(Gt.name=parseInt(Gt.name)+tr),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:rr},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:rr},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(er){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,er=kt(Pt,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),tr=this.state,ir=tr.object_type,Kn=tr.expanded,rr={};return xn||tn==="array_group"?tn==="array_group"&&(rr.borderLeft=0,rr.display="inline"):rr.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",rr)),this.getBraceStart(ir,Kn),Kn?this.getObjectContent(hn,un,rt({theme:Gt,iconStyle:Gn},er)):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,Dt=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:"telegram-wallet",name:"Wallet",imageUrl:"https://wallet.tg/images/logo-288.png",aboutUrl:"https://wallet.tg/",universalLink:"https://t.me/wallet?attach=wallet",bridgeUrl:"https://bridge.ton.space/bridge",platforms:["ios","android","macos","windows","linux"]},{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://tc.nicegram.app/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"tokenpocket",name:"TokenPocket",imageUrl:"https://hk.tpstatic.net/logo/tokenpocket.png",aboutUrl:"https://tokenpocket.pro",jsBridgeKey:"tokenpocket",platforms:["ios","android"]},{appName:"dewallet",name:"DeWallet",imageUrl:"https://raw.githubusercontent.com/delab-team/manifests-images/main/WalletAvatar.png",aboutUrl:"https://delabwallet.com",universalLink:"https://t.me/dewallet?attach=wallet",bridgeUrl:"https://bridge.dewallet.pro/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"cdcTonWallet",name:"Crypto.com DeFi Wallet",imageUrl:"https://apro-ncw-api-file.crypto.com/wallet/logo",aboutUrl:"https://crypto.com/defi-wallet",universalLink:"https://wallet.crypto.com/deeplink/ton-connect",deepLink:"dfw://",jsBridgeKey:"cdcTonWallet",bridgeUrl:"https://wallet.crypto.com/sse/tonbridge",platforms:["ios","android","chrome"]},{appName:"tobi",name:"Tobi",imageUrl:"https://app.tobiwallet.app/icons/logo.png",aboutUrl:"https://tobi.fun",universalLink:"https://t.me/TobiCopilotBot?attach=wallet",bridgeUrl:"https://ton-bridge.tobiwallet.app/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"trustwalletTon",name:"Trust",imageUrl:"https://assets-cdn.trustwallet.com/dapps/trust.logo.png",aboutUrl:"https://trustwallet.com/about-us",bridgeUrl:"https://tonconnect.trustwallet.com/bridge",jsBridgeKey:"trustwalletTon",platforms:["chrome","ios","android"]},{appName:"bitgetWalletLite",name:"Bitget Wallet Lite",imageUrl:"https://raw.githubusercontent.com/bitgetwallet/download/main/logo/png/bitget_wallet_lite_logo.png",aboutUrl:"https://web3.bitget.com",universalLink:"https://t.me/BitgetWallet_TGBot?attach=wallet",bridgeUrl:"https://ton-connect-bridge.bgwapi.io/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"onekey",name:"OneKey",imageUrl:"https://common.onekey-asset.com/logo/onekey-x288.png",aboutUrl:"https://onekey.so",jsBridgeKey:"onekeyTonWallet",platforms:["chrome"]},{appName:"tomoWallet",name:"Tomo Wallet",imageUrl:"https://pub.tomo.inc/logo.png",aboutUrl:"https://www.tomo.inc/",universalLink:"https://t.me/tomowalletbot?attach=wallet",bridgeUrl:"https://go-bridge.tomo.inc/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"hpyTonWallet",name:"HyperPay Wallet",imageUrl:"https://onchain-oss.hyperpay.online/images/logo.png",aboutUrl:"https://www.hyperpay.tech",universalLink:"https://www.hyperpay.tech/download&deeplink=hyperpay://web3/wallet/tonconnect",jsBridgeKey:"hpyTonWallet",bridgeUrl:"https://onchain-wallet.hyperpay.online/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"unstoppable",name:"Unstoppable Wallet",imageUrl:"https://unstoppable.money/logo288.png",aboutUrl:"https://unstoppable.money/",universalLink:"https://unstoppable.money/ton-connect",bridgeUrl:"https://bridge.unstoppable.money/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"foxwallet",name:"FoxWallet",imageUrl:"https://hc.foxwallet.com/img/logo.png",aboutUrl:"https://foxwallet.com/",jsBridgeKey:"foxwallet",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(){const b=document.baseURI.replace(/\/$/,"");return new Promise(async _=>{const{worker:d}=await __vitePreload(()=>import("./worker-e2bd57de.js"),[]),k=()=>d.start({onUnhandledRequest:"bypass",quiet:!1,serviceWorker:{url:"/demo-dapp-with-react-ui/mockServiceWorker.js"}});let j=await k();_(j);const $=runSingleInstance(async()=>{var et;try{const rt=(await((et=navigator.serviceWorker)==null?void 0:et.getRegistrations())||[]).length>0,nt=await fetch(`${b}/api/healthz`).then(ot=>ot.status===200?ot.json().then(at=>at.ok).catch(()=>!1):!1).catch(()=>!1);(!rt||!nt)&&(await(j==null?void 0:j.unregister().catch(()=>{})),j=await k().catch(()=>null))}catch(tt){console.error("Error in verifyAndRestartWorker:",tt),j=await k().catch(()=>null)}});setInterval($,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}; +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 er=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:Gn;tn.call(this,Gt,xn,er)}}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={},er=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),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]=or[mr]);return Hn}(It,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),Gn,er=xn.value!==void 0,tr=Object(gt.useRef)(null),ir=Zn(tr,Nt),Kn=Object(gt.useRef)(0),rr=Object(gt.useRef)(),ur=function(){var or=tr.current,yr=Rt&&rr.current?rr.current:function(hr){var lr=window.getComputedStyle(hr);if(lr===null)return null;var sr,dr=(sr=lr,Tn.reduce(function(Mr,jr){return Mr[jr]=sr[jr],Mr},{})),Ar=dr.boxSizing;return Ar===""?null:(Kt&&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)})}(or);if(yr){rr.current=yr;var mr=function(hr,lr,sr,dr){sr===void 0&&(sr=1),dr===void 0&&(dr=1/0),Fn||((Fn=document.createElement("textarea")).setAttribute("tab-index","-1"),Fn.setAttribute("aria-hidden","true"),Wn(Fn)),Fn.parentNode===null&&document.body.appendChild(Fn);var Ar=hr.paddingSize,Mr=hr.borderSize,jr=hr.sizingStyle,Ir=jr.boxSizing;Object.keys(jr).forEach(function(Pr){var $r=Pr;Fn.style[$r]=jr[$r]}),Wn(Fn),Fn.value=lr;var pn=function(Pr,$r){var Wr=Pr.scrollHeight;return $r.sizingStyle.boxSizing==="border-box"?Wr+$r.borderSize:Wr-$r.paddingSize}(Fn,hr);Fn.value="x";var Lr=Fn.scrollHeight-Ar,Fr=Lr*sr;Ir==="border-box"&&(Fr=Fr+Ar+Mr),pn=Math.max(Fr,pn);var Dr=Lr*dr;return Ir==="border-box"&&(Dr=Dr+Ar+Mr),[pn=Math.min(Dr,pn),Lr]}(yr,or.value||or.placeholder||"x",Pt,Wt),Pn=mr[0],Hn=mr[1];Kn.current!==Pn&&(Kn.current=Pn,or.style.setProperty("height",Pn+"px","important"),Gt(Pn,{rowHeight:Hn}))}};return Object(gt.useLayoutEffect)(ur),Gn=Un(ur),Object(gt.useLayoutEffect)(function(){var or=function(yr){Gn.current(yr)};return window.addEventListener("resize",or),function(){window.removeEventListener("resize",or)}},[]),Object(gt.createElement)("textarea",Ln({},xn,{onChange:function(or){er||ur(),un(or)},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 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,2M7,13H17V11H7"})))}}]),Rt}(st.a.PureComponent),ln=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),mn=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),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"]),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),Jn=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),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,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),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",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(Nn,Object.assign({className:"copy-icon"},Bt(hn,"copy-icon"))),st.a.createElement("span",Bt(hn,"copy-icon-copied"),"✔")):st.a.createElement(Nn,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(yn,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,er=Gn.editValue,tr=Gn.parsedInput,ir=er;hn&&tr.type&&(ir=tr.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(yn,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,er=Pt.enableClipboard,tr=Pt.onEdit,ir=Pt.onDelete,Kn=Pt.onSelect,rr=Pt.displayArrayKey,ur=Pt.quotesOnKeys,or=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"?rr?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&&tr===!1?null:function(yr){var mr=On(xn);(yr.ctrlKey||yr.metaKey)&&tr!==!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,or)),er?st.a.createElement(xr,{rowHovered:this.state.hovered,hidden:or,src:hn.value,clickCallback:er,theme:Gt,namespace:[].concat(On(xn),[hn.name])}):null,tr!==!1&&or==0?this.getEditIcon():null,ir!==!1&&or==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?er:null,namespace:Gn.splice(0,Gn.length-1),existing_value:tr,variable_removed:!1,key_name:null};_t(tr)==="object"?Bn.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:ir,data:rr}):Bn.dispatch({name:"VARIABLE_ADDED",rjvId:ir,data:rt(rt({},rr),{},{new_value:[].concat(On(tr),[null])})})}})))},Wt.getRemoveObject=function(tn){var Gt=Wt.props,xn=Gt.theme,Gn=(Gt.hover,Gt.namespace),er=Gt.name,tr=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:er,namespace:Gn.splice(0,Gn.length-1),existing_value:tr,variable_removed:!0}})}})))},Wt.render=function(){var tn=Wt.props,Gt=tn.theme,xn=tn.onDelete,Gn=tn.onAdd,er=tn.enableClipboard,tr=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(rr){rr.stopPropagation()}}),Wt.getObjectSize(),er?st.a.createElement(xr,{rowHovered:Kn,clickCallback:er,src:tr,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(Jn,Object.assign({},Bt(Nt,"expanded-icon"),{className:"expanded-icon"}));case"square":return st.a.createElement(mn,Object.assign({},Bt(Nt,"expanded-icon"),{className:"expanded-icon"}));default:return st.a.createElement(sn,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(Qn,Object.assign({},Bt(Nt,"collapsed-icon"),{className:"collapsed-icon"}));default:return st.a.createElement(ln,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,er=(Pt.parent_type,kt(Pt,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),tr=0,ir=5*this.props.indentWidth;xn||(tr=5*this.props.indentWidth);var Kn=un,rr=Math.ceil(hn.length/Kn);return st.a.createElement("div",Object.assign({className:"object-key-val"},Bt(Gt,xn?"jsv-root":"objectKeyVal",{paddingLeft:tr})),st.a.createElement(Br,this.props),st.a.createElement("span",null,st.a.createElement(Tr,Object.assign({size:hn.length},this.props))),On(Array(rr)).map(function(ur,or){return st.a.createElement("div",Object.assign({key:or,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(or)}}),Wt.getExpandedIcon(or)),Wt.state.expanded[or]?st.a.createElement(St,Object.assign({key:tn+or,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:Kn,index_offset:or*Kn,src:hn.slice(or*Kn,or*Kn+Kn),namespace:Gn,type:"array",parent_type:"array_group",theme:Gt},er)):st.a.createElement("span",Object.assign({},Bt(Gt,"brace"),{onClick:function(yr){Wt.toggleCollapsed(or)},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")),or*Kn," - ",or*Kn+Kn>hn.length?hn.length:or*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,er=xn.parent_type,tr=xn.index_offset,ir=xn.groupArraysAfterLength,Kn=xn.namespace,rr=Pt.state.object_type,ur=[],or=Object.keys(un||{});return Pt.props.sortKeys&&rr!=="array"&&(or=or.sort()),or.forEach(function(yr){if(Gt=new mo(yr,un[yr]),er==="array_group"&&tr&&(Gt.name=parseInt(Gt.name)+tr),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:rr},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:rr},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(er){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,er=kt(Pt,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),tr=this.state,ir=tr.object_type,Kn=tr.expanded,rr={};return xn||tn==="array_group"?tn==="array_group"&&(rr.borderLeft=0,rr.display="inline"):rr.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",rr)),this.getBraceStart(ir,Kn),Kn?this.getObjectContent(hn,un,rt({theme:Gt,iconStyle:Gn},er)):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,Dt=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:"telegram-wallet",name:"Wallet",imageUrl:"https://wallet.tg/images/logo-288.png",aboutUrl:"https://wallet.tg/",universalLink:"https://t.me/wallet?attach=wallet",bridgeUrl:"https://bridge.ton.space/bridge",platforms:["ios","android","macos","windows","linux"]},{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://tc.nicegram.app/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"tokenpocket",name:"TokenPocket",imageUrl:"https://hk.tpstatic.net/logo/tokenpocket.png",aboutUrl:"https://tokenpocket.pro",jsBridgeKey:"tokenpocket",platforms:["ios","android"]},{appName:"dewallet",name:"DeWallet",imageUrl:"https://raw.githubusercontent.com/delab-team/manifests-images/main/WalletAvatar.png",aboutUrl:"https://delabwallet.com",universalLink:"https://t.me/dewallet?attach=wallet",bridgeUrl:"https://bridge.dewallet.pro/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"cdcTonWallet",name:"Crypto.com DeFi Wallet",imageUrl:"https://apro-ncw-api-file.crypto.com/wallet/logo",aboutUrl:"https://crypto.com/defi-wallet",universalLink:"https://wallet.crypto.com/deeplink/ton-connect",deepLink:"dfw://",jsBridgeKey:"cdcTonWallet",bridgeUrl:"https://wallet.crypto.com/sse/tonbridge",platforms:["ios","android","chrome"]},{appName:"tobi",name:"Tobi",imageUrl:"https://app.tobiwallet.app/icons/logo.png",aboutUrl:"https://tobi.fun",universalLink:"https://t.me/TobiCopilotBot?attach=wallet",bridgeUrl:"https://ton-bridge.tobiwallet.app/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"trustwalletTon",name:"Trust",imageUrl:"https://assets-cdn.trustwallet.com/dapps/trust.logo.png",aboutUrl:"https://trustwallet.com/about-us",bridgeUrl:"https://tonconnect.trustwallet.com/bridge",jsBridgeKey:"trustwalletTon",platforms:["chrome","ios","android"]},{appName:"bitgetWalletLite",name:"Bitget Wallet Lite",imageUrl:"https://raw.githubusercontent.com/bitgetwallet/download/main/logo/png/bitget_wallet_lite_logo.png",aboutUrl:"https://web3.bitget.com",universalLink:"https://t.me/BitgetWallet_TGBot?attach=wallet",bridgeUrl:"https://ton-connect-bridge.bgwapi.io/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"onekey",name:"OneKey",imageUrl:"https://common.onekey-asset.com/logo/onekey-x288.png",aboutUrl:"https://onekey.so",jsBridgeKey:"onekeyTonWallet",platforms:["chrome"]},{appName:"tomoWallet",name:"Tomo Wallet",imageUrl:"https://pub.tomo.inc/logo.png",aboutUrl:"https://www.tomo.inc/",universalLink:"https://t.me/tomowalletbot?attach=wallet",bridgeUrl:"https://go-bridge.tomo.inc/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"hpyTonWallet",name:"HyperPay Wallet",imageUrl:"https://onchain-oss.hyperpay.online/images/logo.png",aboutUrl:"https://www.hyperpay.tech",universalLink:"https://www.hyperpay.tech/download&deeplink=hyperpay://web3/wallet/tonconnect",jsBridgeKey:"hpyTonWallet",bridgeUrl:"https://onchain-wallet.hyperpay.online/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"unstoppable",name:"Unstoppable Wallet",imageUrl:"https://unstoppable.money/logo288.png",aboutUrl:"https://unstoppable.money/",universalLink:"https://unstoppable.money/ton-connect",bridgeUrl:"https://bridge.unstoppable.money/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"foxwallet",name:"FoxWallet",imageUrl:"https://hc.foxwallet.com/img/logo.png",aboutUrl:"https://foxwallet.com/",jsBridgeKey:"foxwallet",platforms:["ios","android","macos","windows","linux"]},{appName:"jambo",name:"Jambo",imageUrl:"https://cdn-prod.jambotechnology.xyz/content/jambo_288x288_02da416a6c.png",aboutUrl:"https://www.jambo.technology/",deepLink:"jambotc://",universalLink:"https://jambophone.xyz/",bridgeUrl:"https://bridge.tonapi.io/bridge",jsBridgeKey:"jambowallet",platforms:["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(){const b=document.baseURI.replace(/\/$/,"");return new Promise(async _=>{const{worker:d}=await __vitePreload(()=>import("./worker-25072bf6.js"),[]),k=()=>d.start({onUnhandledRequest:"bypass",quiet:!1,serviceWorker:{url:"/demo-dapp-with-react-ui/mockServiceWorker.js"}});let j=await k();_(j);const $=runSingleInstance(async()=>{var et;try{const rt=(await((et=navigator.serviceWorker)==null?void 0:et.getRegistrations())||[]).length>0,nt=await fetch(`${b}/api/healthz`).then(ot=>ot.status===200?ot.json().then(at=>at.ok).catch(()=>!1):!1).catch(()=>!1);(!rt||!nt)&&(await(j==null?void 0:j.unregister().catch(()=>{})),j=await k().catch(()=>null))}catch(tt){console.error("Error in verifyAndRestartWorker:",tt),j=await k().catch(()=>null)}});setInterval($,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-e2bd57de.js b/docs/assets/worker-25072bf6.js similarity index 99% rename from docs/assets/worker-e2bd57de.js rename to docs/assets/worker-25072bf6.js index f6184ec..5480c47 100644 --- a/docs/assets/worker-e2bd57de.js +++ b/docs/assets/worker-25072bf6.js @@ -1,4 +1,4 @@ -var Mk=Object.defineProperty;var xk=(e,t,n)=>t in e?Mk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ae=(e,t,n)=>(xk(e,typeof t!="symbol"?t+"":t,n),n),Iu=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var Cn=(e,t,n)=>(Iu(e,t,"read from private field"),n?n.call(e):t.get(e)),Xo=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Ru=(e,t,n,r)=>(Iu(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var Wr=(e,t,n)=>(Iu(e,t,"access private method"),n);import{C as Li,c as re,n as Gs,g as Ok,b as Xe,r as qi}from"./index-8e57572c.js";var Ik=/(%?)(%([sdijo]))/g;function Rk(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 n=JSON.stringify(e);return n==="{}"||n==="[]"||/^\[object .+?\]$/.test(n)?e:n}}}function Oo(e,...t){if(t.length===0)return e;let n=0,r=e.replace(Ik,(a,o,i,s)=>{const l=t[n],u=Rk(l,s);return o?a:(n++,u)});return nt in e?Mk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ae=(e,t,n)=>(xk(e,typeof t!="symbol"?t+"":t,n),n),Iu=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var Cn=(e,t,n)=>(Iu(e,t,"read from private field"),n?n.call(e):t.get(e)),Xo=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Ru=(e,t,n,r)=>(Iu(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var Wr=(e,t,n)=>(Iu(e,t,"access private method"),n);import{C as Li,c as re,n as Gs,g as Ok,b as Xe,r as qi}from"./index-b72b64fc.js";var Ik=/(%?)(%([sdijo]))/g;function Rk(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 n=JSON.stringify(e);return n==="{}"||n==="[]"||/^\[object .+?\]$/.test(n)?e:n}}}function Oo(e,...t){if(t.length===0)return e;let n=0,r=e.replace(Ik,(a,o,i,s)=>{const l=t[n],u=Rk(l,s);return o?a:(n++,u)});return n{if(!e)throw new Dk(t,...n)};Kt.as=(e,t,n,...r)=>{if(!t){const a=r.length===0?n:Oo(n,...r);let o;try{o=Reflect.construct(e,[a])}catch{o=e(a)}throw o}};const Uk="[MSW]";function Kc(e,...t){const n=Oo(e,...t);return`${Uk} ${n}`}function Fk(e,...t){console.warn(Kc(e,...t))}function Lk(e,...t){console.error(Kc(e,...t))}const xe={formatMessage:Kc,warn:Fk,error:Lk};class Qd extends Error{constructor(t){super(t),this.name="InternalError"}}function qk(){Kt(typeof URL<"u",xe.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 $k=class extends Error{constructor(t,n,r){super(`Possible EventEmitter memory leak detected. ${r} ${n.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`),this.emitter=t,this.type=n,this.count=r,this.name="MaxListenersExceededWarning"}},Yh=class{static listenerCount(t,n){return t.listenerCount(n)}constructor(){this.events=new Map,this.maxListeners=Yh.defaultMaxListeners,this.hasWarnedAboutPotentialMemoryLeak=!1}_emitInternalEvent(t,n,r){this.emit(t,n,r)}_getListeners(t){return Array.prototype.concat.apply([],this.events.get(t))||[]}_removeListener(t,n){const r=t.indexOf(n);return r>-1&&t.splice(r,1),[]}_wrapOnceListener(t,n){const r=(...a)=>(this.removeListener(t,r),n.apply(this,a));return Object.defineProperty(r,"name",{value:n.name}),r}setMaxListeners(t){return this.maxListeners=t,this}getMaxListeners(){return this.maxListeners}eventNames(){return Array.from(this.events.keys())}emit(t,...n){const r=this._getListeners(t);return r.forEach(a=>{a.apply(this,n)}),r.length>0}addListener(t,n){this._emitInternalEvent("newListener",t,n);const r=this._getListeners(t).concat(n);if(this.events.set(t,r),this.maxListeners>0&&this.listenerCount(t)>this.maxListeners&&!this.hasWarnedAboutPotentialMemoryLeak){this.hasWarnedAboutPotentialMemoryLeak=!0;const a=new $k(this,t,this.listenerCount(t));console.warn(a)}return this}on(t,n){return this.addListener(t,n)}once(t,n){return this.addListener(t,this._wrapOnceListener(t,n))}prependListener(t,n){const r=this._getListeners(t);if(r.length>0){const a=[n].concat(r);this.events.set(t,a)}else this.events.set(t,r.concat(n));return this}prependOnceListener(t,n){return this.prependListener(t,this._wrapOnceListener(t,n))}removeListener(t,n){const r=this._getListeners(t);return r.length>0&&(this._removeListener(r,n),this.events.set(t,r),this._emitInternalEvent("removeListener",t,n)),this}off(t,n){return this.removeListener(t,n)}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)}},Ys=Yh;Ys.defaultMaxListeners=10;function Wk(e,t){const n=e.emit;if(n._isPiped)return;const r=function(o,...i){return t.emit(o,...i),n.call(this,o,...i)};r._isPiped=!0,e.emit=r}function Hk(e){const t=[...e];return Object.freeze(t),t}class Vk{constructor(){Ae(this,"subscriptions",[])}dispose(){let t;for(;t=this.subscriptions.shift();)t()}}class Jk{constructor(t){Ae(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 Kk extends Vk{constructor(...n){super();Ae(this,"handlersController");Ae(this,"emitter");Ae(this,"publicEmitter");Ae(this,"events");Kt(this.validateHandlers(n),xe.formatMessage("Failed to apply given request handlers: invalid input. Did you forget to spread the request handlers Array?")),this.handlersController=new Jk(n),this.emitter=new Ys,this.publicEmitter=new Ys,Wk(this.emitter,this.publicEmitter),this.events=this.createLifeCycleEvents(),this.subscriptions.push(()=>{this.emitter.removeAllListeners(),this.publicEmitter.removeAllListeners()})}validateHandlers(n){return n.every(r=>!Array.isArray(r))}use(...n){Kt(this.validateHandlers(n),xe.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(n)}restoreHandlers(){this.handlersController.currentHandlers().forEach(n=>{"isUsed"in n&&(n.isUsed=!1)})}resetHandlers(...n){this.handlersController.reset(n)}listHandlers(){return Hk(this.handlersController.currentHandlers())}createLifeCycleEvents(){return{on:(...n)=>this.publicEmitter.on(...n),removeListener:(...n)=>this.publicEmitter.removeListener(...n),removeAllListeners:(...n)=>this.publicEmitter.removeAllListeners(...n)}}}const Gk=/[\/\\]msw[\/\\]src[\/\\](.+)/,Yk=/(node_modules)?[\/\\]lib[\/\\](core|browser|node|native|iife)[\/\\]|^[^\/\\]*$/;function Qk(e){const t=e.stack;if(!t)return;const r=t.split(` `).slice(1).find(o=>!(Gk.test(o)||Yk.test(o)));return r?r.replace(/\s*at [^()]*\(([^)]+)\)/,"$1").replace(/^@/,""):void 0}function Zk(e){return e?Reflect.has(e,Symbol.iterator)||Reflect.has(e,Symbol.asyncIterator):!1}const Fi=class Fi{constructor(t){Ae(this,"__kind");Ae(this,"info");Ae(this,"isUsed");Ae(this,"resolver");Ae(this,"resolverIterator");Ae(this,"resolverIteratorResult");Ae(this,"options");this.resolver=t.resolver,this.options=t.options;const n=Qk(new Error);this.info={...t.info,callFrame:n},this.isUsed=!1,this.__kind="RequestHandler"}async parse(t){return{}}async test(t){const n=await this.parse({request:t.request,resolutionContext:t.resolutionContext});return this.predicate({request:t.request,parsedResult:n,resolutionContext:t.resolutionContext})}extendResolverArgs(t){return{}}cloneRequestOrGetFromCache(t){const n=Fi.cache.get(t);if(typeof n<"u")return n;const r=t.clone();return Fi.cache.set(t,r),r}async run(t){var c,d;if(this.isUsed&&((c=this.options)!=null&&c.once))return null;const n=this.cloneRequestOrGetFromCache(t.request),r=await this.parse({request:t.request,resolutionContext:t.resolutionContext});if(!this.predicate({request:t.request,parsedResult:r,resolutionContext:t.resolutionContext})||this.isUsed&&((d=this.options)!=null&&d.once))return null;this.isUsed=!0;const o=this.wrapResolver(this.resolver),i=this.extendResolverArgs({request:t.request,parsedResult:r}),l=await o({...i,requestId:t.requestId,request:t.request}).catch(y=>{if(y instanceof Response)return y;throw y});return this.createExecutionResult({request:n,requestId:t.requestId,response:l,parsedResult:r})}wrapResolver(t){return async n=>{var i;if(!this.resolverIterator){const s=await t(n);if(!Zk(s))return s;this.resolverIterator=Symbol.iterator in s?s[Symbol.iterator]():s[Symbol.asyncIterator]()}this.isUsed=!1;const{done:r,value:a}=await this.resolverIterator.next(),o=await a;return o&&(this.resolverIteratorResult=o.clone()),r?(this.isUsed=!0,(i=this.resolverIteratorResult)==null?void 0:i.clone()):o}}createExecutionResult(t){return{handler:this,request:t.request,requestId:t.requestId,response:t.response,parsedResult:t.parsedResult}}};Ae(Fi,"cache",new WeakMap);let Qs=Fi;function Xk(e,t){return e.toLowerCase()===t.toLowerCase()}function ew(e){return e<300?"#69AB32":e<400?"#F0BB4B":"#E95F5D"}function Fr(e){const t=new Date,n=`${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}:${t.getSeconds().toString().padStart(2,"0")}`;return e!=null&&e.milliseconds?`${n}.${t.getMilliseconds().toString().padStart(3,"0")}`:n}async function tw(e){const n=await e.clone().text();return{url:new URL(e.url),method:e.method,headers:Object.fromEntries(e.headers.entries()),body:n}}var nw=Object.create,Qh=Object.defineProperty,rw=Object.getOwnPropertyDescriptor,Zh=Object.getOwnPropertyNames,aw=Object.getPrototypeOf,ow=Object.prototype.hasOwnProperty,Xh=(e,t)=>function(){return t||(0,e[Zh(e)[0]])((t={exports:{}}).exports,t),t.exports},iw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Zh(t))!ow.call(e,a)&&a!==n&&Qh(e,a,{get:()=>t[a],enumerable:!(r=rw(t,a))||r.enumerable});return e},sw=(e,t,n)=>(n=e!=null?nw(aw(e)):{},iw(t||!e||!e.__esModule?Qh(n,"default",{value:e,enumerable:!0}):n,e)),lw=Xh({"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"}}}),uw=Xh({"node_modules/statuses/index.js"(e,t){var n=lw();t.exports=s,s.message=n,s.code=r(n),s.codes=a(n),s.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},s.empty={204:!0,205:!0,304:!0},s.retry={502:!0,503:!0,504:!0};function r(l){var u={};return Object.keys(l).forEach(function(d){var y=l[d],m=Number(d);u[y.toLowerCase()]=m}),u}function a(l){return Object.keys(l).map(function(c){return Number(c)})}function o(l){var u=l.toLowerCase();if(!Object.prototype.hasOwnProperty.call(s.code,u))throw new Error('invalid status message: "'+l+'"');return s.code[u]}function i(l){if(!Object.prototype.hasOwnProperty.call(s.message,l))throw new Error("invalid status code: "+l);return s.message[l]}function s(l){if(typeof l=="number")return i(l);if(typeof l!="string")throw new TypeError("code must be a number or string");var u=parseInt(l,10);return isNaN(u)?o(l):i(u)}}}),cw=sw(uw(),1),em=cw.default;/*! Bundled license information: @@ -274,7 +274,7 @@ This most likely means that the worker script URL "%s" cannot resolve against th Please consider using a custom "serviceWorker.url" option to point to the actual worker script location, or a custom "findWorker" option to resolve the Service Worker registration manually. More details: https://mswjs.io/docs/api/setup-worker/start`,n.serviceWorker.url,location.host);throw new Error(u)}return e.worker=s,e.registration=l,e.events.addListener(window,"beforeunload",()=>{s.state!=="redundant"&&e.workerChannel.send("CLIENT_CLOSED"),window.clearInterval(e.keepAliveInterval),window.postMessage({type:"msw/worker:stop"})}),await v0(e).catch(u=>{xe.error("Error while checking the worker script integrity. Please report this on GitHub (https://github.com/mswjs/msw/issues), including the original error below."),console.error(u)}),e.keepAliveInterval=window.setInterval(()=>e.workerChannel.send("KEEPALIVE_REQUEST"),5e3),L0(l,e.startOptions),l})().then(async i=>{const s=i.installing||i.waiting;return s&&await new Promise(l=>{s.addEventListener("statechange",()=>{if(s.state==="activated")return l()})}),await g0(e,n).catch(l=>{throw new Error(`Failed to enable mocking: ${l==null?void 0:l.message}`)}),i})};function Nm(e={}){e.quiet||console.log(`%c${xe.formatMessage("Mocking disabled.")}`,"color:orangered;font-weight:bold;")}var $0=e=>function(){var n;if(!e.isMockingEnabled){xe.warn('Found a redundant "worker.stop()" call. Note that stopping the worker while mocking already stopped has no effect. Consider removing this "worker.stop()" call.');return}e.workerChannel.send("MOCK_DEACTIVATE"),e.isMockingEnabled=!1,window.clearInterval(e.keepAliveInterval),window.postMessage({type:"msw/worker:stop"}),Nm({quiet:(n=e.startOptions)==null?void 0:n.quiet})},W0={serviceWorker:{url:"/mockServiceWorker.js",options:null},quiet:!1,waitUntilReady:!0,onUnhandledRequest:"warn",findWorker(e,t){return e===t}};function H0(){const e=(t,n)=>{e.state="pending",e.resolve=r=>{if(e.state!=="pending")return;e.result=r;const a=o=>(e.state="fulfilled",o);return t(r instanceof Promise?r:Promise.resolve(r).then(a))},e.reject=r=>{if(e.state==="pending")return queueMicrotask(()=>{e.state="rejected"}),n(e.rejectionReason=r)}};return e}var fr,fo,Ls,Gh,Xc=(Gh=class extends Promise{constructor(t=null){const n=H0();super((r,a)=>{n(r,a),t==null||t(n.resolve,n.reject)});Xo(this,fo);Xo(this,fr,void 0);Ae(this,"resolve");Ae(this,"reject");Ru(this,fr,n),this.resolve=Cn(this,fr).resolve,this.reject=Cn(this,fr).reject}get state(){return Cn(this,fr).state}get rejectionReason(){return Cn(this,fr).rejectionReason}then(t,n){return Wr(this,fo,Ls).call(this,super.then(t,n))}catch(t){return Wr(this,fo,Ls).call(this,super.catch(t))}finally(t){return Wr(this,fo,Ls).call(this,super.finally(t))}},fr=new WeakMap,fo=new WeakSet,Ls=function(t){return Object.defineProperties(t,{resolve:{configurable:!0,value:this.resolve},reject:{configurable:!0,value:this.reject}})},Gh),Xs=class extends Error{constructor(e){super(e),this.name="InterceptorError",Object.setPrototypeOf(this,Xs.prototype)}},ii=Symbol("kRequestHandled"),cn=Symbol("kResponsePromise"),ed=class{constructor(e){this.request=e,this[ii]=!1,this[cn]=new Xc}respondWith(e){Cr.as(Xs,!this[ii],'Failed to respond to the "%s %s" request: the "request" event has already been handled.',this.request.method,this.request.url),this[ii]=!0,this[cn].resolve(e)}errorWith(e){Cr.as(Xs,!this[ii],'Failed to error the "%s %s" request: the "request" event has already been handled.',this.request.method,this.request.url),this[ii]=!0,this[cn].resolve(e)}};async function el(e,t,...n){const r=e.listeners(t);if(r.length!==0)for(const a of r)await a.apply(e,n)}function V0(e,t){try{return e[t],!0}catch{return!1}}function J0(e){return new Response(JSON.stringify(e instanceof Error?{name:e.name,message:e.message,stack:e.stack}:e),{status:500,statusText:"Unhandled Exception",headers:{"Content-Type":"application/json"}})}function K0(e){return V0(e,"type")&&e.type==="error"}function G0(e){return e==null||!(e instanceof Error)?!1:"code"in e&&"errno"in e}async function zm(e){const t=async o=>(o instanceof Error?e.onError(o):K0(o)?e.onRequestError(o):await e.onResponse(o),!0),n=async o=>{if(o instanceof Xs)throw a.error;return G0(o)?(e.onError(o),!0):o instanceof Response?await t(o):!1};e.emitter.once("request",({requestId:o})=>{o===e.requestId&&e.controller[cn].state==="pending"&&e.controller[cn].resolve(void 0)});const r=new Xc;e.request.signal&&(e.request.signal.aborted?r.reject(e.request.signal.reason):e.request.signal.addEventListener("abort",()=>{r.reject(e.request.signal.reason)},{once:!0}));const a=await gc(async()=>{const o=el(e.emitter,"request",{requestId:e.requestId,request:e.request,controller:e.controller});return await Promise.race([r,o,e.controller[cn]]),await e.controller[cn]});if(r.state==="rejected")return e.onError(r.rejectionReason),!0;if(a.error){if(await n(a.error))return!0;if(e.emitter.listenerCount("unhandledException")>0){const o=new ed(e.request);await el(e.emitter,"unhandledException",{error:a.error,request:e.request,requestId:e.requestId,controller:o}).then(()=>{o[cn].state==="pending"&&o[cn].resolve(void 0)});const i=await gc(()=>o[cn]);if(i.error)return n(i.error);if(i.data)return t(i.data)}return e.onResponse(J0(a.error)),!0}return a.data?t(a.data):!1}function Dm(e){const t=Object.getOwnPropertyDescriptor(globalThis,e);return typeof t>"u"||typeof t.get=="function"&&typeof t.get()>"u"||typeof t.get>"u"&&t.value==null?!1:typeof t.set>"u"&&!t.configurable?(console.error(`[MSW] Failed to apply interceptor: the global \`${e}\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`),!1):!0}function Y0(e){try{return new URL(e),!0}catch{return!1}}function ta(e){return Object.assign(new TypeError("Failed to fetch"),{cause:e})}var Q0=["content-encoding","content-language","content-location","content-type","content-length"],Lu=Symbol("kRedirectCount");async function Z0(e,t){if(t.status!==303&&e.body!=null)return Promise.reject(ta());const n=new URL(e.url);let r;try{r=new URL(t.headers.get("location"),e.url)}catch(o){return Promise.reject(ta(o))}if(!(r.protocol==="http:"||r.protocol==="https:"))return Promise.reject(ta("URL scheme must be a HTTP(S) scheme"));if(Reflect.get(e,Lu)>20)return Promise.reject(ta("redirect count exceeded"));if(Object.defineProperty(e,Lu,{value:(Reflect.get(e,Lu)||0)+1}),e.mode==="cors"&&(r.username||r.password)&&!gf(n,r))return Promise.reject(ta('cross origin not allowed for request mode "cors"'));const a={};return([301,302].includes(t.status)&&e.method==="POST"||t.status===303&&!["HEAD","GET"].includes(e.method))&&(a.method="GET",a.body=null,Q0.forEach(o=>{e.headers.delete(o)})),gf(n,r)||(e.headers.delete("authorization"),e.headers.delete("proxy-authorization"),e.headers.delete("cookie"),e.headers.delete("host")),a.headers=e.headers,fetch(new Request(r,a))}function gf(e,t){return e.origin===t.origin&&e.origin==="null"||e.protocol===t.protocol&&e.hostname===t.hostname&&e.port===t.port}var X0=class extends TransformStream{constructor(){console.warn("[Interceptors]: Brotli decompression of response streams is not supported in the browser"),super({transform(e,t){t.enqueue(e)}})}},ej=class extends TransformStream{constructor(e,...t){super({},...t);const n=[super.readable,...e].reduce((r,a)=>r.pipeThrough(a));Object.defineProperty(this,"readable",{get(){return n}})}};function tj(e){return e.toLowerCase().split(",").map(t=>t.trim())}function nj(e){if(e==="")return null;const t=tj(e);if(t.length===0)return null;const n=t.reduceRight((r,a)=>a==="gzip"||a==="x-gzip"?r.concat(new DecompressionStream("gzip")):a==="deflate"?r.concat(new DecompressionStream("deflate")):a==="br"?r.concat(new X0):(r.length=0,r),[]);return new ej(n)}function rj(e){if(e.body===null)return null;const t=nj(e.headers.get("content-encoding")||"");return t?(e.body.pipeTo(t.writable),t.readable):null}var Um=class extends Zc{constructor(){super(Um.symbol)}checkEnvironment(){return Dm("fetch")}async setup(){const e=globalThis.fetch;Cr(!e[oo],'Failed to patch the "fetch" module: already patched.'),globalThis.fetch=async(t,n)=>{const r=Rm(),a=typeof t=="string"&&typeof location<"u"&&!Y0(t)?new URL(t,location.origin):t,o=new Request(a,n),i=new Xc,s=new ed(o);return this.logger.info("[%s] %s",o.method,o.url),this.logger.info("awaiting for the mocked response..."),this.logger.info('emitting the "request" event for %s listener(s)...',this.emitter.listenerCount("request")),await zm({request:o,requestId:r,emitter:this.emitter,controller:s,onResponse:async u=>{this.logger.info("received mocked response!",{rawResponse:u});const c=rj(u),d=c===null?u:new xn(c,u);if(xn.setUrl(o.url,d),xn.isRedirectResponse(d.status)){if(o.redirect==="error"){i.reject(ta("unexpected redirect"));return}if(o.redirect==="follow"){Z0(o,d).then(y=>{i.resolve(y)},y=>{i.reject(y)});return}}this.emitter.listenerCount("response")>0&&(this.logger.info('emitting the "response" event...'),await el(this.emitter,"response",{response:d.clone(),isMockedResponse:!0,request:o,requestId:r})),i.resolve(d)},onRequestError:u=>{this.logger.info("request has errored!",{response:u}),i.reject(ta(u))},onError:u=>{this.logger.info("request has been aborted!",{error:u}),i.reject(u)}})?(this.logger.info("request has been handled, returning mock promise..."),i):(this.logger.info("no mocked response received, performing request as-is..."),e(o).then(async u=>{if(this.logger.info("original fetch performed",u),this.emitter.listenerCount("response")>0){this.logger.info('emitting the "response" event...');const c=u.clone();await el(this.emitter,"response",{response:c,isMockedResponse:!1,request:o,requestId:r})}return u}))},Object.defineProperty(globalThis.fetch,oo,{enumerable:!0,configurable:!0,value:!0}),this.subscriptions.push(()=>{Object.defineProperty(globalThis.fetch,oo,{value:void 0}),globalThis.fetch=e,this.logger.info('restored native "globalThis.fetch"!',globalThis.fetch.name)})}},Fm=Um;Fm.symbol=Symbol("fetch");function aj(e,t){const n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e,0),n.set(t,e.byteLength),n}var Lm=class{constructor(e,t){this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.type="",this.srcElement=null,this.currentTarget=null,this.eventPhase=0,this.isTrusted=!0,this.composed=!1,this.cancelable=!0,this.defaultPrevented=!1,this.bubbles=!0,this.lengthComputable=!0,this.loaded=0,this.total=0,this.cancelBubble=!1,this.returnValue=!0,this.type=e,this.target=(t==null?void 0:t.target)||null,this.currentTarget=(t==null?void 0:t.currentTarget)||null,this.timeStamp=Date.now()}composedPath(){return[]}initEvent(e,t,n){this.type=e,this.bubbles=!!t,this.cancelable=!!n}preventDefault(){this.defaultPrevented=!0}stopPropagation(){}stopImmediatePropagation(){}},oj=class extends Lm{constructor(e,t){super(e),this.lengthComputable=(t==null?void 0:t.lengthComputable)||!1,this.composed=(t==null?void 0:t.composed)||!1,this.loaded=(t==null?void 0:t.loaded)||0,this.total=(t==null?void 0:t.total)||0}},ij=typeof ProgressEvent<"u";function sj(e,t,n){const r=["error","progress","loadstart","loadend","load","timeout","abort"],a=ij?ProgressEvent:oj;return r.includes(t)?new a(t,{lengthComputable:!0,loaded:(n==null?void 0:n.loaded)||0,total:(n==null?void 0:n.total)||0}):new Lm(t,{target:e,currentTarget:e})}function qm(e,t){if(!(t in e))return null;if(Object.prototype.hasOwnProperty.call(e,t))return e;const r=Reflect.getPrototypeOf(e);return r?qm(r,t):null}function qu(e,t){return new Proxy(e,lj(t))}function lj(e){const{constructorCall:t,methodCall:n,getProperty:r,setProperty:a}=e,o={};return typeof t<"u"&&(o.construct=function(i,s,l){const u=Reflect.construct.bind(null,i,s,l);return t.call(l,s,u)}),o.set=function(i,s,l){const u=()=>{const c=qm(i,s)||i,d=Reflect.getOwnPropertyDescriptor(c,s);return typeof(d==null?void 0:d.set)<"u"?(d.set.apply(i,[l]),!0):Reflect.defineProperty(c,s,{writable:!0,enumerable:!0,configurable:!0,value:l})};return typeof a<"u"?a.call(i,[s,l],u):u()},o.get=function(i,s,l){const u=()=>i[s],c=typeof r<"u"?r.call(i,[s,l],u):u();return typeof c=="function"?(...d)=>{const y=c.bind(i,...d);return typeof n<"u"?n.call(i,[s,d],y):y()}:c},o}function uj(e){return["application/xhtml+xml","application/xml","image/svg+xml","text/html","text/xml"].some(n=>e.startsWith(n))}function cj(e){try{return JSON.parse(e)}catch{return null}}function dj(e,t){const n=xn.isResponseWithBody(e.status)?t:null;return new xn(n,{url:e.responseURL,status:e.status,statusText:e.statusText,headers:fj(e.getAllResponseHeaders())})}function fj(e){const t=new Headers,n=e.split(/[\r\n]+/);for(const r of n){if(r.trim()==="")continue;const[a,...o]=r.split(": "),i=o.join(": ");t.append(a,i)}return t}async function yf(e){const t=e.headers.get("content-length");return t!=null&&t!==""?Number(t):(await e.arrayBuffer()).byteLength}var si=Symbol("kIsRequestHandled"),hj=Qc(),$u=Symbol("kFetchRequest"),mj=class{constructor(e,t){this.initialRequest=e,this.logger=t,this.method="GET",this.url=null,this[si]=!1,this.events=new Map,this.uploadEvents=new Map,this.requestId=Rm(),this.requestHeaders=new Headers,this.responseBuffer=new Uint8Array,this.request=qu(e,{setProperty:([n,r],a)=>{switch(n){case"ontimeout":{const o=n.slice(2);return this.request.addEventListener(o,r),a()}default:return a()}},methodCall:([n,r],a)=>{var o;switch(n){case"open":{const[i,s]=r;return typeof s>"u"?(this.method="GET",this.url=bf(i)):(this.method=i,this.url=bf(s)),this.logger=this.logger.extend(`${this.method} ${this.url.href}`),this.logger.info("open",this.method,this.url.href),a()}case"addEventListener":{const[i,s]=r;return this.registerEvent(i,s),this.logger.info("addEventListener",i,s),a()}case"setRequestHeader":{const[i,s]=r;return this.requestHeaders.set(i,s),this.logger.info("setRequestHeader",i,s),a()}case"send":{const[i]=r;this.request.addEventListener("load",()=>{if(typeof this.onResponse<"u"){const c=dj(this.request,this.request.response);this.onResponse.call(this,{response:c,isMockedResponse:this[si],request:l,requestId:this.requestId})}});const s=typeof i=="string"?_0(i):i,l=this.toFetchApiRequest(s);this[$u]=l.clone(),(((o=this.onRequest)==null?void 0:o.call(this,{request:l,requestId:this.requestId}))||Promise.resolve()).finally(()=>{if(!this[si])return this.logger.info("request callback settled but request has not been handled (readystate %d), performing as-is...",this.request.readyState),hj&&this.request.setRequestHeader(z0,this.requestId),a()});break}default:return a()}}}),Ja(this.request,"upload",qu(this.request.upload,{setProperty:([n,r],a)=>{switch(n){case"onloadstart":case"onprogress":case"onaboart":case"onerror":case"onload":case"ontimeout":case"onloadend":{const o=n.slice(2);this.registerUploadEvent(o,r)}}return a()},methodCall:([n,r],a)=>{switch(n){case"addEventListener":{const[o,i]=r;return this.registerUploadEvent(o,i),this.logger.info("upload.addEventListener",o,i),a()}}}}))}registerEvent(e,t){const r=(this.events.get(e)||[]).concat(t);this.events.set(e,r),this.logger.info('registered event "%s"',e,t)}registerUploadEvent(e,t){const r=(this.uploadEvents.get(e)||[]).concat(t);this.uploadEvents.set(e,r),this.logger.info('registered upload event "%s"',e,t)}async respondWith(e){if(this[si]=!0,this[$u]){const r=await yf(this[$u]);this.trigger("loadstart",this.request.upload,{loaded:0,total:r}),this.trigger("progress",this.request.upload,{loaded:r,total:r}),this.trigger("load",this.request.upload,{loaded:r,total:r}),this.trigger("loadend",this.request.upload,{loaded:r,total:r})}this.logger.info("responding with a mocked response: %d %s",e.status,e.statusText),Ja(this.request,"status",e.status),Ja(this.request,"statusText",e.statusText),Ja(this.request,"responseURL",this.url.href),this.request.getResponseHeader=new Proxy(this.request.getResponseHeader,{apply:(r,a,o)=>{if(this.logger.info("getResponseHeader",o[0]),this.request.readyState{if(this.logger.info("getAllResponseHeaders"),this.request.readyState`${o}: ${i}`).join(`\r `);return this.logger.info("resolved all response headers to",a),a}}),Object.defineProperties(this.request,{response:{enumerable:!0,configurable:!1,get:()=>this.response},responseText:{enumerable:!0,configurable:!1,get:()=>this.responseText},responseXML:{enumerable:!0,configurable:!1,get:()=>this.responseXML}});const t=await yf(e.clone());this.logger.info("calculated response body length",t),this.trigger("loadstart",this.request,{loaded:0,total:t}),this.setReadyState(this.request.HEADERS_RECEIVED),this.setReadyState(this.request.LOADING);const n=()=>{this.logger.info("finalizing the mocked response..."),this.setReadyState(this.request.DONE),this.trigger("load",this.request,{loaded:this.responseBuffer.byteLength,total:t}),this.trigger("loadend",this.request,{loaded:this.responseBuffer.byteLength,total:t})};if(e.body){this.logger.info("mocked response has body, streaming...");const r=e.body.getReader(),a=async()=>{const{value:o,done:i}=await r.read();if(i){this.logger.info("response body stream done!"),n();return}o&&(this.logger.info("read response body chunk:",o),this.responseBuffer=aj(this.responseBuffer,o),this.trigger("progress",this.request,{loaded:this.responseBuffer.byteLength,total:t})),a()};a()}else n()}responseBufferToText(){return C0(this.responseBuffer)}get response(){if(this.logger.info("getResponse (responseType: %s)",this.request.responseType),this.request.readyState!==this.request.DONE)return null;switch(this.request.responseType){case"json":{const e=cj(this.responseBufferToText());return this.logger.info("resolved response JSON",e),e}case"arraybuffer":{const e=E0(this.responseBuffer);return this.logger.info("resolved response ArrayBuffer",e),e}case"blob":{const e=this.request.getResponseHeader("Content-Type")||"text/plain",t=new Blob([this.responseBufferToText()],{type:e});return this.logger.info("resolved response Blob (mime type: %s)",t,e),t}default:{const e=this.responseBufferToText();return this.logger.info('resolving "%s" response type as text',this.request.responseType,e),e}}}get responseText(){if(Cr(this.request.responseType===""||this.request.responseType==="text","InvalidStateError: The object is in invalid state."),this.request.readyState!==this.request.LOADING&&this.request.readyState!==this.request.DONE)return"";const e=this.responseBufferToText();return this.logger.info('getResponseText: "%s"',e),e}get responseXML(){if(Cr(this.request.responseType===""||this.request.responseType==="document","InvalidStateError: The object is in invalid state."),this.request.readyState!==this.request.DONE)return null;const e=this.request.getResponseHeader("Content-Type")||"";return typeof DOMParser>"u"?(console.warn("Cannot retrieve XMLHttpRequest response body as XML: DOMParser is not defined. You are likely using an environment that is not browser or does not polyfill browser globals correctly."),null):uj(e)?new DOMParser().parseFromString(this.responseBufferToText(),e):null}errorWith(e){this[si]=!0,this.logger.info("responding with an error"),this.setReadyState(this.request.DONE),this.trigger("error",this.request),this.trigger("loadend",this.request)}setReadyState(e){if(this.logger.info("setReadyState: %d -> %d",this.request.readyState,e),this.request.readyState===e){this.logger.info("ready state identical, skipping transition...");return}Ja(this.request,"readyState",e),this.logger.info("set readyState to: %d",e),e!==this.request.UNSENT&&(this.logger.info('triggerring "readystatechange" event...'),this.trigger("readystatechange",this.request))}trigger(e,t,n){const r=t[`on${e}`],a=sj(t,e,n);this.logger.info('trigger "%s"',e,n||""),typeof r=="function"&&(this.logger.info('found a direct "%s" callback, calling...',e),r.call(t,a));const o=t instanceof XMLHttpRequestUpload?this.uploadEvents:this.events;for(const[i,s]of o)i===e&&(this.logger.info('found %d listener(s) for "%s" event, calling...',s.length,e),s.forEach(l=>l.call(t,a)))}toFetchApiRequest(e){this.logger.info("converting request to a Fetch API Request...");const t=e instanceof Document?e.documentElement.innerText:e,n=new Request(this.url.href,{method:this.method,headers:this.requestHeaders,credentials:this.request.withCredentials?"include":"same-origin",body:["GET","HEAD"].includes(this.method.toUpperCase())?null:t}),r=qu(n.headers,{methodCall:([a,o],i)=>{switch(a){case"append":case"set":{const[s,l]=o;this.request.setRequestHeader(s,l);break}case"delete":{const[s]=o;console.warn(`XMLHttpRequest: Cannot remove a "${s}" header from the Fetch API representation of the "${n.method} ${n.url}" request. XMLHttpRequest headers cannot be removed.`);break}}return i()}});return Ja(n,"headers",r),this.logger.info("converted request to a Fetch API Request!",n),n}};function bf(e){return typeof location>"u"?new URL(e):new URL(e.toString(),location.href)}function Ja(e,t,n){Reflect.defineProperty(e,t,{writable:!0,enumerable:!0,value:n})}function pj({emitter:e,logger:t}){return new Proxy(globalThis.XMLHttpRequest,{construct(r,a,o){t.info("constructed new XMLHttpRequest");const i=Reflect.construct(r,a,o),s=Object.getOwnPropertyDescriptors(r.prototype);for(const u in s)Reflect.defineProperty(i,u,s[u]);const l=new mj(i,t);return l.onRequest=async function({request:u,requestId:c}){const d=new ed(u);this.logger.info("awaiting mocked response..."),this.logger.info('emitting the "request" event for %s listener(s)...',e.listenerCount("request")),await zm({request:u,requestId:c,controller:d,emitter:e,onResponse:async m=>{await this.respondWith(m)},onRequestError:()=>{this.errorWith(new TypeError("Network error"))},onError:m=>{this.logger.info("request errored!",{error:m}),m instanceof Error&&this.errorWith(m)}})||this.logger.info("no mocked response received, performing request as-is...")},l.onResponse=async function({response:u,isMockedResponse:c,request:d,requestId:y}){this.logger.info('emitting the "response" event for %s listener(s)...',e.listenerCount("response")),e.emit("response",{response:u,isMockedResponse:c,request:d,requestId:y})},l.request}})}var $m=class extends Zc{constructor(){super($m.interceptorSymbol)}checkEnvironment(){return Dm("XMLHttpRequest")}setup(){const e=this.logger.extend("setup");e.info('patching "XMLHttpRequest" module...');const t=globalThis.XMLHttpRequest;Cr(!t[oo],'Failed to patch the "XMLHttpRequest" module: already patched.'),globalThis.XMLHttpRequest=pj({emitter:this.emitter,logger:this.logger}),e.info('native "XMLHttpRequest" module patched!',globalThis.XMLHttpRequest.name),Object.defineProperty(globalThis.XMLHttpRequest,oo,{enumerable:!0,configurable:!0,value:!0}),this.subscriptions.push(()=>{Object.defineProperty(globalThis.XMLHttpRequest,oo,{value:void 0}),globalThis.XMLHttpRequest=t,e.info('native "XMLHttpRequest" module restored!',globalThis.XMLHttpRequest.name)})}},Wm=$m;Wm.interceptorSymbol=Symbol("xhr");function gj(e,t){const n=new kc({name:"fallback",interceptors:[new Fm,new Wm]});return n.on("request",async({request:r,requestId:a,controller:o})=>{const i=r.clone(),s=await Am(r,a,e.getRequestHandlers().filter(Gc("RequestHandler")),t,e.emitter,{onMockedResponse(l,{handler:u,parsedResult:c}){t.quiet||e.emitter.once("response:mocked",({response:d})=>{u.log({request:i,response:d,parsedResult:c})})}});s&&o.respondWith(s)}),n.on("response",({response:r,isMockedResponse:a,request:o,requestId:i})=>{e.emitter.emit(a?"response:mocked":"response:bypass",{response:r,request:o,requestId:i})}),n.apply(),n}function yj(e){return async function(n){e.fallbackInterceptor=gj(e,n),Mm({message:"Mocking enabled (fallback mode).",quiet:n.quiet})}}function bj(e){return function(){var n,r;(n=e.fallbackInterceptor)==null||n.dispose(),Nm({quiet:(r=e.startOptions)==null?void 0:r.quiet})}}function kj(){try{const e=new ReadableStream({start:n=>n.close()});return new MessageChannel().port1.postMessage(e,[e]),!0}catch{return!1}}var wj=class extends Kk{constructor(...t){super(...t);Ae(this,"context");Ae(this,"startHandler",null);Ae(this,"stopHandler",null);Ae(this,"listeners");Cr(!Qc(),xe.formatMessage("Failed to execute `setupWorker` in a non-browser environment. Consider using `setupServer` for Node.js environment instead.")),this.listeners=[],this.context=this.createWorkerContext()}createWorkerContext(){const t={isMockingEnabled:!1,startOptions:null,worker:null,getRequestHandlers:()=>this.handlersController.currentHandlers(),registration:null,requests:new Map,emitter:this.emitter,workerChannel:{on:(n,r)=>{this.context.events.addListener(navigator.serviceWorker,"message",a=>{if(a.source!==this.context.worker)return;const o=a.data;o&&o.type===n&&r(a,o)})},send:n=>{var r;(r=this.context.worker)==null||r.postMessage(n)}},events:{addListener:(n,r,a)=>(n.addEventListener(r,a),this.listeners.push({eventType:r,target:n,callback:a}),()=>{n.removeEventListener(r,a)}),removeAllListeners:()=>{for(const{target:n,eventType:r,callback:a}of this.listeners)n.removeEventListener(r,a);this.listeners=[]},once:n=>{const r=[];return new Promise((a,o)=>{const i=s=>{try{const l=s.data;l.type===n&&a(l)}catch(l){o(l)}};r.push(this.context.events.addListener(navigator.serviceWorker,"message",i),this.context.events.addListener(navigator.serviceWorker,"messageerror",o))}).finally(()=>{r.forEach(a=>a())})}},supports:{serviceWorkerApi:!("serviceWorker"in navigator)||location.protocol==="file:",readableStreamTransfer:kj()}};return this.startHandler=t.supports.serviceWorkerApi?yj(t):q0(t),this.stopHandler=t.supports.serviceWorkerApi?bj(t):$0(t),t}async start(t={}){return t.waitUntilReady===!0&&xe.warn('The "waitUntilReady" option has been deprecated. Please remove it from this "worker.start()" call. Follow the recommended Browser integration (https://mswjs.io/docs/integrations/browser) to eliminate any race conditions between the Service Worker registration and any requests made by your application on initial render.'),this.context.startOptions=Sm(W0,t),e0({getUnhandledRequestStrategy:()=>this.context.startOptions.onUnhandledRequest,getHandlers:()=>this.handlersController.currentHandlers(),onMockedConnection:n=>{this.context.startOptions.quiet||t0(n)},onPassthroughConnection(){}}),pc.apply(),this.subscriptions.push(()=>{pc.dispose()}),await this.startHandler(this.context.startOptions,t)}stop(){super.dispose(),this.context.events.removeAllListeners(),this.context.emitter.removeAllListeners(),this.stopHandler()}};function vj(...e){return new wj(...e)}var Ce;(function(e){e.assertEqual=a=>a;function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const o={};for(const i of a)o[i]=i;return o},e.getValidEnumValues=a=>{const o=e.objectKeys(a).filter(s=>typeof a[a[s]]!="number"),i={};for(const s of o)i[s]=a[s];return e.objectValues(i)},e.objectValues=a=>e.objectKeys(a).map(function(o){return a[o]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const o=[];for(const i in a)Object.prototype.hasOwnProperty.call(a,i)&&o.push(i);return o},e.find=(a,o)=>{for(const i of a)if(o(i))return i},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function r(a,o=" | "){return a.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(a,o)=>typeof o=="bigint"?o.toString():o})(Ce||(Ce={}));var tl;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(tl||(tl={}));const ae=Ce.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Bn=e=>{switch(typeof e){case"undefined":return ae.undefined;case"string":return ae.string;case"number":return isNaN(e)?ae.nan:ae.number;case"boolean":return ae.boolean;case"function":return ae.function;case"bigint":return ae.bigint;case"symbol":return ae.symbol;case"object":return Array.isArray(e)?ae.array:e===null?ae.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ae.promise:typeof Map<"u"&&e instanceof Map?ae.map:typeof Set<"u"&&e instanceof Set?ae.set:typeof Date<"u"&&e instanceof Date?ae.date:ae.object;default:return ae.unknown}},K=Ce.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Hm=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Tt extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(o){return o.message},r={_errors:[]},a=o=>{for(const i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(a);else if(i.code==="invalid_return_type")a(i.returnTypeError);else if(i.code==="invalid_arguments")a(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let s=r,l=0;for(;ln.message){const n={},r=[];for(const a of this.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):r.push(t(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Tt.create=e=>new Tt(e);const sa=(e,t)=>{let n;switch(e.code){case K.invalid_type:e.received===ae.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case K.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Ce.jsonStringifyReplacer)}`;break;case K.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ce.joinValues(e.keys,", ")}`;break;case K.invalid_union:n="Invalid input";break;case K.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ce.joinValues(e.options)}`;break;case K.invalid_enum_value:n=`Invalid enum value. Expected ${Ce.joinValues(e.options)}, received '${e.received}'`;break;case K.invalid_arguments:n="Invalid function arguments";break;case K.invalid_return_type:n="Invalid function return type";break;case K.invalid_date:n="Invalid date";break;case K.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Ce.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case K.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case K.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case K.custom:n="Invalid input";break;case K.invalid_intersection_types:n="Intersection results could not be merged";break;case K.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case K.not_finite:n="Number must be finite";break;default:n=t.defaultError,Ce.assertNever(e)}return{message:n}};let Vm=sa;function Jm(e){Vm=e}function Wi(){return Vm}const Hi=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,o=[...n,...a.path||[]],i={...a,path:o};if(a.message!==void 0)return{...a,path:o,message:a.message};let s="";const l=r.filter(u=>!!u).slice().reverse();for(const u of l)s=u(i,{data:t,defaultError:s}).message;return{...a,path:o,message:s}},Km=[];function ne(e,t){const n=Wi(),r=Hi({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===sa?void 0:sa].filter(a=>!!a)});e.common.issues.push(r)}class rt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const a of n){if(a.status==="aborted")return me;a.status==="dirty"&&t.dirty(),r.push(a.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const a of n){const o=await a.key,i=await a.value;r.push({key:o,value:i})}return rt.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const a of n){const{key:o,value:i}=a;if(o.status==="aborted"||i.status==="aborted")return me;o.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof i.value<"u"||a.alwaysSet)&&(r[o.value]=i.value)}return{status:t.value,value:r}}}const me=Object.freeze({status:"aborted"}),ra=e=>({status:"dirty",value:e}),ut=e=>({status:"valid",value:e}),nl=e=>e.status==="aborted",rl=e=>e.status==="dirty",ho=e=>e.status==="valid",mo=e=>typeof Promise<"u"&&e instanceof Promise;function al(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function Gm(e,t,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(e,n):a?a.value=n:t.set(e,n),n}var ue;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ue||(ue={}));var Mi,xi;class gn{constructor(t,n,r,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const kf=(e,t)=>{if(ho(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Tt(e.common.issues);return this._error=n,this._error}}};function ve(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(i,s)=>{var l,u;const{message:c}=e;return i.code==="invalid_enum_value"?{message:c??s.defaultError}:typeof s.data>"u"?{message:(l=c??r)!==null&&l!==void 0?l:s.defaultError}:i.code!=="invalid_type"?{message:s.defaultError}:{message:(u=c??n)!==null&&u!==void 0?u:s.defaultError}},description:a}}class be{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Bn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Bn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new rt,ctx:{common:t.parent.common,data:t.data,parsedType:Bn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(mo(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const a={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Bn(t)},o=this._parseSync({data:t,path:a.path,parent:a});return kf(a,o)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Bn(t)},a=this._parse({data:t,path:r.path,parent:r}),o=await(mo(a)?a:Promise.resolve(a));return kf(r,o)}refine(t,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,o)=>{const i=t(a),s=()=>o.addIssue({code:K.custom,...r(a)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(s(),!1)):i?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,a)=>t(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(t){return new Rt({schema:this,typeName:he.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Yt.create(this,this._def)}nullable(){return Fn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return $t.create(this,this._def)}promise(){return ua.create(this,this._def)}or(t){return bo.create([this,t],this._def)}and(t){return ko.create(this,t,this._def)}transform(t){return new Rt({...ve(this._def),schema:this,typeName:he.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Co({...ve(this._def),innerType:this,defaultValue:n,typeName:he.ZodDefault})}brand(){return new _l({typeName:he.ZodBranded,type:this,...ve(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Eo({...ve(this._def),innerType:this,catchValue:n,typeName:he.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Io.create(this,t)}readonly(){return Ao.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const jj=/^c[^\s-]{8,}$/i,_j=/^[0-9a-z]+$/,Cj=/^[0-9A-HJKMNP-TV-Z]{26}$/,Ej=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Aj=/^[a-z0-9_-]{21}$/i,Sj=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Tj=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Pj="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Wu;const Bj=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Mj=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,xj=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Ym="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Oj=new RegExp(`^${Ym}$`);function Qm(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function Ij(e){return new RegExp(`^${Qm(e)}$`)}function td(e){let t=`${Ym}T${Qm(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Rj(e,t){return!!((t==="v4"||!t)&&Bj.test(e)||(t==="v6"||!t)&&Mj.test(e))}class qt extends be{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ae.string){const o=this._getOrReturnCtx(t);return ne(o,{code:K.invalid_type,expected:ae.string,received:o.parsedType}),me}const r=new rt;let a;for(const o of this._def.checks)if(o.kind==="min")t.data.lengtho.value&&(a=this._getOrReturnCtx(t,a),ne(a,{code:K.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const i=t.data.length>o.value,s=t.data.lengtht.test(a),{validation:n,code:K.invalid_string,...ue.errToObj(r)})}_addCheck(t){return new qt({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ue.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ue.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ue.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ue.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ue.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ue.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ue.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ue.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ue.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ue.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...ue.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...ue.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ue.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ue.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ue.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ue.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ue.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ue.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ue.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ue.errToObj(n)})}nonempty(t){return this.min(1,ue.errToObj(t))}trim(){return new qt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new qt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new qt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new qt({checks:[],typeName:he.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ve(e)})};function Nj(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r,o=parseInt(e.toFixed(a).replace(".","")),i=parseInt(t.toFixed(a).replace(".",""));return o%i/Math.pow(10,a)}class zn extends be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ae.number){const o=this._getOrReturnCtx(t);return ne(o,{code:K.invalid_type,expected:ae.number,received:o.parsedType}),me}let r;const a=new rt;for(const o of this._def.checks)o.kind==="int"?Ce.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ne(r,{code:K.invalid_type,expected:"integer",received:"float",message:o.message}),a.dirty()):o.kind==="min"?(o.inclusive?t.datao.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),ne(r,{code:K.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="multipleOf"?Nj(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),ne(r,{code:K.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ne(r,{code:K.not_finite,message:o.message}),a.dirty()):Ce.assertNever(o);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ue.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ue.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ue.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ue.toString(n))}setLimit(t,n,r,a){return new zn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ue.toString(a)}]})}_addCheck(t){return new zn({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ue.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ue.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ue.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ue.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ue.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ue.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ue.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ue.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ue.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuet.kind==="int"||t.kind==="multipleOf"&&Ce.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.valuenew zn({checks:[],typeName:he.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ve(e)});class Dn extends be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==ae.bigint){const o=this._getOrReturnCtx(t);return ne(o,{code:K.invalid_type,expected:ae.bigint,received:o.parsedType}),me}let r;const a=new rt;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.datao.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),ne(r,{code:K.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ne(r,{code:K.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):Ce.assertNever(o);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ue.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ue.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ue.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ue.toString(n))}setLimit(t,n,r,a){return new Dn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ue.toString(a)}]})}_addCheck(t){return new Dn({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ue.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ue.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ue.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ue.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ue.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Dn({checks:[],typeName:he.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ve(e)})};class po extends be{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ae.boolean){const r=this._getOrReturnCtx(t);return ne(r,{code:K.invalid_type,expected:ae.boolean,received:r.parsedType}),me}return ut(t.data)}}po.create=e=>new po({typeName:he.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ve(e)});class Er extends be{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ae.date){const o=this._getOrReturnCtx(t);return ne(o,{code:K.invalid_type,expected:ae.date,received:o.parsedType}),me}if(isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return ne(o,{code:K.invalid_date}),me}const r=new rt;let a;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()o.value&&(a=this._getOrReturnCtx(t,a),ne(a,{code:K.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):Ce.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Er({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ue.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ue.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew Er({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:he.ZodDate,...ve(e)});class Vi extends be{_parse(t){if(this._getType(t)!==ae.symbol){const r=this._getOrReturnCtx(t);return ne(r,{code:K.invalid_type,expected:ae.symbol,received:r.parsedType}),me}return ut(t.data)}}Vi.create=e=>new Vi({typeName:he.ZodSymbol,...ve(e)});class go extends be{_parse(t){if(this._getType(t)!==ae.undefined){const r=this._getOrReturnCtx(t);return ne(r,{code:K.invalid_type,expected:ae.undefined,received:r.parsedType}),me}return ut(t.data)}}go.create=e=>new go({typeName:he.ZodUndefined,...ve(e)});class yo extends be{_parse(t){if(this._getType(t)!==ae.null){const r=this._getOrReturnCtx(t);return ne(r,{code:K.invalid_type,expected:ae.null,received:r.parsedType}),me}return ut(t.data)}}yo.create=e=>new yo({typeName:he.ZodNull,...ve(e)});class la extends be{constructor(){super(...arguments),this._any=!0}_parse(t){return ut(t.data)}}la.create=e=>new la({typeName:he.ZodAny,...ve(e)});class hr extends be{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ut(t.data)}}hr.create=e=>new hr({typeName:he.ZodUnknown,...ve(e)});class yn extends be{_parse(t){const n=this._getOrReturnCtx(t);return ne(n,{code:K.invalid_type,expected:ae.never,received:n.parsedType}),me}}yn.create=e=>new yn({typeName:he.ZodNever,...ve(e)});class Ji extends be{_parse(t){if(this._getType(t)!==ae.undefined){const r=this._getOrReturnCtx(t);return ne(r,{code:K.invalid_type,expected:ae.void,received:r.parsedType}),me}return ut(t.data)}}Ji.create=e=>new Ji({typeName:he.ZodVoid,...ve(e)});class $t extends be{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),a=this._def;if(n.parsedType!==ae.array)return ne(n,{code:K.invalid_type,expected:ae.array,received:n.parsedType}),me;if(a.exactLength!==null){const i=n.data.length>a.exactLength.value,s=n.data.lengtha.maxLength.value&&(ne(n,{code:K.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,s)=>a.type._parseAsync(new gn(n,i,n.path,s)))).then(i=>rt.mergeArray(r,i));const o=[...n.data].map((i,s)=>a.type._parseSync(new gn(n,i,n.path,s)));return rt.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new $t({...this._def,minLength:{value:t,message:ue.toString(n)}})}max(t,n){return new $t({...this._def,maxLength:{value:t,message:ue.toString(n)}})}length(t,n){return new $t({...this._def,exactLength:{value:t,message:ue.toString(n)}})}nonempty(t){return this.min(1,t)}}$t.create=(e,t)=>new $t({type:e,minLength:null,maxLength:null,exactLength:null,typeName:he.ZodArray,...ve(t)});function eo(e){if(e instanceof Le){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Yt.create(eo(r))}return new Le({...e._def,shape:()=>t})}else return e instanceof $t?new $t({...e._def,type:eo(e.element)}):e instanceof Yt?Yt.create(eo(e.unwrap())):e instanceof Fn?Fn.create(eo(e.unwrap())):e instanceof Xt?Xt.create(e.items.map(t=>eo(t))):e}class Le extends be{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=Ce.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==ae.object){const u=this._getOrReturnCtx(t);return ne(u,{code:K.invalid_type,expected:ae.object,received:u.parsedType}),me}const{status:r,ctx:a}=this._processInputParams(t),{shape:o,keys:i}=this._getCached(),s=[];if(!(this._def.catchall instanceof yn&&this._def.unknownKeys==="strip"))for(const u in a.data)i.includes(u)||s.push(u);const l=[];for(const u of i){const c=o[u],d=a.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new gn(a,d,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof yn){const u=this._def.unknownKeys;if(u==="passthrough")for(const c of s)l.push({key:{status:"valid",value:c},value:{status:"valid",value:a.data[c]}});else if(u==="strict")s.length>0&&(ne(a,{code:K.unrecognized_keys,keys:s}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const c of s){const d=a.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new gn(a,d,a.path,c)),alwaysSet:c in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const u=[];for(const c of l){const d=await c.key,y=await c.value;u.push({key:d,value:y,alwaysSet:c.alwaysSet})}return u}).then(u=>rt.mergeObjectSync(r,u)):rt.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return ue.errToObj,new Le({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var a,o,i,s;const l=(i=(o=(a=this._def).errorMap)===null||o===void 0?void 0:o.call(a,n,r).message)!==null&&i!==void 0?i:r.defaultError;return n.code==="unrecognized_keys"?{message:(s=ue.errToObj(t).message)!==null&&s!==void 0?s:l}:{message:l}}}:{}})}strip(){return new Le({...this._def,unknownKeys:"strip"})}passthrough(){return new Le({...this._def,unknownKeys:"passthrough"})}extend(t){return new Le({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Le({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:he.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Le({...this._def,catchall:t})}pick(t){const n={};return Ce.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Le({...this._def,shape:()=>n})}omit(t){const n={};return Ce.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Le({...this._def,shape:()=>n})}deepPartial(){return eo(this)}partial(t){const n={};return Ce.objectKeys(this.shape).forEach(r=>{const a=this.shape[r];t&&!t[r]?n[r]=a:n[r]=a.optional()}),new Le({...this._def,shape:()=>n})}required(t){const n={};return Ce.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof Yt;)o=o._def.innerType;n[r]=o}}),new Le({...this._def,shape:()=>n})}keyof(){return Zm(Ce.objectKeys(this.shape))}}Le.create=(e,t)=>new Le({shape:()=>e,unknownKeys:"strip",catchall:yn.create(),typeName:he.ZodObject,...ve(t)});Le.strictCreate=(e,t)=>new Le({shape:()=>e,unknownKeys:"strict",catchall:yn.create(),typeName:he.ZodObject,...ve(t)});Le.lazycreate=(e,t)=>new Le({shape:e,unknownKeys:"strip",catchall:yn.create(),typeName:he.ZodObject,...ve(t)});class bo extends be{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function a(o){for(const s of o)if(s.result.status==="valid")return s.result;for(const s of o)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const i=o.map(s=>new Tt(s.ctx.common.issues));return ne(n,{code:K.invalid_union,unionErrors:i}),me}if(n.common.async)return Promise.all(r.map(async o=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(a);{let o;const i=[];for(const l of r){const u={...n,common:{...n.common,issues:[]},parent:null},c=l._parseSync({data:n.data,path:n.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!o&&(o={result:c,ctx:u}),u.common.issues.length&&i.push(u.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const s=i.map(l=>new Tt(l));return ne(n,{code:K.invalid_union,unionErrors:s}),me}}get options(){return this._def.options}}bo.create=(e,t)=>new bo({options:e,typeName:he.ZodUnion,...ve(t)});const Pn=e=>e instanceof vo?Pn(e.schema):e instanceof Rt?Pn(e.innerType()):e instanceof jo?[e.value]:e instanceof Un?e.options:e instanceof _o?Ce.objectValues(e.enum):e instanceof Co?Pn(e._def.innerType):e instanceof go?[void 0]:e instanceof yo?[null]:e instanceof Yt?[void 0,...Pn(e.unwrap())]:e instanceof Fn?[null,...Pn(e.unwrap())]:e instanceof _l||e instanceof Ao?Pn(e.unwrap()):e instanceof Eo?Pn(e._def.innerType):[];class ns extends be{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ae.object)return ne(n,{code:K.invalid_type,expected:ae.object,received:n.parsedType}),me;const r=this.discriminator,a=n.data[r],o=this.optionsMap.get(a);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(ne(n,{code:K.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),me)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const a=new Map;for(const o of n){const i=Pn(o.shape[t]);if(!i.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of i){if(a.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);a.set(s,o)}}return new ns({typeName:he.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:a,...ve(r)})}}function wc(e,t){const n=Bn(e),r=Bn(t);if(e===t)return{valid:!0,data:e};if(n===ae.object&&r===ae.object){const a=Ce.objectKeys(t),o=Ce.objectKeys(e).filter(s=>a.indexOf(s)!==-1),i={...e,...t};for(const s of o){const l=wc(e[s],t[s]);if(!l.valid)return{valid:!1};i[s]=l.data}return{valid:!0,data:i}}else if(n===ae.array&&r===ae.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let o=0;o{if(nl(o)||nl(i))return me;const s=wc(o.value,i.value);return s.valid?((rl(o)||rl(i))&&n.dirty(),{status:n.value,value:s.data}):(ne(r,{code:K.invalid_intersection_types}),me)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,i])=>a(o,i)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ko.create=(e,t,n)=>new ko({left:e,right:t,typeName:he.ZodIntersection,...ve(n)});class Xt extends be{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ae.array)return ne(r,{code:K.invalid_type,expected:ae.array,received:r.parsedType}),me;if(r.data.lengththis._def.items.length&&(ne(r,{code:K.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((i,s)=>{const l=this._def.items[s]||this._def.rest;return l?l._parse(new gn(r,i,r.path,s)):null}).filter(i=>!!i);return r.common.async?Promise.all(o).then(i=>rt.mergeArray(n,i)):rt.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new Xt({...this._def,rest:t})}}Xt.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Xt({items:e,typeName:he.ZodTuple,rest:null,...ve(t)})};class wo extends be{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ae.object)return ne(r,{code:K.invalid_type,expected:ae.object,received:r.parsedType}),me;const a=[],o=this._def.keyType,i=this._def.valueType;for(const s in r.data)a.push({key:o._parse(new gn(r,s,r.path,s)),value:i._parse(new gn(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?rt.mergeObjectAsync(n,a):rt.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof be?new wo({keyType:t,valueType:n,typeName:he.ZodRecord,...ve(r)}):new wo({keyType:qt.create(),valueType:t,typeName:he.ZodRecord,...ve(n)})}}class Ki extends be{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ae.map)return ne(r,{code:K.invalid_type,expected:ae.map,received:r.parsedType}),me;const a=this._def.keyType,o=this._def.valueType,i=[...r.data.entries()].map(([s,l],u)=>({key:a._parse(new gn(r,s,r.path,[u,"key"])),value:o._parse(new gn(r,l,r.path,[u,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const l of i){const u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return me;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),s.set(u.value,c.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const l of i){const u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return me;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),s.set(u.value,c.value)}return{status:n.value,value:s}}}}Ki.create=(e,t,n)=>new Ki({valueType:t,keyType:e,typeName:he.ZodMap,...ve(n)});class Ar extends be{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ae.set)return ne(r,{code:K.invalid_type,expected:ae.set,received:r.parsedType}),me;const a=this._def;a.minSize!==null&&r.data.sizea.maxSize.value&&(ne(r,{code:K.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const o=this._def.valueType;function i(l){const u=new Set;for(const c of l){if(c.status==="aborted")return me;c.status==="dirty"&&n.dirty(),u.add(c.value)}return{status:n.value,value:u}}const s=[...r.data.values()].map((l,u)=>o._parse(new gn(r,l,r.path,u)));return r.common.async?Promise.all(s).then(l=>i(l)):i(s)}min(t,n){return new Ar({...this._def,minSize:{value:t,message:ue.toString(n)}})}max(t,n){return new Ar({...this._def,maxSize:{value:t,message:ue.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Ar.create=(e,t)=>new Ar({valueType:e,minSize:null,maxSize:null,typeName:he.ZodSet,...ve(t)});class ia extends be{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ae.function)return ne(n,{code:K.invalid_type,expected:ae.function,received:n.parsedType}),me;function r(s,l){return Hi({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Wi(),sa].filter(u=>!!u),issueData:{code:K.invalid_arguments,argumentsError:l}})}function a(s,l){return Hi({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Wi(),sa].filter(u=>!!u),issueData:{code:K.invalid_return_type,returnTypeError:l}})}const o={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof ua){const s=this;return ut(async function(...l){const u=new Tt([]),c=await s._def.args.parseAsync(l,o).catch(m=>{throw u.addIssue(r(l,m)),u}),d=await Reflect.apply(i,this,c);return await s._def.returns._def.type.parseAsync(d,o).catch(m=>{throw u.addIssue(a(d,m)),u})})}else{const s=this;return ut(function(...l){const u=s._def.args.safeParse(l,o);if(!u.success)throw new Tt([r(l,u.error)]);const c=Reflect.apply(i,this,u.data),d=s._def.returns.safeParse(c,o);if(!d.success)throw new Tt([a(c,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new ia({...this._def,args:Xt.create(t).rest(hr.create())})}returns(t){return new ia({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new ia({args:t||Xt.create([]).rest(hr.create()),returns:n||hr.create(),typeName:he.ZodFunction,...ve(r)})}}class vo extends be{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}vo.create=(e,t)=>new vo({getter:e,typeName:he.ZodLazy,...ve(t)});class jo extends be{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ne(n,{received:n.data,code:K.invalid_literal,expected:this._def.value}),me}return{status:"valid",value:t.data}}get value(){return this._def.value}}jo.create=(e,t)=>new jo({value:e,typeName:he.ZodLiteral,...ve(t)});function Zm(e,t){return new Un({values:e,typeName:he.ZodEnum,...ve(t)})}class Un extends be{constructor(){super(...arguments),Mi.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ne(n,{expected:Ce.joinValues(r),received:n.parsedType,code:K.invalid_type}),me}if(al(this,Mi,"f")||Gm(this,Mi,new Set(this._def.values),"f"),!al(this,Mi,"f").has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return ne(n,{received:n.data,code:K.invalid_enum_value,options:r}),me}return ut(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Un.create(t,{...this._def,...n})}exclude(t,n=this._def){return Un.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Mi=new WeakMap;Un.create=Zm;class _o extends be{constructor(){super(...arguments),xi.set(this,void 0)}_parse(t){const n=Ce.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==ae.string&&r.parsedType!==ae.number){const a=Ce.objectValues(n);return ne(r,{expected:Ce.joinValues(a),received:r.parsedType,code:K.invalid_type}),me}if(al(this,xi,"f")||Gm(this,xi,new Set(Ce.getValidEnumValues(this._def.values)),"f"),!al(this,xi,"f").has(t.data)){const a=Ce.objectValues(n);return ne(r,{received:r.data,code:K.invalid_enum_value,options:a}),me}return ut(t.data)}get enum(){return this._def.values}}xi=new WeakMap;_o.create=(e,t)=>new _o({values:e,typeName:he.ZodNativeEnum,...ve(t)});class ua extends be{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ae.promise&&n.common.async===!1)return ne(n,{code:K.invalid_type,expected:ae.promise,received:n.parsedType}),me;const r=n.parsedType===ae.promise?n.data:Promise.resolve(n.data);return ut(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ua.create=(e,t)=>new ua({type:e,typeName:he.ZodPromise,...ve(t)});class Rt extends be{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===he.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=this._def.effect||null,o={addIssue:i=>{ne(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),a.type==="preprocess"){const i=a.transform(r.data,o);if(r.common.async)return Promise.resolve(i).then(async s=>{if(n.value==="aborted")return me;const l=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return l.status==="aborted"?me:l.status==="dirty"||n.value==="dirty"?ra(l.value):l});{if(n.value==="aborted")return me;const s=this._def.schema._parseSync({data:i,path:r.path,parent:r});return s.status==="aborted"?me:s.status==="dirty"||n.value==="dirty"?ra(s.value):s}}if(a.type==="refinement"){const i=s=>{const l=a.refinement(s,o);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?me:(s.status==="dirty"&&n.dirty(),i(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?me:(s.status==="dirty"&&n.dirty(),i(s.value).then(()=>({status:n.value,value:s.value}))))}if(a.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!ho(i))return i;const s=a.transform(i.value,o);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>ho(i)?Promise.resolve(a.transform(i.value,o)).then(s=>({status:n.value,value:s})):i);Ce.assertNever(a)}}Rt.create=(e,t,n)=>new Rt({schema:e,typeName:he.ZodEffects,effect:t,...ve(n)});Rt.createWithPreprocess=(e,t,n)=>new Rt({schema:t,effect:{type:"preprocess",transform:e},typeName:he.ZodEffects,...ve(n)});class Yt extends be{_parse(t){return this._getType(t)===ae.undefined?ut(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Yt.create=(e,t)=>new Yt({innerType:e,typeName:he.ZodOptional,...ve(t)});class Fn extends be{_parse(t){return this._getType(t)===ae.null?ut(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Fn.create=(e,t)=>new Fn({innerType:e,typeName:he.ZodNullable,...ve(t)});class Co extends be{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===ae.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Co.create=(e,t)=>new Co({innerType:e,typeName:he.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ve(t)});class Eo extends be{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return mo(a)?a.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Tt(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Tt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Eo.create=(e,t)=>new Eo({innerType:e,typeName:he.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ve(t)});class Gi extends be{_parse(t){if(this._getType(t)!==ae.nan){const r=this._getOrReturnCtx(t);return ne(r,{code:K.invalid_type,expected:ae.nan,received:r.parsedType}),me}return{status:"valid",value:t.data}}}Gi.create=e=>new Gi({typeName:he.ZodNaN,...ve(e)});const Xm=Symbol("zod_brand");class _l extends be{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Io extends be{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?me:o.status==="dirty"?(n.dirty(),ra(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?me:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(t,n){return new Io({in:t,out:n,typeName:he.ZodPipeline})}}class Ao extends be{_parse(t){const n=this._def.innerType._parse(t),r=a=>(ho(a)&&(a.value=Object.freeze(a.value)),a);return mo(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}Ao.create=(e,t)=>new Ao({innerType:e,typeName:he.ZodReadonly,...ve(t)});function nd(e,t={},n){return e?la.create().superRefine((r,a)=>{var o,i;if(!e(r)){const s=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,l=(i=(o=s.fatal)!==null&&o!==void 0?o:n)!==null&&i!==void 0?i:!0,u=typeof s=="string"?{message:s}:s;a.addIssue({code:"custom",...u,fatal:l})}}):la.create()}const ep={object:Le.lazycreate};var he;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(he||(he={}));const tp=(e,t={message:`Input not instance of ${e.name}`})=>nd(n=>n instanceof e,t),rd=qt.create,ad=zn.create,np=Gi.create,rp=Dn.create,od=po.create,ap=Er.create,op=Vi.create,ip=go.create,sp=yo.create,lp=la.create,up=hr.create,cp=yn.create,dp=Ji.create,fp=$t.create,hp=Le.create,mp=Le.strictCreate,pp=bo.create,gp=ns.create,yp=ko.create,bp=Xt.create,kp=wo.create,wp=Ki.create,vp=Ar.create,jp=ia.create,_p=vo.create,Cp=jo.create,Ep=Un.create,Ap=_o.create,Sp=ua.create,ol=Rt.create,Tp=Yt.create,Pp=Fn.create,Bp=Rt.createWithPreprocess,Mp=Io.create,xp=()=>rd().optional(),Op=()=>ad().optional(),Ip=()=>od().optional(),Rp={string:e=>qt.create({...e,coerce:!0}),number:e=>zn.create({...e,coerce:!0}),boolean:e=>po.create({...e,coerce:!0}),bigint:e=>Dn.create({...e,coerce:!0}),date:e=>Er.create({...e,coerce:!0})},Np=me;var He=Object.freeze({__proto__:null,defaultErrorMap:sa,setErrorMap:Jm,getErrorMap:Wi,makeIssue:Hi,EMPTY_PATH:Km,addIssueToContext:ne,ParseStatus:rt,INVALID:me,DIRTY:ra,OK:ut,isAborted:nl,isDirty:rl,isValid:ho,isAsync:mo,get util(){return Ce},get objectUtil(){return tl},ZodParsedType:ae,getParsedType:Bn,ZodType:be,datetimeRegex:td,ZodString:qt,ZodNumber:zn,ZodBigInt:Dn,ZodBoolean:po,ZodDate:Er,ZodSymbol:Vi,ZodUndefined:go,ZodNull:yo,ZodAny:la,ZodUnknown:hr,ZodNever:yn,ZodVoid:Ji,ZodArray:$t,ZodObject:Le,ZodUnion:bo,ZodDiscriminatedUnion:ns,ZodIntersection:ko,ZodTuple:Xt,ZodRecord:wo,ZodMap:Ki,ZodSet:Ar,ZodFunction:ia,ZodLazy:vo,ZodLiteral:jo,ZodEnum:Un,ZodNativeEnum:_o,ZodPromise:ua,ZodEffects:Rt,ZodTransformer:Rt,ZodOptional:Yt,ZodNullable:Fn,ZodDefault:Co,ZodCatch:Eo,ZodNaN:Gi,BRAND:Xm,ZodBranded:_l,ZodPipeline:Io,ZodReadonly:Ao,custom:nd,Schema:be,ZodSchema:be,late:ep,get ZodFirstPartyTypeKind(){return he},coerce:Rp,any:lp,array:fp,bigint:rp,boolean:od,date:ap,discriminatedUnion:gp,effect:ol,enum:Ep,function:jp,instanceof:tp,intersection:yp,lazy:_p,literal:Cp,map:wp,nan:np,nativeEnum:Ap,never:cp,null:sp,nullable:Pp,number:ad,object:hp,oboolean:Ip,onumber:Op,optional:Tp,ostring:xp,pipeline:Mp,preprocess:Bp,promise:Sp,record:kp,set:vp,strictObject:mp,string:rd,symbol:op,transformer:ol,tuple:bp,undefined:ip,union:pp,unknown:up,void:dp,NEVER:Np,ZodIssueCode:K,quotelessJson:Hm,ZodError:Tt});const zj=Object.freeze(Object.defineProperty({__proto__:null,BRAND:Xm,DIRTY:ra,EMPTY_PATH:Km,INVALID:me,NEVER:Np,OK:ut,ParseStatus:rt,Schema:be,ZodAny:la,ZodArray:$t,ZodBigInt:Dn,ZodBoolean:po,ZodBranded:_l,ZodCatch:Eo,ZodDate:Er,ZodDefault:Co,ZodDiscriminatedUnion:ns,ZodEffects:Rt,ZodEnum:Un,ZodError:Tt,get ZodFirstPartyTypeKind(){return he},ZodFunction:ia,ZodIntersection:ko,ZodIssueCode:K,ZodLazy:vo,ZodLiteral:jo,ZodMap:Ki,ZodNaN:Gi,ZodNativeEnum:_o,ZodNever:yn,ZodNull:yo,ZodNullable:Fn,ZodNumber:zn,ZodObject:Le,ZodOptional:Yt,ZodParsedType:ae,ZodPipeline:Io,ZodPromise:ua,ZodReadonly:Ao,ZodRecord:wo,ZodSchema:be,ZodSet:Ar,ZodString:qt,ZodSymbol:Vi,ZodTransformer:Rt,ZodTuple:Xt,ZodType:be,ZodUndefined:go,ZodUnion:bo,ZodUnknown:hr,ZodVoid:Ji,addIssueToContext:ne,any:lp,array:fp,bigint:rp,boolean:od,coerce:Rp,custom:nd,date:ap,datetimeRegex:td,default:He,defaultErrorMap:sa,discriminatedUnion:gp,effect:ol,enum:Ep,function:jp,getErrorMap:Wi,getParsedType:Bn,instanceof:tp,intersection:yp,isAborted:nl,isAsync:mo,isDirty:rl,isValid:ho,late:ep,lazy:_p,literal:Cp,makeIssue:Hi,map:wp,nan:np,nativeEnum:Ap,never:cp,null:sp,nullable:Pp,number:ad,object:hp,get objectUtil(){return tl},oboolean:Ip,onumber:Op,optional:Tp,ostring:xp,pipeline:Mp,preprocess:Bp,promise:Sp,quotelessJson:Hm,record:kp,set:vp,setErrorMap:Jm,strictObject:mp,string:rd,symbol:op,transformer:ol,tuple:bp,undefined:ip,union:pp,unknown:up,get util(){return Ce},void:dp,z:He},Symbol.toStringTag,{value:"Module"})),Dj=He.object({address:He.string(),network:He.enum([Li.MAINNET,Li.TESTNET]),public_key:He.string(),proof:He.object({timestamp:He.number(),domain:He.object({lengthBytes:He.number(),value:He.string()}),payload:He.string(),signature:He.string(),state_init:He.string()})});var Ue={},de={},Nt={};const Uj=Symbol.for("nodejs.util.inspect.custom");var Ro=Uj,No={};Object.defineProperty(No,"__esModule",{value:!0});No.crc16=void 0;function Fj(e){let n=0;const r=Buffer.alloc(e.length+2);r.set(e);for(let a of r){let o=128;for(;o>0;)n<<=1,a&o&&(n+=1),o>>=1,n>65535&&(n&=65535,n^=4129)}return Buffer.from([Math.floor(n/256),n%256])}No.crc16=Fj;var Lj=re&&re.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},zp;Object.defineProperty(Nt,"__esModule",{value:!0});Nt.address=Nt.Address=void 0;const qj=Lj(Ro),Dp=No,vc=17,Up=81,jc=128;function wf(e){if(typeof e=="string"&&!id.isFriendly(e))throw new Error("Unknown address type");const t=Buffer.isBuffer(e)?e:Buffer.from(e,"base64");if(t.length!==36)throw new Error("Unknown address type: byte length is not equal to 36");const n=t.subarray(0,34),r=t.subarray(34,36),a=(0,Dp.crc16)(n);if(!(a[0]===r[0]&&a[1]===r[1]))throw new Error("Invalid checksum: "+e);let o=n[0],i=!1,s=!1;if(o&jc&&(i=!0,o=o^jc),o!==vc&&o!==Up)throw"Unknown address tag";s=o===vc;let l=null;n[1]===255?l=-1:l=n[1];const u=n.subarray(2,34);return{isTestOnly:i,isBounceable:s,workchain:l,hashPart:u}}let id=class ir{static isAddress(t){return t instanceof ir}static isFriendly(t){return!(t.length!==48||!/[A-Za-z0-9+/_-]+/.test(t))}static isRaw(t){if(t.indexOf(":")===-1)return!1;let[n,r]=t.split(":");return!(!Number.isInteger(parseFloat(n))||!/[a-f0-9]+/.test(r.toLowerCase())||r.length!==64)}static normalize(t){return typeof t=="string"?ir.parse(t).toString():t.toString()}static parse(t){if(ir.isFriendly(t))return this.parseFriendly(t).address;if(ir.isRaw(t))return this.parseRaw(t);throw new Error("Unknown address type: "+t)}static parseRaw(t){let n=parseInt(t.split(":")[0]),r=Buffer.from(t.split(":")[1],"hex");return new ir(n,r)}static parseFriendly(t){if(Buffer.isBuffer(t)){let n=wf(t);return{isBounceable:n.isBounceable,isTestOnly:n.isTestOnly,address:new ir(n.workchain,n.hashPart)}}else{let n=t.replace(/\-/g,"+").replace(/_/g,"/"),r=wf(n);return{isBounceable:r.isBounceable,isTestOnly:r.isTestOnly,address:new ir(r.workchain,r.hashPart)}}}constructor(t,n){if(this.toRawString=()=>this.workChain+":"+this.hash.toString("hex"),this.toRaw=()=>{const r=Buffer.alloc(36);return r.set(this.hash),r.set([this.workChain,this.workChain,this.workChain,this.workChain],32),r},this.toStringBuffer=r=>{let a=r&&r.testOnly!==void 0?r.testOnly:!1,i=(r&&r.bounceable!==void 0?r.bounceable:!0)?vc:Up;a&&(i|=jc);const s=Buffer.alloc(34);s[0]=i,s[1]=this.workChain,s.set(this.hash,2);const l=Buffer.alloc(36);return l.set(s),l.set((0,Dp.crc16)(s),34),l},this.toString=r=>{let a=r&&r.urlSafe!==void 0?r.urlSafe:!0,o=this.toStringBuffer(r);return a?o.toString("base64").replace(/\+/g,"-").replace(/\//g,"_"):o.toString("base64")},this[zp]=()=>this.toString(),n.length!==32)throw new Error("Invalid address hash length: "+n.length);this.workChain=t,this.hash=n,Object.freeze(this)}equals(t){return t.workChain!==this.workChain?!1:t.hash.equals(this.hash)}};Nt.Address=id;zp=qj.default;function $j(e){return id.parse(e)}Nt.address=$j;var zo={},Wj=re&&re.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Fp;Object.defineProperty(zo,"__esModule",{value:!0});zo.ExternalAddress=void 0;const Hj=Wj(Ro);class sd{static isAddress(t){return t instanceof sd}constructor(t,n){this[Fp]=()=>this.toString(),this.value=t,this.bits=n}toString(){return`External<${this.bits}:${this.value}>`}}zo.ExternalAddress=sd;Fp=Hj.default;var Cl={},ca={};Object.defineProperty(ca,"__esModule",{value:!0});ca.base32Decode=ca.base32Encode=void 0;const _c="abcdefghijklmnopqrstuvwxyz234567";function Vj(e){const t=e.byteLength;let n=0,r=0,a="";for(let o=0;o=5;)a+=_c[r>>>n-5&31],n-=5;return n>0&&(a+=_c[r<<5-n&31]),a}ca.base32Encode=Vj;function Jj(e,t){const n=e.indexOf(t);if(n===-1)throw new Error("Invalid character found: "+t);return n}function Kj(e){let t;t=e.toLowerCase();const{length:n}=t;let r=0,a=0,o=0;const i=Buffer.alloc(n*5/8|0);for(let s=0;s=8&&(i[o++]=a>>>r-8&255,r-=8);return i}ca.base32Decode=Kj;var Gj=re&&re.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Lp;Object.defineProperty(Cl,"__esModule",{value:!0});Cl.ADNLAddress=void 0;const Yj=Gj(Ro),vf=ca,jf=No;class il{static parseFriendly(t){if(t.length!==55)throw Error("Invalid address");t="f"+t;let n=(0,vf.base32Decode)(t);if(n[0]!==45)throw Error("Invalid address");let r=n.slice(33);if(!(0,jf.crc16)(n.slice(0,33)).equals(r))throw Error("Invalid address");return new il(n.slice(1,33))}static parseRaw(t){const n=Buffer.from(t,"base64");return new il(n)}constructor(t){if(this.toRaw=()=>this.address.toString("hex").toUpperCase(),this.toString=()=>{let n=Buffer.concat([Buffer.from([45]),this.address]),r=(0,jf.crc16)(n);return n=Buffer.concat([n,r]),(0,vf.base32Encode)(n).slice(1)},this[Lp]=()=>this.toString(),t.length!==32)throw Error("Invalid address");this.address=t}equals(t){return this.address.equals(t.address)}}Cl.ADNLAddress=il;Lp=Yj.default;var El={},Vr={},li={},ui={},Jr={},_f;function Al(){if(_f)return Jr;_f=1,Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.paddedBufferToBits=Jr.bitsToPaddedBuffer=void 0;const e=Sl(),t=Lr();function n(a){let o=new e.BitBuilder(Math.ceil(a.length/8)*8);o.writeBits(a);let i=Math.ceil(a.length/8)*8-a.length;for(let s=0;s=0;i--)if(a[i]!==0){const s=a[i];let l=s&-s;l&1||(l=Math.log2(l)+1),i>0&&(o=i<<3),o+=8-l;break}return new t.BitString(a,0,o)}return Jr.paddedBufferToBits=r,Jr}var Cf;function Lr(){if(Cf)return ui;Cf=1;var e=re&&re.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t;Object.defineProperty(ui,"__esModule",{value:!0}),ui.BitString=void 0;const n=Al(),r=e(Ro);let a=class qs{static isBitString(i){return i instanceof qs}constructor(i,s,l){if(this[t]=()=>this.toString(),l<0)throw new Error(`Length ${l} is out of bounds`);this._length=l,this._data=i,this._offset=s}get length(){return this._length}at(i){if(i>=this._length)throw new Error(`Index ${i} > ${this._length} is out of bounds`);if(i<0)throw new Error(`Index ${i} < 0 is out of bounds`);let s=this._offset+i>>3,l=7-(this._offset+i)%8;return(this._data[s]&1<this._length)throw new Error(`Offset(${i}) > ${this._length} is out of bounds`);if(i<0)throw new Error(`Offset(${i}) < 0 is out of bounds`);if(s===0)return qs.EMPTY;if(i+s>this._length)throw new Error(`Offset ${i} + Length ${s} > ${this._length} is out of bounds`);return new qs(this._data,this._offset+i,s)}subbuffer(i,s){if(i>this._length)throw new Error(`Offset ${i} is out of bounds`);if(i<0)throw new Error(`Offset ${i} is out of bounds`);if(i+s>this._length)throw new Error(`Offset + Lenght = ${i+s} is out of bounds`);if(s%8!==0||(this._offset+i)%8!==0)return null;let l=this._offset+i>>3,u=l+(s>>3);return this._data.subarray(l,u)}equals(i){if(this._length!==i._length)return!1;for(let s=0;sthis._buffer.length*8)throw new Error("BitBuilder overflow");(typeof o=="boolean"&&o===!0||typeof o=="number"&&o>0)&&(this._buffer[i/8|0]|=1<<7-i%8),this._length++}writeBits(o){for(let i=0;ithis._buffer.length*8)throw new Error("BitBuilder overflow");o.copy(this._buffer,this._length/8),this._length+=o.length*8}else for(let i=0;i=l)throw Error(`bitLength is too small for a value ${o}. Got ${i}`);if(this._length+i>this._buffer.length*8)throw new Error("BitBuilder overflow");const u=8-this._length%8;if(u>0){const c=Math.floor(this._length/8);if(i>BigInt(i-u));this._buffer[c]|=d,this._length+=u}}for(i-=u;i>0;)i>=8?(this._buffer[this._length/8]=Number(s>>BigInt(i-8)&0xffn),this._length+=8,i-=8):(this._buffer[this._length/8]=Number(s<=l)throw Error(`value is out of range for ${i} bits. Got ${o}`);s<0?(this.writeBit(!0),s=l+s):this.writeBit(!1),this.writeUint(s,i-1)}writeVarUint(o,i){let s=BigInt(o);if(i<0||!Number.isSafeInteger(i))throw Error(`invalid bit length. Got ${i}`);if(s<0)throw Error(`value is negative. Got ${o}`);if(s===0n){this.writeUint(0,i);return}const l=Math.ceil(s.toString(2).length/8),u=l*8;this.writeUint(l,i),this.writeUint(s,u)}writeVarInt(o,i){let s=BigInt(o);if(i<0||!Number.isSafeInteger(i))throw Error(`invalid bit length. Got ${i}`);if(s===0n){this.writeUint(0,i);return}let l=s>0?s:-s;const u=1+Math.ceil(l.toString(2).length/8),c=u*8;this.writeUint(u,i),this.writeInt(s,c)}writeCoins(o){this.writeVarUint(o,4)}writeAddress(o){if(o==null){this.writeUint(0,2);return}if(e.Address.isAddress(o)){this.writeUint(2,2),this.writeUint(0,1),this.writeInt(o.workChain,8),this.writeBuffer(o.hash);return}if(t.ExternalAddress.isAddress(o)){this.writeUint(1,2),this.writeUint(o.bits,9),this.writeUint(o.value,o.bits);return}throw Error(`Invalid address. Got ${o}`)}build(){return new n.BitString(this._buffer,0,this._length)}buffer(){if(this._length%8!==0)throw new Error("BitBuilder buffer is not byte aligned");return this._buffer.subarray(0,this._length/8)}};return li.BitBuilder=r,li}var ci={},qr={};Object.defineProperty(qr,"__esModule",{value:!0});qr.CellType=void 0;var Af;(function(e){e[e.Ordinary=-1]="Ordinary",e[e.PrunedBranch=1]="PrunedBranch",e[e.Library=2]="Library",e[e.MerkleProof=3]="MerkleProof",e[e.MerkleUpdate=4]="MerkleUpdate"})(Af||(qr.CellType=Af={}));var di={},fi={},hi={},Tl={};Object.defineProperty(Tl,"__esModule",{value:!0});Tl.readUnaryLength=void 0;function Qj(e){let t=0;for(;e.loadBit();)t++;return t}Tl.readUnaryLength=Qj;var Sf;function ld(){if(Sf)return hi;Sf=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.generateMerkleProof=void 0;const e=Ze(),t=Tl;function n(i){return(0,e.beginCell)().storeUint(1,8).storeUint(1,8).storeBuffer(i.hash(0)).storeUint(i.depth(0),16).endCell({exotic:!0})}function r(i){return(0,e.beginCell)().storeUint(3,8).storeBuffer(i.hash(0)).storeUint(i.depth(0),16).storeRef(i).endCell({exotic:!0})}function a(i,s,l,u){const c=s.asCell();let d=s.loadBit()?1:0,y=0,m=i;if(d===0){y=(0,t.readUnaryLength)(s);for(let p=0;p0&&h.storeUint(BigInt("0b"+b),b.length),h}ft.writeLabelShort=s;function l(b){return 1+b.length+1+b.length}function u(b,h,C){C.storeBit(1),C.storeBit(0);let _=Math.ceil(Math.log2(h+1));return C.storeUint(b.length,_),b.length>0&&C.storeUint(BigInt("0b"+b),b.length),C}ft.writeLabelLong=u;function c(b,h){return 1+1+Math.ceil(Math.log2(h+1))+b.length}function d(b,h,C,_){_.storeBit(1),_.storeBit(1),_.storeBit(b);let x=Math.ceil(Math.log2(C+1));_.storeUint(h,x)}ft.writeLabelSame=d;function y(b){return 1+1+1+Math.ceil(Math.log2(b+1))}function m(b){if(b.length===0||b.length===1)return!0;for(let h=1;h(0,l.deserializeInternalKey)(R))}values(){return Array.from(this._map.values())}store(R,B,V){if(this._map.size===0)R.storeBit(0);else{let ie=this._key;B!=null&&(ie=B);let se=this._value;if(V!=null&&(se=V),!ie)throw Error("Key serializer is not defined");if(!se)throw Error("Value serializer is not defined");let M=new Map;for(const[Me,qe]of this._map)M.set(ie.serialize((0,l.deserializeInternalKey)(Me)),qe);R.storeBit(1);let Oe=(0,t.beginCell)();(0,s.serializeDict)(M,ie.bits,se.serialize,Oe),R.storeRef(Oe.endCell())}}storeDirect(R,B,V){if(this._map.size===0)throw Error("Cannot store empty dictionary directly");let ie=this._key;B!=null&&(ie=B);let se=this._value;if(V!=null&&(se=V),!ie)throw Error("Key serializer is not defined");if(!se)throw Error("Value serializer is not defined");let M=new Map;for(const[Oe,Me]of this._map)M.set(ie.serialize((0,l.deserializeInternalKey)(Oe)),Me);(0,s.serializeDict)(M,ie.bits,se.serialize,R)}generateMerkleProof(R){return(0,a.generateMerkleProof)(this,R,this._key)}generateMerkleUpdate(R,B){return(0,o.generateMerkleUpdate)(this,R,this._key,B)}};fi.Dictionary=u,u.Keys={Address:()=>c(),BigInt:N=>d(N),Int:N=>y(N),BigUint:N=>m(N),Uint:N=>p(N),Buffer:N=>f(N),BitString:N=>k(N)},u.Values={BigInt:N=>A(N),Int:N=>T(N),BigVarInt:N=>b(N),BigUint:N=>_(N),Uint:N=>C(N),BigVarUint:N=>h(N),Bool:()=>x(),Address:()=>H(),Cell:()=>L(),Buffer:N=>ee(N),BitString:N=>ce(N),Dictionary:(N,R)=>G(N,R)};function c(){return{bits:267,serialize:N=>{if(!e.Address.isAddress(N))throw Error("Key is not an address");return(0,t.beginCell)().storeAddress(N).endCell().beginParse().preloadUintBig(267)},parse:N=>(0,t.beginCell)().storeUint(N,267).endCell().beginParse().loadAddress()}}function d(N){return{bits:N,serialize:R=>{if(typeof R!="bigint")throw Error("Key is not a bigint");return(0,t.beginCell)().storeInt(R,N).endCell().beginParse().loadUintBig(N)},parse:R=>(0,t.beginCell)().storeUint(R,N).endCell().beginParse().loadIntBig(N)}}function y(N){return{bits:N,serialize:R=>{if(typeof R!="number")throw Error("Key is not a number");if(!Number.isSafeInteger(R))throw Error("Key is not a safe integer: "+R);return(0,t.beginCell)().storeInt(R,N).endCell().beginParse().loadUintBig(N)},parse:R=>(0,t.beginCell)().storeUint(R,N).endCell().beginParse().loadInt(N)}}function m(N){return{bits:N,serialize:R=>{if(typeof R!="bigint")throw Error("Key is not a bigint");if(R<0)throw Error("Key is negative: "+R);return(0,t.beginCell)().storeUint(R,N).endCell().beginParse().loadUintBig(N)},parse:R=>(0,t.beginCell)().storeUint(R,N).endCell().beginParse().loadUintBig(N)}}function p(N){return{bits:N,serialize:R=>{if(typeof R!="number")throw Error("Key is not a number");if(!Number.isSafeInteger(R))throw Error("Key is not a safe integer: "+R);if(R<0)throw Error("Key is negative: "+R);return(0,t.beginCell)().storeUint(R,N).endCell().beginParse().loadUintBig(N)},parse:R=>Number((0,t.beginCell)().storeUint(R,N).endCell().beginParse().loadUint(N))}}function f(N){return{bits:N*8,serialize:R=>{if(!Buffer.isBuffer(R))throw Error("Key is not a buffer");return(0,t.beginCell)().storeBuffer(R).endCell().beginParse().loadUintBig(N*8)},parse:R=>(0,t.beginCell)().storeUint(R,N*8).endCell().beginParse().loadBuffer(N)}}function k(N){return{bits:N,serialize:R=>{if(!r.BitString.isBitString(R))throw Error("Key is not a BitString");return(0,t.beginCell)().storeBits(R).endCell().beginParse().loadUintBig(N)},parse:R=>(0,t.beginCell)().storeUint(R,N).endCell().beginParse().loadBits(N)}}function T(N){return{serialize:(R,B)=>{B.storeInt(R,N)},parse:R=>R.loadInt(N)}}function A(N){return{serialize:(R,B)=>{B.storeInt(R,N)},parse:R=>R.loadIntBig(N)}}function b(N){return{serialize:(R,B)=>{B.storeVarInt(R,N)},parse:R=>R.loadVarIntBig(N)}}function h(N){return{serialize:(R,B)=>{B.storeVarUint(R,N)},parse:R=>R.loadVarUintBig(N)}}function C(N){return{serialize:(R,B)=>{B.storeUint(R,N)},parse:R=>R.loadUint(N)}}function _(N){return{serialize:(R,B)=>{B.storeUint(R,N)},parse:R=>R.loadUintBig(N)}}function x(){return{serialize:(N,R)=>{R.storeBit(N)},parse:N=>N.loadBit()}}function H(){return{serialize:(N,R)=>{R.storeAddress(N)},parse:N=>N.loadAddress()}}function L(){return{serialize:(N,R)=>{R.storeRef(N)},parse:N=>N.loadRef()}}function G(N,R){return{serialize:(B,V)=>{B.store(V)},parse:B=>u.load(N,R,B)}}function ee(N){return{serialize:(R,B)=>{if(R.length!==N)throw Error("Invalid buffer size");B.storeBuffer(R)},parse:R=>R.loadBuffer(N)}}function ce(N){return{serialize:(R,B)=>{if(R.length!==N)throw Error("Invalid BitString size");B.storeBits(R)},parse:R=>R.loadBits(N)}}return fi}var En={},Mf;function Wp(){if(Mf)return En;Mf=1,Object.defineProperty(En,"__esModule",{value:!0}),En.writeString=En.stringToCell=En.readString=void 0;const e=Ze();function t(i){if(i.remainingBits%8!==0)throw new Error(`Invalid string length: ${i.remainingBits}`);if(i.remainingRefs!==0&&i.remainingRefs!==1)throw new Error(`invalid number of refs: ${i.remainingRefs}`);let s;return i.remainingBits===0?s=Buffer.alloc(0):s=i.loadBuffer(i.remainingBits/8),i.remainingRefs===1&&(s=Buffer.concat([s,t(i.loadRef().beginParse())])),s}function n(i){return t(i).toString()}En.readString=n;function r(i,s){if(i.length>0){let l=Math.floor(s.availableBits/8);if(i.length>l){let u=i.subarray(0,l),c=i.subarray(l);s=s.storeBuffer(u);let d=(0,e.beginCell)();r(c,d),s=s.storeRef(d.endCell())}else s=s.storeBuffer(i)}}function a(i){let s=(0,e.beginCell)();return r(Buffer.from(i),s),s.endCell()}En.stringToCell=a;function o(i,s){r(Buffer.from(i),s)}return En.writeString=o,En}var xf;function ud(){if(xf)return di;xf=1;var e=re&&re.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t;Object.defineProperty(di,"__esModule",{value:!0}),di.Slice=void 0;const n=e(Ro),r=$a(),a=Ze(),o=Wp();let i=class Ac{constructor(l,u){this[t]=()=>this.toString(),this._reader=l.clone(),this._refs=[...u],this._refsOffset=0}get remainingBits(){return this._reader.remaining}get offsetBits(){return this._reader.offset}get remainingRefs(){return this._refs.length-this._refsOffset}get offsetRefs(){return this._refsOffset}skip(l){return this._reader.skip(l),this}loadBit(){return this._reader.loadBit()}preloadBit(){return this._reader.preloadBit()}loadBoolean(){return this.loadBit()}loadMaybeBoolean(){return this.loadBit()?this.loadBoolean():null}loadBits(l){return this._reader.loadBits(l)}preloadBits(l){return this._reader.preloadBits(l)}loadUint(l){return this._reader.loadUint(l)}loadUintBig(l){return this._reader.loadUintBig(l)}preloadUint(l){return this._reader.preloadUint(l)}preloadUintBig(l){return this._reader.preloadUintBig(l)}loadMaybeUint(l){return this.loadBit()?this.loadUint(l):null}loadMaybeUintBig(l){return this.loadBit()?this.loadUintBig(l):null}loadInt(l){return this._reader.loadInt(l)}loadIntBig(l){return this._reader.loadIntBig(l)}preloadInt(l){return this._reader.preloadInt(l)}preloadIntBig(l){return this._reader.preloadIntBig(l)}loadMaybeInt(l){return this.loadBit()?this.loadInt(l):null}loadMaybeIntBig(l){return this.loadBit()?this.loadIntBig(l):null}loadVarUint(l){return this._reader.loadVarUint(l)}loadVarUintBig(l){return this._reader.loadVarUintBig(l)}preloadVarUint(l){return this._reader.preloadVarUint(l)}preloadVarUintBig(l){return this._reader.preloadVarUintBig(l)}loadVarInt(l){return this._reader.loadVarInt(l)}loadVarIntBig(l){return this._reader.loadVarIntBig(l)}preloadVarInt(l){return this._reader.preloadVarInt(l)}preloadVarIntBig(l){return this._reader.preloadVarIntBig(l)}loadCoins(){return this._reader.loadCoins()}preloadCoins(){return this._reader.preloadCoins()}loadMaybeCoins(){return this._reader.loadBit()?this._reader.loadCoins():null}loadAddress(){return this._reader.loadAddress()}loadMaybeAddress(){return this._reader.loadMaybeAddress()}loadExternalAddress(){return this._reader.loadExternalAddress()}loadMaybeExternalAddress(){return this._reader.loadMaybeExternalAddress()}loadAddressAny(){return this._reader.loadAddressAny()}loadRef(){if(this._refsOffset>=this._refs.length)throw new Error("No more references");return this._refs[this._refsOffset++]}preloadRef(){if(this._refsOffset>=this._refs.length)throw new Error("No more references");return this._refs[this._refsOffset]}loadMaybeRef(){return this.loadBit()?this.loadRef():null}preloadMaybeRef(){return this.preloadBit()?this.preloadRef():null}loadBuffer(l){return this._reader.loadBuffer(l)}preloadBuffer(l){return this._reader.preloadBuffer(l)}loadStringTail(){return(0,o.readString)(this)}loadMaybeStringTail(){return this.loadBit()?(0,o.readString)(this):null}loadStringRefTail(){return(0,o.readString)(this.loadRef().beginParse())}loadMaybeStringRefTail(){const l=this.loadMaybeRef();return l?(0,o.readString)(l.beginParse()):null}loadDict(l,u){return r.Dictionary.load(l,u,this)}loadDictDirect(l,u){return r.Dictionary.loadDirect(l,u,this)}endParse(){if(this.remainingBits>0||this.remainingRefs>0)throw new Error("Slice is not empty")}asCell(){return(0,a.beginCell)().storeSlice(this).endCell()}asBuilder(){return(0,a.beginCell)().storeSlice(this)}clone(l=!1){if(l){let u=this._reader.clone();return u.reset(),new Ac(u,this._refs)}else{let u=new Ac(this._reader,this._refs);return u._refsOffset=this._refsOffset,u}}toString(){return this.asCell().toString()}};return di.Slice=i,t=n.default,di}var Ml={},en={};Object.defineProperty(en,"__esModule",{value:!0});en.BitReader=void 0;const o_=Nt,i_=zo;class cd{constructor(t,n=0){this._checkpoints=[],this._bits=t,this._offset=n}get offset(){return this._offset}get remaining(){return this._bits.length-this._offset}skip(t){if(t<0||this._offset+t>this._bits.length)throw new Error(`Index ${this._offset+t} is out of bounds`);this._offset+=t}reset(){this._checkpoints.length>0?this._offset=this._checkpoints.pop():this._offset=0}save(){this._checkpoints.push(this._offset)}loadBit(){let t=this._bits.at(this._offset);return this._offset++,t}preloadBit(){return this._bits.at(this._offset)}loadBits(t){let n=this._bits.substring(this._offset,t);return this._offset+=t,n}preloadBits(t){return this._bits.substring(this._offset,t)}loadBuffer(t){let n=this._preloadBuffer(t,this._offset);return this._offset+=t*8,n}preloadBuffer(t){return this._preloadBuffer(t,this._offset)}loadUint(t){return Number(this.loadUintBig(t))}loadUintBig(t){let n=this.preloadUintBig(t);return this._offset+=t,n}preloadUint(t){return Number(this._preloadUint(t,this._offset))}preloadUintBig(t){return this._preloadUint(t,this._offset)}loadInt(t){let n=this._preloadInt(t,this._offset);return this._offset+=t,Number(n)}loadIntBig(t){let n=this._preloadInt(t,this._offset);return this._offset+=t,n}preloadInt(t){return Number(this._preloadInt(t,this._offset))}preloadIntBig(t){return this._preloadInt(t,this._offset)}loadVarUint(t){let n=Number(this.loadUint(t));return Number(this.loadUintBig(n*8))}loadVarUintBig(t){let n=Number(this.loadUint(t));return this.loadUintBig(n*8)}preloadVarUint(t){let n=Number(this._preloadUint(t,this._offset));return Number(this._preloadUint(n*8,this._offset+t))}preloadVarUintBig(t){let n=Number(this._preloadUint(t,this._offset));return this._preloadUint(n*8,this._offset+t)}loadVarInt(t){let n=Number(this.loadUint(t));return Number(this.loadIntBig(n*8))}loadVarIntBig(t){let n=Number(this.loadUint(t));return this.loadIntBig(n*8)}preloadVarInt(t){let n=Number(this._preloadUint(t,this._offset));return Number(this._preloadInt(n*8,this._offset+t))}preloadVarIntBig(t){let n=Number(this._preloadUint(t,this._offset));return this._preloadInt(n*8,this._offset+t)}loadCoins(){return this.loadVarUintBig(4)}preloadCoins(){return this.preloadVarUintBig(4)}loadAddress(){let t=Number(this._preloadUint(2,this._offset));if(t===2)return this._loadInternalAddress();throw new Error("Invalid address: "+t)}loadMaybeAddress(){let t=Number(this._preloadUint(2,this._offset));if(t===0)return this._offset+=2,null;if(t===2)return this._loadInternalAddress();throw new Error("Invalid address")}loadExternalAddress(){if(Number(this._preloadUint(2,this._offset))===1)return this._loadExternalAddress();throw new Error("Invalid address")}loadMaybeExternalAddress(){let t=Number(this._preloadUint(2,this._offset));if(t===0)return this._offset+=2,null;if(t===1)return this._loadExternalAddress();throw new Error("Invalid address")}loadAddressAny(){let t=Number(this._preloadUint(2,this._offset));if(t===0)return this._offset+=2,null;if(t===2)return this._loadInternalAddress();if(t===1)return this._loadExternalAddress();throw Error(t===3?"Unsupported":"Unreachable")}loadPaddedBits(t){if(t%8!==0)throw new Error("Invalid number of bits");let n=t;for(;;)if(this._bits.at(this._offset+n-1)){n--;break}else n--;let r=this._bits.substring(this._offset,n);return this._offset+=t,r}clone(){return new cd(this._bits,this._offset)}_preloadInt(t,n){if(t==0)return 0n;let r=this._bits.at(n),a=0n;for(let o=0;o>t-1)%2!==0}}Lo.LevelMask=dd;function h_(e){return e=e-(e>>1&1431655765),e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>24}Object.defineProperty(Fo,"__esModule",{value:!0});Fo.exoticPruned=void 0;const m_=en,Of=Lo;function p_(e,t){let n=new m_.BitReader(e),r=n.loadUint(8);if(r!==1)throw new Error(`Pruned branch cell must have type 1, got "${r}"`);if(t.length!==0)throw new Error(`Pruned Branch cell can't has refs, got "${t.length}"`);let a;if(e.length===280)a=new Of.LevelMask(1);else{if(a=new Of.LevelMask(n.loadUint(8)),a.level<1||a.level>3)throw new Error(`Pruned Branch cell level must be >= 1 and <= 3, got "${a.level}/${a.value}"`);const l=8+8+a.apply(a.level-1).hashCount*(256+16);if(e.length!==l)throw new Error(`Pruned branch cell must have exactly ${l} bits, got "${e.length}"`)}let o=[],i=[],s=[];for(let l=0;l>1);return{type:xl.CellType.MerkleProof,depths:n,hashes:r,mask:a}}function C_(e,t){(0,k_.exoticMerkleUpdate)(e,t);let n=[],r=[],a=new Ol.LevelMask((t[0].level()|t[1].level())>>1);return{type:xl.CellType.MerkleUpdate,depths:n,hashes:r,mask:a}}function E_(e,t){let r=new g_.BitReader(e).preloadUint(8);if(r===1)return v_(e,t);if(r===2)return j_(e,t);if(r===3)return __(e,t);if(r===4)return C_(e,t);throw Error("Invalid exotic cell type: "+r)}Ml.resolveExotic=E_;var Il={},On={};Object.defineProperty(On,"__esModule",{value:!0});On.getRepr=On.getBitsDescriptor=On.getRefsDescriptor=void 0;const Oi=qr,A_=Al();function Hp(e,t,n){return e.length+(n!==Oi.CellType.Ordinary?1:0)*8+t*32}On.getRefsDescriptor=Hp;function Vp(e){let t=e.length;return Math.ceil(t/8)+Math.floor(t/8)}On.getBitsDescriptor=Vp;function S_(e,t,n,r,a,o){const i=Math.ceil(t.length/8),s=Buffer.alloc(2+i+(2+32)*n.length);let l=0;s[l++]=Hp(n,a,o),s[l++]=Vp(e),(0,A_.bitsToPaddedBuffer)(t).copy(s,l),l+=i;for(const u of n){let c;o==Oi.CellType.MerkleProof||o==Oi.CellType.MerkleUpdate?c=u.depth(r+1):c=u.depth(r),s[l++]=Math.floor(c/256),s[l++]=c%256}for(const u of n){let c;o==Oi.CellType.MerkleProof||o==Oi.CellType.MerkleUpdate?c=u.hash(r+1):c=u.hash(r),c.copy(s,l),l+=32}return s}On.getRepr=S_;var Hu={},mr={},Jp={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(re,function(){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function r(P,g,j,E){var O,v,q,$=g||[0],J=(j=j||0)>>>3,X=E===-1?3:0;for(O=0;O>>2,$.length<=v&&$.push(0),$[v]|=P[O]<<8*(X+E*(q%4));return{value:$,binLen:8*P.length+j}}function a(P,g,j){switch(g){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(P){case"HEX":return function(E,O,v){return function(q,$,J,X){var le,Z,te,ke;if(q.length%2!=0)throw new Error("String of HEX type must be in byte increments");var Y=$||[0],Ee=(J=J||0)>>>3,je=X===-1?3:0;for(le=0;le>>1)+Ee)>>>2;Y.length<=te;)Y.push(0);Y[te]|=Z<<8*(je+X*(ke%4))}return{value:Y,binLen:4*q.length+J}}(E,O,v,j)};case"TEXT":return function(E,O,v){return function(q,$,J,X,le){var Z,te,ke,Y,Ee,je,Te,ze,Ht=0,dt=J||[0],Pt=(X=X||0)>>>3;if($==="UTF8")for(Te=le===-1?3:0,ke=0;ke(Z=q.charCodeAt(ke))?te.push(Z):2048>Z?(te.push(192|Z>>>6),te.push(128|63&Z)):55296>Z||57344<=Z?te.push(224|Z>>>12,128|Z>>>6&63,128|63&Z):(ke+=1,Z=65536+((1023&Z)<<10|1023&q.charCodeAt(ke)),te.push(240|Z>>>18,128|Z>>>12&63,128|Z>>>6&63,128|63&Z)),Y=0;Y>>2;dt.length<=Ee;)dt.push(0);dt[Ee]|=te[Y]<<8*(Te+le*(je%4)),Ht+=1}else for(Te=le===-1?2:0,ze=$==="UTF16LE"&&le!==1||$!=="UTF16LE"&&le===1,ke=0;ke>>8),Ee=(je=Ht+Pt)>>>2;dt.length<=Ee;)dt.push(0);dt[Ee]|=Z<<8*(Te+le*(je%4)),Ht+=2}return{value:dt,binLen:8*Ht+X}}(E,g,O,v,j)};case"B64":return function(E,O,v){return function(q,$,J,X){var le,Z,te,ke,Y,Ee,je=0,Te=$||[0],ze=(J=J||0)>>>3,Ht=X===-1?3:0,dt=q.indexOf("=");if(q.search(/^[a-zA-Z0-9=+/]+$/)===-1)throw new Error("Invalid character in base-64 string");if(q=q.replace(/=/g,""),dt!==-1&&dt